@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

:root{--navy:#071a2f;--navy2:#0b2947;--blue:#1467e7;--cyan:#0ba9c7;--green:#11a36a;--red:#d9364b;--amber:#e99c20;--ink:#132238;--muted:#6f7f92;--line:#dce5ef;--surface:#fff;--soft:#f4f7fb;--shadow:0 18px 50px rgba(12,35,64,.12);--radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--soft);font-family:'Noto Sans Thai',Tahoma,sans-serif;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}img{max-width:100%}form{margin:0}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.eyebrow{margin:0 0 5px;color:var(--blue);font-size:.72rem;font-weight:800;letter-spacing:.14em}.brand-logo{width:92px;height:92px;object-fit:contain}.btn{display:inline-flex;min-height:46px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:10px 18px;font-weight:700;cursor:pointer;transition:.18s ease}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{color:#fff;background:linear-gradient(135deg,#1266e7,#0b91cd);box-shadow:0 10px 25px rgba(20,103,231,.22)}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 13px 28px rgba(20,103,231,.28)}.btn-secondary{color:#23405f;background:#eef3f8;border-color:#d6e1ec}.btn-danger{color:#fff;background:var(--red)}.btn-danger-outline{color:var(--red);background:#fff;border:2px solid #efc7cd}.btn-block{width:100%}.btn-xl{min-height:58px;border-radius:15px;font-size:1.05rem}.alert{padding:12px 15px;border-radius:12px;margin:14px 0;font-size:.9rem}.alert-error{color:#a51d33;background:#fff0f2;border:1px solid #f4c9cf}.alert-success{color:#08764c;background:#ebfbf4;border:1px solid #bfead6}.form-stack{display:grid;gap:15px}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:grid;position:relative;gap:7px;color:#344a62;font-size:.84rem;font-weight:700}label small{color:#8794a4;font-weight:500}input,select,textarea{width:100%;border:1px solid #d7e1eb;border-radius:11px;outline:none;background:#fff;padding:11px 13px;color:#172b43;transition:.15s ease}input,select{min-height:47px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#4d91e9;box-shadow:0 0 0 3px rgba(20,103,231,.1)}.input-suffix{position:absolute;right:14px;bottom:13px;color:var(--muted);font-size:.8rem}.section-label{border-top:1px solid var(--line);padding-top:15px;color:#153957;font-weight:800;font-size:.88rem}.form-footnote{margin:0;text-align:center;color:var(--muted);font-size:.77rem}

.topbar{position:sticky;z-index:100;top:0;display:flex;min-height:72px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(17,43,70,.08);background:rgba(255,255,255,.94);padding:8px clamp(16px,3vw,42px);backdrop-filter:blur(14px)}.topbar.dark{color:#fff;background:rgba(7,26,47,.96);border-bottom-color:rgba(255,255,255,.08)}.brand-mini{display:flex;align-items:center;gap:10px}.brand-mini img{width:46px;height:46px;object-fit:contain}.brand-mini span{display:grid}.brand-mini strong{font-size:1rem;letter-spacing:.02em}.brand-mini small{color:#74869a;font-size:.7rem}.brand-mini.light small{color:#9eb4ca}.topbar-actions{display:flex;align-items:center;gap:7px}.icon-link{display:flex;min-height:38px;align-items:center;border:0;border-radius:10px;background:#eef3f8;padding:7px 11px;color:#264560;font-size:.7rem;font-weight:800;cursor:pointer}.icon-link.light{color:#dbe9f6;background:rgba(255,255,255,.1)}

.login-page{min-height:100vh;background:linear-gradient(120deg,#06182d 0%,#0b3459 54%,#eaf2f8 54%,#f6f9fc 100%)}.login-shell{display:grid;min-height:100vh;grid-template-columns:1.1fr .9fr;align-items:center;gap:8vw;padding:8vh 9vw}.login-visual{max-width:620px;color:#dfeefb}.login-visual .brand-logo{margin-bottom:25px}.login-visual .eyebrow{color:#6ed5e7}.login-visual h1{margin:0 0 20px;color:#fff;font-size:clamp(3.5rem,7vw,7.3rem);line-height:.8;letter-spacing:-.06em}.login-visual h1 span{color:#2ad0dd}.login-visual>p:not(.eyebrow){max-width:530px;color:#c2d3e3;font-size:1.14rem}.live-chip{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(90,224,206,.23);border-radius:30px;background:rgba(4,15,29,.25);padding:9px 14px;font-size:.78rem}.live-chip i,.status-live i,.situation-live i,.state-live i{width:8px;height:8px;border-radius:50%;background:#25d591;box-shadow:0 0 0 5px rgba(37,213,145,.14);animation:pulse 1.6s infinite}.login-card{width:min(440px,100%);margin:auto;border:1px solid rgba(255,255,255,.6);border-radius:26px;background:rgba(255,255,255,.96);padding:42px;box-shadow:0 25px 80px rgba(4,21,40,.22)}.login-card h2{margin-bottom:3px;font-size:1.7rem}.login-card .muted{margin-bottom:22px}.secure-note{margin:22px 0 0;text-align:center;color:#8491a1;font-size:.72rem}.mobile-brand{display:none}

.install-page{min-height:100vh;background:#eaf1f7}.install-shell{display:grid;min-height:100vh;grid-template-columns:.85fr 1.15fr}.brand-panel{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#06182d,#0d4167);padding:8vw;color:#dce9f5}.brand-panel h1{margin:0 0 10px;color:#fff;font-size:clamp(2.5rem,5vw,5rem);letter-spacing:-.05em}.brand-panel .eyebrow{color:#43d3de}.brand-panel>p:not(.eyebrow){max-width:480px;color:#b7cadb}.install-points{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.install-points span{border:1px solid rgba(255,255,255,.14);border-radius:20px;background:rgba(255,255,255,.08);padding:6px 11px;font-size:.73rem}.install-card{width:min(680px,calc(100% - 40px));margin:auto;border-radius:26px;background:#fff;padding:40px;box-shadow:var(--shadow)}.install-card h2{margin-bottom:4px}.success-mark{display:grid;width:76px;height:76px;place-items:center;border-radius:50%;background:#e4f9f0;color:var(--green);font-size:2.4rem;font-weight:800}.notice{margin-top:18px;border-radius:12px;background:#fff8e7;padding:12px 14px;color:#785a13;font-size:.82rem}

.field-shell{width:min(1120px,calc(100% - 30px));margin:28px auto 70px}.welcome-strip,.operation-hero,.situation-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.welcome-strip h1,.operation-hero h1,.situation-heading h1{margin:0;font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.04em}.welcome-strip p:last-child,.operation-hero p:last-child,.situation-heading p:last-child{margin:5px 0 0;color:var(--muted)}.step-ring{display:grid;width:72px;height:72px;place-items:center;border:6px solid #dce8f4;border-top-color:var(--blue);border-radius:50%;color:var(--blue);font-size:1.4rem;font-weight:800}.step-ring span{font-size:.72rem;color:#8190a1}.field-card,.admin-card,.checkpoint-table-card{border:1px solid rgba(21,54,84,.08);border-radius:var(--radius);background:#fff;padding:clamp(20px,3vw,34px);box-shadow:0 10px 38px rgba(18,42,69,.07)}.card-heading{display:flex;align-items:center;gap:12px;margin:3px 0 18px}.card-heading.split{margin-top:10px;border-top:1px solid var(--line);padding-top:22px}.card-heading h2{margin:0;font-size:1.1rem}.card-heading p{margin:1px 0 0;color:var(--muted);font-size:.76rem}.number-badge{display:grid;flex:0 0 37px;height:37px;place-items:center;border-radius:11px;color:#fff;background:var(--blue);font-weight:800}.gps-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;border:1px dashed #b9cadb;border-radius:15px;background:#f7fafd;padding:16px}.gps-panel.ready{border-color:#72d4ab;background:#eefbf5}.gps-icon{display:grid;width:45px;height:45px;place-items:center;border-radius:50%;background:#e5eef7;color:var(--blue);font-size:1.6rem}.gps-panel div:nth-child(2){display:grid}.gps-panel strong{font-size:.9rem}.gps-panel small{color:var(--muted);font-size:.72rem}

.operation-hero{align-items:center;border-radius:22px;background:linear-gradient(125deg,#071a2f,#0d4770);padding:26px 30px;color:#fff;box-shadow:0 14px 40px rgba(7,26,47,.2)}.operation-hero .eyebrow{color:#5ad4df}.operation-hero p:last-child{color:#c5d6e5}.status-live{display:inline-flex;align-items:center;gap:9px;margin-bottom:9px;border-radius:25px;background:rgba(27,202,130,.12);padding:6px 10px;color:#8aebc4;font-size:.72rem;font-weight:700}.live-clock{display:grid;min-width:100px;text-align:right}.live-clock span{font-size:2.2rem;font-weight:800}.live-clock small{color:#a8bfd2}.live-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.live-stats article{position:relative;display:grid;border:1px solid rgba(19,53,82,.08);border-radius:16px;background:#fff;padding:17px 19px;box-shadow:0 8px 25px rgba(18,42,69,.05)}.live-stats article.accent{color:#fff;background:linear-gradient(135deg,#d9324c,#f06a59)}.live-stats span{color:var(--muted);font-size:.75rem}.live-stats .accent span,.live-stats .accent small{color:#ffe8ec}.live-stats strong{font-size:2rem;line-height:1.15}.live-stats small{position:absolute;right:16px;bottom:17px;color:#8895a4;font-size:.73rem}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.action-card{display:flex;align-items:center;gap:11px;min-height:85px;border:1px solid #dfe7ef;border-radius:16px;background:#fff;padding:14px;text-align:left;cursor:pointer;transition:.18s ease}.action-card:hover{transform:translateY(-2px);box-shadow:0 11px 25px rgba(18,42,69,.1)}.action-card b{display:grid;flex:0 0 42px;height:42px;place-items:center;border-radius:13px;font-size:1.2rem}.action-card span{display:grid;color:#243950;font-size:.86rem;font-weight:800}.action-card small{color:var(--muted);font-size:.67rem;font-weight:500}.action-card.arrest b{color:#c92943;background:#ffedf0}.action-card.event b{color:#b46b00;background:#fff4db}.action-card.photo b{color:#087b51;background:#e7faf2}.action-card.count b{color:#1467e7;background:#eaf3ff}.field-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-head h2{margin:0;font-size:1.12rem}.auto-refresh,.count-pill{border-radius:20px;background:#e9f8f3;padding:5px 9px;color:#0d8a5c;font-size:.67rem;font-weight:700}.activity-list,.timeline-list{display:grid}.activity-row{display:grid;grid-template-columns:55px 35px 1fr;align-items:start;gap:9px;border-top:1px solid #edf1f5;padding:14px 0}.activity-row:first-child{border-top:0}.activity-row time,.timeline-row time{color:#8694a3;font-size:.7rem}.activity-icon{display:grid;width:31px;height:31px;place-items:center;border-radius:10px;background:#eff4f8;font-weight:800}.activity-row.arrest .activity-icon{color:#c92943;background:#ffedf0}.activity-row.event .activity-icon{color:#ac6800;background:#fff4db}.activity-row.photo .activity-icon{color:#087b51;background:#e7faf2}.activity-row strong,.timeline-row strong{font-size:.82rem}.activity-row p,.timeline-row p{margin:2px 0;color:var(--muted);font-size:.73rem}.activity-row a{color:var(--blue);font-size:.7rem;font-weight:700}.timeline-row{position:relative;display:grid;grid-template-columns:10px 55px 1fr;gap:8px;padding:0 0 18px}.timeline-row:before{position:absolute;top:10px;bottom:-5px;left:4px;width:1px;background:#dbe4ed;content:''}.timeline-row:last-child:before{display:none}.timeline-row>i{z-index:1;width:9px;height:9px;margin-top:7px;border:2px solid #fff;border-radius:50%;background:var(--blue);box-shadow:0 0 0 2px #a8c8ed}.timeline-row small{color:#99a4af;font-size:.65rem}.loading-line,.empty-state{display:grid;min-height:100px;place-items:center;color:#8a98a7;font-size:.78rem}.empty-state span{display:block;margin-top:4px;text-align:center;font-size:.72rem}.end-operation{margin-top:16px}

.modal{position:fixed;z-index:1000;inset:0;display:flex;align-items:flex-end;justify-content:center;visibility:hidden;background:rgba(3,15,28,.58);opacity:0;padding:20px;transition:.2s ease;backdrop-filter:blur(3px)}.modal.open{visibility:visible;opacity:1}.modal-sheet{position:relative;width:min(600px,100%);max-height:92vh;overflow:auto;transform:translateY(20px);border-radius:24px 24px 18px 18px;background:#fff;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.25);transition:.2s ease}.modal.open .modal-sheet{transform:none}.modal-sheet.wide{width:min(720px,100%)}.modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:#eff3f7;color:#526579;font-size:1.4rem;cursor:pointer}.modal-head{display:flex;align-items:center;gap:12px;margin:0 44px 22px 0}.modal-head h2{margin:0;font-size:1.25rem}.modal-head p{margin:2px 0 0;color:var(--muted);font-size:.75rem}.modal-icon{display:grid;flex:0 0 43px;height:43px;place-items:center;border-radius:14px;font-size:1.3rem;font-weight:800}.modal-icon.red{color:#c92943;background:#ffedf0}.modal-icon.amber{color:#ac6800;background:#fff4db}.modal-icon.blue{color:#1467e7;background:#eaf3ff}.modal-icon.green{color:#087b51;background:#e7faf2}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.upload-zone{display:grid;min-height:145px;place-items:center;align-content:center;border:2px dashed #b9cada;border-radius:15px;background:#f7fafd;text-align:center;cursor:pointer}.upload-zone input{position:absolute;width:1px;height:1px;opacity:0}.upload-zone b{color:#27506f}.upload-zone small{color:var(--muted)}.summary-title{display:grid;margin-bottom:12px}.summary-title strong{font-size:1.1rem}.summary-title span{color:var(--muted);font-size:.78rem}.summary-time{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.summary-time>div{display:grid;border-radius:12px;background:#f3f7fb;padding:11px}.summary-time small{color:var(--muted)}.close-summary h3{margin:16px 0 7px;font-size:.84rem}.summary-list,.evidence-list{margin:0;padding:0;list-style:none}.summary-list li{display:flex;justify-content:space-between;border-bottom:1px solid #eef2f5;padding:7px 3px;font-size:.78rem}.summary-list li.total{color:#133c5f;background:#f1f7fc;padding:9px;font-weight:800}.evidence-list{border-radius:11px;background:#fff8e9;padding:10px 25px;color:#6f5520;font-size:.78rem;list-style:disc}.summary-photos{margin-top:12px;border-radius:10px;background:#eef8f4;padding:10px 12px;color:#176b4d;font-size:.8rem}.modal-open{overflow:hidden}.toast{position:fixed;z-index:2000;left:50%;bottom:25px;visibility:hidden;transform:translate(-50%,20px);border-radius:12px;background:#18334d;padding:11px 16px;color:#fff;opacity:0;box-shadow:0 12px 35px rgba(0,0,0,.22);font-size:.82rem;transition:.2s ease}.toast.show{visibility:visible;transform:translate(-50%,0);opacity:1}.toast.error{background:#bd273e}

.decision-sheet{width:min(520px,100%);text-align:center}.decision-mark{display:grid;width:68px;height:68px;margin:2px auto 18px;place-items:center;border-radius:50%;background:#e5f8ef;color:#087b51;font-size:2rem;font-weight:900;box-shadow:0 10px 28px rgba(8,123,81,.16)}.decision-copy h2{margin:3px 0 8px;color:#123a5b;font-size:1.45rem}.decision-copy>p:last-child{margin:0;color:var(--muted);font-size:1rem}.decision-actions{align-items:stretch;margin-top:26px}.decision-actions form{display:flex}.decision-actions form .btn{width:100%}

.situation-body{background:#eaf0f5}.situation-shell{width:min(1540px,calc(100% - 36px));margin:24px auto 60px}.situation-heading{align-items:center}.filter-row{display:flex;gap:8px}.filter-row select{min-width:210px}.situation-live{display:flex;align-items:center;gap:9px}.situation-live span{font-size:.72rem;font-weight:800;letter-spacing:.12em}.situation-live small{color:#9db1c5;font-size:.67rem}.command-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}.command-kpis article{position:relative;display:grid;border:1px solid rgba(13,53,84,.08);border-radius:14px;background:#fff;padding:13px 15px}.command-kpis article.accent{color:#fff;background:linear-gradient(140deg,#d9324c,#ee655a)}.command-kpis span{color:#718196;font-size:.68rem}.command-kpis .accent span,.command-kpis .accent small{color:#ffe5e8}.command-kpis strong{font-size:1.75rem;line-height:1.1}.command-kpis small{position:absolute;right:13px;bottom:13px;color:#8c99a8;font-size:.65rem}.command-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:13px}.map-card,.feed-panel{overflow:hidden;border:1px solid rgba(13,53,84,.08);border-radius:18px;background:#fff;box-shadow:0 8px 30px rgba(16,39,66,.07)}.situation-map{height:590px;background:#dbe7ef}.map-empty{display:grid;height:100%;place-items:center;align-content:center;color:#5f7185}.map-empty span{margin-top:5px;font-size:.75rem}.map-legend{display:flex;flex-wrap:wrap;gap:15px;border-top:1px solid #e7edf2;padding:10px 14px;font-size:.67rem}.map-legend span{display:flex;align-items:center;gap:6px}.dot{width:9px;height:9px;border-radius:50%;background:#13a66e}.dot.new-report{background:#ef9f20}.dot.closing{background:#d9364b}.feed-panel{height:635px;padding:18px}.live-feed{height:555px;overflow:auto;padding-right:4px}.feed-item{display:grid;grid-template-columns:9px 1fr;gap:10px;border-top:1px solid #ebf0f4;padding:13px 2px;cursor:pointer}.feed-item:first-child{border-top:0}.feed-item>i{width:8px;height:8px;margin-top:7px;border-radius:50%;background:#17a970}.feed-item.recent>i{background:#e89a1d;box-shadow:0 0 0 5px rgba(232,154,29,.13)}.feed-meta{display:flex;justify-content:space-between;gap:8px;color:#8190a0;font-size:.62rem}.feed-item strong{display:block;margin-top:2px;font-size:.8rem}.feed-item p{overflow:hidden;margin:1px 0;color:#3d556d;font-size:.71rem;text-overflow:ellipsis;white-space:nowrap}.feed-item small{color:#8c99a6;font-size:.63rem}.checkpoint-table-card{margin-top:13px}.checkpoint-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.checkpoint-card{border:1px solid #dfe7ee;border-radius:15px;padding:16px}.checkpoint-card.recent{border-color:#eac779;background:#fffdf7}.checkpoint-card-head{display:flex;align-items:center;justify-content:space-between}.checkpoint-card-head time{color:#8491a0;font-size:.64rem}.state-live{display:flex;align-items:center;gap:7px;color:#098458;font-size:.65rem;font-weight:700}.checkpoint-card h3{margin:10px 0 0;font-size:1rem}.checkpoint-card>p{margin:0 0 10px;color:var(--muted);font-size:.68rem}.checkpoint-card dl{display:grid;grid-template-columns:1.5fr .5fr;gap:8px;margin:0}.checkpoint-card dl div{display:grid}.checkpoint-card dt{color:#8b98a6;font-size:.59rem}.checkpoint-card dd{margin:0;font-size:.7rem;font-weight:700}.card-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:11px}.card-kpis span{display:grid;border-radius:8px;background:#f0f5f9;padding:6px;text-align:center;color:#748396;font-size:.58rem}.card-kpis b{color:#173a57;font-size:.82rem}.card-latest{display:grid;margin-top:10px;border-radius:8px;background:#fff5dc;padding:7px 9px}.card-latest small{color:#93711d;font-size:.55rem}.card-latest strong{overflow:hidden;color:#674b0c;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}.marker-popup{min-width:210px;font-family:'Noto Sans Thai',sans-serif;font-size:12px}.marker-popup>b,.marker-popup>small{display:block}.marker-popup hr{border:0;border-top:1px solid #ddd}.marker-latest{margin-top:6px;border-radius:6px;background:#fff3d9;padding:5px}

.map-stage{position:relative}.map-loading{display:grid;height:100%;place-items:center;align-content:center;gap:12px;color:#496177}.map-loading span{width:32px;height:32px;border:3px solid rgba(13,77,117,.15);border-top-color:#0d79b8;border-radius:50%;animation:map-spin .85s linear infinite}.map-provider-badge{position:absolute;z-index:600;right:12px;top:12px;border:1px solid rgba(11,45,72,.11);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 4px 16px rgba(11,45,72,.12);padding:6px 10px;color:#38536a;font-size:.62rem;font-weight:700;pointer-events:none}.map-provider-badge.fallback{color:#7a5813;background:rgba(255,249,230,.96)}.map-status{position:absolute;z-index:650;left:50%;top:12px;max-width:min(540px,calc(100% - 190px));transform:translateX(-50%);border:1px solid #f1d38f;border-radius:10px;background:#fff9e9;box-shadow:0 4px 16px rgba(98,69,9,.1);padding:7px 11px;color:#71530f;font-size:.68rem}.checkpoint-pin{width:26px;height:26px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#13a66e;box-shadow:0 3px 10px rgba(7,38,54,.28);transform:rotate(-45deg)}.checkpoint-pin.recent{background:#ef9f20}.checkpoint-pin span{display:block;width:7px;height:7px;margin:7px;border-radius:50%;background:#fff}.leaflet-popup-content-wrapper{border-radius:12px}.leaflet-popup-content{margin:12px 14px}.leaflet-control-attribution{font-size:9px}

.admin-shell{width:min(1320px,calc(100% - 32px));margin:28px auto 60px}.table-wrap{overflow:auto}.admin-card table{width:100%;border-collapse:collapse;white-space:nowrap}.admin-card th,.admin-card td{border-bottom:1px solid #e8edf2;padding:11px 10px;text-align:left;font-size:.75rem}.admin-card th{color:#77879a;background:#f6f8fb;font-size:.67rem}.role-badge,.state-badge{display:inline-flex;border-radius:20px;padding:4px 8px;font-size:.62rem;font-weight:700}.role-badge.officer{color:#145fb6;background:#e9f3ff}.role-badge.viewer{color:#785800;background:#fff4d6}.role-badge.admin{color:#8e2340;background:#ffedf2}.state-badge.on{color:#087951;background:#e8f9f1}.state-badge.off{color:#7c8792;background:#edf0f3}.row-actions{display:flex;gap:5px}.link-btn{border:0;background:transparent;color:var(--blue);font-size:.68rem;font-weight:700;cursor:pointer}

.evidence-section-label{display:flex;align-items:baseline;justify-content:space-between}.evidence-input-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.evidence-input-grid label{border:1px solid #e0e8f0;border-radius:13px;background:#f8fafc;padding:10px}.evidence-input-grid input{background:#fff;text-align:right}
.report-shell{width:min(1540px,calc(100% - 36px));margin:28px auto 70px}.report-heading{align-items:center}.report-filter-card{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;align-items:end;gap:11px;border:1px solid rgba(13,53,84,.08);border-radius:18px;background:#fff;padding:18px;box-shadow:0 8px 28px rgba(16,39,66,.06)}.report-kpis{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;margin:14px 0}.report-kpis article{position:relative;display:grid;min-width:0;border:1px solid rgba(13,53,84,.08);border-radius:15px;background:#fff;padding:14px 15px;box-shadow:0 6px 22px rgba(16,39,66,.05)}.report-kpis article.drug{color:#fff;background:linear-gradient(140deg,#cf304c,#eb655a)}.report-kpis article.firearm{color:#fff;background:linear-gradient(140deg,#143c5e,#256b91)}.report-kpis span{overflow:hidden;color:#748497;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}.report-kpis .drug span,.report-kpis .drug small,.report-kpis .firearm span,.report-kpis .firearm small{color:#e8f3fb}.report-kpis strong{overflow:hidden;font-size:1.55rem;line-height:1.2;text-overflow:ellipsis}.report-kpis small{color:#8996a5;font-size:.62rem}.report-table-card{border:1px solid rgba(13,53,84,.08);border-radius:18px;background:#fff;padding:20px;box-shadow:0 8px 28px rgba(16,39,66,.06)}.report-table{width:100%;min-width:1380px;border-collapse:collapse}.report-table th,.report-table td{border-bottom:1px solid #e8edf2;padding:10px 9px;text-align:left;vertical-align:top;font-size:.7rem}.report-table th{position:sticky;z-index:2;top:0;background:#0b2947;color:#fff;font-size:.64rem;white-space:nowrap}.report-table tbody tr:hover{background:#f8fbfd}.report-table td strong,.report-table td small{display:block}.report-table td small{color:#8695a5;font-size:.62rem}.report-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.report-table .text-cell{max-width:220px;white-space:normal}.report-empty{height:140px;text-align:center!important;color:#8090a0}.report-limit-note{margin:-3px 0 12px;border-radius:10px;background:#fff6df;padding:9px 12px;color:#765710;font-size:.72rem}.report-footnote{margin:13px 0 0;color:#7c8a99;font-size:.68rem}.upgrade-shell{display:grid;min-height:calc(100vh - 72px);place-items:center;padding:25px}.upgrade-card{width:min(620px,100%);border:1px solid rgba(13,53,84,.08);border-radius:24px;background:#fff;padding:34px;box-shadow:var(--shadow)}.upgrade-card h1{margin-bottom:8px}.upgrade-ready{display:grid;margin:20px 0;border:1px solid #bce8d4;border-radius:14px;background:#ecfaf4;padding:16px;color:#08754f}.upgrade-ready span{margin-top:3px;color:#43806a;font-size:.78rem}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)}}
@keyframes map-spin{to{transform:rotate(360deg)}}
@media (max-width:1080px){.command-layout{grid-template-columns:1fr}.feed-panel{height:auto}.live-feed{display:grid;height:auto;max-height:420px;grid-template-columns:repeat(2,1fr);gap:0 16px}.checkpoint-cards{grid-template-columns:repeat(2,1fr)}.field-columns{grid-template-columns:1fr}.command-kpis{grid-template-columns:repeat(3,1fr)}.action-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){body{font-size:15px}.topbar{min-height:62px;padding:7px 12px}.brand-mini img{width:39px;height:39px}.brand-mini strong{font-size:.86rem}.brand-mini small{font-size:.63rem}.topbar-actions{gap:3px}.icon-link{min-height:34px;padding:6px 8px;font-size:.61rem}.login-page{background:#edf3f8}.login-shell{display:block;min-height:100vh;padding:0}.login-visual{display:none}.login-card{width:100%;min-height:100vh;border:0;border-radius:0;padding:32px 22px;box-shadow:none}.mobile-brand{display:flex;align-items:center;gap:10px;margin:0 0 48px}.mobile-brand img{width:55px;height:55px;object-fit:contain}.mobile-brand div{display:grid}.mobile-brand strong{font-size:1rem}.mobile-brand small{color:var(--muted);font-size:.7rem}.install-shell{display:block;padding:18px 0}.brand-panel{display:none}.install-card{width:calc(100% - 24px);padding:24px 18px}.field-shell,.situation-shell,.admin-shell{width:calc(100% - 20px);margin-top:17px}.welcome-strip,.situation-heading{align-items:flex-start;flex-direction:column}.welcome-strip h1,.situation-heading h1{font-size:1.75rem}.step-ring{display:none}.field-card{padding:19px 15px}.form-grid.two{grid-template-columns:1fr}.gps-panel{grid-template-columns:auto 1fr}.gps-panel .btn{grid-column:1/-1}.operation-hero{align-items:flex-start;padding:21px 18px}.operation-hero h1{font-size:1.55rem}.live-clock{display:none}.live-stats{grid-template-columns:repeat(2,1fr);gap:8px}.live-stats article{padding:13px}.live-stats strong{font-size:1.65rem}.action-grid{gap:8px}.action-card{min-height:78px;padding:10px}.action-card b{flex-basis:36px;height:36px}.action-card small{display:none}.modal{padding:0}.modal-sheet,.modal-sheet.wide{width:100%;max-height:94vh;border-radius:23px 23px 0 0;padding:23px 16px}.modal-actions{grid-template-columns:1fr}.command-kpis{grid-template-columns:repeat(2,1fr);gap:7px}.command-kpis article{padding:11px}.command-layout{display:block}.situation-map{height:55vh;min-height:390px}.feed-panel{margin-top:10px;padding:14px}.live-feed{display:block;max-height:420px}.checkpoint-cards{grid-template-columns:1fr}.filter-row{width:100%}.filter-row select{min-width:0;flex:1}.situation-live small{display:none}.checkpoint-table-card{padding:17px 13px}.admin-card{padding:10px}.toast{width:calc(100% - 30px);text-align:center}}
@media (max-width:430px){.action-card{display:grid;grid-template-columns:auto 1fr}.action-card span{font-size:.78rem}.live-stats span{font-size:.69rem}.brand-mini span small{display:none}.situation-heading .btn{padding-inline:11px}.situation-heading h1{font-size:1.55rem}}
@media (max-width:1080px){.evidence-input-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-filter-card{grid-template-columns:repeat(2,1fr)}.report-kpis{grid-template-columns:repeat(4,1fr)}}
@media (max-width:760px){.report-shell{width:calc(100% - 20px);margin-top:17px}.evidence-input-grid{grid-template-columns:repeat(2,1fr)}.report-filter-card{grid-template-columns:1fr;padding:14px}.report-kpis{grid-template-columns:repeat(2,1fr);gap:7px}.report-table-card{padding:14px 10px}.upgrade-card{padding:24px 18px}}

/* V2.6 — field leader entry */
.field-entry-page{min-height:100vh;background:radial-gradient(circle at 20% 20%,#164f78 0,#071a2f 42%,#04111f 100%)}.field-entry-shell{display:grid;grid-template-columns:1.12fr .88fr;min-height:100vh}.field-entry-brand{display:flex;flex-direction:column;justify-content:center;padding:clamp(45px,7vw,125px);color:#fff}.field-entry-brand>img{width:105px;height:105px;object-fit:contain;margin-bottom:28px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.22))}.field-entry-brand h1{max-width:720px;margin:7px 0 18px;font-size:clamp(3.4rem,6vw,7.4rem);line-height:.86;letter-spacing:-.055em}.field-entry-brand h1 span{color:#59d6e4}.field-entry-brand>p:last-of-type{max-width:680px;color:#c7d9e8;font-size:clamp(.9rem,1.25vw,1.25rem);line-height:1.75}.entry-flow{display:flex;align-items:center;gap:12px;margin-top:35px;color:#b9cddd;font-size:.72rem;font-weight:700}.entry-flow i{width:48px;height:1px;background:#4d7694}.field-entry-card{align-self:center;width:min(620px,calc(100% - 55px));margin:35px auto;border:1px solid rgba(255,255,255,.52);border-radius:28px;background:rgba(255,255,255,.98);padding:clamp(30px,4vw,56px);box-shadow:0 35px 100px rgba(0,0,0,.28)}.field-entry-card h2{margin:4px 0 3px;font-size:2rem}.leader-name-grid{grid-template-columns:.72fr 1.25fr 1.25fr}.entry-privacy{margin:0;color:#8190a0;text-align:center;font-size:.67rem}.staff-login-mini{display:flex;justify-content:center;gap:6px;width:max-content;max-width:100%;margin:25px auto 0;border-top:1px solid #e7edf2;padding:17px 10px 0;color:#8090a0;font-size:.65rem}.staff-login-mini span{color:#50657a}.back-to-field{display:block;margin-top:18px;text-align:center;color:#6d7f91;font-size:.7rem}.leader-autofill-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border:1px solid #cfe2f0;border-radius:17px;background:linear-gradient(135deg,#f7fbfe,#edf6fc);padding:17px 19px}.leader-autofill-card>div:first-child{display:grid}.leader-autofill-card span{color:#708298;font-size:.68rem}.leader-autofill-card strong{color:#103d60;font-size:1rem}.leader-autofill-card small{color:#65798e;font-size:.72rem}.leader-history{display:grid;min-width:100px;border-left:1px solid #cedfea;padding-left:20px;text-align:center}.leader-history strong{font-size:1.85rem;line-height:1}.summary-title small{margin-top:4px;color:#536c82;font-size:.7rem}

/* V2.6 — reports and leader statistics */
.report-kpis{grid-template-columns:repeat(9,1fr)}.report-kpis article.operation{color:#fff;background:linear-gradient(140deg,#087f76,#20a38f)}.report-kpis .operation span,.report-kpis .operation small{color:#dffaf4}.leader-report-card{margin-bottom:14px}.leader-report-table{width:100%;min-width:880px;border-collapse:collapse}.leader-report-table th,.leader-report-table td{border-bottom:1px solid #e8edf2;padding:10px;text-align:left;font-size:.73rem}.leader-report-table th{background:#123b5d;color:#fff;font-size:.66rem}.leader-report-table td.num{text-align:right}.leader-report-table .leader-count strong{color:#0d7f70;font-size:1rem}

/* V2.6 — dedicated 1920x1080 LED dashboard */
.led-body{min-width:1180px;min-height:100vh;overflow:hidden;background:#04111f;color:#fff}.led-dashboard{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;height:100vh;padding:18px 24px;background:radial-gradient(circle at 50% -20%,#103f63 0,#061a2d 42%,#03101d 100%)}.led-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:28px;min-height:70px;border-bottom:1px solid rgba(103,180,224,.2);padding:0 0 12px}.led-brand{display:flex;align-items:center;gap:16px}.led-brand img{width:62px;height:62px;object-fit:contain}.led-brand div{display:grid}.led-brand p{margin:0;color:#58d9e6;font-size:.65rem;font-weight:800;letter-spacing:.18em}.led-brand h1{margin:1px 0;color:#fff;font-size:1.5rem;line-height:1.1}.led-brand span{color:#87a9c1;font-size:.7rem}.led-status{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:13px;text-align:right}.led-live{grid-row:1/3;display:flex;align-items:center;gap:8px;border:1px solid rgba(61,224,167,.28);border-radius:999px;background:rgba(28,184,128,.1);padding:7px 11px;color:#65e5b9;font-size:.7rem;font-weight:800}.led-live i,.led-live .i{width:8px;height:8px;border-radius:50%;background:#2cde9b;box-shadow:0 0 0 5px rgba(44,222,155,.12);animation:pulse 1.2s infinite}.led-status>strong{font-size:1.45rem;line-height:1}.led-status>span{color:#b4cadd;font-size:.64rem}.led-status>small{grid-column:1/-1;margin-top:3px;color:#6f91aa;font-size:.58rem}.led-controls{display:flex;gap:7px}.led-controls button,.led-controls a{border:1px solid rgba(151,190,215,.25);border-radius:8px;background:rgba(255,255,255,.06);padding:8px 11px;color:#c7d9e7;font-family:inherit;font-size:.61rem;cursor:pointer}.led-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.led-kpis article{position:relative;display:grid;min-height:88px;border:1px solid rgba(117,174,208,.15);border-radius:15px;background:linear-gradient(145deg,rgba(20,56,82,.96),rgba(9,34,54,.96));padding:13px 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.led-kpis article.led-accent{background:linear-gradient(140deg,#bd2944,#e2544f)}.led-kpis span{color:#8eafc4;font-size:.66rem}.led-kpis .led-accent span,.led-kpis .led-accent small{color:#ffe2e6}.led-kpis strong{font-size:2.05rem;line-height:1.12}.led-kpis small{position:absolute;right:14px;bottom:13px;color:#718fa5;font-size:.65rem}.led-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(380px,.72fr);gap:12px;min-height:0}.led-map-panel,.led-side-panel>section{min-height:0;overflow:hidden;border:1px solid rgba(116,176,212,.16);border-radius:16px;background:rgba(7,28,47,.91);box-shadow:0 12px 38px rgba(0,0,0,.16)}.led-map-panel{display:grid;grid-template-rows:auto minmax(0,1fr);padding:15px}.led-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.led-panel-title p{margin:0;color:#55d4e2;font-size:.56rem;font-weight:800;letter-spacing:.14em}.led-panel-title h2{margin:2px 0 0;color:#f4f9fc;font-size:.92rem}.led-panel-title>span{border-radius:999px;background:rgba(80,207,218,.1);padding:5px 9px;color:#72d9e3;font-size:.6rem}.led-map-stage,.led-map-stage .situation-map{height:100%;min-height:0;border-radius:11px}.led-map-stage{overflow:hidden}.led-side-panel{display:grid;grid-template-rows:minmax(0,1.18fr) minmax(0,.82fr);gap:12px;min-height:0}.led-side-panel>section{padding:14px}.led-feed-section,.led-leader-section{display:grid;grid-template-rows:auto minmax(0,1fr)}.led-live-feed{min-height:0;overflow:hidden}.led-live-feed .feed-item{padding:9px 2px}.led-live-feed .feed-item:nth-child(n+6){display:none}.led-live-feed .feed-item strong{color:#edf6fc;font-size:.74rem}.led-live-feed .feed-item p{color:#9eb7c9}.led-live-feed .feed-item small,.led-live-feed .feed-meta{color:#718fa5}.led-leader-ranking{display:grid;align-content:start;min-height:0;overflow:hidden}.led-leader-ranking article{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;border-top:1px solid rgba(121,169,199,.12);padding:8px 0}.led-leader-ranking article:first-child{border-top:0}.led-leader-ranking article>b{display:grid;width:26px;height:26px;place-items:center;border-radius:8px;background:#123f61;color:#66d9e4;font-size:.7rem}.led-leader-ranking article:nth-child(1)>b{background:#d79a2b;color:#fff}.led-leader-ranking article div{display:grid;min-width:0}.led-leader-ranking article div strong{overflow:hidden;color:#eaf4fa;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.led-leader-ranking article div small{overflow:hidden;color:#718fa5;font-size:.57rem;text-overflow:ellipsis;white-space:nowrap}.led-leader-ranking article>span{display:grid;text-align:right;color:#67deca;font-size:1rem;font-weight:800}.led-leader-ranking article>span small{color:#7695aa;font-size:.5rem;font-weight:500}.led-evidence-strip{display:grid;grid-template-columns:1.3fr repeat(5,1fr);gap:8px;min-height:72px}.led-evidence-strip>div,.led-evidence-strip article{display:grid;align-content:center;border:1px solid rgba(116,176,212,.13);border-radius:12px;background:rgba(7,30,50,.92);padding:10px 14px}.led-evidence-strip>div p{margin:0;color:#f0f7fb;font-size:.82rem;font-weight:800}.led-evidence-strip>div span{color:#6f91a9;font-size:.56rem}.led-evidence-strip article{position:relative}.led-evidence-strip article span{color:#7597ae;font-size:.58rem}.led-evidence-strip article strong{overflow:hidden;color:#f3f8fb;font-size:1.18rem;line-height:1.1;text-overflow:ellipsis}.led-evidence-strip article small{position:absolute;right:10px;bottom:10px;color:#668399;font-size:.52rem}.led-body .map-provider-badge{background:rgba(4,21,35,.88);color:#a7c1d2;border-color:rgba(113,164,194,.2)}.led-body .leaflet-control-attribution{opacity:.75}

@media (max-width:1280px){.field-entry-shell{grid-template-columns:1fr}.field-entry-brand{display:none}.field-entry-card{width:min(680px,calc(100% - 30px))}.led-body{min-width:1000px}.led-dashboard{padding:12px 15px}.led-main-grid{grid-template-columns:minmax(0,1.45fr) 360px}.led-brand h1{font-size:1.2rem}.report-kpis{grid-template-columns:repeat(5,1fr)}}
@media (max-width:760px){.field-entry-page{background:#edf3f8}.field-entry-shell{display:block}.field-entry-card{width:100%;min-height:100vh;margin:0;border:0;border-radius:0;padding:30px 20px;box-shadow:none}.field-entry-card .mobile-brand{margin-bottom:38px}.leader-name-grid{grid-template-columns:1fr}.leader-autofill-card{grid-template-columns:1fr}.leader-history{border-top:1px solid #cedfea;border-left:0;padding:13px 0 0}.staff-login-mini{margin-top:28px}.report-kpis{grid-template-columns:repeat(2,1fr)}}

/* V2.8 — login/field-entry layout safeguards */
.field-entry-brand>img.entry-logo{width:92px;height:92px;max-width:92px;object-fit:contain;margin-bottom:22px}.field-entry-card .mobile-brand>img.entry-logo-mobile{width:52px;height:52px;max-width:52px;object-fit:contain}.login-visual .brand-logo{width:88px;height:88px;max-width:88px;object-fit:contain}.login-card .mobile-brand>img{width:52px;height:52px;max-width:52px;object-fit:contain}
@media (min-width:1281px) and (max-height:820px){.field-entry-brand{padding:42px 6vw}.field-entry-brand>img.entry-logo{width:78px;height:78px;max-width:78px;margin-bottom:16px}.field-entry-brand h1{font-size:clamp(3.2rem,5vw,5.8rem);margin-bottom:14px}.field-entry-brand>p:last-of-type{font-size:1rem;line-height:1.6}.entry-flow{margin-top:22px}.field-entry-card{width:min(600px,calc(100% - 44px));margin:18px auto;padding:28px 40px}.field-entry-card h2{font-size:1.75rem}.field-entry-card .form-stack{gap:12px}.field-entry-card input,.field-entry-card select{min-height:45px}.staff-login-mini{margin-top:18px;padding-top:13px}}
@media (max-width:760px){.field-entry-card .mobile-brand>img.entry-logo-mobile{width:48px;height:48px;max-width:48px}.field-entry-card .mobile-brand{margin-bottom:28px}.field-entry-card h2{font-size:1.7rem}}

/* V2.9 — instant photo preview, compression and upload progress */
.upload-prompt[hidden],.photo-preview[hidden],.photo-process[hidden]{display:none!important}
.leader-profile-info{display:grid;gap:9px}.leader-detail-row{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:baseline;gap:14px}.leader-detail-row span{white-space:nowrap}.leader-detail-row strong{color:#123b5d;font-size:.94rem;line-height:1.5}.leader-count-line{display:flex;align-items:baseline;justify-content:center;gap:7px;margin-top:4px}.leader-count-line strong{font-size:1.85rem;line-height:1}.leader-count-line small{white-space:nowrap}
.upload-prompt{display:grid;gap:3px;place-items:center;padding:20px}.upload-zone.has-image{min-height:230px;overflow:hidden;border-style:solid;border-color:#8dc9b0;background:#071a2f}.photo-preview{position:relative;display:block;width:100%;height:260px}.photo-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#071a2f}.photo-preview-change{position:absolute;right:10px;bottom:10px;border-radius:999px;background:rgba(4,18,31,.78);padding:6px 10px;color:#fff;font-size:.68rem;font-weight:700;backdrop-filter:blur(5px)}
.photo-process{display:grid;gap:7px;border:1px solid #d6e6ef;border-radius:13px;background:#f5f9fc;padding:12px 14px}.photo-process.ready{border-color:#b9e3d0;background:#effaf5}.photo-process.error{border-color:#efc0c7;background:#fff2f4}.photo-process-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.photo-process-head strong{color:#24445f;font-size:.78rem}.photo-process-head span{color:#1266e7;font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums}.photo-process small{color:#74869a;font-size:.68rem}.upload-progress{height:10px;overflow:hidden;border-radius:999px;background:#dce7f0}.upload-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1467e7,#0ba9c7,#13ad76);transition:width .18s ease}.photo-process.ready .upload-progress span{background:#13a66e}.photo-process.error .upload-progress span{background:#d9364b}
.activity-photo-thumb{display:block;width:min(260px,100%);margin-top:8px;overflow:hidden;border:1px solid #dce7ef;border-radius:11px;background:#eaf1f6}.activity-photo-thumb img{display:block;width:100%;height:145px;object-fit:cover;transition:transform .2s ease}.activity-photo-thumb:hover img{transform:scale(1.02)}
.summary-list li.has-value{color:#0b6f50;background:#eaf9f3;padding-inline:9px;font-weight:700}
@media (max-width:760px){.leader-detail-row{grid-template-columns:76px minmax(0,1fr);gap:10px}.photo-preview{height:220px}.activity-photo-thumb{width:100%}.activity-photo-thumb img{height:180px}}

/* V3.0 — GPS, map picker and combined manual coordinates */
.location-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.location-method{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:76px;border:1px solid #d9e3ed;border-radius:14px;background:#f7f9fc;padding:12px 14px;color:#486078;text-align:left;cursor:pointer;transition:.18s ease}.location-method:hover{border-color:#9dbde4;background:#f2f7fd}.location-method.active{border-color:#4d91e9;background:#eaf3ff;color:#124b91;box-shadow:0 0 0 3px rgba(20,103,231,.08)}.location-method>span:last-child{display:grid;min-width:0}.location-method strong{font-size:.82rem}.location-method small{color:#7a8c9e;font-size:.66rem;font-weight:500}.location-method-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#e5edf6;color:#1467e7;font-size:1.15rem;font-weight:800}.location-method.active .location-method-icon{color:#fff;background:#1467e7}.location-method-panel[hidden]{display:none!important}.map-picker-panel,.manual-coordinate-panel{overflow:hidden;border:1px solid #d7e2ec;border-radius:15px;background:#f7fafd}.map-picker-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 15px}.map-picker-head>div{display:grid}.map-picker-head strong{font-size:.82rem}.map-picker-head small{color:#78899b;font-size:.68rem}.map-picker-head>span{border-radius:999px;background:#e8f1f9;padding:6px 10px;color:#315777;font-size:.67rem;font-weight:700;white-space:nowrap}.start-location-map{height:360px;border-top:1px solid #d7e2ec;background:#e1eaf1}.start-location-map .leaflet-control-attribution{font-size:9px}.map-picker-error{display:grid;height:100%;place-items:center;padding:25px;color:#8b3141;text-align:center}.manual-coordinate-panel{padding:16px}.manual-coordinate-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:7px}.manual-coordinate-row input{font-variant-numeric:tabular-nums}.manual-coordinate-panel>small{display:block;margin-top:7px;color:#718396;font-size:.69rem}.manual-coordinate-panel>small.error{color:#b7223b}.manual-coordinate-panel>small.success{color:#087b51}.manual-coordinate-panel input[aria-invalid="true"]{border-color:#d9364b;box-shadow:0 0 0 3px rgba(217,54,75,.1)}.location-selected{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;border:1px solid #9edcc1;border-radius:13px;background:#edfaf4;padding:11px 14px}.location-selected[hidden]{display:none!important}.location-selected-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#13a66e;color:#fff;font-weight:800}.location-selected>div{display:grid}.location-selected strong{color:#087650;font-size:.8rem}.location-selected small{color:#4e7466;font-size:.69rem;font-variant-numeric:tabular-nums}
@media (max-width:760px){.location-methods{grid-template-columns:1fr;gap:7px}.location-method{min-height:62px;padding:9px 11px}.location-method-icon{width:35px;height:35px}.map-picker-head{align-items:flex-start;flex-direction:column;gap:7px}.start-location-map{height:320px}.manual-coordinate-row{grid-template-columns:1fr}.manual-coordinate-row .btn{width:100%}}

/* V3.1 — clearly separated Admin center and province/station drill-down report */
.admin-dashboard-body{background:#edf3f7}.admin-shell-wide{width:min(1660px,calc(100% - 32px))}.admin-section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:24px}.admin-section-nav>a{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-height:78px;border:1px solid #dbe5ed;border-radius:16px;background:#fff;padding:13px 16px;color:#34536d;box-shadow:0 5px 20px rgba(16,39,66,.04);transition:.18s ease}.admin-section-nav>a:hover{border-color:#91b6d2;transform:translateY(-1px)}.admin-section-nav>a.active{border-color:#1768aa;background:linear-gradient(135deg,#0c3b61,#176e9f);color:#fff;box-shadow:0 10px 28px rgba(13,75,119,.18)}.admin-section-nav>a>span:last-child{display:grid;min-width:0}.admin-section-nav strong{font-size:.86rem}.admin-section-nav small{margin-top:2px;color:#8092a3;font-size:.66rem}.admin-section-nav a.active small{color:#c9e0ef}.admin-nav-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#edf4f9;color:#145e94;font-size:.76rem;font-weight:900}.admin-section-nav a.active .admin-nav-icon{background:rgba(255,255,255,.14);color:#fff}.admin-overview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.admin-overview-head h1{max-width:960px;margin:0;font-size:clamp(1.65rem,3vw,2.65rem);letter-spacing:-.035em}.admin-overview-head p:last-child{margin:5px 0 0;color:var(--muted)}.admin-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.admin-overview-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:13px}.admin-overview-kpis article{position:relative;display:grid;min-width:0;border:1px solid rgba(13,53,84,.08);border-radius:15px;background:#fff;padding:15px 17px;box-shadow:0 6px 22px rgba(16,39,66,.05)}.admin-overview-kpis article.live{color:#fff;background:linear-gradient(140deg,#087f76,#20a38f)}.admin-overview-kpis span{color:#718397;font-size:.68rem}.admin-overview-kpis .live span,.admin-overview-kpis .live small{color:#dcfff7}.admin-overview-kpis strong{font-size:1.8rem;line-height:1.15}.admin-overview-kpis small{color:#8796a4;font-size:.65rem}.admin-report-filter{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(160px,.7fr) minmax(280px,1.5fr) auto;align-items:end;gap:10px;border:1px solid #dbe5ed;border-radius:16px 16px 0 0;background:#fff;padding:15px 17px}.admin-report-filter label{display:grid;gap:6px;color:#536b80;font-size:.68rem;font-weight:700}.admin-report-filter input,.admin-report-filter select{min-height:44px}.admin-summary-card{overflow:hidden;border:1px solid #dbe5ed;border-top:0;border-radius:0 0 18px 18px;background:#fff;box-shadow:0 10px 32px rgba(16,39,66,.06)}.admin-summary-title{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px}.admin-summary-title h2{margin:1px 0 0;font-size:1.15rem}.admin-summary-title p:last-child{margin:3px 0 0;color:#7d8d9c;font-size:.7rem}.data-as-of{display:grid;text-align:right}.data-as-of span{color:#7a8a9a;font-size:.62rem}.data-as-of strong{color:#153d5d;font-size:.76rem}.admin-summary-scroll{overflow:auto;border-top:1px solid #e3eaf0}.admin-summary-table{width:100%;min-width:1450px;border-collapse:separate;border-spacing:0;color:#0c3555;font-variant-numeric:tabular-nums}.admin-summary-table th,.admin-summary-table td{border-right:1px solid #17466c;border-bottom:1px solid #17466c;padding:9px 8px;text-align:center;font-size:.7rem}.admin-summary-table thead th{color:#07395c;font-size:.69rem;font-weight:800;line-height:1.25}.admin-summary-table thead th small{font-size:.58rem}.admin-summary-table thead tr:first-child th{border-top:1px solid #17466c}.admin-summary-table .unit-col{position:sticky;z-index:5;left:0;min-width:180px;border-left:1px solid #17466c;background:#96c47f;font-size:1rem}.admin-summary-table .group-checkpoint{background:#98c87e}.admin-summary-table .group-person{background:#f4c62f}.admin-summary-table .group-arrest{background:#79a8b5}.admin-summary-table .group-evidence{background:#d8d2e9}.admin-summary-table .detail-col{background:#d6e2ec}.admin-summary-table tbody tr:nth-child(odd){background:#f6faf7}.admin-summary-table tbody tr:nth-child(even){background:#e7f1e5}.admin-summary-table tbody tr:hover{background:#fff5cd}.admin-summary-table tbody .unit-name{position:sticky;z-index:3;left:0;border-left:1px solid #17466c;background:inherit;text-align:left}.admin-summary-table tbody .num{text-align:right}.admin-summary-table tbody .person-cell{background:rgba(236,246,251,.58)}.admin-summary-table tbody .arrest-cell{background:rgba(255,247,217,.48)}.admin-summary-table tbody .evidence-cell{background:rgba(225,220,240,.48)}.admin-summary-table .detail-cell{white-space:nowrap}.admin-summary-table .detail-cell a{display:inline-flex;border-radius:999px;background:#e7f2fb;padding:6px 9px;color:#0d6099;font-size:.63rem;font-weight:800}.admin-summary-table tfoot th,.admin-summary-table tfoot td{padding:13px 9px;color:#fff;font-size:.82rem;font-weight:900}.admin-summary-table tfoot th{position:sticky;z-index:4;left:0;border-left:1px solid #17466c;background:#26771f;font-size:1rem}.admin-summary-table tfoot td:nth-of-type(-n+3){background:#2b7a24}.admin-summary-table tfoot td:nth-of-type(4){background:#c89500}.admin-summary-table tfoot td:nth-of-type(5),.admin-summary-table tfoot td:nth-of-type(6){background:#13596a}.admin-summary-table tfoot td:nth-of-type(n+7):nth-of-type(-n+11){background:#871648}.admin-summary-table tfoot td:nth-of-type(12){background:#143e5d}.admin-summary-note{margin:0;padding:12px 18px;color:#788898;font-size:.66rem}.admin-users-heading{margin-top:2px}.admin-user-table-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.admin-user-table-head h2{margin:0;font-size:1rem}.admin-user-table-head p{margin:2px 0 0;color:#7b8b9c;font-size:.68rem}
@media (max-width:1000px){.admin-section-nav{grid-template-columns:1fr}.admin-section-nav>a{min-height:66px}.admin-overview-head{align-items:flex-start;flex-direction:column}.admin-head-actions{justify-content:flex-start}.admin-overview-kpis{grid-template-columns:repeat(2,1fr)}.admin-report-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-report-filter label:nth-child(3){grid-column:1/-1}}
@media (max-width:760px){.admin-shell-wide{width:calc(100% - 20px)}.admin-section-nav{gap:7px;margin-bottom:18px}.admin-section-nav>a{min-height:60px;padding:9px 11px}.admin-nav-icon{width:36px;height:36px}.admin-section-nav small{display:none}.admin-overview-head h1{font-size:1.55rem}.admin-head-actions{width:100%}.admin-head-actions .btn{flex:1;min-width:135px}.admin-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-overview-kpis article{padding:12px}.admin-overview-kpis strong{font-size:1.5rem}.admin-report-filter{grid-template-columns:1fr;padding:13px}.admin-report-filter label:nth-child(3){grid-column:auto}.admin-summary-title{align-items:flex-start;flex-direction:column;padding:15px}.data-as-of{text-align:left}.admin-summary-table{min-width:1320px}.admin-users-heading{align-items:flex-start}.admin-user-table-head{padding:5px 4px 0}}

/* V3.4 — compact pulsing checkpoint dots on Situation and LED maps */
.checkpoint-pin{--pin-color:#13a66e;position:relative;width:34px;height:34px;border:0;border-radius:50%;background:transparent;box-shadow:none;transform:none}
.checkpoint-pin.recent{--pin-color:#ef9f20;background:transparent}
.checkpoint-pin::before,.checkpoint-pin::after{position:absolute;top:50%;left:50%;width:10px;height:10px;border:2px solid var(--pin-color);border-radius:50%;content:"";opacity:.8;transform:translate(-50%,-50%) scale(.7);animation:checkpoint-pulse 1.6s ease-out infinite}
.checkpoint-pin::after{animation-delay:.8s}
.checkpoint-pin span{position:absolute;top:50%;left:50%;display:block;width:10px;height:10px;margin:0;border:2px solid #fff;border-radius:50%;background:var(--pin-color);box-shadow:0 2px 9px rgba(7,38,54,.38);transform:translate(-50%,-50%);animation:checkpoint-blink 1.6s ease-in-out infinite}
@keyframes checkpoint-pulse{0%{opacity:.8;transform:translate(-50%,-50%) scale(.7)}75%,100%{opacity:0;transform:translate(-50%,-50%) scale(2.8)}}
@keyframes checkpoint-blink{0%,100%{opacity:1;filter:brightness(1)}50%{opacity:.7;filter:brightness(1.3)}}

/* V3.7 — simplified, larger and easier-to-read operational detail table */
.report-unit-summary-card{margin:14px 0;border-top:1px solid #dbe5ed;border-radius:18px}.report-unit-summary-card .admin-summary-title{padding:22px 24px}.report-unit-summary-card .admin-summary-title h2{font-size:1.35rem;line-height:1.35}.report-unit-summary-card .admin-summary-title p:last-child{font-size:.8rem}.report-unit-summary-card .data-as-of span{font-size:.7rem}.report-unit-summary-card .data-as-of strong{font-size:.86rem}.report-summary-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.summary-back-link{display:inline-flex;min-height:40px;align-items:center;border:1px solid #d4e1ec;border-radius:10px;background:#f1f6fa;padding:8px 12px;color:#175c8d;font-size:.76rem;font-weight:800}.summary-back-link:hover{border-color:#8bb8d8;background:#e9f3fa}.report-operation-summary-table{min-width:1240px}.report-operation-summary-table .unit-col{min-width:245px}.report-operation-summary-table th,.report-operation-summary-table td{padding:13px 11px;font-size:.84rem;line-height:1.45}.report-operation-summary-table thead th{font-size:.82rem;line-height:1.35}.report-operation-summary-table thead th small{font-size:.68rem}.report-operation-summary-table tbody .unit-name strong{font-size:.86rem}.report-operation-summary-table tfoot th,.report-operation-summary-table tfoot td{padding:15px 11px;font-size:.92rem}.report-operation-summary-table tfoot td:nth-of-type(1){background:#2b7a24}.report-operation-summary-table tfoot td:nth-of-type(2){background:#c89500}.report-operation-summary-table tfoot td:nth-of-type(3),.report-operation-summary-table tfoot td:nth-of-type(4){background:#13596a}.report-operation-summary-table tfoot td:nth-of-type(n+5):nth-of-type(-n+9){background:#871648}.report-unit-summary-card .admin-summary-note{padding:14px 20px;font-size:.76rem;line-height:1.55}.unit-drill-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;color:#0b446c}.unit-drill-link span{white-space:nowrap;border-radius:999px;background:#e1f0fa;padding:5px 8px;color:#0d6199;font-size:.66rem;font-weight:800}.unit-drill-link:hover span{background:#0d6199;color:#fff}
@media (max-width:760px){.report-unit-summary-card .admin-summary-title{padding:17px}.report-unit-summary-card .admin-summary-title h2{font-size:1.18rem}.report-summary-actions{width:100%;align-items:flex-start;justify-content:space-between}.report-summary-actions .data-as-of{margin-left:auto}.summary-back-link{flex:0 0 auto}.report-operation-summary-table{min-width:1160px}.report-operation-summary-table th,.report-operation-summary-table td{padding:12px 10px;font-size:.82rem}.unit-drill-link{grid-template-columns:1fr}.unit-drill-link span{width:max-content}}

/* V3.9 — fit the operational summary table to desktop screens */
.report-unit-summary-card{max-width:100%;overflow:hidden}.report-unit-summary-card .admin-summary-scroll{max-width:100%}
@media (min-width:901px){
  .report-unit-summary-card .admin-summary-scroll{overflow-x:hidden}
  .report-operation-summary-table{width:100%;min-width:0;table-layout:fixed}
  .report-operation-summary-table .unit-col{width:28%;min-width:0}
  .report-operation-summary-table thead tr:first-child>.group-checkpoint{width:11%}
  .report-operation-summary-table thead tr:first-child>.group-person{width:12%}
  .report-operation-summary-table thead tr:first-child>.group-arrest{width:13%}
  .report-operation-summary-table thead tr:first-child>.group-evidence{width:36%}
  .report-operation-summary-table th,.report-operation-summary-table td{padding:12px clamp(5px,.55vw,11px)}
  .report-operation-summary-table tbody .unit-name{white-space:normal;overflow-wrap:anywhere}
  .report-operation-summary-table .num{overflow:hidden;text-overflow:ellipsis}
  .unit-drill-link{grid-template-columns:minmax(0,1fr) auto;gap:clamp(4px,.55vw,10px)}
  .unit-drill-link span{padding:5px clamp(5px,.45vw,8px);white-space:normal;text-align:center;line-height:1.25}
}
@media (min-width:901px) and (max-width:1200px){
  .report-operation-summary-table th,.report-operation-summary-table td{font-size:.78rem}
  .report-operation-summary-table thead th{font-size:.76rem}
  .report-operation-summary-table thead th small{font-size:.64rem}
  .report-operation-summary-table tbody .unit-name strong{font-size:.8rem}
  .unit-drill-link span{font-size:.6rem}
}
@media (max-width:900px){
  .report-unit-summary-card{overflow:visible}
  .report-unit-summary-card .admin-summary-scroll{overflow-x:auto;overscroll-behavior-inline:contain}
  .report-operation-summary-table{width:100%;min-width:1100px;table-layout:auto}
}

/* V3.10 — keep the complete operational summary card inside the browser viewport */
@media (min-width:901px){
  .report-unit-summary-card{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    max-height:calc(100vh - 90px);
    max-height:calc(100dvh - 90px);
    scroll-margin-top:80px;
  }
  .report-unit-summary-card .admin-summary-scroll{
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .report-operation-summary-table{--summary-head-row:43px}
  .report-operation-summary-table thead th{position:sticky;z-index:7}
  .report-operation-summary-table thead tr:first-child>th{top:0}
  .report-operation-summary-table thead tr:nth-child(2)>th{top:var(--summary-head-row)}
  .report-operation-summary-table thead .unit-col{z-index:9}
  .report-operation-summary-table tfoot th,
  .report-operation-summary-table tfoot td{position:sticky;z-index:6;bottom:0}
  .report-operation-summary-table tfoot th{z-index:8}
}

@media (min-width:901px) and (max-height:1100px){
  .report-unit-summary-card .admin-summary-title{padding:12px 18px}
  .report-unit-summary-card .admin-summary-title .eyebrow{margin-bottom:2px;font-size:.66rem}
  .report-unit-summary-card .admin-summary-title h2{font-size:1.15rem;line-height:1.25}
  .report-unit-summary-card .admin-summary-title p:last-child{margin-top:2px;font-size:.74rem;line-height:1.3}
  .report-unit-summary-card .data-as-of span{font-size:.64rem}
  .report-unit-summary-card .data-as-of strong{font-size:.78rem}
  .report-operation-summary-table{--summary-head-row:35px}
  .report-operation-summary-table th,
  .report-operation-summary-table td{padding:7px clamp(5px,.5vw,9px);font-size:.82rem;line-height:1.25}
  .report-operation-summary-table thead th{font-size:.79rem;line-height:1.2}
  .report-operation-summary-table thead th small{font-size:.65rem}
  .report-operation-summary-table tbody .unit-name strong{font-size:.84rem}
  .report-operation-summary-table tfoot th,
  .report-operation-summary-table tfoot td{padding:9px 8px;font-size:.86rem;line-height:1.2}
  .report-unit-summary-card .admin-summary-note{padding:8px 18px;font-size:.7rem;line-height:1.35}
  .unit-drill-link span{padding:3px 7px;font-size:.62rem;line-height:1.2}
}

@media (min-width:901px) and (max-height:760px){
  .report-unit-summary-card{max-height:calc(100vh - 78px);max-height:calc(100dvh - 78px);scroll-margin-top:70px}
  .report-unit-summary-card .admin-summary-title{padding:9px 15px}
  .report-unit-summary-card .admin-summary-title .eyebrow{display:none}
  .report-unit-summary-card .admin-summary-title h2{font-size:1.05rem}
  .report-unit-summary-card .admin-summary-title p:last-child{font-size:.68rem}
  .report-operation-summary-table{--summary-head-row:31px}
  .report-operation-summary-table th,
  .report-operation-summary-table td{padding:5px 6px;font-size:.78rem;line-height:1.18}
  .report-operation-summary-table thead th{font-size:.75rem}
  .report-operation-summary-table thead th small{font-size:.61rem}
  .report-operation-summary-table tbody .unit-name strong{font-size:.8rem}
  .report-operation-summary-table tfoot th,
  .report-operation-summary-table tfoot td{padding:7px 6px;font-size:.82rem}
  .report-unit-summary-card .admin-summary-note{padding:6px 15px;font-size:.66rem}
  .summary-back-link{min-height:34px;padding:5px 9px;font-size:.7rem}
}

/* V4.0.1 — remembered field profile inside LINE MINI App */
.line-profile-status{margin:13px 0;border:1px solid #d6e4ef;border-radius:12px;background:#f2f7fb;padding:10px 12px;color:#48647d;font-size:.76rem;line-height:1.45}
.line-profile-status[hidden],.saved-line-profile[hidden],#fieldProfileForm[hidden]{display:none!important}
.line-profile-status.loading{border-color:#bdd7ef;background:#edf6ff;color:#175f98}
.line-profile-status.success{border-color:#b8e4cf;background:#edfaf4;color:#087650}
.line-profile-status.info{border-color:#ead7a7;background:#fff8e8;color:#785a13}
.line-profile-status.error{border-color:#efc2c9;background:#fff1f3;color:#a51d33}
.saved-line-profile{display:grid;gap:13px;margin-top:17px;border:1px solid #b8e3cf;border-radius:18px;background:linear-gradient(145deg,#effbf5,#f8fcff);padding:20px;box-shadow:0 10px 28px rgba(8,123,81,.08)}
.saved-line-profile-mark{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#13a66e;color:#fff;font-size:1.3rem;font-weight:900;box-shadow:0 8px 20px rgba(19,166,110,.2)}
.saved-line-profile-copy{display:grid;gap:2px}.saved-line-profile-copy small{color:#718598;font-size:.7rem}.saved-line-profile-copy strong{color:#113c5b;font-size:1.15rem;line-height:1.4}.saved-line-profile-copy span{color:#4e6b80;font-size:.84rem}.saved-line-profile-actions{display:block}.saved-line-profile>p{margin:0;color:#738698;text-align:center;font-size:.68rem}
@media (max-width:760px){.saved-line-profile{padding:17px}.saved-line-profile-copy strong{font-size:1.04rem}}

/* V4.1.0 — admin search, edit and safeguarded deletion */
.report-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
.admin-section-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.record-management-shell{max-width:1660px}
.record-search-card{display:grid;grid-template-columns:minmax(260px,1.35fr) repeat(2,minmax(150px,.7fr)) repeat(3,minmax(180px,1fr));align-items:end;gap:11px;border:1px solid rgba(13,53,84,.08);border-radius:18px;background:#fff;padding:18px;box-shadow:0 8px 28px rgba(16,39,66,.06)}
.record-search-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px}
.record-result-card{margin-top:14px;border:1px solid rgba(13,53,84,.08);border-radius:18px;background:#fff;padding:20px;box-shadow:0 8px 28px rgba(16,39,66,.06)}
.record-management-table{width:100%;min-width:1260px;border-collapse:collapse}
.record-management-table th,.record-management-table td{border-bottom:1px solid #e6edf3;padding:11px 10px;text-align:left;vertical-align:top;font-size:.73rem}
.record-management-table th{background:#0b2947;color:#fff;font-size:.66rem;white-space:nowrap}
.record-management-table tbody tr:hover{background:#f8fbfd}
.record-management-table td strong,.record-management-table td small{display:block}
.record-management-table td small{margin-top:2px;color:#7d8e9f;font-size:.65rem}
.record-management-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.record-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.65rem;font-weight:800;white-space:nowrap}
.record-status.active{color:#08764c;background:#e7f9f1}.record-status.closing{color:#8a5a00;background:#fff4d8}.record-status.closed{color:#526678;background:#edf2f6}
.record-metric{display:inline-flex;margin:0 5px 5px 0;border-radius:8px;background:#eff5f9;padding:4px 7px;color:#526b80;font-size:.64rem;white-space:nowrap}.record-metric b{margin-left:4px;color:#123b5c}
.record-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.record-row-actions form{display:flex}
.btn-compact{min-height:34px;border-radius:9px;padding:6px 10px;font-size:.67rem}
.bulk-delete-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.7fr);gap:26px;margin-top:14px;border:1px solid #efc5cb;border-radius:18px;background:linear-gradient(135deg,#fff,#fff6f7);padding:24px;box-shadow:0 8px 28px rgba(117,26,43,.05)}
.bulk-delete-copy h2{margin:1px 0 6px}.bulk-delete-copy>p:last-of-type{max-width:850px;margin-bottom:14px;color:#6f7f90;font-size:.8rem}
.bulk-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bulk-preview-grid span{display:grid;border:1px solid #eadde0;border-radius:12px;background:#fff;padding:10px;color:#768494;font-size:.65rem}.bulk-preview-grid strong{color:#a62239;font-size:1.1rem}
.bulk-delete-form{display:grid;align-content:start;gap:11px;border:1px solid #eed7db;border-radius:14px;background:#fff;padding:16px}.bulk-delete-form>small{color:#8a7780;text-align:center;font-size:.64rem}
.confirm-check{display:flex;align-items:flex-start;gap:9px;border-radius:10px;background:#fff5f6;padding:10px;color:#7a2a39;font-size:.72rem}.confirm-check input{flex:0 0 auto;width:18px;min-height:18px;margin:1px 0 0}.confirm-check span{font-weight:700}
.record-edit-shell{width:min(1160px,calc(100% - 30px));margin:28px auto 70px}.record-edit-shell-narrow{width:min(900px,calc(100% - 30px))}
.record-edit-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.record-edit-head h1{margin:0;font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.035em}.record-edit-head p:last-child{margin:4px 0 0;color:var(--muted)}.record-edit-head-actions{display:flex;align-items:center;gap:9px}
.record-edit-card{border:1px solid rgba(13,53,84,.08);border-radius:20px;background:#fff;padding:clamp(20px,3vw,34px);box-shadow:0 10px 38px rgba(18,42,69,.07)}
.record-form-section{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:8px;border-top:1px solid #e7edf2;padding-top:18px}.record-form-section:first-of-type{margin-top:0;border-top:0;padding-top:0}.record-form-section h2{margin:0;font-size:1.05rem}.record-form-section>small{color:#8090a0;font-size:.68rem}
.record-count-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.record-save-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:10px;border-radius:14px;background:#eff5f9;padding:13px 15px}.record-save-bar span{color:#6f8192;font-size:.7rem}.record-save-bar .btn{min-width:190px}
.record-arrest-card{margin-top:16px}.arrest-management-table{min-width:1040px}

@media (max-width:1200px){
  .admin-section-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .record-search-card{grid-template-columns:repeat(3,minmax(0,1fr))}
  .record-search-keyword{grid-column:span 3}
}
@media (max-width:820px){
  .report-heading-actions{width:100%;justify-content:stretch}.report-heading-actions .btn{flex:1}
  .record-search-card{grid-template-columns:1fr}.record-search-keyword{grid-column:auto}.record-search-actions{display:grid;grid-template-columns:1fr 1fr}
  .bulk-delete-card{grid-template-columns:1fr;padding:18px}.bulk-preview-grid{grid-template-columns:repeat(2,1fr)}
  .record-edit-head{align-items:flex-start;flex-direction:column}.record-edit-head-actions{width:100%;justify-content:space-between}
  .record-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-save-bar{align-items:stretch;flex-direction:column}.record-save-bar .btn{width:100%}
}
@media (max-width:560px){
  .admin-section-nav{grid-template-columns:1fr}
  .record-management-shell{width:calc(100% - 20px)}.record-result-card{padding:14px 10px}
  .record-edit-shell,.record-edit-shell-narrow{width:calc(100% - 20px);margin-top:18px}.record-edit-card{padding:18px 15px}
  .record-edit-card .form-grid.two{grid-template-columns:1fr}.record-count-grid{grid-template-columns:1fr 1fr}
  .bulk-preview-grid{grid-template-columns:1fr 1fr}.record-edit-head-actions{align-items:stretch;flex-direction:column}.record-edit-head-actions .btn{text-align:center}
}

/* V4.2.0: ช่องทางประสานหัวหน้าชุดสำหรับศูนย์ควบคุม */
.command-call-link{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;margin-top:9px;border:1px solid #b8d8ef;border-radius:9px;background:#edf7ff;padding:7px 11px;color:#0769ad;font-size:.68rem;font-weight:800;text-decoration:none}
.command-call-link:before{content:'☎';margin-right:6px}.command-call-link:hover{border-color:#168bd0;background:#e1f2ff}
.marker-leader{margin-top:7px;color:#38546b;font-size:11px}.marker-popup>.command-call-link{display:flex;margin:7px 0 2px}
.leader-call-link,.hero-call-link,.table-call-link,.saved-leader-phone{color:#0876ba;text-decoration:none}
.leader-call-link:hover,.hero-call-link:hover,.table-call-link:hover,.saved-leader-phone:hover{text-decoration:underline}
.table-call-link{display:block;margin-top:3px;font-size:.72rem;font-weight:800}.table-call-link:before{content:'☎ '}.saved-leader-phone{font-weight:800}

/* V4.2.2: แสดงของกลางจากผลจับกุมล่าสุดใน LIVE FEED */
.feed-item .feed-evidence{display:block;margin-top:3px;color:#b67a05;font-weight:700;line-height:1.35;white-space:normal}
.led-live-feed .feed-item .feed-evidence{color:#efbe58}

/* V4.2.3: รายละเอียดของกลางแยกรายคดีและปุ่มคืน GIS ภาพรวม */
.feed-case-list{display:grid;gap:4px;margin-top:5px}.feed-case-list>div{display:grid;border-left:2px solid #e8a62b;border-radius:0 6px 6px 0;background:rgba(232,166,43,.08);padding:4px 7px}.feed-case-list b{color:#d8900d;font-size:.62rem}.feed-case-list span{color:#536b7e;font-size:.6rem}.feed-case-list small{color:#b67a05;font-size:.61rem;font-weight:700;line-height:1.35;white-space:normal}.led-live-feed .feed-case-list>div{background:rgba(239,190,88,.08)}.led-live-feed .feed-case-list b,.led-live-feed .feed-case-list small{color:#efbe58}.led-live-feed .feed-case-list span{color:#8fa9bb}
.led-map-title-actions{display:flex;align-items:center;gap:7px}.led-map-title-actions span{border-radius:999px;background:rgba(80,207,218,.1);padding:5px 9px;color:#72d9e3;font-size:.6rem}.led-map-title-actions button{border:1px solid rgba(94,205,219,.3);border-radius:8px;background:rgba(80,207,218,.1);padding:6px 10px;color:#8ee8ee;font-family:inherit;font-size:.59rem;font-weight:800;cursor:pointer}.led-map-title-actions button:hover{background:rgba(80,207,218,.2);color:#fff}

/* V4.2.4: เลื่อนดู LIVE FEED ได้ครบทุกจุดและทุกคดี */
.led-live-feed{overflow-y:auto;overflow-x:hidden;padding-right:7px;scrollbar-width:thin;scrollbar-color:#2b789e rgba(9,42,64,.55);overscroll-behavior:contain}
.led-live-feed .feed-item:nth-child(n+6){display:grid}
.led-live-feed::-webkit-scrollbar{width:8px}.led-live-feed::-webkit-scrollbar-track{border-radius:999px;background:rgba(9,42,64,.55)}.led-live-feed::-webkit-scrollbar-thumb{border:2px solid rgba(9,42,64,.55);border-radius:999px;background:#2b789e}.led-live-feed::-webkit-scrollbar-thumb:hover{background:#3ba1ca}


/* PATCH V4.2.5 — Admin live checkpoint cancel control */
.admin-live-control{margin:0 0 13px;border:1px solid #dbe5ed;border-radius:18px;background:#fff;box-shadow:0 6px 22px rgba(16,39,66,.05);overflow:hidden}.admin-live-control-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid #e5edf3}.admin-live-control-head h2{margin:0;font-size:1.05rem}.admin-live-control-head p:last-child{margin:3px 0 0;color:#7b8c9b;font-size:.72rem}.admin-live-list{display:grid}.admin-live-row{display:grid;grid-template-columns:auto minmax(220px,1.4fr) minmax(220px,1fr) auto;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid #edf1f4}.admin-live-row:last-child{border-bottom:0}.admin-live-dot{width:11px;height:11px;border-radius:50%;background:#18a477;box-shadow:0 0 0 5px rgba(24,164,119,.12)}.admin-live-main,.admin-live-meta{display:grid;min-width:0}.admin-live-main strong{color:#123d5f;font-size:.92rem}.admin-live-main span,.admin-live-meta span,.admin-live-meta small{color:#7a8b9a;font-size:.68rem}.admin-live-meta strong{color:#314c63;font-size:.78rem}.admin-live-empty{padding:20px;text-align:center;color:#7b8c9b;font-size:.8rem}
@media (max-width:900px){.admin-live-control-head{align-items:flex-start;flex-direction:column}.admin-live-control-head form,.admin-live-control-head .btn{width:100%}.admin-live-row{grid-template-columns:auto 1fr}.admin-live-meta{grid-column:2}.admin-live-row form{grid-column:1/-1}.admin-live-row form .btn{width:100%}}
