@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {

    /* -----------------------------------------------------
       ScrubbersOS · Core Brand
       ----------------------------------------------------- */

    --scrubbers-navy: #0B1320;
    --scrubbers-teal: #0B7285;
    --scrubbers-accent: #14B8A6;
    --scrubbers-light-blue: #E6F4F6;
    --scrubbers-soft-grey: #F3F5F7;
    --scrubbers-white: #FFFFFF;


    /* -----------------------------------------------------
       ScrubbersOS · Text
       ----------------------------------------------------- */

    --text-primary: #0B1320;
    --text-secondary: #596879;
    --text-muted: #8391A2;


    /* -----------------------------------------------------
       ScrubbersOS · Borders & Surfaces
       ----------------------------------------------------- */

    --border-default: #DCE4E8;
    --border-soft: #E3EAED;

    --surface-default: #FFFFFF;
    --surface-soft: #F7F9FA;
    --surface-page: #F3F5F7;


    /* -----------------------------------------------------
       ScrubbersOS · Semantic States
       ----------------------------------------------------- */

    --success: #40C057;
    --warning: #F59E0B;
    --error: #EF4444;

    --success-soft: #EAF8EE;
    --warning-soft: #FFF7E6;
    --error-soft: #FFF0F0;
    --info-soft: #E6F4F6;


    /* -----------------------------------------------------
       ScrubbersOS · Gradients
       ----------------------------------------------------- */

    --gradient-primary:
        linear-gradient(
            90deg,
            #058A9E 0%,
            #18A4A9 52%,
            #27BCB5 100%
        );

    --gradient-dark:
        linear-gradient(
            135deg,
            #0B1320 0%,
            #073C52 55%,
            #0B7285 100%
        );

    --gradient-light:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F5FBFC 55%,
            #E6F4F6 100%
        );


    /* -----------------------------------------------------
       ScrubbersOS · Typography
       ----------------------------------------------------- */

    --font-interface:
        "Poppins",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;


    /* -----------------------------------------------------
       ScrubbersOS · Spacing
       ----------------------------------------------------- */

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;


    /* -----------------------------------------------------
       ScrubbersOS · Radius
       ----------------------------------------------------- */

    --radius-small: 8px;
    --radius-control: 10px;
    --radius-button: 10px;
    --radius-card: 16px;
    --radius-panel: 20px;
    --radius-pill: 999px;


    /* -----------------------------------------------------
       ScrubbersOS · Shadows
       ----------------------------------------------------- */

    --shadow-card:
        0 1px 2px rgba(11,19,32,.03),
        0 8px 24px rgba(11,19,32,.045);

    --shadow-raised:
        0 14px 40px rgba(11,19,32,.08);

    --shadow-modal:
        0 24px 60px rgba(11,19,32,.14);


    /* -----------------------------------------------------
       ScrubbersOS · Motion
       ----------------------------------------------------- */

    --motion-fast: 160ms;
    --motion-standard: 180ms;
    --motion-slow: 200ms;


    /* -----------------------------------------------------
       Legacy Compatibility
       Existing screens continue working while migrating.
       ----------------------------------------------------- */

    --teal: var(--scrubbers-teal);
    --teal-accent: var(--scrubbers-accent);
    --navy: var(--scrubbers-navy);
    --charcoal: #343A40;
    --muted: var(--text-secondary);
    --border: var(--border-default);
    --surface: var(--surface-default);
    --background: var(--surface-page);
    --danger: #B42318;
    --danger-bg: var(--error-soft);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
font-family:
    var(--font-interface);

    color: var(--navy);
    background: var(--background);
}

button,
input {
    font: inherit;
}


/* =========================================================
   SCRUBBERSOS · AUTHENTICATION
   Reference implementation of the shared design system
   ========================================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--surface-page);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(520px, 1.05fr)
        minmax(500px, .95fr);
}


/* ---------------------------------------------------------
   Brand Panel
   --------------------------------------------------------- */

.auth-brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding:
        46px
        clamp(44px, 5vw, 76px)
        40px;

    color: var(--scrubbers-white);

    background:
        radial-gradient(
            circle at 14% 16%,
            rgba(20,184,166,.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 84%,
            rgba(39,188,181,.16),
            transparent 34%
        ),
        var(--gradient-dark);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.auth-brand-panel::before {
    width: 430px;
    height: 430px;
    right: -170px;
    top: 12%;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 50%;
}

.auth-brand-panel::after {
    width: 620px;
    height: 620px;
    left: -320px;
    bottom: -390px;

    border:
        1px solid
        rgba(255,255,255,.055);

    border-radius: 50%;
}


/* ---------------------------------------------------------
   Brand Identity
   --------------------------------------------------------- */

.auth-brand-identity {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-logo-wrap {
    width: min(100%, 300px);
    height: auto;

    display: block;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    backdrop-filter: none;
}

.auth-brand-logo {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter: none;
}

.auth-brand-name {
    display: none;
}


/* ---------------------------------------------------------
   Main Brand Message
   --------------------------------------------------------- */

.auth-brand-content {
    position: relative;
    z-index: 2;

    width: min(100%, 600px);

    margin-top: auto;
    margin-bottom: auto;

    padding:
        70px 0
        42px;
}

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color:
        rgba(126,236,222,.95);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-brand-eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background:
        rgba(126,236,222,.7);
}

.auth-brand-content h1 {
    max-width: 570px;

    margin:
        22px 0
        18px;

    color: #FFFFFF;

    font-size:
        clamp(40px, 4.2vw, 62px);

    font-weight: 600;

    line-height: 1.08;
    letter-spacing: -.045em;
}

.auth-brand-content > p {
    max-width: 520px;

    margin: 0;

    color:
        rgba(255,255,255,.68);

    font-size: 15px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Operational Benefits
   --------------------------------------------------------- */

.auth-benefits {
    display: grid;
    gap: 13px;

    margin-top: 32px;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    color:
        rgba(255,255,255,.82);

    font-size: 13px;
    line-height: 1.5;
}

.auth-benefit-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 10px;

    background:
        rgba(255,255,255,.07);

    color: #7EECDD;

    font-size: 14px;
    font-weight: 600;
}

.auth-benefit-copy {
    padding-top: 2px;
}

.auth-benefit-copy strong {
    display: block;

    margin-bottom: 2px;

    color: #FFFFFF;

    font-size: 13px;
    font-weight: 600;
}

.auth-benefit-copy span {
    color:
        rgba(255,255,255,.57);
}


/* ---------------------------------------------------------
   My Scrubbers Connection Panel
   --------------------------------------------------------- */

.auth-ecosystem-card {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 14px;

    width: min(100%, 520px);

    margin-top: 34px;
    padding: 15px 17px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius:
        var(--radius-card);

    background:
        rgba(255,255,255,.08);

    backdrop-filter:
        blur(14px);

    box-shadow:
        0 10px 35px
        rgba(11,19,32,.08);
}

.auth-ecosystem-device {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(20,184,166,.15);

    color: #8DF1E5;

    font-size: 18px;
}

.auth-ecosystem-copy {
    min-width: 0;
}

.auth-ecosystem-copy strong {
    display: block;

    color: #FFFFFF;

    font-size: 13px;
    font-weight: 600;
}

.auth-ecosystem-copy span {
    display: block;

    margin-top: 3px;

    color:
        rgba(255,255,255,.55);

    font-size: 11px;
    line-height: 1.4;
}

.auth-brand-footer {
    position: relative;
    z-index: 2;

    color:
        rgba(255,255,255,.38);

    font-size: 11px;
}


/* ---------------------------------------------------------
   Authentication Form Side
   --------------------------------------------------------- */

.auth-form-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        48px
        clamp(34px, 5vw, 76px);

    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(20,184,166,.075),
            transparent 27%
        ),
        var(--gradient-light);
}

.login-card {
    width:
        min(100%, 460px);

    padding:
        34px 36px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-panel);

    background:
        rgba(255,255,255,.95);

    box-shadow:
        var(--shadow-raised);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 28px;
}

.login-logo-image-wrap {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 6px;

    border-radius: 11px;

    background:
        var(--scrubbers-light-blue);
}

.login-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-logo-copy {
    display: flex;
    flex-direction: column;
}

.login-logo-copy strong {
    color:
        var(--text-primary);

    font-size: 15px;
    font-weight: 600;
}

.login-logo-copy span {
    margin-top: 1px;

    color:
        var(--text-muted);

    font-size: 10px;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading .eyebrow {
    color:
        var(--scrubbers-teal);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .08em;
}

.login-heading h1 {
    margin:
        9px 0
        8px;

    color:
        var(--text-primary);

    font-size: 32px;
    font-weight: 600;

    line-height: 1.15;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 14px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Shared Auth Form Controls
   --------------------------------------------------------- */

.login-form {
    display: grid;
    gap: 20px;
}

.login-form .form-group {
    display: grid;
    gap: 8px;
}

.login-form .form-group label {
    color:
        var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 46px;

    padding:
        0 14px;

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-control);

    outline: none;

    background:
        var(--surface-default);

    color:
        var(--text-primary);

    font-size: 14px;

    transition:
        border-color
        var(--motion-fast)
        ease,
        box-shadow
        var(--motion-fast)
        ease;
}

.login-form input::placeholder {
    color: #98A5B3;
}

.login-form input:focus {
    border-color:
        var(--scrubbers-accent);

    box-shadow:
        0 0 0 3px
        rgba(20,184,166,.12);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 66px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    min-width: 48px;
    height: 32px;

    transform:
        translateY(-50%);

    border: 0;
    border-radius: 8px;

    background:
        transparent;

    color:
        var(--scrubbers-teal);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.password-toggle:hover {
    background:
        var(--scrubbers-light-blue);
}

.password-toggle:focus-visible {
    outline:
        2px solid
        var(--scrubbers-accent);

    outline-offset: 1px;
}


/* ---------------------------------------------------------
   Authentication Alert
   --------------------------------------------------------- */

.login-card .alert {
    margin:
        0 0
        22px;

    padding:
        12px 14px;

    border-radius:
        var(--radius-control);

    font-size: 13px;
    line-height: 1.5;
}

.login-card .alert-error {
    color: #A62D2D;

    border:
        1px solid
        #F2CACA;

    background:
        var(--error-soft);
}


/* ---------------------------------------------------------
   Primary Login CTA
   --------------------------------------------------------- */

.login-submit {
    position: relative;

    width: 100%;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 4px;

    padding:
        0 20px;

    border: 0;

    border-radius: 12px;

    background:
        var(--gradient-primary);

    color:
        #FFFFFF;

    font-size: 16px;
    font-weight: 600;

    box-shadow:
        0 5px 14px
        rgba(11,114,133,.15);

    cursor: pointer;

    transition:
        transform
        var(--motion-standard)
        ease,
        filter
        var(--motion-standard)
        ease,
        box-shadow
        var(--motion-standard)
        ease;
}

.login-submit:hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.035);

    box-shadow:
        0 8px 20px
        rgba(11,114,133,.20);
}

.login-submit:active {
    transform:
        translateY(0);

    box-shadow:
        0 3px 8px
        rgba(11,114,133,.16);
}

.login-submit-arrow {
    display: inline-block;

    transition:
        transform
        var(--motion-standard)
        ease;
}

.login-submit:hover
.login-submit-arrow {
    transform:
        translateX(3px);
}


/* ---------------------------------------------------------
   Login Security
   --------------------------------------------------------- */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 22px;

    color:
        var(--text-muted);

    font-size: 11px;
}

.login-security-icon {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background:
        var(--scrubbers-light-blue);

    color:
        var(--scrubbers-teal);

    font-size: 11px;
}

.login-footer {
    margin-top: 24px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border-soft);

    color:
        var(--text-muted);

    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}


/* ---------------------------------------------------------
   Authentication Responsive
   --------------------------------------------------------- */

@media (max-width: 1040px) {

    .auth-shell {
        grid-template-columns:
            minmax(420px, .9fr)
            minmax(440px, 1.1fr);
    }

    .auth-brand-panel {
        padding:
            42px
            40px
            34px;
    }

    .auth-brand-content h1 {
        font-size:
            clamp(38px, 4.5vw, 50px);
    }
}


@media (max-width: 860px) {

    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;

        padding:
            32px
            20px;
    }

    .login-card {
        padding:
            30px
            28px;
    }
}


@media (max-width: 520px) {

    .auth-form-panel {
        align-items: stretch;

        padding:
            0;
    }

    .login-card {
        width: 100%;
        min-height: 100vh;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding:
            32px
            22px;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .login-heading h1 {
        font-size: 28px;
    }
}


/* ==================================================
   SCRUBBERS OS — ADMIN APPLICATION
   ================================================== */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    background: #f5f8f9;
}


/* SIDEBAR */

.sidebar {
    position: sticky;
    top: 0;

    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 24px 16px 18px;

    color: rgba(255, 255, 255, 0.78);

    background: var(--scrubbers-navy);
}


.sidebar-brand {
    display: flex;
    align-items: center;

    min-height: 72px;

    padding: 0 10px 22px;

    text-decoration: none;
}


.sidebar-brand-logo {
    display: block;

    width: 100%;
    max-width: 168px;
    height: auto;
}


.sidebar-nav {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
}


.sidebar-nav::-webkit-scrollbar {
    display: none;
}


.nav-section {
    margin:
        22px 10px
        8px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.nav-item {
    display: flex;
    align-items: center;

    min-height: 42px;

    margin-bottom: 3px;

    padding: 0 12px;

    color: rgba(255, 255, 255, 0.72);

    border-radius: var(--radius-control);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        color var(--motion-fast) ease,
        background var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}


.nav-item:hover {
    color: var(--scrubbers-white);

    background: rgba(255, 255, 255, 0.06);
}


.nav-item.active {
    color: var(--scrubbers-white);

    background:
        rgba(20, 184, 166, 0.14);

    box-shadow:
        inset 3px 0 0
        var(--scrubbers-accent);
}

.sidebar-user {
    margin-top: 20px;

    padding:
        18px 12px
        0;

    border-top:
        1px solid
        rgba(255,255,255,0.08);
}

.user-name {
    color: white;

    font-size: 14px;
    font-weight: 700;
}

.user-role {
    margin-top: 3px;

    color: #78909a;

    font-size: 11px;
}

.sidebar-logout {
    margin-top: 13px;

    padding: 0;

    color: #9eb0b7;
    background: transparent;

    border: 0;

    cursor: pointer;

    font-size: 12px;
}

.sidebar-logout:hover {
    color: white;
}


/* MAIN CONTENT */

.main-content {
    min-width: 0;

    padding: 38px 42px 60px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.topbar h1 {
    margin:
        5px 0
        0;

    color: #0b1320;

    font-size: 34px;
    line-height: 1.1;

    letter-spacing: -1.2px;
}

.page-description {
    max-width: 700px;

    margin:
        10px 0
        0;

    color: #667085;

    line-height: 1.55;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-button.compact,
.secondary-button {
    width: auto;

    padding:
        10px 15px;
}

.secondary-button {
    color: #344054;
    background: white;

    border:
        1px solid
        #d8e2e5;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}


/* CONTENT CARDS */

.content-card,
.dashboard-card {
    background: white;

    border:
        1px solid
        #e0e8ea;

    border-radius: 16px;

    box-shadow:
        0 5px 18px
        rgba(11,19,32,0.035);
}



/*
 * Content Card — Section Variant
 * Used for standalone page sections that require
 * consistent internal spacing and separation.
 */
.content-card.section-card {
    padding: 24px;
    margin-bottom: 28px;
}

.content-card.section-card:last-child {
    margin-bottom: 0;
}

.content-card.section-card > h2:first-child,
.content-card.section-card > h3:first-child {
    margin-top: 0;
}

.content-card.section-card > h2 {
    margin-bottom: 6px;
}

.content-card.section-card > h2 + p {
    margin-top: 0;
    margin-bottom: 20px;
}

/* FILTERS */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 18px;

    border-bottom:
        1px solid
        #edf1f2;
}

.filter-search {
    flex: 1;

    min-width: 250px;
}

.filter-bar input,
.filter-bar select {
    min-height: 42px;

    padding:
        9px 12px;

    color: #0b1320;
    background: white;

    border:
        1px solid
        #d9e3e6;

    border-radius: 9px;

    outline: none;
}

.filter-bar input {
    width: 100%;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #0b7285;

    box-shadow:
        0 0 0 3px
        rgba(11,114,133,0.08);
}

.text-button {
    padding: 8px;

    color: #0b7285;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


/* TABLE */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th {
    padding:
        13px 18px;

    color: #7a8990;
    background: #fafcfc;

    border-bottom:
        1px solid
        #e9eff1;

    text-align: left;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.data-table td {
    padding:
        16px 18px;

    border-bottom:
        1px solid
        #edf1f2;

    color: #344054;

    font-size: 14px;

    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfdfd;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: #0b7285;
    background:
        rgba(20,184,166,0.10);

    border-radius: 10px;

    font-weight: 800;
}

.table-primary-link {
    color: #0b1320;

    text-decoration: none;

    font-weight: 750;
}

.table-primary-link:hover {
    color: #0b7285;
}

.table-secondary {
    margin-top: 3px;

    color: #87949a;

    font-size: 12px;
}

.type-label {
    text-transform: capitalize;
}

.status-badge {
    display: inline-flex;

    padding:
        5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    text-transform: capitalize;
}

.status-active {
    color: #087a65;
    background: #e9f8f4;
}

.status-lead {
    color: #8a6500;
    background: #fff8dc;
}

.status-inactive {
    color: #667085;
    background: #f2f4f7;
}

.status-archived {
    color: #667085;
    background: #eceff1;
}

.table-actions {
    text-align: right;
}

.table-action-link {
    color: #0b7285;

    text-decoration: none;

    font-weight: 700;
}


/* EMPTY STATES */

.large-empty {
    min-height: 350px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;
}

.empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    color: #0b7285;
    background: #e9f7f6;

    border-radius: 14px;

    font-size: 25px;
}

.large-empty strong {
    font-size: 17px;
}

.large-empty p {
    max-width: 420px;

    margin:
        8px 0
        18px;

    color: #7a8990;

    line-height: 1.5;
}


/* DASHBOARD */

.welcome-panel {
    margin-bottom: 22px;
}

.welcome-panel h2 {
    margin: 0;

    font-size: 22px;
}

.welcome-panel p {
    margin:
        5px 0
        0;

    color: #748188;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}

.stat-card {
    padding: 20px;

    background: white;

    border:
        1px solid
        #e0e8ea;

    border-radius: 14px;
}

.stat-label {
    color: #77868c;

    font-size: 12px;
    font-weight: 700;
}

.stat-value {
    margin:
        10px 0
        4px;

    color: #0b1320;

    font-size: 32px;
    font-weight: 800;
}

.stat-meta {
    color: #95a1a6;

    font-size: 11px;
}

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: #0b7285;
    background: rgba(11, 114, 133, 0.08);

    border-radius: 11px;
}

.stat-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 0.8fr);

    gap: 16px;
}

.dashboard-card {
    padding: 20px;
}

.card-heading h3 {
    margin:
        5px 0
        18px;
}

.schedule-row {
    display: grid;

    grid-template-columns:
        75px
        minmax(0, 1fr)
        auto;

    gap: 15px;

    align-items: center;

    padding:
        14px 0;

    border-bottom:
        1px solid
        #edf1f2;
}

.schedule-row:last-child {
    border-bottom: 0;
}

.schedule-time {
    font-weight: 800;
}

.schedule-main {
    display: grid;
    gap: 3px;
}

.schedule-main span {
    color: #819096;

    font-size: 12px;
}

.status-pill {
    padding:
        5px 9px;

    color: #0b7285;
    background:
        rgba(20,184,166,0.09);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    text-transform: capitalize;
}

.attention-list {
    display: grid;
    gap: 10px;
}

.attention-item {
    padding: 13px;

    display: grid;
    gap: 4px;

    border:
        1px solid
        #e7edef;

    border-radius: 10px;
}

.attention-item span {
    color: #87949a;

    font-size: 12px;
}


/* ACCESSIBILITY */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;

    border: 0;
}


/* ADMIN RESPONSIVE */

@media (max-width: 1050px) {

    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .main-content {
        padding:
            30px 26px
            50px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;

        width: 100%;
        height: auto;
    }

    .sidebar-nav {
        display: none;
    }

    .sidebar-user {
        display: none;
    }

    .main-content {
        padding:
            24px 16px
            50px;
    }

    .topbar {
        display: grid;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-search {
        min-width: 0;
    }

}


/* CUSTOMER ONBOARDING */

.back-link {
    display: inline-block;

    margin-bottom: 18px;

    color: #73848b;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.back-link:hover {
    color: #0b7285;
}

.onboarding-form {
    display: grid;
    gap: 18px;

    max-width: 1100px;
}

.form-section {
    padding: 24px;

    background: white;

    border: 1px solid #e0e8ea;
    border-radius: 16px;

    box-shadow:
        0 5px 18px
        rgba(11,19,32,0.03);
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
}

.form-section-heading h2 {
    margin: 0;

    font-size: 18px;
}

.form-section-heading p {
    margin: 5px 0 0;

    color: #7b8b91;

    font-size: 13px;
    line-height: 1.5;
}

.step-number {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: #0b7285;
    background: #e9f7f6;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two-column {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group textarea,
.form-group select {
    width: 100%;

    padding: 13px 14px;

    color: #0b1320;
    background: white;

    border: 1px solid #dce5e8;
    border-radius: 11px;

    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
    border-color: #0b7285;

    box-shadow:
        0 0 0 4px
        rgba(11,114,133,0.08);
}

.form-group small {
    color: #87969c;

    font-size: 11px;
    line-height: 1.45;
}

.preference-panel {
    margin-top: 22px;

    padding: 18px;

    display: grid;
    gap: 16px;

    background: #f8fbfb;

    border: 1px solid #e5edef;
    border-radius: 12px;
}

.preference-panel p {
    margin: 4px 0 0;

    color: #819097;

    font-size: 12px;
}

.checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 11px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #45545a;

    font-size: 13px;
}

.checkbox-grid input {
    width: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 4px 0 30px;
}

@media (max-width: 760px) {

    .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

}

/* CUSTOMER PROFILE */

.customer-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 26px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 17px;
}

.profile-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: #0b7285;
    background: #e7f6f4;

    border-radius: 15px;

    font-size: 23px;
    font-weight: 800;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-title-row h1 {
    margin: 0;

    font-size: 30px;
    letter-spacing: -1px;
}

.profile-meta {
    display: flex;
    gap: 8px;

    margin-top: 6px;

    color: #819097;

    font-size: 12px;

    text-transform: capitalize;
}


/* PROFILE NAVIGATION */

.profile-tabs {
    display: flex;
    gap: 3px;

    margin-bottom: 20px;

    overflow-x: auto;

    border-bottom: 1px solid #dde6e8;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 11px 13px;

    color: #738188;

    border-bottom: 2px solid transparent;

    text-decoration: none;

    white-space: nowrap;

    font-size: 12px;
    font-weight: 700;
}

.profile-tab:hover {
    color: #0b7285;
}

.profile-tab.active {
    color: #0b7285;
    border-bottom-color: #0b7285;
}

.profile-tab span {
    padding: 2px 6px;

    background: #edf3f4;

    border-radius: 999px;

    font-size: 10px;
}


/* PROFILE LAYOUT */

.profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, 0.65fr);

    gap: 18px;
}

