/* =========================================
   TRIMLY BARBER LOGIN
   Elegant Premium Design
========================================= */

:root {
    --navy: #102443;
    --navy-light: #193b68;
    --blue: #315fba;
    --blue-hover: #254c9d;
    --text: #17263e;
    --muted: #7b879a;
    --border: #e5eaf2;
    --surface: #ffffff;
    --background: #f4f7fc;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(80, 125, 205, 0.13),
            transparent 31%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(67, 102, 168, 0.12),
            transparent 30%
        ),
        #f4f7fc;
}

/* Main layout */

.login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
}

/* Login card */

.login-card {
    position: relative;
    width: 100%;
    max-width: 425px;
    padding: 38px 36px 30px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(224, 231, 241, 0.9);
    border-radius: 22px;
    box-shadow:
        0 28px 70px rgba(24, 48, 86, 0.09),
        0 5px 16px rgba(24, 48, 86, 0.035);
}

/* Brand */

.login-brand {
    text-align: center;
    margin-bottom: 35px;
}

.brand-mark {
    position: relative;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    border-radius: 19px;
    background: linear-gradient(
        145deg,
        #254b83 0%,
        #102443 100%
    );
    color: #ffffff;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -1.5px;
    box-shadow: 0 10px 22px rgba(16, 36, 67, 0.2);
}

.login-brand h1 {
    margin: 0;
    color: var(--navy);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.login-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.15px;
}

/* Heading */

.login-heading {
    margin-bottom: 27px;
}

.login-heading h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.75px;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Form */

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #293951;
    font-size: 13px;
    font-weight: 650;
}

.form-group input {
    display: block;
    width: 100%;
    height: 51px;
    padding: 0 15px;
    border: 1px solid #dfe6f0;
    border-radius: 11px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #a0aabb;
}

.form-group input:hover {
    border-color: #c6d2e4;
}

.form-group input:focus {
    border-color: #5079c4;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(49, 95, 186, 0.09);
}

/* Sign in button */

.login-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(
        110deg,
        #234b8b,
        #315fba
    );
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 7px 15px rgba(49, 95, 186, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(
        110deg,
        #1c4079,
        #294fa0
    );
    box-shadow: 0 10px 20px rgba(49, 95, 186, 0.23);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(49, 95, 186, 0.16);
}

.login-button:focus-visible {
    outline: 3px solid rgba(49, 95, 186, 0.3);
    outline-offset: 3px;
}

/* Error message */

.alert-error {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid #f0d1d1;
    border-radius: 10px;
    background: #fff6f5;
    color: #a53636;
    font-size: 13px;
    line-height: 1.65;
}

/* Footer */

