*{box-sizing:border-box}body{margin:0;font:14px system-ui,Arial,sans-serif;background:#f3f6f8;color:#1c3443}header{background:#173b50;color:white;padding:16px max(18px,3vw);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}h1{font-size:22px;margin:0}h2{font-size:16px;margin:0 0 12px}nav{display:flex;gap:18px;align-items:center}nav a{color:#fff}main{padding:16px;max-width:1700px;margin:auto}.tabs{display:flex;gap:8px;margin-bottom:14px}.tabs button{background:white;color:#173b50;border:1px solid #cedde5}.tabs .active{background:#173b50;color:white}.layout{display:grid;grid-template-columns:320px 1fr;gap:12px;height:calc(100vh - 205px);min-height:530px}.panel{background:white;border-radius:10px;padding:16px;box-shadow:0 1px 5px #0001;margin-bottom:12px}.publicMap,.adminMap{border-radius:10px;min-height:440px;height:100%}.scroll{overflow:auto;max-height:calc(100vh - 380px)}.item{padding:11px 5px;border-bottom:1px solid #e6edf0;cursor:pointer}.item:hover,.item.selected{background:#eaf3f6}.item b{display:block}.item small{color:#58717e}input,select,textarea{width:100%;border:1px solid #c7d4dd;border-radius:6px;padding:10px;margin:6px 0 10px;background:white;font:inherit}button{padding:10px 14px;border:0;border-radius:6px;background:#14657a;color:white;cursor:pointer}button:hover{filter:brightness(.92)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.card{background:white;padding:20px;border-radius:10px}.card strong{display:block;font-size:28px}.barRow{display:grid;grid-template-columns:minmax(125px,200px) 1fr 50px;gap:10px;align-items:center;margin:9px 0}.bar{background:#e3eef3;height:13px;border-radius:10px;overflow:hidden}.bar i{display:block;background:#287b92;height:100%}footer{font-size:12px;color:#667b85;padding:12px}.adminGrid{display:grid;grid-template-columns:340px 1fr;gap:12px}.adminMap{height:380px;min-height:380px;margin-bottom:12px}.adminGrid .scroll{max-height:65vh}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.toolbar strong{margin-right:auto}.narrow{max-width:420px;margin:50px auto}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.muted{color:#617a88;font-size:12px}.maplibregl-popup-content{max-width:290px;overflow-wrap:anywhere}@media(max-width:780px){.layout,.adminGrid{display:flex;flex-direction:column;height:auto}.publicMap{height:60vh}.cards{grid-template-columns:repeat(2,1fr)}.scroll{max-height:280px}}

/* Revisão de coordenadas: distinção visual no admin */
.item.is-validated{background:#e6f3eb;border-left:5px solid #2d8556;padding-left:10px}
.item.is-pending{border-left:5px solid #e38b22;padding-left:10px}
.item.selected{outline:2px solid #174f68;outline-offset:-2px}
.item.is-validated small{color:#276347;font-weight:600}
.basemapBar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#fff;padding:9px 12px;border-radius:10px;margin-bottom:8px}
.basemapBar label{white-space:nowrap;font-weight:600}.basemapBar select{width:auto;min-width:185px;margin:0}.legendStatus{font-size:12px;color:#456}.legendDot{display:inline-block;width:11px;height:11px;border-radius:50%;vertical-align:middle}.legendDot.ok{background:#2d8556}.legendDot.pending{background:#e38b22}

/* Página pública v4.2: modos de visualização e filtros */
.viewLabel{font-weight:650;margin:7px 0 8px}.viewModes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.viewModes button{padding:9px 4px;background:#e9f1f4;color:#17445a;border:1px solid #c4d5dd;font-size:13px}.viewModes button.active{background:#175f75;color:white;border-color:#175f75}.clearFilters{width:100%;margin-top:9px;background:#edf2f4;color:#23495c;border:1px solid #c4d5dd}.viewModes button:focus-visible,.clearFilters:focus-visible,.item:focus-visible{outline:3px solid #e9a23b;outline-offset:2px}footer div+div{margin-top:6px}footer strong{color:#244d62}

/* RAPS 5.0 - dashboard e validação visual */
.chartGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.chartGrid article{min-width:0}.chartGrid canvas{width:100%!important;height:300px!important}.dashFilters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;background:#f1f5f7;border-radius:12px;margin:14px 0}.dashFilters label{display:grid;gap:5px;flex:1 1 190px;font-weight:600}.dashFilters input,.dashFilters select{width:100%;box-sizing:border-box}.adminPoint{width:15px;height:15px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #2e4150,0 2px 5px #0004;cursor:pointer;padding:0}.adminPoint.validated{background:#187a58}.adminPoint.pending{background:#dc822b}.adminPoint:hover{transform:scale(1.4)}@media(max-width:850px){.chartGrid{grid-template-columns:1fr}.chartGrid canvas{height:270px!important}}

/* RAPS v5.2 - triagem de estabelecimentos sem coordenadas */
.adminTabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.adminTabs button{background:#e7eff2;color:#16455c;border:1px solid #bfd0d9}.adminTabs button.active{background:#175c75;color:white}.addressSearch{background:#fff;border-radius:10px;padding:12px;margin-bottom:10px}.addressSearch label{font-weight:650}.addressSearchRow{display:flex;gap:8px;align-items:center}.addressSearchRow input{flex:1;min-width:0;margin:6px 0}.addressSearchRow button{white-space:nowrap}.addressResults{display:grid;gap:5px}.addressResult{text-align:left;background:#eaf2f6;color:#17445a;border:1px solid #ccdae2;padding:8px 10px}.addressReference{padding:12px;border:1px solid #c8dbe4;border-radius:8px;background:#f2f8fa;margin-bottom:12px}.addressReference p{overflow-wrap:anywhere}.addressReference button{background:#25617c}@media(max-width:650px){.addressSearchRow{flex-direction:column;align-items:stretch}.addressSearchRow button{width:100%}}
/* v5.3 */
.mapActions{display:flex;justify-content:flex-end;margin:6px 0 10px}.mapActions button{white-space:normal}
#coordsPaste{width:100%;margin-top:5px}
