// Check-in Locations "Preview" dialog (Leaflet/OpenStreetMap). Rendered
// as the whole body of Odoo's ActionDialog (target: "new"), which already
// supplies the modal chrome (title = location name, close X) -- this file
// only styles what's below that.

.o_xeno_location_preview {
    padding: 16px 20px 20px;
}

.o_xeno_location_preview_tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.o_xeno_location_tab {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    color: #6b6b6b;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.88rem;
    font-weight: 500;

    &.active {
        background: #eaf1fd;
        border-color: #3b7dec;
        color: #3b7dec;
    }

    &:not(.active):hover {
        background: rgba(0, 0, 0, 0.04);
    }

    &:disabled {
        opacity: 1;
    }
}

.o_xeno_location_map {
    height: 320px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    // Leaflet's own z-index stack (tile/marker/popup panes) can otherwise
    // climb over Odoo's modal chrome (X button, etc).
    z-index: 0;
}

.o_xeno_location_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.o_xeno_location_stat {
    background: var(--o-view-background-color, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
}

.o_xeno_location_stat_label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    font-weight: 600;
    color: #9a9a9a;
    margin-bottom: 4px;
}

.o_xeno_location_stat_value {
    font-size: 0.95rem;
    font-weight: 600;
}

.o_xeno_location_status_active { color: #206b45; }
.o_xeno_location_status_archived { color: #a33a49; }

.o_xeno_location_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
}

.o_xeno_location_footer_actions {
    display: flex;
    gap: 8px;
}