.login-footer {
    margin: 25px 0 0;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
    color: #8994a6;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

/* Mobile */

@media (max-width: 480px) {
    .login-wrapper {
        padding: 20px 15px;
    }

    .login-card {
        max-width: 390px;
        padding: 31px 23px 25px;
        border-radius: 19px;
    }

    .login-brand {
        margin-bottom: 30px;
    }

    .brand-mark {
        width: 57px;
        height: 57px;
        border-radius: 17px;
        font-size: 28px;
    }

    .login-brand h1 {
        font-size: 27px;
    }

    .login-heading h2 {
        font-size: 23px;
    }

    .form-group input {
        height: 50px;
        font-size: 16px;
    }

    .login-button {
        min-height: 51px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================
   TRIMLY BARBER DASHBOARD
   Full-screen, mobile-first
===================================== */

.barber-dashboard {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f6fa;
    color: #17263e;
}

.dashboard-shell {
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 22px 24px;
}

/* Header */

.dashboard-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #e6eaf1;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dashboard-logo {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #244a82, #102443);
    color: #fff;
    font-size: 23px;
    font-weight: 750;
    box-shadow: 0 5px 12px rgba(16, 36, 67, 0.14);
}

.dashboard-brand-name {
    color: #102443;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.dashboard-brand-subtitle {
    margin-top: 3px;
    color: #8792a5;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.5px;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #e1e6ef;
    border-radius: 9px;
    background: #fff;
    color: #52627a;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.logout-link:active {
    background: #edf2f9;
}

/* Welcome */

.welcome-section {
    padding: 29px 0 22px;
}

.welcome-date {
    margin: 0 0 9px;
    color: #7e8ba0;
    font-size: 12px;
    font-weight: 600;
}

.welcome-section h1 {
    margin: 0;
    color: #102443;
    font-size: clamp(26px, 6vw, 32px);
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.welcome-description {
    margin: 9px 0 0;
    color: #7b8799;
    font-size: 14px;
    line-height: 1.6;
}

/* Quick links - always visible */

.quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 30px;
}

.quick-link {
    min-height: 79px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(26, 48, 81, 0.025);
    transition: border-color 0.18s, background 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.quick-link:active {
    border-color: #c7d5eb;
    background: #f9fbff;
}

.quick-link-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

.quick-link-icon svg {
    width: 24px;
    height: 24px;
}

.sales-icon {
    background: #eaf0fc;
    color: #315fba;
}

.earnings-icon {
    background: #e7f5ee;
    color: #27815a;
}

.profile-icon {
    background: #f0ebfc;
    color: #7654b4;
}

.quick-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-link-text strong {
    color: #1a2c47;
    font-size: 14px;
    font-weight: 700;
}

.quick-link-text small {
    color: #8490a3;
    font-size: 12px;
    line-height: 1.4;
}

.quick-link-arrow {
    flex: 0 0 auto;
    color: #9aa6b7;
    font-size: 26px;
    font-weight: 400;
}

/* Section headings */

.summary-section,
.recent-section {
    margin-top: 27px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    color: #182a45;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.35px;
}

.section-heading p {
    margin: 6px 0 0;
    color: #8792a4;
    font-size: 12px;
    line-height: 1.5;
}

.today-badge {
    padding: 7px 9px;
    border: 1px solid #dfe8f7;
    border-radius: 7px;
    background: #edf3fd;
    color: #315fba;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Summary cards */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.summary-card {
    min-width: 0;
    min-height: 128px;
    padding: 17px 15px;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(26, 48, 81, 0.025);
}

.summary-card-primary {
    border-color: #183a6a;
    background: linear-gradient(145deg, #193d70, #102443);
    box-shadow: 0 7px 18px rgba(16, 36, 67, 0.12);
}

.summary-card-label {
    color: #7f8ca1;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}

.summary-card-primary .summary-card-label {
    color: #c6d6ef;
}

.summary-card-value {
    margin-top: 13px;
    color: #172a46;
    font-size: clamp(19px, 5vw, 25px);
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.summary-card-primary .summary-card-value {
    color: #fff;
}

.summary-card-note {
    margin-top: 8px;
    color: #919caf;
    font-size: 10px;
    line-height: 1.5;
}

.summary-card-primary .summary-card-note {
    color: #c1d0e6;
}

/* Recent sales */

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #315fba;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.view-all-link span {
    font-size: 19px;
}

.recent-sales-list {
    overflow: hidden;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    background: #fff;
}

.recent-sale {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 13px;
}

.recent-sale + .recent-sale {
    border-top: 1px solid #edf0f5;
}

.recent-sale-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf3fd;
    color: #315fba;
}

.recent-sale-icon svg {
    width: 20px;
    height: 20px;
}

.recent-sale-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-sale-info strong {
    color: #263853;
    font-size: 12px;
    font-weight: 700;
}

.recent-sale-info span {
    color: #8994a6;
    font-size: 10px;
}

.recent-sale-amount {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.recent-sale-amount strong {
    color: #1c304c;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.recent-sale-amount span {
    color: #26845b;
    font-size: 10px;
    font-weight: 650;
}

/* Empty state */

.empty-state {
    padding: 30px 20px;
    border: 1px dashed #dce4ef;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.empty-state-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    border-radius: 14px;
    background: #eaf0fc;
    color: #315fba;
    font-size: 25px;
}

.empty-state h3 {
    margin: 0;
    color: #243751;
    font-size: 14px;
}

.empty-state p {
    max-width: 270px;
    margin: 9px auto 0;
    color: #8792a4;
    font-size: 12px;
    line-height: 1.7;
}

/* Footer */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 17px;
    border-top: 1px solid #e5eaf2;
    color: #9aa4b3;
    font-size: 10px;
}

/* Wider screens */

@media (min-width: 600px) {
    .dashboard-shell {
        padding-right: 28px;
        padding-left: 28px;
    }

    .quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-link {
        min-height: 125px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 17px;
    }

    .quick-link-text {
        gap: 6px;
    }

    .quick-link-arrow {
        display: none;
    }

    .summary-card {
        padding: 20px;
    }
}

/* Small mobile screens */

@media (max-width: 360px) {
    .dashboard-shell {
        padding-right: 14px;
        padding-left: 14px;
    }

    .welcome-section {
        padding-top: 24px;
    }

    .quick-link {
        min-height: 73px;
        padding: 11px;
        gap: 10px;
    }

    .quick-link-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .summary-grid {
        gap: 9px;
    }

    .summary-card {
        padding: 14px 11px;
    }

    .summary-card-note {
        font-size: 9px;
    }

    .recent-sale {
        gap: 8px;
        padding: 13px 10px;
    }
}

   .sales-page {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .sales-page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 22px;
            flex-wrap: wrap;
        }

        .sales-page-header h1 {
            margin: 0 0 6px;
            font-size: 26px;
            color: #102451;
        }

        .sales-page-header p {
            margin: 0;
            color: #718096;
            font-size: 14px;
        }

        .sales-back-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 16px;
            border: 1px solid #dce5f0;
            border-radius: 10px;
            color: #102451;
            background: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
        }

        .sales-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 22px;
        }

        .sales-summary-card {
            background: #fff;
            border: 1px solid #e6ecf4;
            border-radius: 14px;
            padding: 18px;
            min-width: 0;
        }

        .sales-summary-card span {
            display: block;
            color: #718096;
            font-size: 13px;
            margin-bottom: 10px;
        }

        .sales-summary-card strong {
            display: block;
            color: #102451;
            font-size: 23px;
            line-height: 1.3;
            overflow-wrap: anywhere;
        }

        .sales-filter-card,
        .sales-list-card {
            background: #fff;
            border: 1px solid #e6ecf4;
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .sales-filter-card h2,
        .sales-list-card h2 {
            color: #102451;
            font-size: 17px;
            margin: 0 0 16px;
        }

        .sales-filter-form {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
            align-items: end;
            gap: 14px;
        }

        .sales-filter-form label {
            display: block;
            color: #35445d;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 7px;
        }

        .sales-filter-form input,
        .sales-filter-form select {
            width: 100%;
            min-height: 44px;
            padding: 10px 12px;
            border: 1px solid #dce5f0;
            border-radius: 9px;
            background: #fff;
            color: #172b4d;
            font: inherit;
            box-sizing: border-box;
        }

        .sales-filter-actions {
            display: flex;
            gap: 8px;
        }

        .sales-filter-button,
        .sales-reset-button {
            min-height: 44px;
            padding: 0 15px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }

        .sales-filter-button {
            border: 0;
            background: #173b78;
            color: #fff;
        }

        .sales-reset-button {
            border: 1px solid #dce5f0;
            color: #344563;
            background: #fff;
        }

        .sales-list-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .sales-list-heading h2 {
            margin: 0;
        }

        .sales-record-count {
            color: #718096;
            font-size: 13px;
        }

        .sales-table-wrap {
            overflow-x: auto;
            width: 100%;
        }

        .sales-table {
            width: 100%;
            min-width: 800px;
            border-collapse: collapse;
        }

        .sales-table th {
            background: #f6f8fc;
            color: #68778e;
            text-align: left;
            font-size: 12px;
            font-weight: 700;
            padding: 13px 12px;
            white-space: nowrap;
        }

        .sales-table td {
            border-bottom: 1px solid #edf1f6;
            padding: 15px 12px;
            color: #344563;
            font-size: 13px;
            vertical-align: top;
        }

        .sales-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .sales-id {
            font-weight: 700;
            color: #102451;
        }

        .sales-service {
            max-width: 240px;
            overflow-wrap: anywhere;
            line-height: 1.6;
        }

        .sales-amount {
            font-weight: 700;
            color: #102451;
            white-space: nowrap;
        }

        .sales-muted {
            display: block;
            margin-top: 5px;
            font-size: 12px;
            color: #8793a5;
        }

        .sales-status {
            display: inline-block;
            border-radius: 20px;
            padding: 5px 9px;
            font-size: 11px;
            font-weight: 700;
            text-transform: capitalize;
            white-space: nowrap;
        }

        .sales-status.completed {
            background: #e5f7ed;
            color: #18794e;
        }

        .sales-status.void {
            background: #ffebeb;
            color: #b42318;
        }

        .sales-empty {
            text-align: center;
            padding: 38px 18px;
            color: #718096;
            font-size: 14px;
        }

        .sales-empty strong {
            display: block;
            color: #102451;
            font-size: 16px;
            margin-bottom: 7px;
        }

        .sales-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .sales-pagination-info {
            color: #718096;
            font-size: 13px;
        }

        .sales-pagination-links {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sales-pagination-links a,
        .sales-pagination-links span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            height: 36px;
            padding: 0 10px;
            border-radius: 8px;
            border: 1px solid #dce5f0;
            color: #173b78;
            background: #fff;
            text-decoration: none;
            font-size: 13px;
        }

        .sales-pagination-links .current {
            color: #fff;
            border-color: #173b78;
            background: #173b78;
        }

        .sales-error {
            margin-bottom: 18px;
            padding: 13px 15px;
            border: 1px solid #f3c6c6;
            border-radius: 10px;
            background: #fff0f0;
            color: #a52323;
            font-size: 14px;
        }

        @media (max-width: 900px) {
            .sales-summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .sales-filter-form {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .sales-filter-actions {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 560px) {
            .sales-page-header h1 {
                font-size: 23px;
            }

            .sales-summary-grid {
                gap: 10px;
            }

            .sales-summary-card {
                padding: 14px;
                border-radius: 12px;
            }

            .sales-summary-card strong {
                font-size: 19px;
            }

            .sales-summary-card span {
                font-size: 12px;
            }

            .sales-filter-card,
            .sales-list-card {
                padding: 15px;
                border-radius: 12px;
            }

            .sales-filter-form {
                grid-template-columns: 1fr;
            }

            .sales-filter-actions {
                grid-column: auto;
            }

            .sales-filter-button,
            .sales-reset-button {
                flex: 1;
            }

            .sales-pagination {
                align-items: flex-start;
                flex-direction: column;
            }

            .sales-pagination-links {
                flex-wrap: wrap;
            }
        }
        
/* =====================================
   TRIMLY BARBER - EARNINGS PAGE
===================================== */

.earnings-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.earnings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.earnings-header h1 {
    margin: 0 0 7px;
    color: #102451;
    font-size: 26px;
}

.earnings-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.earnings-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    color: #102451;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.earnings-filter {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fff;
}

.earnings-field {
    flex: 1;
    min-width: 160px;
}

.earnings-field label {
    display: block;
    margin-bottom: 7px;
    color: #35445d;
    font-size: 13px;
    font-weight: 600;
}

.earnings-field input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dce5f0;
    border-radius: 9px;
    background: #fff;
    color: #172b4d;
    font: inherit;
}

.earnings-filter-actions {
    display: flex;
    gap: 8px;
}

.earnings-filter-actions button,
.earnings-filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid #173b78;
    border-radius: 9px;
    background: #173b78;
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.earnings-filter-actions a {
    border-color: #dce5f0;
    background: #fff;
    color: #344563;
}

.earnings-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.earnings-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16, 36, 81, .025);
}

.earnings-card span {
    display: block;
    margin-bottom: 11px;
    color: #718096;
    font-size: 13px;
}

.earnings-card strong {
    display: block;
    color: #102451;
    font-size: 23px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.earnings-card small {
    display: block;
    margin-top: 7px;
    color: #8793a5;
    font-size: 12px;
    line-height: 1.5;
}

.earnings-balance {
    border-color: #cbdaf0;
    background: #f5f8fe;
}

.earnings-note {
    margin-bottom: 22px;
    padding: 15px 17px;
    border: 1px solid #dce5f0;
    border-radius: 11px;
    background: #f6f8fc;
    color: #465570;
    font-size: 13px;
    line-height: 1.7;
}

.earnings-history {
    padding: 20px;
    border: 1px solid #e6ecf4;
    border-radius: 14px;
    background: #fff;
}

.earnings-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.earnings-section-heading h2 {
    margin: 0;
    color: #102451;
    font-size: 18px;
}

.earnings-section-heading span {
    color: #718096;
    font-size: 13px;
}

.earnings-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.earnings-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.earnings-table th {
    padding: 13px 12px;
    background: #f6f8fc;
    color: #68778e;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
}

.earnings-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf1f6;
    color: #344563;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: top;
}

.earnings-table tbody tr:last-child td {
    border-bottom: 0;
}

.earnings-table td small {
    display: block;
    margin-top: 4px;
    color: #8793a5;
    font-size: 12px;
}

.earnings-amount {
    color: #102451 !important;
    font-weight: 750;
    white-space: nowrap;
}

.earnings-empty {
    padding: 35px 15px;
    color: #718096;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.earnings-empty strong {
    display: block;
    margin-bottom: 7px;
    color: #102451;
    font-size: 16px;
}

.earnings-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: #718096;
    font-size: 13px;
}

