:root{--ink:#16211f;--muted:#66726f;--line:#dce4e1;--bg:#f3f6f5;--card:#fff;--green:#0e6b52;--green2:#0a513f;--mint:#dff5ec;--amber:#e8a422;--red:#c84d4d;--blue:#3c6f9f;--violet:#7b61a8;--shadow:0 12px 35px rgba(25,55,47,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#fff}.auth-brand{padding:64px clamp(48px,7vw,120px);background:linear-gradient(145deg,#0b3e33 0%,#0d5b48 58%,#14745a 100%);color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;width:430px;height:430px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-160px;bottom:-140px;box-shadow:0 0 0 70px rgba(255,255,255,.04),0 0 0 140px rgba(255,255,255,.025)}.auth-brand h1{font-size:clamp(38px,5vw,67px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 24px;max-width:760px}.auth-brand p{font-size:18px;line-height:1.6;max-width:650px;color:#d6eee6}.auth-benefits{display:flex;gap:12px;flex-wrap:wrap;z-index:1}.auth-benefits span{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);padding:10px 14px;border-radius:999px;font-size:13px}.auth-panel{display:grid;place-items:center;padding:48px}.auth-form{width:min(480px,100%)}.auth-form h2{font-size:36px;letter-spacing:-.03em;margin:8px 0}.auth-form>label,.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;margin-top:18px}.auth-form input,.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--line);border-radius:11px;padding:13px 14px;outline:none;background:#fff;color:var(--ink)}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(14,107,82,.12)}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.two label{margin-top:18px}.eyebrow{font-size:11px!important;letter-spacing:.18em;font-weight:800;color:#74c8ad!important;margin:0}.muted{color:var(--muted)!important;font-size:14px!important}.form-error{color:var(--red);min-height:20px;font-size:13px}.mobile-logo{display:none}.brand-mark{width:42px;height:42px;background:#d6f5e9;color:var(--green2);display:grid;place-items:center;border-radius:12px;font-weight:900;letter-spacing:-.08em}.brand-mark.large{width:58px;height:58px;background:#fff;font-size:18px}.primary,.secondary{border:0;border-radius:10px;padding:11px 16px;font-weight:750}.primary{background:var(--green);color:#fff;box-shadow:0 6px 16px rgba(14,107,82,.18)}.primary:hover{background:var(--green2)}.secondary{background:#edf2f0;color:var(--ink)}.full{width:100%;padding:14px;margin-top:8px}
.app{min-height:100vh;display:grid;grid-template-columns:244px 1fr}.sidebar{background:#102d27;color:#fff;padding:20px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 25px}.brand b{display:block;font-size:16px}.brand small{color:#8fb1a7}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav-link{border:0;background:transparent;color:#a9c1ba;border-radius:9px;padding:11px 12px;text-align:left;display:flex;align-items:center;gap:11px;font-size:14px;width:100%}.nav-link:hover,.nav-link.active{background:#1e493f;color:#fff}.nav-link.active{box-shadow:inset 3px 0 #64d5af}.nav-icon{width:20px;text-align:center}.sidebar-bottom{margin-top:auto}.user-card{border-top:1px solid #2d4a44;margin-top:8px;padding:17px 7px 3px;display:grid;grid-template-columns:34px 1fr 28px;align-items:center;gap:9px}.user-card b,.user-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-card b{font-size:12px}.user-card small{font-size:10px;color:#8fb1a7}.user-card button{border:0;background:none;color:#aac4bc}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#d8f4e9;color:#0e5c49;font-size:11px;font-weight:900}
main{min-width:0}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;position:sticky;top:0;z-index:5}.topbar h2{margin:3px 0;font-size:22px}.breadcrumb{margin:0;color:#8a9693;font-size:11px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:9px 12px}.search input{border:0;outline:0;width:210px}.icon-button{width:39px;height:39px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#53605d}.topbar>#menu-button{display:none;margin-right:12px}.content{padding:26px 30px 50px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:5px 0 18px}.section-head h3{margin:0;font-size:19px}.section-head p{color:var(--muted);margin:5px 0 0;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 3px 12px rgba(22,45,40,.035)}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:27px;margin:12px 0 5px;letter-spacing:-.04em}.stat small{color:var(--muted)}.stat-icon{width:35px;height:35px;border-radius:9px;background:var(--mint);display:grid;place-items:center;color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:1.55fr .85fr;gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 12px rgba(22,45,40,.035);overflow:hidden}.card-head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.card-head h3{font-size:15px;margin:0}.card-body{padding:18px}.empty{padding:60px 25px;text-align:center;color:var(--muted)}.empty .empty-icon{width:56px;height:56px;border-radius:16px;background:#eef4f2;margin:0 auto 14px;display:grid;place-items:center;font-size:23px}.empty h3{color:var(--ink);margin:0 0 7px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#82908c;text-align:left;padding:13px 16px;background:#f8faf9;border-bottom:1px solid var(--line)}.data-table td{padding:14px 16px;border-bottom:1px solid #edf1f0;font-size:13px}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f8fbfa}.id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:var(--green);font-weight:800}.badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf2f0;color:#51605c;font-size:10px;font-weight:800}.badge.green{background:#dff5ec;color:#0b684e}.badge.amber{background:#fff0cf;color:#92630a}.badge.red{background:#fee5e5;color:#a63838}.badge.blue{background:#e2effa;color:#315f89}.badge.violet{background:#eee8f8;color:#66508e}.progress{height:6px;background:#e5ece9;border-radius:999px;overflow:hidden;min-width:90px}.progress span{display:block;height:100%;background:var(--green)}.row-actions{display:flex;gap:4px}.row-actions button{border:0;background:transparent;color:#70807b;padding:6px;border-radius:6px}.row-actions button:hover{background:#e9f0ed;color:var(--green)}.activity{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid #edf1f0}.activity:last-child{border:0}.activity-dot{width:9px;height:9px;border-radius:50%;background:var(--blue);margin-top:5px}.activity-dot.green{background:var(--green)}.activity-dot.amber{background:var(--amber)}.activity p{font-size:12px;margin:0}.activity small{color:var(--muted)}.alert-list{display:grid;gap:9px}.alert{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#fff7e7;border-radius:10px;font-size:12px}.kpi-bars{display:grid;gap:14px}.kpi-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}
dialog{border:0;border-radius:17px;padding:0;width:min(720px,calc(100vw - 30px));box-shadow:0 30px 90px rgba(8,29,23,.25)}dialog::backdrop{background:rgba(7,23,19,.55);backdrop-filter:blur(3px)}#record-form{padding:24px}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{margin:5px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-grid label.wide{grid-column:1/-1}.form-grid textarea{min-height:85px;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.toast{position:fixed;right:24px;bottom:24px;background:#163b32;color:#fff;padding:13px 17px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:none}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.search{display:none}.app{grid-template-columns:210px 1fr}}
@media(max-width:760px){.auth-shell{display:block}.auth-brand{display:none}.auth-panel{min-height:100vh;padding:28px}.mobile-logo{display:flex;gap:10px;align-items:center;color:var(--green);margin-bottom:50px}.two,.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.app{display:block}.sidebar{position:fixed;z-index:20;transform:translateX(-100%);transition:.2s;width:250px}.sidebar.open{transform:none;box-shadow:20px 0 50px rgba(0,0,0,.25)}.topbar>#menu-button{display:block}.topbar{padding:0 14px}.top-actions .primary{font-size:0;width:40px;padding:10px}.top-actions .primary:first-letter{font-size:18px}.content{padding:19px 14px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:14px}.stat strong{font-size:22px}.breadcrumb{display:none}.topbar h2{font-size:18px}}
@media(max-width:420px){.stats{grid-template-columns:1fr}.auth-form h2{font-size:30px}}
