:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#6b7280;--line:#e5e7eb;--primary:#176b87;--primary-dark:#0f536b;--success:#15803d;--danger:#b42318;--warning:#b45309;--sidebar:#102a3a;--sidebar-text:#dbeafe}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:240px;background:var(--sidebar);color:var(--sidebar-text);padding:24px 16px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{font-weight:800;font-size:21px;color:#fff;margin:0 8px 28px}.brand small{display:block;font-weight:500;color:#8fb3c8;font-size:12px;margin-top:4px}.nav a{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:9px;margin:4px 0;color:#cce2ef}.nav a:hover,.nav a.active{background:#17465d;color:#fff}.sidebar-footer{margin-top:28px;border-top:1px solid #27485a;padding-top:18px;font-size:13px;color:#9ec0d2}.main{margin-left:240px;width:calc(100% - 240px)}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.content{padding:28px;max-width:1500px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.page-head h1{font-size:27px;margin:0 0 4px}.muted{color:var(--muted)}.small{font-size:13px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stats .card{padding:18px}.stat-label{font-size:13px;color:var(--muted)}.stat-value{font-size:26px;font-weight:800;margin-top:5px}.section-title{font-size:18px;margin:0 0 16px}.btn{border:0;border-radius:9px;padding:10px 15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:650}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:#eef2f6;color:#334155}.btn-danger{background:#fee4e2;color:var(--danger)}.btn-success{background:#dcfce7;color:var(--success)}.btn-sm{padding:7px 10px;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.form-control{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:10px 12px;background:#fff;color:#111827;outline:none}.form-control:focus{border-color:#4d91aa;box-shadow:0 0 0 3px rgba(23,107,135,.12)}textarea.form-control{min-height:92px;resize:vertical}.help{font-size:12px;color:var(--muted);margin-top:5px}.required:after{content:' *';color:#d92d20}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-size:14px}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#f9fafb}.table tr:last-child td{border-bottom:0}.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2f6;color:#475467}.badge-waiting{background:#fff7ed;color:#c2410c}.badge-with_doctor{background:#eff6ff;color:#1d4ed8}.badge-completed,.badge-paid{background:#ecfdf3;color:#027a48}.badge-cancelled,.badge-unpaid{background:#fef3f2;color:#b42318}.alert{padding:12px 14px;border-radius:10px;margin-bottom:18px}.alert-success{background:#ecfdf3;color:#05603a;border:1px solid #abefc6}.alert-error{background:#fef3f2;color:#912018;border:1px solid #fecdca}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#eef7fa,#f8fafc)}.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 16px 40px rgba(15,42,58,.09)}.auth-logo{font-size:24px;font-weight:850;margin-bottom:6px;color:#10384b}.auth-card h1{margin:0 0 8px}.auth-card .intro{margin:0 0 22px;color:var(--muted)}.searchbar{display:flex;gap:8px;margin-bottom:16px}.searchbar .form-control{max-width:420px}.patient-title{display:flex;gap:12px;align-items:center}.avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e8f3f7;color:#145b73;font-weight:800}.detail-list{display:grid;grid-template-columns:140px 1fr;gap:9px 14px;font-size:14px}.detail-list .key{color:var(--muted)}.timeline{border-left:2px solid #d9e2e8;margin-left:8px;padding-left:20px}.timeline-item{position:relative;margin-bottom:22px}.timeline-item:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:var(--primary);left:-26px;top:5px}.rx-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 2fr auto;gap:8px;margin-bottom:8px;align-items:end}.empty{padding:28px;text-align:center;color:var(--muted)}.inline-form{display:inline}.pagination{display:flex;justify-content:space-between;margin-top:14px}.print-only{display:none}.receipt{max-width:760px;margin:20px auto;background:#fff;padding:28px}.divider{height:1px;background:var(--line);margin:18px 0}.right{text-align:right}.total-row{font-size:20px;font-weight:800}.mobile-menu{display:none}.danger-text{color:var(--danger)}@media(max-width:900px){.sidebar{display:none}.main{margin-left:0;width:100%}.content{padding:18px}.topbar{padding:0 18px}.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.rx-row{grid-template-columns:1fr 1fr}.rx-row .remove-wrap{grid-column:2}.page-head{flex-direction:column}.mobile-menu{display:block}}@media print{body{background:#fff}.no-print,.sidebar,.topbar{display:none!important}.main{margin:0;width:100%}.content{padding:0}.card{border:0;box-shadow:none}.print-only{display:block}.receipt{margin:0;max-width:none;padding:0}a{text-decoration:none;color:#000}}
/* Live queue */
.queue-stats{margin-bottom:18px}.queue-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.queue-toolbar .searchbar{margin-bottom:0}.badge-today{background:#e8f3f7;color:#145b73}.token-badge{display:inline-grid;place-items:center;min-width:48px;padding:7px 9px;border-radius:9px;background:#102a3a;color:#fff;font-weight:800;letter-spacing:.04em}.visit-type{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2f6;color:#475467;white-space:nowrap}.visit-type-walk_in{background:#f0f9ff;color:#0369a1}.doctor-assign-form{display:flex;gap:6px;align-items:center;min-width:220px}.form-control-compact{padding:7px 8px;font-size:13px;min-width:145px}.btn-xs{padding:6px 8px;font-size:12px}.queue-actions{min-width:170px}.badge-no_show{background:#f2f4f7;color:#475467}.queue-row-cancelled,.queue-row-no_show{opacity:.72}.queue-table td{white-space:nowrap}.queue-table td:nth-child(3),.queue-table td:nth-child(6),.queue-table td:nth-child(8){white-space:normal}@media(max-width:900px){.queue-toolbar{align-items:flex-start;flex-direction:column}.doctor-assign-form{min-width:200px}.queue-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.queue-stats{grid-template-columns:1fr 1fr}.queue-stats .stat-value{font-size:22px}}
/* EZY Clinic v2 additions */
.clinic-profile-card{display:flex;gap:30px;align-items:center;min-height:290px;padding:34px}.clinic-profile-logo-wrap{width:220px;display:flex;justify-content:center}.clinic-profile-logo{max-width:200px;max-height:170px;object-fit:contain}.clinic-logo-placeholder{width:150px;height:150px;border-radius:24px;background:#e8f3f7;color:#145b73;display:grid;place-items:center;font-size:64px;font-weight:850}.clinic-profile-info{flex:1}.clinic-profile-info h2{font-size:30px;margin:0 0 24px}.clinic-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}.clinic-detail-grid span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}.clinic-detail-grid strong{display:block;font-size:15px;white-space:pre-line}.print-clinic-header{display:flex;align-items:center;gap:16px}.print-clinic-header img{max-width:90px;max-height:70px;object-fit:contain}.summary-toolbar{display:flex;align-items:end;gap:10px}.summary-toolbar .form-control{min-width:220px}.badge-no_show{background:#f2f4f7;color:#475467}
@media(max-width:900px){.clinic-profile-card{flex-direction:column;align-items:flex-start}.clinic-profile-logo-wrap{width:100%;justify-content:flex-start}.clinic-detail-grid{grid-template-columns:1fr}.summary-toolbar{align-items:stretch;flex-direction:column}}

/* Dashboard clinic/company profile */
.dashboard-page-head{margin-bottom:20px}.dashboard-clinic-card{padding:0;overflow:hidden}.dashboard-clinic-brand{display:flex;align-items:center;gap:28px;padding:32px 34px;background:linear-gradient(135deg,#f8fbfc 0%,#eef6f9 100%);border-bottom:1px solid var(--line)}.dashboard-clinic-logo-wrap{width:132px;height:132px;flex:0 0 132px;border-radius:24px;background:#fff;border:1px solid #dbe7ec;display:grid;place-items:center;padding:14px;box-shadow:0 8px 24px rgba(16,42,58,.06)}.dashboard-clinic-logo{max-width:100%;max-height:100%;object-fit:contain}.dashboard-clinic-logo-placeholder{width:100%;height:100%;border-radius:18px;background:#dff0f5;color:#145b73;display:grid;place-items:center;font-size:52px;font-weight:850}.dashboard-clinic-identity{min-width:0}.dashboard-eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--primary);margin-bottom:8px}.dashboard-clinic-identity h2{font-size:34px;line-height:1.12;margin:0 0 10px;color:var(--text)}.dashboard-clinic-address{margin:0;max-width:780px;color:#667085;line-height:1.6;white-space:pre-line}.dashboard-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:8px 34px 26px}.dashboard-info-item{padding:22px 0;border-bottom:1px solid var(--line);min-width:0}.dashboard-info-item:nth-child(odd){padding-right:28px}.dashboard-info-item:nth-child(even){padding-left:28px;border-left:1px solid var(--line)}.dashboard-info-item-wide{grid-column:1 / -1;padding-left:0!important;padding-right:0!important;border-left:0!important;border-bottom:0}.dashboard-info-label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:750;color:#667085;margin-bottom:7px}.dashboard-info-value{display:block;font-size:16px;line-height:1.45;color:#172033;overflow-wrap:anywhere}.dashboard-fee-value{font-size:22px;color:#0f536b}@media(max-width:760px){.dashboard-clinic-brand{align-items:flex-start;flex-direction:column;padding:24px}.dashboard-clinic-logo-wrap{width:104px;height:104px;flex-basis:104px}.dashboard-clinic-identity h2{font-size:28px}.dashboard-info-grid{grid-template-columns:1fr;padding:4px 24px 22px}.dashboard-info-item,.dashboard-info-item:nth-child(odd),.dashboard-info-item:nth-child(even){padding:18px 0;border-left:0;border-bottom:1px solid var(--line)}.dashboard-info-item-wide{grid-column:auto;border-bottom:0}}

/* Dashboard compact contact details */
.dashboard-info-grid .dashboard-info-item{border-bottom:0}

/* Daily Report — clinic financial control */
.daily-report-page{max-width:1500px;margin:0 auto}.daily-report-heading{align-items:center}.daily-report-period-badge{padding:8px 12px;border-radius:999px;background:#e8f3f7;color:#145b73;font-size:13px;font-weight:750;white-space:nowrap}.daily-report-filter-card,.daily-report-summary-card,.daily-report-detail-card{background:#fff;border:1px solid #dfe6ec;border-radius:16px;box-shadow:0 4px 16px rgba(16,42,58,.035)}.daily-report-filter-card{padding:18px;margin-bottom:16px}.daily-report-filter-grid{display:grid;grid-template-columns:minmax(170px,220px) minmax(170px,220px) repeat(5,auto);gap:9px;align-items:end}.daily-report-field{margin:0}.daily-report-divider{height:1px;background:#e7edf2;margin:15px 0}.daily-report-whatsapp-row{display:grid;grid-template-columns:minmax(220px,330px) auto minmax(260px,1fr);gap:10px;align-items:end}.btn-whatsapp{background:#15803d;color:#fff}.btn-whatsapp:hover{background:#116b33}.daily-report-inline-help{align-self:center;margin:0}.daily-report-opening-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(290px,1.2fr) minmax(300px,1.4fr);gap:10px;align-items:stretch}.daily-report-opening-box,.daily-report-carry-note{border:1px solid #dce8ef;border-radius:12px;padding:12px;background:#fbfdff}.daily-report-opening-box.is-readonly{background:#f7f9fb}.daily-report-box-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#667085;font-weight:800;margin-bottom:7px}.daily-report-opening-form{display:flex;gap:8px;align-items:center}.daily-report-money-input{min-width:0}.daily-report-opening-value{font-size:22px;font-weight:800;color:#0f536b}.daily-report-carry-note{display:flex;flex-direction:column;justify-content:center;color:#145b73;background:#f2f9fc}.daily-report-carry-note strong{font-size:13px;margin-bottom:5px}.daily-report-carry-note span{font-size:12px;line-height:1.5;color:#4f6b79}.daily-report-summary-card{overflow:hidden;margin-bottom:16px}.daily-report-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 18px 13px;border-bottom:1px solid #e3e9ee;background:linear-gradient(180deg,#fff,#fbfdff)}.daily-report-summary-head h2,.daily-report-table-title h2{margin:0 0 4px;font-size:18px}.daily-report-summary-head p,.daily-report-table-title p{margin:0;color:#667085;font-size:12px}.daily-report-meta{display:flex;gap:7px}.daily-report-meta span{min-width:100px;border:1px solid #e2e8ee;border-radius:9px;padding:7px 9px;background:#fff}.daily-report-meta small{display:block;text-transform:uppercase;letter-spacing:.05em;color:#84909d;font-size:9px}.daily-report-meta strong{display:block;font-size:12px;margin-top:2px}.daily-formula-row{display:flex;align-items:stretch;gap:7px;padding:12px 18px 0}.daily-formula-card{flex:1;min-width:0;border:1px solid #dfe8ef;border-radius:10px;background:#fff;padding:10px 11px}.daily-formula-card span{display:block;text-transform:uppercase;letter-spacing:.05em;font-size:9px;color:#718096;margin-bottom:4px}.daily-formula-card strong{display:block;font-size:17px;color:#1e3a5f;overflow-wrap:anywhere}.daily-formula-card small{display:block;color:#83909c;font-size:9px;line-height:1.35;margin-top:4px}.daily-formula-card.emphasis-red{border-color:#ffd0d0;background:#fffafa}.daily-formula-card.emphasis-red strong{color:#d92d20}.daily-formula-card.emphasis-blue{border-color:#cde5f4;background:#f7fcff}.daily-formula-card.emphasis-blue strong{color:#176b87}.daily-formula-operator{width:22px;flex:0 0 22px;display:grid;place-items:center;font-size:18px;font-weight:800;color:#7b8794}.daily-report-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px 18px}.daily-report-mini-grid>div{border:1px solid #e3e9ee;border-radius:9px;padding:9px 10px}.daily-report-mini-grid span{display:block;font-size:10px;color:#718096;text-transform:uppercase;letter-spacing:.04em}.daily-report-mini-grid strong{display:block;font-size:14px;margin-top:3px}.daily-next-opening{margin:0 18px 18px;border:1px solid #ffcccc;background:#fff8f8;border-radius:10px;padding:11px 13px;display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center}.daily-next-opening span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#d92d20;font-weight:800}.daily-next-opening strong{font-size:18px;color:#d92d20}.daily-next-opening small{grid-column:1/-1;color:#8a5d5d}.daily-report-detail-card{padding:16px;margin-bottom:16px}.daily-report-table-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.daily-report-main-table-wrap{border-radius:10px}.daily-report-main-table .daily-section-row td{font-weight:700}.daily-report-main-table .section-blue td{background:#e8f6fc;color:#155e75}.daily-report-main-table .section-warm td{background:#fff8ee;color:#9a5518}.daily-report-main-table .section-red td{background:#fff5f5;color:#c93232}.daily-report-main-table .daily-total-row td{background:#f4f7fa;font-weight:800}.daily-report-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.daily-simple-list{border:1px solid #e3e9ee;border-radius:10px;overflow:hidden}.daily-simple-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e9edf1}.daily-simple-list>div:last-child{border-bottom:0}.daily-simple-list span{font-size:13px}.daily-simple-list span small{color:#84909d;margin-left:4px}.daily-simple-list strong{font-size:13px}.daily-report-main-table .right,.daily-report-detail-card .right{text-align:right}@media(max-width:1200px){.daily-report-filter-grid{grid-template-columns:repeat(2,minmax(180px,1fr));}.daily-report-filter-grid .btn{width:100%}.daily-report-opening-grid{grid-template-columns:1fr 1fr}.daily-report-carry-note{grid-column:1/-1}.daily-formula-row{display:grid;grid-template-columns:1fr 26px 1fr 26px 1fr}.daily-formula-row-4 .daily-formula-card:nth-of-type(4){grid-column:1/2}.daily-report-mini-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.daily-report-whatsapp-row,.daily-report-opening-grid,.daily-report-breakdown-grid{grid-template-columns:1fr}.daily-report-filter-grid{grid-template-columns:1fr}.daily-report-summary-head{flex-direction:column}.daily-report-meta{width:100%;flex-wrap:wrap}.daily-report-meta span{flex:1}.daily-formula-row{display:block}.daily-formula-card{margin-bottom:7px}.daily-formula-operator{width:auto;height:20px}.daily-report-mini-grid{grid-template-columns:1fr}.daily-next-opening{grid-template-columns:1fr}.daily-next-opening small{grid-column:auto}.daily-report-period-badge{white-space:normal}.daily-report-inline-help{margin-top:3px}}

/* Daily Report page setup — reference-style compact report workspace */
.daily-report-layout .content{max-width:none;padding:10px 12px 28px;margin:0}.daily-report-layout .main{background:#f4f7fb}.daily-report-layout .daily-report-page{max-width:none;margin:0}.daily-report-app-header{display:grid;grid-template-columns:minmax(220px,1fr) minmax(620px,1.7fr);gap:14px;align-items:stretch;background:#fff;border:1px solid #d9e4ef;border-radius:15px;padding:10px 12px;margin-bottom:10px;box-shadow:0 6px 20px rgba(15,42,58,.04)}.daily-report-app-title{display:flex;flex-direction:column;justify-content:center;padding:4px 8px}.daily-report-app-title h1{margin:0;color:#172033;font-size:27px;line-height:1.1;letter-spacing:-.03em}.daily-report-app-title p{margin:6px 0 0;color:#6b7280;font-size:12px}.daily-report-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.daily-report-context-card{min-width:0;border:1px solid #dde7f0;border-radius:10px;padding:8px 9px;background:linear-gradient(180deg,#fff,#fbfdff);display:flex;flex-direction:column}.daily-report-context-card .context-label{font-size:8px;letter-spacing:.11em;text-transform:uppercase;color:#8392a5;font-weight:800;margin-bottom:3px}.daily-report-context-card>strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}.daily-report-context-card>small{font-size:9px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-report-context-foot{margin-top:auto;padding-top:5px;display:flex;align-items:center;justify-content:space-between;gap:6px;color:#526579;font-size:9px}.context-status{display:inline-flex;padding:2px 7px;border-radius:999px;background:#e8f8ee;color:#15803d;font-weight:750}.daily-report-logout{border:1px solid #dce5ed;background:#fff;color:#334155;border-radius:7px;padding:3px 7px;font-size:9px;cursor:pointer}.daily-report-logout:hover{background:#f4f7fa}.daily-report-layout .daily-report-filter-card{padding:12px 14px;margin-bottom:10px;border-radius:14px;box-shadow:none}.daily-report-layout .daily-report-filter-grid{grid-template-columns:190px 190px repeat(5,max-content);gap:7px}.daily-report-layout .form-group label{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#65758b;margin-bottom:4px}.daily-report-layout .form-control{padding:8px 9px;border-radius:8px;font-size:12px}.daily-report-layout .btn{padding:8px 11px;border-radius:8px;font-size:11px}.daily-report-layout .daily-report-divider{margin:10px 0}.daily-report-layout .daily-report-whatsapp-row{grid-template-columns:260px max-content 1fr;gap:8px}.daily-report-layout .daily-report-inline-help{font-size:9px}.daily-report-layout .daily-report-opening-grid{grid-template-columns:1fr 1.15fr 1.35fr;gap:7px}.daily-report-layout .daily-report-opening-box,.daily-report-layout .daily-report-carry-note{padding:9px 10px;border-radius:9px}.daily-report-layout .daily-report-box-label{font-size:8px}.daily-report-layout .daily-report-opening-value{font-size:18px}.daily-report-layout .daily-report-carry-note strong{font-size:10px}.daily-report-layout .daily-report-carry-note span,.daily-report-layout .help{font-size:9px}.daily-report-layout .daily-report-summary-card,.daily-report-layout .daily-report-detail-card{border-radius:14px;box-shadow:none;margin-bottom:10px}.daily-report-layout .daily-report-summary-head{padding:10px 12px 8px}.daily-report-layout .daily-report-summary-head h2,.daily-report-layout .daily-report-table-title h2{font-size:14px}.daily-report-layout .daily-report-summary-head p,.daily-report-layout .daily-report-table-title p{font-size:9px}.daily-report-layout .daily-report-meta span{min-width:86px;padding:5px 7px;border-radius:7px}.daily-report-layout .daily-report-meta small{font-size:7px}.daily-report-layout .daily-report-meta strong{font-size:9px}.daily-report-layout .daily-formula-row{gap:5px;padding:8px 12px 0}.daily-report-layout .daily-formula-card{border-radius:8px;padding:7px 8px}.daily-report-layout .daily-formula-card span{font-size:7px}.daily-report-layout .daily-formula-card strong{font-size:13px}.daily-report-layout .daily-formula-card small{font-size:7px}.daily-report-layout .daily-formula-operator{width:18px;flex-basis:18px;font-size:13px}.daily-report-layout .daily-report-mini-grid{gap:5px;padding:8px 12px}.daily-report-layout .daily-report-mini-grid>div{padding:7px 8px;border-radius:7px}.daily-report-layout .daily-report-mini-grid span{font-size:8px}.daily-report-layout .daily-report-mini-grid strong{font-size:11px}.daily-report-layout .daily-next-opening{margin:0 12px 12px;padding:8px 10px;border-radius:8px}.daily-report-layout .daily-next-opening span{font-size:8px}.daily-report-layout .daily-next-opening strong{font-size:14px}.daily-report-layout .daily-next-opening small{font-size:8px}.daily-report-layout .daily-report-detail-card{padding:10px 12px}.daily-report-layout .daily-report-table-title{margin-bottom:7px}.daily-report-layout .table th,.daily-report-layout .table td{padding:7px 9px;font-size:10px}.daily-report-layout .table th{font-size:8px}.daily-report-layout .daily-report-breakdown-grid{gap:10px}.daily-report-layout .daily-simple-list>div{padding:7px 9px}.daily-report-layout .daily-simple-list span,.daily-report-layout .daily-simple-list strong{font-size:10px}.daily-report-layout .daily-simple-list span small{font-size:8px}
@media(max-width:1250px){.daily-report-app-header{grid-template-columns:1fr}.daily-report-context-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-report-layout .daily-report-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.daily-report-layout .daily-report-filter-grid .btn{width:100%}.daily-report-layout .daily-report-opening-grid{grid-template-columns:1fr 1fr}.daily-report-layout .daily-report-carry-note{grid-column:1/-1}}
@media(max-width:800px){.daily-report-layout .content{padding:10px}.daily-report-context-grid{grid-template-columns:1fr}.daily-report-layout .daily-report-filter-grid,.daily-report-layout .daily-report-whatsapp-row,.daily-report-layout .daily-report-opening-grid{grid-template-columns:1fr}.daily-report-layout .daily-report-app-title h1{font-size:24px}}

/* Mobile usability fix — Daily Report + off-canvas navigation */
.mobile-nav-toggle,.mobile-nav-overlay{display:none}
.daily-formula-card strong,.daily-report-mini-grid strong,.daily-next-opening strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}

@media (max-width:900px), (max-device-width:900px), ((hover:none) and (pointer:coarse) and (max-width:1200px)) {
  body.mobile-nav-open{overflow:hidden}
  .mobile-nav-toggle{display:flex;position:fixed;top:12px;left:12px;z-index:80;width:42px;height:42px;border:1px solid #d9e4ef;border-radius:10px;background:#fff;color:#102a3a;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 5px 18px rgba(15,42,58,.14);cursor:pointer}
  .mobile-nav-overlay{position:fixed;inset:0;z-index:69;background:rgba(15,42,58,.38)}
  body.mobile-nav-open .mobile-nav-overlay{display:block}
  .sidebar{display:block!important;width:min(82vw,300px);padding:20px 14px;z-index:70;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 35px rgba(15,42,58,.20)}
  body.mobile-nav-open .sidebar{transform:translateX(0)}
  .main{margin-left:0!important;width:100%!important;min-width:0}
  .topbar{padding-left:66px}
  .content{min-width:0}

  .daily-report-layout .content{padding:62px 10px 24px!important}
  .daily-report-app-header{grid-template-columns:1fr!important;gap:8px;padding:10px}
  .daily-report-app-title{padding:2px 4px}
  .daily-report-app-title h1{font-size:23px}
  .daily-report-context-grid{grid-template-columns:1fr!important;gap:6px}
  .daily-report-context-card{padding:8px 9px}

  .daily-report-layout .daily-report-filter-card{padding:10px}
  .daily-report-layout .daily-report-filter-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px}
  .daily-report-layout .daily-report-filter-grid .daily-report-field{grid-column:auto}
  .daily-report-layout .daily-report-filter-grid .btn{width:100%;min-width:0;white-space:normal}
  .daily-report-layout .daily-report-whatsapp-row{grid-template-columns:1fr!important;gap:7px}
  .daily-report-layout .daily-report-whatsapp-row .btn{width:100%}
  .daily-report-layout .daily-report-opening-grid{grid-template-columns:1fr!important}
  .daily-report-layout .daily-report-opening-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
  .daily-report-layout .daily-report-money-input{min-width:0}

  .daily-report-summary-head{flex-direction:column;align-items:stretch}
  .daily-report-meta{width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .daily-report-meta span{min-width:0!important}

  .daily-report-layout .daily-formula-row,
  .daily-formula-row,
  .daily-formula-row-3,
  .daily-formula-row-4{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;padding:8px 10px 0!important}
  .daily-report-layout .daily-formula-row .daily-formula-card,
  .daily-formula-row .daily-formula-card{grid-column:1!important;margin:0!important;min-width:0;width:100%}
  .daily-report-layout .daily-formula-operator,
  .daily-formula-operator{grid-column:1!important;width:100%!important;height:18px!important;display:flex!important;align-items:center;justify-content:center;font-size:14px!important}
  .daily-formula-card strong{font-size:15px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}

  .daily-report-mini-grid{grid-template-columns:1fr 1fr!important;padding:8px 10px!important}
  .daily-next-opening{grid-template-columns:1fr auto!important;margin:0 10px 10px!important}
  .daily-next-opening strong{white-space:nowrap}

  .daily-report-breakdown-grid{grid-template-columns:1fr!important;gap:10px}
  .daily-report-detail-card{min-width:0;overflow:hidden}
  .daily-report-detail-card .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .daily-report-main-table{min-width:620px}
  .daily-report-breakdown-grid .table{min-width:640px}
  .daily-report-layout .table th,.daily-report-layout .table td{white-space:nowrap}
  .daily-report-layout .table td:nth-child(2){white-space:normal;min-width:180px}
}

@media (max-width:520px) {
  .daily-report-layout .daily-report-filter-grid{grid-template-columns:1fr!important}
  .daily-report-meta{grid-template-columns:1fr 1fr!important}
  .daily-report-mini-grid{grid-template-columns:1fr!important}
  .daily-next-opening{grid-template-columns:1fr!important}
  .daily-report-layout .daily-report-opening-form{grid-template-columns:1fr}
  .daily-report-layout .daily-report-opening-form .btn{width:100%}
}

/* Daily Report compact expandable details — reference-style layout */
.daily-expand-row td{background:#fbfcfe!important;padding-top:5px!important;padding-bottom:5px!important}
.daily-inline-details{width:100%}
.daily-inline-details>summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:#176b87;font-weight:800;font-size:10px;list-style:none;user-select:none}
.daily-inline-details>summary::-webkit-details-marker{display:none}
.daily-inline-details>summary:after{content:'▾';font-size:9px;transition:transform .15s ease}
.daily-inline-details[open]>summary:after{transform:rotate(180deg)}
.daily-inline-details-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.8fr);gap:10px;margin-top:8px;padding:9px;border:1px solid #dfe8ef;border-radius:9px;background:#fff}
.daily-inline-details-block>strong{display:block;margin-bottom:6px;font-size:10px;color:#334155;text-transform:uppercase;letter-spacing:.04em}
.daily-inline-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e6ebef;border-radius:7px}
.daily-inline-table{width:100%;min-width:560px;border-collapse:collapse}
.daily-inline-table th,.daily-inline-table td{padding:6px 7px!important;border-bottom:1px solid #edf1f4;font-size:9px!important;vertical-align:top;background:#fff!important}
.daily-inline-table th{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:8px!important}
.daily-inline-table tr:last-child td{border-bottom:0}
.daily-inline-table td small{display:block;color:#8793a1;font-weight:400;margin-top:2px}
.daily-inline-list{border:1px solid #e6ebef;border-radius:7px;overflow:hidden}
.daily-inline-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border-bottom:1px solid #edf1f4;background:#fff}
.daily-inline-list>div:last-child{border-bottom:0}
.daily-inline-list span,.daily-inline-list strong{font-size:9px}
.daily-inline-list span small{color:#8793a1;margin-left:3px}
.daily-inline-empty{padding:8px;border:1px dashed #dce4ea;border-radius:7px;color:#7b8794;font-size:9px;background:#fafcfd}
@media(max-width:800px){
  .daily-inline-details-grid{grid-template-columns:1fr;padding:7px}
  .daily-inline-details>summary{font-size:11px}
  .daily-expand-row td:first-child{display:none}
  .daily-expand-row td[colspan="3"]{padding-left:8px!important;padding-right:8px!important}
}

/* User page assignment + reports + sidebar exit */
.sidebar{display:flex;flex-direction:column}
.sidebar .nav{flex:1}
.sidebar-exit-form{margin-top:auto;padding-top:18px;border-top:1px solid #27485a}
.sidebar-exit-button{width:100%;border:0;background:transparent;color:#f4c7c3;display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:9px;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.sidebar-exit-button:hover{background:#4b2730;color:#fff}
.page-assignment-card{max-width:980px}
.page-assignment-user{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.page-assignment-user h2{margin:3px 0;font-size:22px}
.page-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.page-permission-option{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #dbe3e9;border-radius:11px;background:#fbfdff;cursor:pointer}
.page-permission-option:hover{border-color:#8eb7c7;background:#f6fbfd}
.page-permission-option input{width:18px;height:18px;margin-top:2px;accent-color:var(--primary)}
.page-permission-option span{display:block;min-width:0}.page-permission-option strong{display:block;margin-bottom:3px}.page-permission-option small{display:block;color:var(--muted);line-height:1.35}
.page-assignment-actions{margin-top:18px}.page-default-form{margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.report-filter-card{margin-bottom:16px}.report-filter-grid{display:grid;grid-template-columns:minmax(180px,240px) minmax(180px,240px) auto auto;gap:10px;align-items:end}.report-filter-grid .form-group{margin:0}.report-section{margin-top:16px}.report-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.report-section .section-title{margin-bottom:4px}.report-money-positive{color:#0f6b51}.report-simple-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}.report-simple-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid var(--line)}.report-simple-list>div:last-child{border-bottom:0}.report-simple-list span small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.report-simple-list strong{white-space:nowrap}.report-wide-table{min-width:760px}
@media(max-width:900px){.page-permission-grid{grid-template-columns:1fr}.page-assignment-user{grid-template-columns:1fr}.report-filter-grid{grid-template-columns:1fr 1fr}.report-page-head{align-items:stretch}.report-page-head .actions{width:100%}.report-page-head .actions .btn{flex:1}.report-summary-grid{grid-template-columns:1fr}.report-stats,.report-money-stats{grid-template-columns:1fr 1fr}.report-table{min-width:760px}}
@media(max-width:520px){.report-filter-grid{grid-template-columns:1fr}.report-stats,.report-money-stats{grid-template-columns:1fr}}

/* Reports center: one report at a time */
.report-filter-grid-buttons{grid-template-columns:minmax(180px,240px) minmax(180px,240px) auto auto}
.report-picker-card{margin-top:16px;padding:16px}.report-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.report-picker-head .section-title{margin:0 0 3px}.report-button-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.report-choice-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;color:var(--text);font-weight:750;text-align:center;text-decoration:none;transition:.15s ease}.report-choice-btn:hover{border-color:#8bb9c8;background:#f0f8fb}.report-choice-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.report-active-card{margin-top:16px;padding:0;overflow:hidden}.report-active-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fbfdff}.report-active-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}.report-active-head h2{margin:3px 0 2px;font-size:22px}.report-active-actions{display:flex;gap:8px}.report-active-card>.table-wrap{margin:0;padding:14px 16px 16px}.report-selected-stats{padding:14px 16px 0}.report-selected-money{padding-bottom:16px}.report-stat-box{border:1px solid var(--line);border-radius:11px;background:#fff;padding:14px}.report-total-strip{margin:14px 16px 0;padding:11px 13px;border:1px solid #cfe8df;border-radius:10px;background:#f1fbf6;display:flex;justify-content:space-between;gap:16px;align-items:center}.report-total-strip strong{white-space:nowrap;color:#0f6b51;font-size:17px}.report-total-warning{border-color:#f2ddd4;background:#fff8f4}.report-total-warning strong{color:#9b4e2c}.report-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 16px 0}.report-payment-box{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff}.report-payment-box span{display:block;color:var(--muted);font-size:12px}.report-payment-box strong{display:block;margin-top:5px;font-size:18px;white-space:nowrap}.report-extra-wide-table{min-width:980px}
@media(max-width:1100px){.report-button-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.report-filter-grid-buttons{grid-template-columns:1fr 1fr}.report-filter-grid-buttons .btn{width:100%}.report-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-active-head{align-items:stretch;flex-direction:column}.report-active-actions{width:100%}.report-active-actions .btn{flex:1}.report-selected-stats{grid-template-columns:1fr 1fr}.report-payment-grid{grid-template-columns:1fr}}
@media(max-width:480px){.report-filter-grid-buttons{grid-template-columns:1fr}.report-button-grid{grid-template-columns:1fr}.report-selected-stats{grid-template-columns:1fr}.report-active-actions{flex-direction:column}}

/* Premium icon UI enhancement */
.ui-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;color:currentColor}
.ui-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.nav a .ui-icon{width:19px;height:19px;flex-basis:19px;color:#91b6c9;transition:.16s ease}
.nav a:hover .ui-icon,.nav a.active .ui-icon{color:#fff;transform:translateY(-1px)}
.nav a{position:relative;min-height:44px;transition:background .16s ease,color .16s ease,transform .16s ease;padding-left:13px}
.nav a:hover{transform:translateX(2px)}
.nav a.active{box-shadow:inset 3px 0 0 #53b5d1,0 6px 18px rgba(0,0,0,.08)}
.brand{position:relative;padding-left:44px;min-height:40px;display:flex;flex-direction:column;justify-content:center}
.brand:before{content:'+';position:absolute;left:0;top:0;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#247f9f,#145a73);display:grid;place-items:center;color:#fff;font-size:25px;font-weight:500;box-shadow:0 8px 18px rgba(0,0,0,.2)}
.btn .ui-icon{width:16px;height:16px;flex-basis:16px}
.btn{transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease,border-color .12s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(15,42,58,.10)}
.btn-primary{box-shadow:0 4px 10px rgba(23,107,135,.16)}
.sidebar-exit-button .ui-icon{width:19px;height:19px;flex-basis:19px}
.heading-icon{width:22px!important;height:22px!important;flex-basis:22px!important;color:var(--primary);margin-right:8px;vertical-align:-3px}
.page-head h1,.section-title{display:flex;align-items:center}
.card{transition:border-color .16s ease,box-shadow .16s ease}
.card:hover{border-color:#d8e3e9;box-shadow:0 7px 24px rgba(15,42,58,.055)}
.table tbody tr{transition:background-color .12s ease}.table tbody tr:hover{background:#fbfdff}
.topbar strong{display:flex;align-items:center;gap:8px}
.badge{box-shadow:inset 0 0 0 1px rgba(15,42,58,.025)}
@media(max-width:1200px){.mobile-nav-toggle{font-size:0}.mobile-nav-toggle:before{content:'☰';font-size:27px;line-height:1}}

/* Users page: entry form on top, records table below */
.users-create-card{margin-bottom:18px}
.users-create-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:end}
.users-create-grid .form-group{margin:0}
.users-create-action{display:flex;align-items:flex-end;min-height:68px}
.users-create-action .btn{min-width:150px;justify-content:center}
.users-table-card{padding-bottom:12px}
.users-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.users-table-head .section-title{margin-bottom:2px}
.users-record-table{min-width:920px}
.users-record-table th:last-child,.users-record-table td:last-child{width:190px}
.users-record-table th:nth-child(5),.users-record-table td:nth-child(5){width:150px}
.users-actions{flex-wrap:nowrap}
.users-actions form{margin:0}
@media(max-width:1050px){
  .users-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .users-create-action{min-height:0}
}
@media(max-width:640px){
  .users-create-grid{grid-template-columns:1fr}
  .users-create-action .btn{width:100%}
}

/* Unified top-form + full-width records table layout */
.record-create-card{margin-bottom:18px}
.record-create-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:end}
.record-create-grid .form-group{margin:0}
.record-wide-field{grid-column:span 2}
.record-compact-textarea{min-height:44px;height:44px;resize:vertical}
.record-create-action{display:flex;align-items:flex-end;min-height:68px}
.record-create-action .btn{min-width:150px;justify-content:center}
.record-table-card{padding-bottom:12px}
.record-table-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.record-table-head .section-title{margin-bottom:2px}
.record-table-head-with-search{align-items:flex-end}
.record-searchbar{margin:0;justify-content:flex-end;flex:0 1 620px}
.record-searchbar .form-control{max-width:360px}
.record-table{min-width:900px}
.record-actions{flex-wrap:nowrap}
.record-actions form{margin:0}
.staff-record-table{min-width:980px}
.drugs-record-table{min-width:900px}
.expenses-record-table{min-width:900px}
.expenses-record-table th:last-child,.expenses-record-table td:last-child{text-align:right;white-space:nowrap}
@media(max-width:1050px){
  .record-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .record-create-action{min-height:0}
  .record-wide-field{grid-column:span 1}
  .record-table-head-with-search{align-items:stretch;flex-direction:column}
  .record-searchbar{flex:0 0 auto;width:100%;justify-content:flex-start}
}
@media(max-width:640px){
  .record-create-grid{grid-template-columns:1fr}
  .record-create-action .btn{width:100%}
  .record-searchbar{flex-direction:column}
  .record-searchbar .form-control{max-width:none}
  .record-searchbar .btn{width:100%}
}

/* Compact master-page standard: form on top, records table below */
.master-page-head{margin-bottom:14px}
.compact-master-card{padding:14px 18px;margin-bottom:14px}
.compact-master-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.compact-master-head .section-title{margin:0;font-size:17px}
.compact-master-grid{display:grid;gap:9px 12px;align-items:end}
.compact-master-grid .form-group{margin:0;min-width:0}
.compact-master-grid .form-group label{font-size:11px;margin-bottom:4px}
.compact-master-grid .form-control{min-height:38px;padding:7px 10px;border-radius:8px;font-size:13px}
.compact-master-grid select.form-control{padding-right:30px}
.compact-master-textarea{min-height:38px!important;height:38px!important;resize:vertical;line-height:1.35}
.compact-master-action{display:flex;align-items:flex-end;min-height:38px}
.compact-master-action .btn{min-height:38px;padding:8px 13px;white-space:nowrap}
.compact-records-card{margin-top:0;padding:14px 16px 12px}
.compact-records-card .record-table-head{margin-bottom:9px}
.compact-records-card .section-title{font-size:17px}
.compact-records-card .table th,.compact-records-card .table td{padding-top:10px;padding-bottom:10px}
.compact-users-grid{grid-template-columns:minmax(150px,1.15fr) minmax(200px,1.4fr) minmax(150px,.9fr) minmax(150px,1fr) minmax(150px,1fr) auto}
.compact-staff-grid{grid-template-columns:minmax(160px,1.1fr) minmax(150px,.9fr) minmax(170px,1fr) minmax(190px,1.2fr) minmax(190px,1.2fr) auto}
.compact-staff-grid .compact-notes-field{min-width:170px}
.compact-drugs-grid{grid-template-columns:minmax(210px,1.4fr) minmax(190px,1.2fr) minmax(145px,.85fr) minmax(130px,.7fr) auto}
.compact-expense-grid{grid-template-columns:minmax(150px,.8fr) minmax(130px,.7fr) minmax(170px,1fr) minmax(220px,1.4fr) minmax(160px,.9fr) minmax(180px,1.1fr) auto}
.compact-expense-grid .compact-notes-field{min-width:180px}
@media(max-width:1350px){
  .compact-users-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .compact-staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .compact-drugs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .compact-expense-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .compact-master-action{min-height:0}
}
@media(max-width:850px){
  .compact-master-head{align-items:flex-start;flex-direction:column;gap:3px}
  .compact-users-grid,.compact-staff-grid,.compact-drugs-grid,.compact-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .compact-master-card{padding:13px}
  .compact-users-grid,.compact-staff-grid,.compact-drugs-grid,.compact-expense-grid{grid-template-columns:1fr}
  .compact-master-action .btn{width:100%}
  .compact-master-head .small{display:none}
}

/* Appointments: compact date filter controls */
.queue-toolbar .searchbar{
  align-items:center;
  gap:8px;
}
.queue-toolbar .searchbar .form-control[type="date"]{
  width:190px;
  max-width:190px !important;
  min-height:38px;
  height:38px;
  padding:6px 10px;
  line-height:1.2;
  border-radius:8px;
}
.queue-toolbar .searchbar .btn{
  min-height:38px;
  height:38px;
  padding:6px 12px;
  line-height:1.1;
  border-radius:8px;
}
@media(max-width:560px){
  .queue-toolbar .searchbar{
    width:100%;
    flex-direction:row;
    align-items:center;
  }
  .queue-toolbar .searchbar .form-control[type="date"]{
    width:min(190px,60vw);
    max-width:min(190px,60vw) !important;
  }
  .queue-toolbar .searchbar .btn{
    width:auto;
    flex:0 0 auto;
  }
}

/* Standard saved-record search and filter controls */
.compact-filter-card{padding:12px 14px;margin-bottom:14px}
.record-filter-form{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0;min-width:0}
.record-filter-form .form-control{width:auto;min-width:145px;min-height:38px;height:38px;padding:7px 10px;border-radius:8px;font-size:13px}
.record-filter-form .record-filter-search{min-width:240px;max-width:340px;flex:1 1 260px}
.record-filter-form select.form-control{padding-right:30px}
.record-filter-form .btn{min-height:38px;height:38px;padding:7px 12px;white-space:nowrap}
.record-filter-form-wide{justify-content:flex-start;width:100%}
.filter-date-field{display:flex;flex-direction:column;gap:3px;min-width:160px}
.filter-date-field label{font-size:10px;font-weight:750;color:#65758b;text-transform:uppercase;letter-spacing:.04em;margin:0}
.filter-date-field .form-control{min-width:160px}
.filter-context{display:flex;align-items:center;justify-content:flex-end;margin-top:8px;min-height:24px}
.appointment-filter-card .record-filter-search{min-width:220px}
@media(max-width:1100px){
  .record-table-head-with-search{align-items:stretch;flex-direction:column}
  .record-filter-form{justify-content:flex-start;width:100%}
}
@media(max-width:720px){
  .record-filter-form,.record-filter-form-wide{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .record-filter-form .form-control,.record-filter-form .record-filter-search,.filter-date-field,.filter-date-field .form-control{width:100%;max-width:none;min-width:0}
  .record-filter-form .record-filter-search{grid-column:1/-1}
  .record-filter-form .btn{width:100%}
}
@media(max-width:480px){
  .record-filter-form,.record-filter-form-wide{grid-template-columns:1fr}
  .record-filter-form .record-filter-search{grid-column:auto}
}

/* Licensed application header: removes duplicate page title and shows compact user/license context. */
.app-context-bar{min-height:74px;padding:10px 30px;display:flex;align-items:center;justify-content:flex-end;background:#fff;border-bottom:1px solid var(--line)}
.app-context-spacer{flex:1}
.app-context-cards{display:flex;align-items:stretch;gap:9px}
.app-context-card{min-width:175px;padding:8px 11px;border:1px solid #dce6ed;border-radius:11px;background:#fbfdff;line-height:1.2}
.app-context-card>span{display:block;text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:800;color:#748699;margin-bottom:3px}
.app-context-card>strong{display:block;font-size:13px;color:#142a3b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-context-card>small{display:block;margin-top:3px;font-size:10px;color:#647789}
.license-context-card{min-width:245px}
.license-context-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.license-context-foot em{font-style:normal;font-size:9px;color:#6c7f90;white-space:nowrap}
.license-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#e7f8ed;color:#15703b;font-size:9px;font-weight:800}
.license-status-expired,.license-status-inactive{background:#fff0ee;color:#b33a2e}
.license-status-expiring-soon,.license-status-not-started{background:#fff6df;color:#9a6510}
.cash-status-filter{gap:7px;min-width:96px;justify-content:center}
.cash-status-filter .ui-icon{width:15px;height:15px;flex-basis:15px}

@media(max-width:900px){
  .app-context-bar{padding:9px 14px 9px 64px;min-height:66px}
  .app-context-card{display:none}
  .license-context-card{display:block;min-width:0;width:min(320px,100%)}
  .license-context-foot{justify-content:flex-start}
}
@media(max-width:560px){
  .app-context-bar{padding-right:10px}
  .license-context-card{padding:7px 9px}
  .license-context-card>small{display:none}
  .license-context-foot em{display:none}
}

/* Premium alignment fix for the User + License Summary header cards. */
.app-context-bar{
  min-height:88px;
  padding:10px 30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.app-context-cards{
  display:grid;
  grid-template-columns:190px 280px;
  gap:10px;
  align-items:stretch;
  width:max-content;
  max-width:100%;
}
.app-context-card,
.license-context-card{
  box-sizing:border-box;
  min-width:0;
  width:auto;
  height:68px;
  padding:8px 12px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  overflow:hidden;
}
.app-context-card>span,
.license-context-card>span{
  flex:0 0 auto;
  line-height:1.1;
  margin-bottom:3px;
}
.app-context-card>strong,
.license-context-card>strong{
  width:100%;
  line-height:1.15;
}
.app-context-card>small,
.license-context-card>small{
  width:100%;
  line-height:1.15;
  min-height:12px;
}
.license-context-foot{
  width:100%;
  margin-top:auto;
  min-height:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

@media(max-width:1100px){
  .app-context-cards{grid-template-columns:170px 250px}
}
@media(max-width:900px){
  .app-context-bar{min-height:66px;padding:9px 14px 9px 64px}
  .app-context-cards{display:block;width:min(320px,100%)}
  .app-context-card{display:none}
  .license-context-card{display:flex;width:100%;height:56px;padding:7px 10px}
}
@media(max-width:560px){
  .app-context-bar{padding-right:10px}
  .license-context-card{height:52px}
  .license-context-card>small{display:none}
  .license-context-foot em{display:none}
}

/* Final header card sizing fix: prevent license text clipping. */
.topbar.app-context-bar{
  height:auto;
  min-height:96px;
  overflow:visible;
  padding-top:10px;
  padding-bottom:10px;
}
.app-context-cards{
  align-items:stretch;
}
.app-context-card,
.license-context-card{
  height:76px;
  min-height:76px;
  overflow:visible;
  padding:9px 12px;
}
.app-context-card>strong,
.license-context-card>strong{
  flex:0 0 auto;
  line-height:1.2;
  min-height:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.app-context-card>small,
.license-context-card>small{
  flex:0 0 auto;
  line-height:1.2;
  min-height:13px;
  margin-top:3px;
}
.license-context-foot{
  flex:0 0 auto;
  margin-top:auto;
  min-height:18px;
}
@media(max-width:900px){
  .topbar.app-context-bar{height:auto;min-height:70px;overflow:visible}
  .license-context-card{height:60px;min-height:60px;overflow:hidden}
}
@media(max-width:560px){
  .license-context-card{height:56px;min-height:56px}
}

/* Compact premium licensed header: reduce vertical whitespace while keeping context cards aligned right. */
.topbar.app-context-bar{
  height:72px;
  min-height:72px;
  padding:6px 22px;
  overflow:visible;
  justify-content:flex-end;
}
.app-context-spacer{display:none}
.app-context-cards{
  grid-template-columns:176px 268px;
  gap:8px;
  align-items:center;
  width:max-content;
  margin-left:auto;
}
.app-context-card,
.license-context-card{
  height:58px;
  min-height:58px;
  padding:7px 11px;
  border-radius:10px;
  justify-content:flex-start;
  overflow:hidden;
}
.app-context-card>span,
.license-context-card>span{
  font-size:8px;
  line-height:1;
  margin-bottom:2px;
}
.app-context-card>strong,
.license-context-card>strong{
  font-size:12px;
  line-height:1.15;
  min-height:14px;
}
.app-context-card>small,
.license-context-card>small{
  font-size:9px;
  line-height:1.1;
  min-height:10px;
  margin-top:2px;
}
.license-context-foot{
  min-height:15px;
  margin-top:auto;
  gap:8px;
}
.license-context-foot em{font-size:8px}
.license-status{font-size:8px;padding:2px 7px}

@media(max-width:1100px){
  .app-context-cards{grid-template-columns:164px 238px}
}
@media(max-width:900px){
  .topbar.app-context-bar{height:62px;min-height:62px;padding:5px 12px 5px 64px}
  .app-context-cards{display:block;width:min(300px,100%)}
  .app-context-card{display:none}
  .license-context-card{display:flex;height:50px;min-height:50px;padding:6px 9px}
}
@media(max-width:560px){
  .topbar.app-context-bar{height:58px;min-height:58px;padding-right:8px}
  .license-context-card{height:46px;min-height:46px}
  .license-context-card>small{display:none}
  .license-context-foot em{display:none}
}

/* Final readability refinement for compact licensed header cards. */
.topbar.app-context-bar{
  height:74px;
  min-height:74px;
  padding:6px 22px;
}
.app-context-cards{
  grid-template-columns:184px 276px;
  gap:9px;
}
.app-context-card,
.license-context-card{
  height:62px;
  min-height:62px;
  padding:8px 12px;
  border-radius:11px;
}
.app-context-card>span,
.license-context-card>span{
  font-size:9px;
  line-height:1.05;
  margin-bottom:3px;
}
.app-context-card>strong,
.license-context-card>strong{
  font-size:13px;
  line-height:1.16;
  min-height:15px;
}
.app-context-card>small,
.license-context-card>small{
  font-size:10px;
  line-height:1.12;
  min-height:11px;
  margin-top:2px;
}
.license-context-foot{
  min-height:17px;
  gap:9px;
}
.license-context-foot em{font-size:9px}
.license-status{font-size:9px;padding:2px 7px}

@media(max-width:1100px){
  .app-context-cards{grid-template-columns:172px 250px}
}
@media(max-width:900px){
  .topbar.app-context-bar{height:64px;min-height:64px;padding:5px 12px 5px 64px}
  .license-context-card{height:52px;min-height:52px;padding:7px 10px}
}
@media(max-width:560px){
  .topbar.app-context-bar{height:60px;min-height:60px;padding-right:8px}
  .license-context-card{height:48px;min-height:48px}
}

/* 2026-08-24 — User + License Summary card alignment refinement. */
.topbar.app-context-bar{
  height:80px;
  min-height:80px;
  padding:6px 24px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  overflow:visible;
}
.app-context-spacer{display:none}
.app-context-cards{
  display:grid;
  grid-template-columns:202px 304px;
  gap:10px;
  align-items:stretch;
  width:max-content;
  max-width:100%;
  margin-left:auto;
}
.app-context-card,
.license-context-card{
  box-sizing:border-box;
  width:auto;
  min-width:0;
  height:68px;
  min-height:68px;
  padding:8px 12px;
  border-radius:11px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  overflow:hidden;
}
.app-context-card>span,
.license-context-card>span{
  flex:0 0 auto;
  margin:0 0 3px;
  font-size:9px;
  line-height:1.05;
}
.app-context-card>strong,
.license-context-card>strong{
  flex:0 0 auto;
  width:100%;
  min-height:15px;
  margin:0;
  font-size:13px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-context-card>small,
.license-context-card>small{
  flex:0 0 auto;
  width:100%;
  min-height:11px;
  margin:2px 0 0;
  font-size:10px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.license-context-foot{
  flex:0 0 auto;
  width:100%;
  min-height:15px;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  line-height:1;
}
.license-context-foot em{font-size:9px;line-height:1;white-space:nowrap}
.license-status{font-size:9px;line-height:1;padding:2px 7px}

@media(max-width:1100px){
  .app-context-cards{grid-template-columns:180px 268px}
}
@media(max-width:900px){
  .topbar.app-context-bar{height:66px;min-height:66px;padding:6px 12px 6px 64px}
  .app-context-cards{display:block;width:min(320px,100%)}
  .app-context-card{display:none}
  .license-context-card{display:flex;width:100%;height:54px;min-height:54px;padding:7px 10px}
}
@media(max-width:560px){
  .topbar.app-context-bar{height:62px;min-height:62px;padding-right:8px}
  .license-context-card{height:50px;min-height:50px}
  .license-context-card>small{display:none}
  .license-context-foot em{display:none}
}

/* 2026-08-24 — Compact licensed header + tighter global page rhythm. */
body:not(.daily-report-layout) .topbar.app-context-bar{
  height:66px;
  min-height:66px;
  padding:5px 24px;
  align-items:center;
}
body:not(.daily-report-layout) .app-context-cards{
  grid-template-columns:190px 286px;
  gap:8px;
  align-items:center;
}
body:not(.daily-report-layout) .app-context-card,
body:not(.daily-report-layout) .license-context-card{
  height:56px;
  min-height:56px;
  padding:7px 11px;
  border-radius:10px;
}
body:not(.daily-report-layout) .app-context-card>span,
body:not(.daily-report-layout) .license-context-card>span{
  margin-bottom:2px;
  font-size:8px;
}
body:not(.daily-report-layout) .app-context-card>strong,
body:not(.daily-report-layout) .license-context-card>strong{
  min-height:14px;
  font-size:12px;
}
body:not(.daily-report-layout) .app-context-card>small,
body:not(.daily-report-layout) .license-context-card>small{
  min-height:10px;
  margin-top:1px;
  font-size:9px;
}
body:not(.daily-report-layout) .license-context-foot{
  min-height:14px;
  gap:8px;
}
body:not(.daily-report-layout) .license-context-foot em,
body:not(.daily-report-layout) .license-status{
  font-size:8px;
}
body:not(.daily-report-layout) .content{
  padding-top:18px;
  padding-bottom:24px;
}
body:not(.daily-report-layout) .page-head{
  margin-bottom:14px;
}
body:not(.daily-report-layout) .compact-filter-card{
  margin-bottom:10px;
}

@media(max-width:1100px){
  body:not(.daily-report-layout) .app-context-cards{grid-template-columns:172px 254px}
}
@media(max-width:900px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:60px;
    min-height:60px;
    padding:4px 12px 4px 64px;
  }
  body:not(.daily-report-layout) .license-context-card{
    height:50px;
    min-height:50px;
    padding:6px 9px;
  }
  body:not(.daily-report-layout) .content{padding-top:16px}
}
@media(max-width:560px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:56px;
    min-height:56px;
    padding-right:8px;
  }
  body:not(.daily-report-layout) .license-context-card{
    height:46px;
    min-height:46px;
  }
}

/* 2026-08-24 — Proper top summary cards: clearer hierarchy, balanced sizing and no clipped license content. */
body:not(.daily-report-layout) .topbar.app-context-bar{
  height:76px;
  min-height:76px;
  padding:7px 28px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  background:#fff;
  border-bottom:1px solid #e3e9ef;
  overflow:visible;
}
body:not(.daily-report-layout) .app-context-cards{
  display:grid;
  grid-template-columns:210px 342px;
  gap:10px;
  align-items:stretch;
  width:max-content;
  max-width:100%;
  margin-left:auto;
}
body:not(.daily-report-layout) .app-context-card,
body:not(.daily-report-layout) .license-context-card{
  position:relative;
  box-sizing:border-box;
  height:62px;
  min-height:62px;
  padding:8px 12px 8px 14px;
  border:1px solid #d8e2eb;
  border-radius:12px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 2px 7px rgba(15,42,58,.045);
  overflow:hidden;
}
body:not(.daily-report-layout) .app-context-card::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:#2f91b2;
}
body:not(.daily-report-layout) .license-context-card::before{background:#27a45d}
body:not(.daily-report-layout) .app-context-card-title{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 3px;
  min-height:10px;
}
body:not(.daily-report-layout) .app-context-card-title i{
  display:block;
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:#2f91b2;
}
body:not(.daily-report-layout) .license-context-card .app-context-card-title i{background:#27a45d}
body:not(.daily-report-layout) .app-context-card-title span{
  display:block;
  margin:0;
  font-size:8px;
  line-height:1;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#6f8296;
}
body:not(.daily-report-layout) .user-context-card>strong{
  display:block;
  width:100%;
  min-height:15px;
  margin:0;
  font-size:13px;
  line-height:1.16;
  color:#13283a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.daily-report-layout) .user-context-card>small{
  display:block;
  width:100%;
  min-height:11px;
  margin:2px 0 0;
  font-size:9px;
  line-height:1.1;
  color:#64778a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.daily-report-layout) .license-context-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
body:not(.daily-report-layout) .license-context-copy{
  min-width:0;
  flex:1 1 auto;
}
body:not(.daily-report-layout) .license-context-copy strong{
  display:block;
  margin:0;
  font-size:12px;
  line-height:1.15;
  color:#13283a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.daily-report-layout) .license-context-copy small{
  display:block;
  margin:2px 0 0;
  font-size:8.5px;
  line-height:1.05;
  color:#65788b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.daily-report-layout) .license-context-main .license-status{
  flex:0 0 auto;
  margin-top:0;
  padding:3px 8px;
  font-size:8px;
  line-height:1;
  border-radius:999px;
}
body:not(.daily-report-layout) .license-context-foot{
  width:100%;
  min-height:11px;
  margin-top:4px;
  padding-top:4px;
  border-top:1px solid #edf1f4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#75879a;
  line-height:1;
}
body:not(.daily-report-layout) .license-context-foot span,
body:not(.daily-report-layout) .license-context-foot em{
  display:block;
  margin:0;
  font-size:7.5px;
  line-height:1;
  font-style:normal;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.daily-report-layout) .license-context-foot span{max-width:62%}
body:not(.daily-report-layout) .license-context-foot em{max-width:38%;text-align:right}

@media(max-width:1100px){
  body:not(.daily-report-layout) .app-context-cards{grid-template-columns:185px 300px}
}
@media(max-width:900px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:66px;
    min-height:66px;
    padding:5px 12px 5px 64px;
  }
  body:not(.daily-report-layout) .app-context-cards{display:block;width:min(340px,100%)}
  body:not(.daily-report-layout) .user-context-card{display:none}
  body:not(.daily-report-layout) .license-context-card{
    display:block;
    width:100%;
    height:56px;
    min-height:56px;
    padding:7px 10px 7px 13px;
  }
  body:not(.daily-report-layout) .license-context-foot{margin-top:3px;padding-top:3px}
}
@media(max-width:560px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:62px;
    min-height:62px;
    padding-right:8px;
  }
  body:not(.daily-report-layout) .license-context-card{
    height:52px;
    min-height:52px;
  }
  body:not(.daily-report-layout) .license-context-foot span{display:none}
  body:not(.daily-report-layout) .license-context-foot em{max-width:100%}
}

/* 2026-08-24 — Final top summary card fit: keep all license details inside the card without enlarging the header excessively. */
body:not(.daily-report-layout) .topbar.app-context-bar{
  height:78px;
  min-height:78px;
  padding-top:6px;
  padding-bottom:6px;
}
body:not(.daily-report-layout) .app-context-card,
body:not(.daily-report-layout) .license-context-card{
  height:66px;
  min-height:66px;
  padding:7px 12px 7px 14px;
  overflow:hidden;
}
body:not(.daily-report-layout) .app-context-card-title{
  min-height:8px;
  margin-bottom:2px;
}
body:not(.daily-report-layout) .app-context-card-title span{
  font-size:8px;
  line-height:1;
}
body:not(.daily-report-layout) .user-context-card>strong{
  min-height:14px;
  font-size:13px;
  line-height:1.08;
}
body:not(.daily-report-layout) .user-context-card>small{
  min-height:10px;
  margin-top:1px;
  font-size:9px;
  line-height:1;
}
body:not(.daily-report-layout) .license-context-main{
  align-items:center;
  min-height:25px;
  gap:8px;
}
body:not(.daily-report-layout) .license-context-copy strong{
  font-size:12px;
  line-height:1.05;
}
body:not(.daily-report-layout) .license-context-copy small{
  margin-top:1px;
  font-size:8.5px;
  line-height:1;
}
body:not(.daily-report-layout) .license-context-main .license-status{
  margin:0;
  padding:2px 7px;
  font-size:8px;
  line-height:1;
}
body:not(.daily-report-layout) .license-context-foot{
  min-height:9px;
  margin-top:2px;
  padding-top:2px;
  gap:8px;
  border-top:1px solid #edf1f4;
}
body:not(.daily-report-layout) .license-context-foot span,
body:not(.daily-report-layout) .license-context-foot em{
  font-size:7.5px;
  line-height:1;
}
@media(max-width:900px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:68px;
    min-height:68px;
  }
  body:not(.daily-report-layout) .license-context-card{
    height:56px;
    min-height:56px;
    padding:6px 10px 6px 13px;
  }
  body:not(.daily-report-layout) .license-context-main{min-height:22px}
  body:not(.daily-report-layout) .license-context-foot{margin-top:1px;padding-top:1px}
}
@media(max-width:560px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:64px;
    min-height:64px;
  }
  body:not(.daily-report-layout) .license-context-card{
    height:52px;
    min-height:52px;
  }
}

/* 2026-08-24 — Compact top summary card width: fit the user/license context neatly without wasting header space. */
@media(min-width:901px){
  body:not(.daily-report-layout) .app-context-cards{
    grid-template-columns:160px 285px;
    gap:8px;
  }
  body:not(.daily-report-layout) .app-context-card,
  body:not(.daily-report-layout) .license-context-card{
    min-width:0;
    width:auto;
    padding-left:13px;
    padding-right:10px;
  }
  body:not(.daily-report-layout) .license-context-main{
    gap:6px;
  }
  body:not(.daily-report-layout) .license-context-foot{
    gap:6px;
  }
}
@media(min-width:901px) and (max-width:1100px){
  body:not(.daily-report-layout) .app-context-cards{
    grid-template-columns:150px 270px;
  }
}

/* 2026-08-24 — Final desktop summary-card proportions: taller cards, narrower footprint. */
@media(min-width:901px){
  body:not(.daily-report-layout) .topbar.app-context-bar{
    height:88px;
    min-height:88px;
    padding-top:7px;
    padding-bottom:7px;
  }
  body:not(.daily-report-layout) .app-context-cards{
    grid-template-columns:148px 252px;
    gap:9px;
  }
  body:not(.daily-report-layout) .app-context-card,
  body:not(.daily-report-layout) .license-context-card{
    height:74px;
    min-height:74px;
    padding:9px 11px 9px 13px;
    border-radius:11px;
  }
  body:not(.daily-report-layout) .app-context-card::before{
    top:11px;
    bottom:11px;
  }
  body:not(.daily-report-layout) .app-context-card-title{
    margin-bottom:4px;
  }
  body:not(.daily-report-layout) .user-context-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  body:not(.daily-report-layout) .user-context-card>strong{
    font-size:13px;
    line-height:1.12;
  }
  body:not(.daily-report-layout) .user-context-card>small{
    margin-top:3px;
    font-size:9px;
  }
  body:not(.daily-report-layout) .license-context-main{
    min-height:27px;
    gap:5px;
  }
  body:not(.daily-report-layout) .license-context-copy strong{
    font-size:11.5px;
  }
  body:not(.daily-report-layout) .license-context-copy small{
    margin-top:2px;
    font-size:8px;
  }
  body:not(.daily-report-layout) .license-context-main .license-status{
    padding:3px 7px;
    font-size:8px;
  }
  body:not(.daily-report-layout) .license-context-foot{
    margin-top:5px;
    padding-top:5px;
    gap:5px;
  }
  body:not(.daily-report-layout) .license-context-foot span,
  body:not(.daily-report-layout) .license-context-foot em{
    font-size:7px;
  }
  body:not(.daily-report-layout) .license-context-foot span{max-width:56%}
  body:not(.daily-report-layout) .license-context-foot em{max-width:44%}
}
@media(min-width:901px) and (max-width:1100px){
  body:not(.daily-report-layout) .app-context-cards{
    grid-template-columns:140px 238px;
  }
}
