/* Presentation panel: sober navigation, clear hierarchy and predictable controls. */
html[data-presentation]:root {
  --canvas:#f4f6f3; --shell:#ffffff; --surface:#ffffff; --surface-2:#f6f8f7; --surface-3:#e9f0ed;
  --ink:#172522; --ink-2:#344640; --mut:#60716b; --faint:#75847e;
  --line:#dce5e0; --line-2:#e8eeea;
  --orange:#0c7972; --orange-ink:#075a55; --orange-soft:#e2f2ee;
  --ok:#126b47; --ok-soft:#e4f3e9; --warn:#8a5a0b; --warn-soft:#fff3d8;
  --bad:#b83731; --bad-soft:#fce9e7; --on-dark:#ffffff;
  --r-shell:0; --r-card:10px; --r-soft:8px; --r-pill:8px;
  --sh-1:0 1px 3px rgb(16 39 31 / 5%); --sh-2:0 3px 12px rgb(16 39 31 / 8%);
  --sh-3:0 12px 30px rgb(16 39 31 / 8%);
  --sans:"DM Sans",system-ui,-apple-system,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark) {
  html[data-presentation]:root:not([data-theme]) {
    --canvas:#f4f6f3; --shell:#ffffff; --surface:#ffffff; --surface-2:#f6f8f7; --surface-3:#e9f0ed;
    --ink:#172522; --ink-2:#344640; --mut:#60716b; --faint:#75847e;
    --line:#dce5e0; --line-2:#e8eeea; --orange:#0c7972; --orange-ink:#075a55; --orange-soft:#e2f2ee;
    --ok:#126b47; --ok-soft:#e4f3e9; --warn:#8a5a0b; --warn-soft:#fff3d8;
    --bad:#b83731; --bad-soft:#fce9e7; --on-dark:#ffffff;
    color-scheme:light;
  }
}

