:root[data-theme=light]{--bg:#f4f7f9;--panel:#fff;--fg:#173247;--muted:#607584;--line:#dbe5eb;--accent:#155e75;--accent-fg:#fff;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
body.campo-app{background:#eef3f6;color:var(--fg);font-family:var(--font);overscroll-behavior:none}*{-webkit-tap-highlight-color:transparent}button,a,input,select{touch-action:manipulation}.campo-app button{min-height:44px}.campo-app .app{display:block;height:100dvh}.campo-app .map-wrap{width:100%;height:100dvh}.campo-app #map{height:100%}
#campoTop{position:fixed;z-index:700;top:0;left:0;right:0;padding:calc(env(safe-area-inset-top) + 12px) 14px 12px;background:linear-gradient(#fff 86%,#ffffff00);pointer-events:none}#campoTop>*{pointer-events:auto}.campo-brand{display:flex;align-items:center;gap:10px}.campo-logo{display:grid;place-items:center;background:#155e75;color:#fff;border-radius:12px;height:38px;width:38px;font-weight:850;font-size:13px}.campo-brand b{font-size:17px}.campo-brand small{display:block;color:#607584;font-size:12px;margin-top:2px}.campo-top-actions{display:flex;gap:7px;position:absolute;right:14px;top:calc(env(safe-area-inset-top) + 10px)}.campo-top-actions button{border-radius:12px;background:#fff;border:1px solid #dbe5eb;color:#155e75;padding:0 12px;font-size:13px;font-weight:650;min-height:40px}
#campoBusca{margin-top:13px;max-width:560px}#campoBusca input{width:100%;height:48px;border:1px solid #d2dfe7;background:#fff;border-radius:14px;box-shadow:0 3px 15px #1232460b;padding:12px 16px;font:16px var(--font);color:#173247}#campoNav{position:fixed;z-index:1400;bottom:0;left:0;right:0;padding:6px 10px calc(6px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #dbe5eb;background:#fffffff5;backdrop-filter:blur(16px)}#campoNav button{border:0;background:transparent;min-height:54px;display:grid;place-content:center;gap:2px;font:600 12px var(--font);color:#607584;border-radius:12px}#campoNav button span{font-size:24px;line-height:25px}#campoNav button[aria-current=page]{color:#155e75;background:#eaf3f6}.campo-flutuante{position:fixed;z-index:650;right:14px;bottom:calc(92px + env(safe-area-inset-bottom));width:50px;height:50px;border-radius:16px;background:#fff;border:1px solid #dbe5eb;box-shadow:0 3px 16px #12324622;font-size:29px;color:#155e75}
.campo-app aside{position:fixed;z-index:1300;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom));width:100%;height:min(65dvh,620px);max-height:calc(100dvh - 220px);border:0;border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -8px 30px #102f4522;transform:translateY(140%);transition:transform .18s ease;overflow:hidden}.campo-app.mobile-panel-open aside{transform:translateY(0)}.campo-app aside>.head,.campo-app aside>.stats,.campo-app .field-tools,.campo-app #mapPerformance,.campo-app .mobile-open{display:none!important}.campo-app aside .scroll{padding-top:47px;height:100%;overflow:auto;padding-bottom:26px}.campo-app aside .block{padding:16px;border-bottom:0}.campo-app #campoFechar{position:absolute;z-index:2;right:14px;top:7px;background:#edf4f7;color:#155e75;border:0;border-radius:11px;min-height:36px;padding:0 15px;font-size:13px}.campo-app .scroll>.block,.campo-app .scroll>#list{display:none}body[data-painel-campo=cidades] #cidades{display:block}body[data-painel-campo=cidades] .block:has(#cidades){display:block}body[data-painel-campo=gps] #gpsBlock{display:block}body[data-painel-campo=filtros] .block:has(#f8){display:block}body[data-painel-campo=busca] #list{display:block}#campoFundo{position:fixed;inset:0;border:0;z-index:1200;background:#14324733;backdrop-filter:blur(1px)}.campo-app .cid{border-radius:13px;border:1px solid #e0e8ed;margin:0 12px 8px}.campo-app .cidade-head{padding:10px}.campo-app .cidade-head .nome{font-size:16px}.campo-app .cidade-head .meta{font-size:12px}.campo-app .pop-list{padding:0 10px 10px}.campo-app .pop-view{font-size:14px;padding:11px}
.campo-app .leaflet-top.leaflet-left{top:139px;left:4px}.campo-app .leaflet-control-zoom a{height:36px;width:36px;line-height:36px;border-radius:8px}.campo-app .leaflet-control-attribution{font-size:9px;background:#ffffffbb;max-width:100%;bottom:72px}.campo-app .leaflet-popup-content-wrapper{border-radius:18px;box-shadow:0 8px 35px #1232462b}.campo-app .leaflet-popup-content{margin:18px;max-height:42dvh;font-size:14px;width:min(310px,calc(100vw - 75px))!important}.campo-popup h3{font-size:22px;line-height:1.2;margin:6px 0 12px;overflow-wrap:anywhere}.campo-popup-kicker{font-size:11px;color:#607584;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.campo-popup-meta{display:flex;gap:6px;flex-wrap:wrap}.campo-popup-meta span{border-radius:7px;padding:5px 7px;background:#edf4f7;font-size:12px}.campo-popup p{color:#607584;font-size:13px}.campo-popup-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0}.campo-popup-actions a,.campo-popup-actions button{border:1px solid #d2dfe7;border-radius:10px;background:#155e75;color:white;min-height:44px;padding:9px 6px;display:grid;place-items:center;text-align:center;font:600 12px var(--font);text-decoration:none}.campo-popup-actions button{background:#fff;color:#155e75}.campo-popup details summary{padding:9px 0;font-size:13px;cursor:pointer}.campo-app .kml-tooltip{border:0;border-radius:5px;background:#fffffff0;box-shadow:0 1px 5px #14324718;padding:2px 5px}.campo-app .kml-tooltip span{-webkit-text-stroke:0!important;font:650 14px var(--font)!important}.campo-app .kml-tooltip:before{display:none}.campo-app .map-cluster{background:#155e75!important;color:#fff;font:700 12px var(--font);text-shadow:none;box-shadow:0 2px 7px #17324725;border:2px solid #fff}.field-point{background:none;border:0}.campo-app .legend{display:none;bottom:calc(90px + env(safe-area-inset-bottom));right:14px;max-height:40dvh;width:min(270px,80vw);background:white;color:#173247;border-radius:16px;box-shadow:0 5px 25px #12324626;font-size:13px}.campo-legenda .legend{display:block}.campo-legend-item{display:flex;gap:9px;align-items:center;padding:7px}.campo-legend-item i{display:inline-block;width:12px;height:12px;border-radius:50%;background:#155e75}.campo-legend-item i.ceo{border-radius:0;transform:rotate(45deg);background:#475569}.campo-app .legend-toggle{font-size:15px;padding:5px 0}.campo-app .legend .kml-item{padding:5px 0}.campo-app .environment-indicator{bottom:calc(75px + env(safe-area-inset-bottom));left:8px;font-size:9px;border-radius:5px;padding:3px 5px;opacity:.7;box-shadow:none}
.campo-dialog{width:min(550px,calc(100vw - 20px));border:0;border-radius:22px;box-shadow:0 15px 60px #12324633}.campo-dialog::backdrop{background:#14324766;backdrop-filter:blur(3px)}.campo-dialog .modal-inner{padding:22px;max-height:82dvh}.campo-dialog .modal-head h2{font-size:22px;letter-spacing:-.025em}.campo-dialog .modal-head{margin-bottom:12px}.campo-dialog .modal-head button{border-radius:50%;min-width:40px;min-height:40px;font-size:22px;background:#edf4f7;border:0}.campo-dialog p{line-height:1.6;font-size:14px}.campo-note{color:#607584}.campo-switch{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #e5edf2;gap:20px}.campo-switch b{font-size:15px}.campo-switch small{display:block;font-size:12px;color:#607584;margin-top:5px;line-height:1.4}.campo-switch input{appearance:none;flex:0 0 46px;width:46px;height:28px;border:0;border-radius:20px;background:#ccd8e1;position:relative;padding:0!important}.campo-switch input:before{content:'';position:absolute;height:22px;width:22px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .12s}.campo-switch input:checked{background:#155e75}.campo-switch input:checked:before{transform:translateX(18px)}.campo-switch input:focus-visible{outline:3px solid #78b6ca;outline-offset:4px}.campo-primary,.campo-wide{display:block;width:100%;min-height:48px;padding:13px 16px;border-radius:12px;text-align:center;background:#155e75;color:#fff!important;border:0;font-size:14px;font-weight:650;text-decoration:none;margin-top:14px}.campo-wide{background:#edf4f7;color:#155e75!important;text-align:left}.campo-file-group h3,.campo-section h3{font-size:14px;margin:20px 0 8px;color:#607584}.campo-file{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #e1e9ee;text-decoration:none;color:#155e75}.campo-file b{font-size:14px;overflow-wrap:anywhere}.campo-file small,.campo-record small{display:block;font-size:12px;line-height:1.5;color:#607584;margin-top:4px;overflow-wrap:anywhere}.campo-file>span:last-child{font-size:12px;flex:none;border-radius:8px;background:#edf4f7;padding:9px}.campo-menu{display:grid;gap:8px}.campo-menu button,.campo-menu>a{text-align:left;border:1px solid #e1e9ee;border-radius:12px;background:#fff;color:#173247;padding:14px;font-size:14px;text-decoration:none}.campo-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.campo-metrics>div{padding:14px;background:#edf4f7;border-radius:12px}.campo-metrics b{display:block;font-size:25px;color:#155e75}.campo-metrics span{font-size:12px;color:#607584}.campo-warning{background:#fff4dd;border-radius:12px;padding:13px;color:#6b5015}.campo-record{padding:12px 0;border-bottom:1px solid #e1e9ee}.campo-candidatas{max-height:35dvh;overflow:auto}.campo-lock{text-align:center;padding:15px 0}.campo-lock>b{font-size:18px}.campo-lock .note{font-size:12px}
#campoMedida{position:fixed;z-index:800;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));padding:15px;border-radius:18px;background:#fff;box-shadow:0 5px 25px #1232462b;max-width:500px}#campoMedida>div:first-child{padding-right:130px}#campoMedida b{font-size:25px;color:#155e75}#campoMedida small{display:block;font-size:12px;color:#607584;line-height:1.5;margin-top:4px}#campoMedida select{position:absolute;right:14px;top:15px;max-width:125px;font-size:13px;min-height:38px}.campo-measure-actions{display:flex;gap:8px;margin-top:13px}.campo-measure-actions button{flex:1;border-radius:10px;border:1px solid #dbe5eb;background:#f4f7f9;font-size:13px}.campo-measure-actions button:last-child{background:#155e75;color:#fff}.campo-medindo #map{cursor:crosshair}.campo-medindo #campoGps{bottom:calc(275px + env(safe-area-inset-bottom))}.campo-offline #campoResumo:before{content:'Sem conexão · ';color:#b45309}.campo-app .modal input,.campo-app .modal select{font-size:16px!important;min-height:44px}.campo-app .modal .modal-inner{padding-bottom:24px}.campo-app .pill{background:#e7eff4!important;color:#155e75!important;text-shadow:none}.campo-app .list li{border:1px solid #e1e9ee;border-radius:12px;margin:8px 12px;padding:12px}.campo-app .list li .n{font-size:15px}
@media(min-width:700px){#campoTop{right:auto;width:470px;padding:18px}#campoNav{left:18px;right:auto;bottom:18px;width:430px;border:1px solid #dbe5eb;border-radius:20px;padding:7px;box-shadow:0 5px 20px #12324616}.campo-app aside{left:18px;right:auto;width:430px;bottom:100px;border-radius:22px;height:min(65dvh,620px)}#campoMedida{left:470px;right:auto;bottom:25px;width:430px}.campo-app .leaflet-top.leaflet-left{left:auto;right:14px;top:18px}.campo-app .leaflet-control-attribution{bottom:0}.campo-app .environment-indicator{left:auto;right:12px;bottom:7px}#campoGps{bottom:40px}.campo-app .legend{bottom:105px}.campo-app .leaflet-popup-content{max-height:50dvh}.campo-app #campoFundo{background:#14324711;backdrop-filter:none}}
@media(max-width:370px){.campo-brand b{font-size:15px}.campo-top-actions button{font-size:12px;padding:0 9px}.campo-logo{display:none}.campo-brand small{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.campo-brand{padding-right:156px;min-height:40px}.campo-brand>div{min-width:0}.campo-brand b,.campo-brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#173247}.campo-brand small{color:#607584}.campo-logo{flex:0 0 38px}
body[data-painel-campo=incidentes] #blocoAlarmes{display:block}.campo-popup .campo-warning{color:#6b5015;font-size:13px}.campo-record button{margin-top:8px;border:1px solid #dbe5eb;border-radius:10px;background:#edf4f7;color:#155e75;padding:8px 12px}
/* Identidade aprovada no Canva: busca flutuante, chips e navegação discreta. */
:root[data-theme=light]{--accent:#0d6978;--accent-fg:#fff;--fg:#183b48;--muted:#70868d;--line:#e7edef}
#campoTop{padding:calc(env(safe-area-inset-top) + 18px) 18px 10px;background:linear-gradient(#f7f9f9e6 0%,#f7f9f955 84%,transparent);pointer-events:none}
#campoBusca{position:relative;margin:0;max-width:none;height:54px;border-radius:19px;background:#fffffff5;box-shadow:0 5px 25px #23424d14;display:flex;align-items:center;border:1px solid #ffffff}
#campoBusca input{border:0;background:transparent;box-shadow:none;border-radius:19px;padding:0 54px 0 44px;height:52px;font-size:15px}
.campo-search-icon{position:absolute;left:15px;width:21px;height:21px;color:#0d6978;pointer-events:none}#campoBusca svg{width:22px;height:22px}
#campoCamadas{position:absolute;right:5px;top:5px;width:44px;height:44px;min-height:44px;border:0;background:none;color:#0d6978;border-radius:14px;display:grid;place-items:center}
#campoCamadas:hover{background:#edf5f6}.campo-contexto{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;pointer-events:none}.campo-contexto>*{pointer-events:auto}
#campoCidade{display:flex;align-items:center;gap:8px;border:1px solid #ffffff;border-radius:16px;background:#fffffff0;box-shadow:0 3px 18px #23424d10;padding:8px 12px;color:#204651;font-size:13px;font-weight:600;min-width:0;min-height:42px;max-width:70%}#campoCidade svg{width:18px;height:18px;color:#0d6978;flex:none}#campoCidadeNome{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.campo-chevron{color:#6d8992;font-size:15px}#campoResumo{font-size:11px;line-height:1.4;color:#4c6e77;text-align:right;text-shadow:0 1px 4px white;max-width:42%}
#campoNav{z-index:1400;background:#fffffffa;backdrop-filter:blur(18px);border-top:1px solid #edf1f2;padding:0 12px calc(8px + env(safe-area-inset-bottom));gap:8px}
#campoNav button{position:relative;border-radius:0;background:transparent;min-height:66px;gap:5px;color:#839398;font-size:11px;font-weight:500;padding-top:12px}
#campoNav button svg{width:23px;height:23px;margin:auto}#campoNav button span{font-size:11px;line-height:14px}#campoNav button[aria-current=page]{background:transparent;color:#0d6978;font-weight:700}#campoNav button[aria-current=page]:before{content:'';position:absolute;top:0;left:20%;right:20%;height:2px;border-radius:2px;background:#0d6978}
#campoGps{border:1px solid #edf1f2;border-radius:50%;width:50px;height:50px;bottom:calc(100px + env(safe-area-inset-bottom));box-shadow:0 4px 16px #2545521c;display:grid;place-items:center}#campoGps svg{width:26px;height:26px}
.campo-app .field-point{display:grid;place-items:center;filter:drop-shadow(0 1px 2px #17324725)}.campo-app .map-cluster{background:#0d6978!important;border-width:2px;box-shadow:0 2px 8px #17324718;font-size:11px}
.campo-app .leaflet-top.leaflet-left{top:145px;left:10px}.campo-app .leaflet-control-zoom{border:1px solid #e5edef!important;border-radius:14px!important;overflow:hidden;box-shadow:0 3px 15px #23424d10!important}.campo-app .leaflet-control-zoom a{width:34px;height:34px;line-height:34px;border-radius:0;background:#fffffff5;color:#24515b}
.campo-dialog{border-radius:25px;background:#fff}.campo-dialog .modal-head h2{font-size:21px;letter-spacing:-.025em;color:#183b48}.campo-dialog .modal-inner{padding:24px}.campo-dialog .campo-note{font-size:13px}.campo-switch{gap:18px}.campo-switch b{font-size:14px}.campo-switch small{font-size:12px}.campo-wide{border-radius:14px!important;padding:14px!important;font-size:14px!important}.campo-primary{background:#0d6978!important;border-radius:13px!important}.campo-dialog .campo-file-group{border-top:1px solid #edf1f2}
.campo-app .cid{border:1px solid #e7eff1;margin:0 15px 9px;border-radius:16px}.campo-app .cid.sel{background:#eff7f8;border-color:#bbdadd}.campo-app .cidade-head{padding:12px;gap:7px}.campo-app .cidade-head .nome{font-size:15px;color:#204651}.campo-app .cidade-head .meta{font-size:11px;line-height:1.5;color:#70868d}.campo-app .pop-item{border-radius:12px}.campo-app .pop-view{font-size:13px;line-height:1.6}.campo-app .mini{min-width:36px;border-radius:10px;background:#f3f7f8;color:#0d6978;border:1px solid #e1ebee}.campo-app .pop-actions button{min-height:36px}
.campo-app .leaflet-popup-content-wrapper{border:1px solid #e2ecef;border-radius:22px}.campo-popup h3{color:#174451;font-size:23px}.campo-popup-meta span{background:#edf6f7;color:#34636d}.campo-popup-actions a{background:#0d6978}.campo-popup-kicker{color:#6d8992}.campo-app .kml-tooltip{border:1px solid #e4edef;background:#fffffff5;box-shadow:0 2px 8px #23424d12}.campo-app .kml-tooltip span{font-size:14px!important;color:#204651!important}
.campo-app .environment-indicator{font-size:8px;opacity:.7;bottom:calc(81px + env(safe-area-inset-bottom));background:#ffffffd9;border:1px solid #e7eff1;color:#607584;box-shadow:none}.campo-app .leaflet-control-attribution{bottom:78px}
.campo-app .auth-card{border-radius:26px;border:1px solid #e2ecef;box-shadow:0 20px 60px #23424d13}.campo-app .auth-card h2{color:#174451}.campo-app .auth-card input{border-radius:12px;min-height:46px}.campo-app .auth-card button.primary{background:#0d6978;border-radius:13px}
.campo-app #relatorioDialog .modal-inner{max-height:82dvh}.campo-app .report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.campo-app .report-card{background:#f3f8f9;border:0;border-radius:14px;padding:13px}.campo-app .report-card b{color:#0d6978;font-size:24px}.campo-app .report-card span{font-size:11px;color:#70868d}.campo-app .report-warnings{font-size:13px;line-height:1.7;color:#775d29}.campo-app .imp-fields input,.campo-app .imp-fields select,.campo-app .imp-summary{border-radius:12px}.campo-app .imp-warning{color:#806024}.campo-app .modal-foot{position:sticky;bottom:-24px;background:#fff;padding:12px 0;display:flex;gap:8px;z-index:5}.campo-app .modal-foot button{border-radius:12px;min-height:46px;flex:1}
@media(min-width:700px){#campoTop{width:430px;padding:22px}.campo-app .leaflet-top.leaflet-left{right:18px;left:auto;top:22px}#campoNav{width:386px;border-radius:22px;padding:0 12px 8px}.campo-app .environment-indicator{bottom:8px;left:auto;right:12px}.campo-app .leaflet-control-attribution{bottom:0}#campoGps{bottom:48px}.campo-app .report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-transparency:reduce){#campoTop,#campoNav,#campoBusca{background:#fff;backdrop-filter:none}}
.campo-arquivo-acoes{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.campo-arquivo-acoes button,.campo-arquivo-acoes a{border:1px solid #dce9ec;border-radius:11px;min-height:44px;padding:11px 14px;background:#f3f8f9;color:#0d6978;text-decoration:none;font-size:12px;font-weight:600}.campo-arquivo-acoes button{background:#0d6978;color:#fff}.campo-form-label{display:grid;gap:8px;font-size:13px;margin:16px 0}.campo-form-label select{width:100%;border:1px solid #dce9ec;border-radius:12px;background:#fff;padding:10px;color:#204651}.campo-app .toast,.campo-app #toast{bottom:calc(100px + env(safe-area-inset-bottom));z-index:1700;max-width:calc(100vw - 32px);border-radius:14px}
#campoDetalhe{position:fixed;z-index:900;left:12px;right:12px;bottom:calc(90px + env(safe-area-inset-bottom));max-height:46dvh;overflow:auto;border:1px solid #e1ecef;border-radius:25px;background:#fff;box-shadow:0 8px 35px #21465224;padding:8px 21px 17px}#campoDetalhe[hidden]{display:none}.campo-card-handle{width:32px;height:4px;background:#dce7ea;border-radius:4px;margin:0 auto 15px}.campo-card-close{position:absolute;right:12px;top:12px;border:0;border-radius:50%;width:36px;height:36px;min-height:36px!important;background:#f2f7f8;color:#496973;font-size:22px}#campoDetalhe .campo-popup-kicker{padding-right:35px}#campoDetalhe .campo-popup h3{margin:5px 0 12px;padding-right:15px}#campoDetalhe .campo-popup-actions{margin-bottom:5px}#campoDetalhe details summary{padding:12px 0 5px}#campoDetalhe details button{border:1px solid #dce9ec;border-radius:10px;background:#f3f8f9;color:#0d6978;padding:10px;margin:6px 5px 0 0}
@media(min-width:700px){#campoDetalhe{left:18px;right:auto;width:386px;bottom:108px;max-height:56dvh}}
.imp-avancado{margin:12px 0;border:1px solid #e1ebee;border-radius:14px;padding:12px}.imp-avancado>summary{font-size:13px;font-weight:600;color:#0d6978;cursor:pointer;min-height:26px}.imp-avancado[open]>summary{margin-bottom:16px}.imp-avancado .imp-options{margin-bottom:15px}.imp-avancado .imp-page{margin-top:12px}.campo-app .modal .imp-options input[type=checkbox]{min-height:18px;width:18px;height:18px}.campo-app #impSourceNote{line-height:1.6;color:#70868d}.campo-app #impConfirm{background:#0d6978;color:white;border:1px solid #0d6978}.campo-app .grid{min-width:600px}
.campo-app .scroll>#cidades{display:none}body[data-painel-campo=cidades] .scroll>#cidades{display:block}
.campo-app[data-painel-campo=busca] .scroll>#list{display:block}body[data-painel-campo=busca] #campoTop{z-index:1350}