.profile-main-column,
.profile-side-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.profile-card {
    padding: 21px;

    background: white;

    border: 1px solid #e0e8ea;
    border-radius: 15px;

    box-shadow:
        0 4px 16px
        rgba(11,19,32,0.025);
}

.profile-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 19px;
}

.profile-card-heading h2 {
    margin: 4px 0 0;

    font-size: 17px;
}


/* CONTACT DETAILS */

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.detail-item {
    display: grid;
    gap: 4px;
}

.detail-item span,
.side-detail-list span {
    color: #87959b;

    font-size: 11px;
}

.detail-item strong {
    color: #26343a;

    font-size: 13px;
}


/* PROPERTIES */

.property-list {
    display: grid;
    gap: 10px;
}

.property-card {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 13px;

    padding: 15px;

    color: inherit;

    border: 1px solid #e6edef;
    border-radius: 12px;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.property-card:hover {
    border-color: #b9d9dc;

    box-shadow:
        0 5px 16px
        rgba(11,114,133,0.06);
}

.property-card-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0b7285;
    background: #eaf7f6;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.property-card-content {
    display: grid;
    gap: 4px;
}

.property-card-content strong {
    font-size: 13px;
}

.property-card-content > span {
    color: #7e8d93;

    font-size: 11px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    color: #87959b;

    font-size: 10px;
}

.property-meta span + span::before {
    content: "•";

    margin-right: 8px;
}

.property-arrow {
    color: #8ca0a6;
}


/* ACTIVITY */

.activity-list {
    display: grid;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #edf1f2;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row > div {
    display: grid;
    gap: 4px;
}

.activity-row strong {
    font-size: 13px;
}

.activity-row span {
    color: #849298;

    font-size: 11px;
}


/* SIDE COLUMN */

.side-detail-list {
    display: grid;
}

.side-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid #edf1f2;
}

.side-detail-list > div:last-child {
    border-bottom: 0;
}

.side-detail-list strong {
    text-align: right;

    font-size: 12px;
}

.side-list {
    display: grid;
}

.side-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px solid #edf1f2;
}

.side-list-row:last-child {
    border-bottom: 0;
}

.side-list-row > div {
    display: grid;
    gap: 3px;
}

.side-list-row strong {
    font-size: 12px;
}

.side-list-row span {
    color: #849298;

    font-size: 10px;
}

.quick-actions {
    display: grid;
    gap: 7px;
}

.quick-actions a {
    padding: 11px 12px;

    color: #0b7285;
    background: #f5faf9;

    border: 1px solid #e4eeed;
    border-radius: 9px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.quick-actions a:hover {
    background: #edf8f6;
}

.compact-empty {
    padding: 10px 0;

    color: #87959b;

    font-size: 12px;
}

.capitalize {
    text-transform: capitalize;
}


@media (max-width: 950px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .customer-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

}.schedule-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.schedule-row-link:hover {
    background: #f8fafb;
}
.activity-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.activity-row-link:hover {
    background: #f8fafb;
}

/* ============================================================
   SHARED APP HEADER
   ============================================================ */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e8eeee;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-header-inner {
    max-width: 1400px;
    min-height: 68px;

    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: #0b1320;

    text-decoration: none;

    flex-shrink: 0;
}

.app-brand-logo {
    display: block;

    width: 150px;
    max-width: 100%;
    height: auto;
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;

    min-width: 0;
}

.app-nav a {
    padding: 9px 11px;

    color: #56656b;

    border-radius: 9px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.app-nav a:hover {
    color: #0b7285;
    background: #f1f8f7;
}


/* ============================================================
   SHARED APP HEADER — RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .app-header-inner {
        padding: 0 20px;
    }

    .app-brand-copy {
        display: none;
    }

    .app-nav {
        overflow-x: auto;
        justify-content: flex-start;

        padding: 8px 0;

        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }
}


@media (max-width: 700px) {

    .app-header-inner {
        min-height: 60px;

        padding: 0 14px;

        gap: 14px;
    }

    .app-brand-mark {
        width: 34px;
        height: 34px;

        border-radius: 10px;

        font-size: 15px;
    }

    .app-nav a {
        padding: 8px 9px;

        font-size: 11px;
    }
}

/* ============================================================
   SHARED PAGE HEADER
   ============================================================ */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin: 26px 0 28px;
}

.page-header-main {
    min-width: 0;
}

.page-header-main .back-link {
    display: inline-block;
    margin-bottom: 14px;
}

.page-header h1 {
    margin: 6px 0 8px;
}

.page-header-subtitle {
    margin: 0;

    color: #667085;

    font-size: 13px;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}


@media (max-width: 760px) {

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   GLOBAL APP LAYOUT REFINEMENT
   ========================================================= */

:root {
    --app-bg: #eef5f6;
    --card-bg: #ffffff;
    --card-border: #e1e9eb;

    --card-shadow:
        0 8px 24px rgba(11, 19, 32, 0.055),
        0 2px 6px rgba(11, 19, 32, 0.025);

    --card-radius: 18px;
    --section-gap: 28px;
    --content-width: 1180px;
}

body {
    background: var(--app-bg);
}


/* Shared page container */
.page-shell {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 24px 56px;
}


/* Shared card styling */
.card,
.dashboard-card,
.form-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


/* More generous card padding */
.dashboard-card {
    padding: 24px;
}

.form-section {
    padding: 24px;
    margin-bottom: 28px;
}

.card {
    padding: 24px;
    margin-bottom: 28px;
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;

    margin: 30px 0 36px;
}

.page-header-main {
    display: grid;
    gap: 7px;

    min-width: 0;
}

.page-header-main .back-link {
    margin-bottom: 8px;
}

.page-header h1 {
    margin: 2px 0 0;

    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.page-header-subtitle {
    margin: 2px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding-top: 28px;
}
.page-header-actions .secondary-button {
    min-height: 40px;

    padding: 0 14px;

    background: rgba(255, 255, 255, 0.82);

    border-color: #d9e5e7;

    border-radius: 10px;

    font-size: 12px;
}

.page-header-actions .secondary-button:hover {
    background: #ffffff;

    border-color: #bfd3d7;

    box-shadow:
        0 4px 12px
        rgba(11, 19, 32, 0.04);
}

.page-header-actions .status {
    min-height: 40px;

    padding: 0 14px;
}

/* Better section headings */
.card-header,
.form-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.form-section-heading {
    margin-bottom: 22px;
}

.form-section-heading h2,
.card-header h2,
.card-heading h3 {
    margin: 4px 0 6px;
}

.form-section-heading p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}


/* Step badge */
.step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0b7285;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}


/* Better form grids */
.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}


/* Inputs */
input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #d7e3e7;
    border-radius: 12px;
    background: #fff;
    color: #0b1320;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.10);
}


/* Labels and helper text */
label {
    font-weight: 700;
    color: #22313a;
}

small {
    display: block;
    color: #667085;
    line-height: 1.45;
}


/* Buttons */
.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
}

.primary-button {
    background: #0b7285;
    color: #fff;
    border: 1px solid #0b7285;
}

.primary-button:hover {
    background: #095c6b;
}

.secondary-button {
    background: #fff;
    color: #22313a;
    border: 1px solid #d7e3e7;
}

.secondary-button:hover {
    background: #f8fbfc;
}


/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}


/* Detail items */
.detail-item {
    display: grid;
    gap: 6px;
}

.detail-item span {
    color: #7a8b93;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-item strong {
    font-size: 15px;
    color: #0b1320;
}


/* Status chip refinement */
.status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-active,
.status-confirmed {
    color: #0b7a5c;
    background: #eaf8f2;
}

.status-draft,
.status-provisional {
    color: #8a6b00;
    background: #fff6d8;
}

.status-cancelled,
.status-ended {
    color: #a33b3b;
    background: #fdecec;
}


/* Responsive */
@media (max-width: 900px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .page-shell {
        padding: 24px 18px 48px;
    }
}

/* ============================================================
   RECURRING SERVICE DETAIL
   ============================================================ */
.service-plan-card {
    margin-bottom: 20px;
}

.service-plan-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
}

.service-plan-visits {
    display: grid;
    gap: 12px;
}

.service-plan-visit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 17px 18px;

    color: inherit;
    background: #f9fbfc;

    border: 1px solid #e4ecef;
    border-radius: 13px;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.service-plan-visit:hover {
    transform: translateY(-1px);

    background: #ffffff;
    border-color: #cfdee2;

    box-shadow:
        0 7px 18px
        rgba(11,19,32,0.05);
}

.service-plan-visit-main {
    display: grid;
    gap: 5px;
}

.service-plan-visit-main strong {
    font-size: 14px;
}

.service-plan-visit-main span {
    color: #819096;
    font-size: 12px;
}

.service-plan-visit-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visit-arrow {
    color: #8b9aa0;

    font-size: 22px;
    line-height: 1;
}

.card-description {
    margin: 6px 0 0;

    color: #718087;

    font-size: 13px;
}

.service-plan-action-card form {
    display: flex;
}

.service-plan-action-card .primary-button {
    width: auto;
    min-width: 190px;
}


@media (max-width: 760px) {

    .service-plan-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-plan-visit {
        align-items: flex-start;
    }

}

/* ============================================================
   BOOKING DETAIL
   ============================================================ */

.booking-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, 0.75fr);

    gap: 24px;
}

.column {
    display: grid;
    align-content: start;

    gap: 24px;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px 28px;
}

.property-link,
.account-link {
    color: #0b7285;

    text-decoration: none;
    font-weight: 700;
}

.property-link:hover,
.account-link:hover {
    text-decoration: underline;
}

.notes-block {
    padding: 16px;

    color: #344054;
    background: #f7fafb;

    border: 1px solid #e5edef;
    border-radius: 12px;

    font-size: 14px;
    line-height: 1.55;
}

.side-details {
    display: grid;
}

.side-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 0;

    border-bottom: 1px solid #edf1f2;
}

.side-details > div:last-child {
    border-bottom: 0;
}

.side-details span {
    color: #667085;

    font-size: 12px;
}

.side-details strong {
    color: #101828;

    text-align: right;
    font-size: 13px;
}

.assignment-list,
.history-list {
    display: grid;
}

.assignment-row,
.history-row {
    padding: 14px 0;

    border-bottom: 1px solid #edf1f2;
}

.assignment-row:last-child,
.history-row:last-child {
    border-bottom: 0;
}

.assignment-top,
.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;
}

.assignment-name {
    color: #101828;

    font-weight: 700;
}

.subtext {
    display: block;

    margin-top: 4px;

    color: #667085;

    font-size: 12px;
}

.empty-state {
    padding: 8px 0;

    color: #667085;

    font-size: 13px;
}

.warning-box {
    margin-top: 16px;
    padding: 14px 16px;

    color: #9a3412;
    background: #fff6ed;

    border: 1px solid #fed7aa;
    border-radius: 12px;

    font-size: 13px;
}

.quick-actions {
    display: grid;

    gap: 9px;
}

.quick-actions span {
    display: block;

    padding: 12px 13px;

    color: #98a2b3;
    background: #f8fafb;

    border: 1px solid #e4eaec;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    cursor: not-allowed;
}

@media (max-width: 950px) {

    .booking-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .detail-grid {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   BOOKINGS LIST
   ============================================================ */

.bookings-list-page .filters-card {
    margin-bottom: 28px;
    padding: 24px;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


.bookings-list-page .filters-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 2fr)
        minmax(160px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        auto;

    align-items: end;
    gap: 14px;
}


.bookings-list-page .filter-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}


.bookings-list-page .table-card {
    overflow: hidden;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


.bookings-list-page .table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 20px 24px;

    border-bottom: 1px solid #e7edef;
}


.bookings-list-page .table-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.01em;
}


.bookings-list-page .booking-count {
    color: #718087;

    font-size: 13px;
}


.bookings-list-page .table-scroll {
    overflow-x: auto;
}


.bookings-list-page table {
    width: 100%;
    min-width: 1000px;

    border-collapse: collapse;
}


.bookings-list-page th {
    padding: 12px 16px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.bookings-list-page td {
    padding: 16px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}


.bookings-list-page tbody tr:last-child td {
    border-bottom: 0;
}


.bookings-list-page tbody tr {
    transition:
        background 0.15s ease;
}


.bookings-list-page tbody tr:hover {
    background: #f9fbfc;
}


.bookings-list-page .customer-name,
.bookings-list-page .service-name {
    color: #101828;

    font-weight: 700;
}


.bookings-list-page .subtext {
    display: block;

    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}


.bookings-list-page .view-link {
    color: #0b7285;

    text-decoration: none;
    font-weight: 700;
}


.bookings-list-page .view-link:hover {
    text-decoration: underline;
}


.bookings-list-page .empty-state {
    padding: 64px 30px;

    text-align: center;
}


.bookings-list-page .empty-state h3 {
    margin: 0 0 8px;

    color: #101828;
}


.bookings-list-page .empty-state p {
    margin: 0;

    color: #667085;
}


@media (max-width: 1000px) {

    .bookings-list-page .filters-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .bookings-list-page .filter-actions {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .bookings-list-page .filters-grid {
        grid-template-columns: 1fr;
    }


    .bookings-list-page .filter-actions {
        grid-column: auto;

        flex-wrap: wrap;
    }


    .bookings-list-page .table-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

}

/* ============================================================
   CUSTOMERS LIST
   ============================================================ */

.customers-list-page .content-card {
    padding: 0;

    overflow: hidden;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


.customers-list-page .filter-bar {
    display: grid;

    grid-template-columns:
        minmax(260px, 2fr)
        minmax(180px, 1fr)
        minmax(160px, 1fr)
        auto
        auto;

    align-items: center;
    gap: 12px;

    padding: 22px 24px;

    background: #ffffff;

    border-bottom: 1px solid #e7edef;
}


.customers-list-page .filter-search {
    min-width: 0;
}


.customers-list-page .filter-bar input,
.customers-list-page .filter-bar select {
    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 10px;
}


.customers-list-page .filter-bar input:focus,
.customers-list-page .filter-bar select:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}


.customers-list-page .filter-bar .secondary-button {
    min-height: 44px;
}


.customers-list-page .filter-bar .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 10px;

    color: #667085;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.customers-list-page .filter-bar .text-button:hover {
    color: #0b7285;
}


.customers-list-page .table-wrapper {
    overflow-x: auto;
}


.customers-list-page .data-table {
    width: 100%;
    min-width: 960px;

    border-collapse: collapse;
}


.customers-list-page .data-table th {
    padding: 12px 18px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.customers-list-page .data-table td {
    padding: 16px 18px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}


.customers-list-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}


.customers-list-page .data-table tbody tr {
    transition:
        background 0.15s ease;
}


.customers-list-page .data-table tbody tr:hover {
    background: #f9fbfc;
}


.customers-list-page .customer-cell {
    display: flex;
    align-items: center;

    gap: 12px;
}


.customers-list-page .customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;
}


.customers-list-page .table-primary-link {
    color: #101828;

    text-decoration: none;
    font-weight: 700;
}


.customers-list-page .table-primary-link:hover {
    color: #0b7285;
}


.customers-list-page .table-secondary {
    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}


.customers-list-page .status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    text-transform: capitalize;
}


.customers-list-page .status-active {
    color: #027a48;
    background: #ecfdf3;
}


.customers-list-page .status-lead {
    color: #175cd3;
    background: #eff8ff;
}


.customers-list-page .status-inactive {
    color: #667085;
    background: #f2f4f7;
}


.customers-list-page .status-archived {
    color: #475467;
    background: #eaecf0;
}


.customers-list-page .table-actions {
    text-align: right;
}


.customers-list-page .table-action-link {
    color: #0b7285;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.customers-list-page .table-action-link:hover {
    text-decoration: underline;
}


.customers-list-page .large-empty {
    padding: 72px 30px;

    text-align: center;
}


.customers-list-page .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 14px;

    font-size: 24px;
}


.customers-list-page .large-empty strong {
    display: block;

    color: #101828;

    font-size: 16px;
}


.customers-list-page .large-empty p {
    margin: 8px 0 20px;

    color: #667085;

    font-size: 13px;
}


@media (max-width: 1000px) {

    .customers-list-page .filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .customers-list-page .filter-search {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .customers-list-page .filter-bar {
        grid-template-columns: 1fr;

        padding: 18px;
    }


    .customers-list-page .filter-search {
        grid-column: auto;
    }

}

/* ============================================================
   CUSTOMER DETAIL
   ============================================================ */

.customer-detail-page .profile-tabs {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0 0 28px;
    padding: 6px;

    overflow-x: auto;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow:
        0 4px 14px rgba(11, 19, 32, 0.035);
}


.customer-detail-page .profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 38px;

    padding: 0 13px;

    color: #667085;

    border-radius: 9px;

    text-decoration: none;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 700;
}


.customer-detail-page .profile-tab:hover {
    color: #0b7285;
    background: #f1f7f8;
}


.customer-detail-page .profile-tab.active {
    color: #0b7285;
    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(11, 19, 32, 0.06);
}

.customer-detail-page .profile-tab-disabled {
    color: #a0aab0;
    background: transparent;

    cursor: default;
    opacity: 0.7;
}

.customer-detail-page .profile-tab-disabled:hover {
    color: #a0aab0;
    background: transparent;
}

.customer-detail-page .profile-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    color: #667085;
    background: #eef3f4;

    border-radius: 999px;

    font-size: 10px;
}


.customer-detail-page .profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.65fr);

    gap: 28px;
}


.customer-detail-page .profile-main-column,
.customer-detail-page .profile-side-column {
    display: grid;
    align-content: start;

    gap: 28px;
}


.customer-detail-page .profile-card {
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}


.customer-detail-page .profile-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 22px;
}


.customer-detail-page .profile-card-heading h2 {
    margin: 3px 0 0;

    color: #101828;

    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}


.customer-detail-page .detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 28px;
}


.customer-detail-page .detail-item {
    display: grid;

    gap: 5px;
}


.customer-detail-page .detail-item span {
    color: #718087;

    font-size: 12px;
}


.customer-detail-page .detail-item strong {
    color: #101828;

    font-size: 14px;
    font-weight: 700;
}


.customer-detail-page .property-list {
    display: grid;

    gap: 12px;
}


.customer-detail-page .property-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 16px;

    color: inherit;
    background: #f9fbfc;

    border: 1px solid #e4ecee;
    border-radius: 13px;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.customer-detail-page .property-card:hover {
    background: #ffffff;
    border-color: #bfd7db;

    transform: translateY(-1px);
}


.customer-detail-page .property-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d4e9ec;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 800;
}


.customer-detail-page .property-card-content {
    min-width: 0;
}


.customer-detail-page .property-card-content strong {
    display: block;

    color: #101828;

    font-size: 14px;
}


.customer-detail-page .property-card-content > span {
    display: block;

    margin-top: 3px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}


.customer-detail-page .property-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 10px;

    margin-top: 7px;
}


.customer-detail-page .property-meta span {
    color: #667085;

    font-size: 11px;
}


.customer-detail-page .side-list {
    display: grid;
}


.customer-detail-page .side-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 14px;

    padding: 13px 0;

    border-bottom: 1px solid #edf1f2;
}


.customer-detail-page .side-list-row:last-child {
    border-bottom: 0;
}


.customer-detail-page .side-list-row > div {
    min-width: 0;
}


.customer-detail-page .side-list-row strong {
    display: block;

    color: #101828;

    font-size: 13px;
}


.customer-detail-page .side-list-row span {
    color: #718087;

    font-size: 12px;
}


.customer-detail-page .quick-actions {
    display: grid;

    gap: 9px;
}


.customer-detail-page .quick-actions a {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 0 13px;

    color: #0b7285;
    background: #f7fafb;

    border: 1px solid #e1eaec;
    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.customer-detail-page .quick-actions a:hover {
    background: #ffffff;
    border-color: #bfd7db;
}

.customer-detail-page .quick-action-disabled {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 0 13px;

    color: #9aa6ab;
    background: #f7fafb;

    border: 1px solid #e7edef;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    cursor: default;
    opacity: 0.7;
}

.customer-detail-page .empty-state {
    padding: 10px 0;

    color: #718087;

    font-size: 13px;
}

.customer-detail-page .booking-group {
    margin-top: 24px;
}

.customer-detail-page .booking-group:first-of-type {
    margin-top: 0;
}

.customer-detail-page .bookings-card-heading {
    align-items: flex-start;
}

.customer-detail-page .bookings-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.customer-detail-page .booking-summary {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #f8fbfb;
}

.customer-detail-page .booking-summary-item {
    min-width: 82px;
    padding: 9px 13px;
    text-align: center;
    border-right: 1px solid #e1e9eb;
}

.customer-detail-page .booking-summary-item:last-child {
    border-right: 0;
}

.customer-detail-page .booking-summary-item span {
    display: block;
    margin-bottom: 2px;
    color: #748187;
    font-size: 11px;
    font-weight: 600;
}

.customer-detail-page .booking-summary-item strong {
    display: block;
    color: #0b1320;
    font-size: 17px;
    font-weight: 750;
}

.customer-detail-page .profile-card-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-detail-page .profile-card-subheading h3 {
    margin: 0;
    color: #0b1320;
    font-size: 15px;
    font-weight: 700;
}

.customer-detail-page .booking-accordion {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #ffffff;
}

.customer-detail-page .booking-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.customer-detail-page .booking-accordion summary::-webkit-details-marker {
    display: none;
}

.customer-detail-page .booking-accordion summary:hover {
    background: #f8fbfb;
}

.customer-detail-page .booking-accordion summary > div:first-child {
    min-width: 0;
}

.customer-detail-page .booking-accordion summary strong {
    display: block;
    color: #0b1320;
    font-size: 14px;
    font-weight: 700;
}

.customer-detail-page .booking-accordion summary > div:first-child > span {
    display: block;
    margin-top: 3px;
    color: #748187;
    font-size: 12px;
}

.customer-detail-page .booking-accordion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.customer-detail-page .booking-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef5f6;
    color: #0b7285;
    font-size: 12px;
    font-weight: 700;
}

