.tenant-phone-directory {
    font-family: "Noto Sans", sans-serif;
    color: #082746;
}

.tenant-phone-directory__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid #cfdeeb;
    border-radius: 10px;
    background: #f7fbfe;
}

.tenant-phone-directory__eyebrow {
    margin: 0 0 4px;
    color: #087da0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tenant-phone-directory__parent {
    margin: 0 0 3px;
    color: #3e5871;
    font-size: .92rem;
    font-weight: 750;
}

.tenant-phone-directory__general-phone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
    color: #274b66;
    font-size: .94rem;
    font-weight: 700;
}

.tenant-phone-directory__general-phone i { color: #087da0; }
.tenant-phone-directory__general-phone a { color: #075d79; font-weight: 850; }

.tenant-phone-directory__header h2 { margin: 0; font-size: 1.45rem; }
.tenant-phone-directory__header p:last-child { margin: 7px 0 0; color: #3e5871; }

.tenant-phone-directory__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tenant-phone-directory__general,
.tenant-phone-directory__print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #087da0;
    border-radius: 7px;
    color: #075d79;
    background: #fff;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.tenant-phone-directory__print {
    font: inherit;
    cursor: pointer;
}

.tenant-phone-directory__general:hover,
.tenant-phone-directory__general:focus-visible,
.tenant-phone-directory__print:hover,
.tenant-phone-directory__print:focus-visible { color: #fff; background: #087da0; }

.tenant-phone-directory__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
    padding: 5px;
    border: 1px solid #c6d9e7;
    border-radius: 9px;
    background: #eef5f9;
}
.tenant-phone-directory__tabs button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #23445e;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.tenant-phone-directory__tabs button:hover,
.tenant-phone-directory__tabs button:focus-visible { border-color: #76abc0; background: #fff; }
.tenant-phone-directory__tabs button.is-active { color: #fff; border-color: #087da0; background: #087da0; box-shadow: 0 3px 9px rgba(6, 85, 111, .15); }

.tenant-phone-directory__search {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #cfdeeb;
    border-radius: 10px;
    background: #fff;
}

.tenant-phone-directory__search > label { display: block; margin-bottom: 7px; font-weight: 800; }
.tenant-phone-directory__search > p { margin: 7px 0 0; color: #567087; font-size: .84rem; }
.tenant-phone-directory__search-row { position: relative; display: flex; }
.tenant-phone-directory__search-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: #087da0; }
.tenant-phone-directory__search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 112px 10px 42px;
    border: 1px solid #b9cede;
    border-radius: 7px;
    font: inherit;
    color: inherit;
}
.tenant-phone-directory__search input:focus { outline: 3px solid rgba(8, 125, 160, .18); border-color: #087da0; }
.tenant-phone-directory__search button {
    position: absolute;
    inset-inline-end: 7px;
    top: 7px;
    min-height: 32px;
    padding: 4px 10px;
    border: 0;
    border-radius: 5px;
    color: #075d79;
    background: #e6f3f7;
    font-weight: 750;
    cursor: pointer;
}

.tenant-phone-directory__count { margin: 18px 0 9px; color: #405b73; font-size: .9rem; font-weight: 700; }
.tenant-phone-directory__table-wrap { overflow-x: auto; border: 1px solid #cfdeeb; border-radius: 10px; }
.tenant-phone-directory__table { width: 100%; border-collapse: collapse; background: #fff; }
.tenant-phone-directory__table th { padding: 12px 14px; color: #fff; background: #0a4668; text-align: start; font-size: .86rem; }
.tenant-phone-directory__table td { padding: 13px 14px; border-top: 1px solid #d9e4ed; vertical-align: middle; }
.tenant-phone-directory__table tbody tr:nth-child(even) { background: #f6f9fb; }
.tenant-phone-directory__table tbody tr:hover { background: #eaf5f8; }
.tenant-phone-directory__title { display: inline; margin-inline-end: 4px; }
.tenant-phone-directory__hierarchy { display: block; }
.tenant-phone-directory__hierarchy { margin-top: 3px; color: #506a81; font-size: .86rem; }
.tenant-phone-directory__extension { white-space: nowrap; font-weight: 800; }
.tenant-phone-directory__empty { margin-top: 18px; padding: 24px; border: 1px dashed #aec5d7; border-radius: 9px; text-align: center; background: #f7fafc; }
.tenant-phone-directory__pagination { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.tenant-phone-directory__pagination a { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid #b8cfdf; border-radius: 6px; color: #075d79; background: #fff; text-decoration: none; font-weight: 800; }
.tenant-phone-directory__pagination a:hover,
.tenant-phone-directory__pagination a:focus-visible,
.tenant-phone-directory__pagination a.is-active { color: #fff; background: #087da0; border-color: #087da0; }
.tenant-phone-directory__pagination a.is-disabled { pointer-events: none; opacity: .45; }

@media (max-width: 760px) {
    .tenant-phone-directory__header { align-items: stretch; flex-direction: column; }
    .tenant-phone-directory__actions { align-self: flex-start; }
    .tenant-phone-directory__general,
    .tenant-phone-directory__print { white-space: normal; }
    .tenant-phone-directory__table-wrap { overflow: visible; border: 0; }
    .tenant-phone-directory__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tenant-phone-directory__table,
    .tenant-phone-directory__table tbody,
    .tenant-phone-directory__table tr,
    .tenant-phone-directory__table td { display: block; width: 100%; }
    .tenant-phone-directory__table tr { margin-bottom: 12px; border: 1px solid #cfdeeb; border-radius: 9px; overflow: hidden; background: #fff; }
    .tenant-phone-directory__table td { display: grid; grid-template-columns: minmax(100px, 35%) 1fr; gap: 12px; border-top: 1px solid #e0e8ef; }
    .tenant-phone-directory__table td:first-child { border-top: 0; }
    .tenant-phone-directory__table td::before { content: attr(data-label); color: #3f5b73; font-weight: 800; }
}

@media print {
    body * { visibility: hidden !important; }
    .tenant-phone-directory,
    .tenant-phone-directory * { visibility: visible !important; }
    .tenant-phone-directory {
        position: absolute;
        inset: 0;
        width: 100%;
        color: #000;
    }
    .tenant-phone-directory__actions,
    .tenant-phone-directory__tabs,
    .tenant-phone-directory__search,
    .tenant-phone-directory__pagination { display: none !important; }
    .tenant-phone-directory__header,
    .tenant-phone-directory__table-wrap { border-color: #999; box-shadow: none; }
    .tenant-phone-directory__table-wrap {
        overflow: visible;
        border-radius: 0;
    }
    .tenant-phone-directory__table { display: table; width: 100%; border-collapse: collapse; }
    .tenant-phone-directory__table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
    .tenant-phone-directory__table tbody { display: table-row-group; }
    .tenant-phone-directory__table tr {
        display: table-row;
        width: auto;
        margin: 0;
        border: 0;
        border-radius: 0;
        break-inside: avoid;
    }
    .tenant-phone-directory__table th,
    .tenant-phone-directory__table td {
        display: table-cell;
        width: auto;
        padding: 7px 9px;
        border: 1px solid #aaa;
        vertical-align: top;
    }
    .tenant-phone-directory__table td::before { display: none !important; content: none !important; }
    .tenant-phone-directory__table th {
        color: #000;
        background: #eee !important;
    }
}

@media (max-width: 520px) {
    .tenant-phone-directory__tabs { grid-template-columns: 1fr; }
}
