.owner-geo-compact {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.owner-geo-loading {
    display: grid;
    place-items: center;
    min-height: 420px;
    border: 1px solid #dce6e2;
    border-radius: 18px;
    background: #fff;
    color: #52645e;
    text-align: center;
    box-shadow: 0 14px 38px rgba(31, 57, 48, 0.06);
}

.owner-geo-loading i {
    margin-bottom: 12px;
    color: #3b655b;
    font-size: 2.2rem;
}

.owner-geo-loading strong {
    color: #25463b;
    font-size: 1.1rem;
}

.owner-geo-loading span {
    margin-top: 5px;
    color: #77857f;
}

.owner-geo-loading.warning i {
    color: #b77c16;
}

.owner-summary-grid {
    grid-template-columns: repeat(6, minmax(145px, 1fr));
}

.owner-workspace {
    grid-template-columns: 325px minmax(0, 1fr);
    height: calc(100vh - 278px);
    min-height: 620px;
    max-height: 820px;
}

.owner-control-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
}

.owner-panel-heading {
    min-height: 74px;
}

.owner-filter-count {
    display: grid;
    place-items: center;
    min-width: 31px;
    height: 31px;
    border-radius: 999px;
    background: #eaf3ef;
    color: #315e52;
    font-size: 0.72rem;
    font-weight: 900;
}

.owner-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid #e1e9e6;
    background: #f7faf8;
}

.owner-filter-tabs button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 5px 2px;
    background: transparent;
    color: #65756f;
    font-size: 0.58rem;
    font-weight: 800;
    cursor: pointer;
}

.owner-filter-tabs button i {
    font-size: 0.85rem;
}

.owner-filter-tabs button.active {
    border-color: #b9d2c9;
    background: #eaf3ef;
    color: #2f5f52;
}

.owner-panel-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.owner-territory-selects {
    display: grid;
    gap: 8px;
}

.owner-territory-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.owner-territory-actions .btn-secondary {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.68rem;
}

.owner-inline-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    border-radius: 10px;
    padding: 10px;
    background: #f5f8f7;
    color: #405850;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.owner-inline-switch > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.owner-inline-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owner-soil-grid,
.owner-weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.owner-soil-grid button,
.owner-weather-grid button {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 64px;
    border: 1px solid #dbe5e1;
    border-radius: 11px;
    padding: 7px;
    background: #fff;
    color: #53665f;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.owner-soil-grid button i,
.owner-weather-grid button i {
    font-size: 1rem;
}

.owner-soil-grid button.active,
.owner-weather-grid button.active {
    border-color: #3b655b;
    background: #eaf3ef;
    color: #2e5e51;
    box-shadow: inset 0 0 0 1px #3b655b;
}

.owner-soil-grid button:disabled,
.owner-weather-grid button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.owner-clear-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: calc(100% - 24px);
    min-height: 38px;
    margin: 12px;
    border: 1px solid #d9e4e0;
    border-radius: 10px;
    background: #fff;
    color: #53665f;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.owner-clear-layer:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.owner-weather-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
}

.owner-weather-summary article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 9px;
    background: #f4f7f6;
}

.owner-weather-summary article > div {
    display: grid;
    min-width: 0;
}

.owner-weather-summary i {
    color: #3b655b;
}

.owner-weather-summary span {
    color: #7a8984;
    font-size: 0.58rem;
}

.owner-weather-summary strong {
    overflow: hidden;
    color: #2d493f;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-weather-alert {
    margin-top: 10px;
    font-size: 0.65rem;
}

.owner-map-stage {
    min-height: 0;
}

.owner-national-map {
    min-height: 555px;
    height: 100%;
}

.owner-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 180px;
    color: #61736d;
}

@media (max-width: 1350px) {
    .owner-summary-grid {
        grid-template-columns: repeat(3, minmax(145px, 1fr));
    }

    .owner-workspace {
        height: calc(100vh - 365px);
        min-height: 600px;
    }
}

@media (max-width: 980px) {
    .owner-workspace {
        grid-template-columns: 285px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .owner-summary-grid {
        grid-template-columns: repeat(2, minmax(135px, 1fr));
    }

    .owner-workspace {
        display: block;
        height: auto;
        max-height: none;
    }

    .owner-control-panel {
        max-height: 520px;
        border-right: 0;
        border-bottom: 1px solid #dce6e2;
    }

    .owner-national-map {
        min-height: 520px;
    }
}

@media (max-width: 480px) {
    .owner-summary-grid {
        grid-template-columns: 1fr;
    }

    .owner-filter-tabs button span {
        display: none;
    }

    .owner-filter-tabs button {
        min-height: 42px;
    }
}
