/* ============================================================
   APEX OS — STAFF WORKSPACE V4
   Operational UI: calm, fast, touch-first, no dashboard clutter.
   Business logic remains in app.js; this file is presentation only.
   ============================================================ */

.staff-route{
  --os-bg:#f4f1eb;
  --os-paper:#fbfaf7;
  --os-panel:#ffffff;
  --os-ink:#151513;
  --os-muted:#77736b;
  --os-line:#e4dfd6;
  --os-dark:#141413;
  --os-dark-2:#1c1b19;
  --os-dark-line:#302e2a;
  --os-gold:#b8894c;
  --os-danger:#a7463f;
  min-height:100svh;
  background:var(--os-bg);
  color:var(--os-ink);
}
.staff-route *{box-sizing:border-box}
.staff-route button,.staff-route input,.staff-route select,.staff-route textarea{font:inherit}
.staff-route button{cursor:pointer}
.staff-app{min-height:100svh}

/* ---------- login ---------- */
.staff-login-card{
  width:min(430px,calc(100% - 28px));
  margin:8vh auto 0;
  padding:30px;
  background:var(--os-panel);
  border:1px solid var(--os-line);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(25,22,17,.09)!important;
}
.staff-login-card .auth-lock{
  display:grid;place-items:center;width:38px;height:38px;border-radius:11px;
  background:var(--os-dark);color:#fff;font-weight:800;
}
.staff-login-card .auth-copy{display:flex;gap:12px;align-items:center;margin-bottom:22px}
.staff-login-card .auth-copy strong{font-size:17px}
.staff-login-card .auth-copy p{margin:3px 0 0;color:var(--os-muted);font-size:11px}
.staff-login-card .auth-form{display:grid;gap:13px}
.staff-login-card .auth-form button{
  height:46px;border:0;border-radius:10px;background:var(--os-dark);color:#fff;font-weight:700;
}

