@charset "UTF-8";
:root{--ink:#202720;--muted:#737b73;--line:#e2e7e0;--paper:#f5f7f3;--lime:#d4ed59;--olive:#66702c;--green:#26764a;--amber:#936421;--radius:13px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #819b28;outline-offset:3px}button,input,select{border-radius:8px}input,select{font-size:.875rem}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.icon{display:inline-flex;width:20px;height:20px;flex-shrink:0;align-items:center;justify-content:center}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;z-index:9999;background:var(--lime);padding:14px}.skip-link:focus{top:12px}
.topbar{height:82px;background:#1c231d;color:white;padding:0 4%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:22px;flex-shrink:0}.brand img{width:112px;height:58px;object-fit:contain;filter:brightness(0) saturate(100%) invert(89%) sepia(52%) saturate(643%) hue-rotate(14deg) brightness(101%) contrast(87%)}.brand-divider{width:1px;height:29px;background:#ffffff26}.brand>span:last-child{font-size:.68rem;letter-spacing:.16em;line-height:1.7;color:#a6afa5}.brand strong{font-size:.72rem;font-weight:600;color:#e8ece4;letter-spacing:.12em}.topbar-center{display:flex;gap:9px;align-items:center;font-size:.875rem;color:#c7cec2}.topbar-center .icon{color:var(--lime);width:18px}.header-actions{display:flex;gap:24px;align-items:center}.top-link{display:flex;align-items:center;gap:9px;font-size:.875rem;color:#d9dfd5}.top-link .icon{width:16px}.account-button{width:36px;height:36px;border:1px solid #ffffff26;background:#ffffff0b;border-radius:50%;display:grid;place-items:center;color:#e8ecdf}.workspace{max-width:1550px;margin:auto;padding:36px 4% 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.14em;color:#78836f;margin-bottom:10px}h1{font-size:clamp(1.6rem,2.5vw,2.2rem);letter-spacing:-.045em;line-height:1.22;font-weight:650}.title-dot{color:#839933}.page-intro{font-size:.9375rem;color:var(--muted);margin-top:8px;line-height:1.5}.heading-actions{display:flex;align-items:center;gap:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;min-height:42px;padding:10px 16px;font-size:.875rem;line-height:1.4;font-weight:600;transition:background .15s,box-shadow .15s}.button-primary{background:var(--lime);color:#252b16;border-color:#c8e047}.button-primary:hover{background:#c7e348;box-shadow:0 3px 9px #a7ba3424}.button-outline{background:white;border-color:#dce2d7}.button-outline:hover{background:#f3f6ec}.connection-badge{display:flex;align-items:center;gap:7px;font-size:.8125rem;color:#706743;white-space:nowrap}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#a39869;flex-shrink:0}.connection-badge.live{color:var(--green)}.live .status-dot{background:#409565;box-shadow:0 0 0 3px #40956512}.notice{display:flex;align-items:center;gap:11px;background:#eef2df;border:1px solid #e3e8d3;border-radius:9px;padding:12px 16px;color:#596142;font-size:.875rem;line-height:1.5;margin-bottom:22px}.notice>.icon{width:17px}.notice p{flex:1}.notice strong{font-weight:600;color:#424b31}.text-button{border:0;background:transparent;font-size:.8125rem;font-weight:650;white-space:nowrap;padding:5px 0 5px 10px}.text-button span{margin-left:5px}.alert{padding:14px 16px;margin:0 0 18px;border:1px solid #ecd1c2;border-radius:9px;background:#fff3ec;color:#8b3e20;font-size:.875rem;line-height:1.5}
.stats{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:26px;box-shadow:0 2px 3px #26311a02}.stat{padding:21px 24px;display:flex;align-items:flex-start;gap:15px;position:relative}.stat+.stat:before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:1px;background:var(--line)}.stat-icon{width:40px;height:40px;border-radius:10px;background:#f1f3ed;display:grid;place-items:center;color:#657345;flex-shrink:0}.stat-icon.green{background:#edf5ee;color:#348159}.stat-icon.amber{background:#f8f2e7;color:#a7894d}.stat p{font-size:.8125rem;color:#697362;line-height:1.5;margin-bottom:5px}.stat strong{font-size:1.85rem;line-height:1.1;font-weight:620;letter-spacing:-.04em}.stat-foot{display:block;color:#92988e;font-size:.6875rem;line-height:1.4;margin-top:5px}.monitor-window{border:1px solid #d9e0d4;background:white;border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 13px #2a352108;margin-bottom:31px;position:relative}.window-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:0 18px;gap:12px;border-bottom:1px solid var(--line)}.view-tabs{display:flex;align-self:stretch;gap:23px}.view-tab{position:relative;display:flex;align-items:center;gap:8px;font-size:.875rem;padding:18px 0;border:0;background:transparent;color:#798172;border-radius:0;font-weight:500}.view-tab.active{color:#38462a;font-weight:650}.view-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#8d9f3f;border-radius:3px 3px 0 0}.view-tab .icon{width:17px}.window-actions{display:flex;align-items:center;gap:7px}.read-time{font-size:.75rem;color:#858d7e;margin-right:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e7de;background:white;width:33px;height:33px;color:#66725f;border-radius:7px}.icon-button .icon{width:16px;height:16px}.icon-button:hover{background:#f1f4e9}.map-panel{position:relative;height:390px;isolation:isolate;background:#e8eddf}.map-panel #map{width:100%;height:100%;background:#e8eddf;z-index:1}.leaflet-container{font-family:inherit;font-size:.875rem}.leaflet-tile-pane{filter:saturate(.6) contrast(.99)}.map-label{position:absolute;z-index:450;top:19px;left:20px;display:flex;align-items:center;gap:8px;background:white;padding:10px 13px;border-radius:7px;box-shadow:0 2px 6px #1c28121a;font-size:.6875rem;font-weight:650;letter-spacing:.06em;color:#5d6852}.map-label .status-dot{width:6px;height:6px;background:#99a256}.fit-button{position:absolute;z-index:450;top:19px;right:20px;background:white;border:1px solid #dfe3db;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:.8125rem;box-shadow:0 2px 5px #00000008;color:#4d5944}.fit-button .icon{width:16px;height:16px}.leaflet-control-zoom{border:1px solid #d7ddd1!important;box-shadow:0 2px 5px #1c281215!important;margin-bottom:34px!important;margin-right:20px!important}.leaflet-control-zoom a{font-size:21px!important;font-weight:400!important;color:#5d6852!important;width:33px!important;height:33px!important;line-height:32px!important}.leaflet-control-attribution{font-size:.625rem!important;background:#ffffffde!important}.leaflet-control-attribution a{color:#596847!important}.guard-icon{background:none;border:0}.guard-pin{display:flex;align-items:center;justify-content:center;width:37px;height:37px;background:#78893d;border:3px solid #fff;border-radius:50%;box-shadow:0 3px 10px #24341d32;position:relative;color:#fff;transition:background .15s}.guard-pin:after{content:"";position:absolute;inset:-7px;border:1px solid #7990413d;border-radius:50%;background:#849a3320;z-index:-1}.guard-pin svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.guard-pin.offline{background:#9b8358}.guard-pin.unknown{background:#838b82}.guard-pin.selected{background:#20291d;color:#d4ed59;border-color:#d4ed59}.guard-pin.selected:after{background:#d4ed5940;border-color:#c1d44a77;inset:-10px}.marker-name{background:#ffffffed;border:1px solid #e0e5d9;border-radius:4px;box-shadow:0 2px 5px #15280c0a;color:#465239;font-size:.6875rem;font-weight:650;padding:3px 6px}.marker-name:before{display:none}.selected-card{position:absolute;z-index:450;bottom:20px;left:20px;width:286px;padding:17px;background:white;border:1px solid #e0e5da;border-radius:10px;box-shadow:0 4px 18px #26311a16}.selected-top{display:flex;align-items:center;gap:11px;margin-bottom:12px}.avatar{width:39px;height:39px;border-radius:10px;background:#edf1dd;color:#72823c;font-size:.6875rem;font-weight:700;display:grid;place-items:center;flex-shrink:0}.selected-top strong{font-size:.875rem;display:block}.selected-top small{display:block;font-size:.6875rem;color:#879078;margin-top:3px}.selected-top>.status-dot{margin-left:auto}.selected-address{font-size:.8125rem;color:#56614d;line-height:1.5;border-top:1px solid #eef0e9;padding-top:10px;display:flex;gap:7px;align-items:flex-start}.selected-address .icon{width:14px;height:17px}.selected-time{display:block;font-size:.6875rem;color:#8c9486;margin:7px 0 0 21px}.window-footer{padding:12px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-top:1px solid var(--line)}.legend{display:flex;gap:20px;font-size:.6875rem;color:#7b8571}.legend span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%}.online{background:#67853d}.offline{background:#ac9364}.unknown{background:#9aa194}.source-label{display:flex;gap:6px;align-items:center;font-size:.6875rem;color:#8a9282}.source-label .icon{width:12px;height:12px}.traccar-panel{background:#f6f8f3}.frame-notice{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 18px;font-size:.75rem;color:#6d7565;line-height:1.5;border-bottom:1px solid var(--line)}.frame-notice a{display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:600;color:#586733}.frame-notice .icon{width:13px}.traccar-launch{min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:46px 24px;background:linear-gradient(180deg,#fbfcf9,#f4f7ef)}.traccar-launch-icon{width:62px;height:62px;border-radius:18px;background:#eaf2c8;color:#718238;display:grid;place-items:center;margin-bottom:17px}.traccar-launch-icon .icon{width:30px;height:30px}.traccar-launch h3{font-size:1.45rem;letter-spacing:-.03em;margin:4px 0 10px}.traccar-launch>p:not(.eyebrow){max-width:600px;color:#6d7565;line-height:1.65;margin-bottom:22px}.traccar-launch-button{min-width:240px;justify-content:center}.traccar-launch .text-button{margin-top:15px}.traccar-launch small{display:block;max-width:540px;color:#8b9384;line-height:1.5;margin-top:15px}.map-empty{position:absolute;z-index:449;top:50%;left:50%;transform:translate(-50%,-50%);width:min(90%,350px);padding:24px;border:1px solid #dbe3d1;border-radius:12px;background:#fffffff5;text-align:center;box-shadow:0 8px 30px #182a1410}.map-empty>.icon{width:26px;height:26px;color:#899950;margin-bottom:10px}.map-empty strong{display:block;font-size:.875rem}.map-empty p{font-size:.8125rem;color:#79806f;line-height:1.5;margin-top:7px}.map-warning{position:absolute;z-index:460;bottom:4px;left:50%;transform:translateX(-50%);background:#fff4df;border:1px solid #ddc995;border-radius:6px;padding:6px 10px;font-size:.75rem;max-width:95%}.monitor-window:fullscreen,.monitor-window.expanded{height:100vh;width:100vw;margin:0;border:0;border-radius:0;background:white;display:flex;flex-direction:column}.monitor-window.expanded{position:fixed;inset:0;z-index:900}.monitor-window:fullscreen .map-panel,.monitor-window.expanded .map-panel{flex:1;height:auto}.monitor-window:fullscreen .traccar-panel,.monitor-window.expanded .traccar-panel{display:flex;flex:1;flex-direction:column}.monitor-window:fullscreen .traccar-launch,.monitor-window.expanded .traccar-launch{flex:1;min-height:0}.monitor-window:fullscreen .window-footer,.monitor-window.expanded .window-footer{margin-top:auto}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:19px}.section-title{display:flex;align-items:center;gap:10px}h2{font-size:1.2rem;letter-spacing:-.025em;font-weight:620;line-height:1.4}.count-badge{font-size:.6875rem;font-weight:650;background:#e8eddd;border:1px solid #dce4cd;border-radius:5px;color:#6a7852;padding:2px 6px;min-width:24px;text-align:center}.section-heading p{font-size:.8125rem;color:#818978;margin-top:6px;line-height:1.4}.list-controls{display:flex;gap:9px;flex-shrink:0}.search-field{display:flex;align-items:center;gap:8px;background:white;border:1px solid #dfe4d9;border-radius:8px;padding:0 10px;width:245px;min-height:39px}.search-field .icon{width:16px;height:16px;color:#86917c}.search-field input{border:0;padding:9px 0;background:transparent;outline:0!important;width:100%;font-size:.75rem;color:var(--ink)}.search-field:focus-within{outline:2px solid #899b48;outline-offset:1px}input::placeholder{color:#929a88}.list-controls select{padding:9px 25px 9px 11px;border:1px solid #dfe4d9;background:white;color:#647055;font-size:.75rem;max-width:180px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:white}table{width:100%;border-collapse:collapse;text-align:left;font-size:.8125rem}th{background:#fafbf7;padding:13px 18px;color:#849078;font-size:.6875rem;font-weight:550;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #edf0e8;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr{transition:background .15s}tbody tr:hover{background:#fbfcf7}tbody tr.selected{background:#f4f7e9}tbody tr.selected td:first-child{box-shadow:inset 3px 0 #99ad51}.guard-name{display:flex;gap:11px;align-items:center;min-width:143px}.guard-name .avatar{width:34px;height:34px;border-radius:8px;background:#eff2e7;font-size:.625rem}.guard-name strong{display:block;font-size:.8125rem;font-weight:600}.guard-name small{display:block;font-size:.625rem;margin-top:4px;color:#909984;letter-spacing:.025em}.user-names{color:#68715e;font-size:.75rem;max-width:170px;line-height:1.5;overflow-wrap:anywhere}.address-line{display:block;color:#59664d;font-weight:500;line-height:1.5;font-size:.8125rem;max-width:290px;min-width:155px}.coordinate-line{display:block;color:#949d89;font-size:.6875rem;margin-top:4px;font-variant-numeric:tabular-nums}.status-pill{display:inline-flex;align-items:center;gap:6px;font-size:.6875rem;white-space:nowrap;border-radius:5px;padding:5px 8px;background:#eef4e8;color:#5b793b}.status-pill.offline{background:#f7f2e7;color:#937846}.status-pill.unknown{background:#f0f2ed;color:#7e8974}.status-pill .status-dot{width:5px;height:5px;background:currentColor}.report-time{color:#616e54;font-size:.75rem;white-space:nowrap}.report-date{display:block;color:#929b87;font-size:.625rem;margin-top:4px}.row-map-button{display:flex;align-items:center;gap:5px;background:transparent;border:1px solid #dfe6d4;white-space:nowrap;padding:7px 9px;font-size:.6875rem;font-weight:550;color:#667b42}.row-map-button .icon{width:13px;height:13px}.row-map-button:hover{background:#eaf1db;border-color:#b6c88f}.row-map-button:disabled{cursor:default}.table-footer{display:flex;justify-content:space-between;gap:20px;padding:13px 3px;color:#8a947f;font-size:.6875rem}.table-footer>span:last-child{display:flex;gap:5px;align-items:center}.table-footer .icon{width:12px;height:12px}.list-empty{padding:40px 20px;text-align:center}.list-empty>.icon{width:27px;height:27px;color:#869469;margin-bottom:12px}.list-empty h3{font-size:1rem}.list-empty p{font-size:.875rem;color:#818a75;margin:8px 0 18px}.permission-note{font-size:.75rem;line-height:1.5;color:#849078;padding:8px 0}.page-footer{border-top:1px solid var(--line);margin-top:35px;padding:21px 0 25px;display:flex;justify-content:space-between;gap:20px;color:#98a08e;font-size:.6875rem}.page-footer strong{color:#5c694c;font-size:.8125rem;letter-spacing:.06em}.page-footer>span:last-child{display:flex;gap:9px}
dialog{border:1px solid #dbe3d0;border-radius:18px;width:450px;max-width:calc(100% - 30px);max-height:calc(100dvh - 40px);padding:31px;color:var(--ink);background:#fff;box-shadow:0 25px 80px #0d230d30}dialog::backdrop{background:#15201580;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:17px;top:17px;border:0}.dialog-symbol{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:var(--lime);color:#455622;margin-bottom:21px}.dialog-symbol .icon{width:26px;height:26px}dialog .eyebrow{font-size:.625rem;margin-bottom:7px}dialog h2{font-size:1.45rem;margin-bottom:10px}#login-description{font-size:.875rem;line-height:1.65;color:#7a8370}.server-chip{font-size:.8125rem;color:#687650;display:flex;align-items:center;gap:8px;background:#f4f6ef;border:1px solid #e7ecdd;border-radius:7px;padding:10px 12px;margin:18px 0 21px}.server-chip .icon{width:14px;height:14px}#login-form label{display:block;font-size:.8125rem;font-weight:600;margin:16px 0 7px}#login-form input{width:100%;border:1px solid #dbe2d3;padding:11px 12px;background:white;color:var(--ink);height:43px}.password-field{position:relative}.password-field input{padding-right:43px!important}.password-field button{position:absolute;right:4px;top:4px;bottom:4px;width:35px;background:transparent;border:0;color:#89967a;display:grid;place-items:center}.password-field .icon{width:17px}details{font-size:.75rem;color:#808c70;margin:16px 0;line-height:1.5}summary{cursor:pointer}details input{letter-spacing:.2em}.login-submit{width:100%;margin:3px 0 15px;min-height:45px}.privacy-note{font-size:.6875rem;line-height:1.6;color:#8c9680;display:flex;align-items:flex-start;gap:7px}.privacy-note .icon{width:13px;height:15px;margin-top:2px}.setup-link{display:block;text-align:center;color:#7e8a69;font-size:.6875rem;margin-top:18px}.form-error{font-size:.8125rem;line-height:1.5;color:#98482c;background:#fff3ed;border:1px solid #f1d7c8;border-radius:7px;padding:10px;margin:12px 0}.toast{position:fixed;z-index:10000;bottom:22px;left:50%;transform:translateX(-50%);border-radius:9px;padding:13px 20px;background:#28321f;color:#eef4e2;box-shadow:0 6px 30px #15240d30;font-size:.875rem;max-width:90vw}.noscript{padding:30px;background:#fff4d7;position:fixed;bottom:0;left:0;right:0;z-index:10000}.spin .icon{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Compact metadata is secondary; operational labels remain readable. */
.eyebrow,.brand>span:last-child,.brand strong,.stat-foot,.map-label,.legend,.source-label,.marker-name,.selected-time,.selected-top small,.guard-name small,.guard-name .avatar,.status-pill,.report-date,.row-map-button,.table-footer,.page-footer,.privacy-note,.setup-link,dialog .eyebrow{font-size:max(.75rem,12px)}.stat p,.view-tab,.search-field input,.list-controls select,table,.user-names,.report-time,.address-line,.guard-name strong,.selected-address,.frame-notice,.section-heading p{font-size:.875rem}th{font-size:.75rem}.coordinate-line{font-size:.75rem}.leaflet-control-attribution{font-size:12px!important}
@media(min-width:1600px){.map-panel{height:450px}.workspace{padding-top:40px}}@media(max-width:1190px){.topbar-center{display:none}.workspace{padding-left:3%;padding-right:3%}.stat{padding:20px 17px;gap:11px}.stat-foot{font-size:.75rem}.section-heading{align-items:flex-start;flex-direction:column;gap:15px}.list-controls{width:100%;justify-content:space-between}.search-field{width:min(380px,68%)}.heading-actions{gap:12px}.page-intro{font-size:.875rem}.connection-badge{display:none}.map-panel{height:375px}}
@media(max-width:760px){.topbar{height:72px;padding:0 5%;gap:10px}.brand{gap:13px}.brand img{width:85px;height:45px}.brand>span:last-child,.brand strong{font-size:.625rem}.brand-divider{height:25px}.header-actions{gap:13px}.top-link{font-size:.75rem}.top-link .icon{width:13px}.workspace{padding:26px 4.5% 0}.page-heading{align-items:flex-start;gap:12px}.page-intro{max-width:260px;line-height:1.5}h1{font-size:1.65rem}.heading-actions .button{font-size:.75rem;padding:10px;min-height:39px}.heading-actions .icon{display:none}.eyebrow{margin-bottom:8px}.notice{padding:11px 13px;font-size:.8125rem;align-items:flex-start}.notice>.icon{margin-top:3px}.notice>.text-button{display:none}.stats{grid-template-columns:repeat(2,1fr);margin-bottom:22px}.stat{padding:17px 18px;gap:12px}.stat:nth-child(3),.stat:nth-child(4){border-top:1px solid var(--line)}.stat:nth-child(3):before{display:none}.stat+.stat:before{top:18px;bottom:18px}.stat p{font-size:.8125rem}.stat strong{font-size:1.5rem}.stat-icon{width:34px;height:34px}.stat-icon .icon{width:18px;height:18px}.stat-foot{font-size:.75rem}.window-toolbar{padding:0 12px;gap:8px;flex-wrap:wrap;min-height:56px}.view-tabs{gap:17px}.view-tab{font-size:.8125rem;padding:16px 0}.view-tab .icon{width:16px}.read-time{display:none}.window-actions{gap:5px}.icon-button{width:30px;height:30px}.map-panel{height:395px}.map-label{left:13px;top:13px;padding:9px 11px;font-size:.625rem}.fit-button{right:13px;top:13px;font-size:.75rem;padding:8px}.selected-card{left:13px;bottom:27px;width:235px;padding:13px}.selected-address{font-size:.8125rem}.selected-time{font-size:.75rem;margin-top:4px}.window-footer{padding:11px 13px;gap:7px}.legend{gap:12px;font-size:.625rem}.source-label{font-size:.625rem}.source-label>.icon{display:none}.section-heading{margin-bottom:15px}.section-heading h2{font-size:1.05rem}.section-heading p{font-size:.8125rem;max-width:400px}.search-field{width:60%;padding:0 9px}.search-field input,.list-controls select{font-size:.8125rem}.list-controls select{max-width:40%;padding:8px}.locations table{min-width:0}.locations thead{display:none}.locations tbody{display:grid;grid-template-columns:1fr}.locations tr{display:grid;grid-template-columns:1fr auto;padding:16px;gap:11px 10px;border-bottom:1px solid #e8eddc}.locations tr:last-child{border-bottom:0}.locations td{border:0;padding:0}.locations td:nth-child(1){grid-column:1;grid-row:1}.locations td:nth-child(2){grid-column:1;grid-row:2}.locations td:nth-child(2):before{content:"Usuario: ";font-size:.75rem;color:#8b947f}.locations td:nth-child(2) .user-names{display:inline;font-size:.75rem;max-width:100%}.locations td:nth-child(3){grid-column:1 / 3;grid-row:3;padding:10px 0;border-top:1px solid #e5ebd9}.locations td:nth-child(4){grid-column:2;grid-row:1;align-self:center}.locations td:nth-child(5){grid-column:1;grid-row:4}.locations td:nth-child(6){grid-column:2;grid-row:4;align-self:center}.locations tbody tr.selected td:first-child{box-shadow:none}.locations tbody tr.selected{box-shadow:inset 3px 0 #99ad51}.address-line{font-size:.875rem;max-width:100%}.coordinate-line{font-size:.75rem}.guard-name strong{font-size:.875rem}.guard-name small{font-size:.75rem}.guard-name .avatar{width:38px;height:38px;font-size:.75rem}.status-pill,.row-map-button{font-size:.75rem}.report-time{font-size:.8125rem}.report-date{display:inline;font-size:.75rem;margin-left:8px}.table-footer{font-size:.75rem;line-height:1.4;gap:10px}.table-footer>span:last-child{align-items:flex-start;max-width:47%}.table-footer .icon{flex-shrink:0;margin-top:2px}.frame-notice{font-size:.75rem;padding:10px;align-items:flex-start}.traccar-launch{min-height:480px;padding:34px 18px}.page-footer{margin-top:22px;font-size:.75rem;line-height:1.5}.page-footer>span:last-child{max-width:48%;text-align:right}.page-footer>span:last-child span{display:none}.monitor-window{margin-bottom:25px}.map-warning{width:90%;font-size:.75rem;bottom:0}.source-label{max-width:125px;line-height:1.3;text-align:right}.legend{flex-wrap:wrap;row-gap:5px}}
@media(max-width:430px){.top-link{font-size:0}.top-link .icon{width:18px;height:18px}.header-actions{gap:12px}.page-heading{flex-direction:column;gap:16px}.heading-actions{width:100%;justify-content:space-between}.connection-badge{display:flex}.heading-actions .button{font-size:.8125rem;padding:9px 14px}.page-intro{max-width:100%}.stat{padding:16px 12px;gap:9px}.stat-icon{width:30px;height:30px}.stat-foot{font-size:.75rem}.view-tabs{gap:13px}.view-tab{font-size:.75rem}.view-tab .icon{display:none}.window-toolbar{gap:5px;padding:0 10px}.window-actions{gap:5px}.map-panel{height:405px}.fit-button{font-size:.75rem}.map-label{font-size:.625rem;max-width:185px}.map-label .status-dot{display:none}.selected-card{width:225px}.legend{gap:9px}.legend span{font-size:.625rem}.source-label{font-size:.625rem}.list-controls{flex-wrap:wrap}.search-field{width:100%}.list-controls select{max-width:100%;width:100%}.section-title{align-items:flex-start}.section-heading h2{font-size:1.05rem}.page-footer{font-size:.625rem}.page-footer>span:last-child{max-width:43%}dialog{padding:25px}dialog h2{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.export-button{font-size:.8125rem;min-height:39px;padding:8px 12px;color:#57713b;background:#f8fbef;border-color:#d7e1c7}.export-button .icon{width:16px;height:16px}#history-description{font-size:.875rem;color:#77836b;line-height:1.6}#history-form label{display:block;font-size:.875rem;font-weight:550;margin:18px 0 7px}#history-form input,#history-form select{width:100%;padding:11px 12px;border:1px solid #dbe2d3;color:#35432b;background:white;font-size:.875rem;min-height:44px}.history-hint{font-size:.75rem;color:#859477;line-height:1.5;margin:14px 0 16px}#history-submit{margin:0 0 14px}.list-controls{flex-wrap:wrap;justify-content:flex-end}.section-heading{align-items:flex-start}.section-heading>div:first-child{min-width:260px}.search-field{width:220px}@media(max-width:1190px){.list-controls{justify-content:flex-start}.search-field{flex:1;min-width:210px}}@media(max-width:760px){.list-controls .export-button{width:100%;justify-content:center}.search-field{width:60%;min-width:0}.list-controls{justify-content:space-between}}@media(max-width:430px){.search-field{width:100%;flex:auto}}

.report-age{display:block;font-size:.75rem;color:#6f815b;margin-top:5px}.report-age.stale{color:#a26b29;font-weight:600}.accuracy-line{display:block;margin-top:4px;color:#7b866e}.frame-notice .text-button{font-size:.75rem;padding:0}.guard-name .avatar .icon{width:17px;height:17px}

/* v2.3 · dirección enriquecida */
.selected-address>span{min-width:0}.selected-street{display:block;color:#35412f;font-weight:700;line-height:1.35}.selected-full-address{display:block;margin-top:3px;color:#66715d;line-height:1.4}.selected-geocode-source{display:block;margin-top:5px;color:#929a89;font-size:.625rem;line-height:1.35}.selected-address .selected-street:first-child{word-break:break-word}

.top-link-button{border:0;background:transparent;padding:0;cursor:pointer}
.selected-card{width:min(390px,calc(100% - 40px))}.selected-full-address{max-width:330px}
@media(max-width:760px){.traccar-panel{height:560px}.traccar-embed-toolbar{align-items:flex-start}.traccar-embed-toolbar .button{min-height:34px;padding:7px 9px;font-size:.75rem}.selected-card{width:min(330px,calc(100% - 26px))}}

/* v3.1 · geocercas, recorridos y entorno */
.map-tool-button{min-height:34px;padding:7px 10px;font-size:.75rem;white-space:nowrap}.map-tool-button .icon{width:15px;height:15px}.route-summary-card{position:absolute;right:18px;bottom:26px;z-index:520;width:min(360px,calc(100% - 36px));background:#fffffff2;border:1px solid #dfe6d6;border-radius:10px;box-shadow:0 8px 30px #24351a1f;padding:13px 15px;color:#3c4935;font-size:.75rem;line-height:1.45}.route-summary-card strong{display:block;color:#263121;font-size:.875rem;margin-bottom:4px}.route-summary-card .route-meta{display:flex;gap:10px;flex-wrap:wrap;color:#718066}.route-summary-card .route-stops{margin-top:8px;max-height:120px;overflow:auto;border-top:1px solid #e5eadf;padding-top:7px}.route-summary-card .route-stop{display:flex;justify-content:space-between;gap:8px;padding:4px 0}.route-summary-card button{border:0;background:transparent;color:#607d39;font-weight:600;cursor:pointer;padding:5px 0}#route-form label{display:block;font-size:.875rem;font-weight:550;margin:15px 0 7px}#route-form input,#route-form select{width:100%;padding:11px 12px;border:1px solid #dbe2d3;color:#35432b;background:white;font-size:.875rem;min-height:44px}#route-submit{width:100%;margin-top:16px}.geofence-label{background:#f4f8e8;border:1px solid #b9ca79;color:#4b5d30;font-weight:700;border-radius:6px;box-shadow:0 2px 8px #23300f1a;padding:2px 6px}.poi-icon{background:#fff;border:2px solid #4f6335;border-radius:50%;width:28px!important;height:28px!important;display:grid;place-items:center;font-size:14px;box-shadow:0 3px 10px #1d251722}.stop-icon{background:#fff6df;border:2px solid #b78025;border-radius:50%;width:26px!important;height:26px!important;display:grid;place-items:center;font-size:11px;font-weight:700;color:#8d651d;box-shadow:0 3px 9px #5a411b2b}@media(max-width:760px){.map-tool-button{font-size:0;width:31px;padding:0;display:grid;place-items:center}.map-tool-button .icon{width:16px;height:16px}.route-summary-card{left:13px;right:13px;bottom:28px;width:auto}.selected-card:not([hidden])~.route-summary-card{bottom:190px}}

/* v3.2 · navegación táctil, flechas de recorrido y POI más legibles */
.zoom-hint{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:510;background:#172013dd;color:#f7faef;border:1px solid #ffffff24;border-radius:999px;padding:7px 12px;font-size:.6875rem;line-height:1.2;box-shadow:0 5px 16px #0002;pointer-events:none;transition:opacity .35s ease,transform .35s ease;white-space:nowrap}.zoom-hint.fade{opacity:0;transform:translate(-50%,-8px)}
.route-main-line{filter:drop-shadow(0 1px 1px #fff)}
.route-arrow-wrap{background:transparent;border:0}.route-arrow-wrap>div{position:relative;width:40px;height:40px}.route-arrow{position:absolute;left:8px;top:8px;width:24px;height:24px;display:grid;place-items:center;background:#fff;border:2px solid #527b38;border-radius:50%;font-size:18px;line-height:1;color:#355b25;box-shadow:0 3px 10px #1c2d1738;transform-origin:50% 50%}.route-seq{position:absolute;right:-2px;bottom:-2px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#263b1f;color:#fff;border:2px solid #fff;font-size:9px;font-weight:800;font-variant-numeric:tabular-nums}.route-arrow-wrap.revisit .route-arrow{border-style:double;border-width:4px;background:#fff8dc}.route-revisit-badge{position:absolute;left:-8px;top:-8px;min-width:22px;height:19px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#9d6d1f;color:white;border:2px solid white;font-size:9px;box-shadow:0 2px 7px #0003}.route-popup{min-width:235px;color:#35422f}.route-popup-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}.route-popup-head strong{display:block;font-size:.9rem}.route-popup-head small{display:block;color:#87937e;margin-top:1px}.route-popup-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf3df;color:#4a6a32}.route-popup-avatar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.route-revisit-chip{display:inline-flex;background:#fff1c8;color:#805b18;border:1px solid #e6c978;border-radius:999px;padding:3px 7px;font-size:.67rem;font-weight:700;margin-bottom:7px}.route-popup-time{font-weight:650;margin-bottom:7px}.route-popup-address{display:flex;flex-direction:column;gap:2px;padding-top:7px;border-top:1px solid #e5eadf}.route-popup-address span,.route-popup-meta{font-size:.7rem;color:#778372}.route-popup-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}.route-stop-popup{display:flex;flex-direction:column;gap:4px;min-width:210px}.route-stop-popup span{color:#697665}.route-help{margin:8px 0 0;color:#697665;font-size:.7rem;line-height:1.45}.stop-icon{display:grid!important;grid-template-columns:1fr;grid-template-rows:1fr;place-items:center}.stop-icon span{font-size:12px;line-height:1}.stop-icon b{position:absolute;right:-5px;bottom:-5px;background:#835d1c;color:#fff;border:2px solid #fff;border-radius:999px;min-width:16px;height:16px;display:grid;place-items:center;font-size:8px}.poi-icon{background:transparent!important;border:0!important;box-shadow:none!important}.poi-icon span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fff;border:2px solid #546a40;box-shadow:0 3px 10px #1d25172b;font-size:18px}.poi-police span{border-color:#3d5f86}.poi-traffic_signal span{border-color:#6b6b42}.poi-roadwork span{border-color:#956b2d}.poi-popup{display:flex;flex-direction:column;gap:4px;min-width:210px}.poi-popup span{color:#677563}.poi-popup small{color:#8a9483;line-height:1.35}
@media(max-width:760px){.zoom-hint{top:auto;bottom:76px;max-width:84%;white-space:normal;text-align:center;font-size:.625rem}.route-arrow{width:26px;height:26px}.route-popup{min-width:200px}.leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important;font-size:22px!important}.leaflet-control-scale{margin-bottom:8px!important}}



/* v3.4 · tema oscuro neón + rendimiento de recorridos */
html{background:#050806}html.light-mode{background:var(--paper)}
.theme-toggle{width:36px;height:36px;border:1px solid #39ff14;background:#07100a;border-radius:50%;display:grid;place-items:center;color:#7dff6a;box-shadow:0 0 0 1px #39ff1424,0 0 18px #39ff1415;transition:border-color .18s,box-shadow .18s,transform .18s}.theme-toggle:hover{border-color:#79ff65;box-shadow:0 0 22px #39ff1433}.theme-toggle:active{transform:scale(.96)}.theme-toggle .icon{width:18px;height:18px}body.light-mode .theme-toggle{border-color:#dce2d7;background:white;color:#5f6e54;box-shadow:none}
body:not(.light-mode){--ink:#eaf6eb;--muted:#91a798;--line:#183d26;--paper:#050806;--lime:#65ff52;--olive:#54c866;--green:#43ff7b;--amber:#ffc85b;color:#eaf6eb;background:radial-gradient(circle at 50% -20%,#0d2b17 0,#07100a 34%,#050806 68%);color-scheme:dark;min-height:100vh}
body:not(.light-mode) .topbar{background:#030604;border-bottom:1px solid #1b7f38;box-shadow:0 8px 28px #0008,0 0 24px #39ff1410}
body:not(.light-mode) .brand img{filter:brightness(0) saturate(100%) invert(91%) sepia(95%) saturate(1720%) hue-rotate(47deg) brightness(111%) contrast(107%)}
body:not(.light-mode) .brand-divider{background:#39ff1438}body:not(.light-mode) .brand>span:last-child{color:#789581}body:not(.light-mode) .brand strong,body:not(.light-mode) .top-link{color:#d9f7dc}body:not(.light-mode) .account-button{border-color:#2dc64d66;background:#07100a;color:#74ff7d;box-shadow:0 0 16px #39ff1412}
body:not(.light-mode) .eyebrow{color:#66e77b}body:not(.light-mode) .title-dot{color:#65ff52}body:not(.light-mode) .page-intro,body:not(.light-mode) .section-heading p{color:#8da296}
body:not(.light-mode) .button-primary{background:#58f24f;color:#021005;border-color:#80ff70;box-shadow:0 0 18px #39ff1422}body:not(.light-mode) .button-primary:hover{background:#72ff65;box-shadow:0 0 24px #39ff1438}
body:not(.light-mode) .button-outline,body:not(.light-mode) .icon-button,body:not(.light-mode) .export-button{background:#070c08;border-color:#1f7f38;color:#baf7c1}body:not(.light-mode) .button-outline:hover,body:not(.light-mode) .icon-button:hover,body:not(.light-mode) .export-button:hover{background:#0b1710;border-color:#3eea62;box-shadow:0 0 14px #39ff1418}
body:not(.light-mode) .connection-badge{color:#a7c5ae}body:not(.light-mode) .connection-badge.live{color:#5cff83}body:not(.light-mode) .status-dot{background:#7d927f}body:not(.light-mode) .live .status-dot{background:#46ff79;box-shadow:0 0 0 3px #46ff7920,0 0 10px #46ff7955}
body:not(.light-mode) .notice{background:#07140b;border-color:#1c6331;color:#9cc5a4}body:not(.light-mode) .notice strong{color:#d6f7da}body:not(.light-mode) .alert,body:not(.light-mode) .form-error{background:#1a0c09;border-color:#7e3428;color:#ff9f8c}
body:not(.light-mode) .stats,body:not(.light-mode) .monitor-window,body:not(.light-mode) .table-wrap{background:#070b08;border-color:#1d7134;box-shadow:0 8px 34px #0007,0 0 24px #39ff1408}
body:not(.light-mode) .stat+.stat:before{background:#153c23}body:not(.light-mode) .stat p{color:#91ad98}body:not(.light-mode) .stat-foot{color:#6e8675}body:not(.light-mode) .stat-icon,body:not(.light-mode) .stat-icon.green,body:not(.light-mode) .stat-icon.amber,body:not(.light-mode) .avatar{background:#0c1c11;color:#66ff7b;border:1px solid #1d713455}
body:not(.light-mode) .window-toolbar,body:not(.light-mode) .window-footer{background:#060a07;border-color:#173f25}body:not(.light-mode) .view-tab{color:#789281}body:not(.light-mode) .view-tab.active{color:#c8f7ce}body:not(.light-mode) .view-tab.active:after{background:#56ff6d;box-shadow:0 0 12px #39ff1466}body:not(.light-mode) .read-time,body:not(.light-mode) .legend,body:not(.light-mode) .source-label{color:#789080}
body:not(.light-mode) .map-panel,body:not(.light-mode) .map-panel #map{background:#050806}body:not(.light-mode) .leaflet-tile-pane{filter:brightness(.54) invert(1) contrast(1.32) hue-rotate(155deg) saturate(.42)}
body:not(.light-mode) .map-label,body:not(.light-mode) .fit-button{background:#061009eF;border:1px solid #2aa84a;color:#c7f9ce;box-shadow:0 0 18px #39ff141d}body:not(.light-mode) .map-label .status-dot{background:#58ff70;box-shadow:0 0 10px #58ff70}
body:not(.light-mode) .leaflet-control-zoom{border-color:#247b38!important;box-shadow:0 0 16px #39ff1418!important}body:not(.light-mode) .leaflet-control-zoom a{background:#061009!important;color:#79ff87!important;border-color:#173f25!important}body:not(.light-mode) .leaflet-control-attribution{background:#040804e8!important;color:#6f8b76!important}body:not(.light-mode) .leaflet-control-attribution a{color:#79d98a!important}
body:not(.light-mode) .leaflet-popup-content-wrapper,body:not(.light-mode) .leaflet-popup-tip{background:#07100a;color:#d9f5dd}body:not(.light-mode) .leaflet-popup-content-wrapper{border:1px solid #247b38;box-shadow:0 8px 30px #0009,0 0 18px #39ff1415}body:not(.light-mode) .leaflet-popup-close-button{color:#7eff8a!important}
body:not(.light-mode) .guard-pin{background:#12823a;border-color:#63ff7b;box-shadow:0 0 16px #39ff1450}body:not(.light-mode) .guard-pin.offline{background:#755a27;border-color:#d4aa55}body:not(.light-mode) .guard-pin.unknown{background:#435048;border-color:#8fa297}body:not(.light-mode) .guard-pin.selected{background:#020703;color:#7dff70;border-color:#7dff70;box-shadow:0 0 24px #39ff1470}body:not(.light-mode) .marker-name{background:#061009ef;border-color:#247b38;color:#bdf6c4;box-shadow:0 0 12px #39ff1414}
body:not(.light-mode) .selected-card,body:not(.light-mode) .route-summary-card,body:not(.light-mode) .map-empty{background:#061009f2;border-color:#247b38;color:#dff8e2;box-shadow:0 8px 30px #0009,0 0 18px #39ff1412}body:not(.light-mode) .selected-top small,body:not(.light-mode) .selected-time,body:not(.light-mode) .selected-full-address,body:not(.light-mode) .selected-geocode-source{color:#7f9986}body:not(.light-mode) .selected-address{color:#b6d8bc;border-color:#173f25}body:not(.light-mode) .selected-street{color:#e6f9e8}
body:not(.light-mode) .route-summary-card strong{color:#e5f8e7}body:not(.light-mode) .route-summary-card .route-meta,body:not(.light-mode) .route-help{color:#84a08b}body:not(.light-mode) .route-summary-card .route-stops{border-color:#173f25}body:not(.light-mode) .route-summary-card button{color:#68ff7a}body:not(.light-mode) .route-main-line{filter:drop-shadow(0 0 4px #39ff14)}body:not(.light-mode) .route-arrow{background:#041007;border-color:#67ff78;color:#67ff78;box-shadow:0 0 14px #39ff144f}body:not(.light-mode) .route-seq{background:#123d20;border-color:#65ff75;color:#effff1}body:not(.light-mode) .route-arrow-wrap.revisit .route-arrow{background:#151407;border-color:#d5c04e}body:not(.light-mode) .route-revisit-badge{background:#9b7a23;border-color:#f1db6f}body:not(.light-mode) .route-popup,body:not(.light-mode) .route-stop-popup{color:#ddf5e0}body:not(.light-mode) .route-popup-avatar{background:#0c2514;color:#69ff7d}body:not(.light-mode) .route-popup-head small,body:not(.light-mode) .route-popup-address span,body:not(.light-mode) .route-popup-meta,body:not(.light-mode) .route-stop-popup span{color:#84a08a}body:not(.light-mode) .route-popup-address{border-color:#1d4e2c}
body:not(.light-mode) .section-title h2{color:#eaf6eb}body:not(.light-mode) .count-badge{background:#0b1a10;border-color:#1c6931;color:#70ef83}body:not(.light-mode) .search-field,body:not(.light-mode) .list-controls select{background:#060b07;border-color:#1f6d34;color:#d9f1dd}body:not(.light-mode) .search-field:focus-within{outline-color:#45e762}body:not(.light-mode) input::placeholder{color:#657b6b}
body:not(.light-mode) th{background:#08100a;color:#7f9986;border-color:#173f25}body:not(.light-mode) td{border-color:#112e1c}body:not(.light-mode) tbody tr:hover{background:#0a140d}body:not(.light-mode) tbody tr.selected{background:#0c1b10}body:not(.light-mode) tbody tr.selected td:first-child{box-shadow:inset 3px 0 #54ff6a}body:not(.light-mode) .address-line,body:not(.light-mode) .guard-name strong,body:not(.light-mode) .report-time{color:#d8efdc}body:not(.light-mode) .coordinate-line,body:not(.light-mode) .report-date,body:not(.light-mode) .report-age,body:not(.light-mode) .user-names,body:not(.light-mode) .table-footer,body:not(.light-mode) .page-footer{color:#799080}body:not(.light-mode) .status-pill.online{background:#0a2413;color:#63ff7d;border-color:#1c7135}body:not(.light-mode) .status-pill.offline{background:#241c0c;color:#e2b65d;border-color:#715721}body:not(.light-mode) .status-pill.unknown{background:#151a17;color:#a6b7aa;border-color:#3f4e43}body:not(.light-mode) .row-map-button{color:#6fff7d}
body:not(.light-mode) dialog{background:#07100a;color:#e9f8eb;border-color:#2ba749;box-shadow:0 25px 90px #000c,0 0 26px #39ff1415}body:not(.light-mode) dialog::backdrop{background:#010401d9;backdrop-filter:blur(7px)}body:not(.light-mode) .dialog-symbol{background:#57ff63;color:#042007;box-shadow:0 0 22px #39ff1440}body:not(.light-mode) #login-description,body:not(.light-mode) #history-description{color:#91a798}body:not(.light-mode) .server-chip{background:#0a160d;border-color:#1c6030;color:#a7cdb0}body:not(.light-mode) #login-form input,body:not(.light-mode) #history-form input,body:not(.light-mode) #history-form select,body:not(.light-mode) #route-form input,body:not(.light-mode) #route-form select{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .password-field button{color:#72e983}body:not(.light-mode) .history-hint,body:not(.light-mode) .privacy-note,body:not(.light-mode) .setup-link{color:#76917d}
body:not(.light-mode) .geofence-label{background:#07140b;border-color:#2dc253;color:#9cffaa}body:not(.light-mode) .poi-icon span{background:#07100a;border-color:#42e568;box-shadow:0 0 13px #39ff142e}body:not(.light-mode) .poi-popup span,body:not(.light-mode) .poi-popup small{color:#809a87}
body:not(.light-mode) .toast{background:#061009;color:#dcfbe0;border:1px solid #36ce55;box-shadow:0 8px 34px #000a,0 0 22px #39ff1423}
body:not(.light-mode) .monitor-window:fullscreen,body:not(.light-mode) .monitor-window.expanded{background:#050806}
body:not(.light-mode) *{scrollbar-color:#246d38 #07100a;scrollbar-width:thin}
@media(max-width:760px){.theme-toggle{width:32px;height:32px}.theme-toggle .icon{width:16px;height:16px}body:not(.light-mode) .locations tr{border-color:#153b23}body:not(.light-mode) .locations td:nth-child(3){border-color:#153b23}}


/* Mobile compact selected-card optimization */
@media(max-width:760px){
  .selected-card{
    left:10px;
    bottom:10px;
    width:min(210px,calc(100% - 20px));
    padding:10px 11px;
    border-radius:9px;
  }
  .selected-top{gap:8px;margin-bottom:8px}
  .selected-top strong{font-size:.8125rem;line-height:1.2}
  .selected-top small{font-size:.625rem;margin-top:2px;line-height:1.25}
  .avatar{width:32px;height:32px;border-radius:8px}
  .selected-address{
    padding-top:8px;
    gap:6px;
    font-size:.75rem;
    line-height:1.3;
  }
  .selected-address .icon{width:12px;height:14px;margin-top:1px}
  .selected-address>span{display:block;min-width:0}
  .selected-street{display:block;font-size:.78125rem;line-height:1.25}
  .selected-full-address{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    margin-top:2px;
  }
  .selected-geocode-source{display:none}
  .selected-time{margin:6px 0 0 18px;font-size:.625rem;line-height:1.35}
  .selected-time .accuracy-line{display:block;margin-top:2px}
  .selected-card:not([hidden])~.route-summary-card{bottom:150px}
}
@media(max-width:430px){
  .selected-card{
    left:9px;
    bottom:9px;
    width:min(190px,calc(100% - 18px));
    padding:9px 10px;
  }
  .selected-top{gap:7px;margin-bottom:7px}
  .selected-top strong{font-size:.78125rem}
  .selected-top small{font-size:.59375rem}
  .selected-address{font-size:.71875rem;line-height:1.25}
  .selected-street{font-size:.75rem}
  .selected-full-address{display:none}
  .selected-time{margin-left:17px;font-size:.59375rem}
  .selected-card:not([hidden])~.route-summary-card{bottom:138px}
}


/* v3.5 · grupos, bitácora operativa y tarjeta móvil compacta */
.group-link-line{stroke:#4ecf69;filter:drop-shadow(0 0 3px #39ff1440)}
.group-map-label-wrap,.event-map-wrap,.route-endpoint-wrap{background:transparent!important;border:0!important}
.group-map-label{min-width:118px;max-width:155px;padding:5px 9px;border-radius:8px;background:#f8fff5e8;border:1px solid #75a45c;box-shadow:0 4px 14px #24351a22;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.15;color:#33452d;backdrop-filter:blur(4px)}
.group-map-label b{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:138px}.group-map-label small{font-size:.55rem;color:#70806a;margin-top:2px}
.group-popup,.event-popup{display:flex;flex-direction:column;gap:5px;min-width:210px}.group-popup>span,.group-popup>small,.event-popup>span,.event-popup>small{color:#70806a;font-size:.72rem;line-height:1.4}.event-popup p{margin:3px 0 0;padding-top:6px;border-top:1px solid #e5eadf;font-size:.76rem;line-height:1.4}
.event-map-icon{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #527b38;color:#355b25;font-size:.7rem;font-weight:800;box-shadow:0 3px 10px #1c2d1738}.event-map-icon.event-contratiempo{border-color:#b75b47;color:#913d2d}.event-map-icon.event-descanso{border-color:#5b78a9;color:#375985}.event-map-icon.event-parada{border-color:#b48739;color:#86611e}
.route-endpoint{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;border:3px solid #4a8c52;box-shadow:0 3px 13px #1c2d1744;color:#34723e;font-size:15px}.route-endpoint.flag{border-color:#3d5f86;color:#284e78}
.route-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.route-endpoints>div{border:1px solid #e0e7da;border-radius:8px;padding:7px;min-width:0}.route-endpoints b,.route-endpoints span,.route-endpoints small{display:block}.route-endpoints b{font-size:.67rem;text-transform:uppercase;letter-spacing:.05em}.route-endpoints span{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.route-endpoints small,.route-stop small{font-size:.6rem;color:#899482;margin-top:2px;display:block}.route-events{max-height:95px!important}.route-event-item{border-left:2px solid #ad7135;padding-left:7px!important}

.ops-dialog{width:min(780px,calc(100% - 30px))}.event-dialog{width:min(520px,calc(100% - 30px))}.ops-description{font-size:.83rem;line-height:1.55;color:#77816f;margin-bottom:18px}.groups-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:22px;align-items:start}.ops-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:.82rem}.groups-list{display:flex;flex-direction:column;gap:8px;max-height:465px;overflow:auto;padding-right:3px}.group-card{border:1px solid #e0e6db;border-radius:10px;padding:10px 11px;display:flex;justify-content:space-between;gap:9px;background:#fafbf8}.group-card>div:first-child{min-width:0}.group-card strong{font-size:.78rem;display:block}.group-card small{display:block;color:#7d8775;font-size:.66rem;line-height:1.35;margin-top:3px}.group-card p{font-size:.62rem;line-height:1.4;color:#90998b;margin-top:5px}.group-card-actions{display:flex;flex-direction:column;gap:3px;flex-shrink:0}.group-card-actions button{border:0;background:transparent;color:#617348;font-size:.66rem;font-weight:650;padding:3px}
#group-form label,.event-dialog form label{display:block;font-size:.76rem;font-weight:600;margin:11px 0 5px}#group-form input,.event-dialog form input,.event-dialog form select,.event-dialog form textarea{width:100%;border:1px solid #dbe2d3;padding:9px 10px;background:white;color:var(--ink);border-radius:8px}.event-dialog form textarea{resize:vertical;min-height:74px;font:inherit;font-size:.82rem}.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.members-fieldset{border:1px solid #e1e7db;border-radius:10px;margin:14px 0;padding:10px}.members-fieldset legend{font-size:.72rem;font-weight:650;padding:0 5px}.member-checks{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:210px;overflow:auto}.member-check{display:flex!important;align-items:center;gap:8px;border:1px solid #e7ebe3;border-radius:8px;padding:7px;margin:0!important;background:#fbfcfa;cursor:pointer}.member-check input{width:16px!important;height:16px;margin:0}.member-check span{min-width:0}.member-check strong,.member-check small{display:block}.member-check strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-check small{font-size:.6rem;color:#899283;margin-top:2px}.ops-empty{font-size:.72rem;color:#8a9483;line-height:1.45;padding:10px 2px}#group-save,.event-dialog form .button{width:100%;margin-top:8px}.event-location-preview{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;margin-top:12px;border:1px solid #dde5d7;border-radius:8px;background:#f7f9f4;color:#687661}.event-location-preview .icon{width:15px;height:17px}.event-location-preview span,.event-location-preview strong,.event-location-preview small{display:block}.event-location-preview strong{font-size:.69rem}.event-location-preview small{font-size:.64rem;line-height:1.4;margin-top:2px}.recent-events{margin-top:18px;padding-top:13px;border-top:1px solid #e2e8dc}.recent-events>strong{font-size:.76rem}.events-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:210px;overflow:auto}.event-row{display:grid;grid-template-columns:24px 1fr 24px;gap:8px;align-items:start;padding:7px;border:1px solid #e5eae0;border-radius:8px}.event-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1px solid #6a8555;font-size:.6rem;font-weight:800}.event-dot.event-contratiempo{border-color:#ad5a49}.event-dot.event-descanso{border-color:#5874a3}.event-row strong,.event-row small,.event-row p{display:block}.event-row strong{font-size:.68rem}.event-row small{font-size:.59rem;color:#8b9585;margin-top:2px}.event-row p{font-size:.64rem;line-height:1.3;color:#6f7b69;margin-top:3px}.event-row button{border:0;background:transparent;color:#8b9485;font-size:1rem;line-height:1;padding:1px}

body:not(.light-mode) .group-map-label{background:#061009ef;border-color:#30bd50;color:#c9f7ce;box-shadow:0 0 15px #39ff1424}body:not(.light-mode) .group-map-label small{color:#7f9a85}body:not(.light-mode) .group-link-line{stroke:#59ff70;filter:drop-shadow(0 0 4px #39ff1460)}body:not(.light-mode) .event-map-icon,body:not(.light-mode) .route-endpoint{background:#061009;border-color:#5dff74;color:#79ff8a;box-shadow:0 0 14px #39ff143f}body:not(.light-mode) .event-map-icon.event-contratiempo{border-color:#ff806d;color:#ff9d8e}body:not(.light-mode) .event-map-icon.event-descanso{border-color:#79a8ff;color:#a8c6ff}body:not(.light-mode) .route-endpoint.flag{border-color:#78aaff;color:#a9c6ff}body:not(.light-mode) .group-popup>span,body:not(.light-mode) .group-popup>small,body:not(.light-mode) .event-popup>span,body:not(.light-mode) .event-popup>small{color:#86a08c}body:not(.light-mode) .event-popup p{border-color:#173f25}body:not(.light-mode) .route-endpoints>div{border-color:#1a5130;background:#07120a}body:not(.light-mode) .route-endpoints small,body:not(.light-mode) .route-stop small{color:#789080}
body:not(.light-mode) .ops-description{color:#8ca294}body:not(.light-mode) .group-card,body:not(.light-mode) .member-check,body:not(.light-mode) .event-row{background:#07120a;border-color:#1c5e30}body:not(.light-mode) .group-card small,body:not(.light-mode) .group-card p,body:not(.light-mode) .member-check small,body:not(.light-mode) .event-row small,body:not(.light-mode) .event-row p{color:#789080}body:not(.light-mode) .group-card-actions button{color:#72f286}body:not(.light-mode) #group-form input,body:not(.light-mode) .event-dialog form input,body:not(.light-mode) .event-dialog form select,body:not(.light-mode) .event-dialog form textarea{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .members-fieldset{border-color:#1b5830}body:not(.light-mode) .event-location-preview{background:#07150b;border-color:#1d6633;color:#a5c6ac}body:not(.light-mode) .recent-events{border-color:#173f25}

@media(max-width:760px){
  .ops-dialog{padding:22px;width:calc(100% - 18px);max-width:none}.groups-layout{grid-template-columns:1fr;gap:16px}.groups-list{max-height:200px}.ops-grid{grid-template-columns:1fr 1fr}.member-checks{grid-template-columns:1fr 1fr;max-height:170px}.route-endpoints{grid-template-columns:1fr}.route-summary-card{max-height:58%;overflow:auto}
  .selected-card{left:8px;bottom:8px;width:min(205px,calc(100% - 70px));padding:8px 9px}.selected-top{margin-bottom:5px}.selected-top .avatar{width:29px;height:29px}.selected-address{padding-top:5px;font-size:.69rem;line-height:1.2}.selected-full-address,.selected-geocode-source,.accuracy-line{display:none!important}.selected-time{margin:4px 0 0 17px;font-size:.58rem;line-height:1.2}.selected-top small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:132px}.selected-card:not([hidden])~.route-summary-card{bottom:118px}
}
@media(max-width:430px){.ops-grid,.member-checks{grid-template-columns:1fr}.selected-card{width:min(190px,calc(100% - 62px));padding:7px 8px}.selected-top .avatar{width:27px;height:27px}.selected-address{font-size:.66rem}.selected-time{font-size:.56rem}.selected-card:not([hidden])~.route-summary-card{bottom:108px}}

/* v3.6 · tarjeta GPS móvil ultracompacta */
@media(max-width:760px){
  .map-label{left:8px;top:8px;padding:6px 8px;border-radius:7px;font-size:.56rem;max-width:155px;line-height:1.15}
  .fit-button{right:8px;top:8px;padding:6px 8px;font-size:.66rem;min-height:31px;border-radius:7px}
  .fit-button .icon{width:14px;height:14px}

  .selected-card{
    left:7px!important;
    bottom:38px!important;
    width:min(188px,calc(100% - 64px))!important;
    max-height:92px;
    overflow:hidden;
    padding:7px 8px!important;
    border-radius:8px!important;
    box-shadow:0 5px 16px #0003!important;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .selected-top{gap:6px!important;margin-bottom:4px!important;min-width:0}
  .selected-top .avatar{width:25px!important;height:25px!important;border-radius:7px!important}
  .selected-top .avatar .icon{width:13px!important;height:13px!important}
  .selected-top>div{min-width:0;flex:1}
  .selected-top strong{font-size:.70rem!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-top small{font-size:.52rem!important;line-height:1.1!important;margin-top:2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px!important}
  .selected-top>.status-dot{width:6px!important;height:6px!important;flex:0 0 6px!important}
  .selected-address{padding-top:4px!important;gap:4px!important;font-size:.60rem!important;line-height:1.12!important;min-width:0}
  .selected-address .icon{width:10px!important;height:12px!important;margin-top:0!important;flex:0 0 10px}
  .selected-address>span{min-width:0;overflow:hidden}
  .selected-street{font-size:.62rem!important;line-height:1.12!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-full-address,.selected-geocode-source,.accuracy-line{display:none!important}
  .selected-time{margin:3px 0 0 14px!important;font-size:.50rem!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-card:not([hidden])~.route-summary-card{bottom:142px!important}

  /* Un toque amplía la ficha; otro toque vuelve al modo compacto. */
  .selected-card.mobile-expanded{
    width:min(320px,calc(100% - 14px))!important;
    max-height:230px;
    padding:11px 12px!important;
    bottom:34px!important;
    overflow:auto;
  }
  .selected-card.mobile-expanded .selected-top{gap:8px!important;margin-bottom:8px!important}
  .selected-card.mobile-expanded .selected-top .avatar{width:32px!important;height:32px!important}
  .selected-card.mobile-expanded .selected-top strong{font-size:.80rem!important}
  .selected-card.mobile-expanded .selected-top small{font-size:.61rem!important;max-width:none!important}
  .selected-card.mobile-expanded .selected-address{padding-top:8px!important;gap:6px!important;font-size:.72rem!important;line-height:1.3!important}
  .selected-card.mobile-expanded .selected-address .icon{width:13px!important;height:15px!important}
  .selected-card.mobile-expanded .selected-street{font-size:.75rem!important;line-height:1.25!important;white-space:normal}
  .selected-card.mobile-expanded .selected-full-address{display:block!important;font-size:.66rem;margin-top:3px;line-height:1.3}
  .selected-card.mobile-expanded .selected-geocode-source{display:block!important;font-size:.55rem;margin-top:4px}
  .selected-card.mobile-expanded .selected-time{margin:6px 0 0 19px!important;font-size:.60rem!important;white-space:normal;line-height:1.3!important}
  .selected-card.mobile-expanded .accuracy-line{display:block!important;margin-top:2px}
  .selected-card.mobile-expanded:not([hidden])~.route-summary-card{bottom:260px!important}
}
@media(max-width:430px){
  .map-label{max-width:142px;padding:5px 7px;font-size:.53rem}
  .fit-button{width:31px;height:31px;padding:0;font-size:0;display:grid;place-items:center}
  .fit-button .icon{width:15px;height:15px}
  .selected-card{width:min(176px,calc(100% - 58px))!important;max-height:88px;bottom:36px!important;padding:6px 7px!important}
  .selected-top .avatar{width:23px!important;height:23px!important}
  .selected-top strong{font-size:.67rem!important}
  .selected-top small{font-size:.49rem!important;max-width:112px!important}
  .selected-address{font-size:.57rem!important}.selected-street{font-size:.59rem!important}.selected-time{font-size:.48rem!important}
  .selected-card.mobile-expanded{width:calc(100% - 12px)!important;max-height:215px;left:6px!important}
}


/* v3.7 · resumen de recorrido minimizable para liberar el mapa */
.route-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.route-summary-heading{min-width:0;flex:1}
.route-summary-heading>strong{margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-summary-mini{display:none;color:#718066;font-size:.66rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.route-summary-toggle{width:30px;height:30px!important;min-width:30px;padding:0!important;display:grid;place-items:center;border:1px solid #dbe3d5!important;border-radius:8px!important;background:#f8faf5!important;color:#4f623f!important}
.route-summary-toggle .icon{width:15px;height:15px}
.route-summary-card.collapsed{width:auto;max-width:min(245px,calc(100% - 72px));padding:8px 9px;overflow:visible!important;max-height:none!important}
.route-summary-card.collapsed .route-summary-body{display:none}
.route-summary-card.collapsed .route-summary-mini{display:block}
.route-summary-card.collapsed .route-summary-head{align-items:center}
.route-summary-card.collapsed .route-summary-toggle{width:28px;height:28px!important;min-width:28px}
body:not(.light-mode) .route-summary-toggle{background:#07150b!important;border-color:#2c8d43!important;color:#73ff82!important}
body:not(.light-mode) .route-summary-card.collapsed .route-summary-mini{color:#8bad92}

@media(max-width:760px){
  .route-summary-card{left:8px!important;right:8px!important;bottom:148px!important;max-height:42%!important;overflow:auto;border-radius:11px;padding:10px 11px}
  .selected-card.mobile-expanded:not([hidden])~.route-summary-card:not(.collapsed){bottom:260px!important}
  .route-summary-card.collapsed{left:8px!important;right:auto!important;top:48px!important;bottom:auto!important;width:auto!important;max-width:calc(100% - 64px)!important;padding:7px 8px!important;box-shadow:0 4px 14px #0003!important}
  .selected-card:not([hidden])~.route-summary-card.collapsed,.selected-card.mobile-expanded:not([hidden])~.route-summary-card.collapsed{bottom:auto!important}
  .route-summary-card.collapsed .route-summary-heading>strong{font-size:.70rem!important;line-height:1.15}
  .route-summary-card.collapsed .route-summary-mini{font-size:.56rem;max-width:160px}
  .route-summary-card.collapsed .route-summary-toggle{width:27px!important;height:27px!important;min-width:27px!important}
}
@media(max-width:430px){
  .route-summary-card:not(.collapsed){bottom:132px!important;max-height:38%!important}
  .route-summary-card.collapsed{top:44px!important;max-width:calc(100% - 54px)!important}
  .route-summary-card.collapsed .route-summary-mini{max-width:145px}
}

.route-history-dot{stroke:#425f30;fill:#c7ec63;filter:drop-shadow(0 0 2px #20311855)}
body:not(.light-mode) .route-history-dot{stroke:#0b2010;fill:#71ff82;filter:drop-shadow(0 0 3px #39ff1470)}


/* v3.8 · panel de recorrido cerrable y mejor densidad visual */
.map-tool-button.active-tool{background:#eaf8e8;border-color:#8dbb6d;color:#305126;box-shadow:0 0 0 1px #d9ecd5 inset}
body:not(.light-mode) .map-tool-button.active-tool{background:#08160c;border-color:#39ff5a;color:#88ff97;box-shadow:0 0 14px #39ff1428,0 0 0 1px #1f7a34 inset}
.route-summary-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.route-summary-close .icon{width:13px;height:13px}
.route-summary-card[hidden]{display:none!important}
@media(max-width:760px){
  .route-summary-actions{gap:5px}
  .route-summary-toggle,.route-summary-close{width:28px!important;height:28px!important;min-width:28px!important}
}


/* v3.9 · Entorno en toda el área visible */
.map-tool-button.loading-tool .icon{animation:p1sPulse 1s ease-in-out infinite}
@keyframes p1sPulse{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
.poi-icon span{font-weight:800;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.poi-traffic_signal span{border-color:#87a43e!important;background:#f8fff0!important}
.poi-hospital span{border-color:#a44343!important;color:#8d3030!important}
.poi-fire_station span{border-color:#c16b36!important;color:#a34b1f!important}
.poi-fuel span{border-color:#4e6f88!important}
.poi-toll span{border-color:#82683a!important;color:#685225!important}
body:not(.light-mode) .poi-icon span{background:#061009!important;box-shadow:0 0 12px #39ff1422!important}
body:not(.light-mode) .poi-traffic_signal span{border-color:#73ff82!important;color:#eaffed!important}
body:not(.light-mode) .poi-hospital span{border-color:#ff6868!important;color:#ffb2b2!important}
body:not(.light-mode) .poi-fire_station span{border-color:#ff934d!important;color:#ffc49d!important}
body:not(.light-mode) .poi-fuel span{border-color:#6fb8ff!important;color:#b9ddff!important}
body:not(.light-mode) .poi-toll span{border-color:#e4c36b!important;color:#ffeba9!important}


/* v4.0 · Entorno resiliente: reintentos, caché y estado compacto */
.map-tool-button.tool-warning{border-color:#b99b43!important;box-shadow:0 0 0 1px #b99b432b inset!important}
body:not(.light-mode) .map-tool-button.tool-warning{border-color:#e6ca5d!important;color:#f2dc7a!important;box-shadow:0 0 12px #e6ca5d24!important}
@media(max-width:760px){
  .toast{max-width:min(250px,76vw);padding:9px 12px;font-size:.72rem;line-height:1.35;border-radius:8px;bottom:18px;text-align:left}
}


/* v4.1 · Paradas 10+ min y alarma SOS */
.stop-icon.stop-long{border-color:#a66a20!important;background:#fff2d8!important;box-shadow:0 0 0 3px #f2b64d2b,0 4px 12px #4f351b33!important}
body:not(.light-mode) .stop-icon.stop-long{background:#160d03!important;border-color:#ffae3f!important;color:#ffd28a!important;box-shadow:0 0 14px #ff9f2440!important}
.sos-sound-button{position:relative}
.sos-sound-button.sos-active{border-color:#ff3434!important;color:#c51616!important;background:#fff0f0!important;animation:sosButtonPulse .75s ease-in-out infinite alternate}
body:not(.light-mode) .sos-sound-button.sos-active{border-color:#ff4f4f!important;color:#ff7b7b!important;background:#250707!important;box-shadow:0 0 18px #ff26265c!important}
@keyframes sosButtonPulse{from{transform:scale(1)}to{transform:scale(1.05)}}
.sos-settings-dialog{max-width:460px}
.sos-symbol{background:#fff0f0!important;color:#b62828!important}
body:not(.light-mode) .sos-symbol{background:#260909!important;color:#ff6363!important}
.sos-volume-label{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px!important}
.sos-volume-label>span{display:flex;align-items:center;gap:8px}.sos-volume-label .icon{width:18px;height:18px}
.sos-volume{width:100%;accent-color:#d42b2b}
.sos-alert{position:fixed;z-index:5000;right:18px;top:88px;width:min(390px,calc(100vw - 36px));padding:18px;border:2px solid #e12f2f;border-radius:16px;background:#fff7f7;color:#321010;box-shadow:0 18px 60px #5f08083d;animation:sosAlertPulse 1s ease-in-out infinite alternate}
.sos-alert[hidden]{display:none!important}
.sos-alert-head{display:flex;align-items:center;gap:12px}.sos-alert-head small{display:block;font-size:.72rem;font-weight:900;letter-spacing:.12em;color:#b51616}.sos-alert-head strong{display:block;font-size:1.15rem;margin-top:2px}.sos-alert-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#d72d2d;color:white}.sos-alert-icon .icon{width:24px;height:24px}.sos-alert p{margin:10px 0 0;font-size:.82rem;line-height:1.4}.sos-alert-actions{display:flex;gap:8px;margin-top:14px}.sos-alert-actions button{flex:1;border:1px solid #d95a5a;background:white;color:#8c1a1a;border-radius:9px;padding:9px 10px;font-weight:700}.sos-alert-actions button:last-child{background:#c91f1f;color:white;border-color:#c91f1f}
body:not(.light-mode) .sos-alert{background:#160606;color:#ffe8e8;border-color:#ff4c4c;box-shadow:0 18px 60px #000a,0 0 26px #ff24243b}body:not(.light-mode) .sos-alert p{color:#e5bcbc}body:not(.light-mode) .sos-alert-actions button{background:#240909;color:#ffb2b2;border-color:#7b2626}body:not(.light-mode) .sos-alert-actions button:last-child{background:#d22d2d;color:white;border-color:#ff5353}
@keyframes sosAlertPulse{from{box-shadow:0 18px 60px #5f08083d}to{box-shadow:0 18px 60px #5f08085c,0 0 26px #e12f2f55}}
@media(max-width:760px){.sos-alert{top:82px;left:10px;right:10px;width:auto;padding:14px;border-radius:13px}.sos-alert-head strong{font-size:1rem}.sos-alert p{font-size:.74rem}.sos-alert-actions{flex-direction:column}.sos-alert-actions button{min-height:38px}}


/* v4.2 · Alertas de resguardo detenido: 10 min + repetición cada 40 min */
.stop-notify-settings{margin-top:18px;padding-top:15px;border-top:1px solid #e7e9e3}.stop-notify-settings>strong{display:block;font-size:.86rem}.stop-notify-settings>p{margin:6px 0 12px;color:#77806f;font-size:.76rem;line-height:1.45}.stop-notify-settings .button{width:100%;justify-content:center}
body:not(.light-mode) .stop-notify-settings{border-color:#173f25}body:not(.light-mode) .stop-notify-settings>p{color:#829489}
.stop-alert{position:fixed;z-index:4900;right:18px;top:88px;width:min(410px,calc(100vw - 36px));padding:16px;border:2px solid #e49528;border-radius:15px;background:#fffaf0;color:#39260d;box-shadow:0 16px 55px #6a421d35}
.stop-alert[hidden]{display:none!important}.stop-alert-head{display:flex;align-items:center;gap:11px}.stop-alert-head small{display:block;font-size:.70rem;font-weight:900;letter-spacing:.10em;color:#9c5e12}.stop-alert-head strong{display:block;font-size:1.08rem;margin-top:2px}.stop-alert-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e59427;color:white}.stop-alert-icon .icon{width:22px;height:22px}.stop-alert p{margin:9px 0 0;font-size:.80rem;line-height:1.4}.stop-alert-actions{display:flex;gap:7px;margin-top:13px}.stop-alert-actions button{flex:1;border:1px solid #d7a154;background:white;color:#75501d;border-radius:8px;padding:8px 9px;font-weight:700;font-size:.75rem}.stop-alert-actions button:first-child{background:#e59427;color:#241604;border-color:#e59427}
body:not(.light-mode) .stop-alert{background:#130d04;color:#ffe8bd;border-color:#ffad37;box-shadow:0 16px 55px #000a,0 0 20px #ff9c2438}body:not(.light-mode) .stop-alert p{color:#ddc49c}body:not(.light-mode) .stop-alert-actions button{background:#211507;color:#ffd798;border-color:#70491d}body:not(.light-mode) .stop-alert-actions button:first-child{background:#e89024;color:#170e02;border-color:#ffb64d}
@media(max-width:760px){.stop-alert{top:82px;left:10px;right:10px;width:auto;padding:13px;border-radius:12px}.stop-alert-head strong{font-size:.96rem}.stop-alert p{font-size:.72rem}.stop-alert-actions{display:grid;grid-template-columns:1fr 1fr}.stop-alert-actions button:first-child{grid-column:1 / 3}.stop-alert-actions button{min-height:37px}}


/* v4.3 · reporte profesional de flotas */
.fleet-export-button{border-color:#9bc58f;background:#f5fff4}
body:not(.light-mode) .fleet-export-button{background:#07150b;border-color:#2c9143;color:#82ff91}
@media(max-width:760px){.list-controls .fleet-export-button{width:100%;justify-content:center}}

/* v4.7 · colores de estado más claros en modo oscuro */
body:not(.light-mode) .selected-top .status-dot.online{background:#46ff79!important;box-shadow:0 0 0 3px #46ff7920,0 0 10px #46ff7955}
body:not(.light-mode) .selected-top .status-dot.offline{background:#d8b15b!important;box-shadow:0 0 0 3px #d8b15b1e,0 0 10px #d8b15b33}
body:not(.light-mode) .selected-top .status-dot.unknown{background:#98a59d!important;box-shadow:0 0 0 3px #98a59d1c}
body:not(.light-mode) .selected-top.status-online strong{color:#7dff70!important}
body:not(.light-mode) .selected-top.status-offline strong{color:#f0d48c!important}
body:not(.light-mode) .selected-top.status-unknown strong{color:#dff8e2!important}
body:not(.light-mode) .marker-name.marker-name-online{color:#7dff70!important;border-color:#2dbd4f!important;box-shadow:0 0 14px #39ff1426!important}
body:not(.light-mode) .marker-name.marker-name-offline{color:#f0d48c!important;border-color:#b98b3f!important;box-shadow:0 0 12px #d8b15b1f!important}
body:not(.light-mode) .marker-name.marker-name-unknown{color:#d7e5da!important;border-color:#587062!important}


/* v4.8 · leyenda de estados con colores inequívocos en modo oscuro */
body:not(.light-mode) .window-footer .legend span:nth-child(1){color:#67ff7a!important;font-weight:700}
body:not(.light-mode) .window-footer .legend span:nth-child(1) .legend-dot{background:#46ff79!important;box-shadow:0 0 8px #46ff7966}
body:not(.light-mode) .window-footer .legend span:nth-child(2){color:#d8b15b!important}
body:not(.light-mode) .window-footer .legend span:nth-child(2) .legend-dot{background:#d8b15b!important}
body:not(.light-mode) .window-footer .legend span:nth-child(3){color:#9da9a1!important}
body:not(.light-mode) .window-footer .legend span:nth-child(3) .legend-dot{background:#9da9a1!important}


/* v4.9 · barra móvil compacta como el diseño original (una sola fila) */
@media(max-width:760px){
  .monitor-window .window-toolbar{
    position:relative!important;
    z-index:650!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-height:auto!important;
    padding:12px 12px 0!important;
    gap:8px!important;
    overflow:visible!important;
  }
  .monitor-window .view-tabs{
    width:100%!important;
    min-width:0!important;
    align-self:auto!important;
    gap:0!important;
  }
  .monitor-window .view-tab{
    padding:12px 0 10px!important;
  }
  .monitor-window .window-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    align-items:center!important;
    justify-items:stretch!important;
    gap:7px!important;
    padding:0 0 0!important;
    margin:0 auto!important;
  }
  .monitor-window .window-actions>*{
    margin:0!important;
    min-width:0!important;
  }
  .monitor-window .read-time{display:none!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{
    position:relative!important;
    z-index:2!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    width:100%!important;
    height:42px!important;
    min-width:0!important;
    min-height:42px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:9px!important;
    line-height:1!important;
  }
  .monitor-window .map-tool-button{
    font-size:0!important;
    white-space:nowrap!important;
  }
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{
    width:18px!important;
    height:18px!important;
    margin:0!important;
    display:block!important;
    flex:0 0 18px!important;
  }
}
@media(max-width:430px){
  .monitor-window .window-toolbar{padding-left:10px!important;padding-right:10px!important}
  .monitor-window .window-actions{gap:6px!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{height:40px!important;min-height:40px!important;border-radius:8px!important}
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{width:17px!important;height:17px!important;flex-basis:17px!important}
}
@media(max-width:360px){
  .monitor-window .window-actions{gap:5px!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{height:38px!important;min-height:38px!important}
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{width:16px!important;height:16px!important;flex-basis:16px!important}
}


/* v5.0 · estabilidad de controles */
.monitor-window .map-tool-button:disabled,.monitor-window .icon-button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){
  .monitor-window .window-actions{isolation:isolate}
  .monitor-window .window-actions button{user-select:none;-webkit-tap-highlight-color:transparent}
}


/* v5.2 mejoras móvil */
.dialog-close{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:transparent;z-index:3}.dialog-close .icon{width:18px;height:18px}.event-ops-grid input{text-transform:none}
@media(max-width:760px){dialog{width:calc(100% - 14px);max-width:none;max-height:calc(100dvh - 16px);padding:56px 16px 18px;border-radius:16px;margin:8px auto}.dialog-close{top:10px;right:10px;width:42px;height:42px;background:rgba(255,255,255,.06);border:1px solid rgba(114,242,134,.22)}.ops-dialog,.event-dialog,.sos-settings-dialog{width:calc(100% - 14px)!important;padding:56px 16px 18px!important;border-radius:16px!important}.event-dialog{max-width:none!important}.event-ops-grid{grid-template-columns:1fr!important}.event-dialog .recent-events{padding-top:12px}.event-dialog .events-list{max-height:180px}}
body:not(.light-mode) .dialog-close{background:#07120a;border-color:#1f6c34}


/* v5.3 · Modo Viaje */
.trip-toolbar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:var(--panel)}
.trip-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 14px;border:1px solid #2f7e43;border-radius:10px;background:transparent;color:var(--ink);font-weight:700;cursor:pointer}
.trip-button .icon{width:18px;height:18px}.trip-button.active{border-color:#42ff69;color:#42ff69;box-shadow:0 0 14px #42ff6920}
.trip-status{flex:1;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;min-width:0;border:1px solid #2f7e43;border-radius:10px;padding:8px 10px;background:#f7fbf4}
.trip-status[hidden]{display:none!important}.trip-status-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#dff6d8;color:#2e6c35}.trip-status-icon .icon{width:17px;height:17px}.trip-status strong,.trip-status small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trip-status strong{font-size:.76rem}.trip-status small{font-size:.66rem;color:#74806d;margin-top:2px}.trip-mini-button{width:34px;height:34px;border:1px solid #cbd8c3;background:white;color:#49633f;border-radius:8px;display:grid;place-items:center;cursor:pointer}.trip-mini-button .icon{width:16px;height:16px}.trip-stop-button{color:#9a3d32}.trip-preview{display:flex;flex-direction:column;gap:5px;margin-top:14px;padding:11px 12px;border:1px solid #dbe5d6;border-radius:10px;background:#f7faf5}.trip-preview strong{font-size:.82rem}.trip-preview span{font-size:.74rem}.trip-preview small{font-size:.66rem;color:#788572}.trip-dialog form label{display:block;font-size:.76rem;font-weight:600;margin:12px 0 5px}.trip-dialog form select{width:100%;min-height:43px;border:1px solid #dbe2d3;border-radius:8px;padding:9px 10px;background:white;color:var(--ink)}.trip-dialog form .button{width:100%;margin-top:14px}.trip-route-line{stroke:#43ff68!important;filter:drop-shadow(0 0 4px rgba(67,255,104,.35))}.trip-destination-pin{width:36px;height:36px;border-radius:12px;background:#07120a;border:2px solid #45ff69;color:#45ff69;display:grid;place-items:center;box-shadow:0 0 15px #45ff6940}.trip-destination-pin svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.trip-destination-label{background:#07120a!important;color:#7cff8f!important;border:1px solid #3dff60!important;border-radius:7px!important;box-shadow:0 0 12px #3dff6020!important;font-weight:700!important;padding:4px 7px!important}
body:not(.light-mode) .trip-toolbar{background:#030806;border-color:#165529}body:not(.light-mode) .trip-button{color:#cfe8d3;border-color:#24753a;background:#041009}body:not(.light-mode) .trip-status{background:#041009;border-color:#267b3d}body:not(.light-mode) .trip-status-icon{background:#0a2512;color:#5dff78}body:not(.light-mode) .trip-status small{color:#7ea489}body:not(.light-mode) .trip-mini-button{background:#061009;border-color:#1f6c34;color:#8dff9e}body:not(.light-mode) .trip-stop-button{color:#ff8177}body:not(.light-mode) .trip-preview{background:#061009;border-color:#1d6432}body:not(.light-mode) .trip-dialog form select{background:#050906;border-color:#206f36;color:#e6f6e8}
@media(max-width:760px){.trip-toolbar{padding:9px 10px;gap:8px}.trip-button{width:44px;height:44px;min-height:44px;padding:0;border-radius:11px;flex:0 0 44px}.trip-button-text{display:none}.trip-button .icon{width:21px;height:21px}.trip-status{grid-template-columns:auto minmax(0,1fr) auto auto;padding:7px 8px;gap:7px}.trip-status-icon{width:30px;height:30px}.trip-status strong{font-size:.72rem}.trip-status small{font-size:.61rem}.trip-mini-button{width:32px;height:32px}.trip-dialog{width:calc(100% - 14px)!important;max-height:calc(100dvh - 16px)!important;padding:56px 16px 18px!important;border-radius:16px!important}}

/* v5.4 · viaje individual para personal de resguardo */
.trip-dialog form input{width:100%;min-height:43px;border:1px solid #dbe2d3;border-radius:8px;padding:9px 10px;background:white;color:var(--ink);font:inherit}
.trip-solo-grid{margin-top:2px}
#trip-group-fields[hidden],#trip-solo-fields[hidden]{display:none!important}
body:not(.light-mode) .trip-dialog form input{background:#050906;border-color:#206f36;color:#e6f6e8}
@media(max-width:760px){.trip-solo-grid{grid-template-columns:1fr!important}.trip-dialog form input,.trip-dialog form select{min-height:45px}}


/* v5.5 · creación de geocercas desde P1S */
.trip-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.geofence-create-button{border-color:#2e8e46}.geofence-create-button .icon{color:#77ff8a}.geofence-pick-hint{display:flex;align-items:center;justify-content:center;gap:9px;padding:9px 12px;background:#102015;color:#dfffe4;border-top:1px solid #276c39;font-size:.76rem;font-weight:650}.geofence-pick-hint[hidden]{display:none}.geofence-pick-hint .icon{width:16px;height:16px;color:#72ff84}.geofence-pick-hint button{border:1px solid #3f8350;border-radius:8px;background:#07100a;color:#bfffc8;padding:5px 9px;font-size:.69rem;font-weight:700}.geofence-picking{cursor:crosshair!important}.geofence-dialog{width:min(520px,calc(100% - 30px))}.geofence-dialog form label{display:block;font-size:.76rem;font-weight:600;margin:12px 0 6px}.geofence-dialog form>input{width:100%;border:1px solid #dbe2d3;padding:10px 11px;background:white;color:var(--ink);border-radius:8px;min-height:43px}.geofence-radius-row{display:grid;grid-template-columns:1fr 78px;gap:12px;align-items:center}.geofence-radius-row input{width:100%}.geofence-radius-row strong{text-align:center;border:1px solid #dce5d5;border-radius:8px;padding:8px 6px;font-size:.78rem}.geofence-pick-button,#geofence-submit{width:100%;margin-top:14px}.geofence-coordinate-preview{margin-top:11px;border:1px solid #dfe7da;border-radius:9px;padding:10px 11px;background:#f7faf4}.geofence-coordinate-preview strong,.geofence-coordinate-preview span{display:block}.geofence-coordinate-preview strong{font-size:.75rem}.geofence-coordinate-preview span{font-size:.68rem;color:#788570;margin-top:3px}.geofence-draft-circle{stroke:#48f768;fill:#36ff5d}.geofence-draft-center{stroke:#dfffe5;fill:#39ff63}body:not(.light-mode) .geofence-dialog form>input{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .geofence-radius-row strong,body:not(.light-mode) .geofence-coordinate-preview{background:#07150b;border-color:#1d6633;color:#dfffe4}body:not(.light-mode) .geofence-coordinate-preview span{color:#8fb399}
@media(max-width:760px){.trip-toolbar{align-items:stretch}.trip-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.trip-toolbar-actions .trip-button{width:100%;justify-content:center}.geofence-pick-hint{position:relative;z-index:650;flex-wrap:wrap;text-align:center}.geofence-dialog{width:calc(100% - 14px)!important;padding:56px 16px 18px!important}.geofence-radius-row{grid-template-columns:1fr 72px}}


/* v5.6 · búsqueda de ubicación para geocercas */
.geofence-search-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;border:1px solid #dbe2d3;border-radius:9px;background:white;overflow:hidden;min-height:44px}
.geofence-search-row>.icon{width:17px;height:17px;margin-left:11px;color:#718169}.geofence-search-row input{width:100%;height:42px;border:0!important;outline:0;background:transparent!important;color:var(--ink);padding:8px 8px!important;min-height:42px!important}.geofence-search-row button{height:34px;margin-right:5px;padding:0 12px;border:1px solid #cbd9c3;border-radius:7px;background:#f6faef;color:#4f683f;font-weight:750;cursor:pointer}.geofence-search-row button:disabled{opacity:.65;cursor:wait}
.geofence-search-results{display:flex;flex-direction:column;gap:7px;margin-top:8px;max-height:245px;overflow:auto;border:1px solid #dfe7da;border-radius:10px;padding:7px;background:#f9fbf7}.geofence-search-results[hidden]{display:none!important}.geofence-search-result{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;border:1px solid #e0e8dc;border-radius:9px;background:white;color:var(--ink);padding:8px;cursor:pointer}.geofence-search-result:hover{border-color:#78b96e;background:#f6fff5}.geofence-search-result>span:nth-child(2){min-width:0}.geofence-search-result strong,.geofence-search-result small{display:block}.geofence-search-result strong{font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.geofence-search-result small{font-size:.62rem;color:#7a8674;line-height:1.35;margin-top:2px}.geofence-search-result b{font-size:.62rem;color:#427448}.geofence-result-pin{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#e9f7e5;color:#3d7745}.geofence-result-pin .icon{width:15px;height:15px}.geofence-search-message{font-size:.7rem;line-height:1.45;color:#768371;padding:7px 8px}.geofence-coordinate-preview small{display:block;font-size:.62rem;line-height:1.35;color:#687a65;margin-top:5px}
body:not(.light-mode) .geofence-search-row{background:#050906;border-color:#206f36}body:not(.light-mode) .geofence-search-row input{color:#e6f6e8!important}body:not(.light-mode) .geofence-search-row button{background:#09200f;border-color:#25773b;color:#9dffac}body:not(.light-mode) .geofence-search-results{background:#041009;border-color:#1d6633}body:not(.light-mode) .geofence-search-result{background:#07120a;border-color:#184d29;color:#dff7e2}body:not(.light-mode) .geofence-search-result:hover{background:#0a1b0e;border-color:#3fb75d}body:not(.light-mode) .geofence-search-result small,body:not(.light-mode) .geofence-search-message{color:#83a18a}body:not(.light-mode) .geofence-search-result b{color:#79ff8d}body:not(.light-mode) .geofence-result-pin{background:#0a2812;color:#69ff80}
@media(max-width:760px){.geofence-search-row{grid-template-columns:32px minmax(0,1fr) auto}.geofence-search-row button{padding:0 10px;font-size:.72rem}.geofence-search-results{max-height:210px}.geofence-search-result{grid-template-columns:30px minmax(0,1fr);padding:8px}.geofence-search-result>b{grid-column:2;margin-top:2px}.geofence-result-pin{width:26px;height:26px}}


/* v5.7 · Excel automático de viaje */
.trip-report-button{border-color:#3f8d4e}.trip-report-button .icon{color:#8cff9a}.trip-report-button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none!important}
@media(max-width:760px){.trip-toolbar-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.trip-report-button{width:100%!important}}


/* v5.8 · repetición de trayecto + convoy */
.trip-toolbar{flex-wrap:wrap}.replay-button{border-color:#477f93}.replay-button .icon{color:#7edcff}.replay-status{width:100%;display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:9px 12px;align-items:center;border:1px solid #376f83;border-radius:11px;padding:9px 10px;background:#f3fafc}.replay-status[hidden]{display:none!important}.replay-status-main{display:flex;align-items:center;gap:9px;min-width:0}.replay-status-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#dff5fb;color:#246a82}.replay-status-icon .icon{width:17px;height:17px}.replay-status strong,.replay-status small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.replay-status strong{font-size:.76rem}.replay-status small{font-size:.66rem;color:#6b7f87;margin-top:2px}.replay-controls{display:flex;align-items:center;gap:5px}.replay-controls button{width:34px;height:34px;border:1px solid #bfd3da;border-radius:8px;background:white;color:#356b7d;display:grid;place-items:center;cursor:pointer}.replay-controls button .icon{width:16px;height:16px}.replay-controls select{height:34px;border:1px solid #bfd3da;border-radius:8px;background:white;color:#345963;padding:0 6px;font-weight:700}.replay-slider{grid-column:1/-1;width:100%;accent-color:#42badd}.replay-dialog form label{display:block;font-size:.76rem;font-weight:600;margin:12px 0 5px}.replay-dialog form select,.replay-dialog form input{width:100%;min-height:43px;border:1px solid #dbe2d3;border-radius:8px;padding:9px 10px;background:white;color:var(--ink)}.replay-dialog form .button{width:100%;margin-top:14px}.replay-moving-wrap{background:transparent!important;border:0!important}.replay-moving-dot{display:block;width:26px;height:26px;border-radius:50%;background:var(--replay-color,#53ff72);border:4px solid #07120a;box-shadow:0 0 0 2px var(--replay-color,#53ff72)}.replay-moving-label{position:absolute;left:34px;top:3px;padding:4px 7px;border:1px solid var(--replay-color,#53ff72);border-radius:7px;background:#07120aed;color:#f0fff3;font-size:.66rem;font-weight:750;white-space:nowrap;max-width:115px;overflow:hidden;text-overflow:ellipsis}.convoy-toggle{display:flex!important;align-items:center;gap:9px;margin:14px 0 8px!important;padding:10px 11px;border:1px solid #dce6d8;border-radius:9px;background:#f8fbf6;cursor:pointer}.convoy-toggle input{width:18px!important;height:18px;min-height:0!important;margin:0}.convoy-fields{border:1px solid #dce6d8;border-radius:10px;padding:10px 11px;margin-bottom:13px;background:#fbfdf9}.convoy-fields[hidden]{display:none!important}.convoy-fields textarea,.convoy-fields input{width:100%;border:1px solid #dbe2d3;border-radius:8px;padding:9px 10px;background:white;color:var(--ink);font:inherit}.convoy-fields textarea{resize:vertical}
body:not(.light-mode) .replay-status{background:#061017;border-color:#23627a}body:not(.light-mode) .replay-status-icon{background:#082330;color:#79dcff}body:not(.light-mode) .replay-status small{color:#81a5b2}body:not(.light-mode) .replay-controls button,body:not(.light-mode) .replay-controls select{background:#061017;border-color:#235f73;color:#a8e7ff}body:not(.light-mode) .replay-dialog form select,body:not(.light-mode) .replay-dialog form input{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .convoy-toggle,body:not(.light-mode) .convoy-fields{background:#07120a;border-color:#1d5d30}body:not(.light-mode) .convoy-fields textarea,body:not(.light-mode) .convoy-fields input{background:#050906;border-color:#206f36;color:#e6f6e8}
@media(max-width:760px){.trip-toolbar-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}.replay-status{grid-template-columns:1fr;padding:8px}.replay-controls{justify-content:space-between}.replay-controls button{flex:1;max-width:44px}.replay-controls select{flex:1;min-width:58px}.replay-dialog{width:calc(100% - 14px)!important;padding:56px 16px 18px!important}.replay-date-grid{grid-template-columns:1fr!important}.convoy-fields .ops-grid{grid-template-columns:1fr!important}}


/* v6.0 · salida, llegada y regreso en repetición */
.replay-legend{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center;font-size:.63rem;color:#647981}.replay-legend span{display:inline-flex;align-items:center;gap:5px}.replay-legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block;border:2px solid #07120a}.replay-legend-dot.start{background:#9d56ff;box-shadow:0 0 0 1px #9d56ff}.replay-legend-dot.arrival{background:#2f8cff;box-shadow:0 0 0 1px #2f8cff}.replay-legend-line{display:inline-block;width:18px;height:4px;border-radius:4px}.replay-legend-line.outbound{background:#53ff72}.replay-legend-line.returning{background:#2f8cff}.replay-start-wrap,.replay-arrival-wrap{background:transparent!important;border:0!important}.replay-start-pin,.replay-arrival-pin{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;font-size:.65rem;font-weight:900;color:white;border:3px solid #07120a;box-shadow:0 0 0 2px currentColor,0 3px 12px #0007}.replay-start-pin{background:#9d56ff;color:#c79dff}.replay-arrival-pin{background:#2f8cff;color:#7cb7ff}.replay-return-line{filter:drop-shadow(0 0 4px rgba(47,140,255,.35))}.replay-moving-label{max-width:160px!important}.leaflet-tooltip{font-family:inherit}
body:not(.light-mode) .replay-legend{color:#8fb0ba}
@media(max-width:760px){.replay-legend{gap:6px 10px;font-size:.59rem}.replay-moving-label{max-width:140px!important}}


/* v6.1 · repetición rápida: grupos + múltiples resguardos opcionales */
.replay-select-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 6px}.replay-select-head>label{margin:0!important;font-size:.76rem!important;font-weight:700!important}.replay-select-head>label span{font-weight:500;color:#849188}.replay-select-actions{display:flex;gap:8px}.replay-select-head .text-button{font-size:.67rem;padding:4px 0}.replay-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:190px;overflow:auto;border:1px solid #dce5d8;border-radius:10px;padding:8px;background:#fbfdf9}.replay-member-list{max-height:230px}.replay-choice{display:flex;align-items:center;gap:8px;border:1px solid #e4eae1;border-radius:8px;padding:8px 9px;margin:0!important;background:#fff;cursor:pointer;min-width:0}.replay-choice input{width:17px!important;height:17px!important;min-height:0!important;margin:0!important;flex:0 0 auto}.replay-choice span{min-width:0}.replay-choice strong,.replay-choice small{display:block}.replay-choice strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.replay-choice small{font-size:.61rem;color:#7c8a80;margin-top:2px;line-height:1.25}.replay-choice.auto-selected{border-color:#5ab96d;background:#effcf2}.replay-choice.auto-selected input{accent-color:#53ff72}.replay-selection-summary{margin:9px 0 2px;padding:8px 10px;border:1px solid #dfe6dc;border-radius:8px;background:#f5f8f4;color:#738078;font-size:.7rem}.replay-selection-summary.has-selection{border-color:#42a95a;color:#285f35;background:#effaf1;font-weight:700}
body:not(.light-mode) .replay-choice-list{background:#061009;border-color:#1d5d30}body:not(.light-mode) .replay-choice{background:#07120a;border-color:#174e29}body:not(.light-mode) .replay-choice small{color:#789080}body:not(.light-mode) .replay-choice.auto-selected{background:#08200f;border-color:#2d9a4a}body:not(.light-mode) .replay-selection-summary{background:#07120a;border-color:#1b5630;color:#789080}body:not(.light-mode) .replay-selection-summary.has-selection{background:#08200f;border-color:#2d9a4a;color:#8bff9a}
@media(max-width:760px){.replay-choice-list{grid-template-columns:1fr;max-height:180px}.replay-member-list{max-height:220px}.replay-select-head{align-items:flex-end}.replay-select-actions{gap:10px}.replay-choice{min-height:48px;padding:8px 10px}}


/* v6.2 · repetición estable: ruta fija + marcador fluido */
.replay-static-line{stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.replay-progress-line,.replay-return-line{stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.replay-moving-wrap{will-change:transform;pointer-events:none!important}
.replay-moving-dot{will-change:auto}
.leaflet-zoom-animated .replay-moving-wrap{transition:none!important}

/* v6.3 · proveedor de mapa */
.source-stack{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.map-provider-label{font-size:.58rem;color:#7d8b7f;white-space:nowrap}body:not(.light-mode) .map-provider-label{color:#789080}@media(max-width:760px){.map-provider-label{font-size:.56rem}.source-stack{max-width:150px}}


/* v6.4 · seguimiento dinámico hacia geocerca */
.trip-route-remaining{stroke:#2f8cff!important;stroke-width:6px!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 0 5px rgba(47,140,255,.38))!important;transition:stroke-dashoffset .2s linear}
body:not(.light-mode) .trip-route-remaining{stroke:#3d9cff!important;filter:drop-shadow(0 0 6px rgba(61,156,255,.42))!important}


/* v6.5 · alertas reforzadas y estados visibles */
.status-pill.online .status-dot{background:#39f86a!important;box-shadow:0 0 0 3px #39f86a22,0 0 10px #39f86a88!important}
.status-pill.offline .status-dot{background:#d7ad57!important;box-shadow:none!important}
.status-pill.unknown .status-dot{background:#98a59d!important;box-shadow:none!important}
body:not(.light-mode) .status-pill.online .status-dot{background:#46ff79!important;box-shadow:0 0 0 3px #46ff7928,0 0 12px #46ff79aa!important}
.sos-volume{height:28px}.stop-notify-settings{border:1px solid #2c6f3b33;border-radius:12px;padding:13px;margin-top:16px}.stop-notify-settings>strong{display:block;margin-bottom:6px}.stop-notify-settings>p{font-size:.76rem;line-height:1.5;color:#7d8e80;margin-bottom:10px}body:not(.light-mode) .stop-notify-settings{border-color:#1d6531;background:#061009}body:not(.light-mode) .stop-notify-settings>p{color:#8ca294}


/* v6.6 · usuarios Traccar + ruta de viaje verde neón con borde negro */
.traccar-users-badge{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #2b7040;border-radius:999px;background:#07110a;color:#8cff9d;font-size:.72rem;font-weight:700;white-space:nowrap;box-shadow:inset 0 0 0 1px #0008,0 0 11px #39ff1418}
.traccar-users-badge[hidden]{display:none!important}.traccar-users-badge .icon{width:16px;height:16px;color:#62ff7b}.traccar-users-badge strong{font-size:.82rem;color:#ecfff0;font-variant-numeric:tabular-nums}.traccar-users-text{color:#78c987;font-weight:650}
.trip-route-outline{stroke:#020603!important;stroke-width:7px!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 0 2px #000)!important}
.trip-route-remaining{stroke:#43ff68!important;stroke-width:3px!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 0 4px rgba(67,255,104,.55))!important;transition:stroke-dashoffset .2s linear}
body:not(.light-mode) .trip-route-remaining{stroke:#50ff73!important;filter:drop-shadow(0 0 5px rgba(80,255,115,.58))!important}
@media(max-width:760px){.traccar-users-badge{padding:6px 8px;gap:5px;min-height:32px}.traccar-users-text{display:none}.traccar-users-badge .icon{width:17px;height:17px}.traccar-users-badge strong{font-size:.78rem}}


/* v6.7 · usuarios Traccar visibles y panel de detalle */
button.traccar-users-badge{font:inherit;cursor:pointer}.traccar-users-badge:focus-visible{outline:2px solid #65ff78;outline-offset:2px}.traccar-users-badge:hover{border-color:#47d765;background:#09170d}.traccar-users-dialog{width:min(520px,calc(100% - 24px))}.traccar-users-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.traccar-users-summary>div{border:1px solid #dce5da;border-radius:11px;padding:12px;background:#f8faf6}.traccar-users-summary span,.traccar-users-summary strong{display:block}.traccar-users-summary span{font-size:.68rem;color:#7d8979;margin-bottom:4px}.traccar-users-summary strong{font-size:1.15rem}.traccar-current-account{grid-column:1/-1}.traccar-current-account strong{font-size:.9rem}.traccar-user-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #e1e8df;padding-top:14px;margin-top:4px}.traccar-user-list-head strong{font-size:.78rem}.traccar-user-list-head span{font-size:.67rem;color:#889387}.traccar-user-list{display:flex;flex-direction:column;gap:7px;max-height:280px;overflow:auto;margin:9px 0 14px}.traccar-user-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #e1e8df;border-radius:10px;padding:8px 10px;background:#fbfcfa}.traccar-user-avatar{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#eef5e9;color:#438b51}.traccar-user-avatar .icon{width:17px;height:17px}.traccar-user-row strong,.traccar-user-row small{display:block}.traccar-user-row strong{font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.traccar-user-row small{font-size:.63rem;color:#8a9588;margin-top:2px}.traccar-current-chip{font-size:.6rem;text-transform:uppercase;letter-spacing:.06em;border:1px solid #84c98f;border-radius:999px;padding:3px 6px;color:#367a43;background:#effaf1}.light-mode .traccar-users-badge{background:white;color:#2f7e43}.light-mode .traccar-users-badge strong{color:#203824}.light-mode .traccar-users-text{color:#568661}body:not(.light-mode) .traccar-users-summary>div,body:not(.light-mode) .traccar-user-row{background:#07120a;border-color:#1d5d30}body:not(.light-mode) .traccar-users-summary span,body:not(.light-mode) .traccar-user-list-head span,body:not(.light-mode) .traccar-user-row small{color:#799083}body:not(.light-mode) .traccar-user-list-head{border-color:#184a28}body:not(.light-mode) .traccar-user-avatar{background:#0b2011;color:#65ff78}body:not(.light-mode) .traccar-current-chip{background:#0d2513;border-color:#348a48;color:#77ff8d}@media(max-width:760px){.traccar-users-dialog{width:calc(100% - 14px)!important}.traccar-users-summary{grid-template-columns:1fr 1fr}.traccar-user-list{max-height:42vh}.traccar-user-row{grid-template-columns:34px minmax(0,1fr) auto;padding:8px}.traccar-users-badge{min-width:52px;justify-content:center}}

/* v6.8 mejoras */
.guard-bubble{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:radial-gradient(circle at 30% 30%,rgba(142,255,172,.65),rgba(32,255,111,.15) 62%,rgba(0,0,0,.0) 63%);filter:drop-shadow(0 0 14px rgba(72,255,128,.45));}
.guard-bubble::after{content:'';position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);width:16px;height:16px;background:linear-gradient(135deg,rgba(19,28,22,.96),rgba(12,14,14,.92));border-right:1px solid rgba(98,255,139,.65);border-bottom:1px solid rgba(98,255,139,.65);rotate:45deg;border-bottom-right-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,.32);}
.guard-bubble-core{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;border:1px solid rgba(118,255,151,.8);background:linear-gradient(180deg,rgba(14,18,16,.96),rgba(9,10,10,.98));box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 0 1px rgba(0,0,0,.35);font-size:18px;line-height:1;}
.guard-bubble.online .guard-bubble-core{box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 14px rgba(64,255,113,.25);}
.guard-bubble.offline .guard-bubble-core,.guard-bubble.unknown .guard-bubble-core{border-color:rgba(183,198,189,.55);color:#b8c7bc;filter:saturate(.4);}
.guard-bubble.selected .guard-bubble-core{transform:scale(1.08);border-color:#b9ffc9;box-shadow:0 0 18px rgba(116,255,150,.4);}
.leaflet-tooltip.marker-name{margin-left:4px;}
.trip-route-outline,.trip-route-line,.trip-route-remaining{shape-rendering:geometricPrecision;stroke-linecap:round;stroke-linejoin:round;}
.trip-route-outline{filter:drop-shadow(0 0 6px rgba(0,0,0,.42));}
.trip-route-line,.trip-route-remaining{filter:drop-shadow(0 0 7px rgba(79,255,134,.28));}
.trip-destination-pin{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:linear-gradient(180deg,rgba(18,24,18,.96),rgba(8,10,8,.98));border:1px solid rgba(110,255,147,.78);box-shadow:0 0 14px rgba(80,255,129,.28);color:#8bff9e;}
.cleanup-button{white-space:nowrap;}
.cleanup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 14px;}
.cleanup-card,.cleanup-trash-box{border:1px solid rgba(83,255,130,.2);border-radius:18px;background:rgba(255,255,255,.03);padding:14px;display:flex;flex-direction:column;gap:6px;}
.cleanup-card span{font-size:1.4rem;font-weight:700;color:#a4ffb8;}
.cleanup-trash-box{margin-bottom:14px;}
.cleanup-trash-box small{opacity:.75;}
.cleanup-actions{display:flex;flex-wrap:wrap;gap:10px;}
@media (max-width:700px){.cleanup-grid{grid-template-columns:1fr;}}

/* v6.9 · seguimiento múltiple en vivo */
.multi-trip-button{border-color:#6d55b8}.multi-trip-button .icon{color:#b79bff}.multi-trip-button.active{border-color:#a98aff!important;color:#c9b6ff!important;box-shadow:0 0 16px rgba(176,140,255,.22)!important}
.multi-trip-dialog{width:min(620px,calc(100% - 30px))}.multi-trip-dialog form>label{display:block;font-size:.76rem;font-weight:650;margin:13px 0 6px}.multi-trip-dialog form>select{width:100%;min-height:44px;border:1px solid #dbe2d3;border-radius:9px;padding:9px 10px;background:white;color:var(--ink)}.multi-trip-dialog .button-primary{width:100%;margin-top:14px}
.multi-trip-status{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #654f9a;border-radius:12px;padding:9px 10px;background:#f7f4ff}.multi-trip-status[hidden]{display:none!important}.multi-trip-status-main{display:flex;align-items:center;gap:9px;min-width:0}.multi-trip-status-main strong,.multi-trip-status-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.multi-trip-status-main strong{font-size:.76rem}.multi-trip-status-main small{font-size:.66rem;color:#736b83;margin-top:2px}.multi-trip-status-actions{display:flex;gap:6px;flex:0 0 auto}
body:not(.light-mode) .multi-trip-status{background:#0a0811;border-color:#57418c}body:not(.light-mode) .multi-trip-status-main small{color:#9d91b5}body:not(.light-mode) .multi-trip-dialog form>select{background:#050906;border-color:#206f36;color:#e6f6e8}
.multi-trip-outline,.multi-trip-route{shape-rendering:geometricPrecision;stroke-linecap:round;stroke-linejoin:round}.multi-trip-route{filter:drop-shadow(0 0 4px color-mix(in srgb,currentColor 28%,transparent))}.multi-trip-route-label{background:#07100af2!important;border:1px solid #44644d!important;color:#e9ffed!important;border-radius:7px!important;font-size:.66rem!important;font-weight:750!important;padding:4px 7px!important;box-shadow:0 3px 12px #0005!important}
.multi-live-wrap,.multi-target-chip-wrap{background:transparent!important;border:0!important}.multi-live-bubble{position:relative;display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:#050806;border:2px solid var(--route-color,#43ff68);box-shadow:0 0 0 3px rgba(0,0,0,.65),0 0 14px var(--route-color,#43ff68)}.multi-live-bubble::after{content:'';position:absolute;bottom:-7px;width:11px;height:11px;background:#050806;border-right:2px solid var(--route-color,#43ff68);border-bottom:2px solid var(--route-color,#43ff68);transform:rotate(45deg);border-radius:2px}.multi-live-bubble>span{position:relative;z-index:2;font-size:17px;line-height:1}.multi-live-bubble.arrived{opacity:.72;filter:saturate(.65)}.multi-live-label{background:#061009ef!important;border:1px solid #247b38!important;color:#dcffe2!important;border-radius:6px!important;font-size:.66rem!important;font-weight:700!important;padding:3px 6px!important}
.multi-target-chip{display:block;max-width:150px;padding:5px 8px;border-radius:999px;border:1px solid var(--route-color,#43ff68);background:#061009ed;color:#effff2;font-size:.64rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 0 12px rgba(0,0,0,.45)}
@media(max-width:760px){.trip-toolbar-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}.multi-trip-dialog{width:calc(100% - 14px)!important;max-height:calc(100dvh - 16px)!important;padding:56px 16px 18px!important}.multi-trip-status{padding:8px}.multi-trip-status-main{min-width:0}.multi-trip-status-main strong{font-size:.7rem}.multi-trip-status-main small{font-size:.6rem}}
@media(max-width:410px){.trip-toolbar-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.trip-toolbar-actions .trip-button{min-width:0!important}.multi-trip-status{align-items:flex-start}.multi-trip-status-actions{padding-top:1px}}
.guard-bubble-core svg,.multi-live-bubble svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;color:#8dff9e}.multi-live-bubble svg{position:relative;z-index:2;color:#effff2}
/* v6.9 · ruta principal más fina y estable al hacer zoom */
.trip-route-outline{stroke-width:5px!important;filter:drop-shadow(0 0 1px rgba(0,0,0,.75))!important}
.trip-route-remaining{stroke-width:2.35px!important;filter:drop-shadow(0 0 2px rgba(67,255,104,.35))!important}

/* v7.0 · resguardos normales + policía diferenciada + movimiento fluido */
.guard-pin-police{font-size:18px;line-height:1;background:#0c1610!important;color:#fff!important;border-color:#67ff7a!important;box-shadow:0 0 16px rgba(65,255,113,.38)!important}
.guard-pin-police .police-emoji{display:grid;place-items:center;width:100%;height:100%;font-size:18px;line-height:1;transform:translateY(-.5px)}
.guard-pin-police.offline{border-color:#d8b15b!important;box-shadow:0 0 12px rgba(216,177,91,.28)!important}
.guard-pin-police.unknown{border-color:#9da9a1!important;box-shadow:none!important}
.leaflet-marker-icon.guard-icon{will-change:transform;backface-visibility:hidden;transform-style:preserve-3d}
/* Los globos v6.8 ya no se usan para los resguardos normales. */
.guard-bubble{display:none!important}

/* v7.1 · alarmas permanentes, SOS y centrado móvil */
.stat-icon.sos{background:#fff0f0;color:#c62828}
body:not(.light-mode) .stat-icon.sos{background:#200708;color:#ff5d64;box-shadow:0 0 14px #ff31312c}
.motion-alert{position:fixed;z-index:4990;right:18px;top:88px;width:min(390px,calc(100vw - 36px));padding:18px;border:2px solid #31d77a;border-radius:16px;background:#f4fff8;color:#0c3320;box-shadow:0 18px 60px #08773d33,0 0 24px #24e7782b;animation:motionAlertPulse 1s ease-in-out infinite alternate}
.motion-alert[hidden]{display:none!important}.motion-alert-head{display:flex;align-items:center;gap:12px}.motion-alert-head small{display:block;font-size:.72rem;font-weight:900;letter-spacing:.12em;color:#0b8a48}.motion-alert-head strong{display:block;font-size:1.05rem;margin-top:2px}.motion-alert-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#19a85b;color:white}.motion-alert-icon .icon{width:24px;height:24px}.motion-alert p{margin:10px 0 0;font-size:.82rem;line-height:1.4}.motion-alert-actions{display:flex;gap:8px;margin-top:14px}.motion-alert-actions button{flex:1;border:1px solid #45b979;background:white;color:#117342;border-radius:9px;padding:9px 10px;font-weight:700}.motion-alert-actions button:last-child{background:#128a4c;color:white;border-color:#128a4c}
body:not(.light-mode) .motion-alert{background:#04120a;color:#e8fff0;border-color:#42ff8d;box-shadow:0 18px 60px #000a,0 0 28px #26ff7a2f}body:not(.light-mode) .motion-alert p{color:#a7cfb2}body:not(.light-mode) .motion-alert-actions button{background:#07180e;color:#9dffbc;border-color:#267847}body:not(.light-mode) .motion-alert-actions button:last-child{background:#0b7c42;color:white;border-color:#32df7b}
@keyframes motionAlertPulse{from{transform:translateY(0)}to{transform:translateY(1px)}}
@media(max-width:760px){
  .motion-alert{top:82px;left:10px;right:10px;width:auto;padding:14px;border-radius:13px}
  .motion-alert-head strong{font-size:1rem}.motion-alert p{font-size:.74rem}
  .monitor-window .window-actions button{position:relative!important;display:grid!important;place-items:center!important;text-align:center!important}
  .monitor-window .window-actions button .icon{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
  .monitor-window .window-actions button .icon svg{display:block!important;margin:0 auto!important}
}


/* v7.4 · corrección de ancho móvil / franja lateral */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
body{position:relative;min-width:0}
.workspace,.monitor-window,.map-panel,.trip-toolbar,.window-toolbar,.window-footer{min-width:0;max-width:100%}
.workspace{width:100%}
@media(max-width:760px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .topbar{width:100%!important;max-width:100%!important;min-width:0!important;padding-left:14px!important;padding-right:14px!important;gap:8px!important;overflow:hidden!important}
  .topbar .brand{min-width:0!important;flex:1 1 auto!important;gap:10px!important;overflow:hidden!important}
  .topbar .brand img{flex:0 0 auto!important}
  .topbar .brand>span:last-child{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar .header-actions{min-width:0!important;flex:0 0 auto!important;gap:8px!important}
  .topbar .top-link,.topbar .traccar-users-badge,.topbar .theme-toggle,.topbar .account-button{flex:0 0 auto!important}
  .workspace{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:4.5%!important;padding-right:4.5%!important}
  .monitor-window{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .map-panel,#map,.trip-toolbar,.window-toolbar,.window-footer{width:100%!important;max-width:100%!important}
  .leaflet-container{max-width:100%!important}
}
@media(max-width:430px){
  .topbar{padding-left:12px!important;padding-right:12px!important;gap:6px!important}
  .topbar .brand{gap:7px!important}
  .topbar .brand img{width:78px!important;height:42px!important}
  .topbar .brand-divider{display:none!important}
  .topbar .brand>span:last-child{display:none!important}
  .topbar .header-actions{gap:6px!important}
  .topbar .top-link{width:32px!important;height:32px!important;display:grid!important;place-items:center!important}
  .topbar .traccar-users-badge{min-width:44px!important;padding:5px 7px!important}
  .topbar .theme-toggle,.topbar .account-button{width:32px!important;height:32px!important}
}

/* v7.5 · roles y permisos */
.access-role-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border:1px solid #245d36;border-radius:999px;background:#071109;color:#8effa4;font-size:.68rem;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.access-role-badge[data-role="owner"]{border-color:#6dff84;box-shadow:0 0 14px #39ff1425;color:#baffc6}.access-role-badge[data-role="admin"]{border-color:#4ddb69;color:#9effae}.access-role-badge[data-role="operator"]{border-color:#83a34b;color:#c7e995}.access-role-badge[data-role="guest"]{border-color:#4d5d52;color:#9ca99f}
.access-manage-button{width:100%;justify-content:center;margin-top:14px}.access-dialog{max-width:760px}.access-dialog>label{display:block;font-size:.78rem;font-weight:700;margin:15px 0 6px}.access-dialog>select{width:100%;min-height:44px;border:1px solid #285f39;border-radius:10px;background:#061009;color:#e7f8e9;padding:10px 12px}.access-user-summary{display:flex;flex-direction:column;gap:3px;padding:12px 14px;margin:10px 0 4px;border:1px solid #173f25;border-radius:12px;background:#07110a}.access-user-summary strong{font-size:.88rem}.access-user-summary span{font-size:.72rem;color:#829589}.access-permissions-head{display:flex;justify-content:space-between;gap:10px;align-items:end;margin:17px 0 8px}.access-permissions-head strong{font-size:.82rem}.access-permissions-head small{font-size:.68rem;color:#7c8b80;text-align:right}.access-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.access-permission{display:flex;gap:9px;align-items:flex-start;border:1px solid #153c22;border-radius:11px;background:#061009;padding:10px 11px;cursor:pointer}.access-permission input{margin-top:3px;accent-color:#55ff72}.access-permission span{min-width:0}.access-permission strong,.access-permission small{display:block}.access-permission strong{font-size:.74rem;color:#dff7e3}.access-permission small{margin-top:2px;font-size:.64rem;color:#75877b;line-height:1.35}.access-permission:has(input:checked){border-color:#2eb950;background:#08170c;box-shadow:0 0 12px #39ff1412}.access-permission:has(input:disabled){opacity:.72;cursor:default}.access-dialog #access-save{width:100%;justify-content:center;margin-top:14px}
@media(max-width:760px){.access-role-badge{min-height:30px;padding:0 8px;font-size:.62rem}.access-dialog{width:calc(100% - 14px)!important;max-width:none!important}.access-permissions{grid-template-columns:1fr}.access-permissions-head{align-items:flex-start;flex-direction:column}.access-permissions-head small{text-align:left}}

/* v7.7 · convoy detallado y movimientos GPS */
.groups-dialog-v77{width:min(1120px,calc(100vw - 28px));max-width:1120px}
.group-command-grid{margin:14px 0 10px}
.optional-label{font-size:.72em;font-weight:500;opacity:.68}
.convoy-count-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:10px 0 14px}
.convoy-count-row>div{min-width:210px}
.convoy-unit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.convoy-unit-card{border:1px solid rgba(80,255,125,.2);border-radius:16px;background:rgba(255,255,255,.025);padding:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.01)}
.convoy-unit-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(80,255,125,.12)}
.convoy-unit-head strong{font-size:.9rem;color:#a6ffb6}.convoy-unit-head span{font-size:.7rem;opacity:.65}
.convoy-unit-card label{display:block;margin:8px 0 5px!important}.convoy-unit-card input,.convoy-unit-card select{width:100%}
.convoy-add-unit{width:100%;justify-content:center;margin-top:12px}
.movement-dialog{width:min(850px,calc(100vw - 24px));max-width:850px}
.movement-toolbar{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:16px 0 10px}.movement-toolbar label{grid-column:1/-1;margin:0!important}.movement-toolbar select{min-height:44px}
.movement-summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(80,255,125,.16);border-radius:12px;background:rgba(255,255,255,.025);margin-bottom:10px}.movement-summary strong{color:#a7ffb7}.movement-summary span{opacity:.72}
.movement-list{max-height:430px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:3px}
.movement-row{display:grid;grid-template-columns:36px 1fr 34px;gap:10px;align-items:start;padding:11px;border:1px solid rgba(80,255,125,.15);border-radius:12px;background:rgba(255,255,255,.025)}
.movement-pin{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(60,255,112,.08);color:#69ff88}.movement-pin .icon{width:18px;height:18px}
.movement-row>div:nth-child(2){min-width:0}.movement-row strong,.movement-row small,.movement-row span,.movement-row a{display:block}.movement-row strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.movement-row small,.movement-row span{font-size:.7rem;opacity:.72;margin-top:3px}.movement-row a{font-size:.72rem;color:#7dff93;margin-top:5px;text-decoration:none}.movement-row>button{width:32px;height:32px;border:1px solid rgba(255,115,115,.24);border-radius:9px;background:rgba(255,70,70,.05);color:#ff9393;font-size:18px}
.movement-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.movement-actions .button{flex:1 1 180px;justify-content:center}
@media(max-width:760px){.groups-dialog-v77{width:calc(100% - 14px)!important;max-width:none!important}.convoy-unit-list{grid-template-columns:1fr}.convoy-count-row{display:block}.convoy-count-row>div{min-width:0}.movement-toolbar{grid-template-columns:1fr}.movement-toolbar label{grid-column:auto}.movement-list{max-height:48vh}.movement-actions{display:grid;grid-template-columns:1fr}.movement-actions .button{width:100%}.groups-dialog-v77 .groups-layout{grid-template-columns:1fr!important}.group-command-grid,.convoy-unit-grid{grid-template-columns:1fr!important}}
.movement-summary>div{min-width:0}.movement-summary small{display:block;margin-top:4px;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}

/* v7.8 · formulario de convoy corregido */
.groups-dialog-v78{width:min(1120px,calc(100vw - 28px));max-width:1120px}
.groups-dialog-v78 .field-help{display:block;margin-top:5px;color:var(--muted,#7f9182);font-size:.68rem;line-height:1.35}
.groups-dialog-v78 #group-leader-device:disabled{opacity:.86;cursor:default}
.groups-dialog-v78 .convoy-fields-v78{margin-top:12px;padding:14px;border:1px solid rgba(78,255,126,.18);border-radius:16px;background:rgba(255,255,255,.02)}
.groups-dialog-v78 .convoy-count-only{max-width:330px;margin:0 0 14px}
.groups-dialog-v78 .convoy-count-only label{display:block;margin:0 0 6px!important}
.groups-dialog-v78 .convoy-count-only input{width:100%;min-height:46px;font-size:1rem;font-weight:700}
.groups-dialog-v78 .convoy-count-only small{display:block;margin-top:6px;color:#7f9182;line-height:1.4}
.groups-dialog-v78 .convoy-units-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px;padding-top:14px;border-top:1px solid rgba(79,255,126,.14)}
.groups-dialog-v78 .convoy-units-title strong{display:block;font-size:.9rem}
.groups-dialog-v78 .convoy-units-title span{display:block;margin-top:3px;font-size:.7rem;color:#7f9182}
.groups-dialog-v78 .convoy-unit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.groups-dialog-v78 .convoy-unit-card{min-width:0;border:1px solid rgba(80,255,125,.22);border-radius:16px;background:rgba(255,255,255,.025);padding:14px}
.groups-dialog-v78 .convoy-unit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.groups-dialog-v78 .convoy-unit-head strong{font-size:.84rem;color:#b6ffc4}
.groups-dialog-v78 .convoy-unit-head span{font-size:.68rem;color:#7f9182;text-align:right}
.groups-dialog-v78 .convoy-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.groups-dialog-v78 .convoy-add-unit{margin-top:12px}
@media(max-width:760px){
  .groups-dialog-v78{width:calc(100% - 14px)!important;max-width:none!important;padding-left:14px!important;padding-right:14px!important}
  .groups-dialog-v78 .groups-layout{grid-template-columns:1fr!important}
  .groups-dialog-v78 .group-command-grid,.groups-dialog-v78 .convoy-unit-grid{grid-template-columns:1fr!important}
  .groups-dialog-v78 .convoy-unit-list{grid-template-columns:1fr!important}
  .groups-dialog-v78 .convoy-count-only{max-width:none}
  .groups-dialog-v78 .convoy-unit-head{align-items:center}
}


/* v7.9 · panel propietario y vista invitado */
body:not(.light-mode) .theme-toggle{color:#fff!important}
body:not(.light-mode) .theme-toggle .icon,body:not(.light-mode) .theme-toggle .icon svg{color:#fff!important;stroke:#fff!important}
body:not(.light-mode) .account-button .icon,body:not(.light-mode) .account-button .icon svg{color:#fff!important;stroke:#fff!important}
body:not(.light-mode) .account-button.owner-account{border-color:#64ff7d!important;background:#071109!important;box-shadow:0 0 0 1px #39ff1430,0 0 18px #39ff1438!important}
body:not(.light-mode) .account-button.owner-account .icon svg{stroke:#8cff9d!important}
.owner-symbol{background:#07120a!important;color:#8cff9d!important;border:1px solid #2d9e49!important;box-shadow:0 0 18px #39ff1420!important}
.owner-symbol .icon svg{stroke:currentColor!important}
.guest-view .stats{grid-template-columns:repeat(3,1fr)}
.guest-view .window-actions{justify-content:flex-end}
@media(max-width:760px){.guest-view .stats{grid-template-columns:repeat(2,1fr)}.guest-view .stats .stat:nth-child(3){grid-column:1/-1}.account-button.owner-account{box-shadow:0 0 16px #39ff1440!important}.access-dialog .owner-symbol{margin-top:0}}

/* v8.0 · estabilidad del mapa al aplicar permisos/roles */
#map,.map-panel{overflow:hidden!important;}
.leaflet-map-pane,.leaflet-tile-pane{backface-visibility:hidden;transform-style:preserve-3d;}
.leaflet-tile{will-change:transform;}

/* v8.1 · cuentas de acceso + convoy amplio + brevete */
.groups-dialog-v81{
  width:min(1320px,calc(100vw - 24px))!important;
  max-width:1320px!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:auto!important;
}
.groups-dialog-v81 .groups-layout{
  grid-template-columns:minmax(230px,280px) minmax(0,1fr)!important;
  gap:24px!important;
  align-items:start!important;
}
.groups-dialog-v81 #group-form{min-width:0!important}
.groups-dialog-v81 .group-command-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.groups-dialog-v81 .convoy-fields-v78{
  padding:18px!important;
  border-radius:18px!important;
}
.groups-dialog-v81 .convoy-count-only{max-width:420px!important}
.groups-dialog-v81 .convoy-unit-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  margin-top:14px!important;
}
.groups-dialog-v81 .convoy-unit-card{
  width:100%!important;
  padding:18px!important;
  border-radius:18px!important;
}
.groups-dialog-v81 .convoy-unit-grid{
  display:grid!important;
  grid-template-columns:minmax(150px,.8fr) minmax(220px,1.25fr) minmax(170px,.9fr)!important;
  gap:12px 14px!important;
  align-items:end!important;
}
.groups-dialog-v81 .convoy-unit-grid>div{min-width:0!important}
.groups-dialog-v81 .convoy-unit-detail{grid-column:span 2!important}
.groups-dialog-v81 .convoy-unit-card input,
.groups-dialog-v81 .convoy-unit-card select{
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
}
.groups-dialog-v81 .convoy-unit-head{margin-bottom:12px!important}
.groups-dialog-v81 .convoy-unit-head strong{font-size:.94rem!important}
.groups-dialog-v81 .convoy-unit-head span{font-size:.72rem!important}
.access-dialog #access-user option{font-size:.86rem}

@media(max-width:900px){
  .groups-dialog-v81 .groups-layout{grid-template-columns:1fr!important}
  .groups-dialog-v81 .convoy-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .groups-dialog-v81 .convoy-unit-detail{grid-column:1/-1!important}
}
@media(max-width:760px){
  .groups-dialog-v81{
    width:calc(100vw - 8px)!important;
    max-width:none!important;
    max-height:calc(100dvh - 8px)!important;
    padding:16px 12px 18px!important;
    border-radius:16px!important;
  }
  .groups-dialog-v81 .groups-layout{display:block!important}
  .groups-dialog-v81 .groups-layout>section{margin-bottom:18px!important}
  .groups-dialog-v81 .group-command-grid,
  .groups-dialog-v81 .convoy-unit-grid{grid-template-columns:1fr!important;gap:10px!important}
  .groups-dialog-v81 .convoy-unit-detail{grid-column:auto!important}
  .groups-dialog-v81 .convoy-fields-v78{padding:12px!important}
  .groups-dialog-v81 .convoy-unit-card{padding:14px!important}
  .groups-dialog-v81 .convoy-unit-head{display:block!important}
  .groups-dialog-v81 .convoy-unit-head span{display:block!important;text-align:left!important;margin-top:3px!important}
  .groups-dialog-v81 .convoy-count-only{max-width:none!important}
}