.earnings-pagination div {
    display: flex;
    gap: 8px;
}

.earnings-pagination a {
    padding: 9px 13px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #173b78;
    text-decoration: none;
    font-weight: 600;
}

.earnings-error {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #f3c6c6;
    border-radius: 10px;
    background: #fff0f0;
    color: #a52323;
    font-size: 14px;
}

@media (max-width: 850px) {
    .earnings-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .earnings-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .earnings-header h1 {
        font-size: 23px;
    }

    .earnings-back {
        width: 100%;
        box-sizing: border-box;
    }

    .earnings-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .earnings-field {
        min-width: 0;
        width: 100%;
    }

    .earnings-filter-actions button,
    .earnings-filter-actions a {
        flex: 1;
    }

    .earnings-cards {
        gap: 10px;
    }

    .earnings-card {
        padding: 14px;
        border-radius: 12px;
    }

    .earnings-card span {
        font-size: 12px;
    }

    .earnings-card strong {
        font-size: 19px;
    }

    .earnings-history {
        padding: 15px;
    }

    .earnings-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================
   TRIMLY BARBER - PROFILE PAGE
===================================== */

.profile-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.profile-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.profile-page-header h1 {
    margin: 0 0 7px;
    color: #102451;
    font-size: 26px;
    font-weight: 750;
}

.profile-page-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    color: #102451;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.profile-back-link:hover {
    background: #f5f8fc;
}

