/* ITC-HS Code page — scoped under .itc-hs-page */
.itc-hs-page .vt-search-section {
  background-color: #093d6e;
  background-image: linear-gradient(135deg, #0c5496 0%, #093d6e 100%);
  padding: 24px 0 22px;
  position: relative;
  overflow: hidden;
}

.itc-hs-page {
  --itc-blue: #0c5496;
  --itc-blue-dark: #093d6e;
  --itc-blue-light: #e8f1fb;
  --itc-yellow: #f4b916;
  --itc-border: #e4e3dc;
  --itc-bg: #f7f6f2;
  --itc-text: #1a1a18;
  --itc-muted: #888;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--itc-text);
  font-size: 13px;
  background: #fff;
}

.itc-hs-page .itc-hero-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 14px;
}

.itc-hs-page .itc-hero-heading {
  flex: 1 1 280px;
  min-width: 0;
}

.itc-hs-page .itc-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
  justify-content: flex-end;
  align-items: stretch;
  margin-top: 0;
}

.itc-hs-page .itc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  min-height: 68px;
  min-width: 88px;
  flex: 0 0 auto;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.itc-hs-page .itc-stat:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.itc-hs-page .itc-stat-icon {
  font-size: 14px;
  color: var(--itc-yellow);
  margin-bottom: 2px;
  opacity: 0.95;
}

.itc-hs-page .itc-stat .n {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.itc-hs-page .itc-stat .l {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.itc-hs-page .itc-hero-filter-wrap {
  position: relative;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
}

.itc-hs-page .itc-hero-filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8492a6;
  font-size: 14px;
  pointer-events: none;
}

.itc-hs-page .itc-hero-filter {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--itc-text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.itc-hs-page .itc-hero-filter:focus {
  border-color: var(--itc-yellow);
  box-shadow: 0 0 0 3px rgba(244, 185, 22, 0.25);
}

.itc-hs-page .itc-hero-filter::placeholder {
  color: #999;
}

.itc-hs-page .itc-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  line-height: 1.4;
}

.itc-hs-page .itc-browse-section {
  padding: 0 0 40px;
  background: var(--itc-bg);
}

.itc-hs-page .itc-browse-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 25px;
  padding-bottom: 0;
}

.itc-hs-page .itc-browse {
  display: flex;
  min-height: clamp(420px, calc(100vh - 300px), 720px);
  overflow: hidden;
  border: 1px solid var(--itc-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(12, 84, 150, 0.06);
}

.itc-hs-page .itc-bcol {
  flex: 0 0 200px;
  border-right: 1px solid var(--itc-border);
  overflow-y: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.itc-hs-page .itc-bcol-h {
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--itc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--itc-bg);
  border-bottom: 1px solid #e8e7e0;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.itc-hs-page .itc-bcol-h > i.fa-solid {
  font-size: 11px;
  color: var(--itc-blue);
  opacity: 0.85;
}

.itc-hs-page .itc-back-btn {
  display: none;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--itc-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.itc-hs-page .itc-back-btn i {
  font-size: 10px;
}

.itc-hs-page .itc-back-btn:hover {
  text-decoration: underline;
}

.itc-hs-page .bitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f4f0;
  line-height: 1.35;
  transition: background 0.15s ease;
}

.itc-hs-page .bitem-label {
  flex: 1;
  min-width: 0;
}

.itc-hs-page .bitem:hover {
  background: #f5f4f0;
}

.itc-hs-page .bitem.on {
  background: var(--itc-blue-light);
}

.itc-hs-page .bitem.itc-dim {
  opacity: 0.45;
}

.itc-hs-page .bi-code {
  font-weight: 700;
  font-size: 11px;
  min-width: 36px;
  flex-shrink: 0;
  padding-top: 1px;
}

.itc-hs-page .itc-bdetail {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  background: var(--itc-bg);
  min-width: 0;
}

.itc-hs-page .itc-detail-title {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  padding-left: 10px;
  border-left: 4px solid var(--itc-blue);
  line-height: 1.3;
}

.itc-hs-page .meta {
  font-size: 11px;
  color: var(--itc-muted);
  margin-bottom: 12px;
}

.itc-hs-page .ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.itc-hs-page .ch-card {
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid var(--itc-border);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.itc-hs-page .ch-card:hover {
  border-color: var(--itc-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 84, 150, 0.08);
}

.itc-hs-page .cc-num {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.itc-hs-page .cc-desc {
  font-size: 12px;
  color: #444;
  line-height: 1.3;
}

.itc-hs-page .cc-meta {
  font-size: 10px;
  color: #bbb;
  margin-top: 3px;
}

/* Accordion */
.itc-hs-page .acc {
  margin-bottom: 3px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--itc-border);
}

.itc-hs-page .acc-h,
.itc-hs-page .a6h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.15s ease;
}

.itc-hs-page .a6h {
  padding: 7px 12px 7px 26px;
  font-size: 12px;
  background: #faf9f6;
  border-bottom: 1px solid #f0efe8;
}

.itc-hs-page .acc-h:hover {
  background: #f7f6f2;
}

.itc-hs-page .a6h:hover {
  background: #f2f1ec;
}

.itc-hs-page .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  flex-shrink: 0;
  color: #aaa;
  transition:
    transform 0.18s ease,
    color 0.15s ease;
  line-height: 1;
}

