/**
 * ISIS@MACH Organisations map - stili (frontend + tool staff)
 * Design system: Helvetica/DejaVu Sans, floor 14px, radius 3px, palette
 * #001f69 #3366ca #569400 #ffc107. REGOLA: nessun contenitore con max-width
 * diverso da 100%. Pannello laterale 320px a sinistra su desktop, sotto su mobile.
 * Eccezione voluta (utente 2026-10-21): mappa, pannello e popup con radius 10px.
 */

.isis-om { width: 100%; max-width: 100%; margin: 0; font-family: Helvetica, "DejaVu Sans", sans-serif; font-size: 15px; color: #2c3338; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.isis-om *, .isis-om *:before, .isis-om *:after { box-sizing: border-box; }
.isis-om--panel { grid-template-columns: 320px minmax(0, 1fr); }
.isis-om-map-wrap { position: relative; min-width: 0; }
.isis-om-map { width: 100%; border: 1px solid #c9ced8; border-radius: 10px; /* eccezione voluta 2026-10-21: mappa, pannello e popup a 10px */ background: #eef0f4; z-index: 0; }
.isis-om-tools { position: absolute; top: 10px; right: 10px; z-index: 500; display: flex; gap: 6px; }

/* Bottoni (stile tabelle "All Proposals": blu pieno, ghost bianco) */
.isis-om-btn { display: inline-block; padding: 6px 12px; border: 1px solid #3366ca; border-radius: 3px; background: #3366ca; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.3; font-family: inherit; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.isis-om-btn:hover { background: #001f69; border-color: #001f69; color: #fff; }
.isis-om-btn--ghost { background: #fff; color: #3366ca; }
.isis-om-btn--ghost:hover { background: #f0f3fa; color: #001f69; }
.isis-om-btn:disabled { opacity: .6; cursor: wait; }

/* Marker e popup */
.isis-om-pin { width: 18px; height: 18px; border-radius: 50%; background: #001f69; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,31,105,.35); }
.isis-om .leaflet-popup-content { font-family: Helvetica, "DejaVu Sans", sans-serif; font-size: 14px; line-height: 1.4; margin: 10px 14px; }
.isis-om .leaflet-popup-content-wrapper { border-radius: 10px; }
.isis-om-popup strong { color: #001f69; font-size: 15px; display: block; margin-bottom: 2px; }
.isis-om-popup-addr { color: #555; margin-bottom: 4px; }
.isis-om-popup a { color: #3366ca; }
.isis-om .marker-cluster { background: rgba(51,102,202,.35); }
.isis-om .marker-cluster div { background: #3366ca; color: #fff; font-family: inherit; font-weight: 700; font-size: 14px; }
.isis-om .marker-cluster-small, .isis-om .marker-cluster-medium, .isis-om .marker-cluster-large { background: rgba(51,102,202,.35); }
.isis-om .marker-cluster-small div, .isis-om .marker-cluster-medium div, .isis-om .marker-cluster-large div { background: #3366ca; }
.isis-om .leaflet-control-attribution { font-size: 11px; }

/* Pannello */
.isis-om-side { min-width: 0; border: 1px solid #c9ced8; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; max-height: 100%; }
.isis-om-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #c9ced8; background: #001f69; color: #fff; }
.isis-om-side-head h3 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.isis-om-count { display: inline-block; min-width: 28px; padding: 2px 8px; text-align: center; background: #fff; color: #001f69; border-radius: 3px; font-size: 14px; font-weight: 700; }
.isis-om-filters { display: grid; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef0f4; }
.isis-om-search, .isis-om-country { width: 100%; padding: 7px 10px; border: 1px solid #c9ced8; border-radius: 3px; font-family: inherit; font-size: 14px; color: #2c3338; background: #fff; }
.isis-om-search:focus, .isis-om-country:focus { outline: none; border-color: #3366ca; box-shadow: 0 0 0 2px rgba(51,102,202,.15); }
.isis-om-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; }
.isis-om-item { border-bottom: 1px solid #eef0f4; }
.isis-om-item:nth-child(even) { background: #f3f6fc; }
.isis-om-item-btn { display: block; width: 100%; text-align: left; padding: 9px 14px; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.isis-om-item-btn:hover, .isis-om-item--on .isis-om-item-btn { background: #e3ecfb; }
.isis-om-item-name { display: block; font-size: 15px; font-weight: 600; color: #001f69; }
.isis-om-item-meta { display: block; font-size: 14px; color: #555; }
.isis-om-empty { padding: 12px 14px; color: #555; font-size: 14px; }

@media (max-width: 900px) {
    .isis-om--panel { grid-template-columns: minmax(0, 1fr); }
    .isis-om-side { order: 2; max-height: 360px; }
    .isis-om-map-wrap { order: 1; }
}

/* ---- Tool staff (Platform / frontend): tabelle stile "All Proposals" ---- */
.isis-om-admin { width: 100%; max-width: 100%; font-family: Helvetica, "DejaVu Sans", sans-serif; font-size: 15px; color: #2c3338; }
.isis-om-admin h3 { margin: 0; font-size: 20px; font-weight: 600; color: #001f69; }
.isis-om-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #c9ced8; flex-wrap: wrap; }
.isis-om-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.isis-om-chip { display: inline-block; padding: 4px 10px; font-size: 15px; color: #001f69; text-decoration: none; border-radius: 3px; }
.isis-om-chip:hover { background: #e8edf8; color: #001f69; }
.isis-om-chip--on, .isis-om-chip--on:hover { background: #001f69; color: #fff; }
.isis-om-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; margin: 0 0 14px; background: #f8f9fb; border: 1px solid #e3e6ec; border-radius: 3px; }
.isis-om-bar input[type="text"], .isis-om-bar select { padding: 7px 10px; border: 1px solid #c9ced8; border-radius: 3px; font-family: inherit; font-size: 14px; }
.isis-om-found { font-size: 15px; font-style: italic; margin: 10px 0 8px; }
.isis-om-found strong { font-style: normal; }
.isis-om-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; background: #fff; }
.isis-om-table thead th { padding: 10px 12px; text-align: left; font-size: 15px; font-weight: 700; color: #001f69; background: #fff; border-bottom: 1px solid #c9ced8; white-space: nowrap; }
.isis-om-table tbody td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid #eef0f4; }
.isis-om-table tbody tr:nth-child(even) { background: #f3f6fc; }
.isis-om-table tbody td + td { border-left: 1px solid #d9dde6; }
.isis-om-right { text-align: right; }
.isis-om-notice { padding: 10px 14px; border: 1px solid #c9ced8; border-left: 4px solid #3366ca; background: #f8f9fb; border-radius: 3px; margin: 0 0 14px; font-size: 15px; }
.isis-om-notice--ok { border-left-color: #569400; }
.isis-om-notice--err { border-left-color: #c00; }
.isis-om-form { width: 100%; margin: 0 0 20px; }
.isis-om-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.isis-om-field { margin: 0 0 14px; }
.isis-om-field label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.isis-om-field input[type="text"], .isis-om-field input[type="number"], .isis-om-field input[type="url"], .isis-om-field input[type="email"], .isis-om-field select, .isis-om-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #c9ced8; border-radius: 3px; font-family: inherit; font-size: 15px; background: #fff; }
.isis-om-help { font-size: 14px; color: #555; margin: 4px 0 8px; }
.isis-om-actions { margin: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.isis-om-inline { display: inline; }
.isis-om-badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 14px; font-weight: 600; background: #eee; color: #2c3338; }
.isis-om-badge--on { background: #569400; color: #fff; }
.isis-om-badge--off { background: #eee; color: #666; }
.isis-om-preview { height: 320px; margin: 8px 0 14px; }

@media (max-width: 700px) {
    .isis-om-table thead { display: none; }
    .isis-om-table tbody tr { display: block; margin: 0 0 12px; border: 1px solid #d9dde6; border-radius: 3px; background: #fff; }
    .isis-om-table tbody td { display: block; border-left: 0 !important; padding: 8px 12px; }
    .isis-om-table tbody td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; color: #001f69; margin-bottom: 2px; }
    .isis-om-table tbody td.isis-om-right { text-align: left; }
}
