
:root{
  --navy:#102a43;--navy-2:#0b2238;--blue:#1769e0;--blue-2:#2f8cff;
  --blue-soft:#edf5ff;--bg:#f5f8fc;--card:#fff;--text:#17263a;--muted:#718096;
  --border:#e4ebf3;--green:#18a66b;--green-soft:#eafaf2;--orange:#f59e0b;
  --orange-soft:#fff5df;--purple:#7c4dff;--purple-soft:#f2edff;--red:#df4c5b;
  --red-soft:#fff0f2;--shadow:0 8px 28px rgba(20,47,78,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px}
a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:232px;background:linear-gradient(180deg,#112f4c 0%,#0d2741 100%);color:#dce8f5;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;padding:22px 11px;z-index:20;box-shadow:8px 0 28px rgba(10,35,58,.06)}
.brand{display:flex;align-items:center;gap:11px;padding:3px 10px 28px;color:#fff}
.brand-mark{width:40px;height:40px;border-radius:11px;background:#fff;color:var(--blue);display:grid;place-items:center;font-weight:900;font-size:20px;box-shadow:0 6px 15px rgba(0,0,0,.08)}
.brand strong{display:block;letter-spacing:1.7px;font-size:17px;line-height:1.1}.brand span{display:block;font-size:11px;color:#9fb4c9;margin-top:4px}
.sidebar nav{display:grid;gap:4px}
.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;font-size:13px;color:#b9cadd;transition:.18s ease;position:relative}
.sidebar nav a .nav-icon{width:20px;height:20px;display:grid;place-items:center;color:#a9bfd5;flex:0 0 20px}
.sidebar nav a .nav-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff}.sidebar nav a:hover .nav-icon{color:#fff}
.sidebar nav a.active{background:linear-gradient(90deg,#176fe7,#2384f3);color:#fff;box-shadow:0 7px 18px rgba(23,105,224,.22)}
.sidebar nav a.active .nav-icon{color:#fff}
.nav-section{display:flex;align-items:center;justify-content:space-between;color:#8098b0;font-size:9px;text-transform:uppercase;letter-spacing:1.3px;padding:18px 12px 5px}
.sidebar-footer{margin-top:auto;padding:16px 12px 3px;color:#91a9c0;font-size:10px;line-height:1.6;border-top:1px solid rgba(255,255,255,.08)}
.sidebar-footer .care{display:flex;align-items:center;gap:9px;color:#e7f0f8;font-size:11px;margin-bottom:15px}.care-heart{font-size:23px;color:#fff}
.main{margin-left:232px;min-width:0;flex:1}
.topbar{height:72px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:15;backdrop-filter:blur(12px)}
.global-search{width:min(470px,48%);position:relative}.global-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;color:#6d7f94}.global-search input{width:100%;height:42px;padding:0 15px 0 42px;border:1px solid #dfe7f0;border-radius:10px;background:#f9fbfe;color:var(--text);outline:none}.global-search input:focus{border-color:#9cc5fa;box-shadow:0 0 0 4px #edf5ff;background:#fff}
.top-actions{display:flex;align-items:center;gap:16px;color:#52657b;font-size:13px}.icon-btn{width:36px;height:36px;border:0;background:#f7f9fc;border-radius:10px;display:grid;place-items:center;color:#53677d;position:relative}.icon-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}.notification-dot{position:absolute;right:-2px;top:-3px;min-width:17px;height:17px;border-radius:9px;background:#e84b58;color:#fff;font-size:9px;display:grid;place-items:center;border:2px solid #fff}.user-box{display:flex;align-items:center;gap:10px;padding-left:4px;border-left:1px solid var(--border)}.avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#287ff0,#0f61ce);color:#fff;display:grid;place-items:center;font-weight:800}.user-meta strong{display:block;color:var(--text);font-size:13px}.user-meta small{display:block;color:#7c8da1;font-size:10px;margin-top:2px}.logout-form{margin:0}.logout-form button{border:0;background:transparent;color:#72849a;width:30px;height:30px;border-radius:8px}.logout-form button:hover{background:#f0f4f8}
.content{padding:28px 26px 38px;max-width:1580px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:var(--blue);margin:0 0 7px}h1{font-size:30px;line-height:1.15;margin:0 0 7px;letter-spacing:-.6px}h2{font-size:16px;margin:0 0 4px;letter-spacing:-.15px}h3{font-size:15px;margin:5px 0 9px}.muted{color:var(--muted);font-size:13px;margin:0;line-height:1.5}
.btn{border:0;border-radius:9px;padding:10px 15px;font-weight:750;cursor:pointer;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.18s ease;white-space:nowrap}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(23,105,224,.16)}.btn.primary:hover{background:#0f5ecf;transform:translateY(-1px)}.btn.light{background:#f2f6fa;color:#53657a}.btn.light:hover{background:#e8eef5}.btn.success{background:var(--green);color:#fff}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat{background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:18px;display:flex;gap:13px;align-items:flex-start;min-height:116px}.stat-icon{width:45px;height:45px;border-radius:12px;background:var(--blue-soft);display:grid;place-items:center;font-size:17px;color:var(--blue);font-weight:800;flex:0 0 45px}.stat:nth-child(2) .stat-icon{background:var(--green-soft);color:var(--green)}.stat:nth-child(3) .stat-icon{background:var(--purple-soft);color:var(--purple)}.stat:nth-child(4) .stat-icon{background:var(--orange-soft);color:#df8a00}.stat span{display:block;color:#6f7f93;font-size:11px;margin-bottom:6px}.stat strong{display:block;font-size:22px;letter-spacing:-.4px}.stat small{display:block;color:#96a3b2;font-size:10px;margin-top:5px}
.panel,.service-card{background:var(--card);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow)}.panel{overflow:hidden}.panel-head{padding:17px 19px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-head .title-icon{color:var(--blue);margin-right:7px}
.grid-2{display:grid;grid-template-columns:1.35fr .65fr;gap:18px}.grid-2.equal{grid-template-columns:1fr 1fr}
.empty-small{min-height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#9aa7b6}.empty-small strong{font-size:13px;color:#53657a}.empty-small.compact{min-height:180px}
.quick-grid{padding:15px;display:grid;grid-template-columns:1fr;gap:8px}.quick-grid a{border:1px solid #e4ebf2;border-radius:10px;padding:11px 12px;display:flex;align-items:center;gap:11px;color:#344b64;font-size:12px;background:#fbfdff;transition:.18s}.quick-grid a:hover{border-color:#c4dcfa;background:#f5faff;color:var(--blue);transform:translateX(2px)}.quick-grid b{width:34px;height:34px;border-radius:9px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;font-size:15px}.quick-grid a:nth-child(5) b{background:#eafaf2;color:var(--green)}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{padding:13px 18px;border-bottom:1px solid #edf1f5;text-align:left;font-size:12px;vertical-align:middle}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#7c8a9c;background:#fbfcfe}tbody tr:hover{background:#fbfdff}td small{font-size:10px;color:#8a98a8}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:800;text-transform:capitalize;background:#eef1f5;color:#657284}.badge.active,.badge.confirmed,.badge.completed,.badge.paid{background:var(--green-soft);color:var(--green)}.badge.scheduled{background:#edf4ff;color:#2365bb}.badge.in_progress{background:#eef5ff;color:#286fc9}.badge.cancelled,.badge.no_show,.badge.inactive,.badge.void{background:var(--red-soft);color:var(--red)}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#356aa9;background:#eef5ff;padding:5px 7px;border-radius:5px}.table-link{color:var(--blue);font-weight:750;font-size:11px}.toolbar{padding:15px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px}.search{display:flex;gap:8px;width:min(600px,100%)}.search input{flex:1}.search input,.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #dbe3ec;border-radius:9px;outline:none;background:#fff;color:var(--text);transition:.18s}.search input{padding:10px 12px}.search input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#79aef0;box-shadow:0 0 0 4px #edf5ff}.count{color:#8794a4;font-size:11px}
.form-panel{padding:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{font-size:11px;font-weight:750;color:#536175}.form-grid input,.form-grid select,.form-grid textarea{display:block;width:100%;margin-top:7px;padding:11px 12px}.form-grid textarea{min-height:110px;resize:vertical}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px;padding-top:18px;border-top:1px solid var(--border)}.top-alert{margin-bottom:18px}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.service-card{padding:18px;display:flex;gap:13px;align-items:flex-start;position:relative}.service-icon{width:42px;height:42px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:800}.service-card .badge{position:absolute;top:15px;right:15px}.category{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#8490a0}.service-card strong{font-size:13px}.empty-service{grid-column:1/-1;padding:55px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#8490a0}
.profile-grid{display:grid;grid-template-columns:290px 1fr;gap:18px}.profile-card{padding:24px;text-align:center}.profile-avatar{width:76px;height:76px;border-radius:50%;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 13px;font-size:24px;font-weight:800}.details{text-align:left;border-top:1px solid var(--border);margin-top:18px;padding-top:13px;display:grid;gap:13px}.details small{display:block;color:#8994a3;font-size:10px;margin-bottom:3px}.details strong{font-size:12px;font-weight:600}.head-actions{display:flex;gap:8px}
.auth-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#f4f8ff,#eef3f8);padding:24px}.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--border);border-radius:18px;padding:34px;box-shadow:0 18px 50px rgba(18,37,63,.09)}.auth-card .brand{padding:0 0 25px;color:var(--navy)}.auth-card .brand span{color:var(--muted)}.auth-card h1{font-size:25px}.auth-card form{display:grid;gap:15px;margin-top:23px}.auth-card label{font-size:12px;font-weight:700;color:#4e5d70}.auth-card input{width:100%;margin-top:7px;padding:12px 13px;border:1px solid #d9e0e8;border-radius:8px;outline:none}.auth-card .btn{width:100%;margin-top:5px}.alert{padding:11px 13px;border-radius:9px;font-size:12px}.alert.danger{background:#fff0f1;color:var(--red);border:1px solid #ffd5d8}.alert.success{background:#effaf5;color:var(--green);border:1px solid #c9efdd}.footer-note{text-align:center;color:#9aa5b3;font-size:11px;margin:22px 0 0}.auth-card h3{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#66758a;margin:24px 0 5px}.security-note{font-size:11px;color:#748194}
.invoice-total{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px;border-top:1px solid var(--border);background:#fafbfd}.invoice-total div{display:flex;flex-direction:column;gap:4px}.invoice-total span{font-size:10px;color:#7e8998;text-transform:uppercase;letter-spacing:.6px}.invoice-total strong{font-size:18px}
.report-filter{display:flex;gap:12px;align-items:end}
.dashboard-top{display:grid;grid-template-columns:1fr 1.2fr 250px;gap:18px;align-items:stretch;margin-bottom:18px}.welcome{padding:4px 2px}.welcome h1{font-size:32px}.welcome .wave{font-size:27px}.welcome-banner{border-radius:14px;overflow:hidden;min-height:92px;background:linear-gradient(110deg,#e8f4ff,#d9ecff);position:relative;padding:20px 25px;display:flex;align-items:center}.welcome-banner strong{font-size:15px;color:#0e5cae;max-width:180px;line-height:1.25}.welcome-banner:after{content:"";position:absolute;right:-25px;top:-35px;width:230px;height:170px;background:radial-gradient(circle at 40% 45%,rgba(255,255,255,.9),rgba(255,255,255,0) 63%);border-radius:50%}.date-card{display:flex;align-items:center;gap:11px;padding:14px 15px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.date-card .date-icon{width:38px;height:38px;border-radius:10px;background:#eef5ff;color:var(--blue);display:grid;place-items:center;font-size:17px}.date-card strong{display:block;font-size:12px}.date-card small{display:block;color:#7e8ca0;font-size:10px;margin-top:3px}
.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.chart-panel{min-height:290px}.chart-body{padding:18px 20px}.chart-legend{display:flex;gap:16px;font-size:10px;color:#65778d}.legend{display:inline-flex;align-items:center;gap:5px}.legend i{width:8px;height:8px;border-radius:50%;display:block}.legend.blue i{background:#2d82ef}.legend.green i{background:#39bf87}
.bar-chart{height:180px;display:flex;align-items:flex-end;gap:16px;padding:15px 6px 0;border-bottom:1px solid #e6edf4;position:relative}.bar-chart:before{content:"";position:absolute;left:0;right:0;top:25%;border-top:1px dashed #e5ebf2;box-shadow:0 45px 0 #e5ebf2,0 90px 0 #e5ebf2}.bar-day{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:5px;height:100%;position:relative;z-index:1}.bar{width:12px;border-radius:5px 5px 0 0;min-height:3px}.bar.blue{background:#2f83ed}.bar.green{background:#41bd88}.bar-labels{display:flex;gap:16px;padding:8px 6px 0;color:#75869a;font-size:9px}.bar-labels span{flex:1;text-align:center}
.line-chart{height:180px;position:relative;border-bottom:1px solid #e6edf4;overflow:hidden}.line-chart:before{content:"";position:absolute;inset:25% 0 auto;border-top:1px dashed #e5ebf2;box-shadow:0 45px 0 #e5ebf2,0 90px 0 #e5ebf2}.line-chart svg{width:100%;height:100%;position:relative;z-index:1}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:#9aa8b8;font-size:11px;z-index:2;background:rgba(255,255,255,.72)}
.dashboard-lower{display:grid;grid-template-columns:1fr 285px;gap:18px}.tabs{display:flex;gap:0;padding:0 15px;border-bottom:1px solid var(--border)}.tabs a{padding:14px 12px;color:#718197;font-size:11px;border-bottom:2px solid transparent}.tabs a.active{color:var(--blue);border-color:var(--blue);font-weight:750}.appointment-table table{min-width:720px}.patient-mini{display:flex;align-items:center;gap:9px}.mini-avatar{width:32px;height:32px;border-radius:10px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:800}.side-stack{display:grid;gap:18px;align-content:start}.upcoming-list{padding:6px 15px 10px}.upcoming-item{display:grid;grid-template-columns:7px 61px 1fr;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5}.upcoming-item:last-child{border-bottom:0}.timeline-dot{width:8px;height:8px;border-radius:50%;background:#31bd83}.upcoming-item:nth-child(even) .timeline-dot{background:#3185ef}.upcoming-time{font-size:10px;color:#53667c;font-weight:700}.upcoming-name{font-size:11px;font-weight:700}.upcoming-service{font-size:9px;color:#8a98a8;margin-top:2px}.status-panel{padding:16px 17px}.status-line{display:flex;align-items:center;gap:8px;color:#52657a;font-size:11px}.status-dot{width:9px;height:9px;border-radius:50%;background:#31bd83;box-shadow:0 0 0 4px #e7f8f0}.quote{text-align:center;color:#8b99a9;font-size:10px;line-height:1.6;padding:0 12px}
@media(max-width:1250px){.dashboard-top{grid-template-columns:1fr 1fr}.date-card{display:none}.cards{grid-template-columns:repeat(2,1fr)}.dashboard-lower{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.chart-grid{grid-template-columns:1fr}.global-search{width:46%}}
@media(max-width:900px){.sidebar{width:72px;padding:18px 7px}.sidebar .brand div:not(.brand-mark),.sidebar-footer,.nav-section,.sidebar nav a:not(.active) span:not(.nav-icon){display:none}.sidebar nav a{justify-content:center}.sidebar nav a .nav-icon{margin:0}.main{margin-left:72px}.content{padding:20px}.topbar{padding:0 18px}.user-meta{display:none}.dashboard-top{grid-template-columns:1fr}.welcome-banner{display:none}.side-stack{grid-template-columns:1fr}.grid-2,.chart-grid{grid-template-columns:1fr}.service-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.global-search{display:none}.cards{grid-template-columns:1fr}.service-grid,.profile-grid,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.page-head{align-items:flex-start;flex-direction:column}.head-actions{width:100%}.quick-grid{grid-template-columns:1fr}.content{padding:17px 14px 28px}h1{font-size:25px}.dashboard-top{margin-bottom:12px}.stat{min-height:100px}.topbar{height:64px}.chart-body{padding:14px}.bar-chart{gap:7px}.bar-labels{gap:7px}}

/* =========================================================
   MANAKI UI POLISH — GLOBAL LAYOUT
   Keeps existing functionality and page classes intact.
   ========================================================= */
.sidebar{width:248px;padding:22px 12px 14px;background:linear-gradient(180deg,#122f4c 0%,#0b2239 100%)}
.main{margin-left:248px}
.brand{padding:2px 11px 25px}
.brand-mark{width:42px;height:42px;border-radius:12px;font-size:21px}
.sidebar-label{padding:12px 12px 7px;color:#6f8ba5;font-size:9px;font-weight:800;letter-spacing:1.5px}
.sidebar nav{gap:3px}
.sidebar nav a,.settings-link{min-height:43px;padding:10px 12px;border-radius:11px;font-size:12.5px}
.sidebar nav a.active,.settings-link.active{background:linear-gradient(90deg,#176fe7 0%,#267ff0 100%);box-shadow:0 8px 20px rgba(20,104,222,.2)}
.sidebar nav a.active:before,.settings-link.active:before{content:"";position:absolute;left:0;width:3px;height:22px;border-radius:0 4px 4px 0;background:#8ec6ff}
.sidebar-bottom{margin-top:auto}
.settings-link{display:flex;align-items:center;gap:12px;color:#b9cadd;position:relative;margin-bottom:12px}
.settings-link:hover{background:rgba(255,255,255,.07);color:#fff}
.settings-link .nav-icon{width:20px;height:20px;display:grid;place-items:center;color:#a9bfd5;flex:0 0 20px}
.settings-link .nav-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings-link.active{color:#fff}
.settings-link.active .nav-icon{color:#fff}
.care{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:12px;padding:11px 12px;display:flex;align-items:center;gap:10px;margin-bottom:12px}
.care-heart{width:30px;height:30px;border-radius:9px;background:rgba(44,137,241,.15);color:#78b7ff;display:grid;place-items:center;font-size:13px}
.care strong{display:block;color:#eaf3fb;font-size:10px}.care small{display:block;color:#7f9ab3;font-size:9px;margin-top:2px}
.sidebar-meta{padding:0 3px;color:#7893ad;font-size:9px;line-height:1.55}.sidebar-meta small{color:#617d98}
.sidebar-close,.mobile-menu,.sidebar-overlay{display:none}
.topbar{height:74px;padding:0 28px;border-bottom:1px solid #e7edf4}
.top-title{display:none;align-items:center;gap:8px;color:#52657a;font-size:12px;min-width:150px}.top-title-dot{width:7px;height:7px;border-radius:50%;background:#2e82ee}
.global-search{width:min(520px,52%)}
.global-search input{height:42px;background:#f7f9fc;border-color:#e3eaf2;border-radius:11px;font-size:12px}
.global-search kbd{position:absolute;right:11px;top:50%;transform:translateY(-50%);font:600 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:#8c99a8;background:#fff;border:1px solid #dce4ed;border-radius:5px;padding:4px 6px}
.top-actions{gap:10px}.icon-btn{background:#f7f9fc;border:1px solid #edf1f5;width:38px;height:38px;border-radius:11px}.help-btn{font-weight:800;font-size:13px}
.user-box{padding-left:12px;margin-left:4px;gap:9px;border-left:1px solid #e8edf3}.avatar{width:36px;height:36px;background:#eaf3ff;color:#1769e0;font-size:12px}.user-meta strong{font-size:12px}.user-meta small{font-size:9px}.user-chevron{color:#94a0ae;font-size:15px;margin-left:2px}
.logout-form button{display:grid;place-items:center;border:1px solid #edf1f5;background:#f7f9fc;width:36px;height:36px;border-radius:10px}.logout-form svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.content{padding:28px 30px 42px;max-width:1640px}
.top-alert{display:flex;align-items:center;gap:8px;box-shadow:var(--shadow)}

/* Dashboard */
.dashboard-top{grid-template-columns:minmax(280px,1.1fr) minmax(260px,.9fr) 235px;gap:16px;margin-bottom:20px}
.welcome{padding:6px 2px}.welcome h1{font-size:31px;font-weight:800;letter-spacing:-.8px}.welcome .muted{max-width:470px}
.welcome-banner{min-height:105px;padding:22px 24px;background:linear-gradient(135deg,#eaf5ff,#d9ecff);border:1px solid #d9eafa;box-shadow:var(--shadow)}
.welcome-banner:before{content:"";position:absolute;right:28px;top:18px;width:82px;height:82px;border:1px solid rgba(39,126,224,.12);border-radius:50%;box-shadow:0 0 0 14px rgba(39,126,224,.04),0 0 0 28px rgba(39,126,224,.025)}
.welcome-banner strong{font-size:14px;position:relative;z-index:2}
.date-card{min-height:105px;padding:17px}.date-card .date-icon{font-size:0}.date-card .date-icon:after{content:"";width:18px;height:18px;display:block;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect x="4" y="5" width="16" height="15" rx="2" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M8 3v4M16 3v4M4 10h16" fill="none" stroke="black" stroke-width="2"/%3E%3C/svg%3E') center/contain no-repeat}
.cards{gap:16px}.stat{min-height:112px;padding:17px}.stat-icon{font-size:0}.stat-icon:after{content:"";width:21px;height:21px;display:block;background:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain}.stat:nth-child(1) .stat-icon:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ccircle cx="9" cy="8" r="3" fill="none" stroke="black" stroke-width="2"/%3E%3Ccircle cx="17" cy="9" r="2.5" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M3.5 20c.5-3.5 2.4-5.5 5.5-5.5s5 2 5.5 5.5M14.5 15.5c2.8-.5 5 1 5.8 4.5" fill="none" stroke="black" stroke-width="2"/%3E%3C/svg%3E')}.stat:nth-child(2) .stat-icon:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect x="4" y="5" width="16" height="15" rx="2" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M8 3v4M16 3v4M4 10h16" fill="none" stroke="black" stroke-width="2"/%3E%3C/svg%3E')}.stat:nth-child(3) .stat-icon:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 5v14M5 12h14" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round"/%3E%3C/svg%3E')}.stat:nth-child(4) .stat-icon:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 7h14v10H5zM8 10h8" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}
.stat strong{font-size:21px}.stat span{font-size:10px;font-weight:600}.stat small{font-size:9px}
.panel{border-radius:15px}.panel-head{padding:16px 18px}.panel-head h2{font-size:14px}.panel-head h2:first-letter{color:var(--blue)}
.quick-grid{padding:12px}.quick-grid a{min-height:49px;padding:8px 10px;border-color:#e8eef5;background:#fff}.quick-grid a b{width:32px;height:32px;font-size:0;flex:0 0 32px}.quick-grid a b:after{content:"";width:17px;height:17px;background:currentColor;display:block;mask:center/contain no-repeat}.quick-grid a:nth-child(1) b:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ccircle cx="9" cy="8" r="3" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M3.5 20c.5-3.5 2.4-5.5 5.5-5.5s5 2 5.5 5.5M17 5v6M14 8h6" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.quick-grid a:nth-child(2) b:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect x="4" y="5" width="16" height="15" rx="2" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M8 3v4M16 3v4M4 10h16M12 13v5M9.5 15.5h5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.quick-grid a:nth-child(3) b:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 5v14M5 12h14" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round"/%3E%3C/svg%3E')}.quick-grid a:nth-child(4) b:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 4h14v16H5zM8 8h8M8 12h8M8 16h5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.quick-grid a:nth-child(5) b:after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect x="3.5" y="6" width="17" height="13" rx="2" fill="none" stroke="black" stroke-width="2"/%3E%3Cpath d="M16 10h4.5v5H16a2.5 2.5 0 0 1 0-5Z" fill="none" stroke="black" stroke-width="2"/%3E%3C/svg%3E')}
.quick-grid a span:nth-child(2){font-weight:650;color:#334a62}.quick-grid a:hover span:nth-child(2){color:var(--blue)}

@media(max-width:1250px){.sidebar{width:224px}.main{margin-left:224px}.dashboard-top{grid-template-columns:1fr 1fr}.date-card{display:none}.global-search{width:48%}}
@media(max-width:900px){.sidebar{width:260px;transform:translateX(-105%);transition:transform .22s ease;padding:18px 12px}.sidebar.open{transform:translateX(0)}.sidebar .brand-copy,.sidebar-footer,.sidebar nav a:not(.active) span:not(.nav-icon){display:block}.sidebar nav a{justify-content:flex-start}.sidebar-overlay{position:fixed;inset:0;background:rgba(7,24,40,.42);z-index:19;display:none}.sidebar-overlay.show{display:block}.sidebar-close{display:grid;place-items:center;margin-left:auto;width:32px;height:32px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:22px}.main{margin-left:0}.topbar{padding:0 18px}.mobile-menu{display:flex;width:38px;height:38px;border:1px solid #e6edf4;background:#fff;border-radius:10px;align-items:center;justify-content:center;flex-direction:column;gap:4px}.mobile-menu span{width:16px;height:1.5px;background:#50647b;border-radius:2px}.top-title{display:flex}.global-search{display:none}.top-actions{margin-left:auto}.dashboard-top{grid-template-columns:1fr}.welcome-banner{display:none}.user-meta,.user-chevron{display:none}.content{padding:22px 18px 32px}}
@media(max-width:650px){.top-title{display:none}.top-actions{gap:6px}.help-btn{display:none}.user-box{border-left:0;padding-left:4px}.logout-form{display:none}.content{padding:18px 13px 28px}.cards{grid-template-columns:1fr}.chart-grid{grid-template-columns:1fr}.dashboard-lower{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.welcome h1{font-size:26px}}
.section-icon{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:5px;border-radius:7px;background:var(--blue-soft);color:var(--blue);font-size:12px;vertical-align:-5px}.empty-icon{width:42px;height:42px;border-radius:12px;background:#f1f6fb;color:#8da0b4;display:grid;place-items:center;font-size:18px;margin-bottom:3px}.wave{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#edf5ff;color:#2f83ed;font-size:13px;vertical-align:3px}


/* =========================================================
   FINAL MANAKI SIDEBAR + LAYOUT FIX
   Safe overrides for the existing UI.
   ========================================================= */

/* The sidebar gets its own vertical scroll area.
   The main page remains independent and the sidebar stays fixed. */
.sidebar{
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.20) transparent;
}

/* Keep the complete sidebar content inside the scroll area. */
.sidebar .brand,
.sidebar nav,
.sidebar-label,
.sidebar-bottom{
  flex-shrink:0;
}

/* Don't force the footer outside the usable sidebar area. */
.sidebar-bottom{
  margin-top:18px;
  padding-bottom:10px;
}

/* Clean, subtle scrollbar for Chromium / Safari. */
.sidebar::-webkit-scrollbar{
  width:5px;
}

.sidebar::-webkit-scrollbar-track{
  background:transparent;
}

.sidebar::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.30);
}

/* Make the settings section naturally follow the main navigation. */
.sidebar > .sidebar-label{
  flex:0 0 auto;
}

.sidebar > nav{
  flex:0 0 auto;
}

/* Active item remains clearly visible while scrolling. */
.sidebar nav a.active{
  color:#fff;
}

.sidebar nav a.active .nav-icon{
  color:#fff;
}

/* Keep long labels such as Treatment Coordination on one clean row. */
.sidebar nav a span:last-child{
  min-width:0;
}

/* Mobile sidebar: it still scrolls independently when opened. */
@media(max-width:900px){
  .sidebar{
    height:100vh;
    height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .sidebar.open{
    overflow-y:auto;
  }

  .sidebar-bottom{
    margin-top:18px;
    padding-bottom:20px;
  }
}

/* Small screens: preserve enough bottom space for the final item. */
@media(max-width:650px){
  .sidebar{
    padding-bottom:18px;
  }
}


/* =========================================================
   DESKTOP SIDEBAR COLLAPSE
   ========================================================= */

.sidebar-toggle{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid #e6edf4;
  background:#f7f9fc;
  color:#52677d;
  border-radius:10px;
  cursor:pointer;
  transition:.18s ease;
}

.sidebar-toggle svg{
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.sidebar-toggle:hover{
  background:#edf4fb;
  color:var(--blue);
  border-color:#d8e5f2;
}

/* Collapsed desktop sidebar */
@media(min-width:901px){
  .app-shell.sidebar-collapsed .sidebar{
    width:78px;
    padding-left:8px;
    padding-right:8px;
  }

  .app-shell.sidebar-collapsed .main{
    margin-left:78px;
  }

  .app-shell.sidebar-collapsed .brand{
    justify-content:center;
    padding-left:0;
    padding-right:0;
  }

  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .sidebar-label,
  .app-shell.sidebar-collapsed .sidebar-bottom{
    display:none;
  }

  .app-shell.sidebar-collapsed .sidebar nav a{
    justify-content:center;
    padding-left:8px;
    padding-right:8px;
  }

  .app-shell.sidebar-collapsed .sidebar nav a .nav-icon{
    margin:0;
  }

  .app-shell.sidebar-collapsed .sidebar nav a span:not(.nav-icon){
    display:none;
  }

  .app-shell.sidebar-collapsed .sidebar nav a.active:before{
    left:0;
  }

  .app-shell.sidebar-collapsed .sidebar{
    overflow-y:auto;
  }
}

@media(max-width:900px){
  .sidebar-toggle{
    display:none;
  }
}

@media(max-width:650px){
  .sidebar-toggle{
    display:none;
  }
}


/* =========================================================
   FINAL COLLAPSIBLE SIDEBAR
   ========================================================= */

.app-shell{
  --sidebar-expanded:248px;
  --sidebar-collapsed:78px;
}

.sidebar{
  transition:width .22s ease, padding .22s ease;
  z-index:30;
}

.main{
  transition:margin-left .22s ease;
}

/* Desktop collapsed state */
.app-shell.sidebar-collapsed .sidebar{
  width:var(--sidebar-collapsed);
  padding-left:8px;
  padding-right:8px;
}

.app-shell.sidebar-collapsed .main{
  margin-left:var(--sidebar-collapsed);
}

.app-shell.sidebar-collapsed .brand{
  justify-content:center;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .sidebar-bottom,
.app-shell.sidebar-collapsed .sidebar nav a > span:last-child{
  display:none;
}

.app-shell.sidebar-collapsed .sidebar nav a{
  justify-content:center;
  padding-left:0;
  padding-right:0;
}

.app-shell.sidebar-collapsed .sidebar nav a .nav-icon{
  margin:0;
}

.app-shell.sidebar-collapsed .brand-mark{
  margin:0;
}

.app-shell.sidebar-collapsed .sidebar-toggle{
  display:none;
}

.desktop-sidebar-toggle{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid var(--border,#e2eaf2);
  border-radius:10px;
  background:#fff;
  color:#52657b;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:24px;
  line-height:1;
  margin-right:8px;
  transition:.18s ease;
}

.desktop-sidebar-toggle:hover{
  color:var(--blue,#1677ef);
  border-color:#bcd7f7;
  background:#f5f9ff;
}

.desktop-sidebar-toggle span{
  transform:translateY(-1px);
}

.sidebar-toggle{
  display:none;
}

/* Keep the sidebar scrollbar available in collapsed mode too. */
.app-shell.sidebar-collapsed .sidebar{
  overflow-y:auto;
  overflow-x:hidden;
}

/* Mobile: don't apply desktop collapsed layout. */
@media(max-width:900px){
  .desktop-sidebar-toggle{
    display:none;
  }

  .app-shell.sidebar-collapsed .sidebar{
    width:260px;
    padding-left:12px;
    padding-right:12px;
  }

  .app-shell.sidebar-collapsed .main{
    margin-left:0;
  }

  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .sidebar-label,
  .app-shell.sidebar-collapsed .sidebar-bottom,
  .app-shell.sidebar-collapsed .sidebar nav a > span:last-child{
    display:block;
  }

  .app-shell.sidebar-collapsed .sidebar nav a{
    justify-content:flex-start;
    padding-left:14px;
    padding-right:14px;
  }

  .app-shell.sidebar-collapsed .brand-mark{
    margin:0;
  }

  .sidebar-toggle{
    display:grid;
  }
}

/* Smoothly prevent horizontal overflow during the transition. */
html,
body{
  overflow-x:hidden;
}

/* =========================================================
   GLOBAL FORM CONTROL POLISH
   Applies the same designed treatment to every dropdown
   throughout the Manaki system.
   ========================================================= */

select,
.form-panel select,
.panel select,
.toolbar select,
.filters select,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 42px 0 14px;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background-color: #fff;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;

    /* Remove browser-default dropdown styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Clean custom chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7d93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 17px 17px;

    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

select:hover,
.form-panel select:hover,
.panel select:hover,
.toolbar select:hover,
.filters select:hover,
.filter-bar select:hover {
    border-color: #b9cbe0;
    background-color: #fbfdff;
}

select:focus,
.form-panel select:focus,
.panel select:focus,
.toolbar select:focus,
.filters select:focus,
.filter-bar select:focus {
    outline: none;
    border-color: #2478e5;
    box-shadow: 0 0 0 3px rgba(36,120,229,.10);
    background-color: #fff;
}

select:disabled,
.form-panel select:disabled,
.panel select:disabled {
    cursor: not-allowed;
    opacity: .65;
    background-color: #f5f7fa;
}

/* Keep the browser's option list readable. */
select option {
    background: #fff;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
}

/* Compact selects used beside search/filter controls. */
.toolbar select,
.filters select,
.filter-bar select {
    width: auto;
    min-width: 180px;
}

/* The global search and other controls should not inherit
   the dropdown arrow accidentally. */
input,
textarea {
    appearance: none;
    -webkit-appearance: none;
}

/* Date/time inputs get the same visual height as dropdowns. */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
    min-height: 44px;
    box-sizing: border-box;
}

/* Consistent checkbox/radio controls remain native-sized. */
input[type="checkbox"],
input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: auto;
    min-height: auto;
}


/* =========================================================
   FORM TEXTAREA FIX
   ========================================================= */

.form-panel textarea,
.form-panel .form-grid + div textarea,
.form-panel textarea[name="notes"] {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: #fff;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.form-panel textarea:focus,
.form-panel textarea[name="notes"]:focus {
    outline: none;
    border-color: #2478e5;
    box-shadow: 0 0 0 3px rgba(36,120,229,.10);
}

.form-panel textarea::placeholder {
    color: #8b9aae;
}


/* Summary / Notes / long text fields */
.form-panel textarea {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 140px;
    height: 140px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: #fff;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
}

/* Full-width text sections such as Summary */
.form-panel .full-width,
.form-panel .textarea-field {
    grid-column: 1 / -1;
    width: 100%;
}

/* If the textarea is directly after the form grid */
.form-panel .form-grid + div {
    width: 100%;
    margin-top: 18px;
}

/* Remove excessive default spacing */
.form-panel > div {
    box-sizing: border-box;
}

/* Better spacing before action buttons */
.form-panel .head-actions {
    margin-top: 20px !important;
}

/* Focus */
.form-panel textarea:focus {
    outline: none;
    border-color: #2478e5;
    box-shadow: 0 0 0 3px rgba(36,120,229,.10);
}

/* Placeholder */
.form-panel textarea::placeholder {
    color: #8b9aae;
}

.document-actions{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}

.btn.danger{
    border:1px solid #fecaca;
    background:#fff;
    color:#dc2626;
    cursor:pointer;
}

.btn.danger:hover{
    background:#fef2f2;
}

/* =========================================================
   MANAKI — COMPACT WORKSPACE + INVOICE-CENTERED FINANCE
   Final overrides. Existing functionality/classes remain intact.
   ========================================================= */

/* ---------- Workspace ---------- */

.content{
    padding:22px 24px 34px;
    max-width:1360px;
    margin:0 auto;
}

.page-head{
    margin-bottom:16px;
    gap:16px;
}

.page-head h1{
    font-size:28px;
    margin-bottom:5px;
}

.eyebrow{
    margin-bottom:5px;
}

.cards{
    gap:12px;
    margin-bottom:14px;
}

.stat{
    min-height:96px;
    padding:14px 15px;
    border-radius:13px;
    gap:11px;
}

.stat-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:10px;
}

.stat strong{
    font-size:20px;
}

.stat span{
    font-size:10px;
    margin-bottom:4px;
}

.stat small{
    font-size:9px;
    margin-top:3px;
}

.panel{
    border-radius:13px;
}

.panel-head{
    padding:13px 16px;
}

.panel-head h2{
    font-size:14px;
}

.grid-2{
    gap:14px;
}

.grid-2.equal{
    gap:14px;
}

.table-wrap{
    overflow:auto;
}

table{
    min-width:0;
}

th,
td{
    padding:10px 14px;
    font-size:11px;
}

th{
    font-size:9px;
    letter-spacing:.65px;
}

td small{
    font-size:9px;
}

.toolbar{
    padding:12px 14px;
    gap:10px;
}

.search input{
    padding:9px 11px;
}

.btn{
    padding:9px 13px;
    border-radius:8px;
    font-size:11px;
}

.empty-small{
    min-height:190px;
}

.empty-small.compact{
    min-height:150px;
}


/* ---------- Forms ---------- */

.form-panel{
    padding:19px;
}

.form-grid{
    gap:14px 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea{
    margin-top:6px;
    padding:10px 11px;
}

.form-actions{
    margin-top:18px;
    padding-top:14px;
}


/* ---------- Finance ---------- */

.compact-page-head{
    align-items:center;
}

.compact-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.invoice-focus-panel{
    margin-top:0;
}

.invoice-table{
    width:100%;
    min-width:860px;
}

.invoice-table td:first-child{
    min-width:130px;
}

.invoice-table td:nth-child(2){
    min-width:150px;
}

.invoice-table .btn{
    padding:7px 10px;
    font-size:10px;
}

.invoice-note{
    margin-top:12px;
    padding:12px 15px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    box-shadow:var(--shadow);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.invoice-note strong{
    display:block;
    font-size:12px;
    margin-bottom:3px;
}

.invoice-note span{
    display:block;
    color:var(--muted);
    font-size:10px;
}


/* ---------- Desktop balance ---------- */

@media(min-width:901px){
    .main{
        margin-left:248px;
    }

    .app-shell.sidebar-collapsed .main{
        margin-left:78px;
    }

    .topbar{
        padding:0 22px;
    }
}


/* ---------- Large screens: keep content centered ---------- */

@media(min-width:1450px){
    .content{
        max-width:1320px;
    }
}


/* ---------- Tablet ---------- */

@media(max-width:1250px){
    .content{
        padding:20px 18px 30px;
    }

    .compact-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


/* ---------- Mobile ---------- */

@media(max-width:900px){
    .content{
        padding:18px 15px 28px;
    }

    .page-head{
        margin-bottom:14px;
    }

    .compact-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:650px){
    .content{
        padding:16px 12px 24px;
    }

    .compact-stats{
        grid-template-columns:1fr;
    }

    .invoice-note{
        align-items:flex-start;
        flex-direction:column;
    }
}