.profile-card {
    padding: 25px;
    border: 1px solid #e6ecf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 36, 81, .035);
}

.profile-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid #edf1f6;
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #eaf1ff;
    color: #173b78;
    font-size: 23px;
    font-weight: 750;
    text-transform: uppercase;
}

.profile-card-heading h2 {
    margin: 0 0 5px;
    color: #102451;
    font-size: 18px;
}

.profile-card-heading p {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-form-group {
    min-width: 0;
}

.profile-full-width {
    grid-column: 1 / -1;
}

.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #35445d;
    font-size: 13px;
    font-weight: 650;
}

.profile-form-group input {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #172b4d;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-form-group input:focus {
    border-color: #3269b5;
    box-shadow: 0 0 0 3px rgba(50, 105, 181, .10);
}

.profile-form-group input::placeholder {
    color: #a0aabc;
}

.profile-form-group small {
    display: block;
    margin-top: 7px;
    color: #8793a5;
    font-size: 12px;
    line-height: 1.5;
}

.profile-password-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #edf1f6;
}

.profile-password-section h3 {
    margin: 0 0 7px;
    color: #102451;
    font-size: 17px;
}

.profile-password-section > p {
    margin: 0 0 20px;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #edf1f6;
}

.profile-cancel-button,
.profile-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 19px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease;
}

