/* 房東中心單位列表 */
.organizationsPage{
    width: min(960px, 100%);
    margin: 0 auto;
    padding-bottom: 72px;
}

.organizationsPage__heading{
    margin-bottom: 34px;
}

.organizationsPage__count{
    margin: 0;
    color: #938875;
    font-size: 15px;
}

.organizationsSection + .organizationsSection{
    margin-top: 48px;
}

.organizationsSection__heading{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9cbb8;
}

.organizationsSection__heading h2{
    margin: 0;
    color: #aa8d55;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
}

.organizationsPersonalGrid{
    display: grid;
    width: min(240px, 100%);
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.organizationsGrid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.organizationsGrid[hidden],
.organizationsEmpty[hidden]{
    display: none;
}

.organizationCard{
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    overflow: hidden;
    color: #514a40;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid #e1d9cf;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgb(86 65 41 / 7%);
}

.organizationCard::before{
    width: 38px;
    height: 38px;
    margin-bottom: 28px;
    color: #a68a54;
    font: 400 34px / 1 'Material Symbols Outlined';
    content: 'domain';
}

.organizationCard h2{
    display: -webkit-box;
    margin: 0 0 9px;
    overflow: hidden;
    color: #5f5547;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.organizationCard__role{
    color: #9d8d72;
    font-size: 14px;
}

.organizationCard__status{
    position: absolute;
    top: 18px;
    right: 18px;
    color: #7b9f65;
    font-size: 13px;
}

.organizationCard__status--paused,
.organizationCard__status--archived,
.organizationCard__status--pending{
    color: #a18f79;
}

.organizationCard__metrics{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid #e5ded5;
}

.organizationCard__metrics dt{
    margin-bottom: 3px;
    color: #988e82;
    font-size: 12px;
}

.organizationCard__metrics dd{
    margin: 0;
    color: #615849;
    font-size: 20px;
    font-weight: 700;
}

.organizationAddCard{
    display: grid;
    min-height: 230px;
    padding: 0;
    color: #a68a54;
    background: rgba(255, 255, 255, 0.28);
    border: 1px dashed #cfc4b7;
    border-radius: 8px;
    cursor: pointer;
    place-items: center;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.organizationAddCard .material-symbols-outlined{
    font-size: 52px;
}

.organizationAddCard__label{
    margin-top: -72px;
    font-size: 15px;
    font-weight: 700;
}

.organizationAddCard:hover,
.organizationAddCard:focus-visible{
    color: #887042;
    background: rgba(255, 255, 255, 0.7);
    border-color: #a68a54;
    outline: 0;
}

.organizationsEmpty{
    display: grid;
    min-height: 290px;
    place-items: center;
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed #cfc4b7;
    border-radius: 8px;
}

.organizationsEmpty .material-symbols-outlined{
    margin-bottom: 12px;
    color: #aa9671;
    font-size: 42px;
}

.organizationsEmpty p{
    margin: 0;
    color: #827767;
}

@media (max-width: 900px){
    .organizationsGrid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px){
    .organizationsPage{
        padding-bottom: 42px;
    }

    .organizationsPage__heading{
        margin-bottom: 24px;
    }

    .organizationsSection + .organizationsSection{
        margin-top: 38px;
    }

    .organizationsSection__heading{
        align-items: flex-end;
        margin-bottom: 14px;
    }

    .organizationsSection__heading h2{
        font-size: 20px;
    }

    .organizationsPersonalGrid{
        width: 100%;
    }

    .organizationsGrid{
        grid-template-columns: minmax(0, 1fr);
    }

    .organizationCard{
        min-height: 205px;
    }

    .organizationAddCard{
        min-height: 155px;
    }
}