.customer-detail-page .booking-accordion-chevron {
    color: #7e8b90;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.customer-detail-page .booking-accordion[open]
    .booking-accordion-chevron {
    transform: rotate(90deg);
}

.customer-detail-page .booking-accordion-content {
    padding: 0 16px 16px;
    border-top: 1px solid #edf2f3;
}

.customer-detail-page .booking-accordion-content .activity-list {
    margin-top: 12px;
}

.customer-detail-page .customer-note-row {
    align-items: flex-start;
}

.customer-detail-page .customer-note-row > div {
    min-width: 0;
    flex: 1;
}

.customer-detail-page .customer-note-content {
    margin-top: 7px;
    color: #425157;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.customer-detail-page .customer-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 10px;
}

.customer-detail-page .customer-note-meta span {
    color: #7b888d;
    font-size: 11px;
    font-weight: 500;
}

.customer-detail-page .customer-note-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 12px;
    color: #b2bec2;
}

.customer-detail-page .customer-note-form-panel {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #f8fbfb;
}

.customer-detail-page .customer-note-form-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    color: #0b7285;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
}

.customer-detail-page
.customer-note-form-panel > summary::-webkit-details-marker {
    display: none;
}

.customer-detail-page .customer-note-form-panel > summary:hover {
    background: #f2f8f8;
}

.customer-detail-page .customer-note-form-chevron {
    color: #7e8b90;
    font-size: 23px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.customer-detail-page
.customer-note-form-panel[open]
.customer-note-form-chevron {
    transform: rotate(90deg);
}

.customer-detail-page .customer-note-form {
    padding: 18px 16px 16px;
    border-top: 1px solid #e1e9eb;
    background: #ffffff;
}

.customer-detail-page .customer-note-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-detail-page .customer-note-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.customer-detail-page .customer-note-form .form-field label {
    color: #34454b;
    font-size: 12px;
    font-weight: 700;
}

.customer-detail-page .customer-note-form input[type="text"],
.customer-detail-page .customer-note-form select,
.customer-detail-page .customer-note-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e1e3;
    border-radius: 10px;
    background: #ffffff;
    color: #0b1320;
    font: inherit;
    font-size: 13px;
}

.customer-detail-page .customer-note-form input[type="text"],
.customer-detail-page .customer-note-form select {
    min-height: 42px;
    padding: 9px 11px;
}

.customer-detail-page .customer-note-form textarea {
    padding: 11px 12px;
    line-height: 1.5;
    resize: vertical;
}

.customer-detail-page .customer-note-form input:focus,
.customer-detail-page .customer-note-form select:focus,
.customer-detail-page .customer-note-form textarea:focus {
    outline: 2px solid rgba(11, 114, 133, 0.14);
    border-color: #0b7285;
}

.customer-detail-page .customer-note-content-field {
    margin-top: 16px;
}

.customer-detail-page .field-optional {
    margin-left: 4px;
    color: #8b989d;
    font-size: 11px;
    font-weight: 500;
}

.customer-detail-page .customer-note-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.customer-detail-page .customer-note-pin-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526167;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.customer-detail-page .customer-note-pin-option input {
    width: 16px;
    height: 16px;
}

@media (max-width: 1000px) {

    .customer-detail-page .profile-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .customer-detail-page .profile-tabs {
        margin-bottom: 22px;
    }


    .customer-detail-page .detail-grid {
        grid-template-columns: 1fr;
    }

.customer-detail-page .customer-note-form-grid {
    grid-template-columns: 1fr;
}

.customer-detail-page .customer-note-form-footer {
    align-items: flex-start;
    flex-direction: column;
}

    .customer-detail-page .profile-card {
        padding: 20px;
    }


    .customer-detail-page .profile-card-heading {
        flex-direction: column;

        gap: 10px;
    }

}

/* ============================================================
   PROPERTIES LIST
   ============================================================ */

.properties-list-page .content-card {
    padding: 0;
    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}


.properties-list-page .filter-bar {
    display: grid;

    grid-template-columns:
        minmax(280px, 2fr)
        minmax(180px, 1fr)
        minmax(160px, 1fr)
        auto
        auto;

    align-items: center;
    gap: 12px;

    padding: 22px 24px;

    background: #ffffff;

    border-bottom: 1px solid #e7edef;
}


.properties-list-page .filter-search {
    min-width: 0;
}


.properties-list-page .filter-bar input,
.properties-list-page .filter-bar select {
    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 10px;
}


.properties-list-page .filter-bar input:focus,
.properties-list-page .filter-bar select:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}


.properties-list-page .filter-bar .secondary-button {
    min-height: 44px;
}


.properties-list-page .filter-bar .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 10px;

    color: #667085;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.properties-list-page .filter-bar .text-button:hover {
    color: #0b7285;
}


.properties-list-page .table-wrapper {
    overflow-x: auto;
}


.properties-list-page .data-table {
    width: 100%;
    min-width: 1080px;

    border-collapse: collapse;
}


.properties-list-page .data-table th {
    padding: 12px 18px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.properties-list-page .data-table td {
    padding: 16px 18px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}


.properties-list-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}


.properties-list-page .data-table tbody tr {
    transition:
        background 0.15s ease;
}


.properties-list-page .data-table tbody tr:hover {
    background: #f9fbfc;
}


.properties-list-page .customer-cell {
    display: flex;
    align-items: center;

    gap: 12px;
}


.properties-list-page .customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;
}


.properties-list-page .table-primary-link {
    color: #101828;

    text-decoration: none;
    font-weight: 700;
}


.properties-list-page .table-primary-link:hover {
    color: #0b7285;
}


.properties-list-page .table-secondary {
    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}


.properties-list-page .status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}


.properties-list-page .status-active {
    color: #027a48;
    background: #ecfdf3;
}


.properties-list-page .status-inactive {
    color: #667085;
    background: #f2f4f7;
}


.properties-list-page .table-actions {
    text-align: right;
}


.properties-list-page .table-action-link {
    color: #0b7285;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.properties-list-page .table-action-link:hover {
    text-decoration: underline;
}


.properties-list-page .large-empty {
    padding: 72px 30px;

    text-align: center;
}


@media (max-width: 1000px) {

    .properties-list-page .filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .properties-list-page .filter-search {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .properties-list-page .filter-bar {
        grid-template-columns: 1fr;

        padding: 18px;
    }


    .properties-list-page .filter-search {
        grid-column: auto;
    }

}

/* ============================================================
   PROPERTY DETAIL
   ============================================================ */

.property-detail-page .profile-tabs {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0 0 28px;
    padding: 6px;

    overflow-x: auto;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid var(--card-border);
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(11, 19, 32, 0.035);
}


.property-detail-page .profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 38px;

    padding: 0 13px;

    color: #667085;

    border-radius: 9px;

    text-decoration: none;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 700;
}


.property-detail-page .profile-tab:hover {
    color: #0b7285;
    background: #f1f7f8;
}


.property-detail-page .profile-tab.active {
    color: #0b7285;
    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(11, 19, 32, 0.06);
}


.property-detail-page .profile-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    color: #667085;
    background: #eef3f4;

    border-radius: 999px;

    font-size: 10px;
}


.property-detail-page .profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.65fr);

    gap: 28px;
}


.property-detail-page .profile-main-column,
.property-detail-page .profile-side-column {
    display: grid;
    align-content: start;

    gap: 28px;
}


.property-detail-page .profile-card {
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}


.property-detail-page .profile-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 22px;
}


.property-detail-page .profile-card-heading h2 {
    margin: 3px 0 0;

    color: #101828;

    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}


.property-detail-page .detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 28px;
}


.property-detail-page .detail-item {
    display: grid;

    gap: 5px;
}


.property-detail-page .detail-item span {
    color: #718087;

    font-size: 12px;
}


.property-detail-page .detail-item strong {
    color: #101828;

    font-size: 14px;
    font-weight: 700;
}


.property-detail-page .property-information-block {
    padding: 16px;

    background: #f8fbfc;

    border: 1px solid #e4ecee;
    border-radius: 12px;
}


.property-detail-page .information-label {
    display: block;

    margin-bottom: 7px;

    color: #667085;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.property-detail-page .property-information-block p {
    margin: 0;

    color: #344054;

    font-size: 13px;
    line-height: 1.55;
}


.property-detail-page .access-summary {
    display: grid;

    gap: 10px;

    margin-top: 14px;
}


.property-detail-page .access-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 14px;

    padding: 13px 14px;

    background: #f9fbfc;

    border: 1px solid #e5edef;
    border-radius: 11px;
}


.property-detail-page .access-row strong {
    display: block;

    color: #101828;

    font-size: 13px;
}


.property-detail-page .access-row span {
    color: #718087;

    font-size: 12px;
}


.property-detail-page .risk-list,
.property-detail-page .pet-list {
    display: grid;

    gap: 10px;
}


.property-detail-page .risk-row,
.property-detail-page .pet-row {
    padding: 14px 15px;

    background: #f9fbfc;

    border: 1px solid #e5edef;
    border-radius: 12px;
}


.property-detail-page .risk-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 16px;
}


.property-detail-page .risk-main strong,
.property-detail-page .pet-row strong {
    display: block;

    color: #101828;

    font-size: 13px;
}


.property-detail-page .risk-main span,
.property-detail-page .pet-row > div > span {
    display: block;

    margin-top: 3px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}


.property-detail-page .severity-badge {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    text-transform: capitalize;
}


.property-detail-page .severity-low {
    color: #027a48;
    background: #ecfdf3;
}


.property-detail-page .severity-medium {
    color: #b54708;
    background: #fffaeb;
}


.property-detail-page .severity-high,
.property-detail-page .severity-critical {
    color: #b42318;
    background: #fef3f2;
}


.property-detail-page .pet-flags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 10px;
}


.property-detail-page .pet-flags span {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 8px;

    color: #9a3412;
    background: #fff6ed;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}


.property-detail-page .pet-row p {
    margin: 10px 0 0;

    color: #475467;

    font-size: 12px;
    line-height: 1.5;
}


.property-detail-page .activity-list {
    display: grid;
}


.property-detail-page .activity-row-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 14px;

    padding: 13px 0;

    color: inherit;

    border-bottom: 1px solid #edf1f2;

    text-decoration: none;
}


.property-detail-page .activity-row-link:last-child {
    border-bottom: 0;
}


.property-detail-page .activity-row-link:hover strong {
    color: #0b7285;
}


.property-detail-page .activity-row-link strong {
    display: block;

    color: #101828;

    font-size: 13px;
}


.property-detail-page .activity-row-link div > span {
    display: block;

    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}


.property-detail-page .side-list {
    display: grid;
}


.property-detail-page .side-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 14px;

    padding: 13px 0;

    border-bottom: 1px solid #edf1f2;
}


.property-detail-page .side-list-row:last-child {
    border-bottom: 0;
}


.property-detail-page .side-list-row strong {
    display: block;

    color: #101828;

    font-size: 13px;
}


.property-detail-page .side-list-row span {
    color: #718087;

    font-size: 12px;
}


.property-detail-page .quick-actions {
    display: grid;

    gap: 9px;
}


.property-detail-page .quick-actions a {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 0 13px;

    color: #0b7285;
    background: #f7fafb;

    border: 1px solid #e1eaec;
    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.property-detail-page .quick-actions a:hover {
    background: #ffffff;
    border-color: #bfd7db;
}


.property-detail-page .booking-group {
    margin-top: 24px;
}

.property-detail-page .booking-group:first-of-type {
    margin-top: 0;
}

.property-detail-page .bookings-card-heading {
    align-items: flex-start;
}

.property-detail-page .bookings-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.property-detail-page .booking-summary {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #f8fbfb;
}

.property-detail-page .booking-summary-item {
    min-width: 82px;
    padding: 9px 13px;
    text-align: center;
    border-right: 1px solid #e1e9eb;
}

.property-detail-page .booking-summary-item:last-child {
    border-right: 0;
}

.property-detail-page .booking-summary-item span {
    display: block;
    margin-bottom: 2px;
    color: #748187;
    font-size: 11px;
    font-weight: 600;
}

.property-detail-page .booking-summary-item strong {
    display: block;
    color: #0b1320;
    font-size: 17px;
    font-weight: 750;
}

.property-detail-page .profile-card-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.property-detail-page .profile-card-subheading h3 {
    margin: 0;
    color: #0b1320;
    font-size: 15px;
    font-weight: 700;
}

.property-detail-page .booking-accordion {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #e1e9eb;
    border-radius: 12px;
    background: #ffffff;
}

.property-detail-page .booking-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.property-detail-page .booking-accordion summary::-webkit-details-marker {
    display: none;
}

.property-detail-page .booking-accordion summary:hover {
    background: #f8fbfb;
}

.property-detail-page .booking-accordion summary > div:first-child {
    min-width: 0;
}

.property-detail-page .booking-accordion summary strong {
    display: block;
    color: #0b1320;
    font-size: 14px;
    font-weight: 700;
}

.property-detail-page .booking-accordion summary > div:first-child > span {
    display: block;
    margin-top: 3px;
    color: #748187;
    font-size: 12px;
}

.property-detail-page .booking-accordion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.property-detail-page .booking-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef5f6;
    color: #0b7285;
    font-size: 12px;
    font-weight: 700;
}

.property-detail-page .booking-accordion-chevron {
    color: #7e8b90;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.property-detail-page .booking-accordion[open]
    .booking-accordion-chevron {
    transform: rotate(90deg);
}

.property-detail-page .booking-accordion-content {
    padding: 0 16px 16px;
    border-top: 1px solid #edf2f3;
}

.property-detail-page .booking-accordion-content .activity-list {
    margin-top: 12px;
}

@media (max-width: 1000px) {

    .property-detail-page .profile-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .property-detail-page .profile-tabs {
        margin-bottom: 22px;
    }


    .property-detail-page .detail-grid {
        grid-template-columns: 1fr;
    }


    .property-detail-page .profile-card {
        padding: 20px;
    }


    .property-detail-page .profile-card-heading {
        flex-direction: column;

        gap: 10px;
    }


    .property-detail-page .risk-row {
        flex-direction: column;
    }

}

.property-detail-page .profile-tab-disabled {
    color: #a0aab0;
    background: transparent;

    cursor: default;
    opacity: 0.7;
}

.property-detail-page .profile-tab-disabled:hover {
    color: #a0aab0;
    background: transparent;
}

.property-detail-page .quick-action-disabled {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 0 13px;

    color: #9aa6ab;
    background: #f7fafb;

    border: 1px solid #e7edef;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    cursor: default;
    opacity: 0.7;
}

/* ============================================================
   STAFF LIST
   ============================================================ */

.staff-list-page .content-card {
    padding: 0;
    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.staff-list-page .table-wrapper {
    overflow-x: auto;
}

.staff-list-page .data-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
}

.staff-list-page .data-table th {
    padding: 12px 18px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.staff-list-page .data-table td {
    padding: 16px 18px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}

.staff-list-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-list-page .data-table tbody tr {
    transition:
        background 0.15s ease;
}

.staff-list-page .data-table tbody tr:hover {
    background: #f9fbfc;
}

.staff-list-page .customer-cell {
    display: flex;
    align-items: center;

    gap: 12px;
}

.staff-list-page .customer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;
}

.staff-list-page .table-primary-link {
    color: #101828;

    text-decoration: none;
    font-weight: 700;
}

.staff-list-page .table-primary-link:hover {
    color: #0b7285;
}

.staff-list-page .table-secondary {
    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}

.staff-list-page .type-label {
    text-transform: capitalize;

    color: #475467;

    font-size: 13px;
    font-weight: 600;
}

.staff-list-page .status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    text-transform: capitalize;
}

.staff-list-page .status-active {
    color: #027a48;
    background: #ecfdf3;
}

.staff-list-page .status-inactive {
    color: #667085;
    background: #f2f4f7;
}

.staff-list-page .status-suspended,
.staff-list-page .status-left {
    color: #b42318;
    background: #fef3f2;
}

.staff-list-page .large-empty {
    padding: 72px 30px;

    text-align: center;
}

.staff-list-page .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 14px;

    font-size: 24px;
}

.staff-list-page .large-empty strong {
    display: block;

    color: #101828;

    font-size: 16px;
}

.staff-list-page .large-empty p {
    margin: 8px 0 20px;

    color: #667085;

    font-size: 13px;
}


/* ============================================================
   STAFF DETAIL
   ============================================================ */

.staff-detail-page .profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.65fr);

    gap: 28px;
}

.staff-detail-page .profile-main-column,
.staff-detail-page .profile-side-column {
    display: grid;
    align-content: start;

    gap: 28px;
}

.staff-detail-page .profile-card {
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.staff-detail-page .profile-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 22px;
}

.staff-detail-page .profile-card-heading h2 {
    margin: 3px 0 0;

    color: #101828;

    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.staff-detail-page .table-wrapper {
    overflow-x: auto;
}

.staff-detail-page .data-table {
    width: 100%;
    min-width: 700px;

    border-collapse: collapse;
}

.staff-detail-page .data-table th {
    padding: 12px 14px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.staff-detail-page .data-table td {
    padding: 14px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 13px;
}

.staff-detail-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-detail-page .type-label {
    text-transform: capitalize;

    color: #475467;

    font-size: 12px;
    font-weight: 700;
}

.staff-detail-page .onboarding-form {
    display: grid;

    gap: 20px;
}

.staff-detail-page .form-grid {
    gap: 18px 20px;
}

.staff-detail-page .form-actions {
    padding-top: 4px;
}

.staff-detail-page .side-detail-list {
    display: grid;
}

.staff-detail-page .side-detail-list > div {
    display: flex;
    justify-content: space-between;

    gap: 18px;

    padding: 12px 0;

    border-bottom: 1px solid #edf1f2;
}

.staff-detail-page .side-detail-list > div:last-child {
    border-bottom: 0;
}

.staff-detail-page .side-detail-list span {
    color: #718087;

    font-size: 12px;
}

.staff-detail-page .side-detail-list strong {
    color: #101828;

    text-align: right;

    font-size: 13px;
    font-weight: 700;
}

.staff-detail-page .profile-card > p {
    margin: 0;

    color: #475467;

    font-size: 13px;
    line-height: 1.55;
}

.staff-detail-page .empty-state {
    padding: 10px 0;

    color: #718087;

    font-size: 13px;
}

@media (max-width: 1000px) {

    .staff-detail-page .profile-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .staff-detail-page .profile-card {
        padding: 20px;
    }

    .staff-detail-page .profile-card-heading {
        flex-direction: column;

        gap: 10px;
    }

    .staff-detail-page .side-detail-list > div {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .staff-detail-page .side-detail-list strong {
        text-align: left;
    }

}

/* ============================================================
   AVAILABILITY LIST
   ============================================================ */

.availability-list-page .content-card {
    padding: 0;
    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}


.availability-list-page .filter-bar {
    display: grid;

    grid-template-columns:
        minmax(180px, 0.8fr)
        minmax(240px, 1.2fr)
        auto
        auto;

    align-items: end;
    gap: 12px;

    padding: 22px 24px;

    background: #ffffff;

    border-bottom: 1px solid #e7edef;
}


.availability-list-page .filter-bar .form-group {
    margin: 0;
}


.availability-list-page .filter-bar label {
    display: block;

    margin-bottom: 6px;

    color: #475467;

    font-size: 12px;
    font-weight: 700;
}


.availability-list-page .filter-bar input,
.availability-list-page .filter-bar select {
    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 10px;
}


.availability-list-page .filter-bar input:focus,
.availability-list-page .filter-bar select:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}


.availability-list-page .filter-bar .secondary-button {
    min-height: 44px;
}


.availability-list-page .filter-bar .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 10px;

    color: #667085;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.availability-list-page .filter-bar .text-button:hover {
    color: #0b7285;
}


.availability-list-page .table-wrapper {
    overflow-x: auto;
}


.availability-list-page .data-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
}


.availability-list-page .data-table th {
    padding: 12px 18px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.availability-list-page .data-table td {
    padding: 16px 18px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}


.availability-list-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}


.availability-list-page .data-table tbody tr {
    transition:
        background 0.15s ease;
}


.availability-list-page .data-table tbody tr:hover {
    background: #f9fbfc;
}


.availability-list-page .table-secondary {
    margin-top: 3px;

    color: #718087;

    font-size: 12px;
}


.availability-list-page .status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    text-transform: capitalize;
}


/* Availability types */

.availability-list-page .status-working,
.availability-list-page .status-available {
    color: #027a48;
    background: #ecfdf3;
}


.availability-list-page .status-holiday,
.availability-list-page .status-annual_leave {
    color: #175cd3;
    background: #eff8ff;
}


.availability-list-page .status-sickness,
.availability-list-page .status-unavailable {
    color: #b42318;
    background: #fef3f2;
}


.availability-list-page .status-restricted,
.availability-list-page .status-other {
    color: #b54708;
    background: #fffaeb;
}


