/* v3 layout: hospital blue / pharmacy green, preserving supplied emblem assets. */
:root{--green:#379b61;--dark:#13374a;--muted:#657985;--line:#e0e8ec;--paper:#f5f8fa;--gold:#5ea882;--blue:#1b6c8a}
body{background:var(--paper);color:#183b4c}
.sidebar{background:#12384c}.sidebar nav button.active{background:#216782;color:white}.sidebar nav button:hover{background:#225268}
.brand{border-bottom:1px solid #ffffff25;padding-bottom:20px}.brandheader{padding:12px 18px;background:white;border-bottom:1px solid #e5edf0}
.authscreen{background:radial-gradient(circle at 12% 25%,#e2f3f2 0,transparent 35%),radial-gradient(circle at 95% 85%,#e6f1f7 0,transparent 30%),#f6f9fb}
.authcard{max-width:468px;padding:36px 38px;border:1px solid #e5ecf0;border-radius:20px;box-shadow:0 24px 75px #14445d13}
.authbrand{margin-bottom:26px;padding:0 0 24px;border-bottom:1px solid #e9eff2}
.authcard h1{font-size:29px;letter-spacing:-.8px;color:#143b52;margin-bottom:8px}.authcard p{line-height:1.55}
.authcard input{background:#f8fafb;border:1px solid #d5e1e7;border-radius:10px;min-height:44px}
.authcard .primary{background:#196c89;border-radius:10px;padding:14px;font-weight:700}.authcard .primary:hover{background:#125774}
.authcard label{font-weight:600;color:#29495a}.authbrand .paired-brand-kicker{font-size:18px;font-weight:750;color:#1c6c89;letter-spacing:0}
.authbrand .paired-brand-name strong{font-size:14px;color:#3d9766;letter-spacing:.5px;text-transform:uppercase;margin-top:5px}
.authbrand .paired-brand{grid-template-columns:58px minmax(0,1fr) 58px;gap:11px}.authbrand .brand-icon{width:46px;height:48px;object-fit:contain}
.brandheader .paired-brand-kicker{font-size:17px;color:#1c6c89;font-weight:750}.brandheader .paired-brand-name strong{font-size:12px;color:#368f61;text-transform:uppercase;letter-spacing:1px}
.brandheader .brand-icon{width:38px;height:44px}.brandheader .paired-brand{grid-template-columns:50px minmax(0,auto) 50px;min-height:48px}
.authscreen .paired-brand-kicker{font-size:18px}.authscreen .paired-brand-name strong{font-size:14px}
.password-row{display:flex;position:relative;align-items:center}.password-row input{width:100%;padding-right:66px!important}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:none;color:#186b88;font-size:12px;font-weight:700;padding:8px}
.login-help{font-size:11px;color:#687d88;text-align:center;margin:14px 0 0}.autherror:not(:empty){background:#fff3f2;padding:10px;border-radius:8px}
.content{max-width:1550px;margin:0 auto}.pageheading h1{color:#163e51}.eyebrow{color:#257c94}
.primary{background:#1b728e;color:white}.primary:hover{background:#165b76}.secondary{border-color:#cfdde4}.panel{border:1px solid #e2ebef;background:white;border-radius:14px;box-shadow:0 4px 18px #203f5010}
.sectionheader{display:flex;justify-content:space-between;align-items:center;margin:22px 0 15px;gap:20px}.sectionheader h2{font-size:16px;margin:0}.sectionheader small{font-size:12px;font-weight:400;color:#74848e}.sectionheader span{font-size:12px;color:#718894}
.dashboard-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:22px}.dashboard-stats.compact{grid-template-columns:repeat(4,1fr)}
.metric{border:1px solid #e3ecef;background:#fff;border-radius:14px;padding:17px 16px;min-height:108px;box-shadow:0 4px 16px #15374c0b;display:flex;flex-direction:column;justify-content:space-between;gap:9px}
.metric span{color:#647e8b;font-size:11px;line-height:1.4;font-weight:600}.metric strong{color:#173f53;font-size:24px;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.metric .metricicon{color:#288f9d;font-size:16px;font-weight:700}
.metric.warning strong{color:#bf6c38}.metric.negative strong{color:#c44c53}.metric.good strong{color:#27845e}
.dashboard-two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;margin-bottom:20px}.dashboard-two>article{min-width:0}
.paneltitle button{margin-left:auto}.status-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.status-guide p{margin:0;padding:12px;border:1px solid #e6edef;border-radius:10px;font-size:12px}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;background:#338b58}.dot.low{background:#e8a53f}.dot.out{background:#c1cbd0}.dot.neg{background:#d75b61}
.status{padding:5px 9px;border-radius:6px;font-size:11px;white-space:nowrap;background:#e4f6e9;color:#236f45}.status.low{background:#fff5db;color:#94630b}.status.out{background:#eff3f5;color:#697b84}.status.neg{background:#ffe7e7;color:#ad3541}
.stackform label{display:block;margin:15px 0}.stackform input,.stackform select{margin-top:7px}.inline-search{font-size:11px;font-weight:400;margin-left:auto;min-width:200px}.inline-search input{margin:5px 0}.narrow-panel{max-width:620px}.price-summary{padding:16px;background:#f6fafc;border:1px solid #e4edef;border-radius:12px;margin:15px 0}.price-summary>div,.money-breakdown>div{display:flex;align-items:center;justify-content:space-between;margin:8px 0;gap:8px}.price-summary label{display:flex;align-items:center;justify-content:space-between;gap:8px}.price-summary select{max-width:105px;margin:0}
.pay-config{padding-top:9px}.pay-config h3{font-size:14px;margin:15px 0 8px}.payment-switch{display:flex;gap:15px;flex-wrap:wrap;margin:10px 0}.payment-switch span{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px}.payment-switch input{width:15px;height:15px;min-height:15px;margin:0}.pay-config input{margin:7px 0}.pay-config label{display:block;margin-top:10px}.money-breakdown{border-top:1px solid #e2eaf0;padding-top:12px;margin-top:15px;font-size:12px}.money-breakdown strong{font-size:14px}.checkout{border-top:4px solid #318d67}
.import-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0}.import-table{max-height:300px;overflow:auto;margin-bottom:16px}.import-head input{width:16px;min-height:16px}.checkbox{display:flex;align-items:center;gap:8px}
.alert-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eaf0f3;font-size:12px}.alert-row:last-child{border:0}.alert-row small{display:block;color:#8a9fa9;margin-top:3px}
.tablewrap td,.tablewrap th{vertical-align:middle}.topbar{background:#fff}input:focus,select:focus,textarea:focus{outline:2px solid #65a3b5;outline-offset:1px}
@media(max-width:1250px){.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.dashboard-two{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats.compact{grid-template-columns:repeat(2,1fr)}.authbrand .paired-brand{grid-template-columns:50px minmax(0,1fr) 50px}}
@media(max-width:480px){.dashboard-stats{gap:9px}.metric{padding:13px;min-height:96px}.metric strong{font-size:20px}.authcard{padding:28px 22px}.authbrand .brand-icon{width:38px;height:40px}.authbrand .paired-brand-kicker{font-size:15px}.authbrand .paired-brand-name strong{font-size:11px}.sectionheader{align-items:flex-start;flex-direction:column}.inline-search{min-width:auto}.import-head{align-items:flex-start;flex-direction:column}.status-guide{grid-template-columns:1fr}}
@media print{.brandheader{display:none!important}}
