

@media (max-width: 767px){
    .genplan-preview__layout{
        flex-direction: column;
    }
    .table.floors .floor-zones-layout{
        flex-direction: column-reverse;
    }
    .floor-zones-floor-btn{
        padding: 10px !important;
    }
    .table.floors .floor-zones-floors-list{
        flex-direction: row !important;
    }
    .table.floors .floor-zones-floors{
        width: 100% !important;
        align-items: center;
        flex-direction: row !important;
    }
    .floor-zones-scroll-btn{
        display: none !important;
    }
}
.table.floors {
    padding: 12px 0 8px;
    overflow: hidden;
}
.table.floors .floor-zones-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.table.floors .floor-zones-header {
    padding: 0 12px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.table.floors .floor-zones-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.table.floors .floor-zones-doors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* Переключатель подъездов убран — используем js-door-number */
.table.floors .floor-zones-body {
    padding: 12px;
    flex: 1;
    min-height: 0;
}
.table.floors .floor-zones-layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.table.floors .floor-zones-floors {
    width: 64px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.table.floors .floor-zones-scroll-btn {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.table.floors .floor-zones-floors-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
}
.table.floors .floor-zones-floor-btn {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.table.floors .floor-zones-floor-btn.is-active {
    border-color: var(--company-color);
    background: var(--company-color);
    color: #fff;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.25);
}
.table.floors .floor-zones-floor-btn.is-disabled {
    border-color: #e5e7eb;
    background: #e5e7eb;
    color: #9ca3af;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}
.floor-zones-floors-list::-webkit-scrollbar { width: 0; }
.table.floors .floor-zones-plan-wrap {
    position: relative;
    width: 100%;
    height: 550px;
    max-height: 550px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .table.floors .floor-zones-plan-wrap {
        height: auto !important;
    }
}
    .table.floors .floor-zones-plan-inner {
        position: relative;
        display: block;
    }
    .table.floors .floor-zones-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .table.floors .floor-zones-overlay {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        pointer-events: auto;
    }
    .table.floors .floor-zone-polygon {
        cursor: pointer;
        transition: fill-opacity 0.12s ease, stroke-width 0.12s ease;
    }
    .table.floors .floor-zone-free {
        fill: #22c55e;
        fill-opacity: 0.18;
        stroke: #16a34a;
        stroke-width: 2;
    }
    .table.floors .floor-zone-occupied {
        fill: #9ca3af;
        fill-opacity: 0.4;
        stroke: #4b5563;
        stroke-width: 2;
    }
    .table.floors .floor-zone-eye {
        display: none;
        font-size: 250px;
        fill: var(--company-color);
        pointer-events: none;
    }
    .table.floors .floor-zone-group:hover .floor-zone-eye {
        display: block;
    }
    .table.floors .floor-zone-polygon:hover {
        fill-opacity: 0.45;
        stroke-width: 3;
        stroke: var(--company-color);
    }
    .table.floors .floor-zones-tooltip {
        position: fixed;
        background: #1e293b;
        color: #ffffff;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
        pointer-events: none;
        z-index: 4000;
        display: none;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
        max-width: 260px;
        line-height: 1.4;
    }
