:root {
  color-scheme: light;
  --background: #edf2f6;
  --surface: #fff;
  --surface-soft: #f7fafc;
  --surface-strong: #eef5f8;
  --ink: #071a33;
  --muted: #5d6b7c;
  --line: #d7e1ea;
  --line-strong: #b8c8d7;
  --primary: #1769d2;
  --heading: #071a33;
  --navy: #071a33;
  --teal: #00806f;
  --green: #13a36f;
  --orange: #e99a16;
  --red: #d83a3a;
  --radius: 24px;
  --shadow: 0 0 0 1px #17171703, 0 1px 3px #0000000d, 0 1px 2px -1px #0000000d;
  --font-site: Geist, Inter, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-site);
}
/* Base e controles compartilhados. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--background); color: var(--ink); font: 14px/1.5 var(--font-site); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
select { width: 100%; min-height: 46px; padding: 10px 32px 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); color: var(--ink); cursor: pointer; }
select:hover { border-color: var(--line-strong); }
select:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* Filtros recolhiveis; a preferencia continua armazenada pelo JavaScript. */
.app-shell { position: relative; display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .28s ease; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 32px 22px; display: flex; flex-direction: column; background: var(--surface-soft); border-right: 1px solid var(--line); transition: opacity .2s, transform .28s; }
.sidebar-title { color: var(--heading); display: flex; align-items: center; gap: 10px; padding: 2px 7px 26px; border-bottom: 1px solid var(--line); font-weight: 600; }
.filter-grid { display: grid; gap: 26px; margin-top: 28px; }
.filter-group { display: grid; gap: 11px; min-width: 0; }
.filter-label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.clear-button { margin-top: auto; min-height: 46px; padding: 11px 12px; display: flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid var(--primary); border-radius: 18px; background: var(--primary); color: #fff; font-weight: 500; }
.clear-button:hover { background: var(--heading); }
.filters-toggle { position: fixed; z-index: 90; top: 100px; left: 202px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); transition: left .28s ease; }
.filters-toggle:hover { background: var(--surface-strong); }
.filters-toggle svg { transition: transform .28s; }
.filters-collapsed { grid-template-columns: 48px minmax(0, 1fr); }
.filters-collapsed .sidebar { padding-inline: 0; border: 0; visibility: hidden; opacity: 0; transform: translateX(-100%); pointer-events: none; }
.filters-collapsed .filters-toggle { left: 6px; }
.filters-collapsed .filters-toggle svg { transform: rotate(180deg); }
/* Entete e navegacao das duas abas. */
.dashboard { min-width: 0; padding: 32px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; }
.page-header h1 { color: var(--heading); margin: 0 0 14px; font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -.05em; }
.page-header p { margin: 0; color: var(--muted); }
.header-meta { display: flex; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 20px; }
.company-logo { width: 120px; height: auto; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.last-update { min-width: 206px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.last-update strong { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.error-banner { margin-bottom: 16px; padding: 14px 20px; border: 1px solid var(--red); border-radius: 18px; color: #b92731; background: var(--surface); }
.dashboard-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.dashboard-tab { min-height: 46px; padding: 11px 24px; border: 1px solid transparent; border-radius: 18px; color: var(--ink); background: var(--surface-strong); font-weight: 500; }
.dashboard-tab:hover { background: #e0ecf6; }
.dashboard-tab[aria-selected="true"] { background: var(--primary); color: #fff; }
/* Indicadores e paineis: superficies neutras, bordas finas e elevacao discreta. */
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.kpi-card { --accent: var(--primary); min-width: 0; min-height: 112px; padding: 20px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.kpi-card > div { min-width: 0; }
.kpi-card span:not(.kpi-icon) { display: block; color: var(--muted); font-size: 14px; }
.kpi-card strong { display: block; margin-top: 6px; color: var(--accent); font-size: 38px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); }
.kpi-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

.kpi-blue { --accent: var(--primary); }
.kpi-green { --accent: var(--green); }
.kpi-orange { --accent: #b66b00; }
.kpi-red { --accent: var(--red); }
.kpi-teal { --accent: var(--teal); }
.quality-money strong { font-size: clamp(20px, 1.3vw, 23px); white-space: nowrap; }
.content-grid { display: grid; gap: 22px; margin-bottom: 24px; }
.top-grid { grid-template-columns: 1.02fr 1.08fr 1fr; }
.bottom-grid { grid-template-columns: 1.65fr 1fr; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin: 0; padding: 20px 24px 12px; color: var(--heading); font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.panel h2 span { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.chart-box { position: relative; height: 274px; padding: 8px 20px 20px; }
.chart-status { padding: 8px 18px 20px; }
.monthly-chart { height: 326px; padding: 10px 24px 25px; }
/* Comparativo de faturamento, sem alterar seus calculos. */
.billing-panel { padding-bottom: 12px; }
.billing-panel h2 { margin-bottom: 20px; }
.billing-row { display: grid; grid-template-columns: 94px minmax(70px, 1fr) minmax(106px, auto); align-items: center; gap: 10px; padding: 0 24px; margin-bottom: 23px; color: var(--muted); }
.billing-row strong { color: var(--ink); font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing-track { height: 20px; overflow: hidden; border-radius: 18px; background: var(--surface-strong); }
.billing-bar { height: 100%; width: 0; border-radius: 18px; transition: width .5s ease; }
.billing-bar.meta { background: var(--primary); }
.billing-bar.progress { background: var(--teal); }
.billing-bar.actual { background: var(--teal); }
.achievement .billing-track { height: 12px; }
.achievement strong { font-size: 24px; }
.meta-note { margin: -10px 24px 0; color: var(--muted); font-size: 14px; }
/* Tabelas mantem rolagem propria em telas pequenas. */
.attention-panel { display: flex; flex-direction: column; }
.attention-panel .table-scroll { max-height: 296px; padding: 0 15px; overflow: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 14px; }
th { padding: 12px 9px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; text-transform: uppercase; letter-spacing: .01em; }
td { padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
tbody tr:hover { background: var(--surface-soft); }
.badge { display: inline-block; min-width: 82px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); color: var(--navy); font-size: 12px; font-weight: 500; text-align: center; white-space: nowrap; }
.badge-done { background: #e5f6f1; color: #0d7852; border-color: #caeadf; }
.badge-progress { background: #fff1db; color: #965900; border-color: #f4dfbd; }
.badge-pending, .badge-overdue { background: #fee9eb; color: #b92731; border-color: #f6d0d3; }
.date-overdue, .date-soon { font-weight: 500; }
.empty-row { padding: 30px 10px; color: var(--muted); text-align: center; }
.link-button { width: 100%; min-height: 46px; margin-top: auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.link-button:hover { background: var(--surface-soft); }
.link-button span { font-size: 25px; line-height: 12px; }
/* Detalhamento de acoes e indicadores de qualidade. */
.actions-modal { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 42px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #00000030; }
.actions-modal::backdrop { background: #00000066; }
.modal-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0 0 3px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.modal-header p { margin: 0; color: var(--muted); }
.modal-header button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); color: var(--ink); }
.modal-header button:hover { background: #e0ecf6; }
.modal-table { max-height: calc(100vh - 180px); padding: 0 20px 20px; overflow: auto; scrollbar-width: thin; }
.modal-table th { position: sticky; z-index: 1; top: 0; }
.quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-monthly-grid { grid-template-columns: minmax(0, 1fr); }
.production-monthly-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px; }
.production-monthly-heading h2 { padding: 0; margin-bottom: 6px; font-size: 24px; }
.production-monthly-heading p { margin: 0; color: var(--muted); }
.production-partial { border-radius: 20px; padding: 7px 12px; color: #975400; background: #fff0d3; font-size: 13px; }
.production-mini-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 0 24px; }
.production-mini { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb,var(--chart-color) 5%,white); padding: 16px; }
.production-mini-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.production-mini-heading h3 { margin: 4px 0 0; font-size: 17px; }
.production-mini-heading h3::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--chart-color); margin-right: 8px; }
.production-mini-heading > div { text-align: right; flex-shrink: 0; }
.production-mini-heading strong { display: block; font-size: 25px; font-variant-numeric: tabular-nums; }
.production-mini-heading span { color: var(--muted); font-size: 12px; }
.production-mini-scale { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.production-mini-canvas { position: relative; height: 230px; margin-top: 6px; }
@media(max-width:1200px){.production-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.production-mini-grid{grid-template-columns:minmax(0,1fr);padding:0 16px;gap:16px;}.production-monthly-heading{padding:20px 16px;}}
.production-composition { margin-bottom: 24px; }
.production-component-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 0 24px 24px; }
.production-component-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-soft); }
.production-component-card strong { display: block; font-size: 30px; margin: 8px 0; color: var(--primary); }
.production-component-card small { color: var(--muted); }
.production-mould-list { display: grid; gap: 24px; margin-bottom: 24px; }
.production-toolbar label { min-width: 0; }
.production-toolbar select { text-overflow: ellipsis; }
.production-mould-card { overflow: hidden; }
.production-mould-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px; }
.production-mould-heading h2 { padding: 0; margin: 0; font-size: 27px; }
.production-mould-icon { width: 68px; height: 68px; flex-shrink: 0; display: grid; place-items: center; color: var(--primary); background: #eaf2ff; border-radius: 16px; }
.production-mould-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.production-mould-description { padding: 0 24px; margin: 0 0 8px; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.production-mould-meta { margin: 0 24px 24px; color: var(--muted); }
.production-mould-badge { display: inline-block; background: var(--primary); color: #fff; border-radius: 9px; padding: 7px 12px; font-size: 14px; }
.production-mould-card h3 { margin: 0 24px 20px; padding-left: 12px; border-left: 4px solid var(--primary); font-size: 19px; }
.production-component-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.production-component-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.production-component-name svg { width: 23px; height: 23px; flex-shrink: 0; fill: none; stroke: var(--primary); stroke-width: 1.7; }
.production-outside { margin-bottom: 24px; }
.production-outside .production-component-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.production-outside .production-component-card strong { font-size: 16px; }
.production-outside .production-component-name { font-size: 15px; }
@media (max-width: 1200px) { .production-component-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .production-component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; } .production-mould-heading { padding: 16px; } .production-mould-heading h2 { font-size: 23px; } }
@media (max-width: 420px) { .production-component-grid { grid-template-columns: 1fr; } }
.production-kpi-note { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.production-category { cursor: pointer; text-align: left; width: 100%; font-family: inherit; }
.production-category-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
@media(max-width:1450px){.production-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.production-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:420px){.production-category-grid{grid-template-columns:1fr;}}
.production-category:hover, .production-category[aria-expanded="true"] { border-color: var(--primary); background: #eaf2ff; }
.production-category[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--primary); }
.production-category small { display: block; margin-top: 12px; color: var(--primary); }
.production-category:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.production-details { margin-bottom: 24px; }
.production-details-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; padding-right: 20px; }
.production-item-list { padding: 12px 24px 24px; display: grid; gap: 12px; }
.production-accordion { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.production-accordion summary { padding: 18px; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.production-accordion summary span { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.production-accordion[open] { border-left: 5px solid var(--primary); }
.production-accordion[open] summary { background: #eaf2ff; }
.production-component-heading { margin: 20px 24px; }
.production-item-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.production-origins { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13px; }
.production-origin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.production-origin-client { flex: 1 1 260px; overflow-wrap: anywhere; }
.production-origin-os,.production-origin-month,.production-origin-quantity { white-space: nowrap; }
.production-origin-quantity { font-weight: 600; min-width: 60px; text-align: right; }
.production-accordion > .production-origins { margin: 0 18px 18px; }
.production-item-row span { overflow-wrap: anywhere; }
.production-item-row strong { white-space: nowrap; color: var(--primary); }
@media(max-width:700px){.production-accordion summary,.production-item-row{align-items:flex-start;flex-direction:column;}.production-item-list{padding:12px;}}
.production-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 20px 24px; margin-bottom: 16px; }
.production-toolbar label { flex: 1 1 160px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.production-toolbar select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
#painel-producao .kpi-card strong { font-variant-numeric: tabular-nums; }
.quality-chart { height: 300px; padding-top: 18px; }
.quality-detail-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-right: 24px; }
.quality-detail-header label { flex: 0 1 360px; min-width: 0; margin: 12px 0 0 24px; }
.quality-detail .table-scroll { overflow: auto; padding: 0 20px 20px; }
.quality-detail td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quality-note { margin: 12px 24px; color: var(--muted); font-size: 14px; }
.quality-notice, .quality-notes { margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.quality-notes { margin-top: 16px; }
.quality-notes summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.quality-notes li { margin-top: 6px; }
/* Ajustes para notebooks, tablets e celulares. */
@media (max-width: 1450px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-grid { grid-template-columns: 1fr 1fr; }
  .billing-panel { grid-column: span 2; }
  .page-header h1 { font-size: 36px; }
}
@media (max-width: 960px) {
  .app-shell { display: block; }
  .filters-toggle { top: 12px; right: 14px; left: auto; }
  .filters-collapsed .filters-toggle { right: auto; left: 12px; }
  .filters-collapsed .sidebar { display: none; }
  .filters-collapsed .dashboard { padding-top: 72px; }
  .sidebar { position: static; height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-title { padding-bottom: 12px; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
  .clear-button { width: 190px; margin: 0; align-self: flex-end; }
  .dashboard { padding: 24px 20px; }
  .page-header { align-items: flex-start; }
  .header-meta { flex-direction: column; gap: 12px; align-items: flex-end; }
  .bottom-grid, .quality-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .filter-grid, .kpi-grid, .top-grid { grid-template-columns: 1fr; }
  .billing-panel { grid-column: auto; }
  .dashboard { padding-inline: 16px; }
  .page-header { flex-direction: column; }
  .page-header h1 { font-size: 30px; }
  .header-meta { width: 100%; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 8px; }
  .company-logo { width: 96px; }
  .last-update { min-width: 0; font-size: 12px; }
  .last-update strong { font-size: 12px; }
  .dashboard-tab { flex: 1 1 100%; }
  .billing-row { grid-template-columns: 82px minmax(0, 1fr); }
  .billing-row strong { grid-column: 2; text-align: left; }
  .monthly-chart { height: 310px; padding-inline: 12px; }
  .quality-detail-header { padding-bottom: 8px; }
  .chart-status { height: 310px; }
}
@media (prefers-contrast: more) {
  :root { --line: #737373; --line-strong: #525252; --muted: #525252; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; }
  .app-shell { display: block; }
  .sidebar, .filters-toggle { display: none; }
  .dashboard { padding: 0; }
  .kpi-card, .panel { box-shadow: none; break-inside: avoid; }
}


/* Prévia isolada: aparência do modelo gerencial sobre o painel existente. */
:root { --ink:#071a33; --muted:#5d6b7c; --line:#d7e1ea; --surface:#fff; --shadow:0 1px 3px #0000000d; --radius-xl:24px; --radius-lg:24px; }
body { background:#edf2f6; font-family:Geist,Inter,"Segoe UI",Arial,sans-serif; }
body *,body *::before,body *::after { animation:none!important; }
.site-header { background:transparent; border:0; min-height:0; }
.site-header::before,.site-header__grid { display:none; }
.header-inner { min-height:0; padding:32px 32px 24px; align-items:center; }
.eyebrow { font-weight:500; color:#5d6b7c; font-size:12px; }
h1 { margin:10px 0 14px; font-size:48px; font-weight:600; letter-spacing:-.05em; }
.header-subtitle { color:#5d6b7c; }
.header-actions { align-self:center; }
.brand-lockup { background:transparent; border:0; box-shadow:none; padding:0; }
.brand-lockup img { width:120px; height:auto; filter:grayscale(1); mix-blend-mode:multiply; }
.updated-card { border-radius:18px; background:#f7fafc; box-shadow:none; border:1px solid #d7e1ea; }
.updated-card::before { display:none; }
.updated-card__date { font-weight:500; }
.page-shell { width:calc(100% - 64px); max-width:none; margin:0 32px; }
.app-tabs { width:100%; border:0; border-bottom:1px solid #d7e1ea; background:transparent; border-radius:0; box-shadow:none; gap:8px; padding:0 0 20px; margin:0 0 24px; }
.app-tab { border-radius:18px; padding:11px 24px; font-weight:500; background:#eef5f8; min-height:46px; }
.app-tab.is-active { background:#1769d2; box-shadow:none; }
.overview-panel { padding:0; background:transparent; border:0; box-shadow:none; }
.section-kicker { font-size:12px; font-weight:500; color:#5d6b7c; letter-spacing:.02em; }
.overview-panel h2,.workspace h2 { font-size:24px; font-weight:600; padding:0; margin:5px 0 0; }
.overview-panel h2::after,.workspace h2::after { display:none; }
.summary-cards { gap:18px; margin:20px 0 24px; }
.summary-card,.summary-card--total { background:white; border:1px solid #d7e1ea; border-radius:24px; padding:20px; box-shadow:0 1px 3px #0000000d; min-height:145px; }
.summary-card::after { display:none; }
.summary-card__machine,.summary-card--total .summary-card__machine { font-size:15px; font-weight:500; letter-spacing:0; color:#5d6b7c; }
.summary-card__count { color:var(--card-accent); background:color-mix(in srgb,var(--card-accent) 9%,white); border-radius:18px; font-weight:500; font-size:14px; padding:7px 12px; }
.summary-card__link { font-weight:500; font-size:14px; margin-top:auto; }
.summary-card--total .summary-card__load { color:#1769d2; font-size:32px; font-weight:600; margin:5px 0; }
.summary-card--total .summary-card__load-label,.summary-card--total .summary-metric span { color:#5d6b7c; font-weight:500; }
.summary-card--total .summary-metric strong { color:#071a33; font-weight:500; }
.legend { border-radius:24px; background:#fff; box-shadow:0 1px 3px #0000000d; margin:0 0 24px; padding:16px 20px; }
.legend summary { font-weight:500; }
.legend__list { gap:8px; }
.legend__list li { border-radius:18px; background:#f7fafc; padding:8px 10px; }
.legend-status-link { font-size:13px; }
.workspace { border-radius:24px; padding:24px; box-shadow:0 1px 3px #0000000d; }
.search-field { border-radius:18px; background:#f7fafc; box-shadow:none; }
.machine-nav-wrap { border:0; border-bottom:1px solid #d7e1ea; border-radius:0; box-shadow:none; background:transparent; padding:16px 0; }
.machine-nav__link { border-radius:18px; font-weight:500; box-shadow:none; }
.machine-card { border-radius:24px; box-shadow:none; border-color:#d7e1ea; }
.machine-card__header { background:#fff; padding:20px; }
.machine-card h3 { font-weight:600; }
.machine-hours,.count-badge { border-radius:18px; box-shadow:none; font-weight:500; }
.machine-table th { background:#f7fafc; color:#5d6b7c; font-weight:500; text-transform:uppercase; font-size:11px; }
.machine-table td { padding-top:13px; padding-bottom:13px; font-weight:400; }
.machine-table td.client-cell { font-weight:500; }
.machine-table tbody tr:nth-child(even) { background:#fff; }
.status-chip { border-radius:18px; font-weight:500; }
.machine-table thead th { background:#f7fafc; background-image:none; color:#5d6b7c; font-weight:500; border-color:#d7e1ea; text-shadow:none; }
.brand-lockup { mix-blend-mode:multiply; }
.header-actions .brand-lockup { overflow:visible; mix-blend-mode:normal; }
.header-actions .brand-lockup img { width:228px; height:auto; max-height:none; object-fit:contain; filter:none; mix-blend-mode:normal; transform:none; animation:none!important; }
/* Estados claros: somente os cartões com link respondem à interação. */
.summary-card[href]:hover,.summary-card[href]:focus-visible,.summary-card[data-demo="hover"] {
  background:#eaf3ff!important; border-color:#1769d2!important; box-shadow:0 3px 10px #1769d21a; transform:none;
}
.summary-card[href]:active,.summary-card[data-demo="active"] {
  background:#d8e9ff!important; border-color:#0c4eab!important; box-shadow:inset 0 0 0 1px #0c4eab; transform:none;
}
.summary-card[href]:focus-visible { outline:3px solid #1769d2; outline-offset:3px; }
.summary-card[href]:is(:hover,:focus-visible,:active) .summary-card__machine,.summary-card[data-demo] .summary-card__machine { color:#071a33; }
.summary-card[href]:is(:hover,:focus-visible,:active) .summary-card__link,.summary-card[data-demo] .summary-card__link { color:#0c4eab; filter:none; transform:none; text-decoration:underline; }
.summary-card--total:not(.summary-card--skeleton):hover {
  background:#fff; border-color:#d7e1ea; box-shadow:0 1px 3px #0000000d; transform:none;
}
.machine-nav__link.is-active { box-shadow:none; }
.history-panel { border-radius:24px; box-shadow:0 1px 3px #0000000d; }
@media(max-width:800px) { .header-inner { padding:24px 16px; } h1 { font-size:36px; } .page-shell { width:calc(100% - 32px); margin:0 16px; } .summary-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .workspace { padding:16px; } }
@media(max-width:480px) { .summary-cards { grid-template-columns:1fr; } }


/* Proposta aprovada: destaque para a marca, somente na prévia. */
.site-header {
  margin:24px 32px 0;
  border:1px solid #d7e1ea;
  border-bottom:0;
  border-radius:24px 24px 0 0;
  background:linear-gradient(105deg,#fff 55%,#e8f2ff);
  overflow:hidden;
}
.header-inner { padding:20px 32px 16px; min-height:181px; align-items:center; }
.header-copy { max-width:none; }
.header-copy h1 { font-size:38px; margin:10px 0 12px; }
.header-actions { padding:0; flex-shrink:0; }
.header-actions .brand-lockup {
  width:360px; height:145px; padding:0 0 0 28px;
  border:0; border-left:1px solid #cedff2!important; border-radius:0;
  display:flex; align-items:center; justify-content:center;
  background:transparent; box-shadow:none; transform:none;
}
.header-actions .brand-lockup:hover { transform:none; }
.header-actions .brand-lockup img {
  width:100%; height:100%; max-width:100%; object-fit:contain;
  transform:none!important; animation:none!important; filter:none;
}
.page-shell>.app-tabs {
  min-height:70px; display:flex; align-items:center; gap:8px;
  padding:14px 32px; margin-bottom:24px;
  border:1px solid #d7e1ea; border-top:1px solid #d7e5f3;
  border-radius:0 0 24px 24px;
  background:linear-gradient(105deg,#fff 55%,#f3f8ff);
}
.app-tabs .app-tab { border-radius:14px; min-height:40px; padding:10px 20px; }
.app-tabs .updated-card {
  margin:0 0 0 auto; min-width:0; width:auto; padding:8px 14px;
  background:#ffffffb3; border:1px solid #d7e1ea; border-radius:14px;
  box-shadow:none; align-self:center;
}
.app-tabs .updated-card__icon { display:none; }
.app-tabs .updated-card__content { display:flex; align-items:center; gap:10px; }
.app-tabs .updated-card__label { font-size:12px; font-weight:400; letter-spacing:0; text-transform:none; }
.app-tabs .updated-card__date { font-size:13px; margin:0; white-space:nowrap; }
@media(max-width:800px) {
  .site-header { margin:16px 16px 0; }
  .header-inner { padding:20px; gap:12px; }
  .header-copy h1 { font-size:32px; }
  .header-actions .brand-lockup { width:230px; height:105px; padding-left:12px; }
  .page-shell>.app-tabs { padding:14px 20px; flex-wrap:wrap; }
  .app-tabs .updated-card { margin-left:auto; }
}
@media(max-width:560px) {
  .header-inner { flex-wrap:wrap; }
  .header-actions { width:100%; }
  .header-actions .brand-lockup { width:245px; height:100px; padding:0; border:0!important; }
  .app-tabs .updated-card { width:100%; margin:4px 0 0; }
  .app-tabs .updated-card__content { flex-wrap:wrap; }
}
