/* AlmoxSystem · Sistema visual operacional
   Camada final de tokens e componentes. Fontes e gráficos locais, sem dependências.
   A proposta GRSA/Vale mantém seus estilos próprios e sua geometria de impressão. */
:root, :root[data-theme="light"] {
  --sans: 'Ruda', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-system: var(--sans); --sidebar-w: 244px;
  --canvas: #f2f5f9; --mesh: var(--canvas); --surface: #fff;
  --surface-2: #f7f9fc; --surface-sunken: #edf2f7;
  --label: #172b43; --label1: var(--label); --heading: #122b49;
  --label2: #4b6077; --label3: #627389;
  --acento: #1763cf; --acento-forte: #124fa7; --acento-sobre: #fff;
  --acento-suave: #eaf2ff; --acento-linha: #bad0f1; --acento-brilho: #1763cf26;
  --brand: var(--acento); --brand-bright: var(--acento-forte);
  --accent-solid: var(--acento); --accent-solid-ink: var(--acento-sobre);
  --navy: #102b49; --navy-deep: #0d233d; --navy-ink: #0d233d;
  --neon: var(--acento); --neon-forte: var(--acento-forte); --neon-fundo: var(--acento-suave); --neon-linha: var(--acento-linha);
  --hairline: #e3e9f1; --hairline-firm: #cbd5e2; --edge: var(--hairline);
  --fill: #f0f4f9; --fill2: #e4eaf2;
  --blue: #1763cf; --blue-ink: #1253b0; --blue-bg: #eaf2ff; --blue-chip: #dceaff;
  --green: #138577; --green-fill: #138577; --green-ink: #09685c; --green-bg: #e5f5ef;
  --teal: #138577; --teal-ink: #09685c; --teal-bg: #e5f5ef;
  --red: #cf4545; --red-fill: #cf4545; --red-ink: #b02e36; --red-bg: #fff0f0; --red-chip: #ffe0e0;
  --orange: #b87510; --orange-fill: #df9d36; --orange-ink: #925d0a; --orange-bg: #fff5e3;
  --purple: #7962c8; --purple-ink: #6650b3; --purple-bg: #f1edfc;
  --sinal-red: #b9343c; --sinal-red-ink: #fff; --sinal-green: #107466; --sinal-green-ink: #fff;
  --r-xs: 6px; --r-s: 10px; --r-m: 16px; --r-l: 18px; --r-xl: 22px; --r-cap: 999px;
  --shadow-s: 0 2px 4px #152e4905;
  --shadow-m: 0 3px 10px -4px #18365315, 0 8px 24px -18px #18365324;
  --shadow-r: 0 8px 28px -12px #18365330; --shadow-l: 0 24px 80px -24px rgba(10,18,32,.42);  /* neutra: halo cromático é tique de UI gerada */
  --glass: #ffffffed; --glass-strong: #fffffff5; --glass-thin: #ffffffb3;
  --glass-chrome: var(--glass-strong); --vidro-campo: var(--surface);
  --vidro-hover: var(--surface-2); --aresta-campo: var(--hairline); --aresta-luz: var(--hairline);
  --brilho-topo: transparent; --spec-top: transparent;
  --control-h: 40px; --control-h-sm: 32px;
  --color-label: var(--label); --color-label-secondary: var(--label2);
  --color-label-tertiary: var(--label3); --color-separator: var(--hairline);
  --viz-axis-label: var(--label3); --viz-grid: var(--hairline); --viz-track: var(--fill);
  --viz-1: #2671da; --viz-2: #7962c8; --viz-3: #138577; --viz-4: #d49a37;
  --viz-5: #568bb5; --viz-6: #9a6d95; --viz-7: #687e96; --viz-8: #db9940;
  --grad-1: var(--viz-1); --grad-2: var(--viz-2); --grad-3: var(--viz-3); --grad-4: var(--viz-4);
  --grad-5: var(--viz-5); --grad-6: var(--viz-6); --grad-7: var(--viz-7); --grad-8: var(--viz-8);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --sans: 'Ruda', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; --font-system: var(--sans);
  --canvas: #0b1422; --mesh: var(--canvas); --surface: #142235; --surface-2: #192a40; --surface-sunken: #0f1c2e;
  --label: #eaf0f8; --label1: var(--label); --heading: #f2f6fc; --label2: #b1c0d3; --label3: #91a4bc;
  --acento: #79aeff; --acento-forte: #a6caff; --acento-sobre: #0c2341;
  --acento-suave: #203b60; --acento-linha: #355b87; --acento-brilho: #79aeff26;
  --hairline: #26394e; --hairline-firm: #425a75; --edge: var(--hairline); --fill: #203148; --fill2: #2b4059;
  --blue: #79aeff; --blue-ink: #a6caff; --blue-bg: #1a3558; --blue-chip: #264870;
  --green: #55c6ad; --green-fill: #32ad93; --green-ink: #7dddc4; --green-bg: #143f37;
  --teal: #55c6ad; --teal-ink: #7dddc4; --teal-bg: #143f37;
  --red: #f1838b; --red-fill: #d45965; --red-ink: #ff9aa1; --red-bg: #412732; --red-chip: #562d39;
  --orange: #ebba63; --orange-fill: #ce9539; --orange-ink: #f6c983; --orange-bg: #3c3425;
  --purple: #b29de7; --purple-ink: #cbb5ff; --purple-bg: #30284a;
  --sinal-red: #f1838b; --sinal-red-ink: #310c17; --sinal-green: #55c6ad; --sinal-green-ink: #08271f;
  --glass: #142235ed; --glass-strong: #142235f5; --glass-thin: #142235b3;
  --shadow-m: 0 4px 16px -8px #0008; --shadow-r: 0 12px 36px -16px #000a;
  --viz-1: #77acfa; --viz-2: #b49ce8; --viz-3: #52c3a7; --viz-4: #e9b460;
  --viz-5: #72a6c7; --viz-6: #c294b7; --viz-7: #9eafc4; --viz-8: #e9b460;
  color-scheme: dark;
}
html, body { font-family: var(--sans); font-size: 14px; letter-spacing: -.015em; }
body { background: var(--canvas) !important; }
body, input, textarea, select, button, table { font-family: var(--sans); }
.mesh-bg, .mesh-bg__grade { display: none !important; }
::selection { background: var(--acento-suave); color: var(--acento-forte); }
:root { scrollbar-color: var(--hairline-firm) transparent; }
.shell { height: 100dvh; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.main { height: 100dvh; }
.content { padding: 28px 32px 48px; scroll-behavior: auto; }
.content > * { max-width: 1600px; }
.sidebar, :root[data-theme="dark"] .sidebar, .mm-panel {
  background: #102b49; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  --label: #f3f7fc; --label2: #c0cee0; --label3: #97abc5;
  --acento: #3679da; --acento-sobre: #fff; --acento-forte: #a7cdff;
}
.sidebar::before, .sidebar::after, .nav-item::before, .nav-item.active::before { display: none !important; }
.sidebar .brand { min-height: 82px; height: auto; padding: 22px 20px; border-bottom: 1px solid #ffffff10; }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; background: #3679da; color: #fff; box-shadow: none; }
.sidebar .brand-name, .mm-panel .brand-name { color: #fff; font-size: 16px; letter-spacing: -.04em; }
.sidebar .brand-ver, .mm-panel .brand-ver { color: #a3b9d4; font-size: 11px; font-weight: 400; margin-top: 4px; }
.nav-block { padding: 0 12px; }
.nav-section-label { font-size: 10px; font-weight: 600; letter-spacing: .085em; color: #a3b9d4; padding: 19px 11px 8px; }
.nav-item { border-radius: 8px; min-height: 39px; padding: 9px 12px; margin: 2px 0; color: #becde0; font-size: 12px; font-weight: 500; gap: 10px; }
.sidebar .nav-item:hover, .mm-panel .nav-item:hover { background: #ffffff0c; color: #fff; }
.sidebar .nav-item.active, .mm-panel .nav-item.active { color: #fff; background: #2c69bd; box-shadow: none; font-weight: 600; }
.nav-divider { margin: 11px 22px 0; background: #ffffff10; }
.nav-badge { font-size: 10px; background: #ffffff14; color: #dce9fc; min-width: 23px; padding: 1px 6px; border: 1px solid #ffffff14; }
.sidebar .nav-item.active .nav-badge { background: #ffffff24; color: #fff; }
.profile-section { padding: 16px 14px; margin-top: 20px; border-top: 1px solid #ffffff10; }
.profile-btn { color: #b8cbe0; font-weight: 500; font-size: 12px; min-height: 36px; }
.sidebar-footer { color: #91a9c4 !important; font-size: 10px !important; padding: 14px 22px !important; }
.topbar { min-height: 74px; padding: 14px 32px; background: var(--surface); backdrop-filter: none; border-bottom: 1px solid var(--hairline); }
.page-title { font-size: 16px; font-weight: 600; color: var(--label); letter-spacing: -.025em; }
.page-sub { font-size: 12px; font-weight: 400; color: var(--label3); margin-top: 4px; }
.user-chip { border-radius: 9px; background: transparent; font-size: 12px; font-weight: 500; color: var(--label2); gap: 9px; }
.avatar { width: 33px; height: 33px; font-weight: 600; }
.theme-toggle { border-color: var(--hairline); border-radius: 9px; background: var(--surface); color: var(--label2); }
.notif-dot { background: var(--sinal-red); color: var(--sinal-red-ink); box-shadow: 0 0 0 2px var(--surface); font-size: 10px; }
.search-bar { border-radius: 9px; box-shadow: none; border: 1px solid var(--hairline); background: var(--surface-2); }
.search-bar input { border: 0; background: transparent; box-shadow: none !important; font-weight: 400; }
.search-bar:focus-within { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-brilho); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.page-heading h1 { font-size: 27px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; color: var(--heading); margin-bottom: 7px; }
.page-heading p { font-size: 13px; line-height: 1.6; color: var(--label2); max-width: 70ch; }
.page-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-heading-actions .section-gap { margin-bottom: 0; }
.page-heading-actions .btn-block { width: auto; }
.page-heading-date { color: var(--label3); font-size: 12px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.card, .panel, .stat-card, .kpi, .table-wrap, .tl-box {
  --pad-cartao: 22px; padding: var(--pad-cartao); background: var(--surface);
  border: 0; border-radius: var(--r-m); box-shadow: var(--shadow-m);
}
.card, .panel { min-width: 0; overflow: hidden; }
.table-wrap { padding: 0; overflow-x: auto; max-width: 100%; }
.card .table-wrap, .panel .table-wrap { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.card > .table-wrap, .panel > .table-wrap { margin: 0 calc(-1 * var(--pad-cartao)) calc(-1 * var(--pad-cartao)); max-width: none; }
.card-header { background: none; border-bottom: 0; margin: 0 0 20px; padding: 0; gap: 12px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--heading); letter-spacing: -.025em; }
.card-sub { font-size: 12px; font-weight: 400; color: var(--label3); line-height: 1.5; margin-top: 5px; text-transform: none; }
.stat-grid { gap: 16px; background: none; box-shadow: none; overflow: visible; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); }
.stat-card { padding: 20px; transition: background .16s; }
.stat-card::before, .kpi::before { display: none !important; }
.stat-card:hover { transform: none; box-shadow: var(--shadow-m); }
.stat-icon-badge { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; margin-bottom: 15px; }
.stat-label { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--label2); }
.stat-value { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; color: var(--heading); white-space: nowrap; }
.stat-money { font-size: 26px; }
.stat-desc { font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--label3); }
.stat-value, .money, .num, .kpi-value, .nav-badge { font-variant-numeric: tabular-nums; }
.kpi-click:hover, .stat-card.kpi-on { background: var(--acento-suave); }
.aprov-grid { gap: 0; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-m); overflow: hidden; }
.aprov-grid > * { box-shadow: -1px 0 0 var(--hairline), 0 -1px 0 var(--hairline); padding: 18px 22px; }
.aprov-grid .card-sub { margin-top: 8px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.section-gap { margin-bottom: 20px; }
table { border-collapse: collapse; }
thead th { font-size: 10px; font-weight: 600; letter-spacing: .055em; background: var(--surface-2); color: var(--label3); padding: 13px 18px; border-bottom: 1px solid var(--hairline); box-shadow: none; }
tbody td { padding: 15px 18px; font-size: 12px; line-height: 1.55; font-weight: 400; border-bottom: 1px solid var(--hairline); }
tbody tr:hover { background: var(--surface-2); }
td.num, td.money, th.num, th.money { text-align: right; }
.product-name { white-space: normal !important; overflow-wrap: anywhere; max-width: 400px !important; min-width: 180px; font-weight: 500 !important; }
.table-wrap:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.filter-bar { padding: 12px; gap: 8px; background: var(--surface); border-radius: 12px; margin-bottom: 18px; box-shadow: var(--shadow-s); }
.fpill { min-height: 34px; padding: 7px 12px; border-radius: 7px; box-shadow: none; border: 1px solid transparent; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; background: transparent; color: var(--label2); }
.fpill:hover { background: var(--surface-2); }
.fpill.active { background: var(--acento-suave); color: var(--acento-forte); border-color: transparent; box-shadow: none; }
.fselect { font-size: 12px; font-weight: 400; border-radius: 7px; }
.btn { font-size: 12px; font-weight: 600; border-radius: 8px; border: 1px solid var(--hairline-firm); box-shadow: none; background: var(--surface); color: var(--label); transition: background .15s, border-color .15s; letter-spacing: 0; }
.btn:hover { background: var(--surface-2); box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acento); color: var(--acento-sobre); border-color: transparent; }
.btn-primary:hover { background: var(--acento-forte); color: var(--acento-sobre); }
.btn-ghost { background: var(--surface); color: var(--label2); border-color: var(--hairline); }
.btn-ghost:hover { color: var(--acento-forte); border-color: var(--acento-linha); }
.btn-danger { background: var(--red-bg); color: var(--red-ink); border-color: transparent; }
.btn-danger:hover { background: var(--sinal-red); color: var(--sinal-red-ink); }
.btn-success { background: var(--sinal-green); color: var(--sinal-green-ink); border-color: transparent; }
.btn-blue-soft { background: var(--acento-suave); color: var(--acento-forte); border-color: transparent; }
.btn-blue-soft:hover { background: var(--acento); color: var(--acento-sobre); }
.badge { border-radius: 5px; border: 0; font-size: 11px; line-height: 1.4; padding: 4px 7px; font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: none; }
.input, input, select, textarea, .form-field input, .form-field select, .form-field textarea {
  border-radius: 8px; border: 1px solid var(--hairline-firm); background: var(--surface); box-shadow: none;
  color: var(--label); font-size: 14px; caret-color: var(--acento); min-width: 0;
}
.form-field label { font-size: 12px; color: var(--label2); font-weight: 500; letter-spacing: 0; text-transform: none; }
input:focus, select:focus, textarea:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-brilho); }
::placeholder { color: var(--label3); opacity: 1; }
.form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.btn:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.sidebar button:focus-visible, .mm-panel button:focus-visible { outline-color: #a7cdff; }
.modal { border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-l); }
.modal-overlay { background: #071b3b66; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-header { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.modal-footer { border-top: 1px solid var(--hairline); background: var(--surface); gap: 8px; }
.modal .card { box-shadow: none; border: 1px solid var(--hairline); }
.alert { border-radius: 10px; border: 0; line-height: 1.55; font-weight: 400; }
.alert-info { background: var(--blue-bg); color: var(--blue-ink); }
.alert-warn { background: var(--orange-bg); color: var(--orange-ink); }
.alert-danger { background: var(--red-bg); color: var(--red-ink); }
.empty-state { padding: 44px 24px; color: var(--label3); font-weight: 400; }
.page-anim > *, .page-anim .stat-card { animation: none !important; }
.mobile-topbar, .bottom-nav { background: var(--glass-strong); border-color: var(--hairline); }
.bn-item { border-radius: 9px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.bn-item.active { background: var(--acento-suave); color: var(--acento-forte); box-shadow: none; }
.bn-item::before { display: none; }
.duv.aberta, .duv.ok { border-left-width: 1px; border-left-color: var(--hairline); }
.tl-box { padding: 18px; margin-bottom: 20px; }
.tl-linha1 { gap: 6px; }
.tl-regua { background: var(--surface-2); border-radius: 10px; }
.tl-mes { border-radius: 6px; }
.tl-mes.on { background: var(--acento-suave); color: var(--acento-forte); }
.tl-mes.on .tl-lbl, .tl-mes.on .tl-ano { color: var(--acento-forte); }
.tl-mes.on .tl-bar { background: var(--acento); }
.tl-dica { font-size: 11px; font-weight: 400; }
.tl-nav { border-radius: 8px; }
/* Entrada: uma marca, uma mensagem e um formulário com leitura direta. */
.login-screen { background: var(--canvas) !important; padding: 28px; }
.login-layout { width: min(100%, 960px); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-l); }
.login-intro { padding: 58px 44px; background: #102b49; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.login-intro .login-marca { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.login-intro h2 { font-size: 35px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; margin-bottom: 18px; }
.login-intro p { font-size: 13px; line-height: 1.8; color: #b7cbe3; }
.login-intro-footer { font-size: 11px; color: #91adc9; }
.login-card { width: 100%; max-width: none; margin: 0; padding: 58px 42px; background: var(--surface); border: 0; border-radius: 0; box-shadow: none; }
.login-card > h1 { font-size: 25px; font-weight: 600; color: var(--heading); letter-spacing: -.025em; margin-bottom: 10px; text-align: left; }
.login-card > p { text-align: left; color: var(--label3); line-height: 1.65; font-size: 13px; margin: 0 0 32px; }
.login-card .form-field { margin-bottom: 20px; }
.login-card input { height: 44px; }
.login-card .btn { min-height: 44px; }
.login-help { margin-top: 24px; color: var(--label3); font-size: 11px; line-height: 1.6; }
.skip-link { position: fixed; left: 260px; top: -100px; padding: 12px 18px; background: var(--surface); color: var(--acento-forte); border-radius: 8px; z-index: 10000; }
.skip-link:focus { top: 8px; }
@media (min-width: 861px) and (max-width: 1200px) {
  :root { --sidebar-w: 220px; }
  .content { padding: 24px; }
  .topbar { padding: 14px 24px; }
  .user-chip span { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .main { height: 100dvh; }
  .content { padding: 22px 16px calc(96px + var(--safe-bottom)); }
  .mobile-topbar { padding: calc(9px + var(--safe-top)) 14px 9px; }
  .mt-btn { width: 40px; height: 40px; border-radius: 9px; }
  .page-heading { align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading-actions { width: 100%; }
  .page-heading-actions .btn { flex: 1; }
  .page-heading-date { display: none; }
  .card, .panel { --pad-cartao: 18px; padding: var(--pad-cartao); }
  .card-header { margin-bottom: 18px; }
  .grid-2 { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .stat-card { padding: 17px; min-width: 0; }
  .stat-value, .stat-money { font-size: 23px; }
  .stat-desc { font-size: 11px; }
  .stat-icon-badge { margin-bottom: 12px; }
  .form-row { grid-template-columns: minmax(0,1fr); }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .btn, .fpill, .fselect { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .filter-bar { padding: 10px; gap: 6px; border-radius: 10px; }
  .filter-bar > .btn-primary { width: 100%; margin-left: 0; }
  thead th { padding: 12px; font-size: 10px; }
  tbody td { padding: 14px 12px; font-size: 12px; }
  .product-name { min-width: 170px; max-width: 250px !important; }
  .table-wrap { overscroll-behavior-x: contain; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94dvh; }
  .modal-work { max-height: 94dvh; }
  .modal-footer .btn { white-space: normal; height: auto; padding: 11px 14px; }
  .aprov-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .aprov-grid > * { padding: 16px; overflow-wrap: anywhere; }
  .bn-item { font-size: 11px; min-height: 49px; }
  .mm-panel { width: min(88%,340px); max-width: none; }
  .mm-panel .nav-item { min-height: 44px; font-size: 13px; }
  .skip-link { left: 12px; }
}
@media (max-width: 600px) {
  .login-screen { padding: 18px; }
  .login-layout { grid-template-columns: 1fr; border-radius: 18px; }
  .login-intro { padding: 28px; gap: 20px; }
  .login-intro h2, .login-intro > div:nth-child(2), .login-intro-footer { display: none; }
  .login-card { padding: 32px 26px; }
  .page-heading h1 { font-size: 23px; }
  .stat-money { font-size: 20px; }
  .tl-box { padding: 12px; }
  .tl-linha2 { gap: 12px; }
  .tl-campo { flex: 1; min-width: 120px; }
  .tl-dica { display: none; }
}
@media (max-width: 360px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 21px; }
  .stat-money { font-size: 18px; }
  .bn-item { font-size: 11px; padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Editor de orçamento: geometria funcional preservada. */
.orc-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 16px; position: sticky; top: 0; z-index: 20;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 0; border-radius: var(--r-m); box-shadow: var(--shadow-m);
}
.orc-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .orc-grid { grid-template-columns: minmax(0,1fr) 300px; } }
.orc-col { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; }
.orc-resumo { position: sticky; top: 84px; padding: 18px 20px; }
.orc-resumo-l { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--label2); }
.orc-resumo-l b { color: var(--label); font-variant-numeric: tabular-nums; }
.orc-resumo-l.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--hairline); font-weight: 600; color: var(--label); }
.orc-resumo-l.total b { font-size: 21px; color: var(--acento); }
.orc-n { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.orc-busca { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.orc-busca input, .orc-busca select { flex: 1; min-width: 220px; }
.orc-mem { border: 1px solid var(--hairline); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.orc-mem-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.orc-mem-th { text-align: center; font-size: 11.5px; }
.orc-mem-td { white-space: nowrap; }
.orc-mem-td .orc-n { width: 68px; }
.orc-op { color: var(--label3); margin-right: 2px; font-size: 12px; }
.orc-mem-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.orc-mem-foot b { font-variant-numeric: tabular-nums; }
.orc-doc-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.orc-doc-host { background: #fff; color: #1f2328; border-radius: 14px; padding: 16px; overflow: auto; max-height: 68vh; }


/* Iconografia autoral. */
svg[data-ico] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 6;
  flex-shrink: 0;
  /* SVG sem dimensão cai no padrão do navegador (300×150) e estoura o contêiner.
     O emoji que ele substituiu herdava o corpo do texto — o ícone herda também. */
  width: 1.08em;
  height: 1.08em;
  vertical-align: -.16em;
}
/* Tamanhos fixos por contexto. Precisam empatar ou ganhar em especificidade da
   regra genérica acima, então todos carregam o [data-ico]. */
svg.nav-icon[data-ico], svg.bn-icon[data-ico] { width: 18px; height: 18px; }
.brand-icon svg[data-ico] { width: 19px; height: 19px; }
.btn svg[data-ico] { width: 15px; height: 15px; }
.btn-sm svg[data-ico] { width: 14px; height: 14px; }
.badge svg[data-ico], .fpill svg[data-ico] { width: 13px; height: 13px; }
.theme-toggle svg[data-ico], .notif-btn svg[data-ico], .mt-btn svg[data-ico] { width: 17px; height: 17px; }
/* Ícone dentro de pílula e de botão fica colado no rótulo — o gap do flex é que
   afasta, e onde não há flex entra uma folga própria. */
.fpill svg[data-ico], .badge svg[data-ico] { margin-right: 5px; }
/* A marca mora num ladrilho de 20px: traço fino some ali, então ela engrossa. */
.brand-icon svg[data-ico] { stroke-width: 2; }
/* Ícone dentro de pílula pequena: o traço acompanha, senão pesa demais. */
.badge svg[data-ico], .btn-sm svg[data-ico] { stroke-width: 1.9; }


@media print {
  .page-heading-actions, .page-heading-date, .skip-link, .orc-doc-acoes { display: none !important; }
  body { background: #fff !important; }
  .card, .stat-card, .table-wrap, .panel { box-shadow: none; break-inside: avoid; }
  body:has(.orc-doc-host) > *:not(.modal-overlay) { display: none !important; }
  body:has(.orc-doc-host) .modal-overlay, body:has(.orc-doc-host) .modal {
    display: block !important; position: static !important; background: #fff !important;
    border: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
    max-height: none !important; height: auto !important; width: auto !important;
    max-width: none !important; padding: 0 !important; overflow: visible !important;
  }
  .orc-doc-host { max-height: none !important; overflow: visible !important; padding: 0 !important; }
  body:has(.orc-doc-host) .modal-header, body:has(.orc-doc-host) .modal-footer { display: none !important; }
  html, body { height: auto !important; overflow: visible !important; }
  @page { size: A4 portrait; margin: 12mm 11mm 10mm; }
}