.profile-cancel-button {
    border: 1px solid #dce5f0;
    background: #fff;
    color: #344563;
}

.profile-cancel-button:hover {
    background: #f5f8fc;
}

.profile-save-button {
    border: 1px solid #173b78;
    background: #173b78;
    color: #fff;
}

.profile-save-button:hover {
    background: #102451;
}

.profile-alert {
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.profile-alert-success {
    border: 1px solid #b8e8cd;
    background: #edfbf3;
    color: #18794e;
}

.profile-alert-error {
    border: 1px solid #f3c6c6;
    background: #fff0f0;
    color: #a52323;
}

/* Mobile */

@media (max-width: 600px) {
    .profile-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-page-header h1 {
        font-size: 23px;
    }

    .profile-back-link {
        width: 100%;
        box-sizing: border-box;
    }

    .profile-card {
        padding: 17px;
        border-radius: 13px;
    }

    .profile-card-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-avatar {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 20px;
    }

    .profile-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .profile-full-width {
        grid-column: auto;
    }

    .profile-password-section {
        margin-top: 25px;
        padding-top: 22px;
    }

    .profile-form-actions {
        flex-direction: column-reverse;
    }

    .profile-cancel-button,
    .profile-save-button {
        width: 100%;
        box-sizing: border-box;
        min-height: 47px;
    }
}
.barber-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    background: #173b78;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease;
}

