:root{--navy:#1d2f7a;--navy2:#15245e;--blue:#2f4fb3;--orange:#f28c14;--orange2:#ffad39;--ink:#162033;--muted:#6b7280;--line:#e5eaf2;--soft:#f5f7fb;--white:#fff;--green:#16a36a;--red:#dc3c4d;--shadow:0 18px 45px rgba(30,47,122,.10)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#f4f7fb}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,#172766 0%,#101d50 100%);color:#fff;z-index:30;display:flex;flex-direction:column}.brand{min-height:92px;padding:18px 16px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:12px}.brand-logo{width:56px;height:56px;border-radius:17px;background:#fff;display:grid;place-items:center;box-shadow:0 12px 30px rgba(0,0,0,.18);flex:0 0 auto;overflow:hidden}.brand-logo img{width:50px;height:50px;object-fit:contain}.brand strong{font-size:21px;letter-spacing:-.02em}.brand strong span{color:var(--orange2)}.brand small{display:block;margin-top:4px;color:#cbd6ff;font-size:11px;line-height:1.35}.menu{padding:12px;overflow:auto;display:flex;flex-direction:column;flex:1}.menu-label{padding:16px 10px 7px;color:#8497d7;font-weight:800;font-size:10px;letter-spacing:.14em}.menu a{min-height:48px;border-radius:13px;padding:9px 10px;display:flex;align-items:center;gap:10px;color:#dde5ff;margin:2px 0}.menu a:hover{background:rgba(255,255,255,.07)}.menu a.active{background:linear-gradient(135deg,#3556c4,#4a69d4);box-shadow:0 10px 25px rgba(0,0,0,.18);color:#fff}.menu a i{width:29px;height:29px;border-radius:9px;background:rgba(255,255,255,.09);display:grid;place-items:center;font-style:normal;flex:0 0 auto}.menu a span{font-weight:800;font-size:13px}.menu a small{display:block;font-weight:500;color:#9fb0e9;font-size:10px;margin-top:3px}.menu a.active small{color:#e8ecff}.menu-spacer{flex:1;min-height:14px}.menu a.danger{color:#ffbcc3}.main{margin-left:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:14px;position:sticky;top:0;z-index:20}.hamburger{display:none;border:0;background:#eef2ff;color:var(--navy);width:42px;height:42px;border-radius:12px;font-size:20px}.topbar-title{flex:1;min-width:0}.topbar-title h1{font-size:19px;margin:0;color:var(--navy2)}.topbar-title p{margin:4px 0 0;color:#7b8495;font-size:11px}.userbox{text-align:right}.userbox strong{display:block;font-size:13px}.userbox small{color:var(--muted);font-size:11px}.content{padding:24px;flex:1;min-width:0}.footer{text-align:center;padding:6px 24px 22px;color:#9299aa;font-size:11px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.page-head h2{margin:0 0 5px;color:var(--navy2);font-size:25px;letter-spacing:-.03em}.page-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 9px 26px rgba(26,42,97,.045);overflow:hidden}.card.pad{padding:20px}.card h3{margin:0 0 15px;color:var(--navy2)}.card-head{padding:18px 20px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:14px}.card-head h3{margin:0;font-size:16px}.card-head p{margin:4px 0 0;font-size:11px;color:var(--muted)}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-grid.compact .stat-card{min-height:112px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 9px 26px rgba(26,42,97,.04);position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-22px;top:-28px;width:80px;height:80px;border-radius:50%;background:#edf1ff}.stat-card.orange:after{background:#fff0dd}.stat-card span{display:block;color:#687287;font-weight:700;font-size:11px}.stat-card strong{display:block;margin-top:8px;font-size:27px;color:var(--navy);position:relative;z-index:1}.stat-card.orange strong{color:#d56c00}.stat-card small{display:block;margin-top:4px;color:#9aa1af;font-size:10px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:16px;margin-bottom:16px}.dashboard-grid.lower{grid-template-columns:1fr 1fr}.map{height:430px;background:#eef2f7}.chart-card .chart-box{height:350px}.chart-box{height:290px;padding:18px}.chart-box.bar{height:275px}.map-popup{max-width:220px}.map-popup p{margin:7px 0;font-size:12px}.map-popup img{width:100%;max-height:120px;object-fit:cover;border-radius:8px}.activity-list{padding:8px 18px 15px;max-height:320px;overflow:auto}.activity-list.history{max-height:700px}.activity-list.details{max-height:none}.activity-row{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f4}.activity-row:last-child{border-bottom:0}.activity-row img{width:64px;height:64px;object-fit:cover;border-radius:13px;background:#eef1f5;flex:0 0 auto}.activity-row>div{min-width:0}.activity-row strong{display:block;font-size:12px}.activity-row small{display:block;color:#80899a;font-size:10px;margin-top:3px}.activity-row p{margin:5px 0 0;color:#525d70;font-size:11px;line-height:1.45}.btn{border:0;border-radius:12px;padding:11px 15px;font-weight:800;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--navy),#3c5bc1);color:#fff;box-shadow:0 9px 20px rgba(29,47,122,.19)}.btn.light{background:#f2f4f8;color:#3d4758;border:1px solid #e5e8ef}.btn.red{background:#fff0f2;color:#c72c3e;border:1px solid #ffd6dc}.btn.orange{background:#fff2df;color:#b86200;border:1px solid #ffd9a2}.btn.green{background:#e9fbf3;color:#0f8c59;border:1px solid #bcefd8}.btn.sm{padding:8px 10px;border-radius:9px;font-size:10px}.btn.full{width:100%;min-height:44px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#f0f2f7;color:#5c6575;font-weight:800;font-size:10px;white-space:nowrap}.badge.green{background:#e9faf2;color:#0a8b55}.badge.orange{background:#fff1de;color:#b55d00}.badge.red{background:#ffedef;color:#c52c3d}.badge.blue{background:#edf1ff;color:#2948aa}.badge.gray{background:#f1f3f7;color:#606a79}.field{margin-bottom:15px}.field label{display:block;margin-bottom:6px;color:#4b5565;font-size:11px;font-weight:800}.input,select,textarea{width:100%;border:1px solid #d9dfe9;border-radius:12px;background:#fff;padding:11px 12px;color:#182235;outline:none;min-height:43px}.input:focus,select:focus,textarea:focus{border-color:#8498e9;box-shadow:0 0 0 4px rgba(47,79,179,.08)}textarea.input{resize:vertical}.form-grid{display:grid;gap:0 14px}.form-grid.two{grid-template-columns:1fr 1fr}.full-row{grid-column:1/-1}.actions,.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions{justify-content:flex-end;margin-top:8px}.inline-actions form{margin:0}.alert{margin:14px 24px 0;border-radius:13px;padding:12px 14px;font-size:12px}.alert.success{background:#ecfbf4;border:1px solid #bdeed8;color:#08764b}.alert.error{background:#fff0f2;border:1px solid #ffd0d6;color:#ae2032}.empty{padding:30px;text-align:center;color:#9aa1af;font-size:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th{padding:12px 14px;background:#f8f9fc;color:#788193;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.table td{padding:13px 14px;border-top:1px solid #edf0f4;font-size:11px;vertical-align:top}.table td strong{font-size:12px}.table td small{color:#7e8797}.filter-card{margin-bottom:16px}.filters{display:flex;align-items:end;gap:10px}.filters>.input{max-width:440px}.report-filter{display:grid;grid-template-columns:170px 150px 260px minmax(220px,1fr) auto}.report-filter .field{margin:0}.grow{min-width:0}.tabs{display:flex;gap:8px;margin-bottom:15px;overflow:auto}.tabs a{padding:9px 12px;border-radius:11px;background:#fff;border:1px solid var(--line);font-size:11px;font-weight:800;white-space:nowrap}.tabs a.active{background:var(--navy);color:#fff;border-color:var(--navy)}.tabs b{margin-left:5px}.activity-form-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;align-items:start}.form-title{display:flex;gap:10px;align-items:center;margin-bottom:18px}.form-title>span{width:42px;height:42px;border-radius:13px;background:#eef2ff;display:grid;place-items:center}.form-title h3{margin:0 0 4px}.form-title p{margin:0;color:#7f8797;font-size:10px}.camera-btn{width:100%;border:2px dashed #9aa9dc;background:#f8f9ff;color:var(--navy);border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.camera-btn span{font-size:28px}.camera-btn strong{font-size:13px}.camera-btn small{color:#7985aa;font-size:10px}.location-state{margin:10px 0;padding:10px 12px;border-radius:10px;background:#f5f6f8;color:#7a8290;font-size:10px}.location-state.ok{background:#eaf9f2;color:#0b8051}.location-state.loading{background:#eef2ff;color:#3652ae}.location-state.error{background:#fff0f2;color:#bd2c3e}.photo-preview{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px;margin-bottom:10px}.photo-preview img{width:92px;height:78px;object-fit:cover;border-radius:10px}.photo-preview strong,.photo-preview small{display:block}.photo-preview small{font-size:10px;color:#748092;margin-top:4px}.mini-map{height:180px;border-radius:14px;margin:10px 0;overflow:hidden;background:#eef1f5}.form-help{font-size:9px;color:#9098a7;line-height:1.45;text-align:center}.master-grid,.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.simple-list{margin-top:18px;border-top:1px solid var(--line)}.simple-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f4;font-size:11px}.simple-list strong,.simple-list small{display:block}.simple-list small{color:#8b93a3;margin-top:3px}.icon-btn{border:0;background:#fff0f2;color:#c23042;border-radius:8px;width:28px;height:28px;cursor:pointer}.keyval{width:100%;border-collapse:collapse}.keyval td{padding:10px 0;border-bottom:1px solid #edf0f4;font-size:11px}.keyval td:first-child{width:130px;color:#778091}.keyval td:last-child{font-weight:700}.info-banner{padding:13px 15px;margin-bottom:16px;border-radius:13px;background:#fff3df;border:1px solid #ffd9a5;color:#9b5500;font-size:11px}.details-card{margin-top:16px}.login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 12% 16%,rgba(242,140,20,.28),transparent 26rem),linear-gradient(135deg,#13245d,#243b91 46%,#f5f7fb 46%)}.login-shell{width:min(1050px,100%);min-height:620px;background:#fff;border-radius:30px;overflow:hidden;display:grid;grid-template-columns:1.08fr .92fr;box-shadow:0 35px 90px rgba(14,28,77,.3)}.login-hero{padding:38px;color:#fff;background:linear-gradient(150deg,#182861,#243d98);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:320px;height:320px;border:70px solid rgba(255,255,255,.05);border-radius:50%;right:-160px;bottom:-160px}.login-hero>*{position:relative;z-index:1}.login-brand{display:flex;align-items:center;gap:13px}.login-brand img{width:66px;height:66px;object-fit:contain;background:#fff;border-radius:18px;padding:4px}.login-brand strong{display:block;font-size:22px}.login-brand span{display:block;color:#cad5ff;font-size:11px;margin-top:3px}.pill,.eyebrow{display:inline-block;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.12);font-size:9px;font-weight:900;letter-spacing:.1em}.login-hero h1{font-size:37px;line-height:1.08;letter-spacing:-.04em;margin:16px 0}.login-hero p{color:#d6deff;line-height:1.7;font-size:13px;max-width:540px}.hero-features{display:flex;gap:8px;flex-wrap:wrap}.hero-features span{padding:10px 12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:12px;font-size:10px;font-weight:700}.login-form{padding:44px 40px;display:flex;flex-direction:column;justify-content:center}.login-head .eyebrow{background:#eef2ff;color:#3550aa}.login-head h2{font-size:29px;margin:12px 0 7px;color:var(--navy)}.login-head p{margin:0 0 22px;color:#737d8f;font-size:11px;line-height:1.5}.login-form .alert{margin:0 0 14px}.register-box{margin-top:18px;padding:14px;border-radius:14px;background:#f7f8fb;border:1px solid var(--line);text-align:center}.register-box strong,.register-box span{display:block}.register-box strong{font-size:12px}.register-box span{font-size:10px;color:#7d8594;margin:5px 0 10px;line-height:1.45}.install-link{display:block;text-align:center;margin-top:13px;color:#5368ba;font-weight:700;font-size:10px}.public-page{min-height:100vh;background:linear-gradient(135deg,#eef2ff,#fff6ea);padding:30px}.public-card{width:min(840px,100%);margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:var(--shadow)}.public-brand{display:flex;gap:12px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}.public-brand img{width:58px;height:58px;object-fit:contain}.public-brand strong,.public-brand span{display:block}.public-brand strong{font-size:18px;color:var(--navy)}.public-brand span{font-size:10px;color:#7b8494;margin-top:3px}.public-head{margin:24px 0 18px}.public-head h1{margin:0 0 6px;color:var(--navy);font-size:27px}.public-head p{margin:0;color:#737c8d;font-size:11px;line-height:1.6}.public-card>.alert{margin:0 0 16px}.leaflet-container{font-family:inherit;z-index:1}@media print{.sidebar,.topbar,.footer,.no-print,.btn,.tabs{display:none!important}.main{margin:0}.content{padding:0}.card,.stat-card{box-shadow:none;break-inside:avoid}.activity-list{max-height:none;overflow:visible}}
@media(max-width:1050px){.stat-grid{grid-template-columns:1fr 1fr}.dashboard-grid,.dashboard-grid.lower{grid-template-columns:1fr}.report-filter{grid-template-columns:1fr 1fr}.report-filter .grow{grid-column:1/-1}.activity-form-grid{grid-template-columns:1fr}}
@media(max-width:780px){body.sidebar-open:before{content:"";position:fixed;inset:0;background:rgba(8,15,39,.48);z-index:29}.sidebar{transform:translateX(-105%);transition:.2s;width:285px;max-width:86vw}.sidebar-open .sidebar{transform:translateX(0)}.main{margin-left:0}.hamburger{display:block}.topbar{padding:0 13px;height:66px}.userbox{display:none}.topbar-title p{display:none}.content{padding:14px}.alert{margin:10px 14px 0}.page-head{align-items:flex-start;flex-direction:column}.page-head .btn{width:100%}.stat-grid{grid-template-columns:1fr 1fr}.map{height:360px}.master-grid,.account-grid,.form-grid.two{grid-template-columns:1fr}.full-row{grid-column:auto}.filters,.report-filter{display:grid;grid-template-columns:1fr;width:100%}.filters>.input{max-width:none}.filters .btn{width:100%}.card-head{align-items:flex-start}.table-wrap{overflow:visible}.mobile-card-table thead{display:none}.mobile-card-table,.mobile-card-table tbody{display:block}.mobile-card-table tr{display:block;margin:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:5px 12px}.mobile-card-table td{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf0f4;padding:10px 0;text-align:right}.mobile-card-table td:first-child{border-top:0}.mobile-card-table td:before{content:attr(data-label);font-weight:800;color:#7d8595;text-align:left;flex:0 0 105px}.inline-actions{justify-content:flex-end}.login-page{padding:0;display:block;background:#fff}.login-shell{width:100%;min-height:100vh;border-radius:0;display:block;box-shadow:none}.login-hero{padding:24px;min-height:330px}.login-hero h1{font-size:27px}.login-form{padding:28px 20px}.public-page{padding:0;background:#fff}.public-card{border:0;border-radius:0;min-height:100vh;padding:20px}.actions{display:grid;grid-template-columns:1fr 1fr}.actions .btn{width:100%}}
@media(max-width:480px){.stat-grid{grid-template-columns:1fr}.page-head h2{font-size:21px}.mobile-card-table td{display:block;text-align:left}.mobile-card-table td:before{display:block;margin-bottom:5px}.actions{grid-template-columns:1fr}.hero-features{display:grid}.login-hero{min-height:380px}.card.pad{padding:15px}.activity-row img{width:56px;height:56px}}


/* SIMON UPG readability enhancement - larger typography */
html{font-size:17px}
body{font-size:16px}
.brand strong{font-size:23px}
.brand small{font-size:13px;line-height:1.45}
.menu-label{font-size:12px}
.menu a{min-height:54px;padding:10px 11px}
.menu a span{font-size:15px}
.menu a small{font-size:12px;line-height:1.35}
.topbar{height:80px}
.topbar-title h1{font-size:22px}
.topbar-title p{font-size:13px}
.userbox strong{font-size:15px}
.userbox small{font-size:13px}
.content{padding:26px}
.page-head h2{font-size:29px}
.page-head p{font-size:15px}
.card h3{font-size:18px}
.field label{font-size:14px}
.input,select,textarea{font-size:15px;min-height:48px;padding:12px 14px}
.btn{font-size:14px;padding:12px 16px}
.btn.sm{font-size:12px;padding:9px 11px}
.table th{font-size:12px;padding:14px 15px}
.table td{font-size:14px;padding:15px;line-height:1.5}
.table td strong{font-size:15px}
.table td small{font-size:12px;line-height:1.45}
.badge{font-size:12px;padding:7px 10px}
.alert{font-size:14px}
.info-banner{font-size:14px;line-height:1.6}
.empty{font-size:14px}
.tabs a{font-size:13px}
.stat-card span{font-size:13px}
.stat-card strong{font-size:31px}
.stat-card small{font-size:12px}
.form-title p{font-size:12px}
.camera-btn strong{font-size:15px}
.camera-btn small,.location-state,.photo-preview small{font-size:12px}
.form-help{font-size:11px}
.simple-list>div,.keyval td{font-size:13px}
.login-brand strong{font-size:24px}
.login-brand span{font-size:13px}
.login-hero p{font-size:15px}
.hero-features span{font-size:12px}
.login-head p{font-size:13px}
.register-box strong{font-size:14px}
.register-box span,.install-link{font-size:12px}
.public-brand strong{font-size:20px}
.public-brand span,.public-head p{font-size:13px}
@media(max-width:780px){
  .topbar-title h1{font-size:19px}
  .content{padding:16px}
  .page-head h2{font-size:25px}
  .mobile-card-table td{font-size:14px}
  .mobile-card-table td:before{font-size:13px;flex-basis:120px}
}
@media(max-width:480px){
  .page-head h2{font-size:24px}
  .table td strong{font-size:15px}
  .btn.sm{font-size:13px}
}
