/* Beyond the Line KISS dashboard v12.4.0 - fast role home, green UI */
#btl-kiss-dashboard{display:none}
#btl-boot-screen{display:none}
html.btl-kiss-boot #root{visibility:hidden!important}
html.btl-kiss-boot #btl-boot-screen{position:fixed;inset:0;z-index:2147483646;display:grid;place-content:center;justify-items:center;gap:9px;background:#94a28e;color:#173126;text-align:center;font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif}
html.btl-kiss-boot #btl-boot-screen strong{position:relative;display:inline-block;padding:0 0 11px;font-size:25px;line-height:1;letter-spacing:.18em;font-weight:700}
html.btl-kiss-boot #btl-boot-screen strong::after{content:"";position:absolute;left:50%;bottom:0;width:156px;height:2px;background:#8e1f2f;transform:translateX(-50%)}
html.btl-kiss-boot #btl-boot-screen span{color:#30473a;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:11px;font-weight:700;letter-spacing:.03em}
body.btl-kiss-returning .app-shell{visibility:hidden}
body.btl-kiss-home .app-shell{visibility:visible}
body.btl-kiss-home #btl-kiss-dashboard{display:block}
body.btl-kiss-home .app-shell>:not(.topbar):not(#btl-kiss-dashboard){display:none!important}

body.btl-kiss-home{background:#e9efeb}
body.btl-kiss-home .app-shell{background:#f7f9f7;box-shadow:0 18px 50px rgba(16,61,44,.12)}
body.btl-kiss-home .topbar{margin:0 -18px;background:#103d2c;color:#fff;padding:20px 20px 18px;border-radius:0}
body.btl-kiss-home .topbar .eyebrow,body.btl-kiss-home .topbar .subhead{color:#cfe2d7}
body.btl-kiss-home .topbar h1{color:#fff}
body.btl-kiss-home .topbar .avatar{background:#fff;color:#103d2c;box-shadow:0 0 0 4px rgba(255,255,255,.18)}

#btl-kiss-dashboard{padding:18px 0 34px;color:#17372a}
#btl-kiss-dashboard *{box-sizing:border-box}
.btl-kiss-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:2px 2px 16px}
.btl-kiss-head span,.btl-kiss-group h3,.btl-kiss-attention>span{display:block;color:#6b7e72;font-size:10px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.btl-kiss-head h2{margin:5px 0 3px;color:#103d2c;font-size:27px;line-height:1.04;letter-spacing:-.035em}
.btl-kiss-head p{margin:0;color:#718178;font-size:12px}
.btl-kiss-head>div:last-child{text-align:right}
.btl-kiss-head small{display:block;color:#52685b;font-size:10px;font-weight:800}
.btl-kiss-head button{margin-top:7px;border:1px solid #cbd8d0;border-radius:10px;background:#fff;padding:8px 11px;color:#28523e;font-size:9px;font-weight:900}

.btl-kiss-attention{margin-bottom:18px;padding:16px;border:1px solid #edc1ba;border-radius:18px;background:#fff4f2;box-shadow:0 5px 16px rgba(86,35,29,.04)}
.btl-kiss-attention.clear{border-color:#b9dbc5;background:#eef8f1}
.btl-kiss-attention>strong{display:block;margin-top:5px;color:#713229;font-size:17px}
.btl-kiss-attention.clear>strong{color:#175b32}
.btl-kiss-attention>small{display:block;margin-top:4px;color:#6f7f76;font-size:11px}
.btl-kiss-attention>div{display:grid;gap:7px;margin-top:11px}
.btl-kiss-attention>div button{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:10px;width:100%;min-height:46px;border:1px solid rgba(0,0,0,.06);border-radius:12px;background:#fff;padding:9px 11px;color:#314d3e;text-align:left;font-size:12px}
.btl-kiss-attention>div i{width:9px;height:9px;border-radius:50%;background:#d29a1e}
.btl-kiss-attention>div i.red{background:#cf493d}
.btl-kiss-attention>div b{color:#9b3e34;font-size:9px}

.btl-kiss-group{margin-top:21px}.btl-kiss-group h3{margin:0 0 9px 2px}
.btl-kiss-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.btl-kiss-card{display:flex;min-height:124px;flex-direction:column;align-items:flex-start;border:1px solid #d6e1da;border-radius:17px;background:#fff;padding:14px;color:#103d2c;text-align:left;box-shadow:0 5px 16px rgba(16,61,44,.055);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.btl-kiss-card:active{transform:scale(.985)}
.btl-kiss-card:focus-visible{outline:3px solid rgba(47,122,85,.2);outline-offset:2px}
.btl-kiss-card>i{display:grid;place-items:center;width:36px;height:36px;margin-bottom:11px;border-radius:11px;background:#eaf4ee;color:#2b7651;font-style:normal;font-size:13px;font-weight:950}
.btl-kiss-card span strong,.btl-kiss-card span small{display:block}
.btl-kiss-card span strong{font-size:13px;letter-spacing:.01em}
.btl-kiss-card span small{margin-top:4px;color:#75867c;font-size:10px;line-height:1.3}
.btl-kiss-card>b{margin-top:auto;padding-top:10px;color:#2e7654;font-size:9px;letter-spacing:.07em}
.btl-kiss-card.wide{grid-column:1/-1;min-height:82px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:11px;background:#103d2c;color:#fff;border-color:#103d2c}
.btl-kiss-card.wide>i{margin:0;background:rgba(255,255,255,.14);color:#fff}
.btl-kiss-card.wide span small,.btl-kiss-card.wide>b{color:#d3e5da}.btl-kiss-card.wide>b{margin:0;padding:0}

#btl-kiss-admin{position:fixed;inset:0;z-index:2147483200;background:#eef2ef;overflow:auto;color:#17372a}
.btl-kiss-admin-shell{max-width:900px;margin:auto;padding:20px}
.btl-kiss-admin-shell header{display:flex;gap:14px;align-items:flex-start}.btl-kiss-admin-shell header>button{width:44px;height:44px;border:1px solid #d5ded8;border-radius:12px;background:#fff}
.btl-kiss-admin-shell header span{font-size:9px;font-weight:950;letter-spacing:.14em;color:#75867c}.btl-kiss-admin-shell h2{margin:3px 0}.btl-kiss-admin-shell p{margin:0;color:#718178;font-size:11px}
.btl-kiss-admin-shell main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}.btl-kiss-admin-shell main button{min-height:88px;border:1px solid #dce5df;border-radius:14px;background:#fff;color:#123b2c;font-weight:900}

@media(min-width:768px){
  #btl-kiss-dashboard{padding:20px 6px 38px}.btl-kiss-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btl-kiss-card.wide{grid-column:auto;display:flex;min-height:124px;background:#103d2c}.btl-kiss-card.wide>i{margin-bottom:11px}.btl-kiss-card.wide>b{margin-top:auto;padding-top:10px}
}
@media(min-width:1024px){
  body.btl-kiss-home{padding:0}
  body.btl-kiss-home #root{}
  body.btl-kiss-home #btl-desktop-nav{}
  body.btl-kiss-home .app-shell{width:calc(100% - 40px);max-width:1500px;min-height:calc(100vh - 40px);margin:20px auto;border-radius:24px;overflow:hidden}
  body.btl-kiss-home .topbar{margin:0;padding:22px 28px;border-radius:0}
  #btl-kiss-dashboard{padding:24px 28px 44px}
  .btl-kiss-head h2{font-size:31px}.btl-kiss-attention>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btl-kiss-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.btl-kiss-card{min-height:138px;padding:16px}.btl-kiss-group{margin-top:25px}
}
@media(max-width:767px){
  body.btl-kiss-home .app-shell{padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .btl-kiss-head{padding-left:1px;padding-right:1px}.btl-kiss-head>div:last-child small{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.btl-kiss-card{transition:none}}


/* v12.4.1 multi-role screen switcher: only rendered for users with more than one assigned role */
.btl-kiss-role-switch{display:flex;gap:7px;overflow-x:auto;margin:-2px 0 16px;padding:2px 1px 5px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.btl-kiss-role-switch::-webkit-scrollbar{display:none}
.btl-kiss-role-switch button{flex:0 0 auto;min-height:38px;border:1px solid #cbd8d0;border-radius:999px;background:#fff;padding:8px 12px;color:#486053;font-size:9px;font-weight:950;letter-spacing:.035em;touch-action:manipulation}
.btl-kiss-role-switch button.active{border-color:#103d2c;background:#103d2c;color:#fff;box-shadow:0 4px 10px rgba(16,61,44,.14)}
@media(min-width:768px){.btl-kiss-role-switch{justify-content:flex-start;margin-bottom:18px}.btl-kiss-role-switch button{font-size:10px;padding:9px 14px}}

/* v12.4.2 desktop: keep navigation visible on KISS home; Admin uses the full React home */
@media(min-width:1024px){
  body.desktop-ready.btl-kiss-home #root{margin-left:260px!important}
  body.desktop-ready.btl-kiss-home #btl-desktop-nav{display:flex!important}
  body.desktop-ready.btl-kiss-home .app-shell{width:auto;max-width:1500px;min-height:calc(100vh - 40px);margin:20px;border-radius:24px;overflow:hidden}
  body.desktop-ready.btl-kiss-home .btl-kiss-role-switch{display:none!important}
  body.desktop-ready.btl-admin-full .home-view-picker{display:none!important}
}

/* v12.4.3 Owner money: high-level kitchen financial picture from existing live data */
.btl-owner-money{margin:20px 0 24px;padding:18px;border:1px solid #cfe0d5;border-radius:20px;background:linear-gradient(180deg,#fff,#f5faf7);box-shadow:0 7px 22px rgba(16,61,44,.06)}
.btl-owner-money.loading{min-height:100px}
.btl-owner-money-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.btl-owner-money-head span{display:block;color:#6b7e72;font-size:10px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.btl-owner-money-head h3{margin:5px 0 3px;color:#103d2c;font-size:20px;letter-spacing:-.025em}
.btl-owner-money-head p{margin:0;color:#75867c;font-size:11px}
.btl-owner-money-head button{flex:0 0 auto;border:1px solid #bad0c2;border-radius:11px;background:#fff;padding:9px 11px;color:#1d6544;font-size:9px;font-weight:950;letter-spacing:.04em}
.btl-owner-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.btl-owner-kpis article{min-width:0;padding:13px;border:1px solid #d8e5dc;border-radius:14px;background:#fff}
.btl-owner-kpis article span{display:block;color:#718178;font-size:9px;font-weight:950;letter-spacing:.08em}
.btl-owner-kpis article strong{display:block;margin-top:6px;color:#103d2c;font-size:21px;line-height:1;letter-spacing:-.035em;overflow-wrap:anywhere}
.btl-owner-kpis article small{display:block;margin-top:7px;color:#7a8980;font-size:9px;line-height:1.35}
.btl-owner-money-chart{margin-top:12px;padding:14px;border:1px solid #d8e5dc;border-radius:14px;background:#fff}
.btl-owner-money-chart h4{margin:0 0 12px;color:#264d3a;font-size:11px;letter-spacing:.02em}
.btl-owner-bar-row{margin-top:10px}.btl-owner-bar-row:first-of-type{margin-top:0}
.btl-owner-bar-row>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:5px}
.btl-owner-bar-row span{color:#6d7d73;font-size:10px;font-weight:800}.btl-owner-bar-row strong{color:#244a37;font-size:11px}
.btl-owner-bar-row>i{display:block;height:9px;overflow:hidden;border-radius:999px;background:#edf3ef}
.btl-owner-bar-row>i>b{display:block;height:100%;border-radius:999px;background:#2e7654}
.btl-owner-bar-row>i>b.spend{background:#6a9a7e}.btl-owner-bar-row>i>b.waste{background:#c38a3d}
@media(min-width:768px){.btl-owner-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.btl-owner-money{padding:20px}.btl-owner-kpis article strong{font-size:24px}}
@media(min-width:1024px){.btl-owner-money{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr);column-gap:18px;align-items:start}.btl-owner-money-head{grid-column:1/-1}.btl-owner-kpis{grid-column:1}.btl-owner-money-chart{grid-column:2;margin-top:0;height:100%}}

/* v12.5.2 Head Chef live cost movement — visible on dashboard */
.btl-head-cost{margin:14px 0 18px;padding:18px;border:1px solid rgba(148,163,184,.28);border-radius:18px;background:rgba(15,23,42,.76);box-shadow:0 12px 30px rgba(2,6,23,.14)}
.btl-head-cost.loading{min-height:120px;display:flex;align-items:center}
.btl-head-cost-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}
.btl-head-cost-top span,.btl-head-cost.loading span{font-size:11px;font-weight:800;letter-spacing:.14em;color:#94a3b8}
.btl-head-cost h3{margin:4px 0 2px;font-size:22px;line-height:1.1;color:#f8fafc}
.btl-head-cost p{margin:0;color:#94a3b8;font-size:13px}
.btl-head-cost-kpi{text-align:right;min-width:100px}.btl-head-cost-kpi strong{display:block;font-size:30px;line-height:1;font-weight:900}.btl-head-cost-kpi strong.up{color:#f87171}.btl-head-cost-kpi strong.down{color:#4ade80}.btl-head-cost-kpi strong.flat{color:#e2e8f0}.btl-head-cost-kpi small{display:block;margin-top:5px;color:#94a3b8;font-size:11px}
.btl-head-cost-chart{width:100%;padding:10px 10px 8px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:rgba(2,6,23,.42);cursor:pointer;text-align:left}.btl-head-cost-chart:hover{border-color:rgba(148,163,184,.45)}
.btl-head-cost-svg{display:block;width:100%;height:auto;max-height:190px}.btl-head-cost-svg .zero{stroke:rgba(148,163,184,.3);stroke-width:1}.btl-head-cost-svg .trend{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;color:#e2e8f0}.btl-head-cost-svg circle{fill:currentColor;color:#e2e8f0}
.btl-head-cost-chart>span{display:block;margin-top:7px;text-align:right;font-size:11px;font-weight:800;letter-spacing:.06em;color:#cbd5e1}
.btl-head-cost-empty{min-height:95px;display:grid;place-items:center;color:#94a3b8;font-size:13px;text-align:center}
@media(max-width:700px){.btl-head-cost{padding:14px}.btl-head-cost-top{gap:10px}.btl-head-cost h3{font-size:19px}.btl-head-cost-kpi strong{font-size:24px}.btl-head-cost-svg{max-height:145px}}


/* V6.75 Head Chef supplier report: 7-day + calendar-month explanation */
.btl-head-cost-kpis{display:flex;gap:18px;align-items:flex-start}
.btl-head-cost-kpis .btl-head-cost-kpi{padding-left:16px;border-left:1px solid rgba(148,163,184,.2)}
.btl-head-cost-kpis .btl-head-cost-kpi:first-child{border-left:0;padding-left:0}
.btl-head-cost-kpi>small:first-child{font-size:9px;letter-spacing:.12em;font-weight:900;color:#94a3b8;margin:0 0 5px}
.btl-head-cost-story{margin:14px 0 10px;padding:13px 14px;border:1px solid rgba(148,163,184,.22);border-radius:11px;background:rgba(15,23,42,.28)}
.btl-head-cost-story>strong{display:block;margin-bottom:7px;color:#dbe6df;font-size:9px;font-weight:900;letter-spacing:.12em}
.btl-head-cost-story p{margin:5px 0;color:#e5e7eb;font-size:12px;line-height:1.45}
.btl-head-cost-story small{display:block;margin-top:7px;color:#94a3b8;font-size:9px;line-height:1.4}
.btl-head-cost-actions{display:flex;justify-content:flex-end;margin-top:8px}
.btl-head-cost-actions button{border:0;background:transparent;padding:7px 0;color:#cbd5e1;font-size:11px;font-weight:800;letter-spacing:.06em;cursor:pointer}
.btl-head-cost-actions button:hover{color:#f8fafc}
@media(max-width:700px){.btl-head-cost-top{display:block}.btl-head-cost-kpis{margin-top:14px;justify-content:space-between}.btl-head-cost-kpi{text-align:left}.btl-head-cost-kpis .btl-head-cost-kpi{flex:1}}

/* V6.80 dashboard supplier graph — useful even with sparse movement */
.btl-head-cost-svg .grid{stroke:rgba(148,163,184,.18);stroke-width:1}.btl-head-cost-svg .zero{stroke:rgba(38,55,47,.55);stroke-width:1.4;stroke-dasharray:none}.btl-head-cost-svg .axis-y{fill:#839088;font-size:9px;font-weight:700}.btl-head-cost-svg .axis-x{fill:#8f9a93;font-size:8px;font-weight:700}.btl-head-cost-svg .increase rect{fill:var(--btl-action,#B84A4A)}.btl-head-cost-svg .decrease rect{fill:var(--btl-success,#6F8768)}.btl-head-cost-svg .flatbar rect{fill:#7d8981}.btl-head-chart-label{margin:0 0 6px;color:#6f7d74;font-size:10px;font-weight:800;letter-spacing:.035em}.btl-head-chart-fallback{display:block!important;margin:5px 0 0!important;text-align:left!important;color:#87938b!important;font-weight:600!important;letter-spacing:0!important}.btl-head-cost-empty strong,.btl-head-cost-empty small{display:block}.btl-head-cost-empty strong{color:#53635a}.btl-head-cost-empty small{margin-top:4px;color:#829087}


/* V12.4.9 — built-in Recipe shortcut. No MutationObserver required. */
#btl-kiss-dashboard .btl-kiss-recipe-shortcut{
  appearance:none;
  border:1px solid #8A9A84;
  background:#F7F9F6;
  color:#26372F;
  border-radius:9px;
  padding:8px 10px;
  font:700 9px/1.1 Arial,Helvetica,sans-serif;
  letter-spacing:.07em;
  cursor:pointer;
  white-space:nowrap;
}
#btl-kiss-dashboard .btl-kiss-recipe-shortcut:hover{background:#EEF1EB;border-color:#758972}
@media(max-width:700px){#btl-kiss-dashboard .btl-kiss-recipe-shortcut{padding:7px 8px;font-size:8px}}

/* BUILD-20260826-015 — Admin is part of the desktop system, not a full-screen takeover. */
@media(min-width:900px){
  body.desktop-ready #btl-kiss-admin{left:244px;right:0;top:0;bottom:0}
}
