/* ==========================================================================
   NICKY'S HAIR BOUTIQUE
   Admin
   ========================================================================== */


/* ==========================================================================
   RESET
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    color: #181818;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   LOGIN
   ========================================================================== */

.admin-login-page {
    min-height: 100vh;

    background:
        #202020;
}

.login-shell {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;
}

.login-panel {
    width: min(440px, 100%);

    padding: 50px;

    background: #ffffff;
}

.login-logo-link {
    display: block;

    width: 108px;
    margin: 0 auto 44px;
}

.login-logo {
    display: block;

    width: 100%;
    height: auto;
}

.login-heading {
    margin-bottom: 34px;
}

.admin-eyebrow {
    margin: 0 0 10px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0 0 10px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 44px;
    font-weight: 400;
    line-height: 1;
}

.login-heading>p:last-child {
    margin: 0;

    color: #737373;

    font-size: 13px;
    line-height: 1.6;
}


/* Form
   ========================================================================== */

.login-form {
    display: grid;
    gap: 22px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 11px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #d9d9d9;
    border-radius: 0;

    background: #ffffff;

    outline: none;
}

.field input:focus {
    border-color: #b89b45;
}

.primary-button {
    height: 50px;

    border: 0;

    background: #b89b45;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.login-error {
    margin: 0;

    color: #a63232;

    font-size: 12px;
    line-height: 1.5;
}

.return-site {
    display: block;

    margin-top: 30px;

    color: #747474;

    font-size: 11px;
    text-align: center;
}


/* ==========================================================================
   ADMIN APP
   ========================================================================== */

.admin-app {
    min-height: 100vh;

    background: #f4f3ef;

    visibility: hidden;
}

.admin-app.auth-ready {
    visibility: visible;
}

.admin-layout {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.admin-sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: 230px;

    display: flex;
    flex-direction: column;

    padding: 34px 24px 28px;

    background: #202020;
    color: #ffffff;
}

.admin-brand {
    display: block;

    width: 92px;
    margin: 0 auto 48px;
}