.availability-list-page .large-empty {
    padding: 72px 30px;

    text-align: center;
}


.availability-list-page .large-empty strong {
    display: block;

    color: #101828;

    font-size: 16px;
}


.availability-list-page .large-empty p {
    margin: 8px 0 20px;

    color: #667085;

    font-size: 13px;
}


@media (max-width: 900px) {

    .availability-list-page .filter-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .availability-list-page .filter-bar {
        grid-template-columns: 1fr;

        padding: 18px;
    }

}

/* ============================================================
   AVAILABILITY FORM
   ============================================================ */

.availability-form-page {
    max-width: 960px;
}

.availability-form-page .onboarding-form {
    display: grid;

    gap: 28px;
}

.availability-form-page .form-section {
    margin: 0;
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.availability-form-page .form-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 24px;
}

.availability-form-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.availability-form-page .form-section-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.015em;
}

.availability-form-page .form-section-heading p {
    margin: 5px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.availability-form-page .form-grid {
    gap: 20px;
}

.availability-form-page .form-group {
    margin: 0;
}

.availability-form-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 700;
}

.availability-form-page .form-group small {
    display: block;

    margin-top: 4px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}

.availability-form-page input,
.availability-form-page select,
.availability-form-page textarea {
    width: 100%;

    box-sizing: border-box;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 11px;
}

.availability-form-page input,
.availability-form-page select {
    min-height: 46px;

    padding: 0 12px;
}

.availability-form-page textarea {
    padding: 12px;

    resize: vertical;
}

.availability-form-page input:focus,
.availability-form-page select:focus,
.availability-form-page textarea:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}

.availability-form-page .form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 2px;
}

.availability-form-page .alert {
    margin-bottom: 24px;
}

@media (max-width: 700px) {

    .availability-form-page .form-section {
        padding: 20px;
    }

    .availability-form-page .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .availability-form-page .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .availability-form-page .form-actions > * {
        width: 100%;
    }

}

/* ============================================================
   STAFF FORM
   ============================================================ */

.staff-form-page {
    max-width: 960px;
}

.staff-form-page .onboarding-form {
    display: grid;
    gap: 28px;
}

.staff-form-page .form-section {
    margin: 0;
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.staff-form-page .form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
}

.staff-form-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.staff-form-page .form-section-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.015em;
}

.staff-form-page .form-section-heading p {
    margin: 5px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.staff-form-page .form-grid {
    gap: 20px;
}

.staff-form-page .form-group {
    margin: 0;
}

.staff-form-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 700;
}

.staff-form-page input,
.staff-form-page select,
.staff-form-page textarea {
    width: 100%;

    box-sizing: border-box;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 11px;
}

.staff-form-page input,
.staff-form-page select {
    min-height: 46px;
    padding: 0 12px;
}

.staff-form-page textarea {
    padding: 12px;

    resize: vertical;
}

.staff-form-page input:focus,
.staff-form-page select:focus,
.staff-form-page textarea:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}

.staff-form-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 2px;
}

.staff-form-page .alert {
    margin-bottom: 24px;
}

@media (max-width: 700px) {

    .staff-form-page .form-section {
        padding: 20px;
    }

    .staff-form-page .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .staff-form-page .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .staff-form-page .form-actions > * {
        width: 100%;
    }

}

/* ============================================================
   CUSTOMER FORM
   ============================================================ */

.customer-form-page {
    max-width: 1000px;
}

.customer-form-page .onboarding-form {
    display: grid;
    gap: 28px;
}

.customer-form-page .form-section {
    margin: 0;
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.customer-form-page .form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
}

.customer-form-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.customer-form-page .form-section-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.015em;
}

.customer-form-page .form-section-heading p {
    margin: 5px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.customer-form-page .form-grid {
    gap: 20px;
}

.customer-form-page .form-group {
    margin: 0;
}

.customer-form-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 700;
}

.customer-form-page .form-group small {
    display: block;

    margin-top: 6px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}

.customer-form-page input,
.customer-form-page select,
.customer-form-page textarea {
    width: 100%;

    box-sizing: border-box;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 11px;
}

.customer-form-page input,
.customer-form-page select {
    min-height: 46px;
    padding: 0 12px;
}

.customer-form-page textarea {
    padding: 12px;

    resize: vertical;
}

.customer-form-page input:focus,
.customer-form-page select:focus,
.customer-form-page textarea:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}


/* Communication preferences */

.customer-form-page .preference-panel {
    display: grid;
    gap: 16px;

    margin-top: 22px;
    padding: 18px;

    background: #f8fbfc;

    border: 1px solid #e4ecee;
    border-radius: 13px;
}

.customer-form-page .preference-panel strong {
    color: #101828;

    font-size: 13px;
}

.customer-form-page .preference-panel p {
    margin: 4px 0 0;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}

.customer-form-page .checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.customer-form-page .checkbox-grid label {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 42px;

    padding: 0 12px;

    color: #344054;
    background: #ffffff;

    border: 1px solid #e1eaec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.customer-form-page .checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;

    flex: 0 0 16px;

    accent-color: #0b7285;
}


/* Error display */

.customer-form-page .alert {
    margin-bottom: 24px;
}


/* Bottom actions */

.customer-form-page .form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 2px;
}


@media (max-width: 700px) {

    .customer-form-page .form-section {
        padding: 20px;
    }

    .customer-form-page .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .customer-form-page .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .customer-form-page .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .customer-form-page .form-actions > * {
        width: 100%;
    }

}

/* ============================================================
   PROPERTY FORM
   ============================================================ */

.property-form-page {
    max-width: 1000px;
}

.property-form-page .onboarding-form {
    display: grid;
    gap: 28px;
}

.property-form-page .form-section {
    margin: 0;
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.property-form-page .form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
}

.property-form-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.property-form-page .form-section-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.015em;
}

.property-form-page .form-section-heading p {
    margin: 5px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.property-form-page .form-grid {
    gap: 20px;
}

.property-form-page .form-group {
    margin: 0;
}

.property-form-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 700;
}

.property-form-page .form-group small {
    display: block;

    margin-top: 6px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}

.property-form-page input,
.property-form-page select,
.property-form-page textarea {
    width: 100%;

    box-sizing: border-box;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 11px;
}

.property-form-page input,
.property-form-page select {
    min-height: 46px;

    padding: 0 12px;
}

.property-form-page textarea {
    padding: 12px;

    resize: vertical;
}

.property-form-page input:focus,
.property-form-page select:focus,
.property-form-page textarea:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}

.property-form-page .alert {
    margin-bottom: 24px;
}

.property-form-page .form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 2px;
}

@media (max-width: 700px) {

    .property-form-page .form-section {
        padding: 20px;
    }

    .property-form-page .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .property-form-page .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .property-form-page .form-actions > * {
        width: 100%;
    }

}

/* ============================================================
   PROPERTY RISK FORM
   ============================================================ */

.property-risk-form-page {
    max-width: 900px;
}

.property-risk-form-page .onboarding-form {
    display: grid;
    gap: 28px;
}

.property-risk-form-page .form-section {
    margin: 0;
    padding: 24px;

    background: var(--card-bg);

    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);

    box-shadow: var(--card-shadow);
}

.property-risk-form-page .form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
}

.property-risk-form-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    color: #0b7285;
    background: #eaf5f6;

    border: 1px solid #d5e9ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.property-risk-form-page .form-section-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 18px;
    letter-spacing: -0.015em;
}

.property-risk-form-page .form-section-heading p {
    margin: 5px 0 0;

    color: #718087;

    font-size: 13px;
    line-height: 1.5;
}

.property-risk-form-page .form-grid {
    gap: 20px;
}

.property-risk-form-page .form-group {
    margin: 0;
}

.property-risk-form-page .form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;
    font-weight: 700;
}

.property-risk-form-page .form-group small {
    display: block;

    margin-top: 6px;

    color: #718087;

    font-size: 12px;
    line-height: 1.45;
}

.property-risk-form-page input,
.property-risk-form-page select,
.property-risk-form-page textarea {
    width: 100%;

    box-sizing: border-box;

    color: #101828;
    background: #ffffff;

    border: 1px solid #d8e2e5;
    border-radius: 11px;
}

.property-risk-form-page input,
.property-risk-form-page select {
    min-height: 46px;

    padding: 0 12px;
}

.property-risk-form-page textarea {
    padding: 12px;

    resize: vertical;
}

.property-risk-form-page input:focus,
.property-risk-form-page select:focus,
.property-risk-form-page textarea:focus {
    border-color: #8abfc6;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(11, 114, 133, 0.08);
}

.property-risk-form-page .preference-panel {
    margin-top: 22px;
    padding: 18px;

    background: #f6f9fa;

    border: 1px solid #e0e8ea;
    border-radius: 14px;
}

.property-risk-form-page .preference-panel strong {
    color: #101828;

    font-size: 13px;
}

.property-risk-form-page .preference-panel p {
    margin: 4px 0 14px;

    color: #718087;

    font-size: 12px;
    line-height: 1.5;
}

.property-risk-form-page .checkbox-grid {
    display: grid;
    gap: 10px;
}

.property-risk-form-page .checkbox-grid label {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #344054;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.property-risk-form-page .checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: auto;

    margin-top: 1px;

    flex: 0 0 16px;
}

.property-risk-form-page .alert {
    margin-bottom: 24px;
}

.property-risk-form-page .form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;
}

@media (max-width: 700px) {

    .property-risk-form-page .form-section {
        padding: 20px;
    }

    .property-risk-form-page .form-grid.two-column {
        grid-template-columns: 1fr;
    }

    .property-risk-form-page .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .property-risk-form-page .form-actions > * {
        width: 100%;
    }

}

/* =========================================================
   QUOTE CALCULATOR WORKSPACE
   ========================================================= */

.quote-form-page .quote-setup-grid,
.quote-form-page .quote-workspace-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form-page .quote-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-form-page .quote-workspace-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    align-items: stretch;
}

.quote-form-page .quote-setup-card,
.quote-form-page .quote-room-card,
.quote-form-page .quote-estimate-card,
.quote-form-page .quote-room-editor-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.quote-form-page .quote-setup-card .field + .field {
    margin-top: 18px;
}

.quote-form-page .quote-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.quote-form-page .quote-card-heading h2,
.quote-form-page .quote-estimate-card h2 {
    margin-top: 0;
}

.quote-form-page .quote-card-heading p {
    margin-bottom: 0;
}

.quote-form-page .quote-room-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf7f7;
    color: #0b7285;
    font-size: .82rem;
    font-weight: 700;
}

.quote-form-page .quote-room-list {
    display: grid;
    gap: 9px;
}

.quote-form-page .quote-room-list-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 13px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.quote-form-page .quote-room-list-item:hover {
    border-color: #9bcfd1;
    box-shadow: 0 4px 14px rgba(11, 19, 32, .05);
    transform: translateY(-1px);
}

.quote-form-page .quote-room-list-item.is-active {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, .10);
}

.quote-form-page .quote-room-list-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.quote-form-page .quote-room-list-main strong {
    color: #0b1320;
}

.quote-form-page .quote-room-list-main span {
    color: #68777c;
    font-size: .84rem;
}

.quote-form-page .quote-room-list-minutes {
    white-space: nowrap;
    color: #0b7285;
    font-size: .9rem;
}

.quote-form-page .quote-room-empty {
    padding: 30px 20px;
    border: 1px dashed #cbd9dc;
    border-radius: 13px;
    color: #738287;
    text-align: center;
    background: rgba(255, 255, 255, .45);
}

.quote-form-page .quote-estimate-card {
    position: relative;
}

.quote-form-page .quote-estimate-price {
    padding: 20px;
    margin: 18px 0;
    border-radius: 15px;
    background: #f2f8f8;
}

.quote-form-page .quote-estimate-price span {
    display: block;
    margin-bottom: 5px;
    color: #68777c;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.quote-form-page .quote-estimate-price strong {
    display: block;
    color: #0b1320;
    font-size: 2rem;
    line-height: 1.15;
}

.quote-form-page .quote-estimate-stats {
    display: grid;
    gap: 0;
}

.quote-form-page .quote-estimate-stats > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f2;
}

.quote-form-page .quote-estimate-stats span {
    color: #68777c;
}

.quote-form-page .quote-calculation-details {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8eeee;
}

.quote-form-page .quote-calculation-details summary {
    cursor: pointer;
    color: #0b7285;
    font-weight: 700;
}

.quote-form-page .quote-calculation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-top: 16px;
}

.quote-form-page .quote-calculation-detail-grid > div {
    display: grid;
    gap: 3px;
}

.quote-form-page .quote-calculation-detail-grid span {
    color: #718085;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.quote-form-page .quote-room-editor-card {
    margin-top: 20px;
}

.quote-form-page .quote-room-editor-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.5fr)
        minmax(90px, .45fr)
        minmax(150px, 1fr)
        minmax(180px, 1.2fr)
        minmax(140px, .8fr);
    gap: 16px;
    align-items: start;
}

.quote-form-page .quote-room-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.quote-form-page .quote-remove-room-button {
    margin-right: auto;
}

.quote-form-page .field small {
    display: block;
    margin-top: 6px;
    color: #738287;
    font-size: .78rem;
}

@media (max-width: 900px) {

    .quote-form-page .quote-setup-grid,
    .quote-form-page .quote-workspace-grid {
        grid-template-columns: 1fr;
    }

    .quote-form-page .quote-room-editor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .quote-form-page .quote-room-editor-grid {
        grid-template-columns: 1fr;
    }

    .quote-form-page .quote-card-heading {
        flex-direction: column;
        gap: 10px;
    }

    .quote-form-page .quote-room-list-item {
        align-items: flex-start;
    }

    .quote-form-page .quote-room-editor-actions {
        flex-direction: column-reverse;
    }

    .quote-form-page .quote-room-editor-actions button {
        width: 100%;
    }

    .quote-form-page .quote-remove-room-button {
        margin-right: 0;
    }
}

.quote-form-page .quote-setup-card,
.quote-form-page .quote-room-card,
.quote-form-page .quote-estimate-card,
.quote-form-page .quote-room-editor-card {
    padding: 24px;
}

.quote-form-page .quote-setup-card .section-heading,
.quote-form-page .quote-estimate-card .section-heading {
    margin-bottom: 20px;
}

.quote-form-page .quote-room-card,
.quote-form-page .quote-estimate-card {
    min-height: 300px;
}

/* ---------------------------------------------------------
   Quote calculator · property baseline actions
   --------------------------------------------------------- */

.quote-form-page .quote-room-heading-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   Property · Cleaning Profile
   --------------------------------------------------------- */

.property-cleaning-profile-card {
    overflow: hidden;
}

.property-cleaning-profile-card .profile-card-heading {
    align-items: flex-start;
    gap: 20px;
}

.property-cleaning-profile-card .profile-card-heading p {
    margin: 8px 0 0;
    color: #6f7f84;
    font-size: .9rem;
    line-height: 1.5;
}

.property-cleaning-profile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.property-cleaning-profile-status.is-confirmed {
    background: #e9f7f1;
    color: #26745f;
    border: 1px solid #cce9dc;
}

.property-cleaning-profile-status.is-estimated {
    background: #fff8e7;
    color: #8b681c;
    border: 1px solid #f1dfa8;
}

.property-cleaning-profile-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.property-cleaning-profile-summary .detail-item {
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: #f8fbfc;
}

.property-cleaning-profile-summary .detail-item span {
    display: block;
    margin-bottom: 5px;
    color: #76868b;
    font-size: .76rem;
}

.property-cleaning-profile-summary .detail-item strong {
    display: block;
    font-size: 1rem;
    color: #18262c;
}

.property-cleaning-profile-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f8f9;
    color: #6e7d82;
    font-size: .84rem;
}

.property-cleaning-profile-meta strong {
    margin-left: 5px;
    color: #203138;
}

.property-cleaning-profile-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #f0dfab;
    border-radius: 12px;
    background: #fffaf0;
}

.property-cleaning-profile-notice strong {
    flex: 0 0 auto;
    color: #7a5b16;
    font-size: .84rem;
}

.property-cleaning-profile-notice span {
    color: #7b725c;
    font-size: .84rem;
    line-height: 1.45;
}

.property-cleaning-profile-status.is-pending {
    color: #9A6700;
    background: var(--warning-soft);
    border-color: rgba(245,158,11,.22);
}

.property-cleaning-profile-notice.is-pending {
    border-color: rgba(245,158,11,.22);
    background: var(--warning-soft);
}

.property-cleaning-profile-notice.is-pending strong {
    color: #8A5C00;
}

.property-cleaning-room-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.property-cleaning-room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border: 1px solid var(--card-border);
    border-radius: 13px;
    background: #fff;
}

.property-cleaning-room-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.property-cleaning-room-main strong {
    color: #1f3036;
    font-size: .92rem;
}

.property-cleaning-room-main span {
    margin-top: 3px;
    color: #77878c;
    font-size: .79rem;
}

.property-cleaning-room-minutes {
    flex: 0 0 auto;
    color: #0b7285;
    font-size: .9rem;
}

.property-cleaning-profile-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.property-cleaning-profile-footer > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.property-cleaning-profile-footer span {
    color: #75858a;
    font-size: .82rem;
}

.property-cleaning-profile-footer strong {
    color: #27383e;
    font-size: .86rem;
}

@media (max-width: 900px) {

    .property-cleaning-profile-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .property-cleaning-profile-card .profile-card-heading {
        flex-direction: column;
    }

    .property-cleaning-profile-summary {
        grid-template-columns: 1fr;
    }

    .property-cleaning-profile-notice {
        flex-direction: column;
    }

    .property-cleaning-room-row {
        align-items: flex-start;
    }

    .property-cleaning-profile-footer > div {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   SCRUBBERSOS · SHARED UI PRIMITIVES
   ========================================================= */


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.ui-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 20px;

    border-radius:
        var(--radius-button);

    font-family:
        var(--font-interface);

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        transform var(--motion-standard) ease,
        border-color var(--motion-standard) ease,
        background var(--motion-standard) ease,
        box-shadow var(--motion-standard) ease,
        filter var(--motion-standard) ease;
}

.ui-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ui-button-primary {
    border: 0;

    color:
        var(--scrubbers-white);

    background:
        var(--gradient-primary);

    box-shadow:
        0 5px 14px
        rgba(11,114,133,.15);
}

.ui-button-primary:not(:disabled):hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.035);

    box-shadow:
        0 8px 20px
        rgba(11,114,133,.20);
}

.ui-button-secondary {
    border:
        1px solid
        var(--border-default);

    color:
        var(--text-primary);

    background:
        var(--surface-default);
}

.ui-button-secondary:hover {
    border-color:
        #A7CDD3;

    background:
        #F7FBFC;
}

.ui-button-ghost {
    min-height: auto;

    padding: 4px 6px;

    border: 0;

    color:
        var(--scrubbers-teal);

    background:
        transparent;
}

.ui-button-ghost:hover {
    background:
        var(--scrubbers-light-blue);
}


/* ---------------------------------------------------------
   Modal / Dialog
   --------------------------------------------------------- */

.ui-modal {
    width: min(
        calc(100vw - 40px),
        640px
    );

    max-height:
        min(88vh, 900px);

    margin: auto;
    padding: 0;

    overflow: visible;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-card);

    background:
        transparent;

    box-shadow:
        var(--shadow-modal);
}

.ui-modal-large {
    width: min(
        calc(100vw - 48px),
        860px
    );
}

.ui-modal::backdrop {
    background:
        rgba(11,19,32,.40);

    backdrop-filter:
        blur(2px);
}

.ui-modal-panel {
    max-height:
        min(88vh, 900px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius:
        var(--radius-card);

    background:
        var(--surface-default);
}

.ui-modal-header {
    flex: 0 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding:
        24px
        24px
        20px;

    border-bottom:
        1px solid
        var(--border-soft);
}

.ui-modal-heading {
    min-width: 0;
}

.ui-eyebrow {
    display: block;

    margin-bottom: 6px;

    color:
        var(--scrubbers-teal);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.ui-modal-heading h2 {
    margin: 0;

    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 600;

    line-height: 1.25;
}

.ui-modal-heading p {
    max-width: 600px;

    margin:
        7px 0
        0;

    color:
        var(--text-secondary);

    font-size: 13px;
    line-height: 1.55;
}

.ui-modal-close {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 10px;

    color:
        var(--text-secondary);

    background:
        transparent;

    font-size: 25px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;
}

.ui-modal-close:hover {
    color:
        var(--text-primary);

    background:
        var(--surface-soft);
}

.ui-modal-close:focus-visible,
.ui-button:focus-visible {
    outline:
        2px solid
        var(--scrubbers-accent);

    outline-offset: 2px;
}

.ui-modal-body {
    flex: 1 1 auto;

    overflow-y: auto;

    padding: 24px;
}

.ui-modal-footer {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding:
        16px
        24px;

    border-top:
        1px solid
        var(--border-soft);

    background:
        var(--surface-soft);
}

.ui-modal-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;

    color:
        var(--text-secondary);

    font-size: 13px;
}


/* ---------------------------------------------------------
   Compact Empty State
   --------------------------------------------------------- */

.ui-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 22px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-card);

    background:
        var(--surface-soft);
}

.ui-empty-state-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color:
        var(--scrubbers-teal);

    background:
        var(--scrubbers-light-blue);
}

.ui-empty-state h3 {
    margin: 0;

    color:
        var(--text-primary);

    font-size: 15px;
    font-weight: 600;
}