html[data-presentation] body{font-size:15px;line-height:1.5}
html[data-presentation] .app-shell{padding:0;gap:0;background:var(--canvas)}
html[data-presentation] .sidebar{
  width:244px;height:100dvh;top:0;padding:0;gap:0;align-items:stretch;
  background:#142b27;color:#eaf3ef;box-shadow:none;border-right:1px solid #0f221f;
}
html[data-presentation] .sidebar-brand{
  width:auto;height:75px;border-radius:0;display:flex;align-items:center;justify-content:flex-start;
  gap:12px;padding:0 20px;background:transparent;box-shadow:none;border-bottom:1px solid #33514a;
}
html[data-presentation] .sidebar-brand img{width:34px}
html[data-presentation] .sidebar-brand .nav-lbl{display:block;font-size:18px;font-weight:800;letter-spacing:.02em;line-height:1.1}
html[data-presentation] .sidebar-brand small{display:block;margin-top:4px;color:#a9c7bc;font-size:10px;letter-spacing:.11em;text-transform:uppercase}
html[data-presentation] #main-nav{display:flex;align-items:stretch;gap:3px;overflow:auto;padding:18px 10px;scrollbar-width:thin}
html[data-presentation] #main-nav a{
  width:auto;height:auto;min-height:42px;border-radius:7px;display:flex;justify-content:flex-start;
  gap:12px;padding:9px 13px;background:transparent;box-shadow:none;color:#d4e4dc;text-decoration:none;
  font-weight:600;transition:background .16s ease,color .16s ease;
}
html[data-presentation] #main-nav a:hover{background:#254640;color:#ffffff;transform:none;box-shadow:none}
html[data-presentation] #main-nav a[aria-current="page"]{background:#d9eee8;color:#07584f;box-shadow:none}
html[data-presentation] #main-nav a[aria-current="page"]::after{display:none}
html[data-presentation] #main-nav .nav-ico{width:18px;height:18px;flex:none}
html[data-presentation] #main-nav .nav-lbl{
  position:static;opacity:1;white-space:normal;background:none;color:inherit;box-shadow:none;
  padding:0;font-size:13.5px;line-height:1.35;pointer-events:auto;
}
html[data-presentation] .sidebar-footer{align-items:stretch;padding:14px 13px 18px;border-top:1px solid #33514a;gap:2px}
html[data-presentation] .sidebar-footer .user-name{display:block;margin:0;color:#fff;font-size:13.5px;font-weight:700}
html[data-presentation] .sidebar-footer .user-meta{display:block;margin:0 0 9px;color:#a9c7bc;font-size:12px}
html[data-presentation] .sidebar-footer .button{width:100%;height:40px;border-radius:7px;padding:0 10px;display:flex;justify-content:flex-start;gap:10px;background:#254640;color:#fff;box-shadow:none}
html[data-presentation] .sidebar-footer .button .nav-lbl{display:inline}

html[data-presentation] .workspace{border-radius:0;box-shadow:none;background:var(--canvas);min-height:100dvh;overflow:visible}
html[data-presentation] .topbar{min-height:75px;padding:12px 30px;background:#fff;border-bottom:1px solid var(--line)}
html[data-presentation] .topbar-organization{font-size:18px;font-weight:800}
html[data-presentation] .topbar-branch{font-size:12.5px}
html[data-presentation] .topbar-demo{display:inline-flex;align-items:center;padding:5px 9px;border-radius:5px;border:1px solid #a5d3c3;background:#e9f8ef;color:#075a55;font-size:10px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
html[data-presentation] #main-content{padding:26px 30px 42px;max-width:1600px;width:100%;margin:0 auto}
html[data-presentation] .page-heading{margin-bottom:22px}
html[data-presentation] .page-heading h1,html[data-presentation] #main-content h1{font-size:27px;letter-spacing:-.02em}
html[data-presentation] .page-heading p{color:var(--mut);font-size:14px}

html[data-presentation] .card,html[data-presentation] .data-card,html[data-presentation] .detail-card,
html[data-presentation] .narrow-card,html[data-presentation] .cart-card,
html[data-presentation] .order-card,html[data-presentation] .return-panel{
  border:1px solid var(--line);border-radius:10px;box-shadow:var(--sh-1);background:#fff;
}
html[data-presentation] .button{border-radius:7px;min-height:42px;padding:9px 15px;font-weight:700;transform:none!important}
html[data-presentation] .button-primary{background:#0c7972;color:#fff}
html[data-presentation] .button-primary:hover:not(:disabled){background:#075f59}
html[data-presentation] .button-secondary{border:1px solid var(--line);background:#fff;color:#25413a}
html[data-presentation] .button-secondary:hover:not(:disabled){background:#f1f7f3}
html[data-presentation] .button-quiet{color:var(--ink-2)}
html[data-presentation] .icon-button{border-radius:7px}
html[data-presentation] .table-wrap{border-radius:9px;border-color:var(--line)}
html[data-presentation] thead th{background:#f0f5f2;color:#3d584e}
html[data-presentation] .grid-3>.stat:first-child,html[data-presentation] .grid-2>.stat:first-child{background:#0c7972}
html[data-presentation] .stat{border-radius:9px;border:1px solid var(--line);background:#fff}
html[data-presentation] .branch-scope{border-radius:9px}
html[data-presentation] .receipt-expiry-field{background:#fff8e5}
html[data-presentation] #purchase-receipt-form .form-actions{background:#fff;border-top:1px solid var(--line)}
html[data-presentation] .compound-row{border-left:4px solid #0c7972}
html[data-presentation] .compound-row[open]{box-shadow:var(--sh-2)}

.panel-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.panel-overview .stat{min-height:112px}
.panel-overview .stat-value{font-size:24px}
.panel-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.panel-quick-card{display:flex;flex-direction:column;gap:9px;min-height:145px}
.panel-quick-card p{margin:0;color:var(--mut);font-size:13px;flex:1}
.panel-quick-card .button{align-self:flex-start}
.demo-mark{display:inline-block;align-self:flex-start;padding:6px 10px;border:1px solid #619589;border-radius:5px;font-size:11px;font-weight:800;letter-spacing:.1em}
.scenario-tag{display:inline-flex;margin:10px 0 0;padding:5px 9px;border-radius:5px;background:#e9f8ef;color:#075a55;font-size:12px;font-weight:700}
.presentation-invoices{margin:18px 0;padding:18px;border:1px solid #b7d8ce;border-radius:9px;background:#f3faf6}
.presentation-invoice-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.presentation-invoice-head h3{margin:2px 0 0;font-size:18px}
.presentation-invoice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}
.presentation-invoice{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.presentation-invoice h4,.presentation-invoice p{margin:0}
.presentation-invoice h4{font-size:14px;color:var(--ink)}
.presentation-invoice .mono{font-size:12px;color:var(--orange-ink)}
.presentation-invoice p:not(.mono){font-size:12.5px;color:var(--mut)}
.presentation-invoice .table-wrap{overflow:auto}
.presentation-invoice th,.presentation-invoice td{padding:6px 8px;font-size:11.5px}
.presentation-invoice .button{margin-top:auto;align-self:flex-start}
html[data-presentation] .login-brand{background:#142b27}
html[data-presentation] .login-brand::after{background:radial-gradient(circle,rgb(35 158 126 / 22%),transparent 65%)}
html[data-presentation] .login-intro{max-width:36ch;color:#c9ded5;font-size:16px;line-height:1.6}
html[data-presentation] .login-claim{max-width:12ch}
html[data-presentation] .login-box h1{font-size:28px}

@media(max-width:1100px){.panel-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){
  html[data-presentation] .sidebar{position:fixed;width:min(278px,88vw);z-index:60;transform:translateX(-102%);transition:transform .22s ease}
  html[data-presentation] .sidebar.open{transform:translateX(0)}
  html[data-presentation] .sidebar-brand{padding-right:12px}
  html[data-presentation] .sidebar .sidebar-close{display:grid;margin-left:auto}
  html[data-presentation] .workspace{min-height:100dvh}
  html[data-presentation] .topbar{padding:12px 16px;gap:10px}
  html[data-presentation] .topbar .menu-button{display:grid}
  html[data-presentation] #main-content{padding:20px 16px 32px}
  html[data-presentation] .topbar-demo{display:none}
}
@media(max-width:620px){.panel-overview,.panel-quick-grid{grid-template-columns:1fr}.panel-overview .stat{min-height:90px}}
@media(max-width:620px){.presentation-invoice-head{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){html[data-presentation] .sidebar,html[data-presentation] #main-nav a{transition:none}}
@media print{html[data-presentation] .sidebar,html[data-presentation] .topbar-demo{display:none!important}}

/* El panel demo conserva la gramática visual del /panel clásico: papel,
   índice numerado, filetes y naranja de marca; los datos siguen en v2. */
html[data-presentation]:root{
  --canvas:#fff;--shell:#fff;--surface:#fff;--surface-2:#f5f3f0;--surface-3:#eeebe7;
  --ink:#16181a;--ink-2:#4a4f54;--mut:#71777c;--faint:#8b9197;
  --line:#e6e3de;--line-2:#eeeae5;--orange:#f04a23;--orange-ink:#c2360f;--orange-soft:#fdece7;
  --r-shell:0;--r-card:2px;--r-soft:2px;--r-pill:2px;
  --sh-1:none;--sh-2:none;--sh-3:none;
  --sans:"Geist",system-ui,sans-serif;--mono:"Geist Mono",ui-monospace,monospace;
}
html[data-presentation] body{font-size:14px;background:#fff}
html[data-presentation] h1,html[data-presentation] h2,html[data-presentation] h3{font-family:"Schibsted Grotesk",var(--sans)}
html[data-presentation] .sidebar{
  width:242px;background:#fff;color:var(--ink);border-right:1px solid var(--line);
  box-shadow:none;gap:0;
}
html[data-presentation] .sidebar-brand{
  height:auto;min-height:102px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:5px;padding:18px 20px 14px;border-bottom:1px solid var(--line);
}
html[data-presentation] .sidebar-brand img{width:126px;height:auto;max-width:100%}
html[data-presentation] .sidebar-brand .nav-lbl{font:500 10px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mut)}
html[data-presentation] .sidebar-brand small{margin:0;color:inherit;font-size:inherit;letter-spacing:inherit}
html[data-presentation] #main-nav{gap:0;padding:8px 0 12px}
html[data-presentation] #main-nav a{
  min-height:34px;margin:0;border-radius:0;padding:6px 20px;gap:12px;color:var(--ink-2);
  background:none;align-items:baseline;font-size:13.5px;font-weight:500;transition:color .12s ease,background .12s ease;
}
html[data-presentation] #main-nav a:hover{background:#faf5f2;color:var(--ink)}
html[data-presentation] #main-nav a[aria-current="page"]{background:#fff;color:var(--ink);font-weight:650}
html[data-presentation] #main-nav a[aria-current="page"] .nav-lbl{background:#f9c5b8}
html[data-presentation] #main-nav a[aria-current="page"] .nav-no{color:var(--ink)}
html[data-presentation] #main-nav .nav-no{width:18px;flex:none;font:500 10.5px var(--mono);color:#a8adb2}
html[data-presentation] #main-nav .nav-lbl{display:inline;margin:-1px -5px;padding:1px 5px;font-size:13.5px;line-height:1.32;color:inherit;white-space:normal}
html[data-presentation] .sidebar-footer{padding:14px 20px 16px;border-top:1px solid var(--line);gap:0;color:var(--ink)}
html[data-presentation] .sidebar-footer .sf-row{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:11.5px;color:var(--mut)}
html[data-presentation] .sidebar-footer .sf-row b{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}
html[data-presentation] .sidebar-footer .sf-user{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
html[data-presentation] .sidebar-footer .user-name{color:var(--ink);font-size:12.5px;font-weight:650}
html[data-presentation] .sidebar-footer .user-meta{margin:0;color:var(--faint);font:500 10px var(--mono);text-transform:uppercase;letter-spacing:.08em}
html[data-presentation] .sidebar-footer #logout-button{min-height:28px;width:auto;height:auto;padding:2px 0;background:none;color:var(--mut);font:500 11px var(--mono);text-decoration:underline;box-shadow:none}
html[data-presentation] .sidebar-footer #logout-button:hover{color:var(--bad)}
html[data-presentation] .workspace{background:#fff}
html[data-presentation] .topbar{min-height:46px;height:auto;padding:6px 30px;gap:18px;border-color:var(--line)}
html[data-presentation] .topbar-organization{font:500 11px var(--mono);letter-spacing:.06em;text-transform:uppercase}
html[data-presentation] .topbar-branch{margin:0;font:500 10px var(--mono);color:var(--mut)}
html[data-presentation] .topbar-demo{padding:4px 6px;border:1px solid #f1c0b4;border-radius:2px;background:#fff6f3;color:var(--orange-ink);font:600 9px var(--mono);letter-spacing:.04em}
html[data-presentation] #main-content{max-width:1500px;padding:28px 32px 44px}
html[data-presentation] .page-heading h1,html[data-presentation] #main-content h1{font-size:30px}
html[data-presentation] .card,html[data-presentation] .data-card,html[data-presentation] .detail-card,
html[data-presentation] .narrow-card,html[data-presentation] .cart-card,html[data-presentation] .order-card,
html[data-presentation] .return-panel,html[data-presentation] .stat{
  border:1px solid var(--line);border-radius:2px;box-shadow:none;background:#fff;
}
html[data-presentation] .button{min-height:34px;padding:6px 11px;border-radius:2px;font-size:12.5px;box-shadow:none}
html[data-presentation] .button-primary{background:var(--ink);color:#fff}
html[data-presentation] .button-primary:hover:not(:disabled){background:#414549}
html[data-presentation] .button-secondary{border-color:var(--line);background:#fff;color:var(--ink)}
html[data-presentation] .button-secondary:hover:not(:disabled){background:var(--soft,#f5f3f0)}
html[data-presentation] .table-wrap,html[data-presentation] .branch-scope{border-radius:2px}
html[data-presentation] .panel-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-presentation] .panel-overview .stat{min-height:108px}
html[data-presentation] .panel-quick-grid{gap:12px}
html[data-presentation] .panel-quick-card{min-height:138px}
html[data-presentation] .login-brand{background:#151719;color:#fff}
html[data-presentation] .login-brand::after{background:radial-gradient(circle,rgb(240 74 35 / 24%),transparent 65%)}
html[data-presentation] .login-panel{background:#eeece8}
html[data-presentation] .login-claim{max-width:17ch}
html[data-presentation] .login-intro{max-width:37ch;color:#d8d8d5}
html[data-presentation] .login-box h1{font-size:30px}
html[data-presentation] .login-box .button-primary{background:#16181a}
html[data-presentation] .demo-mark{border-color:#e77d60;color:#ffd4c7;border-radius:2px}
html[data-presentation] .scenario-tag{background:#fff1eb;color:#a52c0d;border-radius:2px}
html[data-presentation] .presentation-invoices{border-color:#efd1c7;border-radius:2px;background:#fff8f5}
html[data-presentation] .presentation-invoice{border-radius:2px}
@media(max-width:1100px){html[data-presentation] .panel-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){
  html[data-presentation] .sidebar{width:min(278px,88vw);box-shadow:0 12px 35px rgb(22 24 26 / 16%)}
  html[data-presentation] .sidebar-brand{flex-direction:row;align-items:center;justify-content:space-between}
  html[data-presentation] .topbar{padding:9px 16px}
  html[data-presentation] #main-content{padding:22px 16px 36px}
}
@media(max-width:620px){html[data-presentation] .panel-overview{grid-template-columns:1fr}}
