/* 수출·수입·컨설팅 화면. 사이드 메뉴와 표 칸의 내용·열·기능은 기존 것을 유지하고 모양만 시안에 맞춘다.
   폭 기준은 화면이 아니라 본문(.main-content = lounge-main)이다. 시안의 md 768 / lg 1025는 사이드 메뉴가 없는 화면 기준이라
   사이드 메뉴(256px)가 있는 본문에서는 표 8열이 들어가는 1200px부터 표로 둔다. */

.tab-content.ops-board {
  --ops-bg: #f4f5f7;
  --ops-card: #fff;
  --ops-ink: #16181d;
  --ops-ink-2: #374151;
  --ops-muted: #6b7280;
  --ops-faint: #9aa3af;
  --ops-line: #e5e7eb;
  --ops-line-soft: #eef0f3;
  --ops-navy: #0f172a;
  --ops-lime: #e4fbaa;
  --ops-lime-ink: #2f3d0c;
  --ops-warn: #d76a2f;
  --ops-warn-soft: #fff1e8;
  --ops-pad: 24px;
  --ops-row-pad: 20px;
  --ops-grid: 28px minmax(88px, .52fr) 100px minmax(110px, 1.2fr) minmax(252px, 1.29fr) minmax(164px, 1.04fr) 92px minmax(172px, 1.2fr);
  --ops-grid-consult: 28px 80px 96px 80px minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) 120px;
  --ops-gap: 16px;
}