.ui-empty-state p {
    margin:
        4px 0
        0;

    color:
        var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Modal Responsive
   --------------------------------------------------------- */

@media (max-width: 620px) {

    .ui-modal,
    .ui-modal-large {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .ui-modal-panel {
        max-height: calc(100vh - 20px);
    }

    .ui-modal-header,
    .ui-modal-body {
        padding:
            20px
            18px;
    }

    .ui-modal-footer {
        padding:
            14px
            18px;
    }
}

/* =========================================================
   SCRUBBERSOS · SHARED FORM PRIMITIVES
   ========================================================= */

.ui-form-field {
    display: grid;
    gap: 7px;
}

.ui-form-field label {
    color:
        var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}

.ui-form-field input,
.ui-form-field select,
.ui-form-field textarea {
    width: 100%;

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-control);

    background:
        var(--surface-default);

    color:
        var(--text-primary);

    font-family:
        var(--font-interface);

    font-size: 14px;

    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

.ui-form-field input,
.ui-form-field select {
    height: 46px;
    padding: 0 14px;
}

.ui-form-field textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.ui-form-field input:focus,
.ui-form-field select:focus,
.ui-form-field textarea:focus {
    outline: none;

    border-color:
        var(--scrubbers-accent);

    box-shadow:
        0 0 0 3px
        rgba(20,184,166,.12);
}


/* =========================================================
   CLEANING PROFILE EDITOR LAYOUT
   ========================================================= */

.cleaning-profile-editor-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 24px;
}

.cleaning-profile-editor-stat {
    padding: 16px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-card);

    background:
        var(--surface-soft);
}

.cleaning-profile-editor-stat span {
    display: block;

    color:
        var(--text-muted);

    font-size: 12px;
    font-weight: 500;
}

.cleaning-profile-editor-stat strong {
    display: block;

    margin-top: 5px;

    color:
        var(--text-primary);

    font-size: 19px;
    font-weight: 600;
}

.cleaning-profile-editor-layout {
    display: grid;
    gap: 22px;
}

.cleaning-profile-editor-section {
    padding: 20px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-card);

    background:
        var(--surface-default);
}

.cleaning-profile-editor-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
}

.cleaning-profile-editor-section-heading h3 {
    margin: 0;

    color:
        var(--text-primary);

    font-size: 16px;
    font-weight: 600;
}

.cleaning-profile-editor-room-list {
    display: grid;
    gap: 8px;
}

.cleaning-profile-editor-room {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 13px 14px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        12px;

    background:
        var(--surface-soft);

    text-align: left;

    cursor: pointer;

    transition:
        border-color var(--motion-standard) ease,
        background var(--motion-standard) ease,
        transform var(--motion-standard) ease;
}

.cleaning-profile-editor-room:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(11,114,133,.25);

    background:
        #F8FCFC;
}

.cleaning-profile-editor-room.is-selected {
    border-color:
        rgba(11,114,133,.35);

    background:
        var(--scrubbers-light-blue);
}

.cleaning-profile-editor-room-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cleaning-profile-editor-room-main strong {
    color:
        var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}

.cleaning-profile-editor-room-main span {
    margin-top: 3px;

    color:
        var(--text-secondary);

    font-size: 12px;
}

.cleaning-profile-editor-room-minutes {
    flex: 0 0 auto;

    color:
        var(--scrubbers-teal);

    font-size: 13px;
    font-weight: 600;
}

.cleaning-profile-editor-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.cleaning-profile-field-wide {
    grid-column:
        1 / -1;
}

.cleaning-profile-room-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 20px;
}

.cleaning-profile-room-editor-actions > div {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: auto;
}

.cleaning-profile-remove-room {
    color:
        var(--error);
}

.cleaning-profile-remove-room:hover {
    background:
        var(--error-soft);
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 620px) {

    .cleaning-profile-editor-summary {
        grid-template-columns: 1fr;
    }

    .cleaning-profile-editor-form-grid {
        grid-template-columns: 1fr;
    }

    .cleaning-profile-field-wide {
        grid-column: auto;
    }

    .cleaning-profile-editor-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cleaning-profile-room-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cleaning-profile-room-editor-actions > div {
        width: 100%;
        margin-left: 0;
    }

    .cleaning-profile-room-editor-actions > div .ui-button {
        flex: 1;
    }
}

/* =========================================================
   SCRUBBERSOS · MODAL SUB-OVERLAY
   Contextual editor above an existing modal
   ========================================================= */

.ui-modal-suboverlay {
    position: absolute;
    inset: 0;
    z-index: 20;

    display: grid;
    place-items: center;

    padding: 24px;

    border-radius: inherit;

    background:
        rgba(11,19,32,.30);

    backdrop-filter:
        blur(1.5px);
}

.ui-modal-suboverlay[hidden] {
    display: none;
}

.ui-modal-subpanel {
    width:
        min(100%, 600px);

    max-height:
        calc(100% - 24px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-card);

    background:
        var(--surface-default);

    box-shadow:
        var(--shadow-modal);
}

.ui-modal-subheader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding:
        22px
        22px
        18px;

    border-bottom:
        1px solid
        var(--border-soft);
}

.ui-modal-subheader h3 {
    margin: 0;

    color:
        var(--text-primary);

    font-size: 18px;
    font-weight: 600;
}

.ui-modal-subheader p {
    max-width: 470px;

    margin:
        6px 0
        0;

    color:
        var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}

.ui-modal-subbody {
    overflow-y: auto;

    padding: 22px;
}

.ui-modal-subfooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding:
        15px
        22px;

    border-top:
        1px solid
        var(--border-soft);

    background:
        var(--surface-soft);
}

.ui-modal-subfooter-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: auto;
}

@media (max-width: 620px) {

    .ui-modal-suboverlay {
        padding: 10px;
    }

    .ui-modal-subpanel {
        width: 100%;
        max-height: 100%;
    }

    .ui-modal-subfooter {
        align-items: stretch;
        flex-direction: column;
    }

    .ui-modal-subfooter-actions {
        width: 100%;
        margin-left: 0;
    }

    .ui-modal-subfooter-actions .ui-button {
        flex: 1;
    }
}

/* ============================================================
   SHARED UI FEEDBACK
   Confirmation dialog + toast notifications
   ============================================================ */

.ui-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        rgba(11, 19, 32, .40);

    backdrop-filter:
        blur(2px);
}

.ui-confirm-overlay:not([open]) {
    display: none;
}

.ui-confirm-dialog {
    width:
        min(100%, 470px);

    overflow: hidden;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-panel);

    background:
        var(--surface-default);

    box-shadow:
        var(--shadow-modal);

    outline:
        none;
}

.ui-confirm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding:
        22px 22px 16px;
}

.ui-confirm-eyebrow {
    margin: 0 0 5px;

    color:
        var(--brand-teal);

    font-size: 11px;
    font-weight: 700;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}

.ui-confirm-header h2 {
    margin: 0;

    color:
        var(--text-primary);

    font-size: 20px;
    font-weight: 600;
}

.ui-confirm-close {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    border: 0;
    border-radius: 9px;

    background:
        transparent;

    color:
        var(--text-muted);

    font: inherit;
    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.ui-confirm-close:hover {
    background:
        var(--surface-soft);

    color:
        var(--text-primary);
}

.ui-confirm-body {
    padding:
        0 22px 22px;
}

.ui-confirm-body p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 14px;
    line-height: 1.6;

    white-space:
        pre-line;
}

.ui-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding:
        15px 22px;

    border-top:
        1px solid
        var(--border-soft);

    background:
        var(--surface-soft);
}


/* Toasts */

.ui-toast-region {
    position: fixed;
    z-index: 4000;

    top: 22px;
    right: 22px;

    width:
        min(390px, calc(100vw - 32px));

    display: grid;
    gap: 10px;

    pointer-events: none;
}

.ui-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding:
        14px 14px 14px 16px;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-control);

    background:
        var(--surface-default);

    box-shadow:
        var(--shadow-card);

    opacity: 0;

    transform:
        translateY(-8px);

    transition:
        opacity .18s ease,
        transform .18s ease;

    pointer-events: auto;
}

.ui-toast.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}

.ui-toast.is-success {
    border-left:
        4px solid
        var(--success);
}

.ui-toast.is-error {
    border-left:
        4px solid
        var(--error);
}

.ui-toast.is-warning {
    border-left:
        4px solid
        var(--warning);
}

.ui-toast-content {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.ui-toast-content strong {
    color:
        var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}

.ui-toast-content span {
    color:
        var(--text-secondary);

    font-size: 13px;
    line-height: 1.45;
}

.ui-toast-close {
    width: 28px;
    height: 28px;

    flex: 0 0 auto;

    border: 0;
    border-radius: 8px;

    background:
        transparent;

    color:
        var(--text-muted);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.ui-toast-close:hover {
    background:
        var(--surface-soft);

    color:
        var(--text-primary);
}

@media (max-width: 620px) {

    .ui-confirm-overlay {
        padding: 12px;
    }

    .ui-confirm-dialog {
        width: 100%;
    }

    .ui-confirm-footer {
        flex-direction: column-reverse;
    }

    .ui-confirm-footer .ui-button {
        width: 100%;
    }

    .ui-toast-region {
        top: 12px;
        right: 12px;
        left: 12px;

        width: auto;
    }
}


.quote-feature-card {
    border: 1px solid var(--border-color, #DCE4E8);
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(11, 19, 32, 0.06);
}

.quote-additional-services-card {
    margin-top: 24px;
}

.quote-additional-services-card .quote-card-heading {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #E3EAED;
}

.quote-additional-service-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.quote-additional-service-empty {
    padding: 18px 20px;
    border: 1px dashed #DCE4E8;
    border-radius: 14px;
    background: #F8FAFB;
    color: #8391A2;
    font-size: 0.95rem;
}

.quote-additional-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #CFE4E7;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #F7FBFC 100%
    );
    box-shadow: 0 4px 14px rgba(11, 19, 32, 0.04);
}

.quote-additional-service-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.quote-additional-service-main strong {
    color: #0B1320;
    font-size: 1rem;
    font-weight: 600;
}

.quote-additional-service-main span {
    color: #596879;
    font-size: 0.875rem;
}

.quote-additional-service-actions {
    flex: 0 0 auto;
}

.quote-additional-service-actions .secondary-button {
    min-height: 36px;
    padding: 8px 13px;
}

.quote-additional-services-card .quote-room-editor-grid {
    padding-top: 4px;
}

@media (max-width: 720px) {
    .quote-additional-service-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-additional-service-actions {
        width: 100%;
    }

    .quote-additional-service-actions .secondary-button {
        width: 100%;
    }
}

.quote-estimate-breakdown {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.quote-estimate-line,
.quote-estimate-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quote-estimate-line {
    padding: 10px 0;
    border-bottom: 1px solid #E3EAED;
}

.quote-estimate-line span {
    color: #596879;
    font-size: 0.92rem;
}

.quote-estimate-line strong {
    color: #0B1320;
    font-size: 1rem;
}

.quote-estimate-total {
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #F3F5F7;
}

.quote-estimate-total span {
    color: #0B1320;
    font-weight: 600;
}

.quote-estimate-total strong {
    color: #0B7285;
    font-size: 1.45rem;
    font-weight: 700;
}

/* ==========================================================
   QUOTE DETAIL / REVIEW
   ========================================================== */

.quote-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    margin-bottom: 22px;
}

.quote-review-summary-card,
.quote-commercial-card,
.quote-services-card,
.quote-calculation-card {
    background: #FFFFFF;
    border: 1px solid #DCE4E8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 19, 32, 0.05);
}

.quote-review-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.quote-review-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.quote-review-meta-item > span:first-child {
    color: #8391A2;
    font-size: 0.82rem;
    font-weight: 500;
}

.quote-review-meta-item strong {
    color: #0B1320;
    font-size: 0.98rem;
}

.quote-review-meta-item small {
    color: #596879;
    font-size: 0.82rem;
}

.quote-commercial-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quote-commercial-heading {
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #E3EAED;
}

.quote-commercial-heading span {
    color: #0B1320;
    font-weight: 600;
}

.quote-commercial-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #E3EAED;
}

.quote-commercial-line span {
    color: #596879;
    font-size: 0.9rem;
}

.quote-commercial-line strong {
    color: #0B1320;
}

.quote-commercial-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 17px 18px;
    background: #F3F5F7;
    border-radius: 14px;
}

.quote-commercial-total span {
    color: #0B1320;
    font-weight: 600;
}

.quote-commercial-total strong {
    color: #0B7285;
    font-size: 1.65rem;
    font-weight: 700;
}

.quote-service-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.quote-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border: 1px solid #DCE4E8;
    border-radius: 14px;
    background: #FFFFFF;
}

.quote-service-item-addon {
    border-color: #CFE4E7;
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #F7FBFC 100%
    );
}

.quote-service-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.quote-service-type {
    color: #0B7285;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quote-service-item-main strong {
    color: #0B1320;
    font-size: 0.98rem;
}

.quote-service-item-price {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.quote-service-item-price span {
    color: #8391A2;
    font-size: 0.82rem;
}

.quote-service-item-price strong {
    color: #0B1320;
    font-size: 1rem;
}

.quote-calculation-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.quote-calculation-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    background: #F8FAFB;
    border: 1px solid #E3EAED;
    border-radius: 12px;
}

.quote-calculation-summary-item span {
    color: #8391A2;
    font-size: 0.8rem;
}

.quote-calculation-summary-item strong {
    color: #0B1320;
    font-size: 0.98rem;
}

.quote-services-card,
.quote-calculation-card {
    margin-bottom: 22px;
}

@media (max-width: 900px) {

    .quote-review-grid {
        grid-template-columns: 1fr;
    }

    .quote-calculation-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .quote-review-meta-grid,
    .quote-calculation-summary-grid {
        grid-template-columns: 1fr;
    }

    .quote-service-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-service-item-price {
        align-items: flex-start;
    }
}

.quote-list-id-link {
    color: #0B7285;
    font-weight: 600;
    text-decoration: none;
}

.quote-list-id-link:hover {
    text-decoration: underline;
}

/* Quote Review Spacing Refinement */

.quote-review-grid {
    gap: 28px;
    margin-top: 10px;
    margin-bottom: 28px;
}

.quote-review-summary-card,
.quote-commercial-card,
.quote-services-card,
.quote-calculation-card {
    padding: 24px 26px;
}

.quote-services-card,
.quote-calculation-card {
    margin-top: 26px;
    margin-bottom: 0;
}

.quote-service-list {
    gap: 14px;
}

.quote-service-item {
    padding: 20px 22px;
}

.quote-review-meta-grid {
    gap: 22px 28px;
}

.quote-calculation-summary-grid {
    gap: 16px;
}

.quote-calculation-summary-item {
    padding: 17px 18px;
}

@media (max-width: 900px) {
    .quote-review-summary-card,
    .quote-commercial-card,
    .quote-services-card,
    .quote-calculation-card {
        padding: 22px;
    }
}

/* ============================================================
   CUSTOMER-FACING QUOTE
   ============================================================ */

.customer-quote-body {
    margin: 0;
    background: #F3F5F7;
    color: #0B1320;
}

.customer-quote-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.customer-quote-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    color: #596879;
    font-size: 13px;
    font-weight: 600;
}

.customer-quote-document {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DCE4E8;
    border-radius: 22px;
    box-shadow:
        0 18px 50px rgba(11, 19, 32, 0.08);
}

.customer-quote-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 44px;
    color: #FFFFFF;
    background:
        linear-gradient(
            120deg,
            #0B1320 0%,
            #0B7285 100%
        );
}

.customer-quote-brand {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.customer-quote-brand-subtitle {
    margin-top: 4px;
    opacity: 0.78;
    font-size: 13px;
}

.customer-quote-reference {
    text-align: right;
}

.customer-quote-reference span {
    display: block;
    margin-bottom: 5px;
    opacity: 0.7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.customer-quote-reference strong {
    font-size: 18px;
}

.customer-quote-intro {
    max-width: 720px;
    padding: 48px 44px 28px;
}

.customer-quote-eyebrow,
.customer-quote-section-heading > span {
    color: #0B7285;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.customer-quote-intro h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.customer-quote-intro p {
    max-width: 640px;
    margin: 0;
    color: #596879;
    font-size: 16px;
    line-height: 1.65;
}

.customer-quote-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 44px 38px;
    overflow: hidden;
    background: #DCE4E8;
    border: 1px solid #DCE4E8;
    border-radius: 16px;
}

.customer-quote-summary > div {
    min-width: 0;
    padding: 20px;
    background: #FFFFFF;
}

.customer-quote-summary span {
    display: block;
    margin-bottom: 7px;
    color: #8391A2;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.customer-quote-summary strong {
    display: block;
    font-size: 14px;
}

.customer-quote-summary small {
    display: block;
    margin-top: 5px;
    color: #596879;
    line-height: 1.45;
}

.customer-quote-section {
    padding: 20px 44px 36px;
}

.customer-quote-section-heading {
    margin-bottom: 18px;
}

.customer-quote-section-heading h2 {
    margin: 6px 0 0;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.customer-quote-services {
    display: grid;
    gap: 12px;
}

.customer-quote-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    background: #F8FAFB;
    border: 1px solid #E3EAED;
    border-radius: 14px;
}

.customer-quote-service small {
    display: block;
    margin-top: 5px;
    color: #8391A2;
}

.customer-quote-service-price {
    flex: 0 0 auto;
    color: #0B7285;
    font-size: 18px;
}

.customer-quote-total-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 6px 44px 38px;
    padding: 26px 28px;
    color: #FFFFFF;
    background:
        linear-gradient(
            90deg,
            #058A9E 0%,
            #18A4A9 52%,
            #27BCB5 100%
        );
    border-radius: 17px;
}

.customer-quote-total-panel span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.customer-quote-total-panel p {
    margin: 5px 0 0;
    opacity: 0.85;
    font-size: 13px;
}

.customer-quote-total-panel > strong {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.customer-quote-notes {
    padding: 20px 22px;
    color: #596879;
    white-space: pre-wrap;
    background: #F8FAFB;
    border: 1px solid #E3EAED;
    border-radius: 14px;
    line-height: 1.65;
}

.customer-quote-next-step {
    margin: 6px 44px 38px;
    padding: 28px;
    background: #E6F4F6;
    border: 1px solid rgba(11, 114, 133, 0.14);
    border-radius: 17px;
}

.customer-quote-next-step h2 {
    margin: 7px 0 8px;
    font-size: 24px;
}

.customer-quote-next-step p {
    max-width: 670px;
    margin: 0;
    color: #596879;
    line-height: 1.6;
}

.customer-quote-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 44px;
    color: #596879;
    border-top: 1px solid #E3EAED;
    font-size: 12px;
}

.customer-quote-footer strong,
.customer-quote-footer span {
    display: block;
}

.customer-quote-footer strong {
    margin-bottom: 3px;
    color: #0B1320;
    font-size: 15px;
}

@media (max-width: 800px) {

    .customer-quote-page {
        width: min(
            100% - 22px,
            1120px
        );
    }

    .customer-quote-hero,
    .customer-quote-intro,
    .customer-quote-section,
    .customer-quote-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .customer-quote-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        margin-left: 24px;
        margin-right: 24px;
    }

    .customer-quote-total-panel,
    .customer-quote-next-step {
        margin-left: 24px;
        margin-right: 24px;
    }
}

@media (max-width: 520px) {

    .customer-quote-preview-bar,
    .customer-quote-hero,
    .customer-quote-total-panel,
    .customer-quote-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-quote-reference {
        text-align: left;
    }

    .customer-quote-summary {
        grid-template-columns: 1fr;
    }

    .customer-quote-service {
        align-items: flex-start;
    }
}

/* ============================================================
   MY SCRUBBERS · CUSTOMER LOGIN
   ============================================================ */

.ms-login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        #F4FAFB;
    color:
        #0B1320;
}

.ms-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(440px, 0.82fr);
        width: 100%;
box-sizing: border-box;
}

.ms-login-brand {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 78% 16%,
            rgba(20, 184, 166, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(11, 114, 133, 0.38),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #07121D 0%,
            #0B2130 42%,
            #0A5967 100%
        );
    color:
        #FFFFFF;
}

.ms-login-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -190px;
    border-radius: 50%;
    background:
        rgba(20, 184, 166, 0.08);
    filter:
        blur(4px);
}

.ms-login-brand::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 240px;
    left: -100px;
    bottom: -115px;
    border-radius: 50%;
    background:
        linear-gradient(
            90deg,
            rgba(20, 184, 166, 0.16),
            rgba(230, 244, 246, 0.03)
        );
    transform:
        rotate(-7deg);
}

.ms-login-brand-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding:
        44px
        clamp(42px, 5vw, 78px)
        34px;
}

.ms-login-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ms-login-brand-logo {
    display: block;
    width: min(330px, 38vw);
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

.ms-login-brand-tag {
    color:
        rgba(255, 255, 255, 0.70);
    font-size:
        12px;
    font-weight:
        600;
    letter-spacing:
        0.08em;
    text-transform:
        uppercase;
    white-space: nowrap;
}

.ms-login-brand-content {
    flex: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(300px, 0.72fr);
    align-items: center;
    gap:
        clamp(36px, 5vw, 74px);
    padding:
        42px 0 30px;
}

.ms-login-copy {
    min-width: 0;
}

.ms-login-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color:
        #71E2D8;
    font-size:
        12px;
    font-weight:
        700;
    letter-spacing:
        0.14em;
}

.ms-login-copy h1 {
    margin:
        0
        0
        24px;
    color:
        #FFFFFF;
    font-size:
        clamp(44px, 5vw, 74px);
    line-height:
        0.98;
    letter-spacing:
        -0.045em;
    font-size:
    clamp(42px, 4.4vw, 68px);
    max-width: 640px;
}

.ms-login-copy h1 span {
    color:
        #3FD0C2;
}

.ms-login-intro {
    max-width:
        590px;
    margin:
        0;
    color:
        rgba(255, 255, 255, 0.76);
    font-size:
        clamp(16px, 1.15vw, 19px);
    line-height:
        1.7;
}

.ms-login-benefits {
    margin-top:
        34px;
    display:
        grid;
    gap:
        14px;
    max-width:
        570px;
}

.ms-login-benefit {
    display:
        grid;
    grid-template-columns:
        44px
        minmax(0, 1fr);
    gap:
        14px;
    align-items:
        center;
    padding:
        14px 16px;
    border:
        1px solid
        rgba(255, 255, 255, 0.08);
    border-radius:
        16px;
    background:
        rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter:
        blur(12px);
}

.ms-login-benefit-icon {
    width:
        42px;
    height:
        42px;
    display:
        grid;
    place-items:
        center;
    border-radius:
        13px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 184, 166, 0.28),
            rgba(11, 114, 133, 0.42)
        );
    color:
        #8EF0E6;
    font-size:
        17px;
    font-weight:
        800;
}

