/* Shared foundation, intentionally loaded after the legacy styles. */
:root {
  --lm-canvas:#faf7f1; --lm-surface:#fffdfa; --lm-action:#c83e00;
  --lm-action-hover:#a83200; --lm-text:#211c19; --lm-border:#e6dfd5;
  --lm-subtle:#6a635d; --lm-focus:#985800; --lm-corner:10px;
  --brand-primary:var(--lm-action); --brand-secondary:var(--lm-text);
  --lm-red:var(--lm-action); --lm-red2:var(--lm-action); --lm-paper:var(--lm-canvas);
  --lm-cream:var(--lm-canvas); --lm-line:var(--lm-border); --lm-ink:var(--lm-text);
  --red:var(--lm-action); --red2:var(--lm-action); --cream:var(--lm-canvas);
  --line:var(--lm-border); --ink:var(--lm-text); --panel-accent:var(--lm-action);
  --panel-border:var(--lm-border); --lp-red-600:var(--lm-action); --lp-red-700:var(--lm-action-hover);
}
body { background:var(--lm-canvas); color:var(--lm-text); }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--lm-focus); outline-offset:4px; }
button:disabled { cursor:not-allowed; opacity:.6; }
.site-btn,.net-btn,.panel-button { border-radius:8px; font-weight:600; min-height:44px; }
.site-btn.primary,.site-btn.gold,.net-btn.primary,.panel-button.primary {
  color:#fff; background:var(--lm-action); border-color:var(--lm-action);
}
.site-btn.primary:hover,.site-btn.gold:hover,.net-btn.primary:hover,.panel-button.primary:hover {
  background:var(--lm-action-hover); border-color:var(--lm-action-hover);
}
.site-section { padding:52px max(24px,calc((100vw - 1240px)/2)); }
.site-header { height:90px; padding:10px max(24px,calc((100vw - 1240px)/2)); background:var(--lm-canvas); }
.site-brand { width:192px; height:70px; }
.site-nav a { font-weight:500; border-radius:6px; }
.site-nav a:nth-last-child(2) { background:transparent; color:inherit; }
.site-nav a.active { color:var(--lm-action); background:#f9e8da; }
.site-nav a:last-child { background:var(--lm-action); color:#fff; }
.site-footer { background:#262420; color:#fff; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding:42px max(24px,calc((100vw - 1240px)/2)); }
.site-footer>div { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.site-footer img { width:180px; background:var(--lm-canvas); border-radius:6px; }
.site-footer p { margin:0; color:#e1dbd3; font-size:14px; }
.site-footer a { color:#e1dbd3; text-decoration:none; font-size:14px; min-height:30px; }
.site-footer a:hover { color:#fff; text-decoration:underline; }
.site-footer strong { font-size:15px; margin-bottom:6px; }
body.net,.lp-admin-shell { background:var(--lm-canvas)!important; }
.net-head h1,.net-card h2,.net-card h3,.section h2 { font-family:Inter,Arial,sans-serif; letter-spacing:-.025em; }
.net-head h1 { font-size:32px; line-height:1.15; font-weight:700; }
.net-card,.form-card,.net-table-wrap,.panel-card,.panel-table-wrap { background:var(--lm-surface); border-color:var(--lm-border); border-radius:10px; box-shadow:0 3px 12px #291d0c04; }
.net-btn.primary { background:var(--lm-action); }
.net-table th { background:#f6f2ec; text-transform:none; letter-spacing:0; font-size:13px; }
.net-table td,.net-table th { padding:16px; }
.net-top a.active,.lp-sidebar nav a.active { background:#fbe6d7; color:var(--lm-action); }
.lp-sidebar,.lp-admin-shell .cabecalho { background:var(--lm-surface)!important; }
.net-card input,.form-card input,.panel-input { min-height:44px; }
.lp-admin-shell .panel-button.primary,.lp-admin-shell button[type=submit] { background:var(--lm-action)!important; }
.lp-admin-shell .lp-sidebar nav a.active { background:#fbe6d7!important; color:var(--lm-action)!important; }
.lm-central-toggle { display:none; }
@media(min-width:1051px) {
 body.net:has(.lm-central-toggle) .net-top { position:fixed; inset:0 auto 0 0; width:232px; flex-direction:column; justify-content:flex-start; align-items:stretch; padding:24px 16px; border-right:1px solid var(--lm-border); border-bottom:0; background:var(--lm-canvas); overflow:auto; }
 body.net:has(.lm-central-toggle) .net-top>a { padding:0 10px 20px; }
 body.net:has(.lm-central-toggle) .net-top img { width:180px; height:auto; }
 body.net:has(.lm-central-toggle) .net-top nav { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-top:24px; }
 body.net:has(.lm-central-toggle) .net-top nav a { min-height:46px; padding:14px 12px; border-radius:8px; font-size:14px; font-weight:500; }
 body.net:has(.lm-central-toggle) .net-wrap { margin-left:232px; padding:36px; max-width:none; }
}
@media(max-width:1050px) {
 body.net:has(.lm-central-toggle) .net-top { flex-direction:row; align-items:center; min-height:76px; padding:10px 18px; }
 body.net:has(.lm-central-toggle) .net-top nav { display:none; }
 .lm-central-toggle { display:block; min-height:44px; padding:10px 16px; border:1px solid var(--lm-border); border-radius:8px; background:var(--lm-surface); }
 body.net.lm-central-open .net-top nav { display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; padding:16px; background:var(--lm-surface); box-shadow:0 12px 20px #211c1912; max-height:70vh; overflow:auto; }
 body.net.lm-central-open .net-top nav a { min-height:44px; }
}
@media(max-width:760px) {
 .site-header { height:82px; padding:8px 18px; }
 .site-brand { width:166px; height:62px; }
 .site-section { padding:34px 18px; }
 .site-nav.open { background:var(--lm-canvas); }
 .site-footer { grid-template-columns:1fr; gap:26px; padding:32px 20px; }
 .net-table-wrap,.panel-table-wrap { max-width:100%; overflow:auto; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
/* Compatibility for operational modules that previously omitted the approved foundation. */
body.finance-v46{--fin-red:var(--lm-action);--fin-ink:var(--lm-text);--fin-border:var(--lm-border);--fin-bg:var(--lm-canvas);--fin-muted:var(--lm-subtle)}
.finance-v46 .conteudo-financeiro{background:var(--lm-canvas)!important;min-width:0}
.finance-v46 .sidebar-financeiro{background:var(--lm-surface)!important;border-color:var(--lm-border)!important}
.finance-v46 .card-pagina{background:var(--lm-surface)!important;border-color:var(--lm-border)!important}
.finance-v46 .menu-financeiro a.ativo{background:#fbe6d7!important;color:var(--lm-action)!important}
.finance-v46 .menu-financeiro a{white-space:normal;overflow-wrap:anywhere}
.finance-v46 .grid-duas-colunas>*{min-width:0}
body.salon-page{--salon-red:var(--lm-action);--salon-ink:var(--lm-text);--salon-muted:var(--lm-subtle);--salon-border:var(--lm-border);background:var(--lm-canvas)}
body.pl-kitchen-page{--ks-border:var(--lm-border);--ks-muted:var(--lm-subtle);--ks-bg:var(--lm-canvas)}
.pl-kitchen-page .kitchen-topbar{background:var(--lm-surface);border-color:var(--lm-border)}
/* Green remains the semantic preparation/ready state; the layout and status colors are preserved. */
.salon-page .staff-product select,.salon-page .staff-product input,.salon-page .staff-product-card select{max-width:100%;min-width:0}
@media(max-width:650px){.salon-page .salon-topbar{flex-wrap:wrap;gap:12px;padding:12px 0}.salon-page .salon-brand{min-width:0}.salon-page .salon-top-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;width:100%}.salon-page select{max-width:100%;min-width:0}}
.finance-v46 .menu-financeiro a>i{flex:0 0 18px;width:18px}
.finance-v46 .menu-financeiro a>span{flex:1 1 auto;min-width:0;width:auto;text-align:left;font-size:inherit}

/* Unit shell: finance reuses the panel sidebar and header, with its business content intact. */
body.finance-v46.lp-admin-shell .layout-financeiro{display:block}
body.finance-v46.lp-admin-shell .conteudo-financeiro{margin:72px 0 0 232px!important;min-height:calc(100dvh - 72px);width:auto;padding:24px!important}
body.finance-v46.lp-admin-shell.sidebar-closed .conteudo-financeiro{margin-left:68px!important}
.lp-admin-shell .cabecalho{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px}
.lp-admin-shell .cabecalho .btn-config{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;border:1px solid var(--lm-border);border-radius:8px;background:var(--lm-surface);color:var(--lm-text);text-decoration:none;font-size:12px;font-weight:600}
.lp-admin-shell .cabecalho .acoes-header{display:flex;flex-wrap:wrap;align-items:center}
.lp-admin-shell .lp-sidebar nav a span{min-width:0;overflow-wrap:anywhere}
.lp-admin-shell .panel-table-wrap{max-width:100%;overflow:auto}
@media(max-width:700px){
 body.finance-v46.lp-admin-shell .conteudo-financeiro,body.finance-v46.lp-admin-shell.sidebar-closed .conteudo-financeiro{margin-left:46px!important;padding:16px 12px!important}
 .lp-admin-shell .lp-sidebar{max-width:calc(100vw - 32px)}
 .lp-admin-shell .panel-actions{flex-wrap:wrap}
}

/* Same authenticated unit shell; authorized standalone devices retain their task surface. */
body.salon-page.lp-admin-shell .salon-shell,body.pl-kitchen-page.lp-admin-shell .kitchen-shell{margin:72px 0 0 232px!important;width:auto!important;max-width:none;padding:24px;min-width:0}
body.salon-page.lp-admin-shell.sidebar-closed .salon-shell,body.pl-kitchen-page.lp-admin-shell.sidebar-closed .kitchen-shell{margin-left:68px!important}
.lp-admin-shell .salon-topbar,.lp-admin-shell .kitchen-topbar{position:static;flex-wrap:wrap;height:auto;gap:12px}
.lp-admin-shell .salon-brand,.lp-admin-shell .kitchen-brand{min-width:0}
.lp-admin-shell .salon-top-actions,.lp-admin-shell .kitchen-actions{display:flex;flex-wrap:wrap;gap:8px}
.lp-admin-shell .approval-queue{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.lp-admin-shell .kitchen-board{max-width:100%}
@media(max-width:700px){
 body.salon-page.lp-admin-shell .salon-shell,body.salon-page.lp-admin-shell.sidebar-closed .salon-shell,body.pl-kitchen-page.lp-admin-shell .kitchen-shell,body.pl-kitchen-page.lp-admin-shell.sidebar-closed .kitchen-shell{margin-left:46px!important;padding:16px 12px}
 .lp-admin-shell .salon-top-actions,.lp-admin-shell .kitchen-actions{width:100%;justify-content:flex-start}
}

/* Quiet cash surface; alerts retain semantic colors, amounts never rely on color. */
.finance-v46 .lm-cash-page .caixa-resumo-card,.finance-v46 .lm-cash-page .caixa-movimento-resumo-card,.finance-v46 .lm-cash-page .caixa-saldo-esperado{background:var(--lm-surface)!important;border:1px solid var(--lm-border)!important;box-shadow:none!important}
.finance-v46 .lm-cash-page .caixa-resumo-card strong,.finance-v46 .lm-cash-page .caixa-movimento-resumo-card strong,.finance-v46 .lm-cash-page .caixa-saldo-esperado strong{color:var(--lm-text)!important}
.lm-cash-page .caixa-resumo-icone,.lm-cash-page .caixa-saldo-esperado-icone{display:none!important}
.lm-cash-details{margin:18px 0;padding:16px;border:1px solid var(--lm-border);border-radius:10px;background:var(--lm-surface)}
.lm-cash-details>summary{cursor:pointer;font-weight:600;min-height:32px}.lm-cash-shortcuts{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:12px}.lm-cash-shortcuts details{position:relative}.lm-cash-shortcuts summary{cursor:pointer;padding:10px}.lm-cash-shortcuts details[open]{background:var(--lm-surface);padding:8px;border:1px solid var(--lm-border);border-radius:8px}.lm-cash-shortcuts details a{display:block;padding:8px;color:var(--lm-text)}
.approval-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.approval-actions .approval-send{flex:1;min-width:min(240px,100%)}#deferredError{margin:0;white-space:normal;overflow-wrap:anywhere}

.lm-cash-page .caixa-status-icone,.lm-cash-page .caixa-fechamento-icone{display:none!important}