/* 본문 폭·여백: 다른 메뉴(요청 1320px, 표 메뉴 36px 여백)와 같은 결로 두고 화면을 꽉 채우지 않는다. */
.main-content > .tab-content.ops-board,
html.lh-mobile .main-content > .tab-content.ops-board {
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 var(--ops-pad) 36px;
  box-sizing: border-box;
}
.tab-content.ops-board { display: none; }
.tab-content.ops-board.active { display: flex; }
.main-content:has(#tab-export.active),
.main-content:has(#tab-import.active),
.main-content:has(#tab-consulting.active) { background: var(--ops-bg, #f4f5f7); }

@container lounge-main (max-width: 479px) { .tab-content.ops-board { --ops-pad: 14px; } }
@container lounge-main (min-width: 480px) { .tab-content.ops-board { --ops-pad: 24px; } }
/* 좌우 여백은 CI/PL 작성 등 다른 표 메뉴와 같은 36px(본문 768px부터). 폭 제한 없이 본문을 따라간다. */
@container lounge-main (min-width: 768px) { .tab-content.ops-board { --ops-pad: 36px; } }
/* 표가 처음 나오는 1200~1359px은 8열이 들어가도록 여백만 한 단계 줄인다. */
@container lounge-main (min-width: 1200px) { .tab-content.ops-board { --ops-pad: 24px; --ops-row-pad: 14px; --ops-gap: 10px; } }
@container lounge-main (min-width: 1360px) { .tab-content.ops-board { --ops-pad: 36px; --ops-row-pad: 20px; --ops-gap: 14px; } }
@container lounge-main (min-width: 1420px) { .tab-content.ops-board { --ops-row-pad: 24px; --ops-gap: 16px; } }
@container lounge-main (min-width: 1480px) { .tab-content.ops-board { --ops-row-pad: 28px; --ops-gap: 20px; } }

/* ── 머리말 띠: 시안 WorkspaceHeader. 흰 띠 + 아래 줄, 큰 화면에서는 위에 붙는다. ── */
.ops-head {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 14px 0;
}
.ops-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -100vmax;
  right: -100vmax;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #e8eaee;
  backdrop-filter: blur(8px);
}
@container lounge-main (min-width: 1200px) { .ops-head { position: sticky; top: 0; } }
.ops-crumb { font-size: 12px; color: var(--ops-muted); }
.ops-crumb span { color: var(--ops-ink); font-weight: 500; }
.ops-crumb span::before { content: "›"; margin: 0 6px; color: var(--ops-faint); font-weight: 400; }
.ops-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ops-ink);
}
.ops-head p { margin: 2px 0 0; font-size: 14px; color: var(--ops-muted); }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ops-board .hy-act {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.ops-board .hy-act:hover { background: #f4f5f7; filter: none; }
.ops-board .hy-act:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(111, 134, 214, .35); }
.ops-board .ops-act-primary { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
.ops-board .ops-act-primary:hover { background: #1e293b; }
.ops-board .ops-sel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ops-board .ops-act-primary .ops-sel { background: rgba(255, 255, 255, .2); }
.ops-board .ops-sel[hidden] { display: none; }

/* ── 월 이동 (알약) ── */
.ops-board .hy-ym {
  align-items: center;
  height: 36px;
  padding: 0 4px;
  border-radius: 999px;
  background: #eef1f4;
  gap: 0;
}
.ops-board .hy-ym-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ops-ink);
  font-size: 16px;
}
.ops-board .hy-ym-btn:hover { border-color: transparent; color: var(--ops-ink); background: #e1e5ea; }
.ops-board .hy-ym input[type="month"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.ops-board .ops-month {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ops-ink);
}
.ops-board .ops-month span { pointer-events: none; }

/* ── 서브탭 (알약 막대) ── */
.ops-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  margin: 0;
  padding: 4px;
  overflow-x: auto;
  border: 0;
  border-radius: 999px;
  background: #fff;
}
.ops-tabs .sub-tab-btn {
  flex: none;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.ops-tabs .sub-tab-btn.active { background: var(--ops-navy); color: #fff; }
.ops-tabs .sub-tab-btn:hover:not(.active) { background: transparent; color: var(--ops-ink); }
.ops-tabs .sub-tab-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 134, 214, .5); }

/* ── 필터 카드 ── */
.ops-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 24px;
  background: #fff;
}
.ops-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ops-filters-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.ops-search-wrap { position: relative; width: min(320px, 100%); margin-left: auto; }
.ops-search-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.ops-search {
  width: 100%;
  height: 40px;
  min-width: 0;
  margin: 0;
  padding: 0 16px 0 38px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-bg);
  color: var(--ops-ink);
  font: inherit;
  font-size: 13px;
}
.ops-search::placeholder { color: var(--ops-faint); }
.ops-search:focus { outline: none; border-color: var(--ops-navy); background: #fff; box-shadow: 0 0 0 3px rgba(111, 134, 214, .25); }
.ops-attention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ops-warn-soft);
  color: var(--ops-warn);
  font-size: 12px;
  font-weight: 700;
}
.ops-attention::before {
  content: "";
  width: 14px;
  height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d76a2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 12v4M12 19h.01'/%3E%3C/svg%3E");
}
.ops-attention[hidden] { display: none; }
.ops-status { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-bg);
  color: var(--ops-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
/* 통관기록 쪽 나눔 */
.ops-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 20px 0 24px; }
.ops-pg {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  background: #fff;
  color: var(--ops-muted);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ops-pg:hover:not(.is-on):not(:disabled) { color: var(--ops-ink); background: #f4f5f7; }
.ops-pg.is-on { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; cursor: default; }
.ops-pg:disabled { opacity: .4; cursor: default; }
.ops-pg:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 134, 214, .5); }
.ops-pg-gap { padding: 0 2px; color: var(--ops-muted); }
.ops-chip:hover:not(.is-on) { color: var(--ops-ink); }
.ops-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 134, 214, .5); }
.ops-chip span { padding: 0 6px; border-radius: 999px; background: #e7eaee; font-size: 12px; font-variant-numeric: tabular-nums; }
.ops-chip.is-on { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
.ops-chip.is-on span { background: rgba(255, 255, 255, .16); }
#tab-consulting .ops-chip { background: #fff; }
#tab-consulting .ops-chip.is-on { background: var(--ops-navy); }

/* ── 컨설팅 요약 ── */
.ops-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ops-stat { padding: 16px 18px; border-radius: 24px; background: #fff; }
.ops-stat span { display: block; font-size: 12px; color: var(--ops-muted); }
.ops-stat b { display: block; margin-top: 4px; font-size: 24px; font-weight: 700; color: var(--ops-ink); font-variant-numeric: tabular-nums; }
.ops-stat b.is-warn { color: var(--ops-warn); }
@container lounge-main (min-width: 768px) { .ops-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container lounge-main (min-width: 1200px) { .ops-stat { padding: 20px 22px; } }

/* ── 표 카드 ── */
:is(#tab-export, #tab-import, #tab-consulting) .card.ops-sheet {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}
:is(#tab-export, #tab-import, #tab-consulting) .card.ops-sheet > div.ops-sheet-head:first-child {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.ops-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--ops-row-pad) 12px;
}
.ops-sheet-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ops-muted);
}
.ops-count { font-size: 14px; color: var(--ops-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-count b { font-weight: 700; color: var(--ops-ink); }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table { border: 0; border-radius: 0; background: transparent; }
:is(#tab-export, #tab-import, #tab-consulting) .table-responsive { overflow: visible; }

/* 줄 공통: 표(1200px~)에서는 8열 그리드, 그 아래는 카드. */
/* 표 바탕은 흰색 하나. 마우스를 올리거나 선택·상세가 열린 줄도 배경은 바꾸지 않는다. */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row,
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row:hover,
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row.is-open,
:is(#tab-export, #tab-import) table.hy-exp-table tbody tr.hy-row:has(input[type="checkbox"]:checked),
#tab-consulting table.hy-exp-table tbody tr.hy-row:has(input[type="checkbox"]:checked) { background: #fff; }

@container lounge-main (min-width: 1200px) {
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table { display: block; width: 100%; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table thead,
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody { display: block; width: 100%; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row {
    position: static;
    display: grid;
    grid-template-columns: var(--ops-grid);
    column-gap: var(--ops-gap);
    row-gap: 0;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 16px var(--ops-row-pad);
    border: 0;
    border-bottom: 1px solid #f1f2f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row:last-child { border-bottom: 0; border-radius: 0 0 24px 24px; }
  #tab-consulting table.hy-exp-table tr.hy-row { grid-template-columns: var(--ops-grid-consult); align-items: center; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row--head {
    align-items: start;
    margin-top: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid var(--ops-line);
    border-bottom: 1px solid var(--ops-line);
    background: #fff;
  }
  #tab-consulting table.hy-exp-table tr.hy-row--head { align-items: center; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row > * {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5),
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6) { padding: 0 !important; }
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-actions { flex-direction: column; flex-wrap: nowrap; }
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-btn { flex: 0 0 auto; }
  /* 빈 줄 안내는 가로로 가운데 */
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row > td[style*="grid-column"] { grid-column: 1 / -1; padding: 40px 0 !important; }
}

/* 카드: 1199px 이하. 480px 이상은 관리정보와 포워더가 나란히, 768px 이상은 카드 두 줄. */
@container lounge-main (max-width: 1199px) {
  :is(#tab-export, #tab-import, #tab-consulting) .card.ops-sheet {
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .ops-sheet-head,
  :is(#tab-export, #tab-import, #tab-consulting) .card.ops-sheet > div.ops-sheet-head:first-child { padding: 4px 4px 12px; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table,
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody { display: block; width: 100%; background: transparent; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table thead { display: none; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px 16px 14px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--ops-line-soft);
  }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row:has(input[type="checkbox"]:checked),
  :is(#tab-export, #tab-import) table.hy-exp-table tbody tr.hy-row.is-open { box-shadow: 0 0 0 2px rgba(15, 23, 42, .18); }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row > * { grid-column: 1 / -1; grid-row: auto; padding: 0; }

  /* 수출·수입 카드: 위에서부터 상태 → 거래처 → 날짜·담당자 → 관리정보/포워더 → 비고 → 작업 */
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(1) { position: absolute; top: 20px; left: 16px; z-index: 1; width: auto; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(2) { grid-row: 1; padding-left: 28px; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(4) { grid-row: 2; padding: 8px 0 0 28px; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(3) {
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 6px 0 12px 28px;
  }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(3) .hy-person { margin-top: 0; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5) { grid-row: 4; padding: 12px 0 8px; border-top: 1px solid var(--ops-line-soft); }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6) { grid-row: 5; padding: 8px 0 12px !important; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(8) { grid-row: 6; padding: 0 0 12px; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(7) { grid-row: 7; padding-top: 12px; border-top: 1px solid var(--ops-line-soft); }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5)::before,
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6)::before {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--ops-muted);
  }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5)::before { content: "관리정보"; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6)::before { content: "포워더 · 일정"; }
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-actions { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-actions > *,
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-cert-wrap { flex: 1 1 0; min-width: 0; }
  :is(#tab-export, #tab-import) table.hy-exp-table .hy-btn { flex: 1 1 0; }

  /* 컨설팅 카드 */
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(1) { position: absolute; top: 20px; left: 16px; z-index: 1; width: auto; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(2) { grid-row: 1; padding-left: 28px; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(3) { grid-row: 1; justify-self: end; margin-top: 4px; font-size: 12px; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(4) { grid-row: 2; padding: 10px 0 0; font-size: 12px; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(5) { grid-row: 3; padding: 2px 0 8px; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(6) { grid-row: 4; padding: 0 0 10px; color: var(--ops-muted); }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(7) { grid-row: 5; padding: 0 0 12px; }
  #tab-consulting table.hy-exp-table tr.hy-row > :nth-child(8) { grid-row: 6; padding-top: 12px; border-top: 1px solid var(--ops-line-soft); }
  #tab-consulting table.hy-exp-table tr.hy-row > td[style*="grid-column"],
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > td[style*="grid-column"] { position: static; grid-row: auto; padding: 40px 0 !important; border: 0; }
}
@container lounge-main (min-width: 480px) and (max-width: 1199px) {
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5) { grid-column: 1; grid-row: 4; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6) { grid-column: 2; grid-row: 4; padding: 12px 0 8px !important; border-top: 1px solid var(--ops-line-soft); }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(8) { grid-row: 5; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(7) { grid-row: 6; }
}
@container lounge-main (min-width: 768px) and (max-width: 1199px) {
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row { margin: 0; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tbody tr.hy-row:only-child { grid-column: 1 / -1; }
  /* 두 줄 카드는 폭이 좁으니 관리정보와 포워더를 위아래로 */
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row { grid-template-columns: minmax(0, 1fr); }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(6) { grid-column: 1 / -1; grid-row: 5; padding: 8px 0 12px !important; border-top: 0; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(8) { grid-row: 6; }
  :is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row > :nth-child(7) { grid-row: 7; }
  :is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table tr.hy-row > td[style*="grid-column"] { grid-column: 1 / -1; }
}
@container lounge-main (max-width: 479px) {
  .ops-head h2 { font-size: 18px; }
  .ops-actions { width: 100%; }
  .ops-actions .hy-act { flex: 1 1 calc(50% - 8px); }
  .ops-search-wrap { width: 100%; margin-left: 0; }
  .ops-tabs { width: 100%; }
  .ops-tabs .sub-tab-btn { flex: 1; padding: 0 12px; }
  .ops-filters { padding: 12px; border-radius: 24px; }
  .ops-stat { padding: 14px 16px; }
}
@container lounge-main (min-width: 480px) and (max-width: 1199px) {
  .ops-tabs { width: fit-content; }
}

/* ── 표 안쪽 모양: 칸·입력·핸들러는 그대로, 줄·뱃지·버튼만 시안 ── */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ops-muted);
  letter-spacing: 0;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-th-sub { font-size: 10px; font-weight: 400; color: var(--ops-faint); }

/* 상태 알약 */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #f1f2f4;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-통관중,
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-진행중,
#tab-import table.hy-exp-table .imp-declared { background: #e8ecfa; color: #3c4fb0; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-통관완료,
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-필증발급,
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .status-완료,
:is(#tab-export, #tab-import) table.hy-exp-table .status-정산완료,
#tab-import table.hy-exp-table .imp-accepted,
#tab-export table.hy-exp-table .exp-departed { background: var(--ops-lime); color: var(--ops-lime-ink); border: 0; }
:is(#tab-export, #tab-import) table.hy-exp-table .status-정정중,
:is(#tab-export, #tab-import) table.hy-exp-table .status-정정접수,
:is(#tab-export, #tab-import) table.hy-exp-table .status-정정완료,
:is(#tab-export, #tab-import) table.hy-exp-table .status-정산예정,
#tab-import table.hy-exp-table .imp-paid { background: var(--ops-warn-soft); color: #c2410c; border: 0; }
#tab-consulting table.hy-exp-table .status-접수 { background: #f1f2f4; color: var(--ops-muted); }
#tab-import table.hy-exp-table .imp-arrived { background: #eaeefc; color: #3c4fb0; }
#tab-import table.hy-exp-table .imp-warehoused { background: #f3eaff; color: #6d4ea8; }
#tab-import table.hy-exp-table .imp-cert { background: #fdecec; color: #c2362f; border: 0; }
:is(#tab-export, #tab-import) table.hy-exp-table .imp-scheduled { background: #f1f2f4; color: var(--ops-muted); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-insp-mark {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: #f08b55;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-insp-mark i { display: none; }

/* 날짜·담당자·거래처·인코텀즈 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date { padding-top: 2px; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-date-num,
#tab-consulting table.hy-exp-table td.hy-date { font-size: 13px; font-weight: 400; color: var(--ops-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-person {
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: var(--ops-muted);
  font-size: 11px;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date .hy-person { margin-top: 6px; font-size: 11px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date .hy-person svg { width: 11px; height: 11px; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-client { font-size: 14px; font-weight: 700; color: var(--ops-ink); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-inco { margin-top: 6px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-inco-val {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ops-warn-soft);
  color: var(--ops-warn);
  border-color: rgba(215, 106, 47, .3);
  font-size: 10px;
  font-weight: 700;
}

/* 관리정보(PO·INV·BL·신고번호) */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-block { gap: 2px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row { height: 28px; min-height: 28px; gap: 6px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-label { width: 48px; font-size: 11px; font-weight: 500; color: var(--ops-faint); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-label { width: 48px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-input { font-size: 13px; color: var(--ops-ink); border-bottom-color: #d4d9e0; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-input:focus { border-bottom: 1px solid var(--ops-navy); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-value { font-size: 13px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-value--locked { color: var(--ops-muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* 포워더·일정 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value {
  height: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value:focus-within { border-color: var(--ops-navy); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-atd .hy-date-value,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-ata .hy-date-value { border-color: #e07a3d; font-weight: 600; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-atd .hy-date-value > svg,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-ata .hy-date-value > svg { color: #e07a3d; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-atd .hy-mgmt-label,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row.is-ata .hy-mgmt-label { color: #e07a3d; font-weight: 700; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-val {
  height: 32px;
  min-width: 52px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  border-color: var(--ops-line);
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap { gap: 6px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap > div { height: 32px; min-height: 32px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap .editable-input {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ops-line) !important;
  background: #fff !important;
  color: var(--ops-ink);
  font-size: 13px;
  font-weight: 500;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap .editable-input:focus { border-color: var(--ops-navy) !important; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap .editable-input:placeholder-shown,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-readonly.is-empty {
  background: #fff4ec !important;
  border-color: #f6d3bc !important;
  color: var(--ops-warn);
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap .editable-input:placeholder-shown::placeholder { color: var(--ops-warn); font-style: normal; font-weight: 500; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-readonly {
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border-color: var(--ops-line);
  font-size: 13px;
  font-weight: 500;
}

/* 작업 버튼 */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-actions { gap: 6px; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn svg { width: 14px; height: 14px; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn--detail { background: #fff; border: 1px solid var(--ops-line); color: var(--ops-ink); }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn--detail:hover { background: #f4f5f7; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn--cert { background: var(--ops-lime); color: var(--ops-lime-ink); }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn--cert:hover { background: #d8f58e; }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn--cert-wait,
#tab-consulting table.hy-exp-table .hy-btn--empty { background: #f1f2f4; color: var(--ops-muted); border: 0; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-cert-hint { color: var(--ops-lime-ink); }

/* 비고: 한영(직원, 읽기)과 고객사(입력)는 나눈 채로 둔다 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-card { flex: 1 1 auto; border: 1px solid var(--ops-line); border-radius: 16px; background: #fff; padding: 10px 12px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-divider { margin: 8px 0; background: var(--ops-line-soft); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-input { background: transparent; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-label--staff { color: var(--ops-faint); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-label--customer { color: #b8863a; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-text { font-size: 13px; line-height: 1.5; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-input { font-size: 13px; overflow: hidden; field-sizing: content; }

/* 컨설팅 표 안쪽 */
#tab-consulting table.hy-exp-table .hy-svc { font-size: 13px; font-weight: 600; color: var(--ops-muted); }
#tab-consulting table.hy-exp-table .hy-remarks { font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--ops-ink); }
#tab-consulting table.hy-exp-table .hy-person {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f2f4;
  color: var(--ops-ink);
  font-size: 12px;
  white-space: nowrap;
}
#tab-consulting table.hy-exp-table .hy-person svg { width: 12px; height: 12px; color: var(--ops-muted); }
#tab-consulting table.hy-exp-table .hy-person--pick {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #f6d3bc;
  background: #fff4ec;
  color: var(--ops-warn);
  font-weight: 600;
}
#tab-consulting table.hy-exp-table .hy-person--pick svg { color: var(--ops-warn); stroke: var(--ops-warn); }
#tab-consulting table.hy-exp-table .hy-person-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }


/* ── 아이콘·입력칸: 시안(lucide) 그대로. 연필=수정 가능, 자물쇠=고정값, 복사, 달력, 운송수단 ── */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-ic { flex: none; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-row { height: 32px; min-height: 32px; gap: 8px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-mark { width: 12px; height: 12px; flex: 0 0 12px; color: rgba(107, 114, 128, .6); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-input { height: 32px; padding: 0; border-bottom: 1px dashed #d4d9e0; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-mgmt-value { height: 32px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: rgba(107, 114, 128, .7);
  transition: background .15s, color .15s;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-copy-icon:hover:not(:disabled) { background: #f1f2f4; color: var(--ops-ink); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-copy-icon:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 134, 214, .5); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-copy-icon.hy-copy-ok { color: var(--ops-lime-ink); }

/* 일정 날짜: 달력 아이콘 + 값. 비어 있으면 주황 "날짜 선택" */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-row,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap { height: 32px; min-height: 32px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value { height: 32px; min-height: 32px; gap: 6px; padding: 0 10px; border-radius: 8px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value > svg { color: var(--ops-muted); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value.is-empty { border-color: rgba(215, 106, 47, .4); background: var(--ops-warn-soft); color: var(--ops-warn); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value.is-empty > svg { color: var(--ops-warn); }

/* 운송수단: 해상(배) · 항공(비행기) · 특송(트럭) · 핸드캐리(가방) */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.oce .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.air .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.exp .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.hnd .hy-fwd-mode-val {
  gap: 4px;
  height: 32px;
  min-width: 60px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--ops-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-val .hy-ic { color: var(--ops-muted); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.empty .hy-fwd-mode-val { color: var(--ops-muted); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-menu { min-width: 0; padding: 6px; gap: 4px; flex-wrap: nowrap; border-radius: 12px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.oce.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.air.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.exp.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.hnd.on {
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt:hover { background: #f4f5f7; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.oce.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.air.on,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt.exp.on { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-opt input { display: none; }

/* 담당자·필증 아이콘 */
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-person .hy-ic { color: var(--ops-muted); }
:is(#tab-export, #tab-import, #tab-consulting) table.hy-exp-table .hy-btn .hy-ic { width: 14px; height: 14px; }

/* 헤더 버튼 아이콘 */
.ops-board .hy-act .hy-ic { margin: -2px 6px -2px 0; vertical-align: -3px; }

/* ── 비고 옆 화살표: 누르면 상세가 열린다 ── */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-wrap > .hy-memo-card { min-width: 0; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-row-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ops-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-row-go:hover { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-row-go:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(111, 134, 214, .5); }
:is(#tab-export, #tab-import) table.hy-exp-table tr.hy-row.is-open .hy-row-go { background: var(--ops-navy); border-color: var(--ops-navy); color: #fff; }

/* ── 일정: DOC·ETD·ETA는 가운데 정렬, 날짜 칸은 포워더 이름 칸과 왼쪽을 맞춘다 ──
   운송수단 칸(64px) + 간격(6px) = 포워더 이름 칸의 시작선. 라벨 칸도 같은 64px로 두고 가운데에 놓는다. */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-wrap { gap: 6px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.oce .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.air .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.exp .hy-fwd-mode-val,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.hnd .hy-fwd-mode-val { box-sizing: border-box; width: auto; min-width: 64px; padding: 0 8px; justify-content: center; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.oce .hy-fwd-mode-val { background: #e0f2fe; color: #0284c7; border-color: #7dd3fc; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.air .hy-fwd-mode-val { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.exp .hy-fwd-mode-val { background: #f3e8ff; color: #7e22ce; border-color: #d8b4fe; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.hnd .hy-fwd-mode-val { background: #fef3c7; color: #a16207; border-color: #fcd34d; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.oce .hy-fwd-mode-val .hy-ic,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.air .hy-fwd-mode-val .hy-ic,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.exp .hy-fwd-mode-val .hy-ic,
:is(#tab-export, #tab-import) table.hy-exp-table .hy-fwd-mode.hnd .hy-fwd-mode-val .hy-ic { color: currentColor; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-row { gap: 6px; align-items: center; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 32px;
  text-align: center;
  line-height: 1;
}


/* ── 일정 날짜 칸: 글자·칸을 줄이고 칸 사이에 숨 쉴 틈을 둔다 ── */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-row { height: 28px; min-height: 28px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-mgmt-label { height: 28px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-date-value {
  height: 24px;
  min-height: 24px;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-date-value > svg { width: 12px; height: 12px; }

/* 통관완료(필증 발급) 뱃지: 메인 초록 */
.status-badge.imp-cleared,
:is(#tab-export, #tab-import) table.hy-exp-table .imp-cleared,
#tab-home .lh-logi .imp-cleared,
#tab-home .hy-logi-table .imp-cleared { background: var(--ops-lime, #e4fbaa); color: var(--ops-lime-ink, #2f3d0c); border: 0; }

/* 카드: 필증 버튼(링크)이 세로 flex 안에서 눌리지 않게 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-actions,
:is(#tab-export, #tab-import) table.hy-exp-table a.hy-btn--cert { position: relative; z-index: 2; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-cert-wrap > .hy-btn { flex: 0 0 auto; width: 100%; height: 32px; min-height: 32px; pointer-events: auto; }

/* 상단바: 새로고침·로그아웃은 아이콘만, 메뉴명(크럼)은 숨김 — 햄버거가 보이는 폭 */
.lh-topbar .hy-tb-ic { flex: none; }
.lh-topbar .hy-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
@media (max-width: 1100px) {
  html .lh-topbar .lh-crumb { display: none; }
  html .lh-topbar { justify-content: flex-start; }
  html .lh-topbar .lh-top-right { margin-left: auto; }
  html .lh-topbar .hy-refresh { width: 36px; height: 36px; padding: 0; border-radius: 10px; font-size: 16px; line-height: 1; }
  html .lh-topbar .hy-refresh .hy-tb-txt { display: none; }
}
html.lh-mobile .lh-topbar .lh-crumb,
html.lh-tablet .lh-topbar .lh-crumb { display: none; }
html.lh-mobile .lh-topbar, html.lh-tablet .lh-topbar { justify-content: flex-start; }
html.lh-mobile .lh-topbar .lh-top-right, html.lh-tablet .lh-topbar .lh-top-right { margin-left: auto; }
html.lh-mobile .lh-topbar .hy-refresh,
html.lh-tablet .lh-topbar .hy-refresh { width: 36px; height: 36px; padding: 0; border-radius: 10px; font-size: 16px; line-height: 1; }
html.lh-mobile .lh-topbar .hy-refresh .hy-tb-txt,
html.lh-tablet .lh-topbar .hy-refresh .hy-tb-txt { display: none; }

/* 일정 날짜 뱃지: 날짜 선택 전/후, ATD·ATA 모두 같은 너비 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-schedule .hy-date-value { box-sizing: border-box; width: 80px; flex: 0 0 80px; justify-content: center; }
/* 댓글 @태그 */
.case-drawer .case-cmt-tagged { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.case-drawer .case-cmt-tagged span,
.case-drawer .case-cmt-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; background: #eaf0ff; color: #3c4fb0; font-size: 11px; font-weight: 700; }
.case-drawer .case-cmt-chip button { border: 0; background: transparent; color: inherit; font-size: 13px; line-height: 1; padding: 0; cursor: pointer; }
.case-drawer .case-cmt-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 2px; }
.case-drawer .case-cmt-tags[hidden], .case-drawer .case-cmt-pick[hidden], .case-drawer .case-cmt-note[hidden] { display: none; }
.case-drawer .case-cmt-pick { display: flex; flex-direction: column; max-height: 180px; overflow-y: auto; margin: 4px 10px 2px; border: 1px solid var(--cd-line, #e5e7eb); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.case-drawer .case-cmt-pick button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid #f1f2f4; background: transparent; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--cd-ink, #0f172a); cursor: pointer; }
.case-drawer .case-cmt-pick button:last-child { border-bottom: 0; }
.case-drawer .case-cmt-pick button:hover { background: #f4f6f8; }
.case-drawer .case-cmt-pick small { font-size: 11px; font-weight: 400; color: #8b93a1; }
.case-drawer .case-cmt-pick-empty { margin: 0; padding: 10px; font-size: 12px; color: #8b93a1; }
.case-drawer .case-cmt-foot .case-cmt-tagbtn { color: var(--cd-ink, #0f172a); }
.case-drawer .case-cmt-foot .case-cmt-tagbtn + .case-cmt-priv { margin-left: 4px; }
.case-drawer .case-cmt-note { padding: 0 10px 8px; font-size: 12px; color: #3c4fb0; }
.case-drawer .case-cmt-note.is-bad { color: #c2362f; }

/* 출항완료: 주황 뱃지 (정정중·세관결재의 연한 주황보다 한 단계 진하게) */
html .status-badge.exp-departed,
#tab-export table.hy-exp-table .exp-departed,
#tab-home .lh-logi .exp-departed,
#tab-home .hy-logi-table .exp-departed { background: #ffe2cf; color: #b8501c; border: 0; }

/* 수출 미출항 0건이면 경고색 대신 차분하게 */
.ops-attention.is-zero { background: #f1f2f4; color: var(--ops-muted); }
.ops-attention.is-zero::before { filter: grayscale(1); opacity: .6; }

/* ATD/ATA가 들어온 건의 빈 날짜 칸: 흰 배경 + 회색 글자·테두리로 존재감을 뺀다 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value.is-quiet { border-color: #dfe2e7; background: #fff; color: #a3a9b4; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-date-value.is-quiet > svg { color: #b4bac4; }

/* 비고 칸 상단: 첨부파일·댓글 개수 뱃지 */
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badges:empty { display: none; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badge:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); filter: brightness(.98); }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badge-ic { font-size: 13px; line-height: 1; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badge--file { background: #e8f3ff; color: #1f5fa8; }
:is(#tab-export, #tab-import) table.hy-exp-table .hy-memo-badge--cmt { background: #efeaff; color: #5b3fc0; }

/* 정산 날짜 회색 뱃지 (통관기록) */
.hy-settle-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: var(--ops-muted, #6b7280);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
