/* Estados e ficha de veículo — linguagem visual própria da XTRACK. */
.state-pending{--state-bg:#f0f3f4;--state-fg:#697e87;--state-edge:#cbd5da}.state-locating{--state-bg:#eef5f8;--state-fg:#527786;--state-edge:#bdd2db}
.vehicle-marker{position:relative;width:48px;height:54px;box-sizing:border-box;display:flex;justify-content:center;align-items:flex-start;border:0!important;border-radius:0!important;transform:none!important;background:transparent!important;color:var(--state-fg)!important;box-shadow:none!important;filter:drop-shadow(0 3px 5px #102b3130)}
.marker-face{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;box-sizing:border-box;border:1.5px solid var(--state-edge);border-radius:15px;background:var(--state-bg);color:var(--state-fg)}.vehicle-marker .marker-car{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.marker-tip{position:absolute;z-index:0;left:18px;top:38px;width:12px;height:12px;transform:rotate(45deg);background:var(--state-bg);border-right:1.5px solid var(--state-edge);border-bottom:1.5px solid var(--state-edge)}
.marker-car .marker-glass{fill:currentColor;fill-opacity:.13;stroke:none}.vehicle-marker.selected .marker-face{outline:3px solid #b8ec6a;outline-offset:3px;box-shadow:0 0 0 7px #fff9}
.state-off{--state-bg:#fff;--state-fg:#345b54;--state-edge:#8ca5a0}.state-idle{--state-bg:#287451;--state-fg:#fff;--state-edge:#287451}.state-offline,.state-unknown{--state-bg:#ffe2a2;--state-fg:#805400;--state-edge:#cb971e}.state-blocked{--state-bg:#ce4353;--state-fg:#fff;--state-edge:#ce4353}.state-moving{--state-bg:#b7e6fc;--state-fg:#155e80;--state-edge:#6ebce2}
.fleet-vehicle{width:46px;height:46px;flex-shrink:0;border-radius:14px;border:1px solid var(--state-edge);background:var(--state-bg);color:var(--state-fg);display:grid;place-items:center}.fleet-vehicle .icon{width:25px;height:25px}.vehicle-state{display:inline-flex;gap:6px;align-items:center;background:var(--state-bg);color:var(--state-fg);border:1px solid var(--state-edge);padding:5px 8px;border-radius:8px;font-size:10px;font-weight:600}.vehicle-state .icon{width:13px;height:13px}.vehicle-row-time{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;line-height:1.6;margin-top:9px}.vehicle-row-time+.vehicle-row-time{margin-top:3px}.vehicle-row-time .icon{width:13px;height:13px}.vehicle-row-time strong{font-weight:600;color:var(--ink)}.vehicle-last-contact{font-size:9px;color:var(--muted);margin-top:8px}.device-row-foot{gap:8px;flex-wrap:wrap}
.map-area{position:relative}.vehicle-popover{position:absolute;z-index:1000;width:min(540px,calc(100% - 24px));background:#fff;box-shadow:0 10px 32px #102b312e;border:1px solid #dbe7e2;border-radius:16px;display:flex;flex-direction:column;text-align:left;font-family:inherit;isolation:isolate}.vehicle-popover::after{content:"";position:absolute;left:var(--popup-tip-x,50%);bottom:-8px;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);background:#fff;border-right:1px solid #dbe7e2;border-bottom:1px solid #dbe7e2;z-index:-1}.vehicle-popover-head{border-radius:16px 16px 0 0;background:#fff;display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line);flex-shrink:0}.vehicle-popover-head .stack{flex:1;min-width:0}.vehicle-popover-head h3{font-size:15px;margin:0 0 3px}.vehicle-popover-head span{font-size:10px;color:var(--muted)}.vehicle-popover-head .ghost{padding:5px}.vehicle-popover-scroll{min-height:0;border-radius:0 0 16px 16px;overflow:auto;padding:14px 17px}.vehicle-popover-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:17px;margin-top:15px}.vehicle-fact{display:grid;grid-template-columns:16px auto;gap:3px 7px;margin-bottom:10px;font-size:10px;line-height:1.4}.vehicle-fact .icon{width:14px;height:14px;grid-row:span 2;color:#6b8c82}.vehicle-fact>span{color:var(--muted)}.vehicle-fact>strong{font-weight:600;overflow-wrap:anywhere}.vehicle-address{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.6;margin-top:12px}.vehicle-address>.icon{flex-shrink:0;width:15px;height:15px;margin-top:2px}.vehicle-coordinates{font-size:9px;color:var(--muted);margin:5px 0 0 22px}.vehicle-popover-side{border-left:1px solid var(--line);padding-left:15px}.vehicle-tabs{display:flex;border-bottom:1px solid var(--line);gap:10px;margin-bottom:15px}.vehicle-tabs>button{background:none;border:0;padding:5px 0 9px;color:var(--muted);font-size:10px}.vehicle-tabs>button[aria-selected=true]{color:var(--ink);box-shadow:inset 0 -2px #418562;font-weight:600}.vehicle-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.vehicle-shortcuts>button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:12px 6px;background:#f7faf8;color:var(--ink);font-size:9px}.vehicle-shortcuts>button:hover{background:#e9f4ee}.vehicle-shortcuts .icon{width:22px;height:22px;color:#418562}.vehicle-clock-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#f3f7f5;border-radius:12px;padding:12px;margin-top:15px}.vehicle-clock-grid>div{display:flex;flex-direction:column;gap:5px}.vehicle-clock-grid span{font-size:9px;color:var(--muted)}.vehicle-clock-grid strong{font-size:15px;color:var(--ink)}.vehicle-clock-grid small{font-size:8px;color:var(--muted);line-height:1.5}.vehicle-sheet-note{font-size:8px;line-height:1.6;color:var(--muted);margin:10px 0 0}
.map-state-legend{display:flex;gap:14px;flex-wrap:wrap;padding:11px 18px;border-bottom:1px solid var(--line);font-size:9px;color:var(--muted)}.map-state-legend span{display:flex;align-items:center;gap:5px}.map-state-legend i{width:10px;height:10px;background:var(--state-bg);border:1px solid var(--state-edge);border-radius:3px}
.fence-drawing-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.fence-drawing-tools button{font-size:11px}.fence-map-status{font-size:11px;color:var(--muted);margin:8px 0}.fence-volume-preview{width:100%;height:200px;display:block;background:linear-gradient(145deg,#f4f8f6,#e5efe9);border-radius:12px;margin-top:12px}.fence-automation{padding:15px;border:1px solid #ead6af;border-radius:12px;background:#fffcf5;margin:18px 0}.fence-automation h3{font-size:13px;margin:0 0 12px}.fence-shape-fields{margin:12px 0}
@media(max-width:460px){.vehicle-popover{width:calc(100% - 24px)}.vehicle-popover-grid{grid-template-columns:1fr}.vehicle-popover-side{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:12px}.vehicle-shortcuts{grid-template-columns:repeat(4,1fr)}.vehicle-clock-grid strong{font-size:13px}.vehicle-popover-head h3{font-size:13px}}

.fence-center-marker{width:30px;height:30px;display:grid;place-items:center;background:#fff;border:2px solid #418562;border-radius:50%;color:#2d7050;box-shadow:0 2px 9px #102b3133}.fence-center-marker .icon{width:20px;height:20px}.fence-vertex{width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#418562;color:#fff;font:10px sans-serif;display:grid;place-items:center;box-shadow:0 1px 4px #102b3160}

/* Percursos: cores do estado histórico e marcadores de ignição/parada. */
.history-state-moving{--history-color:#397bde;--history-soft:#edf3ff}.history-state-idle{--history-color:#b77912;--history-soft:#fff6df}.history-state-off{--history-color:#65758a;--history-soft:#eef1f6}.history-state-blocked{--history-color:#ce4353;--history-soft:#fff0f2}.history-state-unknown{--history-color:#8865ad;--history-soft:#f4edfa}
.history-legend{font-size:11px;gap:8px 14px}.history-legend i{background:var(--history-color);border-color:var(--history-color);border-radius:50%}
.history-map-point{width:7px;height:7px;background:var(--history-color,#418562);border:1px solid #fff;border-radius:50%;box-shadow:0 1px 3px #153b4030}.history-map-point.history-point-off{background:#fff;border-color:var(--history-color,#82948f)}
.history-event-wrapper{background:transparent;border:0}.history-event-marker{position:relative;width:28px;height:28px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#287451;color:#fff;box-shadow:0 2px 6px #153b4040;font-size:12px;font-weight:700}.history-event-marker .icon{width:16px;height:16px}.history-event-marker.kind-off,.history-event-marker.kind-parked{background:#fff;color:#536e64;border-color:#82948f}.history-event-marker.kind-idle{background:#287451}.history-event-count{position:absolute;top:-6px;right:-6px;min-width:14px;height:14px;padding:0 3px;display:grid;place-items:center;background:#163139;color:#fff;font-size:8px;border-radius:8px;border:1px solid #fff}
.history-map-hint{display:flex;align-items:center;gap:6px;padding:9px 14px;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}.history-map-hint .icon{width:14px;height:14px}
.history-state-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 6px;margin-top:4px;border-radius:5px;font-size:10px;background:var(--history-soft,#f2f5f4);color:var(--history-color,#73838a)}.history-state-chip:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.history-view-tabs{display:flex;gap:5px;padding:0 12px 10px;border-bottom:1px solid var(--line)}.history-view-tabs>button{flex:1;padding:8px 6px;font-size:11px;background:#f4f7f5;color:var(--muted);border-radius:6px}.history-view-tabs>button[aria-pressed=true]{background:#e6f1e9;color:#245e45;font-weight:600}
.history-event-row{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px;text-align:left;color:var(--ink);background:#fff;border-bottom:1px solid var(--line)}.history-event-row:hover{background:#f7faf8}.history-event-row>span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}.history-event-row strong{font-size:12px;font-weight:600}.history-event-row small{font-size:10px;line-height:1.5;color:var(--muted)}.history-event-symbol{width:28px;height:28px;display:grid;place-items:center;background:var(--history-soft,#f2f5f4);color:var(--history-color,#73838a);border-radius:8px;flex-shrink:0}.history-event-symbol .icon{width:16px;height:16px}
.history-point-detail dl{margin:16px 0}.history-point-detail dl>div{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.history-point-detail dt{color:var(--muted)}.history-point-detail dd{margin:0;text-align:right}.history-occurrence{display:flex;flex-direction:column;gap:5px;margin:12px 0;padding:12px;background:#f4f8f5;border-radius:8px}.history-occurrence strong{font-size:12px}.history-occurrence span{font-size:11px;color:var(--muted);line-height:1.5}

.vehicle-fact{grid-template-columns:16px minmax(60px,auto) minmax(0,1fr);align-items:start;font-size:11px;gap:5px}.vehicle-fact .icon{grid-row:auto;margin-top:1px}.vehicle-address{font-size:11px}.vehicle-sheet-note{font-size:9px}.trail-direction svg{width:21px;height:21px;fill:#176b8a;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 1px 2px #102b3140)}

.map-toolbar #live-trail[aria-pressed="true"]{background:#e8f4ed;color:#27664c;border-radius:9px;box-shadow:inset 0 0 0 1px #cde1d4}.vehicle-last-contact+.vehicle-last-contact{margin-top:3px}

/* Bateria interna separada da alimentação externa. */
.vehicle-battery{padding:9px 0 12px}.vehicle-battery>.label{display:flex;gap:7px;font-size:11px;margin-bottom:7px}.vehicle-battery>.label .icon{width:15px;height:15px}.battery-reading{display:flex;flex-direction:column;gap:7px;--battery-color:#418562}.battery-reading>strong{font-size:12px;line-height:1.5;font-weight:600}.battery-reading>small{font-size:9px;font-weight:400;line-height:1.55;color:var(--muted)}.battery-low{--battery-color:#ce4353}.battery-medium{--battery-color:#c49120}.battery-gauge{display:block;width:100%;max-width:140px;height:6px;background:#e7eeeb;border-radius:5px;overflow:hidden}.battery-gauge>i{display:block;height:100%;background:var(--battery-color);border-radius:5px}.telemetry-value .battery-reading{margin-top:3px}

/* Integrações e revisão do cadastro veicular. */
.integration-card{padding:28px;max-width:820px}.integration-card h2{margin:9px 0}.integration-status{display:flex;gap:18px;align-items:center;padding:18px 0;margin:10px 0 20px;border-block:1px solid var(--line)}.integration-status strong{font-size:14px}.integration-status small,.plate-query-summary small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:5px}.plate-lookup-row{display:flex;align-items:end;gap:12px}.plate-lookup-row>.form-field{flex:1;margin-bottom:0}.plate-lookup-row>button{margin-bottom:0;min-height:46px}.plate-lookup-actions{display:flex;gap:10px;margin:10px 0;flex-wrap:wrap}.plate-query-summary{margin:18px 0;padding:17px;background:#f0f7f3;border:1px solid #d8e8df;border-radius:12px;font-size:12px;line-height:1.6}.plate-query-summary p{margin:8px 0}.plate-query-summary details{margin-top:12px}.plate-query-summary summary{cursor:pointer;font-weight:600}.plate-query-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:6px}.plate-query-summary dt{color:var(--muted)}.plate-query-summary dd{margin:0;overflow-wrap:anywhere}#vehicle-registration .grid-2{margin-top:18px}@media(max-width:520px){.integration-card{padding:18px}.integration-status,.plate-lookup-row{align-items:stretch;flex-direction:column}.plate-lookup-row>.form-field{width:100%}}

.network-template-library{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.network-template-library>summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--ink)}.network-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.network-template{border:1px solid var(--line);border-radius:12px;padding:18px;background:#f8faf9}.network-template h3{font-size:14px;margin:0 0 8px}.network-template>strong{font-size:13px;overflow-wrap:anywhere}.network-template>small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin:8px 0 16px}.network-template textarea{font-family:monospace;font-size:11px;line-height:1.6;resize:vertical;width:100%;box-sizing:border-box;overflow-wrap:anywhere}.network-template .operation-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:720px){.network-template-grid{grid-template-columns:1fr}}

.setup-step{padding:18px 0;border-bottom:1px solid var(--border,#dfe7e8)}.setup-command{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:#eff5f2;border-radius:10px;color:#16383d;font-size:14px;user-select:all}.setup-step h3{margin-bottom:10px}
#setup-options{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:14px 0 18px}
#setup-options>summary{font-weight:600;cursor:pointer;font-size:12px}
#setup-options[open]>summary{margin-bottom:16px}
#setup-generated .setup-step>button{margin:6px 6px 0 0}
#sms-package-return{margin-bottom:14px}

/* Referências legíveis do percurso; as cores pertencem ao registro histórico. */
.history-point-wrapper{background:transparent;border:0}.history-map-point.history-numbered{position:relative;display:grid;place-items:center;width:28px;height:28px;border:2px solid #fff;background:var(--history-color,#397bde);color:#fff;font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1;box-shadow:0 2px 5px #12303d38}
.history-map-point.history-state-off{background:#fff;border-color:#65758a;color:#526176}.history-map-point.history-endpoint-start,.history-map-point.history-endpoint-single{background:#278457;border-color:#fff;color:white}.history-map-point.history-endpoint-end{background:#d44657;border-color:#fff;color:white}
.history-endpoint:after{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);padding:3px 6px;border-radius:5px;background:#fff;color:#275340;box-shadow:0 1px 5px #12303d35;font-size:9px;white-space:nowrap;content:'Início'}.history-endpoint-end:after{content:'Fim';color:#ab2940}.history-endpoint-single:after{content:'Único ponto'}
.history-numbered.selected{outline:3px solid #e1bb43;outline-offset:3px;z-index:50}.history-start{--history-color:#278457}.history-end{--history-color:#d44657}
.history-event-marker{transform:translateY(-24px)}.history-event-marker.kind-idle{background:#b77912}.history-event-marker.kind-off,.history-event-marker.kind-parked{color:#526176;border-color:#65758a}
.history-point-detail{border-top:3px solid var(--history-color,#65758a);padding-top:12px}.history-point-identity{display:flex;align-items:center;gap:10px}.history-point-identity strong{display:block;font-size:13px}.history-point-badge{display:grid;place-items:center;background:var(--history-color,#65758a);color:#fff;min-width:34px;height:34px;padding:0 5px;border-radius:10px;font-size:14px}.history-point-address{font-size:12px;line-height:1.7;color:#385563}.history-point-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #e2e8ec;margin-top:14px;padding-top:12px}.history-point-nav>span{font-size:10px;color:#71838c}.history-point-nav button{min-height:44px;padding:8px 10px;font-size:11px}

.history-point-event{position:absolute;right:-4px;top:-5px;min-width:12px;height:12px;display:grid;place-items:center;border:1px solid white;border-radius:7px;background:#172f3d;color:white;font-size:8px;pointer-events:none}

/* Leituras e ações com a mesma apresentação no navegador e no aplicativo. */
.vehicle-batteries{display:flex;align-items:center;gap:16px;padding:7px 0;font-size:11px;grid-column:1/-1}
.vehicle-batteries>span{display:flex;align-items:center;gap:5px}.vehicle-batteries .icon{width:16px;height:16px}.vehicle-batteries strong{font-size:11px;color:#294e3d}.vehicle-batteries .battery-low strong{color:#b5444e}
.vehicle-address-link{padding:0;background:none;color:inherit;text-align:left;line-height:inherit;font-size:inherit;white-space:normal}.vehicle-address-link:hover{text-decoration:underline}.vehicle-address-link:disabled{cursor:default;opacity:1}
.monitor-workspace .map-card{position:relative}.desktop-map-options{top:64px;max-height:calc(100% - 90px)}
.event-row.event-ignition-on .event-symbol{background:#dff2e4;color:#237146}.event-row.event-ignition-off .event-symbol{background:#e8edf2;color:#617183}
.event-row.event-area-enter .event-symbol{background:#e0f1ef;color:#267a70}.event-row.event-area-exit .event-symbol,.event-row.event-warning .event-symbol{background:#fff0d7;color:#a86a18}
.event-row.event-critical .event-symbol{background:#fce6eb;color:#b63b53}.event-row.event-ignition-on .event-title{color:#2c7045}.event-row.event-ignition-off .event-title{color:#647286}

.marker-name.client-marker-label{position:absolute;left:43px;top:24px;transform:translateY(-50%);display:flex;flex-direction:column;max-width:180px;min-width:56px;padding:0;border-radius:7px;overflow:hidden;white-space:normal;line-height:1.3}
.position-report{margin-top:20px;scroll-margin-top:20px}.position-report[hidden]{display:none}.report-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px}.report-heading p,.report-heading small{display:block;color:var(--muted);font-size:12px;line-height:1.7}.report-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;margin:16px 0}.report-filters>input{flex:2;min-width:180px}.report-filters>select{flex:1;min-width:140px}.report-columns{position:relative;min-width:160px}.report-columns summary{cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:8px}.report-columns label{display:flex;align-items:center;gap:8px;font-size:12px;padding:7px}.report-columns input{width:auto}.report-legend summary{cursor:pointer;font-size:12px;color:#416452}.report-legend>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.report-legend p{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0}.report-legend .icon{width:14px;height:14px}.report-table-scroll{overflow:auto;max-height:650px;border:1px solid var(--line);border-radius:9px}.report-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.report-table th{position:sticky;top:0;background:#eaf1ed;z-index:1;text-align:left;padding:10px;border-bottom:1px solid #d9e5de}.report-table td{padding:8px 10px;border-bottom:1px solid var(--line);max-width:330px;white-space:normal;min-width:80px;line-height:1.5}.report-table tr:nth-child(even){background:#f8faf9}.report-table .icon{width:14px;height:14px;vertical-align:middle;margin-right:4px}.report-table td:first-child,.report-table td:nth-child(2){min-width:135px}.report-address{background:none;text-align:left;color:#276d82;font-size:11px;padding:0}.report-address:hover{text-decoration:underline}.report-paging{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:12px 0;font-size:11px}.report-paging .secondary{font-size:11px;padding:7px 10px}#xtrack-print{display:none}
@media(max-width:700px){.report-heading{flex-direction:column}.report-paging{justify-content:space-between;gap:5px}.position-report{padding:14px!important}.report-filters>input,.report-filters>select{font-size:12px}}
@media print{@page{size:A3 landscape;margin:12mm}body{background:white!important}body>*{display:none!important}body>#xtrack-print{display:block!important;font-family:Arial,sans-serif;color:#163139}#xtrack-print h1{font-size:18pt;margin-bottom:8pt}#xtrack-print p{font-size:9pt;margin:4pt 0}#xtrack-print table{border-collapse:collapse;width:100%;font-size:8pt;margin-top:12pt;table-layout:auto}#xtrack-print th,#xtrack-print td{border:1px solid #dfe7e2;padding:5pt;overflow-wrap:anywhere}#xtrack-print th{background:#eaf1ed;text-align:left}#xtrack-print thead{display:table-header-group}#xtrack-print tr{break-inside:avoid}}

/* Uma linha de controle compartilhada, preservando o tamanho da ficha. */
.vehicle-live-controls{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.vehicle-live-controls>.vehicle-batteries{min-width:0;flex-shrink:1}.fence-quick-control{display:flex;align-items:center;gap:2px;flex-shrink:0}.fence-quick-toggle{display:flex;align-items:center;gap:4px;padding:3px 5px;border:1px solid #dbe6df;border-radius:6px;background:#f5f8f6;color:#61776a;font-size:10px;min-height:24px}.fence-quick-toggle .icon{width:14px;height:14px}.fence-quick-toggle.is-active{background:#e8f5e8;border-color:#96bf8a;color:#2b6539}.fence-quick-manage{display:grid;place-items:center;padding:4px 2px;background:none;color:#738577}.fence-quick-manage .icon{width:16px;height:16px}.fence-quick-switch{display:inline-block;position:relative;width:25px;height:14px;border-radius:9px;background:#b8c3bc;flex-shrink:0}.fence-quick-switch:after{content:'';position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:white;box-shadow:0 1px 3px #17362430}[aria-checked=true]>.fence-quick-switch{background:#4b925a}[aria-checked=true]>.fence-quick-switch:after{left:13px}.fence-manager-row{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.fence-manager-row>div{flex:1;min-width:0}.fence-manager-row strong{font-size:13px;overflow-wrap:anywhere}.fence-manager-row small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:4px}.fence-manager-switch{display:flex;align-items:center;gap:7px;background:#f1f6f2;border:1px solid #d8e4da;padding:8px;border-radius:7px;color:#42654a;font-size:11px}.fence-manager-row .ghost{font-size:11px;padding:6px}.client-sheet .vehicle-live-controls{flex-shrink:0}.client-sheet .vehicle-live-controls .client-batteries{flex-wrap:nowrap}.client-sheet .fence-quick-toggle{min-height:30px;font-size:10px}.client-sheet .fence-quick-manage{padding:6px 3px}
/* Cerca rápida: mapa, raio e duas opções, compartilhados com o aplicativo. */
dialog.quick-fence-dialog,.customer-app dialog.quick-fence-dialog{width:440px;max-width:calc(100vw - 24px);border-radius:16px}
dialog.quick-fence-dialog .dialog-head,.customer-app dialog.quick-fence-dialog .dialog-head{padding:12px 18px;min-height:54px}
dialog.quick-fence-dialog .dialog-head h2{font-size:16px}
dialog.quick-fence-dialog .dialog-body,.customer-app dialog.quick-fence-dialog .dialog-body{padding:0;max-height:none;overflow:auto}
#quick-fence-form{margin:0;font-size:13px}
.quick-fence-vehicle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;font-size:12px}
.quick-fence-vehicle>span:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.quick-fence-vehicle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-fence-vehicle .icon{width:18px;height:18px;flex-shrink:0;color:#4b8061}
.quick-fence-status{font-size:10px;padding:4px 8px;border-radius:20px;background:#f0f3f1;color:#758479;flex-shrink:0}
.quick-fence-status.is-active{background:#e7f3e9;color:#357047}
.quick-fence-map{height:235px;position:relative;background:#edf2ec;overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fence-preview-loading>.xtrack-map-canvas{visibility:hidden;opacity:0;pointer-events:none}
.fence-preview-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#edf2ec;color:#6e8176;padding:20px;text-align:center;font-size:12px;line-height:1.6;z-index:2}
.quick-fence-fields{padding:14px 18px 0}
.quick-fence-radius{display:flex;align-items:center;justify-content:space-between;gap:8px}
.quick-fence-radius label{font-size:12px;color:var(--ink);font-weight:500;white-space:nowrap}
.quick-fence-radius output{font-weight:650}
.quick-fence-radius button{font-size:10px;padding:5px 0;display:flex;gap:4px;align-items:center;color:#5d7b66}
.quick-fence-radius button .icon{width:13px;height:13px}
#quick-fence-radius{display:block;width:100%;height:28px;padding:0;margin:5px 0;border:0;border-radius:0;box-shadow:none;accent-color:#418562;cursor:pointer}
.quick-fence-location{font-size:10px;line-height:1.5;color:var(--muted);margin:4px 0 10px}
.quick-fence-option{display:flex;align-items:center;gap:16px;position:relative;cursor:pointer;padding:16px 0;border-top:1px solid #edf1ee;min-height:72px}
.quick-fence-option>span{flex:1;min-width:0}
.quick-fence-option strong{display:block;font-size:13px;font-weight:550;color:var(--ink)}
.quick-fence-option small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px}
.quick-fence-option input{position:absolute;right:0;width:38px;height:24px;opacity:0;margin:0;cursor:pointer}
.quick-fence-option i{position:relative;display:block;width:36px;height:22px;flex-shrink:0;border-radius:14px;background:#cbd3ce;pointer-events:none}
.quick-fence-option i:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #15332326;transition:left .15s}
.quick-fence-option input:checked+i{background:#418562}
.quick-fence-option input:checked+i:after{left:17px}
.quick-fence-option input:focus+i{outline:2px solid #367b56;outline-offset:3px}
.quick-fence-option input:disabled+i{opacity:.5}
.quick-fence-existing{font-size:10px;line-height:1.5;color:#728278;background:#f4f7f4;border-radius:7px;padding:9px;margin:0 0 8px}
.quick-fence-actions{padding:12px 18px 16px;display:flex;gap:8px;flex-wrap:wrap;background:white;position:sticky;bottom:0;z-index:2;border-top:1px solid #edf1ee}
.quick-fence-actions>.primary{flex:1;min-width:180px;min-height:42px;justify-content:center;font-size:12px}
.quick-fence-actions>.secondary{min-height:42px;font-size:11px}
.quick-fence-actions>.ghost{width:100%;padding:4px;font-size:10px;color:#7a8a7f}
.fence-quick-dot{width:7px;height:7px;background:#a4b0a7;border-radius:50%;margin:0 2px}
.fence-quick-dot.is-active{background:#418562}
@media(max-height:700px){.quick-fence-map{height:185px}.quick-fence-option{padding:12px 0;min-height:64px}}
.report-location{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.report-map-link{color:#276d82;text-decoration:underline;font-size:11px;white-space:nowrap;line-height:1.6}
.report-map-link:focus-visible{outline:2px solid #418562;outline-offset:3px;border-radius:2px}
@media print{#xtrack-print .report-map-link{display:block;font-size:8pt;color:#276d82;text-decoration:underline}}