.barber-action-link:hover {
    background: #102b59;
    color: #fff;
}

.barber-action-link span:first-child {
    font-size: 20px;
    line-height: 1;
}

/* =========================================
   TRIMLY BARBER - ADD SALE PAGE
========================================= */


/* ==========================================
   TRIMLY APP — ADD SALE
========================================== */

.add-sale-app {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 30px;
}

.add-sale-app .dashboard-header {
    margin-bottom: 24px;
}

.add-sale-app .welcome-section {
    margin-bottom: 24px;
}

.add-sale-app .welcome-section h1 {
    letter-spacing: -.5px;
}

.add-sale-app-card {
    box-sizing: border-box;
    padding: 20px 17px;
    margin-bottom: 16px;
    border: 1px solid #e9edf5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 36, 67, .035);
}

.add-sale-app-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
}

.add-sale-app-section-icon {
    display: flex;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf2ff;
    color: #3156a4;
    font-size: 12px;
    font-weight: 800;
}

.add-sale-app-section-heading h2 {
    margin: 0;
    color: #1b2d4e;
    font-size: 16px;
    font-weight: 800;
}

.add-sale-app-section-heading p {
    margin: 5px 0 0;
    color: #8a95a8;
    font-size: 11px;
    line-height: 1.5;
}

.add-sale-app-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.add-sale-app-field label {
    color: #35435d;
    font-size: 12px;
    font-weight: 700;
}

.add-sale-app-field input,
.add-sale-app-field select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 0 12px;
    border: 1px solid #e0e6f0;
    border-radius: 11px;
    outline: none;
    background: #fafbfe;
    color: #263754;
    font: inherit;
    font-size: 13px;
}

.add-sale-app-field input:focus,
.add-sale-app-field select:focus {
    border-color: #6482c8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(68, 105, 191, .09);
}

.add-sale-app-field small {
    color: #8a95a8;
    font-size: 11px;
    line-height: 1.6;
}

.add-sale-app-field small a {
    color: #315ab0;
    font-weight: 700;
    text-decoration: none;
}

.add-sale-app-field small a:hover {
    text-decoration: underline;
}

.add-sale-app-services-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    color: #35435d;
    font-size: 12px;
    font-weight: 750;
}

.add-sale-app-add-button {
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid #d9e4fc;
    border-radius: 9px;
    background: #f0f4ff;
    color: #2e55a5;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.add-sale-app-add-button:active {
    transform: scale(.98);
}

.add-sale-app-service-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 14px;
    margin-bottom: 11px;
    border: 1px solid #e9edf5;
    border-radius: 13px;
    background: #fcfdff;
}

.add-sale-app-item-bottom {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr) 34px;
    align-items: end;
    gap: 12px;
}

