/* =========================================================
   Scizor — Theme C (Neumorphic-lite / Paper)
   Complete consolidated stylesheet
   ========================================================= */

:root{
  /* Accent */
  --coral:        #FF5A5F;
  --coral-dark:   #E8454A;
  --coral-light:  #FF8A5B;
  --coral-pale:   #FFD9D6;
  --coral-tint:   #FFECE9;
  --coral-glow:   rgba(255,90,95,.35);
  --coral-gradient: linear-gradient(160deg, #FF8A5B 0%, #FF5A5F 100%);
  --coral-gradient-h: linear-gradient(160deg, #FF7A45 0%, #E8454A 100%);

  /* Neumorphic base */
  --bg:           #EEF1F6;
  --surface:      #F4F6FA;
  --surface-2:    #EEF1F6;
  --surface-3:    #E8ECF2;

  --nm-light:     rgba(255,255,255,.95);
  --nm-dark:      rgba(163,177,198,.45);
  --nm-dark-soft: rgba(163,177,198,.28);

  /* Text */
  --ink:          #1F2126;
  --ink-2:        #5A5F6B;
  --ink-3:        #8A8F9A;
  --ink-4:        #B7BAC3;

  /* Sidebar — mid-dark charcoal with bevel */
  --sidebar:        #36393A;
  --sidebar-hi:     #41454A;
  --sidebar-hover:  #41454A;
  --sidebar-active: #4A4F55;
  --sidebar-edge:   rgba(255,255,255,.06);
  --sidebar-shadow: rgba(0,0,0,.18);
  --sidebar-fg:         #B7BCC0;
  --sidebar-fg-hover:   #FFFFFF;

  /* Stat accents */
  --green:#22C55E;
  --amber:#F5A623;
  --red:#EF4444;
  --indigo:#6366F1;
  --mint:#4ECDC4;
  --slate:#4B5563;
  --coral-deep:#C7353F;
  --sky:#7DD3FC;

  /* Shape */
  --r-sm:12px;
  --r-md:16px;
  --r-lg:22px;
  --r-xl:28px;

  /* Neumorphic shadows */
  --nm-raised:
     6px 6px 14px var(--nm-dark-soft),
    -6px -6px 14px var(--nm-light);
  --nm-raised-lg:
     10px 10px 24px var(--nm-dark-soft),
    -10px -10px 24px var(--nm-light);
  --nm-raised-sm:
     3px 3px 8px var(--nm-dark-soft),
    -3px -3px 8px var(--nm-light);
  --nm-inset:
     inset 4px 4px 10px var(--nm-dark-soft),
     inset -4px -4px 10px var(--nm-light);
  --nm-inset-sm:
     inset 3px 3px 6px var(--nm-dark-soft),
     inset -3px -3px 6px var(--nm-light);

  --sh-1:0 1px 2px rgba(20,20,40,.04), 0 2px 6px rgba(20,20,40,.04);
  --sh-2:0 2px 6px rgba(20,20,40,.05), 0 8px 20px rgba(20,20,40,.06);
  --sh-3:0 4px 12px rgba(20,20,40,.06), 0 16px 36px rgba(20,20,40,.08);
  --sh-coral:0 12px 28px -8px var(--coral-glow), 0 4px 12px -4px rgba(255,90,95,.3);

  --topbar-h:64px;
  --tabbar-h:72px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
  --sidebar-w:240px;

  --line: rgba(20,20,40,.08);
}

/* =========================================================
   Reset
   ========================================================= */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%}

body{
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,
              'Helvetica Neue', Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.5;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:"kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  font-kerning:normal;
  font-synthesis:none;
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
  overflow:hidden;
}

/* Display text — softer weight */
h1, h2, h3, h4, h5, h6{
  font-weight:700;
  letter-spacing:-0.015em;
}

.balance-amount,
.balance-amount-alt,
.kpi-coral-num,
.tb-greet,
.card-title-lg,
.svc-center,
.donut-center-num,
.loyalty-num,
.revenue-value,
.sub-days-number,
.sub-plan{
  font-weight:700;
  letter-spacing:-0.02em;
}

img{max-width:100%;display:block}
button{font-family:inherit;border:0;background:none;color:inherit;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none;outline:none}
a:hover,a:focus,a:active,a:visited{text-decoration:none;outline:none}

[data-lucide]{
  width:18px;height:18px;
  stroke-width:2;
  display:inline-block;
  vertical-align:middle;
  flex:0 0 auto;
}

/* =========================================================
   App shell
   ========================================================= */
.app{height:100dvh;display:grid;grid-template-columns:1fr;overflow:hidden}
@media (min-width:1200px){
  .app{grid-template-columns:var(--sidebar-w) 1fr}
}
.main-wrap{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100dvh;
  overflow:hidden;
}

/* =========================================================
   Desktop sidebar
   ========================================================= */
.sidebar{
  flex-direction:column;
  padding:20px 14px 14px;
  gap:12px;
  background:var(--sidebar);
  height:100dvh;
  position:relative;
  z-index:5;
  overflow:hidden;
  /* Soft bevel: bright top rim, dark bottom rim, faint inner side shading */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35),
    inset 1px 0 0 rgba(255,255,255,.04),
    inset -1px 0 0 rgba(0,0,0,.25),
    12px 0 28px -22px rgba(0,0,0,.35);
}
.sidebar.uk-visible\@l{display:flex}

.brand{display:flex;align-items:center;justify-content:center;padding:4px 0 14px}
.brand-logo{height:42px;width:auto;display:block}

/* =========================================================
   Sidebar nav — accordion with colourful bare icons
   ========================================================= */
.side-nav{
  display:flex;
  flex-direction:column;
  gap:0;
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:2px 0;
  /* Grey scrollbar */
  scrollbar-width:thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.side-nav::-webkit-scrollbar{width:6px;background:transparent}
.side-nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:3px;
}
.side-nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}
.side-nav::-webkit-scrollbar-track{background:transparent}

/* Group container */
.sidebar .menu-group,
.drawer-bar .menu-group{position:relative}

/* Gradient divider between adjacent items */
.sidebar .menu-group + .menu-group::before,
.sidebar .menu-group + .menu-single::before,
.sidebar .menu-single + .menu-group::before,
.drawer-bar .menu-group + .menu-group::before,
.drawer-bar .menu-group + .menu-single::before,
.drawer-bar .menu-single + .menu-group::before{
  content:"";
  display:block;
  height:1px;
  margin:6px 10px;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.10) 20%,
    rgba(255,255,255,.10) 80%,
    transparent 100%);
}

/* Main rows */
.sidebar .menu-group-head,
.sidebar .menu-single,
.drawer-bar .menu-group-head,
.drawer-bar .menu-single{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:7px 10px;
  border-radius:10px;
  font-size:13.5px;
  font-weight:500;
  color:var(--sidebar-fg);
  text-align:left;
  background:transparent;
  border:0;
  cursor:pointer;
  transition:color .15s;
}

/* NO background on hover — only colour lift */
.sidebar .menu-group-head:hover,
.sidebar .menu-single:hover,
.drawer-bar .menu-group-head:hover,
.drawer-bar .menu-single:hover{
  color:var(--sidebar-fg-hover);
  background:transparent;
}

/* Active single item keeps coral pill */
.sidebar .menu-single.active,
.drawer-bar .menu-single.active{
  background:var(--coral-gradient);
  color:#fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 22px -10px var(--coral-glow);
}

/* Bare icon — no box, no background */
.sidebar .menu-icon,
.drawer-bar .menu-icon{
  width:22px;
  height:22px;
  border-radius:0;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  transition:transform .2s, filter .2s;
}
.sidebar .menu-icon svg,
.drawer-bar .menu-icon svg{
  width:18px;
  height:18px;
  color:currentColor;
  stroke:currentColor;
}