.ms-login-benefit strong {
    display:
        block;
    margin-bottom:
        3px;
    color:
        #FFFFFF;
    font-size:
        15px;
}

.ms-login-benefit span {
    display:
        block;
    color:
        rgba(255, 255, 255, 0.64);
    font-size:
        13px;
    line-height:
        1.45;
}

.ms-login-phone {
    position:
        relative;
    justify-self:
        center;
    width:
        min(310px, 100%);
    padding:
        13px;
    border-radius:
        38px;
    background:
        linear-gradient(
            145deg,
            #101820,
            #273943
        );
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.34),
        0 8px 24px rgba(0, 0, 0, 0.22);
    transform:
        rotate(2deg);
}

.ms-login-phone::before {
    content:
        "";
    position:
        absolute;
    top:
        10px;
    left:
        50%;
    width:
        80px;
    height:
        20px;
    transform:
        translateX(-50%);
    border-radius:
        0 0 14px 14px;
    background:
        #0C1116;
    z-index:
        3;
}

.ms-login-phone-screen {
    min-height:
        565px;
    padding:
        30px 18px 18px;
    border-radius:
        29px;
    background:
        linear-gradient(
            180deg,
            #F8FCFC 0%,
            #EFF8F8 100%
        );
    color:
        #0B1320;
}

.ms-phone-top {
    margin-bottom:
        20px;
    text-align:
        left;
    color:
        #24323D;
    font-size:
        11px;
    font-weight:
        700;
}

.ms-phone-welcome {
    display:
        flex;
    flex-direction:
        column;
    margin-bottom:
        18px;
}

.ms-phone-welcome span {
    color:
        #5A6B75;
    font-size:
        11px;
}

.ms-phone-welcome strong {
    margin-top:
        2px;
    color:
        #0B1320;
    font-size:
        22px;
    line-height:
        1.2;
}

.ms-phone-welcome small {
    margin-top:
        4px;
    color:
        #72818A;
    font-size:
        10px;
}

.ms-phone-card {
    padding:
        15px;
    border:
        1px solid #DCEAEC;
    border-radius:
        18px;
    background:
        #FFFFFF;
    box-shadow:
        0 8px 24px rgba(11, 19, 32, 0.06);
}

.ms-phone-label,
.ms-phone-section-title {
    display:
        block;
    color:
        #0B7285;
    font-size:
        9px;
    font-weight:
        800;
    letter-spacing:
        0.08em;
}

.ms-phone-card > strong {
    display:
        block;
    margin-top:
        7px;
    font-size:
        15px;
}

.ms-phone-card > span:not(.ms-phone-label) {
    display:
        block;
    margin-top:
        2px;
    color:
        #687983;
    font-size:
        10px;
}

.ms-phone-person {
    display:
        flex;
    align-items:
        center;
    gap:
        9px;
    margin-top:
        13px;
    padding-top:
        12px;
    border-top:
        1px solid #EDF2F3;
}

.ms-phone-avatar {
    width:
        30px;
    height:
        30px;
    display:
        grid;
    place-items:
        center;
    border-radius:
        50%;
    background:
        #DDF5F2;
    color:
        #0B7285;
    font-size:
        11px;
    font-weight:
        800;
}

.ms-phone-person div {
    display:
        flex;
    flex-direction:
        column;
}

.ms-phone-person small {
    color:
        #89959C;
    font-size:
        8px;
}

.ms-phone-person strong {
    margin-top:
        1px;
    font-size:
        10px;
}

.ms-phone-button {
    margin-top:
        13px;
    padding:
        10px 12px;
    border-radius:
        11px;
    background:
        linear-gradient(
            90deg,
            #058A9E 0%,
            #18A4A9 52%,
            #27BCB5 100%
        );
    color:
        #FFFFFF;
    text-align:
        center;
    font-size:
        10px;
    font-weight:
        700;
}

.ms-phone-section-title {
    margin:
        18px 0 9px;
}

.ms-phone-actions {
    display:
        grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap:
        8px;
}

.ms-phone-actions span {
    min-height:
        48px;
    display:
        flex;
    align-items:
        center;
    justify-content:
        center;
    padding:
        7px;
    border:
        1px solid #DCEAEC;
    border-radius:
        12px;
    background:
        #FFFFFF;
    color:
        #51616B;
    font-size:
        9px;
    text-align:
        center;
}

.ms-phone-recent {
    margin-top:
        14px;
    padding:
        12px;
    border-radius:
        14px;
    background:
        #E9F8F5;
}

.ms-phone-recent small,
.ms-phone-recent strong,
.ms-phone-recent span {
    display:
        block;
}

.ms-phone-recent small {
    color:
        #0B7285;
    font-size:
        8px;
    font-weight:
        800;
}

.ms-phone-recent strong {
    margin-top:
        5px;
    color:
        #17303A;
    font-size:
        10px;
}

.ms-phone-recent span {
    margin-top:
        4px;
    color:
        #40A56C;
    font-size:
        9px;
    font-weight:
        700;
}

.ms-login-brand-footer {
    display:
        flex;
    align-items:
        center;
    justify-content:
        flex-start;
    flex-wrap:
        wrap;
    gap:
        12px;
    color:
        rgba(255, 255, 255, 0.56);
    font-size:
        11px;
    font-weight:
        600;
        margin-top: 8px;
}

.ms-login-brand-footer i {
    width:
        4px;
    height:
        4px;
    border-radius:
        50%;
    background:
        #26B8AE;
}

.ms-login-form-side {
    position:
        relative;
    min-height:
        100vh;
    display:
        flex;
    align-items:
        center;
    justify-content:
        center;
        box-sizing: border-box;
overflow: hidden;
    padding:
        80px 56px 54px;
    background:
        radial-gradient(
            circle at 86% 14%,
            rgba(20, 184, 166, 0.07),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #F9FCFC 0%,
            #EEF7F8 100%
        );
}
.ms-login-form-side::before {
    content: "";
    position: absolute;
    z-index: 0;

    width: 620px;
    height: 620px;

    right: -220px;
    bottom: -190px;

    background-image:
        url("/images/my-scrubbers-icon-trimmed.png");

    background-repeat:
        no-repeat;

    background-position:
        center;

    background-size:
        contain;

    opacity:
        0.035;

    transform:
        rotate(-9deg);

    pointer-events:
        none;
}

.ms-login-top-link {
    position:
        absolute;
    top:
        32px;
    right:
        38px;
    color:
        #74848C;
    font-size:
        13px;
        z-index: 2;
}

.ms-login-top-link a {
    margin-left:
        5px;
    color:
        #0B7285;
    font-weight:
        700;
    text-decoration:
        none;
}

.ms-login-card {
    width:
        min(100%, 520px);
    padding:
        42px;
    border:
        1px solid rgba(11, 114, 133, 0.10);
    border-radius:
        24px;
    background:
        rgba(255, 255, 255, 0.96);
    box-shadow:
        0 28px 80px rgba(11, 19, 32, 0.10);
        position: relative;
z-index: 1;
}

.ms-login-card-logo {
    display:
        block;
    width:
        255px;
    max-height:
        58px;
    margin-bottom:
        28px;
    object-fit:
        contain;
    object-position:
        left center;
}

.ms-login-heading {
    margin-bottom:
        28px;
}

.ms-login-heading h1 {
    margin:
        0;
    color:
        #0B1320;
    font-size:
        36px;
    line-height:
        1.1;
    letter-spacing:
        -0.03em;
}

.ms-login-heading p {
    margin:
        9px 0 0;
    color:
        #657780;
    font-size:
        15px;
    line-height:
        1.6;
}

.ms-login-card .alert {
    margin-bottom:
        18px;
}

.ms-login-form {
    display:
        grid;
    gap:
        18px;
}

.ms-login-form .form-group {
    display:
        grid;
    gap:
        8px;
}

.ms-login-form label {
    color:
        #263640;
    font-size:
        13px;
    font-weight:
        700;
}

.ms-login-form input {
    width:
        100%;
    min-height:
        50px;
    box-sizing:
        border-box;
    padding:
        0 14px;
    border:
        1px solid #CFE0E3;
    border-radius:
        13px;
    outline:
        none;
    background:
        #FFFFFF;
    color:
        #0B1320;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ms-login-form input::placeholder {
    color:
        #9DAAAF;
}

.ms-login-form input:focus {
    border-color:
        #14B8A6;
    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.11);
}

.ms-password-control {
    position:
        relative;
}

.ms-password-control input {
    padding-right:
        64px;
}

.ms-password-toggle {
    position:
        absolute;
    top:
        50%;
    right:
        12px;
    transform:
        translateY(-50%);
    border:
        0;
    background:
        transparent;
    color:
        #0B7285;
    font-size:
        12px;
    font-weight:
        700;
    cursor:
        pointer;
}

.ms-login-options {
    min-height:
        18px;
    display:
        flex;
    align-items:
        center;
    justify-content:
        space-between;
    margin-top:
        -4px;
}

.ms-login-options a {
    color:
        #0B7285;
    font-size:
        12px;
    font-weight:
        700;
    text-decoration:
        none;
}

.ms-login-submit {
    min-height:
        52px;
    display:
        flex;
    align-items:
        center;
    justify-content:
        center;
    gap:
        9px;
    border:
        0;
    border-radius:
        13px;
    background:
        linear-gradient(
            90deg,
            #058A9E 0%,
            #18A4A9 52%,
            #27BCB5 100%
        );
    color:
        #FFFFFF;
    font-size:
        14px;
    font-weight:
        800;
    cursor:
        pointer;
    box-shadow:
        0 12px 28px rgba(11, 114, 133, 0.21);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.ms-login-submit:hover {
    transform:
        translateY(-1px);
    box-shadow:
        0 16px 34px rgba(11, 114, 133, 0.27);
}

.ms-login-help {
    margin-top:
        22px;
    text-align:
        center;
    color:
        #77878E;
    font-size:
        12px;
}

.ms-login-help a {
    color:
        #0B7285;
    font-weight:
        700;
    text-decoration:
        none;
}

.ms-login-security {
    display:
        grid;
    grid-template-columns:
        38px
        minmax(0, 1fr);
    gap:
        12px;
    align-items:
        center;
    margin-top:
        24px;
    padding:
        15px;
    border:
        1px solid #D9EDEE;
    border-radius:
        15px;
    background:
        #F4FBFA;
}

.ms-login-security-icon {
    width:
        36px;
    height:
        36px;
    display:
        grid;
    place-items:
        center;
    border-radius:
        11px;
    background:
        #D9F4F0;
    color:
        #0B7285;
    font-size:
        15px;
    font-weight:
        900;
}

.ms-login-security strong,
.ms-login-security span {
    display:
        block;
}

.ms-login-security strong {
    color:
        #19333C;
    font-size:
        12px;
}

.ms-login-security span {
    margin-top:
        2px;
    color:
        #74848C;
    font-size:
        11px;
    line-height:
        1.45;
}

@media (max-width: 1180px) {

    .ms-login-shell {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, 0.82fr);
    }

    .ms-login-brand-content {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .ms-login-phone {
        display:
            none;
    }
}

@media (min-width: 901px) {

    .ms-login-page {
        height: 100vh;
        overflow-y: hidden;
    }

    .ms-login-shell,
    .ms-login-brand,
    .ms-login-brand-inner,
    .ms-login-form-side {
        height: 100vh;
        min-height: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 900px) {

    .ms-login-shell {
        display:
            block;
    }

    .ms-login-brand {
        min-height:
            auto;
    }

    .ms-login-brand-inner {
        min-height:
            auto;
        padding:
            34px 28px 42px;
    }

    .ms-login-brand-content {
        padding:
            44px 0 34px;
    }

    .ms-login-copy h1 {
        font-size:
            clamp(42px, 9vw, 64px);
    }

    .ms-login-form-side {
        min-height:
            auto;
        padding:
            80px 24px 52px;
    }

    .ms-login-top-link {
        top:
            28px;
        right:
            28px;
    }
}

@media (max-width: 600px) {

    .ms-login-brand-inner {
        padding:
            26px 20px 34px;
    }

    .ms-login-brand-header {
        align-items:
            flex-start;
        flex-direction:
            column;
    }

    .ms-login-brand-logo {
        width:
            210px;
    }

    .ms-login-brand-tag {
        white-space:
            normal;
    }

    .ms-login-copy h1 {
        font-size:
            44px;
    }

    .ms-login-benefit {
        grid-template-columns:
            40px
            minmax(0, 1fr);
    }

    .ms-login-brand-footer {
        align-items:
            flex-start;
        flex-direction:
            column;
    }

    .ms-login-brand-footer i {
        display:
            none;
    }

    .ms-login-form-side {
        padding:
            76px 16px 32px;
    }

    .ms-login-top-link {
        right:
            18px;
        left:
            18px;
        text-align:
            center;
    }

    .ms-login-card {
        padding:
            30px 22px;
        border-radius:
            20px;
    }

    .ms-login-card-logo {
        width:
            185px;
    }

    .ms-login-heading h1 {
        font-size:
            31px;
    }
}

/* ============================================================
   MY SCRUBBERS · PASSWORD RESET
   ============================================================ */

.ms-reset-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(20, 184, 166, 0.08),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #F9FCFC 0%,
            #EEF7F8 100%
        );
    color:
        #0B1320;
}

.ms-reset-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ms-reset-panel {
    width: min(100%, 560px);
}

.ms-reset-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #0B7285;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ms-reset-card {
    padding: 42px;
    border: 1px solid rgba(11, 114, 133, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 80px rgba(11, 19, 32, 0.10);
}

.ms-reset-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    margin-bottom: 30px;
}

.ms-reset-heading {
    margin-bottom: 28px;
}

.ms-reset-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #0B7285;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.ms-reset-heading h1 {
    margin: 0;
    color: #0B1320;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ms-reset-heading p {
    margin: 12px 0 0;
    color: #657780;
    font-size: 15px;
    line-height: 1.65;
}

.ms-reset-form {
    display: grid;
    gap: 18px;
}

.ms-reset-form .form-group {
    display: grid;
    gap: 8px;
}

.ms-reset-form label {
    color: #263640;
    font-size: 13px;
    font-weight: 700;
}

.ms-reset-form input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #CFE0E3;
    border-radius: 13px;
    outline: none;
    background: #FFFFFF;
    color: #0B1320;
    font: inherit;
}

.ms-reset-form input:focus {
    border-color: #14B8A6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.11);
}

.ms-reset-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            90deg,
            #058A9E 0%,
            #18A4A9 52%,
            #27BCB5 100%
        );
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(11, 114, 133, 0.21);
}

.ms-reset-success {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 16px;
    border: 1px solid #CFEBDD;
    border-radius: 15px;
    background: #F1FBF5;
}

.ms-reset-success-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #DDF4E5;
    color: #238B57;
    font-weight: 900;
}

.ms-reset-success strong,
.ms-reset-success span {
    display: block;
}

.ms-reset-success strong {
    color: #183D29;
    font-size: 13px;
}

.ms-reset-success span {
    margin-top: 4px;
    color: #62766A;
    font-size: 12px;
    line-height: 1.5;
}

.ms-reset-security {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding: 15px;
    border: 1px solid #D9EDEE;
    border-radius: 15px;
    background: #F4FBFA;
}

.ms-reset-security-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #D9F4F0;
    color: #0B7285;
    font-size: 15px;
    font-weight: 900;
}

.ms-reset-security strong,
.ms-reset-security span {
    display: block;
}

.ms-reset-security strong {
    color: #19333C;
    font-size: 12px;
}

.ms-reset-security span {
    margin-top: 2px;
    color: #74848C;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 600px) {

    .ms-reset-shell {
        padding: 24px 14px;
    }

    .ms-reset-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .ms-reset-logo {
        width: 205px;
    }

    .ms-reset-heading h1 {
        font-size: 30px;
    }
}

/* ============================================================
   SERVICE PROVIDERS LIST
   ============================================================ */

.providers-list-page {
    --provider-navy: #0b1320;
    --provider-teal: #0b7285;
    --provider-accent: #14b8a6;
    --provider-light: #e6f4f6;
}


.providers-list-page .content-card {
    padding: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--card-border);
    border-radius: 18px;

    box-shadow: var(--card-shadow);
}


.providers-list-page .table-wrapper {
    overflow-x: auto;
}


.providers-list-page .data-table {
    width: 100%;
    min-width: 1050px;

    border-collapse: collapse;
}


.providers-list-page .data-table th {
    padding: 13px 20px;

    color: #667085;
    background: #f7fafb;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.providers-list-page .data-table td {
    padding: 18px 20px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 14px;
}


.providers-list-page .data-table tbody tr {
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}


.providers-list-page .data-table tbody tr:hover {
    background: #f9fbfc;
}


.providers-list-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Provider identity */

.providers-list-page .provider-cell {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 245px;
}


.providers-list-page .provider-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    color: #0b7285;

    background:
        linear-gradient(
            145deg,
            rgba(230, 244, 246, 0.95),
            rgba(20, 184, 166, 0.09)
        );

    border: 1px solid #d5e9ec;
    border-radius: 13px;

    font-size: 15px;
    font-weight: 800;
}


.providers-list-page .provider-cell-copy {
    min-width: 0;
}


.providers-list-page .provider-name-link {
    display: inline-block;

    color: #101828;

    text-decoration: none;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}


.providers-list-page .provider-name-link:hover {
    color: #0b7285;
}


.providers-list-page .provider-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px;

    margin-top: 4px;

    color: #718087;

    font-size: 12px;
    line-height: 1.4;
}


.providers-list-page .provider-meta-dot {
    color: #b7c2c6;
}


/* Provider type */

.providers-list-page .type-label {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    color: #344054;
    background: #f2f4f7;

    border-radius: 999px;

    text-transform: capitalize;

    font-size: 11px;
    font-weight: 700;
}


/* Status */

.providers-list-page .status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    text-transform: capitalize;

    font-size: 11px;
    font-weight: 700;
}


.providers-list-page .status-active,
.providers-list-page .status-completed {
    color: #027a48;
    background: #ecfdf3;
}


.providers-list-page .status-in_progress {
    color: #0b7285;
    background: #e6f4f6;
}


.providers-list-page .status-not_started,
.providers-list-page .status-inactive,
.providers-list-page .status-archived {
    color: #667085;
    background: #f2f4f7;
}


.providers-list-page .status-suspended,
.providers-list-page .status-cancelled {
    color: #b54708;
    background: #fffaeb;
}


/* Customer count */

.providers-list-page td strong {
    color: #101828;
}


.providers-list-page .table-secondary {
    margin-top: 3px;

    color: #718087;

    font-size: 12px;
    line-height: 1.4;
}


/* Ownership policy */

.providers-list-page .provider-policy {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    max-width: 235px;
}


.providers-list-page .provider-policy-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    margin-top: 5px;

    border-radius: 50%;
}


.providers-list-page .provider-policy strong {
    display: block;

    color: #101828;

    font-size: 13px;
    line-height: 1.3;
}


.providers-list-page .provider-policy span:not(.provider-policy-dot) {
    display: block;

    margin-top: 2px;

    color: #718087;

    font-size: 11px;
    line-height: 1.4;
}


.providers-list-page .provider-policy-scrubbers .provider-policy-dot {
    background: #14b8a6;

    box-shadow:
        0 0 0 4px rgba(20, 184, 166, 0.10);
}


.providers-list-page .provider-policy-provider .provider-policy-dot {
    background: #98a2b3;

    box-shadow:
        0 0 0 4px rgba(152, 162, 179, 0.10);
}


/* Primary page action */

.providers-list-page .page-header-actions .primary-button {
    min-height: 42px;

    padding: 0 17px;

    background:
        linear-gradient(
            90deg,
            #058a9e 0%,
            #18a4a9 52%,
            #27bcb5 100%
        );

    border: 0;
    border-radius: 11px;

    box-shadow:
        0 7px 16px rgba(11, 114, 133, 0.16);
}


.providers-list-page .page-header-actions .primary-button:hover {
    background:
        linear-gradient(
            90deg,
            #047b8d 0%,
            #15969b 52%,
            #21aca6 100%
        );

    box-shadow:
        0 9px 20px rgba(11, 114, 133, 0.20);
}


/* Responsive */

@media (max-width: 760px) {

    .providers-list-page .content-card {
        border-radius: 15px;
    }

    .providers-list-page .data-table th,
    .providers-list-page .data-table td {
        padding-left: 16px;
        padding-right: 16px;
    }

}

/* ============================================================
   SCRUBBERSOS UI SYSTEM — DASHBOARD ALIGNMENT
   ============================================================ */

.app-shell {
    background: var(--surface-page);
}


/* Sidebar */

.sidebar {
    color: rgba(255, 255, 255, 0.78);

    background: var(--scrubbers-navy);
}


.sidebar-nav .nav-section {
    color: rgba(255, 255, 255, 0.38);
}


.sidebar-nav .nav-item {
    color: rgba(255, 255, 255, 0.72);

    border-radius: var(--radius-control);
}


.sidebar-nav .nav-item:hover {
    color: var(--scrubbers-white);

    background: rgba(255, 255, 255, 0.06);
}


.sidebar-nav .nav-item.active {
    color: var(--scrubbers-white);

    background: rgba(20, 184, 166, 0.14);

    box-shadow:
        inset 3px 0 0 var(--scrubbers-accent);
}


/* Main content */

.main-content {
    background: var(--surface-page);
}


.topbar h1 {
    color: var(--text-primary);

    font-family: var(--font-interface);
    font-weight: 600;
}


.welcome-panel h2 {
    color: var(--text-primary);

    font-weight: 600;
}


.welcome-panel p {
    color: var(--text-secondary);
}


/* Canonical primary CTA */

.primary-button,
.primary-button.compact {
    color: var(--scrubbers-white);

    background: var(--gradient-primary);

    border: 0;
    border-radius: var(--radius-button);

    box-shadow:
        0 8px 18px rgba(11, 114, 133, 0.14);

    font-family: var(--font-interface);
    font-weight: 600;
}