.add-sale-app-item-amount {
    display: flex;
    min-height: 43px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.add-sale-app-item-amount span {
    color: #8b96a9;
    font-size: 10px;
}

.add-sale-app-item-amount strong {
    overflow-wrap: anywhere;
    color: #233b69;
    font-size: 14px;
    font-weight: 800;
}

.add-sale-app-remove {
    display: flex;
    width: 34px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1dfe1;
    border-radius: 10px;
    background: #fff7f7;
    color: #c24d57;
    font-size: 21px;
    cursor: pointer;
}

.add-sale-app-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
}

.add-sale-app-total-box {
    padding: 16px;
    margin-top: 21px;
    border: 1px solid #e7ecf5;
    border-radius: 13px;
    background: #f8faff;
}

.add-sale-app-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: #78849a;
    font-size: 12px;
}

.add-sale-app-total-line strong {
    color: #354562;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.add-sale-app-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
    margin-top: 8px;
    border-top: 1px solid #e1e7f1;
    color: #1b2d4e;
    font-size: 13px;
    font-weight: 800;
}

.add-sale-app-grand-total strong {
    color: #244b99;
    font-size: 22px;
    font-weight: 850;
    text-align: right;
    overflow-wrap: anywhere;
}

.add-sale-app-submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: #244b98;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 5px 13px rgba(36, 75, 152, .16);
    cursor: pointer;
}

.add-sale-app-submit span {
    font-size: 19px;
}

.add-sale-app-submit:hover {
    background: #1c3e83;
}

.add-sale-app-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.add-sale-app-note {
    margin: 12px 0 0;
    color: #8994a7;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.add-sale-app-alert {
    padding: 13px 15px;
    margin-bottom: 16px;
    border: 1px solid #f0cdd0;
    border-radius: 12px;
    background: #fff3f3;
    color: #a02f3a;
    font-size: 12px;
    line-height: 1.6;
}

.add-sale-app-empty-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 12px;
    background: #fff3e7;
    color: #a96320;
    font-size: 20px;
    font-weight: 800;
}

.add-sale-app-card h2 {
    color: #1b2d4e;
}

.add-sale-app-card > p {
    color: #7d899d;
    font-size: 12px;
    line-height: 1.7;
}

.add-sale-app-links {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .add-sale-app {
        padding-right: 14px;
        padding-left: 14px;
    }

    .add-sale-app-card {
        padding: 17px 14px;
        border-radius: 15px;
    }

    .add-sale-app-section-heading {
        gap: 10px;
    }

    .add-sale-app-section-heading h2 {
        font-size: 15px;
    }

    .add-sale-app-payment-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .add-sale-app-service-row {
        padding: 12px;
    }

    .add-sale-app-item-bottom {
        grid-template-columns: 76px minmax(0, 1fr) 32px;
        gap: 9px;
    }

    .add-sale-app-remove {
        width: 32px;
    }

    .add-sale-app-grand-total strong {
        font-size: 20px;
    }
}

/* Customer form — matches Trimly barber dashboard */

.customer-app-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: #fff;
}

.customer-app-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-app-field label {
    color: #34435f;
    font-size: 13px;
    font-weight: 700;
}

.customer-app-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    outline: none;
    background: #fafbfe;
    color: #172747;
    font: inherit;
    font-size: 14px;
}

.customer-app-field input:focus {
    border-color: #5678c3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(86, 120, 195, .10);
}

.customer-app-field small {
    color: #8994a8;
    font-size: 11px;
    line-height: 1.6;
}

.customer-app-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.customer-app-submit span:first-child {
    font-size: 20px;
    line-height: 1;
}

.customer-app-alert {
    padding: 13px 15px;
    margin-top: 15px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
}

.customer-app-alert p {
    margin: 3px 0;
}

.customer-app-success {
    border: 1px solid #c6ead4;
    background: #effaf3;
    color: #236c43;
}

.customer-app-error {
    border: 1px solid #f0cdd0;
    background: #fff3f3;
    color: #a02f3a;
}

.customer-app-links {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .customer-app-form {
        padding: 16px;
        gap: 17px;
    }
}

.bt2{
    background: #ffb12c!important;
}