.admin-brand img {
    display: block;

    width: 100%;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-nav-item {
    padding: 13px 14px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.admin-sidebar-footer {
    margin-top: auto;

    display: grid;
    gap: 8px;
}

.view-website,
.sign-out-button {
    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    border: 0;

    background: transparent;
    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
    text-align: left;
}

.view-website:hover,
.sign-out-button:hover {
    color: #ffffff;
}


/* ==========================================================================
   MAIN
   ========================================================================== */

.admin-main {
    grid-column: 2;

    min-width: 0;
}

.admin-topbar {
    min-height: 112px;

    padding: 0 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #deddd8;

    background: #ffffff;
}

.admin-topbar h1 {
    margin: 0;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 400;
}

.admin-account {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #666666;

    font-size: 11px;
}

.account-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d5d4cf;
    border-radius: 50%;
}

.account-avatar svg {
    width: 13px;
    height: 13px;

    fill: #202020;
}


/* ==========================================================================
   DASHBOARD
   ========================================================================== */

.dashboard-content {
    padding: 60px 48px;
}

.dashboard-welcome {
    margin-bottom: 48px;
}

.dashboard-welcome h2 {
    margin: 0 0 14px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: clamp(46px, 5vw, 70px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.dashboard-welcome>p:last-child {
    margin: 0;

    color: #747474;

    font-size: 13px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 18px;
}

.dashboard-card {
    min-height: 230px;

    padding: 28px;

    display: flex;
    flex-direction: column;

    border: 1px solid #deddd8;

    background: #ffffff;

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.dashboard-card:hover {
    transform:
        translateY(-2px);

    border-color: #b89b45;
}

.card-label {
    color: #777777;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-card strong {
    margin-top: 20px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 400;
}

.card-action {
    margin-top: auto;

    font-size: 11px;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

    .admin-layout {
        grid-template-columns:
            190px minmax(0, 1fr);
    }

    .admin-sidebar {
        width: 190px;
    }

    .admin-topbar,
    .dashboard-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 640px) {

    .login-panel {
        padding: 38px 28px;
    }

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        display: block;
    }

    .admin-topbar {
        padding:
            22px 20px;

        min-height: 90px;
    }

    .admin-account span {
        display: none;
    }

    .dashboard-content {
        padding:
            38px 20px;
    }

}

/* ==========================================================================
   SERVICES ADMIN
   ========================================================================== */

.services-admin-content {
    padding: 54px 48px 80px;
}

.services-admin-heading {
    margin-bottom: 36px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.services-admin-heading h2 {
    margin: 0 0 12px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: clamp(44px, 5vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

.services-admin-heading>div>p:last-child {
    margin: 0;

    color: #747474;

    font-size: 13px;
}

.admin-primary-button,
.admin-secondary-button {
    min-height: 44px;
    padding: 0 18px;

    border: 0;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-primary-button {
    background: #b89b45;
    color: #ffffff;
}

.admin-secondary-button {
    border: 1px solid #d8d7d2;

    background: #ffffff;
    color: #202020;
}

.admin-primary-button:disabled {
    opacity: 0.5;
}


/* Toolbar
   ========================================================================== */

.services-toolbar {
    margin-bottom: 18px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 12px;
}

.service-search,
.service-filter {
    height: 46px;

    padding: 0 15px;

    border: 1px solid #deddd8;
    border-radius: 0;

    background: #ffffff;

    outline: none;
}

.service-search:focus,
.service-filter:focus {
    border-color: #b89b45;
}


/* List
   ========================================================================== */

.services-list {
    display: grid;
    gap: 10px;
}

.service-row {
    min-height: 138px;

    padding: 24px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 210px 150px;

    gap: 30px;
    align-items: center;

    border: 1px solid #deddd8;

    background: #ffffff;
}

.service-row-heading {
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.service-category,
.service-status {
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-category {
    color: #8a8a8a;
}

.service-status {
    padding: 4px 7px;

    background: #eeeeeb;
    color: #747474;
}

.service-status.active {
    background: #edf3e8;
    color: #49683e;
}

.service-row h3 {
    margin: 0 0 8px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 25px;
    font-weight: 400;
}

.service-row-main>p {
    margin: 0;

    max-width: 560px;

    color: #777777;

    font-size: 11px;
    line-height: 1.5;
}

.service-row-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-row-meta div {
    display: grid;
    gap: 6px;
}

.service-row-meta span {
    color: #8a8a8a;

    font-size: 9px;

    text-transform: uppercase;
}

.service-row-meta strong {
    font-size: 13px;
    font-weight: 500;
}

.service-row-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.service-row-actions button {
    padding: 8px 0;

    border: 0;

    background: transparent;
    color: #555555;

    font-size: 10px;
    text-align: right;
}

.service-row-actions button:hover {
    color: #000000;
}

.service-row-actions .danger-action {
    color: #a55353;
}

.services-loading,
.services-empty {
    padding: 70px 30px;

    border: 1px solid #deddd8;

    background: #ffffff;

    text-align: center;
}

.services-empty h3 {
    margin: 0 0 8px;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 28px;
    font-weight: 400;
}

.services-empty p {
    margin: 0;

    color: #777777;

    font-size: 12px;
}


/* ==========================================================================
   SERVICE EDITOR
   ========================================================================== */

.service-modal[hidden] {
    display: none;
}

.service-modal {
    position: fixed;
    z-index: 100;

    inset: 0;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.42);
}

.service-editor {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(540px, 100%);

    overflow-y: auto;

    padding: 38px;

    background: #ffffff;
}

.service-editor-header {
    margin-bottom: 36px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.service-editor-header h2 {
    margin: 0;

    font-family:
        Didot,
        "Bodoni MT",
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 400;
}

.service-editor-close {
    width: 38px;
    height: 38px;

    border: 0;

    background: transparent;

    font-size: 28px;
    font-weight: 200;
}

.service-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field label {
    font-size: 10px;
    font-weight: 600;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #d9d8d3;
    border-radius: 0;

    background: #ffffff;

    font: inherit;

    outline: none;
}

.admin-field input,
.admin-field select {
    height: 44px;
}

.admin-field textarea {
    resize: vertical;

    min-height: 120px;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: #b89b45;
}

.service-field-wide {
    grid-column: 1 / -1;
}

.service-active-control {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 11px;
}

.service-form-error {
    margin: 20px 0 0;

    color: #a63232;

    font-size: 11px;
}

.service-editor-footer {
    margin-top: 36px;

    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* Responsive
   ========================================================================== */

@media (max-width: 900px) {

    .services-admin-content {
        padding:
            40px 30px;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-row-actions {
        flex-direction: row;
        gap: 20px;
    }

    .service-row-actions button {
        text-align: left;
    }

}


@media (max-width: 640px) {

    .services-admin-content {
        padding:
            32px 20px;
    }

    .services-admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-toolbar {
        grid-template-columns: 1fr;
    }

    .service-editor {
        padding: 28px 20px;
    }

    .service-form-grid {
        grid-template-columns: 1fr;
    }

    .service-field-wide,
    .service-active-control {
        grid-column: auto;
    }

}

/* ==========================================================================
   APPLICATIONS
   ========================================================================== */


.applications-admin {
    padding: 52px 42px 90px;
}


.applications-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 38px;
}


.applications-eyebrow {
    margin: 0 0 10px;

    color: #282623;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.applications-header h2 {
    margin: 0;

    color: #171717;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 58px;
    font-weight: 400;

    line-height: 0.95;

    letter-spacing: -0.04em;
}


.applications-subtitle {
    margin: 14px 0 0;

    color: #74706a;

    font-size: 13px;
}


/* ==========================================================================
   APPLICATION STATS
   ========================================================================== */


.application-stats {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0,
                1fr));

    margin-bottom: 22px;

    border:
        1px solid #ddd9d2;

    background: #ffffff;
}


.application-stat {
    display: flex;
    flex-direction: column;

    gap: 13px;

    padding: 20px;

    border: 0;
    border-right:
        1px solid #e3dfd8;

    background: transparent;

    color: #171717;

    cursor: pointer;

    text-align: left;
}


.application-stat:last-child {
    border-right: 0;
}


.application-stat.active {
    background: #222222;

    color: #ffffff;
}


.application-stat-label {
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    opacity: 0.65;
}


.application-stat strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;
    font-weight: 400;
}


/* ==========================================================================
   TOOLBAR
   ========================================================================== */


.applications-toolbar {
    display: grid;

    grid-template-columns:
        minmax(0,
            1fr) 180px;

    gap: 12px;

    margin-bottom: 16px;
}


.applications-toolbar input,
.applications-toolbar select {
    min-height: 48px;

    box-sizing: border-box;

    border:
        1px solid #ddd9d2;

    border-radius: 0;

    outline: none;

    background: #ffffff;

    color: #222222;

    font: inherit;
}


.applications-toolbar input {
    padding:
        0 16px;
}


.applications-toolbar select {
    padding:
        0 13px;
}


/* ==========================================================================
   APPLICATION LIST
   ========================================================================== */


.applications-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.applications-message {
    padding: 60px 20px;

    border:
        1px solid #ddd9d2;

    background: #ffffff;

    color: #77726b;

    text-align: center;
}


.applications-error {
    color: #8b4444;
}


.application-card {
    display: grid;

    grid-template-columns:
        minmax(230px,
            1.5fr) minmax(120px,
            0.8fr) minmax(110px,
            0.7fr) minmax(100px,
            0.65fr) 30px;

    gap: 24px;

    align-items: center;

    width: 100%;

    padding: 21px 20px;

    border:
        1px solid #ddd9d2;

    background: #ffffff;

    color: #171717;

    cursor: pointer;

    font: inherit;

    text-align: left;

    transition:
        border-color 150ms ease,
        transform 150ms ease;
}


.application-card:hover {
    border-color: #b99a3d;

    transform:
        translateY(-1px);
}


.application-card-topline {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 9px;
}


.application-card-primary h3 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 400;
}


.application-card-primary p {
    margin: 6px 0 0;

    color: #77726b;

    font-size: 11px;
}


.application-date {
    color: #96918a;

    font-size: 9px;
}


.application-card-detail {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.application-card-detail span {
    color: #96918a;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.application-card-detail strong {
    font-size: 11px;
    font-weight: 500;
}


.application-card-arrow {
    color: #a78a37;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;

    text-align: right;
}


/* ==========================================================================
   STATUS
   ========================================================================== */


.application-status {
    display: inline-flex;

    padding:
        5px 7px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.application-status-new {
    background: #eee8d4;

    color: #826b28;
}


.application-status-reviewing {
    background: #e8edf2;

    color: #516778;
}


.application-status-contacted {
    background: #ebe7ef;

    color: #695a76;
}


.application-status-accepted {
    background: #e6eee4;

    color: #55724f;
}


.application-status-declined {
    background: #f1e5e5;

    color: #885757;
}


/* ==========================================================================
   APPLICATION DETAIL PANEL
   ========================================================================== */


.application-panel-overlay {
    position: fixed;

    inset: 0;

    z-index: 90;

    background:
        rgba(0,
            0,
            0,
            0.34);
}


.application-panel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    display: flex;

    flex-direction: column;

    width: min(540px,
            92vw);

    background: #f8f7f4;

    box-shadow:
        -12px 0 40px rgba(0,
            0,
            0,
            0.12);

    transform:
        translateX(105%);

    transition:
        transform 220ms ease;
}


.application-panel.open {
    transform:
        translateX(0);
}


.application-panel-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding: 32px;

    border-bottom:
        1px solid #ddd9d2;

    background: #ffffff;
}


.application-panel-eyebrow {
    margin:
        0 0 8px;

    color: #a28635;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.application-panel-header h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 400;
}


.application-panel-close {
    border: 0;

    background: transparent;

    color: #55514b;

    cursor: pointer;

    font-size: 30px;
    font-weight: 300;
}


.application-panel-content {
    flex: 1;

    padding:
        10px 32px 40px;

    overflow-y: auto;
}


.application-detail-section {
    padding:
        28px 0;

    border-bottom:
        1px solid #ddd9d2;
}


.application-detail-section h3 {
    margin:
        0 0 18px;

    color: #171717;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 400;
}


.application-detail-row {
    display: grid;

    grid-template-columns:
        145px minmax(0,
            1fr);

    gap: 18px;

    padding: 9px 0;
}


.application-detail-row span {
    color: #8a857e;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.application-detail-row strong {
    color: #292724;

    font-size: 12px;
    font-weight: 500;

    overflow-wrap: anywhere;
}


.application-introduction {
    margin: 0;

    color: #5f5b55;

    font-size: 13px;

    line-height: 1.75;

    white-space: pre-wrap;
}


.application-panel-footer {
    padding: 24px 32px;

    border-top:
        1px solid #ddd9d2;

    background: #ffffff;
}


.application-panel-footer label {
    display: block;

    margin-bottom: 9px;

    color: #817c75;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.application-panel-footer select {
    width: 100%;

    min-height: 48px;

    padding:
        0 12px;

    border:
        1px solid #cbc7bf;

    border-radius: 0;

    background: #ffffff;

    color: #171717;

    font: inherit;
}


.application-panel-open {
    overflow: hidden;
}


/* ==========================================================================
   APPLICATIONS — RESPONSIVE
   ========================================================================== */


@media (max-width: 1050px) {

    .application-card {
        grid-template-columns:
            minmax(220px,
                1.5fr) minmax(100px,
                0.7fr) minmax(90px,
                0.6fr) 25px;
    }


    .application-card-detail:nth-of-type(2) {
        display: none;
    }

}


@media (max-width: 760px) {

    .applications-admin {
        padding:
            32px 20px 70px;
    }


    .applications-header h2 {
        font-size: 44px;
    }


    .application-stats {
        grid-template-columns:
            repeat(2,
                1fr);
    }


    .application-stat {
        border-bottom:
            1px solid #e3dfd8;
    }


    .applications-toolbar {
        grid-template-columns: 1fr;
    }


    .application-card {
        grid-template-columns:
            minmax(0,
                1fr) auto;

        gap: 14px;
    }


    .application-card-detail {
        display: none;
    }


    .application-card-arrow {
        grid-column: 2;
        grid-row: 1;
    }


    .application-panel-header,
    .application-panel-content,
    .application-panel-footer {
        padding-left: 22px;
        padding-right: 22px;
    }


    .application-detail-row {
        grid-template-columns: 1fr;

        gap: 5px;
    }

}

/* ==========================================================================
   CONTACTS
   ========================================================================== */

.contacts-admin-content {
    padding: 52px 56px 80px;
}

.contacts-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.contacts-heading h2 {
    margin: 6px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.contacts-description {
    margin: 0;
    color: #77736d;
    font-size: 13px;
}

.contacts-primary-button {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #1d1d1d;
    background: #1d1d1d;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contacts-primary-button:hover {
    opacity: 0.82;
}

.contacts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.contacts-search {
    width: min(430px, 100%);
    min-height: 46px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8d5cf;
    background: #ffffff;
}

.contacts-search svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #77736d;
    stroke-width: 1.6;
}

.contacts-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #181818;
    font: inherit;
    font-size: 13px;
}

.contacts-count {
    color: #77736d;
    font-size: 11px;
}

.contacts-table-card {
    overflow: hidden;
    border: 1px solid #d8d5cf;
    background: #ffffff;
}

.contacts-table-header,
.contact-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.15fr)
        minmax(150px, 0.9fr)
        minmax(220px, 1.25fr)
        minmax(100px, 0.55fr);
    gap: 20px;
    align-items: center;
}

.contacts-table-header {
    min-height: 48px;
    padding: 0 24px;
    border-bottom: 1px solid #d8d5cf;
    color: #8b8781;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-row {
    width: 100%;
    min-height: 72px;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid #ece9e3;
    background: #ffffff;
    color: #1d1d1d;
    cursor: pointer;
    text-align: left;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row:hover {
    background: #f8f7f4;
}

.contact-row-name {
    font-size: 14px;
    font-weight: 600;
}

.contact-row-phone,
.contact-row-email,
.contact-row-source {
    overflow: hidden;
    color: #69655f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-row-source {
    text-transform: capitalize;
}

.contacts-loading,
.contacts-empty {
    padding: 70px 24px;
    color: #77736d;
    font-size: 13px;
    text-align: center;
}


/* Contact panel
   ========================================================================== */

.contact-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.28);
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(520px, 100%);
    height: 100vh;
    padding: 42px;
    overflow-y: auto;
    background: #f7f6f2;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    transition: transform 220ms ease;
}

.contact-panel.open {
    transform: translateX(0);
}

.contact-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.contact-panel-header h2 {
    margin: 6px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.contact-panel-close {
    width: 38px;
    height: 38px;
    border: 1px solid #d8d5cf;
    background: transparent;
    color: #1d1d1d;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 9px;
}

.contact-field > span {
    color: #77736d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d5cf;
    border-radius: 0;
    outline: 0;
    background: #ffffff;
    color: #181818;
    font: inherit;
    font-size: 13px;
}

.contact-field input,
.contact-field select {
    height: 48px;
    padding: 0 14px;
}

.contact-field textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #1d1d1d;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
}

.contacts-danger-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #c9c4bd;
    background: transparent;
    color: #7a2929;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


@media (max-width: 900px) {

    .contacts-admin-content {
        padding: 36px 28px 60px;
    }

    .contacts-table-header,
    .contact-row {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-table-header span:nth-child(3),
    .contacts-table-header span:nth-child(4),
    .contact-row-email,
    .contact-row-source {
        display: none;
    }

}


@media (max-width: 600px) {

    .contacts-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .contacts-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-panel {
        padding: 30px 22px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   PHONE
   ========================================================================== */

.phone-admin-content {
    padding: 52px 56px 80px;
}

.phone-heading {
    margin-bottom: 38px;
}

.phone-heading h2 {
    margin: 6px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.phone-heading > p:last-child {
    margin: 0;
    color: #77736d;
    font-size: 13px;
}

.phone-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(260px, 340px);
    gap: 28px;
    align-items: start;
}

.phone-card {
    padding: 34px 42px 40px;
    border: 1px solid #d8d5cf;
    background: #ffffff;
}

.phone-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #77736d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phone-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8e8a84;
}

.phone-status-dot[data-state="connecting"] {
    background: #b28b45;
}

.phone-status-dot[data-state="active"] {
    background: #3d7a52;
}

.phone-status-dot[data-state="error"] {
    background: #9b3d3d;
}

.phone-number-wrap {
    position: relative;
    margin-bottom: 28px;
}

.phone-number-input {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    padding: 0 54px 0 18px;
    border: 0;
    border-bottom: 1px solid #d8d5cf;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #181818;
    font: inherit;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
}

.phone-number-input:focus {
    border-color: #1d1d1d;
}

.phone-number-input:disabled {
    color: #181818;
    opacity: 1;
}

.phone-backspace {
    position: absolute;
    top: 50%;
    right: 12px;
    border: 0;
    background: transparent;
    color: #77736d;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
}

.phone-backspace:disabled {
    cursor: default;
    opacity: 0.25;
}

.phone-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: min(330px, 100%);
    margin: 0 auto 30px;
}

.phone-keypad button {
    aspect-ratio: 1.18 / 1;
    border: 1px solid #e0ddd7;
    background: #faf9f6;
    color: #1d1d1d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-keypad button:hover {
    border-color: #bbb6ae;
    background: #f4f2ed;
}

.phone-keypad strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.phone-keypad span {
    min-height: 9px;
    margin-top: 6px;
    color: #8b8781;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.phone-controls {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 10px;
}

.phone-controls button {
    min-height: 48px;
    padding: 0 12px;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.phone-controls button:disabled {
    cursor: default;
    opacity: 0.35;
}

.phone-secondary-control {
    border: 1px solid #d8d5cf;
    background: #ffffff;
    color: #1d1d1d;
}

.phone-secondary-control.active {
    border-color: #1d1d1d;
    background: #1d1d1d;
    color: #ffffff;
}

.phone-call-button {
    border: 1px solid #1d1d1d;
    background: #1d1d1d;
    color: #ffffff;
}

.phone-hangup-button {
    border: 1px solid #b9a8a5;
    background: #ffffff;
    color: #8b3434;
}

.phone-message {
    min-height: 18px;
    margin: 18px 0 0;
    color: #8b3434;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.phone-information {
    padding: 32px;
    border: 1px solid #d8d5cf;
    background: #f8f7f4;
}

.phone-information h3 {
    margin: 7px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.phone-information p {
    margin: 0;
    color: #77736d;
    font-size: 12px;
    line-height: 1.75;
}

.phone-information-rule {
    height: 1px;
    margin: 28px 0;
    background: #d8d5cf;
}

.phone-information-label {
    display: block;
    margin-bottom: 8px;
    color: #8b8781;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.phone-information strong {
    display: block;
    margin-bottom: 10px;
    color: #1d1d1d;
    font-size: 13px;
    font-weight: 600;
}


@media (max-width: 980px) {

    .phone-workspace {
        grid-template-columns: 1fr;
    }

    .phone-information {
        max-width: 520px;
    }

}


@media (max-width: 600px) {

    .phone-admin-content {
        padding: 36px 22px 60px;
    }

    .phone-card {
        padding: 28px 20px 32px;
    }

    .phone-controls {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   CALL HISTORY
   ========================================================================== */


.call-history-content {
    padding: 52px 56px 72px;
}


.call-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}


.call-history-heading h2 {
    margin: 4px 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #111111;
}


.call-history-heading > div > p:last-child {
    margin: 0;
    color: #77746d;
    font-size: 14px;
    line-height: 1.6;
}


.call-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}


.call-history-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid #dedcd6;
    border-radius: 10px;
    background: #ffffff;
}


.call-history-filter {
    appearance: none;
    border: 0;
    border-radius: 7px;
    background: transparent;
    padding: 9px 14px;
    color: #77746d;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease;
}


.call-history-filter:hover {
    color: #111111;
}


.call-history-filter.active {
    background: #111111;
    color: #ffffff;
}


.call-history-count {
    color: #8a877f;
    font-size: 12px;
    font-weight: 600;
}


.call-history-panel {
    overflow: hidden;
    border: 1px solid #dedcd6;
    border-radius: 14px;
    background: #ffffff;
}


.call-history-table-wrap {
    overflow-x: auto;
}


.call-history-table {
    width: 100%;
    border-collapse: collapse;
}


.call-history-table th {
    padding: 15px 20px;
    border-bottom: 1px solid #e9e7e1;
    background: #faf9f6;
    color: #96928a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}


.call-history-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #efede8;
    color: #272624;
    font-size: 13px;
    vertical-align: middle;
}


.call-history-table tbody tr:last-child td {
    border-bottom: 0;
}


.call-history-table tbody tr {
    transition: background 140ms ease;
}


.call-history-table tbody tr:hover {
    background: #fcfbf8;
}


.call-history-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}


.call-history-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #f1f0ec;
    color: #222222;
    font-size: 16px;
}


.call-history-contact > div:last-child,
.call-history-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.call-history-contact strong,
.call-history-date strong {
    color: #222222;
    font-size: 13px;
    font-weight: 600;
}


.call-history-contact span,
.call-history-date span {
    color: #8d8981;
    font-size: 11px;
}


.call-history-direction,
.call-history-duration {
    color: #55524c;
    font-size: 12px;
    white-space: nowrap;
}


.call-history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}


.call-history-status.completed {
    background: #eaf4ed;
    color: #376246;
}


.call-history-status.active {
    background: #eef2f8;
    color: #405d82;
}


.call-history-status.missed {
    background: #f8ecea;
    color: #8a4841;
}


.call-history-status.neutral {
    background: #f0efeb;
    color: #69665f;
}


.call-history-recording-ready {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}


.call-history-no-recording {
    color: #b4b0a8;
}


.call-history-loading {
    padding: 52px 20px !important;
    color: #8a877f !important;
    text-align: center;
}


.call-history-empty {
    padding: 72px 24px;
    text-align: center;
}


.call-history-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #222222;
    font-size: 16px;
    font-weight: 600;
}


.call-history-empty p {
    margin: 0;
    color: #8a877f;
    font-size: 13px;
}


@media (max-width: 900px) {

    .call-history-content {
        padding: 36px 28px 56px;
    }


    .call-history-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }


    .call-history-filters {
        max-width: 100%;
        overflow-x: auto;
    }

}


@media (max-width: 600px) {

    .call-history-content {
        padding: 28px 18px 48px;
    }


    .call-history-heading {
        margin-bottom: 26px;
    }


    .call-history-table {
        min-width: 760px;
    }

}


/* ==========================================================================
   CONTACT CLICK TO CALL
   ========================================================================== */


.contact-call-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}


.contact-call-button > span:first-child {
    transition: color 150ms ease;
}


.contact-call-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity 150ms ease,
        transform 150ms ease;
}


.contact-row:hover .contact-call-label,
.contact-call-button:focus-visible .contact-call-label {
    opacity: 1;
    transform: translateX(0);
}


.contact-call-button:hover > span:first-child {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
}
