/* ==========================================================================
   Complutum Basket · Capa de diseño 5.18 «Pabellón»
   Se carga la última: unifica colores, tipografía, barra lateral, fondo con
   marca de agua y la nueva pantalla de inicio. No cambia datos ni lógica.
   ========================================================================== */

@font-face{font-family:"Barlow Condensed";font-weight:500;font-style:normal;font-display:swap;src:url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:800;font-style:normal;font-display:swap;src:url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/barlow-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-weight:500;font-style:normal;font-display:swap;src:url("fonts/barlow-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/barlow-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/barlow-latin-700-normal.woff2") format("woff2")}

:root{
  --b27-pine:#082E1A;
  --b27-green:#0E5530;
  --b27-leaf:#1D7A45;
  --b27-mint:#E3EFE6;
  --b27-ball:#E8731A;
  --b27-ball-dark:#C25A0C;
  --b27-chalk:#F3F6F2;
  --b27-ink:#12241A;
  --b27-muted:#5C6E63;
  --b27-line:#D9E2DB;
  --b27-red:#B83A2E;
  --b27-display:"Barlow Condensed","Arial Narrow","Roboto Condensed",Impact,sans-serif;
  --b27-text:"Barlow","Segoe UI",system-ui,-apple-system,sans-serif;

  /* Variables heredadas de versiones anteriores, llevadas a la paleta del club */
  --blue:var(--b27-green);
  --navy:var(--b27-pine);
  --navy2:var(--b27-green);
  --orange:var(--b27-ball);
  --green:var(--b27-leaf);
  --ink:var(--b27-ink);
  --muted:var(--b27-muted);
  --line:var(--b27-line);
  --paper:var(--b27-chalk);
  --club-green:var(--b27-green);
  --club-green-dark:var(--b27-pine);
  --club-orange:var(--b27-ball);
  font-family:var(--b27-text);
  background:var(--b27-chalk);
  color:var(--b27-ink);
}
body{font-family:var(--b27-text);background:var(--b27-chalk);color:var(--b27-ink);-webkit-font-smoothing:antialiased}
h1,h2,h3,.topbar h2{font-family:var(--b27-display);letter-spacing:.005em}

/* ---------- Fondo: líneas de pista + escudo grabado --------------------- */
body .app-shell{background:var(--b27-chalk)}
body .app-shell>main{position:relative;isolation:isolate;min-width:0}
body .app-shell>main::before{
  content:"";position:fixed;z-index:-1;pointer-events:none;
  right:-90px;bottom:-110px;width:min(46vw,620px);aspect-ratio:1;
  background:url("b27-watermark-green.png") center/contain no-repeat;
  opacity:.05;
}
body .app-shell>main::after{content:none}

