/* Jaisandar 160 · Trade Explorer · HS hierarchy + product drill-down */

/* ---------- Search: HS4 / HS6 / HS10 hierarchy ---------- */
.j160-suggest-group{margin:0 0 7px;padding:0 0 5px;border-bottom:1px solid #eee5e8}
.j160-suggest-group:last-child{margin-bottom:0;border-bottom:0}
.j160-suggest-group>header{position:sticky;z-index:2;top:-6px;display:flex;align-items:center;gap:8px;padding:7px 8px;margin:-1px 0 3px;border-radius:8px;background:rgba(255,249,250,.97);backdrop-filter:blur(8px);color:#7d5662}
.j160-suggest-group>header b{display:inline-grid;place-items:center;min-width:37px;height:22px;padding:0 6px;border:1px solid #e7cbd3;border-radius:7px;background:#fff;color:#8e2947;font-size:9px;font-weight:950;letter-spacing:.04em}
.j160-suggest-group>header span{flex:1;font-size:8px;font-weight:900;letter-spacing:.07em}
.j160-suggest-group>header em{font-style:normal;font-size:8px;font-weight:900;color:#a58d94}
.jtp-suggestion.j160-product-suggestion{grid-template-columns:auto minmax(0,1fr) auto auto!important;min-height:58px!important}
.j160-suggest-copy{display:block;min-width:0}
.j160-suggest-copy>b{display:block;color:#2c2226;font-size:10px!important;font-weight:900;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.j160-suggest-copy>small{display:flex;align-items:center;gap:6px;min-width:0;margin-top:5px;color:#8a7d82;font-size:8px;line-height:1.2}
.j160-suggest-copy>small em{flex:none;padding:2px 5px;border-radius:5px;background:#f8e6eb;color:#942f4c;font-style:normal;font-weight:950}
.j160-suggest-copy>small code{flex:none;padding:2px 5px;border:1px solid #e2e5e7;border-radius:5px;background:#f7f8f8;color:#3e4850;font:850 8px ui-monospace,SFMono-Regular,Consolas,monospace}
.j160-suggest-copy>small u{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;color:#8c7d82}

/* ---------- Product passport tabs ---------- */
.j160-product-passport{padding:15px!important;background:linear-gradient(180deg,#fff 0%,#fcfdfd 100%)!important}
.j160-product-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 14px;padding:5px;border:1px solid #e1e7e9;border-radius:15px;background:#f3f6f7}
.j160-product-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:43px;padding:6px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:#697980;font-size:8px;font-weight:950;letter-spacing:.025em;cursor:pointer;transition:.18s ease}
.j160-product-tabs button i{font-style:normal;font-size:13px;line-height:1}
.j160-product-tabs button:hover{background:#fff;color:#26343b}
.j160-product-tabs button.is-active{border-color:#e5d2d7;background:#fff;color:#8e2947;box-shadow:0 5px 16px rgba(61,22,35,.08)}
.j160-product-tabs button[data-product-tab="export"].is-active{border-color:#c8e4d8;color:#137052;background:#eff9f5}
.j160-product-tabs button[data-product-tab="import"].is-active{border-color:#efd0d5;color:#b64b5d;background:#fff2f4}
.j160-product-panel[hidden]{display:none!important}

/* ---------- Overview ---------- */
.j160-product-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.j160-overview-card{position:relative;min-height:120px;padding:13px;border:1px solid #e5eaec;border-radius:15px;background:#f8fafb;overflow:hidden}
.j160-overview-card:after{content:"";position:absolute;right:-25px;bottom:-34px;width:90px;height:90px;border:16px solid rgba(100,115,124,.055);border-radius:50%}
.j160-overview-card.export{background:#eff9f5;border-color:#cee8dc}.j160-overview-card.import{background:#fff3f4;border-color:#f0d4d8}
.j160-overview-card span{display:block;color:#718087;font-size:8px;font-weight:950;letter-spacing:.08em}
.j160-overview-card strong{position:relative;z-index:1;display:block;margin-top:9px;color:#273238;font-size:19px;line-height:1.05;font-weight:950}
.j160-overview-card small{position:relative;z-index:1;display:block;margin-top:8px;color:#77848a;font-size:9px;line-height:1.35}
.j160-overview-card em{position:relative;z-index:1;display:inline-block;margin-top:8px;padding:3px 6px;border-radius:6px;background:#fff;color:#5e6a70;font-size:8px;font-style:normal;font-weight:900}
.j160-overview-card em.is-up{color:#137052}.j160-overview-card em.is-down{color:#b64b5d}

/* ---------- Geography funnel ---------- */
.j160-product-geo-grid{grid-template-columns:minmax(280px,.92fr) minmax(0,1.08fr)!important}
.j160-funnel{height:390px!important;background:linear-gradient(180deg,#fbfcfc 0%,#f5f8f9 100%)!important}
.j150-product-country-list button{position:relative;overflow:hidden}
.j160-country-bar{position:absolute;left:10px;right:10px;bottom:4px;height:2px;border-radius:999px;background:#edf0f1;overflow:hidden}
.j160-country-bar u{display:block;height:100%;border-radius:inherit;background:#aebbc0}
.j150-product-country-list button:hover .j160-country-bar u{background:#8e2947}

/* ---------- Dedicated product trend ---------- */
.j160-panel-head{display:flex;justify-content:space-between;align-items:flex-end;margin:2px 0 10px}
.j160-panel-head span{display:block;color:#708087;font-size:8px;font-weight:950;letter-spacing:.1em}
.j160-panel-head h3{margin:3px 0 2px;color:#1f2c34;font-size:19px;line-height:1.08}
.j160-panel-head small{color:#7b878e;font-size:9px}
.j160-product-trend{height:420px;border:1px solid #edf0f2;border-radius:16px;background:#fff}

/* ---------- Structure: Top-10 + others ---------- */
.j160-structure-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.j160-structure-card{min-width:0;padding:12px;border:1px solid #e4e9eb;border-radius:16px;background:#fff}
.j160-structure-card.export{border-top:3px solid #16815f}.j160-structure-card.import{border-top:3px solid #d65d6d}
.j160-structure-card>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:2px 2px 10px;border-bottom:1px solid #edf0f1}
.j160-structure-card>header div span{display:block;color:#7b888e;font-size:8px;font-weight:950;letter-spacing:.08em}
.j160-structure-card>header div strong{display:block;margin-top:4px;color:#2e373d;font-size:18px;font-weight:950}
.j160-structure-card>header small{color:#7f898e;font-size:8px;font-weight:800;text-align:right}
.j160-structure-list{display:grid;gap:3px;margin-top:8px}
.j160-structure-row{display:grid;grid-template-columns:22px minmax(110px,1.15fr) minmax(60px,.75fr) 50px 76px;align-items:center;gap:7px;min-height:35px;padding:4px 3px;border-radius:8px}
.j160-structure-row:hover{background:#f7f9f9}
.j160-structure-row>span{color:#9aa4a9;font-size:8px;font-weight:900;text-align:center}
.j160-structure-row>b{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344047;font-size:8.5px;font-weight:850}
.j160-structure-row>b img{width:17px!important;height:12px!important;border-radius:2px;object-fit:cover;flex:none}
.j160-structure-row>i{height:5px;border-radius:999px;background:#eef1f2;overflow:hidden}
.j160-structure-row>i u{display:block;height:100%;border-radius:inherit;background:#94a3a9}
.j160-structure-card.export .j160-structure-row>i u{background:#4fa58a}.j160-structure-card.import .j160-structure-row>i u{background:#de8895}
.j160-structure-row>strong{color:#59666d;font-size:8.5px;font-weight:950;text-align:right}.j160-structure-row>em{color:#333e44;font-size:8px;font-style:normal;font-weight:850;text-align:right}
.j160-structure-row.is-other{margin-top:3px;border-top:1px dashed #dde3e5;background:#f7f9f9}

@media(max-width:900px){
 .j160-product-tabs{grid-template-columns:repeat(5,minmax(112px,1fr));overflow-x:auto;scrollbar-width:none}.j160-product-tabs::-webkit-scrollbar{display:none}
 .j160-product-overview{grid-template-columns:1fr 1fr}
 .j160-structure-grid{grid-template-columns:1fr}
 .j160-product-geo-grid{grid-template-columns:1fr!important}
}
@media(max-width:600px){
 .j160-product-passport{padding:10px!important;margin-left:-2px!important;margin-right:-2px!important}
 .j160-product-tabs{display:flex;gap:5px;margin-bottom:10px;padding:4px;overflow-x:auto;scroll-snap-type:x proximity}
 .j160-product-tabs button{flex:0 0 auto;min-width:112px;min-height:40px;scroll-snap-align:start}
 .j160-product-overview{grid-template-columns:1fr}.j160-overview-card{min-height:104px}
 .j160-funnel{height:330px!important}.j160-product-trend{height:330px}
 .j160-structure-card{padding:9px}.j160-structure-row{grid-template-columns:18px minmax(100px,1fr) 45px 66px;gap:5px}.j160-structure-row>i{display:none}.j160-structure-card>header{align-items:flex-start;flex-direction:column}.j160-structure-card>header small{text-align:left}
 .j160-suggest-copy>small u{display:none}.jtp-suggestion.j160-product-suggestion{min-height:55px!important}
}

/* 5.1.66 · Main TALDAU product result opens the full product passport. */
[data-jt-root].j154-taldau-detail [data-product-passport]:not([hidden])~.jtp-profile-toolnav{display:none!important}
[data-jt-root].j154-taldau-detail [data-product-passport]:not([hidden])~[data-profile-panel-body]{display:none!important}
[data-jt-root].j154-taldau-detail [data-product-passport]:not([hidden]){margin-top:10px}

/* Jaisandar 212 · multi-year comparison picker */
.jtp-compare-time{margin:0 0 9px;padding:10px;border:1px solid #eadde1;border-radius:14px;background:#fff}
.jtp-compare-years-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.jtp-compare-years-head>div:first-child>span{display:block;color:#806e75;font-size:7px;font-weight:950;letter-spacing:.08em}
.jtp-compare-years-head small{display:block;margin-top:2px;color:#9b8b91;font-size:8px;font-weight:750}
.jtp-compare-shortcuts{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.jtp-compare-shortcuts button{min-height:28px;padding:0 9px;border:1px solid #e3d5da;border-radius:9px;background:#faf6f7;color:#765d65;font-size:8px;font-weight:900;cursor:pointer}
.jtp-compare-shortcuts button:hover{border-color:#b98a99;background:#fff;color:#72263e}
.jtp-compare-years{display:flex;gap:5px;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:thin}
.jtp-compare-years button{flex:0 0 auto;min-width:58px;height:35px;padding:0 10px;border:1px solid #dfd8db;border-radius:10px;background:#fff;color:#61585b;font-size:10px;font-weight:950;cursor:pointer;transition:.16s ease}
.jtp-compare-years button:hover{border-color:#b98a99;background:#fff8fa}
.jtp-compare-years button.is-active{border-color:#7f2945;background:linear-gradient(135deg,#7f2945,#bd3d5b);color:#fff;box-shadow:0 5px 12px rgba(127,41,69,.16)}
.jtp-compare-month-options{margin-top:3px;padding-top:8px;border-top:1px solid #f0e5e8}
.jtp-compare-month-options>span{display:block;margin-bottom:6px;color:#806e75;font-size:7px;font-weight:950;letter-spacing:.08em}
.jtp-compare-month-options>small{color:#8c7e83;font-size:8px;font-weight:750}
.jtp-compare-months{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.jtp-compare-months::-webkit-scrollbar{display:none}
.jtp-compare-months button{flex:0 0 auto;min-width:44px;height:30px;border:1px solid #e4d9dd;border-radius:9px;background:#fff;color:#77666c;font-size:8px;font-weight:900;cursor:pointer}
.jtp-compare-months button.is-active{background:#006666;border-color:#006666;color:#fff}
.jtp-compare-range{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.jtp-compare-range label{display:grid;gap:4px;color:#8b7a80;font-size:7px;font-weight:900}.jtp-compare-range select{min-width:112px;height:34px;padding:0 30px 0 10px;border:1px solid #ded5d8;border-radius:10px;background:#fff;color:#332d2f;font:850 10px/1 inherit}.jtp-compare-range>b{padding-bottom:8px;color:#aa929a}
@media(max-width:760px){.jtp-compare-years-head{align-items:flex-start;flex-direction:column}.jtp-compare-shortcuts{justify-content:flex-start}.jtp-compare-years{margin-right:-6px}.jtp-compare-range{display:grid;grid-template-columns:1fr auto 1fr;align-items:end}.jtp-compare-range select{width:100%;min-width:0}}
