@charset "UTF-8";

/* Industry theme: the same core palette as Wage Intelligence. */
:root {
  color-scheme: dark;
  --bg: #10191e;
  --sidebar: #0c1418;
  --panel: #162228;
  --panel-light: #1b292f;
  --border: #2a383e;
  --text: #edf4f2;
  --muted: #8fa3a8;
  --dim: #657e86;
  --mint: #6be0bf;
  --mint-dark: #163d35;
  --amber: #e9bc79;
  --danger: #f0a38b;
  --radius: 16px;
  --font: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  /* Aliases used by the received Industry prototype. */
  --nav: var(--sidebar);
  --nav2: #142329;
  --ink: var(--text);
  --teal: var(--mint);
  --line: var(--border);
  --pale: #2d2921;
  --red: var(--danger);
  --blue: #8fb9cd;
}

html { background: var(--bg); scrollbar-color: #40565b var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #315e50; color: #fff; }
h1, h2, h3 { color: var(--text); font-weight: 600; }
a { color: var(--mint); }
a:hover { color: #b4f5df; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button, a, select, input, summary {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible,
.industry-provider a:focus-visible, #tradeQuery:focus {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

/* Retain the sidebar and responsive tab layout, including its native scroll. */
.side { background: var(--sidebar); color: var(--text); border-right: 1px solid #202d32; }
.brand { color: var(--text); font-weight: 650; }
.brand small { color: var(--muted); }
.brand > span[style*="#8dc8c0"] { color: var(--mint) !important; }
.side-label { color: var(--muted); }
.side-bottom { color: var(--muted); }
.side-bottom strong { color: #c6d9d2; }
.nav { scrollbar-color: #40565b var(--sidebar); }
.nav button { color: #9aacb1; min-height: 44px; }
.nav button:hover { background: #142329; color: var(--text); }
.nav button.active { background: #183029; color: var(--mint); border-left-color: var(--mint); }
.nav button.active:hover { background: #1c3b31; }
.nav button:active, .btn:active, .tabmini button:active, .industry-provider a:active {
  box-shadow: inset 0 0 0 1px #6be0bf66;
  background-color: #203d34;
}
.nav b { opacity: .85; }
.eyebrow { color: var(--mint); }
.date, .sub, .cap, .legend, .muted, .chart-hint { color: var(--muted); }
.crumb { color: #9eb6b6; }
.crumb strong { color: var(--text); }

.panel, .kpi {
  background: var(--panel);
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 22px #0000000d;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.panel:focus-within { border-color: #426459; }
.kpi-label { color: #b7cbca; }
.kpi-value { color: var(--text); font-weight: 550; letter-spacing: -.03em; }
.kpi-value small, .kpi-note { color: var(--muted); }
.kpis .kpi:first-child { background: linear-gradient(125deg, #1b3a35, #172c2b); border-color: #36564c; }
.kpis .kpi:first-child .kpi-value { color: #86edce; }
.kpis .kpi:first-child .kpi-label { color: #b1d0c6; }
.kpis .kpi:first-child .kpi-note { color: #9eb9ad; }
.smallbox, .empty { background: #111d23; color: #b4c8c6; border-color: #40565b; }
.smallbox strong { color: var(--text); }

/* The warning, verified-information and error meanings remain distinct. */
.notice { background: #2d2921; color: var(--amber); border-left-color: #b58a45; border-radius: 8px; }
.notice.info { background: #182e2c; color: #b7d5c9; border-left-color: #528e7b; }
.notice.danger { background: #302522; color: var(--danger); border-left-color: #c97c66; }
.pill { background: #213d35; color: var(--mint); border: 1px solid #3b5c52; }
.pill.warn { background: #2d2921; color: var(--amber); border-color: #62533c; }
.pill.gray, .method-badge { background: #1c2b31; color: #b0c2c5; border: 1px solid #35474e; }
.boundary-grid > div { background: #29271f; border-left-color: var(--amber); color: #ddcfb8; }
.revision, .audit-detail { border-color: var(--border); }
.revision .yr { color: var(--mint); }
.revision p, .audit-detail small { color: var(--muted); }
.audit-detail summary { color: #d3e3dd; border-radius: 4px; }
.audit-detail summary:hover { color: var(--mint); }
.audit-detail p { color: #b4c8c6; }
.event-dot { background: var(--muted); }
.event-dot.break { background: var(--danger); }
.event-dot.review { background: var(--amber); }
.event-dot.verified_overlap { background: var(--mint); }

label { color: #b4c4c7; }
select, input, input[type="file"] {
  background-color: #111c22;
  color: #dce6e5;
  border-color: #35464d;
  min-height: 44px;
}
select:hover, input:hover { border-color: #55706f; }
select:disabled { background: #152026; color: var(--muted); border-color: var(--border); }
select option { background: #111c22; color: #dce6e5; }
input::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { accent-color: var(--mint); }
.check input { min-height: 16px; }
input[type="file"]::file-selector-button {
  padding: 8px 12px;
  margin-right: 14px;
  border: 1px solid #3c5359;
  border-radius: 6px;
  background: #223238;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.btn { background: #223238; border-color: #3c5359; color: #d4e2e1; min-height: 44px; }
.btn:hover { filter: none; border-color: var(--mint); color: var(--mint); background: #243e3a; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: #0b241e; }
.btn.primary:hover { background: #91edcf; color: #0b241e; }
.btn.primary:active { background: #54caa9; }
.subtle-btn, .rowlink { color: var(--mint); }
.subtle-btn:hover, .rowlink:hover { color: #b4f5df; text-decoration: underline; text-underline-offset: 3px; }
.tabmini button { background: #111c22; color: #a9bcbe; border-color: #35464d; min-height: 36px; border-radius: 6px; }
.tabmini button:hover { border-color: #528e7b; color: var(--text); }
.tabmini button.on { background: #213d35; color: var(--mint); border-color: #528e7b; }

.table-wrap { scrollbar-color: #40565b #111c22; border-radius: 8px; }
table { color: #d5e2df; }
th { background: #1b2b31; color: #b4c9c8; }
th, td { border-color: var(--border); }
td .small { color: var(--muted); }
tbody tr { transition: background-color 140ms ease; }
tbody tr:hover { background: #1b2d30; }
tr.selected-row, tr.selected-row:hover { background: #203b33; }
tr.selected-row .subtle-btn { color: #96efd2; }
.table-wrap td[style*="color:#a03c34"] { color: var(--danger) !important; }

.bar-bg { background: #263b3b; }
.bar-fill { background: var(--mint); transition: width 240ms ease, background-color 160ms ease; }
.bar-val { color: #dceae5; }
.bar-row:hover .bar-fill { background: #9cf0d5; }
.bar-row.selected { background: #203b33; }

/* SVG presentation attributes can be themed without touching data or charts. */
.chart { overflow: visible; }
.chart text { fill: #9eb6b7; }
.chart [stroke="#e6edf1"], .chart [stroke="#e4eaed"] { stroke: var(--border); }
.chart [stroke="#647782"] { stroke: #758f93; }
.chart [stroke="white"] { stroke: var(--panel); }
.chart [stroke="#007e80"] { stroke: var(--mint); }
.chart [fill="#007e80"] { fill: var(--mint); }
.chart [stroke="#a6afb9"], .chart [stroke="#9aa8b1"] { stroke: #a1b4b8; }
.chart [fill="#a6afb9"], .chart [fill="#9aa8b1"] { fill: #a1b4b8; }
.chart [stroke="#6e8b9b"] { stroke: #8fb9cd; }
.chart [fill="#6e8b9b"] { fill: #8fb9cd; }
.chart [stroke="#b58a45"], .chart [stroke="#ad7330"], .chart [stroke="#b98530"] { stroke: var(--amber); }
.chart [fill="#b58a45"], .chart [fill="#ad7330"], .chart [fill="#b98530"] { fill: var(--amber); }
.chart [stroke="#ae4538"] { stroke: var(--danger); }
.chart [fill="#ae4538"] { fill: var(--danger); }
.chart circle { transition: filter 140ms ease, stroke-width 140ms ease; }
.chart circle:hover { filter: brightness(1.16); stroke-width: 2.5px; }
/* Narrow overrides are required for the received inline legend swatches. */
.legend i[style*="#007e80"] { background: var(--mint) !important; }
.legend i[style*="#a6afb9"], .legend i[style*="#9aa8b1"] { background: #a1b4b8 !important; }
.legend i[style*="#6e8b9b"] { background: #8fb9cd !important; }
.legend i[style*="#b58a45"], .legend i[style*="#ad7330"], .legend i[style*="#b98530"] { background: var(--amber) !important; }
.legend i[style*="#ae4538"] { background: var(--danger) !important; }

/* Corporate navigation and the full attribution stay visible on this surface. */
.industry-provider { background: var(--sidebar); color: #d9e9e2; border-bottom-color: var(--border); font-family: var(--font); }
.industry-provider strong { color: #bfd8cc; font-weight: 600; }
.industry-provider p span { color: var(--muted); }
.industry-provider a { background: #142329; color: #d4e2e1; border-color: #3c5359; min-height: 44px; }
.industry-provider a:hover { background: #213d35; border-color: #528e7b; color: var(--mint); }
.footer, .source { color: var(--muted); border-color: var(--border); }
.source a { color: var(--mint); }
#industry-source-attribution { padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.95; }
#industry-source-attribution a { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.live { background: #254d3e; color: #e5fff3; border: 1px solid #528e7b; box-shadow: 0 8px 28px #0005; }

@media (max-width: 720px) {
  .side { border-right: 0; border-bottom: 1px solid #202d32; }
  .nav button { min-height: 44px; border-radius: 7px; }
  .nav button.active { border-bottom-color: var(--mint); }
  .panel, .kpi { border-radius: 12px; }
  select, input:not([type="checkbox"]) { font-size: 16px; }
  .tabmini button { min-height: 44px; }
  .industry-provider strong { line-height: 1.8; }
  .industry-provider a { min-height: 44px; }
  .live { max-width: calc(100vw - 28px); width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
  button, a, select, input, summary, .panel, .kpi, tbody tr, .bar-fill, .chart circle {
    transition: none;
  }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --text: #183142; --ink: #183142; --muted: #475d66; --border: #c4cfd0; --mint: #00654e; --teal: #00654e; --panel: #fff; }
  html, body, .main, .panel, .kpi, .kpis .kpi:first-child, .smallbox, .empty,
  .industry-provider, .industry-provider a, .tabmini button, .tabmini button.on {
    background: #fff;
    color: #183142;
    box-shadow: none;
  }
  h1, h2, h3, .kpi-value, .kpis .kpi:first-child .kpi-value, .bar-val, .smallbox strong { color: #183142; }
  .kpi-label, .kpis .kpi:first-child .kpi-label, .kpi-note, .kpis .kpi:first-child .kpi-note,
  .audit-detail p, .audit-detail summary, .audit-detail small, .industry-provider strong,
  .industry-provider p span, .crumb { color: #475d66; }
  table { color: #183142; }
  th { background: #eef3f1; color: #304c49; }
  tbody tr:hover, tr.selected-row, tr.selected-row:hover { background: #eef5f1; }
  tr.selected-row .subtle-btn, .subtle-btn, .rowlink { color: #00654e; }
  .bar-bg { background: #e0e9e4; }
  .bar-bg, .bar-fill { print-color-adjust: exact; }
  .table-wrap, .finance-chart-wrap { overflow: visible; }
  .table-wrap[style*="max-height"] { max-height: none !important; }
  .finance-chart { min-width: 0; }
  .notice, .boundary-grid > div, .pill.warn { background: #fff8e9; color: #6f501e; }
  .notice.info, .pill { background: #edf7f2; color: #225c4b; }
  .notice.danger { background: #fff0eb; color: #823b26; }
  .pill.gray, .method-badge { background: #f0f4f3; color: #475d66; }
  .chart text { fill: #475d66; }
  .chart [stroke="#a6afb9"], .chart [stroke="#9aa8b1"] { stroke: #657782; }
  .chart [fill="#a6afb9"], .chart [fill="#9aa8b1"] { fill: #657782; }
  .chart [stroke="#6e8b9b"] { stroke: #426f88; }
  .chart [fill="#6e8b9b"] { fill: #426f88; }
  .chart [stroke="#b58a45"], .chart [stroke="#ad7330"], .chart [stroke="#b98530"] { stroke: #956313; }
  .chart [fill="#b58a45"], .chart [fill="#ad7330"], .chart [fill="#b98530"] { fill: #956313; }
  .chart [stroke="#ae4538"] { stroke: #a13b2c; }
  .chart [fill="#ae4538"] { fill: #a13b2c; }
  .legend i[style*="#a6afb9"], .legend i[style*="#9aa8b1"] { background: #657782 !important; }
  .legend i[style*="#6e8b9b"] { background: #426f88 !important; }
  .legend i[style*="#b58a45"], .legend i[style*="#ad7330"], .legend i[style*="#b98530"] { background: #956313 !important; }
  .legend i[style*="#ae4538"] { background: #a13b2c !important; }
  .table-wrap td[style*="color:#a03c34"] { color: #823b26 !important; }
}
