.floorplan {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.floorplan-item {
    position: absolute;
    container-type: size;
}

.floorplan-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fp-rotated > .floorplan-inner {
    width: 100cqh;
    height: 100cqw;
    left: 100%;
    transform-origin: top left;
    transform: rotate(90deg);
}

.floorplan-room {
    z-index: 0;
    border: 1px black;
    border-style: groove;
    border-radius: 16px;
}

.floorplan-room-label {
    margin: 0.4rem 0.8rem;
}

.floorplan-wall {
    z-index: 1;
    background-color: #333;
}

.floorplan-door {
    z-index: 1;
    background-color: #fff;
    border: 2px solid #333;
}

.floorplan-decoration {
    z-index: 1;
}

.floorplan-decoration-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floorplan-label {
    z-index: 2;
}

.floorplan-label-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;
}

.floorplan-table {
    z-index: 3;
}

.floorplan .occupation-bar {
    width: 100%;
    min-width: 0;
}

.floorplan {
    container-type: inline-size;
}

.floorplan-item {
    font-size: clamp(11px, 0.85cqw, 16px);
}

.floorplan .floorplan-room-label {
    font-size: 1em;
    margin: 0.4em 0.8em;
}

.floorplan .floorplan-table .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.floorplan .floorplan-table .card-header {
    flex: none;
    padding: 0.3em 0.5em;
    font-size: 1em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floorplan .floorplan-table .card-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.3em 0.5em;
    font-size: 1em;
    display: flex;
    align-items: center;
}

.floorplan .floorplan-table .occupation {
    height: min(100%, 1.7em);
}

