*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f4f8f8;color:#17383b}.hidden{display:none!important}.screen{min-height:100vh}.center{display:grid;place-items:center}.spinner{width:44px;height:44px;border:5px solid #d5eeee;border-top-color:#0f766e;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-card{width:min(460px,92vw);background:#fff;padding:28px;border-radius:22px;display:grid;gap:14px;box-shadow:0 25px 70px #0002}.auth-card h1,.auth-card p{margin:0}.auth-card p,.auth-card small{color:#678387}.auth-card label,.form-grid label,.filter-bar label{display:grid;gap:6px;font-weight:700}.logo{width:58px;height:58px;border-radius:16px;background:#0f766e;color:white;display:grid;place-items:center;font-size:21px;font-weight:800}.logo.small{width:42px;height:42px;border-radius:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#113c3e;color:white;padding:18px;display:flex;flex-direction:column;gap:7px}.brand{display:flex;align-items:center;gap:10px;margin-bottom:18px}.brand small{display:block;color:#a9c9cb}.nav{width:100%;text-align:left;background:transparent;color:#dceff0;padding:12px 14px}.nav.active{background:#0f766e}.logout{margin-top:auto;background:#7f1d1d}.main-shell{margin-left:240px;min-height:100vh}.topbar{background:white;border-bottom:1px solid #dce9ea;padding:17px 24px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:20}.topbar h1,.topbar p{margin:0}.topbar p{margin-top:5px;color:#678387}.content{max-width:1350px;margin:auto;padding:24px}.page{display:none}.page.active{display:block}.panel,.metric{background:#fff;border:1px solid #dce9ea;border-radius:18px;padding:20px;box-shadow:0 9px 25px #0f766e0d;margin-bottom:18px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.metric span{display:block;color:#678387;margin-bottom:7px}.metric b{font-size:25px}.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.status-box{background:#ecfdf5;padding:16px;border-radius:14px;text-align:center}.status-box b{display:block;font-size:24px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.wide{grid-column:1/-1}.section-heading,.filter-bar{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.filter-bar input{min-width:190px}.item-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin-bottom:10px}.order-total{display:flex;gap:25px;flex-wrap:wrap;background:#ecfdf5;padding:15px;border-radius:14px;margin:15px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:900px}th,td{padding:12px;border-bottom:1px solid #e1ecee;text-align:left;vertical-align:top}th{background:#effafa}.secondary{background:white;color:#0f766e;border:1px solid #bad6d8}.danger-button{background:#b91c1c}.whatsapp{background:#16a34a}.action{padding:8px 10px;margin:2px}input,select,textarea,button{font:inherit;padding:11px 12px;border-radius:11px;border:1px solid #cfe0e2}textarea{min-height:90px}button{background:#0f766e;color:white;border:0;font-weight:700;cursor:pointer}.link-button{background:transparent;color:#0f766e}.error{color:#b91c1c;min-height:20px}.modal{position:fixed;inset:0;background:#0008;display:grid;place-items:center;z-index:100}.modal-card{background:white;border-radius:20px;padding:22px;width:min(460px,94vw);position:relative;text-align:center}.close{position:absolute;right:10px;top:7px;background:transparent;color:#222;font-size:26px}.modal-actions{display:flex;gap:9px;justify-content:center;margin-top:15px}#receiptQr{display:flex;justify-content:center;margin:15px}.receipt-line{display:flex;justify-content:space-between;gap:12px;text-align:left}.thanks{text-align:center;font-weight:700}#toast{position:fixed;right:18px;bottom:18px;background:#17383b;color:white;padding:12px 16px;border-radius:10px;display:none;z-index:999}code{background:#edf4f5;padding:2px 5px;border-radius:5px}@media(max-width:900px){.sidebar{position:static;width:auto;flex-direction:row;overflow:auto}.brand{display:none}.nav{width:auto;white-space:nowrap}.logout{margin-top:0}.main-shell{margin-left:0}.metric-grid{grid-template-columns:repeat(2,1fr)}.status-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.form-grid,.metric-grid{grid-template-columns:1fr}.item-row{grid-template-columns:1fr 1fr}.item-row select{grid-column:1/-1}.content{padding:14px}.status-grid{grid-template-columns:1fr}}@media print{body *{visibility:hidden}#receiptArea,#receiptArea *{visibility:visible}#receiptArea{position:absolute;left:0;top:0;width:var(--receipt-width,58mm);padding:3mm;color:#000;font-size:12px}.modal-actions,.close{display:none}#reportPrintArea,#reportPrintArea *{visibility:visible}#reportPrintArea{position:absolute;left:0;top:0;width:100%;padding:10mm}}
.logo-preview-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.logo-preview{max-width:160px;max-height:100px;object-fit:contain;border:1px solid #dce9ea;border-radius:12px;padding:8px;background:white}
.receipt-logo{display:block;max-width:150px;max-height:90px;object-fit:contain;margin:0 auto 8px}
.check-label{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:flex-start}
.check-label input{width:auto}
.edit-order-card{width:min(680px,95vw);text-align:left}
.auth-card small,.form-grid small{font-weight:400;color:#678387}
@media print{
  .receipt-logo{max-width:80%;max-height:25mm}
}

/* HappyLaundry Pro */

.top-actions{display:flex;gap:8px;align-items:center}
@media(max-width:900px){
  .sidebar{
    position:sticky;
    top:0;
    z-index:40;
    padding:8px;
    background:#113c3e;
  }
  .nav{padding:10px 12px}
  .topbar{top:55px}
}
@media(max-width:650px){
  body{font-size:15px}
  .topbar{padding:13px 14px}
  .topbar h1{font-size:24px}
  .top-actions{width:100%;margin-top:10px}
  .top-actions button{flex:1}
  .topbar{flex-direction:column;align-items:stretch}
  .content{padding:12px}
  .panel,.metric{padding:15px;border-radius:14px}
  .metric b{font-size:22px}
  input,select,textarea,button{min-height:44px}
  table{min-width:760px}
  .modal-card{max-height:92vh;overflow:auto}
}

.muted{color:#678387;margin:4px 0 0}
.staff-table-wrap{margin-top:18px}
.status-active{color:#166534;font-weight:800}
.status-inactive{color:#b91c1c;font-weight:800}
.staff-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:650px){
  .staff-table-wrap table{min-width:760px}
}

.dashboard-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.dashboard-toolbar h2{margin:0}
.dashboard-filter{margin:0}
.metric.highlight{background:linear-gradient(135deg,#0f766e,#115e59);color:white}
.metric.highlight span,.metric.highlight small{color:#d1fae5}
.metric small{display:block;margin-top:8px;color:#678387}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chart-panel{min-height:360px}
.chart-wrap{height:285px;position:relative}
.compact-table table{min-width:620px}
.status-badge{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#e2e8f0}
.status-diterima{background:#dbeafe;color:#1d4ed8}
.status-proses{background:#fef3c7;color:#92400e}
.status-siap-diambil{background:#dcfce7;color:#166534}
.status-selesai{background:#e0e7ff;color:#3730a3}
.status-dibatalkan{background:#fee2e2;color:#991b1b}
@media(max-width:980px){
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .dashboard-toolbar{align-items:stretch}
  .dashboard-filter{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .chart-panel{min-height:330px}
  .chart-wrap{height:250px}
}

.cash-close-summary{padding:12px;background:#ecfdf5;border-radius:12px;margin-bottom:12px}
.cash-difference-preview{padding:14px;background:#effafa;border-radius:12px;font-size:18px}
.negative-diff{color:#b91c1c;font-weight:800}
.positive-diff{color:#166534;font-weight:800}
#cash .metric-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:800px){
  #cash .metric-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  #cash .metric-grid{grid-template-columns:1fr}
}

.backup-actions{display:flex;gap:10px;flex-wrap:wrap}
#audit table{min-width:850px}

.overdue-alert{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:14px 16px;border-radius:14px;margin-bottom:16px}
.workflow-board{display:grid;grid-template-columns:repeat(6,minmax(250px,1fr));gap:14px;overflow-x:auto;padding-bottom:14px}
.workflow-column{background:#eaf4f4;border-radius:16px;padding:11px;min-height:430px}
.workflow-column-head{display:flex;justify-content:space-between;align-items:center;padding:8px 5px 13px;font-weight:800}
.workflow-column-head b{background:#0f766e;color:white;border-radius:999px;min-width:28px;height:28px;display:grid;place-items:center}
.workflow-list{display:grid;gap:10px}
.workflow-card{background:white;border:1px solid #dce9ea;border-radius:14px;padding:13px;box-shadow:0 7px 18px #0f766e10}
.workflow-overdue{border:2px solid #ef4444}
.workflow-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.workflow-card h4{margin:10px 0 5px}
.workflow-card p{font-size:13px;color:#526d70;margin:4px 0 10px}
.workflow-meta{display:grid;gap:3px;font-size:12px;color:#678387}
.workflow-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.workflow-empty{text-align:center;color:#789;padding:30px 5px}
.priority-badge{display:inline-block;border-radius:999px;padding:4px 7px;font-size:11px;font-weight:800}
.priority-normal{background:#e2e8f0;color:#334155}
.priority-express{background:#fef3c7;color:#92400e}
.priority-urgent{background:#fee2e2;color:#991b1b}
.progress-track{height:7px;border-radius:999px;background:#dce9ea;margin-top:10px;overflow:hidden}
.progress-fill{height:100%;background:#0f766e;border-radius:999px}
.scanner-panel{max-width:760px;margin-inline:auto;text-align:center}
.qr-video{width:min(100%,520px);border-radius:18px;background:#111;aspect-ratio:4/3;object-fit:cover}
.scanner-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:15px}
.manual-scan{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;max-width:600px;margin:20px auto 0;text-align:left}
.scanner-warning{background:#fff7ed;color:#9a3412;padding:12px;border-radius:12px;margin-bottom:15px}
.scan-order-result{text-align:center}
.status-dicuci{background:#dbeafe;color:#1d4ed8}
.status-dikeringkan{background:#fef3c7;color:#92400e}
.status-disetrika{background:#ede9fe;color:#6d28d9}
.status-packing{background:#cffafe;color:#0e7490}
#receiptOperationalInfo{font-size:12px}
@media(max-width:650px){
  .workflow-board{grid-template-columns:repeat(6,280px)}
  .manual-scan{grid-template-columns:1fr}
}

.template-card{border:1px solid #dce9ea;border-radius:14px;padding:14px;margin-bottom:12px}
.template-card textarea{width:100%;min-height:100px;margin:8px 0}
#staffRanking p,#topCustomers p,#trialBalance p,#accountingSummary p{padding:10px;border-bottom:1px solid #e5eeee;margin:0}

.target-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.target-label{display:flex;justify-content:space-between;margin-bottom:7px}
.ranking-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 4px;border-bottom:1px solid #e5eeee}
.ranking-row span{display:grid;gap:3px}
.ranking-row small{color:#678387}
@media(max-width:650px){.target-grid{grid-template-columns:1fr}}

.checkbox-line{display:flex!important;align-items:center;gap:10px}
.checkbox-line input{width:auto}
#campaignRecipientsPanel{scroll-margin-top:20px}


/* ===== HappyLaundry Enterprise V13 UI Pro ===== */
:root{
  --sidebar-width:274px;
  --sidebar-collapsed-width:82px;
}

.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--sidebar-width);
  height:100vh;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:#2aa49a transparent;
  z-index:1000;
  transition:width .22s ease,transform .22s ease;
}

.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{
  background:#2aa49a;
  border-radius:999px;
}
.sidebar::-webkit-scrollbar-track{background:transparent}

.sidebar-toggle{
  position:sticky;
  top:10px;
  margin-left:auto;
  margin-right:10px;
  width:38px;
  height:38px;
  border:0;
  border-radius:10px;
  background:#0f766e;
  color:#fff;
  cursor:pointer;
  z-index:5;
  font-size:20px;
}

.main,
.main-content,
.app-main{
  margin-left:var(--sidebar-width);
  min-width:0;
  transition:margin-left .22s ease;
}

body.sidebar-collapsed .sidebar{
  width:var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .main,
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .app-main{
  margin-left:var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .nav{
  font-size:0;
  justify-content:center;
  padding-left:8px;
  padding-right:8px;
}

body.sidebar-collapsed .sidebar .nav::before{
  content:"•";
  font-size:24px;
}

body.sidebar-collapsed .sidebar .brand-text{
  display:none;
}

.mobile-menu-btn{
  display:none;
  position:sticky;
  top:8px;
  z-index:900;
  margin:10px 12px;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  background:#0f766e;
  color:#fff;
}

.sidebar-overlay{
  position:fixed;
  inset:0;
  background:#0007;
  z-index:990;
}

@media(max-width:900px){
  .sidebar{
    width:min(86vw,320px);
    transform:translateX(-100%);
    box-shadow:16px 0 40px #0003;
  }

  body.sidebar-mobile-open .sidebar{
    transform:translateX(0);
  }

  .main,
  .main-content,
  .app-main,
  body.sidebar-collapsed .main,
  body.sidebar-collapsed .main-content,
  body.sidebar-collapsed .app-main{
    margin-left:0 !important;
  }

  body.sidebar-collapsed .sidebar{
    width:min(86vw,320px);
  }

  body.sidebar-collapsed .sidebar .nav{
    font-size:inherit;
    justify-content:flex-start;
  }

  body.sidebar-collapsed .sidebar .nav::before{
    content:none;
  }

  body.sidebar-collapsed .sidebar .brand-text{
    display:block;
  }

  .sidebar-toggle{
    display:none;
  }

  .mobile-menu-btn{
    display:block;
  }
}


/* ===== V13.1 Mobile Drawer Repair ===== */
.mobile-drawer-header{
  display:none;
}

@media(max-width:900px){
  .sidebar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:min(88vw,340px) !important;
    max-width:340px !important;
    height:100dvh !important;
    padding:0 !important;
    overflow:hidden !important;
    background:#083f42 !important;
  }

  .mobile-drawer-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 16px;
    flex:0 0 auto;
    border-bottom:1px solid rgba(255,255,255,.12);
    background:#06383b;
  }

  .mobile-drawer-brand{
    display:flex;
    align-items:center;
    gap:11px;
    color:white;
  }

  .mobile-drawer-brand div{
    display:grid;
    gap:2px;
  }

  .mobile-drawer-brand b{
    font-size:17px;
  }

  .mobile-drawer-brand small{
    color:#a7d8d4;
    font-size:12px;
  }

  .mobile-drawer-logo{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#148a82;
    font-weight:900;
    font-size:18px;
  }

  #mobileCloseBtn{
    width:40px;
    height:40px;
    border:0;
    border-radius:12px;
    background:rgba(255,255,255,.1);
    color:white;
    font-size:28px;
    line-height:1;
    cursor:pointer;
  }

  /* Hide the desktop brand/toggle while drawer header is visible */
  .sidebar > .brand,
  .sidebar > .sidebar-toggle{
    display:none !important;
  }

  .sidebar-scroll{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:6px !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    width:100% !important;
    padding:14px 12px 90px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  .sidebar .sidebar-nav,
  .sidebar nav{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:6px !important;
    width:100% !important;
  }

  .sidebar .nav{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:48px !important;
    padding:12px 14px !important;
    margin:0 !important;
    border-radius:12px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    writing-mode:horizontal-tb !important;
    transform:none !important;
    font-size:15px !important;
    line-height:1.25 !important;
    text-align:left !important;
  }

  .sidebar .nav.active{
    background:#148a82 !important;
    color:white !important;
    box-shadow:none !important;
  }

  .sidebar .nav:not(.active){
    background:transparent !important;
    color:#e6f6f4 !important;
  }

  .sidebar .nav::before{
    content:none !important;
  }

  .sidebar #logoutBtn{
    position:sticky !important;
    bottom:0 !important;
    width:calc(100% - 24px) !important;
    min-height:48px !important;
    margin:0 12px 12px !important;
    flex:0 0 auto !important;
    z-index:2 !important;
  }

  .sidebar-overlay{
    backdrop-filter:blur(2px);
  }

  .mobile-menu-btn{
    display:flex !important;
    align-items:center;
    gap:6px;
    position:sticky;
    top:8px;
    margin:10px 12px;
    width:max-content;
    min-height:42px;
    box-shadow:0 7px 20px rgba(0,0,0,.15);
  }
}

@media(max-width:430px){
  .sidebar{
    width:88vw !important;
  }

  .sidebar .nav{
    font-size:14px !important;
  }
}

.low-stock-row{background:#fff1f2}
#inventoryTable td,#supplierTable td,#purchaseTable td{vertical-align:middle}
@media(max-width:700px){
  #inventory .metric-grid{grid-template-columns:repeat(2,1fr)}
}

.system-check-list{display:grid;gap:8px}
.system-check-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #e5eeee}
.check-ok{color:#166534}
.check-bad{color:#b91c1c}
.business-note{display:grid;gap:3px;padding:11px 12px;border-radius:12px;margin-bottom:8px}
.business-note span{font-size:13px}
.business-stock{background:#fff7ed;color:#9a3412}
.business-order{background:#fee2e2;color:#991b1b}
.business-due{background:#fef3c7;color:#92400e}
.business-cash{background:#dbeafe;color:#1d4ed8}


/* ===== HappyLaundry Enterprise V20 Ultimate Stable ===== */
.version-badge{
  display:inline-grid;
  place-items:center;
  min-width:38px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:#facc15;
  color:#163b3e;
  font-size:12px;
  font-weight:900;
  margin-right:6px;
}

.nav-pro{
  background:linear-gradient(135deg,#d97706,#f59e0b) !important;
  color:white !important;
  font-weight:900 !important;
  box-shadow:0 8px 22px rgba(217,119,6,.22);
}

.dashboard-quick-pro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 16px;
  border-radius:16px;
  margin-bottom:16px;
  background:linear-gradient(135deg,#fffbeb,#fef3c7);
  border:1px solid #fde68a;
}

.dashboard-quick-pro span{
  color:#92400e;
  font-weight:700;
}

.ultimate-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(135deg,#064e3b,#0f766e);
  color:white;
}

.ultimate-banner h2,
.ultimate-banner p{
  margin:0;
}

.ultimate-banner p{
  margin-top:6px;
  color:#d1fae5;
}

.ultimate-badge{
  white-space:nowrap;
  padding:10px 14px;
  border-radius:999px;
  background:#facc15;
  color:#422006;
  font-weight:900;
}

@media(max-width:900px){
  #sidebar .nav-pro{
    display:flex !important;
    order:-100;
    margin-bottom:6px !important;
  }

  .ultimate-banner{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-quick-pro{
    align-items:stretch;
    flex-direction:column;
  }

  .dashboard-quick-pro button{
    width:100%;
  }
}


/* ===== HappyLaundry Enterprise V21 UI/UX Pro ===== */
:root{
  --app-bg:#f4f9f9;
  --surface:#ffffff;
  --surface-soft:#eef7f6;
  --text-main:#0b3437;
  --text-muted:#668185;
  --border:#d7e7e8;
  --shadow:0 10px 28px rgba(10,74,77,.09);
  --brand:#0f766e;
  --brand-strong:#075a56;
}

html[data-theme="dark"]{
  --app-bg:#071719;
  --surface:#0d2427;
  --surface-soft:#102d31;
  --text-main:#e8f7f5;
  --text-muted:#9cb8bb;
  --border:#214247;
  --shadow:0 12px 30px rgba(0,0,0,.32);
  --brand:#1a9b91;
  --brand-strong:#148a82;
  color-scheme:dark;
}

body{
  background:var(--app-bg)!important;
  color:var(--text-main)!important;
  transition:background .2s ease,color .2s ease;
}

.panel,.metric,.modal-card,.workflow-card{
  background:var(--surface)!important;
  color:var(--text-main)!important;
  border-color:var(--border)!important;
  box-shadow:var(--shadow)!important;
  transition:transform .15s ease,box-shadow .15s ease,background .2s ease;
}

.muted,small,label,.workflow-card p{
  color:var(--text-muted)!important;
}

input,select,textarea{
  background:var(--surface)!important;
  color:var(--text-main)!important;
  border-color:var(--border)!important;
}

button{
  transition:transform .12s ease,filter .12s ease;
}

.pressing{
  transform:scale(.985)!important;
}

.icon-button{
  min-width:48px;
  width:48px;
  padding-inline:0!important;
}

.mobile-app-header{
  display:none;
}

.mobile-bottom-nav{
  display:none;
}

.floating-order-btn{
  display:none;
}

@media(max-width:900px){
  body{
    padding-top:64px!important;
    padding-bottom:88px!important;
  }

  .mobile-app-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:64px;
    z-index:950;
    display:grid;
    grid-template-columns:46px 1fr 46px;
    align-items:center;
    gap:10px;
    padding:0 12px;
    background:color-mix(in srgb,var(--surface) 90%,transparent);
    border-bottom:1px solid var(--border);
    backdrop-filter:blur(16px);
  }

  .mobile-app-header button{
    width:42px;
    height:42px;
    padding:0;
    border-radius:13px;
    border:1px solid var(--border);
    background:var(--surface-soft);
    color:var(--text-main);
    font-size:18px;
  }

  .mobile-app-header div{
    min-width:0;
    display:grid;
    gap:2px;
  }

  .mobile-app-header b{
    font-size:17px;
  }

  .mobile-app-header small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mobile-menu-btn{
    display:none!important;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    z-index:940;
    height:68px;
    padding:7px 8px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    align-items:center;
    border:1px solid var(--border);
    border-radius:22px;
    background:color-mix(in srgb,var(--surface) 94%,transparent);
    backdrop-filter:blur(18px);
    box-shadow:0 15px 40px rgba(0,0,0,.18);
  }

  .mobile-bottom-item{
    min-width:0;
    height:54px;
    padding:4px!important;
    display:grid;
    place-items:center;
    align-content:center;
    gap:2px;
    border:0!important;
    border-radius:15px!important;
    background:transparent!important;
    color:var(--text-muted)!important;
  }

  .mobile-bottom-item span{
    font-size:21px;
    line-height:1;
  }

  .mobile-bottom-item small{
    font-size:10px;
    color:inherit!important;
  }

  .mobile-bottom-item.active{
    color:var(--brand)!important;
    background:var(--surface-soft)!important;
  }

  .mobile-bottom-primary{
    width:56px!important;
    height:56px!important;
    margin:-24px auto 0!important;
    border-radius:50%!important;
    background:linear-gradient(135deg,var(--brand),var(--brand-strong))!important;
    color:white!important;
    box-shadow:0 12px 24px rgba(15,118,110,.35);
  }

  .mobile-bottom-primary span{
    font-size:29px;
  }

  .mobile-bottom-primary small{
    display:none;
  }

  .floating-order-btn{
    display:none!important;
  }

  .main-shell,.main,.main-content,.app-main{
    padding-bottom:16px!important;
  }

  .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }

  .metric{
    border-radius:18px!important;
    padding:16px!important;
  }

  .metric b{
    font-size:24px!important;
  }

  .panel{
    border-radius:20px!important;
    padding:16px!important;
  }

  .section-heading{
    align-items:flex-start!important;
  }

  .form-grid{
    grid-template-columns:1fr!important;
  }

  .wide{
    grid-column:auto!important;
  }

  button{
    min-height:46px;
  }
}

@media(min-width:901px){
  .floating-order-btn{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:900;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:linear-gradient(135deg,var(--brand),var(--brand-strong));
    color:white;
    font-size:30px;
    box-shadow:0 15px 30px rgba(15,118,110,.32);
  }
}

.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}
.pos-main{display:grid;gap:18px}.pos-cart{position:sticky;top:18px}
.pos-service-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pos-service-card{min-height:92px;padding:14px;border:1px solid var(--border);border-radius:16px;display:grid;gap:6px;align-content:center;justify-items:start;background:var(--surface-soft);color:var(--text-main);text-align:left}
.pos-search{max-width:260px}.pos-cart-items{display:grid;gap:10px;max-height:380px;overflow:auto}
.pos-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto 34px;gap:10px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
.pos-cart-row>div:first-child{display:grid;gap:3px}.pos-qty-control{display:flex;align-items:center;gap:4px}
.pos-qty-control button{width:32px;height:32px;min-height:32px;padding:0;border-radius:9px}
.pos-qty-control input{width:58px;text-align:center;padding:7px 5px}.pos-remove{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;background:#fee2e2;color:#991b1b}
.pos-empty{padding:30px 10px;text-align:center;color:var(--text-muted)}
.pos-summary{display:grid;gap:9px;margin:16px 0;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.pos-summary>div{display:flex;justify-content:space-between}.pos-total{font-size:20px}.pos-payment-grid{grid-template-columns:1fr 1fr}
.pos-save-btn{width:100%;min-height:56px;font-size:18px;margin-top:12px}
@media(max-width:1000px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}}
@media(max-width:600px){.pos-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-row{grid-template-columns:minmax(0,1fr) auto}.pos-cart-row>b{grid-column:1}.pos-remove{grid-column:2;grid-row:2}.pos-payment-grid{grid-template-columns:1fr}}


/* ===== HappyLaundry Enterprise V30 Router Stable ===== */
.router-status-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:12px;
  font-weight:900;
  border:1px solid #bbf7d0;
}

html[data-theme="dark"] .router-status-badge{
  background:#123a2a;
  color:#86efac;
  border-color:#166534;
}

/* Router owns page visibility. */
.page{display:none}
.page.active{display:block}

/* ===== HappyLaundry Enterprise V31 Daily Operations Stable ===== */
.nav-daily{
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:white!important;
  font-weight:900!important;
}
.daily-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.daily-action-grid button{
  min-height:58px;
  text-align:left;
  padding:12px 14px;
  background:var(--surface-soft);
  color:var(--text-main);
  border:1px solid var(--border);
  border-radius:14px;
  font-weight:800;
}
.payment-modal-card{max-width:560px}
.payment-order-info{
  margin:12px 0 18px;
  padding:14px;
  border-radius:14px;
  background:var(--surface-soft);
  line-height:1.6;
}
@media(max-width:600px){
  .daily-action-grid{grid-template-columns:1fr}
}


/* ===== V31.1 single-router page visibility ===== */
.page[hidden]{
  display:none !important;
}
.page.active:not([hidden]){
  display:block !important;
}

.connection-status{position:fixed;top:10px;left:50%;transform:translateX(-50%);
z-index:4000;width:min(92vw,680px);padding:11px 16px;border-radius:14px;
background:#7f1d1d;color:white;display:flex;justify-content:center;gap:10px;
flex-wrap:wrap;box-shadow:0 14px 35px #0004}
.connection-status span{color:#fecaca;font-size:13px}
.pos-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.draft-status{padding:7px 10px;border-radius:999px;background:#fef3c7;
color:#92400e;font-size:12px;font-weight:800}
.draft-status.saved{background:#dcfce7;color:#166534}

.final-production-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  margin-bottom:16px;
  border-radius:16px;
  background:linear-gradient(135deg,#064e3b,#0f766e);
  color:white;
  box-shadow:0 12px 30px rgba(6,78,59,.2);
}
.final-production-banner div{
  display:grid;
  gap:5px;
}
.final-production-banner span{
  color:#d1fae5;
}
.final-production-badge{
  flex:0 0 auto;
  padding:9px 13px;
  border-radius:999px;
  background:#facc15;
  color:#422006!important;
  font-weight:900;
}
.final-checklist{
  display:grid;
  gap:10px;
}
.final-checklist label{
  display:flex;
  align-items:center;
  gap:10px;
}
.final-checklist input{
  width:auto;
}
@media(max-width:600px){
  .final-production-banner{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ===== HappyLaundry V40.1 Customer Master ===== */
.customer-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.customer-add-button{white-space:nowrap}
.customer-search{min-width:280px;max-width:420px}
.customer-active-label{display:flex!important;align-items:center;gap:10px}
.customer-active-label input{width:auto}
.customer-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.customer-detail-card{max-width:920px}
.quick-customer-card{max-width:620px}
.customer-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.customer-contact-card{
  margin:16px 0;padding:14px 16px;border-radius:14px;
  background:var(--surface-soft);border:1px solid var(--border)
}
.customer-contact-card p{margin:7px 0}
@media(max-width:700px){
  .customer-select-row{grid-template-columns:1fr}
  .customer-add-button{width:100%}
  .customer-search{min-width:0;width:100%}
  .customer-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== V40.2 Daily UI Fix ===== */
.payment-badge{display:inline-flex;justify-content:center;min-width:92px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.payment-paid{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.payment-partial{background:#fef3c7;color:#92400e;border-color:#fde68a}
.payment-unpaid{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.paid-button{background:#dcfce7!important;color:#166534!important;border:1px solid #bbf7d0!important;opacity:1!important;cursor:default!important}

#orders table{width:100%;table-layout:fixed}
#orders th,#orders td{padding:10px 8px;vertical-align:top;overflow-wrap:anywhere}
#orders th:nth-child(1),#orders td:nth-child(1){width:15%}
#orders th:nth-child(2),#orders td:nth-child(2){width:12%}
#orders th:nth-child(3),#orders td:nth-child(3){width:15%}
#orders th:nth-child(4),#orders td:nth-child(4){width:8%}
#orders th:nth-child(5),#orders td:nth-child(5){width:8%}
#orders th:nth-child(6),#orders td:nth-child(6){width:10%}
#orders th:nth-child(7),#orders td:nth-child(7){width:13%}
#orders th:nth-child(8),#orders td:nth-child(8){width:19%}
#orders td:last-child .action{margin:2px}

.workflow-board{grid-template-columns:repeat(3,minmax(250px,1fr))!important;gap:12px!important;overflow-x:auto;padding-bottom:10px}
.workflow-column{min-width:250px!important;max-width:340px}
.workflow-card{width:100%!important;min-width:0!important}

.receipt-modal{align-items:flex-start!important;overflow-y:auto!important;padding:16px 8px!important}
.receipt-scroll-card,#receiptModal .modal-card{width:min(100%,720px)!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:auto!important}
#receiptModal .modal-actions{position:sticky;bottom:0;background:var(--surface);padding-top:10px;z-index:3}

@media(max-width:800px){
  #orders .table-wrap{overflow:visible}
  #orders table,#orders thead,#orders tbody,#orders tr,#orders th,#orders td{display:block;width:100%!important}
  #orders thead{display:none}
  #orders tr{margin-bottom:14px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
  #orders td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:7px 0;border:0}
  #orders td::before{font-weight:800;color:var(--text-muted)}
  #orders td:nth-child(1)::before{content:"Order"}
  #orders td:nth-child(2)::before{content:"Pelanggan"}
  #orders td:nth-child(3)::before{content:"Rincian"}
  #orders td:nth-child(4)::before{content:"Total"}
  #orders td:nth-child(5)::before{content:"Sisa"}
  #orders td:nth-child(6)::before{content:"Pembayaran"}
  #orders td:nth-child(7)::before{content:"Status"}
  #orders td:nth-child(8)::before{content:"Aksi"}
  #orders td:last-child{display:flex;flex-wrap:wrap}
  #orders td:last-child::before{width:100%}
  .workflow-board{grid-template-columns:1fr!important;overflow:visible!important}
  .workflow-column{min-width:0!important;max-width:none!important;width:100%!important}
  .receipt-scroll-card,#receiptModal .modal-card{max-height:calc(100dvh - 16px)!important;border-radius:16px!important}
}


/* ===== HappyLaundry V40.3 Six Column Queue ===== */

/* Desktop: exactly six workflow columns visible in one screen */
@media(min-width:1200px){
  #workflow .workflow-board,
  .workflow-board{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    overflow:visible!important;
    padding-bottom:0!important;
    align-items:start;
  }

  #workflow .workflow-column,
  .workflow-column{
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
    padding:8px!important;
    border-radius:12px!important;
  }

  #workflow .workflow-column h3,
  .workflow-column h3{
    margin:0 0 7px!important;
    font-size:13px!important;
    line-height:1.2!important;
    text-align:center;
  }

  #workflow .workflow-count,
  .workflow-count{
    min-width:24px!important;
    height:24px!important;
    padding:2px 6px!important;
    font-size:11px!important;
  }

  #workflow .workflow-card,
  .workflow-card{
    padding:9px!important;
    margin-bottom:8px!important;
    border-radius:11px!important;
    font-size:11px!important;
    line-height:1.3!important;
    box-shadow:0 4px 12px rgba(10,74,77,.07)!important;
  }

  #workflow .workflow-card h4,
  #workflow .workflow-card b,
  .workflow-card h4{
    font-size:12px!important;
    line-height:1.25!important;
    margin:0 0 4px!important;
    overflow-wrap:anywhere;
  }

  #workflow .workflow-card p,
  #workflow .workflow-card small,
  .workflow-card p,
  .workflow-card small{
    font-size:10px!important;
    line-height:1.3!important;
    margin:2px 0!important;
  }

  #workflow .workflow-card .actions,
  #workflow .workflow-card-actions,
  .workflow-card .actions,
  .workflow-card-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    margin-top:7px!important;
  }

  #workflow .workflow-card button,
  .workflow-card button{
    width:100%!important;
    min-width:0!important;
    min-height:30px!important;
    padding:5px 6px!important;
    border-radius:8px!important;
    font-size:10px!important;
    white-space:normal!important;
    line-height:1.15!important;
  }

  #workflow .workflow-card select,
  .workflow-card select{
    width:100%!important;
    min-height:32px!important;
    padding:5px!important;
    font-size:10px!important;
  }

  #workflow .panel{
    padding:12px!important;
  }
}

/* Medium desktop/laptop: still six columns, horizontally compact */
@media(min-width:901px) and (max-width:1199px){
  #workflow .workflow-board,
  .workflow-board{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(145px,1fr))!important;
    gap:7px!important;
    overflow-x:auto!important;
  }

  #workflow .workflow-column,
  .workflow-column{
    min-width:145px!important;
    max-width:none!important;
    padding:7px!important;
  }

  #workflow .workflow-column h3,
  .workflow-column h3{
    font-size:12px!important;
    text-align:center;
  }

  #workflow .workflow-card,
  .workflow-card{
    padding:8px!important;
    font-size:10px!important;
  }

  #workflow .workflow-card button,
  .workflow-card button{
    min-height:29px!important;
    padding:4px!important;
    font-size:9px!important;
  }
}

/* Tablet and HP: readable stacked columns */
@media(max-width:900px){
  #workflow .workflow-board,
  .workflow-board{
    grid-template-columns:1fr!important;
    overflow:visible!important;
    gap:12px!important;
  }

  #workflow .workflow-column,
  .workflow-column{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* ===== HappyLaundry V40.4 PWA Professional ===== */

.pwa-splash{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  background:linear-gradient(160deg,#f4f9f9,#dff3f1);
  opacity:1;
  transition:opacity .4s ease,visibility .4s ease;
}
.pwa-splash.hide{
  opacity:0;
  visibility:hidden;
}
.pwa-splash-card{
  display:grid;
  justify-items:center;
  gap:10px;
  text-align:center;
  color:#0b3437;
}
.pwa-splash-logo,
.about-app-logo{
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  border-radius:26px;
  background:linear-gradient(135deg,#0f766e,#14b8a6);
  color:white;
  font-size:34px;
  font-weight:900;
  box-shadow:0 18px 40px rgba(15,118,110,.28);
}
.pwa-splash-card h1{
  margin:6px 0 0;
  font-size:30px;
}
.pwa-splash-card p{
  margin:0;
  color:#668185;
}
.pwa-splash-card small{
  margin-top:8px;
  color:#668185;
}
.pwa-splash-spinner{
  width:38px;
  height:38px;
  margin-top:8px;
  border:4px solid #cce9e6;
  border-top-color:#0f766e;
  border-radius:50%;
  animation:pwaSpin .8s linear infinite;
}
@keyframes pwaSpin{to{transform:rotate(360deg)}}

.app-update-banner{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:5000;
  width:min(92vw,720px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  border-radius:16px;
  background:#062f2d;
  color:white;
  box-shadow:0 20px 45px rgba(0,0,0,.28);
}
.app-update-banner div{
  display:grid;
  gap:3px;
}
.app-update-banner span{
  color:#ccfbf1;
  font-size:13px;
}
.app-update-banner button{
  flex:0 0 auto;
  background:#facc15;
  color:#422006;
  border:0;
  font-weight:900;
}

.about-app-card{
  max-width:720px;
}
.about-app-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.about-app-header .about-app-logo{
  width:64px;
  height:64px;
  border-radius:20px;
  font-size:25px;
  flex:0 0 auto;
}
.about-app-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.about-app-grid>div{
  display:grid;
  gap:5px;
  padding:13px;
  border-radius:14px;
  background:var(--surface-soft);
  border:1px solid var(--border);
}
.about-app-grid span{
  color:var(--text-muted);
  font-size:12px;
}
.about-app-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:18px;
}
.about-floating-btn{
  position:fixed;
  right:20px;
  bottom:92px;
  z-index:900;
  width:48px;
  height:48px;
  border-radius:50%;
}

@media(max-width:600px){
  .app-update-banner{
    align-items:stretch;
    flex-direction:column;
  }
  .app-update-banner button{
    width:100%;
  }
  .about-app-grid{
    grid-template-columns:1fr;
  }
  .about-app-actions{
    flex-direction:column;
  }
}


/* ===== HappyLaundry V40.5 Final Stable Logo ===== */
.laundry-logo{
  overflow:hidden;
  background:transparent!important;
  box-shadow:none!important;
}
.laundry-logo svg{
  display:block;
  width:100%;
  height:100%;
}
.pwa-splash-logo.laundry-logo{
  width:100px;
  height:100px;
}
.about-app-logo.laundry-logo{
  width:70px;
  height:70px;
}
.brand-logo.laundry-logo{
  width:48px;
  height:48px;
  border-radius:14px;
}


/* ===== HappyLaundry V40.6 Light Blue Dashboard ===== */
:root{
  --primary:#4da3ff;
  --primary-dark:#1d75d6;
  --primary-soft:#eaf5ff;
  --primary-soft-2:#d8ecff;
  --sidebar-bg:#cfe9ff;
  --sidebar-bg-2:#a9d5ff;
  --sidebar-text:#0f3f68;
  --surface:#ffffff;
  --surface-soft:#f4faff;
  --border:#cfe2f3;
  --text-main:#12344d;
  --text-muted:#64839b;
  --shadow:0 10px 28px rgba(49,120,181,.12);
}

body{
  background:linear-gradient(180deg,#f7fbff,#edf7ff)!important;
  color:var(--text-main)!important;
}

.sidebar{
  background:linear-gradient(180deg,#cfe9ff 0%,#b7dcff 50%,#9fcfff 100%)!important;
  color:var(--sidebar-text)!important;
  border-right:1px solid #9bc8ee!important;
}
.sidebar .brand,
.sidebar .brand small,
.sidebar .nav,
.sidebar button{
  color:var(--sidebar-text)!important;
}
.sidebar .nav:hover{
  background:rgba(255,255,255,.48)!important;
}
.sidebar .nav.active{
  background:#4da3ff!important;
  color:white!important;
  box-shadow:0 8px 20px rgba(40,120,205,.24)!important;
}
.sidebar .nav-daily{
  background:#7dbdff!important;
  color:#0f3f68!important;
}
.sidebar .nav-daily.active{
  background:#4da3ff!important;
  color:#fff!important;
}
.sidebar .nav[data-page="completeCenter"]{
  background:linear-gradient(135deg,#ffd66b,#ffb84d)!important;
  color:#6c3a00!important;
}

.topbar,
.mobile-header{
  background:#ffffff!important;
  border-bottom:1px solid #d6e8f7!important;
}

.primary,
#savePosOrderBtn,
#floatingOrderBtn{
  background:linear-gradient(135deg,#4da3ff,#2b86e6)!important;
  color:white!important;
  border-color:#2b86e6!important;
}
.secondary,
.icon-button{
  border-color:#b7d8f3!important;
  color:#1d75d6!important;
  background:#f8fcff!important;
}

.final-production-banner{
  background:linear-gradient(135deg,#6bb7ff,#3e98ed)!important;
  color:white!important;
}
.final-production-banner span{
  color:#eaf5ff!important;
}

.metric,
.panel,
.volume-card{
  background:#ffffff!important;
  border:1px solid #d4e6f5!important;
  box-shadow:var(--shadow)!important;
}

.volume-recap-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.volume-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border-radius:16px;
}
.volume-card>div{
  display:grid;
  gap:5px;
}
.volume-card span:not(.volume-icon){
  color:#64839b;
  font-size:13px;
}
.volume-card b{
  color:#0f4f82;
  font-size:22px;
}
.volume-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:linear-gradient(135deg,#dff0ff,#c4e2ff);
  font-size:22px;
}

.laundry-volume-recap{
  margin-top:18px;
  border:1px dashed #85bdf0!important;
  background:linear-gradient(180deg,#fafdff,#f1f8ff)!important;
}

.payment-paid{background:#dcfce7!important;color:#166534!important}
.payment-partial{background:#fff4ce!important;color:#8a5600!important}
.payment-unpaid{background:#ffe4e6!important;color:#9f1239!important}

@media(max-width:1000px){
  .volume-recap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .volume-recap-grid{grid-template-columns:1fr}
  .volume-card{padding:14px}
}


/* ===== HappyLaundry V40.7 Compact Green Dashboard ===== */
:root{
  --primary:#0f766e;
  --primary-dark:#075e58;
  --primary-soft:#e7f7f4;
  --surface:#ffffff;
  --surface-soft:#f1f9f8;
  --border:#cfe7e3;
  --text-main:#123b3d;
  --text-muted:#648487;
  --shadow:0 8px 22px rgba(15,118,110,.09);
}

body{
  background:linear-gradient(180deg,#f7fbfa,#eef8f6)!important;
  color:var(--text-main)!important;
  font-size:13px!important;
}

.sidebar{
  background:linear-gradient(180deg,#d8f1ec 0%,#bde4dc 50%,#9dd3c9 100%)!important;
  color:#174e50!important;
  border-right:1px solid #8bc9bd!important;
}
.sidebar .brand,
.sidebar .brand small,
.sidebar .nav,
.sidebar button{
  color:#174e50!important;
}
.sidebar .nav{
  font-size:13px!important;
  padding:9px 11px!important;
  min-height:38px!important;
  margin-bottom:3px!important;
}
.sidebar .nav:hover{
  background:rgba(255,255,255,.48)!important;
}
.sidebar .nav.active{
  background:#0f766e!important;
  color:white!important;
  box-shadow:0 7px 18px rgba(15,118,110,.22)!important;
}

.primary,
#savePosOrderBtn,
#floatingOrderBtn{
  background:linear-gradient(135deg,#0f766e,#0d9488)!important;
  color:white!important;
  border-color:#0f766e!important;
}

.secondary,
.icon-button{
  border-color:#b8dcd6!important;
  color:#0f766e!important;
  background:#fbfefd!important;
}

.final-production-banner{
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  padding:12px 14px!important;
  margin-bottom:12px!important;
}
.final-production-banner b{
  font-size:14px!important;
}
.final-production-banner span{
  font-size:11px!important;
  color:#d5fffa!important;
}

.section-heading h2{
  font-size:22px!important;
  line-height:1.2!important;
}
.section-heading h3{
  font-size:15px!important;
}
.section-heading p,
.muted{
  font-size:11px!important;
}

.panel{
  padding:13px!important;
  border-radius:15px!important;
}
.metric-grid{
  gap:9px!important;
}
.metric{
  padding:12px 13px!important;
  min-height:88px!important;
  border-radius:14px!important;
}
.metric span{
  font-size:11px!important;
}
.metric b{
  font-size:22px!important;
  line-height:1.15!important;
}

.compact-operations-strip{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.compact-operations-strip article{
  display:grid;
  gap:3px;
  padding:10px 11px;
  border-radius:13px;
  background:#ffffff;
  border:1px solid #cfe7e3;
  box-shadow:0 5px 14px rgba(15,118,110,.07);
}
.compact-operations-strip span{
  color:#648487;
  font-size:10px;
  white-space:nowrap;
}
.compact-operations-strip b{
  color:#0d5e59;
  font-size:17px;
  line-height:1.15;
}

.laundry-volume-recap{
  margin-top:12px!important;
  padding:12px!important;
  background:linear-gradient(180deg,#fafffe,#f1f9f8)!important;
  border:1px dashed #9ccfc6!important;
}
.volume-recap-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:8px!important;
}
.volume-card{
  padding:10px!important;
  gap:8px!important;
  border-radius:13px!important;
}
.volume-icon{
  width:36px!important;
  height:36px!important;
  font-size:18px!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,#dff5f0,#c4e8e1)!important;
}
.volume-card span:not(.volume-icon){
  font-size:10px!important;
}
.volume-card b{
  font-size:17px!important;
  color:#0d5e59!important;
}

table{
  font-size:12px!important;
}
th,td{
  padding:8px 7px!important;
}
button{
  min-height:36px!important;
  font-size:12px!important;
  padding:7px 10px!important;
}
input,select,textarea{
  font-size:12px!important;
  padding:8px 9px!important;
}

.workflow-column{
  padding:7px!important;
}
.workflow-column h3{
  font-size:12px!important;
}
.workflow-card{
  padding:8px!important;
  font-size:10px!important;
}
.workflow-card button{
  min-height:28px!important;
  font-size:9px!important;
  padding:4px!important;
}

@media(max-width:1200px){
  .compact-operations-strip{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .volume-recap-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  body{font-size:13px!important}
  .compact-operations-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .compact-operations-strip article:last-child{
    grid-column:span 2;
  }
  .volume-recap-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .metric{
    min-height:82px!important;
  }
}


/* ===== HappyLaundry V40.8 Slim Sidebar ===== */

/* Desktop sidebar dibuat ramping */
@media(min-width:901px){
  .sidebar{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
    padding:14px 10px!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:220px!important;
    width:calc(100% - 220px)!important;
  }

  .sidebar .brand{
    gap:9px!important;
    padding:6px 4px 12px!important;
  }

  .sidebar .brand-logo,
  .sidebar .laundry-logo{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
  }

  .sidebar .brand h2,
  .sidebar .brand strong{
    font-size:14px!important;
    line-height:1.1!important;
  }

  .sidebar .brand small{
    font-size:10px!important;
  }

  .sidebar .nav{
    min-height:34px!important;
    padding:7px 9px!important;
    font-size:12px!important;
    border-radius:10px!important;
    margin-bottom:2px!important;
  }

  .sidebar .nav svg,
  .sidebar .nav .icon,
  .sidebar .nav-icon{
    width:16px!important;
    height:16px!important;
    font-size:15px!important;
  }

  .sidebar .menu-toggle,
  .sidebar-toggle,
  #sidebarToggle{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:6px!important;
  }

  .sidebar .version-badge{
    font-size:10px!important;
    padding:4px 7px!important;
  }
}

/* Desktop sangat lebar: ekstra ramping */
@media(min-width:1400px){
  .sidebar{
    width:205px!important;
    min-width:205px!important;
    max-width:205px!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:205px!important;
    width:calc(100% - 205px)!important;
  }
}

/* Tablet dan HP: sidebar overlay lebih kecil */
@media(max-width:900px){
  .sidebar{
    width:min(78vw,270px)!important;
    max-width:270px!important;
    min-width:0!important;
    padding:14px 10px!important;
  }

  .sidebar .nav{
    font-size:13px!important;
    min-height:38px!important;
    padding:8px 10px!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:0!important;
    width:100%!important;
  }
}

/* Saat sidebar ditutup, dashboard memakai layar penuh */
body.sidebar-collapsed .sidebar,
.sidebar.collapsed{
  width:76px!important;
  min-width:76px!important;
  max-width:76px!important;
}

body.sidebar-collapsed .main,
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .content,
body.sidebar-collapsed .app-main{
  margin-left:76px!important;
  width:calc(100% - 76px)!important;
}

body.sidebar-collapsed .sidebar .brand-text,
body.sidebar-collapsed .sidebar .nav span:not(.icon),
body.sidebar-collapsed .sidebar .nav-label,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav span:not(.icon),
.sidebar.collapsed .nav-label{
  display:none!important;
}

body.sidebar-collapsed .sidebar .nav,
.sidebar.collapsed .nav{
  justify-content:center!important;
  padding:8px!important;
}

/* Dashboard tetap rapat setelah sidebar diperkecil */
.dashboard-grid,
.metric-grid,
.compact-operations-strip,
.volume-recap-grid{
  max-width:100%!important;
}


/* ===== HappyLaundry V40.9 Mobile Receipt Fix ===== */

/* Nota menjadi layer scroll penuh */
#receiptModal.receipt-modal{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:12px!important;
  background:rgba(7,41,40,.72)!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}

#receiptModal.receipt-modal.hidden{
  display:none!important;
}

#receiptModal .modal-card,
#receiptModal .receipt-scroll-card{
  position:relative!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  max-height:none!important;
  min-height:auto!important;
  margin:0 auto 28px!important;
  padding:18px!important;
  overflow:visible!important;
  border-radius:18px!important;
  background:#fff!important;
}

#receiptModal #receiptContent{
  overflow:visible!important;
  max-height:none!important;
  padding-bottom:96px!important;
}

/* Tombol aksi nota menempel di bawah modal, bukan di bawah layar aplikasi */
#receiptModal .modal-actions,
#receiptModal .receipt-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:20!important;
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  padding:12px 0 2px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 35%)!important;
}

/* Close tetap terlihat saat scroll */
#receiptModal .close,
#receiptModal [id*="closeReceipt"]{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  float:right!important;
}

/* Sembunyikan navigasi bawah selama nota terbuka */
body.receipt-open .mobile-bottom-nav,
body.receipt-open .bottom-nav,
body.receipt-open .mobile-nav,
body.receipt-open nav.mobile,
body.receipt-open #mobileBottomNav{
  display:none!important;
}

body.receipt-open{
  overflow:hidden!important;
}

/* HP */
@media(max-width:700px){
  #receiptModal.receipt-modal{
    padding:0!important;
    background:#fff!important;
  }

  #receiptModal .modal-card,
  #receiptModal .receipt-scroll-card{
    width:100%!important;
    max-width:none!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:14px 14px 30px!important;
    border-radius:0!important;
  }

  #receiptModal #receiptContent{
    padding-bottom:120px!important;
  }

  #receiptModal .modal-actions,
  #receiptModal .receipt-actions{
    padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;
  }
}

/* Print tetap bersih */
@media print{
  body.receipt-open{
    overflow:visible!important;
  }
  #receiptModal.receipt-modal{
    position:static!important;
    display:block!important;
    overflow:visible!important;
    padding:0!important;
    background:#fff!important;
  }
  #receiptModal .modal-card{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  #receiptModal .modal-actions,
  #receiptModal .receipt-actions,
  #receiptModal .close{
    display:none!important;
  }
}


/* ===== HappyLaundry V40.10 Final UI ===== */

/* Desktop: sidebar nyaman, teks penuh, area klik besar */
@media(min-width:901px){
  .sidebar{
    width:230px!important;
    min-width:230px!important;
    max-width:230px!important;
    padding:14px 10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:1200!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:230px!important;
    width:calc(100% - 230px)!important;
    min-width:0!important;
  }

  .sidebar .brand{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:6px 4px 14px!important;
  }

  .sidebar .brand-logo,
  .sidebar .laundry-logo{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
  }

  .sidebar .brand h2,
  .sidebar .brand strong{
    font-size:14px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }

  .sidebar .brand small{
    font-size:10px!important;
    white-space:normal!important;
  }

  .sidebar .nav{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
    min-height:40px!important;
    padding:9px 11px!important;
    margin:0 0 4px!important;
    border-radius:11px!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:visible!important;
    cursor:pointer!important;
    user-select:none!important;
  }

  .sidebar .nav span,
  .sidebar .nav-label{
    display:inline!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .sidebar .nav svg,
  .sidebar .nav .icon,
  .sidebar .nav-icon{
    flex:0 0 auto!important;
    width:17px!important;
    height:17px!important;
    font-size:16px!important;
  }

  .sidebar .nav:hover{
    transform:none!important;
  }

  .sidebar-toggle,
  .menu-toggle,
  #sidebarToggle{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    display:grid!important;
    place-items:center!important;
    cursor:pointer!important;
    z-index:1300!important;
  }

  body.sidebar-collapsed .sidebar{
    width:76px!important;
    min-width:76px!important;
    max-width:76px!important;
  }

  body.sidebar-collapsed .main,
  body.sidebar-collapsed .main-content,
  body.sidebar-collapsed .content,
  body.sidebar-collapsed .app-main{
    margin-left:76px!important;
    width:calc(100% - 76px)!important;
  }

  body.sidebar-collapsed .sidebar .brand-text,
  body.sidebar-collapsed .sidebar .brand h2,
  body.sidebar-collapsed .sidebar .brand strong,
  body.sidebar-collapsed .sidebar .brand small,
  body.sidebar-collapsed .sidebar .nav span,
  body.sidebar-collapsed .sidebar .nav-label{
    display:none!important;
  }

  body.sidebar-collapsed .sidebar .nav{
    justify-content:center!important;
    padding:9px!important;
  }
}

/* Tablet/HP: overlay sidebar tetap mudah diklik */
@media(max-width:900px){
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(82vw,285px)!important;
    min-width:0!important;
    max-width:285px!important;
    padding:14px 10px!important;
    transform:translateX(-105%)!important;
    transition:transform .25s ease!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:3000!important;
    box-shadow:16px 0 40px rgba(0,0,0,.2)!important;
  }

  .sidebar.open{
    transform:translateX(0)!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:0!important;
    width:100%!important;
  }

  .sidebar .nav{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    min-height:44px!important;
    padding:10px 12px!important;
    margin-bottom:5px!important;
    font-size:13px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:visible!important;
    cursor:pointer!important;
  }

  .sidebar .nav span,
  .sidebar .nav-label{
    display:inline!important;
    white-space:normal!important;
  }

  body.sidebar-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(7,41,40,.45);
    z-index:2500;
  }

  .sidebar-toggle,
  .menu-toggle,
  #sidebarToggle{
    position:relative!important;
    z-index:3200!important;
    cursor:pointer!important;
  }
}

/* Hilangkan konflik lama yang membuat teks terpotong */
.sidebar,
.sidebar *{
  box-sizing:border-box!important;
}
.sidebar .nav{
  max-width:100%!important;
}

.custom-logo-box{overflow:hidden!important;background:#fff!important;border-radius:18px!important;display:grid!important;place-items:center!important}
.custom-logo-box img{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}
.sidebar .brand-logo.custom-logo-box{width:56px!important;height:56px!important;min-width:56px!important}
.pwa-splash-logo.custom-logo-box{width:150px!important;height:150px!important}
.about-app-logo.custom-logo-box{width:92px!important;height:92px!important}
.receipt-brand-logo{display:block!important;width:min(78%,420px)!important;max-height:170px!important;object-fit:contain!important;margin:0 auto 14px!important;background:#fff!important}
@media(max-width:700px){.sidebar .brand-logo.custom-logo-box{width:48px!important;height:48px!important}.pwa-splash-logo.custom-logo-box{width:130px!important;height:130px!important}.receipt-brand-logo{width:86%!important;max-height:150px!important}}
@media print{.receipt-brand-logo{width:70%!important;max-height:130px!important;margin-bottom:8px!important}}


/* ===== HappyLaundry V40.12 Final Branding ===== */
.pwa-splash-card{
  display:grid!important;
  justify-items:center!important;
  gap:10px!important;
  text-align:center!important;
}

.pwa-single-logo{
  display:block!important;
  width:160px!important;
  height:160px!important;
  object-fit:contain!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:0 16px 36px rgba(15,118,110,.16)!important;
  margin:0 auto 8px!important;
}

/* Sisa wrapper logo lama tidak boleh tampil di splash */
#pwaSplash .pwa-splash-logo,
#pwaSplash .custom-logo-box:not(:has(.pwa-single-logo)),
#pwaSplash svg{
  display:none!important;
}

#pwaSplash .pwa-splash-card h1{
  margin:4px 0 0!important;
  font-size:30px!important;
  color:#0b3f42!important;
}

#pwaSplash .pwa-splash-card p{
  margin:0!important;
  color:#628286!important;
  font-size:14px!important;
}

#pwaSplash .pwa-splash-card small{
  color:#628286!important;
  font-size:12px!important;
}

@media(max-width:600px){
  .pwa-single-logo{
    width:138px!important;
    height:138px!important;
  }

  #pwaSplash .pwa-splash-card h1{
    font-size:27px!important;
  }
}


/* ===== HappyLaundry Enterprise V41 Production ===== */

:root{
  --v41-sidebar-width:220px;
  --v41-sidebar-collapsed:72px;
}

.sidebar{
  background:linear-gradient(180deg,#d9f2ed 0%,#c2e7df 52%,#a9d9cf 100%)!important;
  color:#174e50!important;
  border-right:1px solid #90cfc3!important;
}

.sidebar .brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:8px 6px 16px!important;
}

.sidebar .brand-logo.custom-logo-box,
.sidebar .laundry-logo.custom-logo-box{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 7px 18px rgba(15,118,110,.12)!important;
}

.sidebar .brand h2,
.sidebar .brand strong{
  font-size:14px!important;
  line-height:1.15!important;
  color:#174e50!important;
}

.sidebar .brand small{
  font-size:10px!important;
  color:#4f7779!important;
}

.sidebar .version-badge,
.sidebar [class*="version-badge"],
.sidebar [class*="v20"],
.sidebar .badge{
  display:none!important;
}

.sidebar .nav{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-height:40px!important;
  padding:9px 11px!important;
  margin-bottom:4px!important;
  border-radius:11px!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:normal!important;
  cursor:pointer!important;
  color:#174e50!important;
}

.sidebar .nav.active{
  background:#0f766e!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(15,118,110,.20)!important;
}

.sidebar .nav:hover{
  background:rgba(255,255,255,.50)!important;
}

.sidebar .nav[data-page="completeCenter"]{
  background:linear-gradient(135deg,#ffd973,#ffbd4b)!important;
  color:#6b3b00!important;
}

@media(min-width:901px){
  .sidebar{
    width:var(--v41-sidebar-width)!important;
    min-width:var(--v41-sidebar-width)!important;
    max-width:var(--v41-sidebar-width)!important;
    padding:14px 10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:1200!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:var(--v41-sidebar-width)!important;
    width:calc(100% - var(--v41-sidebar-width))!important;
    min-width:0!important;
  }

  body.sidebar-collapsed .sidebar{
    width:var(--v41-sidebar-collapsed)!important;
    min-width:var(--v41-sidebar-collapsed)!important;
    max-width:var(--v41-sidebar-collapsed)!important;
  }

  body.sidebar-collapsed .main,
  body.sidebar-collapsed .main-content,
  body.sidebar-collapsed .content,
  body.sidebar-collapsed .app-main{
    margin-left:var(--v41-sidebar-collapsed)!important;
    width:calc(100% - var(--v41-sidebar-collapsed))!important;
  }

  body.sidebar-collapsed .sidebar .brand h2,
  body.sidebar-collapsed .sidebar .brand strong,
  body.sidebar-collapsed .sidebar .brand small,
  body.sidebar-collapsed .sidebar .nav span,
  body.sidebar-collapsed .sidebar .nav-label{
    display:none!important;
  }

  body.sidebar-collapsed .sidebar .brand{
    justify-content:center!important;
  }

  body.sidebar-collapsed .sidebar .nav{
    justify-content:center!important;
    padding:9px!important;
  }
}

@media(max-width:900px){
  .sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(82vw,280px)!important;
    max-width:280px!important;
    transform:translateX(-105%)!important;
    transition:transform .25s ease!important;
    overflow-y:auto!important;
    z-index:3000!important;
    box-shadow:16px 0 38px rgba(0,0,0,.20)!important;
  }

  .sidebar.open{
    transform:translateX(0)!important;
  }

  .main,
  .main-content,
  .content,
  .app-main{
    margin-left:0!important;
    width:100%!important;
  }

  body.sidebar-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(7,41,40,.45);
    z-index:2500;
  }
}

/* ===== V41.1 Production Clean ===== */
.custom-clean-logo{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#fff!important;
  border-radius:16px!important;
}
.custom-clean-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.sidebar .custom-clean-logo{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
}
.auth-card .custom-clean-logo{
  width:96px!important;
  height:96px!important;
  margin:0 auto 14px!important;
}
.version-badge,
.ultimate-badge,
.router-status-badge,
[class*="v20"],
[data-version="v20"]{
  display:none!important;
}


/* ===== HappyLaundry V41.2 Professional Dashboard ===== */
:root{
  --pro-green:#0b8a5a;
  --pro-green-dark:#066a46;
  --pro-green-soft:#eaf8f1;
  --pro-blue:#1677e8;
  --pro-orange:#ff8500;
  --pro-purple:#7d28d9;
  --pro-red:#e62929;
  --pro-text:#113c3d;
  --pro-muted:#4f6f78;
  --pro-border:#d9e7e5;
  --pro-shadow:0 8px 24px rgba(22,62,65,.10);
}

body{
  background:#f7faf9!important;
  color:var(--pro-text)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

.sidebar{
  background:linear-gradient(180deg,#07955f 0%,#087d54 58%,#056341 100%)!important;
  color:#fff!important;
  border-right:0!important;
}
.sidebar .brand,
.sidebar .brand h2,
.sidebar .brand strong,
.sidebar .brand small,
.sidebar .nav{
  color:#fff!important;
}
.sidebar .brand{
  flex-direction:column!important;
  text-align:center!important;
  gap:8px!important;
  padding:12px 8px 20px!important;
}
.sidebar .brand-logo,
.sidebar .custom-clean-logo{
  width:104px!important;
  height:104px!important;
  min-width:104px!important;
  border-radius:50%!important;
  border:4px solid rgba(255,255,255,.9)!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
}
.sidebar .brand h2,
.sidebar .brand strong{
  font-size:16px!important;
}
.sidebar .brand small{
  font-size:12px!important;
  opacity:.92!important;
}
.sidebar .nav{
  min-height:42px!important;
  padding:10px 13px!important;
  border-radius:11px!important;
  font-size:13px!important;
  font-weight:600!important;
}
.sidebar .nav:hover{
  background:rgba(255,255,255,.14)!important;
}
.sidebar .nav.active{
  background:#fff!important;
  color:var(--pro-green)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.15)!important;
}
.sidebar .nav[data-page="completeCenter"]{
  background:linear-gradient(135deg,#ffdc77,#ffc44a)!important;
  color:#6c4200!important;
}
.sidebar footer,
.sidebar .sidebar-footer{
  background:rgba(0,0,0,.08)!important;
}

.topbar,
.mobile-header{
  background:#fff!important;
  border-bottom:1px solid #e4eceb!important;
  box-shadow:0 2px 10px rgba(20,65,67,.04)!important;
}
.topbar h1,
.page-header h1{
  color:#123e3f!important;
  font-size:28px!important;
}

.professional-welcome-banner{
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:18px!important;
  min-height:108px!important;
  padding:18px 26px!important;
  margin-bottom:18px!important;
  border:1px solid #bfe5d2!important;
  border-radius:18px!important;
  background:linear-gradient(105deg,#effaf4,#f8fffb)!important;
  box-shadow:var(--pro-shadow)!important;
  overflow:hidden!important;
}
.welcome-star{
  font-size:46px!important;
  color:#0aa65f!important;
  filter:drop-shadow(0 6px 12px rgba(10,166,95,.22));
}
.welcome-copy{
  display:grid!important;
  gap:5px!important;
}
.welcome-copy b{
  font-size:20px!important;
  color:#08784e!important;
}
.welcome-copy span{
  font-size:13px!important;
  color:#3d5d62!important;
}
.welcome-illustration{
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  font-size:40px!important;
  opacity:.95!important;
}

.compact-operations-strip{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:18px!important;
}
.compact-operations-strip article{
  min-height:94px!important;
  padding:15px 16px!important;
  border:1px solid #e0e8e7!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:var(--pro-shadow)!important;
}
.compact-operations-strip article:nth-child(1){border-top:4px solid #0fa45f!important}
.compact-operations-strip article:nth-child(2){border-top:4px solid #187be8!important}
.compact-operations-strip article:nth-child(3){border-top:4px solid #8a2be2!important}
.compact-operations-strip article:nth-child(4){border-top:4px solid #ff8a00!important}
.compact-operations-strip article:nth-child(5){border-top:4px solid #0fa45f!important}
.compact-operations-strip article:nth-child(6){border-top:4px solid #ff8a00!important}
.compact-operations-strip article:nth-child(7){border-top:4px solid #e92c2c!important}
.compact-operations-strip span{
  color:#284f55!important;
  font-size:12px!important;
  font-weight:600!important;
  opacity:1!important;
}
.compact-operations-strip b{
  color:#103e41!important;
  font-size:23px!important;
  opacity:1!important;
}

.dashboard-quick-pro{
  border:1px solid #ecd28f!important;
  background:#fffaf0!important;
  border-radius:15px!important;
  box-shadow:0 6px 20px rgba(166,116,0,.07)!important;
}

.dashboard-toolbar{
  margin-top:10px!important;
  padding:0 6px 10px!important;
}
.dashboard-toolbar h2{
  color:#0a6e49!important;
  font-size:23px!important;
}
.dashboard-toolbar .muted{
  color:#446770!important;
  opacity:1!important;
}

.metric-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  padding:0!important;
}
.metric{
  position:relative!important;
  min-height:156px!important;
  padding:26px 20px 20px 112px!important;
  border-radius:17px!important;
  background:#fff!important;
  border:1px solid var(--pro-border)!important;
  box-shadow:var(--pro-shadow)!important;
  overflow:hidden!important;
}
.metric::before{
  content:attr(data-icon)!important;
  position:absolute!important;
  left:22px!important;
  top:30px!important;
  width:68px!important;
  height:68px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:18px!important;
  font-size:34px!important;
  background:#e6f6ed!important;
}
.metric:nth-child(2)::before{background:#e3f0ff!important}
.metric:nth-child(3)::before{background:#fff0df!important}
.metric:nth-child(4)::before{background:#f2e7ff!important}
.metric:nth-child(5)::before{background:#fff0d7!important}
.metric:nth-child(6)::before{background:#ffe5e5!important}
.metric:nth-child(7)::before{background:#fff0df!important}
.metric:nth-child(8)::before{background:#e3f0ff!important}

.metric span{
  color:#173f45!important;
  font-size:14px!important;
  font-weight:600!important;
  opacity:1!important;
}
.metric b{
  color:#103e41!important;
  font-size:28px!important;
  line-height:1.15!important;
  opacity:1!important;
}
.metric small{
  color:#496c73!important;
  font-size:12px!important;
  opacity:1!important;
}
.metric.highlight{
  background:#f9fffb!important;
  border-color:#bfe4cf!important;
}

.laundry-volume-recap{
  margin-top:20px!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #dce8e6!important;
  border-radius:18px!important;
  box-shadow:var(--pro-shadow)!important;
}
.laundry-volume-recap h3{
  color:#0a6e49!important;
}
.laundry-volume-recap .muted{
  color:#496c73!important;
  opacity:1!important;
}
.volume-card{
  border:1px solid #e0e9e7!important;
  background:#fbfefd!important;
  min-height:94px!important;
}
.volume-card span:not(.volume-icon){
  color:#244f55!important;
  opacity:1!important;
  font-weight:600!important;
}
.volume-card b{
  color:#103e41!important;
  font-size:22px!important;
}
.volume-icon{
  background:#e7f7ee!important;
}

input,select,textarea{
  color:#123e3f!important;
  background:#fff!important;
  border:1px solid #cfe0dd!important;
}
.dashboard-filter label{
  color:#284f55!important;
  font-weight:600!important;
  opacity:1!important;
}

@media(max-width:1250px){
  .compact-operations-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:800px){
  .professional-welcome-banner{
    grid-template-columns:auto 1fr!important;
    min-height:92px!important;
    padding:16px!important;
  }
  .welcome-illustration{display:none!important}
  .welcome-copy b{font-size:17px!important}
  .compact-operations-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .metric-grid{grid-template-columns:1fr!important}
  .metric{
    min-height:130px!important;
    padding:22px 16px 18px 96px!important;
  }
  .metric::before{
    left:16px!important;
    top:24px!important;
    width:62px!important;
    height:62px!important;
  }
  .sidebar .brand-logo,
  .sidebar .custom-clean-logo{
    width:78px!important;
    height:78px!important;
    min-width:78px!important;
  }
}


/* ===== HappyLaundry V41.3 Employee Access ===== */
.employee-mode .employee-access-note{
  display:block;
}
.employee-access-note{
  display:none;
  padding:10px 13px;
  margin-bottom:12px;
  border:1px solid #cce8dc;
  border-radius:12px;
  background:#f1fbf6;
  color:#166442;
  font-size:12px;
  font-weight:700;
}
.employee-mode #completeCenter::before{
  content:"Mode Karyawan: Pusat Pro hanya dapat dilihat. Pengaturan voucher, resep bahan, backup, laporan owner, dan konfigurasi sistem dikunci.";
  display:block;
  padding:11px 14px;
  margin-bottom:14px;
  border-radius:13px;
  background:#fff7d6;
  border:1px solid #f0d77c;
  color:#735000;
  font-size:12px;
  font-weight:700;
}
.employee-mode .sidebar .nav[data-page="completeCenter"]{
  order:-1;
}
.employee-mode [data-owner-action],
.employee-mode .owner-action{
  display:none!important;
}

/* ===== HappyLaundry Enterprise V50 LTS ===== */
.lts-production-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;box-shadow:0 10px 28px rgba(15,118,110,.18)}
.lts-production-banner>div{display:grid;gap:3px}.lts-production-banner b{font-size:15px}.lts-production-banner span{font-size:12px;color:#d7fffa}
.lts-badge{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:34px;padding:0 12px;border-radius:999px;background:#facc15;color:#4a2c00!important;font-weight:900}
.metric span,.compact-operations-strip span,.volume-card span:not(.volume-icon),.dashboard-toolbar .muted,.laundry-volume-recap .muted{opacity:1!important;color:#294f55!important}
.metric b,.compact-operations-strip b,.volume-card b{color:#0e3d40!important}


/* ===== HappyLaundry V50.1 LTS Employee Inventory Access ===== */
.employee-mode #services::before,
.employee-mode #inventory::before,
.employee-mode #suppliers::before{
  content:"Mode Karyawan: akses operasional aktif. Perubahan data akan tercatat pada akun yang sedang login.";
  display:block;
  margin-bottom:12px;
  padding:10px 13px;
  border-radius:12px;
  background:#eefaf4;
  border:1px solid #c6e8d7;
  color:#17633f;
  font-size:12px;
  font-weight:700;
}