.primary-button:hover,
.primary-button.compact:hover {
    filter: brightness(0.96);

    box-shadow:
        0 10px 22px rgba(11, 114, 133, 0.18);
}


/* Canonical cards */

.dashboard-card,
.content-card,
.stat-card {
    background: var(--surface-default);

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);
}


/* KPI cards */

.stat-card {
    padding: 22px;
}


.stat-label {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;
}


.stat-value {
    color: var(--text-primary);

    font-weight: 700;
}


.stat-meta {
    color: var(--text-muted);
}


.stat-icon {
    color: var(--scrubbers-teal);

    background: var(--scrubbers-light-blue);

    border-radius: 12px;
}


/* Dashboard card headings */

.dashboard-card .card-heading {
    margin-bottom: 18px;
}


.dashboard-card .card-heading h3 {
    margin: 5px 0 0;

    color: var(--text-primary);

    font-size: 17px;
    font-weight: 600;
}


.dashboard-card .eyebrow {
    color: var(--scrubbers-teal);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
}


/* ============================================================
   DASHBOARD DATA TABLE
   ============================================================ */

.dashboard-table-wrapper {
    overflow-x: auto;

    margin:
        0
        -20px
        -20px;
}


.dashboard-data-table {
    width: 100%;
    min-width: 720px;

    border-collapse: collapse;
}


.dashboard-data-table th {
    padding: 12px 18px;

    color: var(--text-secondary);
    background: var(--surface-soft);

    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);

    text-align: left;
    text-transform: uppercase;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
}


.dashboard-data-table td {
    padding: 15px 18px;

    color: #344054;

    border-bottom: 1px solid #edf1f2;

    vertical-align: middle;

    font-size: 13px;
}


.dashboard-data-table tbody tr:last-child td {
    border-bottom: 0;
}


.dashboard-data-table tbody tr {
    transition:
        background var(--motion-fast) ease;
}


.dashboard-data-table tbody tr:hover {
    background: #f9fbfc;
}


.dashboard-table-primary {
    color: var(--text-primary);

    font-weight: 600;
}


.schedule-time-cell {
    display: grid;

    gap: 2px;
}


.schedule-time-cell strong {
    color: var(--text-primary);

    font-weight: 600;
}


.schedule-time-cell span {
    color: var(--text-muted);

    font-size: 11px;
}


/* ============================================================
   STATUS PILLS
   ============================================================ */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 4px 9px;

    border-radius: var(--radius-pill);

    font-size: 10px;
    font-weight: 600;

    text-transform: capitalize;
}


.status-active,
.status-completed,
.status-confirmed {
    color: #218838;

    background: var(--success-soft);
}


.status-provisional,
.status-pending {
    color: #9a6700;

    background: var(--warning-soft);
}


.status-cancelled,
.status-failed {
    color: #b42318;

    background: var(--error-soft);
}


.status-draft,
.status-inactive {
    color: var(--text-secondary);

    background: #eef1f3;
}

/* ============================================================
   SCRUBBERSOS SIDEBAR NAVIGATION
   ============================================================ */

.nav-item {
    gap: 10px;
}


.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    color: rgba(255, 255, 255, 0.56);
}


.nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.nav-item:hover .nav-icon {
    color: rgba(255, 255, 255, 0.92);
}


.nav-item.active .nav-icon {
    color: var(--scrubbers-accent);
}


/* Planned modules displayed without dead links */

.nav-future-item {
    min-height: 34px;

    display: flex;
    align-items: center;

    margin: 1px 0;

    padding: 0 12px 0 42px;

    color: rgba(255, 255, 255, 0.28);

    font-size: 11px;
    font-weight: 500;

    cursor: default;
}


.nav-future-item::after {
    content: "Soon";

    margin-left: auto;

    padding: 2px 6px;

    color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.05);

    border-radius: var(--radius-pill);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ============================================================
   SCRUBBERSOS SIDEBAR — FINAL VISIBILITY PASS
   ============================================================ */


/* Keep the navigation scrollable and make that clear */

.sidebar-nav {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 5px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(20, 184, 166, 0.38)
        rgba(255, 255, 255, 0.04);
}


.sidebar-nav::-webkit-scrollbar {
    display: block;

    width: 5px;
}


.sidebar-nav::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, 0.035);

    border-radius: 999px;
}


.sidebar-nav::-webkit-scrollbar-thumb {
    background:
        rgba(20, 184, 166, 0.38);

    border-radius: 999px;
}


.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background:
        rgba(20, 184, 166, 0.58);
}


/* Main navigation typography */

.sidebar .nav-item {
    color:
        rgba(255, 255, 255, 0.94);

    font-weight: 500;
}


.sidebar .nav-item .nav-icon {
    color:
        rgba(255, 255, 255, 0.62);
}


.sidebar .nav-item:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.07);
}


.sidebar .nav-item:hover .nav-icon {
    color: #ffffff;
}


.sidebar .nav-item.active {
    color: #ffffff;

    background:
        rgba(20, 184, 166, 0.15);

    box-shadow:
        inset 3px 0 0
        var(--scrubbers-accent);
}


.sidebar .nav-item.active .nav-icon {
    color:
        var(--scrubbers-accent);
}


/* Section headings */

.sidebar .nav-section {
    color:
        rgba(255, 255, 255, 0.52);

    font-weight: 700;
}


/* Planned modules */

.sidebar .nav-future-item {
    color:
        rgba(255, 255, 255, 0.48);
}


.sidebar .nav-future-item::after {
    color:
        rgba(255, 255, 255, 0.52);

    background:
        rgba(255, 255, 255, 0.07);
}


/* User area */

.sidebar-user {
    flex-shrink: 0;
}


.sidebar-user .user-name {
    color: #ffffff;
}


.sidebar-user .user-role {
    color:
        rgba(255, 255, 255, 0.58);
}


.sidebar-logout {
    color:
        rgba(255, 255, 255, 0.72);
}


.sidebar-logout:hover {
    color: #ffffff;
}

/* ============================================================
   PROVIDER PROFILE
   ============================================================ */

.provider-profile-page {
    min-width: 0;
}


.provider-profile-tabs {
    margin-bottom: 28px;
}


.provider-profile-tabs .provider-tab-planned {
    cursor: default;

    color: var(--text-muted);
}


.provider-profile-tabs .provider-tab-planned:hover {
    color: var(--text-muted);
}


.provider-overview-heading {
    margin-bottom: 18px;
}


.provider-overview-heading h2 {
    margin: 4px 0 4px;

    color: var(--text-primary);

    font-size: 20px;
    font-weight: 600;
}


.provider-overview-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   PROVIDER OVERVIEW SUMMARY
   ============================================================ */

.provider-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;
}


.provider-summary-card {
    min-width: 0;

    padding: 20px;

    background: var(--surface-default);

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);
}


.provider-summary-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
}


.provider-summary-card-header h3 {
    margin: 4px 0 0;

    color: var(--text-primary);

    font-size: 16px;
    font-weight: 600;
}


.provider-summary-details {
    display: grid;

    gap: 13px;
}


.provider-summary-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding-bottom: 11px;

    border-bottom: 1px solid #edf1f2;
}


.provider-summary-details > div:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.provider-summary-details span {
    color: var(--text-muted);

    font-size: 11px;
}


.provider-summary-details strong {
    color: var(--text-primary);

    text-align: right;

    font-size: 12px;
    font-weight: 600;
}


.provider-metric-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.provider-mini-metric {
    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-mini-metric span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}


.provider-mini-metric strong {
    display: block;

    margin: 6px 0 2px;

    color: var(--text-primary);

    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}


.provider-mini-metric small {
    color: var(--text-muted);

    font-size: 10px;
}


.provider-ownership-summary {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}


.provider-policy-indicator {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    margin-top: 5px;

    background: var(--scrubbers-accent);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px
        rgba(20, 184, 166, 0.10);
}


.provider-policy-indicator.muted {
    background: #98a2b3;

    box-shadow:
        0 0 0 4px
        rgba(152, 162, 179, 0.10);
}


.provider-ownership-summary strong {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}


.provider-ownership-summary p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


@media (max-width: 950px) {

    .provider-summary-grid {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   PROVIDER PROFILE
   ============================================================ */

.provider-profile-page {
    min-width: 0;
}


.provider-profile-tabs {
    margin-bottom: 28px;
}


.provider-profile-tabs .provider-tab-planned {
    cursor: default;
    color: var(--text-muted);
}


.provider-profile-tabs .provider-tab-planned:hover {
    color: var(--text-muted);
}


.provider-overview-heading {
    margin-bottom: 18px;
}


.provider-overview-heading h2 {
    margin: 4px 0 4px;

    color: var(--text-primary);

    font-size: 20px;
    font-weight: 600;
}


.provider-overview-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}


/* ============================================================
   PROVIDER OVERVIEW SUMMARY
   ============================================================ */

.provider-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;
}


.provider-summary-card {
    min-width: 0;

    padding: 20px;

    background: var(--surface-default);

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);
}


.provider-summary-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
}


.provider-summary-card-header h3 {
    margin: 4px 0 0;

    color: var(--text-primary);

    font-size: 16px;
    font-weight: 600;
}


.provider-summary-details {
    display: grid;

    gap: 13px;
}


.provider-summary-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding-bottom: 11px;

    border-bottom: 1px solid #edf1f2;
}


.provider-summary-details > div:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.provider-summary-details span {
    color: var(--text-muted);

    font-size: 11px;
}


.provider-summary-details strong {
    color: var(--text-primary);

    text-align: right;

    font-size: 12px;
    font-weight: 600;
}


.provider-metric-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.provider-mini-metric {
    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-mini-metric span {
    display: block;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}


.provider-mini-metric strong {
    display: block;

    margin: 6px 0 2px;

    color: var(--text-primary);

    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}


.provider-mini-metric small {
    color: var(--text-muted);

    font-size: 10px;
}


.provider-ownership-summary {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}


.provider-policy-indicator {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    margin-top: 5px;

    background: var(--scrubbers-accent);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px
        rgba(20, 184, 166, 0.10);
}


.provider-policy-indicator.muted {
    background: #98a2b3;

    box-shadow:
        0 0 0 4px
        rgba(152, 162, 179, 0.10);
}


.provider-ownership-summary strong {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}


.provider-ownership-summary p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


/* Onboarding actions inside summary card */

.provider-summary-actions {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid var(--border-soft);
}


.provider-summary-actions form {
    margin: 0;
}


.provider-summary-actions .primary-button {
    width: 100%;
}


/* Temporary contact summary */

.provider-contact-summary {
    padding: 20px;
}


.provider-contact-summary .card-header {
    margin-bottom: 18px;
}


@media (max-width: 950px) {

    .provider-summary-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .provider-metric-row {
        grid-template-columns: 1fr;
    }

    .provider-summary-details > div {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .provider-summary-details strong {
        text-align: left;
    }

}

/* ============================================================
   PROVIDER BUSINESS TAB
   ============================================================ */

.provider-business-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.provider-business-wide {
    grid-column: 1 / -1;
}


.provider-business-note {
    margin-top: 18px;

    padding: 14px;

    background: var(--scrubbers-light-blue);

    border: 1px solid #d6eaed;
    border-radius: 12px;
}


.provider-business-note strong {
    display: block;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-business-note p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


.provider-address-display {
    display: grid;

    gap: 4px;
}


.provider-address-display strong {
    color: var(--text-primary);

    font-size: 14px;
    font-weight: 600;
}


.provider-address-display span {
    color: var(--text-secondary);

    font-size: 12px;
}


.provider-foundation-message {
    max-width: 760px;
}


.provider-foundation-message p {
    margin: 0 0 10px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.6;
}


.provider-foundation-message p:last-child {
    margin-bottom: 0;
}


@media (max-width: 950px) {

    .provider-business-grid {
        grid-template-columns: 1fr;
    }

    .provider-business-wide {
        grid-column: auto;
    }

}

/* ============================================================
   PROVIDER BUSINESS — MIGRATION 016 CARDS
   ============================================================ */

.provider-contact-privacy {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}


.provider-contact-privacy strong {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 600;
}


.provider-contact-privacy p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


.provider-contact-flags {
    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid var(--border-soft);
}


.provider-empty-state {
    padding: 16px;

    background: var(--surface-soft);

    border: 1px dashed var(--border-soft);
    border-radius: 12px;
}


.provider-empty-state strong {
    display: block;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-empty-state p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}

/* ============================================================
   PROVIDER BUSINESS EDIT MODAL
   ============================================================ */

.provider-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 18px;
}


.provider-section-heading h2 {
    margin: 4px 0 4px;

    color: var(--text-primary);

    font-size: 20px;
    font-weight: 600;
}


.provider-section-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}


/* Modal shell */

.app-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;
}


.app-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}


.app-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(11, 19, 32, 0.62);

    backdrop-filter: blur(3px);
}


.app-modal-dialog {
    position: relative;

    z-index: 1;

    display: flex;
    flex-direction: column;

    width: min(960px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);

    overflow: hidden;

    background: var(--surface-default);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 18px;

    box-shadow:
        0 28px 80px
        rgba(11, 19, 32, 0.28);
}


.provider-business-modal-dialog {
    width: min(1020px, calc(100vw - 40px));
}


.app-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px;

    border-bottom: 1px solid var(--border-soft);
}


.app-modal-header h2 {
    margin: 4px 0 4px;

    color: var(--text-primary);

    font-size: 20px;
    font-weight: 600;
}


.app-modal-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}


.app-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    background: var(--surface-soft);

    color: var(--text-secondary);

    border: 1px solid var(--border-soft);
    border-radius: 10px;

    cursor: pointer;

    font-size: 22px;
    line-height: 1;
}


.app-modal-close:hover {
    color: var(--text-primary);

    background: #edf3f4;
}


.app-modal-body {
    flex: 1;

    overflow-y: auto;

    padding: 24px;

    background: var(--surface-soft);
}


.app-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 16px 24px;

    background: var(--surface-default);

    border-top: 1px solid var(--border-soft);
}


body.modal-open {
    overflow: hidden;
}


/* Form sections */

.provider-form-section {
    margin-bottom: 18px;
    padding: 20px;

    background: var(--surface-default);

    border: 1px solid var(--border-soft);
    border-radius: 16px;

    box-shadow: var(--shadow-card);
}


.provider-form-section:last-child {
    margin-bottom: 0;
}


.provider-form-section-heading {
    margin-bottom: 18px;
}


.provider-form-section-heading h3 {
    margin: 4px 0 0;

    color: var(--text-primary);

    font-size: 15px;
    font-weight: 600;
}


.provider-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.provider-form-wide {
    grid-column: 1 / -1;
}


.form-field {
    display: grid;

    gap: 6px;
}


.form-field label {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}


.form-field input,
.form-field select {
    width: 100%;

    min-height: 42px;

    padding: 9px 11px;

    background: #ffffff;

    color: var(--text-primary);

    border: 1px solid var(--border-soft);
    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
}


.form-field input:focus,
.form-field select:focus {
    outline: none;

    border-color: var(--scrubbers-primary);

    box-shadow:
        0 0 0 3px
        rgba(11, 114, 133, 0.10);
}


/* Permission controls */

.provider-permission-list {
    display: grid;

    gap: 12px;
}


.provider-permission-option {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;

    cursor: pointer;
}


.provider-permission-option input {
    margin-top: 3px;
}


.provider-permission-option span {
    display: grid;

    gap: 3px;
}


.provider-permission-option strong {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-permission-option small {
    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}


@media (max-width: 720px) {

    .provider-section-heading {
        align-items: stretch;
        flex-direction: column;
    }


    .provider-form-grid {
        grid-template-columns: 1fr;
    }


    .provider-form-wide {
        grid-column: auto;
    }


    .app-modal-dialog,
    .provider-business-modal-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

}

/* ============================================================
   FIX — PROVIDER BUSINESS MODAL SCROLLING
   ============================================================ */

.provider-business-form {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    overflow: hidden;
}


.provider-business-form .app-modal-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
}


.provider-business-form .app-modal-footer {
    flex: 0 0 auto;
}


.provider-business-modal-dialog {
    display: flex;
    flex-direction: column;

    height: min(900px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
}


.provider-business-modal-dialog .app-modal-header {
    flex: 0 0 auto;
}

/* ============================================================
   PROVIDER SERVICES & COVERAGE
   ============================================================ */

.provider-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.provider-card-heading h2 {
    margin: 4px 0 4px;

    color: var(--text-primary);

    font-size: 18px;
    font-weight: 600;
}


.provider-card-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


.provider-services-card,
.provider-coverage-card {
    margin-top: 16px;
}



/*
 * Large Provider section cards use an inset heading
 * while tables remain full-width beneath it.
 */
.provider-services-card > .provider-card-heading,
.provider-coverage-card > .provider-card-heading {
    margin-bottom: 0;
    padding: 24px 24px 20px;
}

.provider-services-table-wrap {
    overflow-x: auto;
}


.provider-services-table {
    width: 100%;
}


.provider-service-name {
    display: grid;

    gap: 2px;
}


.provider-service-name strong {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-service-name span {
    color: var(--text-muted);

    font-size: 10px;
}


.provider-service-not-enabled {
    display: inline-flex;

    padding: 4px 8px;

    background: var(--surface-soft);

    color: var(--text-muted);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 600;
}


.provider-service-approval {
    display: grid;

    gap: 2px;
}


.provider-service-approval strong {
    color: var(--text-primary);

    font-size: 11px;
    font-weight: 600;
}


.provider-service-approval span {
    color: var(--text-muted);

    font-size: 10px;
}


.provider-yes {
    color: var(--success);

    font-size: 11px;
    font-weight: 600;
}


.provider-no {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;
}


/* Coverage areas */

.provider-coverage-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.provider-coverage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-coverage-item > div {
    display: grid;

    gap: 2px;
}


.provider-coverage-item strong {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-coverage-item > div > span {
    color: var(--text-muted);

    font-size: 10px;
}


.provider-coverage-preference {
    display: inline-flex;

    padding: 4px 8px;

    border-radius: 999px;

    text-transform: capitalize;

    font-size: 9px;
    font-weight: 600;
}


.provider-coverage-preference-standard {
    background: #edf1f2;

    color: var(--text-secondary);
}


.provider-coverage-preference-preferred {
    background: rgba(20, 184, 166, 0.12);

    color: var(--scrubbers-primary);
}


.provider-coverage-preference-excluded {
    background: rgba(239, 68, 68, 0.10);

    color: var(--error);
}


.provider-operational-note {
    margin-top: 12px;

    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-operational-note:first-of-type {
    margin-top: 0;
}


.provider-operational-note strong {
    color: var(--text-primary);

    font-size: 11px;
    font-weight: 600;
}


.provider-operational-note p {
    margin: 4px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
}


@media (max-width: 950px) {

    .provider-coverage-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .provider-coverage-list {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   PROVIDER SERVICES & COVERAGE EDIT
   ============================================================ */

.provider-services-form {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    overflow: hidden;
}


.provider-services-form .app-modal-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
}


.provider-services-modal-dialog {
    display: flex;
    flex-direction: column;

    width: min(1080px, calc(100vw - 40px));

    height: min(900px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
}


.provider-services-modal-dialog .app-modal-header {
    flex: 0 0 auto;
}


.provider-service-edit-list {
    display: grid;

    gap: 10px;
}


.provider-service-edit-row {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        180px
        150px;

    align-items: center;

    gap: 16px;

    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-service-edit-name {
    display: grid;

    gap: 3px;
}


.provider-service-edit-name strong {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}


.provider-service-edit-name span {
    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.4;
}


.provider-bookable-control {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}


.provider-bookable-control input:disabled + span {
    opacity: 0.45;
}


.provider-capacity-switches {
    margin-top: 18px;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


.provider-form-note-field {
    margin-top: 18px;
}


.form-field textarea {
    width: 100%;

    padding: 10px 11px;

    resize: vertical;

    background: #ffffff;

    color: var(--text-primary);

    border: 1px solid var(--border-soft);
    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
}


.form-field textarea:focus {
    outline: none;

    border-color: var(--scrubbers-primary);

    box-shadow:
        0 0 0 3px
        rgba(11, 114, 133, 0.10);
}


.provider-form-section-heading p {
    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}


.provider-form-heading-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}


/* Coverage area editor */

.provider-area-editor {
    display: grid;

    gap: 10px;
}


.provider-area-editor-row {
    display: grid;

    grid-template-columns:
        170px
        minmax(180px, 1fr)
        150px
        38px;

    align-items: end;

    gap: 10px;

    padding: 12px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);
    border-radius: 12px;
}


.provider-area-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 42px;

    padding: 0;

    background: rgba(239, 68, 68, 0.07);

    color: var(--error);

    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;

    cursor: pointer;

    font-size: 20px;
}


.provider-area-remove:hover {
    background: rgba(239, 68, 68, 0.12);
}


.provider-empty-area-editor {
    margin-top: 10px;

    padding: 14px;

    color: var(--text-muted);

    text-align: center;

    background: var(--surface-soft);

    border: 1px dashed var(--border-soft);
    border-radius: 12px;

    font-size: 11px;
}


.provider-empty-area-editor[hidden] {
    display: none;
}


@media (max-width: 850px) {

    .provider-service-edit-row {
        grid-template-columns: 1fr;
    }


    .provider-capacity-switches {
        grid-template-columns: 1fr;
    }


    .provider-area-editor-row {
        grid-template-columns: 1fr;
    }


    .provider-area-remove {
        width: 100%;
    }


    .provider-form-heading-with-action {
        align-items: stretch;
        flex-direction: column;
    }

}


/* ============================================================
   PROVIDER COMPLIANCE
   ============================================================ */

/* =========================================================
   PROVIDER COMPLIANCE — STATUS PANEL
   ========================================================= */

.provider-compliance-status-panel {
    margin-bottom: 18px;

    background: var(--surface-default);

    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);

    overflow: hidden;
}


.provider-compliance-status-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.8fr);

    gap: 24px;

    padding: 22px 24px;
}


.provider-compliance-status-copy {
    min-width: 0;
}


.provider-compliance-status-heading {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-top: 8px;
}


.provider-compliance-status-heading h3 {
    margin: 0;

    color: var(--text-primary);

    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
}


.provider-compliance-status-heading p {
    max-width: 640px;

    margin: 5px 0 0;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.6;
}


.provider-compliance-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 10px;

    font-size: 18px;
    font-weight: 700;
}


.provider-compliance-status-icon.status-success {
    color: var(--success);

    background:
        rgba(64, 192, 87, 0.11);

    border:
        1px solid rgba(64, 192, 87, 0.22);
}


.provider-compliance-status-icon.status-warning {
    color: #B86B00;

    background:
        rgba(245, 158, 11, 0.11);

    border:
        1px solid rgba(245, 158, 11, 0.24);
}


/* Attention summary */

.provider-compliance-attention-summary {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    align-self: center;

    padding: 14px 16px;

    background: #FFFAEB;

    border: 1px solid #F5D98D;
    border-radius: 12px;
}


.provider-compliance-warning-triangle {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 22px;

    flex: 0 0 25px;

    margin-top: 1px;

    color: #8A5700;

    font-size: 12px;
    font-weight: 800;

    background: #FBBF24;

    clip-path:
        polygon(
            50% 0%,
            100% 100%,
            0% 100%
        );
}


.provider-compliance-attention-summary div {
    display: grid;

    gap: 3px;

    min-width: 0;
}


.provider-compliance-attention-summary strong {
    color: #684500;

    font-size: 12px;
    font-weight: 650;
}


.provider-compliance-attention-summary span:not(
    .provider-compliance-warning-triangle
) {
    color: #80621D;

    font-size: 11px;
    line-height: 1.5;
}


/* Compact summary strip */

.provider-compliance-summary-strip {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    border-top: 1px solid var(--border-soft);

    background: #F8FAFB;
}


.provider-compliance-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-width: 0;

    padding: 13px 18px;

    border-right: 1px solid var(--border-soft);
}