.itc-hs-page .arr i {
  font-size: 10px;
}

.itc-hs-page .arr.o {
  transform: rotate(90deg);
  color: var(--itc-blue);
}

.itc-hs-page .a-code {
  font-weight: 700;
  min-width: 56px;
  font-size: 11px;
  flex-shrink: 0;
}

.itc-hs-page .a6h .a-code {
  color: #666;
  font-size: 11px;
}

.itc-hs-page .a-desc {
  color: #333;
  flex: 1;
  line-height: 1.35;
  text-align: left;
  min-width: 0;
}

.itc-hs-page .a-cnt {
  font-size: 10px;
  color: #bbb;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.itc-hs-page .acc-b,
.itc-hs-page .a6b {
  display: none;
  border-top: 1px solid #eeede6;
}

.itc-hs-page .acc-b.o,
.itc-hs-page .a6b.o {
  display: block;
}

.itc-hs-page .a6b {
  border-bottom: 1px solid #f0efe8;
}

.itc-hs-page .t8 {
  width: 100%;
  border-collapse: collapse;
}

.itc-hs-page .t8 tr:last-child td {
  border-bottom: none;
}

.itc-hs-page .t8 td {
  padding: 5px 10px 5px 38px;
  font-size: 11px;
  border-bottom: 1px solid #f5f4f0;
  vertical-align: middle;
  line-height: 1.35;
}

.itc-hs-page .itc-t8-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-weight: 700;
  color: #555;
  min-width: 96px;
  white-space: nowrap;
}

.itc-hs-page .itc-t8-desc {
  color: #333;
}

.itc-hs-page .itc-t8-actions {
  text-align: right;
  white-space: nowrap;
  padding-right: 8px !important;
  width: 1%;
}

.itc-hs-page .acc-h-wrap,
.itc-hs-page .a6h-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.itc-hs-page .acc-h-wrap .acc-h,
.itc-hs-page .a6h-wrap .a6h {
  flex: 1;
  min-width: 0;
}

.itc-hs-page .itc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--itc-blue);
  background: var(--itc-blue);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  line-height: 1.3;
}

.itc-hs-page .itc-view-btn i {
  font-size: 9px;
}

.itc-hs-page .itc-view-btn:hover {
  background: var(--itc-blue-dark);
  border-color: var(--itc-blue-dark);
  color: #fff;
}

.itc-hs-page .itc-placeholder,
.itc-hs-page .itc-empty {
  color: #ccc;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
}

.itc-hs-page #itc-b-chcol {
  display: none;
}

.itc-hs-page #itc-b-chcol.itc-ch-visible {
  display: flex;
}

@media (min-width: 768px) {
  .itc-hs-page .itc-bcol,
  .itc-hs-page .itc-bdetail {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto;
  }

  .itc-hs-page .itc-bdetail {
    flex: 1;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .itc-hs-page .itc-bcol {
    flex: 0 0 170px;
  }

  .itc-hs-page .itc-hero-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .itc-hs-page .itc-hero-top-row {
    flex-direction: column;
  }

  .itc-hs-page .itc-hero-stats {
    width: 100%;
    justify-content: stretch;
  }

  .itc-hs-page .itc-stat {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 64px;
    padding: 8px 6px;
  }

  .itc-hs-page .itc-stat .n {
    font-size: 14px;
  }
}

/* Mobile drill-down */
@media (max-width: 767px) {
  .itc-hs-page .itc-back-btn {
    display: inline;
  }

  .itc-hs-page .itc-browse {
    position: relative;
    min-height: 480px;
  }

  .itc-hs-page .itc-bcol,
  .itc-hs-page .itc-bdetail {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    border-right: none;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }

  .itc-hs-page .itc-bdetail {
    padding: 14px 12px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }

  .itc-hs-page .itc-mobile-step--sec .itc-bcol#itc-b-secs-col {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .itc-hs-page .itc-mobile-step--sec .itc-bcol#itc-b-chcol,
  .itc-hs-page .itc-mobile-step--sec .itc-bdetail {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }

  .itc-hs-page .itc-mobile-step--ch .itc-bcol#itc-b-secs-col {
    transform: translateX(-30%);
    opacity: 0;
    pointer-events: none;
  }

  .itc-hs-page .itc-mobile-step--ch .itc-bcol#itc-b-chcol.itc-ch-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .itc-hs-page .itc-mobile-step--ch .itc-bdetail {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }

  .itc-hs-page .itc-mobile-step--det .itc-bcol {
    transform: translateX(-30%);
    opacity: 0;
    pointer-events: none;
  }

  .itc-hs-page .itc-mobile-step--det .itc-bdetail {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .itc-hs-page .ch-grid {
    grid-template-columns: 1fr;
  }

  .itc-hs-page .itc-t8-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .itc-hs-page .itc-ie-btn {
    margin-left: 0;
    width: 64px;
  }

  .itc-hs-page .t8 td {
    padding-left: 20px;
  }
}
