/* HealthcarePro Enterprise Design System — V15 */
:root{--navy:#10263f;--navy-deep:#0b1b2f;--brand-red:#e53935;--brand-red-hover:#c62828;--blue:#315f92;--ink:#1c2c40;--muted:#66778c;--line:#e3eaf2;--bg:#f4f7fb;--white:#fff;--success:#168a75;--warning:#d99a28;--shadow:0 8px 28px rgba(16,38,63,.055)}
html{scroll-behavior:smooth}body.enterprise-shell{font-family:Inter,'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}body.enterprise-shell a{transition:color .15s,background .15s,box-shadow .15s}
.enterprise-sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--navy-deep);color:#dce5ef;display:flex;flex-direction:column;z-index:100;box-shadow:6px 0 28px #0b1b2f12;overflow-y:auto}.enterprise-brand{display:flex!important;flex-direction:column;align-items:center;justify-content:center;padding:25px 16px 22px;text-decoration:none!important;border-bottom:1px solid #ffffff18;min-height:154px}.brand-logo-wrap{background:white;border-radius:12px;padding:9px 11px;width:200px;height:75px;display:flex;align-items:center;justify-content:center}.brand-logo-wrap img{max-width:100%;max-height:100%;object-fit:contain}.brand-caption{font-size:11px;font-weight:800;letter-spacing:2.8px;color:#fff;margin-top:12px;text-align:center}.brand-caption small{display:block;font-weight:400;letter-spacing:.4px;color:#a9bdd1;font-size:10px;margin-top:3px}.sidebar-group-label{padding:23px 24px 9px;color:#8196ac;font-size:10px;font-weight:800;letter-spacing:1.7px}.enterprise-nav{display:flex;flex-direction:column;gap:3px;padding:0 12px}.enterprise-nav a{display:flex;align-items:center;gap:13px;color:#c6d3e2!important;text-decoration:none!important;border-radius:9px;padding:11px 14px;font-weight:570;line-height:1.2;font-size:13px}.enterprise-nav a:hover,.enterprise-nav a.active{color:#fff!important;background:#ffffff14}.enterprise-nav a.active{border-left:3px solid var(--brand-red);background:#ffffff1b;padding-left:11px}.enterprise-nav a span{flex:1}.sidebar-bottom{margin-top:auto;padding:20px 20px;color:#a9bdd1;border-top:1px solid #ffffff18;font-size:11px}.secure-dot{display:inline-block;width:7px;height:7px;background:#30bfa0;border-radius:50%;margin-right:5px}.build-version{float:right;color:#dce5ef}
.enterprise-content{margin-left:252px;min-height:100vh;display:flex;flex-direction:column}.enterprise-topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px;position:sticky;top:0;z-index:80}.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px}.topbar-heading{font-weight:750;font-size:14px;color:var(--navy)}.user-avatar{width:34px;height:34px;border-radius:10px;background:#fbe7e6;color:#bd2c28;display:flex;align-items:center;justify-content:center;font-weight:800}.user-name{font-size:12px;font-weight:650}.signout-button{background:#f5f7fa;border:1px solid var(--line);color:var(--ink);border-radius:8px;padding:8px 12px;cursor:pointer;font-weight:650}.signout-button:hover{background:#e9eef5}.menu-toggle{display:none;background:none;border:0;font-size:21px;color:var(--navy);cursor:pointer}
.enterprise-content main{width:100%;max-width:1500px;margin:0 auto;min-height:calc(100vh - 140px);padding:35px 36px 42px}.enterprise-content footer{margin-top:auto;padding:20px 30px;color:#8390a0;border-top:1px solid var(--line);background:#fff;font-size:11px}.enterprise-content footer span{margin:0 8px}
.heading{margin-bottom:26px}.heading h1{font-size:30px;letter-spacing:-.9px;font-weight:780;color:var(--navy);line-height:1.22}.heading .muted{font-size:13px}.eyebrow{color:var(--brand-red);font-size:10px;font-weight:850;letter-spacing:1.8px}
h2{color:var(--navy);font-weight:740}.metric,.panel,.card{background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.metric{padding:21px 23px;position:relative;overflow:hidden}.metric:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--brand-red),#f1b5b3)}.metric span{font-size:12px;color:var(--muted);font-weight:600}.metric strong{font-size:25px;letter-spacing:-.6px;color:var(--navy);font-variant-numeric:tabular-nums}.cards{gap:16px;margin:20px 0 25px}.panel{padding:25px;margin:22px 0}.panel-head{margin-bottom:12px}.panel-head h2{font-size:17px}.panel-head a{font-size:12px;font-weight:700}table{border-collapse:separate;border-spacing:0;width:100%}th{background:#f8fafc;font-size:10px;color:#6b7b8d;letter-spacing:1px;padding:14px 13px}td{padding:14px 13px;font-size:13px;border-bottom:1px solid #edf1f5}tbody tr:hover td{background:#fafcfe}td a,.panel a,.quick a{color:#245a88}.pill{font-weight:750;font-size:10px;padding:6px 10px}.pill.approved{background:#e6f6f0;color:#13785d}.pill.pending{background:#fff3da;color:#916014}.pill.rejected,.pill.cancelled{background:#ffebeb;color:#b82e2a}
.primary,.button{background:var(--brand-red);border-radius:9px;padding:11px 17px;font-weight:750;box-shadow:0 4px 10px #e5393517;color:#fff!important}.primary:hover,.button:hover{background:var(--brand-red-hover);color:white!important}.form input,.form select,.form textarea,.search input,.search select,.actions input,.login input{border:1px solid #d5dfe9;border-radius:9px;padding:12px 13px;background:#fff;min-height:42px;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}.form input:focus,.form select:focus,.form textarea:focus,.search input:focus,.login input:focus{border-color:#6e9bc2;box-shadow:0 0 0 3px #315f921a}.form label{color:#35485e;font-size:12px;font-weight:750}.line-form{border-radius:12px;background:#fafcff;padding:17px}.message{border-radius:10px}.quick{gap:12px}.quick a{border:1px solid #d9e2ec;background:#fff;border-radius:8px;padding:10px 14px;font-weight:650;font-size:12px}.quick a:hover{background:#f0f5fa}.login{max-width:450px;padding:38px;box-shadow:0 20px 60px #10263f12}.login h1{color:var(--navy)}.guest-shell{background:radial-gradient(circle at 90% 10%,#fcebea 0,transparent 35%),#f4f7fb}.guest-shell .enterprise-content{margin-left:0}.guest-header{display:flex;align-items:center;justify-content:space-between;padding:14px max(5vw,24px);background:#fff;border-bottom:1px solid var(--line)}.guest-header img{height:45px;max-width:220px;object-fit:contain}.guest-header span{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.6px}.guest-content main{max-width:950px}
@media(max-width:1120px){.enterprise-sidebar{width:220px}.enterprise-content{margin-left:220px}.enterprise-topbar{padding:0 23px}.enterprise-content main{padding:26px 22px}.brand-logo-wrap{width:180px}}
@media(max-width:850px){.enterprise-sidebar{transform:translateX(-105%);transition:transform .2s;width:252px}.enterprise-sidebar.is-open{transform:translateX(0)}.enterprise-content{margin-left:0}.menu-toggle{display:block}.enterprise-topbar{height:65px;padding:0 16px}.enterprise-content main{padding:22px 15px}.user-name{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.heading h1{font-size:25px}}
@media(max-width:530px){.cards{grid-template-columns:1fr}.topbar-heading{font-size:12px}.enterprise-content main{padding:19px 12px}.panel{padding:16px}.user-avatar{display:none}.guest-header img{height:34px}.guest-header span{font-size:10px}}
@media print{.enterprise-sidebar,.enterprise-topbar,.enterprise-content footer{display:none!important}.enterprise-content{margin:0}.enterprise-content main{padding:0}.panel,.metric{box-shadow:none}}

/* V17 — Enterprise data-entry and audit workspace */
.enterprise-form{max-width:1200px;padding:30px 34px}.section-header{display:flex;align-items:center;gap:14px;margin:10px 0 22px;padding-bottom:16px;border-bottom:1px solid var(--line)}.section-header h2{font-size:18px;margin:0}.section-header p{margin:3px 0 0}.step-number{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:#fce9e8;color:#b62d2b;border-radius:12px;font-weight:850}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin-bottom:30px}.field-grid>p{min-width:0;margin:0;display:flex;flex-direction:column;gap:6px}.field-grid>p:has(textarea),.field-grid>p:has(input[type=file]){grid-column:1/-1}.field-grid input:not([type=checkbox]),.field-grid select,.field-grid textarea{width:100%;max-width:100%;box-sizing:border-box}.field-grid textarea{min-height:95px}.field-grid .helptext{font-size:11px;color:var(--muted);font-weight:400}.field-grid ul.errorlist,.invoice-line ul.errorlist{color:#b32725;font-size:12px;margin:2px 0;padding-left:15px}.form-actions{display:flex;gap:14px;align-items:center;padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}.secondary-action{border:1px solid #d5dfe9;border-radius:9px;padding:11px 18px;color:var(--navy)!important;text-decoration:none;background:#f7f9fc;font-weight:700}.invoice-enterprise #invoice-lines{display:grid;gap:16px}.invoice-enterprise .invoice-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;border:1px solid #e0e9f2;background:#fbfcff;padding:22px}.invoice-enterprise .invoice-line>p{margin:0;min-width:0;display:flex;flex-direction:column;gap:5px}.invoice-enterprise .invoice-line input,.invoice-enterprise .invoice-line select,.invoice-enterprise .invoice-line textarea{width:100%;max-width:100%;box-sizing:border-box}.invoice-enterprise .invoice-line .remove-line{justify-self:start;align-self:end}.audit-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.audit-toolbar h2{margin:0}.audit-toolbar p{margin:3px 0 0}.audit-buttons{display:flex;gap:10px;flex-wrap:wrap}.audit-table{overflow-x:auto}.audit-table table{min-width:790px}@media(max-width:850px){.field-grid{grid-template-columns:1fr}.enterprise-form{padding:20px}.invoice-enterprise .invoice-line{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-toolbar{flex-direction:column;align-items:flex-start}}@media(max-width:530px){.invoice-enterprise .invoice-line{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}}
