[hidden] { display: none !important; }
:root {
  --aqua: #0891b2;
  --aqua-dark: #0e7490;
  --aqua-soft: #e0f7fb;
  --ink: #0b1f3a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f3f6fa;
  --side: #0b1f3a;
  --bs-primary: #0e7490;
  --bs-primary-rgb: 14, 116, 144;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bs-link-color: #0e7490;
  --bs-link-color-rgb: 14, 116, 144;
}
body { background: var(--bg); color: var(--ink); font-size: .9rem; }
h1, h2, h3, h4, h5, .font-display { font-family: 'Outfit', sans-serif; }
a { color: var(--aqua-dark); }
.btn-primary { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: #061325; --bs-btn-hover-border-color: #061325; --bs-btn-active-bg: #061325; --bs-btn-disabled-bg: #475569; --bs-btn-disabled-border-color: #475569; }
.btn-aqua { --bs-btn-color: #fff; --bs-btn-bg: var(--aqua-dark); --bs-btn-border-color: var(--aqua-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #155e75; --bs-btn-hover-border-color: #155e75; --bs-btn-active-bg: #155e75; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #67a8b8; --bs-btn-disabled-border-color: #67a8b8; --bs-btn-disabled-color: #fff; }
.btn-outline-aqua { --bs-btn-color: var(--aqua-dark); --bs-btn-border-color: var(--aqua); --bs-btn-hover-bg: var(--aqua-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--aqua-dark); --bs-btn-active-bg: var(--aqua-dark); --bs-btn-active-color: #fff; }
.btn-whatsapp { --bs-btn-color: #fff; --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #15803d; }
.text-aqua { color: var(--aqua-dark) !important; }
.bg-aqua-soft { background: var(--aqua-soft) !important; }
.form-control:focus, .form-select:focus { border-color: var(--aqua); box-shadow: 0 0 0 .2rem rgba(8,145,178,.18); }
.form-label { font-weight: 600; font-size: .78rem; color: #334155; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--aqua-dark); border-color: var(--aqua-dark); }

/* status colours */
.st-received { background: #e2e8f0; color: #334155; }
.st-cleaning { background: #cffafe; color: #0e7490; }
.st-pressing { background: #ede9fe; color: #6d28d9; }
.st-ready { background: #dcfce7; color: #15803d; }
.st-delivered { background: #0b1f3a; color: #fff; }
.st-cancelled { background: #fee2e2; color: #b91c1c; }

/* layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: radial-gradient(120% 60% at 0% 100%, rgba(8,145,178,.35), transparent 60%), var(--side); color: #cbd5e1; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .2s; scrollbar-width: thin; scrollbar-color: #1e3a5f transparent; }
.sidebar .brand { display: flex; gap: .75rem; align-items: center; padding: 1.1rem 1.15rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { width: 42px; height: 42px; flex: none; }
.sidebar .brand strong { display: block; font-family: 'Outfit'; font-size: 1rem; line-height: 1.15; }
.sidebar .brand small { color: #67e8f9; font-size: .7rem; letter-spacing: .04em; }
.sidebar nav { padding: .5rem .7rem 2rem; }
.nav-section { text-transform: uppercase; font-size: .64rem; letter-spacing: .1em; color: #64748b; padding: 1rem .75rem .35rem; font-weight: 700; }
.sidebar .nav-link { display: flex; align-items: center; gap: .7rem; color: #cbd5e1; padding: .5rem .75rem; border-radius: 10px; font-weight: 500; font-size: .86rem; }
.sidebar .nav-link i { font-size: 1.02rem; opacity: .8; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: linear-gradient(135deg, #06b6d4, #0e7490); color: #fff; box-shadow: 0 6px 18px rgba(8,145,178,.35); }
.sidebar .nav-link.active i { opacity: 1; }
.nav-badge { margin-left: auto; background: #f97316; color: #fff; font-size: .66rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.main { flex: 1; margin-left: 252px; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: .6rem 1.5rem; }
.top-search { align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .35rem .8rem; width: min(420px, 45vw); }
.top-search input { border: 0; background: transparent; outline: 0; width: 100%; font-size: .86rem; }
.top-search i { color: var(--muted); }
.btn-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 1.15rem; border: 1px solid var(--line); background: #fff; }
.user-chip { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .25rem .6rem .25rem .3rem; font-size: .82rem; }
.user-chip small { color: var(--muted); font-size: .7rem; }
.avatar-text { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,#06b6d4,#0e7490); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .75rem; flex: none; }
.content { padding: 1.5rem; flex: 1; }
.app-footer { padding: 1rem 1.5rem; color: var(--muted); font-size: .76rem; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 1035; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
}

/* components */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.page-head p { color: var(--muted); margin: .15rem 0 0; }
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); padding: .85rem 1.2rem; font-weight: 700; border-radius: 16px 16px 0 0 !important; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-family: 'Outfit'; font-size: .98rem; }
.card-body { padding: 1.2rem; }
.stat { display: flex; flex-direction: row; gap: .9rem; align-items: center; padding: 1rem 1.15rem; height: 100%; color: inherit; text-decoration: none; }
a.stat:hover { background: #fbfdff; }
.stat .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.stat .lbl { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .val { font-family: 'Outfit'; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.stat .sub { font-size: .74rem; color: var(--muted); }
.ico-aqua { background: #cffafe; color: #0e7490; } .ico-blue { background: #dbeafe; color: #1d4ed8; }
.ico-green { background: #dcfce7; color: #15803d; } .ico-red { background: #fee2e2; color: #b91c1c; }
.ico-violet { background: #ede9fe; color: #6d28d9; } .ico-slate { background: #e2e8f0; color: #334155; }
.ico-amber { background: #fef3c7; color: #b45309; } .ico-orange { background: #ffedd5; color: #c2410c; }
.table { --bs-table-bg: transparent; vertical-align: middle; margin: 0; }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.table td { border-color: #eef2f6; }
.table tfoot td, .table tfoot th { background: #f8fafc; font-weight: 700; border-top: 2px solid var(--line); }
.table-hover tbody tr:hover td { background: #f3fbfd; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; background: #f1f5f9; color: #334155; }
.chip-express { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.chip-home { background: #eff6ff; color: #1d4ed8; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2.2rem; display: block; margin-bottom: .5rem; opacity: .5; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.filters .form-control, .filters .form-select { min-width: 140px; }
.badge { font-weight: 600; }
.gicon { font-size: 1.35rem; line-height: 1; width: 2rem; text-align: center; flex: none; }
.svc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
.tabs-pill { display: flex; gap: .35rem; flex-wrap: wrap; }
.tabs-pill a { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; color: #334155; text-decoration: none; }
.tabs-pill a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs-pill a .n { opacity: .65; margin-left: .25rem; }

/* status pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.pipeline a { border-radius: 14px; padding: .8rem 1rem; text-decoration: none; color: inherit; border: 1px solid var(--line); background: #fff; position: relative; }
.pipeline a strong { font-family: 'Outfit'; font-size: 1.6rem; display: block; line-height: 1.1; }
.pipeline a small { color: var(--muted); font-weight: 600; }
.pipeline a::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--aqua); }
.steps { display: flex; gap: 0; }
.steps .s { flex: 1; text-align: center; position: relative; font-size: .72rem; font-weight: 600; color: var(--muted); }
.steps .s i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .3rem; background: #e2e8f0; color: #64748b; position: relative; z-index: 1; font-size: 1rem; }
.steps .s::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: #e2e8f0; }
.steps .s:first-child::before { display: none; }
.steps .s.done i { background: var(--aqua-dark); color: #fff; }
.steps .s.done::before { background: var(--aqua-dark); }
.steps .s.done { color: var(--ink); }

/* workshop board */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.col-b { background: #e9eef5; border-radius: 16px; padding: .7rem; min-height: 60vh; }
.col-b.drop { outline: 2px dashed var(--aqua); background: #e0f7fb; }
.col-b h6 { font-family: 'Outfit'; font-weight: 700; display: flex; align-items: center; justify-content: space-between; margin: .2rem .3rem .7rem; }
.kcard { background: #fff; border-radius: 12px; padding: .65rem .75rem; margin-bottom: .55rem; border: 1px solid var(--line); cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.kcard:active { cursor: grabbing; }
.kcard.late { border-left: 4px solid #ef4444; }
.kcard.express { border-top: 3px solid #f97316; }
.kcard .no { font-family: 'Outfit'; font-weight: 700; }
.kcard .g { font-size: 1.05rem; letter-spacing: 1px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { position: relative; overflow: hidden; background: linear-gradient(150deg, #0b1f3a 0%, #0e4f6b 55%, #0891b2 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; }
.login-art::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(103,232,249,.35), transparent 65%); }
.login-art > * { position: relative; z-index: 1; }
.login-art h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; line-height: 1.08; }
.login-art .tags span { display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: .3rem .8rem; font-size: .78rem; margin: 0 .35rem .4rem 0; background: rgba(255,255,255,.08); }
.login-art .bubbles span { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.hanger-art { font-size: 5rem; line-height: 1; opacity: .95; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-form .inner { width: 100%; max-width: 420px; }
.demo-box { border: 1px dashed var(--aqua); background: #f0fbfd; border-radius: 14px; padding: .9rem; }
.demo-btn { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem .7rem; transition: border-color .15s, box-shadow .15s; }
.demo-btn:hover { border-color: var(--aqua); box-shadow: 0 4px 14px rgba(8,145,178,.15); }
.demo-btn code { color: var(--aqua-dark); font-size: .72rem; }
.demo-btn small.r { color: var(--muted); font-size: .7rem; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { min-height: 240px; } }

/* new order (POS) */
body.pos-mode .content { padding: 0; }
body.pos-mode .app-footer { display: none; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - 59px); }
.pos-left { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 1rem 1.25rem; }
.svc-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.svc-tabs button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: .45rem .9rem; font-size: .84rem; font-weight: 700; color: #334155; display: flex; align-items: center; gap: .4rem; }
.svc-tabs button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.pos-cats { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.pos-cats button { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; color: #334155; }
.pos-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: max-content; gap: .65rem; align-content: start; padding: .25rem .1rem 1rem; }
.pos-item { border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; width: 100%; padding: .8rem .5rem .6rem; transition: box-shadow .12s, transform .12s; position: relative; }
.pos-item:hover { box-shadow: 0 8px 22px rgba(15,23,42,.12); transform: translateY(-2px); border-color: var(--aqua); }
.pos-item:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.pos-item .em { font-size: 2.1rem; line-height: 1.1; }
.pos-item .n { font-weight: 600; font-size: .8rem; text-align: center; line-height: 1.2; margin-top: .3rem; min-height: 2.4em; }
.pos-item .p { font-family: 'Outfit'; font-weight: 700; color: var(--aqua-dark); }
.pos-item .cnt { position: absolute; top: 6px; right: 6px; background: var(--aqua-dark); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700; padding: 1px 7px; }
.pos-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pos-cust { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.pos-cart { flex: 1; overflow-y: auto; padding: .25rem 1rem; }
.cart-row { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.cart-row .top { display: flex; align-items: center; gap: .5rem; }
.cart-row .nm { font-weight: 600; font-size: .84rem; line-height: 1.2; }
.cart-row .qtyb { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.cart-row .qtyb button { border: 0; background: none; width: 26px; height: 26px; font-weight: 700; }
.cart-row .qtyb input { width: 34px; border: 0; text-align: center; font-weight: 700; padding: 0; }
.cart-row .rate { width: 72px; text-align: right; }
.cart-row .more { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin-top: .35rem; }
.cart-row .more input { font-size: .75rem; }
.cart-row .more .rm { grid-column: 1 / -1; }
.pos-sum { border-top: 1px solid var(--line); padding: .8rem 1rem; background: #f8fafc; }
.pos-sum .grand { font-family: 'Outfit'; font-size: 1.6rem; font-weight: 800; }
@media (max-width: 991.98px) { .pos { grid-template-columns: 1fr; height: auto; } .pos-grid { max-height: 55vh; } }

/* print: receipt & tags */
.thermal { width: 76mm; margin: 0 auto; background: #fff; padding: 3mm; font-family: 'Courier New', monospace; font-size: 12px; color: #000; }
.thermal table { width: 100%; }
.thermal .c { text-align: center; }
.thermal .r { text-align: right; }
.thermal hr { border: 0; border-top: 1px dashed #000; opacity: 1; margin: 5px 0; }
.thermal h3 { font-family: 'Outfit'; font-size: 17px; margin: 2px 0; }
.tags-sheet { display: flex; flex-wrap: wrap; gap: 4mm; justify-content: center; }
.tag { width: 60mm; height: 34mm; border: 1px dashed #94a3b8; border-radius: 3mm; padding: 2mm 3mm; font-family: 'Courier New', monospace; font-size: 10px; color: #000; background: #fff; display: flex; flex-direction: column; justify-content: space-between; page-break-inside: avoid; position: relative; overflow: hidden; }
.tag .tno { font-family: 'Outfit'; font-size: 22px; font-weight: 800; line-height: 1; }
.tag .ex { position: absolute; top: 2mm; right: 2mm; background: #000; color: #fff; font-weight: 700; padding: 0 4px; border-radius: 2px; }
.tag svg { height: 9mm; width: 100%; }
@media print {
  .no-print, .sidebar, .topbar, .app-footer { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
  .tag { border: 1px solid #000; }
  a { text-decoration: none; color: inherit; }
}

/* Tom Select tune */
.ts-control { border-radius: var(--bs-border-radius); min-height: 38px; }
@media (max-width: 575.98px) {
  .page-head h1 { font-size: 1.25rem; }
  .stat { padding: .8rem .9rem; }
  .stat .val { font-size: 1.15rem; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* branch switcher */
.branch-chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #a5e3ee; background: var(--aqua-soft); color: var(--aqua-dark); border-radius: 12px; padding: .4rem .75rem; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.dropdown-item.active, .dropdown-item:active { background: var(--aqua-dark); }
.branch-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: .05rem .4rem; border-radius: 5px; background: #e2e8f0; color: #334155; vertical-align: middle; }