/* ---------- application shell ---------- */
.apex-os{min-height:100svh;background:var(--os-bg)}
.os-topbar{
  position:sticky;top:0;z-index:80;height:66px;
  display:grid;grid-template-columns:220px minmax(260px,560px) 1fr;align-items:center;gap:22px;
  padding:0 22px;background:var(--os-dark);color:#fff;border-bottom:1px solid var(--os-dark-line);
}
.os-brand{display:flex;align-items:center;gap:10px;min-width:0}
.os-brand img{width:32px;height:32px;object-fit:contain;border-radius:7px}
.os-brand div{display:grid;line-height:1}
.os-brand b{font:800 17px/1 'Manrope',sans-serif;letter-spacing:-.05em}
.os-brand span{margin-top:5px;font:600 7px/1 'DM Sans',sans-serif;letter-spacing:1.7px;color:#8f8a81}
.os-global-search{position:relative;height:38px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #302f2b;border-radius:10px;background:#1d1c1a;color:#aaa}
.os-global-search>span{font-size:17px;color:#777}
.os-global-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:11px}
.os-global-search input::placeholder{color:#777}
.os-global-search kbd{font-size:8px;color:#777;border:1px solid #383632;border-radius:5px;padding:3px 5px}
.os-search-results{position:absolute;left:0;right:0;top:44px;z-index:120;background:#fff;color:var(--os-ink);border:1px solid var(--os-line);border-radius:11px;box-shadow:0 18px 40px rgba(0,0,0,.16);overflow:hidden}
.os-search-results button{width:100%;display:flex;justify-content:space-between;gap:12px;padding:11px 13px;border:0;border-bottom:1px solid #eeeae3;background:#fff;text-align:left}
.os-search-results button:hover{background:#f7f4ef}
.os-search-results button span{display:grid;gap:2px}
.os-search-results button strong{font-size:11px}.os-search-results button small{font-size:9px;color:var(--os-muted)}
.os-top-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px}
.os-top-btn,.os-account{height:36px;border:1px solid #302f2b;background:#1d1c1a;color:#ddd;border-radius:9px;padding:0 11px}
.os-top-btn:hover,.os-account:hover{background:#262522}
.os-account{display:flex;align-items:center;gap:8px}
.os-account span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#f0ebe1;color:#171715;font-size:9px;font-weight:800}
.os-account em{font-style:normal;font-size:9px}

.os-layout{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:calc(100svh - 66px)}
.os-sidebar{
  position:sticky;top:66px;height:calc(100svh - 66px);overflow:auto;
  padding:15px 11px 12px;background:#181816;color:#aaa;border-right:1px solid var(--os-dark-line);
}
.os-shop-switch{display:flex;align-items:center;gap:9px;padding:10px;margin-bottom:17px;background:#20201d;border:1px solid #2c2b27;border-radius:11px}
.os-shop-switch>div{min-width:0;flex:1;display:grid;gap:3px}
.os-shop-switch strong{font-size:9px;color:#eee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.os-shop-switch small{font-size:8px;color:#777}
.os-shop-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e8e0d2;color:#181816;font-size:9px;font-weight:900}
.os-nav-section{margin:16px 9px 7px;font-size:7px;font-weight:800;letter-spacing:1.5px;color:#68645d}
.os-sidebar .tab,.os-home-link,.os-more-toggle{
  width:100%;min-height:38px;display:flex;align-items:center;gap:10px;padding:0 10px;
  border:0;border-radius:9px;background:transparent;color:#99958d;text-align:left;
}
.os-sidebar .tab span,.os-home-link span{width:18px;text-align:center;font-size:13px;color:#777}
.os-sidebar .tab b,.os-home-link b{font-size:10px;font-weight:600}
.os-sidebar .tab:hover,.os-home-link:hover,.os-more-toggle:hover{background:#23221f;color:#fff}
.os-sidebar .tab.active{background:#2a2925;color:#fff}
.os-sidebar .tab.active span{color:#d0a970}
.os-home-link{margin-top:17px;color:#8d8981}
.os-more{margin-top:2px}
.os-more details{border:0}
.os-more summary{list-style:none}
.os-more summary::-webkit-details-marker{display:none}
.os-more-toggle{justify-content:flex-start}
.os-more-toggle .more-icon{font-size:15px;color:#888;width:18px;text-align:center}
.os-more-toggle .more-chevron{margin-left:auto;font-size:11px;color:#68645d;transition:transform .18s ease}
.os-more details[open] .more-chevron{transform:rotate(180deg)}
.os-more-menu{display:grid;gap:2px;padding:4px 0 3px 7px}
.os-more-menu .tab{min-height:35px}
.os-more-menu .tab b{font-size:9px}

.os-main{min-width:0;padding:25px 28px 50px;max-width:1500px;width:100%}
.os-pagebar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.os-breadcrumb{font-size:7px;font-weight:800;letter-spacing:1.5px;color:#918b81}
.os-pagebar h1{margin:7px 0 4px;font:800 32px/1.02 'Manrope',sans-serif;letter-spacing:-.055em;color:var(--os-ink)}
.os-pagebar p{margin:0;color:var(--os-muted);font-size:10px}
.os-page-actions{display:flex;gap:7px;flex:none}
.os-primary,.os-secondary{height:39px;padding:0 14px;border-radius:9px;font-size:9px;font-weight:700}
.os-primary{border:1px solid var(--os-dark);background:var(--os-dark);color:#fff}
.os-primary:hover{background:#252522}
.os-secondary{border:1px solid var(--os-line);background:#fff;color:#222}
.os-secondary:hover{background:#f5f2ed}

/* ---------- common dashboard surfaces ---------- */
.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:13px}
.stats .stat{min-width:0;padding:15px 15px 13px;border:1px solid var(--os-line);border-radius:11px;background:#fff}
.stats .stat b{display:block;font:800 25px/1 'Manrope',sans-serif;letter-spacing:-.05em}
.stats .stat span{display:block;margin-top:6px;font-size:8px;color:var(--os-muted);text-transform:uppercase;letter-spacing:.8px}
.dash-panel{border:1px solid var(--os-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 7px 25px rgba(25,22,17,.035)!important;overflow:hidden}
.dash-toolbar,.dash-panel-head{padding:16px 17px!important}
.dash-toolbar h3,.dash-panel-head h3{margin:3px 0;font-size:15px;letter-spacing:-.02em}
.dash-toolbar p,.dash-panel-head p{margin:0;color:var(--os-muted);font-size:9px}
.eyebrow{font-size:7px!important;font-weight:800!important;letter-spacing:1.4px!important;color:#9a7a51!important;text-transform:uppercase}
.muted{color:var(--os-muted)!important}

.dash-table{width:100%;font-size:10px}
.dash-table th{padding:10px 12px;background:#f7f4ef;color:#817b72;font-size:7px;letter-spacing:.9px;text-transform:uppercase;border-bottom:1px solid var(--os-line);white-space:nowrap}
.dash-table td{padding:11px 12px;border-bottom:1px solid #eeeae3;vertical-align:middle}
.dash-table tr:last-child td{border-bottom:0}
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}

.filterbar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.filterbar input,.filterbar select,.dashboard-form input,.dashboard-form select,.dashboard-form textarea,.checkout-search-row input,.checkout-new-fields input,.field input,.field select,.field textarea{
  min-height:39px;padding:0 11px;border:1px solid #ddd8cf!important;border-radius:9px!important;background:#fff!important;color:#222!important;outline:none;font-size:10px;
}
.filterbar input:focus,.filterbar select:focus,.dashboard-form input:focus,.dashboard-form select:focus,.dashboard-form textarea:focus{border-color:#a9875a!important;box-shadow:0 0 0 3px rgba(184,137,76,.10)}
.dashboard-form textarea{padding:10px;min-height:100px;resize:vertical}
.btn,.btn-dark,.btn-ghost,.danger-btn{min-height:37px;border-radius:9px!important;padding:0 12px!important;font-size:9px;font-weight:700;cursor:pointer}
.btn-dark{background:var(--os-dark)!important;color:#fff!important;border:1px solid var(--os-dark)!important}
.btn-ghost{background:#fff!important;color:#333!important;border:1px solid var(--os-line)!important}
.danger-btn{background:#fff!important;color:var(--os-danger)!important;border:1px solid #e6c8c5!important}

/* ---------- compact command / schedule areas ---------- */
.os-command-row{border-radius:12px!important;padding:17px!important;background:#171716!important;color:#fff!important}
.os-command-row h3{font-size:14px}.os-command-row p{font-size:9px;color:#a8a49d}
.os-command-actions{display:flex;gap:7px;flex-wrap:wrap}
.os-command-actions button{min-height:38px;border-radius:8px!important}
.os-schedule-list{display:grid;gap:7px}
.os-appointment-card{border:1px solid var(--os-line)!important;background:#fff!important;border-radius:10px!important;padding:12px!important}
.os-appointment-card:hover{border-color:#cfc5b7!important;box-shadow:0 8px 20px rgba(0,0,0,.035)}
.os-appt-time{font-size:10px;font-weight:800}.os-kicker{font-size:7px;color:#918b81;letter-spacing:1px;text-transform:uppercase}
.os-recent-panel,.os-attention-panel,.os-schedule-panel{margin-bottom:10px}

/* ---------- More drawer ---------- */
@media(min-width:701px){
  .os-more-menu{animation:osFade .12s ease-out}
}
@keyframes osFade{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* ---------- mobile staff experience ---------- */
@media(max-width:700px){
  .staff-route{background:#f4f1eb}
  .os-topbar{position:sticky;height:58px;grid-template-columns:1fr auto;gap:8px;padding:0 10px}
  .os-brand img{width:29px;height:29px}.os-brand b{font-size:15px}.os-brand span{display:none}
  .os-global-search{height:34px;order:3;grid-column:1/-1;display:none}
  .os-top-actions{gap:4px}.os-top-btn{height:33px;padding:0 9px}.os-top-btn:first-child{display:block}.os-account{height:33px;padding:0 7px}.os-account em{display:none}
  .os-layout{display:flex;flex-direction:column;min-height:calc(100svh - 58px)}
  .os-main{order:1;padding:15px 11px 88px;max-width:none}
  .os-sidebar{
    order:2;position:fixed;left:0;right:0;bottom:0;top:auto;height:64px;z-index:100;
    display:grid;grid-template-columns:repeat(4,1fr) 1.05fr;gap:2px;padding:4px 5px env(safe-area-inset-bottom,4px);
    background:#151514;border:0;border-top:1px solid #302f2b;overflow:visible;
  }
  .os-shop-switch,.os-nav-section,.os-home-link{display:none!important}
  .os-sidebar>.tab{width:auto;min-height:53px;padding:5px 3px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:9px;color:#89857d}
  .os-sidebar>.tab span{width:auto;font-size:15px;line-height:1}.os-sidebar>.tab b{font-size:6.5px;line-height:1;font-weight:700}
  .os-sidebar>.tab.active{background:#292824;color:#fff}
  .os-sidebar>.tab.active span{color:#d0a970}
  .os-more{display:block!important;margin:0;min-width:0}
  .os-more details{position:relative;height:56px}
  .os-more-toggle{height:53px;min-height:53px!important;width:100%;padding:5px 3px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:9px;color:#89857d}
  .os-more-toggle .more-icon{width:auto;font-size:15px;line-height:1}.os-more-toggle span:nth-child(2){font-size:6.5px;font-weight:700;line-height:1}.os-more-toggle .more-chevron{display:none}
  .os-more details[open] .os-more-toggle{background:#292824;color:#fff}
  .os-more-menu{
    position:fixed;left:9px;right:9px;bottom:74px;z-index:110;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;
    padding:9px;background:#fff;border:1px solid var(--os-line);border-radius:14px;box-shadow:0 20px 55px rgba(0,0,0,.18);
    max-height:min(65svh,500px);overflow:auto;
  }
  .os-more-menu:before{content:"MANAGE";grid-column:1/-1;padding:2px 5px 4px;color:#8b857c;font-size:7px;font-weight:800;letter-spacing:1.3px}
  .os-more-menu .tab{min-height:46px!important;background:#f8f6f2;color:#333;border:1px solid #eee9e0;display:flex;gap:7px;padding:0 10px;border-radius:9px}
  .os-more-menu .tab span{font-size:12px;color:#9a774c;width:16px}.os-more-menu .tab b{font-size:8px}
  .os-more-menu .tab:hover{background:#f1ede6;color:#111}
  .os-pagebar{display:block;margin-bottom:14px}
  .os-pagebar h1{font-size:27px;margin-top:6px}.os-pagebar p{font-size:9px}
  .os-page-actions{margin-top:11px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.os-primary,.os-secondary{width:100%;height:40px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.stats .stat{padding:12px}.stats .stat b{font-size:22px}.stats .stat span{font-size:7px}
  .stats .stat:last-child:nth-child(odd){grid-column:1/-1}
  .dash-panel{border-radius:11px!important}
  .dash-toolbar,.dash-panel-head{padding:13px!important}
  .dash-table{min-width:610px}.table-wrap{margin:0}
  .filterbar{display:grid;grid-template-columns:1fr 1fr}.filterbar input,.filterbar select{width:100%;min-width:0}
  .filterbar input:first-child{grid-column:1/-1}
  .os-global-search + *{}
}

@media(max-width:390px){
  .os-main{padding-left:9px;padding-right:9px}
  .os-pagebar h1{font-size:25px}.os-page-actions{grid-template-columns:1fr}
  .os-sidebar>.tab b{font-size:6px}.os-more-toggle span:nth-child(2){font-size:6px}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}

/* ============================================================
   APEX OS — POLISHED STAFF INTERACTION LAYER
   Keeps the existing Apex identity while making every working
   surface calmer, clearer and touch-friendly.
   ============================================================ */
.staff-route{
  --os-bg:#f3f0ea;
  --os-paper:#faf8f4;
  --os-panel:#ffffff;
  --os-ink:#171715;
  --os-muted:#777269;
  --os-line:#ded8ce;
  --os-dark:#151514;
  --os-dark-2:#20201d;
  --os-gold:#a97842;
  --os-gold-soft:#f2e9dc;
  --os-success:#286a4a;
  --os-danger:#a3453e;
}
.staff-route ::selection{background:#d8c4aa;color:#171715}
.staff-route button,.staff-route input,.staff-route select,.staff-route textarea{transition:border-color .15s ease,box-shadow .15s ease,background .15s ease,transform .12s ease,opacity .12s ease}
.staff-route button:active:not(:disabled){transform:translateY(1px)}
.staff-route button:disabled{cursor:not-allowed;opacity:.58}
.staff-route button:focus-visible,.staff-route input:focus-visible,.staff-route select:focus-visible,.staff-route textarea:focus-visible{outline:0;border-color:var(--os-gold)!important;box-shadow:0 0 0 3px rgba(169,120,66,.14)!important}

/* Clearer page rhythm */
.os-main{padding-top:28px}
.os-pagebar{margin-bottom:20px}
.os-page-actions{align-items:center}
.os-primary,.btn-dark{box-shadow:0 5px 14px rgba(20,20,18,.10)}
.os-primary:hover,.btn-dark:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(20,20,18,.14)}
.os-secondary:hover,.btn-ghost:hover{border-color:#c9bda9!important;background:#f8f5ef!important;transform:translateY(-1px)}

/* Better surfaces for every inside page */
.dash-panel,.os-business-panel,.os-calendar-panel,.checkout-shell{box-shadow:0 10px 30px rgba(29,25,19,.045)!important}
.dash-panel-head,.dash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.toolbar-actions,.editor-actions,.rules-save{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dashboard-form{gap:14px!important}
.dashboard-form>label,.dashboard-form .field{display:grid;gap:7px;font-size:9px;font-weight:700;color:#514d46}
.dashboard-form small,.dashboard-form .optional{font-weight:500;color:#999187}
.dashboard-form input,.dashboard-form select,.dashboard-form textarea{width:100%;font-size:11px!important}
.dashboard-form input,.dashboard-form select{height:43px}
.dashboard-form textarea{min-height:110px}
.section-mini-title{margin-top:5px;padding-bottom:7px;border-bottom:1px solid var(--os-line);font-size:8px;font-weight:900;letter-spacing:1.2px;color:#8a6a48;text-transform:uppercase}

/* Tables: more like an actual POS/back office */
.dash-table th{position:sticky;top:0;z-index:1}
.dash-table tbody tr{transition:background .12s ease}
.dash-table tbody tr:hover{background:#fbfaf7}
.dash-table td .btn{white-space:nowrap}
.status-pill,.os-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:7px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}
.status-active,.os-status.active{background:#e7f1eb;color:#286a4a}
.status-confirmed,.os-status.confirmed{background:#eee9df;color:#715532}
.status-completed,.os-status.completed{background:#e7f1eb;color:#286a4a}
.status-pending,.os-status.pending{background:#f4eee1;color:#80643d}
.status-cancelled,.os-status.cancelled,.status-no_show,.os-status.no-show{background:#f6e7e5;color:#9b423c}

/* Customer profile / forms */
.customer-profile-grid{align-items:stretch!important}
.customer-identity-card{grid-column:span 2}
.profile-detail-grid>div{min-height:64px;padding:11px 12px;border:1px solid #ece7df;border-radius:10px;background:#fbfaf7}
.profile-detail-grid small{display:block;margin-bottom:5px;color:#908a81;font-size:7px;text-transform:uppercase;letter-spacing:.8px}
.profile-detail-grid strong{font-size:11px;word-break:break-word}
.card-chip{transition:transform .15s ease,box-shadow .15s ease}
.card-chip:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,0,0,.06)}

/* Checkout: one clear operator flow */
.checkout-shell{border-radius:16px!important}
.checkout-tabs{display:flex!important;gap:6px!important;padding:6px!important;background:#f5f2ed!important;border:1px solid #e8e2d8!important;border-radius:11px!important}
.checkout-tab{flex:1!important;min-height:40px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#777269!important;font-weight:800!important;font-size:10px!important}
.checkout-tab.active{background:#171715!important;color:#fff!important;box-shadow:0 4px 10px rgba(0,0,0,.10)!important}
.checkout-card{border:1px solid #e3ddd4!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 20px rgba(31,26,20,.035)!important}
.checkout-section-head{min-height:58px!important}
.checkout-step{background:#eee8df!important;color:#8b6339!important;border:1px solid #e2d7c9!important}
.checkout-result{border-radius:9px!important;margin-bottom:5px!important;border:1px solid #ebe6df!important;background:#fff!important}
.checkout-result:hover{border-color:#cbb99f!important;background:#fbf8f2!important}
.checkout-selected{border-color:#d7c7b1!important;background:#faf6ef!important}
.checkout-total-box{border:1px solid #ddd4c7!important;background:#f7f3ec!important;border-radius:11px!important}
.checkout-complete{min-height:48px!important;border-radius:11px!important;font-size:11px!important}
.checkout-auto-note{border-radius:9px!important;background:#f4eee5!important;color:#665541!important}

/* Calendar / schedule */
.os-calendar-panel{overflow:hidden}
.os-calendar-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.os-view-switch{display:flex;gap:3px;padding:3px;background:#f1eee8;border:1px solid #e2ddd4;border-radius:8px}
.os-view-btn{height:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#777269;font-size:8px;font-weight:800}
.os-view-btn.active{background:#171715;color:#fff}
.os-appt-card{min-height:66px!important;display:grid!important;grid-template-columns:70px 1fr auto;align-items:center;gap:10px;text-align:left!important}
.os-appt-card:hover{transform:translateY(-1px)}
.os-empty-slot{min-height:42px!important;border:1px dashed #d8d0c4!important;border-radius:9px!important;background:#faf8f4!important;color:#8a8379!important;font-size:8px!important}
.os-empty-slot:hover{border-color:#b99a72!important;background:#f6efe5!important;color:#5c4935!important}

/* Modals should feel like part of the OS, not browser popups */
.modal-shell{position:fixed!important;inset:0!important;z-index:300!important;display:grid!important;place-items:center!important;padding:18px!important}
.modal-backdrop{position:absolute!important;inset:0!important;background:rgba(17,17,15,.58)!important;backdrop-filter:blur(4px)!important}
.modal-card{position:relative!important;width:min(680px,100%)!important;max-height:min(90svh,820px)!important;overflow:auto!important;border:1px solid #e0d9cf!important;border-radius:18px!important;background:#fff!important;box-shadow:0 28px 80px rgba(0,0,0,.28)!important;padding:0!important}
.modal-head{position:sticky!important;top:0!important;z-index:2!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(10px)!important;border-bottom:1px solid #ece7df!important;padding:18px 20px!important}
.modal-head h2{font:800 21px/1.1 'Manrope',sans-serif!important;letter-spacing:-.04em!important}
.modal-close{width:34px!important;height:34px!important;border:1px solid #e1dbd2!important;border-radius:9px!important;background:#fff!important;font-size:20px!important;color:#666!important}
.modal-card form{padding:18px 20px 22px!important}

/* Empty / error / saved states */
.os-empty{padding:28px 18px!important;text-align:center!important;display:grid!important;gap:5px!important;color:#777269!important}
.os-empty strong{font-size:12px!important;color:#272622!important}
.alert-banner{border:1px solid #eadbc5!important;background:#fbf5e9!important;color:#654e35!important;border-radius:11px!important;padding:12px 14px!important}
.error{color:#a3453e!important}

/* Desktop density */
@media(min-width:1100px){
  .os-main{padding-left:34px;padding-right:34px}
  .os-grid-main{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)!important}
  .os-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Mobile: app-like, but still comfortable for real work */
@media(max-width:700px){
  .os-main{padding:13px 10px 90px}
  .os-pagebar h1{font-size:26px}
  .os-page-actions{gap:7px}
  .os-page-actions .os-primary,.os-page-actions .os-secondary{min-height:43px}
  .dash-toolbar,.dash-panel-head{align-items:flex-start;flex-direction:column}
  .toolbar-actions{width:100%}
  .toolbar-actions .btn{flex:1;min-width:120px}
  .filterbar{gap:6px}
  .filterbar .btn{min-height:40px}
  .checkout-layout{grid-template-columns:1fr!important}
  .checkout-side{order:-1}
  .checkout-card{border-radius:12px!important}
  .checkout-section-head{align-items:flex-start!important}
  .checkout-payment-row{grid-template-columns:1fr!important}
  .checkout-total-box{min-height:58px}
  .customer-identity-card{grid-column:auto}
  .profile-detail-grid{grid-template-columns:1fr 1fr!important}
  .os-calendar-toolbar{align-items:flex-start!important}
  .os-calendar-actions{width:100%}
  .os-calendar-actions>*{flex:1}
  .os-view-switch{display:flex!important}
  .os-view-switch .os-view-btn{flex:1}
  .os-appt-card{grid-template-columns:58px 1fr!important}
  .os-appt-right{grid-column:2;display:flex;justify-content:space-between;align-items:center}
  .modal-shell{padding:8px!important;align-items:end!important}
  .modal-card{max-height:94svh!important;border-radius:16px 16px 0 0!important}
  .modal-head{padding:15px!important}
  .modal-card form{padding:14px 15px 22px!important}
}


/* Apex Calendar — premium scheduling workspace */
.apex-calendar-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}
.apex-calendar-card{background:var(--surface,#fff);border:1px solid var(--border,#e7e4df);border-radius:18px;box-shadow:0 8px 28px rgba(20,18,15,.06);overflow:hidden}
.apex-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border,#e7e4df);background:linear-gradient(180deg,#fff,#faf9f7)}
.apex-calendar-title{display:flex;align-items:center;gap:10px;min-width:0}
.apex-calendar-title h2{margin:0;font-size:18px;letter-spacing:-.02em;color:var(--ink,#171614)}
.apex-calendar-nav{display:flex;align-items:center;gap:6px}
.apex-cal-btn{height:36px;min-width:36px;border:1px solid var(--border,#dedbd5);border-radius:10px;background:#fff;color:#272522;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:700;transition:.16s ease}
.apex-cal-btn:hover{transform:translateY(-1px);border-color:#b8b2a8;box-shadow:0 4px 12px rgba(20,18,15,.07)}
.apex-cal-btn.primary{padding:0 13px;background:#1d1b18;color:#fff;border-color:#1d1b18}
.apex-cal-btn.primary:hover{background:#302d29}
.apex-calendar-views{display:flex;gap:4px;padding:4px;background:#f3f1ed;border-radius:11px}
.apex-calendar-views button{border:0;background:transparent;border-radius:8px;padding:7px 11px;color:#6c6861;font-size:12px;font-weight:700;cursor:pointer}
.apex-calendar-views button.active{background:#fff;color:#171614;box-shadow:0 2px 8px rgba(20,18,15,.08)}
.apex-calendar-grid{display:grid;grid-template-columns:68px repeat(7,minmax(110px,1fr));overflow:auto}
.apex-calendar-grid .day-head{min-height:58px;padding:10px 8px;border-right:1px solid #eeeae4;border-bottom:1px solid #e7e4df;background:#fcfbf9;text-align:center}
.apex-calendar-grid .day-head .dow{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#858078;font-weight:800}
.apex-calendar-grid .day-head .date{margin-top:4px;font-size:18px;font-weight:800;color:#24211e}
.apex-calendar-grid .day-head.today{background:#f3eee6}
.apex-calendar-grid .day-head.today .date{color:#171614}
.apex-calendar-time{height:72px;border-right:1px solid #e7e4df;border-bottom:1px solid #eeeae4;background:#fff;padding:8px 7px;text-align:right;color:#918c84;font-size:10px;font-weight:700}
.apex-calendar-slot{height:72px;border-right:1px solid #eeeae4;border-bottom:1px solid #eeeae4;background:#fff;position:relative;padding:4px}
.apex-calendar-slot:hover{background:#fcfaf7}
.apex-calendar-slot .now-line{position:absolute;left:0;right:0;top:50%;height:2px;background:#2b2926;z-index:3}
.apex-calendar-event{position:relative;z-index:4;min-height:61px;border-radius:10px;background:#f1eee8;border:1px solid #ddd8cf;padding:7px 8px;cursor:pointer;overflow:hidden;transition:.15s ease}
.apex-calendar-event:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(20,18,15,.10)}
.apex-calendar-event .event-time{font-size:10px;font-weight:800;color:#777169}
.apex-calendar-event .event-name{font-size:12px;font-weight:800;color:#201e1b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apex-calendar-event .event-service{font-size:10px;color:#777169;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apex-calendar-event.status-confirmed{border-left:3px solid #25221e}
.apex-calendar-event.status-completed{opacity:.72}
.apex-calendar-event.status-cancelled{opacity:.52;text-decoration:line-through}
.apex-calendar-side{padding:16px}
.apex-calendar-side h3{margin:0 0 12px;font-size:13px;color:#26231f}
.apex-calendar-side .mini-stat{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eeeae4;font-size:12px}
.apex-calendar-side .mini-stat span:first-child{color:#777169}
.apex-calendar-side .mini-stat strong{color:#201e1b}
.apex-calendar-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.apex-calendar-legend span{font-size:10px;color:#777169;display:flex;align-items:center;gap:5px}
.apex-calendar-legend i{width:8px;height:8px;border-radius:50%;background:#25221e;display:inline-block}
.apex-calendar-empty{grid-column:2/-1;padding:50px 20px;text-align:center;color:#8b867e}
@media(max-width:900px){
 .apex-calendar-shell{grid-template-columns:1fr}
 .apex-calendar-side{display:none}
 .apex-calendar-toolbar{flex-wrap:wrap}
 .apex-calendar-title{width:100%;justify-content:space-between}
 .apex-calendar-grid{grid-template-columns:54px repeat(7,minmax(118px,1fr))}
}
@media(max-width:640px){
 .apex-calendar-toolbar{padding:12px}
 .apex-calendar-title h2{font-size:16px}
 .apex-calendar-views button{padding:7px 9px}
 .apex-calendar-grid{grid-template-columns:48px repeat(7,minmax(112px,1fr))}
 .apex-calendar-time{height:66px;font-size:9px}
 .apex-calendar-slot{height:66px}
 .apex-calendar-event{min-height:55px;padding:6px}
}

/* Apex Calendar 10/10 — compact, staff-first scheduling UI */
.apx-calendar{width:100%;}.apx-calendar-card{background:#fff;border:1px solid #e6e2db;border-radius:18px;overflow:hidden;box-shadow:0 10px 32px rgba(22,19,16,.06)}
.apx-cal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #ece8e2}.apx-cal-title{min-width:0}.apx-cal-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8b857c}.apx-cal-title h2{margin:3px 0 2px;font-size:20px;line-height:1.15;letter-spacing:-.025em;color:#201e1b}.apx-cal-sub{font-size:12px;color:#8a847b}.apx-cal-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.apx-nav,.apx-views{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e3dfd8;border-radius:10px;background:#f7f5f1}.apx-icon-btn,.apx-today,.apx-view,.apx-new{border:0;cursor:pointer;font:inherit;font-size:12px;font-weight:750;border-radius:8px;height:34px}.apx-icon-btn{width:34px;background:#fff;color:#332f2a;font-size:22px}.apx-today,.apx-view{padding:0 10px;background:transparent;color:#777168}.apx-view.active{background:#fff;color:#201e1b;box-shadow:0 2px 7px rgba(20,18,15,.08)}.apx-new{padding:0 13px;background:#201e1b;color:#fff}.apx-new:hover{background:#34302b}.apx-cal-summary{display:flex;align-items:center;gap:16px;padding:9px 20px;border-bottom:1px solid #f0ece6;font-size:11px;color:#716b63}.apx-cal-summary span{display:inline-flex;align-items:center;gap:6px}.apx-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.apx-dot.booked{background:#302c27}.apx-dot.done{background:#8b8174}.apx-dot.cancelled{background:#c4beb5}.apx-summary-spacer{flex:1}.apx-live{font-weight:800}.apx-live i{width:6px;height:6px;border-radius:50%;background:#5f7a61;display:inline-block}.apx-scope{padding:8px 20px;font-size:11px;color:#8b857d;background:#fcfbf9;border-bottom:1px solid #eeeae4}
.apx-day-grid{display:grid;grid-template-columns:64px repeat(auto-fit,minmax(180px,1fr));min-height:820px;overflow:auto}.apx-time-col{background:#fcfbf9}.apx-corner{height:55px;border-right:1px solid #e8e4de;border-bottom:1px solid #e8e4de;padding:11px 8px;font-size:9px;font-weight:800;letter-spacing:.1em;color:#aaa39a}.apx-time{height:72px;border-right:1px solid #e8e4de;border-bottom:1px solid #eeeae5;padding:8px 7px;text-align:right}.apx-time span{font-size:9px;font-weight:700;color:#969087}.apx-staff-col{min-width:180px}.apx-staff-col>header{height:55px;display:flex;align-items:center;gap:8px;padding:7px 10px;border-right:1px solid #e8e4de;border-bottom:1px solid #e8e4de;background:#fff;position:sticky;top:0;z-index:5}.apx-staff-col>header strong{display:block;font-size:12px;color:#27231f}.apx-staff-col>header small{font-size:9px;color:#918a82}.apx-avatar{width:28px;height:28px;border-radius:9px;background:#eeeae3;display:grid;place-items:center;font-size:11px;font-weight:800;color:#454039}.apx-slot{height:72px;border-right:1px solid #eeeae5;border-bottom:1px solid #eeeae5;padding:3px;position:relative;background:#fff}.apx-slot:hover,.apx-week-day:hover,.apx-month-day:hover{background:#fcfaf7}.apx-slot-plus{display:none;position:absolute;right:7px;top:7px;font-size:15px;color:#c1bbb2}.apx-slot:hover .apx-slot-plus{display:block}.apx-cal-event{display:flex;flex-direction:column;width:100%;min-height:64px;text-align:left;border:1px solid #ddd8cf;border-left:3px solid #302c27;border-radius:9px;background:#f5f2ed;padding:6px 7px;cursor:pointer;overflow:hidden}.apx-cal-event:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(20,18,15,.09)}.apx-cal-event .apx-event-time{font-size:9px;font-weight:800;color:#7d776f}.apx-cal-event strong{font-size:11px;line-height:1.2;color:#25221e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-event-service{font-size:10px;color:#6f6961;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-event-meta{font-size:9px;color:#9a938a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-cal-event.completed{opacity:.65;border-left-color:#8b8174}.apx-cal-event.cancelled{opacity:.48;border-left-color:#c2bbb2;text-decoration:line-through}
.apx-week{overflow:auto}.apx-week-head,.apx-week-body{display:grid;grid-template-columns:60px repeat(7,minmax(145px,1fr));min-width:1080px}.apx-week-head>div{height:58px;border-right:1px solid #e9e5df;border-bottom:1px solid #e9e5df;padding:8px;text-align:center;background:#fcfbf9}.apx-week-head span{display:block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#8e877e}.apx-week-head strong{font-size:17px;color:#25221f}.apx-week-head .today{background:#f0ece5}.apx-week-times div{height:72px;padding:8px 6px;text-align:right;border-right:1px solid #e9e5df;border-bottom:1px solid #eeeae5;font-size:9px;color:#999289}.apx-week-day{min-height:1080px;border-right:1px solid #eeeae5;background:repeating-linear-gradient(to bottom,#fff 0,#fff 71px,#eeeae5 72px);padding:3px;cursor:pointer}.apx-week-day .apx-cal-event{margin-bottom:4px}.apx-week-empty{display:block;text-align:center;margin-top:35px;font-size:10px;color:#b0aaa1}.apx-month{overflow:auto}.apx-weekdays,.apx-month-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px}.apx-weekdays span{padding:9px 10px;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8e877e;background:#fcfbf9;border-right:1px solid #e9e5df;border-bottom:1px solid #e9e5df}.apx-month-day{min-height:122px;border-right:1px solid #e9e5df;border-bottom:1px solid #e9e5df;padding:7px;background:#fff;cursor:pointer}.apx-month-day.muted{background:#faf9f7}.apx-month-day.today{background:#f8f4ed}.apx-month-day header{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.apx-month-day header strong{font-size:12px;color:#4a453f}.apx-month-day header button{border:0;background:transparent;color:#aaa39a;font-size:16px;cursor:pointer;width:24px;height:24px;border-radius:7px}.apx-month-day header button:hover{background:#eeeae4;color:#332f2a}.apx-mini-event{display:flex;gap:5px;width:100%;border:0;border-left:2px solid #302c27;background:#f4f1ec;border-radius:5px;padding:4px 5px;margin-bottom:3px;text-align:left;cursor:pointer;overflow:hidden}.apx-mini-event b{font-size:8px;color:#6d665e;white-space:nowrap}.apx-mini-event span{font-size:9px;color:#332f2a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-mini-event.completed{opacity:.65}.apx-mini-event.cancelled{opacity:.45}.apx-more{font-size:9px;color:#8e877e;padding-left:4px}
@media(max-width:900px){.apx-cal-head{align-items:flex-start;flex-direction:column}.apx-cal-tools{width:100%;justify-content:space-between}.apx-day-grid{grid-template-columns:54px repeat(auto-fit,minmax(165px,1fr))}.apx-staff-col{min-width:165px}.apx-cal-summary{overflow:auto;white-space:nowrap}.apx-calendar-card{border-radius:14px}}
@media(max-width:600px){.apx-cal-head{padding:14px}.apx-cal-title h2{font-size:17px}.apx-cal-tools{gap:5px}.apx-new{height:34px;padding:0 10px}.apx-views{order:3;width:100%;justify-content:center}.apx-nav{margin-right:auto}.apx-scope{padding:7px 14px}.apx-cal-summary{padding:8px 14px;gap:12px}.apx-day-grid{min-height:760px}.apx-time{height:64px}.apx-slot{height:64px}.apx-staff-col>header{height:52px}.apx-corner{height:52px}}


/* Apex Staff Dashboard — refined production UI inspired by modern scheduling products */
:root{--apx-ink:#191816;--apx-muted:#77736b;--apx-line:#e9e6df;--apx-soft:#f7f6f3;--apx-panel:#ffffff;--apx-accent:#a88961;}
.os-main{background:#f7f6f3!important}.os-pagebar{max-width:1500px;margin:0 auto;padding:22px 28px 16px!important}.os-pagebar h1{font-size:22px!important;line-height:1.15!important;letter-spacing:-.025em!important}.os-pagebar p{font-size:12px!important}.stats{max-width:1500px;margin:0 auto;padding:0 28px 14px!important}.stats>*{border-radius:14px!important}
.apx-calendar{max-width:1500px;margin:0 auto;padding:0 28px 30px}.apx-calendar-card{border:1px solid var(--apx-line)!important;border-radius:14px!important;box-shadow:0 5px 20px rgba(28,25,20,.045)!important;background:#fff!important}
.apx-cal-head{padding:14px 16px!important;min-height:68px}.apx-cal-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.apx-cal-kicker{font-size:8px!important;letter-spacing:.16em!important}.apx-cal-title h2{font-size:16px!important;font-weight:750!important;margin:0!important}.apx-cal-sub{font-size:10px!important;color:#969188!important}.apx-cal-tools{gap:6px!important}.apx-nav,.apx-views{padding:2px!important;border-radius:8px!important;background:#f4f3f0!important;border-color:#e7e3dc!important}.apx-icon-btn,.apx-today,.apx-view,.apx-new{height:30px!important;font-size:11px!important;border-radius:7px!important}.apx-icon-btn{width:30px!important;font-size:18px!important}.apx-today,.apx-view{padding:0 8px!important}.apx-new{padding:0 11px!important;font-weight:750!important;background:#25231f!important}.apx-cal-summary{padding:7px 16px!important;gap:13px!important;font-size:10px!important}.apx-scope{padding:6px 16px!important;font-size:10px!important;background:#fbfaf8!important}
.apx-day-grid{grid-template-columns:52px repeat(auto-fit,minmax(220px,1fr))!important;min-height:760px!important}.apx-corner{height:48px!important;padding:9px 7px!important;font-size:8px!important}.apx-time{height:60px!important;padding:7px 6px!important}.apx-time span{font-size:8px!important}.apx-staff-col>header{height:48px!important;padding:6px 9px!important}.apx-avatar{width:25px!important;height:25px!important;border-radius:8px!important;font-size:10px!important}.apx-staff-col>header strong{font-size:11px!important}.apx-staff-col>header small{font-size:8px!important}.apx-slot{height:60px!important;padding:3px!important}.apx-cal-event{min-height:52px!important;border-radius:7px!important;padding:5px 6px!important;border-left-width:2px!important}.apx-cal-event .apx-event-time{font-size:8px!important}.apx-cal-event strong{font-size:10px!important}.apx-event-service{font-size:9px!important}.apx-event-meta{font-size:8px!important}
.apx-week-head,.apx-week-body{grid-template-columns:52px repeat(7,minmax(132px,1fr))!important;min-width:980px!important}.apx-week-head>div{height:48px!important;padding:7px!important}.apx-week-head span{font-size:8px!important}.apx-week-head strong{font-size:14px!important}.apx-week-times div{height:60px!important;font-size:8px!important;padding:7px 5px!important}.apx-week-day{min-height:900px!important;background:repeating-linear-gradient(to bottom,#fff 0,#fff 59px,#eeeae5 60px)!important}.apx-week-day .apx-cal-event{margin-bottom:3px!important}
.apx-weekdays,.apx-month-grid{grid-template-columns:repeat(7,minmax(105px,1fr))!important;min-width:735px!important}.apx-weekdays span{padding:7px 8px!important;font-size:8px!important}.apx-month-day{min-height:105px!important;padding:6px!important}.apx-month-day header strong{font-size:11px!important}.apx-mini-event{padding:3px 4px!important;margin-bottom:2px!important}.apx-mini-event b,.apx-mini-event span,.apx-more{font-size:8px!important}
/* Consistent focus/hover states */
.apx-calendar button:focus-visible{outline:2px solid #8f795b;outline-offset:2px}.apx-calendar button{transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}.apx-cal-event:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(25,22,18,.08)!important}
@media(max-width:900px){.apx-calendar{padding:0 16px 24px}.os-pagebar{padding-left:16px!important;padding-right:16px!important}.stats{padding-left:16px!important;padding-right:16px!important}.apx-day-grid{grid-template-columns:48px repeat(auto-fit,minmax(185px,1fr))!important}.apx-staff-col{min-width:185px!important}}
@media(max-width:600px){.apx-calendar{padding:0 10px 18px}.apx-cal-head{padding:12px!important}.apx-cal-tools{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center}.apx-views{grid-column:1/-1;justify-content:center;margin-top:2px}.apx-cal-summary{overflow-x:auto}.apx-day-grid{grid-template-columns:46px repeat(auto-fit,minmax(175px,1fr))!important}.apx-staff-col{min-width:175px!important}.apx-new{white-space:nowrap}}


/* ============================================================
   APEX STAFF — DRIBBBLE-INSPIRED PREMIUM UI
   Visual layer only: existing application/data logic is preserved.
   ============================================================ */
:root{
  --apx-bg:#F0F3FA;
  --apx-muted:#A5A5AB;
  --apx-blue:#032EFF;
  --apx-ink:#2D2E32;
  --apx-purple:#975FE7;
  --apx-orange:#FA4903;
  --apx-white:#fff;
  --apx-border:#e3e7ef;
  --apx-shadow:0 10px 30px rgba(45,46,50,.06);
}
body{background:var(--apx-bg)!important;color:var(--apx-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.staff-layout,.admin-layout,.dashboard-layout{background:var(--apx-bg)!important}
aside,.sidebar,.staff-sidebar,.admin-sidebar{background:#fff!important;border-right:1px solid var(--apx-border)!important;box-shadow:none!important}
main,.main-content,.dashboard-main{background:transparent!important}
h1,h2,h3,h4{color:var(--apx-ink)!important;letter-spacing:-.025em!important}
button,.btn,a.button{font-family:inherit!important}
button:not(.icon-btn),.btn{border-radius:10px!important;min-height:38px!important;box-shadow:none!important}
button.primary,.btn-primary,.primary-action{background:var(--apx-blue)!important;color:#fff!important;border-color:var(--apx-blue)!important}
button.primary:hover,.btn-primary:hover,.primary-action:hover{filter:brightness(.92);transform:translateY(-1px)}
input,select,textarea{background:#fff!important;border:1px solid var(--apx-border)!important;border-radius:10px!important;color:var(--apx-ink)!important;box-shadow:none!important;min-height:40px}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(3,46,255,.10)!important;border-color:var(--apx-blue)!important}
.card,.panel,.stat-card,.dashboard-card,.table-card,.modal-content,.calendar-card{
 background:#fff!important;border:1px solid var(--apx-border)!important;border-radius:16px!important;box-shadow:var(--apx-shadow)!important
}
.stat-card{padding:18px!important}
.stat-card .value,.metric-value{font-size:26px!important;font-weight:800!important}
.stat-card .label,.metric-label{font-size:11px!important;color:#777b83!important;text-transform:uppercase;letter-spacing:.06em}
table{border-collapse:separate!important;border-spacing:0!important;overflow:hidden!important}
th{background:#f7f8fb!important;color:#777b83!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.07em!important}
td,th{border-color:var(--apx-border)!important}
.badge,.status,.pill{border-radius:999px!important;font-size:10px!important;font-weight:750!important;padding:5px 9px!important}
.nav-item,.sidebar a,.sidebar button{border-radius:10px!important;color:#737781!important;transition:.16s ease!important}
.nav-item:hover,.sidebar a:hover,.sidebar button:hover{background:#f4f6fb!important;color:var(--apx-ink)!important}
.nav-item.active,.sidebar a.active,.sidebar button.active{background:#eef2ff!important;color:var(--apx-blue)!important;font-weight:750!important}
.apx-brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--apx-blue);color:#fff;font-weight:900;letter-spacing:-.04em}
.apx-page-kicker{font-size:10px!important;text-transform:uppercase;letter-spacing:.12em;color:#858991!important;font-weight:800}
.apx-section-title{font-size:17px!important;font-weight:800!important}
.apx-accent-purple{color:var(--apx-purple)!important}
.apx-accent-orange{color:var(--apx-orange)!important}

/* Calendar: compact, professional, no giant type */
.calendar,.appointment-calendar,.schedule-calendar{background:#fff!important;border:1px solid var(--apx-border)!important;border-radius:16px!important;box-shadow:var(--apx-shadow)!important}
.calendar-header,.calendar-toolbar,.schedule-toolbar{padding:12px 16px!important;border-bottom:1px solid var(--apx-border)!important;background:#fff!important}
.calendar-header h2,.calendar-toolbar h2,.schedule-toolbar h2{font-size:17px!important;margin:0!important}
.calendar-grid,.schedule-grid{background:#fff!important}
.calendar-grid .time,.schedule-grid .time{font-size:10px!important;color:#92959d!important}
.calendar-grid .day,.schedule-grid .day{font-size:11px!important;color:#6d7179!important;font-weight:750!important}
.appointment,.calendar-event,.event{border-radius:9px!important;border:1px solid #dce1ec!important;box-shadow:none!important;font-size:11px!important}
.appointment:hover,.calendar-event:hover,.event:hover{box-shadow:0 6px 18px rgba(45,46,50,.10)!important;transform:translateY(-1px)!important}

/* =========================================================
   APEX V4 — FINAL PREMIUM STAFF SYSTEM
   Design benchmark: modern Dribbble barber dashboard.
   Existing data, IDs, handlers and Supabase logic untouched.
   ========================================================= */
:root{
  --ui-bg:#F0F3FA;
  --ui-muted:#A5A5AB;
  --ui-blue:#032EFF;
  --ui-ink:#2D2E32;
  --ui-purple:#975FE7;
  --ui-orange:#FA4903;
  --ui-white:#FFFFFF;
  --ui-border:#E2E6EE;
  --ui-soft:#F7F8FB;
  --ui-shadow:0 12px 32px rgba(45,46,50,.055);
  --ui-radius:16px;
}
body.staff-route{background:var(--ui-bg)!important;color:var(--ui-ink)!important;font-family:Inter,DM Sans,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.staff-app,.dashboard,.os-layout,.os-main{background:var(--ui-bg)!important}
.os-topbar{height:68px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--ui-border)!important;backdrop-filter:blur(14px)!important}
.os-brand img{max-height:31px!important}
.os-brand b{color:var(--ui-ink)!important;letter-spacing:.08em!important;font-size:13px!important}
.os-brand span{color:var(--ui-muted)!important;font-size:8px!important}
.os-global-search{background:var(--ui-soft)!important;border:1px solid var(--ui-border)!important;border-radius:11px!important;height:40px!important}
.os-global-search input{background:transparent!important;border:0!important;min-height:unset!important}
.os-sidebar{width:228px!important;background:#fff!important;border-right:1px solid var(--ui-border)!important}
.os-shop-switch{margin:12px 10px!important;border:1px solid var(--ui-border)!important;background:#fff!important;border-radius:13px!important}
.os-shop-avatar{background:var(--ui-blue)!important;color:#fff!important}
.os-nav-section{font-size:9px!important;letter-spacing:.12em!important;color:#A0A4AC!important;font-weight:800!important;margin:18px 14px 7px!important}
.os-sidebar .tab{height:40px!important;margin:2px 9px!important;border-radius:10px!important;color:#6F737C!important;gap:10px!important;font-size:12px!important}
.os-sidebar .tab span{width:22px!important;height:22px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#F3F5F9!important;color:#777B84!important;font-size:13px!important}
.os-sidebar .tab:hover{background:#F4F6FB!important;color:var(--ui-ink)!important}
.os-sidebar .tab.active{background:#EEF2FF!important;color:var(--ui-blue)!important}
.os-sidebar .tab.active span{background:#DCE4FF!important;color:var(--ui-blue)!important}
.os-more-toggle{height:40px!important;margin:2px 9px!important;border-radius:10px!important;padding:0 10px!important;color:#6F737C!important;font-size:12px!important}
.os-more-toggle:hover{background:#F4F6FB!important;color:var(--ui-ink)!important}
.os-home-link{border-top:1px solid var(--ui-border)!important;color:#747880!important}
.os-main{padding:0 26px 34px!important}
.os-pagebar{padding:25px 0 18px!important;max-width:1500px!important}
.os-breadcrumb{font-size:9px!important;letter-spacing:.12em!important;color:#9A9EA6!important;font-weight:800!important}
.os-pagebar h1{font-size:24px!important;line-height:1.15!important;margin:5px 0 3px!important;color:var(--ui-ink)!important;font-weight:800!important}
#osPageSub{font-size:12px!important;color:#858991!important}
.os-page-actions{gap:7px!important}
.os-secondary,.os-primary{height:38px!important;border-radius:10px!important;padding:0 13px!important;font-size:11px!important;font-weight:750!important}
.os-secondary{background:#fff!important;border:1px solid var(--ui-border)!important;color:var(--ui-ink)!important}
.os-primary{background:var(--ui-blue)!important;border:1px solid var(--ui-blue)!important;color:#fff!important}
.stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important}
.stat{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:14px!important;box-shadow:var(--ui-shadow)!important;padding:15px 16px!important;min-height:78px!important}
.stat b{font-size:23px!important;line-height:1!important;color:var(--ui-ink)!important}
.stat span{font-size:9px!important;color:#888C94!important;text-transform:uppercase!important;letter-spacing:.07em!important;font-weight:750!important;margin-top:7px!important}
#dashContent>.filterbar,.filterbar{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:14px!important;box-shadow:var(--ui-shadow)!important;padding:10px!important;gap:8px!important}
.filterbar input,.filterbar select{height:38px!important;min-height:38px!important;font-size:11px!important;border-radius:9px!important}
#dashContent table{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:14px!important;box-shadow:var(--ui-shadow)!important;overflow:hidden!important}
#dashContent th{font-size:9px!important;letter-spacing:.08em!important;color:#898D95!important;background:#F7F8FB!important;padding:11px 12px!important}
#dashContent td{font-size:11px!important;padding:11px 12px!important;color:#41434A!important}
#dashContent tr:hover td{background:#FBFCFE!important}
#dashContent .card,#dashContent .panel,#dashContent .section,#dashContent .box{border:1px solid var(--ui-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}
#dashContent h2{font-size:18px!important}
#dashContent h3{font-size:14px!important}
#dashContent p{font-size:11px!important}

/* calendar */
.apx-calendar{border-radius:16px!important}
.apx-calendar-card{border:1px solid var(--ui-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important;overflow:hidden!important}
.apx-cal-head{padding:15px 17px!important;background:#fff!important;border-bottom:1px solid var(--ui-border)!important}
.apx-cal-kicker{color:#969AA2!important;font-size:9px!important}
.apx-cal-title h2{font-size:18px!important;color:var(--ui-ink)!important}
.apx-cal-sub{font-size:10px!important;color:#8B8F97!important}
.apx-cal-tools{gap:7px!important}
.apx-nav,.apx-views{background:#F4F6FA!important;border:1px solid var(--ui-border)!important;border-radius:10px!important}
.apx-icon-btn,.apx-today,.apx-view,.apx-new{height:32px!important;font-size:10px!important;border-radius:8px!important}
.apx-icon-btn{width:32px!important;background:#fff!important;color:var(--ui-ink)!important}
.apx-today,.apx-view{padding:0 9px!important}
.apx-view.active{background:#fff!important;color:var(--ui-blue)!important;box-shadow:0 2px 8px rgba(45,46,50,.08)!important}
.apx-new{background:var(--ui-blue)!important;padding:0 12px!important}
.apx-cal-summary{padding:8px 17px!important;background:#fff!important;border-bottom:1px solid #EEF0F4!important;font-size:10px!important}
.apx-dot.booked{background:var(--ui-blue)!important}.apx-dot.done{background:#737982!important}.apx-dot.cancelled{background:#C9CDD5!important}
.apx-live i{background:#29A36A!important}
.apx-scope{background:#FAFBFD!important;padding:7px 17px!important;font-size:10px!important;color:#8A8E96!important}
.apx-day-grid{min-height:730px!important;grid-template-columns:54px repeat(auto-fit,minmax(190px,1fr))!important}
.apx-time{height:64px!important;padding:7px 6px!important}
.apx-time span{font-size:8px!important;color:#9B9FA7!important}
.apx-corner{height:51px!important;font-size:8px!important}
.apx-staff-col>header{height:51px!important;padding:6px 9px!important}
.apx-staff-col>header strong{font-size:11px!important}
.apx-staff-col>header small{font-size:8px!important}
.apx-avatar{width:27px!important;height:27px!important;border-radius:8px!important;background:#E9EDFF!important;color:var(--ui-blue)!important}
.apx-slot{height:64px!important;padding:3px!important}
.apx-cal-event{min-height:57px!important;border-radius:8px!important;background:#F5F7FC!important;border:1px solid #DDE2EC!important;border-left:3px solid var(--ui-blue)!important;padding:5px 7px!important}
.apx-cal-event .apx-event-time{font-size:8px!important;color:#7B8089!important}
.apx-cal-event strong{font-size:10px!important;color:var(--ui-ink)!important}
.apx-event-service{font-size:9px!important;color:#646973!important}
.apx-event-meta{font-size:8px!important;color:#92969E!important}
.apx-cal-event.completed{border-left-color:#7A7F88!important}.apx-cal-event.cancelled{border-left-color:#C8CCD4!important}
.apx-week-head,.apx-week-body{grid-template-columns:54px repeat(7,minmax(135px,1fr))!important;min-width:1000px!important}
.apx-week-head>div{height:51px!important;padding:7px!important}
.apx-week-head span{font-size:8px!important}
.apx-week-head strong{font-size:14px!important}
.apx-week-times div{height:64px!important;font-size:8px!important}
.apx-week-day{min-height:960px!important;background:repeating-linear-gradient(to bottom,#fff 0,#fff 63px,#EEF0F4 64px)!important}
.apx-month-day{min-height:105px!important;padding:6px!important}
.apx-month-day header strong{font-size:11px!important}
.apx-mini-event{border-left:2px solid var(--ui-blue)!important;background:#F4F6FB!important;padding:3px 5px!important}
.apx-mini-event b,.apx-mini-event span,.apx-more{font-size:8px!important}
@media(max-width:900px){
 .os-sidebar{width:210px!important}.os-main{padding:0 16px 26px!important}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
 .os-topbar{height:60px!important}.os-global-search{display:none!important}
 .os-sidebar{width:64px!important}.os-sidebar .os-shop-switch div,.os-sidebar .os-shop-switch>span:last-child,.os-sidebar .tab b,.os-sidebar .os-nav-section,.os-sidebar .os-home-link b,.os-sidebar .os-more-toggle span:not(.more-icon){display:none!important}
 .os-shop-switch{padding:8px!important;justify-content:center!important}.os-shop-avatar{margin:auto!important}
 .os-sidebar .tab{justify-content:center!important;margin:3px 7px!important}
 .os-sidebar .tab span{width:32px!important;height:32px!important}
 .os-main{padding:0 10px 20px!important}.os-pagebar{padding:17px 2px 13px!important}
 .os-pagebar h1{font-size:20px!important}.os-page-actions .os-secondary{display:none!important}
 .stats{gap:8px!important}.stat{min-height:70px!important;padding:12px!important}.stat b{font-size:20px!important}
 .apx-cal-head{padding:12px!important}.apx-cal-tools{width:100%!important}
 .apx-new{margin-left:auto!important}.apx-views{width:100%!important;justify-content:center!important}
 .apx-day-grid{grid-template-columns:48px repeat(auto-fit,minmax(160px,1fr))!important}
}

/* ============================================================
   APEX BARBER GROUP — DRIBBBLE INSPIRED V5 UI
   White workspace, compact sidebar, blue accents, rounded cards.
   Data/logic intentionally untouched.
   ============================================================ */
.staff-route{
  --apx-blue:#1769f5;
  --apx-blue-2:#2f7cf6;
  --apx-blue-soft:#eef5ff;
  --apx-ink:#18202d;
  --apx-muted:#7b8492;
  --apx-line:#edf0f4;
  --apx-bg:#f5f7fa;
  --apx-card:#ffffff;
  --apx-green:#19b78b;
  --apx-red:#ef5350;
  --apx-yellow:#f6b73c;
  background:#eef1f5!important;
  color:var(--apx-ink)!important;
  font-family:'DM Sans',sans-serif;
}
.staff-route .dashboard{background:var(--apx-bg);padding:0;min-height:100svh}
.staff-route .os-topbar{
  position:sticky;top:0;height:72px;z-index:80;
  grid-template-columns:220px minmax(300px,1fr) auto;gap:26px;
  padding:0 28px;background:#fff;color:var(--apx-ink);
  border-bottom:1px solid var(--apx-line);box-shadow:0 1px 0 rgba(17,24,39,.02)
}
.staff-route .os-brand{gap:10px}.staff-route .os-brand img{width:36px;height:36px;border-radius:10px}
.staff-route .os-brand b{font-family:Manrope;font-size:18px;letter-spacing:-.04em;color:#111827}
.staff-route .os-brand span{color:#9aa2ae;font-size:7px}
.staff-route .os-global-search{justify-self:start;width:min(420px,100%);height:40px;background:#f6f8fa;border:1px solid #edf0f3;border-radius:11px;color:#9aa2ae;box-shadow:none}
.staff-route .os-global-search input{color:#303846;font-size:11px}.staff-route .os-global-search input::placeholder{color:#a5acb7}
.staff-route .os-global-search kbd{background:#fff;border-color:#e6e9ee;color:#9ca3af}
.staff-route .os-top-btn,.staff-route .os-account{height:38px;background:#fff;color:#667080;border:1px solid #e9edf2;border-radius:10px}
.staff-route .os-account span{background:var(--apx-blue);color:#fff;border-radius:8px}
.staff-route .os-account em{color:#5e6673}
.staff-route .os-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100svh - 72px)}
.staff-route .os-sidebar{position:sticky;top:72px;height:calc(100svh - 72px);background:#fff;border-right:1px solid var(--apx-line);padding:24px 14px 16px;overflow:auto}
.staff-route .os-shop-switch{padding:10px 9px 22px;border:0;background:transparent}
.staff-route .os-shop-avatar{background:var(--apx-blue);color:#fff;width:34px;height:34px;border-radius:10px}
.staff-route .os-shop-switch strong{font-size:11px;color:#252d39}.staff-route .os-shop-switch small{color:#9aa2ad}
.staff-route .os-nav-section{padding:15px 12px 7px;color:#a1a8b3;font-size:7px;letter-spacing:1.2px;font-weight:800}
.staff-route .os-sidebar .tab{width:100%;height:39px;margin:2px 0;padding:0 12px;border:0;background:transparent;color:#707987;border-radius:10px;text-align:left;display:flex;align-items:center;gap:11px;font-size:10px}
.staff-route .os-sidebar .tab span{width:19px;text-align:center;font-size:14px;color:#8b94a1}.staff-route .os-sidebar .tab b{font-weight:600}
.staff-route .os-sidebar .tab:hover{background:#f5f8fd;color:#334155}.staff-route .os-sidebar .tab.active{background:#edf5ff;color:var(--apx-blue);font-weight:700}.staff-route .os-sidebar .tab.active span{color:var(--apx-blue)}
.staff-route .os-more-menu{padding-top:2px}.staff-route .os-more-menu .tab{padding-left:28px}
.staff-route .os-more-toggle{height:39px;padding:0 12px;color:#707987;font-size:10px;border-radius:10px}.staff-route .os-home-link{margin:14px 0 0;width:100%;height:39px;border:0;background:#fff;color:#7a8490;text-align:left;border-radius:10px;padding:0 12px;display:flex;gap:11px;align-items:center;font-size:10px}
.staff-route .os-main{padding:28px 30px 40px;max-width:1500px;width:100%;margin:0 auto}
.staff-route .os-pagebar{margin-bottom:22px}.staff-route .os-breadcrumb{color:#9aa3af;font-size:7px;letter-spacing:1.15px;font-weight:800}.staff-route .os-pagebar h1{font-family:Manrope;font-size:25px;line-height:1.15;letter-spacing:-.04em;color:#1b2430;margin:7px 0 5px}.staff-route .os-pagebar p{font-size:10px;color:#8b94a0}
.staff-route .os-primary,.staff-route .btn-dark{background:var(--apx-blue)!important;border-color:var(--apx-blue)!important;color:#fff!important;border-radius:10px!important;height:38px;padding:0 15px;box-shadow:0 8px 18px rgba(23,105,245,.18)!important}
.staff-route .os-secondary,.staff-route .btn-ghost{background:#fff!important;color:#5f6875!important;border:1px solid #e7ebf0!important;border-radius:10px!important;height:38px;padding:0 14px}
.staff-route .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.staff-route .stats .stat{background:#fff;border:1px solid var(--apx-line);border-radius:14px;padding:17px 18px;box-shadow:0 3px 14px rgba(20,30,45,.025)}
.staff-route .stats .stat:first-child{background:linear-gradient(135deg,#1669f5,#2d78f5);color:#fff;border-color:#1669f5}.staff-route .stats .stat:first-child .muted{color:rgba(255,255,255,.72)}
.staff-route .stats .stat strong{font-family:Manrope;font-size:24px;letter-spacing:-.04em}.staff-route .stats .stat span,.staff-route .stats .stat small{font-size:8px;color:#8a94a2;text-transform:none;letter-spacing:.1px}
.staff-route .os-grid-main{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.staff-route .os-grid-three{grid-template-columns:repeat(3,1fr);gap:16px}
.staff-route .dash-panel,.staff-route .os-business-panel,.staff-route .os-calendar-panel,.staff-route .checkout-shell{background:#fff!important;border:1px solid var(--apx-line)!important;border-radius:16px!important;box-shadow:0 4px 20px rgba(25,35,50,.035)!important}
.staff-route .dash-panel-head{padding:17px 18px;border-bottom:1px solid #f1f3f6}.staff-route .dash-panel-head h3{font-family:Manrope;font-size:13px;color:#202938}.staff-route .eyebrow{font-size:7px;letter-spacing:1px;color:#9aa3af;font-weight:800}.staff-route .muted{font-size:9px;color:#8c95a2}
.staff-route .os-command-row{display:none}
.staff-route .os-schedule-list{padding:7px 14px 12px}.staff-route .os-appointment-card{min-height:58px;border:0;border-bottom:1px solid #f1f3f6;border-radius:0;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:10px;padding:8px 5px;background:#fff}.staff-route .os-appointment-card:last-child{border-bottom:0}.staff-route .os-time{font-size:9px;font-weight:700;color:#8993a0}.staff-route .os-appt-main strong{display:block;font-size:10px;color:#283140}.staff-route .os-appt-main span{display:block;font-size:8px;color:#8c95a1;margin-top:3px}.staff-route .os-appt-right{display:grid;justify-items:end;gap:4px}.staff-route .os-appt-right b{font-size:10px;color:#283140}.staff-route .status-pill{min-height:20px;padding:0 7px;font-size:6px}
.staff-route .os-appointment-card.confirmed:before,.staff-route .os-appointment-card.pending:before,.staff-route .os-appointment-card.completed:before,.staff-route .os-appointment-card.cancelled:before{content:'';width:3px;height:36px;border-radius:4px;position:absolute}.staff-route .os-appointment-card{position:relative}.staff-route .os-appointment-card.confirmed:before{background:#2f78f5}.staff-route .os-appointment-card.completed:before{background:#19b78b}.staff-route .os-appointment-card.pending:before{background:#f2b23d}.staff-route .os-appointment-card.cancelled:before{background:#ef5350}
.staff-route .os-attention-list{padding:8px 14px 14px}.staff-route .os-attention-item{padding:12px 4px;border-bottom:1px solid #f1f3f6;display:grid;grid-template-columns:32px 1fr;gap:10px}.staff-route .os-attention-item:last-child{border-bottom:0}.staff-route .os-attention-icon{width:30px;height:30px;border-radius:9px;background:#edf5ff;color:var(--apx-blue);display:grid;place-items:center;font-size:12px}.staff-route .os-attention-item strong{font-size:10px}.staff-route .os-attention-item p{font-size:8px;line-height:1.5;color:#929aa6;margin:3px 0 7px}.staff-route .os-attention-item .btn{height:28px;font-size:7px}
.staff-route .os-grid-three .dash-panel{padding-bottom:15px}.staff-route .os-grid-three .dash-panel-head{border-bottom:0}.staff-route .os-big-number{padding:0 18px;font-family:Manrope;font-size:27px;font-weight:800;letter-spacing:-.05em}.staff-route .os-grid-three .muted{padding:0 18px;line-height:1.45}
.staff-route .os-recent-panel{margin-top:16px}.staff-route .table-wrap{border-radius:0 0 15px 15px;overflow:auto}.staff-route .dash-table{width:100%;border-collapse:collapse}.staff-route .dash-table th{background:#fafbfc;color:#9aa3ae;font-size:7px;text-transform:uppercase;letter-spacing:.7px;padding:10px 13px}.staff-route .dash-table td{padding:11px 13px;border-top:1px solid #f0f2f5;font-size:9px;color:#4c5665}.staff-route .dash-table td b{color:#202936}
/* all secondary pages */
.staff-route .dash-toolbar{background:#fff;border:1px solid var(--apx-line);border-radius:15px;padding:15px 17px;margin-bottom:14px}.staff-route .dash-toolbar h2,.staff-route .dash-toolbar h3{font-family:Manrope;color:#1f2937;font-size:15px}.staff-route .form-grid,.staff-route .dashboard-form{background:#fff;border:1px solid var(--apx-line);border-radius:15px;padding:18px}.staff-route .dashboard-form input,.staff-route .dashboard-form select,.staff-route .dashboard-form textarea{border:1px solid #e4e8ee;border-radius:9px;background:#fff}.staff-route .dashboard-form input:focus,.staff-route .dashboard-form select:focus,.staff-route .dashboard-form textarea:focus{border-color:#7aa8f9!important;box-shadow:0 0 0 3px rgba(23,105,245,.1)!important}
.staff-route .apx-calendar-card{background:#fff!important;border:1px solid var(--apx-line)!important;border-radius:16px!important;box-shadow:0 4px 20px rgba(25,35,50,.035)!important}.staff-route .apx-calendar-toolbar{border-bottom:1px solid #eef1f4!important}.staff-route .apx-cal-summary{border-bottom:1px solid #f0f2f5!important;color:#7f8996!important}.staff-route .apx-calendar .apx-day-head{background:#fafbfc!important;color:#7e8794!important}.staff-route .apx-calendar .apx-time,.staff-route .apx-calendar .apx-slot{border-color:#edf0f4!important}
.staff-route .os-team-card{background:#fff!important;border:1px solid var(--apx-line)!important;border-radius:15px!important}.staff-route .os-team-photo{border-radius:12px!important}.staff-route .modal-card{border-radius:17px!important;border:1px solid #e7ebf0!important;box-shadow:0 24px 70px rgba(15,23,42,.18)!important}.staff-route .modal-head{background:#fff!important}
@media(max-width:1050px){.staff-route .os-layout{grid-template-columns:190px 1fr}.staff-route .os-topbar{grid-template-columns:190px 1fr auto}.staff-route .stats{grid-template-columns:repeat(2,1fr)}.staff-route .os-grid-main{grid-template-columns:1fr}.staff-route .os-grid-three{grid-template-columns:1fr 1fr}.staff-route .os-main{padding:22px 18px 35px}}
@media(max-width:720px){.staff-route .os-topbar{grid-template-columns:1fr auto;padding:0 14px}.staff-route .os-brand div{display:none}.staff-route .os-global-search{display:none}.staff-route .os-layout{display:block}.staff-route .os-sidebar{position:sticky;top:72px;z-index:60;height:auto;padding:7px 8px;border-right:0;border-bottom:1px solid var(--apx-line);display:flex;gap:4px;overflow:auto}.staff-route .os-shop-switch,.staff-route .os-nav-section,.staff-route .os-more,.staff-route .os-home-link{display:none}.staff-route .os-sidebar .tab{min-width:88px;width:auto;justify-content:center;height:38px;padding:0 10px}.staff-route .os-sidebar .tab span{display:none}.staff-route .os-sidebar .tab b{font-size:8px}.staff-route .os-main{padding:16px 12px 30px}.staff-route .os-pagebar{display:block}.staff-route .os-page-actions{margin-top:10px}.staff-route .stats{gap:9px}.staff-route .stats .stat{padding:13px}.staff-route .stats .stat strong{font-size:20px}.staff-route .os-grid-three{grid-template-columns:1fr}.staff-route .os-appointment-card{grid-template-columns:50px 1fr auto}.staff-route .os-appt-right b{font-size:9px}}

/* V5 dashboard composition */
.apx-dashboard-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}
.apx-card{background:#fff;border:1px solid #edf0f4;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px rgba(25,35,50,.035)}
.apx-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #f0f2f5}.apx-card-head h3{margin:0;font-family:Manrope;font-size:12px;color:#202938}.apx-card-head p{margin:4px 0 0;color:#969eaa;font-size:8px}.apx-card-head .btn{height:28px!important;padding:0 10px!important;font-size:7px!important}.apx-trend{font-size:8px;font-weight:700;color:#1ab18a;background:#eafaf5;padding:6px 8px;border-radius:7px}
.apx-appointments-card{min-height:350px}.apx-appointment-list{padding:4px 14px 10px}.apx-appointment-row{width:100%;display:grid;grid-template-columns:62px 1fr auto;gap:10px;align-items:center;min-height:55px;padding:7px 6px;border:0;border-bottom:1px solid #f1f3f6;background:#fff;text-align:left;position:relative}.apx-appointment-row:last-child{border-bottom:0}.apx-appointment-row:hover{background:#fbfcfe}.apx-appointment-row .apx-time{font-size:8px;color:#8a94a1;font-weight:700}.apx-appt-line{display:grid;grid-template-columns:4px 1fr;column-gap:8px}.apx-appt-line i{grid-row:1/3;width:3px;border-radius:5px;background:#2373f5}.apx-appointment-row.completed .apx-appt-line i{background:#1bb68b}.apx-appointment-row.pending .apx-appt-line i{background:#f2b43d}.apx-appointment-row.cancelled .apx-appt-line i{background:#ef5350}.apx-appt-line strong{font-size:9px;color:#273140}.apx-appt-line small{font-size:7px;color:#929ba7;margin-top:3px}.apx-appt-price{font-size:9px;font-weight:700;color:#303948}
.apx-chart{height:220px;padding:20px 18px 12px;display:flex;align-items:end;gap:10px}.apx-bar-wrap{position:relative;flex:1;height:100%;display:flex;align-items:end;justify-content:center}.apx-bar-bg{position:absolute;bottom:19px;width:11px;height:78%;background:#edf0f3;border-radius:4px 4px 0 0}.apx-bar{position:absolute;bottom:19px;width:11px;max-height:78%;background:#1769f5;border-radius:4px 4px 0 0}.apx-bar-wrap small{position:absolute;bottom:0;font-size:7px;color:#a0a7b1}
.apx-stock-card,.apx-clients-card{min-height:285px}.apx-stock-list{padding:8px 18px 14px}.apx-stock-row{padding:10px 0;border-bottom:1px solid #f2f3f5}.apx-stock-row:last-child{border-bottom:0}.apx-stock-row>div:first-child{display:flex;justify-content:space-between;gap:10px}.apx-stock-row strong{font-size:8px;color:#36404e}.apx-stock-row small{font-size:7px;color:#8d96a2}.apx-progress{height:6px;background:#edf1f4;border-radius:999px;overflow:hidden;margin-top:7px}.apx-progress span{display:block;height:100%;background:#1769f5;border-radius:999px}.apx-stock-row:nth-child(2) .apx-progress span{background:#f1b63e}.apx-stock-row:nth-child(3) .apx-progress span{background:#1db68d}
.apx-client-list{padding:4px 14px 10px}.apx-client-row{width:100%;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:9px 5px;border:0;border-bottom:1px solid #f1f3f6;background:#fff;text-align:left}.apx-client-row:last-child{border-bottom:0}.apx-avatar{width:31px;height:31px;border-radius:9px;background:#eaf2ff;color:#1769f5;display:grid;place-items:center;font-size:8px;font-weight:800}.apx-client-row:nth-child(2) .apx-avatar{background:#f1f6f4;color:#1b9d79}.apx-client-row:nth-child(3) .apx-avatar{background:#fff5e7;color:#d99018}.apx-client-copy{display:grid}.apx-client-copy strong{font-size:8px;color:#303947}.apx-client-copy small{font-size:7px;color:#969faa;margin-top:3px}.apx-client-score{font-size:8px;font-weight:700;color:#1769f5}.apx-treatment-card{min-height:270px}.apx-percent{font-family:Manrope;font-weight:800;font-size:14px;color:#1769f5}.apx-gauge{height:140px;display:flex;align-items:end;justify-content:center;overflow:hidden}.apx-gauge-fill{--pct:50%;width:190px;height:95px;border-radius:190px 190px 0 0;background:conic-gradient(from 270deg,#1769f5 0 calc(var(--pct) / 2),#e7ebef calc(var(--pct) / 2) 50%,transparent 50% 100%);position:relative}.apx-gauge-fill:after{content:'';position:absolute;left:17px;right:17px;top:17px;bottom:0;border-radius:170px 170px 0 0;background:#fff}.apx-gauge-fill span{position:absolute;z-index:2;left:0;right:0;bottom:10px;text-align:center;font-family:Manrope;font-size:28px;font-weight:800;color:#1e2937}.apx-gauge-meta{padding:0 18px 17px;display:flex;justify-content:space-between;font-size:8px;color:#9199a5}.apx-gauge-meta strong{color:#303948}.apx-summary-card{padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:0}.apx-summary-item{padding:10px 12px;border-bottom:1px solid #f0f2f5}.apx-summary-item:nth-last-child(-n+2){border-bottom:0}.apx-summary-item:nth-child(odd){border-right:1px solid #f0f2f5}.apx-summary-item span{display:block;font-size:7px;color:#939ca8;margin-bottom:5px}.apx-summary-item strong{font-family:Manrope;font-size:15px;color:#222b38}.apx-empty{padding:28px 8px;text-align:center;color:#9aa2ad;font-size:9px}
@media(max-width:900px){.apx-dashboard-grid{grid-template-columns:1fr}.apx-treatment-card,.apx-summary-card{min-height:0}}

/* ============================================================
   APEX CHECKOUT — clean POS workspace inspired by modern Dribbble
   Warm ivory + charcoal + Apex gold. Touch friendly, readable.
   ============================================================ */
.apx-checkout-page{max-width:1480px;margin:0 auto;padding:4px 0 36px;color:#18191b}
.apx-checkout-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.apx-checkout-top h1{margin:5px 0 4px;font:800 30px/1.05 'Manrope',sans-serif;letter-spacing:-.045em;color:#17181a}
.apx-checkout-top p{margin:0;color:#73767b;font-size:11px;line-height:1.55;max-width:660px}
.apx-checkout-kicker{font-size:7px;font-weight:900;letter-spacing:1.65px;text-transform:uppercase;color:#a2784b}
.apx-checkout-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.apx-checkout-top-actions .btn{min-height:40px}
.apx-checkout-tabs{display:inline-flex;gap:4px;padding:4px;background:#ebe9e5;border:1px solid #dfddd8;border-radius:10px;margin-bottom:14px}
.apx-checkout-tab{height:38px;padding:0 17px;border:0;border-radius:7px;background:transparent;color:#666a70;font-size:10px;font-weight:800;display:inline-flex;align-items:center;gap:7px}
.apx-checkout-tab span{font-size:13px}
.apx-checkout-tab.active{background:#1c2025;color:#fff;box-shadow:0 4px 12px rgba(28,32,37,.14)}
.apx-checkout-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.75fr);gap:18px;align-items:start}
.apx-checkout-workspace{display:grid;gap:14px;min-width:0}
.apx-checkout-card,.apx-order-card,.apx-order-note{background:#fff;border:1px solid #e4e1dc;border-radius:15px;box-shadow:0 7px 24px rgba(25,27,30,.045)}
.apx-checkout-card{padding:19px}
.apx-card-title-row{display:flex;align-items:center;gap:11px;margin-bottom:17px}
.apx-card-title-row>div:last-child{display:grid;gap:3px}
.apx-card-title-row strong{font-size:12px;letter-spacing:-.01em;color:#202226}
.apx-card-title-row span:not(.apx-step-dot){font-size:9px;color:#85888d}
.apx-step-dot{display:grid!important;place-items:center!important;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#f2ece4;color:#8b633c;font-size:10px;font-weight:900!important}
.apx-customer-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:9px}
.apx-search-input{height:42px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dedbd6;border-radius:9px;background:#fafaf9}
.apx-search-input>span{font-size:18px;color:#888c91;line-height:1}
.apx-search-input input{width:100%;border:0;outline:0;background:transparent;font-size:10px;color:#25272a}
.apx-search-input input::placeholder{color:#a1a4a8}
.apx-customer-search .btn{min-height:42px}
.apx-customer-results{display:grid;gap:5px}
.apx-customer-results:empty{display:none}
.apx-customer-results .checkout-result{width:100%;min-height:47px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid #e8e5e0;border-radius:9px;background:#fff;color:#222}
.apx-customer-results .checkout-result:hover{background:#faf8f5;border-color:#cfc7bc}
.apx-customer-results .checkout-result span{display:grid;gap:2px;min-width:0}
.apx-customer-results .checkout-result b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apx-customer-results .checkout-result small{font-size:8px;color:#8b8e93}
.apx-customer-results .checkout-result em{font-style:normal;font-size:8px;color:#8c6a49;font-weight:800;white-space:nowrap}
.apx-selected-customer{min-height:58px;padding:9px 10px;display:flex;align-items:center;gap:10px;border:1px solid #ddd6cc;border-radius:10px;background:#faf8f4}
.apx-selected-customer.empty{justify-content:flex-start;color:#85888c;background:#fbfbfa;border-style:dashed}
.apx-selected-customer>div:not(.apx-avatar){min-width:0;display:grid;gap:3px;flex:1}
.apx-selected-customer strong{font-size:10px;color:#24262a}
.apx-selected-customer span{font-size:8px;color:#8b8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apx-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#e9e0d3;color:#6e4e30;font-size:10px;font-weight:900}
.apx-new-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;padding:12px;border:1px solid #ece8e2;border-radius:10px;background:#fbfaf8}
.apx-new-customer-grid label,.apx-form-grid-two label,.apx-full-field{display:grid;gap:6px;font-size:8px;font-weight:800;color:#54585e}
.apx-new-customer-grid label:last-child{grid-column:1/-1}
.apx-new-customer-grid small,.apx-form-grid-two label small,.apx-full-field small,.apx-cash-row small{font-size:7px;font-weight:600;color:#999ca1;margin-left:3px}
.apx-new-customer-grid input,.apx-form-grid-two select,.apx-form-grid-two input,.apx-full-field select,.apx-cash-row input{height:40px;width:100%;padding:0 11px;border:1px solid #dedbd6;border-radius:8px;background:#fff;outline:0;color:#25272a;font-size:10px}
.apx-new-customer-grid input:focus,.apx-form-grid-two select:focus,.apx-form-grid-two input:focus,.apx-full-field select:focus,.apx-cash-row input:focus{border-color:#b38a60;box-shadow:0 0 0 3px rgba(179,138,96,.11)}
.apx-form-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.apx-full-field{margin-top:1px}
.apx-full-field select{margin-top:0}
.apx-toggle-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.apx-toggle-row label{min-height:51px;padding:9px 10px;display:flex;align-items:center;gap:9px;border:1px solid #e8e4df;border-radius:9px;background:#fbfaf9}
.apx-toggle-row input{accent-color:#1d2228}
.apx-toggle-row span{display:grid;gap:3px}
.apx-toggle-row b{font-size:9px;color:#36383c}
.apx-toggle-row small{font-size:7px;color:#92959a}
.apx-product-addon{margin-top:12px;border:1px solid #e5e1db;border-radius:10px;overflow:hidden;background:#fcfbfa}
.apx-addon-head{min-height:55px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.apx-addon-head>div{display:grid;gap:3px}.apx-addon-head strong{font-size:9px}.apx-addon-head span{font-size:7px;color:#94979b}
.apx-switch{position:relative;width:38px;height:22px;display:block}.apx-switch input{position:absolute;opacity:0}.apx-switch i{position:absolute;inset:0;border-radius:99px;background:#d8d6d2;transition:.16s}.apx-switch i:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.16s}.apx-switch input:checked+i{background:#1e2329}.apx-switch input:checked+i:after{transform:translateX(16px)}
.apx-product-addon>.apx-form-grid-two{padding:0 11px 11px;margin:0}
.apx-payment-card{padding-bottom:15px}
.apx-payment-methods{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.apx-payment-method{position:relative;min-height:76px;padding:10px 10px;display:grid;grid-template-columns:30px 1fr 16px;align-items:center;gap:8px;text-align:left;border:1px solid #dfddd8;border-radius:10px;background:#fff;color:#24272b;transition:.15s}
.apx-payment-method:hover{border-color:#bdb5aa;transform:translateY(-1px)}
.apx-payment-method.active{border-color:#1e242b;background:#f5f3ef;box-shadow:inset 0 0 0 1px #1e242b}
.apx-payment-method>span:not(.apx-pay-icon){display:grid;gap:3px}.apx-payment-method b{font-size:9px}.apx-payment-method small{font-size:7px;color:#8b8e93}.apx-payment-method i{font-style:normal;opacity:0;color:#8a623b;font-size:11px}.apx-payment-method.active i{opacity:1}
.apx-pay-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#ece5db;color:#755332;font-size:10px;font-weight:900}
.apx-hidden-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.apx-cash-row{display:none;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:end;margin-top:10px;padding:11px;border-radius:10px;background:#f8f6f2;border:1px solid #e8e3dc}
.apx-cash-row.visible{display:grid}.apx-cash-row label{display:grid;gap:6px;font-size:8px;font-weight:800;color:#565a60}.apx-cash-row>div{min-height:40px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;border:1px solid #ddd8d0;border-radius:8px;background:#fff}.apx-cash-row>div span{font-size:8px;color:#898d92}.apx-cash-row>div strong{font-size:11px;color:#22252a}
.apx-checkout-order{position:sticky;top:84px;display:grid;gap:10px}
.apx-order-card{padding:18px}
.apx-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px solid #ece9e4}
.apx-order-head h2{margin:4px 0 0;font:800 17px/1.1 'Manrope',sans-serif;letter-spacing:-.035em;color:#202226}
.apx-order-status{padding:5px 7px;border-radius:6px;background:#edf2ec;color:#4b7254;font-size:6px;font-weight:900;letter-spacing:.9px}
.apx-order-customer{display:flex;align-items:center;gap:9px;padding:13px 0;border-bottom:1px solid #ece9e4}.apx-order-customer>div:not(.apx-avatar){display:grid;gap:3px}.apx-order-customer strong{font-size:9px}.apx-order-customer span{font-size:7px;color:#92959a}
.apx-order-items{display:grid;gap:1px;padding:6px 0}
.apx-order-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #f0ede9}.apx-item-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#f3eee7;color:#795837;font-size:10px}.apx-order-item>div:nth-child(2){display:grid;gap:3px;min-width:0}.apx-order-item strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-order-item span{font-size:7px;color:#94979c}.apx-order-item>b{font-size:9px;white-space:nowrap;color:#2b2e33}
.apx-order-empty{padding:20px 4px;text-align:center;color:#9b9ea2;font-size:8px}
.apx-order-rewards{padding:6px 0}.apx-reward-head{display:flex;align-items:center;justify-content:space-between;font-size:8px}.apx-reward-head span{padding:3px 6px;border-radius:99px;background:#f1e9df;color:#835f3c;font-weight:800}.apx-order-rewards p{margin:5px 0 0;color:#85888d;font-size:7px}.apx-reward-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 7px;margin-top:5px;border-radius:7px;background:#f7f2eb;font-size:7px}.apx-reward-line b{font-size:6px;color:#795737}
.apx-order-totals{padding-top:7px;border-top:1px solid #e9e6e1}.apx-order-totals>div{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:8px;color:#7d8085}.apx-order-totals b{font-size:8px;color:#34373b}.apx-order-total{margin-top:4px;padding-top:11px!important;border-top:1px solid #e4e0da;color:#25282d!important}.apx-order-total span{font-size:10px;font-weight:800}.apx-order-total strong{font:800 20px/1 'Manrope',sans-serif;letter-spacing:-.04em;color:#17191c}
.apx-complete-button{width:100%;min-height:51px;margin-top:13px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:10px;background:#1c2127;color:#fff;box-shadow:0 8px 18px rgba(25,29,34,.14);font-size:10px;font-weight:800;transition:.15s}.apx-complete-button:hover{transform:translateY(-1px);background:#242a31}.apx-complete-button:disabled{opacity:.55;transform:none}.apx-complete-button strong{font-size:11px;color:#e9dccb}
.apx-order-note{padding:12px;display:flex;gap:9px;background:#fbf9f6}.apx-order-note>span{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#ece5db;color:#795837;font-size:10px;font-weight:900}.apx-order-note strong{font-size:8px}.apx-order-note p{margin:3px 0 0;color:#898c91;font-size:7px;line-height:1.5}
.checkout-message{min-height:16px;margin:9px 0 0;font-size:8px;text-align:center}.checkout-message:not(.muted){color:#3f7450!important;font-weight:700}
@media(max-width:980px){.apx-checkout-layout{grid-template-columns:1fr}.apx-checkout-order{position:static;order:-1}.apx-payment-methods{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.apx-checkout-top{align-items:flex-start;flex-direction:column}.apx-checkout-top-actions{width:100%}.apx-checkout-top-actions .btn{flex:1}.apx-checkout-top h1{font-size:26px}.apx-checkout-card,.apx-order-card{padding:14px}.apx-form-grid-two,.apx-toggle-row,.apx-new-customer-grid{grid-template-columns:1fr}.apx-new-customer-grid label:last-child{grid-column:auto}.apx-payment-methods{grid-template-columns:1fr 1fr}.apx-cash-row{grid-template-columns:1fr}.apx-order-total strong{font-size:18px}}

/* ============================================================
   APEX STAFF — CLEAN LIGHT OPERATIONS UI
   Single visual system. No legacy dark-theme overrides.
   Business logic remains in app.js.
   ============================================================ */
:root{
  --staff-bg:#eef1f4;
  --staff-surface:#ffffff;
  --staff-surface-2:#f7f9fb;
  --staff-text:#20252d;
  --staff-muted:#75808d;
  --staff-line:#e1e6eb;
  --staff-line-strong:#cbd3dc;
  --staff-blue:#246bdb;
  --staff-blue-dark:#1558c5;
  --staff-blue-soft:#edf4ff;
  --staff-green:#20a77a;
  --staff-green-soft:#eaf8f3;
  --staff-red:#d94b4b;
  --staff-red-soft:#fff0f0;
  --staff-amber:#bd7b13;
  --staff-amber-soft:#fff7e8;
  --staff-shadow:0 2px 10px rgba(25,38,52,.045);
  --staff-shadow-lg:0 8px 24px rgba(25,38,52,.065);
}

/* page / shell */
body.staff-route,
.staff-route,
.staff-route .staff-app,
.staff-route .dashboard,
.staff-route .apex-os{
  background:var(--staff-bg)!important;
  color:var(--staff-text)!important;
  font-family:Inter,DM Sans,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
.staff-route *{box-sizing:border-box}
.staff-route button,.staff-route input,.staff-route select,.staff-route textarea{font-family:inherit!important}

/* top bar */
.staff-route .os-topbar{
  position:sticky!important;top:0!important;z-index:80!important;
  height:76px!important;
  display:grid!important;
  grid-template-columns:235px minmax(300px,560px) 1fr!important;
  align-items:center!important;
  gap:26px!important;
  padding:0 28px!important;
  background:#fff!important;
  color:var(--staff-text)!important;
  border-bottom:1px solid var(--staff-line)!important;
  box-shadow:0 1px 4px rgba(25,38,52,.035)!important;
}
.staff-route .os-brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.staff-route .os-brand img{width:36px!important;height:36px!important;border-radius:8px!important;object-fit:contain!important}
.staff-route .os-brand div{display:grid!important;line-height:1!important}
.staff-route .os-brand b{color:var(--staff-text)!important;font-size:17px!important;font-weight:800!important;letter-spacing:-.04em!important}
.staff-route .os-brand span{color:#8a949f!important;font-size:7px!important;font-weight:700!important;letter-spacing:1.45px!important;margin-top:5px!important}
.staff-route .os-global-search{
  height:44px!important;display:flex!important;align-items:center!important;gap:9px!important;
  padding:0 12px!important;background:#f7f9fb!important;color:#63707d!important;
  border:1px solid var(--staff-line-strong)!important;border-radius:11px!important;box-shadow:none!important;
}
.staff-route .os-global-search>span{color:#647282!important;font-size:16px!important}
.staff-route .os-global-search input{background:transparent!important;color:var(--staff-text)!important;border:0!important;outline:0!important;min-width:0!important;font-size:13px!important}
.staff-route .os-global-search input::placeholder{color:#8994a0!important}
.staff-route .os-global-search kbd{color:#526273!important;background:#fff!important;border:1px solid #d8dee5!important;border-radius:6px!important;padding:4px 6px!important;font-size:9px!important}
.staff-route .os-search-results{background:#fff!important;color:var(--staff-text)!important;border:1px solid var(--staff-line)!important;box-shadow:var(--staff-shadow-lg)!important;border-radius:11px!important}
.staff-route .os-search-results button{background:#fff!important;color:var(--staff-text)!important;border-bottom:1px solid #edf0f3!important}
.staff-route .os-search-results button:hover{background:#f7f9fb!important}
.staff-route .os-top-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important}
.staff-route .os-top-btn,.staff-route .os-account{
  height:42px!important;background:#fff!important;color:#4d5a68!important;border:1px solid var(--staff-line-strong)!important;
  border-radius:10px!important;padding:0 13px!important;box-shadow:none!important
}
.staff-route .os-top-btn:hover,.staff-route .os-account:hover{background:#f7f9fb!important}
.staff-route .os-account{display:flex!important;align-items:center!important;gap:8px!important}
.staff-route .os-account span{width:24px!important;height:24px!important;border-radius:7px!important;background:#e9eef4!important;color:#304052!important}
.staff-route .os-account em{font-style:normal!important;font-size:10px!important;color:#667382!important}

/* sidebar */
.staff-route .os-layout{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;min-height:calc(100svh - 76px)!important}
.staff-route .os-sidebar{
  position:sticky!important;top:76px!important;height:calc(100svh - 76px)!important;overflow:auto!important;
  padding:18px 13px 16px!important;background:#fff!important;color:#65717e!important;
  border-right:1px solid var(--staff-line)!important;box-shadow:none!important
}
.staff-route .os-shop-switch{
  display:flex!important;align-items:center!important;gap:10px!important;min-height:64px!important;
  padding:11px!important;margin:0 2px 20px!important;background:#f7f9fb!important;color:var(--staff-text)!important;
  border:1px solid var(--staff-line)!important;border-radius:12px!important;box-shadow:none!important
}
.staff-route .os-shop-switch strong{font-size:12px!important;color:var(--staff-text)!important;font-weight:750!important}
.staff-route .os-shop-switch small{font-size:9px!important;color:#7c8793!important}
.staff-route .os-shop-avatar{width:34px!important;height:34px!important;border-radius:9px!important;background:#e9f1ff!important;color:var(--staff-blue)!important;font-size:10px!important}
.staff-route .os-nav-section{margin:18px 12px 8px!important;padding:0!important;font-size:9px!important;font-weight:800!important;letter-spacing:1.35px!important;color:#8a949f!important}
.staff-route .os-sidebar .tab,.staff-route .os-home-link,.staff-route .os-more-toggle{
  width:100%!important;min-height:45px!important;height:45px!important;display:flex!important;align-items:center!important;gap:11px!important;
  margin:3px 0!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:10px!important;
  background:transparent!important;color:#687482!important;text-align:left!important;box-shadow:none!important
}
.staff-route .os-sidebar .tab span,.staff-route .os-home-link span{
  width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border-radius:7px!important;
  background:#f1f4f7!important;color:#687585!important;font-size:12px!important
}
.staff-route .os-sidebar .tab b,.staff-route .os-home-link b{font-size:11px!important;font-weight:650!important;color:inherit!important}
.staff-route .os-sidebar .tab:hover,.staff-route .os-home-link:hover,.staff-route .os-more-toggle:hover{background:#f5f8fb!important;color:#253342!important}
.staff-route .os-sidebar .tab.active{background:var(--staff-blue-soft)!important;color:#1c5bc5!important;border-color:#cfe0fb!important;box-shadow:inset 3px 0 0 var(--staff-blue)!important}
.staff-route .os-sidebar .tab.active span{background:#dceaff!important;color:var(--staff-blue)!important}
.staff-route .os-more{margin-top:4px!important}
.staff-route .os-more-menu{background:#fff!important;border:1px solid var(--staff-line)!important;border-radius:11px!important;box-shadow:var(--staff-shadow-lg)!important;padding:5px!important}
.staff-route .os-more-menu .tab{background:#f8fafc!important;color:#65717e!important}
.staff-route .os-more-menu .tab:hover{background:#eef4fb!important;color:#203043!important}
.staff-route .os-home-link{margin-top:18px!important;border-top:1px solid var(--staff-line)!important;border-radius:0!important;padding-top:18px!important;color:#687482!important}

/* main */
.staff-route .os-main{min-width:0!important;width:100%!important;max-width:none!important;padding:30px 34px 55px!important;background:var(--staff-bg)!important}
.staff-route .os-pagebar{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:22px!important;margin:0 0 20px!important;padding:0!important}
.staff-route .os-breadcrumb{font-size:9px!important;font-weight:800!important;letter-spacing:1.35px!important;color:#788491!important}
.staff-route .os-pagebar h1{margin:8px 0 5px!important;color:var(--staff-text)!important;font-size:30px!important;line-height:1.08!important;font-weight:800!important;letter-spacing:-.035em!important}
.staff-route .os-pagebar p{margin:0!important;color:var(--staff-muted)!important;font-size:12px!important}
.staff-route .os-page-actions{display:flex!important;gap:8px!important}
.staff-route .os-primary,.staff-route .os-secondary{height:42px!important;border-radius:10px!important;padding:0 15px!important;font-size:10px!important;font-weight:800!important}
.staff-route .os-primary{background:var(--staff-blue)!important;color:#fff!important;border:1px solid var(--staff-blue)!important;box-shadow:0 5px 12px rgba(36,107,219,.16)!important}
.staff-route .os-primary:hover{background:var(--staff-blue-dark)!important}
.staff-route .os-secondary{background:#fff!important;color:#425162!important;border:1px solid var(--staff-line-strong)!important}
.staff-route .os-secondary:hover{background:#f8fafc!important}

/* KPI stats */
.staff-route .stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important;padding:0!important}
.staff-route .stats .stat{
  min-height:108px!important;padding:19px 20px!important;background:#fff!important;color:var(--staff-text)!important;
  border:1px solid var(--staff-line)!important;border-radius:13px!important;box-shadow:var(--staff-shadow)!important
}
.staff-route .stats .stat:first-child{background:#fff!important;color:var(--staff-text)!important;border-color:var(--staff-line)!important}
.staff-route .stats .stat b,.staff-route .stats .stat strong{display:block!important;color:var(--staff-text)!important;font-size:27px!important;line-height:1!important;font-weight:800!important;letter-spacing:-.035em!important}
.staff-route .stats .stat span,.staff-route .stats .stat small{display:block!important;margin-top:9px!important;color:#7b8794!important;font-size:10px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.staff-route .stats .stat .icon{background:var(--staff-blue-soft)!important;color:var(--staff-blue)!important}

/* shared cards */
.staff-route .apx-card,.staff-route .dash-panel,.staff-route .os-business-panel,.staff-route .os-calendar-panel,.staff-route .checkout-shell,
.staff-route .card,.staff-route .form-grid,.staff-route .dashboard-form,.staff-route .table-wrap,.staff-route .customer-editor-panel,
.staff-route .customer-identity-card,.staff-route .customer-profile-grid,.staff-route .loyalty-control-panel,.staff-route .loyalty-rules,
.staff-route .referral-card-manager,.staff-route .reminder-settings-panel,.staff-route .booking-rules-panel,.staff-route .service-card,.staff-route .barber-card,
.staff-route .apx-checkout-card,.staff-route .apx-order-card{
  background:#fff!important;color:var(--staff-text)!important;border:1px solid var(--staff-line)!important;border-radius:13px!important;
  box-shadow:var(--staff-shadow)!important
}
.staff-route .apx-card-head,.staff-route .dash-panel-head,.staff-route .dash-toolbar{border-color:#edf0f3!important}
.staff-route .apx-card-head h3,.staff-route .dash-panel-head h3,.staff-route .dash-toolbar h2,.staff-route .dash-toolbar h3{color:var(--staff-text)!important;font-size:13px!important;font-weight:750!important}
.staff-route .apx-card-head p,.staff-route .dash-panel-head p,.staff-route .dash-toolbar p{color:var(--staff-muted)!important}
.staff-route .eyebrow{color:#85909c!important;font-size:8px!important;font-weight:800!important;letter-spacing:1px!important}
.staff-route .muted,.staff-route small,.staff-route .field-help,.staff-route .text-muted{color:var(--staff-muted)!important}

/* overview grid — matches the reference hierarchy */
.staff-route .apx-dashboard-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(260px,.72fr) minmax(260px,.72fr)!important;
  grid-template-areas:
    "appointments revenue revenue"
    "treatment stock clients"
    "summary summary summary"!important;
  gap:14px!important;
}
.staff-route .apx-appointments-card{grid-area:appointments!important;min-height:310px!important}
.staff-route .apx-revenue-card{grid-area:revenue!important;min-height:310px!important}
.staff-route .apx-treatment-card{grid-area:treatment!important;min-height:235px!important}
.staff-route .apx-stock-card{grid-area:stock!important;min-height:235px!important}
.staff-route .apx-clients-card{grid-area:clients!important;min-height:235px!important}
.staff-route .apx-summary-card{grid-area:summary!important}

/* appointment list */
.staff-route .apx-appointment-list{padding:6px 13px 12px!important}
.staff-route .apx-appointment-row{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%!important;min-height:59px!important;padding:8px 6px!important;background:#fff!important;color:var(--staff-text)!important;border:0!important;border-bottom:1px solid #eef1f4!important;text-align:left!important;position:relative!important}
.staff-route .apx-appointment-row:last-child{border-bottom:0!important}
.staff-route .apx-appointment-row:hover{background:#f8fafc!important}
.staff-route .apx-time{font-size:10px!important;color:#758291!important;font-weight:700!important}
.staff-route .apx-appt-line{position:relative!important;display:grid!important;grid-template-columns:4px 1fr!important;column-gap:8px!important}
.staff-route .apx-appt-line i{width:3px!important;border-radius:4px!important;background:var(--staff-blue)!important}
.staff-route .apx-appt-line strong{display:block!important;color:var(--staff-text)!important;font-size:11px!important;font-weight:700!important}
.staff-route .apx-appt-line small{display:block!important;color:#7b8793!important;font-size:9px!important;margin-top:3px!important}
.staff-route .apx-appt-price{font-size:10px!important;color:#4f5b68!important;font-weight:750!important}
.staff-route .apx-appointment-row.completed .apx-appt-line i{background:var(--staff-green)!important}
.staff-route .apx-appointment-row.pending .apx-appt-line i{background:#e0a42a!important}
.staff-route .apx-appointment-row.cancelled .apx-appt-line i{background:var(--staff-red)!important}

/* revenue chart */
.staff-route .apx-chart{height:235px!important;padding:18px 18px 12px!important;background:#fff!important;border:0!important;display:flex!important;align-items:flex-end!important;gap:10px!important}
.staff-route .apx-bar-wrap{height:100%!important;flex:1!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;position:relative!important;padding-bottom:20px!important}
.staff-route .apx-bar-bg,.staff-route .apx-bar{position:absolute!important;bottom:20px!important;width:12px!important;border-radius:4px 4px 0 0!important}
.staff-route .apx-bar-bg{height:145px!important;background:#edf0f3!important}
.staff-route .apx-bar{background:var(--staff-blue)!important;z-index:2!important;min-height:10px!important}
.staff-route .apx-bar-wrap small{position:absolute!important;bottom:0!important;color:#929ca7!important;font-size:9px!important}
.staff-route .apx-trend{font-size:9px!important;color:var(--staff-green)!important;background:var(--staff-green-soft)!important;border:1px solid #cdeee2!important;padding:6px 8px!important;border-radius:7px!important;font-weight:750!important}

/* stock / customers */
.staff-route .apx-stock-list,.staff-route .apx-client-list{padding:5px 14px 10px!important}
.staff-route .apx-stock-row{padding:9px 4px!important;background:#fff!important;border:0!important;border-bottom:1px solid #eef1f4!important;color:var(--staff-text)!important}
.staff-route .apx-stock-row:last-child{border-bottom:0!important}
.staff-route .apx-stock-row strong,.staff-route .apx-client-copy strong{color:var(--staff-text)!important;font-size:10px!important;font-weight:700!important}
.staff-route .apx-stock-row small,.staff-route .apx-client-copy small{display:block!important;color:#7f8995!important;font-size:9px!important;margin-top:2px!important}
.staff-route .apx-progress{height:7px!important;background:#edf0f3!important;border-radius:5px!important;overflow:hidden!important;margin-top:6px!important}
.staff-route .apx-progress span{display:block!important;height:100%!important;background:var(--staff-blue)!important;border-radius:5px!important}
.staff-route .apx-client-row{display:grid!important;grid-template-columns:36px 1fr auto!important;gap:9px!important;align-items:center!important;width:100%!important;padding:8px 4px!important;background:#fff!important;color:var(--staff-text)!important;border:0!important;border-bottom:1px solid #eef1f4!important;text-align:left!important}
.staff-route .apx-client-row:hover{background:#f8fafc!important}
.staff-route .apx-avatar{width:32px!important;height:32px!important;border-radius:50%!important;background:#eaf2ff!important;color:var(--staff-blue)!important;border:0!important;display:grid!important;place-items:center!important;font-size:10px!important;font-weight:800!important}
.staff-route .apx-client-score{color:var(--staff-blue)!important;font-size:10px!important;font-weight:800!important}

/* treatment gauge */
.staff-route .apx-percent{color:var(--staff-blue)!important;font-size:12px!important;font-weight:800!important}
.staff-route .apx-treatment-card{background:#fff!important;color:var(--staff-text)!important}
.staff-route .apx-gauge{height:145px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important;padding-top:10px!important}
.staff-route .apx-gauge-fill{width:190px!important;height:96px!important;border-radius:190px 190px 0 0!important;background:conic-gradient(from 270deg,var(--staff-blue) 0 calc(var(--pct)/2),#e7ebef calc(var(--pct)/2) 50%,transparent 50% 100%)!important;position:relative!important}
.staff-route .apx-gauge-fill:after{content:""!important;position:absolute!important;left:16px!important;right:16px!important;bottom:0!important;height:80px!important;background:#fff!important;border-radius:170px 170px 0 0!important}
.staff-route .apx-gauge-fill span{position:absolute!important;z-index:2!important;left:0!important;right:0!important;bottom:10px!important;text-align:center!important;font-size:25px!important;font-weight:800!important;color:var(--staff-text)!important}
.staff-route .apx-gauge-meta{display:flex!important;justify-content:space-between!important;padding:0 18px 13px!important;color:#84909c!important;font-size:9px!important}
.staff-route .apx-gauge-meta strong{color:var(--staff-text)!important}

/* summary */
.staff-route .apx-summary-card{display:grid!important;grid-template-columns:repeat(4,1fr)!important;padding:0!important;background:#fff!important}
.staff-route .apx-summary-item{padding:17px 20px!important;border-right:1px solid #eef1f4!important}
.staff-route .apx-summary-item:last-child{border-right:0!important}
.staff-route .apx-summary-item span{display:block!important;color:#7e8995!important;font-size:9px!important;margin-bottom:5px!important}
.staff-route .apx-summary-item strong{color:var(--staff-text)!important;font-size:18px!important;font-weight:800!important}
.staff-route .apx-empty{padding:20px!important;color:#8c97a2!important;text-align:center!important;font-size:10px!important}

/* tables */
.staff-route table{width:100%!important;background:#fff!important;color:var(--staff-text)!important;border-collapse:separate!important;border-spacing:0!important}
.staff-route th{background:#f7f9fb!important;color:#647180!important;border-bottom:1px solid var(--staff-line)!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important;padding:12px 13px!important}
.staff-route td{background:#fff!important;color:#43505e!important;border-bottom:1px solid #edf0f3!important;padding:12px 13px!important;font-size:10px!important}
.staff-route td strong,.staff-route td b{color:var(--staff-text)!important}
.staff-route tr:hover td{background:#f8fafc!important}

/* forms */
.staff-route input,.staff-route select,.staff-route textarea{
  background:#fff!important;color:var(--staff-text)!important;border:1px solid #cdd5de!important;border-radius:9px!important;
  box-shadow:none!important;min-height:42px!important
}
.staff-route input::placeholder,.staff-route textarea::placeholder{color:#98a3af!important}
.staff-route input:focus,.staff-route select:focus,.staff-route textarea:focus{outline:0!important;border-color:#7ca6ea!important;box-shadow:0 0 0 3px rgba(36,107,219,.10)!important}
.staff-route label,.staff-route .field-label{color:#465362!important;font-weight:650!important}
.staff-route .toggle-field,.staff-route .check-field{color:#465362!important}

/* buttons / statuses */
.staff-route .btn,.staff-route .button{border-radius:9px!important;font-weight:700!important}
.staff-route .btn-dark,.staff-route .btn-primary,.staff-route .button-dark,.staff-route .primary-action{background:var(--staff-blue)!important;color:#fff!important;border-color:var(--staff-blue)!important}
.staff-route .btn-dark:hover,.staff-route .btn-primary:hover{background:var(--staff-blue-dark)!important}
.staff-route .btn-ghost,.staff-route .btn-outline,.staff-route .button-outline,.staff-route .btn-secondary,.staff-route button.secondary{background:#fff!important;color:#4a5867!important;border:1px solid #ccd4dd!important}
.staff-route .btn-ghost:hover,.staff-route .btn-outline:hover,.staff-route button.secondary:hover{background:#f7f9fb!important}
.staff-route .danger-btn,.staff-route .btn-danger,.staff-route .danger{background:var(--staff-red-soft)!important;color:var(--staff-red)!important;border:1px solid #f0cccc!important}
.staff-route .success,.staff-route .status-complete,.staff-route .completed{color:var(--staff-green)!important}

/* calendar */
.staff-route .calendar,.staff-route .apx-calendar,.staff-route .calendar-grid,.staff-route .apx-calendar-wrap,.staff-route .apx-staff-col,.staff-route .apx-month-day,.staff-route .apx-calendar-card{background:#fff!important;color:var(--staff-text)!important;border-color:var(--staff-line)!important}
.staff-route .calendar-header,.staff-route .calendar-head,.staff-route .apx-cal-head,.staff-route .apx-week-head{background:#f7f9fb!important;color:var(--staff-text)!important;border-color:var(--staff-line)!important}
.staff-route .calendar-grid>div,.staff-route .calendar-cell,.staff-route .apx-slot,.staff-route .apx-time-col,.staff-route .apx-week-day{background:#fff!important;color:#65717e!important;border-color:#e8ecf0!important}
.staff-route .calendar-cell.today,.staff-route .calendar .today,.staff-route .apx-week-head .today,.staff-route .apx-month-day.today{background:var(--staff-blue-soft)!important;color:var(--staff-blue)!important}
.staff-route .apx-cal-event,.staff-route .apx-mini-event{background:#edf4ff!important;color:#184baf!important;border:1px solid #c9dcfa!important;border-left:3px solid var(--staff-blue)!important}
.staff-route .apx-cal-event strong{color:#184baf!important}.staff-route .apx-event-service,.staff-route .apx-event-meta{color:#607187!important}

/* checkout / POS */
.staff-route .apx-checkout-page,.staff-route .apx-checkout-workspace{background:var(--staff-bg)!important;color:var(--staff-text)!important}
.staff-route .apx-checkout-card,.staff-route .apx-order-card{background:#fff!important;color:var(--staff-text)!important;border:1px solid var(--staff-line)!important;box-shadow:var(--staff-shadow)!important}
.staff-route .apx-payment-method{background:#fff!important;color:var(--staff-text)!important;border:1px solid #ccd4dd!important;border-radius:10px!important}
.staff-route .apx-payment-method:hover{background:#f8fafc!important;border-color:#aebbc8!important}
.staff-route .apx-payment-method.active{background:var(--staff-blue-soft)!important;color:#174eac!important;border-color:#76a4ef!important;box-shadow:inset 0 0 0 1px #76a4ef!important}
.staff-route .apx-pay-icon,.staff-route .apx-item-icon{background:#eaf2ff!important;color:var(--staff-blue)!important}
.staff-route .apx-selected-customer{background:#f7f9fb!important;color:var(--staff-text)!important;border-color:var(--staff-line)!important}
.staff-route .apx-selected-customer.empty{background:#fbfcfd!important;color:#87919d!important}
.staff-route .apx-selected-customer strong,.staff-route .apx-order-item strong,.staff-route .apx-order-total span{color:var(--staff-text)!important}
.staff-route .apx-order-item{background:#fff!important;border-color:#eef1f4!important}
.staff-route .apx-order-item span,.staff-route .apx-order-totals>div{color:#7b8793!important}
.staff-route .apx-order-total{border-color:#e1e6eb!important}
.staff-route .apx-order-total strong{color:var(--staff-text)!important}
.staff-route .apx-complete-button{background:var(--staff-blue)!important;color:#fff!important;border:1px solid var(--staff-blue)!important;box-shadow:0 8px 18px rgba(36,107,219,.16)!important}
.staff-route .apx-complete-button:hover{background:var(--staff-blue-dark)!important}
.staff-route .apx-reward-line{background:#f4f8ff!important;color:#294f86!important;border:1px solid #dbe8fb!important}

/* modals */
.staff-route .modal-backdrop{background:rgba(27,36,46,.28)!important;backdrop-filter:blur(5px)!important}
.staff-route .modal-card{background:#fff!important;color:var(--staff-text)!important;border:1px solid var(--staff-line)!important;border-radius:14px!important;box-shadow:0 25px 70px rgba(24,35,48,.18)!important}
.staff-route .modal-head{background:#fff!important;color:var(--staff-text)!important;border-color:var(--staff-line)!important}
.staff-route .modal-head h2,.staff-route .modal-head h3{color:var(--staff-text)!important}
.staff-route .modal-close{background:#f5f7f9!important;color:#687482!important;border-color:#e0e5ea!important}

/* login */
.staff-route .staff-login-card,.staff-route .auth-card-new{background:#fff!important;color:var(--staff-text)!important;border:1px solid var(--staff-line)!important;border-radius:14px!important;box-shadow:var(--staff-shadow-lg)!important}
.staff-route .auth-copy strong{color:var(--staff-text)!important}.staff-route .auth-copy p{color:var(--staff-muted)!important}
.staff-route .auth-lock{background:var(--staff-blue)!important;color:#fff!important}
.staff-route .auth-form button{background:var(--staff-blue)!important;color:#fff!important;border:1px solid var(--staff-blue)!important}

/* remove accidental dark surfaces from legacy classes */
.staff-route .os-command-row,.staff-route .os-command-row *{background:#fff!important;color:var(--staff-text)!important}
.staff-route .os-command-row{border:1px solid var(--staff-line)!important}
.staff-route .os-command-row p{color:var(--staff-muted)!important}
.staff-route .apx-card *, .staff-route .dash-panel *, .staff-route .card *{max-width:100%}

/* responsive */
@media(max-width:1180px){
  .staff-route .os-topbar{grid-template-columns:220px minmax(260px,1fr) auto!important;gap:16px!important;padding:0 20px!important}
  .staff-route .os-layout{grid-template-columns:220px minmax(0,1fr)!important}
  .staff-route .os-sidebar{width:220px!important}
  .staff-route .os-main{padding:26px 22px 45px!important}
  .staff-route .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .staff-route .apx-dashboard-grid{grid-template-columns:1fr 1fr!important;grid-template-areas:"appointments appointments" "revenue revenue" "treatment stock" "clients clients" "summary summary"!important}
}
@media(max-width:760px){
  .staff-route .os-topbar{height:64px!important;grid-template-columns:1fr auto!important;padding:0 13px!important}
  .staff-route .os-brand div{display:none!important}
  .staff-route .os-global-search{display:none!important}
  .staff-route .os-layout{display:block!important;min-height:calc(100svh - 64px)!important}
  .staff-route .os-sidebar{position:sticky!important;top:64px!important;width:100%!important;height:auto!important;display:flex!important;overflow:auto!important;padding:7px!important;border-right:0!important;border-bottom:1px solid var(--staff-line)!important;gap:4px!important}
  .staff-route .os-shop-switch,.staff-route .os-nav-section,.staff-route .os-home-link{display:none!important}
  .staff-route .os-sidebar .tab{min-width:92px!important;width:auto!important;justify-content:center!important;margin:0!important}
  .staff-route .os-sidebar .tab span{display:none!important}
  .staff-route .os-more{display:block!important}
  .staff-route .os-more-toggle{min-width:92px!important;width:92px!important;margin:0!important}
  .staff-route .os-main{padding:18px 12px 30px!important}
  .staff-route .os-pagebar{display:block!important}
  .staff-route .os-page-actions{margin-top:12px!important}
  .staff-route .os-page-actions .os-primary,.staff-route .os-page-actions .os-secondary{flex:1!important}
  .staff-route .stats{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .staff-route .stats .stat{min-height:88px!important;padding:14px!important}
  .staff-route .stats .stat b,.staff-route .stats .stat strong{font-size:22px!important}
  .staff-route .apx-dashboard-grid{grid-template-columns:1fr!important;grid-template-areas:"appointments" "revenue" "treatment" "stock" "clients" "summary"!important}
  .staff-route .apx-summary-card{grid-template-columns:1fr 1fr!important}
  .staff-route .apx-summary-item:nth-child(2){border-right:0!important}
  .staff-route .apx-summary-item:nth-child(-n+2){border-bottom:1px solid #eef1f4!important}
  .staff-route .apx-chart{height:210px!important}
}
@media(max-width:480px){
  .staff-route .stats{grid-template-columns:1fr!important}
  .staff-route .os-page-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .staff-route .apx-summary-card{grid-template-columns:1fr!important}
  .staff-route .apx-summary-item{border-right:0!important;border-bottom:1px solid #eef1f4!important}
}

/* ============================================================
   APEX WARM COLOURFUL STUDIO THEME — FINAL VISUAL LAYER
   Inspired by the supplied warm SaaS dashboard reference.
   Presentation only: business logic/data untouched.
   ============================================================ */
.staff-route{
  --staff-bg:#f6f1ea!important;
  --staff-surface:#fffdf9!important;
  --staff-text:#202020!important;
  --staff-muted:#756f68!important;
  --staff-line:#e9dfd4!important;
  --staff-line-strong:#d9cbbd!important;
  --staff-blue:#d96543!important;
  --staff-blue-dark:#bd5032!important;
  --staff-blue-soft:#fff0e9!important;
  --staff-green:#4f8b67!important;
  --staff-green-soft:#edf6ef!important;
  --staff-red:#d85b52!important;
  --staff-red-soft:#fff0ee!important;
  --staff-shadow:0 5px 22px rgba(74,52,35,.055)!important;
  --staff-shadow-lg:0 18px 55px rgba(74,52,35,.12)!important;
  background:#f6f1ea!important;color:#202020!important;
}
.staff-route .apex-os{background:#f6f1ea!important}

/* top navigation */
.staff-route .os-topbar{
  background:#fffdf9!important;color:#202020!important;border-bottom:1px solid #e9dfd4!important;
  box-shadow:0 1px 0 rgba(74,52,35,.025)!important;
}
.staff-route .os-brand b{color:#202020!important}
.staff-route .os-brand span{color:#9b8d80!important}
.staff-route .os-global-search{background:#fffaf4!important;border:1px solid #ded2c6!important;color:#6e665e!important}
.staff-route .os-global-search input{color:#27231f!important}
.staff-route .os-global-search input::placeholder{color:#978c81!important}
.staff-route .os-global-search kbd{color:#7b7065!important;border-color:#dfd4c9!important;background:#fff!important}
.staff-route .os-top-btn,.staff-route .os-account{background:#fffdf9!important;color:#4d443d!important;border-color:#ded2c6!important}
.staff-route .os-top-btn:hover,.staff-route .os-account:hover{background:#fff4eb!important}
.staff-route .os-account span{background:#f5e2d5!important;color:#b64f34!important}

/* sidebar */
.staff-route .os-sidebar{background:#fffdf9!important;color:#655d55!important;border-right:1px solid #e8ddd2!important}
.staff-route .os-shop-switch{background:#fff7ef!important;border:1px solid #ead8ca!important;color:#27221e!important;box-shadow:none!important}
.staff-route .os-shop-switch strong{color:#25211e!important}
.staff-route .os-shop-switch small{color:#8b7d71!important}
.staff-route .os-shop-avatar{background:#f4c9ae!important;color:#a8482e!important}
.staff-route .os-nav-section{color:#9a8c80!important}
.staff-route .os-sidebar .tab,.staff-route .os-home-link,.staff-route .os-more-toggle{color:#625a53!important}
.staff-route .os-sidebar .tab span,.staff-route .os-home-link span{background:#f4eee7!important;color:#766b61!important}
.staff-route .os-sidebar .tab:hover,.staff-route .os-home-link:hover,.staff-route .os-more-toggle:hover{background:#fff5ed!important;color:#352d27!important}
.staff-route .os-sidebar .tab.active{background:#fff0e8!important;color:#c85537!important;border-color:#f1c9b8!important;box-shadow:inset 3px 0 0 #df6948!important}
.staff-route .os-sidebar .tab.active span{background:#f8d9c9!important;color:#cf593a!important}
.staff-route .os-home-link{border-top-color:#eadfd5!important;color:#74695f!important}
.staff-route .os-more-menu{background:#fffdf9!important;border-color:#e8ddd2!important}
.staff-route .os-more-menu .tab{background:#fff8f1!important;color:#665d54!important}
.staff-route .os-more-menu .tab:hover{background:#fff0e8!important;color:#3b3029!important}

/* page */
.staff-route .os-main{background:#f6f1ea!important}
.staff-route .os-breadcrumb{color:#a0816e!important}
.staff-route .os-pagebar h1{color:#202020!important;font-family:Georgia,'Times New Roman',serif!important;font-weight:700!important}
.staff-route .os-pagebar p{color:#7d736a!important}
.staff-route .os-primary{background:#d96543!important;border-color:#d96543!important;color:#fff!important;box-shadow:0 7px 16px rgba(217,101,67,.18)!important}
.staff-route .os-primary:hover{background:#c85637!important}
.staff-route .os-secondary{background:#fffdf9!important;color:#51473f!important;border-color:#d9cbbd!important}
.staff-route .os-secondary:hover{background:#fff4eb!important}

/* KPI cards — each deliberately gets its own warm accent */
.staff-route .stats .stat{
  position:relative!important;overflow:hidden!important;background:#fffdf9!important;color:#202020!important;
  border:1px solid #e8ddd2!important;border-radius:13px!important;box-shadow:0 5px 18px rgba(74,52,35,.05)!important;
}
.staff-route .stats .stat::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:#d96543}
.staff-route .stats .stat:nth-child(1)::before{background:#df6948!important}
.staff-route .stats .stat:nth-child(2)::before{background:#e8aa2f!important}
.staff-route .stats .stat:nth-child(3)::before{background:#5b946e!important}
.staff-route .stats .stat:nth-child(4)::before{background:#4e99b8!important}
.staff-route .stats .stat b,.staff-route .stats .stat strong{color:#202020!important}
.staff-route .stats .stat span,.staff-route .stats .stat small{color:#7b7168!important}
.staff-route .stats .stat .icon{background:#fff0e8!important;color:#d35f40!important}
.staff-route .stats .stat:nth-child(2) .icon{background:#fff5d9!important;color:#d59b1e!important}
.staff-route .stats .stat:nth-child(3) .icon{background:#edf6ef!important;color:#4f8b67!important}
.staff-route .stats .stat:nth-child(4) .icon{background:#eaf5f8!important;color:#428ca9!important}

/* all cards */
.staff-route .apx-card,.staff-route .dash-panel,.staff-route .os-business-panel,.staff-route .os-calendar-panel,
.staff-route .checkout-shell,.staff-route .card,.staff-route .form-grid,.staff-route .dashboard-form,.staff-route .table-wrap,
.staff-route .customer-editor-panel,.staff-route .customer-identity-card,.staff-route .customer-profile-grid,
.staff-route .loyalty-control-panel,.staff-route .loyalty-rules,.staff-route .referral-card-manager,
.staff-route .reminder-settings-panel,.staff-route .booking-rules-panel,.staff-route .service-card,.staff-route .barber-card,
.staff-route .apx-checkout-card,.staff-route .apx-order-card{
  background:#fffdf9!important;color:#202020!important;border-color:#e8ddd2!important;
  box-shadow:0 5px 20px rgba(74,52,35,.05)!important;
}
.staff-route .apx-card-head{background:#fffdf9!important;border-color:#eee4da!important}
.staff-route .apx-card-head h3,.staff-route .dash-panel-head h3,.staff-route .dash-toolbar h2,.staff-route .dash-toolbar h3{color:#26211d!important}
.staff-route .apx-card-head p,.staff-route .dash-panel-head p,.staff-route .dash-toolbar p{color:#857a70!important}
.staff-route .apx-trend{color:#4f8b67!important;background:#edf6ef!important;border-color:#d7eadc!important}

/* appointment table: warm status coding */
.staff-route .apx-appointment-row{background:#fffdf9!important;color:#202020!important;border-bottom-color:#eee4da!important}
.staff-route .apx-appointment-row:hover{background:#fff7f0!important}
.staff-route .apx-time{color:#806f62!important}
.staff-route .apx-appt-line strong{color:#28231f!important}
.staff-route .apx-appt-line small{color:#82776e!important}
.staff-route .apx-appt-line i{background:#df6948!important}
.staff-route .apx-appointment-row.completed .apx-appt-line i{background:#5b946e!important}
.staff-route .apx-appointment-row.pending .apx-appt-line i{background:#e5aa2d!important}
.staff-route .apx-appointment-row.cancelled .apx-appt-line i{background:#d85b52!important}
.staff-route .apx-appt-price{color:#554a42!important}

/* revenue chart — rotating palette */
.staff-route .apx-chart{background:#fffdf9!important}
.staff-route .apx-bar-bg{background:#f0e9e1!important}
.staff-route .apx-bar-wrap:nth-child(6n+1) .apx-bar{background:#df6948!important}
.staff-route .apx-bar-wrap:nth-child(6n+2) .apx-bar{background:#e8ad32!important}
.staff-route .apx-bar-wrap:nth-child(6n+3) .apx-bar{background:#6a986f!important}
.staff-route .apx-bar-wrap:nth-child(6n+4) .apx-bar{background:#4d9baa!important}
.staff-route .apx-bar-wrap:nth-child(6n+5) .apx-bar{background:#7587bd!important}
.staff-route .apx-bar-wrap:nth-child(6n) .apx-bar{background:#d77a45!important}
.staff-route .apx-bar-wrap small{color:#95897e!important}

/* lower cards */
.staff-route .apx-stock-row,.staff-route .apx-client-row{background:#fffdf9!important;color:#202020!important;border-bottom-color:#eee4da!important}
.staff-route .apx-stock-row:hover,.staff-route .apx-client-row:hover{background:#fff7f0!important}
.staff-route .apx-stock-row strong,.staff-route .apx-client-copy strong{color:#29231e!important}
.staff-route .apx-stock-row small,.staff-route .apx-client-copy small{color:#82776e!important}
.staff-route .apx-progress{background:#eee8e1!important}
.staff-route .apx-progress span{background:#df6948!important}
.staff-route .apx-avatar{background:#f7e3d7!important;color:#bd573a!important}
.staff-route .apx-client-score{color:#4f8b67!important}

/* treatment colours */
.staff-route .apx-gauge-fill{background:#df6948!important}
.staff-route .apx-percent{color:#d35f40!important}

/* general forms/tables */
.staff-route input,.staff-route select,.staff-route textarea{background:#fffdf9!important;color:#29231e!important;border-color:#ded2c7!important}
.staff-route input::placeholder,.staff-route textarea::placeholder{color:#9b8e82!important}
.staff-route input:focus,.staff-route select:focus,.staff-route textarea:focus{border-color:#df9b7f!important;box-shadow:0 0 0 3px rgba(217,101,67,.10)!important}
.staff-route label,.staff-route .field-label{color:#62584f!important}
.staff-route table{background:#fffdf9!important;color:#29231e!important}
.staff-route th{background:#faf3ec!important;color:#786b61!important}
.staff-route td{border-color:#eee4da!important;color:#403831!important}

/* buttons by meaning */
.staff-route .btn-dark,.staff-route .btn-primary,.staff-route .button-dark,.staff-route .primary-action{background:#d96543!important;color:#fff!important;border-color:#d96543!important}
.staff-route .btn-ghost,.staff-route .btn-outline,.staff-route .button-outline,.staff-route .btn-secondary,.staff-route button.secondary{background:#fffdf9!important;color:#62574e!important;border-color:#d9cbbd!important}
.staff-route .btn-ghost:hover,.staff-route .btn-outline:hover,.staff-route button.secondary:hover{background:#fff2e9!important}
.staff-route .danger-btn,.staff-route .btn-danger,.staff-route .danger{background:#fff0ee!important;color:#c84e46!important;border-color:#f0cbc7!important}
.staff-route .success,.staff-route .status-complete,.staff-route .completed{color:#4f8b67!important}

/* checkout */
.staff-route .apx-payment-method{background:#fffdf9!important;color:#403831!important;border-color:#ded2c7!important}
.staff-route .apx-payment-method:hover{background:#fff5ed!important;border-color:#d5b8a7!important}
.staff-route .apx-payment-method.active{background:#fff0e8!important;color:#b94f32!important;border-color:#e4a78f!important;box-shadow:inset 0 0 0 1px #e4a78f!important}
.staff-route .apx-pay-icon,.staff-route .apx-item-icon{background:#f8dfd2!important;color:#d35f40!important}
.staff-route .apx-complete-button{background:#d96543!important;border-color:#d96543!important;box-shadow:0 8px 18px rgba(217,101,67,.16)!important}
.staff-route .apx-reward-line{background:#fff7e5!important;color:#896516!important;border-color:#f0dfb4!important}

/* modal */
.staff-route .modal-backdrop{background:rgba(55,40,30,.28)!important}
.staff-route .modal-card{background:#fffdf9!important;color:#29231e!important;border-color:#e8ddd2!important}
.staff-route .modal-head{background:#fffdf9!important;color:#29231e!important;border-color:#eee4da!important}
.staff-route .modal-close{background:#f7eee7!important;color:#74685e!important;border-color:#e4d8ce!important}

/* give selected manage controls subtle individual colour cues */
.staff-route .service-card:nth-child(3n+1),.staff-route .barber-card:nth-child(3n+1){border-top:3px solid #df6948!important}
.staff-route .service-card:nth-child(3n+2),.staff-route .barber-card:nth-child(3n+2){border-top:3px solid #e8ad32!important}
.staff-route .service-card:nth-child(3n),.staff-route .barber-card:nth-child(3n){border-top:3px solid #6a986f!important}

@media(max-width:1180px){
 .staff-route .os-main{padding:26px 22px 45px!important}
}

/* ==========================================================
   APEX V17 — WARM COLOURFUL OPERATIONS UI
   Functional theme layer only; business logic remains unchanged.
   ========================================================== */
:root{
  --apx-bg:#f6f1e9;
  --apx-surface:#fffdf9;
  --apx-surface-2:#fbf6ef;
  --apx-text:#202124;
  --apx-muted:#77736d;
  --apx-border:#e9dfd2;
  --apx-orange:#d96543;
  --apx-orange-soft:#fff0e9;
  --apx-yellow:#e9ad2e;
  --apx-yellow-soft:#fff7df;
  --apx-green:#5d956d;
  --apx-green-soft:#eaf5ed;
  --apx-teal:#3e95ad;
  --apx-teal-soft:#e8f5f8;
  --apx-blue:#477fbe;
  --apx-blue-soft:#edf4fb;
  --apx-purple:#8567a8;
  --apx-purple-soft:#f2ecf8;
}
body.staff-route{background:var(--apx-bg)!important;color:var(--apx-text)!important}
.staff-route .os-topbar{background:rgba(255,253,249,.96)!important;border-bottom:1px solid var(--apx-border)!important;box-shadow:0 1px 0 rgba(72,54,35,.03)!important}
.staff-route .os-sidebar{background:#fffdf9!important;border-right:1px solid var(--apx-border)!important}
.staff-route .os-main{background:var(--apx-bg)!important}
.staff-route .os-brand b,.staff-route .os-brand span{color:var(--apx-text)!important}
.staff-route .os-shop-switch{background:#fff8ef!important;border:1px solid #eadbc9!important;color:var(--apx-text)!important}
.staff-route .os-nav-section{color:#958a7d!important}
.staff-route .tab{color:#3c3b39!important;background:transparent!important}
.staff-route .tab:hover{background:#fff4ea!important;color:var(--apx-orange)!important}
.staff-route .tab.active{background:var(--apx-orange-soft)!important;color:var(--apx-orange)!important;border-color:#f1b39e!important}
.staff-route .tab.active svg,.staff-route .tab.active i{color:var(--apx-orange)!important}
.staff-route .os-home-link{color:#4b4945!important;border-top-color:var(--apx-border)!important}
.staff-route .os-pagebar h1{color:var(--apx-text)!important}
.staff-route .os-breadcrumb{color:#9b8f80!important}
.staff-route .os-page-actions .os-primary,.staff-route .apx-new,.staff-route .btn-primary{background:var(--apx-orange)!important;border-color:var(--apx-orange)!important;color:white!important;box-shadow:0 8px 18px rgba(217,101,67,.18)!important}
.staff-route .os-page-actions .os-secondary{background:#fffdf9!important;border:1px solid var(--apx-border)!important;color:#373533!important}
.staff-route .stats .stat{background:var(--apx-surface)!important;border:1px solid var(--apx-border)!important;box-shadow:0 5px 18px rgba(91,65,39,.05)!important;color:var(--apx-text)!important}
.staff-route .stats .stat:nth-child(1){border-top:3px solid var(--apx-orange)!important}
.staff-route .stats .stat:nth-child(2){border-top:3px solid var(--apx-yellow)!important}
.staff-route .stats .stat:nth-child(3){border-top:3px solid var(--apx-green)!important}
.staff-route .stats .stat:nth-child(4){border-top:3px solid var(--apx-teal)!important}
.staff-route .stats .stat b{color:var(--apx-text)!important}
.staff-route .stats .stat span{color:var(--apx-muted)!important}
.staff-route .apx-card,.staff-route .apx-calendar-card,.staff-route .dash-panel,.staff-route .os-business-panel,.staff-route .apx-checkout-card,.staff-route .apx-order-card{background:var(--apx-surface)!important;border-color:var(--apx-border)!important;box-shadow:0 7px 24px rgba(91,65,39,.055)!important;color:var(--apx-text)!important}
.staff-route .apx-card h3,.staff-route .apx-card p,.staff-route .apx-card strong,.staff-route .apx-card span,.staff-route .dash-panel h3,.staff-route .dash-panel h2{color:var(--apx-text)!important}
.staff-route .apx-card p,.staff-route .muted{color:var(--apx-muted)!important}
.staff-route .apx-card:nth-child(1) .apx-card-head h3:before{background:var(--apx-orange)}
.staff-route .apx-card:nth-child(2) .apx-card-head h3:before{background:var(--apx-yellow)}
.staff-route .apx-card:nth-child(3) .apx-card-head h3:before{background:var(--apx-green)}
.staff-route .apx-card:nth-child(4) .apx-card-head h3:before{background:var(--apx-teal)}
.staff-route .apx-card:nth-child(5) .apx-card-head h3:before{background:var(--apx-blue)}
.staff-route .apx-card:nth-child(6) .apx-card-head h3:before{background:var(--apx-purple)}
.staff-route .apx-appointment-row{background:#fffdf9!important;border-color:var(--apx-border)!important;color:var(--apx-text)!important}
.staff-route .apx-appointment-row:hover{background:#fff7ef!important;border-color:#e6b59f!important}
.staff-route .apx-time{color:#746e66!important}
.staff-route .apx-appt-line strong{color:var(--apx-text)!important}
.staff-route .apx-appt-line small{color:var(--apx-muted)!important}
.staff-route .apx-appt-line i{background:var(--apx-orange)!important}
.staff-route .apx-appt-price{color:#45423e!important}
.staff-route .apx-revenue-card .apx-bar{background:var(--apx-yellow)!important}
.staff-route .apx-revenue-card .apx-bar:last-child{background:var(--apx-orange)!important}
.staff-route input,.staff-route select,.staff-route textarea{background:#fffdf9!important;border-color:var(--apx-border)!important;color:var(--apx-text)!important}
.staff-route input::placeholder,.staff-route textarea::placeholder{color:#aaa197!important}
.staff-route .btn-dark{background:#2b2926!important;border-color:#2b2926!important;color:#fff!important}
.staff-route .btn-ghost{background:#fffdf9!important;border-color:var(--apx-border)!important;color:#4a4743!important}
.staff-route .btn-ghost:hover{background:#fff4ea!important;border-color:#e8b9a7!important;color:var(--apx-orange)!important}
.staff-route .status-pill.status-confirmed{background:var(--apx-green-soft)!important;color:#3e7950!important}
.staff-route .status-pill.status-completed{background:#e8f3ed!important;color:#39734d!important}
.staff-route .status-pill.status-cancelled,.staff-route .status-pill.status-no_show{background:#fae9e5!important;color:#a84b37!important}
.staff-route .status-pill.status-pending{background:var(--apx-yellow-soft)!important;color:#966d16!important}
.staff-route .apx-walkin{background:var(--apx-yellow-soft)!important;color:#8d6719!important;border:1px solid #eed79b!important;border-radius:10px!important;padding:10px 14px!important;font-weight:700!important}
.staff-route .apx-walkin:hover{background:#ffefc0!important}
.staff-route .apx-cal-event{border-left:4px solid var(--apx-orange)!important;background:#fff5ee!important;color:var(--apx-text)!important}
.staff-route .apx-cal-event.confirmed{border-left-color:var(--apx-green)!important;background:#edf7ef!important}
.staff-route .apx-cal-event.pending{border-left-color:var(--apx-yellow)!important;background:#fff8e4!important}
.staff-route .apx-cal-event.completed{border-left-color:var(--apx-teal)!important;background:#eaf6f8!important}
.staff-route .apx-slot:hover,.staff-route .apx-week-day:hover{background:#fff7ef!important}
.staff-route .apx-month-day.today,.staff-route .apx-week-head .today{background:#fff0e9!important;color:var(--apx-orange)!important}
.staff-route .apx-appointment-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 16px;padding:12px 14px;border:1px solid var(--apx-border);border-radius:12px;background:#fff8ef}
.staff-route .apx-editor-status{font-weight:800;text-transform:uppercase;font-size:11px;letter-spacing:.08em;color:#7c6e60!important}
.staff-route .apx-paid-badge{color:#3f8053!important}
.staff-route .apx-editor-checkout{margin-left:auto}
.staff-route .walkin-time-banner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-bottom:18px;padding:15px 18px;border-radius:14px;background:linear-gradient(100deg,#fff0e8,#fff8dc);border:1px solid #ecdcc6}
.staff-route .walkin-time-banner span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#8a7767}
.staff-route .walkin-time-banner strong{font-size:22px;color:#252321}
.staff-route .walkin-time-banner small{color:#8c837a}
.staff-route .walkin-customer-switch{display:flex!important;gap:8px;padding:4px;background:#f8f0e7;border:1px solid var(--apx-border);border-radius:12px}
.staff-route .walkin-customer-switch button{flex:1;border:0;background:transparent;padding:10px 14px;border-radius:9px;color:#6d655d;font-weight:700;cursor:pointer}
.staff-route .walkin-customer-switch button.active{background:#fffdf9;color:var(--apx-orange);box-shadow:0 2px 8px rgba(70,45,24,.07)}
.staff-route .walkin-results{display:grid;gap:6px;margin-top:8px;max-height:210px;overflow:auto}
.staff-route .walkin-results button{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--apx-border);border-radius:9px;background:#fffdf9;text-align:left;color:var(--apx-text);cursor:pointer}
.staff-route .walkin-results button:hover{border-color:#e2ae98;background:#fff5ee}
.staff-route .walkin-results small{color:var(--apx-muted)}
.staff-route .walkin-selected{display:flex;align-items:center;gap:12px;margin-top:8px;padding:11px 12px;border-radius:9px;background:#edf7ef;border:1px solid #d5e9da;color:#315d3e}
.staff-route .walkin-selected span{color:#6c7a70}
.staff-route .walkin-selected button{margin-left:auto;border:0;background:transparent;color:var(--apx-orange);font-weight:700;cursor:pointer}
.staff-route .apx-payment-method{background:#fffdf9!important;border-color:var(--apx-border)!important;color:var(--apx-text)!important}
.staff-route .apx-payment-method.active{background:var(--apx-orange-soft)!important;border-color:#e8a58e!important;box-shadow:inset 0 0 0 1px #e8a58e!important}
.staff-route .apx-payment-method:nth-child(1) .apx-pay-icon{background:var(--apx-orange)!important}
.staff-route .apx-payment-method:nth-child(2) .apx-pay-icon{background:var(--apx-blue)!important}
.staff-route .apx-payment-method:nth-child(3) .apx-pay-icon{background:var(--apx-green)!important}
.staff-route .apx-payment-method:nth-child(4) .apx-pay-icon{background:var(--apx-purple)!important}
.staff-route .apx-payment-method:nth-child(5) .apx-pay-icon{background:var(--apx-yellow)!important}
.staff-route .apx-complete-button{background:var(--apx-orange)!important;color:#fff!important;border-color:var(--apx-orange)!important;box-shadow:0 10px 24px rgba(217,101,67,.2)!important}
@media(max-width:760px){.staff-route .walkin-time-banner{grid-template-columns:1fr}.staff-route .apx-appointment-actions{align-items:stretch;flex-direction:column}.staff-route .apx-editor-checkout{width:100%}}

/* ============================================================
   APEX CALENDAR — 15 MINUTE CHAIR GRID
   One visual row = 15 minutes. Appointment cards span only their
   actual duration instead of occupying a full hour.
   ============================================================ */
.staff-route .apx-day-grid-15{grid-template-columns:62px repeat(auto-fit,minmax(220px,1fr))!important;min-width:760px!important}
.staff-route .apx-day-grid-15 .apx-time-col,.staff-route .apx-day-grid-15 .apx-staff-col{min-width:0!important}
.staff-route .apx-day-grid-15 .apx-corner{height:46px!important;display:flex;align-items:center;padding:0 9px;font-size:8px;font-weight:800;letter-spacing:.12em;color:#9b8d82;background:#fffaf5;border-bottom:1px solid #eadfd5}
.staff-route .apx-day-grid-15 .apx-time{height:52px!important;box-sizing:border-box!important;border-bottom:1px solid #f0e8e1!important;border-right:1px solid #eee4dc!important;background:#fffdfb!important;position:relative!important}
.staff-route .apx-day-grid-15 .apx-time span{position:absolute;right:9px;top:-7px;font-size:8px!important;font-weight:700;color:#9a8d83!important;background:#fffdfb;padding:0 2px}
.staff-route .apx-day-grid-15 .apx-staff-col>div{position:relative!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot{height:52px!important;box-sizing:border-box!important;padding:0!important;border-bottom:1px dashed #eee6df!important;border-right:1px solid #eee6df!important;background:#fff!important;position:relative!important;cursor:pointer!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot:hover{background:#fff8f1!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot::after{content:'+';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:13px;font-weight:500;color:#d9cec4;opacity:0;pointer-events:none}
.staff-route .apx-day-grid-15 .apx-quarter-slot:hover::after{opacity:1}
.staff-route .apx-event-wrap{position:absolute;left:5px;right:5px;top:3px;z-index:5;min-height:22px;pointer-events:none}
.staff-route .apx-event-wrap .apx-cal-event{width:100%;height:100%;min-height:22px!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;align-content:center;column-gap:7px;row-gap:1px;padding:5px 8px!important;border:1px solid #d9e6ef!important;border-left:4px solid #4f9fc2!important;border-radius:9px!important;background:#eef8fb!important;box-shadow:0 2px 7px rgba(73,92,104,.07)!important;text-align:left!important;overflow:hidden!important;pointer-events:auto!important;color:#24323b!important}
.staff-route .apx-event-wrap .apx-cal-event.confirmed{border-left-color:#e29b43!important;background:#fff7e9!important}
.staff-route .apx-event-wrap .apx-cal-event.completed{border-left-color:#5b946e!important;background:#eef7f0!important}
.staff-route .apx-event-wrap .apx-cal-event.cancelled{border-left-color:#d85b52!important;background:#fff1ef!important}
.staff-route .apx-event-wrap .apx-event-time{font-size:8px!important;font-weight:800!important;color:#8c7869!important;grid-row:1/3}
.staff-route .apx-event-wrap .apx-cal-event strong{font-size:9px!important;line-height:1.1!important;color:#253039!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-route .apx-event-wrap .apx-event-service{font-size:7px!important;color:#66747d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-route .apx-event-wrap .apx-event-meta{font-size:7px!important;color:#8b969d!important;white-space:nowrap;grid-column:3;grid-row:1/3}
@media(max-width:900px){.staff-route .apx-day-grid-15{grid-template-columns:55px repeat(auto-fit,minmax(190px,1fr))!important}.staff-route .apx-day-grid-15 .apx-time{height:48px!important}.staff-route .apx-day-grid-15 .apx-quarter-slot{height:48px!important}}

/* APEX: 15-minute appointment grid. Each calendar row is exactly 15 minutes. */
.staff-route .apx-day-grid-15{grid-template-columns:62px repeat(auto-fit,minmax(220px,1fr))!important;min-width:760px!important}
.staff-route .apx-day-grid-15 .apx-corner{height:46px!important;display:flex;align-items:center;padding:0 9px;font-size:8px;font-weight:800;letter-spacing:.12em;color:#9b8d82;background:#fffaf5;border-bottom:1px solid #eadfd5}
.staff-route .apx-day-grid-15 .apx-time{height:52px!important;box-sizing:border-box!important;border-bottom:1px solid #f0e8e1!important;border-right:1px solid #eee4dc!important;background:#fffdfb!important;position:relative!important}
.staff-route .apx-day-grid-15 .apx-time span{position:absolute;right:9px;top:-7px;font-size:8px!important;font-weight:700;color:#9a8d83!important;background:#fffdfb;padding:0 2px}
.staff-route .apx-day-grid-15 .apx-staff-col>div{position:relative!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot{height:52px!important;box-sizing:border-box!important;padding:0!important;border-bottom:1px dashed #eee6df!important;border-right:1px solid #eee6df!important;background:#fff!important;position:relative!important;cursor:pointer!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot:hover{background:#fff8f1!important}
.staff-route .apx-day-grid-15 .apx-quarter-slot::after{content:'+';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:13px;font-weight:500;color:#d9cec4;opacity:0;pointer-events:none}
.staff-route .apx-day-grid-15 .apx-quarter-slot:hover::after{opacity:1}
.staff-route .apx-event-wrap{position:absolute;left:5px;right:5px;top:3px;z-index:5;min-height:22px;pointer-events:none}
.staff-route .apx-event-wrap .apx-cal-event{width:100%;height:100%;min-height:22px!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;column-gap:7px;row-gap:1px;padding:5px 8px!important;border:1px solid #d9e6ef!important;border-left:4px solid #4f9fc2!important;border-radius:9px!important;background:#eef8fb!important;box-shadow:0 2px 7px rgba(73,92,104,.07)!important;text-align:left!important;overflow:hidden!important;pointer-events:auto!important;color:#24323b!important}
.staff-route .apx-event-wrap .apx-cal-event.confirmed{border-left-color:#e29b43!important;background:#fff7e9!important}
.staff-route .apx-event-wrap .apx-cal-event.completed{border-left-color:#5b946e!important;background:#eef7f0!important}
.staff-route .apx-event-wrap .apx-cal-event.cancelled{border-left-color:#d85b52!important;background:#fff1ef!important}
.staff-route .apx-event-wrap .apx-event-time{font-size:8px!important;font-weight:800!important;color:#8c7869!important;grid-row:1/3}
.staff-route .apx-event-wrap .apx-cal-event strong{font-size:9px!important;line-height:1.1!important;color:#253039!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-route .apx-event-wrap .apx-event-service{font-size:7px!important;color:#66747d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-route .apx-event-wrap .apx-event-meta{font-size:7px!important;color:#8b969d!important;white-space:nowrap;grid-column:3;grid-row:1/3}
@media(max-width:900px){.staff-route .apx-day-grid-15{grid-template-columns:55px repeat(auto-fit,minmax(190px,1fr))!important}.staff-route .apx-day-grid-15 .apx-time,.staff-route .apx-day-grid-15 .apx-quarter-slot{height:48px!important}}

/* ==========================================================
   APEX V19 — APPOINTMENTS WORKSPACE
   Match the approved warm calendar concept while keeping the
   existing booking/Supabase logic intact.
   ========================================================== */
.staff-route.apx-appointments-mode .os-pagebar,
.staff-route.apx-appointments-mode #stats{display:none!important}
.staff-route.apx-appointments-mode .os-main{padding:24px 26px 34px!important}
.staff-route.apx-appointments-mode .apx-calendar{max-width:none!important;margin:0!important;padding:0!important}
.staff-route.apx-appointments-mode .apx-calendar-card{border-radius:16px!important;border:1px solid #e8dfd5!important;background:#fffdf9!important;box-shadow:0 8px 28px rgba(71,48,31,.055)!important;overflow:hidden!important}
.staff-route.apx-appointments-mode .apx-cal-head{display:grid!important;grid-template-columns:minmax(260px,1fr) auto!important;gap:22px!important;align-items:end!important;padding:22px 24px 18px!important;background:#fffdf9!important;border-bottom:1px solid #eee5dc!important}
.staff-route.apx-appointments-mode .apx-cal-kicker{font-size:10px!important;font-weight:800!important;letter-spacing:.14em!important;color:#b4866d!important;margin-bottom:4px!important}
.staff-route.apx-appointments-mode .apx-cal-title h2{margin:0!important;font-size:28px!important;line-height:1.08!important;color:#1e252b!important;letter-spacing:-.02em!important}
.staff-route.apx-appointments-mode .apx-cal-sub{margin-top:6px!important;color:#8a8179!important;font-size:12px!important}
.staff-route.apx-appointments-mode .apx-cal-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
.staff-route.apx-appointments-mode .apx-nav{display:flex!important;align-items:center!important;gap:4px!important;padding:3px!important;border:1px solid #e6ddd4!important;border-radius:10px!important;background:#fff!important}
.staff-route.apx-appointments-mode .apx-icon-btn,.staff-route.apx-appointments-mode .apx-today{height:34px!important;border:0!important;background:transparent!important;color:#5b5550!important;border-radius:8px!important;padding:0 10px!important;cursor:pointer!important;font-weight:700!important}
.staff-route.apx-appointments-mode .apx-icon-btn{font-size:20px!important;padding:0 8px!important}
.staff-route.apx-appointments-mode .apx-today{border-left:1px solid #eee5dc!important;border-right:1px solid #eee5dc!important;font-size:11px!important}
.staff-route.apx-appointments-mode .apx-views{display:flex!important;gap:2px!important;padding:3px!important;border:1px solid #e6ddd4!important;border-radius:10px!important;background:#fff!important}
.staff-route.apx-appointments-mode .apx-view{border:0!important;background:transparent!important;color:#6f6861!important;border-radius:8px!important;padding:9px 13px!important;font-size:11px!important;font-weight:700!important;cursor:pointer!important}
.staff-route.apx-appointments-mode .apx-view.active{background:#df6948!important;color:#fff!important;box-shadow:0 4px 10px rgba(223,105,72,.18)!important}
.staff-route.apx-appointments-mode .apx-row-control{display:flex!important;align-items:center!important;gap:3px!important;padding:3px!important;border:1px solid #e6ddd4!important;border-radius:10px!important;background:#fff!important}
.staff-route.apx-appointments-mode .apx-row-control span{font-size:9px!important;font-weight:800!important;color:#9a8e84!important;text-transform:uppercase!important;letter-spacing:.08em!important;padding:0 7px 0 8px!important}
.staff-route.apx-appointments-mode .apx-row-control button{border:0!important;background:transparent!important;color:#6f6861!important;border-radius:7px!important;padding:8px 9px!important;font-size:10px!important;font-weight:700!important;cursor:pointer!important}
.staff-route.apx-appointments-mode .apx-row-control button.active{background:#fff0e8!important;color:#d35f40!important}
.staff-route.apx-appointments-mode .apx-walkin{background:#df6948!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 15px!important;font-weight:800!important;box-shadow:0 6px 14px rgba(223,105,72,.17)!important;cursor:pointer!important}
.staff-route.apx-appointments-mode .apx-new{display:none!important}
.staff-route.apx-appointments-mode .apx-cal-summary{padding:9px 18px!important;border-bottom:1px solid #eee5dc!important;background:#fffaf5!important;color:#847970!important;font-size:10px!important}
.staff-route.apx-appointments-mode .apx-scope{display:none!important}
.staff-route.apx-appointments-mode .apx-day-grid-15{grid-template-columns:76px repeat(auto-fit,minmax(220px,1fr))!important;min-width:900px!important;background:#fff!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-corner{height:54px!important;background:#fbf6ef!important;border-bottom:1px solid #e9dfd5!important;color:#a18e80!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-time{height:var(--apx-row-h,48px)!important;background:#fffdfb!important;border-bottom:1px solid #eee7df!important;border-right:1px solid #eee5dc!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-time span{top:-6px!important;right:8px!important;background:#fffdfb!important;color:#8d8177!important;font-size:9px!important;font-weight:700!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-staff-col>header{height:54px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 12px!important;background:#fff!important;border-bottom:1px solid #e9dfd5!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-staff-col>header .apx-avatar{width:31px!important;height:31px!important;border-radius:50%!important;background:#f8dfd2!important;color:#c65d3f!important;display:grid!important;place-items:center!important;font-size:11px!important;font-weight:800!important;flex:0 0 auto!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-staff-col>header strong{font-size:12px!important;color:#24303a!important;display:block!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-staff-col>header small{font-size:9px!important;color:#9a8e84!important;display:block!important;margin-top:2px!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-quarter-slot{height:var(--apx-row-h,48px)!important;background:#fff!important;border-bottom:1px solid #f0e9e2!important;border-right:1px solid #eee5dc!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-quarter-slot:hover{background:#fff8f2!important}
.staff-route.apx-appointments-mode .apx-day-grid-15 .apx-quarter-slot::after{content:'+'!important;color:#e0cfc1!important;font-size:14px!important}
.staff-route.apx-appointments-mode .apx-event-wrap{left:6px!important;right:6px!important;top:3px!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event{border:1px solid #d7e6ef!important;border-left:4px solid #4d98c8!important;border-radius:9px!important;background:#eef7fb!important;box-shadow:0 2px 8px rgba(61,77,89,.06)!important;padding:6px 8px!important;color:#26343d!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event.confirmed{border-left-color:#49b987!important;background:#edf8f2!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event.pending{border-left-color:#e4a82e!important;background:#fff7df!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event.completed{border-left-color:#8567a8!important;background:#f3eef8!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event.cancelled{border-left-color:#e35e58!important;background:#fff0ee!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-event-time{font-size:9px!important;color:#7d8a92!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-cal-event strong{font-size:10px!important;color:#26343d!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-event-service{font-size:8px!important;color:#687780!important}
.staff-route.apx-appointments-mode .apx-event-wrap .apx-event-meta{font-size:8px!important;color:#819098!important}
.staff-route.apx-appointments-mode .apx-cal-event:hover{transform:none!important;box-shadow:0 5px 14px rgba(61,77,89,.10)!important}

/* Walk-in/editor drawers: same visual language as the approved appointment screen. */
.staff-route.apx-appointments-mode .modal-shell{padding:0!important;place-items:stretch end!important}
.staff-route.apx-appointments-mode .modal-shell .modal-backdrop{position:absolute!important;inset:0!important}
.staff-route.apx-appointments-mode .modal-shell .modal-card{position:relative!important;height:100%!important;max-height:none!important;width:min(430px,94vw)!important;margin:0!important;border-radius:18px 0 0 18px!important;border:1px solid #e6ddd4!important;border-right:0!important;background:#fffdf9!important;box-shadow:-16px 0 40px rgba(60,42,29,.12)!important;overflow:auto!important;padding:0!important}
.staff-route.apx-appointments-mode .modal-shell .modal-head{padding:24px 24px 18px!important;background:#fffdf9!important;position:sticky!important;top:0!important;z-index:2!important}
.staff-route.apx-appointments-mode .modal-shell .walkin-time-banner{margin:0 24px 18px!important}
.staff-route.apx-appointments-mode .modal-shell #walkinForm{padding:0 24px 24px!important}
.staff-route.apx-appointments-mode .modal-shell .modal-close{position:absolute!important;right:18px!important;top:18px!important}
@media(max-width:900px){.staff-route.apx-appointments-mode .os-main{padding:14px 12px 24px!important}.staff-route.apx-appointments-mode .apx-cal-head{grid-template-columns:1fr!important}.staff-route.apx-appointments-mode .apx-cal-tools{justify-content:flex-start!important}.staff-route.apx-appointments-mode .apx-day-grid-15{grid-template-columns:64px repeat(auto-fit,minmax(205px,1fr))!important}}
@media(max-width:600px){.staff-route.apx-appointments-mode .apx-cal-head{padding:16px!important}.staff-route.apx-appointments-mode .apx-cal-title h2{font-size:23px!important}.staff-route.apx-appointments-mode .apx-cal-tools{display:grid!important;grid-template-columns:1fr 1fr!important}.staff-route.apx-appointments-mode .apx-row-control{grid-column:1/-1}.staff-route.apx-appointments-mode .apx-walkin{width:100%!important}.staff-route.apx-appointments-mode .modal-shell .modal-card{width:100%!important;border-radius:18px 18px 0 0!important}}

/* Marketing attribution */
.apx-marketing-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.apx-marketing-source{border:1px solid rgba(20,24,28,.08);border-radius:16px;padding:16px;background:rgba(255,255,255,.62);display:flex;flex-direction:column;gap:5px}.apx-marketing-source b{font-size:28px;line-height:1}.apx-marketing-source small{color:#70757b}.apx-marketing-status{display:grid;gap:10px;margin-top:14px}.apx-marketing-status>div{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid rgba(20,24,28,.08);border-radius:12px}.apx-marketing-status b{font-size:13px}.apx-marketing-status span{color:#70757b}@media(max-width:900px){.apx-marketing-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.apx-marketing-source-grid{grid-template-columns:1fr}}

.apx-marketing-links{display:grid;gap:10px;margin-top:14px}.apx-marketing-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(20,24,28,.08);border-radius:12px}.apx-marketing-link>div{min-width:0;display:grid;gap:3px}.apx-marketing-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#70757b;max-width:55vw}@media(max-width:700px){.apx-marketing-link{align-items:flex-start}.apx-marketing-link small{white-space:normal;word-break:break-all}}

/* ---------- Marketing OS v26: clean, spacious, icon-led ---------- */
.apx-marketing-page{display:grid;gap:14px}
.apx-marketing-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px!important;background:linear-gradient(135deg,#fffdf9 0%,#f8f3ec 100%)!important}
.apx-marketing-hero h3{margin:4px 0 7px;font-size:21px;letter-spacing:-.035em;max-width:720px}
.apx-marketing-hero p:not(.eyebrow){margin:0;color:var(--os-muted);font-size:10px;line-height:1.65;max-width:760px}
.apx-marketing-hero-badge{min-width:190px;padding:14px 16px;border:1px solid #e5dccf;border-radius:14px;background:#fff;display:grid;gap:3px}
.apx-marketing-hero-badge span{font-size:10px;color:#3e9c73}.apx-marketing-hero-badge b{font-size:10px}.apx-marketing-hero-badge small{font-size:8px;color:var(--os-muted)}
.apx-source-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;padding:0 17px 17px}
.apx-source-card{min-width:0;padding:15px 15px 14px;border:1px solid #e9e2d9;border-radius:13px;background:#fffdfb;display:grid;gap:4px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.apx-source-card:hover{transform:translateY(-1px);border-color:#d9c9b8;box-shadow:0 8px 20px rgba(45,35,25,.05)}
.apx-source-head{display:flex;align-items:center;gap:8px;min-width:0}.apx-source-head span{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#f4ede4;color:#85623a;font-size:12px;font-weight:800}.apx-source-head strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apx-source-card>b{font:800 26px/1 'Manrope',sans-serif;letter-spacing:-.06em;margin-top:5px}.apx-source-card small{font-size:8px;color:var(--os-muted)}.apx-source-card em{font-size:8px;font-style:normal;color:#4c4943;margin-top:2px}
.apx-social-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:0 17px 17px}
.apx-social-card{min-width:0;border:1px solid #e8e0d6;border-radius:14px;background:#fffdfb;padding:15px;display:grid;gap:13px}.apx-social-card.is-connected{border-color:#d9e6dd;background:#fcfffd}
.apx-social-card-top{display:flex;align-items:flex-start;gap:10px;min-width:0}.apx-social-card-title{min-width:0;display:grid;gap:3px;flex:1}.apx-social-card-title strong{font-size:12px}.apx-social-card-title small{font-size:8px;line-height:1.45;color:var(--os-muted)}
.apx-social-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;flex:none}.apx-social-icon svg{width:20px;height:20px}.apx-social-instagram{background:#f3e9e4;color:#a75f46}.apx-social-facebook{background:#e8eef7;color:#416ca5}.apx-social-tiktok{background:#e9eeeb;color:#26352e}
.apx-connection-pill{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:999px;border:1px solid #e3ddd4;background:#faf8f5;color:#77736b;font-size:7px;font-weight:800;white-space:nowrap}.apx-connection-pill i{width:5px;height:5px;border-radius:50%;background:#b9b2a8}.apx-connection-pill.is-connected{border-color:#d2e5d8;background:#f1faf4;color:#397553}.apx-connection-pill.is-connected i{background:#4b9c72}.apx-connection-pill.is-error{border-color:#ecd1ce;background:#fff4f2;color:#a7463f}.apx-connection-pill.is-error i{background:#c25750}
.apx-social-account{min-height:40px;padding:10px 11px;border:1px solid #eee7de;border-radius:10px;background:#fff;display:grid;gap:3px}.apx-social-account b{font-size:9px}.apx-social-account span{font-size:8px;color:var(--os-muted);line-height:1.45}.apx-social-card-actions{display:flex;gap:7px;flex-wrap:wrap}.apx-social-card-actions .btn{flex:1 1 auto;min-width:90px}
.apx-marketing-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.apx-marketing-two>.apx-card{min-width:0}
.apx-marketing-status{display:grid;gap:8px;padding:0 17px 17px}.apx-marketing-status>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border:1px solid #eee7de;border-radius:10px;background:#fff}.apx-marketing-status span{font-size:8px;color:var(--os-muted)}.apx-marketing-status b{font-size:8px;text-align:right;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apx-marketing-links{display:grid;gap:8px;padding:0 17px 17px}.apx-marketing-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #eee7de;border-radius:10px;background:#fff}.apx-marketing-link>div{min-width:0;display:grid;gap:3px}.apx-marketing-link strong{font-size:9px}.apx-marketing-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--os-muted);font-size:7px;max-width:38vw}.apx-marketing-link .btn{min-width:64px}
.apx-setup-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:22px;padding:18px!important}.apx-setup-card h3{margin:3px 0 7px;font-size:14px}.apx-setup-card p:not(.eyebrow){margin:0 0 11px;color:var(--os-muted);font-size:9px;line-height:1.55}.apx-setup-card code{display:block;overflow:auto;padding:10px 11px;border-radius:9px;background:#f5f1eb;border:1px solid #e8dfd4;color:#5d5144;font-size:7px;white-space:nowrap}.apx-setup-list{display:grid;gap:8px}.apx-setup-list>div{padding:10px 11px;border:1px solid #eee7de;border-radius:10px;background:#fff;display:grid;gap:3px}.apx-setup-list b{font-size:9px}.apx-setup-list span{font-size:8px;color:var(--os-muted);line-height:1.45}
.apx-social-message{display:none;margin:0 17px 17px;padding:10px 12px;border-radius:10px;border:1px solid #e8e0d6;background:#fbf8f4;color:#6d655d;font-size:8px;line-height:1.5}.apx-social-message:not(:empty){display:block}.apx-social-message.is-success{border-color:#d5e7db;background:#f3faf5;color:#397553}.apx-social-message.is-error{border-color:#ecd0cc;background:#fff5f3;color:#a7463f}
@media(max-width:1050px){.apx-source-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.apx-social-grid{grid-template-columns:1fr}.apx-setup-card{grid-template-columns:1fr}}
@media(max-width:720px){.apx-marketing-hero{display:grid}.apx-marketing-hero-badge{min-width:0}.apx-source-grid{grid-template-columns:1fr;padding:0 13px 13px}.apx-marketing-two{grid-template-columns:1fr}.apx-social-grid{padding:0 13px 13px}.apx-setup-card{padding:15px!important}.apx-marketing-link{align-items:flex-start}.apx-marketing-link small{white-space:normal;word-break:break-all;max-width:62vw}}

/* ============================================================
   APEX V27 — MOBILE / RESPONSIVE HARDENING
   Keeps the existing Apex dashboard/data intact. Wide calendar
   grids scroll inside their own viewport instead of pushing the
   whole page off-screen on phones.
   ============================================================ */
html,body.staff-route{max-width:100%;overflow-x:hidden!important}
.staff-route .staff-app,.staff-route .dashboard,.staff-route .os-layout,.staff-route .os-main,.staff-route #dashContent{min-width:0!important;max-width:100%!important}
.staff-route .os-main{overflow-x:hidden!important}
.staff-route .apx-calendar{width:100%!important;max-width:100%!important;min-width:0!important}
.staff-route .apx-calendar-card{width:100%!important;max-width:100%!important;min-width:0!important}
.staff-route .apx-calendar-scroll{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important}
.staff-route .apx-calendar-scroll>.apx-day-grid-15,.staff-route .apx-calendar-scroll>.apx-week{min-width:760px!important}
.staff-route .table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
.staff-route .dash-table{min-width:620px}
.staff-route .apx-checkout-page,.staff-route .apx-checkout-layout,.staff-route .apx-checkout-workspace,.staff-route .apx-checkout-order{min-width:0!important;max-width:100%!important}
.staff-route .apx-checkout-layout{width:100%!important}
.staff-route .apx-checkout-card,.staff-route .apx-order-card{min-width:0!important;max-width:100%!important}
.staff-route img{max-width:100%}

@media(max-width:760px){
  .staff-route .os-topbar{width:100%!important;box-sizing:border-box!important;position:sticky!important;top:0!important;z-index:100!important}
  .staff-route .os-top-actions{min-width:0!important;gap:5px!important}
  .staff-route .os-top-btn,.staff-route .os-account{white-space:nowrap!important}
  .staff-route .os-account em{display:none!important}
  .staff-route .os-sidebar{box-sizing:border-box!important;max-width:100vw!important;scrollbar-width:none!important}
  .staff-route .os-sidebar::-webkit-scrollbar{display:none}
  .staff-route .os-sidebar>.tab{flex:0 0 auto!important}
  .staff-route .os-more{flex:0 0 auto!important}
  .staff-route .os-more-toggle{box-sizing:border-box!important}
  .staff-route .os-main{box-sizing:border-box!important;width:100%!important;padding-left:12px!important;padding-right:12px!important}
  .staff-route .os-pagebar,.staff-route .stats{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .staff-route .os-pagebar h1{font-size:22px!important;overflow-wrap:anywhere!important}
  .staff-route .os-page-actions{width:100%!important;display:flex!important;gap:7px!important}
  .staff-route .os-page-actions>*{min-width:0!important}
  .staff-route .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .staff-route .stats .stat{min-width:0!important}
  .staff-route .apx-card,.staff-route .dash-panel{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .staff-route .apx-card-head,.staff-route .dash-toolbar,.staff-route .dash-panel-head{min-width:0!important}
  .staff-route .apx-card-head>*,.staff-route .dash-toolbar>*{min-width:0!important}
  .staff-route .apx-client-row,.staff-route .apx-appointment-row{max-width:100%!important;min-width:0!important}
  .staff-route .apx-checkout-top{min-width:0!important}
  .staff-route .apx-checkout-top-actions{flex-wrap:wrap!important}
  .staff-route .apx-checkout-top-actions>*{flex:1 1 140px!important;min-width:0!important}
}

@media(max-width:480px){
  .staff-route .os-topbar{height:58px!important}
  .staff-route .os-brand img{max-width:31px!important}
  .staff-route .os-top-actions .os-site{font-size:10px!important;padding-left:9px!important;padding-right:9px!important}
  .staff-route .os-top-actions .os-top-btn:not(.os-site){width:34px!important;padding:0!important}
  .staff-route .os-sidebar{top:58px!important}
  .staff-route .os-sidebar>.tab{min-width:82px!important}
  .staff-route .os-more-toggle{min-width:82px!important;width:82px!important}
  .staff-route .os-main{padding:14px 9px 24px!important}
  .staff-route .os-page-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .staff-route .stats{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .staff-route .stats .stat{padding:11px!important;min-height:78px!important}
  .staff-route .stats .stat b,.staff-route .stats .stat strong{font-size:19px!important}
  .staff-route .apx-calendar-scroll>.apx-day-grid-15{min-width:690px!important}
  .staff-route .apx-calendar-scroll>.apx-week{min-width:700px!important}
  .staff-route .apx-cal-head{padding:14px!important}
  .staff-route .apx-cal-title h2{font-size:21px!important}
  .staff-route .apx-cal-tools{width:100%!important;grid-template-columns:1fr 1fr!important}
  .staff-route .apx-nav,.staff-route .apx-views,.staff-route .apx-row-control,.staff-route .apx-walkin{min-width:0!important}
  .staff-route .apx-summary-card{grid-template-columns:1fr!important}
  .staff-route .apx-payment-methods{grid-template-columns:1fr 1fr!important}
  .staff-route .apx-form-grid-two{grid-template-columns:1fr!important}
  .staff-route .apx-checkout-layout{grid-template-columns:1fr!important}
}


/* ============================================================
   APEX V28 — PHONE NAV + TOUCH HARDENING
   The previous mobile rules used 5 grid columns for 6 direct
   navigation items and then forced 82px minimum widths. On
   common 320–430px phones that pushed labels out of the bar.
   ============================================================ */
@media (max-width: 760px){
  .staff-route .os-sidebar{
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:0!important;
    width:100%!important;
    height:74px!important;
    min-height:74px!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:2px!important;
    padding:5px 5px env(safe-area-inset-bottom,5px)!important;
    overflow:visible!important;
    z-index:1000!important;
  }
  .staff-route .os-sidebar>.tab,
  .staff-route .os-sidebar>.os-more{
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
  }
  .staff-route .os-sidebar>.tab{
    min-height:62px!important;
    height:62px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    color:#9b978f!important;
    border-radius:10px!important;
  }
  .staff-route .os-sidebar>.tab span{
    width:auto!important;
    min-width:20px!important;
    height:20px!important;
    display:grid!important;
    place-items:center!important;
    font-size:16px!important;
    line-height:20px!important;
    color:#a9a49b!important;
  }
  .staff-route .os-sidebar>.tab b{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    white-space:normal!important;
    text-align:center!important;
    font-size:9px!important;
    line-height:1.05!important;
    font-weight:800!important;
    letter-spacing:-.01em!important;
    color:inherit!important;
  }
  .staff-route .os-sidebar>.tab.active{
    background:#2c2a27!important;
    color:#fff!important;
  }
  .staff-route .os-sidebar>.tab.active span{color:#d5ad76!important}

  .staff-route .os-more{
    display:block!important;
    height:62px!important;
    margin:0!important;
  }
  .staff-route .os-more details{
    height:62px!important;
    width:100%!important;
  }
  .staff-route .os-more-toggle{
    width:100%!important;
    min-width:0!important;
    min-height:62px!important;
    height:62px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border-radius:10px!important;
    color:#9b978f!important;
  }
  .staff-route .os-more-toggle .more-icon{
    width:20px!important;
    height:20px!important;
    display:grid!important;
    place-items:center!important;
    font-size:16px!important;
    line-height:20px!important;
    color:#a9a49b!important;
  }
  .staff-route .os-more-toggle span:nth-child(2){
    display:block!important;
    width:100%!important;
    font-size:9px!important;
    line-height:1.05!important;
    font-weight:800!important;
    text-align:center!important;
    color:inherit!important;
  }
  .staff-route .os-more-toggle .more-chevron{display:none!important}
  .staff-route .os-more details[open] .os-more-toggle{background:#2c2a27!important;color:#fff!important}

  .staff-route .os-more-menu{
    left:8px!important;
    right:8px!important;
    bottom:82px!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(68svh,520px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:10px!important;
    gap:7px!important;
    border-radius:15px!important;
  }
  .staff-route .os-more-menu .tab{
    min-width:0!important;
    min-height:48px!important;
    width:100%!important;
    padding:0 9px!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:8px!important;
  }
  .staff-route .os-more-menu .tab b{
    width:auto!important;
    font-size:9px!important;
    white-space:nowrap!important;
    text-align:left!important;
  }

  .staff-route .os-main{padding-bottom:96px!important}
}

@media (max-width:360px){
  .staff-route .os-sidebar{height:72px!important;min-height:72px!important;padding-left:3px!important;padding-right:3px!important}
  .staff-route .os-sidebar>.tab,
  .staff-route .os-more,
  .staff-route .os-more details,
  .staff-route .os-more-toggle{height:60px!important;min-height:60px!important}
  .staff-route .os-sidebar>.tab b,
  .staff-route .os-more-toggle span:nth-child(2){font-size:8px!important}
  .staff-route .os-sidebar>.tab span,
  .staff-route .os-more-toggle .more-icon{font-size:15px!important}
}

/* Never let a modal inherit the calendar's desktop side-drawer width on a phone. */
@media (max-width:600px){
  .staff-route.apx-appointments-mode .modal-shell .modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:94svh!important;
    border-radius:18px 18px 0 0!important;
  }
  .staff-route .apx-appointment-actions .apx-editor-checkout{width:100%!important;min-height:46px!important}
}

/* ============================================================
   APEX V29 — RESPONSIVE APP SHELL / TOUCH HARDENING
   Mobile navigation and panels must behave like an app on narrow
   phones without changing the desktop information architecture.
   ============================================================ */
.staff-route,
.staff-route .staff-app,
.staff-route .dashboard,
.staff-route .os-layout,
.staff-route .os-main{
  max-width:100%;
  min-width:0;
}
.staff-route{overflow-x:hidden;overscroll-behavior-x:none}
.staff-route button,
.staff-route a,
.staff-route input,
.staff-route select,
.staff-route textarea{touch-action:manipulation}
.staff-route input,
.staff-route select,
.staff-route textarea{font-size:16px}
.staff-route img{height:auto;max-width:100%}

@media (max-width:760px){
  .staff-route .os-topbar{
    height:58px!important;
    min-height:58px!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
  }
  .staff-route .os-brand{min-width:0!important}
  .staff-route .os-brand img{width:31px!important;height:31px!important;object-fit:contain!important}
  .staff-route .os-top-actions{min-width:0!important;overflow:hidden!important}
  .staff-route .os-top-actions>*{flex:0 0 auto!important}
  .staff-route .os-main{
    width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    padding-left:max(9px,env(safe-area-inset-left))!important;
    padding-right:max(9px,env(safe-area-inset-right))!important;
    padding-bottom:calc(98px + env(safe-area-inset-bottom))!important;
  }

  /* Six equal bottom-nav slots: no hidden labels and no horizontal scroll. */
  .staff-route .os-sidebar{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100vw!important;
    box-sizing:border-box!important;
    padding-left:max(3px,env(safe-area-inset-left))!important;
    padding-right:max(3px,env(safe-area-inset-right))!important;
    padding-bottom:max(5px,env(safe-area-inset-bottom))!important;
    height:calc(74px + env(safe-area-inset-bottom))!important;
    min-height:calc(74px + env(safe-area-inset-bottom))!important;
  }
  .staff-route .os-sidebar>.tab,
  .staff-route .os-sidebar>.os-more{
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    overflow:hidden!important;
  }
  .staff-route .os-sidebar>.tab b,
  .staff-route .os-more-toggle span:nth-child(2){
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:clamp(8px,2.35vw,10px)!important;
    line-height:1.1!important;
  }
  .staff-route .os-sidebar>.tab span,
  .staff-route .os-more-toggle .more-icon{
    flex:0 0 auto!important;
  }

  /* More opens upward and remains inside the phone viewport. */
  .staff-route .os-more details{position:static!important}
  .staff-route .os-more-menu{
    position:fixed!important;
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 118px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    z-index:2000!important;
  }
  .staff-route .os-more-menu .tab{
    min-height:48px!important;
    height:auto!important;
  }

  /* Never allow dashboard cards/forms to create page-wide horizontal overflow. */
  .staff-route .apx-card,
  .staff-route .dash-panel,
  .staff-route .apx-checkout-card,
  .staff-route .apx-order-card,
  .staff-route .apx-order-note,
  .staff-route .modal-card,
  .staff-route .form-grid,
  .staff-route .dashboard-form{min-width:0!important;max-width:100%!important}
  .staff-route .apx-card-head,
  .staff-route .dash-panel-head,
  .staff-route .apx-card-title-row{min-width:0!important}
  .staff-route .apx-card-head>*,
  .staff-route .dash-panel-head>*{min-width:0!important;max-width:100%!important}

  /* Checkout: stack cleanly and keep the total/action reachable. */
  .staff-route .apx-checkout-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .staff-route .apx-checkout-workspace{min-width:0!important}
  .staff-route .apx-checkout-order{order:-1!important}
  .staff-route .apx-order-card{position:relative!important;top:auto!important}
  .staff-route .apx-checkout-top{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .staff-route .apx-checkout-top-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .staff-route .apx-checkout-top-actions>*{width:100%!important;min-width:0!important}
  .staff-route .apx-form-grid-two{grid-template-columns:minmax(0,1fr)!important}
  .staff-route .apx-payment-methods{grid-template-columns:1fr 1fr!important}
  .staff-route .apx-payment-method{min-width:0!important}
  .staff-route .apx-complete-button{min-height:52px!important;width:100%!important}

  /* Modals become bottom sheets instead of clipped desktop drawers. */
  .staff-route .modal-shell{padding:0!important;align-items:flex-end!important}
  .staff-route .modal-shell .modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 8px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    border-radius:18px 18px 0 0!important;
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:380px){
  .staff-route .os-sidebar{height:calc(70px + env(safe-area-inset-bottom))!important;min-height:calc(70px + env(safe-area-inset-bottom))!important}
  .staff-route .os-sidebar>.tab,
  .staff-route .os-more,
  .staff-route .os-more details,
  .staff-route .os-more-toggle{height:58px!important;min-height:58px!important}
  .staff-route .os-sidebar>.tab b,
  .staff-route .os-more-toggle span:nth-child(2){font-size:8px!important}
  .staff-route .os-sidebar>.tab span,
  .staff-route .os-more-toggle .more-icon{font-size:15px!important}
  .staff-route .apx-payment-methods{grid-template-columns:1fr!important}
  .staff-route .apx-checkout-top-actions{grid-template-columns:1fr!important}
}

@media (min-width:761px){
  .staff-route .os-main{min-width:0!important}
}


/* ============================================================
   APEX V30 — FINAL DEVICE-FIT / MOBILE APP SHELL
   This layer intentionally comes last so legacy responsive rules
   cannot hide navigation labels or force desktop-width calendars.
   ============================================================ */
.staff-route,
.staff-route .apex-os,
.staff-route .staff-app,
.staff-route .dashboard,
.staff-route .os-layout,
.staff-route .os-main,
.staff-route #dashContent{min-width:0!important;max-width:100%!important}
.staff-route{width:100%;overflow-x:hidden!important}
.staff-route *{box-sizing:border-box}
.staff-route button,.staff-route a{max-width:100%}
.staff-route h1,.staff-route h2,.staff-route h3,.staff-route h4,
.staff-route p,.staff-route strong,.staff-route b,.staff-route span,
.staff-route label{overflow-wrap:anywhere}

/* Desktop / laptop: use the available viewport, never create a page-wide x-scroll. */
@media (min-width:761px){
  .staff-route .os-layout{grid-template-columns:minmax(190px,222px) minmax(0,1fr)!important}
  .staff-route .os-main{width:100%!important;max-width:none!important;overflow-x:hidden!important}
  .staff-route .os-pagebar{min-width:0!important}
  .staff-route .stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .staff-route .dash-panel,.staff-route .apx-card,.staff-route .apx-checkout-card,.staff-route .apx-order-card{min-width:0!important;max-width:100%!important}
  .staff-route .apx-calendar-scroll{max-width:100%!important}
}

@media (max-width:760px){
  /* No page-level horizontal scrolling on any phone. */
  html.staff-route,body.staff-route,.staff-route .apex-os,.staff-route .staff-app,
  .staff-route .os-layout,.staff-route .os-main,#dashContent{
    width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;
  }
  .staff-route .os-layout{display:block!important;min-height:calc(100svh - 58px)!important}
  .staff-route .os-topbar{height:58px!important;min-height:58px!important;width:100%!important;padding:0 10px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
  .staff-route .os-brand{min-width:0!important;overflow:hidden!important}
  .staff-route .os-brand div{display:none!important}
  .staff-route .os-brand img{width:31px!important;height:31px!important}
  .staff-route .os-global-search{display:none!important}
  .staff-route .os-top-actions{min-width:0!important;gap:5px!important;overflow:hidden!important}
  .staff-route .os-top-actions>*{min-width:0!important;flex:0 0 auto!important}
  .staff-route .os-site{max-width:78px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .staff-route .os-account{padding:0 7px!important}
  .staff-route .os-account em{display:none!important}

  /* Six equal navigation slots. Labels are allowed to wrap to two lines. */
  .staff-route .os-sidebar{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
    width:100%!important;max-width:100vw!important;height:calc(70px + env(safe-area-inset-bottom))!important;
    min-height:calc(70px + env(safe-area-inset-bottom))!important;
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:1px!important;
    padding:4px max(3px,env(safe-area-inset-left)) max(4px,env(safe-area-inset-bottom)) max(3px,env(safe-area-inset-right))!important;
    background:#fffdf9!important;border-top:1px solid #e8ddd2!important;border-right:0!important;
    overflow:visible!important;z-index:3000!important;
  }
  .staff-route .os-shop-switch,.staff-route .os-nav-section,.staff-route .os-home-link{display:none!important}
  .staff-route .os-sidebar>.tab,.staff-route .os-sidebar>.os-more{
    width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;overflow:visible!important;
  }
  .staff-route .os-sidebar>.tab{
    height:61px!important;min-height:61px!important;padding:4px 1px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;border:0!important;border-radius:9px!important;text-align:center!important;color:#756b62!important;
  }
  .staff-route .os-sidebar>.tab span{
    display:grid!important;place-items:center!important;width:19px!important;height:19px!important;
    min-width:19px!important;font-size:15px!important;line-height:19px!important;background:#f4eee7!important;
    border-radius:6px!important;color:#766b61!important;
  }
  .staff-route .os-sidebar>.tab b{
    display:block!important;width:100%!important;max-width:100%!important;height:21px!important;
    overflow:hidden!important;text-overflow:clip!important;white-space:normal!important;
    text-align:center!important;font-size:clamp(7.5px,2.25vw,9px)!important;line-height:1.05!important;
    font-weight:800!important;letter-spacing:-.01em!important;color:inherit!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  }
  .staff-route .os-sidebar>.tab.active{background:#fff0e8!important;color:#c85537!important;box-shadow:inset 0 2px 0 #df6948!important}
  .staff-route .os-sidebar>.tab.active span{background:#f8d9c9!important;color:#cf593a!important}

  /* More is a real sixth navigation item. Do not let the hidden desktop
     MANAGE heading consume its slot or clip the summary/menu. */
  .staff-route .os-more{display:block!important;position:relative!important;height:61px!important;min-height:61px!important;overflow:visible!important}
  .staff-route .os-more>.os-nav-section{display:none!important}
  .staff-route .os-more details{display:block!important;position:static!important;width:100%!important;height:61px!important;overflow:visible!important}
  .staff-route .os-more-toggle{
    width:100%!important;min-width:0!important;height:61px!important;min-height:61px!important;padding:4px 1px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;border-radius:9px!important;color:#756b62!important;text-align:center!important;
  }
  .staff-route .os-more-toggle .more-icon{
    width:19px!important;height:19px!important;display:grid!important;place-items:center!important;
    font-size:15px!important;line-height:19px!important;background:#f4eee7!important;border-radius:6px!important;color:#766b61!important;
  }
  .staff-route .os-more-toggle span:nth-child(2){
    display:block!important;width:100%!important;height:21px!important;overflow:hidden!important;
    white-space:normal!important;text-align:center!important;font-size:clamp(7.5px,2.25vw,9px)!important;
    line-height:1.05!important;font-weight:800!important;color:inherit!important;
  }
  .staff-route .os-more-toggle .more-chevron{display:none!important}
  .staff-route .os-more details[open] .os-more-toggle{background:#fff0e8!important;color:#c85537!important}
  .staff-route .os-more details[open] .more-icon{background:#f8d9c9!important;color:#cf593a!important}

  /* More menu: two columns, readable text, fully inside the viewport. */
  .staff-route .os-more-menu{
    position:fixed!important;left:8px!important;right:8px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;
    width:auto!important;max-width:none!important;max-height:min(72dvh,560px)!important;overflow:auto!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    padding:10px!important;background:#fffdf9!important;border:1px solid #e8ddd2!important;border-radius:16px!important;
    box-shadow:0 18px 50px rgba(48,34,24,.18)!important;z-index:4000!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  }
  .staff-route .os-more-menu:before{content:'MANAGE';grid-column:1/-1!important;padding:2px 3px 3px!important;color:#9a8e84!important;font-size:8px!important;font-weight:800!important;letter-spacing:1.3px!important}
  .staff-route .os-more-menu .tab{
    width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;padding:0 9px!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
    border:1px solid #eee5dc!important;border-radius:10px!important;background:#fff8f1!important;color:#665d54!important;
  }
  .staff-route .os-more-menu .tab span{display:grid!important;place-items:center!important;width:20px!important;height:20px!important;flex:0 0 20px!important;font-size:13px!important;color:#9a774c!important}
  .staff-route .os-more-menu .tab b{display:block!important;width:auto!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:1.1!important;color:inherit!important}

  .staff-route .os-main{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;padding:14px max(9px,env(safe-area-inset-left)) calc(92px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-right))!important}
  .staff-route .os-pagebar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;min-width:0!important}
  .staff-route .os-pagebar h1{font-size:clamp(21px,6vw,28px)!important;line-height:1.05!important}
  .staff-route .os-page-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .staff-route .os-page-actions>*{width:100%!important;min-width:0!important}
  .staff-route .stats{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .staff-route .stats .stat{min-width:0!important;width:100%!important;padding:11px!important}
  .staff-route .stats .stat b{font-size:clamp(18px,5.5vw,23px)!important}
  .staff-route .dash-panel,.staff-route .apx-card,.staff-route .apx-checkout-card,.staff-route .apx-order-card{width:100%!important;min-width:0!important;max-width:100%!important}
  .staff-route .dash-panel-head,.staff-route .apx-card-head,.staff-route .apx-card-title-row{min-width:0!important;flex-wrap:wrap!important}

  /* Appointment page: mobile agenda replaces the desktop multi-column timeline.
     This removes horizontal scrolling while retaining all appointment actions. */
  .staff-route.apx-appointments-mode .apx-calendar-scroll{overflow:visible!important;width:100%!important;max-width:100%!important}
  .staff-route.apx-appointments-mode .apx-calendar-scroll>.apx-day-grid-15{display:none!important}
  .staff-route.apx-appointments-mode .apx-calendar-scroll>.apx-mobile-agenda{display:grid!important;width:100%!important;gap:10px!important}
  .staff-route .apx-mobile-agenda{min-width:0!important;max-width:100%!important}
  .staff-route .apx-mobile-barber{min-width:0!important;width:100%!important;border:1px solid #e8dfd5!important;border-radius:14px!important;background:#fffdf9!important;overflow:hidden!important}
  .staff-route .apx-mobile-barber-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:12px 13px!important;border-bottom:1px solid #eee5dc!important;background:#fffaf5!important}
  .staff-route .apx-mobile-barber-head>div{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important}
  .staff-route .apx-mobile-barber-head strong{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .staff-route .apx-mobile-barber-head small{font-size:9px!important;color:#9a8e84!important}
  .staff-route .apx-mobile-add{border:1px solid #ead6ca!important;background:#fff!important;color:#c85537!important;border-radius:8px!important;padding:7px 9px!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important}
  .staff-route .apx-mobile-list{display:grid!important;gap:7px!important;padding:8px!important}
  .staff-route .apx-mobile-empty{padding:10px!important;border:1px dashed #eadfd5!important;border-radius:9px!important;color:#9a8e84!important;font-size:10px!important;text-align:center!important}
  .staff-route .apx-mobile-event{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;padding:10px!important;border:1px solid #e6ddd4!important;border-left:4px solid #4d98c8!important;border-radius:10px!important;background:#eef7fb!important;color:#26343d!important;text-align:left!important}
  .staff-route .apx-mobile-event.confirmed{border-left-color:#49b987!important;background:#edf8f2!important}
  .staff-route .apx-mobile-event.pending{border-left-color:#e4a82e!important;background:#fff7df!important}
  .staff-route .apx-mobile-event.completed{border-left-color:#8567a8!important;background:#f3eef8!important}
  .staff-route .apx-mobile-event.cancelled{border-left-color:#e35e58!important;background:#fff0ee!important}
  .staff-route .apx-mobile-event .time{font-size:10px!important;font-weight:800!important;color:#6d7880!important}
  .staff-route .apx-mobile-event .main{min-width:0!important;display:grid!important;gap:2px!important}
  .staff-route .apx-mobile-event .main strong{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .staff-route .apx-mobile-event .main span{font-size:9px!important;color:#687780!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .staff-route .apx-mobile-event .price{font-size:10px!important;font-weight:800!important;white-space:nowrap!important}

  /* Week/month views: fit the viewport rather than forcing a desktop-width canvas. */
  .staff-route.apx-appointments-mode .apx-week{min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  .staff-route.apx-appointments-mode .apx-week-head,.staff-route.apx-appointments-mode .apx-week-body{grid-template-columns:42px repeat(7,minmax(0,1fr))!important;min-width:0!important;width:100%!important}
  .staff-route.apx-appointments-mode .apx-week-head>div{min-width:0!important;padding:5px 2px!important;overflow:hidden!important}
  .staff-route.apx-appointments-mode .apx-week-head span{font-size:7px!important}
  .staff-route.apx-appointments-mode .apx-week-head strong{font-size:11px!important}
  .staff-route.apx-appointments-mode .apx-week-day{min-width:0!important;overflow:hidden!important;padding:3px!important}
  .staff-route.apx-appointments-mode .apx-mini-event{max-width:100%!important;overflow:hidden!important}

  .staff-route .table-wrap{max-width:100%!important;overflow-x:hidden!important}
  .staff-route .dash-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  .staff-route .dash-table th,.staff-route .dash-table td{white-space:normal!important;overflow-wrap:anywhere!important;font-size:9px!important}

  .staff-route .apx-checkout-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .staff-route .apx-checkout-workspace,.staff-route .apx-checkout-order{min-width:0!important;width:100%!important}
  .staff-route .apx-checkout-order{order:-1!important}
  .staff-route .apx-form-grid-two{grid-template-columns:minmax(0,1fr)!important}
  .staff-route .apx-payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .staff-route .apx-payment-method{min-width:0!important}
  .staff-route .apx-checkout-top{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .staff-route .apx-checkout-top-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:7px!important}
  .staff-route .apx-checkout-top-actions>*{min-width:0!important;width:100%!important}
  .staff-route .apx-complete-button{width:100%!important;min-height:52px!important}

  .staff-route .modal-shell{padding:0!important;align-items:flex-end!important}
  .staff-route .modal-shell .modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 6px)!important;overflow:auto!important;border-radius:18px 18px 0 0!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
}

@media (max-width:380px){
  .staff-route .os-sidebar{height:calc(68px + env(safe-area-inset-bottom))!important;min-height:calc(68px + env(safe-area-inset-bottom))!important}
  .staff-route .os-sidebar>.tab,.staff-route .os-more,.staff-route .os-more details,.staff-route .os-more-toggle{height:59px!important;min-height:59px!important}
  .staff-route .os-sidebar>.tab b,.staff-route .os-more-toggle span:nth-child(2){font-size:7.5px!important}
  .staff-route .os-sidebar>.tab span,.staff-route .os-more-toggle .more-icon{font-size:14px!important}
  .staff-route .os-main{padding-left:7px!important;padding-right:7px!important}
  .staff-route .stats{gap:5px!important}
  .staff-route .apx-mobile-event{grid-template-columns:49px minmax(0,1fr) auto!important;gap:6px!important;padding:8px!important}
  .staff-route .apx-mobile-event .main strong{font-size:10px!important}
  .staff-route .apx-mobile-event .main span{font-size:8px!important}
}

/* ============================================================
   APEX V31 — HARD RESPONSIVE PASS
   Final override: no clipped labels, no page x-scroll, tablet-safe.
   ============================================================ */
html.staff-route, body.staff-route { width:100%; max-width:100%; overflow-x:hidden!important; }
.staff-route .dashboard, .staff-route .apex-os, .staff-route .staff-app,
.staff-route .os-layout, .staff-route .os-main, .staff-route #dashContent,
.staff-route .apx-dashboard-grid, .staff-route .apx-checkout-layout,
.staff-route .apx-checkout-workspace, .staff-route .apx-checkout-order,
.staff-route .dash-panel, .staff-route .apx-card,
.staff-route .apx-checkout-card, .staff-route .apx-order-card { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
.staff-route img, .staff-route svg, .staff-route canvas, .staff-route video { max-width:100%; }
.staff-route button, .staff-route a, .staff-route input, .staff-route select, .staff-route textarea { box-sizing:border-box!important; }
.staff-route button, .staff-route a { overflow-wrap:anywhere; }

/* More: labels must remain readable; never hide their text behind ellipsis. */
.staff-route .os-more-menu .tab b { 
  white-space:normal!important; overflow:visible!important; text-overflow:clip!important;
  overflow-wrap:anywhere!important; word-break:normal!important; line-height:1.15!important;
}

/* Tablet / iPad: use a real two-dimensional layout, not a shrunken desktop canvas. */
@media (min-width:761px) and (max-width:1100px){
  .staff-route .os-topbar{
    height:68px!important; padding:0 18px!important; gap:14px!important;
    grid-template-columns:190px minmax(0,1fr) auto!important;
  }
  .staff-route .os-layout{grid-template-columns:205px minmax(0,1fr)!important; min-height:calc(100svh - 68px)!important;}
  .staff-route .os-sidebar{top:68px!important;height:calc(100svh - 68px)!important;padding:14px 10px!important;}
  .staff-route .os-main{padding:22px 18px 40px!important;overflow-x:hidden!important;}
  .staff-route .os-pagebar{align-items:flex-start!important;gap:14px!important;}
  .staff-route .os-pagebar h1{font-size:27px!important;}
  .staff-route .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .staff-route .apx-dashboard-grid{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-checkout-layout{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-checkout-order{position:static!important;order:-1!important;}
  .staff-route .apx-payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .staff-route .table-wrap{overflow-x:auto!important;max-width:100%!important;}
  .staff-route .dash-table{min-width:620px!important;table-layout:auto!important;}
}

/* Phone: one-column content, fixed bottom nav, safe-area aware. */
@media (max-width:760px){
  .staff-route .os-pagebar h1,.staff-route .os-pagebar p,
  .staff-route .dash-panel-head,.staff-route .apx-card-head,
  .staff-route .apx-card-title-row { min-width:0!important; max-width:100%!important; }
  .staff-route .os-page-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .staff-route .os-page-actions button{min-width:0!important; white-space:normal!important; line-height:1.15!important; padding-inline:8px!important;}
  .staff-route .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .staff-route .stats .stat{overflow:hidden!important;}
  .staff-route .apx-dashboard-grid,.staff-route .os-grid-main,.staff-route .os-grid-three{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-appointment-row,.staff-route .os-appointment-card{grid-template-columns:48px minmax(0,1fr) auto!important;gap:7px!important;}
  .staff-route .apx-appointment-row > *, .staff-route .os-appointment-card > *{min-width:0!important;}
  .staff-route .apx-appt-line strong,.staff-route .apx-appt-line small,
  .staff-route .os-appt-main strong,.staff-route .os-appt-main span{overflow-wrap:anywhere!important;}
  .staff-route .apx-summary-card{grid-template-columns:1fr 1fr!important;}
  .staff-route .apx-summary-item{min-width:0!important;padding:12px!important;}
  .staff-route .apx-payment-method{grid-template-columns:30px minmax(0,1fr) 14px!important;}
  .staff-route .apx-payment-method strong,.staff-route .apx-payment-method span{min-width:0!important;overflow-wrap:anywhere!important;}
  .staff-route .apx-customer-search{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-customer-search .btn{width:100%!important;}
  .staff-route .apx-toggle-row{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-cash-row{grid-template-columns:minmax(0,1fr)!important;}
  .staff-route .apx-order-item{grid-template-columns:30px minmax(0,1fr) auto!important;}
  .staff-route .apx-order-item > *{min-width:0!important;}
  .staff-route .apx-order-item strong,.staff-route .apx-order-item span{white-space:normal!important;overflow-wrap:anywhere!important;}
  .staff-route .modal-shell .modal-card{width:100%!important;max-width:100%!important;}
}

/* Small phones: don't force two side-by-side controls when they become cramped. */
@media (max-width:390px){
  .staff-route .os-page-actions{grid-template-columns:1fr!important;}
  .staff-route .apx-payment-methods{grid-template-columns:1fr!important;}
  .staff-route .apx-summary-card{grid-template-columns:1fr!important;}
  .staff-route .apx-summary-item{border-right:0!important;border-bottom:1px solid #eef1f4!important;}
  .staff-route .apx-summary-item:last-child{border-bottom:0!important;}
  .staff-route .os-top-actions .os-site{max-width:58px!important;font-size:8px!important;padding-inline:7px!important;}
}

/* Extra-wide labels in More get their own full-width row when needed. */
@media (max-width:360px){
  .staff-route .os-more-menu{grid-template-columns:1fr!important;}
  .staff-route .os-more-menu .tab{height:auto!important;min-height:46px!important;padding:9px 10px!important;}
  .staff-route .os-more-menu .tab b{font-size:9px!important;}
}

/* ============================================================
   APEX OS V32 — CLEAN OPERATIONS LAYER
   Calendar-first, touch-friendly, responsive at every width.
   ============================================================ */
.staff-route .os-main{min-width:0}
.staff-route .os-layout{min-width:0}
.staff-route .os-pagebar{gap:18px}
.staff-route .apx-calendar-card{overflow:hidden}
.staff-route .apx-cal-head{align-items:flex-start}
.staff-route .apx-cal-tools{flex-wrap:wrap;justify-content:flex-end}
.staff-route .apx-secondary-action{height:38px;padding:0 13px;border:1px solid var(--os-line);background:var(--os-paper);color:var(--os-ink);border-radius:9px;font-weight:700;font-size:11px}
.staff-route .apx-secondary-action:hover{background:#f0ece5}
.staff-route .apx-slot{position:relative;overflow:visible}
.staff-route .apx-slot.is-blocked{background:linear-gradient(135deg,rgba(184,137,76,.08),rgba(184,137,76,.025));}
.staff-route .apx-grid-block{position:absolute;inset:2px 5px;z-index:3;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:7px 9px;border:1px solid rgba(184,137,76,.28);border-radius:8px;background:rgba(247,239,226,.96);color:#55422c;text-align:left;overflow:hidden}
.staff-route .apx-grid-block strong{font-size:10px;line-height:1.1}
.staff-route .apx-grid-block span{font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.staff-route .apx-time-block{display:flex;align-items:center;gap:9px;width:100%;padding:10px 11px;border:1px solid rgba(184,137,76,.24);background:#faf3e8;color:#55422c;text-align:left;border-radius:9px}
.staff-route .apx-time-block .time{font-weight:800;min-width:58px;font-size:10px}
.staff-route .apx-time-block .main{display:grid;gap:2px;min-width:0;flex:1}
.staff-route .apx-time-block .main strong{font-size:11px}.staff-route .apx-time-block .main span{font-size:9px;color:#766552}
.staff-route .apx-time-block .price{font-size:8px;letter-spacing:.7px;font-weight:800;color:#9a713e}
.staff-route .apx-time-block-break{background:#faf3e8}.staff-route .apx-time-block-away,.staff-route .apx-time-block-left{background:#f3f0ea}.staff-route .apx-time-block-sick{background:#f5ecec;border-color:#ead2d0}.staff-route .apx-time-block-personal{background:#eeeef4;border-color:#dcdce8}.staff-route .apx-time-block-other{background:#f1f2f2;border-color:#dfe1df}
.staff-route .apx-week-block{display:grid;gap:2px;width:calc(100% - 8px);margin:4px;border:1px solid rgba(184,137,76,.25);border-radius:8px;background:#faf3e8;color:#55422c;padding:7px;text-align:left}
.staff-route .apx-week-block b{font-size:8px}.staff-route .apx-week-block span{font-size:9px;font-weight:700}.staff-route .apx-week-block small{font-size:8px;color:#766552;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-route .apx-mini-block{display:flex;justify-content:space-between;gap:6px;width:100%;padding:4px 5px;border:0;border-radius:5px;background:#faf3e8;color:#6c5538;font-size:8px;text-align:left}
.staff-route .apx-mini-block span{font-weight:700}
.staff-route .apx-quick-add,.staff-route .apx-time-block-modal{width:min(560px,calc(100vw - 28px))}
.staff-route .apx-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:6px}
.staff-route .apx-quick-actions button{min-height:112px;border:1px solid var(--os-line);background:var(--os-paper);border-radius:12px;padding:16px;text-align:left;display:grid;align-content:center;gap:7px;color:var(--os-ink)}
.staff-route .apx-quick-actions button:hover{border-color:#cbbda9;transform:translateY(-1px)}
.staff-route .apx-quick-actions strong{font:800 14px/1.15 'Manrope',sans-serif}.staff-route .apx-quick-actions span{font-size:10px;line-height:1.4;color:var(--os-muted)}
.staff-route .block-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #e5ddcf;border-radius:10px;background:#faf7f1}
.staff-route .block-preview span{font-size:10px;color:var(--os-muted)}.staff-route .block-preview strong{font-size:10px;color:#76582f}
.staff-route .danger-outline{color:#a7463f!important;border-color:#e3c5c2!important}
.staff-route .modal-card{max-width:calc(100vw - 20px)}

@media (max-width:1100px){
  .staff-route .os-topbar{grid-template-columns:190px minmax(180px,1fr) auto;gap:12px;padding:0 14px}
  .staff-route .os-sidebar{width:188px}
  .staff-route .os-pagebar{flex-direction:column;align-items:stretch}
  .staff-route .os-page-actions{justify-content:flex-start}
  .staff-route .apx-cal-head{flex-direction:column}
  .staff-route .apx-cal-tools{width:100%;justify-content:flex-start}
}
@media (max-width:760px){
  .staff-route{overflow-x:hidden}
  .staff-route .os-topbar{height:58px;grid-template-columns:auto 1fr auto;padding:0 10px;gap:8px}
  .staff-route .os-brand div{display:none}.staff-route .os-brand img{width:30px;height:30px}
  .staff-route .os-global-search{height:34px}.staff-route .os-global-search kbd{display:none}.staff-route .os-global-search input{font-size:10px}
  .staff-route .os-top-btn.os-site{display:none}.staff-route .os-account{padding:0 8px}.staff-route .os-account em{display:none}
  .staff-route .os-layout{display:block}
  .staff-route .os-sidebar{position:sticky;top:58px;z-index:70;width:100%;height:auto;display:flex;gap:6px;overflow-x:auto;padding:7px 9px;background:#fff;border-bottom:1px solid var(--os-line);box-shadow:0 5px 16px rgba(25,22,17,.06)}
  .staff-route .os-shop-switch,.staff-route .os-nav-section,.staff-route .os-home-link,.staff-route .os-more{display:none}
  .staff-route .os-sidebar>.tab{flex:0 0 auto;min-width:82px;height:38px;padding:0 10px;border-radius:9px;justify-content:center}.staff-route .os-sidebar>.tab b{font-size:9px}.staff-route .os-sidebar>.tab span{display:none}
  .staff-route .os-main{padding:12px 10px 28px}
  .staff-route .os-pagebar h1{font-size:23px}.staff-route .os-page-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.staff-route .os-page-actions button{width:100%}
  .staff-route .apx-cal-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}.staff-route .apx-nav{grid-column:1/-1;justify-content:space-between}.staff-route .apx-views{width:100%}.staff-route .apx-views button{flex:1}.staff-route .apx-row-control{width:100%;overflow:auto}.staff-route .apx-row-control span{display:none}.staff-route .apx-secondary-action,.staff-route .apx-walkin{width:100%}
  .staff-route .apx-cal-title h2{font-size:21px}.staff-route .apx-cal-summary{flex-wrap:wrap;gap:8px}.staff-route .apx-summary-spacer{display:none}
  .staff-route .apx-calendar-scroll{overflow-x:hidden}
  .staff-route .apx-quick-actions{grid-template-columns:1fr}.staff-route .apx-quick-actions button{min-height:72px}
  .staff-route .apx-time-block-modal{width:calc(100vw - 18px)}
  .staff-route .apx-time-block-modal .form-grid{grid-template-columns:1fr 1fr}.staff-route .apx-time-block-modal .form-grid .full{grid-column:1/-1}
  .staff-route .apx-time-block-modal .editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.staff-route .apx-time-block-modal .editor-actions .btn{width:100%}
}
@media (max-width:430px){
  .staff-route .os-main{padding-left:7px;padding-right:7px}.staff-route .os-topbar{padding-left:7px;padding-right:7px}
  .staff-route .os-sidebar{padding-left:6px;padding-right:6px}.staff-route .os-sidebar>.tab{min-width:74px}
  .staff-route .apx-time-block-modal .form-grid{grid-template-columns:1fr}
  .staff-route .apx-time-block-modal .form-grid .full{grid-column:auto}
  .staff-route .apx-time-block-modal .editor-actions{grid-template-columns:1fr}
}

/* Light professional shell — cleaner than the earlier dark admin treatment. */
.staff-route{
  --os-bg:#f5f4f1;
  --os-paper:#faf9f7;
  --os-panel:#ffffff;
  --os-ink:#171716;
  --os-muted:#74716b;
  --os-line:#e5e2dc;
  --os-dark:#ffffff;
  --os-dark-2:#f7f6f3;
  --os-dark-line:#e7e4de;
  --os-gold:#9c7440;
}
.staff-route .os-topbar{background:#fff;color:var(--os-ink);border-bottom:1px solid var(--os-line);box-shadow:0 1px 0 rgba(0,0,0,.02)}
.staff-route .os-brand b{color:#171716}.staff-route .os-brand span{color:#9a958d}
.staff-route .os-global-search{background:#f7f6f3;border-color:#e4e0d8;color:#777}.staff-route .os-global-search>span{color:#8d8981}.staff-route .os-global-search input{color:#222}.staff-route .os-global-search input::placeholder{color:#96918a}.staff-route .os-global-search kbd{color:#888;border-color:#ddd8d0}
.staff-route .os-top-btn,.staff-route .os-account{background:#fff;color:#4e4b46;border-color:#e3dfd8}.staff-route .os-top-btn:hover,.staff-route .os-account:hover{background:#f6f4f0}
.staff-route .os-sidebar{background:#fbfaf8;border-right:1px solid var(--os-line)}
.staff-route .os-shop-switch{background:#f4f2ee;border-color:#e5e0d7}
.staff-route .os-sidebar .tab{color:#68645e}.staff-route .os-sidebar .tab:hover{background:#f2f0ec;color:#171716}.staff-route .os-sidebar .tab.active{background:#ece7df;color:#171716;box-shadow:inset 3px 0 0 var(--os-gold)}
.staff-route .os-home-link{border-color:#e2ded6;color:#69655f}.staff-route .os-home-link:hover{background:#f3f0eb;color:#171716}
.staff-route .os-main{background:var(--os-bg)}
.staff-route .os-pagebar h1,.staff-route .apx-cal-title h2{letter-spacing:-.035em}
.staff-route .apx-calendar-card,.staff-route .dash-panel,.staff-route .os-business-panel{border-color:#e3dfd8;box-shadow:0 7px 24px rgba(31,28,23,.045)}
.staff-route .apx-cal-head{padding-bottom:14px}.staff-route .apx-cal-summary{border-top:1px solid #eeeae4;border-bottom:1px solid #eeeae4}
.staff-route .apx-event-wrap{padding-left:3px;padding-right:3px}.staff-route .apx-cal-event{border-radius:9px;box-shadow:0 2px 8px rgba(31,28,23,.04)}
.staff-route .apx-slot:hover:not(.is-blocked){background:rgba(184,137,76,.045)}
.staff-route .apx-mobile-barber{border-color:#e3dfd8;box-shadow:0 6px 20px rgba(31,28,23,.04)}
.staff-route .apx-mobile-add{background:#171716;color:#fff;border-color:#171716}


/* Community module */
.community-dashboard .dash-panel{overflow:hidden}.community-admin-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.community-tabbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.community-tabbar button{border:1px solid #ddd;background:#fff;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}.community-tabbar button.active{background:#111;color:#fff;border-color:#111}.community-admin-card .muted{margin:4px 0}.community-mini-list{display:grid;gap:9px;margin-top:12px}.community-mini-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 12px;background:#f5f6f7;border-radius:12px}.community-mini-row small{color:#777}.community-form-grid .full{grid-column:1/-1}@media(max-width:760px){.community-admin-header{display:block}.community-admin-header .toolbar-actions{margin-top:12px}.community-mini-row{align-items:flex-start;flex-direction:column}.community-qr{align-items:flex-start;flex-direction:column}}
.community-notification-list{display:grid;gap:10px}.community-notification{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px;border:1px solid #e0e2e4;background:#fff;border-radius:14px}.community-notification.read{opacity:.65}.community-notification p{margin:5px 0}.community-notification small{color:#777}.community-settings-form{padding:4px}.community-settings-form h3{margin:0 0 6px}.community-settings-form hr{border:0;border-top:1px solid #e4e5e7;margin:4px 0}.community-settings-form .check-field{display:flex;align-items:center;gap:9px;padding:13px;background:#f5f6f7;border-radius:12px}.community-settings-form .check-field input{width:auto}
@media(max-width:640px){.community-notification{align-items:flex-start;flex-direction:column}.community-notification .btn{width:100%}}