/* Icon colour variants — colour only, no background */
.sidebar .menu-icon.indigo,   .drawer-bar .menu-icon.indigo   { color:#A5B4FC; }
.sidebar .menu-icon.coral,    .drawer-bar .menu-icon.coral    { color:#FF9A9E; }
.sidebar .menu-icon.mint,     .drawer-bar .menu-icon.mint     { color:#7EE8DF; }
.sidebar .menu-icon.amber,    .drawer-bar .menu-icon.amber    { color:#F7C66D; }
.sidebar .menu-icon.violet,   .drawer-bar .menu-icon.violet   { color:#C7A4F7; }
.sidebar .menu-icon.sky,      .drawer-bar .menu-icon.sky      { color:#7DD3FC; }
.sidebar .menu-icon.slate,    .drawer-bar .menu-icon.slate    { color:#CBD5E1; }
.sidebar .menu-icon.crimson,  .drawer-bar .menu-icon.crimson  { color:#FCA5A5; }

/* Hover — subtle scale + glow */
.sidebar .menu-group:hover .menu-icon,
.drawer-bar .menu-group:hover .menu-icon,
.sidebar .menu-single:hover .menu-icon,
.drawer-bar .menu-single:hover .menu-icon{
  transform:scale(1.15);
  filter:brightness(1.2);
}

/* Active Dashboard icon — white */
.sidebar .menu-single.active .menu-icon,
.sidebar .menu-single.active .menu-icon svg,
.drawer-bar .menu-single.active .menu-icon,
.drawer-bar .menu-single.active .menu-icon svg{
  color:#fff !important;
  stroke:#fff !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Icon container reset — kill any lingering box in any state */
.sidebar .side-nav a .menu-icon,
.sidebar .side-nav a:hover .menu-icon,
.sidebar .side-nav a.active .menu-icon,
.sidebar .menu-group .menu-icon,
.sidebar .menu-group:hover .menu-icon,
.sidebar .menu-single .menu-icon,
.sidebar .menu-single:hover .menu-icon,
.sidebar .menu-single.active .menu-icon,
.drawer-bar .side-nav a .menu-icon,
.drawer-bar .side-nav a:hover .menu-icon,
.drawer-bar .side-nav a.active .menu-icon,
.drawer-bar .menu-group .menu-icon,
.drawer-bar .menu-single .menu-icon,
.drawer-bar .menu-single.active .menu-icon{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  outline:0 !important;
}

/* Label */
.sidebar .menu-label,
.drawer-bar .menu-label{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Caret */
.sidebar .menu-caret,
.drawer-bar .menu-caret{
  width:15px;height:15px;
  flex:0 0 auto;
  color:rgba(255,255,255,.30);
  stroke:currentColor;
  transition:transform .28s cubic-bezier(.2,.8,.2,1), color .15s;
}
.sidebar .menu-group:hover .menu-caret,
.drawer-bar .menu-group:hover .menu-caret{
  color:rgba(255,255,255,.55);
}
.sidebar .menu-group.is-open .menu-caret,
.drawer-bar .menu-group.is-open .menu-caret{
  transform:rotate(90deg);
  color:var(--coral);
}

/* Sub-items panel */
.sidebar .menu-sub,
.drawer-bar .menu-sub{
  height:0;
  overflow:hidden;
  transition:height .28s cubic-bezier(.2,.8,.2,1);
}
.sidebar .menu-group.is-open .menu-sub,
.drawer-bar .menu-group.is-open .menu-sub{
  height:auto;
}

.sidebar .menu-sub-inner,
.drawer-bar .menu-sub-inner{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:4px 0 6px 42px;
}

.sidebar .menu-sub-inner a,
.drawer-bar .menu-sub-inner a{
  display:flex;
  align-items:center;
  padding:6px 10px;
  border-radius:9px;
  font-size:12.5px;
  font-weight:500;
  color:var(--sidebar-fg);
  position:relative;
  transition:color .15s, padding-left .2s;
}
.sidebar .menu-sub-inner a::before,
.drawer-bar .menu-sub-inner a::before{
  content:"";
  position:absolute;
  left:0;top:50%;transform:translateY(-50%);
  width:3px;height:0;
  border-radius:2px;
  background:var(--coral-gradient);
  transition:height .2s;
}
.sidebar .menu-sub-inner a:hover,
.drawer-bar .menu-sub-inner a:hover{
  color:var(--sidebar-fg-hover);
  background:transparent;
  padding-left:14px;
}
.sidebar .menu-sub-inner a.active,
.drawer-bar .menu-sub-inner a.active{
  color:#fff;
  font-weight:600;
}
.sidebar .menu-sub-inner a.active::before,
.drawer-bar .menu-sub-inner a.active::before{
  height:16px;
}

/* Sign out — coral */
.sidebar .side-logout,
.drawer-bar .side-logout{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:10px;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.2px;
  color:#FF8085;
  transition:color .15s;
  margin-top:2px;
}
.sidebar .side-logout svg,
.drawer-bar .side-logout svg{
  width:16px;height:16px;
  color:currentColor;
  stroke:currentColor;
}
.sidebar .side-logout:hover,
.drawer-bar .side-logout:hover{
  color:#FFA0A4;
  background:transparent;
}

/* Dividers */
.side-divider{
  height:1px;
  margin:6px 4px 2px;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.16) 20%,
    rgba(255,255,255,.16) 80%,
    transparent 100%);
}

.side-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 4px 4px;
  flex-shrink:0;
}
.unbxd-logo{width:72px;height:auto;opacity:.55;transition:opacity .2s}
.side-brand:hover .unbxd-logo{opacity:.9}

/* =========================================================
   Mobile topbar
   ========================================================= */
.topbar{
  flex:0 0 auto;
  height:calc(var(--topbar-h) + var(--safe-t));
  padding:var(--safe-t) 14px 0;
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:8px;
  background:var(--surface);
  box-shadow:
    0 6px 16px -8px var(--nm-dark-soft),
    0 1px 0 rgba(255,255,255,.7) inset;
  position:relative;
  z-index:10;
}
.topbar-actions{display:flex;align-items:center;gap:2px}

.menu-btn{
  width:44px;height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  transition:box-shadow .15s, transform .12s;
  flex:0 0 auto;
}
.menu-btn:hover{box-shadow:
  4px 4px 10px var(--nm-dark-soft),
  -4px -4px 10px var(--nm-light);
}
.menu-btn:active{
  box-shadow:var(--nm-inset-sm);
  transform:scale(.98);
}

.burger{width:20px;height:14px;display:flex;flex-direction:column;justify-content:space-between}
.burger span{display:block;height:2.4px;width:100%;border-radius:2px;background:var(--coral)}

.brand-logo-mobile{display:flex;align-items:center;justify-content:center}
.brand-logo-mobile img{height:40px;width:auto;display:block}

.icon-btn{
  width:42px;height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--ink-2);
  position:relative;
  transition:background .15s, box-shadow .15s;
}
.icon-btn svg{color:currentColor;stroke:currentColor}
.icon-btn:hover{
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
}
.icon-btn:active{
  box-shadow:var(--nm-inset-sm);
  background:var(--surface-2);
}
.icon-btn.has-dot::after{
  content:"";
  position:absolute;
  top:10px;right:10px;
  width:8px;height:8px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 2px var(--surface);
}
.topbar-user{
  width:42px;height:42px;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  box-shadow:var(--nm-raised-sm);
  background:var(--surface);
}
.topbar-user img{
  width:36px;height:36px;
  border-radius:50%;
  object-fit:cover;
}

/* =========================================================
   Desktop topbar
   ========================================================= */
.topbar-desktop{
  flex:0 0 auto;
  align-items:center;
  gap:24px;
  padding:16px 28px;
  background:var(--surface);
  box-shadow:
    0 6px 18px -10px var(--nm-dark-soft),
    0 1px 0 rgba(255,255,255,.75) inset;
  position:relative;
  z-index:10;
}
.topbar-desktop.uk-visible\@l{display:flex}
.tb-left{flex:0 0 auto;min-width:190px}
.tb-date{font-size:12.5px;color:var(--ink-3);font-weight:500}
.tb-greet{margin:2px 0 0;font-size:17px;font-weight:700;letter-spacing:-.3px;color:var(--ink)}

.tb-search{
  flex:1;
  max-width:520px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:14px;
  background:var(--surface-2);
  box-shadow:var(--nm-inset-sm);
  transition:box-shadow .15s;
}
.tb-search:focus-within{
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 3px rgba(255,90,95,.18);
}
.tb-search svg{color:var(--ink-3);width:16px;height:16px;stroke:currentColor}
.tb-search input{
  flex:1;
  border:0;
  background:none;
  outline:none;
  font-family:inherit;
  font-size:13.5px;
  color:var(--ink);
}
.tb-search input::placeholder{color:var(--ink-4)}
.tb-search kbd{
  font-family:inherit;
  font-size:11px;
  color:var(--ink-3);
  padding:3px 7px;
  border-radius:6px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
}
.tb-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.tb-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 12px 5px 5px;
  border-radius:999px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  transition:box-shadow .15s;
}
.tb-user:hover{
  box-shadow:
    4px 4px 10px var(--nm-dark-soft),
    -4px -4px 10px var(--nm-light);
}
.tb-user img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.tb-user-info{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.tb-user-name{font-size:13px;font-weight:700;color:var(--ink)}
.tb-user-role{font-size:11px;font-weight:500;color:var(--ink-3)}
.tb-user svg{color:var(--ink-3);width:14px;height:14px;stroke:currentColor}

/* =========================================================
   Dropdowns — light paper
   ========================================================= */
.uk-inline{position:relative}

.uk-dropdown.glass-menu{
  min-width:280px;
  padding:10px !important;
  margin:0;
  background:linear-gradient(180deg,
    rgba(255,255,255,.98) 0%,
    rgba(250,250,252,.96) 100%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  border:1px solid rgba(20,20,40,.06) !important;
  border-radius:18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 4px 12px rgba(20,20,40,.06),
    0 16px 36px -20px rgba(20,20,40,.18),
    0 40px 80px -40px rgba(20,20,40,.15) !important;
  color:var(--ink);
}

.uk-dropdown.glass-menu::before{
  content:"";
  position:absolute;
  top:-6px;
  right:22px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:rgba(255,255,255,.98);
  border-top:1px solid rgba(20,20,40,.06);
  border-left:1px solid rgba(20,20,40,.06);
  border-radius:2px;
}

.glass-menu .menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px 10px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:var(--ink-3);
}
.glass-menu .menu-head .link{
  font-size:11.5px;
  text-transform:none;
  letter-spacing:0;
  color:var(--coral);
}

.glass-menu .menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:12px;
  font-size:13.5px;
  font-weight:500;
  color:var(--ink-2);
  text-decoration:none;
  transition:background .15s, color .15s;
}
.glass-menu .menu-item:hover{
  background:rgba(255,90,95,.06);
  color:var(--ink);
}
.glass-menu .menu-item.danger{color:var(--red)}
.glass-menu .menu-item.danger:hover{background:rgba(239,68,68,.08)}
.glass-menu .menu-item svg{
  width:16px;height:16px;
  color:currentColor;stroke:currentColor;
}
.glass-menu .menu-item > div{flex:1;min-width:0}

.glass-menu .menu-dot{
  width:9px;height:9px;
  border-radius:50%;
  flex:0 0 auto;
  margin-top:5px;
  align-self:flex-start;
}
.glass-menu .menu-dot.warn{background:var(--amber)}
.glass-menu .menu-dot.info{background:var(--indigo)}
.glass-menu .menu-dot.danger{background:var(--red)}

.glass-menu .menu-title{
  font-size:13px;font-weight:600;color:var(--ink);line-height:1.25;
}
.glass-menu .menu-meta{
  font-size:11.5px;font-weight:500;color:var(--ink-3);margin-top:3px;
}

.glass-menu .menu-sep{
  height:1px;
  margin:6px 8px;
  background:linear-gradient(90deg,
    transparent,
    rgba(20,20,40,.08),
    transparent);
}
.glass-menu .menu-foot{
  padding:10px 10px 4px;
  margin-top:4px;
  box-shadow:inset 0 1px 0 rgba(20,20,40,.06);
}

.glass-menu.user-menu{min-width:250px}
.glass-menu .user-menu-head{
  display:flex;align-items:center;gap:12px;padding:10px;
}
.glass-menu .user-menu-head img{
  width:42px;height:42px;border-radius:50%;object-fit:cover;
}
.glass-menu .user-menu-name{
  font-size:14px;font-weight:700;color:var(--ink);line-height:1.2;
}
.glass-menu .user-menu-role{
  font-size:11.5px;font-weight:500;color:var(--ink-3);margin-top:2px;
}

/* =========================================================
   Content
   ========================================================= */
.content{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  padding:18px 16px 0;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:var(--ink-4) transparent;
}
.content::-webkit-scrollbar{width:8px}
.content::-webkit-scrollbar-thumb{
  background:var(--nm-dark-soft);
  border-radius:99px;
}
@media (min-width:1200px){ .content{padding:24px 28px 32px} }

.welcome{padding:4px 4px 14px}
.welcome h2{
  margin:0;font-size:22px;font-weight:600;
  color:var(--ink-2);text-align:center;letter-spacing:-.3px;
}

/* =========================================================
   Cards — pillowy raised
   ========================================================= */
.card{
  background:var(--surface);
  border-radius:var(--r-lg);
  padding:22px;
  box-shadow:var(--nm-raised);
  overflow:hidden;
}
.card-mini{padding:20px}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.card-title-lg{font-size:16px;font-weight:700;color:var(--ink);letter-spacing:-.2px}
.card-sub{font-size:12.5px;color:var(--ink-3);margin-top:2px;font-weight:500}

.link{
  font-size:12.5px;
  font-weight:600;
  color:var(--coral);
  display:inline-flex;
  align-items:center;
  gap:2px;
}
.link svg{width:14px;height:14px;color:currentColor;stroke:currentColor}
.link:hover{color:var(--coral-dark)}
.muted{font-size:12px;font-weight:500;color:var(--ink-3)}

/* =========================================================
   Buttons
   ========================================================= */
.btn-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}
.btn-row + .btn-row{margin-top:12px}

.btn-coral,
a.btn-coral,
a.btn-coral:link,
a.btn-coral:visited,
a.btn-coral:hover,
a.btn-coral:focus,
a.btn-coral:active,
.sub-cta,
a.sub-cta,
a.sub-cta:link,
a.sub-cta:visited,
a.sub-cta:hover,
a.sub-cta:focus,
a.sub-cta:active,
.login-submit,
a.login-submit,
a.login-submit:link,
a.login-submit:visited,
a.login-submit:hover,
a.login-submit:focus,
a.login-submit:active,
.fab,
.fab:hover,
.fab:focus,
.fab:active{
  color: #fff !important;
  text-decoration: none !important;
}

.btn-coral{
  padding:13px 24px;
  min-height:46px;
  border-radius:14px;
  background:var(--coral-gradient);
  color:#fff;
  font-size:14px;
  font-weight:600;
  letter-spacing:.1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 10px 22px -8px var(--coral-glow),
    0 4px 10px -4px rgba(255,90,95,.28);
  transition:transform .12s, opacity .2s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-coral:hover{opacity:.94;filter:none}
.btn-coral:active{transform:scale(.98)}
.btn-coral:disabled{opacity:.5;cursor:not-allowed;filter:none;box-shadow:none}
.btn-coral svg{width:16px;height:16px;color:#fff;stroke:#fff}

.btn-ghost{
  padding:13px 22px;
  min-height:46px;
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  font-size:14px;
  font-weight:600;
  color:var(--ink-2);
  transition:box-shadow .15s, transform .12s, color .15s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-ghost:hover{
  color:var(--ink);
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
}
.btn-ghost:active{
  box-shadow:var(--nm-inset-sm);
  transform:scale(.98);
}

.btn-outline{
  width:46px;height:46px;
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  color:var(--ink-2);
  display:grid;
  place-items:center;
  transition:box-shadow .15s, transform .12s;
}
.btn-outline:hover{
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
  color:var(--ink);
}
.btn-outline:active{
  box-shadow:var(--nm-inset-sm);
  transform:scale(.96);
}

/* =========================================================
   Forms — floating labels, inputs
   ========================================================= */
.field{
  position:relative;
  display:block;
  margin-bottom:22px;
}
.field + .field{margin-top:0}

.field .input,
.field .select,
.field .textarea{
  width:100%;
  font-family:inherit;
  font-size:15px;
  line-height:22px;
  font-weight:500;
  color:var(--ink);
  background:var(--surface-2);
  border:0;
  border-radius:14px;
  padding:26px 18px 10px;
  height:58px;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:
    inset 4px 4px 10px var(--nm-dark-soft),
    inset -4px -4px 10px var(--nm-light);
  transition:box-shadow .18s ease, background .18s ease;
  position:relative;
  z-index:1;
}
.field .textarea{
  height:auto;
  min-height:140px;
  padding-top:28px;
  resize:vertical;
}
.field .input:hover,
.field .select:hover,
.field .textarea:hover{
  box-shadow:
    inset 5px 5px 12px var(--nm-dark-soft),
    inset -5px -5px 12px var(--nm-light);
}
.field .input:focus,
.field .select:focus,
.field .textarea:focus{
  background:var(--surface);
  box-shadow:
    inset 2px 2px 6px rgba(163,177,198,.22),
    inset -2px -2px 6px rgba(255,255,255,.9),
    0 10px 26px -6px rgba(255,90,95,.42),
    0 4px 12px -4px rgba(255,90,95,.28);
}
.field .input:disabled,
.field .select:disabled{
  background:#E6EAF0;
  color:var(--ink-4);
  cursor:not-allowed;
  box-shadow:
    inset 3px 3px 6px rgba(163,177,198,.35),
    inset -3px -3px 6px rgba(255,255,255,.7);
}

.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media (max-width:520px){
  .field-row{grid-template-columns:1fr;gap:0}
}

/* Floating labels */
.field .label{
  position:absolute;
  left:20px;
  top:29px;
  transform:translateY(-50%);
  font-size:15px;
  font-weight:500;
  color:var(--ink-3);
  pointer-events:none;
  transform-origin:left center;
  transition:
    top .2s cubic-bezier(.2,.8,.2,1),
    font-size .2s cubic-bezier(.2,.8,.2,1),
    color .2s ease,
    letter-spacing .2s ease;
  background:transparent;
  padding:0 2px;
  line-height:1;
  margin:0;
  z-index:3;
}

.field .textarea ~ .label{ top:31px; }
.field .textarea:focus ~ .label,
.field .textarea:not(:placeholder-shown) ~ .label{ top:13px; font-size:12px; }

.field .input:focus ~ .label,
.field .input:not(:placeholder-shown) ~ .label,
.field .textarea:focus ~ .label,
.field .textarea:not(:placeholder-shown) ~ .label,
.field .select:focus ~ .label,
.field .select.has-value ~ .label,
.field.has-value > .label{
  top:13px;
  font-size:12px;
  font-weight:600;
  color:var(--coral);
  letter-spacing:.1px;
  transform:translateY(0);
}
.field .input:not(:placeholder-shown):not(:focus) ~ .label,
.field .textarea:not(:placeholder-shown):not(:focus) ~ .label,
.field .select.has-value:not(:focus) ~ .label{
  color:var(--ink-3);
}

.field .help{
  display:block;
  margin:8px 4px 0;
  font-size:12px;
  color:var(--ink-3);
  font-weight:500;
  line-height:1.4;
}
.field .error{
  display:none;
  margin:8px 4px 0;
  font-size:12px;
  color:var(--red);
  font-weight:600;
}
.field.is-error .input,
.field.is-error .select,
.field.is-error .textarea{
  box-shadow:
    inset 4px 4px 10px var(--nm-dark-soft),
    inset -4px -4px 10px var(--nm-light),
    0 0 0 2px var(--red),
    0 4px 14px -2px rgba(239,68,68,.22);
}
.field.is-error .error{display:block}
.field.is-error .label{color:var(--red)}

.field .select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8F9A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 18px center;
  padding-right:44px;
  cursor:pointer;
}

/* Date field with icon */
.field-date{position:relative}
.field-date .input{padding-right:52px}
.field-date .cal-icon{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--ink-3);
  pointer-events:none;
  z-index:3;
}

/* Field hint (existing-customer warning) */
.field-hint{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 4px 0;
  padding:9px 12px;
  border-radius:10px;
  background:rgba(255,90,95,.08);
  color:var(--ink-2);
  font-size:12.5px;
  font-weight:500;
}
.field-hint a{color:var(--coral);font-weight:700;text-decoration:none}
.field-hint a:hover{text-decoration:underline}
.field-hint svg{
  width:14px;height:14px;
  color:var(--coral);
  stroke:currentColor;
  flex:0 0 auto;
}

.field .select ~ .label,
.field select ~ .label {
  top: 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

/* =========================================================
   Balance / Revenue card
   ========================================================= */
.balance-top{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:20px;
  align-items:flex-end;
  margin-bottom:18px;
}
@media (max-width:640px){
  .balance-top{grid-template-columns:1fr 1fr;gap:14px}
  .balance-top .btn-ghost{grid-column:1 / -1;width:100%}
}
.balance-label{
  font-size:12px;color:var(--ink-3);font-weight:500;
  display:inline-flex;align-items:center;gap:4px;
}
.info-i{width:12px;height:12px;color:var(--ink-4);stroke:currentColor}
.balance-amount{
  font-size:28px;font-weight:700;color:var(--ink);
  letter-spacing:-.8px;line-height:1.05;margin-top:6px;
}
.balance-amount-alt{
  font-size:22px;font-weight:700;color:var(--ink);
  letter-spacing:-.5px;line-height:1.05;margin-top:6px;
}

.balance-bar{
  display:flex;
  gap:4px;
  height:8px;
  border-radius:999px;
  padding:2px;
  background:var(--surface-2);
  box-shadow:var(--nm-inset-sm);
  overflow:hidden;
  margin-bottom:16px;
}
.balance-bar .seg{height:100%;display:block;border-radius:999px}
.seg.mint{background:var(--mint);width:22%}
.seg.indigo{background:var(--indigo);width:22%}
.seg.coral{background:var(--coral);width:26%}
.seg.amber{background:var(--amber);width:18%}
.seg.slate{background:var(--slate);width:12%}
.seg.coral-deep{background:var(--coral-deep);width:12%}

.balance-legend{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}
@media (max-width:768px){ .balance-legend{grid-template-columns:repeat(2,1fr)} }
.balance-legend > div{display:flex;flex-direction:column;gap:2px;font-size:11.5px}
.balance-legend .dot{
  width:8px;height:8px;border-radius:50%;
  display:inline-block;margin-bottom:4px;
  box-shadow:0 1px 2px rgba(20,20,40,.15);
}
.balance-legend b{font-size:12px;font-weight:600;color:var(--ink-3)}
.balance-legend small{font-size:13px;font-weight:700;color:var(--ink)}
.dot.mint{background:var(--mint)}
.dot.indigo{background:var(--indigo)}
.dot.coral{background:var(--coral)}
.dot.coral-light{background:var(--coral-light)}
.dot.amber{background:var(--amber)}
.dot.slate{background:var(--slate)}
.dot.pale{background:#D9DCE1}

/* =========================================================
   Loyalty / dark card
   ========================================================= */
.loyalty-card{
  position:relative;
  border-radius:16px;
  padding:18px;
  background:linear-gradient(150deg,#3D4147 0%, #22252A 100%);
  color:#fff;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 18px 36px -12px rgba(20,20,40,.5);
}
.loyalty-card::after{
  content:"";
  position:absolute;
  right:-40px;bottom:-40px;
  width:160px;height:160px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%);
}
.loyalty-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.loyalty-brand{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px}
.loyalty-brand svg{width:18px;height:18px}
.loyalty-chip{
  width:34px;height:26px;border-radius:5px;
  background:linear-gradient(135deg,#F3C566,#C9922F);
  margin-bottom:14px;position:relative;
}
.loyalty-num{
  font-family:'Plus Jakarta Sans',monospace;
  font-size:15px;letter-spacing:2px;font-weight:600;margin-bottom:16px;
}
.loyalty-bottom{
  display:flex;justify-content:space-between;
  font-size:10px;letter-spacing:1px;opacity:.75;font-weight:500;
}
.mini-actions{display:flex;gap:10px;margin-top:16px}
.mini-actions .btn-coral{flex:1}

/* =========================================================
   Chart + Donut
   ========================================================= */
.chart-toggles{display:flex;align-items:center;gap:14px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--ink-2)}
.sw{width:8px;height:8px;border-radius:50%;display:inline-block}
.sw.coral{background:var(--coral)}
.sw.slate{background:var(--slate)}
.chart-wrap{height:220px;position:relative}
@media (max-width:640px){ .chart-wrap{height:180px} }

.donut-row{display:flex;flex-direction:column;gap:16px;align-items:center}
.donut-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.donut-label{font-size:11px;color:var(--ink-3);font-weight:500}
.donut-val{font-size:15px;font-weight:700;color:var(--ink);letter-spacing:-.3px;margin-top:2px}
.donut-wrap{position:relative;width:170px;height:170px}
.donut-wrap svg{width:100%;height:100%;display:block}
.donut-center{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.donut-center-num{font-size:22px;font-weight:700;color:var(--coral);line-height:1}
.donut-center-label{
  font-size:10.5px;font-weight:600;color:var(--ink-3);
  margin-top:3px;letter-spacing:.4px;text-transform:uppercase;
}
.donut-legend{
  display:flex;gap:14px;flex-wrap:wrap;justify-content:center;
  font-size:11.5px;color:var(--ink-2);font-weight:500;
}
.donut-legend span{display:inline-flex;align-items:center;gap:5px}
.donut-legend .dot{width:7px;height:7px;border-radius:50%;display:inline-block}

/* =========================================================
   Filters / transactions
   ========================================================= */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.filter-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:12px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  font-size:12px;font-weight:600;color:var(--ink-2);
  transition:box-shadow .15s;
}
.filter-pill:hover{
  box-shadow:
    4px 4px 10px var(--nm-dark-soft),
    -4px -4px 10px var(--nm-light);
}
.filter-pill:active{box-shadow:var(--nm-inset-sm)}
.filter-pill svg{width:14px;height:14px;color:var(--ink-3);stroke:currentColor}
.filter-pill.is-primary{
  background:var(--coral-gradient);color:#fff;margin-left:auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    var(--sh-coral);
}
@media (max-width:576px){ .filter-pill.is-primary{margin-left:0} }

.tx-list{display:flex;flex-direction:column;gap:2px}
.tx{
  display:grid;
  grid-template-columns:80px 40px 1fr 120px 90px 110px;
  align-items:center;
  gap:12px;
  padding:14px 10px;
  border-radius:12px;
  font-size:13px;
  transition:background .15s;
}
.tx:hover{background:var(--surface-2)}
.tx-when{font-size:11px;line-height:1.35;color:var(--ink-2);font-weight:600}
.tx-when span{color:var(--ink-3);font-weight:500}
.tx-avatar{
  width:34px;height:34px;border-radius:50%;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(20,20,40,.08);
}
.tx-body{min-width:0}
.tx-name{
  font-size:13.5px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.tx-sub{font-size:11.5px;color:var(--ink-3);font-weight:500;margin-top:1px}
.tx-cat{font-size:12.5px;color:var(--ink-2);font-weight:500}
.tx-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.tx-status i{width:6px;height:6px;border-radius:50%;display:block}
.tx-status.success{color:var(--green)} .tx-status.success i{background:var(--green)}
.tx-status.pending{color:var(--amber)} .tx-status.pending i{background:var(--amber)}
.tx-status.failed{color:var(--red)}   .tx-status.failed i{background:var(--red)}
.tx-amt{font-size:13px;font-weight:700;color:var(--ink);text-align:right;white-space:nowrap}

@media (max-width:900px){
  .tx{grid-template-columns:70px 34px 1fr auto;row-gap:8px;padding:14px 4px}
  .tx-cat{grid-column:3 / 4;font-size:11px;color:var(--ink-3)}
  .tx-status{grid-column:3 / 4;justify-self:start}
  .tx-amt{grid-column:4 / 5;grid-row:1 / 3;align-self:center}
}

/* =========================================================
   Alerts / Services / Attendance / Customers
   ========================================================= */
.alert-list{display:flex;flex-direction:column;gap:8px}
.alert{
  display:flex;align-items:center;gap:12px;
  padding:14px;border-radius:14px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  transition:box-shadow .15s;
  cursor:pointer;
}
.alert:hover{
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
}
.alert-icon{
  width:38px;height:38px;border-radius:11px;
  display:grid;place-items:center;flex:0 0 auto;
}
.alert-icon svg{color:currentColor;stroke:currentColor}
.alert-icon.warn{background:rgba(245,166,35,.14);color:var(--amber)}
.alert-icon.info{background:rgba(99,102,241,.12);color:var(--indigo)}
.alert-icon.danger{background:rgba(239,68,68,.12);color:var(--red)}
.alert-body{flex:1;min-width:0}
.alert-title{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.25}
.alert-meta{font-size:11.5px;color:var(--ink-3);margin-top:2px;font-weight:500}
.alert-arrow{color:var(--ink-4);width:16px;height:16px;stroke:currentColor}

.svc-row{display:flex;gap:20px;align-items:center}
@media (max-width:520px){ .svc-row{flex-direction:column;align-items:stretch} }
.svc-svg{position:relative;width:130px;height:130px;flex:0 0 auto}
.svc-svg svg{width:100%;height:100%;display:block}
.svc-center{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:22px;font-weight:700;color:var(--ink);letter-spacing:-.5px;
}
.svc-legend{flex:1;display:flex;flex-direction:column;gap:10px}
.svc-legend > div{display:flex;align-items:center;gap:8px;font-size:12.5px}
.svc-legend b{font-weight:600;color:var(--ink-2);flex:1}
.svc-legend small{font-weight:700;color:var(--ink);font-size:12.5px}
.svc-legend .dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto}

.cal-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:12px}
.cal-cell{
  aspect-ratio:1/1;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;font-size:12px;font-weight:600;
  background:var(--surface);
  color:var(--ink-2);
  box-shadow:var(--nm-raised-sm);
  cursor:pointer;
  transition:box-shadow .15s, transform .12s;
}
.cal-cell:hover{
  box-shadow:
    4px 4px 10px var(--nm-dark-soft),
    -4px -4px 10px var(--nm-light);
  transform:translateY(-1px);
}
.cal-cell.today{
  background:var(--coral-gradient);color:#fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 20px -8px var(--coral-glow);
}
.cal-cell .dnum{line-height:1}
.cal-cell .dots{display:flex;gap:2px}
.cal-cell .dots i{width:5px;height:5px;border-radius:50%;display:block}
.cal-cell .dots i.p{background:var(--green)}
.cal-cell .dots i.l{background:var(--amber)}
.cal-cell .dots i.a{background:var(--red)}
.cal-cell.today .dots i{background:#fff !important;opacity:.95}
.cal-legend{
  display:flex;gap:14px;justify-content:center;
  font-size:11px;color:var(--ink-3);font-weight:500;
}
.cal-legend span{display:inline-flex;align-items:center;gap:5px}
.cal-legend .d{width:6px;height:6px;border-radius:50%;display:inline-block}
.cal-legend .d.p{background:var(--green)}
.cal-legend .d.l{background:var(--amber)}
.cal-legend .d.a{background:var(--red)}

.cust-list{display:flex;flex-direction:column;gap:8px}
.cust{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;border-radius:14px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  transition:box-shadow .15s;
}
.cust:hover{
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
}
.cust img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.cust-info{flex:1;min-width:0}
.cust-name{
  font-size:13.5px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cust-sub{
  font-size:11.5px;color:var(--ink-3);margin-top:2px;font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cust-amt{font-size:13px;font-weight:700;color:var(--ink)}

/* =========================================================
   Mobile KPI tiles
   ========================================================= */
.kpi-coral-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kpi-coral{
  background:var(--coral-gradient);
  border-radius:22px;padding:28px 18px;color:#fff;
  aspect-ratio:1 / 1;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 16px 32px -10px var(--coral-glow),
    0 6px 14px -4px rgba(255,90,95,.3);
}
.kpi-coral-num{font-size:36px;font-weight:400;letter-spacing:-1px;line-height:1}
.kpi-coral-label{font-size:14px;font-weight:500;margin-top:10px;opacity:.95}

/* =========================================================
   Mobile sticky footer
   ========================================================= */
.tabbar{
  position:absolute;bottom:0;left:0;right:0;
  height:calc(var(--tabbar-h) + var(--safe-b));
  padding:0 8px var(--safe-b);
  display:grid;
  grid-template-columns:1fr 1fr 76px 1fr 1fr;
  align-items:center;
  z-index:20;
  background:linear-gradient(180deg,#3A3D42 0%, #2B2E33 45%, #1F2125 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.55),
    inset 1px 0 0 rgba(255,255,255,.05),
    inset -1px 0 0 rgba(255,255,255,.05),
    0 -10px 30px -12px rgba(20,20,40,.5),
    0 -2px 6px -2px rgba(20,20,40,.35);
}
.tabbar > *{position:relative;z-index:2}

.tabbar .tab,
.tabbar .tab svg,
.tabbar .tab svg *{
  color:#D5D8DE;
  stroke:#D5D8DE;
}
.tabbar .tab{
  display:flex;align-items:center;justify-content:center;
  height:100%;border-radius:12px;
  position:relative;
  transition:color .15s, transform .12s, filter .15s;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
.tabbar .tab svg{width:22px;height:22px}
.tabbar .tab:hover,
.tabbar .tab:hover svg,
.tabbar .tab:hover svg *{
  color:#F2F3F6;
  stroke:#F2F3F6;
}
.tabbar .tab.active,
.tabbar .tab.active svg,
.tabbar .tab.active svg *{
  color:var(--coral);
  stroke:var(--coral);
}
.tabbar .tab.active{filter:none}

.fab{
  width:64px;height:64px;
  border-radius:50%;
  background:var(--coral-gradient);
  color:#fff;
  display:grid;place-items:center;
  margin:0 auto;
  position:relative;
  top:calc(-1 * (var(--tabbar-h) / 2) + 4px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 14px 26px -8px var(--coral-glow),
    0 6px 12px -4px rgba(0,0,0,.4),
    0 0 0 6px rgba(43,46,51,.95);
  transition:transform .12s, box-shadow .15s;
}
.fab svg{width:28px;height:28px;stroke-width:2.6;color:#fff;stroke:#fff}
.fab:active{
  transform:scale(.94);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -2px 0 rgba(0,0,0,.22),
    0 8px 16px -6px var(--coral-glow),
    0 0 0 6px rgba(43,46,51,.95);
}

/* FAB desktop — floating bottom-right */
.fab-desktop{
  position:fixed;
  right:28px;
  bottom:28px;
  margin:0;
  top:auto !important;
  z-index:40;
  display:none;
}
@media (min-width:1200px){
  .fab-desktop{display:grid}
}

/* Tooltips */
.tab[data-tip]::after,
.fab[data-tip]::after{
  content:attr(data-tip);
  position:absolute;
  bottom:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%) translateY(4px);
  background:#101216;color:#fff;
  font-size:11.5px;font-weight:600;letter-spacing:.2px;
  white-space:nowrap;padding:6px 10px;border-radius:8px;
  opacity:0;pointer-events:none;
  transition:opacity .15s, transform .15s;
  box-shadow:0 8px 20px -8px rgba(0,0,0,.6);
  z-index:30;
}
.tab[data-tip]::before,
.fab[data-tip]::before{
  content:"";
  position:absolute;
  bottom:calc(100% + 4px);
  left:50%;
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#101216;
  opacity:0;pointer-events:none;
  transition:opacity .15s;
  z-index:30;
}
@media (hover:hover){
  .tab[data-tip]:hover::after,
  .tab[data-tip]:hover::before,
  .fab[data-tip]:hover::after,
  .fab[data-tip]:hover::before{
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }
}

/* =========================================================
   FAB popup
   ========================================================= */
.fab-menu{
  position:fixed;
  z-index:70;
  min-width:320px;
  max-width:calc(100vw - 32px);
  padding:12px;
  border-radius:22px;
  color:#fff;
  background:linear-gradient(180deg,
    rgba(42,42,54,.92) 0%,
    rgba(24,24,34,.9) 100%);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 24px 48px -12px rgba(0,0,0,.55),
    0 8px 20px -8px rgba(0,0,0,.4);
  opacity:0;
  transform:translateY(12px) scale(.96);
  transform-origin:bottom right;
  pointer-events:none;
  visibility:hidden;
  transition:
    opacity .18s ease,
    transform .18s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .18s;
}
.fab-menu.is-open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  visibility:visible;
  transition:
    opacity .2s ease,
    transform .22s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear 0s;
}
.fab-menu::after{
  content:"";
  position:absolute;
  right:32px;
  bottom:-8px;
  width:16px;height:16px;
  background:rgba(24,24,34,.9);
  border-right:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  transform:rotate(45deg);
  border-bottom-right-radius:4px;
  display:none;
}
@media (min-width:1200px){
  .fab-menu{
    right:28px;
    bottom:112px;
    top:auto;
    left:auto;
    transform-origin:bottom right;
  }
  .fab-menu::after{display:block}
}
@media (max-width:1199px){
  .fab-menu{
    left:16px;
    right:16px;
    bottom:calc(var(--tabbar-h) + var(--safe-b) + 20px);
    top:auto;
    min-width:0;
    transform-origin:bottom center;
    transform:translateY(24px) scale(.98);
  }
  .fab-menu.is-open{transform:translateY(0) scale(1)}
  .fab-menu::after{display:none}
}

.fab-menu-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 10px 10px;
  font-size:11.5px;font-weight:700;letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.fab-close{
  width:28px;height:28px;
  border-radius:50%;
  display:grid;place-items:center;
  color:rgba(255,255,255,.6);
  transition:background .15s, color .15s;
}
.fab-close:hover{background:rgba(255,255,255,.1);color:#fff}
.fab-close svg{width:15px;height:15px;color:inherit;stroke:currentColor}

.fab-item{
  display:flex;align-items:center;gap:14px;
  padding:12px 10px;
  border-radius:14px;
  color:#fff;
  text-decoration:none;
  transition:background .15s, transform .12s;
  cursor:pointer;
}
.fab-item:hover{background:rgba(255,255,255,.06)}
.fab-item:active{transform:scale(.985)}
.fab-item:focus-visible{outline:2px solid var(--coral);outline-offset:2px}

.fab-icon{
  width:44px;height:44px;
  border-radius:12px;
  display:grid;place-items:center;
  color:#fff;flex:0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 14px -6px rgba(0,0,0,.5);
}
.fab-icon svg{width:20px;height:20px;color:#fff;stroke:#fff}
.fab-icon.coral {background:var(--coral-gradient)}
.fab-icon.mint  {background:linear-gradient(135deg,#4ECDC4,#0EA5E9)}
.fab-icon.indigo{background:linear-gradient(135deg,#6366F1,#A855F7)}

.fab-text{flex:1;min-width:0;text-align:left}
.fab-title{
  font-size:14.5px;font-weight:700;color:#fff;
  line-height:1.2;letter-spacing:-.1px;
}
.fab-sub{
  font-size:12px;color:rgba(255,255,255,.6);
  margin-top:3px;font-weight:500;line-height:1.3;
}
.fab-arrow{
  color:rgba(255,255,255,.35);
  width:16px;height:16px;
  flex:0 0 auto;stroke:currentColor;
}
.fab-sep{
  height:1px;margin:6px 12px;
  background:linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.12),
    transparent);
}
.fab-backdrop{
  position:fixed;inset:0;
  z-index:15;
  background:rgba(15,15,25,.35);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  opacity:0;visibility:hidden;
  transition:opacity .2s ease, visibility 0s linear .2s;
  pointer-events:none;
}
.fab-backdrop.is-open{
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .2s ease, visibility 0s linear 0s;
}

/* =========================================================
   Mobile drawer
   ========================================================= */
#drawer .uk-offcanvas-bar.drawer-bar{
  background:var(--sidebar);
  color:#fff;
  padding:0;
  width:min(84%, 320px);
  display:flex;flex-direction:column;
  min-height:0;
  border-radius:0 22px 22px 0;
  box-shadow:0 0 0 1px rgba(0,0,0,.4), 20px 0 60px -20px rgba(0,0,0,.5);
  left:0;
}
@media (max-width:1199px){
  #drawer .uk-offcanvas-bar.drawer-bar{
    background:linear-gradient(180deg,
      rgba(58,61,66,.94) 0%,
      rgba(40,43,48,.94) 100%);
    -webkit-backdrop-filter:blur(28px) saturate(160%);
    backdrop-filter:blur(28px) saturate(160%);
    border-right:1px solid rgba(255,255,255,.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      inset -1px 0 0 rgba(0,0,0,.3),
      24px 0 60px -20px rgba(0,0,0,.5);
  }
}

.drawer-header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(16px + var(--safe-t)) 18px 14px;
  background:transparent;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.06);
  flex-shrink:0;
}
.drawer-user{display:flex;align-items:center;gap:12px}
.drawer-user img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.drawer-name{font-size:14px;font-weight:700;color:#fff;line-height:1.2}
.drawer-role{font-size:11.5px;margin-top:2px;font-weight:500;color:var(--sidebar-fg)}
.drawer-close{color:#fff;transition:background .15s}
.drawer-close svg{color:#fff;stroke:currentColor}
.drawer-close:hover{background:rgba(255,255,255,.08)}

.drawer-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:14px 12px;
  scrollbar-width:thin;
  scrollbar-color: rgba(255,255,255,.18) rgba(255,255,255,.06);
}
.drawer-nav::-webkit-scrollbar{width:6px;background:rgba(255,255,255,.04)}
.drawer-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:3px}
.drawer-nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}

.drawer-nav a{color:var(--sidebar-fg)}
.drawer-nav a svg{color:currentColor;stroke:currentColor}
.drawer-nav a.active{
  background:var(--coral-gradient);color:#fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 20px -8px var(--coral-glow);
}
.drawer-nav a.active svg{color:#fff;stroke:#fff}

.drawer-bar .side-divider{margin:6px 16px 2px}
.drawer-bar .drawer-brand{
  padding:14px 4px 18px;
  flex-shrink:0;
  display:flex;
  justify-content:center;
}
.drawer-brand .unbxd-logo{width:60px;opacity:.55}
.drawer-brand .unbxd-logo:hover{opacity:.9}

/* =========================================================
   Dashboard — revenue card
   ========================================================= */
.revenue-top{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;
  margin-bottom:22px;padding-bottom:22px;
  box-shadow:inset 0 -1px 0 rgba(20,20,40,.06);
}
.revenue-block{padding:0 4px}
.revenue-label{
  font-size:12.5px;font-weight:600;color:var(--ink-3);
  letter-spacing:.3px;margin-bottom:6px;
}
.revenue-value{
  font-size:30px;font-weight:700;color:var(--ink);
  letter-spacing:-.9px;line-height:1.05;
}
@media (max-width:520px){
  .revenue-value{font-size:24px}
}

.mini-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
@media (max-width:900px){ .mini-stats{grid-template-columns:repeat(3,1fr);gap:12px} }
@media (max-width:520px){ .mini-stats{grid-template-columns:repeat(2,1fr)} }
.mini-stat{display:flex;align-items:flex-start;gap:10px;min-width:0}
.mini-stat-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;margin-top:6px}
.mini-stat-body{min-width:0}
.mini-stat-label{
  font-size:11.5px;font-weight:600;color:var(--ink-3);
  letter-spacing:.2px;margin-bottom:4px;text-transform:uppercase;
}
.mini-stat-value{
  font-size:16px;font-weight:700;color:var(--ink);
  letter-spacing:-.3px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}

/* =========================================================
   Dashboard — subscription card
   ========================================================= */
.card-subscription{
  position:relative;
  border-radius:var(--r-lg);
  padding:24px;
  background:linear-gradient(150deg,#3D4147 0%, #22252A 100%);
  color:#fff;
  overflow:hidden;
  box-shadow:var(--sh-3);
}
.card-subscription::after{
  content:"";
  position:absolute;
  right:-50px;bottom:-50px;
  width:180px;height:180px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%);
  pointer-events:none;
}
.sub-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sub-company{
  font-size:12.5px;font-weight:500;color:rgba(255,255,255,.55);
  letter-spacing:.2px;
}
.sub-plan{
  font-size:20px;font-weight:700;color:#fff;
  letter-spacing:-.4px;margin-bottom:18px;
}
.sub-days{text-align:center;padding:10px 0 18px}
.sub-days-number{font-size:52px;font-weight:700;line-height:1;letter-spacing:-2px}
.sub-days-label{
  font-size:12.5px;font-weight:500;color:rgba(255,255,255,.55);
  margin-top:8px;letter-spacing:.3px;text-transform:uppercase;
}
.sub-progress{
  height:6px;border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;margin-bottom:10px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.4);
}
.sub-progress-fill{
  height:100%;border-radius:999px;
  background:var(--coral-gradient);
  box-shadow:0 0 12px rgba(255,90,95,.5);
  transition:width .4s ease;
}
.sub-dates{
  display:flex;justify-content:space-between;
  font-size:11px;color:rgba(255,255,255,.5);
  font-weight:500;letter-spacing:.2px;margin-bottom:20px;
}
.sub-cta{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:13px 20px;
  border-radius:12px;
  background:var(--coral-gradient);
  color:#fff;
  font-size:14px;font-weight:600;letter-spacing:.1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 24px -8px var(--coral-glow);
  transition:opacity .15s, transform .12s;
}
.sub-cta:hover{opacity:.94}
.sub-cta:active{transform:scale(.985)}
.sub-cta svg{width:16px;height:16px;color:#fff;stroke:#fff}

/* =========================================================
   Dashboard — branch filter
   ========================================================= */
.branch-filter{
  min-width:180px;
  font-family:inherit;font-size:13px;font-weight:600;
  color:var(--ink);
  background:var(--surface-2);
  border:0;border-radius:10px;
  padding:9px 32px 9px 14px;
  appearance:none;-webkit-appearance:none;
  outline:none;cursor:pointer;
  box-shadow:var(--nm-inset-sm);
  transition:box-shadow .15s;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238A8F9A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
}
.branch-filter:focus{
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 3px rgba(255,90,95,.18);
}
@media (max-width:520px){
  .branch-filter{min-width:0;width:100%;font-size:12.5px}
  .card-head:has(.branch-filter){flex-wrap:wrap}
}

/* =========================================================
   Impersonation banner
   ========================================================= */
.impersonate-banner{
  display:flex;align-items:center;gap:10px;
  padding:10px 16px;border-radius:14px;
  background:linear-gradient(135deg, rgba(255,90,95,.12), rgba(168,85,247,.10));
  border:1px solid rgba(255,90,95,.2);
  font-size:13px;font-weight:500;
  color:var(--ink);
  margin-bottom:16px;
}
.impersonate-banner svg{
  width:16px;height:16px;color:var(--coral);stroke:currentColor;flex:0 0 auto;
}
.impersonate-banner b{color:var(--ink);font-weight:700}
.impersonate-exit{
  margin-left:auto;font-size:12.5px;font-weight:700;
  color:var(--coral);padding:6px 12px;border-radius:10px;
  transition:background .15s;
}
.impersonate-exit:hover{background:rgba(255,90,95,.1)}

/* =========================================================
   Customers — filter bar
   ========================================================= */
.filter-card{padding:16px 18px;margin-bottom:18px}
.filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filter-row + .filter-row{margin-top:12px}
.filter-row .filter-search{flex:1 1 320px;position:relative}
.filter-row .filter-search input{
  width:100%;font-family:inherit;font-size:14px;
  color:var(--ink);background:var(--surface-2);
  border:0;border-radius:12px;
  padding:12px 16px 12px 42px;outline:none;
  transition:box-shadow .15s;
}
.filter-row .filter-search input:focus{
  box-shadow:0 0 0 3px rgba(255,90,95,.18);
}
.filter-row .filter-search svg{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:16px;height:16px;color:var(--ink-3);
  stroke:currentColor;pointer-events:none;
}
.filter-row select{
  font-family:inherit;font-size:13.5px;font-weight:600;
  color:var(--ink);background:var(--surface-2);
  border:0;border-radius:12px;
  padding:11px 34px 11px 14px;
  appearance:none;-webkit-appearance:none;
  outline:none;cursor:pointer;
  min-width:160px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238A8F9A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  transition:box-shadow .15s;
}

.filter-row .input-simple,
.filter-row input[type="text"].input-simple{
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
  background:var(--surface-2);
  border:0;
  border-radius:12px;
  padding:11px 14px;
  outline:none;
  box-shadow:var(--nm-inset-sm);
  min-width:150px;
  transition:box-shadow .15s;
}
.filter-row .input-simple:focus{
  box-shadow:
    var(--nm-inset-sm),
    0 0 0 3px rgba(255,90,95,.18);
}
.filter-row .input-simple::placeholder{
  color:var(--ink-4);
  font-weight:500;
}


.filter-row select:focus{box-shadow:0 0 0 3px rgba(255,90,95,.18)}
.filter-row .filter-actions{margin-left:auto;display:flex;gap:10px;align-items:center}
@media (max-width:640px){
  .filter-row .filter-actions{margin-left:0;width:100%}
  .filter-row .filter-actions .btn-ghost{width:100%;justify-content:center}
}

/* =========================================================
   Customers — card rows
   ========================================================= */
.cust-list{display:flex;flex-direction:column}
.cust-row{
  display:flex;align-items:center;gap:16px;
  padding:16px 18px;
  border-radius:14px;
  text-decoration:none;color:inherit;
  transition:background .15s;
  position:relative;
}
.cust-row + .cust-row{margin-top:2px}
.cust-row:hover{background:var(--surface-2)}

.cust-avatar{
  width:46px;height:46px;
  border-radius:50%;
  display:grid;place-items:center;
  font-size:15px;font-weight:700;
  color:#fff;flex:0 0 auto;
  background:var(--coral-gradient);
  box-shadow:0 6px 14px -6px var(--coral-glow);
  letter-spacing:.5px;
  text-transform:uppercase;
  overflow:hidden;
}
.cust-avatar img{width:100%;height:100%;object-fit:cover;display:block}

.cust-body{flex:1;min-width:0}
.cust-name{
  font-size:14.5px;font-weight:700;color:var(--ink);
  line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cust-meta{
  font-size:12.5px;color:var(--ink-3);
  margin-top:3px;font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cust-meta .dot{opacity:.5;margin:0 6px}

.cust-right{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.cust-stat{text-align:right;line-height:1.2}
.cust-stat .stat-value{font-size:13.5px;font-weight:700;color:var(--ink)}
.cust-stat .stat-label{
  font-size:11px;font-weight:600;color:var(--ink-3);
  letter-spacing:.3px;text-transform:uppercase;margin-top:3px;
}
.cust-stat.muted .stat-value{color:var(--ink-3);font-weight:500}

.cust-menu{
  width:34px;height:34px;
  border-radius:50%;
  display:grid;place-items:center;
  color:var(--ink-3);
  background:transparent;
  transition:background .15s, color .15s;
  flex:0 0 auto;
}
.cust-menu:hover{background:rgba(20,20,40,.06);color:var(--ink)}
.cust-menu svg{width:18px;height:18px;stroke:currentColor}

@media (max-width:520px){
  .cust-row{padding:14px 12px;gap:12px}
  .cust-avatar{width:40px;height:40px;font-size:13px}
  .cust-right .cust-stat:nth-child(1){display:none}
  .cust-right{gap:10px}
}

/* Empty state */
.cust-empty{padding:56px 24px;text-align:center;color:var(--ink-3)}
.cust-empty .icon{font-size:42px;margin-bottom:12px;opacity:.5}
.cust-empty h3{font-size:16px;font-weight:700;color:var(--ink);margin:0 0 6px}
.cust-empty p{font-size:13.5px;margin:0 0 20px}

/* Pop-up menu from "..." button */
.cust-menu-pop{
  min-width:200px;
  padding:6px;
  background:var(--surface);
  border-radius:14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 4px 12px rgba(20,20,40,.06),
    0 16px 36px -20px rgba(20,20,40,.18);
  display:flex;flex-direction:column;gap:2px;
}
.cust-menu-pop a{
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;border-radius:9px;
  font-size:13.5px;font-weight:500;
  color:var(--ink-2);
  transition:background .15s, color .15s;
}
.cust-menu-pop a:hover{background:var(--surface-2);color:var(--ink)}
.cust-menu-pop a.danger{color:var(--red)}
.cust-menu-pop a.danger:hover{background:rgba(239,68,68,.08)}
.cust-menu-pop svg{width:15px;height:15px;stroke:currentColor}
.cust-menu-pop .menu-sep{
  height:1px;margin:4px 6px;
  background:linear-gradient(90deg,transparent,rgba(20,20,40,.08),transparent);
}

/* =========================================================
   Pagination
   ========================================================= */
.pag{
  display:flex;align-items:center;justify-content:center;
  gap:6px;padding:20px 12px 8px;flex-wrap:wrap;
}
.pag-btn{
  min-width:36px;height:36px;padding:0 12px;
  border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;
  color:var(--ink-2);
  background:transparent;text-decoration:none;
  transition:background .15s, color .15s;
  cursor:pointer;
}
.pag-btn:hover:not(.is-disabled):not(.is-active){
  background:var(--surface-2);color:var(--ink);
}
.pag-btn.is-active{
  background:var(--coral-gradient);color:#fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 14px -6px var(--coral-glow);
}
.pag-btn.is-disabled{color:var(--ink-4);cursor:not-allowed}
.pag-btn svg{width:16px;height:16px;stroke:currentColor}
.pag-gap{color:var(--ink-3);font-size:13px;padding:0 4px}

/* =========================================================
   Form page — back link, title
   ========================================================= */
.form-page-back{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:var(--ink-3);
  margin-bottom:14px;transition:color .15s;
}
.form-page-back:hover{color:var(--ink)}
.form-page-back svg{width:16px;height:16px;stroke:currentColor}

.form-page-title{
  font-size:20px;font-weight:800;color:var(--ink);
  margin:0 0 20px;letter-spacing:-.4px;
}

/* =========================================================
   Form page — two column layout with sidebar
   ========================================================= */
.form-page-split{
  display:grid;
  grid-template-columns:minmax(0,720px) 1fr;
  gap:20px;
  align-items:start;
}
@media (max-width:1100px){
  .form-page-split{grid-template-columns:1fr}
}
.form-page-main{min-width:0}
.form-page-aside{min-width:0}
@media (min-width:1101px){
  .form-page-aside{position:sticky;top:20px}
}

.recent-list{display:flex;flex-direction:column;gap:0}
.recent-row{
  display:flex;align-items:center;gap:12px;
  padding:12px 8px;
  text-decoration:none;color:inherit;
  transition:background .15s;
  position:relative;
}
.recent-row + .recent-row::before{
  content:"";
  position:absolute;
  top:0;
  left:8px;
  right:8px;
  border-top:1px dashed rgba(138,143,154,.28);
  pointer-events:none;
}
.recent-row:hover{
  background:var(--surface-2);
  border-radius:12px;
}
.recent-row:hover{background:var(--surface-2)}
.recent-body{flex:1;min-width:0}
.recent-name{
  font-size:13.5px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.2;
}
.recent-meta{
  font-size:11.5px;color:var(--ink-3);font-weight:500;margin-top:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* =========================================================
   Customer detail page
   ========================================================= */
.cust-detail-head{
  display:flex;align-items:center;gap:18px;
  margin-bottom:22px;flex-wrap:wrap;
}
.cust-detail-avatar{
  width:72px;height:72px;
  border-radius:50%;
  display:grid;place-items:center;
  font-size:24px;font-weight:700;
  color:#fff;
  background:var(--coral-gradient);
  box-shadow:0 10px 24px -8px var(--coral-glow);
  letter-spacing:1px;text-transform:uppercase;
  flex:0 0 auto;
}
.cust-detail-name-block{flex:1;min-width:0}
.cust-detail-name{
  font-size:24px;font-weight:800;color:var(--ink);
  margin:0 0 6px;letter-spacing:-.5px;
}
.cust-detail-meta{font-size:13px;color:var(--ink-3);font-weight:500}
.cust-detail-actions{display:flex;gap:10px;flex-wrap:wrap}

.cust-detail-stats{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:14px;margin-bottom:22px;
}
@media (max-width:640px){
  .cust-detail-stats{grid-template-columns:repeat(2,1fr)}
}

.cust-detail-stat{
  position:relative;
  background:var(--surface);
  border-radius:14px;
  padding:22px 18px 16px;
  box-shadow:var(--sh-2);
  overflow:hidden;              /* ← clips the accent to the card shape */
}
.cust-detail-stat{
  position:relative;
  padding-top:22px;
}

.cds-accent{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
}

.cds-value{font-size:18px;font-weight:800;color:var(--ink);letter-spacing:-.4px}
.cds-label{
  font-size:11.5px;font-weight:600;color:var(--ink-3);
  letter-spacing:.4px;text-transform:uppercase;margin-top:6px;
}

.cust-visits-list{display:flex;flex-direction:column}
.cust-visit{
  display:flex;align-items:center;gap:12px;
  padding:12px 4px;
  border-top:1px solid var(--line);
}

.cust-visit{
  transition:background .15s;
  border-radius:8px;
}
.cust-visit:hover{
  background:var(--surface-2);
}

.cust-visit:first-child{border-top:0}
.cust-visit .cv-date{
  font-size:12px;font-weight:600;color:var(--ink-3);min-width:92px;
}
.cust-visit .cv-desc{
  flex:1;min-width:0;font-size:13.5px;color:var(--ink);
  font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cust-visit .cv-amt{
  font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap;
}

/* =========================================================
   Utility
   ========================================================= */
@media (max-width:1199px){
  .content{padding-bottom:calc(var(--tabbar-h) + var(--safe-b) + 12px)}
}
@media (max-width:576px){
  .balance-legend{grid-template-columns:repeat(2,1fr)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001s !important;
    transition-duration:.001s !important;
  }
}

/* =========================================================
   Toast — transient notification
   ========================================================= */
.scizor-toast{
  position:fixed;
  left:50%;
  bottom:calc(var(--tabbar-h) + var(--safe-b) + 20px);
  transform:translateX(-50%) translateY(12px);
  z-index:200;

  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;

  font-size:13.5px;
  font-weight:600;
  color:#fff;

  background:linear-gradient(180deg,
    rgba(42,42,54,.96) 0%,
    rgba(24,24,34,.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 12px 32px -8px rgba(0,0,0,.55),
    0 4px 12px -4px rgba(0,0,0,.4);

  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  max-width:calc(100vw - 32px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.scizor-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* Success — green accent bar on the left */
.scizor-toast-success::before{
  content:"";
  width:4px;height:18px;
  border-radius:3px;
  background:#22C55E;
  box-shadow:0 0 10px rgba(34,197,94,.5);
}

/* Error — red accent bar */
.scizor-toast-error::before{
  content:"";
  width:4px;height:18px;
  border-radius:3px;
  background:#EF4444;
  box-shadow:0 0 10px rgba(239,68,68,.5);
}

/* Info — coral accent bar */
.scizor-toast-info::before{
  content:"";
  width:4px;height:18px;
  border-radius:3px;
  background:var(--coral);
  box-shadow:0 0 10px rgba(255,90,95,.5);
}

/* On desktop, move the toast to the top-right corner (topbar area
   is emptier there and it doesn't compete with the FAB) */
@media (min-width:1200px){
  .scizor-toast{
    left:auto;
    right:28px;
    bottom:auto;
    top:88px;
    transform:translateY(-12px);
  }
  .scizor-toast.is-visible{
    transform:translateY(0);
  }
}

/* SweetAlert cancel button — dark text on light background */
.swal2-cancel-dark-text{
  color: var(--ink-2) !important;
  font-weight: 600 !important;
}
.swal2-cancel-dark-text:hover{
  color: var(--ink) !important;
}

/* =========================================================
   Login page — dark textured background with image header
   ========================================================= */

.login-page{
  min-height:100dvh;
  width:100%;
  display:grid;
  place-items:center;
  padding:32px 20px;
  position:relative;
  overflow-y:auto;

  background:
    radial-gradient(900px 600px at 15% -10%, rgba(255,90,95,.28), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(168,85,247,.22), transparent 55%),
    radial-gradient(700px 500px at 50% 50%, rgba(78,205,196,.06), transparent 60%),
    linear-gradient(140deg, #17171F 0%, #1E1B2E 45%, #12121A 100%);
  background-attachment:fixed;
}

.login-page::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat:repeat;
  opacity:.5;
  pointer-events:none;
}

.login-page::after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:520px;height:520px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.03);
  pointer-events:none;
  box-shadow:
    0 0 0 100px rgba(255,255,255,.015),
    0 0 0 220px rgba(255,255,255,.008);
}

.login-card{
  position:relative;
  z-index:1;
  width:100%;
  max-width:440px;
  background:var(--surface);
  border-radius:26px;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 30px 60px -20px rgba(0,0,0,.7),
    0 60px 120px -60px rgba(0,0,0,.6);
}

.login-hero{
  position:relative;
  height:200px;
  overflow:hidden;
  background:#2A2A36;
}
.login-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("../img/login-hero.jpg");
  background-size:cover;
  background-position:center;
  filter:brightness(.72) saturate(1.1);
  transform:scale(1.04);
}
.login-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(20,20,30,.15) 0%,
      rgba(20,20,30,.35) 55%,
      rgba(20,20,30,.72) 100%),
    linear-gradient(160deg,
      rgba(255,90,95,.35) 0%,
      rgba(168,85,247,.15) 100%);
}

.login-hero-inner{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:2;
  padding:24px;
}
.login-logo{
  height:58px;
  width:auto;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));
}

.login-body{padding:30px 32px 32px}

.login-title{
  margin:0 0 4px;
  font-size:22px;
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.4px;
  text-align:center;
}
.login-sub{
  margin:0 0 24px;
  font-size:13.5px;
  color:var(--ink-3);
  text-align:center;
  font-weight:500;
}

.login-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-8px 0 20px;
}
.login-forgot{
  font-size:13px;
  font-weight:600;
  color:var(--coral);
  transition:color .15s;
}
.login-forgot:hover{color:var(--coral-dark)}

.login-submit{
  width:100%;
  padding:16px 20px;
  border-radius:14px;
  background:var(--coral-gradient);
  color:#fff !important;
  font-size:15px;
  font-weight:700;
  letter-spacing:.1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 14px 30px -8px var(--coral-glow),
    0 6px 14px -4px rgba(255,90,95,.32);
  transition:opacity .15s, transform .12s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.login-submit:hover{opacity:.94}
.login-submit:active{transform:scale(.985)}
.login-submit svg{color:#fff !important;stroke:#fff !important}

.login-foot{
  margin-top:24px;
  padding-top:18px;
  box-shadow:inset 0 1px 0 rgba(20,20,40,.06);
  text-align:center;
  font-size:13px;
  color:var(--ink-3);
  font-weight:500;
}
.login-foot a{color:var(--coral);font-weight:600}
.login-foot a:hover{color:var(--coral-dark)}

.login-body .field .input{
  background:var(--surface-2);
  box-shadow:
    inset 3px 3px 8px var(--nm-dark-soft),
    inset -3px -3px 8px var(--nm-light);
}
.login-body .field .input:focus{
  background:var(--surface);
  box-shadow:
    inset 2px 2px 6px rgba(163,177,198,.22),
    inset -2px -2px 6px rgba(255,255,255,.9),
    0 10px 26px -6px rgba(255,90,95,.42),
    0 4px 12px -4px rgba(255,90,95,.28);
}

.field-pass{position:relative}
.field-pass .input{padding-right:52px}
.field-pass .pass-toggle{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:8px;
  color:var(--ink-3);
  transition:background .15s, color .15s;
  z-index:3;
}
.field-pass .pass-toggle:hover{color:var(--ink)}
.field-pass .pass-toggle svg{width:18px;height:18px}

@media (max-width:480px){
  .login-page{padding:16px}
  .login-card{border-radius:22px}
  .login-hero{height:160px}
  .login-logo{height:48px}
  .login-body{padding:24px 22px 26px}
}

/* =========================================================
   Switch — toggle for forms
   ========================================================= */
.switch{
  display:inline-flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  font-size:14px;
  color:var(--ink-2);
  font-weight:500;
  line-height:1.4;
  user-select:none;
}
.switch input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.switch .track{
  position:relative;
  width:48px;
  height:28px;
  border-radius:999px;
  background:#DCDFE4;
  transition:background .2s, box-shadow .2s;
  flex:0 0 auto;
  box-shadow:inset 0 1px 2px rgba(20,20,40,.08);
}
.switch .track::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 2px 4px rgba(20,20,40,.18),
    0 1px 1px rgba(20,20,40,.08);
  transition:transform .22s cubic-bezier(.2,.8,.2,1);
}
.switch input:checked + .track{
  background:var(--coral-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 1px 2px rgba(0,0,0,.05);
}
.switch input:checked + .track::after{
  transform:translateX(20px);
}
.switch input:focus-visible + .track{
  box-shadow:
    inset 0 1px 2px rgba(20,20,40,.08),
    0 0 0 3px rgba(255,90,95,.2);
}


/* =========================================================
   Checkboxes / radios
   ========================================================= */
.choice-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:24px;
}
.choice-stack.wide{gap:22px;margin-top:6px}
.choice-stack:last-of-type{margin-bottom:0}

.check{
  display:inline-flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  font-size:14px;
  color:var(--ink-2);
  font-weight:500;
  user-select:none;
  line-height:1.4;
}
.check input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.check .box{
  width:24px;
  height:24px;
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--nm-raised-sm);
  display:grid;
  place-items:center;
  transition:box-shadow .15s, background .15s;
  flex:0 0 auto;
}
.check .box::after{
  content:"";
  width:6px;
  height:11px;
  border-right:2.2px solid #fff;
  border-bottom:2.2px solid #fff;
  border-radius:1px;
  transform:translateY(-1px) rotate(45deg) scale(0);
  transform-origin:center;
  transition:transform .22s cubic-bezier(.2,.8,.2,1);
  opacity:0;
}
.check input:checked + .box{
  background:var(--coral-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 4px 10px -3px var(--coral-glow);
}
.check input:checked + .box::after{
  transform:translateY(-2px) rotate(45deg) scale(1);
  opacity:1;
}
.check input:focus-visible + .box{
  box-shadow:
    var(--nm-raised-sm),
    0 0 0 3px rgba(255,90,95,.22);
}
.check.radio .box{border-radius:50%}
.check.radio .box::after{
  border-radius:50%;
  width:10px;
  height:10px;
  border:0;
  background:transparent;
  transform:scale(.4);
}
.check.radio input:checked + .box::after{
  background:#fff;
  transform:scale(1);
  opacity:1;
}

/* =========================================================
   Services + Categories
   ========================================================= */

.svc-icon{
  width:46px;height:46px;
  border-radius:12px;
  display:grid;place-items:center;
  color:#fff;
  flex:0 0 auto;
  background:linear-gradient(135deg,#FF8A5B,#FF5A5F);
  box-shadow:0 6px 14px -6px var(--coral-glow);
}
.svc-icon svg{width:22px;height:22px;color:#fff;stroke:#fff}

.svc-icon-sm{width:36px;height:36px;border-radius:10px}
.svc-icon-sm svg{width:18px;height:18px}

.svc-chip{
  display:inline-block;
  padding:2px 8px;
  border-radius:6px;
  background:var(--coral-tint);
  color:var(--coral-dark);
  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
  margin-right:6px;
}

.cat-badge{
  min-width:64px;
  padding:5px 10px;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  text-align:center;
  flex:0 0 auto;
}
.cat-badge-service{background:rgba(168,85,247,.12);color:#A855F7}
.cat-badge-product{background:rgba(34,197,94,.12);color:#15803D}

.cust-row[data-svc-row]{
  cursor: default;
}
.cust-row[data-svc-row]:hover{
  background: var(--surface-2);
}

/* =========================================================
   Catalog — Add chooser
   ========================================================= */
.catalog-add-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  max-width:760px;
}
@media (max-width:640px){
  .catalog-add-grid{grid-template-columns:1fr}
}
.catalog-add-card{
  display:block;
  padding:28px;
  border-radius:var(--r-lg);
  background:var(--surface);
  box-shadow:var(--nm-raised);
  text-decoration:none;
  color:inherit;
  transition:transform .15s, box-shadow .2s;
}
.catalog-add-card:hover{
  transform:translateY(-3px);
  box-shadow:
    8px 8px 20px var(--nm-dark-soft),
    -8px -8px 20px var(--nm-light);
}
.catalog-add-icon{
  width:52px;height:52px;
  border-radius:14px;
  display:grid;place-items:center;
  color:#fff;
  margin-bottom:16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 8px 20px -8px rgba(0,0,0,.4);
}
.catalog-add-icon svg{width:24px;height:24px;color:#fff;stroke:#fff}
.catalog-add-icon.coral{background:var(--coral-gradient)}
.catalog-add-icon.mint {background:linear-gradient(135deg,#4ECDC4,#0EA5E9)}
.catalog-add-title{
  font-size:17px;font-weight:700;color:var(--ink);
  letter-spacing:-.3px;margin-bottom:6px;
}
.catalog-add-sub{
  font-size:13.5px;color:var(--ink-3);font-weight:500;
  line-height:1.5;margin-bottom:16px;
}
.catalog-add-cta{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:700;color:var(--coral);
}
.catalog-add-cta svg{width:14px;height:14px;stroke:currentColor}


/* =========================================================
   Products — list styles (extends .cust-row)
   ========================================================= */

.svc-icon-warn{
  background:linear-gradient(135deg,#F59E0B,#EF4444) !important;
  box-shadow:0 6px 14px -6px rgba(239,68,68,.55) !important;
}

/* =========================================================
   Stock — table view
   ========================================================= */
.stock-table{display:flex;flex-direction:column}
.stock-thead,
.stock-trow{
  display:grid;
  grid-template-columns:2fr 1fr 120px 120px 130px;
  gap:14px;
  align-items:center;
  padding:14px 16px;
}
.stock-thead{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--ink-3);
  border-bottom:1px solid var(--line);
}
.stock-trow{
  border-bottom:1px solid var(--line);
  transition:background .15s;
}
.stock-trow:last-child{border-bottom:0}
.stock-trow:hover{background:var(--surface-2)}

.stock-cell-name{min-width:0}
.stock-name{
  font-size:14px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.stock-sku{
  font-size:11.5px;color:var(--ink-3);
  margin-top:2px;font-weight:500;
}
.stock-cell-cat{font-size:12.5px}

.stock-qty{
  font-size:14px;font-weight:700;color:var(--ink);
  letter-spacing:-.2px;
}
.stock-qty.is-low{color:var(--red)}
.stock-reorder{
  font-size:11px;color:var(--ink-3);
  font-weight:500;margin-top:2px;
}

.ta-r{text-align:right}
.stock-cell-cost,
.stock-cell-value{
  font-size:13.5px;
  color:var(--ink-2);
  font-weight:500;
}
.stock-cell-value{font-weight:700;color:var(--ink)}

/* Stock value summary */
.stock-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink-2);
  box-shadow:inset 0 1px 0 var(--line);
}
.stock-summary b{color:var(--ink);font-weight:800}

/* Stock by branch (products_edit) */
.stock-branch-list{display:flex;flex-direction:column;gap:2px}
.stock-branch-row{
  display:flex;
  justify-content:space-between;
  padding:10px 4px;
  border-radius:8px;
  font-size:13.5px;
}
.stock-branch-name{color:var(--ink-2);font-weight:500}
.stock-branch-qty{color:var(--ink);font-weight:700}
.stock-branch-total{
  margin-top:6px;
  padding-top:12px;
  box-shadow:inset 0 1px 0 var(--line);
}
.stock-branch-total .stock-branch-name{color:var(--ink);font-weight:700}
.stock-branch-total .stock-branch-qty{font-size:15px}

/* =========================================================
   POS — New Sale screen
   ========================================================= */

/* ---------- POS wrapper (desktop) ---------- */
.pos-wrap{
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  min-height: calc(100dvh - var(--topbar-h) - 40px);
  margin: -24px -28px -32px;
  padding: 20px 24px 32px;
  align-items: start;
}

/* ---------- Catalog (left column, desktop) ---------- */
.pos-catalog{
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100dvh - var(--topbar-h) - 40px - 40px);
  position: sticky;
  top: 0;
}

/* ---------- Tabs ---------- */
.pos-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pos-tab{
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--nm-raised-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow .15s, color .15s;
}
.pos-tab svg{width:18px;height:18px}
.pos-tab:hover{color: var(--ink)}
.pos-tab.is-active{
  background: var(--coral-gradient);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 22px -10px var(--coral-glow);
}

/* ---------- Search ---------- */
.pos-search-wrap{margin-bottom:14px}
.pos-search{
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--nm-inset-sm);
}
.pos-search svg{
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  stroke: currentColor;
  margin-right: 10px;
  flex: 0 0 auto;
}
.pos-search input{
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.pos-search input::placeholder{color: var(--ink-4)}

/* ---------- Items grid (desktop) ---------- */
.pos-items{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 4px;
  align-content: start;
}

.pos-loading,
.pos-noresults{
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- Item card ---------- */
.pos-item{
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--nm-raised-sm);
  transition: transform .12s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 90px;
  max-height: 110px;
  position: relative;
  overflow: hidden;
}
.pos-item:hover{
  transform: translateY(-2px);
  box-shadow:
    4px 4px 12px var(--nm-dark-soft),
    -4px -4px 12px var(--nm-light);
}
.pos-item:active{transform:scale(.98)}

.pos-item-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pos-item-name{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pos-item-icon{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  background: var(--coral-gradient);
}
.pos-item-icon svg{width:12px;height:12px;color:#fff;stroke:#fff}
.pos-item-icon.product{background: linear-gradient(135deg,#4ECDC4,#0EA5E9)}

.pos-item-meta{
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 14px;
}
.pos-item-meta .chip{
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--coral-tint);
  color: var(--coral-dark);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .2px;
  flex: 0 0 auto;
}
.pos-item-bottom{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pos-item-price{
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1;
}
.pos-item-stock{
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .2px;
  white-space: nowrap;
}
.pos-item-stock.low{color: var(--red)}
.pos-item-stock.none{color: var(--red)}
.pos-item.is-out{opacity: .45; cursor: not-allowed}

/* ---------- Cart (right column, desktop) ---------- */
.pos-cart{
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--nm-raised);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  max-height: calc(100dvh - var(--topbar-h) - 40px - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--nm-dark-soft) transparent;
}
.pos-cart::-webkit-scrollbar{width: 6px}
.pos-cart::-webkit-scrollbar-track{background: transparent}
.pos-cart::-webkit-scrollbar-thumb{
  background: var(--nm-dark-soft);
  border-radius: 99px;
}

.pos-cart-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  z-index: 2;
}
.pos-cart-close svg{width:18px;height:18px}

/* ---------- Sections ---------- */
.pos-section{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pos-section:last-child{border-bottom: 0}

/* Cart items section — no flex tricks, just lets .pos-cart-lines grow */
.pos-section.pos-cart-section{
  /* intentionally empty in base CSS; mobile override below */
}

.pos-section-label{
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pos-section-label span{
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Customer ---------- */
.pos-customer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--nm-inset-sm);
}
.pos-customer-empty{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.pos-customer-empty svg{width:16px;height:16px;stroke:currentColor}
.pos-customer-btn{
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--coral);
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: var(--nm-raised-sm);
}
.pos-customer-btn:hover{color: var(--coral-dark)}

.pos-customer-chosen{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--nm-inset-sm);
}
.pos-customer-avatar{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}
.pos-customer-info{flex:1;min-width:0}
.pos-customer-name{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-customer-phone{
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 500;
}
.pos-customer-clear{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.pos-customer-clear:hover{background: rgba(20,20,40,.06); color: var(--ink)}
.pos-customer-clear svg{width:14px;height:14px}

/* ---------- Cart lines ---------- */
.pos-cart-empty{
  text-align: center;
  padding: 24px 12px;
  color: var(--ink-3);
}
.pos-cart-empty svg{
  width: 32px;
  height: 32px;
  color: var(--ink-4);
  stroke: currentColor;
  margin: 0 auto 8px;
}
.pos-cart-empty-hint{
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 4px;
}

.pos-cart-lines{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pos-cart-line{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-2);
  transition: background .15s;
}
.pos-cart-line-icon{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--coral-gradient);
  color: #fff;
  flex: 0 0 auto;
}
.pos-cart-line-icon.product{background: linear-gradient(135deg,#4ECDC4,#0EA5E9)}
.pos-cart-line-icon svg{width:14px;height:14px;color:#fff;stroke:#fff}

.pos-cart-line-body{flex:1;min-width:0}
.pos-cart-line-name{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-cart-line-price{
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 500;
}
.pos-cart-line-stepper{
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border-radius: 10px;
  padding: 2px;
  box-shadow: var(--nm-raised-sm);
  flex-shrink: 0;
}
.pos-cart-line-stepper button{
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background .12s;
}
.pos-cart-line-stepper button:hover{background: var(--surface-2)}
.pos-cart-line-stepper button svg{width:12px;height:12px;stroke:currentColor}
.pos-cart-line-stepper span{
  min-width: 22px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.pos-cart-line-total{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  min-width: 56px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.pos-cart-line-remove{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  flex: 0 0 auto;
}
.pos-cart-line-remove:hover{background: rgba(239,68,68,.1); color: var(--red)}
.pos-cart-line-remove svg{width:12px;height:12px}

/* ---------- Summary ---------- */
.pos-summary{
  background: var(--surface-2);
  margin: 0 -16px;
  padding: 14px 16px;
}
.pos-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.pos-row-discount{align-items: center}
.pos-discount-input{display: flex; align-items: center; gap: 4px}
.pos-discount-input input{
  width: 88px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: right;
  outline: none;
  box-shadow: var(--nm-inset-sm);
}
.pos-discount-toggle{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--nm-raised-sm);
  transition: background .12s, color .12s;
}
.pos-discount-toggle:hover{color: var(--ink)}
.pos-discount-toggle[data-mode="percent"]{
  background: var(--coral-gradient);
  color: #fff;
}
.pos-row-total{
  margin-top: 8px;
  padding-top: 12px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
}

/* ---------- Payment ---------- */
.pos-pay-methods{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.pos-pay-btn{
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: box-shadow .15s, color .15s;
  box-shadow: var(--nm-inset-sm);
}
.pos-pay-btn svg{width:18px;height:18px;stroke:currentColor}
.pos-pay-btn:hover{color: var(--ink)}
.pos-pay-btn.is-active{
  background: var(--coral-gradient);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 20px -10px var(--coral-glow);
}

.pos-quick-cash{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pos-quick-cash button{
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--nm-raised-sm);
}
.pos-quick-cash button:hover{color: var(--ink)}
.pos-change{
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  padding: 8px 0;
}
.pos-change b{font-size:16px;color: var(--ink); font-weight: 800}

/* ---------- Actions / save ---------- */
.pos-actions{
  display: flex;
  gap: 8px;
  padding-top: 14px;
  margin-top: auto;
}
.pos-btn-save{
  flex: 1;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--coral-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 12px 26px -8px var(--coral-glow),
    0 6px 14px -4px rgba(255,90,95,.3);
  transition: opacity .15s, transform .12s;
}
.pos-btn-save:hover{opacity: .94}
.pos-btn-save:active{transform: scale(.98)}
.pos-btn-save:disabled{opacity: .4; cursor: not-allowed; box-shadow: none}
.pos-btn-save svg{width:18px;height:18px;color:#fff;stroke:#fff}
.pos-btn-clear{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--red);
  display: grid;
  place-items: center;
  box-shadow: var(--nm-raised-sm);
}
.pos-btn-clear:hover{
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
}
.pos-btn-clear svg{width:18px;height:18px;stroke:currentColor}

/* ---------- Customer picker modal ---------- */
.pos-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s linear .2s;
}
.pos-modal.is-open{
  opacity: 1;
  visibility: visible;
  transition: opacity .2s, visibility 0s linear 0s;
}
.pos-modal-inner{
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 30px 60px -20px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.pos-modal.is-open .pos-modal-inner{transform: translateY(0) scale(1)}

.pos-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.pos-modal-title{font-size:16px;font-weight:700;color:var(--ink)}
.pos-modal-close{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.pos-modal-close:hover{background: var(--surface-2); color: var(--ink)}
.pos-modal-close svg{width:16px;height:16px}

.pos-modal-search{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface-2);
}
.pos-modal-search svg{
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  stroke: currentColor;
}
.pos-modal-search input{
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.pos-modal-search input::placeholder{color: var(--ink-4)}

.pos-modal-results{
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  max-height: 400px;
  padding: 8px;
}
.pos-modal-hint{
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.pos-modal-result{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .12s;
}
.pos-modal-result:hover{background: var(--surface-2)}
.pos-modal-result-avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  flex: 0 0 auto;
}
.pos-modal-result-info{flex:1;min-width:0}
.pos-modal-result-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-modal-result-phone{
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 500;
}

.pos-modal-foot{
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}
.pos-modal-addlink{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
}
.pos-modal-addlink svg{width:14px;height:14px;stroke:currentColor}

.pos-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,15,25,.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, visibility 0s linear .2s;
}
.pos-modal-backdrop.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s, visibility 0s linear 0s;
}

/* =========================================================
   POS — MOBILE (max-width: 1199px)
   Placed AFTER all desktop rules to win the cascade naturally
   No !important needed
   ========================================================= */
@media (max-width: 1199px){

  /* ---------- Wrapper: plain block flow ---------- */
  .pos-wrap{
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: -18px -16px 0;
    padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);
    overflow: visible;
    position: static;
  }

  /* ---------- Catalog: plain block, no cap, no sticky ---------- */
  .pos-catalog{
    display: block;
    position: static;
    top: auto;
    max-height: none;
    min-height: auto;
    overflow: visible;
    margin-bottom: 16px;
  }

  .pos-items{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 4px 0;
    max-height: none;
    overflow: visible;
    height: auto;
  }

  /* ---------- Cart: plain block, no scroll, no sticky ---------- */
  .pos-cart{
    display: block;
    position: static;
    top: auto;
    max-height: none;
    min-height: auto;
    height: auto;
    overflow: visible;
    margin-top: 0;
    padding: 16px;
  }

  .pos-cart-close{display: none}

  /* ---------- Sections ---------- */
  .pos-section{
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .pos-section:last-child{border-bottom: 0}

  .pos-section.pos-cart-section{
    display: block;
    flex: none;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 12px 0;
  }

  .pos-cart-lines{
    display: block;
    flex: none;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .pos-cart-line{margin-bottom: 6px}

  /* ---------- Actions ---------- */
  .pos-actions{
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }
}
.pos-customer-btn:hover{color:var(--coral-dark)}

.pos-customer-chosen{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--surface-2);
  box-shadow:var(--nm-inset-sm);
}
.pos-customer-avatar{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--coral-gradient);color:#fff;
  font-size:12px;font-weight:700;letter-spacing:.5px;
}
.pos-customer-info{flex:1;min-width:0}
.pos-customer-name{
  font-size:13px;font-weight:700;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pos-customer-phone{
  font-size:11.5px;color:var(--ink-3);margin-top:2px;font-weight:500;
}
.pos-customer-clear{
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--ink-3);
}
.pos-customer-clear:hover{background:rgba(20,20,40,.06);color:var(--ink)}
.pos-customer-clear svg{width:14px;height:14px}

/* ---------- Cart lines ---------- */
.pos-cart-empty{
  text-align:center;
  padding:24px 12px;
  color:var(--ink-3);
}
.pos-cart-empty svg{
  width:32px;height:32px;color:var(--ink-4);
  stroke:currentColor;margin:0 auto 8px;
}
.pos-cart-empty-hint{
  font-size:11.5px;color:var(--ink-4);margin-top:4px;
}

.pos-cart-lines{
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* No flex:1, no overflow-y:auto, no min-height:0 */
}

.pos-cart-lines::-webkit-scrollbar{width:5px}
.pos-cart-lines::-webkit-scrollbar-track{background:transparent}
.pos-cart-lines::-webkit-scrollbar-thumb{
  background:var(--nm-dark-soft);
  border-radius:99px;
}

.pos-cart-line{
  display:flex;align-items:center;gap:10px;
  padding:8px;
  border-radius:12px;
  background:var(--surface-2);
  transition:background .15s;
  flex-shrink:0;
}
.pos-cart-line-icon{
  width:30px;height:30px;border-radius:8px;
  display:grid;place-items:center;
  background:var(--coral-gradient);color:#fff;flex:0 0 auto;
}
.pos-cart-line-icon.product{background:linear-gradient(135deg,#4ECDC4,#0EA5E9)}
.pos-cart-line-icon svg{width:14px;height:14px;color:#fff;stroke:#fff}

.pos-cart-line-body{flex:1;min-width:0}
.pos-cart-line-name{
  font-size:13px;font-weight:600;color:var(--ink);
  line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pos-cart-line-price{
  font-size:11px;color:var(--ink-3);margin-top:2px;font-weight:500;
}
.pos-cart-line-stepper{
  display:flex;align-items:center;gap:2px;
  background:var(--surface);
  border-radius:10px;
  padding:2px;
  box-shadow:var(--nm-raised-sm);
  flex-shrink:0;
}
.pos-cart-line-stepper button{
  width:24px;height:24px;border-radius:6px;
  display:grid;place-items:center;
  color:var(--ink-2);
  transition:background .12s;
}
.pos-cart-line-stepper button:hover{background:var(--surface-2)}
.pos-cart-line-stepper button svg{width:12px;height:12px;stroke:currentColor}
.pos-cart-line-stepper span{
  min-width:22px;text-align:center;
  font-size:12.5px;font-weight:700;color:var(--ink);
}
.pos-cart-line-total{
  font-size:12.5px;font-weight:700;color:var(--ink);
  min-width:56px;text-align:right;
  white-space:nowrap;
  flex-shrink:0;
}
.pos-cart-line-remove{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--ink-3);flex:0 0 auto;
}
.pos-cart-line-remove:hover{background:rgba(239,68,68,.1);color:var(--red)}
.pos-cart-line-remove svg{width:12px;height:12px}

/* ---------- Summary ---------- */
.pos-summary{background:var(--surface-2);margin:0 -18px;padding:14px 18px}
.pos-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:6px 0;
  font-size:13px;color:var(--ink-2);font-weight:500;
}
.pos-row-discount{align-items:center}
.pos-discount-input{display:flex;align-items:center;gap:4px}
.pos-discount-input input{
  width:88px;
  font-family:inherit;font-size:13px;font-weight:600;
  color:var(--ink);
  background:var(--surface);
  border:0;border-radius:8px;
  padding:6px 10px;
  text-align:right;
  outline:none;
  box-shadow:var(--nm-inset-sm);
}
.pos-discount-toggle{
  width:32px;height:32px;border-radius:8px;
  background:var(--surface);
  font-weight:700;font-size:13px;
  color:var(--ink-2);
  box-shadow:var(--nm-raised-sm);
  transition:background .12s, color .12s;
}
.pos-discount-toggle:hover{color:var(--ink)}
.pos-discount-toggle[data-mode="percent"]{
  background:var(--coral-gradient);color:#fff;
}
.pos-row-total{
  margin-top:8px;padding-top:12px;
  box-shadow:inset 0 1px 0 var(--line);
  font-size:17px;font-weight:800;color:var(--ink);
  letter-spacing:-.3px;
}

/* ---------- Payment ---------- */
.pos-pay-methods{
  display:grid;grid-template-columns:repeat(3,1fr);gap:6px;
  margin-bottom:12px;
}
.pos-pay-btn{
  padding:12px 8px;border-radius:12px;
  background:var(--surface-2);
  font-size:12.5px;font-weight:600;color:var(--ink-2);
  display:flex;flex-direction:column;align-items:center;gap:6px;
  transition:box-shadow .15s, color .15s;
  box-shadow:var(--nm-inset-sm);
}
.pos-pay-btn svg{width:18px;height:18px;stroke:currentColor}
.pos-pay-btn:hover{color:var(--ink)}
.pos-pay-btn.is-active{
  background:var(--coral-gradient);color:#fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 10px 20px -10px var(--coral-glow);
}

.pos-quick-cash{
  display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;
}
.pos-quick-cash button{
  padding:6px 12px;border-radius:8px;
  background:var(--surface-2);
  font-size:12px;font-weight:600;color:var(--ink-2);
  box-shadow:var(--nm-raised-sm);
}
.pos-quick-cash button:hover{color:var(--ink)}
.pos-change{
  text-align:center;
  font-size:13px;color:var(--ink-2);font-weight:600;
  padding:8px 0;
}
.pos-change b{font-size:16px;color:var(--ink);font-weight:800}

/* ---------- Save buttons ---------- */
.pos-actions{
  display:flex;gap:8px;
  padding-top:14px;
  margin-top:auto;
}
.pos-btn-save{
  flex:1;
  padding:16px 20px;
  border-radius:14px;
  background:var(--coral-gradient);
  color:#fff;font-size:15px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 12px 26px -8px var(--coral-glow),
    0 6px 14px -4px rgba(255,90,95,.3);
  transition:opacity .15s, transform .12s;
}
.pos-btn-save:hover{opacity:.94}
.pos-btn-save:active{transform:scale(.98)}
.pos-btn-save:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.pos-btn-save svg{width:18px;height:18px;color:#fff;stroke:#fff}
.pos-btn-clear{
  width:52px;height:52px;
  border-radius:14px;
  background:var(--surface);
  color:var(--red);
  display:grid;place-items:center;
  box-shadow:var(--nm-raised-sm);
}
.pos-btn-clear:hover{
  box-shadow:
    5px 5px 12px var(--nm-dark-soft),
    -5px -5px 12px var(--nm-light);
}
.pos-btn-clear svg{width:18px;height:18px;stroke:currentColor}

/* ---------- Mobile floating bar ---------- */


/* ---------- Customer picker modal ---------- */
.pos-modal{
  position:fixed;inset:0;
  z-index:200;
  display:grid;place-items:center;
  padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity .2s, visibility 0s linear .2s;
}
.pos-modal.is-open{
  opacity:1;visibility:visible;
  transition:opacity .2s, visibility 0s linear 0s;
}
.pos-modal-inner{
  position:relative;
  width:100%;max-width:460px;
  max-height:calc(100dvh - 40px);
  background:var(--surface);
  border-radius:var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 30px 60px -20px rgba(0,0,0,.5);
  display:flex;flex-direction:column;
  overflow:hidden;
  transform:translateY(20px) scale(.96);
  transition:transform .25s cubic-bezier(.2,.8,.2,1);
}
.pos-modal.is-open .pos-modal-inner{transform:translateY(0) scale(1)}

.pos-modal-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px 14px;
  border-bottom:1px solid var(--line);
}
.pos-modal-title{font-size:16px;font-weight:700;color:var(--ink)}
.pos-modal-close{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--ink-3);
}
.pos-modal-close:hover{background:var(--surface-2);color:var(--ink)}
.pos-modal-close svg{width:16px;height:16px}

.pos-modal-search{
  display:flex;align-items:center;gap:10px;
  padding:14px 20px;
  background:var(--surface-2);
}
.pos-modal-search svg{width:16px;height:16px;color:var(--ink-3);stroke:currentColor}
.pos-modal-search input{
  flex:1;border:0;background:none;outline:none;
  font-family:inherit;font-size:14px;color:var(--ink);
}
.pos-modal-search input::placeholder{color:var(--ink-4)}

.pos-modal-results{
  flex:1;
  overflow-y:auto;
  min-height:200px;
  max-height:400px;
  padding:8px;
}
.pos-modal-hint{
  padding:32px 20px;
  text-align:center;
  color:var(--ink-3);
  font-size:13px;
}
.pos-modal-result{
  display:flex;align-items:center;gap:12px;
  padding:12px;border-radius:12px;
  cursor:pointer;
  transition:background .12s;
}
.pos-modal-result:hover{background:var(--surface-2)}
.pos-modal-result-avatar{
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--coral-gradient);color:#fff;
  font-size:13px;font-weight:700;letter-spacing:.5px;
  flex:0 0 auto;
}
.pos-modal-result-info{flex:1;min-width:0}
.pos-modal-result-name{
  font-size:14px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pos-modal-result-phone{
  font-size:11.5px;color:var(--ink-3);margin-top:2px;font-weight:500;
}

.pos-modal-foot{
  padding:12px 20px 16px;
  border-top:1px solid var(--line);
}
.pos-modal-addlink{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:700;color:var(--coral);
}
.pos-modal-addlink svg{width:14px;height:14px;stroke:currentColor}

.pos-modal-backdrop{
  position:fixed;inset:0;
  background:rgba(15,15,25,.5);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  z-index:190;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .2s, visibility 0s linear .2s;
}
.pos-modal-backdrop.is-open{
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .2s, visibility 0s linear 0s;
}

/* ---------- Success state ---------- */
.pos-success{
  position:fixed;inset:0;
  z-index:300;
  display:grid;place-items:center;
  background:rgba(15,15,25,.5);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;
  transition:opacity .25s, visibility 0s linear .25s;
}
.pos-success.is-open{
  opacity:1;visibility:visible;
  transition:opacity .25s, visibility 0s linear 0s;
}
.pos-success-inner{
  text-align:center;
  padding:32px;
  background:var(--surface);
  border-radius:var(--r-lg);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
  max-width:340px;
}
.pos-success-check{
  width:64px;height:64px;
  border-radius:50%;
  margin:0 auto 16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#22C55E,#16A34A);
  color:#fff;
  box-shadow:0 12px 24px -8px rgba(34,197,94,.6);
}
.pos-success-check svg{width:28px;height:28px;stroke:#fff;stroke-width:3}
.pos-success-inner h3{
  font-size:18px;font-weight:800;color:var(--ink);
  margin:0 0 6px;
}
.pos-success-inner p{
  font-size:13px;color:var(--ink-3);
  margin:0 0 18px;line-height:1.5;
}
.pos-success-inner p b{color:var(--ink)}
.pos-success-actions{display:flex;gap:8px}
.pos-success-actions a,
.pos-success-actions button{
  flex:1;
  padding:12px 16px;
  border-radius:12px;
  font-size:13px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
.pos-success-actions .primary{
  background:var(--coral-gradient);color:#fff;
  box-shadow:0 8px 18px -6px var(--coral-glow);
}
.pos-success-actions .ghost{
  background:var(--surface-2);color:var(--ink-2);
}
.pos-success-actions svg{width:14px;height:14px;stroke:currentColor}
/* ==================== End POS ==================== */


.cust-list .cust-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
}
.cust-list .cust-row > *{
  flex:0 0 auto;
}
.cust-list .cust-row > .cust-body{
  flex:1 1 auto;
  min-width:0;
}

/* Sales / transactions list — dashed dividers between rows */
.cust-list .cust-row + .cust-row{
  border-top:1px dashed rgba(138,143,154,.28);
  margin-top:0;
}


/* Display sales in sales details as table in desktop and card in mobiles */
/* =========================================================
   Transaction detail — items list
   ========================================================= */

.tx-items-list{
  display:flex;
  flex-direction:column;
}

.tx-item{
  padding:16px 8px;
  border-bottom:1px dashed rgba(138,143,154,.28);
}
.tx-item:last-child{border-bottom:0}

.tx-item-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.tx-item-icon{
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:#fff;
  flex:0 0 auto;
}
.tx-item-icon svg{width:14px;height:14px;color:#fff;stroke:#fff}
.tx-item-name{
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx-item-total{
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  flex:0 0 auto;
  margin-left:auto;
}

.tx-item-meta{
  font-size:12px;
  color:var(--ink-3);
  font-weight:500;
  line-height:1.6;
  display:flex;
  flex-wrap:wrap;
  gap:4px 6px;
  margin-bottom:10px;
}
.tx-item-meta .tx-sep{opacity:.4}

.tx-item-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.tx-item-staff{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11.5px;
  color:var(--ink-3);
  font-weight:500;
}
.tx-item-staff svg{color:var(--ink-4)}

.tx-item-followup-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 10px;
  border-radius:8px;
  background:rgba(99,102,241,.12);
  color:#4338CA;
  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
}

.tx-item-followup-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:10px;
  background:var(--surface);
  font-size:12px;
  font-weight:600;
  color:var(--ink-2);
  box-shadow:var(--nm-raised-sm);
  transition:box-shadow .15s, color .15s;
  cursor:pointer;
}
.tx-item-followup-btn:hover{
  color:var(--ink);
  box-shadow:
    4px 4px 10px var(--nm-dark-soft),
    -4px -4px 10px var(--nm-light);
}
.tx-item-followup-btn svg{color:var(--coral)}

/* Desktop: tighter layout since we have space */
@media (min-width: 768px){
  .tx-item{padding:16px 12px}
  .tx-item-meta{font-size:12.5px}
}

.card .mini-stats{
  margin-bottom:0;
}

/* =========================================================
   KPI Cards — reports + dashboards
   ========================================================= */

.kpi-card{
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--nm-raised);
  overflow: hidden;
  height: 100%;
}

/* Colored top accent bar */
.kpi-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--kpi-color, var(--coral));
}

.kpi-card-icon{
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--kpi-bg, rgba(255,90,95,.12));
  color: var(--kpi-color, var(--coral));
}
.kpi-card-icon svg{
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.kpi-card-body{
  flex: 1;
  min-width: 0;
}

.kpi-card-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.kpi-card-value{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card-sub{
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Responsive tweaks */
@media (max-width: 640px){
  .kpi-card{padding:14px 16px;gap:12px}
  .kpi-card-icon{width:40px;height:40px;border-radius:12px}
  .kpi-card-icon svg{width:18px;height:18px}
  .kpi-card-value{font-size:18px}
  .kpi-card-label{font-size:10px}
}

/* =========================================================
   Recent Movements — stock report
   ========================================================= */

.mv-list{
  display: flex;
  flex-direction: column;
}

.mv-row{
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(138,143,154,.28);
}
.mv-row:last-child{border-bottom: 0}

.mv-main{
  margin-bottom: 8px;
}
.mv-name{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.mv-sku{
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 2px;
}

.mv-side{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mv-type{
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.mv-qty{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.mv-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.mv-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mv-meta-item svg{color: var(--ink-4); flex: 0 0 auto}
.mv-meta-time{white-space: nowrap}

/* Desktop — inline layout with qty/meta on one row */
@media (min-width: 640px){
  .mv-row{
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 16px;
    align-items: center;
    padding: 14px 8px;
  }
  .mv-main{grid-column: 1; grid-row: 1; margin-bottom: 0}
  .mv-side{grid-column: 2; grid-row: 1; margin-bottom: 0; justify-content: flex-end}
  .mv-meta{grid-column: 1 / -1; grid-row: 2}
}

/* =========================================================
   Access Denied page
   ========================================================= */

.access-denied-page{
  min-height: calc(100dvh - var(--topbar-h) - 80px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.access-denied-card{
  position: relative;
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 48px 32px 36px;
  box-shadow: var(--nm-raised-lg);
  overflow: hidden;
}

.access-denied-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral-light), var(--coral), var(--coral-deep));
}

.access-denied-icon{
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral-gradient);
  color: #fff;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.4),
    0 14px 30px -10px var(--coral-glow);
}

.access-denied-icon svg{
  width: 40px;
  height: 40px;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.2;
}

.access-denied-title{
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.4px;
  margin: 0 0 10px;
}

.access-denied-sub{
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 20px;
}
.access-denied-sub strong{
  color: var(--ink);
  font-weight: 700;
}

.access-denied-note{
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--nm-inset-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 28px;
}
.access-denied-note svg{
  width: 16px;
  height: 16px;
  color: var(--coral);
  stroke: currentColor;
  flex: 0 0 auto;
}

.access-denied-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.access-denied-footer{
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.access-denied-footer strong{
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-top: 3px;
}
.access-denied-footer .muted{
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10.5px;
  font-weight: 700;
}

/* =========================================================
   Logo upload + crop modal
   ========================================================= */

.logo-upload-wrap{
  width: 128px;
}

.logo-preview{
  width: 128px;
  height: 128px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--nm-inset-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  position: relative;
}
.logo-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-preview-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.logo-preview-empty svg{
  width: 28px;
  height: 28px;
  color: var(--ink-4);
}

.logo-upload-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--nm-raised-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: box-shadow .15s, color .15s;
  position: relative;
}
.logo-upload-btn:hover{
  color: var(--ink);
  box-shadow:
    4px 4px 10px var(--nm-dark-soft),
    -4px -4px 10px var(--nm-light);
}
.logo-upload-btn svg{
  width: 14px;
  height: 14px;
  color: var(--coral);
}

/* ---------- Crop Modal ---------- */
.crop-modal{
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s linear .2s;
}
.crop-modal.is-open{
  opacity: 1;
  visibility: visible;
  transition: opacity .2s, visibility 0s linear 0s;
}

.crop-modal-inner{
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 30px 60px -20px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.crop-modal.is-open .crop-modal-inner{
  transform: translateY(0) scale(1);
}

.crop-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.crop-modal-title{
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.crop-modal-close{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.crop-modal-close:hover{
  background: var(--surface-2);
  color: var(--ink);
}
.crop-modal-close svg{width:16px;height:16px}

.crop-modal-body{
  padding: 20px;
  flex: 1;
  min-height: 0;
  background: var(--surface-2);
}

.crop-stage{
  width: 100%;
  max-height: 55vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.crop-stage img{
  max-width: 100%;
  max-height: 55vh;
  display: block;
}

.crop-modal-foot{
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.crop-hint{
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.crop-actions{
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.crop-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15,15,25,.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, visibility 0s linear .2s;
}
.crop-modal-backdrop.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s, visibility 0s linear 0s;
}

/* Cropper.js overrides to match theme */
.cropper-view-box,
.cropper-face{
  border-radius: 8px;
}
.cropper-line,
.cropper-point{
  background-color: var(--coral);
}
.cropper-view-box{
  outline: 2px solid var(--coral);
  outline-color: var(--coral);
}
.cropper-modal{
  background-color: rgba(20,20,40,.55);
}

/* =========================================================
   POS — credit sale UI
   ========================================================= */

.pos-pay-methods[data-has-credit]{
  grid-template-columns: repeat(4, 1fr);
}

.pos-credit-block{
  margin-top: 12px;
}

.pos-credit-warning{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.3);
}
.pos-credit-warning i{
  width: 18px;
  height: 18px;
  color: var(--amber);
  stroke: currentColor;
  flex: 0 0 auto;
  margin-top: 2px;
}

.pos-credit-note{
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.5;
  padding: 0 4px;
}

.pos-customer-credit{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.pos-customer-credit b{
  color: var(--red);
  font-weight: 700;
}

/* Credit outstanding KPI — dark card variant */
.cust-detail-outstanding{
  background: linear-gradient(150deg, #3D4147 0%, #22252A 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    var(--sh-3);
}
.cust-detail-outstanding .cds-value{
  font-weight: 800;
}
.cust-detail-outstanding .cds-label{
  color: rgba(255,255,255,.55);
}
.cust-detail-outstanding .cds-accent{
  /* Top accent hidden on dark card — use the value color instead */
  opacity: 0;
}

/* Add breathing room between menu groups and standalone items */
.sidebar .menu-group + .menu-single,
.drawer-bar .menu-group + .menu-single {
  margin-top: 12px;
}

/* Add breathing room between standalone items and the next group */
.sidebar .menu-single + .menu-group,
.drawer-bar .menu-single + .menu-group {
  margin-top: 12px;
}

/* Ensure the dashed divider still shows up nicely */
.sidebar .menu-group + .menu-single::before {
  content: "";
  display: block;
  height: 1px;
  margin: 6px 10px 12px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.10) 20%,
    rgba(255,255,255,.10) 80%,
    transparent 100%);
}

.drawer-close { color: #fff; transition: background .15s; }
.drawer-close svg { color: #fff; stroke: currentColor; width: 20px; height: 20px; }
.drawer-close:hover { background: rgba(0,0,0,.08); }


.drawer-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.08) !important; /* Subtle dark grey background */
  box-shadow: none !important; /* Kill the white neumorphic glow */
  transition: background .15s;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}
.drawer-close svg {
  color: #fff;
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

/* Force UIkit to handle the slide animation */
#drawer .uk-offcanvas-bar {
  transition: transform 0.3s ease-in-out !important;
}
#drawer.uk-open .uk-offcanvas-bar {
  transform: translateX(0) !important;
}
#drawer:not(.uk-open) .uk-offcanvas-bar {
  transform: translateX(-100%) !important;
}