
/* ═══════════════════════════════════════════
   DESIGN TOKENS — Quiet Luxury
═══════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  /* 다크 베이스 */
  --ink:       #08111E;
  --ink-mid:   #0D1B2A;
  --ink-deep:  #050D18;
  /* 사이드바 */
  --navy:      #0B1520;
  --navy-soft: #121E2E;
  /* 액센트 */
  --gold:      #B8975A;
  --gold-lt:   #D4B07A; 
  --gold-dim:  rgba(184,151,90,.12);
  --crimson:   #9B1C2E;   /* 절제된 레드 — 강조선에만 */
  /* 서피스 */
  --surface:   #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #F0F2F6;
  --bg:        #ECEEF3;
  /* 텍스트 */
  --text:      #0D1B2A;
  --text-2:    #4A5568;
  --text-3:    #8FA0B4;
  /* 보더 */
  --border:    #E2E6EE;
  --border-s:  #C8CDD8;
  /* 그림자 */
  --sh-xs: 0 1px 3px rgba(8,17,30,.06);
  --sh-sm: 0 2px 10px rgba(8,17,30,.08);
  --sh-md: 0 6px 24px rgba(8,17,30,.11);
  --sh-lg: 0 14px 48px rgba(8,17,30,.16);
  /* 하위호환 */
  --primary:#0D1B2A;--primary-hover:#121E2E;
  --bg-outer:var(--bg);--bg-app:var(--surface-2);
  --bg-card:var(--surface);--text-main:var(--text);
  --text-muted:var(--text-3);--text-secondary:var(--text-2);
  --border-color:var(--border);--border-radius:14px;
  --rep-exp:#185FA5;--rep-imp:#1D9E75;--rep-hs:#7F77DD;
}

body{
  font-family:'Pretendard',sans-serif;
  background:var(--bg);color:var(--text);
  font-size:14px;display:flex;align-items:center;justify-content:center;
  height:100vh;overflow:hidden;-webkit-font-smoothing:antialiased;
}

/* ═══════════════════════════════════════════
   LOGIN — Quiet Dark, Gold Accent
═══════════════════════════════════════════ */
#loginSection{
  position:fixed;inset:0;
  background:var(--ink-deep);
  display:flex;align-items:center;justify-content:center;
  z-index:9999;transition:opacity .7s ease;
}
body.is-booting #loginSection,
body.is-app #loginSection{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* 미세 노이즈 텍스처 효과 (CSS only) */
#loginSection::before{
  content:'';position:absolute;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity:.4;pointer-events:none;
}

/* 왼쪽 골드 수직선 */
#loginSection::after{
  content:'';position:absolute;
  left:50%;margin-left:-230px;
  top:15%;height:70%;width:1px;
  background:linear-gradient(to bottom,transparent,var(--gold),transparent);
  opacity:.3;
}

.login-card{
  position:relative;z-index:2;
  width:460px;padding:60px 52px 52px;
  border:1px solid rgba(184,151,90,.15);
  background:rgba(13,25,42,.6);
  backdrop-filter:blur(20px);
  animation:cardIn .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardIn{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}

/* 상단 골드 선 */
.login-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:.5;
}

.login-eyebrow{
  font-family:'Montserrat',sans-serif;
  font-size:9px;font-weight:600;letter-spacing:4px;
  text-transform:uppercase;color:var(--gold);
  margin-bottom:24px;display:block;
}
.login-title{
  font-family:'Cormorant Garamond',serif;
  font-size:58px;font-weight:300;
  color:#ECE8E1;          /* 따뜻한 크림 화이트 */
  letter-spacing:6px;line-height:.95;
  margin-bottom:8px;
}
.login-title em{
  display:block;font-style:normal;
  font-size:13px;font-weight:400;
  letter-spacing:10px;color:var(--gold);
  margin-top:10px;
}
.login-rule{
  width:100%;height:1px;
  background:rgba(184,151,90,.2);
  margin:28px 0;
}
.login-welcome{
  font-size:13px;font-weight:400;
  color:rgba(236,232,225,.38);
  line-height:1.75;margin-bottom:36px;display:block;
}
.login-welcome strong{color:rgba(236,232,225,.65);font-weight:500;}

/* 버튼 — 골드 아웃라인 스타일 */
.login-btn{
  width:100%;
  background:transparent;
  color:var(--gold-lt);
  border:1px solid rgba(184,151,90,.5);
  padding:15px 24px;
  font-family:'Montserrat',sans-serif;
  font-size:11px;font-weight:600;
  letter-spacing:3px;text-transform:uppercase;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;
  transition:background .25s,border-color .25s,color .25s;
}
.login-btn:active,.login-btn.is-press{transform:scale(.98);filter:brightness(1.12);}
.login-btn:hover{
  background:rgba(184,151,90,.1);
  border-color:var(--gold);color:var(--gold);
}
.login-btn svg{opacity:.6;transition:opacity .2s;}
.login-btn:hover svg{opacity:1;}

.login-footer{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:32px;
}
.login-footer-text{font-size:9px;color:rgba(236,232,225,.18);letter-spacing:1.5px;}
.login-footer-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--crimson);opacity:.4;
}
#errorMsg{
  color:#E09090;font-size:12px;margin-top:14px;
  display:none;font-weight:500;text-align:center;letter-spacing:.3px;
}