.provider-compliance-summary-item:last-child {
    border-right: 0;
}


.provider-compliance-summary-label {
    overflow: hidden;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.provider-compliance-summary-item strong {
    flex: 0 0 auto;

    color: var(--text-primary);

    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}


/* Compliance page heading actions */

.provider-compliance-heading-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* Requirement sections */

.provider-compliance-section {
    margin-top: 16px;
}

/* =========================================================
   PROVIDER COMPLIANCE — REQUIREMENT GRID
   ========================================================= */


/*
 * Compliance section cards:
 * inset the section heading and requirement grid
 * while preserving specialist requirement-card styling.
 */
.provider-compliance-section > .provider-card-heading {
    margin-bottom: 0;
    padding: 24px 24px 0;
}

.provider-compliance-section > .provider-compliance-list {
    margin-top: 0;
    padding: 20px 24px 24px;
}

.provider-compliance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-top: 18px;
}

.provider-compliance-list-single {
    grid-template-columns:
        minmax(0, 620px);
}


/* Individual requirement */

.provider-compliance-item {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: 18px;

    background: #FFFFFF;

    border: 1px solid #DDE5E9;
    border-radius: 14px;

    box-shadow:
        0 2px 8px rgba(11, 19, 32, 0.035);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}


.provider-compliance-item:hover {
    border-color: #C7D5DA;

    box-shadow:
        0 5px 16px rgba(11, 19, 32, 0.06);
}


/* Attention / verified states */

.provider-compliance-item-attention {
    border-top:
        3px solid
        rgba(245, 158, 11, 0.85);
}

.provider-compliance-item-submitted {
    border-top:
        3px solid
        rgba(34, 139, 230, 0.78);
}


.provider-compliance-item-review {
    border-top:
        3px solid
        rgba(11, 114, 133, 0.78);
}


.provider-compliance-item-critical {
    border-top:
        3px solid
        rgba(224, 49, 49, 0.82);
}

.provider-compliance-item-verified {
    border-top:
        3px solid
        rgba(64, 192, 87, 0.80);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.provider-compliance-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
}


.provider-compliance-card-title {
    min-width: 0;
}


.provider-compliance-card-title-line {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}


.provider-compliance-card-title-line > strong {
    color: var(--text-primary);

    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
}


.provider-compliance-service {
    display: inline-flex;

    margin-top: 6px;
    padding: 3px 7px;

    background: var(--scrubbers-light-blue);

    color: var(--scrubbers-primary);

    border-radius: 999px;

    font-size: 9px;
    font-weight: 600;
}


/* Warning triangle */

.provider-requirement-warning {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;

    width: 22px;
    height: 20px;

    flex: 0 0 22px;

    padding-bottom: 2px;

    color: #7A4B00;

    background: #FBBF24;

    clip-path:
        polygon(
            50% 0%,
            100% 100%,
            0% 100%
        );

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.provider-requirement-warning-critical {
    background: #E03131;

    color: #FFFFFF;
}

/* Verified icon */

.provider-requirement-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    color: #2F9E44;

    background: rgba(64, 192, 87, 0.12);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   ATTENTION MESSAGE
   ========================================================= */

.provider-requirement-alert {
    margin-top: 12px;
    padding: 8px 10px;

    background: #FFFAEB;

    border: 1px solid #F5D98D;
    border-radius: 9px;

    color: #775400;

    font-size: 10px;
    line-height: 1.45;
    font-weight: 600;
}


/* Description */

.provider-compliance-description {
    margin: 10px 0 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   FLAGS
   ========================================================= */

.provider-compliance-flags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 12px;
}


.provider-compliance-flag {
    display: inline-flex;

    padding: 4px 7px;

    background: #F7F9FA;

    color: var(--text-secondary);

    border: 1px solid var(--border-soft);
    border-radius: 999px;

    font-size: 8px;
    line-height: 1.2;
    font-weight: 600;
}


.provider-compliance-flag-priority {
    background: rgba(11, 114, 133, 0.07);

    color: var(--scrubbers-primary);

    border-color:
        rgba(11, 114, 133, 0.16);
}


/* =========================================================
   COMPACT META
   ========================================================= */

.provider-compliance-compact-meta {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    margin-top: 16px;

    background: #F8FAFB;

    border: 1px solid var(--border-soft);
    border-radius: 11px;

    overflow: hidden;
}



.provider-compliance-compact-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    min-width: 0;

    padding: 9px 11px;
}


.provider-compliance-compact-meta > div:nth-child(odd) {
    border-right:
        1px solid
        var(--border-soft);
}


.provider-compliance-compact-meta > div:nth-child(-n + 2) {
    border-bottom:
        1px solid
        var(--border-soft);
}


.provider-compliance-compact-meta span {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 500;
}


.provider-compliance-compact-meta strong {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 9px;
    font-weight: 650;

    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.provider-compliance-meta-warning {
    background: #FFFAEB;
}


.provider-compliance-meta-warning span,
.provider-compliance-meta-warning strong {
    color: #825900;
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.provider-compliance-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 16px;
}


.provider-compliance-card-actions .secondary-button {
    flex: 0 0 auto;
}


/* Native details control */

.provider-compliance-details {
    flex: 1 1 auto;

    min-width: 0;
}


.provider-compliance-details > summary {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--scrubbers-primary);

    cursor: pointer;

    font-size: 10px;
    font-weight: 650;

    list-style: none;
}


.provider-compliance-details > summary::-webkit-details-marker {
    display: none;
}


.provider-compliance-details > summary::after {
    content: "▾";

    font-size: 9px;

    transition:
        transform 150ms ease;
}


.provider-compliance-details[open] > summary::after {
    transform: rotate(180deg);
}


.provider-compliance-details-content {
    display: grid;

    gap: 10px;

    margin-top: 12px;
    padding: 12px;

    background: #F8FAFB;

    border: 1px solid var(--border-soft);
    border-radius: 10px;
}


/* Detail blocks */

.provider-compliance-detail-block {
    min-width: 0;
}


.provider-compliance-detail-block > span {
    display: block;

    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.provider-compliance-detail-block p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 9px;
    line-height: 1.55;
}


.provider-compliance-detail-internal {
    padding-left: 10px;

    border-left:
        2px solid
        var(--scrubbers-primary);
}


.provider-compliance-mini-documents {
    display: grid;

    gap: 5px;
}


.provider-compliance-mini-documents a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 7px 9px;

    color: var(--text-primary);

    background: #FFFFFF;

    border: 1px solid var(--border-soft);
    border-radius: 8px;

    text-decoration: none;

    font-size: 9px;
}


.provider-compliance-mini-documents a span {
    overflow: hidden;

    min-width: 0;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.provider-compliance-mini-documents a strong {
    flex: 0 0 auto;

    color: var(--scrubbers-primary);

    font-size: 9px;
    font-weight: 650;
}


.provider-compliance-no-details {
    margin: 0;

    color: var(--text-muted);

    font-size: 9px;
}


/* Compact action button */

.provider-compliance-card-actions .secondary-button.compact {
    padding: 7px 10px;

    font-size: 9px;
}


/* =========================================================
   PROVIDER COMPLIANCE — DOCUMENTS SECTION
   ========================================================= */

.provider-compliance-documents-section {
    margin-top: 18px;
}


.provider-compliance-documents-heading {
    align-items: center;
    gap: 18px;
}


.provider-compliance-documents-heading > div:first-child {
    min-width: 0;
}


.provider-compliance-documents-heading .primary-button {
    flex: 0 0 auto;
}



/*
 * Compliance Documents:
 * inset the heading while keeping the table full-width.
 */
.provider-compliance-documents-section >
.provider-compliance-documents-heading {
    margin-bottom: 0;
    padding: 24px 24px 20px;
}

/* Table wrapper */

.provider-compliance-documents-table-wrapper {
    margin-top: 0;

    overflow-x: auto;
}


/* Table sizing */

.provider-compliance-documents-table {
    min-width: 920px;
}


.provider-compliance-documents-table th:nth-child(1) {
    width: 24%;
}

.provider-compliance-documents-table th:nth-child(2) {
    width: 20%;
}

.provider-compliance-documents-table th:nth-child(3) {
    width: 13%;
}

.provider-compliance-documents-table th:nth-child(4) {
    width: 11%;
}

.provider-compliance-documents-table th:nth-child(5) {
    width: 11%;
}

.provider-compliance-documents-table th:nth-child(6) {
    width: 11%;
}

.provider-compliance-documents-table th:nth-child(7) {
    width: 10%;
}


/* Requirement name */

.provider-compliance-documents-table td > strong {
    color: var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}


/* Visibility pills */

.provider-document-visibility {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 9px;
    line-height: 1;
    font-weight: 650;

    white-space: nowrap;
}


.provider-document-visibility.provider-visible {
    color: var(--scrubbers-primary);

    background:
        rgba(11, 114, 133, 0.10);

    border:
        1px solid rgba(11, 114, 133, 0.14);
}


.provider-document-visibility.internal-only {
    color: var(--text-secondary);

    background: #F1F4F5;

    border: 1px solid var(--border-soft);
}


/* Empty state */

.provider-compliance-documents-empty {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 16px;
    padding: 22px;

    background: #F8FAFB;

    border: 1px dashed #CDD7DC;
    border-radius: 12px;
}


.provider-compliance-documents-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    color: var(--scrubbers-primary);

    background: var(--scrubbers-light-blue);

    border-radius: 10px;

    font-size: 20px;
    font-weight: 600;
}


.provider-compliance-documents-empty strong {
    display: block;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 650;
}


.provider-compliance-documents-empty p {
    margin: 4px 0 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.5;
}


/* Compliance status pills */

.status-not_started,
.status-awaiting_document {
    background: #edf1f2;

    color: var(--text-secondary);
}


.status-submitted {
    background: rgba(34, 139, 230, 0.10);

    color: #228BE6;
}


.status-under_review {
    background: rgba(11, 114, 133, 0.10);

    color: var(--scrubbers-primary);
}


.status-verified {
    background: rgba(64, 192, 87, 0.10);

    color: var(--success);
}


.status-due_soon {
    background: rgba(245, 158, 11, 0.11);

    color: var(--warning);
}


.status-expired,
.status-rejected {
    background: rgba(239, 68, 68, 0.10);

    color: var(--error);
}


.status-not_applicable {
    background: #edf1f2;

    color: var(--text-muted);
}


/* =========================================================
   PROVIDER COMPLIANCE — RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .provider-compliance-status-main {
        grid-template-columns: 1fr;
    }

    .provider-compliance-summary-strip {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .provider-compliance-summary-item:nth-child(3) {
        border-right: 0;
    }

    .provider-compliance-summary-item:nth-child(-n + 3) {
        border-bottom:
            1px solid
            var(--border-soft);
    }

}


@media (max-width: 900px) {

    .provider-compliance-list {
        grid-template-columns: 1fr;
    }
    
.provider-compliance-list-single {
    grid-template-columns: 1fr;
}

}


@media (max-width: 720px) {

    .provider-compliance-status-main {
        padding: 18px;
    }

    .provider-compliance-status-heading h3 {
        font-size: 17px;
    }

    .provider-compliance-summary-strip {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .provider-compliance-summary-item {
        border-right:
            1px solid
            var(--border-soft);

        border-bottom:
            1px solid
            var(--border-soft);
    }

    .provider-compliance-summary-item:nth-child(even) {
        border-right: 0;
    }

    .provider-compliance-summary-item:last-child {
        border-bottom: 0;
    }

    .provider-compliance-item {
        padding: 15px;
    }

    .provider-compliance-card-header {
        flex-direction: column;
    }

    .provider-compliance-card-header .status-pill {
        align-self: flex-start;
    }

.provider-compliance-documents-heading {
    align-items: stretch;
    flex-direction: column;
}

.provider-compliance-documents-heading .primary-button {
    width: 100%;
}

.provider-compliance-documents-empty {
    align-items: flex-start;
}

}


@media (max-width: 520px) {

    .provider-compliance-summary-strip {
        grid-template-columns: 1fr;
    }

    .provider-compliance-summary-item,
    .provider-compliance-summary-item:nth-child(even),
    .provider-compliance-summary-item:nth-child(3) {
        border-right: 0;

        border-bottom:
            1px solid
            var(--border-soft);
    }

    .provider-compliance-summary-item:last-child {
        border-bottom: 0;
    }

    .provider-compliance-compact-meta {
        grid-template-columns: 1fr;
    }

    .provider-compliance-compact-meta > div,
    .provider-compliance-compact-meta > div:nth-child(odd),
    .provider-compliance-compact-meta > div:nth-child(-n + 2) {
        border-right: 0;

        border-bottom:
            1px solid
            var(--border-soft);
    }

    .provider-compliance-compact-meta > div:last-child {
        border-bottom: 0;
    }

    .provider-compliance-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-compliance-card-actions .secondary-button {
        width: 100%;
    }

.provider-compliance-documents-empty {
    padding: 16px;
}

.provider-compliance-documents-empty-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
}

}

/* ============================================================
   FIX — COMPLIANCE MODAL SCROLLING
   ============================================================ */

.provider-compliance-form {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    overflow: hidden;
}


.provider-compliance-form .app-modal-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
}


.provider-compliance-form .app-modal-footer {
    flex: 0 0 auto;
}


.provider-compliance-modal-dialog {
    display: flex;
    flex-direction: column;

    height: min(900px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
}


.provider-compliance-modal-dialog .app-modal-header {
    flex: 0 0 auto;
}

/* ==========================================================
   DASHBOARD — ATTENTION ACTIONS
   ========================================================== */

.attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.attention-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.attention-item-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.attention-item-action {
    flex-shrink: 0;
}

.attention-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 8px;

    border-radius: 999px;

    background: #E6F4F6;
    color: #0B7285;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.attention-item-unread {
    position: relative;
}

.attention-item-unread::before {
    content: '';

    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #14B8A6;
}

.attention-item-compliance {
    border-left: 3px solid #0B7285;
}

@media (max-width: 700px) {

    .attention-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .attention-item-action {
        width: 100%;
    }

    .attention-item-action .secondary-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   COMPLIANCE REVIEW WORKSPACE
   ========================================================== */

.provider-compliance-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.compliance-review-dialog {
    width: min(1400px, 94vw);
    max-width: 1400px;
    max-height: 92vh;
}

.compliance-review-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.compliance-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    min-height: 0;
    overflow: hidden;
}

.compliance-review-preview {
    padding: 24px;
    background: #F3F5F7;
    border-right: 1px solid rgba(11, 19, 32, 0.1);
    min-width: 0;
}

.compliance-review-controls {
    padding: 24px;
    overflow-y: auto;
}

.compliance-review-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.compliance-review-section-heading h3 {
    margin: 4px 0 0;
}

.compliance-review-document-frame {
    height: 64vh;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(11, 19, 32, 0.12);
    border-radius: 12px;
    background: #FFFFFF;
}

.compliance-review-document-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.compliance-review-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px;
    margin-bottom: 20px;

    border-radius: 12px;
    background: #F3F5F7;
}

.compliance-review-current-status > span {
    font-size: 13px;
    font-weight: 600;
    color: #5B6470;
}

.compliance-review-controls .form-field {
    margin-bottom: 18px;
}

@media (max-width: 1000px) {

    .compliance-review-dialog {
        width: min(96vw, 900px);
    }

    .compliance-review-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .compliance-review-preview {
        border-right: 0;
        border-bottom: 1px solid rgba(11, 19, 32, 0.1);
    }

    .compliance-review-document-frame {
        height: 55vh;
        min-height: 420px;
    }

    .compliance-review-controls {
        overflow: visible;
    }
}

/* ==========================================================
   COMPLIANCE REVIEW DECISIONS
   ========================================================== */

.compliance-review-footer {
    justify-content: space-between;
}

.compliance-review-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 16px;

    border: 1px solid rgba(224, 49, 49, 0.28);
    border-radius: 10px;

    background: #FFFFFF;
    color: #E03131;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.danger-button:hover {
    background: rgba(224, 49, 49, 0.06);
    border-color: rgba(224, 49, 49, 0.45);
}

@media (max-width: 700px) {

    .compliance-review-footer,
    .compliance-review-footer-actions {
        width: 100%;
    }

    .compliance-review-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .compliance-review-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .compliance-review-footer button {
        width: 100%;
    }
}

/* ==========================================================
   COMPLIANCE CARD STATUS CONTROLS
   ========================================================== */

.provider-compliance-card-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 18px;
}

.provider-compliance-quick-status {
    display: flex;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
}

.provider-compliance-quick-status-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.provider-compliance-quick-status-field label {
    font-size: 12px;
    font-weight: 700;
    color: #5B6470;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.provider-compliance-quick-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.provider-compliance-quick-status select {
    width: 170px;
    min-width: 170px;
    min-height: 40px;

    padding: 8px 34px 8px 11px;

    border: 1px solid rgba(11, 19, 32, 0.14);
    border-radius: 10px;

    background: #FFFFFF;
    color: #0B1320;

    font: inherit;
}

.provider-compliance-card-actions >
.provider-compliance-quick-status:only-child {
    flex: 0 1 420px;
    max-width: 100%;
}


.provider-compliance-card-actions >
.provider-compliance-quick-status:only-child
.provider-compliance-quick-status-field {
    width: 100%;
}


.provider-compliance-card-actions >
.provider-compliance-quick-status:only-child
.provider-compliance-quick-status-row {
    width: 100%;
}


.provider-compliance-card-actions >
.provider-compliance-quick-status:only-child
select {
    width: auto;
    min-width: 0;
    flex: 1;
}

.provider-compliance-card-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-compliance-status-managed {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.provider-compliance-status-managed > span {
    font-size: 12px;
    font-weight: 700;
    color: #5B6470;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.provider-compliance-status-managed > strong {
    color: #0B1320;
}

.provider-compliance-status-managed > small {
    color: #5B6470;
}

@media (max-width: 900px) {

    .provider-compliance-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-compliance-quick-status,
    .provider-compliance-card-buttons {
        width: 100%;
    }

    .provider-compliance-card-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {

    .provider-compliance-quick-status-row {
        flex-wrap: wrap;
    }

    .provider-compliance-quick-status select {
        width: 100%;
        min-width: 0;
    }

    .provider-compliance-card-buttons {
        width: 100%;
    }

    .provider-compliance-card-buttons button {
        flex: 1;
    }
}

/* ============================================================
   PROVIDER UI CONSISTENCY
   Aligns Provider page-level cards with the shared ScrubbersOS
   card system without changing specialist internal components.
   ============================================================ */

/* Provider summary cards */
.provider-summary-card {
    padding: 24px;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


/* Spacing between Provider summary cards / following sections */
.provider-summary-grid {
    gap: 20px;
    margin-bottom: 28px;
}


/* Main Provider page section heading */
.provider-section-heading {
    margin-bottom: 20px;
}


/* Compliance top status card */
.provider-compliance-status-panel {
    margin-bottom: 28px;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


/* Keep the specialist split-panel structure,
   but align its internal padding with other cards */
.provider-compliance-status-main {
    padding: 24px;
}


/* Compliance page-level content cards */
.provider-compliance-section,
.provider-compliance-documents-section {
    background: var(--card-bg);
    border-color: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}


/* Standard spacing between major Compliance sections */
.provider-compliance-section {
    margin-bottom: 28px;
}

.provider-compliance-documents-section {
    margin-bottom: 28px;
}


/* Standard main card heading spacing */
.provider-card-heading {
    margin-bottom: 20px;
}


/* Mobile keeps the same design language with slightly
   tighter internal spacing */
@media (max-width: 700px) {

    .provider-summary-card {
        padding: 20px;
    }

    .provider-compliance-status-main {
        padding: 20px;
    }

    .provider-summary-grid {
        gap: 16px;
    }
}


/* ============================================================
   COMMERCIAL — FEEDBACK
   ============================================================ */

.commercial-feedback {
    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: 12px;

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

.commercial-feedback strong {
    display: block;
    margin-bottom: 2px;
}

.commercial-feedback span {
    display: block;
}

.commercial-feedback-success {
    color: #2b6a38;
    background: rgba(64, 192, 87, 0.10);
    border-color: rgba(64, 192, 87, 0.24);
}

.commercial-feedback-error {
    color: #a52222;
    background: rgba(224, 49, 49, 0.08);
    border-color: rgba(224, 49, 49, 0.22);
}
