/* Carregar depois dos estilos existentes. */
:root { --accent-on: #fff;
  color-scheme: light;
  --green: #085f5e; --secondary: #085f5e; --brand: #39e6d0; --lime: #e5f6f1;
  --ink: #1d2d2b; --muted: #657673; --surface: #fff; --canvas: #f3f6f5;
  --soft: #edf2f0; --line: #dce5e1; --glass: #f8fcfaf0;
  --shadow: 0 8px 28px #24493e08; --focus: #0f7775;
  --danger: #ab3540; --danger-bg: #fff0f1; --success: #286849; --success-bg: #e8f5ed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas); color: var(--ink); font-size: 15px;
}
:root[data-appearance="dark"] { --accent-on: #102d27;
  color-scheme: dark; --green: #72e7d4; --secondary: #72e7d4; --lime: #243c35;
  --ink: #e9f2ef; --muted: #a6b8b1; --surface: #1e2925; --canvas: #121b17;
  --soft: #27362f; --line: #37493f; --glass: #1d2c24f2;
  --shadow: 0 8px 28px #00000020; --focus: #72e7d4;
  --danger: #ffa6ad; --danger-bg: #40272c; --success: #9ee2b4; --success-bg: #24422f;
}
body { background: radial-gradient(ellipse at 0 0, var(--lime), transparent 42%), var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 11px 17px; border-radius: 14px; font-weight: 550; min-height: 44px; box-shadow: 0 1px 2px #00000003; }
button:hover { background: var(--soft); }
button.primary { color: #fff; background: #00b9a8; border-color: #00b9a8; box-shadow: 0 4px 12px #0f5f5e14; }
button.primary:hover { background: #0b7470; border-color: #0b7470; }
:root[data-appearance="dark"] button.primary { background: #72e7d4; color: #102d27; border-color: #72e7d4; }
button:disabled { box-shadow: none; opacity: .5; cursor: default; }
button.small { min-height: 36px; font-size: .85rem; padding: 7px 11px; border-radius: 10px; }
a { color: var(--green); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline-color: var(--focus); }
.shell { grid-template-columns: 244px minmax(0,1fr); gap: 0; }
.sidebar { margin: 16px 0 16px 16px; padding: 25px 16px 16px; background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 25px; gap: 25px; box-shadow: var(--shadow), inset 0 1px 0 #ffffff45; backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%); }
.sidebar .brand { padding: 0 12px; }
.brand { letter-spacing: -.8px; font-weight: 650; }
.brand-logo { max-width: 128px; margin: 0 0 12px; background: #fff; border-radius: 12px; }
.brand-fallback { font-size: 1.4rem; color: var(--green); margin: 0 0 12px; }
.eyebrow { font-size: .68rem; letter-spacing: 1.45px; color: var(--muted); }
.sidebar .eyebrow, .login-brand .eyebrow { color: var(--muted); }
.nav { gap: 4px; }
.nav .nav-label { color: var(--muted); font-size: .66rem; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 12px 6px; }
.nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: var(--muted); font-size: .88rem; border: 0; border-radius: 13px; box-shadow: none; white-space: normal; }
.nav button.active { border-left: 0; background: var(--lime); color: var(--green); box-shadow: 0 4px 14px #214a3210; }
.nav button:hover { background: var(--soft); color: var(--ink); }
.nav button.active:hover { background: var(--lime); color: var(--green); }
.ui-icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.account { border-top: 1px solid var(--line); padding: 18px 10px 0; font-size: .8rem; display: grid; gap: 14px; line-height: 1.6; }
.account-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account .muted { color: var(--muted); font-size: .75rem; }
.account-avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--lime); color: var(--green); display: grid; place-items: center; flex-shrink: 0; font-weight: 600; }
.account button { margin: 0; color: var(--muted); border-color: var(--line); background: transparent; width: 100%; }
.main { min-width: 0; padding: 34px clamp(22px,3.2vw,48px) 50px; }
.top { gap: 18px; margin-bottom: 30px; flex-wrap: wrap; align-items: flex-end; }
.page-heading { display: flex; align-items: center; gap: 12px; }
.top h1 { font-size: clamp(1.65rem,2.6vw,2.15rem); letter-spacing: -1.1px; font-weight: 600; margin: 7px 0 0; line-height: 1.2; }
.tools { gap: 9px; max-width: 100%; }
.tools > input { width: auto; max-width: 100%; }
.search { max-width: 235px; }
.appearance-toggle, .menu-toggle { width: 44px; height: 44px; padding: 10px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--glass); backdrop-filter: blur(20px); }
.menu-toggle, .nav-scrim { display: none; }
.stats { gap: 14px; margin-bottom: 24px; }
.stat, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 21px; padding: 23px; box-shadow: var(--shadow); }
.stat:first-child { background: var(--surface); border-color: var(--line); }
.stat label, .stat small { color: var(--muted); font-size: .8rem; }
.stat strong { color: var(--ink); font-size: clamp(1.35rem,1.9vw,1.85rem); letter-spacing: -.6px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 12px 0 6px; overflow-wrap: anywhere; }
.stat strong.negative, .negative { color: var(--danger); }
.grid2 { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; }
h2 { font-size: 1.12rem; letter-spacing: -.35px; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.2px; }
.panel h2 { margin-bottom: 25px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; max-width: 100%; box-shadow: var(--shadow); }
.table-wrap .table-wrap { border: 0; border-radius: 0; box-shadow: none; }
table { color: var(--ink); font-size: .86rem; }
th { background: var(--surface); color: var(--muted); font-size: .75rem; padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
td { padding: 19px 20px; border-bottom: 1px solid var(--line); line-height: 1.65; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--soft); }
.badge { border-radius: 999px; font-size: .75rem; background: var(--lime); color: var(--green); padding: 5px 10px; }
.badge[data-status="Rascunho"], .badge[data-status="Em aberto"] { background: var(--soft); color: var(--muted); }
.badge[data-status="Reprovado"], .badge[data-status="Recusado"], .badge[data-status="Perdido"], .badge[data-status="Vencido"] { background: var(--danger-bg); color: var(--danger); }
.badge[data-status="Aprovado"], .badge[data-status="Concluído"], .badge[data-status="Pago"], .badge[data-status="Recebido"] { background: var(--success-bg); color: var(--success); }
.empty { color: var(--muted); padding: 50px 20px; line-height: 1.7; }
.empty strong { color: var(--ink); font-weight: 550; }
.board { grid-template-columns: repeat(7,minmax(236px,1fr)); padding-bottom: 20px; gap: 16px; }
.column { background: var(--soft); border-radius: 21px; padding: 17px; min-height: 360px; }
.column h3 { color: var(--muted); font-size: .83rem; font-weight: 550; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.track { background: var(--soft); border-radius: 99px; height: 8px; }
.fill { background: #00b9a8; border-radius: 99px; }
.barlabel { gap: 15px; font-size: .85rem; }.barlabel strong { font-weight: 550; font-variant-numeric: tabular-nums; }
.field { color: var(--muted); font-size: .8rem; gap: 8px; margin-bottom: 18px; }
input, select, textarea { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=radio], input[type=checkbox] { accent-color: var(--green); min-height: 20px; padding: 0; }
textarea { line-height: 1.6; min-height: 110px; }
.fields { gap: 0 20px; }
.field[hidden] { display: none!important; }
dialog { width: min(940px,94vw); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; max-height: 91vh; max-height: 91dvh; box-shadow: 0 25px 100px #102f2933; overscroll-behavior: contain; }
dialog::backdrop { background: #142f2a50; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
dialog h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.6px; }
.formactions { gap: 10px; flex-wrap: wrap; }
.quote-section { border: 1px solid var(--line); background: var(--surface); padding: 23px; border-radius: 19px; }
.item, .quote-form .composed-item { background: var(--canvas); border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.item-heading { gap: 15px; }.item-heading h3 { min-width: 0; }
.item-summary { background: var(--lime); border-radius: 15px; padding: 18px; gap: 16px; }
.item-summary span { color: var(--muted); font-size: .76rem; }.item-summary strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.composition-table td:first-child { min-width: 240px; }.composition-table input, .composition-table select { min-width: 95px; }
#product-dialog .formactions { background: var(--surface); border-top: 1px solid var(--line); padding: 15px 0; z-index: 1; }
.total { color: var(--green); font-size: .93rem; font-weight: 550; line-height: 1.8; }
.notice { background: var(--lime); color: var(--ink); border-radius: 15px; padding: 18px; font-size: .85rem; line-height: 1.65; }
.history, .dashboard-block { border-color: var(--line); }
.dashboard-block { margin-bottom: 33px; padding-bottom: 26px; }.dashboard-block:last-child { border-bottom: 0; }
.footer-note { font-size: .78rem; line-height: 1.7; }
.finance-tabs { background: var(--soft); padding: 5px; border-radius: 17px; width: fit-content; max-width: 100%; gap: 5px; }
.finance-tabs button { border-color: transparent; box-shadow: none; background: transparent; font-size: .85rem; }
.finance-tabs button.primary { background: var(--surface); color: var(--green); box-shadow: 0 2px 8px #00000008; border-color: var(--line); }
.quote-actions { gap: 7px; }.icon-action { border-color: var(--line); color: var(--green); background: var(--surface); border-radius: 12px; min-width: 42px; }
.approve-action { color: var(--success); }.reject-action { color: var(--danger); }
.icon-action:hover { background: var(--soft); }.approve-action:hover { background: var(--success-bg); }.reject-action:hover { background: var(--danger-bg); }
.error { color: var(--danger); }
#toast { background: #085f5e; color: #fff; border-radius: 16px; box-shadow: 0 12px 32px #00000020; max-width: calc(100vw - 36px); padding: 15px 21px; z-index: 50; }
.login { background: var(--canvas); }
.login-brand { color: var(--ink); background: radial-gradient(ellipse at 25% 30%, var(--lime), transparent 65%), var(--soft); padding: clamp(30px,6vw,80px); border-right: 1px solid var(--line); }
.login-brand .brand-logo { max-width: 172px; }.login-brand h1 { font-weight: 550; font-size: clamp(2.4rem,4vw,3.8rem); letter-spacing: -2px; line-height: 1.1; }
.login-brand p { color: var(--muted); }.login-form { padding: 42px; }.login-form h2 { font-size: 1.9rem; letter-spacing: -.9px; }.login-form form > button.primary { width: 100%; margin-top: 8px; }
@media(min-width:901px) { .sidebar { position: sticky; top: 16px; height: calc(100vh - 32px); height: calc(100dvh - 32px); align-self: start; overflow-y: auto; } }
@media(max-width:1200px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.grid2 { grid-template-columns: 1fr; }.tools { gap: 8px; } }
@media(max-width:900px) {
  .shell { display: block; }.sidebar { display: none; position: fixed; z-index: 40; inset: 12px auto 12px 12px; margin: 0; width: min(292px,calc(100vw - 50px)); height: auto; overflow-y: auto; }
  .shell.nav-open .sidebar { display: flex; }.shell.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 39; border: 0; border-radius: 0; background: #122c2860; backdrop-filter: blur(5px); width: 100%; height: 100%; }
  .sidebar .nav { display: grid; overflow: visible; }.sidebar .account { display: grid; }.menu-toggle { display: inline-grid; flex-shrink: 0; }.main { padding: 25px 20px 40px; }.top { align-items: stretch; flex-direction: column; gap: 20px; }.tools { flex-wrap: wrap; }.tools .search { flex: 1; min-width: 150px; max-width: none; }
}
@media(max-width:600px) {
  :root { font-size: 15px; }.main { padding: 22px 14px 35px; }.top h1 { font-size: 1.6rem; }.top { margin-bottom: 24px; }
  .stats { gap: 10px; }.stat { padding: 18px 15px; border-radius: 18px; }.stat strong { font-size: 1.4rem; }.stat label, .stat small { font-size: .75rem; }
  .panel { padding: 21px 17px; }.fields, .item .fields, .quote-form .fields, .composed-item .item-editor .fields { grid-template-columns: 1fr; }
  th,td { padding: 14px; }.item-summary { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 15px; }
  input, select, textarea { font-size: 16px; }.composition-table .field input, .composition-table .field select { font-size: 16px; }
  button.small { min-height: 44px; }.formactions { display: flex; }.formactions button { flex: 1; }
  dialog { padding: 22px 15px; width: calc(100vw - 18px); border-radius: 23px; max-height: 94vh; max-height: 94dvh; }.quote-section { padding: 17px 13px; }
  .quote-section .item-heading, .item-heading { align-items: stretch; flex-direction: column; }.item-heading button { align-self: flex-start; }
  #product-dialog .formactions { bottom: -22px; }.quote-form .composed-item { padding: 15px; }
  .login { display: block; }.login-brand { padding: 28px; border: 0; border-bottom: 1px solid var(--line); gap: 22px; }.login-brand h1 { font-size: 2.2rem; margin: 0; }.login-brand p, .login-brand > .eyebrow { display: none; }.login-form { padding: 30px 24px; }
  .finance-tabs { width: 100%; }.finance-tabs button { flex: 1; }.quote-actions { gap: 5px; }
}
@media(prefers-reduced-motion:no-preference) { button,a,input,select,textarea { transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; } }
@media(prefers-reduced-transparency:reduce) { .sidebar,.appearance-toggle,.menu-toggle { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }dialog::backdrop,.nav-scrim { backdrop-filter: none!important; } }
@media(prefers-contrast:more) { :root { --line: #738b81; --muted: #405b50; }:root[data-appearance="dark"] { --line: #9daf9f; --muted: #d1e0d7; } }
@media print { .sidebar,.top .tools,.menu-toggle,.nav-scrim,#toast { display: none!important; }.shell { display: block; }.main { padding: 0; }body { background: #fff; color: #111; }.panel,.stat,.table-wrap { box-shadow: none; break-inside: avoid; } }

@media(max-width:600px) {
  table:not(.composition-table) { display: block; }
  table:not(.composition-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table:not(.composition-table) tbody { display: block; }
  table:not(.composition-table) tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 4px 8px; border-bottom: 1px solid var(--line); }
  table:not(.composition-table) tbody tr:last-child { border-bottom: 0; }
  table:not(.composition-table) td { display: block; max-width: none; min-width: 0; padding: 9px 7px; border: 0; }
  table:not(.composition-table) td:before { content: attr(data-label); display: block; color: var(--muted); font-size: .72rem; font-weight: 400; margin-bottom: 5px; }
  table:not(.composition-table) td:first-child, table:not(.composition-table) td[data-label=""], table:not(.composition-table) td[colspan] { grid-column: 1/-1; }
  table:not(.composition-table) td[data-label=""]:before, table:not(.composition-table) td[colspan]:before { display: none; }
  table:not(.composition-table) td[data-label="Valor"], table:not(.composition-table) td[data-label="Saldo"], table:not(.composition-table) td[data-label="Previsto"], table:not(.composition-table) td[data-label="Vencimento"], table:not(.composition-table) td[data-label="Validade"] { white-space: nowrap; }
  .quote-actions { justify-content: flex-start; gap: 10px; }.quote-actions .icon-action { width: 46px; height: 46px; }
}
.card[draggable="true"]{cursor:grab}.card.dragging{opacity:.45}.column.drag-over{outline:2px dashed var(--focus);outline-offset:4px;background:var(--lime)}

.card{position:relative}.card-actions{padding-right:2.5rem}.card-delete{position:absolute;right:1rem;bottom:1rem;border:0;background:transparent;color:#dc3545;padding:.25rem;cursor:pointer;display:grid;place-items:center}.card-delete:hover{color:#a71d2a;background:rgba(220,53,69,.12);border-radius:.4rem}.card-delete svg{width:20px;height:20px}
.edit-pencil,.quote-actions [data-edit]{color:#3b9dff!important;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:6px!important}.edit-pencil:hover,.quote-actions [data-edit]:hover{background:rgba(59,157,255,.15)!important}.edit-pencil svg{width:20px;height:20px}
.product-item-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.product-item-actions .item-trash{color:#dc3545;padding:6px;display:inline-flex;align-items:center;justify-content:center}.product-item-actions .item-trash:hover{background:rgba(220,53,69,.12)}.product-item-actions svg{width:20px;height:20px}
.product-value-editor{margin-top:16px;padding:18px;border:1px solid var(--focus);border-radius:12px;background:var(--surface);max-width:460px}.product-value-editor .formactions{margin-top:12px}.product-value-editor .error:empty{display:none}
.order-pdf-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:42px;height:44px;border:1px solid var(--border);border-radius:12px;text-decoration:none;color:var(--focus);margin-left:6px}.order-pdf-icon:hover{background:var(--lime)}
.finance-delete{color:#ef4545!important;display:inline-flex;align-items:center;justify-content:center}.finance-delete:hover{background:rgba(239,69,69,.12)!important}.finance-delete svg{width:20px;height:20px}
.cash-flow-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.cash-flow-columns .quote-section{min-width:0}.cash-flow-columns table{min-width:450px}.cash-flow-columns td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}.cash-forecast-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.cash-forecast-totals>div{background:var(--lime);padding:12px;border-radius:12px;font-size:.85rem}.cash-forecast-totals strong{display:block;margin-top:8px}.finance-kpis small{display:block;color:var(--muted);margin-top:10px}@media(max-width:1000px){.cash-flow-columns{grid-template-columns:1fr}}
.finance-day-heading td{background:var(--lime)!important;color:var(--focus);font-weight:600;padding:12px 20px!important}.finance-day-heading td:before{display:none!important}
.finance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.finance-kpis>div{padding:24px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.finance-kpis span{display:block;color:var(--muted);font-size:.85rem}.finance-kpis strong{display:block;margin-top:14px;font-size:1.5rem;font-variant-numeric:tabular-nums}.finance-overdue{color:#ff7569!important}.finance-grid-shell{border:1px solid var(--border);border-radius:20px;overflow:hidden;background:var(--surface)}.finance-grid-scroll{overflow:auto}.finance-grid-shell .finance-grid-table{min-width:1250px;width:100%;table-layout:auto;border-radius:0;border:0}.finance-grid-table th,.finance-grid-table td{padding:18px 14px}.finance-grid-table th:first-child{width:50px}.finance-grid-table td:nth-child(2){min-width:210px}.finance-grid-table td:nth-child(3){min-width:190px}.finance-grid-table td:nth-child(4){min-width:190px;max-width:250px}.finance-grid-table small{display:block;color:var(--muted);margin-top:5px}.finance-grid-table .finance-money{white-space:nowrap;text-align:right;min-width:110px;font-variant-numeric:tabular-nums}.finance-grid-table .finance-day-heading div{display:flex;justify-content:space-between;gap:20px}.finance-day-heading div>span{color:var(--muted);font-size:.85rem;font-weight:400}.finance-row-actions{white-space:nowrap;min-width:105px}.finance-grid-shell footer{display:flex;justify-content:space-between;gap:16px;padding:20px 24px;color:var(--muted);font-size:.85rem}.finance-grid-shell footer strong{color:var(--ink)}.finance-month-list button{background:transparent;border-color:transparent;border-radius:30px}.finance-month-list button.primary{background:var(--focus);color:var(--accent-on)}
@media(max-width:720px){.finance-kpis{grid-template-columns:1fr 1fr}.finance-kpis>div{padding:16px}.finance-kpis strong{font-size:1.2rem}.finance-grid-shell table:not(.composition-table) thead{display:table-header-group}.finance-grid-shell table:not(.composition-table) tbody{display:table-row-group}.finance-grid-shell table:not(.composition-table) tr{display:table-row}.finance-grid-shell table:not(.composition-table) td{display:table-cell;padding:16px 14px}.finance-grid-shell table:not(.composition-table) td:before{display:none}.finance-grid-shell footer{flex-wrap:wrap}}
.finance-months{margin-bottom:24px}.finance-months>label{display:flex;align-items:center;gap:10px;margin-bottom:12px}.finance-months input{width:110px}.finance-month-list{display:flex;gap:8px;flex-wrap:wrap}.finance-month-list button{padding:10px 14px}#finance-title-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}#settle-title{background:#00b9a8;color:#fff;border-color:#00b9a8}#settle-title:disabled{opacity:.5}
.nav-group{margin-top:18px}.nav-group summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:14px 16px;color:var(--muted);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;border-radius:12px}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover{background:var(--lime);color:var(--ink)}.nav-chevron{font-size:1.4rem;transition:transform .15s}.nav-group[open] .nav-chevron{transform:rotate(90deg)}.nav-group-items{padding-top:4px}.nav-group summary:focus-visible{outline:2px solid var(--focus)}
#items .quote-item-table-head,#items .quote-item-table-row{display:grid;grid-template-columns:40px 70px minmax(180px,2fr) minmax(150px,1.3fr) 45px minmax(100px,1fr) minmax(100px,1fr) 115px;gap:12px;align-items:center}#items .quote-item-table-head{padding:14px;background:var(--lime);font-size:.8rem;color:var(--muted)}#items .composed-item{padding:16px 14px;margin:0;border-radius:0;border-bottom:1px solid var(--border)}#items .composed-item:nth-child(odd){background:var(--surface)}#items .quote-item-table-row{font-size:.85rem}#items .quote-item-table-row img{width:65px;height:60px;object-fit:contain}#items .quote-item-table-row small{display:block;color:var(--muted);margin-top:6px}#items .quote-table-description{white-space:pre-wrap;overflow-wrap:anywhere}#items .composed-item>.item-heading,#items .composed-item>.product-measure-summary,#items .composed-item>.item-summary{display:none}
@media(max-width:1100px){#items{overflow-x:auto}#items .quote-item-table-head,#items .quote-item-table-row{min-width:1000px}}@media(max-width:650px){#items .quote-item-table-head{display:none}#items .quote-item-table-row{min-width:0;grid-template-columns:1fr 1fr}#items .quote-item-table-row>div:before{content:attr(data-label);display:block;color:var(--muted);font-size:.7rem;margin-bottom:5px}#items .quote-table-description{grid-column:1/-1}#items .composed-item{margin-bottom:12px;border-radius:12px}}
.quote-financial-summary{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:18px;text-align:left}.quote-summary-panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;min-width:0}.quote-cost-breakdown{display:flex;gap:18px;align-items:center}.quote-cost-donut{width:120px;height:120px;flex-shrink:0;border-radius:50%;position:relative}.quote-cost-donut:after{content:'';position:absolute;inset:25px;border-radius:50%;background:var(--surface)}.quote-cost-legend{flex:1;min-width:0}.quote-cost-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin:12px 0;font-size:.75rem}.quote-cost-row i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.quote-cost-row small{color:var(--muted)}.quote-contribution-note{font-size:.8rem;color:var(--muted);line-height:1.5;margin-bottom:0}.quote-summary-line{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px;font-size:.9rem}.quote-summary-line strong{white-space:nowrap}.quote-summary-result{border-top:1px solid var(--border);padding-top:20px;font-size:1rem;color:var(--focus)}
@media(max-width:1200px){.quote-financial-summary{grid-template-columns:1fr 1fr}.quote-summary-panel:first-child{grid-column:1/-1}}@media(max-width:650px){.quote-financial-summary{grid-template-columns:1fr}.quote-cost-breakdown{flex-direction:column}.quote-cost-legend{width:100%}}
dialog:has(.quote-form){width:calc(100vw - 2rem);max-width:none;height:calc(100vh - 2rem);max-height:none;overflow:auto}
.quote-total-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;text-align:left}.quote-total-grid div{background:var(--lime);border-radius:12px;padding:12px}.quote-total-grid span{display:block;color:var(--muted);font-size:.78rem}.quote-total-grid strong{display:block;margin-top:5px}.margin-edit{color:var(--ink);background:var(--surface);border-color:var(--focus);margin-top:5px}
@media(max-width:720px){dialog:has(.quote-form){width:calc(100vw - 1rem);height:calc(100vh - 1rem);padding:18px 12px}.quote-total-grid{grid-template-columns:1fr 1fr}}

dialog.order-fullscreen:has(#order-form){width:calc(100vw - 1rem);max-width:none;height:calc(100vh - 1rem);max-height:none;overflow:auto}

.finance-selection-float{position:fixed;right:24px;bottom:24px;z-index:100;display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:calc(100vw - 32px);padding:16px 24px;border:1px solid #00b9a8;border-radius:18px;background:#00b9a8;color:#fff;box-shadow:0 8px 28px #0005;cursor:pointer}.finance-selection-float[hidden]{display:none}.finance-selection-float strong{font-size:1.5rem;font-variant-numeric:tabular-nums}.finance-selection-float span{font-size:.85rem}.finance-selection-float:focus-visible{outline:3px solid var(--ink);outline-offset:3px}#content:has(.finance-selection-float:not([hidden])){padding-bottom:150px}@media(max-width:720px){.finance-selection-float{right:16px;bottom:16px;padding:12px 18px}}

.cash-layout-top,.cash-layout-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.cash-layout-bottom{margin-top:24px}.cash-layout-top>section,.cash-layout-bottom>section{min-width:0;margin:0}.cash-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cash-table-scroll{overflow-x:auto}.cash-table-scroll table{min-width:420px}.cash-bank-list{display:grid;gap:12px}.cash-bank{border:1px solid var(--border);border-radius:16px;padding:18px;background:var(--surface)}.cash-bank>div:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.cash-bank span{color:var(--muted);font-size:.85rem}.cash-bank-balance{display:block;font-size:1.5rem;margin:10px 0}.cash-bank-month{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cash-bank-month b{display:block;color:var(--ink);margin-top:4px}.cash-main-kpis small{display:block;margin-top:8px;color:var(--muted)}@media(max-width:1050px){.cash-layout-top,.cash-layout-bottom{grid-template-columns:1fr}}

.cash-layout-bottom .cash-table-scroll{max-height:360px;overflow:auto}.cash-layout-bottom table thead{position:sticky;top:0;z-index:1;background:var(--surface)}

.cash-main-kpis .cash-positive>strong{color:#087e55}.cash-main-kpis .cash-negative>strong{color:#c83f4f}.cash-main-kpis .cash-planned>strong{font-size:1.05rem;color:var(--muted)}[data-appearance=dark] .cash-main-kpis .cash-positive>strong{color:#59dfac}[data-appearance=dark] .cash-main-kpis .cash-negative>strong{color:#ff8a91}.registry-groups{margin-bottom:12px}.registry-subtabs{margin-bottom:24px}.finance-file-input{padding:16px;border:1px solid var(--border);border-radius:12px}.finance-file-input small{color:var(--muted)}

.account-statement-button{display:block;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);font-size:.85rem;cursor:pointer}.account-statement-button:hover{border-color:var(--focus)}.cash-bank-month .account-statement-button b{display:block;margin-top:6px;font-size:1rem;color:var(--ink)}.statement-export{display:inline-flex;align-items:center;justify-content:center;padding:12px;min-width:48px;min-height:48px;color:#078779}.statement-export#statement-pdf{color:#cf4053}.statement-total{text-align:right;font-variant-numeric:tabular-nums}.statement-total strong{color:var(--ink);font-size:1.25rem}

.production-table-scroll{overflow-x:auto}.production-table-scroll table{min-width:680px}.pcp-process-icons{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}.process-chip{display:flex;flex-direction:column;align-items:center;gap:5px;width:88px;text-align:center;font-size:.78rem;line-height:1.3}.process-chip small{font-size:.7rem;color:var(--muted)}.process-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;border:3px solid #a1a8aa;border-radius:12px;padding:7px;background:var(--surface);color:var(--muted)}.process-icon img{width:100%;height:100%;object-fit:contain}.process-icon.process-open img{filter:grayscale(1);opacity:.7}.process-icon.process-done{border-color:#00b9a8;color:#00b9a8;box-shadow:0 0 0 2px #00b9a822}.os-process-link{padding:0;border:0;background:transparent;color:var(--ink);font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.production-process-tabs{display:flex;gap:12px;overflow-x:auto;padding:4px 0 16px;margin-bottom:16px}.production-process-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:130px;max-width:170px;padding:16px;border:1px solid var(--border);border-radius:16px;white-space:normal;background:var(--surface);color:var(--ink)}.production-process-tab.active{border-color:#00b9a8;box-shadow:inset 0 0 0 1px #00b9a8}.production-process-tab small{color:var(--muted)}.production-filters{max-width:260px;margin-bottom:12px}#process-icon-preview{display:flex;align-items:center;justify-content:center}.plan-step .item-trash,#remove-process-icon{color:#cf4053;border-color:#cf4053}.production-table-scroll td .field{margin:0}button.os-process-link:focus-visible{outline:2px solid var(--focus);outline-offset:5px}

.billing-table{min-width:1100px}.billing-table td:nth-child(n+2):nth-child(-n+5){white-space:nowrap;word-break:normal;overflow-wrap:normal}.billing-table td:last-child{min-width:185px;white-space:nowrap}.billing-table td:nth-child(6) small{display:block;margin-top:7px;color:var(--muted)}.billing-table td:first-child{min-width:230px}

.company-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding-top: 16px; }
.main { display: flex; min-height: 100vh; flex-direction: column; }
.main > #content { flex: 1; }
.main > .company-footer { margin-top: 32px; }
.login > .company-footer { grid-column: 1 / -1; text-align: center; padding: 16px 24px; }
.login { grid-template-rows: minmax(0,1fr) auto; }
@media print { .main { display: block; min-height: 0; } }
