@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root{
  --blue:#1677ee;--blue-dark:#0f67d8;--blue-soft:#eaf4ff;
  --bg:#f3f7fb;--panel:#fff;--text:#152238;--muted:#6f8095;--line:#e0e8f0;
  --green:#16a765;--red:#df3b46;--orange:#f39a27;--purple:#6c47e8;
  --soft-green:#eefaf4;--soft-purple:#f3efff;--soft-orange:#fff5e9;--soft-pink:#fff0f5;
  --shadow:0 8px 24px rgba(24,61,99,.055);--radius:14px
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.shell{display:flex;min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20;transition:.2s ease}
.brand{height:76px;padding:13px 21px;border-bottom:1px solid #edf2f7;display:flex;flex-direction:column;justify-content:center}
.brand-main{font-size:35px;line-height:32px;font-weight:900;color:#126fe8;letter-spacing:-1.6px}.brand-sub{font-size:7px;font-weight:800;color:#31536f;margin-top:5px;letter-spacing:.15px}
.sidebar nav{padding:10px 8px;overflow:auto;flex:1}.nav{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:9px;margin:3px 0;color:#334359;transition:.15s ease}.nav span{width:21px;text-align:center;color:#607891;font-size:16px}.nav b{font-size:13px;font-weight:600;letter-spacing:-.05px}.nav:hover{background:#f1f6fc}.nav.active{background:linear-gradient(135deg,#2282fb,#126ee9);color:#fff;box-shadow:0 6px 16px rgba(23,119,238,.22)}.nav.active span{color:#fff}
.side-foot{padding:11px 12px;border-top:1px solid #edf1f5;display:flex;justify-content:space-between;gap:8px;align-items:center;background:#fbfdff}.side-foot strong,.side-foot small{display:block}.side-foot strong{font-size:12px}.side-foot small{font-size:10px;color:var(--muted);margin-top:2px;text-transform:capitalize}.side-foot a{font-size:11px;color:#166fdc;font-weight:700}
main{margin-left:218px;min-width:0;flex:1;transition:.2s ease}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 18px;position:sticky;top:0;z-index:15}.menu-btn{border:0;background:transparent;font-size:21px;color:#29415d;cursor:pointer;width:36px;height:36px;border-radius:8px}.menu-btn:hover{background:#f1f5fa}.global-filter{display:flex;gap:9px;align-items:center;flex:1}.global-filter select{min-width:245px}.global-filter input[type=date]{width:145px}.global-filter select,.global-filter input{height:40px;border:1px solid #d7e1eb;border-radius:8px;background:#fff;padding:0 11px;color:#34465c;outline:none}.global-filter select:focus,.global-filter input:focus{border-color:#8bbcf5;box-shadow:0 0 0 3px rgba(23,119,238,.08)}.global-filter span{color:#8795a5;font-size:12px}.user{display:flex;align-items:center;gap:10px;margin-left:auto}.user .avatar{width:38px;height:38px;background:#e8f2ff;color:#1875e8;border-radius:50%;display:grid;place-items:center;font-weight:900}.user b,.user small{display:block}.user b{font-size:13px}.user small{font-size:10px;color:var(--muted);margin-top:2px;text-transform:capitalize}
.content{padding:17px 18px 30px;max-width:1840px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:end;margin:4px 0 14px}.page-head h1{font-size:24px;margin:0;color:#17385d;letter-spacing:-.35px}.page-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.btn{border:1px solid transparent;border-radius:8px;padding:9px 13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:.15s ease}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,#2380f7,#126fea);color:#fff;box-shadow:0 4px 12px rgba(23,119,238,.18)}.btn.green{background:#20a65c;color:#fff}.btn.soft{background:#f5f8fb;border-color:#d9e3ed;color:#36506d}.btn.small{padding:6px 9px;font-size:11px}.btn.block{width:100%;margin-top:12px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:14px}.metric{min-height:103px;border:1px solid #e1e9f1;border-radius:14px;padding:16px 17px;display:flex;align-items:center;gap:15px;box-shadow:var(--shadow)}.metric.blue{background:var(--blue-soft)}.metric.green{background:var(--soft-green)}.metric.purple{background:var(--soft-purple)}.metric.orange{background:var(--soft-orange)}.metric.pink{background:var(--soft-pink)}.metric-icon{width:50px;height:50px;border-radius:14px;background:#ffffffb7;display:grid;place-items:center;font-size:24px;color:#176fe4}.metric small{display:block;color:#40536a;font-size:12px;font-weight:500}.metric strong{display:block;font-size:22px;margin-top:6px;color:#132b54;letter-spacing:-.3px}
.card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.card-head{padding:12px 14px;border-bottom:1px solid #edf2f7;display:flex;justify-content:space-between;align-items:center}.card-head h3{margin:0;font-size:16px;color:#1c3657;letter-spacing:-.15px}.dash-grid{display:grid;grid-template-columns:2fr 1fr;gap:13px;margin-bottom:13px}.chart-card,.pay-card{min-height:330px}.bar-chart{height:270px;display:flex;align-items:end;gap:12px;padding:34px 18px 18px}.bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;min-width:58px}.bar-col span{font-size:11px;font-weight:700}.bar-col .bar{width:min(55px,85%);min-height:5px;background:linear-gradient(#3995ff,#1777ed);border-radius:6px 6px 0 0}.bar-col label{font-size:11px;color:#344b66;text-align:center}.pay-wrap{min-height:275px;display:flex;align-items:center;justify-content:center;gap:35px;padding:20px}.donut{width:195px;height:195px;border-radius:50%;background:conic-gradient(#2584f6 0 calc(var(--cash)*1%),#22bd71 calc(var(--cash)*1%) calc(var(--card)*1%),#ff9c28 calc(var(--card)*1%) 100%);display:grid;place-items:center}.donut>div{width:115px;height:115px;border-radius:50%;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.donut b{font-size:15px}.donut span{font-size:11px;color:var(--muted);margin-top:5px}.legend p{margin:15px 0;font-size:13px}.legend p b{display:block;margin:4px 0 0 23px}.legend i{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:9px}.legend .c1{background:#2584f6}.legend .c2{background:#22bd71}.legend .c3{background:#ff9c28}.dash-three{display:grid;grid-template-columns:1fr 1fr 1.08fr;gap:13px}.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}th{background:#f6f9fc;color:#536980;font-size:10px;text-transform:uppercase;letter-spacing:.24px;text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:800}td{padding:9px 10px;border-bottom:1px solid #edf2f7;font-size:11px;color:#283f58;vertical-align:middle;white-space:nowrap}tbody tr:hover td{background:#fafdff}tfoot th{background:#eef6ff;color:#173b63}.danger{color:var(--red);font-weight:900}.badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.badge.green{background:#e6f8ed;color:#16854a}.badge.red{background:#ffe7e9;color:#b5232c}.badge.blue{background:#e7f2ff;color:#196cc5}.report-tools{display:flex;justify-content:flex-end;margin:-45px 0 12px}.empty{background:#fff;border:1px dashed #cbd7e4;border-radius:13px;padding:42px;text-align:center;color:#7d8da0}.alert{border-radius:9px;padding:11px 13px;margin-bottom:12px;font-size:12px}.alert.success{background:#eafbf0;color:#147c42}.alert.error{background:#fff0f0;color:#b32828}.alert.warning{background:#fff8e9;color:#916310}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.report-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:130px;transition:.15s ease}.report-card:hover{transform:translateY(-2px);border-color:#bad8f8}.report-card b{font-size:16px;color:#173d68}.report-card span{font-size:11px;color:var(--muted);margin:8px 0;line-height:1.5}.report-card em{font-style:normal;color:#1976df;font-weight:800;margin-top:auto}.branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.branch-card{padding:16px}.branch-title{display:flex;justify-content:space-between;align-items:start}.branch-title h3{margin:0}.branch-title span{font-size:10px;color:#789}.branch-card p{font-size:11px;color:#1976df}.branch-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.branch-form .wide{grid-column:1/-1}.branch-form label,.form-card label{display:block;font-size:9px;font-weight:800;color:#65798f;margin:0 0 5px;text-transform:uppercase;letter-spacing:.28px}.branch-form input,.form-card input,.form-card select{width:100%;height:37px;border:1px solid #d6e0eb;border-radius:7px;padding:0 9px;outline:none}.branch-form input:focus,.form-card input:focus,.form-card select:focus{border-color:#8bbcf5;box-shadow:0 0 0 3px rgba(23,119,238,.08)}.branch-form button{align-self:end}.inline-form{margin-top:8px}.error-text{color:#b42b35!important}.split{display:grid;grid-template-columns:350px 1fr;gap:14px}.form-card{padding:18px}.form-card h3{margin-top:0}.form-card label{margin-top:10px}.info-card{padding:20px}.info-card li{margin:9px 0}.subline{display:block;color:#8a9bad;font-size:9px;margin-top:2px}.map-form{display:flex;gap:6px;align-items:center}.map-form input[name=canonical_name]{height:32px;border:1px solid #d6e0eb;border-radius:7px;padding:0 8px;min-width:180px}.bottom-panels{margin-top:13px}
.login-body{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#edf6ff,#f7faff)}.login-card{width:min(420px,92vw);background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 20px 60px rgba(23,74,123,.10)}.login-logo{font-size:48px;font-weight:900;color:#126fe8;line-height:1;letter-spacing:-2px}.login-sub{font-size:8px;font-weight:800;color:#274f77;margin-top:3px}.login-card h1{margin:26px 0 5px;font-size:25px;letter-spacing:-.3px}.login-card p{color:var(--muted);margin-top:0;font-size:13px}.login-card label{display:block;font-size:11px;font-weight:800;margin:12px 0 5px;color:#4b5e73}.login-card input{width:100%;height:43px;border:1px solid #d4dfeb;border-radius:9px;padding:0 11px;outline:none}.login-card input:focus{border-color:#8bbcf5;box-shadow:0 0 0 3px rgba(23,119,238,.08)}
.sidebar-collapsed .sidebar{transform:translateX(-100%)}.sidebar-collapsed main{margin-left:0}
@media(max-width:1300px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dash-grid,.dash-three{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-100%)}body:not(.sidebar-collapsed) .sidebar{transform:translateX(0);box-shadow:10px 0 35px #0002}main{margin-left:0}.global-filter{flex-wrap:wrap}.topbar{height:auto;padding:10px}.global-filter select{min-width:190px}.branch-grid,.split{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}}


/* =========================================================
   SOLA Central Admin Typography v1.0.2
   Clean SaaS dashboard typography based on approved reference
   ========================================================= */
html,body{
  font-family:"Inter","Segoe UI",Roboto,Arial,sans-serif;
  font-weight:400;
  letter-spacing:-0.01em;
  font-feature-settings:"tnum" 1,"cv02" 1,"cv03" 1,"cv04" 1;
  font-variant-numeric:tabular-nums;
}
button,input,select,textarea{font-family:inherit;font-weight:500;letter-spacing:-.01em}

/* Sidebar */
.brand-main{font-weight:700;letter-spacing:-1.25px}
.brand-sub{font-weight:600;letter-spacing:.02em}
.nav b{font-size:13.5px;font-weight:500;letter-spacing:-.01em}
.side-foot strong{font-weight:600}
.side-foot a{font-weight:600}

/* Top bar */
.user b{font-size:13.5px;font-weight:600;letter-spacing:-.01em}
.user .avatar{font-weight:700}
.global-filter select,.global-filter input{font-size:13.5px;font-weight:500}

/* Page headings */
.page-head h1{
  font-size:27px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.035em;
  color:#19385f;
}
.page-head p{font-size:12.5px;font-weight:400;letter-spacing:-.005em}

/* Buttons */
.btn{font-weight:600;letter-spacing:-.01em}
.btn.small{font-size:11.5px;font-weight:600}

/* KPI cards */
.metric small{
  font-size:12.5px;
  line-height:1.35;
  font-weight:500;
  color:#435873;
  letter-spacing:-.01em;
}
.metric strong{
  font-size:25px;
  line-height:1.12;
  font-weight:700;
  margin-top:7px;
  color:#0f2d57;
  letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;
}
.metric-icon{font-weight:600}

/* Cards and charts */
.card-head h3{
  font-size:16px;
  font-weight:650;
  color:#1a3659;
  letter-spacing:-.022em;
}
.bar-col span{font-size:11.5px;font-weight:600;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.bar-col label{font-size:11.5px;font-weight:500}
.donut b{font-size:16px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.donut span{font-size:11.5px;font-weight:400}
.legend p{font-size:12.5px;font-weight:500}
.legend p b{font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.025em}

/* Tables */
table{font-variant-numeric:tabular-nums}
th{
  font-size:10.5px;
  font-weight:600;
  text-transform:none;
  letter-spacing:-.005em;
  color:#5c6f84;
  padding:9px 10px;
}
td{
  font-size:11.5px;
  font-weight:450;
  letter-spacing:-.005em;
  color:#2b4058;
}
td b,strong{font-weight:650}
.danger{font-weight:650}
.badge{font-size:10px;font-weight:600;letter-spacing:0}

/* Reports and forms */
.report-card b{font-size:15px;font-weight:650;letter-spacing:-.02em}
.report-card span{font-size:11.5px;font-weight:400}
.report-card em{font-weight:600}
.branch-title h3,.form-card h3,.info-card h3{font-weight:650;letter-spacing:-.02em}
.branch-form label,.form-card label{font-weight:600;letter-spacing:.02em}
.branch-form input,.form-card input,.form-card select{font-size:12.5px;font-weight:500}

/* Login / installer typography */
.login-card h1,.install-card h1{font-weight:700;letter-spacing:-.035em}
.login-card p,.install-card p{font-weight:400}

/* Keep large currency figures elegant on smaller screens */
@media (max-width:1500px){.metric strong{font-size:23px}}
@media (max-width:1100px){.metric strong{font-size:22px}.page-head h1{font-size:25px}}


/* =========================================================
   SOLA Central Admin Typography v1.0.3 - Visible SaaS Restyle
   ========================================================= */
html, body {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-weight: 400;
  letter-spacing: -0.012em;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-weight: 500;
}
.nav b {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.user b, .side-foot strong { font-weight: 600; }
.page-head h1 {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #18375e;
}
.page-head p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.metric small {
  font-size: 13px;
  font-weight: 400;
  color: #405675;
}
.metric strong {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #112f5b;
}
.card-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.btn {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.018em;
}
th {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}
td {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.report-card b { font-weight: 600; }
.branch-form label, .form-card label { font-weight: 600; }
.login-card h1 { font-weight: 600; letter-spacing: -0.045em; }
.login-card label { font-weight: 500; }
.global-filter select, .global-filter input { font-size: 14px; font-weight: 400; }
.brand-main { font-weight: 700; }
@media (max-width: 1500px) { .metric strong { font-size: 24px; } }

/* v1.0.4 showroom stock value */
.total-row td{background:#f5f9ff;border-top:2px solid #cdddf4;}
.stock-value-summary{margin-bottom:18px;}

/* =========================================================
   SOLA Central Admin v1.0.5 - Compact official logo treatment
   ========================================================= */
.brand{
  height:78px;
  padding:9px 15px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  overflow:hidden;
}
.brand-logo{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:block;
  object-fit:contain;
}
.brand-copy{min-width:0;display:flex;flex-direction:column;justify-content:center}
.brand-main{
  font-size:24px;
  line-height:1;
  font-weight:700;
  letter-spacing:-1px;
  color:#146fe5;
}
.brand-sub{
  font-size:5.8px;
  line-height:1.25;
  font-weight:700;
  color:#31536f;
  margin-top:4px;
  letter-spacing:.02em;
  white-space:nowrap;
}
.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.login-brand-logo{width:70px;height:70px;object-fit:contain;display:block;flex:0 0 70px}
.login-brand .login-logo{font-size:36px;line-height:1;font-weight:700;letter-spacing:-1.2px;color:#126fe8}
.login-brand .login-sub{font-size:7px;font-weight:700;letter-spacing:.04em;margin-top:5px;color:#31536f}
.login-card h1{margin-top:8px}
@media(max-width:900px){
  .brand{height:72px;padding:8px 14px}
  .brand-logo{width:44px;height:44px;flex-basis:44px}
  .brand-main{font-size:22px}
}

/* =========================================================
   SOLA Central Admin v1.0.6 - Professional sidebar icons
   Self-contained stroke SVG icons; no icon CDN dependency.
   ========================================================= */
.nav{
  gap:11px;
  min-height:42px;
  padding:9px 11px;
}
.nav .nav-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  color:#6d8299;
  border-radius:7px;
  transition:color .15s ease, background-color .15s ease, transform .15s ease;
}
.nav .nav-icon svg{
  width:19px;
  height:19px;
  display:block;
  vector-effect:non-scaling-stroke;
}
.nav:hover .nav-icon{
  color:#1677ee;
  background:#eaf4ff;
}
.nav.active .nav-icon{
  color:#fff;
  background:rgba(255,255,255,.13);
}
.nav.active:hover .nav-icon{
  color:#fff;
  background:rgba(255,255,255,.18);
}
.nav b{
  line-height:1.28;
}

/* ============================================================
   SOLA Central Admin v1.0.8 - Mobile Responsive Experience
   Desktop layout is preserved. These rules activate on tablets
   and phones to provide a touch-friendly admin experience.
   ============================================================ */

.sidebar-backdrop{display:none}
.mobile-filter-label{display:none}

@media (max-width: 900px){
  html,body{overflow-x:hidden}
  body.mobile-menu-open{overflow:hidden}
  .shell{min-height:100dvh}

  /* Off-canvas navigation */
  .sidebar{
    width:min(82vw,300px);
    height:100dvh;
    z-index:1000;
    box-shadow:none;
    transform:translateX(-102%);
    transition:transform .22s ease,box-shadow .22s ease;
    padding-bottom:max(0px,env(safe-area-inset-bottom));
  }
  body:not(.sidebar-collapsed) .sidebar{
    transform:translateX(0);
    box-shadow:18px 0 50px rgba(18,43,73,.22);
  }
  .sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:999;
    background:rgba(11,28,48,.42);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }
  body:not(.sidebar-collapsed) .sidebar-backdrop{display:block}
  .sidebar .brand{height:70px;padding:11px 16px}
  .sidebar nav{padding:8px 10px 14px}
  .nav{min-height:48px;padding:11px 12px;margin:3px 0;border-radius:11px}
  .nav .nav-icon{width:22px;height:22px;flex:0 0 22px}
  .nav b{font-size:14px}
  .side-foot{padding:12px 14px}

  main{margin-left:0;width:100%;min-width:0}

  /* Mobile top bar */
  .topbar{
    height:auto;
    min-height:62px;
    padding:9px 11px;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
    position:sticky;
    top:0;
    z-index:80;
    box-shadow:0 2px 12px rgba(25,55,90,.06);
  }
  .menu-btn{
    order:1;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid #dfe8f2;
    background:#fff;
    font-size:22px;
  }
  .user{order:2;margin-left:auto;gap:7px}
  .user .avatar{width:38px;height:38px}
  .user b{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .user small{font-size:9px}
  .global-filter{
    order:3;
    width:100%;
    flex-basis:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    padding-top:2px;
  }
  .global-filter select{
    grid-column:1/-1;
    min-width:0;
    width:100%;
  }
  .global-filter input[type=date]{width:100%;min-width:0}
  .global-filter span{display:none}
  .global-filter .btn{grid-column:1/-1;min-height:42px}
  .global-filter select,.global-filter input{height:42px;font-size:13px;border-radius:10px}

  .content{padding:13px 11px calc(26px + env(safe-area-inset-bottom));max-width:none}
  .page-head{margin:2px 0 12px;align-items:flex-start}
  .page-head h1{font-size:23px;line-height:1.12}
  .page-head p{font-size:11px;line-height:1.45;max-width:100%}
  .report-tools{margin:0 0 10px;justify-content:flex-start}
  .report-tools .btn{min-height:40px}

  /* KPI cards */
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .metric{min-height:112px;padding:13px!important;border-radius:13px}
  .metric .metric-icon{width:42px!important;height:42px!important;min-width:42px!important}
  .metric small{font-size:10px!important;line-height:1.25}
  .metric strong{font-size:clamp(16px,4.7vw,21px)!important;line-height:1.12;letter-spacing:-.025em;overflow-wrap:anywhere}

  /* Dashboard panels */
  .dash-grid,.dash-three,.bottom-panels{grid-template-columns:1fr!important;gap:10px}
  .card{border-radius:12px}
  .card-head{padding:11px 12px;gap:8px;align-items:center}
  .card-head h3{font-size:14px;line-height:1.25}
  .card-head .btn.small{padding:7px 9px;font-size:10px;white-space:nowrap}
  .chart-card,.pay-card{min-height:0}
  .bar-chart{
    height:250px;
    min-width:680px;
    gap:10px;
    padding:32px 16px 16px;
  }
  .chart-card{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .bar-col{min-width:68px}
  .bar-col label{font-size:10px}
  .bar-col span{font-size:10px}
  .pay-wrap{min-height:0;flex-direction:column;gap:12px;padding:18px 12px}
  .donut{width:175px;height:175px}
  .donut>div{width:103px;height:103px}
  .legend{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .legend p{margin:3px 0;padding:9px 7px;border:1px solid #edf2f7;border-radius:9px;font-size:11px;background:#fbfdff}
  .legend p b{margin:4px 0 0 18px;font-size:11px}

  /* Forms and settings */
  .branch-grid,.split,.report-grid{grid-template-columns:1fr!important;gap:10px}
  .branch-card,.form-card,.info-card{padding:14px}
  .branch-form{grid-template-columns:1fr!important}
  .branch-form .wide{grid-column:auto}
  .branch-form input,.form-card input,.form-card select{height:43px;font-size:14px}
  .map-form{flex-wrap:wrap;align-items:stretch}
  .map-form input[name=canonical_name]{min-width:0;width:100%;height:41px}
  .map-form .btn{width:100%;min-height:40px}
  .btn{min-height:40px;padding:9px 12px}
  .btn.small{min-height:34px}
  .empty{padding:28px 14px}

  /* Tables: scroll on tablet, card rows on phone. */
  .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
  table{min-width:max-content}
  th,td{font-size:11px;padding:9px 9px}
}

@media (max-width: 640px){
  .content{padding-left:9px;padding-right:9px}
  .brand-main{font-size:21px!important}
  .brand-sub{font-size:7px!important}
  .topbar{padding-left:9px;padding-right:9px}
  .user b{display:none}
  .user small{display:none}

  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .metric{min-height:105px;padding:11px!important;gap:8px!important}
  .metric .metric-icon{display:none!important}
  .metric strong{font-size:clamp(15px,4.5vw,19px)!important}
  .metric small{font-size:9.5px!important}

  /* Turn standard report tables into readable mobile cards. JS injects data-label. */
  .table-wrap.mobile-card-wrap{overflow:visible;background:transparent;border:0;box-shadow:none}
  .table-wrap.mobile-card-wrap table.mobile-card-table{display:block;min-width:0;width:100%}
  .mobile-card-table thead{display:none}
  .mobile-card-table tbody{display:grid;gap:9px}
  .mobile-card-table tbody tr{
    display:block;
    background:#fff;
    border:1px solid #e1eaf3;
    border-radius:12px;
    padding:7px 10px;
    box-shadow:0 4px 14px rgba(24,55,89,.045);
  }
  .mobile-card-table tbody tr:hover td{background:transparent}
  .mobile-card-table tbody td{
    display:grid;
    grid-template-columns:minmax(98px,40%) minmax(0,1fr);
    align-items:start;
    gap:10px;
    width:100%;
    white-space:normal;
    border-bottom:1px dashed #edf2f7;
    padding:8px 2px;
    font-size:12px;
    text-align:right;
    overflow-wrap:anywhere;
  }
  .mobile-card-table tbody td:last-child{border-bottom:0}
  .mobile-card-table tbody td::before{
    content:attr(data-label);
    text-align:left;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.25px;
    color:#73879c;
  }
  .mobile-card-table tbody td:empty::after{content:'—';color:#9aa9b8}
  .mobile-card-table tfoot{display:block;margin-top:9px}
  .mobile-card-table tfoot tr{display:block;background:#eef6ff;border:1px solid #d9e9fa;border-radius:11px;padding:8px}
  .mobile-card-table tfoot th{display:block;background:transparent;border:0;padding:5px 6px;font-size:11px;white-space:normal}

  .legend{grid-template-columns:1fr}
  .legend p{display:flex;align-items:center;flex-wrap:wrap;gap:2px}
  .legend p b{margin-left:auto}

  .report-card{min-height:112px;padding:14px}
  .report-card b{font-size:14px}
  .report-card span{font-size:10.5px}
}

@media (max-width: 380px){
  .metric-grid{grid-template-columns:1fr}
  .metric{min-height:88px}
  .global-filter{grid-template-columns:1fr}
  .global-filter select,.global-filter input[type=date],.global-filter .btn{grid-column:1}
}

/* Mobile login / installer readability */
@media (max-width: 640px){
  .login-body{padding:16px!important;align-items:flex-start!important;padding-top:max(28px,env(safe-area-inset-top))!important}
  .login-card{width:100%!important;max-width:430px!important;padding:24px 18px!important;border-radius:16px!important}
  .login-brand{justify-content:center}
  .login-card input{height:46px!important;font-size:16px!important}
  .login-card .btn{min-height:46px}
}

/* ============================================================
   SOLA Central Admin v1.0.9 - True Mobile App Layout
   Desktop styles remain unchanged. Phone/tablet behavior only.
   ============================================================ */
.sidebar-close,.mobile-bottom-nav{display:none}

@media (max-width:900px){
  /* Compact off-canvas drawer. It never opens by default. */
  .sidebar{
    width:min(76vw,270px)!important;
    max-width:270px;
    border-radius:0 18px 18px 0;
    overflow:hidden;
  }
  .sidebar .brand{
    position:relative;
    height:66px!important;
    padding:10px 48px 10px 13px!important;
    border-bottom:1px solid #edf2f7;
  }
  .sidebar .brand-logo{width:42px!important;height:42px!important;object-fit:contain}
  .sidebar .brand-main{font-size:18px!important;line-height:1!important}
  .sidebar .brand-sub{font-size:6.5px!important;white-space:nowrap}
  .sidebar-close{
    display:grid;
    place-items:center;
    position:absolute;
    top:14px;
    right:11px;
    width:34px;
    height:34px;
    border:0;
    border-radius:10px;
    background:#f1f6fc;
    color:#44617e;
    font-size:24px;
    line-height:1;
    cursor:pointer;
  }
  .sidebar nav{padding:7px 9px 76px!important}
  .nav{min-height:44px!important;padding:9px 10px!important;margin:2px 0!important;border-radius:10px!important;gap:10px!important}
  .nav .nav-icon{width:20px!important;height:20px!important;flex-basis:20px!important}
  .nav b{font-size:13px!important;font-weight:600!important;line-height:1.2!important}
  .side-foot{display:none!important}

  /* Keep mobile header clean and compact. */
  .topbar{
    min-height:56px!important;
    padding:7px 9px!important;
    gap:7px!important;
    border-bottom-color:#e7eef6!important;
  }
  .menu-btn{
    width:40px!important;
    height:40px!important;
    border-radius:11px!important;
    font-size:0!important;
    position:relative;
  }
  .menu-btn::before{
    content:'☰';
    font-size:21px;
    line-height:1;
  }
  .user .avatar{width:36px!important;height:36px!important;font-size:12px!important}
  .global-filter{
    border-top:1px solid #edf2f7;
    padding-top:8px!important;
    margin-top:1px;
  }
  .global-filter select,.global-filter input,.global-filter .btn{
    height:40px!important;
    border-radius:10px!important;
  }

  /* Reserve room for native-feeling bottom navigation. */
  .content{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  .mobile-bottom-nav{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:90;
    min-height:61px;
    padding:6px 4px;
    border:1px solid #dfe8f2;
    border-radius:17px;
    background:rgba(255,255,255,.96);
    box-shadow:0 10px 30px rgba(23,54,89,.16);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  .mobile-nav-item{
    appearance:none;
    border:0;
    background:transparent;
    color:#6d8298;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    padding:3px 2px;
    font:inherit;
    cursor:pointer;
  }
  .mobile-nav-item svg{width:20px;height:20px}
  .mobile-nav-item span{font-size:9px;font-weight:600;line-height:1;white-space:nowrap}
  .mobile-nav-item.active{color:#1777ee}
  .mobile-nav-item.active svg{stroke-width:2.1}

  /* Dashboard/cards feel like a phone app. */
  .page-head{margin:1px 1px 10px!important}
  .page-head h1{font-size:21px!important}
  .metric{box-shadow:0 3px 10px rgba(31,67,105,.04)!important}
  .card{box-shadow:0 3px 12px rgba(31,67,105,.045)!important}
}

@media (max-width:640px){
  /* Phone: readable, not cramped. */
  .global-filter{grid-template-columns:1fr 1fr!important}
  .global-filter select{grid-column:1/-1!important}
  .global-filter .btn{grid-column:1/-1!important}
  .metric-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .metric{min-height:92px!important;padding:11px 12px!important}
  .metric strong{font-size:17px!important;line-height:1.1!important}
  .metric small{font-size:9.5px!important}
  .chart-card{border-radius:13px!important}
}

@media (max-width:360px){
  .sidebar{width:min(80vw,252px)!important}
  .metric-grid{grid-template-columns:1fr!important}
  .metric{min-height:82px!important}
  .mobile-bottom-nav{left:5px;right:5px;bottom:calc(5px + env(safe-area-inset-bottom));border-radius:15px}
  .mobile-nav-item span{font-size:8.5px}
}

/* ============================================================
   SOLA Central Admin v1.0.10 - Definitive Mobile Layout Fix
   IMPORTANT: final override section. Desktop >= 901px unchanged.
   ============================================================ */
@media (max-width: 900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  body{padding:0!important}
  .shell{display:block!important;width:100%!important;min-height:100dvh!important}
  main{margin-left:0!important;width:100%!important;min-width:0!important;max-width:100%!important}

  /* Drawer is CLOSED unless mobile-menu-open is present. */
  .sidebar{
    position:fixed!important;
    top:0!important;bottom:0!important;left:0!important;
    width:min(78vw,268px)!important;
    max-width:268px!important;
    height:100dvh!important;
    transform:translate3d(-110%,0,0)!important;
    transition:transform .22s ease!important;
    z-index:1002!important;
    border-radius:0 16px 16px 0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.mobile-menu-open .sidebar{
    transform:translate3d(0,0,0)!important;
    box-shadow:18px 0 48px rgba(12,35,62,.22)!important;
  }
  body.sidebar-collapsed .sidebar{transform:translate3d(-110%,0,0)!important}
  body.mobile-menu-open.sidebar-collapsed .sidebar{transform:translate3d(0,0,0)!important}

  .sidebar-backdrop{
    display:none!important;
    position:fixed!important;
    inset:0!important;
    z-index:1001!important;
    background:rgba(13,31,51,.38)!important;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }
  body.mobile-menu-open .sidebar-backdrop{display:block!important}

  .sidebar .brand{
    min-height:64px!important;height:64px!important;
    padding:9px 44px 9px 12px!important;
    gap:8px!important;
  }
  .sidebar .brand-logo{width:40px!important;height:40px!important;object-fit:contain!important}
  .sidebar .brand-main{font-size:17px!important;line-height:1!important}
  .sidebar .brand-sub{font-size:6px!important;white-space:nowrap!important}
  .sidebar-close{
    display:grid!important;place-items:center!important;
    position:absolute!important;right:9px!important;top:14px!important;
    width:34px!important;height:34px!important;border:0!important;
    border-radius:10px!important;background:#f0f5fb!important;color:#46617c!important;
    font-size:23px!important;line-height:1!important;cursor:pointer!important;
  }
  .sidebar nav{
    height:calc(100dvh - 64px)!important;
    overflow-y:auto!important;
    padding:7px 9px calc(86px + env(safe-area-inset-bottom))!important;
    overscroll-behavior:contain!important;
  }
  .sidebar .nav{
    min-height:43px!important;
    padding:8px 10px!important;
    margin:2px 0!important;
    border-radius:10px!important;
    gap:10px!important;
  }
  .sidebar .nav .nav-icon{width:19px!important;height:19px!important;flex:0 0 19px!important}
  .sidebar .nav b{font-size:12.5px!important;font-weight:600!important;line-height:1.2!important}
  .side-foot{display:none!important}

  /* Compact mobile top bar: first row = menu/filter/user, second row = filters only when opened. */
  .topbar{
    position:sticky!important;top:0!important;z-index:90!important;
    min-height:56px!important;height:auto!important;
    padding:8px 9px!important;
    gap:7px!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    align-items:center!important;
    background:#fff!important;
  }
  .menu-btn{
    grid-column:1!important;
    width:40px!important;height:40px!important;
    display:grid!important;place-items:center!important;
    border-radius:11px!important;background:#f5f8fc!important;
    font-size:0!important;
  }
  .menu-btn::before{content:'☰';font-size:21px!important;line-height:1!important}
  .mobile-filter-btn{
    grid-column:2!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    width:100%!important;height:40px!important;
    border:1px solid #dce6f0!important;border-radius:11px!important;background:#fff!important;
    color:#294461!important;font:600 12px/1 inherit!important;cursor:pointer!important;
  }
  .mobile-filter-btn svg{width:16px!important;height:16px!important}
  .user{grid-column:3!important;margin:0!important;justify-self:end!important}
  .user .avatar{width:36px!important;height:36px!important;font-size:11px!important}
  .user>div:last-child{display:none!important}

  .global-filter{
    display:none!important;
    grid-column:1/-1!important;
    width:100%!important;
    margin:1px 0 0!important;padding:9px 0 1px!important;
    border-top:1px solid #edf2f7!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  body.mobile-filter-open .global-filter{display:grid!important}
  .global-filter input[type=hidden]{display:none!important}
  .global-filter select{grid-column:1/-1!important;min-width:0!important;width:100%!important}
  .global-filter input[type=date]{min-width:0!important;width:100%!important}
  .global-filter>span{display:none!important}
  .global-filter .btn{grid-column:1/-1!important;width:100%!important}
  .global-filter select,.global-filter input,.global-filter .btn{
    height:40px!important;border-radius:10px!important;font-size:13px!important;
  }

  .content{
    width:100%!important;max-width:100%!important;
    padding:11px 9px calc(82px + env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .page-head{margin:0 1px 10px!important;align-items:flex-start!important}
  .page-head h1{font-size:20px!important;line-height:1.15!important}
  .page-head p{font-size:10.5px!important;line-height:1.4!important}

  /* Dashboard */
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .metric{min-width:0!important;min-height:94px!important;padding:11px!important;gap:8px!important;border-radius:12px!important}
  .metric .metric-icon{display:none!important}
  .metric strong{font-size:16px!important;line-height:1.1!important;letter-spacing:-.2px!important;overflow-wrap:anywhere!important}
  .metric small{font-size:9.5px!important;line-height:1.25!important}
  .dash-grid,.dash-three{grid-template-columns:1fr!important;gap:9px!important}
  .card{border-radius:12px!important;min-width:0!important}
  .card-head{padding:10px 11px!important;gap:8px!important}
  .card-head h3{font-size:13px!important;line-height:1.2!important}
  .card-head .btn.small{font-size:9.5px!important;padding:7px 8px!important;min-height:32px!important}
  .chart-card{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .bar-chart{height:240px!important;min-width:640px!important;padding:30px 12px 14px!important;gap:8px!important}
  .bar-col{min-width:62px!important}
  .pay-wrap{min-height:0!important;flex-direction:column!important;gap:12px!important;padding:17px 10px!important}
  .donut{width:166px!important;height:166px!important}
  .donut>div{width:100px!important;height:100px!important}
  .legend{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
  .legend p{margin:0!important;padding:8px 9px!important;border:1px solid #edf2f7!important;border-radius:9px!important;background:#fbfdff!important;font-size:11px!important}
  .legend p b{margin:0 0 0 7px!important;display:inline!important;font-size:11px!important}

  /* Forms / settings */
  .branch-grid,.split,.report-grid{grid-template-columns:1fr!important;gap:9px!important}
  .branch-card,.form-card,.info-card{padding:12px!important}
  .branch-form{grid-template-columns:1fr!important}
  .branch-form .wide{grid-column:auto!important}
  .branch-form input,.form-card input,.form-card select{height:43px!important;font-size:14px!important}
  .btn{min-height:40px!important}
  .report-tools{margin:0 0 9px!important;justify-content:stretch!important}
  .report-tools .btn{flex:1!important}

  /* Table fallback: horizontally scroll unless JS converts to cards. */
  .table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  table{min-width:max-content!important}
  th,td{font-size:10.5px!important;padding:8px 8px!important}

  /* Fixed bottom nav, only on mobile */
  .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    position:fixed!important;
    left:7px!important;right:7px!important;
    bottom:calc(7px + env(safe-area-inset-bottom))!important;
    z-index:100!important;
    min-height:60px!important;
    padding:5px 3px!important;
    border:1px solid #dfe8f2!important;border-radius:16px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 10px 30px rgba(23,54,89,.16)!important;
    backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
  }
  .mobile-nav-item{
    border:0!important;background:transparent!important;color:#70849a!important;text-decoration:none!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;min-width:0!important;padding:3px 1px!important;font:inherit!important;cursor:pointer!important;
  }
  .mobile-nav-item svg{width:19px!important;height:19px!important}
  .mobile-nav-item span{font-size:8.5px!important;font-weight:600!important;white-space:nowrap!important;line-height:1!important}
  .mobile-nav-item.active{color:#1777ee!important}
}

@media (max-width:640px){
  /* Card-style report rows generated by JS. */
  .table-wrap.mobile-card-wrap{overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .table-wrap.mobile-card-wrap table.mobile-card-table{display:block!important;min-width:0!important;width:100%!important}
  .mobile-card-table thead{display:none!important}
  .mobile-card-table tbody{display:grid!important;gap:8px!important}
  .mobile-card-table tbody tr{display:block!important;background:#fff!important;border:1px solid #e2eaf3!important;border-radius:11px!important;padding:6px 9px!important}
  .mobile-card-table tbody td{display:grid!important;grid-template-columns:minmax(92px,39%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;white-space:normal!important;border-bottom:1px dashed #edf2f7!important;padding:7px 1px!important;font-size:11.5px!important;text-align:right!important;overflow-wrap:anywhere!important}
  .mobile-card-table tbody td:last-child{border-bottom:0!important}
  .mobile-card-table tbody td::before{content:attr(data-label)!important;text-align:left!important;font-size:8.5px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.2px!important;color:#75889d!important}
  .report-card{min-height:106px!important;padding:13px!important}
  .report-card b{font-size:13px!important}
  .report-card span{font-size:10px!important}
}

@media (max-width:355px){
  .metric-grid{grid-template-columns:1fr!important}
  .metric{min-height:80px!important}
  .sidebar{width:min(82vw,250px)!important}
  .mobile-bottom-nav{left:4px!important;right:4px!important;bottom:calc(4px + env(safe-area-inset-bottom))!important}
  .mobile-nav-item span{font-size:8px!important}
}

@media (min-width:901px){
  .mobile-filter-btn,.sidebar-close,.mobile-bottom-nav,.sidebar-backdrop{display:none!important}
}