/* ---------- Barra lateral ------------------------------------------------ */
body .sidebar{
  background:var(--b27-pine);
  background-image:linear-gradient(180deg,rgba(14,85,48,.55),rgba(8,46,26,0) 45%),radial-gradient(120% 60% at 0 100%,rgba(232,115,26,.10),transparent 60%);
  padding:18px 12px 14px;display:flex;flex-direction:column;height:100vh;overflow:hidden;
}
body .sidebar::after{
  left:auto;right:-70px;bottom:-40px;width:260px;height:260px;
  background:url("b27-watermark-white.png") center/contain no-repeat;
  opacity:.035;filter:none;
}
body .side-brand{gap:12px;padding:4px 8px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
body .side-brand .mini-mark{
  width:44px;height:44px;border:0;border-radius:0;flex:0 0 auto;
  background:url("b27-shield-600.png") center/contain no-repeat;color:transparent;font-size:0;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));
}
body .side-brand strong{font-family:var(--b27-display);font-size:19px;font-weight:700;letter-spacing:.01em;color:#fff}
body .side-brand span{color:rgba(255,255,255,.55);font-size:12.5px}

body .sidebar nav#mainNav{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;
  justify-content:flex-start;gap:1px;margin:10px -4px 0;padding:0 4px 12px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;
}
body .sidebar nav#mainNav::-webkit-scrollbar{width:6px}
body .sidebar nav#mainNav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:6px}
body .sidebar nav#mainNav button{
  flex:0 0 auto;margin:0;padding:7px 10px 7px 12px;border-radius:7px;gap:11px;
  font-family:var(--b27-text);font-size:14px;font-weight:500;line-height:1.2;
  color:rgba(236,244,238,.74);background:transparent;box-shadow:none;white-space:nowrap;
  text-overflow:ellipsis;overflow:hidden;position:relative;
}
body .sidebar nav#mainNav button>span:first-child{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;font-size:14px;opacity:.9}
body .sidebar nav#mainNav button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .sidebar nav#mainNav button:hover{background:rgba(255,255,255,.06);color:#fff}
body .sidebar nav#mainNav button.active{background:rgba(255,255,255,.1);color:#fff;font-weight:600;box-shadow:none}
body .sidebar nav#mainNav button.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:var(--b27-ball)}
body .sidebar nav#mainNav button.active>span:first-child{color:var(--b27-ball)}
body .sidebar nav#mainNav button:focus-visible{outline:2px solid var(--b27-ball);outline-offset:-2px}
body .sidebar .b27-nav-group{
  font-family:var(--b27-display);font-size:13px;font-weight:600;letter-spacing:.06em;
  color:rgba(236,244,238,.42);padding:14px 12px 5px;flex:0 0 auto;
}
body .sidebar .b27-nav-group:first-child{padding-top:4px}
body .sidebar .privacy-note{display:none}
body .sidebar .logout{
  flex:0 0 auto;margin:8px 0 0;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08);border-radius:0;
  font-size:13.5px;font-weight:500;color:rgba(236,244,238,.62);display:flex;align-items:center;gap:10px;background:transparent;
}
body .sidebar .logout:hover{color:#fff}

/* ---------- Barra superior ---------------------------------------------- */
body .topbar{
  height:76px;padding:0 34px;gap:16px;
  background:rgba(243,246,242,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--b27-line);position:sticky;top:0;z-index:15;
}
body .topbar .eyebrow,#pageEyebrow{font-family:var(--b27-text);font-size:12.5px;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--b27-leaf)}
body .topbar h2{font-size:28px;font-weight:700;margin:0;line-height:1;color:var(--b27-ink)}
body .topbar .user-chip{margin-left:auto;gap:10px;padding:5px 12px 5px 5px;border:1px solid var(--b27-line);border-radius:999px;background:#fff}
body .topbar .user-chip #avatar{width:34px;height:34px;border-radius:50%;background:var(--b27-green);color:#fff;display:grid;place-items:center;font-family:var(--b27-display);font-weight:700;font-size:15px;letter-spacing:.02em}
body .topbar .user-chip b{font-size:13.5px;font-weight:600}
body .topbar .user-chip small{font-size:12px;color:var(--b27-muted)}

/* ---------- Componentes comunes ----------------------------------------- */
body .content{padding:28px 34px 64px;max-width:1480px}
body .eyebrow{color:var(--b27-leaf)}
body .primary,body .secondary,body .ghost,body button.danger{border-radius:8px;font-weight:600;font-family:var(--b27-text);font-size:14px;line-height:1.2;transition:background .15s,border-color .15s,color .15s}
body .primary{background:var(--b27-green);color:#fff;border:1px solid var(--b27-green)}
body .primary:hover{background:var(--b27-pine);border-color:var(--b27-pine)}
body .secondary{background:#fff;color:var(--b27-ink);border:1px solid var(--b27-line)}
body .secondary:hover{border-color:var(--b27-leaf);color:var(--b27-green);background:#fff}
body .toolbar{flex-wrap:wrap;row-gap:10px}
body .toolbar>button,body .toolbar>.primary,body .toolbar>.secondary{white-space:nowrap}
body :focus-visible{outline:2px solid var(--b27-ball);outline-offset:2px}

body .panel{border:1px solid var(--b27-line);border-radius:12px;box-shadow:0 1px 0 rgba(8,46,26,.03);background:#fff}
body .panel-head{border-bottom-color:var(--b27-line)}
body .panel-head h3{font-family:var(--b27-display);font-size:20px;font-weight:700}
body .data-table th{background:#F7FAF7;color:var(--b27-muted);font-family:var(--b27-text);font-weight:600;font-size:12px;letter-spacing:.03em;text-transform:none}
body .data-table td{border-bottom-color:#EDF2EE}
body .data-table tr:hover td{background:#F8FBF8}
body .badge{background:var(--b27-mint);color:var(--b27-green)}
body .badge.amber{background:#FDEBDC;color:var(--b27-ball-dark)}
body .toast{background:var(--b27-pine);border-left:4px solid var(--b27-ball)}

body .stat-card{border-radius:12px;border:1px solid var(--b27-line);box-shadow:none;background:#fff}
body .stat-card strong,body .stat-card .value{font-family:var(--b27-display);font-weight:700}
body .login-card input:focus,body .form-grid input:focus,body .form-grid select:focus,body .form-grid textarea:focus,body .search:focus{border-color:var(--b27-leaf);box-shadow:0 0 0 3px rgba(29,122,69,.14)}

body dialog#formDialog{border-radius:14px;border:1px solid var(--b27-line)}
body dialog#formDialog h3{font-family:var(--b27-display);font-size:26px}

/* ---------- Acceso ------------------------------------------------------- */
body .login-shell{background:var(--b27-chalk)}
body .login-brand{
  background:var(--b27-pine);
  background-image:radial-gradient(90% 70% at 20% 10%,rgba(29,122,69,.55),transparent 60%),radial-gradient(60% 50% at 100% 100%,rgba(232,115,26,.18),transparent 60%);
  padding:8vh 7vw;justify-content:center;align-items:flex-start;
}
body .login-brand::before{
  content:"";border:0;border-radius:0;width:auto;height:auto;inset:0;right:0;top:0;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 800' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='white' stroke-width='3' opacity='.08'><rect x='40' y='40' width='520' height='720'/><rect x='200' y='40' width='200' height='240'/><circle cx='300' cy='280' r='80'/><path d='M80 40 V140 A240 240 0 0 0 520 140 V40'/><line x1='40' y1='760' x2='560' y2='760'/><circle cx='300' cy='760' r='80'/></g></svg>") center/cover no-repeat;
}
body .login-brand::after{
  content:"";border:0;border-radius:0;left:auto;right:-12%;bottom:-8%;width:62%;height:auto;aspect-ratio:1;
  background:url("b27-watermark-white.png") center/contain no-repeat;opacity:.05;
}
body .login-brand .brand-logo{width:min(250px,60%);margin:0 0 34px;filter:drop-shadow(0 22px 34px rgba(0,0,0,.45))}
body .login-brand>p:first-of-type{font-family:var(--b27-text);font-size:14px;font-weight:600;letter-spacing:.04em;color:rgba(255,255,255,.62);text-transform:none}
body .login-brand h1{font-family:var(--b27-display);font-weight:800;font-size:clamp(56px,7.2vw,112px);line-height:.86;letter-spacing:-.01em;margin:10px 0 22px}
body .login-brand .brand-rule{background:var(--b27-ball);height:6px;width:84px;border-radius:0}
body .login-brand .brand-copy{color:rgba(255,255,255,.78);font-size:18px}
body .login-card h2{font-family:var(--b27-display);font-size:44px;font-weight:700;line-height:1}
body .login-card .eyebrow{font-family:var(--b27-text);letter-spacing:.02em;font-weight:600;font-size:13px;text-transform:none}
body .login-card input{border-radius:8px;border-color:var(--b27-line);padding:13px 14px}
body .login-card .primary.wide{padding:14px;font-size:15px}

/* ---------- Inicio: marcador de temporada -------------------------------- */
.b27-home{display:grid;gap:18px}
.b27-scoreboard{
  position:relative;overflow:hidden;border-radius:16px;color:#fff;
  background:var(--b27-pine);
  background-image:radial-gradient(70% 90% at 0% 0%,rgba(29,122,69,.7),transparent 65%),radial-gradient(50% 70% at 100% 100%,rgba(232,115,26,.16),transparent 70%);
  display:grid;grid-template-columns:auto 1fr auto;gap:34px;align-items:center;padding:30px 34px;
}
.b27-scoreboard::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='white' stroke-width='2.5' opacity='.09'><line x1='600' y1='0' x2='600' y2='300'/><circle cx='600' cy='150' r='70'/><circle cx='600' cy='150' r='20'/><path d='M0 30 H60 A200 200 0 0 1 60 270 H0'/><rect x='0' y='80' width='170' height='140'/><path d='M1200 30 H1140 A200 200 0 0 0 1140 270 H1200'/><rect x='1030' y='80' width='170' height='140'/></g></svg>") center/cover no-repeat;
}
.b27-scoreboard::after{
  content:"";position:absolute;right:-60px;top:-70px;width:360px;height:360px;pointer-events:none;
  background:url("b27-watermark-white.png") center/contain no-repeat;opacity:.05;
}
.b27-scoreboard>*{position:relative;z-index:1}
.b27-crest{width:128px;filter:drop-shadow(0 16px 26px rgba(0,0,0,.45))}
.b27-sb-title{display:flex;flex-direction:column;gap:6px;min-width:0}
.b27-sb-title .b27-season{font-size:14px;font-weight:600;color:rgba(255,255,255,.66)}
.b27-sb-title h1{margin:0;font-family:var(--b27-display);font-weight:800;font-size:clamp(40px,4.4vw,64px);line-height:.9;letter-spacing:-.005em}
.b27-sb-title p{margin:6px 0 0;color:rgba(255,255,255,.72);font-size:15px;max-width:46ch}
.b27-sb-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.b27-sb-actions button{border-radius:8px;padding:10px 15px;font-weight:600;font-size:14px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;font-family:var(--b27-text)}
.b27-sb-actions button:hover{background:rgba(255,255,255,.14)}
.b27-sb-actions button.b27-cta{background:var(--b27-ball);border-color:var(--b27-ball)}
.b27-sb-actions button.b27-cta:hover{background:var(--b27-ball-dark);border-color:var(--b27-ball-dark)}

.b27-board{
  background:rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:16px 20px 18px;min-width:390px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.b27-board-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:14px}
.b27-board-side{display:flex;flex-direction:column;gap:2px}
.b27-board-side.right{text-align:right}
.b27-board-side small{font-size:13px;font-weight:600;color:rgba(255,255,255,.62)}
.b27-board-side strong{font-family:var(--b27-display);font-weight:700;font-size:44px;line-height:1;font-variant-numeric:tabular-nums;color:#fff}
.b27-board-side.right strong{color:#FFB779}
.b27-board-side strong .b27-cur{font-size:.55em;margin-left:3px;opacity:.75}
.b27-period{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 4px 4px}
.b27-period b{font-family:var(--b27-display);font-size:30px;font-weight:700;line-height:1;color:var(--b27-ball);font-variant-numeric:tabular-nums}
.b27-period span{font-size:11.5px;color:rgba(255,255,255,.55)}
.b27-meter{margin-top:14px;height:8px;border-radius:8px;background:rgba(255,255,255,.12);overflow:hidden}
.b27-meter i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#3FAE6A,#9BDB7E);transform-origin:left;animation:b27-fill 1.1s cubic-bezier(.2,.8,.2,1) both}
.b27-meter-legend{display:flex;justify-content:space-between;margin-top:7px;font-size:12.5px;color:rgba(255,255,255,.6)}
@keyframes b27-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* tiras de datos */
.b27-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--b27-line);border-radius:12px;overflow:hidden}
.b27-strip button{all:unset;cursor:pointer;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:center;padding:16px 20px;border-right:1px solid var(--b27-line);position:relative}
.b27-strip button:last-child{border-right:0}
.b27-strip button:hover{background:#F8FBF8}
.b27-strip button:focus-visible{outline:2px solid var(--b27-ball);outline-offset:-2px}
.b27-strip .b27-ico{grid-row:span 2;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--b27-mint);color:var(--b27-green)}
.b27-strip .b27-ico svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.b27-strip strong{font-family:var(--b27-display);font-size:32px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:var(--b27-ink)}
.b27-strip span{font-size:13.5px;color:var(--b27-muted)}
.b27-strip button.is-alert .b27-ico{background:#FDEBDC;color:var(--b27-ball-dark)}
.b27-strip button.is-alert strong{color:var(--b27-ball-dark)}

.b27-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:18px;align-items:start}
.b27-card{background:#fff;border:1px solid var(--b27-line);border-radius:12px;overflow:hidden}
.b27-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 20px 0}
.b27-card-head h3{margin:0;font-family:var(--b27-display);font-size:22px;font-weight:700}
.b27-card-head .b27-link{all:unset;cursor:pointer;font-size:13.5px;font-weight:600;color:var(--b27-leaf)}
.b27-card-head .b27-link:hover{color:var(--b27-green);text-decoration:underline}
.b27-card-body{padding:14px 20px 20px}

/* gráfico mensual */
.b27-chart{width:100%;height:auto;display:block}
.b27-chart .bar-plan{fill:#E4ECE6}
.b27-chart .bar-paid{fill:var(--b27-leaf)}
.b27-chart .bar-now{fill:var(--b27-ball)}
.b27-chart text{font-family:var(--b27-text);font-size:12px;fill:var(--b27-muted)}
.b27-chart .val{font-family:var(--b27-display);font-size:13px;font-weight:600;fill:var(--b27-ink)}
.b27-chart .grid{stroke:#EDF2EE;stroke-width:1}
.b27-chart g.m{cursor:pointer}
.b27-chart g.m:hover .bar-plan{fill:#D3E1D6}
.b27-legend{display:flex;gap:18px;font-size:13px;color:var(--b27-muted);margin-top:6px}
.b27-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}

/* listas de atención y agenda */
.b27-list{list-style:none;margin:0;padding:0}
.b27-list li+li{border-top:1px solid #EDF2EE}
.b27-list button{all:unset;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;box-sizing:border-box;padding:11px 0}
.b27-list button:hover b.t{color:var(--b27-green)}
.b27-list button:focus-visible{outline:2px solid var(--b27-ball);outline-offset:2px;border-radius:6px}
.b27-list .n{min-width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-family:var(--b27-display);font-weight:700;font-size:19px;background:var(--b27-mint);color:var(--b27-green)}
.b27-list .n.warn{background:#FDEBDC;color:var(--b27-ball-dark)}
.b27-list .n.ok{background:#F1F4F1;color:#8C9B91}
.b27-list b.t{display:block;font-weight:600;font-size:14.5px}
.b27-list small{display:block;color:var(--b27-muted);font-size:13px;margin-top:1px}
.b27-list .chev{color:#A9B7AE;font-size:18px}
.b27-date{width:42px;text-align:center;border-radius:9px;overflow:hidden;border:1px solid var(--b27-line)}
.b27-date span{display:block;background:var(--b27-green);color:#fff;font-size:11px;font-weight:600;padding:2px 0}
.b27-date b{display:block;font-family:var(--b27-display);font-size:19px;line-height:1.35}
.b27-date.orange span{background:var(--b27-ball)}
.b27-empty{color:var(--b27-muted);font-size:14px;padding:6px 0 2px}

/* plantillas */
.b27-teams{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.b27-team{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:8px;padding:13px 14px;border:1px solid var(--b27-line);border-radius:10px;background:#fff;position:relative;overflow:hidden}
.b27-team:hover{border-color:var(--b27-leaf)}
.b27-team:focus-visible{outline:2px solid var(--b27-ball);outline-offset:2px}
.b27-team b{font-weight:600;font-size:14.5px;padding-right:44px}
.b27-team .cnt{position:absolute;right:12px;top:10px;font-family:var(--b27-display);font-size:24px;font-weight:700;color:var(--b27-green);line-height:1}
.b27-team small{color:var(--b27-muted);font-size:12.5px}
.b27-team .bar{height:4px;border-radius:4px;background:#EDF2EE;overflow:hidden}
.b27-team .bar i{display:block;height:100%;background:var(--b27-leaf)}

@media (max-width:1180px){
  .b27-scoreboard{grid-template-columns:auto 1fr}
  .b27-board{grid-column:1/-1;min-width:0}
  .b27-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .b27-scoreboard{grid-template-columns:1fr;padding:22px;gap:18px}
  .b27-crest{width:84px}
  .b27-strip{grid-template-columns:1fr 1fr}
  .b27-strip button:nth-child(2){border-right:0}
  .b27-strip button:nth-child(-n+2){border-bottom:1px solid var(--b27-line)}
  .b27-board-side strong{font-size:34px}
  body .topbar{padding:0 16px}
}
@media (prefers-reduced-motion:reduce){.b27-meter i{animation:none}}
@media print{
  body .app-shell>main::before,body .app-shell>main::after{display:none}
  .b27-scoreboard{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Estados con color coherente */
body .badge.green{background:#E1F2E6;color:#17683A}
body .badge.red{background:#F9E3E0;color:var(--b27-red)}
body .badge.gray{background:#EEF1EE;color:#5E6B63}

/* Móvil: menú lateral desplegable sobre el contenido */
@media (max-width:760px){
  body .app-shell>.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:40;width:280px;height:100dvh;transform:translateX(-100%);transition:transform .22s ease;box-shadow:none}
  body .app-shell>.sidebar.open{transform:none;box-shadow:0 0 0 100vmax rgba(8,46,26,.45)}
  body .topbar{height:64px}
  body .topbar h2{font-size:24px}
  body .content{padding:16px 12px 48px}
}