/* ═══════════════════════════════════════════
   APP
═══════════════════════════════════════════ */
.app-container{
  width:min(1600px,98vw);height:min(900px,96vh);background:var(--bg-app);
  border-radius:16px;box-shadow:var(--sh-lg);
  display:flex;overflow:hidden;
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar{
  width:252px;background:var(--navy);
  display:flex;flex-direction:column;
  padding:28px 14px;flex-shrink:0;
  position:relative;overflow:hidden;
}
/* 상단 골드 수직선 */
.sidebar::before{
  content:'';position:absolute;
  right:0;top:10%;height:80%;width:1px;
  background:linear-gradient(to bottom,transparent,rgba(184,151,90,.15),transparent);
}

.logo{padding:6px 12px 26px;border-bottom:1px solid rgba(255,255,255,.05);margin-bottom:20px;}
.logo h2{
  font-family:'Cormorant Garamond',serif;
  font-size:26px;font-weight:300;
  color:#ECE8E1;letter-spacing:3px;margin:0;
}
.logo h2 span{color:var(--gold);opacity:.8;}
.logo p{
  font-size:8.5px;font-weight:600;
  letter-spacing:2.5px;text-transform:uppercase;
  color:rgba(255,255,255,.2);margin:6px 0 0;
}

.nav-section-title{
  font-size:8.5px;font-weight:600;
  letter-spacing:2.5px;text-transform:uppercase;
  color:rgba(255,255,255,.18);
  padding:0 12px;margin:14px 0 6px;
}
.nav-item{
  display:flex;align-items:center;gap:11px;
  color:rgba(255,255,255,.42);
  padding:10px 14px;border-radius:6px;
  font-size:13px;font-weight:500;
  margin-bottom:2px;cursor:pointer;
  transition:background .15s,color .15s;
  position:relative;
}
.nav-item:hover{background:rgba(255,255,255,.05);color:rgba(255,255,255,.75);}
.nav-item:active,.nav-item.is-press{background:rgba(255,255,255,.14);color:#fff;}
.nav-item.active{background:rgba(184,151,90,.1);color:#ECE8E1;font-weight:600;}
.nav-item.active::before{
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:2px;height:16px;background:var(--gold);border-radius:0 1px 1px 0;
}
.nav-item svg{
  width:15px;height:15px;flex-shrink:0;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.nav-item .nav-star{
  margin-left:auto;
  font-size:10px;
  color:var(--gold);
  line-height:1;
  font-weight:700;
  letter-spacing:0;
  opacity:.95;
}
.sidebar-bottom{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}
.nav-launcher-head{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 6px 10px;
  color:rgba(255,255,255,.38);
  font-size:11px;
  font-weight:600;
  letter-spacing:.15px;
}
.nav-launcher-head svg{
  width:14px;height:14px;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.nav-icon-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:0 2px 12px;
}
.nav-icon-grid .nav-item{
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  margin:0;
  padding:11px 4px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.55);
  font-size:10px;
  font-weight:500;
  text-align:center;
  line-height:1.3;
  letter-spacing:-.1px;
  white-space:nowrap;
}
.nav-icon-grid .nav-item:hover{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.82);
}
.nav-icon-grid .nav-item.active{
  background:rgba(184,151,90,.14);
  color:#ECE8E1;
}
.nav-icon-grid .nav-item.active::before{display:none;}
.nav-launcher-icon{
  width:28px;height:28px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.nav-icon-grid .nav-launcher-icon svg{
  width:15px;height:15px;
  stroke:#fff;
  fill:none;
}
.nav-launcher-icon.staff{background:rgba(37,99,235,.38);}
.nav-launcher-icon.partner{background:rgba(5,150,105,.38);}
.nav-launcher-icon.hscode{background:rgba(2,132,199,.38);}
.nav-launcher-icon.forwarder{background:rgba(217,119,6,.38);}
.nav-launcher-icon.compliance{background:rgba(219,39,119,.38);}
.sidebar-feedback{
  border-top:1px solid rgba(255,255,255,.05);padding-top:10px;
}
.sidebar-feedback .nav-item{
  justify-content:center;font-size:10.5px;
  color:rgba(255,255,255,.25);letter-spacing:.3px;
}

/* ═══════════════════════════════════════════
   MAIN
═══════════════════════════════════════════ */
.main-content{flex:1;padding:28px 36px;overflow-y:auto;min-width:0;}
.header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;}
.header-left h1{font-family:'Cormorant Garamond',serif;font-size:28px;font-weight:300;color:var(--text);letter-spacing:-.5px;margin:0 0 4px;line-height:1.15;}
.header-left p{font-size:12px;color:var(--text-3);margin:0;letter-spacing:.3px;}
.tab-content{display:none;animation:fadeUp .3s ease;}
.tab-content.active{display:block;}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-main{
  background:var(--ink-mid);color:#ECE8E1;
  border:none;padding:9px 18px;border-radius:5px;
  font-size:12.5px;font-weight:600;
  cursor:pointer;transition:background .15s;
  display:inline-flex;align-items:center;gap:7px;
  justify-content:center;white-space:nowrap;
  font-family:'Pretendard',sans-serif;letter-spacing:.2px;
}
.btn-main:hover{background:var(--navy-soft);}
.btn-small{
  background:var(--surface-3);color:var(--text);
  border:1px solid var(--border);padding:5px 11px;
  border-radius:4px;font-size:11.5px;font-weight:600;
  cursor:pointer;transition:background .15s;
  font-family:'Pretendard',sans-serif;
}
.btn-small:hover{background:var(--border);}
.hy-actbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.hy-act{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:8px 14px;border-radius:6px;border:1px solid #c7d2e5;
  background:#f4f7fb;color:#0B1520;
  font-size:12.5px;font-weight:700;font-family:inherit;line-height:1.2;
  cursor:pointer;white-space:nowrap;margin:0;
}
.hy-act:hover{filter:brightness(.97);}
.hy-act--green{background:#e8f5e9;color:#2e7d32;border-color:#a5d6a7;}
.hy-act--purple{background:#f3e8ff;color:#7e22ce;border-color:#d8b4fe;}
.hy-act--blue{background:#e0f2fe;color:#0369a1;border-color:#7dd3fc;}
.hy-act--yellow{background:#fef9c3;color:#a16207;border-color:#facc15;}
.hy-act--red{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.hy-act--gray{background:#f8fafc;color:#334155;border-color:#e2e8f0;}
.hy-refresh{
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid rgba(200,16,46,.3);color:var(--crimson);
  padding:5px 14px;border-radius:20px;
  font-size:11px;font-weight:600;font-family:inherit;line-height:1.2;
  cursor:pointer;letter-spacing:.5px;white-space:nowrap;margin:0;
}
.hy-refresh:hover{background:#fff8f8;}
.hy-refresh:active,.hy-refresh.is-press{transform:scale(.97);background:#fff0f0;}
.hy-refresh:disabled{opacity:.55;cursor:default;}

/* ═══════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════ */
.search-box{
  display:flex;align-items:center;gap:8px;
  border:1px solid var(--border);border-radius:20px;
  padding:7px 16px;width:230px;background:var(--surface);
  transition:border-color .15s;
}
.search-box:focus-within{border-color:var(--border-s);}
.search-input{
  border:none;outline:none;font-size:13px;width:100%;
  background:transparent;color:var(--text);
  font-family:'Pretendard',sans-serif;
}
.search-input::placeholder{color:var(--text-3);}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card{
  background:var(--surface);padding:24px 28px;
  border-radius:12px;border:1px solid var(--border);
  box-shadow:var(--sh-xs);margin-bottom:20px;
}
#homeTodayList,#homeConsultList,#homeCertList,#homeLogisticsList{min-height:72px;}
.hy-home-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:start;min-width:0;max-width:100%;}
.hy-home-split > *{min-width:0;overflow:hidden;}
.hy-home-split > :first-child{padding-right:18px;border-right:1px solid var(--border);}
.hy-home-split > :last-child{padding-left:18px;}
#homeCertList,#homeConsultList{min-width:0;overflow:hidden;}
.hy-home-side{min-width:0;max-width:100%;}
.hy-logi-table{width:100%;border-collapse:collapse;font-size:12px;}
.hy-logi-table th{padding:7px 6px;text-align:left;font-size:10px;font-weight:700;color:var(--text-3);letter-spacing:.4px;border-bottom:1px solid var(--border);white-space:nowrap;}
.hy-logi-table td{padding:9px 6px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text-2);}
.hy-logi-table tr:last-child td{border-bottom:none;}
.hy-logi-eta{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.hy-logi-eta-label{font-size:11px;color:#6B7280;font-weight:600;}
.hy-dday{display:inline-flex;align-items:center;padding:2px 7px;border-radius:20px;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap;}
.hy-dday--ok{background:#F3F4F6;color:#6B7280;}
.hy-dday--soon{background:#DBEAFE;color:#1D4ED8;}
.hy-dday--urgent{background:#E8A8A4;color:#fff;}
.hy-dday--over{background:#E8C48A;color:#7C4A12;}
.hy-logi-arrived{font-size:12px;font-weight:700;color:var(--crimson);white-space:nowrap;}
@media (max-width:720px){
  .hy-home-split{grid-template-columns:1fr;}
  .hy-home-split > :first-child{padding-right:0;border-right:none;padding-bottom:16px;border-bottom:1px solid var(--border);margin-bottom:16px;}
  .hy-home-split > :last-child{padding-left:0;}
}
.home-chart-wrap canvas{max-width:100%;}

/* KPI */
.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px;}
.dash-box{
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:22px 22px 18px;
  display:flex;flex-direction:column;gap:5px;
  box-shadow:var(--sh-xs);transition:box-shadow .2s,transform .2s;
  position:relative;overflow:hidden;
}
.dash-box:hover{box-shadow:var(--sh-md);transform:translateY(-2px);}
/* 상단 골드 가로선 — 절제된 포인트 */
.dash-box::before{
  content:'';position:absolute;top:0;left:24px;right:24px;height:1px;
  background:var(--gold);opacity:.25;
}
.dash-box span{font-size:11.5px;font-weight:600;color:var(--text-3);letter-spacing:.2px;}
.dash-box h3{
  margin:0;font-family:'Cormorant Garamond',serif;
  font-size:38px;font-weight:300;color:var(--text);letter-spacing:-1px;
}
.editable-input.partner-input{ width:260px; }
/* Sub tabs */
.sub-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:1px solid var(--border);padding-bottom:12px;}
.sub-tab-btn{
  background:none;border:none;padding:7px 14px;
  font-size:13px;font-weight:600;color:var(--text-3);
  cursor:pointer;border-radius:5px;transition:background .15s,color .15s;
  font-family:'Pretendard',sans-serif;
}
.sub-tab-btn.active{background:var(--surface-3);color:var(--text);}
.sub-tab-btn:hover:not(.active){background:var(--surface-2);color:var(--text-2);}
.sub-tab-btn:active,.sub-tab-btn.is-press{transform:scale(.97);}

.hs-trade-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;}
.hs-trade-tab{
  text-align:left;cursor:pointer;padding:16px 18px;
  border:1.5px solid var(--border-s);border-radius:12px;
  background:var(--surface);color:var(--text);
  box-shadow:var(--sh-xs);font-family:'Pretendard',sans-serif;
  transition:border-color .15s,box-shadow .15s,background .15s,transform .15s;
}
.hs-trade-tab:hover{border-color:var(--gold);box-shadow:var(--sh-sm);}
.hs-trade-tab.active{
  background:var(--ink-mid);border-color:var(--ink-mid);color:#fff;box-shadow:var(--sh-md);
}
.hs-trade-tab-kicker{display:block;font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--gold);margin-bottom:4px;}
.hs-trade-tab-label{display:block;font-size:16px;font-weight:700;}
.hs-trade-tab-sub{display:block;margin-top:4px;font-size:12px;color:var(--text-2);font-weight:500;}
.hs-trade-tab.active .hs-trade-tab-sub{color:rgba(255,255,255,.62);}
.hs-imp-layout{display:grid;grid-template-columns:268px minmax(0,1fr);gap:14px;align-items:start;}
@media (max-width:980px){.hs-imp-layout{grid-template-columns:1fr;}}
.hs-imp-side{
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:16px;min-height:420px;max-height:calc(100vh - 210px);overflow:auto;
  box-shadow:var(--sh-xs);
}
.hs-imp-side h3{margin:0;font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:400;}
.hs-imp-side-hint{margin:6px 0 14px;font-size:11.5px;color:var(--text-2);line-height:1.5;}
.hs-imp-side-item{
  display:block;width:100%;text-align:left;padding:11px 12px;margin-bottom:8px;
  border:1.5px solid var(--border);border-radius:10px;background:#fff;
  cursor:pointer;font-family:'Pretendard',sans-serif;
}
.hs-imp-side-item:hover{border-color:var(--gold);}
.hs-imp-side-item.on{border-color:var(--ink-mid);background:var(--ink-mid);color:#fff;}
.hs-imp-side-item .cd{display:block;font-size:13px;font-weight:800;letter-spacing:.2px;}
.hs-imp-side-item .nm{display:block;margin-top:3px;font-size:12px;color:var(--text-2);word-break:keep-all;}
.hs-imp-side-item.on .nm{color:rgba(255,255,255,.68);}
.hs-imp-side-item .rt{display:block;margin-top:6px;font-size:11.5px;font-weight:700;color:#0D9E6E;}
.hs-imp-side-item.on .rt{color:#D4B07A;}
.hs-imp-lookup{
  background:var(--ink-mid);color:#fff;border-radius:14px;padding:18px 20px 20px;margin-bottom:14px;
}
.hs-imp-lookup-kicker{font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--gold);margin-bottom:6px;}
.hs-imp-lookup h3{margin:0;font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:400;color:#fff;}
.hs-imp-lookup p{margin:6px 0 14px;font-size:12.5px;color:rgba(255,255,255,.64);line-height:1.55;}
.hs-imp-result-card{
  background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;box-shadow:var(--sh-xs);
}
.hs-imp-result-kicker{font-size:10px;font-weight:700;letter-spacing:1.3px;color:var(--gold);margin-bottom:14px;}
.hs-imp-search{display:flex;gap:8px;align-items:stretch;}
.hs-imp-search input{
  flex:1;height:48px;border:1.5px solid transparent;border-radius:10px;
  padding:0 16px;font-size:15px;font-weight:600;color:var(--text);background:#fff;
  font-family:'Pretendard',sans-serif;
}
.hs-imp-search input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-dim);}
.hs-imp-search .btn-main{height:48px;padding:0 22px;font-size:14px;white-space:nowrap;background:var(--gold);color:#fff;}
.hs-imp-search .btn-main:hover{background:var(--gold-lt);color:var(--ink);}
.hs-imp-std{display:flex;gap:8px;align-items:center;margin-top:10px;max-width:520px;}
.hs-imp-std input{flex:1;height:40px;border:1.5px solid var(--border-s);border-radius:8px;padding:0 12px;font-size:14px;font-weight:600;}
.hs-imp-std input:focus{outline:none;border-color:var(--gold);}
.hs-imp-fx-row{display:grid;grid-template-columns:88px 1fr;gap:8px;margin-bottom:8px;}
.hs-imp-fx-date{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px;}
.hs-imp-fx-hint{font-size:12px;font-weight:700;color:#0D9E6E;margin:0;min-height:18px;}
.hs-imp-calc-block{border-radius:10px;padding:12px;margin-bottom:12px;}
.hs-imp-calc-block.in{background:#fff;border:1.5px solid var(--border-s);}
.hs-imp-calc-block.auto{background:#EEF2F6;border:1.5px dashed #C5CDD8;}
.hs-imp-calc-block-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:11px;font-weight:800;letter-spacing:.3px;}
.hs-imp-calc-block.in .hs-imp-calc-block-h{color:#185FA5;}
.hs-imp-calc-block.auto .hs-imp-calc-block-h{color:#5B6472;}
.hs-imp-auto-field{
  background:#E4EAF1!important;border-color:transparent!important;color:var(--text);
  cursor:default;pointer-events:none;
}
.hs-imp-auto-field.hs-imp-auto-edit{pointer-events:auto;cursor:text;}
.hs-imp-auto-field.hs-imp-auto-edit:focus{outline:none;border-color:var(--gold)!important;box-shadow:0 0 0 3px var(--gold-dim);}
.hs-imp-empty{text-align:center;padding:48px 24px;border:1.5px dashed var(--border-s);border-radius:12px;background:var(--surface-2);}
.hs-imp-empty-title{font-size:16px;font-weight:700;color:var(--text);margin-bottom:8px;}
.hs-imp-empty p{font-size:13px;color:var(--text-2);line-height:1.7;margin:0;}
.hs-imp-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--border);margin-bottom:16px;}
.hs-imp-code{display:inline-block;padding:6px 14px;border-radius:8px;background:var(--rep-hs);color:#fff;font-size:18px;font-weight:700;letter-spacing:.3px;}
.hs-imp-name{margin-top:10px;font-size:15px;font-weight:600;color:var(--text);line-height:1.5;}
.hs-imp-en{margin-top:4px;font-size:12px;color:var(--text-3);}
.hs-imp-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:16px;align-items:start;}
@media (max-width:1100px){.hs-imp-body{grid-template-columns:1fr;}}
.hs-imp-rates-col{display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.hs-imp-trif-list{flex:1;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;background:#fff;min-height:0;overflow:hidden;}
.hs-imp-trif-fixed{flex-shrink:0;background:#fff;border-bottom:1px solid var(--border);}
.hs-imp-trif-scroll{flex:1;overflow:auto;min-height:0;}
.hs-imp-trif-row{
  display:grid;grid-template-columns:58px minmax(0,1fr) 58px;gap:8px;align-items:center;
  width:100%;padding:10px 12px;border:none;border-bottom:1px solid var(--border);
  background:#fff;cursor:pointer;font-family:'Pretendard',sans-serif;text-align:left;
}
.hs-imp-trif-row:last-child{border-bottom:none;}
.hs-imp-trif-row:hover{background:#F6F8FB;}
.hs-imp-trif-row.on{background:#F4F7FB;box-shadow:inset 3px 0 0 var(--ink-mid);}
.hs-imp-trif-row .cd{font-weight:800;font-size:12px;color:var(--text);}
.hs-imp-trif-row .nm{font-size:12.5px;color:var(--text-2);word-break:keep-all;line-height:1.45;}
.hs-imp-trif-row .nm em{display:block;font-style:normal;font-size:11px;color:var(--text-3);}
.hs-imp-trif-row .rt{font-weight:800;text-align:right;font-size:13px;}
.hs-imp-calc{border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--surface-2);box-sizing:border-box;}
.hs-imp-calc-title{font-size:13px;font-weight:800;color:var(--text);margin-bottom:12px;}
.hs-imp-calc-row{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;}
.hs-imp-calc-row label{font-size:11px;font-weight:700;color:var(--text-3);}
.hs-imp-calc-row input{
  height:42px;border:1.5px solid var(--border-s);border-radius:8px;padding:0 12px;
  font-size:15px;font-weight:700;text-align:right;font-family:'Pretendard',sans-serif;
}
.hs-imp-calc-row input:focus{outline:none;border-color:var(--gold);}
.hs-imp-calc-meta{font-size:12px;color:var(--text-2);margin-bottom:12px;line-height:1.5;}
.hs-imp-calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.hs-imp-calc-grid > div{background:#fff;border:1px solid var(--border);border-radius:8px;padding:10px;}
.hs-imp-calc-grid span{display:block;font-size:11px;font-weight:700;color:var(--text-3);}
.hs-imp-calc-grid strong{display:block;margin-top:4px;font-size:16px;font-weight:800;color:var(--text);}
.hs-imp-calc-grid .total{grid-column:1/-1;background:var(--ink-mid);border-color:var(--ink-mid);}
.hs-imp-calc-grid .total span{color:rgba(255,255,255,.62);}
.hs-imp-calc-grid .total strong{color:#fff;}
.hs-imp-calc-save{margin-top:10px;font-size:12px;color:#0D9E6E;line-height:1.5;font-weight:600;}
.hs-imp-calc-note{margin:12px 0 0;font-size:11px;color:var(--text-3);line-height:1.55;}
.hs-imp-cand{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.hs-imp-cand button{
  display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;
  text-align:left;padding:14px 16px;border:1.5px solid var(--border);border-radius:10px;
  background:#fff;cursor:pointer;font-family:'Pretendard',sans-serif;
}
.hs-imp-cand button:hover{border-color:var(--gold);background:var(--gold-dim);}
.hs-imp-req{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:12px 14px;margin-bottom:8px;}
.hs-imp-req b{display:block;font-size:13px;color:var(--text);margin-bottom:4px;}
.hs-imp-req p{margin:0;font-size:12.5px;color:var(--text-2);line-height:1.6;white-space:pre-wrap;}

/* ═══════════════════════════════════════════
   TABLES
═══════════════════════════════════════════ */
.table-responsive{width:100%;overflow-x:auto;}
table.data-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;min-width:800px;}
table.data-table th{
  background:var(--surface-2);color:var(--text-3);
  font-size:10px;font-weight:700;letter-spacing:1.2px;
  text-transform:uppercase;padding:8px 12px;
  border-bottom:1px solid var(--border);text-align:left;
}
table.data-table td{padding:8px 12px;border-bottom:1px solid var(--border);color:var(--text);font-weight:500;vertical-align:middle;}
table.data-table tr:last-child td{border-bottom:none;}
table.data-table tr:hover td{background:var(--surface-2);}
.editable-header{color:var(--ink-mid)!important;font-weight:800!important;}
.editable-input{
  width:160px;border:1px solid transparent;background:transparent;
  padding:4px 8px;font-size:12.5px;font-family:'Pretendard',sans-serif;
  font-weight:600;color:var(--ink-mid);transition:.15s;border-radius:4px;
}
.editable-input:hover{border-color:var(--border-s);background:var(--surface-2);}
.editable-input:focus{border-color:var(--ink-mid);background:#fff;outline:none;}

/* 수출통관 현황: 전체폭 가변 그리드. 정정/정산/검색도 동일 그리드 */
#tab-export .table-responsive, #tab-import .table-responsive, #tab-consulting .table-responsive{overflow-x:auto;}
table.hy-exp-table{
  display:block;width:100%;min-width:1100px;box-sizing:border-box;
  background:#fff;border:1px solid #E5E7EB;border-radius:12px;
  overflow:hidden;white-space:normal;
}
table.hy-exp-table thead,
table.hy-exp-table tbody{display:block;width:100%;}
table.hy-exp-table tr.hy-row{
  display:grid;width:100%;box-sizing:border-box;
  grid-template-columns:36px 68px 108px minmax(190px,1.45fr) minmax(230px,1.45fr) minmax(228px,1.2fr) 88px minmax(260px,1.7fr);
  column-gap:36px;padding:16px 28px;border-bottom:1px solid #F1F2F4;align-items:start;
}
table.hy-exp-table tr.hy-row--head{
  background:#FAFAFA;border-bottom:1px solid #E5E7EB;padding:12px 28px;align-items:start;
}
table.hy-exp-table th,
table.hy-exp-table td{
  display:block;min-width:0;padding:0;border:none!important;background:transparent!important;
  white-space:normal;vertical-align:top;overflow:hidden;
}
table.hy-exp-table tr:hover td{background:transparent!important;}
table.hy-exp-table tr.hy-row > :nth-child(4){overflow:visible;}
table.hy-exp-table tr.hy-row > :nth-child(5){padding-right:0!important;}
table.hy-exp-table tr.hy-row > :nth-child(6){padding-left:8px!important;overflow:visible;}
table.hy-exp-table tr.hy-row > :last-child{overflow:visible;}
table.hy-exp-table .hy-status-stack{display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
table.hy-exp-table .hy-th{font-size:11px;font-weight:700;color:#6B7280;letter-spacing:.03em;line-height:1.3;}
table.hy-exp-table .hy-th-sub{font-size:9.5px;color:#B0B4BA;font-weight:500;margin-top:3px;letter-spacing:0;text-transform:none;line-height:1.3;}
table.hy-exp-table .hy-date{padding-top:4px;}
table.hy-exp-table .hy-date-num{font-size:13px;color:#4B5563;white-space:nowrap;}
table.hy-exp-table .hy-date .hy-person{
  margin-top:6px;font-size:9.5px;padding:1px 5px;gap:3px;
  max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
table.hy-exp-table .hy-date .hy-person svg{width:8px;height:8px;flex-shrink:0;}
table.hy-exp-table .hy-client{font-size:14px;font-weight:700;color:#16181D;line-height:1.35;word-break:break-word;}
table.hy-exp-table .hy-client-input{
  width:100%;min-width:0;border:none;border-bottom:1px dashed #D8DEE8;background:transparent;
  font-size:14px;font-weight:700;color:#16181D;padding:0 0 1px;
}
table.hy-exp-table .hy-partner-cell{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
table.hy-exp-table .hy-person{
  display:inline-flex;align-items:center;gap:4px;margin-top:6px;background:#F6F7F8;
  border-radius:6px;padding:2px 7px;font-size:11px;color:#6B7280;max-width:100%;
}
table.hy-exp-table .hy-inco{position:relative;display:block;margin-top:5px;cursor:pointer;user-select:none;}
table.hy-exp-table .hy-inco.is-locked{cursor:default;}
table.hy-exp-table .hy-inco-val{
  display:inline-block;font-size:9.5px;font-weight:800;letter-spacing:.04em;line-height:1.2;
  padding:2px 7px;border-radius:999px;background:#FEF3C7;color:#B45309;border:1px solid #FCD34D;
}
table.hy-exp-table .hy-inco.empty .hy-inco-val{
  background:#FFFBEB;color:#D6B26A;border-color:#F3E2A0;font-weight:700;
}
table.hy-exp-table .hy-inco-menu{
  display:none;position:absolute;left:0;top:calc(100% + 4px);z-index:50;
  min-width:196px;max-width:240px;padding:8px;gap:4px;flex-wrap:wrap;
  background:#fff;border:1px solid #e4e7ee;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);
}
table.hy-exp-table .hy-inco.open .hy-inco-menu{display:flex;}
table.hy-exp-table .hy-inco-opt{
  display:inline-flex;align-items:center;gap:3px;cursor:pointer;user-select:none;
  font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;
  border:1px solid #e4e7ee;background:#f8f9fb;color:#64748b;opacity:.55;
}
table.hy-exp-table .hy-inco-opt input{margin:0;cursor:pointer;}
table.hy-exp-table .hy-inco-opt.on{opacity:1;background:#FEF3C7;color:#B45309;border-color:#FCD34D;}
table.hy-exp-table .hy-mgmt,
table.hy-exp-table .hy-fwd-block{
  display:flex;flex-direction:column;gap:5px;min-width:0;
}
table.hy-exp-table .hy-mgmt-row,
table.hy-exp-table .hy-fwd-wrap{
  display:flex;align-items:center;gap:8px;min-width:0;height:28px;min-height:28px;box-sizing:border-box;
}
table.hy-exp-table .hy-mgmt-label{font-size:11px;color:#9CA3AF;width:48px;flex-shrink:0;}
table.hy-exp-table .hy-mgmt-value{
  font-size:12.5px;display:inline-flex;align-items:center;gap:4px;min-width:0;height:28px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
table.hy-exp-table .hy-mgmt-value--locked{color:#6B7280;font-weight:400;}
table.hy-exp-table .hy-mgmt-input{
  flex:1;min-width:0;border:none;border-bottom:1px dashed #D8DEE8;background:transparent;
  font-size:12.5px;font-weight:600;color:#16181D;padding:2px 0;font-family:inherit;outline:none;
}
table.hy-exp-table .hy-mgmt-input:focus{border-bottom-color:#9CA3AF;}
table.hy-exp-table .hy-mgmt-input::placeholder{color:#B0B4BA;font-weight:500;}
table.hy-exp-table .hy-copy-icon{
  flex-shrink:0;margin-left:auto;cursor:pointer;background:none;border:none;padding:0;line-height:0;color:#C1C5CC;
}
table.hy-exp-table .hy-copy-icon:disabled{cursor:default;opacity:.4;}
table.hy-exp-table .hy-copy-icon.hy-copy-ok{color:#15803D;}
table.hy-exp-table .hy-fwd-block{min-width:0;}
table.hy-exp-table .hy-fwd-wrap{gap:6px;width:219px;min-width:219px;max-width:219px;padding:0;}
table.hy-exp-table .hy-fwd-wrap > div{flex:1 1 auto;width:auto;max-width:none;min-width:0!important;height:28px;}
table.hy-exp-table .hy-fwd-wrap .editable-input{
  width:100%!important;max-width:100%;min-width:0;height:28px;border:1px solid var(--border)!important;background:var(--surface-2)!important;
  padding:0 10px;font-size:12px;font-weight:600;color:#16181D;box-sizing:border-box;border-radius:4px;
}
table.hy-exp-table .hy-fwd-wrap .editable-input::placeholder{color:#B0B4BA;font-style:italic;font-weight:500;}
table.hy-exp-table .hy-fwd-wrap .editable-input:hover,
table.hy-exp-table .hy-fwd-wrap .editable-input:focus{border-color:var(--ink-mid)!important;background:#fff!important;}
table.hy-exp-table .hy-fwd-readonly{
  display:flex;align-items:center;width:100%;height:28px;box-sizing:border-box;padding:0 10px;font-size:12px;font-weight:600;
  color:#16181D;border:1px solid var(--border);border-radius:4px;background:var(--surface-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
table.hy-exp-table .hy-fwd-readonly.is-empty{
  background:#FFF6D9;color:#A16207;border-color:#F3E2A0;font-style:normal;font-weight:600;
}
table.hy-exp-table .hy-fwd-wrap .editable-input:placeholder-shown{
  background:#FFF6D9!important;color:#A16207;border-color:#F3E2A0!important;
}
table.hy-exp-table .hy-fwd-wrap .editable-input:placeholder-shown::placeholder{
  color:#A16207;font-style:normal;font-weight:600;
}
table.hy-exp-table .hy-fwd-mode{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;cursor:pointer;user-select:none;}
table.hy-exp-table .hy-fwd-mode.is-locked{cursor:default;}
table.hy-exp-table .hy-fwd-mode-val{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:32px;padding:3px 5px;border-radius:6px;border:1px solid #e4e7ee;
  background:#f3f4f6;color:#9ca3af;font-size:9px;font-weight:800;letter-spacing:.04em;line-height:1.2;
}
table.hy-exp-table .hy-fwd-mode.oce .hy-fwd-mode-val{background:#e0f2fe;color:#0284c7;border-color:#7dd3fc;}
table.hy-exp-table .hy-fwd-mode.air .hy-fwd-mode-val{background:#ffedd5;color:#c2410c;border-color:#fdba74;}
table.hy-exp-table .hy-fwd-mode.exp .hy-fwd-mode-val{background:#f3e8ff;color:#7e22ce;border-color:#d8b4fe;}
table.hy-exp-table .hy-fwd-mode-menu{
  display:none;position:absolute;left:0;top:calc(100% + 4px);z-index:50;
  min-width:118px;padding:6px;gap:4px;flex-wrap:wrap;
  background:#fff;border:1px solid #e4e7ee;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);
}
table.hy-exp-table .hy-fwd-mode.open .hy-fwd-mode-menu{display:flex;}
table.hy-exp-table .hy-fwd-mode-opt{
  display:inline-flex;align-items:center;gap:3px;cursor:pointer;
  font-size:9px;font-weight:800;padding:2px 6px;border-radius:6px;
  border:1px solid #e4e7ee;background:#f8f9fb;color:#9aa1b2;opacity:.55;
}
table.hy-exp-table .hy-fwd-mode-opt input{margin:0;cursor:pointer;}
table.hy-exp-table .hy-fwd-mode-opt.on{opacity:1;}
table.hy-exp-table .hy-fwd-mode-opt.oce.on{background:#e0f2fe;color:#0284c7;border-color:#7dd3fc;}
table.hy-exp-table .hy-fwd-mode-opt.air.on{background:#ffedd5;color:#c2410c;border-color:#fdba74;}
table.hy-exp-table .hy-fwd-mode-opt.exp.on{background:#f3e8ff;color:#7e22ce;border-color:#d8b4fe;}
table.hy-exp-table .hy-schedule{display:contents;}
table.hy-exp-table .hy-schedule .hy-mgmt-label{width:36px;}
table.hy-exp-table .hy-arrived-note{
  flex:0 0 auto;margin:0;white-space:nowrap;
  font-size:11px;font-weight:700;color:#E8384F;
  font-variant-numeric:tabular-nums;letter-spacing:-.2px;line-height:1.2;
}
.up-cargo-modal .modal-content.up-cargo-sheet {
  max-width:820px;width:95%;max-height:88vh;padding:0;overflow:hidden;
  display:flex;flex-direction:column;border-radius:14px;
}
.up-cargo-head {
  background:var(--ink);color:#fff;padding:16px 22px;
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;
}
.up-cargo-title{font-size:15px;font-weight:700;letter-spacing:-.2px;}
.up-cargo-sub{font-size:11px;color:rgba(255,255,255,.5);margin-top:3px;}
.up-cargo-head-right{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.up-cargo-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.up-cargo-chip{font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.85);white-space:nowrap;}
.up-cargo-chip.ok{background:rgba(13,158,110,.22);color:#9ff0d4;}
.up-cargo-chip.prog{background:rgba(56,189,248,.2);color:#bae6fd;}
.up-cargo-chip.fail{background:rgba(232,56,79,.22);color:#fecaca;}
.up-cargo-x{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:16px;font-weight:700;width:32px;height:32px;border-radius:50%;cursor:pointer;line-height:1;}
.up-cargo-body{flex:1;overflow-y:auto;padding:18px 22px;background:#F8F9FB;}
.up-cargo-foot{padding:12px 22px;background:#fff;border-top:1px solid var(--border);display:flex;justify-content:flex-end;flex-shrink:0;}
.up-cargo-close{padding:8px 20px;border:1px solid var(--border-s);border-radius:6px;background:var(--surface);color:var(--text-2);font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;}
.up-cargo-loading{text-align:center;padding:56px 20px;color:var(--text-3);}
.up-cargo-spin{width:28px;height:28px;margin:0 auto 14px;border-radius:50%;border:3px solid #E4E7EE;border-top-color:var(--ink);animation:hy-spin-cw .8s linear infinite;}
.up-cargo-loading-title{font-size:14px;font-weight:700;color:var(--ink);}
.up-cargo-loading-sub{font-size:12px;margin-top:6px;}
.up-cargo-banner{font-size:12px;color:#a16207;background:#fef9c3;border:1px solid #fde68a;border-radius:8px;padding:8px 12px;margin-bottom:12px;}
.up-cargo-empty{padding:28px 8px;text-align:center;color:var(--text-3);font-size:13px;}
.up-cargo-error{padding:28px 8px;color:#dc2626;font-size:13px;font-weight:600;}
.up-cargo-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px 18px;margin-bottom:12px;}
.up-cargo-card:last-child{margin-bottom:0;}
.up-cargo-card.is-arrived{border-color:#99f6e4;box-shadow:inset 3px 0 0 #0f766e;}
.up-cargo-card.is-fail{border-color:#fecaca;box-shadow:inset 3px 0 0 #dc2626;}
.up-cargo-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.up-cargo-co{font-size:14px;font-weight:700;color:var(--ink);}
.up-cargo-ids{font-size:11px;color:var(--text-3);margin-top:4px;line-height:1.45;}
.up-cargo-pill{flex-shrink:0;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap;}
.up-cargo-pill.arrived{background:#ccfbf1;color:#0f766e;}
.up-cargo-pill.prog{background:#e0f2fe;color:#0369a1;}
.up-cargo-pill.fail{background:#fee2e2;color:#b91c1c;}
.up-cargo-arrived{margin-top:10px;font-size:13px;font-weight:800;color:#E8384F;font-variant-numeric:tabular-nums;letter-spacing:-.2px;}
.up-cargo-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-top:14px;}
.up-cargo-meta{min-width:0;}
.up-cargo-meta .k{display:block;font-size:10.5px;font-weight:700;color:var(--text-3);margin-bottom:3px;}
.up-cargo-meta .v{display:block;font-size:12.5px;font-weight:700;color:var(--ink);word-break:break-all;}
.up-cargo-fail-msg{margin-top:10px;font-size:13px;color:#dc2626;font-weight:600;line-height:1.45;}
.up-cargo-hint{margin-top:8px;font-size:11px;color:var(--text-3);}
.up-cargo-tl{margin-top:14px;padding-top:12px;border-top:1px dashed var(--border);}
.up-cargo-tl-item{display:grid;grid-template-columns:10px 128px 1fr;gap:8px 10px;align-items:start;position:relative;padding:0 0 12px;}
.up-cargo-tl-item:last-child{padding-bottom:0;}
.up-cargo-tl-item:last-child .up-cargo-tl-dot::after{display:none;}
.up-cargo-tl-dot{width:8px;height:8px;border-radius:50%;background:var(--ink);margin-top:5px;position:relative;justify-self:center;}
.up-cargo-tl-dot::after{content:'';position:absolute;left:3px;top:10px;width:2px;bottom:-16px;background:#E4E7EE;}
.up-cargo-tl-time{font-size:11px;color:var(--text-3);padding-top:2px;font-variant-numeric:tabular-nums;}
.up-cargo-tl-main{min-width:0;}
.up-cargo-tl-step{font-size:12.5px;font-weight:700;color:var(--ink);}
.up-cargo-tl-sub{font-size:11px;color:var(--text-2);margin-top:2px;}
@media (max-width:640px){
  .up-cargo-grid{grid-template-columns:1fr;}
  .up-cargo-tl-item{grid-template-columns:10px 1fr;}
  .up-cargo-tl-time{grid-column:2;}
}
table.hy-exp-table .hy-date-value{
  position:relative;flex:0 0 110px;width:110px;max-width:110px;height:28px;min-height:28px;box-sizing:border-box;
  font-size:12px;color:#16181D;font-weight:600;border-bottom:1px dashed #D8DEE8;
  padding:0 4px 0 0;display:inline-flex;align-items:center;gap:4px;cursor:pointer;overflow:hidden;
}
table.hy-exp-table .hy-date-text{white-space:nowrap;pointer-events:none;}
table.hy-exp-table .hy-date-value > svg{pointer-events:none;flex-shrink:0;}
table.hy-exp-table .hy-date-native{
  position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:none;padding:0;margin:0;
}
table.hy-exp-table .hy-date-native::-webkit-calendar-picker-indicator{
  position:absolute;left:0;top:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;
}
table.hy-exp-table .hy-actions{display:flex;flex-direction:column;gap:6px;width:100%;}
table.hy-exp-table .hy-btn{
  display:flex;align-items:center;justify-content:center;gap:3px;border-radius:6px;padding:5px 0;
  font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;width:100%;box-sizing:border-box;
}
table.hy-exp-table .hy-btn svg{width:11px;height:11px;}
table.hy-exp-table .status-badge{padding:2px 6px;font-size:10px;border-radius:6px;}
table.hy-exp-table .hy-btn--detail{background:#fff;border:1px solid #E5E7EB;color:#4B5563;}
table.hy-exp-table .hy-btn--cert{background:#D1FAE5;color:#065F46;border:none;}
table.hy-exp-table .hy-btn--cert-wait{background:#FEE2E2;color:#991B1B;border:none;cursor:default;}
table.hy-exp-table .hy-cert-wrap{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;}
table.hy-exp-table .hy-cert-hint{font-size:9px;color:#065F46;font-weight:700;letter-spacing:.2px;text-align:center;line-height:1.2;}
table.hy-consult-table tr.hy-row{
  grid-template-columns:36px 68px 84px minmax(110px,0.9fr) minmax(150px,1.3fr) minmax(180px,1.5fr) minmax(148px,1.15fr) 108px;
}
table.hy-consult-table tr.hy-row > :nth-child(5),
table.hy-consult-table tr.hy-row > :nth-child(6){padding-left:0!important;padding-right:0!important;}
table.hy-consult-table .hy-person{
  margin-top:0;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
table.hy-consult-table .hy-person--pick{
  background:#FFF6D9;color:#A16207;border:1px solid #F3E2A0;
}
table.hy-consult-table .hy-person--pick svg{stroke:#A16207;}
table.hy-consult-table .hy-person-list{display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
table.hy-consult-table .hy-remarks{font-size:12px;color:#4B5563;line-height:1.45;word-break:break-word;}
table.hy-consult-table .hy-svc{font-size:12.5px;color:#4B5563;font-weight:600;}
table.hy-consult-table .hy-btn--empty{background:#F3F4F6;color:#9CA3AF;border:none;cursor:not-allowed;}
table.hy-exp-table .hy-memo-card{background:#FAFAFA;border-radius:8px;padding:10px 12px;min-width:0;}
table.hy-exp-table .hy-memo-row{display:flex;gap:8px;align-items:baseline;min-width:0;}
table.hy-exp-table .hy-memo-label{font-size:11px;flex-shrink:0;width:36px;}
table.hy-exp-table .hy-memo-label--staff{color:#9CA3AF;}
table.hy-exp-table .hy-memo-label--customer{color:#B8863A;font-weight:600;}
table.hy-exp-table .hy-memo-divider{height:1px;background:#E5E7EB;margin:8px 0;}
table.hy-exp-table .hy-memo-text{font-size:12px;color:#9CA3AF;white-space:pre-wrap;line-height:1.45;min-width:0;word-break:break-word;}
table.hy-exp-table .hy-memo-input{
  flex:1;min-width:0;border:none;border-bottom:1px dashed #FDE68A;background:transparent;
  font-size:12px;color:#4B5563;padding:0 0 1px;resize:none;min-height:20px;font-family:inherit;outline:none;
}
table.hy-exp-table .hy-memo-input::placeholder{color:#B0B4BA;}
table.hy-exp-table .cmemo-status{font-size:10px;color:#B8863A;}

/* BADGES */
.status-badge{padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;display:inline-block;text-align:center;white-space:nowrap;}
.status-통관의뢰{background:#F1F5F9;color:#475569;}.status-정정의뢰{background:#E0F2FE;color:#0369A1;}
.status-접수{background:#FFEDD5;color:#9A3412;}.status-정정접수{background:#FFEDD5;color:#9A3412;}
.status-통관중{background:#DBEAFE;color:#1E40AF;}.status-배차완료{background:#EDE9FE;color:#5B21B6;}
.status-진행중{background:#FFEDD5;color:#9A3412;}.status-정정완료{background:#FEF9C3;color:#854D0E;}
.status-정산예정{background:#FEE2E2;color:#991B1B;}.status-정산완료{background:#FEE2E2;color:#991B1B;}
.status-통관완료{background:#D1FAE5;color:#065F46;}.status-완료{background:#D1FAE5;color:#065F46;}
.status-필증발급{background:#D1FAE5;color:#065F46;}
.status-정정중 { background:#FFEDD5; color:#9A3412; }
.status-badge.imp-scheduled { background: var(--surface-3); color: var(--text-2); }
.status-badge.imp-arrived { background: #EAF7EF; color: #2E8B57; }
.status-badge.imp-warehoused { background: #F3E8FF; color: #7C3AED; }
.status-badge.imp-declared { background: #DBEAFE; color: #1E40AF; }
.status-badge.imp-accepted { background: #CCFBF1; color: #0F766E; }
.status-badge.imp-paid { background: #FFEDD5; color: #C2410C; }
.status-badge.imp-cert { background: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
.hy-insp-mark { display:inline-flex; align-items:center; gap:3px; color:#DC2626; font-size:10px; font-weight:700; line-height:1.2; }
.hy-insp-mark i { width:5px; height:5px; border-radius:50%; background:#DC2626; flex:none; }
.hy-insp-mark.is-inline { font-size:8.5px; margin-left:5px; font-weight:700; }
.hy-insp-mark.is-inline i { width:4px; height:4px; }
.hy-logi-prog { display:inline-flex; align-items:center; flex-wrap:wrap; }
/* ═══════════════════════════════════════════
   PRESET
═══════════════════════════════════════════ */
.preset-section{border:1px solid var(--border);border-radius:8px;margin-bottom:10px;background:var(--surface);overflow:hidden;}
.preset-header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:var(--surface-2);cursor:pointer;font-weight:600;font-size:12px;color:var(--text);transition:background .15s;}
.preset-header:hover{background:var(--surface-3);}
.preset-body{padding:12px 14px;display:none;border-top:1px solid var(--border);}
.preset-body.open{display:block;}
.preset-item{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12.5px;}
.preset-item-label{display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:500;flex:1;}
.preset-item-label input{accent-color:var(--ink-mid);margin:0;}
.preset-add-btn{width:100%;padding:8px;margin-top:6px;background:var(--surface-3);border:1px dashed var(--border-s);border-radius:4px;font-size:12px;font-weight:600;color:var(--text-2);cursor:pointer;transition:.15s;font-family:'Pretendard',sans-serif;}
.preset-add-btn:hover{border-color:var(--ink-mid);color:var(--ink-mid);}

/* FILE DROP */
.file-drop-area{border:1px dashed var(--border-s);border-radius:8px;padding:22px;text-align:center;cursor:pointer;background:var(--surface-2);color:var(--text-3);position:relative;transition:.15s;font-size:13px;font-weight:500;}
.file-drop-area.dragover{background:var(--surface-3);border-color:var(--ink-mid);color:var(--ink-mid);}
.file-drop-area input[type="file"]{position:absolute;inset:0;opacity:0;cursor:pointer;}
.file-list{margin-top:10px;font-size:12px;text-align:left;display:flex;flex-direction:column;gap:5px;}
.file-list-item{display:flex;justify-content:space-between;background:var(--surface-3);padding:7px 12px;border-radius:4px;border:1px solid var(--border);}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(8,17,30,.6);backdrop-filter:blur(8px);display:none;justify-content:center;align-items:center;z-index:1000;}
.modal-content{
  background:var(--surface);width:560px;border-radius:12px;padding:36px;
  box-shadow:var(--sh-lg);max-height:90vh;overflow-y:auto;
  border-top:1px solid var(--gold);      /* 골드 상단선 */
}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;}
.modal-header h2{margin:0;font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:400;color:var(--text);letter-spacing:.5px;}
.close-btn{cursor:pointer;font-size:20px;color:var(--text-3);border:none;background:none;line-height:1;transition:color .15s;}
.close-btn:hover{color:var(--text);}

/* FORM */
.form-group{margin-bottom:14px;}
.form-group label{display:block;font-size:10.5px;font-weight:700;color:var(--text-3);margin-bottom:6px;text-transform:uppercase;letter-spacing:.6px;}
.form-input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:5px;font-size:13px;font-family:'Pretendard',sans-serif;background:var(--surface-2);color:var(--text);outline:none;transition:border-color .15s,background .15s;box-sizing:border-box;}
.form-input:focus{border-color:var(--ink-mid);background:#fff;}
input[type="month"]{
  font-family:'Malgun Gothic','Apple SD Gothic Neo','Segoe UI',sans-serif;
  font-size:13px;font-weight:400;color:var(--text);
  letter-spacing:0;
}
.radio-group{display:flex;gap:14px;border:1px solid var(--border);background:var(--surface-2);padding:10px 14px;border-radius:5px;flex-wrap:wrap;}
.radio-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;cursor:pointer;color:var(--text);}
.radio-label input{accent-color:var(--ink-mid);margin:0;}

/* SIDE PANEL */
.side-panel{position:fixed;top:0;right:-450px;width:400px;height:100%;background:var(--surface);box-shadow:-6px 0 30px rgba(8,17,30,.12);transition:right .3s cubic-bezier(.4,0,.2,1);z-index:1000;padding:40px 28px;display:flex;flex-direction:column;overflow-y:auto;}
.side-panel.open{right:0;}
.side-panel h3{margin-top:0;padding-bottom:16px;border-bottom:1px solid var(--gold);display:flex;justify-content:space-between;font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:400;color:var(--text);}
.detail-row{margin-bottom:16px;}
.detail-row span{display:block;font-size:10px;font-weight:700;color:var(--text-3);margin-bottom:6px;text-transform:uppercase;letter-spacing:.6px;}
.detail-row div{font-size:13px;font-weight:500;background:var(--surface-2);padding:11px 13px;border-radius:5px;border:1px solid var(--border);word-break:break-all;min-height:40px;}

/* REPORT */
.rep-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px;}
.rep-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
.rep-grid-3-7{display:grid;grid-template-columns:6fr 4fr;gap:20px;margin-bottom:20px;}

/* 변경 */
.rep-kpi-box{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px 22px;transition:box-shadow .2s,transform .2s;position:relative;overflow:hidden;box-shadow:var(--sh-xs);}
.rep-kpi-box::before{content:'';position:absolute;top:0;left:22px;right:22px;height:1px;background:var(--gold);opacity:.3;}
.rep-kpi-box:hover{box-shadow:var(--sh-md);transform:translateY(-2px);}
.rep-kpi-lbl{font-size:10px;color:var(--text-3);margin-bottom:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;}
/* 되돌리기 */
.rep-kpi-val{font-family:'Montserrat',serif;font-size:26px;font-weight:700;color:var(--text);margin:0;letter-spacing:-.5px;}
.rep-kpi-sub{font-size:11.5px;color:var(--text-3);margin-top:8px;font-weight:500;}
.rep-inner-box{border:1px solid var(--border);border-radius:12px;padding:22px 24px;background:var(--surface);position:relative;overflow:hidden;box-shadow:var(--sh-xs);}
.rep-inner-box::before{content:'';position:absolute;top:0;left:24px;right:24px;height:1px;background:var(--gold);opacity:.25;}
.rep-chart-container{position:relative;height:260px;width:100%;margin-top:14px;}
.rep-chart-container.small{height:220px;}
.rep-tab-menu{display:flex;gap:20px;border-bottom:1px solid var(--border);margin-bottom:24px;}
.rep-tab-item{padding:10px 4px;font-size:13.5px;font-weight:600;color:var(--text-3);cursor:pointer;border-bottom:2px solid transparent;transition:.15s;margin-bottom:-1px;}
.rep-tab-item.active.exp,.rep-tab-item.active.imp{color:var(--text);border-bottom-color:var(--gold);font-weight:700;}

@media (max-width:1024px){.rep-grid-4{grid-template-columns:1fr 1fr;}.rep-grid-3-7,.rep-grid-2{grid-template-columns:1fr;}}
@media (max-width: 1200px) {
  .rep-grid-3-7 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rep-grid-4 { grid-template-columns: 1fr 1fr; }
  .rep-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rep-grid-4 { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 15mm 15mm 20mm 15mm; }

  body * { visibility: hidden; }
  .sidebar, .no-print { display: none !important; }
  #tab-report, #tab-report * { visibility: visible; }
  #tab-report { position: absolute; left: 0; top: 0; width: 100%; }
  .card { box-shadow: none !important; border: none !important; }
  .rep-inner-box { border: 1px solid #ccc !important; page-break-inside: avoid; margin-bottom: 20px !important; }
  .rep-chart-container { height: 220px !important; }

  /* 브라우저 기본 헤더/푸터 제거 */
  #print-header, #print-footer { visibility: visible !important; display: block !important; }
}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.3;}}


/* 컨설팅 배너 */
.consult-banner{background:var(--navy);padding:40px 48px;border-radius:12px 12px 0 0;margin-bottom:28px;position:relative;overflow:hidden;}
.consult-banner::after{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.4;}


.field-empty { background: #FFFBEB !important; border-color: #FDE68A !important; }
.field-empty:focus { background: #fff !important; }


@keyframes hy-spin-cw{to{transform:rotate(360deg);}}
@keyframes hy-spin-ccw{to{transform:rotate(-360deg);}}
@keyframes hy-fade-in{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
@keyframes hy-pulse{0%,100%{opacity:.35;}50%{opacity:1;}}

#hyLoadingScreen{position:fixed;inset:0;z-index:99999;background:#0B1520;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;transition:opacity .6s ease;}
#hyLoadingScreen.fade-out{opacity:0;pointer-events:none;}

.hy-loader-brand{text-align:center;animation:hy-fade-in .7s ease forwards;}
.hy-loader-title{display:block;font-family:'Cormorant Garamond',serif;font-size:34px;font-weight:300;color:#ECE8E1;letter-spacing:4px;}
.hy-loader-sub{display:block;font-size:9px;font-weight:700;color:#B8975A;letter-spacing:6px;text-transform:uppercase;margin-top:8px;}

.hy-spinner-wrap{position:relative;width:60px;height:60px;}
.hy-ring-outer{position:absolute;inset:0;border-radius:50%;border:1.5px solid transparent;border-top-color:#B8975A;border-right-color:rgba(184,151,90,.25);animation:hy-spin-cw .9s linear infinite;}
.hy-ring-inner{position:absolute;inset:10px;border-radius:50%;border:1.5px solid transparent;border-bottom-color:#B8975A;border-left-color:rgba(184,151,90,.2);animation:hy-spin-ccw .65s linear infinite;}
.hy-ring-dot{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:6px;height:6px;border-radius:50%;background:#B8975A;animation:hy-pulse 1.4s ease-in-out infinite;}

.hy-loader-msg{font-size:11px;color:rgba(236,232,225,.25);letter-spacing:2px;animation:hy-pulse 1.4s ease-in-out infinite;}

/* ═══════════════════════════════════════════
   통관의뢰서 To-Be (tab-request only)
═══════════════════════════════════════════ */
#tab-request.req-screen{padding-bottom:8px;}
#tab-request .req-page{display:flex;flex-direction:column;gap:18px;}
#tab-request .req-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
#tab-request .req-title{font-size:22px;font-weight:700;color:#0f172a;letter-spacing:-.02em;}
#tab-request .req-title-wrap{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
#tab-request .req-legend{font-size:11px;color:#94a3b8;}
#tab-request .req-star{color:#dc2626;font-weight:700;}
#tab-request .req-steps{display:flex;gap:4px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:4px;}
#tab-request .req-step{border:0;background:transparent;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#94a3b8;padding:6px 12px;border-radius:999px;cursor:pointer;font-family:inherit;}
#tab-request .req-step.on{color:#1d4ed8;background:#eff6ff;}
#tab-request .req-banner{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px;font-size:12.5px;color:#475569;line-height:1.6;display:flex;gap:10px;}
#tab-request .req-banner b{color:#64748b;}
#tab-request .req-toggles{display:flex;gap:32px;flex-wrap:wrap;}
#tab-request .req-lbl{font-size:12px;font-weight:600;color:#475569;margin-bottom:6px;display:flex;align-items:center;gap:4px;}
#tab-request .req-help{font-size:11px;color:#94a3b8;margin-top:5px;line-height:1.5;}
#tab-request .req-help.req{color:#dc2626;}
#tab-request .req-seg{display:flex;background:#f1f5f9;border-radius:8px;padding:3px;}
#tab-request .req-seg-opt{position:relative;cursor:pointer;}
#tab-request .req-seg-opt input{position:absolute;opacity:0;pointer-events:none;}
#tab-request .req-seg-opt span{display:block;padding:7px 16px;font-size:12.5px;color:#64748b;border-radius:6px;}
#tab-request .req-seg-opt:has(input:checked) span{background:var(--ink-mid);box-shadow:none;font-weight:600;color:#ECE8E1;}
#tab-request .req-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:22px;}
#tab-request .req-sec{font-size:12px;font-weight:700;color:#2563eb;letter-spacing:.04em;}
#tab-request .req-div{height:0;border:0;border-top:1px solid #e2e8f0;margin:18px 0;}
#tab-request .req-card01{background:#fff;border:1.5px dashed #cbd5e1;border-radius:10px;padding:20px 22px;}
#tab-request .req-card01.is-matched{border-style:solid;border-color:#bfdbfe;}
#tab-request .req-card01-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
#tab-request .req-badge{font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;}
#tab-request .req-card01.is-matched .req-badge{color:#1d4ed8;background:#eff6ff;}
#tab-request .req-chip-row{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;}
#tab-request .req-chip{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:8px 12px;font-size:12px;cursor:pointer;text-align:left;font-family:inherit;color:inherit;}
#tab-request .req-chip:hover{border-color:#93c5fd;}
#tab-request .req-chip.is-open{border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe;}
#tab-request .req-chip.is-empty{color:#94a3b8;border-style:dashed;}
#tab-request .req-chip-k{color:#64748b;margin-bottom:3px;font-size:11px;}
#tab-request .req-chip.is-empty .req-chip-k{color:#94a3b8;}
#tab-request .req-chip-v{font-weight:600;color:#0f172a;}
#tab-request .req-chip.is-empty .req-chip-v{color:#94a3b8;}
#tab-request .req-chip.is-terms{border-color:#93c5fd;}
#tab-request .req-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px;}
#tab-request .req-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px;}
#tab-request .req-body{display:flex;gap:24px;align-items:flex-start;}
#tab-request .req-main{flex:1;display:flex;flex-direction:column;gap:16px;min-width:0;}
#tab-request .req-side{width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:8px;}
#tab-request .req-input{height:38px;border:1px solid #cbd5e1;border-radius:6px;padding:0 12px;font-size:13px;color:#0f172a;background:#fff;width:100%;font-family:inherit;}
#tab-request .req-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe;}
#tab-request .req-input.is-error{border-color:#dc2626;}
#tab-request textarea.req-input{height:auto;min-height:70px;padding:10px 12px;resize:vertical;}
#tab-request .req-input-wrap{position:relative;}
#tab-request .req-input-wrap .req-input{padding-right:34px;}
#tab-request .req-input-x{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#f1f5f9;color:#64748b;width:20px;height:20px;border-radius:50%;font-size:14px;line-height:1;cursor:pointer;padding:0;display:none;font-family:inherit;}
#tab-request .req-input-x:hover{background:#e2e8f0;color:#334155;}
#tab-request .req-input-wrap.has-val .req-input-x{display:block;}
#tab-request .req-partner-row{display:flex;align-items:center;gap:8px;}
#tab-request .req-partner-row .req-input-wrap{flex:1;min-width:0;}
#tab-request .req-partner-row .req-input{flex:1;}
#tab-request .req-link{border:0;background:none;color:#2563eb;font-size:11.5px;font-weight:600;cursor:pointer;padding:0;font-family:inherit;white-space:nowrap;}
#tab-request .req-fwd-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
#tab-request .req-fwd-chip{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:8px 12px;font-size:12px;display:flex;align-items:center;gap:8px;}
#tab-request .req-fwd-chip.is-empty{border-style:dashed;color:#94a3b8;}
#tab-request .req-pill{color:#2563eb;font-size:10.5px;background:#eff6ff;padding:2px 6px;border-radius:999px;font-weight:600;}
#tab-request .req-warnbox{margin-top:14px;display:flex;align-items:flex-start;gap:10px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:10px 12px;font-size:12px;color:#78350f;line-height:1.6;}
#tab-request .req-warnbox input{margin-top:2px;accent-color:#d97706;width:15px;height:15px;flex-shrink:0;}
#tab-request .req-radios{display:flex;flex-wrap:wrap;gap:10px;font-size:12.5px;color:#334155;}
#tab-request .req-radio{display:flex;align-items:center;gap:6px;cursor:pointer;}
#tab-request .req-radio input{accent-color:#2563eb;}
#tab-request .req-preset-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
#tab-request .req-preset-row.req-preset-loc{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
#tab-request .req-preset-row.req-preset-loc .req-preset-add{grid-column:1/-1;justify-self:start;}
#tab-request .req-preset-item{display:flex;align-items:flex-start;gap:4px;min-width:0;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:4px 6px 4px 4px;}
#tab-request .req-preset-item.is-pin{border-color:#f0d9a8;background:#fffbeb;}
#tab-request .req-preset-chip{border:0;background:transparent;border-radius:6px;padding:6px 6px;font-size:12px;cursor:pointer;flex:1;min-width:0;overflow:visible;white-space:normal;word-break:keep-all;line-height:1.45;font-family:inherit;color:#0f172a;text-align:left;}
#tab-request .req-help-row{display:flex;align-items:baseline;gap:10px;margin-top:5px;flex-wrap:wrap;}
#tab-request .req-help-row .req-help{margin-top:0;}
#tab-request .req-preset-chip:hover{color:#1d4ed8;}
#tab-request .req-preset-star,#tab-request .req-preset-x{border:0;background:transparent;cursor:pointer;flex-shrink:0;line-height:1;padding:6px 4px;font-family:inherit;}
#tab-request .req-preset-star{font-size:13px;color:#cbd5e1;}
#tab-request .req-preset-star.on{color:#d97706;}
#tab-request .req-preset-x{font-size:14px;color:#94a3b8;}
#tab-request .req-preset-x:hover{color:#dc2626;}
#tab-request .req-preset-add{border:1px dashed #93c5fd;background:#fff;color:#2563eb;border-radius:8px;padding:8px 12px;}
#tab-request .req-hint-blue{margin-top:12px;display:inline-flex;align-items:center;gap:6px;background:#eff6ff;border-radius:6px;padding:6px 10px;font-size:11px;color:#1d4ed8;}
#tab-request .req-cc-btns{display:flex;gap:8px;margin-top:8px;}
#tab-request .req-cc-btns .btn-small{flex:1;text-align:center;}
#tab-request .req-actionbar{position:sticky;bottom:0;z-index:30;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:var(--navy);border:1px solid rgba(184,151,90,.18);border-top:2px solid rgba(184,151,90,.28);border-radius:10px;padding:14px 18px;box-shadow:0 -6px 16px rgba(8,17,30,.18);margin-top:4px;}
#tab-request .req-action-note{font-size:11px;color:rgba(236,232,225,.42);margin-right:auto;}
#tab-request .req-actionbar .req-btn-ghost{height:38px;padding:0 18px;border:1px solid rgba(236,232,225,.28);border-radius:6px;background:transparent;font-size:12.5px;font-weight:600;color:#ECE8E1;cursor:pointer;font-family:inherit;}
#tab-request .req-actionbar .req-btn-main{height:38px;padding:0 22px;background:var(--gold);border:0;border-radius:6px;font-size:12.5px;font-weight:700;color:var(--ink);cursor:pointer;font-family:inherit;}
#tab-request .req-actionbar .req-btn-main:disabled{opacity:.45;cursor:not-allowed;}
#tab-request .req-btn-ghost{height:38px;padding:0 18px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:12.5px;font-weight:600;color:#475569;cursor:pointer;font-family:inherit;}
#tab-request .req-btn-main{height:38px;padding:0 22px;background:#2563eb;border:0;border-radius:6px;font-size:12.5px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;}
#tab-request .req-btn-main:disabled{background:#93c5fd;cursor:not-allowed;}
#tab-request .req-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}
#tab-request .req-all-btn{border:0;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700;padding:4px 10px;border-radius:6px;cursor:pointer;font-family:inherit;}
#reqChipPopover{position:fixed;z-index:12000;display:none;background:#fff;border:1px solid #bfdbfe;border-radius:10px;box-shadow:0 8px 20px rgba(15,23,42,.10);padding:16px;width:280px;}
#reqChipPopover .pop-title{font-size:12.5px;font-weight:700;color:#0f172a;margin-bottom:8px;}
#reqChipPopover .pop-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;}
#reqChipPopover .pop-opt{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;padding:6px 4px;border-radius:6px;cursor:pointer;}
#reqChipPopover .pop-opt:has(input:checked){background:#eff6ff;color:#1d4ed8;font-weight:600;}
#reqChipPopover .pop-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid #f1f5f9;}
#reqChipPopover .pop-note{font-size:11px;color:#94a3b8;}
#reqChipAllModal .modal-content{width:640px;}
@media (max-width:1100px){
  #tab-request .req-body{flex-direction:column;}
  #tab-request .req-side{width:100%;position:static;}
  #tab-request .req-grid-3{grid-template-columns:1fr;}
}

