/* Pregled općine i rizici police (v3.29.0) */
.modal:has(#muniReport){max-width:1240px}
.modal:has(#perilEditor){max-width:760px}
#muniReport .muni-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
#muniReport .muni-head h3{margin:2px 0 4px}
#muniReport .muni-head .hint{margin:0}
#muniReport .muni-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}
#muniReport .muni-tabs{margin:4px 0 12px}
#muniReport .muni-measure{margin:0 0 10px}
#muniReport .tablewrap{overflow-x:auto}
#muniReport .risk-table{font-size:.875rem}
#muniReport .muni-matrix{min-width:980px}
#muniReport .muni-matrix th,#muniReport .muni-matrix td{white-space:nowrap}
#muniReport .muni-matrix td:first-child{white-space:normal;min-width:140px}
#muniReport .muni-matrix tfoot th{border-top:2px solid #0b3d2e;background:#f3f7f4}
#muniReport .muted{color:#9aa79f}
.muni-peril{font-size:.75rem;padding:2px 8px;margin:1px 0;display:inline-block;color:#fff}
.muni-peril.p-tuca{background:#5b6fd6}
.muni-peril.p-oluja{background:#4b5563}
.muni-peril.p-mraz{background:#0e8fb8}
.muni-peril.p-poplava{background:#1d5fa8}
.muni-peril.p-oborine{background:#2c7a7b}
.muni-peril.p-susa{background:#a86a00}
.muni-pick{display:block;font-size:.875rem;font-weight:600;margin:0 0 10px}
.muni-pick select{display:block;width:100%;margin-top:4px}
#perilEditor .tablewrap{overflow-x:auto}
#perilEditor .peril-form{width:100%;min-width:0!important;table-layout:fixed}
#perilEditor .peril-form th:nth-child(1){width:90px}
#perilEditor .peril-form th:nth-child(3),#perilEditor .peril-form th:nth-child(4){width:30%}
#perilEditor .peril-form input[type=number]{width:100%;max-width:150px;min-width:90px;text-align:right}
#perilEditor .peril-form input[type=checkbox]{width:20px;height:20px}
#perilEditor .muni-sum{background:#f3f7f4;border-radius:8px;padding:10px 12px}
#perilEditor .muni-sum .bad{color:#b42318}
.muni-form-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.arkod-opc-actions{display:flex;flex-wrap:wrap;gap:8px}
.arkod-perils-btn{margin:6px 0}
@media (max-width:720px){
  #muniReport .muni-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  #muniReport .risk-table{min-width:640px}
  #perilEditor .peril-form thead{display:none}
  #perilEditor .peril-form,#perilEditor .peril-form tbody{display:block}
  #perilEditor .peril-form tr{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);gap:6px 10px;align-items:center;padding:8px 10px;border-bottom:1px solid #e3ebe6}
  #perilEditor .peril-form td{display:block;padding:0;border:0;text-align:left}
  #perilEditor .peril-form td:nth-child(2){grid-column:2/4}
  #perilEditor .peril-form td:nth-child(3){grid-column:2/3}
  #perilEditor .peril-form td:nth-child(4){grid-column:3/4}
  #perilEditor .peril-form td:nth-child(3)::before{content:"Svota (EUR)";display:block;font-size:.75rem;color:#5b6b62}
  #perilEditor .peril-form td:nth-child(4)::before{content:"Premija (EUR)";display:block;font-size:.75rem;color:#5b6b62}
  #perilEditor .peril-form input[type=number]{max-width:none;min-width:0;width:100%;box-sizing:border-box}
  #perilEditor .peril-form{min-width:0!important;width:100%}
}
