/* 全站共用桌機側邊導覽與內容雙欄 */
.tenantCenterPage,
.landlordCenterPage,
.personalSettingPage{
    width: min(1120px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.pageSideLayout{
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 50px;
}

.pageSideLayout__content{
    min-width: 0;
}

h2.pageSideLayout_title{
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0 0 36px;
    color: #aa8d55;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.35;
}

h2.pageSideLayout_title::before,
h2.pageSideLayout_title::after{
    flex: 1 1 0;
    min-width: 0;
    height: 1px;
    background: #cdb98e4a;
    content: '';
}

h2.pageSideLayout_title > .pageSideLayout_titleLabel{
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

h2.pageSideLayout_title .material-symbols-outlined{
    font-size: 29px;
}

h3.pageSideLayout_subtitle{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    color: #4f4f4f;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

h3.pageSideLayout_subtitle > .material-symbols-outlined{
    flex: 0 0 auto;
    color: #aa8d55;
    font-size: 25px;
}

.pageSideLayout__content > .steptitle:first-child,
.pageSideLayout__content > form > .steptitle:first-child{
    margin-top: 0;
}

.pageSideNav{
    position: sticky;
    top: 104px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e1d9cf;
    border-radius: 8px;
}

.pageSideNav__list{
    display: grid;
}

.pageSideNav__link{
    display: grid;
    cursor: pointer;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px 16px;
    color: #615849;
    border-bottom: 1px solid #e7dfd5;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pageSideNav__link[hidden]{
    display: none;
}

.pageSideNav__link:last-child{
    border-bottom: 0;
}

.pageSideNav__link .material-symbols-outlined{
    color: #aa8d55;
    font-size: 24px;
}

.pageSideNav__link span:last-child{
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.pageSideNav__securityLabel{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.pageSideNav__securityLabel > span:first-child{
    min-width: 0;
}

.pageSideNav__link .pageSideNav__securityLabel .pageSideNav__status{
    flex: 0 0 auto;
    min-width: auto;
    padding: 0;
    color: #bd5b4f;
    background: transparent;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.pageSideNav__link .pageSideNav__status.is-incomplete{
    color: #bd5b4f;
}

.pageSideNav__link .pageSideNav__status.is-complete{
    color: #619854;
}

.pageSideNav__link[aria-current="page"] .pageSideNav__status.is-incomplete{
    color: #bd5b4f;
}

.pageSideNav__link[aria-current="page"] .pageSideNav__status.is-complete{
    color: #d9f1d2;
}

.pageSideNav__link:hover,
.pageSideNav__link:focus-visible{
    color: #544a3d;
    background: rgba(255, 255, 255, 0.96);
    outline: 0;
}

.pageSideNav__link[aria-current="page"]{
    color: #fff;
    background: #aa8d55;
}

.pageSideNav__link[aria-current="page"] .material-symbols-outlined{
    color: #fff;
}

.pageSideNav__link[aria-disabled="true"]{
    cursor: not-allowed;
    opacity: 0.42;
}

@media (max-width: 900px){
    .pageSideLayout{
        display: block;
    }

    h2.pageSideLayout_title{
        gap: 24px;
        margin-bottom: 18px;
        letter-spacing: 0;
    }

    h2.pageSideLayout_title::before,
    h2.pageSideLayout_title::after{
        min-width: 12px;
    }

    .pageSideNav{
        position: relative;
        top: auto;
        width: 100%;
        margin-bottom: 18px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e1d9cf;
        border-radius: 6px;
    }

    .pageSideNav__link{
        min-height: 44px;
        padding: 8px 14px;
    }

    .pageSideNav__link span:last-child{
        font-size: 14px;
        font-weight: 400;
    }

    .pageSideNav__link[aria-current="page"] span:last-child{
        font-weight: 700;
    }
}

/* 租管中心公司識別與名片未完成提示。 */
.pageSideNav__company { display: grid; justify-items: center; gap: 12px; margin-bottom: 22px; padding: 20px 22px 0; box-sizing: border-box; text-align: center; color: #786443; }
.pageSideNav__company[hidden] { display: none; }
.pageSideNav__companyLogo { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid #e5ddd2; }
.pageSideNav__companyLogo img { width: 100%; height: 100%; object-fit: cover; }
.pageSideNav__companyLogo > .material-symbols-outlined { font-size: 40px; }
.pageSideNav__companyLogo [hidden] { display: none; }
.pageSideNav__company strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.pageSideNav__cardStatus { color: #bd5b4f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pageSideNav__cardStatus[hidden] { display: none; }
@media (max-width: 760px) {
  .pageSideNav__company { margin-bottom: 16px; }
  .pageSideNav__companyLogo { width: 72px; height: 72px; }
}

/* 個人設定頂部顯示可提供公司邀請的完整帳號。 */
.pageSideNav__account {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px;
  color: #786443;
  text-align: center;
}
.pageSideNav__account[hidden] { display: none; }
.pageSideNav__account > span { font-size: 14px; }
.pageSideNav__account > strong {
  max-width: 100%;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: all;
}
