:root{color-scheme:light;--primary:#176b52;--primary-dark:#0e4f3c;--primary-light:#eaf6f1;--accent:#d78a28;--danger:#c23c3c;--danger-light:#fff0f0;--text-dark:#17211d;--text-muted:#66736d;--border:#dfe7e3;--bg:#f5f8f6;--white:#fff;--radius:12px;--shadow:0 8px 28px rgba(26,55,44,.07)}
html{background:var(--bg)}body{min-width:320px;background:var(--bg);color:var(--text-dark);font-size:14px;line-height:1.45}button,input,select,textarea{font:inherit}:focus-visible{outline:3px solid rgba(23,107,82,.22);outline-offset:2px}.sidebar-nav a[href="sms.php"]:after{content:'OFF';float:right;padding:2px 6px;border-radius:20px;background:#fff4e4;color:#9a5c08;font-size:9px}
.app-shell{min-height:100dvh}.sidebar{width:264px;background:#fff;color:var(--text-dark);border-right:1px solid var(--border);box-shadow:8px 0 28px rgba(23,53,42,.025);z-index:20}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:24px 20px 18px!important;border-bottom:0}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#1f7b60,#11533f);font-weight:800;box-shadow:0 8px 18px rgba(23,107,82,.2)}.brand-copy{min-width:0;display:grid}.brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.brand-copy span{color:var(--text-muted);font-size:11px}.sidebar-nav{gap:2px;padding:4px 12px 18px;scrollbar-width:thin}.sidebar-section-label{color:#8a9691;padding:18px 10px 7px;font-size:10px;letter-spacing:.12em}.sidebar-nav a{position:relative;color:#46524d;border:0;border-radius:10px;padding:10px 12px;font-size:13.5px;font-weight:550}.sidebar-nav a:hover{color:var(--primary-dark);background:#f3f8f5}.sidebar-nav a.active{color:var(--primary-dark);background:var(--primary-light);border:0;font-weight:700}.sidebar-nav a.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;background:var(--primary);border-radius:4px}.nav-status{float:right;margin-top:1px;padding:2px 6px;border-radius:20px;background:#fff4e4;color:#9a5c08;font-size:9px}.sidebar-footer{padding:14px 16px 18px;border-top:1px solid var(--border);background:#fbfdfc}.sidebar-user{margin:0 0 10px}.sidebar-user strong{color:var(--text-dark)}.sidebar-user span{color:var(--text-muted)}.btn-logout{border:1px solid var(--border);background:#fff;color:#4f5c56;font-weight:650}.btn-logout:hover{color:var(--danger);border-color:#efcccc;background:#fff7f7}
.main-content{background:var(--bg)}.topbar{min-height:76px;justify-content:space-between;padding:14px 28px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);position:sticky;top:0;z-index:15}.topbar-title{min-width:0}.topbar h2{font-size:20px;letter-spacing:-.025em}.topbar-title p{margin:2px 0 0;color:var(--text-muted);font-size:12px}.topbar-user{display:flex;align-items:center;gap:10px;padding:7px 10px 7px 8px;border:1px solid var(--border);background:#fff;border-radius:12px}.user-avatar{width:32px;height:32px;display:grid;place-items:center;color:var(--primary-dark);background:var(--primary-light);border-radius:9px;font-weight:800}.topbar-user-copy{display:grid;line-height:1.2}.topbar-user-copy strong{font-size:12px}.topbar-user-copy span{color:var(--text-muted);font-size:10px}.hamburger{width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text-dark)}.page-content{width:100%;max-width:1580px;margin:0 auto;padding:26px 30px 44px}
.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 22px}.page-intro h1{margin:0;font-size:clamp(24px,3vw,34px);letter-spacing:-.04em;line-height:1.1}.page-intro p{max-width:680px;margin:7px 0 0;color:var(--text-muted)}.quick-actions{display:flex;gap:8px;flex-wrap:wrap}.system-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 18px;margin-bottom:18px;border:1px solid #f0d6ac;border-radius:14px;background:#fffaf1;color:#6d4a16}.system-banner strong{display:block}.system-banner span{font-size:12px}.status-dot{width:9px;height:9px;display:inline-block;margin-right:7px;border-radius:50%;background:#d88a28;box-shadow:0 0 0 4px rgba(216,138,40,.12)}
.stats-grid{grid-template-columns:repeat(5,minmax(170px,1fr));gap:14px}.stat-card{min-height:126px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--border);border-left:1px solid var(--border);border-radius:18px;box-shadow:0 2px 10px rgba(26,55,44,.05);padding:18px}.stat-card:before{content:'';width:34px;height:5px;border-radius:6px;background:var(--primary)}.stat-card.accent:before{background:var(--accent)}.stat-card.danger:before{background:var(--danger)}.stat-card .label,.stat-label{color:var(--text-muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.stat-card .value,.stat-value{font-size:clamp(19px,2vw,26px);letter-spacing:-.035em}.card{border:1px solid var(--border);border-radius:18px;box-shadow:0 2px 10px rgba(26,55,44,.05);padding:20px}.card-header{min-height:38px;margin-bottom:18px}.card-header h3{font-size:15px}.card-subtitle{color:var(--text-muted);font-size:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:18px}.checklist{display:grid;gap:10px}.check-item{display:flex;align-items:center;gap:11px;padding:11px;border-radius:11px;background:#f7faf8}.check-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--primary-light);color:var(--primary);font-weight:800}.check-item strong{display:block;font-size:12px}.check-item span{color:var(--text-muted);font-size:11px}
.btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:8px 14px;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--primary);box-shadow:0 5px 12px rgba(23,107,82,.14)}.btn-secondary{background:#fff;border-color:var(--border)}.btn-danger{background:#fff;color:var(--danger);border-color:#edcaca}.icon-btn{width:34px;height:34px;border:1px solid var(--border);background:#fff;border-radius:9px}
input,select,textarea,.form-group input,.form-group select,.form-group textarea,.filter-row input,.filter-row select{min-height:42px;padding:9px 12px;border:1px solid #d7e1dc;border-radius:10px;color:var(--text-dark);background:#fff}input:hover,select:hover,textarea:hover{border-color:#b9cbc3}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(23,107,82,.09);outline:none}.form-group label{font-size:12px}.filter-row{padding:12px;border:1px solid var(--border);border-radius:14px;background:#fbfdfc}.table-wrap{border:1px solid var(--border);border-radius:13px;background:#fff}table{font-size:13px}table th{padding:11px 13px;background:#f5f8f6;color:#59665f;font-size:10px;letter-spacing:.07em;border-bottom-color:var(--border)}table td{padding:12px 13px}table tbody tr:last-child td{border-bottom:0}table tbody tr:hover{background:#f8fbf9}.badge{padding:4px 9px;border:1px solid transparent;font-size:10px}.empty-state{min-height:120px}.modal-overlay{background:rgba(20,35,29,.34);backdrop-filter:blur(3px)}.modal-box{border:1px solid var(--border);border-radius:18px;box-shadow:0 24px 80px rgba(17,44,33,.18)}.alert{border:1px solid transparent;border-radius:11px}.login-body{padding:24px;background:#f3f7f5}.login-card{max-width:430px;border:1px solid var(--border);border-radius:22px;box-shadow:0 24px 70px rgba(23,55,43,.12)}.login-form select{width:100%}.ag-theme-alpine{--ag-font-family:inherit;--ag-font-size:12px;--ag-border-color:var(--border);--ag-header-background-color:#f4f8f6;--ag-row-hover-color:#f6faf8;--ag-selected-row-background-color:#eaf6f1}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:900px){.sidebar{box-shadow:18px 0 50px rgba(20,48,37,.14)}.topbar{padding:12px 18px}.topbar-user{display:none}.page-content{padding:20px 16px 36px}.page-intro{align-items:flex-start;flex-direction:column}}@media(max-width:640px){.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{min-height:112px;padding:14px}.card{padding:15px;border-radius:14px}.form-grid{grid-template-columns:1fr}.filter-row>*{width:100%}.search-input{min-width:0}}@media(max-width:420px){.stats-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
