:root {
  --brand:#23cce8;--brand-dark:#0a8fa3;--brand-bg:#e0f9fd;--brand-text:#065a69;
  --sidebar:#0e2a30;--sidebar-text:#a8d8e0;--surface:#f3f6f7;--card:#fff;
  --border:#e1e7e9;--border-strong:#cbd4d7;--text:#172126;--muted:#68757b;
  --danger:#c4423b;--warning:#b85e1e;--success:#087a67;--radius:12px;
}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--surface);font-size:14px}
button,input,select,textarea{font:inherit}button{cursor:pointer}
a{color:var(--brand-dark)}h1,h2,h3,p{margin-top:0}
.app-shell{min-height:100%;display:flex}.sidebar{width:264px;min-width:264px;background:var(--sidebar);color:#fff;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;overflow-y:auto;z-index:20}
.brand{height:76px;padding:0 22px;border-bottom:1px solid rgba(35,204,232,.15);display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800}.brand-icon{font-size:34px}
.nav-section{padding:18px 22px 6px;color:rgba(168,216,224,.58);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
nav{display:flex;flex-direction:column;gap:3px;padding:0 12px}.nav-item{display:flex;align-items:center;gap:11px;padding:11px 13px;color:var(--sidebar-text);border-radius:9px;text-decoration:none;font-weight:560}.nav-item span{width:20px;text-align:center;font-size:17px}.nav-item:hover{background:rgba(35,204,232,.09)}.nav-item.active{color:#082b32;background:var(--brand);font-weight:750}
.profile{margin:auto 12px 14px;padding:12px;border:1px solid rgba(35,204,232,.23);background:rgba(35,204,232,.08);border-radius:11px;color:#fff;display:flex;align-items:center;gap:10px;text-align:left}.profile strong,.profile small{display:block}.profile small{font-size:11px;color:var(--sidebar-text);margin-top:2px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#07323a;font-weight:800}.logout{margin-left:auto;color:var(--sidebar-text)}
.content{margin-left:264px;min-height:100vh;width:calc(100% - 264px)}.content-public{margin-left:0;width:100%}
.page-header{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:10}.page-header h1{font-size:22px;margin:0}.page-header .subtitle{color:var(--muted);font-size:13px;margin-top:4px}
.page{padding:26px 30px;max-width:1440px;margin:0 auto}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 2px 8px rgba(9,42,48,.025);padding:20px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-20px -20px 18px;padding:16px 20px;border-bottom:1px solid var(--border)}.card-header h2,.card h2{font-size:17px;margin:0}.card h3{font-size:15px}
.metric{background:var(--brand);border:0;color:#063842;min-height:118px}.metric-label{font-weight:700;font-size:12px}.metric-value{font-size:30px;line-height:1.1;font-weight:850;margin:8px 0 4px}.metric-sub{font-size:12px;opacity:.8}
.btn{border:1px solid var(--border-strong);border-radius:9px;padding:9px 14px;background:#fff;color:var(--text);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.btn:hover{background:#f6f9fa}.btn-primary{background:var(--brand);border-color:var(--brand);color:#063842}.btn-primary:hover{background:#1fc0db}.btn-danger{color:var(--danger);border-color:#f1cbc9}.btn-ghost{background:transparent;border-color:transparent}.btn-block{width:100%;padding:12px}.btn:disabled{opacity:.55;cursor:not-allowed}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field-full{grid-column:1/-1}.field label{font-size:12px;color:var(--muted);font-weight:650}.input{width:100%;border:1px solid var(--border-strong);border-radius:9px;padding:10px 11px;background:#fff;color:var(--text);outline:none}.input:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px rgba(35,204,232,.14)}.check{display:flex;align-items:center;gap:8px}.check input{width:17px;height:17px}
.table-wrap{overflow-x:auto;margin:0 -20px -20px}table{width:100%;border-collapse:collapse;min-width:700px}th,td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#fbfcfc}tbody tr:hover{background:#fbfdfe}.num{text-align:right;font-variant-numeric:tabular-nums}.actions{display:flex;justify-content:flex-end;gap:6px}
.badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:750;background:#eef2f3;color:var(--muted)}.badge-ok{background:#dff8f2;color:var(--success)}.badge-warn{background:#fff0e6;color:var(--warning)}.badge-danger{background:#fde9e8;color:var(--danger)}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-tile{border:1px solid var(--border-strong);border-radius:11px;padding:18px 10px;background:#fff;text-align:center}.product-tile:hover,.product-tile.selected{border-color:var(--brand);background:var(--brand-bg);box-shadow:0 0 0 1px var(--brand)}.product-icon{font-size:31px}.product-name{font-weight:750;margin-top:7px}.product-price{color:var(--brand-dark);font-size:12px;margin-top:3px}
.booking-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.booking-row:last-child{border-bottom:0}.booking-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--brand-bg);font-size:20px}.booking-main{flex:1}.booking-main strong,.booking-main small{display:block}.booking-main small{color:var(--muted);margin-top:3px}.booking-amount{color:var(--brand-dark);font-weight:800}
.bar-list{display:flex;flex-direction:column;gap:12px}.bar-row{display:grid;grid-template-columns:130px 1fr 62px;gap:12px;align-items:center}.bar-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{height:9px;background:#edf2f3;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:var(--brand);border-radius:99px}.bar-value{text-align:right;font-weight:750}
.week-bars{height:190px;display:flex;gap:10px;align-items:flex-end;padding-top:24px}.week-column{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;color:var(--muted);font-size:11px}.week-column strong{color:var(--text)}.week-bar{width:100%;max-width:42px;min-height:3px;background:var(--brand);border-radius:5px 5px 0 0}
.notice{padding:12px 14px;border-radius:9px;background:var(--brand-bg);color:var(--brand-text);margin-bottom:16px}.error{background:#fde9e8;color:var(--danger)}.empty{padding:30px;text-align:center;color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;background:rgba(4,29,34,.58);display:grid;place-items:center;padding:20px;z-index:100}.modal{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header h2{margin:0}.modal-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.auth-brand{background:var(--sidebar);color:#fff;padding:70px;display:flex;flex-direction:column;justify-content:center}.auth-brand .coffee{font-size:72px}.auth-brand h1{font-size:44px;margin:18px 0 12px}.auth-brand p{max-width:500px;color:var(--sidebar-text);font-size:18px;line-height:1.6}.auth-panel{display:flex;align-items:center;justify-content:center;padding:34px}.auth-card{width:min(430px,100%)}.auth-card h2{font-size:28px;margin-bottom:7px}.auth-card .lead{color:var(--muted);margin-bottom:24px}.auth-card .field{margin-bottom:15px}
.qr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.qr-card{text-align:center}.qr-card img{width:170px;height:170px;border:1px solid var(--border);border-radius:10px;padding:8px;background:#fff}
.stock-line{display:grid;grid-template-columns:1fr 180px auto;gap:14px;align-items:center}.stock-progress{height:9px;background:#edf2f3;border-radius:99px;overflow:hidden}.stock-progress span{display:block;height:100%;background:var(--brand)}.stock-progress.low span{background:#f39a57}
.payment-card{display:flex;align-items:center;gap:16px}.payment-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:13px;background:var(--brand-bg);font-size:26px}.payment-card div:nth-child(2){flex:1}.muted{color:var(--muted)}.spacer{height:18px}.top-actions{display:flex;gap:8px;flex-wrap:wrap}.separator{border:0;border-top:1px solid var(--border);margin:20px 0}
.startup{height:100vh;display:grid;place-items:center;color:var(--brand-dark);font-weight:750}#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:#fff3cd;padding:12px;z-index:999}
@media(max-width:1050px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3,.product-grid,.qr-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.sidebar{width:76px;min-width:76px}.brand span:last-child,.nav-section,.nav-item:not(.active){font-size:0}.brand{padding:0;justify-content:center}.nav-item{justify-content:center;padding:12px}.nav-item span{font-size:19px}.profile{padding:8px;justify-content:center}.profile span:not(.avatar){display:none}.content{margin-left:76px;width:calc(100% - 76px)}.content-public{margin-left:0;width:100%}.page-header{height:auto;min-height:68px;padding:14px 18px}.page{padding:18px}.grid-2,.grid-3,.grid-4,.product-grid,.qr-grid,.form-grid{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-brand{display:none}.bar-row{grid-template-columns:95px 1fr 50px}.stock-line{grid-template-columns:1fr auto}.stock-progress{grid-column:1/-1}}
@media(max-width:480px){.sidebar{position:fixed;top:auto;right:0;width:100%;height:64px;min-width:0;flex-direction:row;overflow-x:auto}.brand,.nav-section,.profile{display:none}.sidebar nav{flex-direction:row;padding:7px;display:contents}.nav-item{min-width:56px}.content{margin:0 0 64px;width:100%}.page-header h1{font-size:19px}.grid-4{grid-template-columns:1fr}.metric{min-height:96px}.metric-value{font-size:25px}}
