/* My areas, the area picker and the area results page. */
.tokens-message--error { background: #fdecec; color: #8a1c1c; }

.area-upload { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.area-upload label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; color: #374151; }
.area-upload input[type=text] { padding: 0.45rem 0.6rem; border: 1px solid #cbd5e1; border-radius: 6px; min-width: 16rem; }

.area-list { list-style: none; margin: 0; padding: 0; }
.area-list__item { display: flex; gap: 1rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid #e5e7eb; }
.area-list__item:first-child { border-top: 0; }
.area-list__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.area-list__actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; font-size: 0.875rem; }
.area-list__actions form { display: inline; margin: 0; }
.area-list__delete { background: none; border: 0; padding: 0; color: #b42318; cursor: pointer; font: inherit; }
.area-list__delete:hover { text-decoration: underline; }
.area-preview { flex: none; width: 64px; height: 64px; background: #f1f5f9; border-radius: 6px; }
.area-preview path { fill: rgba(30, 58, 110, 0.15); stroke: #1e3a6e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.area-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.area-picker select, .area-picker input { padding: 0.3rem 0.4rem; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: 0.875rem; }
.area-picker input[type=number] { width: 5.5rem; }
.area-picker input[list] { width: 13rem; }
.area-picker [hidden] { display: none; }
.area-picker { flex-direction: column; align-items: stretch; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.area-picker select, .area-picker input[list] { width: 100%; box-sizing: border-box; }
.area-picker__buffer { font-size: 0.875rem; color: #374151; }
.area-picker__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.area-picker__manage { font-size: 0.875rem; margin-left: auto; }

/* Areas/View: the results table beside the map. */
.area-view__controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.area-view__tabs { display: flex; gap: 0.25rem; }
.area-view__tabs a { padding: 0.35rem 0.75rem; border-radius: 6px; color: #e2e8f0; text-decoration: none; font-size: 0.9rem; }
.area-view__tabs a[aria-current=page] { background: #fff; color: #0f1f3a; font-weight: 600; }
.area-view__buffer { display: flex; gap: 0.4rem; align-items: center; margin: 0; color: #e2e8f0; font-size: 0.9rem; }
.area-view__buffer input { width: 5.5rem; padding: 0.3rem 0.4rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.page-band .section-label a { color: inherit; text-decoration: none; }

.area-view { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.area-view__results { padding: 1rem; min-width: 0; }
.area-view__summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.area-view__summary p { margin: 0; }
.area-view__summary p.is-error { color: #b42318; }
.area-view__actions { display: flex; gap: 0.5rem; }
.area-view__table { max-height: 70vh; overflow: auto; margin-top: 0.75rem; }
.area-view__table thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.area-view__table tbody tr { cursor: pointer; }
.area-view__table tbody tr:hover { background: #f1f5f9; }
.area-view__table tbody tr.is-selected { background: #e0e8f5; }
.area-view__map { position: sticky; top: 1rem; height: 70vh; min-height: 420px; border-radius: 12px; }
.area-view__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.area-view__nowrap { white-space: nowrap; }
.area-view__proposal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-view__inside { color: #15803d; font-size: 0.8rem; }
.area-view__bar { display: inline-block; height: 4px; margin-right: 0.4rem; vertical-align: middle; border-radius: 2px; background: #94a3b8; }
.area-view__pin { transform: translate(0%, 50%); transition: transform 0.15s; }
.area-view__pin.is-selected { transform: translate(0%, 50%) scale(1.6); filter: drop-shadow(0 0 3px #1e3a6e); }

.area-badge { display: inline-block; margin-right: 2px; padding: 0 0.3rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; line-height: 1.5; color: #fff; }
.area-badge--2g { background: #64748b; } .area-badge--3g { background: #0e7490; }
.area-badge--4g { background: #1d4ed8; } .area-badge--5g { background: #7c3aed; }
.area-badge--ee { background: #00a19a; } .area-badge--o2 { background: #0019a5; }
.area-badge--vf { background: #e60000; } .area-badge--three { background: #333; }

@media (max-width: 1100px) {
    .area-view { grid-template-columns: 1fr; }
    .area-view__map { position: static; height: 50vh; order: -1; }
}
.area-view [hidden], .area-picker [hidden] { display: none !important; }
.area-view__table table { font-size: 0.85rem; table-layout: fixed; min-width: 36rem; }
.area-view__table th, .area-view__table td { padding: 0.4rem 0.5rem; vertical-align: top; }
.area-view__ref { max-width: 8rem; overflow-wrap: anywhere; }
.area-view--no-buffer .area-view__table th:first-child, .area-view--no-buffer .area-view__table td:first-child { display: none; }
.area-view__table th { letter-spacing: 0; }
.area-view__table td { overflow-wrap: anywhere; }
