:root{--navy:#112e3f;--teal:#0b8f83;--teal2:#dff4f1;--bg:#f4f7f7;--text:#17313b;--muted:#71838a;--line:#e3ebea;--red:#e45d5d;--yellow:#e2a72e;--green:#229b75;--shadow:0 12px 35px rgba(24,59,65,.09)}*{box-sizing:border-box}body{margin:0;font-family:'Be Vietnam Pro',sans-serif;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login-view{min-height:100vh;display:grid;grid-template-columns:1.25fr 1fr;background:linear-gradient(135deg,#0c3d49,#0b6f69)}.login-brand{padding:10vw;color:#fff;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 25% 10%,rgba(76,211,184,.22),transparent 35%)}.brand-pill{letter-spacing:2px;font-size:12px;color:#9be1d7}.login-brand h1{font-size:48px;line-height:1.22;margin:24px 0 16px}.login-brand h1 span{color:#82d8cd}.login-brand p{font-size:16px;line-height:1.7;max-width:570px;color:#c5d9da}.trust-row{display:flex;gap:26px;margin-top:24px;color:#d8eeee}.login-card{width:min(440px,85%);margin:auto;background:#fff;padding:42px;border-radius:22px;box-shadow:0 25px 70px #002e3255;display:grid;gap:20px}.logo{font-size:21px;font-weight:700;color:var(--navy);display:flex;gap:10px;align-items:center}.logo span{display:grid;place-items:center;background:var(--teal);color:#fff;width:34px;height:34px;border-radius:10px}.login-card h2{font-size:25px;margin:12px 0 4px}.login-card p{margin:0;color:var(--muted)}label{font-weight:600;font-size:13px;display:grid;gap:8px}input,select,textarea{border:1px solid #dbe4e3;border-radius:10px;padding:12px 14px;background:#fff;outline:none;color:var(--text);width:100%}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0b8f8315}.password-wrap{display:flex;position:relative}.password-wrap button{position:absolute;right:8px;top:6px;border:0;background:none;color:var(--muted);padding:7px}.primary,.secondary{border:0;border-radius:10px;padding:11px 16px;font-weight:600;cursor:pointer}.primary{background:var(--teal);color:#fff}.primary:hover{background:#087c72}.secondary{background:#edf3f2;color:var(--text)}.wide{display:flex;justify-content:space-between}.demo-note{background:#f0f8f7;padding:12px;border-radius:10px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.app{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:#fff;border-right:1px solid var(--line);padding:25px 18px;display:flex;flex-direction:column;height:100vh;position:sticky;top:0}.sidebar .logo{padding:0 10px 25px}nav{display:grid;gap:5px}.nav-label{font-size:10px;letter-spacing:1.4px;color:#9caaae;margin:20px 12px 6px}.nav-item{border:0;background:none;color:#60757c;padding:12px 13px;border-radius:9px;text-align:left;display:flex;gap:12px;align-items:center;cursor:pointer;font-weight:500}.nav-item span{font-size:18px;width:20px}.nav-item i{margin-left:auto;background:#fce6e6;color:var(--red);border-radius:10px;padding:2px 7px;font-style:normal;font-size:10px}.nav-item.active{background:var(--teal2);color:#08766e;font-weight:600}.sidebar-help{margin-top:auto;background:#edf8f6;border-radius:13px;padding:15px;display:grid;gap:3px;font-size:12px}.sidebar-help span{background:var(--teal);color:white;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px}.sidebar-help small{color:var(--muted)}main{min-width:0}header{height:80px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:15px;position:sticky;top:0;z-index:2}header h2{font-size:20px;margin:0 0 4px}header p{font-size:12px;color:var(--muted);margin:0}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.icon-btn{border:1px solid var(--line);background:#fff;width:38px;height:38px;border-radius:10px;color:var(--text);cursor:pointer}.notification{position:relative}.notification i{position:absolute;width:7px;height:7px;background:var(--red);right:8px;top:7px;border-radius:50%;border:1px solid white}.user-menu{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:18px;margin-left:5px}.user-menu div:nth-child(2){display:grid;gap:2px}.user-menu small{color:var(--muted);font-size:10px}.user-menu button{border:0;background:none}.avatar{width:38px;height:38px;background:var(--teal2);color:var(--teal);border-radius:10px;display:grid;place-items:center;font-weight:700}.menu-btn{display:none}.content{padding:28px 30px;max-width:1500px;margin:auto}.welcome{background:linear-gradient(110deg,#0b716e,#159887);border-radius:16px;color:white;padding:25px 28px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow)}.welcome h2{margin:0 0 8px;font-size:22px}.welcome p{margin:0;color:#c7eeea}.welcome .date-chip{background:#ffffff1f;padding:12px 16px;border:1px solid #ffffff32;border-radius:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px #193f4510}.stat-card{padding:18px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-icon{width:35px;height:35px;border-radius:9px;background:#e4f4f1;color:var(--teal);display:grid;place-items:center;font-size:17px}.stat-card h3{font-size:25px;margin:14px 0 6px}.stat-card small{color:var(--muted)}.trend{color:var(--green)!important}.dashboard-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px}.panel{padding:20px}.panel-head,.page-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.panel h3{font-size:15px;margin:0}.panel-head button.link{border:0;background:none;color:var(--teal);font-weight:600;cursor:pointer;font-size:12px}.activity-list{display:grid;gap:18px}.activity{display:grid;grid-template-columns:35px 1fr auto;gap:12px;align-items:center}.activity .dot-icon{width:34px;height:34px;background:#eef5f4;border-radius:9px;display:grid;place-items:center}.activity p{margin:0 0 4px;font-size:12px}.activity small{color:var(--muted);font-size:10px}.activity time{color:var(--muted);font-size:10px}.alert-list{display:grid;gap:10px}.alert{padding:12px;border-radius:10px;display:grid;grid-template-columns:8px 1fr;gap:10px;background:#fff7e7}.alert.red{background:#fff0ef}.alert-dot{width:8px;height:8px;border-radius:50%;background:var(--yellow);margin-top:5px}.alert.red .alert-dot{background:var(--red)}.alert p{font-size:11px;margin:0}.alert small{font-size:9px;color:var(--muted)}.page-top{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.page-top h2{margin:0 0 6px;font-size:23px}.page-top p{margin:0;color:var(--muted)}.btn-row{display:flex;gap:8px}.filters{display:flex;gap:10px;margin-bottom:16px}.search{max-width:330px}.filter-select{max-width:190px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:800px}.data-table th{text-align:left;color:#809096;font-size:10px;letter-spacing:.7px;padding:12px;border-bottom:1px solid var(--line);background:#f8faf9}.data-table td{padding:14px 12px;border-bottom:1px solid #edf1f1;font-size:12px}.data-table tr:last-child td{border:0}.item-name{display:flex;align-items:center;gap:10px}.item-avatar{width:35px;height:35px;background:#edf5f4;border-radius:8px;display:grid;place-items:center;color:var(--teal)}.item-name b{display:block;margin-bottom:3px}.item-name small{color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 9px;font-size:10px;font-weight:600}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.green{background:#e6f6ef;color:#218866}.red{background:#fdeaea;color:#d44e4e}.yellow{background:#fff4db;color:#b88719}.gray{background:#edf1f1;color:#6f8085}.blue{background:#e8f3fa;color:#3782a9}.progress{width:85px;height:6px;background:#edf1f1;border-radius:5px;overflow:hidden}.progress i{display:block;height:100%;background:var(--teal);border-radius:5px}.progress.low i{background:var(--red)}.table-action{border:0;background:none;color:var(--teal);font-weight:700;cursor:pointer}.temp-hero{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;margin-bottom:18px}.thermo{background:linear-gradient(120deg,#0c716c,#15998c);color:#fff;border-radius:15px;padding:25px;display:flex;justify-content:space-between;align-items:center}.thermo .degree{font-size:48px;font-weight:600}.thermo p{color:#c7efeb}.range{font-size:12px;background:#ffffff1f;border-radius:9px;padding:10px 14px}.chart{height:230px;display:flex;align-items:flex-end;gap:10px;padding:25px 10px 8px;border-bottom:1px solid var(--line);position:relative}.bar{flex:1;background:linear-gradient(#61cbbf,#ccece8);border-radius:5px 5px 0 0;min-width:18px;position:relative}.bar:hover:after{content:attr(data-temp)'°C';position:absolute;top:-28px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:4px 6px;border-radius:4px;font-size:9px}.chart-labels{display:flex;justify-content:space-between;padding:8px 10px;color:var(--muted);font-size:9px}.report-grid,.user-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.report-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.report-card .report-icon{width:44px;height:44px;border-radius:11px;background:var(--teal2);color:var(--teal);display:grid;place-items:center;font-size:20px}.report-card h3{margin:18px 0 7px}.report-card p{font-size:11px;color:var(--muted);line-height:1.6;min-height:36px}.report-card .btn-row{margin-top:18px}.report-card button{flex:1}.user-card{background:white;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;gap:14px;align-items:center}.user-card .avatar{width:48px;height:48px}.user-card h3{font-size:13px;margin:0 0 5px}.user-card p{font-size:10px;color:var(--muted);margin:0 0 5px}dialog{border:0;border-radius:16px;padding:0;width:min(580px,92vw);box-shadow:0 30px 80px #183c4850}dialog::backdrop{background:#102e3775;backdrop-filter:blur(2px)}dialog form{padding:23px}.modal-head{display:flex;justify-content:space-between}.modal-head h3{margin:0 0 5px}.modal-head p{margin:0;color:var(--muted);font-size:11px}.close{border:0;background:#f0f4f4;width:32px;height:32px;border-radius:8px;font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:18px}.toast{position:fixed;right:25px;top:25px;background:var(--navy);color:white;padding:13px 18px;border-radius:10px;z-index:99;opacity:0;transform:translateY(-15px);transition:.25s;pointer-events:none;box-shadow:var(--shadow)}.toast.show{opacity:1;transform:none}@media(max-width:900px){.stats{grid-template-columns:1fr 1fr}.dashboard-grid,.temp-hero{grid-template-columns:1fr}.report-grid,.user-grid{grid-template-columns:1fr 1fr}.login-view{grid-template-columns:1fr}.login-brand{display:none}.app{grid-template-columns:1fr}.sidebar{position:fixed;z-index:5;left:-260px;transition:.25s;width:245px}.sidebar.open{left:0;box-shadow:20px 0 50px #183c4833}.menu-btn{display:block}}@media(max-width:600px){.content{padding:18px}.stats,.report-grid,.user-grid{grid-template-columns:1fr}.header-actions>.icon-btn{display:none}.user-menu div:nth-child(2){display:none}.page-top{align-items:flex-start;gap:14px;flex-direction:column}.filters{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.welcome{align-items:flex-start;gap:20px;flex-direction:column}.login-card{padding:28px}.btn-row{flex-wrap:wrap}}@media print{.sidebar,header,.page-actions,.filters,.btn-row,.toast{display:none!important}.app{display:block}.content{padding:0}.panel,.report-card{box-shadow:none}body{background:#fff}}
/* Use a static dialog overlay to avoid Chromium/Edge GPU flicker. */
dialog::backdrop{background:rgba(16,46,55,.58)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
