/* PBOS operational layout, inspired by the Buyur information hierarchy. */
.shell .sidebar{width:248px;padding:24px 16px;overflow-y:auto;background:#081510}
.shell{grid-template-columns:248px minmax(0,1fr)}
.shell main{max-width:1800px;padding:24px 32px 60px;min-width:0}
.shell .sidebar nav{margin-top:14px;gap:4px}
.shell .nav-item{display:flex;align-items:center;gap:12px;min-height:46px;font-size:14px;border-radius:10px}
.shell .nav-item::before{content:attr(data-icon);font-size:19px;width:22px;text-align:center;flex-shrink:0}
.shell .nav-item.active{background:var(--lime);color:#102015;box-shadow:none}
.shell .area-switcher{margin-top:22px;padding-bottom:8px;gap:5px}
.shell .area-switcher a{padding:7px 9px;text-align:left;font-size:13px}
.shell .area-switcher a[aria-current=page]{background:#173127;color:#e2efe7;border-color:#466451}
.shell .side-note{margin-top:24px}.shell .topbar{align-items:center;gap:18px;padding:0 0 22px;border-bottom:1px solid var(--line)}
.shell .topbar>div:first-child{text-align:left}.shell .topbar h1{font-size:26px;letter-spacing:-.025em}
.shell .top-actions{flex-wrap:wrap;justify-content:flex-end}.shell .status{display:none}
.shell .workspace-context{background:none;border:0;text-align:left;padding:12px 0;margin-bottom:20px;font-size:14px}
.shell .page-intro,.shell .section-heading{text-align:left;justify-content:space-between}.shell .page-intro p,.shell .section-heading p{margin-left:0}
.shell .page-intro h2{font-size:28px}.shell .engine-grid article h3,.shell .engine-grid article p{text-align:left}
.shell .engine-grid article button{margin-left:0}.shell .operation-grid article{align-items:flex-start}
.dashboard-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 0 24px}.dashboard-header h2{margin:4px 0 8px;font-size:30px;letter-spacing:-.035em}.dashboard-header p{margin:0;color:var(--muted)}
.dashboard-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.dashboard-controls label{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.dashboard-controls select{background:#10231c;border:1px solid #355143;border-radius:9px;color:var(--text);padding:10px;font:inherit}.dashboard-controls button{min-height:43px}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.dashboard-metric{background:linear-gradient(135deg,#14291f,#0d1c16);border:1px solid #294536;border-radius:16px;padding:22px}.dashboard-metric small{font-size:14px;color:#bed0c5;display:block}.dashboard-metric strong{display:block;font-size:clamp(24px,2.4vw,34px);margin:16px 0 8px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.dashboard-metric:first-child strong{color:var(--lime)}.dashboard-metric p{font-size:13px;color:var(--muted);margin:0}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px;margin-bottom:24px}.dashboard-panel{background:#0e2018;border:1px solid #294536;border-radius:16px;padding:24px;min-width:0}.dashboard-panel h3{font-size:19px;margin:0 0 8px}.dashboard-panel p{color:#aec5b7;font-size:14px;line-height:1.6}.dashboard-panel header{display:flex;justify-content:space-between;gap:16px;align-items:start}.dashboard-pill{font-size:12px;white-space:nowrap;color:var(--gold);border:1px solid #655631;border-radius:6px;padding:5px 8px}
.dashboard-chart{width:100%;height:auto;display:block;margin:22px 0 8px;overflow:visible}.dashboard-chart text{fill:#aec5b7;font-size:12px}.dashboard-chart .grid{stroke:#294637;stroke-width:1}.dashboard-chart .curve{stroke:#b7f36b;stroke-width:3;fill:none;stroke-linejoin:round}.dashboard-chart .fill{fill:url(#receiptsGradient)}
.dashboard-empty{min-height:230px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:repeating-linear-gradient(0deg,transparent,transparent 55px,#1d392b 56px);border-radius:10px;margin-top:22px}.dashboard-empty strong{font-size:23px;color:#e0ebe5}.dashboard-empty p{max-width:260px;background:#0e2018;padding:8px}
.dashboard-table-wrap{overflow-x:auto}.dashboard-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.dashboard-table th,.dashboard-table td{padding:12px 10px;border-bottom:1px solid #284333;white-space:nowrap}.dashboard-table th{color:#b6cbbb;font-weight:500}.dashboard-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.dashboard-details{margin-top:14px}.dashboard-details summary{cursor:pointer;color:var(--lime);font-size:14px}.dashboard-status{font-size:14px;color:var(--muted);margin:14px 0}.dashboard-status[data-error=true]{color:#ffb2a9}.dashboard-progress{height:8px;background:#253e30;border-radius:6px;overflow:hidden}.dashboard-progress i{display:block;height:100%;background:var(--lime)}
.shell button:focus-visible,.shell a:focus-visible,.shell select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:1200px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.dashboard-header{align-items:start;flex-direction:column}.shell main{padding:22px}.shell .topbar{flex-wrap:wrap}}
@media(max-width:900px){.shell{display:block}.shell .sidebar{transform:translateX(-100%);transition:transform .2s}.shell .sidebar.open{transform:translateX(0)}.shell .icon-btn{display:block}.shell main{width:100%;padding:18px}.shell .topbar>div:first-child{min-width:0}.shell .top-actions{justify-content:flex-start}}
@media(max-width:480px){.dashboard-metrics{gap:10px}.dashboard-metric{padding:15px}.dashboard-metric strong{font-size:23px}.dashboard-panel{padding:18px}.dashboard-header h2{font-size:26px}.dashboard-controls{width:100%}.dashboard-controls label{flex:1}.dashboard-controls select{width:100%}.shell .user-badge{max-width:180px;overflow-wrap:anywhere}}

#overview > .page-intro{display:none}#overview > .operation-grid{border-top:1px solid var(--line);padding-top:24px}.shell .side-note small,.shell .eyebrow{font-size:12px}.shell .user-badge{font-size:14px}


#affiliateDashboard .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.affiliate-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:24px 0}.affiliate-status-grid div{display:grid;gap:10px;border-left:2px solid #385c46;padding-left:14px}.affiliate-status-grid span{color:var(--muted);font-size:14px}.affiliate-status-grid strong{font-size:20px;overflow-wrap:anywhere}body[data-area=afiliados] #affiliates>.page-intro{margin-bottom:20px}body[data-area=afiliados] .affiliate-totals{display:none}@media(max-width:1100px){.affiliate-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){#affiliateDashboard .dashboard-grid{grid-template-columns:1fr}.affiliate-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
