#all-floors-canvas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
    background: white;
    border: 1px solid #ddd;
    justify-content: center;
}

#all-floors-canvas.layout-portrait {
    flex-direction: column;
    align-items: center;
}

#all-floors-canvas.layout-portrait .floor-block {
    width: 100%;
    max-width: 900px;
}

#all-floors-canvas.layout-landscape {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
}

#all-floors-canvas.layout-landscape .floor-block {
    flex: 0 0 auto;
    width: 900px;
}

.floor-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.floor-block-title {
    display: none;
}

.floor-svg-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.svg-scale-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.floor-svg-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.totals-under-svg {
    margin-top: 10px;
    margin-bottom: 40px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.totals-under-svg div {
    margin-bottom: 3px;
}
#downloadLoader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    backdrop-filter: blur(3px);
}

#downloadLoader.show {
    animation: fadeInLoader 0.15s ease-out forwards;
}

@keyframes fadeInLoader {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fml-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 60px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
}

.legend-box {
    width: 70px;
    height: 70px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000;
    font-weight: 700;
}

.border-dashed {
    background: transparent !important;
    border: 2px dashed #333;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.legend-label {
    font-size: 11px;
    text-align: center;
    margin-top: 6px;
    line-height: 1.2;
}
#all-floors-legend {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

#all-floors-legend .legend-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}


