.app-body {
    --aura-system-color: #ba7d6f;
    --aura-system-color-rgb: 186, 125, 111;
    --aura-system-color-hover: #a86b5d;
    --aura-system-color-active: #91574c;
    --aura-menu-background: #161110;
    --aura-menu-background-end: #291c18;
    --aura-modal-header-background: #fffdf9;
    --aura-modal-header-color: #2f2623;
    --aura-modal-header-close-filter: none;
    --aura-rose: #d8a394;
    --aura-rose-soft: #edd1c8;
    --aura-rose-deep: var(--aura-system-color);
    --aura-ink: #171211;
    --aura-ink-soft: #2f2623;
    --aura-muted: #786860;
    --aura-paper: #fffdf9;
    --aura-paper-soft: #f8f2eb;
    --aura-sand: #f3e7dc;
    --aura-border: #e7d6c9;
    --aura-shadow: 0 18px 45px rgba(39, 24, 18, 0.08);
    --bs-body-bg: var(--aura-paper);
    --bs-body-color: var(--aura-ink-soft);
    --bs-border-color: var(--aura-border);
    --bs-primary: var(--aura-system-color);
    --bs-primary-rgb: var(--aura-system-color-rgb);
    --bs-link-color: var(--aura-rose-deep);
    --bs-link-hover-color: var(--aura-system-color-hover);
    min-height: 100vh;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--aura-ink-soft);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at top, rgba(var(--aura-system-color-rgb), 0.12), transparent 30%),
        linear-gradient(180deg, #fffcf8 0%, #f7f0e8 100%);
}

.trial-badge-shell {
    display: flex;
    justify-content: center;
    margin: 0;
}

.trial-badge-overlay {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    width: min(calc(100% - 3rem), 860px);
    pointer-events: none;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    padding: .45rem .95rem;
    max-width: min(100%, 860px);
    border-radius: 999px;
    border: 1px solid rgba(205, 177, 162, 0.55);
    box-shadow: 0 8px 24px rgba(39, 24, 18, 0.06);
    background: rgba(255, 252, 247, 0.92);
    color: var(--aura-ink-soft);
    text-decoration: none;
    pointer-events: auto;
}

.trial-banner--info {
    background:
        linear-gradient(135deg, rgba(var(--aura-system-color-rgb), 0.1), rgba(255, 252, 247, 0.98)),
        rgba(255, 252, 247, 0.96);
}

.trial-banner--warning {
    background:
        linear-gradient(135deg, rgba(209, 145, 79, 0.12), rgba(255, 248, 238, 0.98)),
        rgba(255, 248, 238, 0.96);
    border-color: rgba(209, 145, 79, 0.35);
}

.trial-banner--critical {
    background:
        linear-gradient(135deg, rgba(181, 76, 60, 0.12), rgba(255, 245, 243, 0.98)),
        rgba(255, 245, 243, 0.96);
    border-color: rgba(181, 76, 60, 0.32);
}

.trial-badge__status,
.subscription-summary__eyebrow,
.subscription-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .18rem .58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--aura-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.trial-badge__headline {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    color: var(--aura-ink);
}

.trial-badge__meta {
    font-size: .84rem;
    color: var(--aura-muted);
}

.trial-badge:hover,
.trial-badge:focus {
    color: var(--aura-ink);
    border-color: rgba(var(--aura-system-color-rgb), 0.32);
    box-shadow: 0 10px 28px rgba(39, 24, 18, 0.08);
}

.subscription-page {
    display: grid;
    gap: 1rem;
}

.subscription-page__notice {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .65rem .9rem;
    border: 1px solid rgba(var(--aura-system-color-rgb), 0.18);
    border-left: .25rem solid rgba(var(--aura-system-color-rgb), 0.62);
    border-radius: .75rem;
    background: rgba(var(--aura-system-color-rgb), 0.08);
    color: var(--aura-ink);
    font-weight: 600;
    line-height: 1.35;
}

.subscription-page__status {
    margin-bottom: 0;
}

.subscription-date-spotlight {
    display: grid;
    gap: .18rem;
    padding: 1.1rem 1.25rem;
    background:
        linear-gradient(135deg, rgba(var(--aura-system-color-rgb), 0.12), rgba(255, 252, 247, 0.96)),
        rgba(255, 252, 247, 0.96);
}

.subscription-date-spotlight__label {
    color: var(--aura-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.subscription-date-spotlight__date {
    color: var(--aura-ink);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1;
}

.subscription-date-spotlight__meta {
    color: var(--aura-muted);
    font-size: .92rem;
}

.subscription-summary,
.subscription-form-card {
    height: 100%;
}

.subscription-summary__price {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
    font-weight: 800;
    color: var(--aura-ink);
    margin-bottom: 1rem;
}

.subscription-summary__meta {
    display: grid;
    gap: .9rem;
    margin: 0 0 1.5rem;
}

.subscription-summary__meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(205, 177, 162, 0.42);
}

.subscription-summary__meta dt {
    color: var(--aura-muted);
    font-weight: 600;
}

.subscription-summary__meta dd {
    margin: 0;
    text-align: right;
    color: var(--aura-ink);
    font-weight: 700;
}

.subscription-summary__list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--aura-ink-soft);
}

.subscription-summary__list li + li {
    margin-top: .55rem;
}

.subscription-form-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .25rem;
}

.subscription-form-card__notice {
    padding: .95rem 1rem;
    border-radius: 1rem;
    background: rgba(var(--aura-system-color-rgb), 0.1);
    color: var(--aura-ink-soft);
    border: 1px solid rgba(var(--aura-system-color-rgb), 0.14);
}

.subscription-form-card__notice--success {
    background: rgba(104, 123, 69, 0.12);
    border-color: rgba(104, 123, 69, 0.26);
}

.subscription-choice-section {
    border: 1px solid rgba(205, 177, 162, 0.34);
    border-left-width: .28rem;
    border-radius: .75rem;
    margin: 0;
    padding: 1rem;
}

.subscription-choice-section--plan {
    border-left-color: rgba(104, 123, 69, 0.72);
    background: rgba(104, 123, 69, 0.05);
}

.subscription-choice-section--payment {
    border-left-color: rgba(54, 104, 132, 0.72);
    background: rgba(54, 104, 132, 0.05);
}

.subscription-choice-section + .subscription-choice-section {
    margin-top: .35rem;
}

.subscription-choice-section__header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0 0 .9rem;
    color: var(--aura-ink);
    font-size: 1rem;
}

.subscription-choice-section__header span:last-child {
    display: grid;
    gap: .15rem;
}

.subscription-choice-section__header small {
    color: var(--aura-muted);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.35;
}

.subscription-choice-section__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(var(--aura-system-color-rgb), 0.14);
    color: var(--aura-rose-deep);
    font-size: .86rem;
    font-weight: 800;
}

.subscription-choice-section__icon,
.subscription-plan-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aura-rose-deep);
}

.subscription-choice-section__icon {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
}

.subscription-choice-section__icon svg,
.subscription-plan-card__icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.subscription-choice-section__icon--plan,
.subscription-plan-card__icon--plan {
    background: rgba(104, 123, 69, 0.14);
    color: #4f6131;
}

.subscription-choice-section__icon--payment,
.subscription-plan-card__icon--payment,
.subscription-plan-card__icon--pix {
    background: rgba(54, 104, 132, 0.13);
    color: #315f78;
}

.subscription-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.subscription-plan-card {
    position: relative;
    display: grid;
    gap: .45rem;
    min-height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(205, 177, 162, 0.48);
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.92);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.subscription-plan-card--plan {
    border-color: rgba(104, 123, 69, 0.32);
}

.subscription-plan-card--payment {
    border-color: rgba(54, 104, 132, 0.34);
}

.subscription-plan-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.subscription-plan-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
}

.subscription-plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.subscription-plan-card:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--aura-system-color-rgb), 0.34);
    box-shadow: 0 14px 32px rgba(39, 24, 18, 0.08);
}

.subscription-plan-card:has(input:checked),
.subscription-plan-card--selected {
    border-color: rgba(var(--aura-system-color-rgb), 0.58);
    background:
        linear-gradient(180deg, rgba(var(--aura-system-color-rgb), 0.12), rgba(255, 252, 247, 0.98)),
        rgba(255, 252, 247, 0.96);
    border-width: 2px;
    box-shadow: 0 18px 38px rgba(39, 24, 18, 0.13);
}

.subscription-plan-card--plan:has(input:checked),
.subscription-plan-card--plan.subscription-plan-card--selected {
    border-color: rgba(104, 123, 69, 0.72);
    background:
        linear-gradient(180deg, rgba(104, 123, 69, 0.12), rgba(255, 252, 247, 0.98)),
        rgba(255, 252, 247, 0.96);
    box-shadow: 0 0 0 .18rem rgba(104, 123, 69, 0.12), 0 18px 38px rgba(39, 24, 18, 0.12);
}

.subscription-plan-card--payment:has(input:checked),
.subscription-plan-card--payment.subscription-plan-card--selected {
    border-color: rgba(54, 104, 132, 0.72);
    background:
        linear-gradient(180deg, rgba(54, 104, 132, 0.12), rgba(255, 252, 247, 0.98)),
        rgba(255, 252, 247, 0.96);
    box-shadow: 0 0 0 .18rem rgba(54, 104, 132, 0.12), 0 18px 38px rgba(39, 24, 18, 0.12);
}

.subscription-plan-card:has(input:focus-visible) {
    outline: .18rem solid rgba(var(--aura-system-color-rgb), 0.2);
    outline-offset: .12rem;
}

.subscription-plan-card__badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: .24rem .6rem;
    border-radius: 999px;
    background: rgba(var(--aura-system-color-rgb), 0.12);
    color: var(--aura-rose-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.subscription-plan-card__amount {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    color: var(--aura-ink);
}

.subscription-payment-card__method {
    color: var(--aura-ink);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.05;
}

.subscription-payment-card__note {
    color: var(--aura-muted);
    font-size: .94rem;
    font-weight: 700;
}

.subscription-plan-card__selected-indicator {
    display: none;
    align-items: center;
    gap: .35rem;
    justify-self: start;
    width: fit-content;
    padding: .24rem .62rem;
    border-radius: 999px;
    color: #315f3e;
    background: rgba(104, 123, 69, 0.15);
    font-size: .82rem;
    font-weight: 800;
}

.subscription-plan-card__selected-indicator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    color: #fff;
    background: #5f743f;
    font-size: .72rem;
    line-height: 1;
}

.subscription-plan-card--payment .subscription-plan-card__selected-indicator {
    color: #315f78;
    background: rgba(54, 104, 132, 0.15);
}

.subscription-plan-card--payment .subscription-plan-card__selected-indicator span {
    background: #315f78;
}

.subscription-plan-card:has(input:checked) .subscription-plan-card__selected-indicator,
.subscription-plan-card--selected .subscription-plan-card__selected-indicator {
    display: inline-flex;
}

.subscription-plan-card small {
    color: var(--aura-muted);
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .trial-badge-overlay {
        top: .75rem;
        width: calc(100% - 1.5rem);
    }

    .trial-badge {
        width: 100%;
        border-radius: 1rem;
        text-align: center;
    }

    .subscription-page__price {
        width: 100%;
        min-width: 0;
    }

    .subscription-plan-grid {
        grid-template-columns: 1fr;
    }
}

::selection {
    background: rgba(var(--aura-system-color-rgb), 0.32);
    color: #201815;
}

body,
button,
input,
select,
textarea {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: var(--aura-ink);
}

.home-hero-subtitle {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--aura-ink);
}

a {
    transition: color .18s ease, opacity .18s ease;
}

.app-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card,
.modal-content,
.offcanvas,
.dropdown-menu {
    border: 1px solid rgba(205, 177, 162, 0.55);
    box-shadow: var(--aura-shadow);
}

.card,
.modal-content,
.offcanvas {
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(10px);
}

.modal-content > .modal-header,
.offcanvas > .offcanvas-header:not(.collaborator-schedule-drawer__header) {
    background: var(--aura-modal-header-background);
    color: var(--aura-modal-header-color);
    border-bottom-color: rgba(var(--aura-system-color-rgb), 0.18);
}

.modal-content > .modal-header .modal-title,
.offcanvas > .offcanvas-header:not(.collaborator-schedule-drawer__header) .offcanvas-title {
    color: inherit;
}

.modal-content > .modal-header .btn-close,
.offcanvas > .offcanvas-header:not(.collaborator-schedule-drawer__header) .btn-close {
    filter: var(--aura-modal-header-close-filter);
    opacity: .88;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(239, 227, 217, 0.38);
    --bs-table-hover-bg: rgba(var(--aura-system-color-rgb), 0.12);
    color: var(--aura-ink-soft);
}

.table thead th {
    color: #6e5b53;
    letter-spacing: .04em;
}

.form-control,
.form-select,
.input-group-text,
.form-check-input {
    border-color: #dbc9bb;
}

.form-control,
.form-select,
.input-group-text {
    background-color: rgba(255, 252, 247, 0.92);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(var(--aura-system-color-rgb), 0.65);
    box-shadow: 0 0 0 .24rem rgba(var(--aura-system-color-rgb), 0.18);
}

.form-check-input:checked {
    background-color: var(--aura-rose-deep);
    border-color: var(--aura-rose-deep);
}

.btn {
    border-radius: .85rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.btn-primary {
    --bs-btn-bg: var(--aura-rose-deep);
    --bs-btn-border-color: var(--aura-rose-deep);
    --bs-btn-hover-bg: var(--aura-system-color-hover);
    --bs-btn-hover-border-color: var(--aura-system-color-hover);
    --bs-btn-active-bg: var(--aura-system-color-active);
    --bs-btn-active-border-color: var(--aura-system-color-active);
    --bs-btn-focus-shadow-rgb: var(--aura-system-color-rgb);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.04));
}

.btn-outline-primary {
    --bs-btn-color: var(--aura-rose-deep);
    --bs-btn-border-color: rgba(var(--aura-system-color-rgb), 0.52);
    --bs-btn-hover-bg: rgba(var(--aura-system-color-rgb), 0.14);
    --bs-btn-hover-border-color: var(--aura-rose-deep);
    --bs-btn-hover-color: var(--aura-system-color-hover);
    --bs-btn-active-bg: rgba(var(--aura-system-color-rgb), 0.22);
    --bs-btn-active-border-color: var(--aura-rose-deep);
    --bs-btn-active-color: var(--aura-system-color-active);
}

.btn-light {
    --bs-btn-bg: #fffaf4;
    --bs-btn-border-color: #e4d6cb;
    --bs-btn-hover-bg: #f7eee5;
    --bs-btn-hover-border-color: #dcc8ba;
    --bs-btn-color: var(--aura-ink-soft);
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.pwa-install-prompt {
    position: fixed;
    right: .875rem;
    bottom: calc(.875rem + env(safe-area-inset-bottom, 0px));
    left: .875rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    color: #2b1b18;
    background: #fffdf9;
    border: 2px solid rgba(var(--aura-system-color-rgb), .65);
    border-radius: 1rem;
    box-shadow: 0 22px 56px rgba(16, 12, 10, .42), 0 0 0 9999px rgba(0, 0, 0, .18);
}

.pwa-install-prompt[hidden] {
    display: none !important;
}

.pwa-install-prompt__content {
    min-width: 0;
    flex: 1 1 auto;
}

.pwa-install-prompt__icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: #fffdf9;
    background: linear-gradient(145deg, var(--aura-system-color), #7b4b43);
    border-radius: .85rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(var(--aura-system-color-rgb), .32);
}

.pwa-install-prompt__title,
.pwa-install-prompt__message {
    display: block;
}

.pwa-install-prompt__title {
    font-size: 1.05rem;
    line-height: 1.15;
}

.pwa-install-prompt__message {
    margin-top: .2rem;
    color: #5f4a43;
    font-size: .92rem;
    line-height: 1.3;
}

.pwa-install-prompt__install {
    flex: 0 0 auto;
    min-height: 2.4rem;
    padding-right: 1rem;
    padding-left: 1rem;
    font-weight: 700;
}

.pwa-install-prompt__dismiss {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    color: #5f4a43;
    background: rgba(47, 35, 32, .07);
    font-size: 1.35rem;
    line-height: 1;
}

.pwa-install-prompt__dismiss:hover,
.pwa-install-prompt__dismiss:focus {
    background: rgba(47, 35, 32, .12);
}

@media (min-width: 992px) {
    .pwa-install-prompt {
        display: none !important;
    }
}

/* ===== Sidebar layout ===== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    background: var(--aura-menu-background);
    background: linear-gradient(160deg, var(--aura-menu-background) 0%, var(--aura-menu-background-end) 100%);
    border-right: 1px solid rgba(223, 186, 171, 0.1);
    box-shadow: 4px 0 32px rgba(14, 11, 10, 0.16);
    transition: width .22s ease;
    overflow: hidden;
}

html.sidebar-pending .app-sidebar,
html.sidebar-pending .app-content,
html.sidebar-pending .sidebar-brand-text,
html.sidebar-pending .sidebar-label,
html.sidebar-pending .sidebar-section-title,
html.sidebar-pending .sidebar-toggle-icon {
    transition: none !important;
}

html.sidebar-navigating .app-sidebar,
html.sidebar-navigating .app-content,
html.sidebar-navigating .sidebar-link,
html.sidebar-navigating .sidebar-brand-text,
html.sidebar-navigating .sidebar-label,
html.sidebar-navigating .sidebar-section-title,
html.sidebar-navigating .sidebar-toggle-icon,
html.sidebar-navigating .sidebar-toggle-btn {
    transition: none !important;
}

html.sidebar-collapsed .app-sidebar {
    width: 64px;
}

.app-content {
    flex: 1;
    position: relative;
    min-width: 0;
    min-height: 100vh;
    margin-left: 240px;
    transition: margin-left .22s ease;
}

html.sidebar-collapsed .app-content {
    margin-left: 64px;
}

/* Sidebar header */
.sidebar-header {
    flex-shrink: 0;
    padding: 1rem .625rem .875rem;
    border-bottom: 1px solid rgba(223, 186, 171, 0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-brand-icon {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(var(--aura-system-color-rgb), 0.15));
}

.sidebar-brand-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f4dbd2;
    letter-spacing: .02em;
    transition: opacity .15s ease;
    overflow: hidden;
    white-space: nowrap;
}

html.sidebar-collapsed .sidebar-brand-text {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar nav */
.sidebar-nav {
    flex: 1;
    padding: .625rem .5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(var(--aura-system-color-rgb), 0.2); border-radius: 2px; }

.sidebar-section {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sidebar-section + .sidebar-section {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(244, 226, 218, 0.12);
}

.sidebar-section-title {
    padding: .35rem .75rem .25rem;
    color: rgba(244, 226, 218, 0.46);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .15s ease, height .15s ease, padding .15s ease;
}

html.sidebar-collapsed .sidebar-section-title {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5625rem .75rem;
    border-radius: .75rem;
    color: rgba(244, 226, 218, 0.72);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: .9rem;
    transition: background .14s ease, color .14s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: #fff7f2;
    background: rgba(var(--aura-system-color-rgb), 0.14);
    text-decoration: none;
}

.sidebar-link.active {
    color: #fff7f2;
    background: rgba(var(--aura-system-color-rgb), 0.24);
}

.sidebar-link--subscription {
    align-items: flex-start;
    gap: .7rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.sidebar-link__content {
    display: grid;
    gap: .18rem;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-link__row {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.sidebar-link__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff7f2;
    font-size: .88rem;
    font-weight: 700;
}

.sidebar-link__meta {
    color: rgba(244, 226, 218, 0.7);
    font-size: .75rem;
    line-height: 1.25;
}

.sidebar-link__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .1rem .42rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-link__badge--info {
    color: #f7eee6;
    background: rgba(120, 180, 196, 0.22);
}

.sidebar-link__badge--success {
    color: #f2f7ea;
    background: rgba(112, 151, 94, 0.24);
}

.sidebar-link__badge--warning {
    color: #fff3e6;
    background: rgba(209, 145, 79, 0.24);
}

.sidebar-link__badge--danger {
    color: #fff0ed;
    background: rgba(181, 76, 60, 0.24);
}

.sidebar-link__badge--neutral {
    color: #f4e2da;
    background: rgba(244, 226, 218, 0.16);
}

.sidebar-icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.sidebar-label {
    transition: opacity .15s ease;
    overflow: hidden;
}

html.sidebar-collapsed .sidebar-label {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar footer / toggle */
.sidebar-footer {
    flex-shrink: 0;
    padding: .5rem;
    border-top: 1px solid rgba(223, 186, 171, 0.08);
}

.sidebar-user {
    text-align: center;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .5rem;
    border: none;
    border-radius: .75rem;
    background: transparent;
    color: rgba(244, 226, 218, 0.45);
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.sidebar-toggle-btn--header {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    flex: 0 0 auto;
}

.sidebar-toggle-btn:hover {
    background: rgba(var(--aura-system-color-rgb), 0.12);
    color: rgba(244, 226, 218, 0.85);
}

.sidebar-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform .22s ease;
}

html.sidebar-collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* Mobile toggle button */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 1020;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: .625rem;
    background: var(--aura-menu-background);
    color: rgba(244, 226, 218, 0.85);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(14, 11, 10, 0.3);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1029;
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    .trial-badge-overlay {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 3.5rem .75rem 0;
        z-index: auto;
    }

    .trial-badge-shell {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .trial-badge {
        justify-content: flex-start;
        text-align: left;
    }

    .app-sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: none;
    }

    html.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(14, 11, 10, 0.32);
    }

    html.sidebar-mobile-open .sidebar-brand-text,
    html.sidebar-mobile-open .sidebar-label,
    html.sidebar-mobile-open .sidebar-section-title {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    html.sidebar-mobile-open .sidebar-section-title {
        height: auto;
        padding: .35rem .75rem .25rem;
    }

    html.sidebar-mobile-open .sidebar-overlay {
        display: block;
    }

    .app-content {
        margin-left: 0 !important;
        transition: none;
    }

    .sidebar-mobile-toggle {
        display: flex;
    }

    .sidebar-toggle-btn {
        display: none;
    }
}

body.attendance-page-lock {
    overflow: hidden;
}

body.attendance-page-lock .app-content {
    overflow: hidden;
}

body.attendance-page-lock .app-shell {
    min-height: 0;
    overflow: hidden;
}

.attendance-page {
    --attendance-page-height: calc(100vh - 2rem);
    height: var(--attendance-page-height);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.attendance-page__header {
    flex: 0 0 auto;
}

.attendance-page__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.attendance-page__content > [class*="col-"] {
    min-height: 0;
}

.attendance-settings-card {
    position: sticky;
    top: 1rem;
    height: 100%;
    max-height: 100%;
}

.attendance-collaborator-filters {
    max-height: 360px;
    overflow-y: auto;
}

.attendance-collaborator-filters .form-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

.attendance-collaborator-filters .form-check-input {
    margin-top: .15rem;
    flex: 0 0 auto;
}

.attendance-collaborator-filters .form-check-label {
    display: block;
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.3;
}

.attendance-settings-card .card-body {
    max-height: 100%;
    overflow-y: auto;
}

.attendance-settings-drawer {
    --bs-offcanvas-width: min(420px, 100vw);
}

.attendance-settings-drawer__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.attendance-settings-section {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.attendance-settings-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.attendance-settings-section--filters {
    min-height: 0;
}

.customer-profile-modal {
    overflow: hidden;
}

.customer-profile-modal__body {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

.customer-profile-hero {
    display: grid;
    grid-template-columns: 9.25rem 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid rgba(205, 177, 162, 0.55);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.customer-profile-avatar {
    display: grid;
    place-items: center;
    width: 9.25rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(var(--aura-system-color-rgb), 0.14);
    color: var(--aura-system-color);
    font-size: 2.6rem;
    font-weight: 800;
}

.customer-profile-hero__content {
    min-width: 0;
}

.customer-profile-title {
    margin: 0;
    color: var(--aura-ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: .98;
}

.customer-profile-subtitle {
    margin: .75rem 0 0;
    color: var(--aura-ink-soft);
}

.customer-profile-status {
    flex: 0 0 auto;
    padding: .42rem .85rem;
    border: 1px solid rgba(var(--aura-system-color-rgb), 0.28);
    border-radius: 999px;
    color: var(--aura-system-color);
    font-weight: 700;
}

.customer-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.customer-profile-stats div {
    display: grid;
    gap: .15rem;
}

.customer-profile-stats strong {
    color: var(--aura-ink);
    font-size: 1.05rem;
}

.customer-profile-stats span {
    color: var(--aura-ink-soft);
    font-size: .9rem;
}

.customer-profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.customer-profile-tabs .nav-link {
    white-space: nowrap;
}

.customer-profile-tab-content {
    min-height: 18rem;
}

.customer-profile-section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(205, 177, 162, 0.45);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
}

.customer-profile-section + .customer-profile-section {
    margin-top: 1rem;
}

.customer-profile-section h3 {
    margin: 0;
    color: var(--aura-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.customer-profile-section__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.customer-profile-section__header p {
    margin: .25rem 0 0;
    color: var(--aura-ink-soft);
}

.customer-profile-online-status {
    width: fit-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, .12);
    color: #146c43;
    font-weight: 700;
}

.customer-profile-online-status--disabled {
    background: rgba(108, 117, 125, .12);
    color: #6c757d;
}

.customer-profile-general-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.customer-profile-field {
    display: grid;
    gap: .25rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid rgba(205, 177, 162, 0.35);
    border-radius: .75rem;
    background: rgba(255, 253, 249, 0.78);
}

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

.customer-profile-field span {
    color: var(--aura-ink-soft);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.customer-profile-field strong {
    min-width: 0;
    color: var(--aura-ink);
    font-weight: 700;
    word-break: break-word;
}

.customer-profile-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.customer-profile-phone + .customer-profile-phone {
    margin-top: .5rem;
}

.customer-profile-phone span {
    color: var(--aura-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.customer-profile-consumption {
    display: grid;
    gap: 1rem;
}

.customer-profile-consumption-metrics {
    display: grid;
    gap: .45rem;
}

.customer-profile-consumption-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .15rem 0;
}

.customer-profile-consumption-metric span {
    color: var(--aura-ink-soft);
}

.customer-profile-consumption-metric strong {
    color: var(--aura-ink);
    font-weight: 800;
    text-align: right;
}

.customer-profile-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.25rem;
    padding-bottom: .5rem;
}

.customer-profile-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--aura-ink-soft);
    font-size: .95rem;
    font-weight: 700;
}

.customer-profile-chart-legend i {
    width: .85rem;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--series-color);
}

.customer-profile-chart-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: .5rem;
}

.customer-profile-monthly-chart {
    min-width: 640px;
    height: 300px;
}

.customer-profile-monthly-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.customer-profile-chart-grid line {
    stroke: rgba(108, 117, 125, .32);
    stroke-width: 1;
}

.customer-profile-chart-grid text {
    fill: var(--aura-ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.customer-profile-chart-axis {
    stroke: rgba(33, 37, 41, .58);
    stroke-width: 1.2;
}

.customer-profile-chart-area {
    fill: var(--fill-color);
}

.customer-profile-chart-line {
    fill: none;
    stroke: var(--line-color);
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.customer-profile-chart-dots circle {
    fill: #fff;
    stroke: var(--line-color);
    stroke-width: 2;
}

.customer-profile-activity-list,
.customer-profile-package-list {
    display: grid;
    gap: .75rem;
}

.customer-profile-activity,
.customer-profile-package {
    display: grid;
    gap: .25rem;
    padding: .9rem;
    border: 1px solid rgba(205, 177, 162, 0.35);
    border-radius: .75rem;
    background: rgba(255, 253, 249, 0.78);
}

.customer-profile-activity span,
.customer-profile-package span {
    color: var(--aura-ink-soft);
    font-size: .85rem;
}

.customer-profile-package-table-wrapper,
.customer-profile-package-history-wrapper {
    width: 100%;
    overflow-x: auto;
}

.customer-profile-package-table,
.customer-profile-package-history {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.customer-profile-package-table th,
.customer-profile-package-history th {
    padding: .7rem .55rem;
    border-bottom: 1px solid rgba(108, 117, 125, .26);
    color: var(--aura-ink-soft);
    font-size: .82rem;
    font-weight: 800;
    text-align: left;
}

.customer-profile-package-table td,
.customer-profile-package-history td {
    padding: 1.25rem .55rem;
    border-bottom: 1px solid rgba(108, 117, 125, .18);
    color: var(--aura-ink);
    vertical-align: middle;
}

.customer-profile-package-table tbody tr:last-child td,
.customer-profile-package-history tbody tr:last-child td {
    border-bottom: 0;
}

.customer-profile-package-date {
    width: 11rem;
    font-weight: 700;
    white-space: nowrap;
}

.customer-profile-package-service {
    color: var(--aura-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.customer-profile-package-balance {
    margin-top: .2rem;
    color: var(--aura-ink);
    font-size: .92rem;
}

.customer-profile-package-action-cell {
    width: 3rem;
    text-align: right;
}

.customer-profile-package-action {
    display: inline-grid;
    place-items: center;
    gap: .16rem;
    width: 2.25rem;
    aspect-ratio: 1;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--aura-ink-soft);
}

.customer-profile-package-action:hover,
.customer-profile-package-action:focus {
    background: rgba(108, 117, 125, .1);
}

.customer-profile-package-action span {
    display: block;
    width: .26rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: currentColor;
}

.customer-profile-package-detail {
    display: grid;
    gap: 1.5rem;
}

.customer-profile-package-back {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .75rem;
    border: 0;
    background: transparent;
    color: var(--aura-ink);
    font-size: 1.35rem;
    font-weight: 800;
    padding: 0;
}

.customer-profile-package-back:hover,
.customer-profile-package-back:focus {
    color: var(--aura-system-color);
}

.customer-profile-package-detail h4 {
    margin: 0;
    color: var(--aura-ink);
    font-size: 1.55rem;
    font-weight: 800;
}

.customer-profile-package-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 2rem;
    color: var(--aura-ink);
}

.customer-profile-package-detail-grid strong {
    font-weight: 800;
}

.customer-profile-package-history th:nth-child(2),
.customer-profile-package-history td:nth-child(2) {
    width: 12rem;
}

.customer-profile-activity-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem 1.25rem;
    flex-wrap: wrap;
}

.customer-profile-activity-filter {
    margin: 0;
}

.customer-profile-activity-filter select {
    min-width: 7.5rem;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--aura-ink);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    padding: .35rem 1.4rem .35rem 0;
}

.customer-profile-activity-filter select:focus {
    outline: 0;
    border-bottom-color: rgba(var(--aura-system-color-rgb), .65);
}

.customer-profile-activity-download {
    display: grid;
    place-items: center;
    width: 2.35rem;
    aspect-ratio: 1;
    margin-left: auto;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--aura-system-color);
}

.customer-profile-activity-download:hover,
.customer-profile-activity-download:focus {
    background: rgba(var(--aura-system-color-rgb), .1);
}

.customer-profile-activity-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.customer-profile-activity-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.customer-profile-activity-table th {
    padding: .65rem .55rem;
    border-bottom: 1px solid rgba(108, 117, 125, .26);
    color: var(--aura-ink-soft);
    font-size: .82rem;
    font-weight: 800;
    text-align: left;
}

.customer-profile-activity-table td {
    padding: .85rem .55rem;
    border-bottom: 1px solid rgba(108, 117, 125, .18);
    color: var(--aura-ink);
    vertical-align: middle;
}

.customer-profile-activity-table tbody tr:last-child td {
    border-bottom: 0;
}

.customer-profile-activity-date,
.customer-profile-activity-description,
.customer-profile-activity-situation {
    font-weight: 700;
}

.customer-profile-activity-description {
    max-width: 18rem;
    white-space: normal;
}

.customer-profile-activity-time,
.customer-profile-activity-status-label {
    color: var(--aura-ink-soft);
    font-size: .84rem;
}

.customer-profile-activity-time::before {
    content: "";
    display: inline-block;
    width: .75rem;
    aspect-ratio: 1;
    margin-right: .2rem;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    vertical-align: -.1rem;
}

.customer-profile-activity-icon-cell,
.customer-profile-activity-status-cell {
    width: 2.5rem;
    text-align: center;
}

.customer-profile-activity-type-icon,
.customer-profile-activity-status {
    display: inline-grid;
    place-items: center;
    color: var(--aura-ink);
}

.customer-profile-activity-type-icon--sale {
    color: #6f42c1;
}

.customer-profile-activity-status--done {
    color: var(--aura-system-color);
}

.customer-profile-activity-status--pending {
    width: 1.5rem;
    aspect-ratio: 1;
}

.customer-profile-activity-value {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.customer-profile-balance__amount {
    font-size: 2rem;
    font-weight: 800;
}

.customer-profile-empty {
    padding: 1rem;
    border: 1px dashed rgba(205, 177, 162, 0.7);
    border-radius: .75rem;
    color: var(--aura-ink-soft);
    text-align: center;
}

.customer-profile-modal__footer {
    padding: 1rem 2rem 1.5rem;
}

@media (max-width: 767.98px) {
    .customer-profile-modal__body {
        padding: 1rem;
    }

    .customer-profile-hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .customer-profile-avatar {
        width: 6.5rem;
        font-size: 1.9rem;
    }

    .customer-profile-stats,
    .customer-profile-general-grid {
        grid-template-columns: 1fr;
    }

    .customer-profile-consumption-metric {
        display: grid;
        gap: .15rem;
    }

    .customer-profile-consumption-metric strong {
        text-align: left;
    }

    .customer-profile-activity-toolbar {
        align-items: stretch;
    }

    .customer-profile-activity-filter,
    .customer-profile-activity-filter select {
        width: 100%;
    }

    .customer-profile-activity-download {
        margin-left: 0;
    }

    .customer-profile-package-table,
    .customer-profile-package-history {
        min-width: 560px;
    }

    .customer-profile-package-detail-grid {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .customer-profile-package-back {
        font-size: 1.1rem;
    }

    .customer-profile-modal__footer {
        display: grid;
        gap: .75rem;
        padding: 1rem;
    }

    .customer-profile-modal__footer .btn {
        width: 100%;
    }
}


.attendance-page__board-column,
.attendance-board-card,
.attendance-board-card__body {
    height: 100%;
    min-height: 0;
}

.attendance-board-card {
    overflow: hidden;
}

.attendance-board-card__body {
    display: flex;
    flex-direction: column;
}

.attendance-board-wrapper {
    --attendance-slot-height: 72px;
    --attendance-board-height: 912px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scroll-behavior: smooth;
}

.attendance-toolbar__gutter {
    width: 84px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e9ecef;
}

.attendance-board {
    min-width: 980px;
}

.attendance-date-picker {
    position: relative;
    display: inline-flex;
}

.attendance-date-picker__input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.attendance-date-picker__button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 10.75rem;
    justify-content: center;
    border-color: #e4d6cb;
    color: var(--aura-ink);
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
}

.attendance-date-picker__input:focus-visible + .attendance-date-picker__button {
    outline: 2px solid rgba(var(--aura-system-color-rgb), 0.35);
    outline-offset: 2px;
}

.attendance-date-picker__icon {
    width: .95rem;
    height: .95rem;
    flex: 0 0 auto;
    color: var(--aura-rose-deep);
}

.attendance-horizontal-nav {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.attendance-horizontal-nav__button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.attendance-horizontal-nav__status {
    min-width: 7rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.attendance-horizontal-nav--inactive .attendance-horizontal-nav__status {
    color: #94a3b8;
}

.attendance-column-context-menu {
    position: fixed;
    z-index: 2200;
    min-width: 190px;
    padding: .35rem;
    border: 1px solid #d9dee5;
    border-radius: .35rem;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    display: none;
}

.attendance-column-context-menu.is-open {
    display: block;
}

.attendance-column-context-menu__item {
    width: 100%;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    color: #1f2937;
    display: block;
    padding: .45rem .55rem;
    text-align: left;
    font-size: .86rem;
    line-height: 1.25;
}

.attendance-column-context-menu__item:hover,
.attendance-column-context-menu__item:focus {
    background: #f4f6f8;
}

.attendance-column-context-menu__item:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.attendance-board-header {
    display: grid;
    grid-template-columns: 84px repeat(auto-fit, minmax(220px, 1fr));
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
}

.attendance-time-column-header {
    position: sticky;
    left: 0;
    z-index: 31;
    background: #fff;
    border-right: 1px solid #e9ecef;
    min-height: 64px;
}

.attendance-collaborator-header {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #e9ecef;
    padding: .6rem .5rem;
    background: #fff;
    cursor: context-menu;
    user-select: none;
}

.attendance-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #dbe7ff;
    color: #0d47a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.attendance-avatar--photo {
    object-fit: cover;
    background: none;
}

.attendance-collaborator-name {
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.attendance-board-body {
    display: grid;
    grid-template-columns: 84px repeat(auto-fit, minmax(220px, 1fr));
}

.attendance-time-column {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    border-right: 1px solid #e9ecef;
}

.attendance-time-slot {
    height: var(--attendance-slot-height);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: .15rem;
    color: #495057;
    font-size: .75rem;
    border-bottom: 1px solid #f1f3f5;
}

.attendance-collaborator-column {
    position: relative;
    height: var(--attendance-board-height);
    border-right: 1px solid #edf0f3;
    background-color: #fff;
    line-height: 0;
    background-image:
        linear-gradient(to bottom, transparent calc(var(--attendance-slot-height) - 1px), #f1f3f5 var(--attendance-slot-height)),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
    background-size: 100% var(--attendance-slot-height);
}

.attendance-grid-slot {
    height: var(--attendance-slot-height);
    border-bottom: 1px solid #f1f3f5;
    box-sizing: border-box;
}

.attendance-grid-slot-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    line-height: 0;
    vertical-align: top;
}

.attendance-grid-slot-button:hover {
    background: rgba(13, 110, 253, 0.08);
}

.attendance-grid-slot-button:hover::before {
    content: attr(data-slot-time) " - Adicionar";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 110, 253, 0.85);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.attendance-grid-slot-button--disabled {
    background: rgba(148, 163, 184, 0.12);
    cursor: not-allowed;
}

.attendance-grid-slot-button--disabled:hover {
    background: rgba(148, 163, 184, 0.12);
}

.attendance-grid-slot-button--disabled:hover::before {
    content: none;
}

.attendance-grid-slot-button--disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(148, 163, 184, 0.1),
        rgba(148, 163, 184, 0.1) 4px,
        rgba(148, 163, 184, 0.03) 4px,
        rgba(148, 163, 184, 0.03) 8px
    );
    pointer-events: none;
}

.attendance-blocked-range {
    position: absolute;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(160, 170, 185, 0.12),
        rgba(160, 170, 185, 0.12) 3px,
        rgba(160, 170, 185, 0.06) 3px,
        rgba(160, 170, 185, 0.06) 6px
    );
    pointer-events: none;
    z-index: 0;
}

.attendance-blocked-range--booking-allowed {
    background: repeating-linear-gradient(
        -45deg,
        rgba(80, 120, 155, 0.08),
        rgba(80, 120, 155, 0.08) 3px,
        rgba(80, 120, 155, 0.025) 3px,
        rgba(80, 120, 155, 0.025) 7px
    );
}

.attendance-collaborator-hours {
    margin-top: .15rem;
    font-size: .68rem;
    line-height: 1.25;
    color: #64748b;
    white-space: pre-line;
    text-align: center;
}

.attendance-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #e63946;
    z-index: 4;
    pointer-events: none;
}

.attendance-now-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e63946;
}

.service-list-page {
    min-width: 0;
}

.service-list-page__actions {
    flex-wrap: wrap;
}

.service-list-page__mobile-list {
    display: none;
}

.service-list-page__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.service-list-page__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.service-list-page__mobile-title {
    min-width: 0;
}

.service-list-page__mobile-title h2 {
    margin: 0 0 .3rem;
    color: #231a14;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.service-list-page__mobile-title > span:not(.service-category-chip) {
    color: #6f6257;
    font-size: .86rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.service-list-page__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.service-list-page__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.service-list-page__mobile-field--full {
    grid-column: 1 / -1;
}

.service-list-page__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-list-page__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.service-list-page__mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.service-list-page__mobile-actions form,
.service-list-page__mobile-actions .btn {
    width: 100%;
}

.service-list-page__mobile-actions .btn {
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .service-list-page__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .service-list-page__actions,
    .service-list-page__actions .btn,
    .service-list-page__filters .btn {
        width: 100%;
    }

    .service-list-page__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .service-list-page__results-card > .card-body {
        padding: 1rem;
        border: 1px solid rgba(205, 177, 162, .55) !important;
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
    }

    .service-list-page__filters .col-12,
    .service-list-page__filters .col-xl-1 {
        width: 100%;
    }

    .service-list-page__desktop-table {
        display: none;
    }

    .service-list-page__mobile-list {
        display: grid;
        gap: .85rem;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .service-list-page__header {
        padding-top: 2.75rem;
    }

    .service-list-page__mobile-top {
        flex-direction: column;
        gap: .55rem;
    }

    .service-list-page__mobile-grid,
    .service-list-page__mobile-actions {
        grid-template-columns: 1fr;
    }
}

.service-editor {
    max-width: 1440px;
    margin: 0 auto;
}

.service-editor__shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 243, 0.98));
    border: 1px solid rgba(193, 160, 122, 0.18);
    border-radius: 1.5rem;
    overflow: hidden;
}

.service-editor__header {
    border-bottom: 1px solid rgba(193, 160, 122, 0.18);
    background: rgba(255, 255, 255, 0.82);
}

.service-editor__toolbar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: .75rem;
}

.service-editor__back,
.service-editor__save {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.service-editor__back {
    font-size: 1.35rem;
    padding: 0;
}

.service-editor__body {
    padding: 1rem 1rem 1.5rem;
}

.service-form {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.service-form__section {
    margin-top: 0;
    min-width: 0;
}

.service-form__section--span-2 {
    grid-column: 1 / -1;
}

.service-form .row {
    --bs-gutter-x: 1rem;
}

.service-form__group-title {
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.service-form__commission-fields {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.service-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ebe7df;
}

.service-professional-summary {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid rgba(35, 26, 20, .12);
    border-radius: .75rem;
    background: #fff;
}

.service-professional-summary__main,
.service-professional-summary__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.service-professional-summary__eyebrow {
    color: #75685f;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-professional-summary__title {
    margin: 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 800;
}

.service-professional-summary__count {
    flex: 0 0 auto;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(35, 26, 20, .08);
    color: #231a14;
    font-size: .85rem;
    font-weight: 700;
}

.service-professional-summary__preview {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    min-width: 0;
}

.service-professional-summary__preview span {
    max-width: 220px;
    padding: .35rem .6rem;
    border: 1px solid rgba(205, 177, 162, .52);
    border-radius: 999px;
    background: rgba(250, 247, 243, .86);
    color: #43372d;
    font-size: .85rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-professionals-drawer {
    --bs-offcanvas-width: min(520px, 100vw);
    padding: 1rem;
}

.service-professionals-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(205, 177, 162, .45);
}

.service-professionals-drawer__header .btn-close {
    flex: 0 0 auto;
}

.service-professionals-drawer .row {
    --bs-gutter-y: .55rem;
}

.service-professionals-drawer [data-service-professional-list] {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: .25rem;
}

.service-professionals-drawer__footer {
    position: sticky;
    bottom: -1rem;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin: 1rem -1rem -1rem;
    padding: 1rem;
    border-top: 1px solid rgba(205, 177, 162, .45);
    background: #fff;
}

.service-category-color-field {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
}

.service-category-color-field__picker {
    width: 54px;
    min-height: 38px;
    padding: .25rem;
}

.service-category-selection {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    margin-top: .5rem;
    min-height: 1.75rem;
}

.service-category-chip {
    --category-color: #c9956c;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    color: #2c2722;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.service-category-chip__dot {
    width: .85rem;
    height: .85rem;
    border-radius: 999px;
    background: var(--category-color);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

.service-category-page {
    min-width: 0;
}

.service-category-page__mobile-list {
    display: none;
}

.service-category-page__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.service-category-page__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.service-category-page__mobile-title {
    min-width: 0;
}

.service-category-page__mobile-title h2 {
    margin: 0 0 .35rem;
    color: #231a14;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.service-category-page__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.service-category-page__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.service-category-page__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-category-page__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.service-category-page__mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.service-category-page__mobile-actions .btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .service-category-page__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .service-category-page__back,
    .service-category-page__create-form .btn {
        width: 100%;
    }

    .service-category-page__form-card,
    .service-category-page__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .service-category-page__form-card .card-body {
        padding: 1rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
    }

    .service-category-page__create-form [class*="col-"] {
        width: 100%;
    }

    .service-category-page__desktop-table {
        display: none;
    }

    .service-category-page__mobile-list {
        display: grid;
        gap: .85rem;
    }
}

@media (max-width: 575.98px) {
    .service-category-page__header {
        padding-top: 2.75rem;
    }

    .service-category-page__mobile-top {
        flex-direction: column;
        gap: .55rem;
    }

    .service-category-page__mobile-grid,
    .service-category-page__mobile-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .service-category-page .form-control,
    .service-category-page .form-select,
    .service-category-edit-modal .form-control,
    .service-category-edit-modal .form-select {
        min-height: 46px;
        font-size: 16px;
    }

    .service-category-page .form-control-color,
    .service-category-edit-modal .form-control-color {
        min-height: 46px;
    }

    .service-category-edit-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
    }

    .service-category-edit-drawer .collaborator-schedule-drawer__toolbar {
        min-height: 56px;
        padding: .75rem .9rem;
    }

    .service-category-edit-drawer .collaborator-schedule-drawer__body {
        padding: 0;
    }

    .service-category-edit-modal {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    .service-category-edit-modal .customer-create-modal__body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: .85rem .85rem 1rem;
    }

    .service-category-edit-modal .customer-form-section {
        padding: .85rem;
        border-radius: .85rem;
    }

    .service-category-edit-modal .customer-create-modal__footer {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .65rem !important;
        padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .service-category-edit-modal .customer-create-modal__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    #toggleServiceCategoryModal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
    }

    #toggleServiceCategoryModal .modal-content {
        height: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    #toggleServiceCategoryModal form {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    #toggleServiceCategoryModal .modal-header {
        align-items: flex-start;
        padding: 1rem .95rem .75rem;
    }

    #toggleServiceCategoryModal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: .95rem;
    }

    #toggleServiceCategoryModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52) !important;
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    #toggleServiceCategoryModal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .service-editor {
        max-width: 100%;
    }

    .service-editor__toolbar,
    .service-form {
        max-width: 100%;
    }

    .service-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-form__section--span-2 {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .service-editor {
        padding-top: 2.75rem;
    }

    .service-editor__shell {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
    }

    .service-editor__toolbar {
        min-height: 56px;
        padding: .75rem .9rem;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        border-radius: .95rem;
        background: #231a14;
        color: #fff;
    }

    .service-editor__back,
    .service-editor__save {
        color: inherit;
    }

    .service-editor__toolbar h1 {
        min-width: 0;
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }

    .service-editor__body {
        padding: .85rem 0 0;
    }

    .service-form {
        gap: .85rem;
    }

    .service-form__section,
    .service-form__commission-fields {
        padding: .85rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: .9rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 10px 24px rgba(39, 24, 18, .06);
    }

    .service-form__section:has(.service-product-usage-row) > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .65rem !important;
    }

    .service-form__section:has(.service-product-usage-row) > .d-flex .btn,
    [data-add-service-product] {
        width: 100%;
        min-height: 42px;
    }

    .service-form .form-control,
    .service-form .form-select,
    #serviceImportModal .form-control {
        min-height: 46px;
        font-size: 16px;
    }

    .service-category-selection {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-product-usage-row {
        margin: 0;
        padding: .85rem;
        border: 1px solid rgba(236, 231, 222, .92);
        border-radius: .85rem;
        background: rgba(255, 255, 255, .58);
    }

    .service-product-usage-row + .service-product-usage-row {
        margin-top: .75rem;
    }

    .service-product-usage-row [class*="col-"] {
        width: 100%;
    }

    .service-product-usage-row .text-end {
        text-align: left !important;
    }

    .service-product-usage-row [data-remove-service-product] {
        width: 100%;
        min-height: 42px;
    }

    .service-form__footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        margin: .15rem -.85rem -.85rem;
        padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52);
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .service-form__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    .service-professional-summary__main,
    .service-professional-summary__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .service-professional-summary__bottom .btn,
    .service-professionals-drawer__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    .service-professionals-drawer__footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    #serviceImportModal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
    }

    #serviceImportModal .modal-content {
        height: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    #serviceImportForm {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    #serviceImportModal .modal-header {
        align-items: flex-start;
        padding: 1rem .95rem .75rem;
    }

    #serviceImportModal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: .95rem;
    }

    #serviceImportModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52) !important;
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    #serviceImportModal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
    }
}

.attendance-appointment {
    --attendance-appointment-lane-index: 0;
    --attendance-appointment-lane-count: 1;
    --attendance-appointment-left: 2px;
    --attendance-appointment-width: calc(100% - 4px);
    position: absolute;
    left: var(--attendance-appointment-left);
    right: auto;
    width: var(--attendance-appointment-width);
    border-left: 3px solid #4f8dfd;
    border-radius: .35rem;
    padding: .3rem .42rem;
    color: #0f172a;
    font-size: .68rem;
    line-height: 1.15;
    box-shadow: inset 0 0 0 1px rgba(79, 141, 253, 0.12);
    display: flex;
    flex-direction: column;
    gap: .12rem;
    overflow: hidden;
    z-index: 1;
}

.attendance-appointment--compact {
    gap: .08rem;
    padding: .22rem .3rem;
    font-size: .62rem;
}

.attendance-appointment-header {
    display: flex;
    align-items: flex-start;
    gap: .22rem;
    min-width: 0;
}

.attendance-appointment--compact .attendance-appointment-header {
    flex-wrap: wrap;
    gap: .06rem .16rem;
}

.attendance-appointment-flags {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-end;
    gap: .18rem;
    margin-left: auto;
    line-height: 1;
}

.attendance-appointment-flag {
    color: rgba(55, 97, 176, 0.45);
    width: .95rem;
    height: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    cursor: help;
}

.attendance-appointment-flag svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.attendance-appointment--compact .attendance-appointment-flags {
    margin-left: 0;
    gap: .12rem;
}

.attendance-appointment--compact .attendance-appointment-flag {
    width: .78rem;
    height: .78rem;
}

.attendance-appointment-flag--active {
    color: #3761b0;
}

.attendance-appointment-flag--whatsapp-yes {
    color: #198754;
}

.attendance-appointment-flag--whatsapp-no {
    color: #dc3545;
}

.attendance-appointment-flag--tab {
    color: #7c3aed;
}

.attendance-appointment-flag--tab.attendance-appointment-flag--active {
    color: #4338ca;
}

.attendance-appointment-flag--completed {
    color: #0f766e;
}

.attendance-appointment--interactive {
    cursor: pointer;
    z-index: 2;
}

.attendance-appointment--interactive * {
    cursor: pointer;
}

.attendance-appointment--interactive:hover,
.attendance-appointment--interactive:focus-within {
    z-index: 20 !important;
}

.attendance-appointment--stacked {
    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.12),
        inset 0 0 0 1px rgba(79, 141, 253, 0.12);
}

.attendance-appointment--personal {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    color: #495057;
}

.attendance-appointment-time {
    min-width: 0;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-appointment--compact .attendance-appointment-time {
    flex: 1 0 100%;
}

.attendance-appointment-customer {
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-appointment-service {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-appointment-services {
    display: grid;
    gap: .24rem;
    margin-top: .12rem;
    min-height: 0;
    overflow: hidden;
}

.attendance-appointment-service-card {
    padding: .22rem .32rem;
    border-radius: .28rem;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.attendance-appointment-service-card--assistant {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.attendance-appointment-service-card__name {
    font-weight: 600;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-appointment-service-card__meta {
    margin-top: .08rem;
    font-size: .55rem;
    line-height: 1.1;
    color: rgba(15, 23, 42, 0.7);
}

.attendance-appointment--compact .attendance-appointment-services {
    gap: .08rem;
    margin-top: 0;
}

.attendance-appointment--compact .attendance-appointment-service-card {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.attendance-appointment--compact .attendance-appointment-service-card__name,
.attendance-appointment--compact .attendance-appointment-customer {
    white-space: nowrap;
}

.attendance-appointment--compact .attendance-appointment-service-card__meta {
    display: none;
}

.attendance-offcanvas {
    --bs-offcanvas-width: 52vw;
    min-width: 624px;
    max-width: 832px;
}

.attendance-drawer-form {
    max-width: none;
    margin: 0 auto;
    width: 100%;
}

.attendance-drawer-intro {
    margin-bottom: 1.25rem;
}

.attendance-form-section {
    padding: 1rem 1rem 1.1rem;
    border: 1px solid #e9ecef;
    border-radius: .85rem;
    background: #ffffff;
}

.attendance-form-section--services {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: #d7e6ff;
}

.attendance-form-section__header {
    margin-bottom: 1rem;
}

.attendance-form-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.attendance-form-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.attendance-form-section__date {
    color: #6b7280;
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.attendance-form-section__subtitle {
    margin: .3rem 0 0;
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.45;
}

.attendance-context-chip {
    padding: .8rem .95rem;
    border: 1px solid #dbe4f0;
    border-radius: .9rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    color: #334155;
    font-size: .92rem;
    line-height: 1.45;
}

.attendance-service-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    align-items: start;
}

.attendance-service-modal {
    border: 0;
}

.attendance-service-modal .modal-header,
.attendance-service-modal .modal-footer {
    background: #ffffff;
}

.attendance-service-modal .modal-body {
    background: #f8fafc;
    padding: 1rem;
}

.attendance-service-modal .modal-footer {
    border-top-color: #e5e7eb;
}

.attendance-service-modal__body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 0;
}

.attendance-service-section {
    padding: .85rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #ffffff;
}

.attendance-service-section__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.attendance-service-section__number {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}

.attendance-service-section__title {
    margin: 0;
    color: #1f2937;
    font-size: .95rem;
    font-weight: 700;
}

.attendance-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.attendance-service-grid--catalog {
    grid-template-columns: minmax(10rem, .72fr) minmax(0, 1.28fr);
}

.attendance-service-field {
    min-width: 0;
}

.attendance-service-field--wide {
    min-width: 0;
}

.attendance-service-field .form-label {
    margin-bottom: .35rem;
    color: #374151;
    font-size: .86rem;
    font-weight: 600;
}

.attendance-service-field .form-text:empty {
    display: none;
}

#appointmentServiceCustomDiscountType {
    max-width: 5.75rem;
}

@media (max-width: 575.98px) {
    .attendance-service-modal .modal-body {
        padding: .85rem;
    }

    .attendance-service-grid,
    .attendance-service-grid--catalog {
        grid-template-columns: 1fr;
    }
}

.attendance-customer-autocomplete {
    position: relative;
}

.attendance-professional-autocomplete {
    position: relative;
}

.attendance-customer-autocomplete .input-group {
    position: relative;
}

.attendance-autocomplete-clear {
    min-width: 5.5rem;
    border-left: 0;
}

.attendance-professional-autocomplete .input-group > .attendance-autocomplete-field,
.attendance-customer-autocomplete .input-group > .attendance-autocomplete-field {
    border-right: 0;
}

.attendance-autocomplete-field {
    border-left-width: 4px;
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.7) 0%, #ffffff 18%);
}

.attendance-autocomplete-field:focus {
    background: #ffffff;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .08);
}

.attendance-autocomplete-field--professional {
    border-left-color: #0d6efd;
}

.attendance-autocomplete-field--customer {
    border-left-color: #198754;
}

.attendance-customer-autocomplete__spinner {
    position: absolute;
    top: 50%;
    right: 10.35rem;
    transform: translateY(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

.attendance-customer-autocomplete .list-group {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    z-index: 1080;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.attendance-professional-autocomplete .list-group {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    z-index: 1080;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.attendance-customer-autocomplete .list-group-item {
    border-left: 4px solid #198754;
}

.attendance-professional-autocomplete .list-group-item {
    border-left: 4px solid #0d6efd;
}

.customer-create-modal {
    border: 0;
}

.customer-create-modal__header,
.customer-create-modal__footer {
    background: #fff;
}

.customer-create-modal__body {
    display: grid;
    gap: 1rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    max-height: min(72vh, 900px);
    overflow-y: auto;
}

.customer-create-modal__tabs {
    position: sticky;
    top: -1rem;
    z-index: 2;
    padding-top: .25rem;
    margin-bottom: 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.customer-create-modal__tabs .nav-link {
    font-weight: 600;
}

.customer-create-modal__tab-content {
    min-height: 0;
}

.customer-form-section {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: .85rem;
    background: #fff;
}

.customer-form-section__heading {
    margin-bottom: .85rem;
    font-size: .95rem;
    font-weight: 700;
    color: #1f2937;
}

.customer-phone-list {
    display: grid;
    gap: .75rem;
}

.customer-phone-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.customer-create-modal__privacy {
    font-size: .84rem;
    color: #6c757d;
}

.attendance-selected-services {
    display: grid;
    gap: .5rem;
}

.attendance-selected-services__empty {
    padding: .85rem 1rem;
    border: 1px dashed #ced4da;
    border-radius: .5rem;
    color: #6c757d;
    background: #f8f9fa;
}

.attendance-selected-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem .85rem;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    background: #fff;
}

.attendance-selected-service__content {
    min-width: 0;
}

.attendance-selected-service__name {
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-selected-service__meta {
    margin-top: .15rem;
    font-size: .78rem;
    color: #6c757d;
}

.attendance-selected-service__assistant {
    margin-top: .55rem;
}

.attendance-selected-service__assistant-link {
    padding: 0;
    font-size: .82rem;
    text-decoration: none;
}

.attendance-selected-service__assistant-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .75rem;
    font-size: .8rem;
    color: #5f5247;
}

.attendance-selected-service__assistant-autocomplete {
    max-width: 100%;
}

.attendance-selected-service__assistant-autocomplete .list-group {
    position: static;
    max-height: 180px;
    margin-top: .35rem;
    overflow-y: auto;
}

.attendance-selected-service__price {
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}

.attendance-selected-service__remove {
    padding-inline: .25rem;
    white-space: nowrap;
}

.attendance-summary {
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    background: #f8f9fa;
    padding: 1rem;
}

.attendance-summary h3 {
    margin: 0 0 .85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.attendance-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #495057;
}

.attendance-summary__row + .attendance-summary__row {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid #dee2e6;
}

.attendance-summary__row strong {
    color: #212529;
}

.attendance-summary__row--total {
    font-size: 1.02rem;
    font-weight: 700;
}

.attendance-drawer-footer {
    border-top: 1px solid #e3ddd6;
}

.remunerations-page {
    display: grid;
    gap: 1.5rem;
}

.remunerations-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.remunerations-page__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.remunerations-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #ece7de;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(46, 31, 18, 0.05);
}

.remunerations-filter-summary__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex-wrap: wrap;
}

.remunerations-filter-summary__item {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.remunerations-filter-summary__item span {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a7869;
}

.remunerations-filter-summary__item strong {
    color: #231a14;
    line-height: 1.2;
}

.remunerations-filter-summary__item small {
    color: #6f6257;
}

.remunerations-filter-drawer {
    --bs-offcanvas-width: min(460px, 100vw);
}

.remunerations-filter-drawer .offcanvas-header {
    align-items: flex-start;
    border-bottom: 1px solid #ece7de;
    padding: 1.15rem 1.25rem;
}

.remunerations-filter-drawer .offcanvas-body {
    padding: 1.25rem;
}

.remunerations-filter-drawer__footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #ece7de;
    background: #fff;
}

.remunerations-filter-fields,
.remunerations-filter-panel {
    display: grid;
    gap: 1rem;
}

.remunerations-filter-panel {
    padding-top: 1rem;
    border-top: 1px solid #ece7de;
}

.remunerations-filters {
    padding: 1.15rem 1.25rem;
    border: 1px solid #ece7de;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(201, 149, 108, 0.12), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
}

.remunerations-filters__top {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.remunerations-filters__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(236, 231, 222, 0.85);
}

.remunerations-filters__panels {
    min-width: 0;
}

.remunerations-filters__group {
    min-width: 0;
}

.remunerations-filters__period-summary {
    display: grid;
    gap: .2rem;
    padding: .8rem 1rem;
    border: 1px solid #ece7de;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.remunerations-filters__period-caption {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a7869;
}

.remunerations-filters__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
    gap: 1rem 1.25rem;
    align-items: end;
}

.remunerations-filters__details--month {
    grid-template-columns: minmax(240px, 320px) minmax(280px, max-content);
}

.remunerations-filters__month {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.remunerations-filters__month-card {
    display: grid;
    gap: .55rem;
    padding: .9rem 1rem;
    border: 1px solid #ece7de;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.remunerations-filters__month-caption {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a7869;
}

.remunerations-filters__month-label {
    min-width: 10rem;
    text-align: center;
    text-transform: capitalize;
    font-weight: 700;
    color: #2a241f;
}

.remunerations-filters__submit {
    display: flex;
    justify-content: flex-end;
    align-self: end;
}

.remunerations-filters__custom-trigger {
    align-items: start;
}

.remunerations-custom-modal {
    border: 0;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(201, 149, 108, 0.14), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
    box-shadow: 0 20px 50px rgba(46, 31, 18, 0.14);
}

.remunerations-payment-summary {
    display: grid;
    gap: .3rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d8c3b4;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(201, 149, 108, 0.16), rgba(255, 248, 242, 0.96));
}

.remunerations-payment-summary__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8b6a55;
}

.remunerations-payment-summary__value {
    font-size: 1.35rem;
    line-height: 1;
    color: #2a241f;
}

.remunerations-payment-actions {
    display: grid;
    gap: .75rem;
}

.remunerations-payment-history-card__stats {
    display: grid;
    gap: .2rem;
}

.remunerations-results-card {
    overflow: hidden;
}

.remunerations-results-card .table-responsive,
.remunerations-custom-modal .table-responsive {
    -webkit-overflow-scrolling: touch;
}

.remunerations-table thead th {
    white-space: nowrap;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6f6257;
    background: #fcfbf8;
}

.remunerations-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.remuneration-collaborator {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
}

.remuneration-collaborator__avatar,
.remuneration-collaborator__avatar-image {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.remuneration-collaborator__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9956c 0%, #8e5c35 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
}

.remuneration-collaborator__avatar-image {
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.remuneration-collaborator__name {
    font-weight: 700;
    color: #231a14;
}

.remuneration-collaborator__details {
    margin-top: .2rem;
    color: #6f6257;
    font-size: .9rem;
}

.remunerations-table__details-button {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-top: .25rem;
    padding-right: .35rem;
    padding-left: 0;
    line-height: 1.2;
    white-space: normal;
}

.remunerations-summary-card {
    position: sticky;
    top: 1rem;
    border-radius: 1.25rem;
    overflow: hidden;
}

.remunerations-summary-card__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
}

.remunerations-summary-card__highlight {
    font-size: 1.05rem;
    font-weight: 700;
    color: #231a14;
    margin-bottom: .75rem;
}

.remunerations-summary-card__stack {
    display: grid;
    gap: .45rem;
    color: #4f4338;
}

@media (max-width: 991.98px) {
    .remunerations-page__header {
        flex-direction: column;
    }

    .remunerations-filter-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .remunerations-filter-summary > .btn {
        width: 100%;
    }

    .remunerations-filters__top,
    .remunerations-filters__bottom {
        grid-template-columns: 1fr;
    }

    .remunerations-filters__details {
        grid-template-columns: 1fr;
    }

    .remunerations-filters__submit {
        justify-content: flex-start;
    }

    .remunerations-summary-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .remunerations-page {
        gap: 1rem;
        padding-top: 2.75rem;
    }

    .remunerations-page__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: .65rem;
    }

    .remunerations-page__actions .btn,
    .remunerations-filter-drawer__footer .btn,
    .remunerations-custom-modal [data-save-payment] {
        min-height: 44px;
    }

    .remunerations-filter-summary {
        gap: .85rem;
        padding: .8rem;
        border-radius: .85rem;
    }

    .remunerations-filter-summary__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .remunerations-filter-summary__item {
        padding-bottom: .65rem;
        border-bottom: 1px solid rgba(236, 231, 222, .9);
    }

    .remunerations-filter-summary__item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .remunerations-filter-drawer {
        --bs-offcanvas-width: 100vw;
    }

    .remunerations-filter-drawer .offcanvas-header,
    .remunerations-filter-drawer .offcanvas-body,
    .remunerations-filter-drawer__footer {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .remunerations-filter-drawer__footer {
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .remunerations-filters__month {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: .5rem;
    }

    .remunerations-filters__month .btn {
        width: 44px;
        min-height: 44px;
        padding-right: 0;
        padding-left: 0;
    }

    .remunerations-filters__month-label {
        min-width: 0;
        align-self: center;
    }

    .remunerations-results-card {
        border-radius: 1rem;
        background: transparent;
        box-shadow: none;
    }

    .remunerations-results-card .table-responsive {
        overflow: visible;
    }

    .remunerations-table,
    .remunerations-table tbody,
    .remunerations-table tr,
    .remunerations-table td {
        display: block;
        width: 100%;
    }

    .remunerations-table thead {
        display: none;
    }

    .remunerations-table tbody {
        display: grid;
        gap: .85rem;
    }

    .remunerations-table tbody tr {
        overflow: hidden;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 10px 24px rgba(39, 24, 18, .07);
    }

    .remunerations-table tbody td {
        padding: .75rem .9rem;
        border-bottom: 1px solid rgba(236, 231, 222, .92);
    }

    .remunerations-table tbody td:last-child {
        border-bottom: 0;
    }

    .remunerations-table tbody td[colspan] {
        border-bottom: 0;
        text-align: center !important;
    }

    .remunerations-table tbody td[data-label]:not(:first-child) {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: .75rem;
        align-items: start;
        text-align: right !important;
    }

    .remunerations-table tbody td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1 / span 10;
        color: #8a7869;
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .06em;
        line-height: 1.25;
        text-align: left;
        text-transform: uppercase;
    }

    .remunerations-table tbody td[data-label]:not(:first-child) > * {
        grid-column: 2;
        min-width: 0;
    }

    .remuneration-collaborator {
        align-items: flex-start;
        min-width: 0;
        gap: .75rem;
    }

    .remuneration-collaborator__avatar,
    .remuneration-collaborator__avatar-image {
        width: 42px;
        height: 42px;
    }

    .remuneration-collaborator__meta {
        min-width: 0;
        flex: 1 1 auto;
    }

    .remuneration-collaborator__details {
        font-size: .86rem;
        line-height: 1.32;
    }

    .remunerations-table__details-button {
        justify-content: flex-start;
        width: 100%;
        min-height: 40px;
        margin-top: .45rem;
        padding: .45rem .65rem;
        border: 1px solid rgba(var(--aura-system-color-rgb), .22);
        border-radius: .75rem;
        background: rgba(var(--aura-system-color-rgb), .08);
        text-align: left;
        text-decoration: none;
    }

    .remunerations-summary-card {
        border-radius: 1rem;
    }

    .remunerations-summary-card .card-body {
        padding: 1rem;
    }

    .remunerations-summary-card__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .75rem;
    }

    .remunerations-summary-card__row strong {
        text-align: right;
    }

    .remunerations-custom-modal {
        min-height: 100dvh;
        border-radius: 0;
    }

    .remunerations-custom-modal .modal-header {
        align-items: flex-start;
        padding: 1rem 1rem .75rem;
    }

    .remunerations-custom-modal .modal-body {
        padding: 1rem;
    }

    .remunerations-custom-modal .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: .25rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .remunerations-custom-modal .nav-tabs .nav-link {
        min-height: 42px;
    }

    .remunerations-custom-modal .table-responsive {
        margin-right: -1rem;
        margin-left: -1rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .remunerations-modal-table-wrap {
        overflow: visible;
    }

    .remunerations-custom-modal .table:not(.remunerations-modal-table) {
        min-width: 720px;
    }

    .remunerations-custom-modal .remunerations-modal-table,
    .remunerations-custom-modal .remunerations-modal-table tbody,
    .remunerations-custom-modal .remunerations-modal-table tr,
    .remunerations-custom-modal .remunerations-modal-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .remunerations-custom-modal .remunerations-modal-table thead {
        display: none;
    }

    .remunerations-custom-modal .remunerations-modal-table tbody {
        display: grid;
        gap: .75rem;
    }

    .remunerations-custom-modal .remunerations-modal-table tbody tr {
        overflow: hidden;
        padding: .85rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: .9rem;
        background: rgba(255, 253, 249, .94);
        box-shadow: 0 8px 20px rgba(39, 24, 18, .06);
    }

    .remunerations-custom-modal .remunerations-modal-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
        gap: .7rem;
        align-items: start;
        padding: .5rem 0;
        border-bottom: 1px solid rgba(236, 231, 222, .9);
        text-align: right !important;
        white-space: normal;
    }

    .remunerations-custom-modal .remunerations-modal-table tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .remunerations-custom-modal .remunerations-modal-table tbody td::before {
        content: attr(data-label);
        color: #8a7869;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .06em;
        line-height: 1.25;
        text-align: left;
        text-transform: uppercase;
    }

    .remunerations-custom-modal .remunerations-modal-table__primary {
        grid-template-columns: 1fr !important;
        padding-top: 0 !important;
        text-align: left !important;
        font-weight: 700;
        color: #231a14;
    }

    .remunerations-custom-modal .remunerations-modal-table__primary::before {
        margin-bottom: .18rem;
    }

    .remunerations-custom-modal .remunerations-modal-table__check {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        padding-top: 0 !important;
        text-align: left !important;
    }

    .remunerations-custom-modal .remunerations-modal-table__check .form-check-input {
        width: 1.2rem;
        height: 1.2rem;
        margin: 0;
    }

    .remunerations-payment-items-table tbody tr {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        gap: .15rem .75rem;
        align-items: start;
    }

    .remunerations-payment-items-table .remunerations-modal-table__check {
        grid-row: 1 / span 4;
        width: auto;
        min-height: 0;
        padding: .2rem 0 0 !important;
        border-bottom: 0 !important;
    }

    .remunerations-payment-items-table .remunerations-modal-table__check::before {
        display: none;
    }

    .remunerations-payment-items-table .remunerations-modal-table__primary,
    .remunerations-payment-items-table td[data-label]:not(.remunerations-modal-table__check) {
        grid-column: 2;
    }

    .remunerations-payment-items-table .remunerations-modal-table__primary::before {
        display: none;
    }

    .remunerations-select-all {
        display: flex;
        align-items: center;
        gap: .55rem;
        min-height: 44px;
        margin-bottom: .75rem !important;
        padding: .7rem .85rem;
        border: 1px solid rgba(var(--aura-system-color-rgb), .2);
        border-radius: .85rem;
        background: rgba(var(--aura-system-color-rgb), .08);
    }

    .remunerations-select-all .form-check-input {
        flex: 0 0 auto;
        width: 1.15rem;
        height: 1.15rem;
        margin: 0;
    }

    .remunerations-select-all .form-check-label {
        margin: 0;
        line-height: 1.2;
    }

    .remunerations-payment-history-card {
        padding: .9rem !important;
        border-radius: .95rem !important;
        background: rgba(255, 253, 249, .9);
    }

    .remunerations-payment-history-card__header {
        display: grid !important;
        gap: .65rem !important;
    }

    .remunerations-payment-history-card__header .text-end {
        text-align: left !important;
    }

    .remunerations-payment-history-card__stats {
        gap: .35rem;
        padding: .75rem;
        border: 1px solid rgba(236, 231, 222, .9);
        border-radius: .8rem;
        background: rgba(255, 255, 255, .58);
    }

    .remunerations-history-actions {
        display: grid !important;
        justify-content: stretch !important;
        text-align: left !important;
    }

    .remunerations-history-actions .btn {
        width: 100%;
        min-height: 42px;
    }

    .remunerations-advance-card {
        padding: .9rem !important;
        border-radius: .9rem !important;
        background: rgba(255, 253, 249, .82);
    }

    .remunerations-advance-card .form-check {
        display: flex;
        gap: .55rem;
        align-items: flex-start;
    }

    .remunerations-advance-card .form-check-input {
        width: 1.15rem;
        height: 1.15rem;
        margin-top: .2rem;
    }

    .remunerations-advance-card .form-control {
        min-height: 44px;
        font-size: 16px;
    }

    .remunerations-payment-actions {
        position: sticky;
        bottom: -1rem;
        z-index: 2;
        margin: 1rem -1rem -1rem;
        padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52);
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .remunerations-custom-modal [data-save-payment] {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .remunerations-page__actions,
    .remunerations-filter-drawer__footer {
        grid-template-columns: 1fr;
    }

    .remunerations-table tbody td[data-label]:not(:first-child) {
        grid-template-columns: 1fr;
        text-align: left !important;
    }

    .remunerations-table tbody td[data-label]:not(:first-child)::before,
    .remunerations-table tbody td[data-label]:not(:first-child) > * {
        grid-column: 1;
    }
}

.attendance-detail-modal,
.appointment-tab-modal,
.appointment-tab-summary-modal {
    border-radius: 1.6rem;
    overflow: hidden;
}

.attendance-detail-modal {
    background:
        radial-gradient(circle at top right, rgba(216, 163, 148, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.attendance-detail-modal__header {
    padding: 1rem 1.35rem 0;
}

.attendance-detail-modal__body {
    padding: .75rem 1.35rem 1rem;
}

.attendance-detail-modal__footer {
    gap: .65rem;
    padding: 0 1.35rem 1.35rem;
}

.attendance-detail-modal__footer .btn {
    min-width: 112px;
    border-radius: .65rem;
    font-weight: 700;
}

.attendance-detail-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.attendance-detail-card__quick-actions {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-left: auto;
}

.attendance-detail-card__quick-button,
.attendance-detail-card__action-button,
.attendance-detail-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.attendance-detail-card__close-button {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(186, 125, 111, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #8c5649;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.attendance-detail-card__close-button:hover,
.attendance-detail-card__close-button:focus {
    border-color: rgba(186, 125, 111, 0.58);
    background: rgba(216, 163, 148, 0.14);
    color: #76463b;
    transform: translateY(-1px);
}

.attendance-detail-card + .attendance-detail-card,
.appointment-tab-summary-section + .appointment-tab-summary-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.attendance-detail-card--hero {
    padding: 1.15rem 1.15rem 1.25rem;
    border: 1px solid rgba(219, 201, 187, 0.85);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 32px rgba(57, 37, 27, 0.06);
}

.attendance-detail-card__headline {
    margin-bottom: .9rem;
}

.attendance-detail-card__title {
    font-size: 2.35rem;
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 0;
    max-width: 12ch;
    overflow-wrap: anywhere;
}

.attendance-detail-card__meta {
    display: grid;
    gap: .45rem;
    color: #2f3438;
    font-size: 1.1rem;
}

.attendance-detail-card__meta #attendanceDetailsDateLine {
    color: #4b5563;
    font-size: 1rem;
}

.attendance-detail-card__meta #attendanceDetailsServiceName {
    color: #2e2623;
    font-size: 1.32rem;
    font-weight: 600;
}

.attendance-detail-card__meta #attendanceDetailsTotal {
    margin-top: .2rem;
    font-size: 1.95rem;
    line-height: 1;
    color: #191514;
}

.attendance-detail-card__amount {
    display: grid;
    gap: .2rem;
    margin-top: .25rem;
}

.attendance-detail-card__amount span {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.attendance-detail-card__billing-breakdown {
    display: grid;
    gap: .35rem;
    max-width: 22rem;
    margin-top: .35rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(139, 92, 70, .18);
    border-radius: .7rem;
    background: rgba(255, 255, 255, .74);
}

.attendance-detail-card__billing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #4b5563;
    font-size: .92rem;
}

.attendance-detail-card__billing-row strong {
    color: #2e2623;
    white-space: nowrap;
}

.attendance-detail-card__billing-row--total {
    padding-top: .35rem;
    border-top: 1px solid rgba(139, 92, 70, .16);
    color: #1f2937;
    font-weight: 700;
}

.attendance-detail-card__actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.attendance-detail-card__hint {
    color: #6b7280;
    font-size: .92rem;
}

.attendance-detail-card__label {
    color: #6b7280;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .3rem;
}

.attendance-detail-card__status {
    font-size: 1.15rem;
    font-weight: 600;
}

.attendance-detail-card__status-stack {
    display: grid;
    gap: .45rem;
}

.attendance-detail-card__status-detail {
    width: fit-content;
    padding: .34rem .62rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}

.attendance-detail-card__status-detail--yes {
    background: rgba(25, 135, 84, .12);
    color: #146c43;
}

.attendance-detail-card__status-detail--no {
    background: rgba(220, 53, 69, .12);
    color: #b02a37;
}

.attendance-detail-card__status-detail--review {
    width: 100%;
    max-width: 100%;
    border-radius: .75rem;
    background: rgba(13, 110, 253, .1);
    color: #084298;
    white-space: normal;
    line-height: 1.35;
}

.attendance-detail-card__review-title {
    font-weight: 800;
}

.attendance-detail-card__review-comment {
    margin-top: .2rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.attendance-detail-card--status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    border-top: 0;
    margin-top: 1rem;
    padding-top: 0;
}

.attendance-detail-card__panel {
    min-height: 132px;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(229, 218, 208, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.74);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.attendance-detail-card__panel--align-end {
    text-align: right;
}

#attendanceDetailsCustomerHistoryButton {
    border-radius: 999px;
    border-color: rgba(186, 125, 111, 0.38);
    background: rgba(255, 248, 244, 0.88);
    color: #8c5649;
    font-weight: 700;
    white-space: nowrap;
}

#attendanceDetailsCustomerHistoryButton:hover,
#attendanceDetailsCustomerHistoryButton:focus {
    background: rgba(216, 163, 148, 0.14);
    color: #76463b;
    border-color: rgba(186, 125, 111, 0.6);
}

.appointment-tab-modal__add-item-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.4rem;
    padding-inline: .9rem;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: .8rem;
    color: #21469d;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 30, 84, .22);
    white-space: nowrap;
}

.appointment-tab-modal__add-item-button:hover,
.appointment-tab-modal__add-item-button:focus {
    border-color: #fff;
    color: #18357a;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 30, 84, .3);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .attendance-detail-modal__body {
        padding: .85rem .85rem 1rem;
    }

    .attendance-detail-modal__footer {
        padding: 0 .85rem 1rem;
    }

    .attendance-detail-modal__footer .btn {
        flex: 1 1 auto;
        min-width: min(100%, 9rem);
    }

    #attendanceDetailCancelButton {
        margin-right: 0 !important;
    }

    .attendance-detail-card__headline {
        flex-direction: row;
        align-items: flex-start !important;
    }

    .attendance-detail-card__title {
        flex: 1 1 auto;
        font-size: 1.95rem;
        max-width: none;
        min-width: 0;
    }

    .attendance-detail-card__quick-actions {
        flex: 0 0 auto;
    }

    .attendance-detail-card--status {
        grid-template-columns: 1fr;
    }

    .attendance-detail-card__panel--align-end {
        text-align: left;
    }
}

.appointment-tabs-index__mobile-list {
    display: none;
}

.appointment-tabs-index__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.appointment-tabs-index__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.appointment-tabs-index__mobile-title {
    min-width: 0;
}

.appointment-tabs-index__mobile-title h2 {
    margin: 0;
    color: #231a14;
    font-size: 1.05rem;
    line-height: 1.2;
}

.appointment-tabs-index__mobile-title div,
.appointment-tabs-index__mobile-customer span {
    color: #6f6257;
    font-size: .88rem;
    line-height: 1.32;
}

.appointment-tabs-index__mobile-customer {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.appointment-tabs-index__mobile-customer strong,
.appointment-tabs-index__mobile-customer span {
    overflow-wrap: anywhere;
}

.appointment-tabs-index__mobile-alert {
    padding: .55rem .7rem;
    border-radius: .75rem;
    background: rgba(108, 117, 125, .1);
    color: #5f6368;
    font-size: .86rem;
    font-weight: 700;
}

.appointment-tabs-index__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.appointment-tabs-index__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.appointment-tabs-index__mobile-field--full {
    grid-column: 1 / -1;
}

.appointment-tabs-index__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.appointment-tabs-index__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.appointment-tabs-index__mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.appointment-tabs-index__mobile-actions .btn,
.appointment-tabs-index__mobile-actions form {
    width: 100%;
}

.appointment-tabs-index__mobile-actions .btn {
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .appointment-tabs-index__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .appointment-tabs-index__actions,
    .appointment-tabs-index__actions .btn,
    .appointment-tabs-index__filters .btn {
        width: 100%;
    }

    .appointment-tabs-index__filters .col-auto {
        width: 100%;
    }

    .appointment-tabs-index__filter-card .card-body {
        padding: 1rem;
    }

    .appointment-tabs-index__desktop-table {
        display: none;
    }

    .appointment-tabs-index__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .appointment-tabs-index__mobile-list {
        display: grid;
        gap: .85rem;
    }

    .appointment-tabs-index__mobile-actions .btn:only-child,
    .appointment-tabs-index__mobile-actions form:only-child {
        grid-column: 1 / -1;
    }

    .appointment-tabs-index__summary-card {
        border-radius: 1rem;
    }

    .appointment-tabs-index__summary-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .appointment-tabs-index__header {
        padding-top: 2.75rem;
    }

    .appointment-tabs-index__mobile-top,
    .appointment-tabs-index__summary-card .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .55rem !important;
    }

    .appointment-tabs-index__summary-card .text-end {
        text-align: left !important;
    }

    .appointment-tabs-index__mobile-grid,
    .appointment-tabs-index__mobile-actions {
        grid-template-columns: 1fr;
    }
}

.appointment-tab-totals {
    margin-left: auto;
    max-width: 340px;
    display: grid;
    gap: .4rem;
}

.appointment-tab-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.appointment-tab-totals__row--total {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid #dee2e6;
    font-size: 1.08rem;
}

.appointment-tab-summary-modal__customer {
    font-size: 1.4rem;
    font-weight: 700;
}

.appointment-tab-summary-modal__date {
    color: #4b5563;
    font-size: 1rem;
}

.appointment-tab-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .55rem .9rem;
    border-radius: .8rem;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.appointment-tab-summary-modal .modal-body {
    padding-top: 1.15rem;
}

.appointment-tab-guidance {
    margin: .95rem 0 1.85rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.appointment-tab-guidance__title {
    font-size: .85rem;
    font-weight: 800;
    color: #315ea8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .35rem;
}

.appointment-tab-guidance__text {
    color: #334155;
    line-height: 1.5;
}

.appointment-tab-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem 1rem;
    align-items: center;
}

.appointment-tab-summary-grid--footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.appointment-tab-payments {
    display: grid;
    gap: .85rem;
}

.appointment-tab-package-credits {
    display: grid;
    gap: .75rem;
}

.appointment-tab-package-credit-row {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .75rem;
}

.appointment-tab-package-credit-row--applied {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.appointment-tab-summary-footer {
    gap: .75rem;
    border-top: 1px solid #e5e7eb;
}

.appointment-tab-payment-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .85rem 0;
    border-top: 1px solid #e5e7eb;
}

.appointment-tab-payment-row__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.appointment-tab-payment-row__meta {
    color: #6b7280;
    font-size: .94rem;
}

@media (max-width: 1199.98px) {
    body.attendance-page-lock,
    body.attendance-page-lock .app-content,
    body.attendance-page-lock .app-shell {
        overflow: visible;
    }

    body.attendance-page-lock {
        overflow-y: auto;
    }

    body.attendance-page-lock .app-shell {
        min-height: 100vh;
    }

    .attendance-page {
        height: auto;
        overflow: visible;
    }

    .attendance-page__content {
        overflow: visible;
    }

    .attendance-settings-card {
        position: static;
        height: auto;
    }

    .attendance-settings-card .card-body {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .collaborator-config-drawer,
    .collaborator-schedule-drawer,
    .collaborator-services-drawer,
    .collaborator-commissions-drawer,
    .collaborator-permissions-drawer {
        --bs-offcanvas-width: 100vw;
    }

    .collaborator-config-modal .modal-dialog {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .attendance-offcanvas {
        --bs-offcanvas-width: 100vw;
        min-width: 100vw;
    }

    .customer-create-modal__body {
        max-height: 68vh;
    }

    .customer-create-modal__tabs {
        top: -.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .customer-phone-row {
        grid-template-columns: 1fr;
    }
}

/* Navbar */
.navbar-brand-icon {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(216, 163, 148, 0.12));
}

/* Home */
.home-hero {
    background:
        radial-gradient(circle at top, rgba(241, 196, 182, 0.2), transparent 30%),
        linear-gradient(160deg, #120f0f 0%, #271a18 52%, #140f0d 100%);
    border: 1px solid rgba(223, 186, 171, 0.16);
    border-radius: 1.5rem;
    box-shadow: 0 24px 54px rgba(22, 14, 12, 0.2);
    padding: 4.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-logo {
    width: 380px;
    height: auto;
}

.home-hero-subtitle {
    color: rgba(249, 231, 224, 0.82);
    font-size: 1.3rem;
    letter-spacing: .06em;
    text-align: center;
}

.home-module-card {
    border: 1px solid rgba(210, 186, 169, 0.52) !important;
    border-radius: 1.2rem !important;
    border-top: 4px solid var(--aura-rose) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,244,238,0.98)) !important;
    box-shadow: 0 16px 38px rgba(45, 30, 24, 0.07) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.home-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(45, 30, 24, 0.12) !important;
    border-color: rgba(186, 125, 111, 0.46) !important;
    color: inherit;
}

.home-module-card--soon {
    border-top-color: #d4cbc3 !important;
    opacity: 0.72;
    pointer-events: none;
}

.home-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-module-icon--active {
    background: linear-gradient(135deg, #f7e8df 0%, #eed2c7 100%);
    color: var(--aura-rose-deep);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.home-module-icon--soon {
    background: #f4efe9;
    color: #b5a79b;
}

.home-badge-soon {
    background: #f1e8e1;
    color: #7b6a62;
    font-weight: 700;
    font-size: .7rem;
}

.home-appointments {
    border-top: 4px solid var(--aura-rose) !important;
}

.home-appointments__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-appointments__eyebrow {
    display: block;
    color: #8d695f;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-appointments__empty {
    padding: 1rem;
    color: #7e716a;
    background: #f8f1eb;
    border: 1px dashed #dfcec2;
    border-radius: .85rem;
}

.home-appointments__list {
    display: grid;
    gap: .65rem;
}

.home-appointment {
    display: grid;
    grid-template-columns: minmax(5rem, .8fr) minmax(5.5rem, .8fr) minmax(0, 2.2fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 250, 246, .86);
    border: 1px solid #eaded5;
    border-radius: .85rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-appointment:hover {
    color: inherit;
    border-color: rgba(var(--aura-system-color-rgb), .44);
    box-shadow: 0 12px 26px rgba(45, 30, 24, .08);
    transform: translateY(-1px);
}

.home-appointment__date,
.home-appointment__time,
.home-appointment__collaborator {
    color: #7e716a;
    font-size: .88rem;
    font-weight: 700;
}

.home-appointment__main {
    min-width: 0;
}

.home-appointment__main strong,
.home-appointment__main small {
    display: block;
    overflow-wrap: anywhere;
}

.home-appointment__main small {
    color: #7e716a;
}

@media (max-width: 767.98px) {
    .home-appointments__header {
        align-items: stretch;
        flex-direction: column;
    }

    .home-appointments__header .btn {
        width: 100%;
    }

    .home-appointment {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

/* Collaborator editor */
.collaborator-editor {
    padding: 0 1rem 2rem;
}

.collaborator-editor__shell {
    background: linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
    border: 1px solid #ece6df;
    border-radius: 1.5rem;
    overflow: hidden;
}

.collaborator-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid #eee7e1;
    background:
        radial-gradient(circle at top right, rgba(201, 149, 108, 0.14), transparent 30%),
        linear-gradient(135deg, #fffdf9 0%, #ffffff 100%);
}

.collaborator-editor__eyebrow {
    color: #a36e45;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.collaborator-editor__tabs {
    padding: .75rem 2rem 0;
    background: #fff;
}

.collaborator-editor__tabs:not(.collaborator-editor__tabs--inline) {
    display: none;
}

.collaborator-tabs {
    border-bottom: 0;
    gap: .5rem;
}

.collaborator-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    color: #6c757d;
    font-weight: 600;
    padding: .9rem 1.1rem;
}

.collaborator-tabs .nav-link.active {
    background: #231a14;
    color: #fff;
    box-shadow: 0 10px 30px rgba(35, 26, 20, 0.18);
}

.collaborator-editor__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding: 1.5rem 2rem 2rem;
}

.collaborator-editor__main {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.collaborator-editor__tabs--inline {
    padding: 0;
    background: transparent;
}

.collaborator-editor__content > .tab-pane {
    display: none;
}

.collaborator-editor__content > .active {
    display: block;
}

.collaborator-section-grid {
    display: grid;
    gap: 1.25rem;
}

.collaborator-card {
    background: #fff;
    border: 1px solid #efe8e2;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(24, 17, 13, 0.04);
}

.collaborator-card--hero {
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(250, 246, 241, 0.95), rgba(255, 255, 255, 1)),
        #fff;
}

.collaborator-card--hero-embedded {
    display: none;
}

.collaborator-editor__sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.collaborator-card__header {
    margin-bottom: 1rem;
}

.collaborator-profile {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.collaborator-profile__avatar-column {
    display: grid;
    gap: .9rem;
    width: 160px;
}

.collaborator-profile__main {
    min-width: 0;
}

.collaborator-profile__avatar-wrapper {
    width: 160px;
    max-width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 1.5rem;
    flex-shrink: 0;
}

.collaborator-profile__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.collaborator-profile__avatar-upload {
    display: grid;
    gap: .45rem;
}

.collaborator-profile__avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.collaborator-profile__avatar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid #ddd2c6;
    border-radius: 1rem;
    background: #fff;
    color: #2e241d;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.collaborator-profile__avatar-trigger:hover {
    background: #faf6f2;
    border-color: #cdbba8;
    transform: translateY(-1px);
}

.collaborator-profile__avatar-file {
    min-height: 2.5rem;
    padding: .55rem .7rem;
    border-radius: .9rem;
    background: #f8f3ee;
    color: #6f6257;
    font-size: .78rem;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.collaborator-profile__fields {
    align-items: start;
}

.collaborator-profile__fields .form-control,
.collaborator-profile__fields .form-select {
    min-height: 46px;
}

.collaborator-profile__fields .form-text,
.collaborator-profile__fields .text-danger.small {
    margin-top: .4rem;
}

.collaborator-profile__avatar {
    width: 160px;
    height: 160px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #c9956c 0%, #8e5c35 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .08em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.collaborator-list-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.collaborator-list-avatar--initials {
    background: linear-gradient(135deg, #c9956c 0%, #8e5c35 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.collaborator-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.collaborator-choice-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.collaborator-choice {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 88px;
    padding: 1rem;
    border: 1px solid #e9dfd6;
    border-radius: 1rem;
    background: #fffdfa;
    cursor: pointer;
}

.collaborator-choice--active {
    border-color: #c9956c;
    background: #fdf5ef;
}

.collaborator-choice span {
    font-weight: 600;
}

.collaborator-choice small {
    color: #6c757d;
    line-height: 1.4;
}

.collaborator-phone-list {
    display: grid;
    gap: .75rem;
}

.collaborator-phone-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 120px;
    gap: .75rem;
}

.collaborator-quick-actions {
    display: grid;
    gap: .75rem;
}

.collaborator-quick-action {
    color: #231a14;
    text-decoration: none;
    font-weight: 600;
    padding: .9rem 1rem;
    border-radius: .9rem;
    background: #f7f0e9;
    border: 1px solid #ede0d1;
    transition: transform .15s ease, background-color .15s ease;
}

.collaborator-quick-action:hover {
    transform: translateY(-1px);
    background: #f3e5d8;
}

.collaborator-summary {
    display: grid;
    gap: 1rem;
}

.collaborator-summary div {
    padding-bottom: .9rem;
    border-bottom: 1px solid #f0ebe5;
}

.collaborator-summary div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.collaborator-summary dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a8179;
    margin-bottom: .25rem;
}

.collaborator-summary dd {
    margin: 0;
    color: #231a14;
    font-weight: 600;
}

.collaborator-placeholder {
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    background: #faf6f2;
    border: 1px dashed #dbc7b4;
    color: #5f5247;
}

.collaborator-config-drawer,
.collaborator-schedule-drawer,
.collaborator-services-drawer,
.collaborator-commissions-drawer,
.collaborator-permissions-drawer {
    --bs-offcanvas-width: 33vw;
}

.collaborator-config-modal .modal-dialog {
    width: 33vw;
    max-width: 33vw;
    margin-right: 1.75rem;
    margin-left: auto;
}

@media (max-width: 991.98px) {
    .collaborator-config-drawer,
    .collaborator-schedule-drawer,
    .collaborator-services-drawer,
    .collaborator-commissions-drawer,
    .collaborator-permissions-drawer {
        --bs-offcanvas-width: 100vw;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }

    .collaborator-config-modal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        margin: 0;
    }

    .collaborator-config-modal .modal-content {
        height: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .collaborator-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: .65rem;
        padding-bottom: .75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .collaborator-tabs .nav-item {
        flex: 0 0 auto;
    }

    .collaborator-tabs .nav-link {
        white-space: nowrap;
    }
}

.product-create-drawer {
    --bs-offcanvas-width: min(832px, 100vw);
}

.collaborator-schedule-drawer__header {
    padding: 0;
    border-bottom: 1px solid #ede7e0;
}

.collaborator-schedule-drawer__toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #231a14;
    color: #fff;
}

.collaborator-schedule-drawer__back,
.collaborator-schedule-drawer__save {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    padding: .35rem .5rem;
}

.collaborator-schedule-drawer__back {
    font-size: 1.35rem;
    line-height: 1;
}

.collaborator-schedule-drawer__toolbar .offcanvas-title {
    flex: 1;
    font-weight: 700;
}

.collaborator-schedule-drawer__body {
    background: #faf8f6;
    padding: 1.25rem 1.25rem 1.5rem;
}

.product-create-modal {
    width: 100%;
    margin: 0 auto;
}

.products-index {
    min-width: 0;
}

.products-index__actions {
    flex-wrap: wrap;
}

.products-index__desktop-table .btn-group {
    white-space: nowrap;
}

.products-index__mobile-list {
    display: none;
}

.products-index__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.products-index__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.products-index__mobile-title {
    min-width: 0;
}

.products-index__mobile-title h2 {
    margin: 0;
    color: #231a14;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.products-index__mobile-title div,
.products-index__mobile-meta span {
    color: #6f6257;
    font-size: .86rem;
    line-height: 1.32;
}

.products-index__mobile-meta {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.products-index__mobile-meta strong,
.products-index__mobile-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.products-index__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.products-index__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.products-index__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.products-index__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.products-index__mobile-field small {
    color: #6f6257;
    font-size: .82rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.products-index__mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.products-index__mobile-actions .btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .products-index__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .products-index__actions,
    .products-index__actions .btn,
    .products-index__filters .btn {
        width: 100%;
    }

    .products-index__filters {
        margin-bottom: 1rem !important;
        padding: 1rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
    }

    .products-index__filters .col-auto {
        width: 100%;
    }

    .products-index__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .products-index__results-card .card-body {
        padding: 0;
    }

    .products-index__desktop-table {
        display: none;
    }

    .products-index__mobile-list {
        display: grid;
        gap: .85rem;
    }

    .products-index__empty {
        padding: 1rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
    }
}

@media (max-width: 575.98px) {
    .products-index__header {
        padding-top: 2.75rem;
    }

    .products-index__mobile-top {
        flex-direction: column;
        gap: .55rem;
    }

    .products-index__mobile-grid,
    .products-index__mobile-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-create-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
    }

    .product-create-drawer .collaborator-schedule-drawer__toolbar {
        min-height: 56px;
        padding: .75rem .9rem;
    }

    .product-create-drawer .collaborator-schedule-drawer__body {
        padding: 0;
    }

    .product-create-modal {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    .product-create-modal .customer-create-modal__body {
        flex: 1 1 auto;
        gap: .85rem;
        min-height: 0;
        max-height: none;
        padding: .85rem .85rem 1rem;
    }

    .product-create-modal .customer-create-modal__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: .25rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .product-create-modal .customer-create-modal__tabs .nav-link {
        min-height: 42px;
    }

    .product-create-modal .customer-form-section {
        padding: .85rem;
        border-radius: .85rem;
    }

    .product-create-modal .customer-form-section > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .65rem !important;
    }

    .product-create-modal .input-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .product-create-modal .input-group .form-select,
    .product-create-modal .input-group .form-control {
        min-width: 0;
    }

    .product-create-modal .form-control,
    .product-create-modal .form-select,
    #productImportModal .form-control,
    #productPurchaseModal .form-control,
    #productStockMovementModal .form-control,
    #productStockMovementModal .form-select,
    #createProductBrandQuickModal .form-control,
    #createProductCategoryQuickModal .form-control,
    #createProductSupplierQuickModal .form-control {
        min-height: 46px;
        font-size: 16px;
    }

    .product-create-modal .customer-create-modal__footer {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .65rem !important;
        padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .product-create-modal .customer-create-modal__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    #productImportModal .modal-dialog,
    #productInventoryModal .modal-dialog,
    #productPurchaseModal .modal-dialog,
    #productStockMovementModal .modal-dialog,
    #createProductBrandQuickModal .modal-dialog,
    #createProductCategoryQuickModal .modal-dialog,
    #createProductSupplierQuickModal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
    }

    #productImportModal .modal-content,
    #productInventoryModal .modal-content,
    #productPurchaseModal .modal-content,
    #productStockMovementModal .modal-content,
    #createProductBrandQuickModal .modal-content,
    #createProductCategoryQuickModal .modal-content,
    #createProductSupplierQuickModal .modal-content {
        height: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    #productImportForm,
    #productPurchaseForm,
    #productStockMovementForm {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    #productImportModal .modal-header,
    #productInventoryModal .modal-header,
    #productPurchaseModal .modal-header,
    #productStockMovementModal .modal-header,
    #createProductBrandQuickModal .modal-header,
    #createProductCategoryQuickModal .modal-header,
    #createProductSupplierQuickModal .modal-header {
        align-items: flex-start;
        padding: 1rem .95rem .75rem;
    }

    #productImportModal .modal-body,
    #productPurchaseModal .modal-body,
    #productStockMovementModal .modal-body,
    #createProductBrandQuickModal .modal-body,
    #createProductCategoryQuickModal .modal-body,
    #createProductSupplierQuickModal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: .95rem;
    }

    #productInventoryModal .modal-body {
        padding: .95rem;
    }

    #productImportModal .modal-footer,
    #productPurchaseModal .modal-footer,
    #productStockMovementModal .modal-footer,
    #createProductBrandQuickModal .modal-footer,
    #createProductCategoryQuickModal .modal-footer,
    #createProductSupplierQuickModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52) !important;
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    #productImportModal .modal-footer .btn,
    #productPurchaseModal .modal-footer .btn,
    #productStockMovementModal .modal-footer .btn,
    #createProductBrandQuickModal .modal-footer .btn,
    #createProductCategoryQuickModal .modal-footer .btn,
    #createProductSupplierQuickModal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
    }

    #productInventoryModal .row.g-3 {
        gap: .65rem;
    }

    #productInventoryModal .border.rounded {
        border-radius: .85rem !important;
        background: rgba(255, 253, 249, .88);
    }

    #productInventoryModal .table-responsive {
        overflow: visible;
    }

    .product-inventory-table,
    .product-inventory-table tbody,
    .product-inventory-table tr,
    .product-inventory-table td {
        display: block;
        width: 100%;
    }

    .product-inventory-table thead {
        display: none;
    }

    .product-inventory-table tbody {
        display: grid;
        gap: .75rem;
    }

    .product-inventory-table tbody tr {
        overflow: hidden;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: .9rem;
        background: rgba(255, 253, 249, .94);
        box-shadow: 0 8px 20px rgba(39, 24, 18, .06);
    }

    .product-inventory-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
        gap: .7rem;
        align-items: start;
        padding: .6rem .85rem;
        border-bottom: 1px solid rgba(236, 231, 222, .9);
        text-align: right;
        white-space: normal;
    }

    .product-inventory-table tbody td:last-child {
        border-bottom: 0;
    }

    .product-inventory-table tbody td::before {
        content: attr(data-label);
        color: #8a7869;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .06em;
        line-height: 1.25;
        text-align: left;
        text-transform: uppercase;
    }

    .product-inventory-table tbody td[colspan] {
        display: block;
        padding: 1rem;
        border-bottom: 0;
        text-align: center;
    }

    .product-inventory-table tbody td[colspan]::before {
        display: none;
    }
}

.collaborator-schedule {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.collaborator-services {
    width: 100%;
    max-width: none;
}

.collaborator-commissions {
    width: 100%;
}

.collaborator-permissions {
    max-width: 620px;
    margin: 0 auto;
}

.collaborator-schedule__days {
    display: grid;
    gap: 1.25rem;
}

.collaborator-day-card {
    padding-left: .9rem;
    border-left: 5px solid #d8d8d8;
}

.collaborator-day-card__header {
    margin-bottom: .5rem;
}

.collaborator-day-card__header p {
    font-weight: 500;
    color: #2e241d;
}

.collaborator-day-card__slots {
    display: grid;
    gap: .6rem;
}

.collaborator-day-card__empty {
    padding-top: .15rem;
}

.collaborator-slot-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto;
    align-items: end;
    gap: .75rem;
}

.collaborator-slot-field .form-label {
    font-size: .78rem;
    margin-bottom: .35rem;
    color: #6f6257;
}

.collaborator-slot-field .form-control {
    min-height: 42px;
    padding-inline: .6rem;
    width: 100%;
    min-width: 0;
}

.collaborator-slot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    padding-bottom: .15rem;
    white-space: nowrap;
}

.collaborator-slot-icon {
    min-width: 2rem;
    padding: .25rem;
    font-size: 1.1rem;
    line-height: 1;
    color: #8b8178;
}

.collaborator-slot-icon--add {
    color: #231a14;
    font-weight: 700;
}

.collaborator-slot-icon--delete:hover {
    color: #b02a37;
}

.collaborator-slot-add {
    border-color: #d3ccc4;
    color: #4f4338;
}

.collaborator-schedule__footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #e7dfd6;
}

.collaborator-services__search {
    margin-bottom: 1rem;
}

.collaborator-services__search .form-control {
    min-height: 42px;
    border-color: #ddd2c6;
    background: #fff;
}

.collaborator-services__list {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: .25rem;
}

.collaborator-service-group + .collaborator-service-group {
    margin-top: .5rem;
}

.collaborator-service-items {
    padding-left: 1.85rem;
}

.collaborator-service-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    min-height: 41px;
    padding: .1rem 0;
    cursor: pointer;
}

.collaborator-service-row--group {
    font-weight: 700;
    color: #2e241d;
}

.collaborator-service-row--group .collaborator-service-label {
    font-size: .95rem;
}

.collaborator-service-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.collaborator-service-row .form-check-input {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
}

.collaborator-service-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #43372d;
}

.collaborator-services__empty {
    padding: 1rem;
    border: 1px dashed #dbc7b4;
    border-radius: 1rem;
    background: #faf6f2;
    color: #6d6054;
    margin-top: 1rem;
}

.collaborator-permissions__access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid #e6ddd4;
}

.collaborator-permissions__access-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2e241d;
}

.collaborator-permissions__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.collaborator-permissions__switch {
    margin: 0;
}

.collaborator-permissions__switch .form-check-input {
    width: 3rem;
    height: 1.55rem;
    margin: 0;
}

.collaborator-permissions__tabs {
    display: grid;
    gap: .55rem;
    position: sticky;
    top: 0;
}

.collaborator-permissions__tab {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid #e2d7cb;
    background: #fff;
    color: #4b3f35;
    border-radius: 1rem;
    padding: .8rem .9rem;
    font-weight: 600;
    text-align: left;
    transition: .2s ease;
    width: 100%;
}

.collaborator-permissions__tab.is-active {
    background: #231a14;
    color: #fff;
    border-color: #231a14;
    box-shadow: 0 12px 30px rgba(35, 26, 20, 0.18);
}

.collaborator-permissions__tab-icon,
.collaborator-permissions__pane-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #f2e8de;
    color: #6e4c33;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.collaborator-permissions__tab.is-active .collaborator-permissions__tab-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.collaborator-permissions__pane {
    display: none;
    min-width: 0;
}

.collaborator-permissions__pane.is-active {
    display: block;
}

.collaborator-permissions__pane-header {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1rem;
}

.collaborator-permissions__pane-title {
    margin: 0 0 .2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2e241d;
}

.collaborator-permissions__items {
    display: grid;
    gap: .7rem;
}

.collaborator-permission-item {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: .75rem .9rem;
    border: 1px solid #ece2d7;
    border-radius: 1rem;
    background: #fff;
    color: #463930;
}

.collaborator-permission-item .form-check-input {
    margin-top: .1rem;
}

.collaborator-commission-section + .collaborator-commission-section {
    margin-top: 2rem;
}

.collaborator-commission-section__title {
    margin: 0 0 .35rem;
    font-size: .98rem;
    font-weight: 700;
    color: #2e241d;
}

.collaborator-commission-section__hint {
    margin-bottom: 1rem;
    color: #66584d;
    font-size: .94rem;
}

.collaborator-commission-link {
    font-weight: 700;
    text-decoration: underline;
    color: #2e241d;
}

.collaborator-commission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.collaborator-commission-field--wide {
    grid-column: 1 / -1;
}

.collaborator-commission-field .form-control,
.collaborator-commission-field .form-select,
.collaborator-commission-field .input-group-text {
    min-height: 44px;
}

.collaborator-commission-field .input-group {
    flex-wrap: nowrap;
}

.collaborator-commission-field .input-group > .form-control,
.collaborator-commission-field .input-group > .form-select {
    min-width: 0;
}

.collaborator-commission-field .input-group-text {
    background: #f6f1eb;
    color: #4f4338;
    border-color: #ddd2c6;
    font-weight: 600;
}

.collaborator-commission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .85rem;
    color: #574a3f;
}

.collaborator-commission-checkbox .form-check-input {
    margin-top: .2rem;
}

.collaborator-commission-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding-left: 0;
    margin-top: .55rem;
    color: #6f6257;
    text-decoration: none;
}

.collaborator-commission-action:hover,
.collaborator-commission-link:hover {
    color: #231a14;
}

.collaborator-commission-details {
    margin-top: .85rem;
    padding: .9rem 1rem;
    border: 1px dashed #d9ccbf;
    border-radius: 1rem;
    background: #fffdf9;
    color: #6d6054;
}

.collaborator-commission-grid--service {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commission-service-group {
    margin-top: .75rem;
}

.commission-service-group + .commission-service-group {
    margin-top: 1.1rem;
}

.commission-service-group__title {
    margin: 0 0 .5rem;
    font-size: .88rem;
    font-weight: 700;
    color: #1a6fbf;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.commission-service-item {
    padding: .75rem 0;
    border-top: 1px solid #ede5da;
}

.commission-service-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.commission-service-item__name {
    margin: 0 0 .6rem;
    font-size: .9rem;
    font-weight: 600;
    color: #2e241d;
}

.collaborator-commission-divider {
    margin: 1.55rem 0;
    border-color: #e6ddd4;
}

.collaborator-commission-note {
    margin: .5rem 0 0;
    font-size: .84rem;
    color: #9b928b;
}

.collaborator-commission-mixed .form-select {
    max-width: 92px;
    flex: 0 0 92px;
}

.collaborator-tip-options {
    display: grid;
    gap: .85rem;
    margin-top: .95rem;
}

.collaborator-tip-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .35rem 0;
    color: #3f342b;
    cursor: pointer;
}

.collaborator-tip-option .form-check-input {
    margin-top: .25rem;
    flex-shrink: 0;
}

.jq-toast-wrap {
    width: min(420px, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
}

.jq-toast-wrap.top-right {
    right: 1rem !important;
}

.jq-toast-wrap .jq-toast-single {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    padding: 1rem 1.5rem 1rem 3.2rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.jq-toast-wrap h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .45rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.jq-toast-wrap .jq-toast-single ul,
.jq-toast-wrap .jq-toast-single span,
.jq-toast-wrap .jq-toast-single p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .jq-toast-wrap {
        right: 1rem !important;
        left: 1rem !important;
        width: auto !important;
        max-width: none !important;
    }

    .jq-toast-wrap .jq-toast-single {
        padding: .9rem 1rem .9rem 2.85rem;
        font-size: .95rem;
    }
}

@media (max-width: 1199.98px) {
    .collaborator-editor__body {
        grid-template-columns: 1fr;
    }

    .collaborator-editor__sidebar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .collaborator-editor {
        padding-inline: 0;
    }

    .collaborator-editor__header,
    .collaborator-editor__tabs,
    .collaborator-editor__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .collaborator-profile {
        grid-template-columns: 1fr;
    }

    .collaborator-profile__avatar-wrapper {
        width: 88px;
        max-width: 88px;
        height: 88px;
    }

    .collaborator-profile__avatar {
        width: 88px;
        height: 88px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .collaborator-editor__header {
        flex-direction: column;
    }

    .collaborator-permissions__access {
        align-items: flex-start;
        flex-direction: column;
    }

    .collaborator-phone-item {
        grid-template-columns: 1fr;
    }

    .collaborator-schedule-drawer__body {
        padding-inline: 1rem;
    }

    .collaborator-slot-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    }

    .collaborator-commission-grid {
        grid-template-columns: 1fr;
    }

    .collaborator-permissions__layout {
        grid-template-columns: 1fr;
    }

    .collaborator-permissions__tabs {
        position: static;
    }
}

.package-items {
    display: grid;
    gap: 1rem;
}

.package-item {
    border-radius: 1rem;
    background: #fff;
}

.package-item .card-body {
    padding: 1rem 1.1rem;
}

.package-create-drawer .offcanvas-body {
    padding-bottom: 1rem;
}

.package-create-modal {
    width: 100%;
    margin: 0 auto;
}

.packages-index {
    min-width: 0;
}

.packages-index__actions {
    flex-wrap: wrap;
}

.packages-index__mobile-list {
    display: none;
}

.packages-index__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.packages-index__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.packages-index__mobile-title {
    min-width: 0;
}

.packages-index__mobile-title h2 {
    margin: 0;
    color: #231a14;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.packages-index__mobile-title div {
    margin-top: .18rem;
    color: #6f6257;
    font-size: .86rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.packages-index__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.packages-index__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.packages-index__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.packages-index__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.packages-index__mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
}

.packages-index__mobile-actions .btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .packages-index__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .packages-index__actions,
    .packages-index__actions .btn,
    .packages-index__filters .btn {
        width: 100%;
    }

    .packages-index__filter-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .packages-index__filter-card .card-body {
        padding: 0;
    }

    .packages-index__filters {
        padding: 1rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: 1rem;
        background: rgba(255, 253, 249, .96);
        box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
    }

    .packages-index__filters .col-auto {
        width: 100%;
    }

    .packages-index__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .packages-index__desktop-table {
        display: none;
    }

    .packages-index__mobile-list {
        display: grid;
        gap: .85rem;
    }
}

@media (max-width: 575.98px) {
    .packages-index__header {
        padding-top: 2.75rem;
    }

    .packages-index__mobile-top {
        flex-direction: column;
        gap: .55rem;
    }

    .packages-index__mobile-grid {
        grid-template-columns: 1fr;
    }
}

.package-service-option__name {
    font-weight: 600;
    line-height: 1.2;
}

.package-service-option__meta {
    margin-top: 0.15rem;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.2;
}

.package-create-drawer .select2-container {
    width: 100% !important;
}

@media (max-width: 767.98px) {
    .package-create-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
    }

    .package-create-drawer .collaborator-schedule-drawer__toolbar {
        min-height: 56px;
        padding: .75rem .9rem;
    }

    .package-create-drawer .collaborator-schedule-drawer__body {
        padding: 0;
    }

    .package-create-modal {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    .package-create-modal .customer-create-modal__body {
        flex: 1 1 auto;
        gap: .85rem;
        min-height: 0;
        max-height: none;
        padding: .85rem .85rem 1rem;
    }

    .package-create-modal .customer-form-section {
        padding: .85rem;
        border-radius: .85rem;
    }

    .package-create-modal .customer-form-section > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .65rem !important;
    }

    #addPackageItemButton {
        width: 100%;
        min-height: 42px;
        padding: .45rem .65rem;
        border: 1px solid rgba(var(--aura-system-color-rgb), .22);
        border-radius: .75rem;
        background: rgba(var(--aura-system-color-rgb), .08);
        text-align: center;
    }

    .package-item {
        border-radius: .9rem;
    }

    .package-item .card-body {
        padding: .85rem;
    }

    .package-item .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .55rem !important;
    }

    .package-item__remove {
        align-self: stretch;
        min-height: 38px;
        border: 1px solid rgba(220, 53, 69, .18);
        border-radius: .7rem;
        background: rgba(220, 53, 69, .06);
    }

    .package-create-modal .form-control,
    .package-create-modal .form-select,
    #packageImportModal .form-control {
        min-height: 46px;
        font-size: 16px;
    }

    .package-create-drawer .select2-container--bootstrap-5 .select2-selection {
        min-height: 46px;
    }

    .package-create-drawer .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        min-height: 44px;
        padding-top: .55rem;
        padding-bottom: .55rem;
        white-space: normal;
    }

    .package-create-modal .customer-create-modal__footer {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .65rem !important;
        padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .package-create-modal .customer-create-modal__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    #packageImportModal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
    }

    #packageImportModal .modal-content {
        height: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    #packageImportForm {
        display: flex;
        min-height: 100%;
        flex-direction: column;
    }

    #packageImportModal .modal-header {
        align-items: flex-start;
        padding: 1rem .95rem .75rem;
    }

    #packageImportModal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: .95rem;
    }

    #packageImportModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52) !important;
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    #packageImportModal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
    }
}

.sales-index__mobile-list {
    display: none;
}

.sales-index__table-actions {
    white-space: nowrap;
}

.sales-index__mobile-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.sales-index__mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.sales-index__mobile-title {
    min-width: 0;
}

.sales-index__mobile-title h2 {
    margin: 0;
    color: #231a14;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sales-index__mobile-meta,
.sales-index__mobile-status-detail {
    color: #6f6257;
    font-size: .86rem;
    line-height: 1.32;
}

.sales-index__mobile-meta {
    margin-top: .18rem;
}

.sales-index__mobile-status-detail {
    padding: .55rem .7rem;
    border-radius: .75rem;
    background: rgba(var(--aura-system-color-rgb), .08);
}

.sales-index__mobile-collaborator {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    color: #231a14;
    font-weight: 600;
}

.sales-index__mobile-collaborator span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sales-index__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.sales-index__mobile-field {
    display: grid;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.sales-index__mobile-field--full {
    grid-column: 1 / -1;
}

.sales-index__mobile-field span {
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sales-index__mobile-field strong {
    min-width: 0;
    color: #231a14;
    font-size: .98rem;
    overflow-wrap: anywhere;
}

.sales-index__mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.sales-index__mobile-actions .btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 991.98px) {
    .sales-index__header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .sales-index__actions,
    .sales-index__actions .btn,
    .sales-index__filters .btn {
        width: 100%;
    }

    .sales-index__filters .col-auto {
        width: 100%;
    }

    .sales-index__filter-card .card-body {
        padding: 1rem;
    }

    .sales-index__desktop-table {
        display: none;
    }

    .sales-index__results-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .sales-index__mobile-list {
        display: grid;
        gap: .85rem;
    }

    .sales-index__mobile-actions .btn:only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .sales-index__header {
        padding-top: 2.75rem;
    }

    .sales-index__mobile-top {
        flex-direction: column;
        gap: .55rem;
    }

    .sales-index__mobile-grid,
    .sales-index__mobile-actions {
        grid-template-columns: 1fr;
    }
}

.sale-details-modal,
.sale-payment-modal,
.sale-close-modal,
.sale-item-modal {
    overflow: hidden;
}

.sale-create-drawer {
    width: min(720px, 100vw);
}

.sale-create-drawer .offcanvas-body {
    display: flex;
    overflow: hidden;
    padding-bottom: 0;
}

.sale-create-modal {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.sale-create-modal .customer-create-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.sale-create-modal .customer-create-modal__footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid #e9ecef;
    background: #faf8f6;
}

.sale-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sale-type-card {
    border: 1px solid #d8e1f4;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sale-type-card strong {
    font-size: 1rem;
}

.sale-type-card span {
    color: #5f6c7b;
    font-size: .92rem;
}

.sale-type-card:hover,
.sale-type-card--active {
    border-color: #4f8dfd;
    box-shadow: 0 0 0 .18rem rgba(79, 141, 253, .12);
}

.sale-items {
    display: grid;
    gap: 1rem;
}

.sale-item {
    border-radius: 1rem;
    background: #fff;
}

.sale-item__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 132px auto;
    gap: 1rem;
    align-items: start;
}

.sale-item__main,
.sale-item__field {
    min-width: 0;
}

.sale-item__actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    padding-top: 1.95rem;
}

.sale-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .45rem;
    min-height: 1.1rem;
    white-space: nowrap;
}

.sale-item__secondary,
.sale-item__unit-price {
    min-height: 1.1rem;
    margin-top: 0;
}

.sale-item__secondary {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-item__unit-price {
    flex: 0 0 auto;
    text-align: right;
}

.sale-item .form-select,
.sale-item .form-control,
.sale-item .form-text,
.sale-item label,
.sale-item__secondary,
.sale-item__unit-price {
    color: #212529;
}

.sale-item .form-select,
.sale-item .form-control {
    background-color: #fff;
    border-color: #ced4da;
}

.sale-item .form-select option {
    color: #212529;
    background-color: #fff;
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--bootstrap-5 .select2-results__option,
.select2-container--bootstrap-5 .select2-search__field {
    color: #212529;
    background-color: #fff;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    color: #212529;
    background-color: #e9ecef;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
    color: #fff;
    background-color: #0d6efd;
}

.select2-container--bootstrap-5 .select2-selection {
    color: #212529;
    background-color: #fff;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    color: #212529;
}

.sale-total-card {
    border: 1px solid #d8e1f4;
    border-radius: 1rem;
    background: #f8fbff;
    padding: 1rem 1.15rem;
}

.sale-total-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sale-total-card__row + .sale-total-card__row {
    margin-top: .5rem;
}

.sale-total-card__row--total {
    padding-top: .75rem;
    margin-top: .75rem;
    border-top: 1px solid #dbe5f4;
    font-size: 1.05rem;
}

.sale-summary-items {
    display: grid;
    gap: .75rem;
}

.sale-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-top: 1px solid #edf1f7;
    padding-top: .75rem;
}

@media (max-width: 991.98px) {
    .sale-type-grid {
        grid-template-columns: 1fr;
    }

    .sale-item__grid {
        grid-template-columns: 1fr;
    }

    .sale-item__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .sale-create-drawer {
        height: 100dvh;
    }

    .sale-create-drawer .collaborator-schedule-drawer__toolbar {
        min-height: 56px;
        padding: .75rem .9rem;
    }

    .sale-create-drawer .offcanvas-body {
        padding: 0;
    }

    .sale-create-modal .customer-create-modal__body {
        gap: .85rem;
        padding: .85rem .85rem 1rem;
    }

    .sale-create-modal .customer-form-section {
        padding: .85rem;
        border-radius: .85rem;
    }

    .sale-create-modal .customer-form-section > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .65rem !important;
    }

    .sale-create-modal .customer-form-section > .d-flex .btn,
    #continueToAttendanceButton,
    #addSaleItemButton {
        width: 100%;
        min-height: 42px;
    }

    .sale-create-modal .attendance-customer-autocomplete .input-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sale-create-modal .attendance-customer-autocomplete .form-control {
        min-width: 0;
    }

    .sale-type-grid {
        gap: .65rem;
    }

    .sale-type-card {
        min-height: 72px;
        padding: .85rem;
        border-radius: .85rem;
    }

    .sale-item .card-body {
        padding: .85rem;
    }

    .sale-item .card-body > .d-flex {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .7rem !important;
    }

    .sale-item .text-end {
        text-align: left !important;
    }

    .sale-item .text-end .d-flex {
        justify-content: flex-start !important;
    }

    .sale-total-card {
        padding: .85rem;
        border-radius: .85rem;
    }

    .sale-create-modal .customer-create-modal__footer {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .65rem !important;
        padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .sale-create-modal .customer-create-modal__footer .btn {
        width: 100%;
        min-height: 44px;
    }

    .sale-item-modal,
    .sale-payment-modal,
    .sale-close-modal {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .sale-item-modal .modal-header,
    .sale-payment-modal .modal-header,
    .sale-close-modal .modal-header {
        padding: 1rem .95rem .75rem;
    }

    .sale-item-modal .modal-body,
    .sale-payment-modal .modal-body,
    .sale-close-modal .modal-body {
        padding: .95rem;
    }

    .sale-item-modal .modal-footer,
    .sale-payment-modal .modal-footer,
    .sale-close-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(205, 177, 162, .52) !important;
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .sale-item-modal .modal-footer .btn,
    .sale-payment-modal .modal-footer .btn,
    .sale-close-modal .modal-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
    }

    .sale-item-modal .form-control,
    .sale-item-modal .form-select,
    .sale-payment-modal .form-control,
    .sale-payment-modal .form-select {
        min-height: 46px;
        font-size: 16px;
    }

    .sale-payment-modal__remaining {
        justify-content: space-between !important;
        padding: .85rem;
        border: 1px solid rgba(205, 177, 162, .55);
        border-radius: .85rem;
        background: rgba(255, 253, 249, .88);
    }

    .sale-details-modal {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .sale-details-modal .modal-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .75rem;
        padding: 1rem .95rem .75rem;
    }

    .sale-details-modal .modal-title {
        font-size: 1.45rem;
    }

    .sale-details-modal__status {
        margin-left: 0 !important;
    }

    .sale-details-modal .appointment-tab-status-badge {
        min-height: 2.2rem;
        padding: .4rem .65rem;
        border-radius: .7rem;
        font-size: .88rem;
    }

    .sale-details-modal .modal-body {
        padding: .95rem;
    }

    .sale-details-modal .appointment-tab-summary-modal__customer {
        font-size: 1.15rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .sale-details-modal .appointment-tab-guidance {
        margin: .85rem 0 1rem;
        padding: .85rem;
        border-radius: .85rem;
    }

    .sale-details-modal .appointment-tab-summary-section + .appointment-tab-summary-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .sale-details-modal .appointment-tab-summary-section > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: .55rem !important;
    }

    .sale-details-modal .appointment-tab-summary-section > .d-flex .btn {
        width: 100%;
        min-height: 40px;
        padding: .45rem .65rem !important;
        border: 1px solid rgba(var(--aura-system-color-rgb), .22);
        border-radius: .75rem;
        background: rgba(var(--aura-system-color-rgb), .08);
        text-align: left;
    }

    .sale-details-modal .appointment-tab-summary-grid {
        gap: .45rem .75rem;
    }

    .sale-summary-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .sale-summary-item strong {
        text-align: left;
    }

    .sale-details-modal .appointment-tab-payment-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem;
        border: 1px solid rgba(236, 231, 222, .92);
        border-radius: .85rem;
        background: rgba(255, 255, 255, .58);
    }

    .sale-details-modal .appointment-tab-payment-row__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .35rem;
        align-items: start;
    }

    .sale-details-modal .appointment-tab-payment-row__actions .btn {
        justify-self: start;
        min-height: 38px;
        padding: .35rem .65rem !important;
    }

    .sale-details-modal .appointment-tab-summary-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -12px 28px rgba(39, 24, 18, .08);
    }

    .sale-details-modal .appointment-tab-summary-footer .btn {
        width: 100%;
        min-height: 44px;
        margin: 0 !important;
    }

    #openCloseSalePromptButton {
        order: -3;
    }

    #openAddSalePaymentButtonFooter {
        order: -2;
    }

    #cancelSaleButton {
        order: 2;
    }
}

.finance-page {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.finance-page__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.finance-page__quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}

.finance-page__filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, auto));
    gap: .85rem;
    align-items: end;
}

.finance-page__filter-actions {
    align-self: end;
}

.finance-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.finance-kpi-card {
    min-width: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(205, 177, 162, 0.55);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 241, 234, 0.96));
    box-shadow: var(--aura-shadow);
}

.finance-kpi-card--accent {
    background: linear-gradient(180deg, rgba(252, 244, 238, 0.98), rgba(243, 229, 219, 0.96));
}

.finance-kpi-card--balance {
    background: linear-gradient(180deg, rgba(245, 241, 236, 0.98), rgba(235, 226, 217, 0.96));
}

.finance-kpi-card__eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b6b5e;
}

.finance-kpi-card__value {
    display: block;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1.1;
    color: var(--aura-ink);
    overflow-wrap: anywhere;
}

.finance-kpi-card__meta {
    margin: .55rem 0 0;
    color: #74635a;
}

.finance-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.finance-breakdown-card {
    min-width: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(205, 177, 162, 0.55);
    border-radius: 1.2rem;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--aura-shadow);
}

.finance-breakdown-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.finance-breakdown-card__header span {
    color: #8b786f;
    font-size: .9rem;
    white-space: nowrap;
}

.finance-breakdown-card__list {
    display: grid;
    gap: .7rem;
    margin: 0;
}

.finance-breakdown-card__list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.finance-breakdown-card__list dt {
    margin: 0;
    color: #7b685f;
    font-weight: 600;
}

.finance-breakdown-card__list dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--aura-ink);
    overflow-wrap: anywhere;
    text-align: right;
}

.finance-daily-mobile-list {
    display: none;
}

.finance-daily-mobile-card {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid rgba(205, 177, 162, .55);
    border-radius: 1rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 12px 28px rgba(39, 24, 18, .06);
}

.finance-daily-mobile-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
}

.finance-daily-mobile-card__top > div,
.finance-daily-mobile-card__grid > div {
    min-width: 0;
}

.finance-daily-mobile-card__balance {
    text-align: right;
}

.finance-daily-mobile-card span {
    display: block;
    margin-bottom: .15rem;
    color: #8a7869;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.finance-daily-mobile-card strong {
    display: block;
    color: #231a14;
    font-size: .98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.finance-daily-mobile-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.finance-daily-mobile-card__grid > div {
    padding: .65rem .7rem;
    border: 1px solid rgba(236, 231, 222, .92);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .58);
}

.finance-daily-mobile-card__field--full {
    grid-column: 1 / -1;
}

.finance-collaborator-list {
    display: grid;
    gap: .85rem;
}

.finance-collaborator-card {
    min-width: 0;
    padding: .95rem 1rem;
    border: 1px solid #eadccf;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,246,241,0.92));
}

.finance-collaborator-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
    min-width: 0;
}

.finance-collaborator-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
}

.finance-collaborator-card__grid span {
    display: block;
    margin-bottom: .15rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8b776e;
}

.finance-collaborator-card__grid strong {
    color: var(--aura-ink);
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .finance-page__header {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-page__filters {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .finance-page__quick-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-page__filter-actions .btn {
        width: 100%;
    }

    .finance-daily-table-shell {
        display: none;
    }

    .finance-daily-mobile-list {
        display: grid;
        gap: .85rem;
    }
}

@media (max-width: 575.98px) {
    .finance-page {
        gap: 1rem;
    }

    .finance-page__quick-links,
    .finance-daily-mobile-card__grid {
        grid-template-columns: 1fr;
    }

    .finance-page__quick-links .btn,
    .finance-page .card .btn {
        width: 100%;
    }

    .finance-kpi-card,
    .finance-breakdown-card {
        padding: 1rem;
    }

    .finance-kpi-card__value {
        font-size: 1.45rem;
    }

    .finance-breakdown-card__header,
    .finance-breakdown-card__list div,
    .finance-collaborator-card__top,
    .finance-daily-mobile-card__top {
        align-items: stretch;
        flex-direction: column;
        gap: .45rem;
    }

    .finance-breakdown-card__header span,
    .finance-breakdown-card__list dd,
    .finance-collaborator-card__top span,
    .finance-daily-mobile-card__balance {
        text-align: left;
    }
}

.expenses-page {
    display: grid;
    gap: 1.25rem;
}

.expenses-page__header {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.expenses-period {
    display: inline-grid;
    grid-template-columns: 2.35rem minmax(9rem, auto) 2.35rem;
    align-items: center;
    gap: .45rem;
}

.btn-icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.expenses-period__label {
    min-width: 9rem;
    color: var(--aura-ink);
    font-weight: 800;
    text-align: center;
    text-transform: capitalize;
}

.expenses-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: .65rem;
}

.expenses-search .form-control {
    padding-left: 2.55rem;
}

.expenses-search__icon {
    position: absolute;
    top: 50%;
    left: .85rem;
    z-index: 2;
    color: #81746e;
    transform: translateY(-50%);
}

.expenses-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: start;
    gap: 1rem;
}

.expenses-table-shell {
    min-width: 0;
    border: 1px solid #e7ddd6;
    border-radius: .75rem;
    background: #fff;
    box-shadow: var(--aura-shadow);
    overflow: hidden;
}

.expenses-table-shell .table-responsive,
.cash-flow-table-shell .table-responsive,
.cash-flow-detail-table-shell .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.expenses-table {
    min-width: 860px;
}

.expenses-table thead th {
    color: #4b4542;
    font-size: .82rem;
    font-weight: 800;
    background: #f8f5f2;
    border-bottom-color: #e6ddd6;
    white-space: nowrap;
}

.expenses-table tbody td {
    height: 3.75rem;
    border-bottom-color: #eee7e1;
}

.expenses-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    color: #7d716b;
    font-size: .84rem;
}

.expenses-summary {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #e7ddd6;
    border-radius: .75rem;
    background: #fff;
    box-shadow: var(--aura-shadow);
}

.expenses-summary hr {
    margin: 0;
    color: #d8cbc2;
}

.expenses-summary__block {
    display: grid;
    gap: .25rem;
    text-align: right;
}

.expenses-summary__block strong {
    color: var(--aura-ink);
}

.expenses-summary__block small {
    color: #6e625d;
}

.expense-create-drawer {
    --bs-offcanvas-width: min(520px, 100vw);
}

.expense-create-modal .customer-create-modal__body {
    padding-bottom: 1rem;
}

.expenses-repeat-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--aura-ink);
    font-weight: 800;
}

.expenses-repeat-label svg {
    color: #7f5d52;
}

.expenses-recurrence-fields {
    margin-top: 1rem;
}

@media (max-width: 1199.98px) {
    .expenses-layout {
        grid-template-columns: 1fr;
    }

    .expenses-summary {
        max-width: 420px;
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .expenses-page__header {
        grid-template-columns: 1fr;
    }

    .expenses-period {
        justify-self: center;
    }

    .expenses-search {
        grid-template-columns: 1fr;
    }

    .expenses-search .btn,
    .expenses-page__header > .btn {
        width: 100%;
    }

    .expenses-summary {
        max-width: none;
        margin-left: 0;
    }

    .expenses-summary__block {
        text-align: left;
    }

    .expenses-table {
        min-width: 0;
    }

    .expenses-table thead {
        display: none;
    }

    .expenses-table,
    .expenses-table tbody,
    .expenses-table tr,
    .expenses-table td {
        display: block;
        width: 100%;
    }

    .expenses-table tbody tr {
        padding: .85rem 1rem;
        border-bottom: 1px solid #eee7e1;
    }

    .expenses-table tbody tr:last-child {
        border-bottom: 0;
    }

    .expenses-table tbody td {
        display: grid;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        min-height: 0;
        height: auto;
        padding: .42rem 0;
        border-bottom: 0;
        text-align: left !important;
    }

    .expenses-table tbody td::before {
        content: attr(data-label);
        color: #7a6b62;
        font-size: .78rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .expenses-table tbody td[colspan] {
        display: block;
        padding: 2rem 1rem;
        text-align: center !important;
    }

    .expenses-table tbody td[colspan]::before {
        display: none;
    }

    .expenses-table .btn-group {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .4rem;
    }

    .expenses-table .btn-group > .btn {
        border-radius: .45rem !important;
    }
}

.cash-flow-page {
    display: grid;
    gap: 1rem;
}

.cash-flow-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cash-flow-view-form {
    width: min(100%, 260px);
}

.cash-flow-table-shell,
.cash-flow-detail-table-shell,
.cash-flow-detail-summary {
    border: 1px solid #e7ddd6;
    border-radius: .75rem;
    background: #fff;
    box-shadow: var(--aura-shadow);
    overflow: hidden;
}

.cash-flow-table {
    min-width: 760px;
}

.cash-flow-table td {
    min-width: 140px;
    height: 3.7rem;
    vertical-align: middle;
    border-color: #eee7e1;
}

.cash-flow-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px;
    background: #fff;
}

.cash-flow-table__head td {
    color: #4b4542;
    font-weight: 800;
    background: #f8f5f2;
}

.cash-flow-table__head td:first-child {
    background: #f8f5f2;
}

.cash-flow-table__label {
    color: var(--aura-ink);
    font-weight: 600;
}

.cash-flow-table__label--sub {
    padding-left: 2rem !important;
    color: #6f625c;
    font-weight: 500;
}

.cash-flow-table__value {
    text-align: right;
    white-space: nowrap;
}

.cash-flow-table__row--revenue td {
    background: #f1fff7;
}

.cash-flow-table__row--revenue td:first-child {
    background: #f1fff7;
}

.cash-flow-table__row--expense td {
    background: #fff6f8;
}

.cash-flow-table__row--expense td:first-child {
    background: #fff6f8;
}

.cash-flow-amount-link,
.cash-flow-cell-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    color: inherit;
    text-decoration: none;
}

.cash-flow-amount-link:hover,
.cash-flow-cell-link:hover,
.cash-flow-detail-reference:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.cash-flow-detail-page {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    gap: 1rem;
}

.cash-flow-detail-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
}

.cash-flow-detail-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.cash-flow-detail-summary strong {
    color: var(--aura-ink);
}

.cash-flow-detail-summary span {
    color: var(--aura-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.cash-flow-detail-table thead th {
    color: #4b4542;
    font-size: .82rem;
    font-weight: 800;
    background: #f8f5f2;
    border-bottom-color: #e6ddd6;
}

.cash-flow-detail-table tbody td {
    border-bottom-color: #eee7e1;
}

.cash-flow-detail-reference {
    display: inline-flex;
    margin-top: .25rem;
    color: var(--bs-primary);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.cash-flow-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

@media (max-width: 767.98px) {
    .cash-flow-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cash-flow-detail-header {
        align-items: stretch;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cash-flow-view-form {
        width: 100%;
    }

    .cash-flow-detail-header > .btn {
        width: 2.35rem;
    }

    .cash-flow-detail-header > div:not(.cash-flow-detail-actions) {
        min-width: 0;
    }

    .cash-flow-table {
        min-width: 640px;
    }

    .cash-flow-table td {
        min-width: 7.25rem;
        padding: .75rem .65rem;
    }

    .cash-flow-table td:first-child {
        min-width: 9.5rem;
        max-width: 9.5rem;
        white-space: normal;
    }

    .cash-flow-table__label--sub {
        padding-left: 1rem !important;
    }

    .cash-flow-detail-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cash-flow-detail-actions .btn {
        width: 100%;
    }

    .cash-flow-detail-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .cash-flow-detail-table {
        min-width: 0;
    }

    .cash-flow-detail-table thead {
        display: none;
    }

    .cash-flow-detail-table,
    .cash-flow-detail-table tbody,
    .cash-flow-detail-table tr,
    .cash-flow-detail-table td {
        display: block;
        width: 100%;
    }

    .cash-flow-detail-table tbody tr {
        padding: .85rem 1rem;
        border-bottom: 1px solid #eee7e1;
    }

    .cash-flow-detail-table tbody tr:last-child {
        border-bottom: 0;
    }

    .cash-flow-detail-table tbody td {
        display: grid;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        align-items: start;
        padding: .42rem 0;
        border-bottom: 0;
        text-align: left !important;
    }

    .cash-flow-detail-table tbody td::before {
        content: attr(data-label);
        color: #7a6b62;
        font-size: .78rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .cash-flow-detail-table tbody td[colspan] {
        display: block;
        padding: 2rem 1rem;
        text-align: center !important;
    }

    .cash-flow-detail-table tbody td[colspan]::before {
        display: none;
    }
}

@media print {
    .app-sidebar,
    .sidebar-mobile-toggle,
    .sidebar-overlay,
    .trial-badge-overlay,
    .cash-flow-detail-header .btn,
    .cash-flow-detail-actions {
        display: none !important;
    }

    .app-wrapper,
    .app-content,
    .app-shell {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cash-flow-detail-page {
        max-width: none;
        margin: 0;
    }
}
/* Auth */
.auth-shell {
    min-height: calc(100vh - 6rem);
    display: grid;
    place-items: center;
}

.auth-shell--landing {
    min-height: calc(100vh - 8rem);
}

.public-main:has(.admin-console) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body:has(.admin-console) {
    overflow: hidden;
}

.public-main:has(.admin-auth-page) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body:has(.admin-auth-page) {
    overflow: hidden;
}

.admin-console {
    display: grid;
    place-items: center;
    height: 100dvh;
    min-height: 0;
    padding: clamp(1rem, 4vh, 2rem);
}

.admin-console__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(100%, 760px);
    max-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(71, 52, 35, .08);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,242,237,.96));
    box-shadow: 0 24px 64px rgba(84, 58, 34, .12);
}

.admin-console__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(160deg, rgba(22, 17, 16, 0.99) 0%, rgba(41, 28, 24, 0.97) 100%);
}

.admin-console__header h1 {
    margin: 0;
    color: #f4dbd2;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.admin-console__eyebrow {
    margin: 0 0 .2rem;
    color: rgba(244, 219, 210, .72);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-console__body {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(18rem, 1.15fr);
    gap: 1.25rem;
    align-items: start;
    min-height: 0;
    padding: 1.25rem;
}

.admin-console__copy h2 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.admin-console__copy p {
    margin: 0;
    color: #6e5b4b;
    line-height: 1.45;
}

.admin-console__form {
    display: grid;
    gap: 1rem;
}

.admin-console__form .btn {
    justify-self: start;
}

.admin-login__panel {
    width: min(100%, 620px);
}

.admin-login__body {
    grid-template-columns: minmax(0, .75fr) minmax(16rem, 1.25fr);
}

.admin-auth-page {
    display: grid;
    place-items: center;
    height: 100dvh;
    min-height: 0;
    padding: clamp(.75rem, 3vh, 1.5rem);
}

.admin-auth-card {
    width: min(100%, 30rem);
    max-height: 100%;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.25rem;
}

.admin-auth-brand {
    margin: -1.5rem -1.5rem 1.25rem;
    padding: .75rem 1rem;
    border-radius: 1.25rem 1.25rem 0 0;
}

.admin-auth-brand__icon {
    width: 56px;
    height: 56px;
}

.admin-auth-brand h1 {
    margin: 0 0 .15rem;
    color: #f4dbd2;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.admin-auth-brand p {
    margin: 0;
    color: rgba(244, 219, 210, .72);
    line-height: 1.25;
}

.auth-card {
    width: min(100%, 38rem);
    padding: 2.5rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,242,237,.96));
    border: 1px solid rgba(71, 52, 35, .08);
    box-shadow: 0 30px 80px rgba(84, 58, 34, .12);
}

.auth-card--wide,
.auth-card--hero {
    width: min(100%, 64rem);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: -2.5rem -2.5rem 1.75rem;
    padding: .9rem 1.15rem;
    border-radius: 1.75rem 1.75rem 0 0;
    background: linear-gradient(160deg, rgba(22, 17, 16, 0.99) 0%, rgba(41, 28, 24, 0.97) 100%);
    border: 1px solid rgba(223, 186, 171, 0.12);
}

.auth-brand-icon {
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(216, 163, 148, 0.24));
}

.auth-brand-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #f4dbd2;
    letter-spacing: .05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.auth-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9a6b47;
    margin-bottom: .85rem;
}

.auth-title {
    font-family: "Source Sans 3", sans-serif;
    font-size: clamp(1.7rem, 2.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1.08;
    color: #33251a;
    letter-spacing: -.01em;
    margin-bottom: .85rem;
}

.auth-subtitle,
.auth-footer {
    color: #6e5b4b;
    max-width: 46rem;
}

.auth-legal {
    color: #7a6b62;
    font-size: .92rem;
    text-align: center;
}

.auth-legal--notice {
    text-align: left;
}

.auth-legal a {
    color: var(--aura-rose-deep);
    font-weight: 800;
    text-decoration: none;
}

.auth-legal a:hover,
.auth-legal a:focus {
    color: var(--aura-system-color-hover);
    text-decoration: underline;
}

.signup-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.signup-step,
.segment-card {
    border: 1px solid rgba(71, 52, 35, .1);
    border-radius: 1.25rem;
    background: #fff;
}

.signup-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    color: #8d7766;
}

.signup-step span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #f3ece6;
    font-weight: 700;
    color: #9a6b47;
}

.signup-step.is-active {
    border-color: rgba(154, 107, 71, .35);
    color: #3f2f22;
}

.signup-panel {
    display: none;
}

.signup-panel.is-active {
    display: block;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.segment-card {
    padding: 1.25rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.segment-card:has(input:checked) {
    border-color: #9a6b47;
    box-shadow: 0 12px 32px rgba(154, 107, 71, .12);
    transform: translateY(-2px);
}

.segment-card input {
    margin-bottom: 1rem;
}

.segment-card-title {
    display: block;
    font-weight: 700;
    color: #33251a;
    margin-bottom: .35rem;
}

.sidebar-user-name {
    font-size: .9rem;
    font-weight: 700;
    color: #f4dbd2;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 767.98px) {
    .finance-collaborator-card__grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .auth-brand {
        margin: -1.5rem -1.5rem 1.25rem;
        padding: .8rem 1rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .admin-console {
        padding: .75rem;
        align-items: start;
    }

    .admin-console__panel {
        width: 100%;
        border-radius: 1rem;
    }

    .admin-console__header {
        padding: .85rem .9rem;
    }

    .admin-console__body {
        grid-template-columns: 1fr;
        gap: .85rem;
        padding: 1rem;
    }

    .admin-console__copy p {
        font-size: .95rem;
    }

    .admin-console__form .btn {
        width: 100%;
    }

    .admin-login__body {
        grid-template-columns: 1fr;
    }

    .admin-auth-page {
        padding: .75rem;
        align-items: start;
    }

    .admin-auth-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .admin-auth-brand {
        margin: -1rem -1rem 1rem;
        padding: .65rem .85rem;
        border-radius: 1rem 1rem 0 0;
    }

    .admin-auth-brand__icon {
        width: 44px;
        height: 44px;
    }

    .auth-brand-icon {
        width: 88px;
        height: 88px;
    }

    .signup-steps,
    .segment-grid {
        grid-template-columns: 1fr;
    }
}

.settings-page {
    max-width: 960px;
    margin: 0 auto;
}

.settings-page__header {
    margin-bottom: 1.5rem;
}

.settings-list {
    display: grid;
    gap: 1rem;
}

.settings-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(205, 177, 162, 0.55);
    border-radius: 1.2rem;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--aura-shadow);
    text-decoration: none;
    color: inherit;
}

.settings-card:hover {
    color: inherit;
    transform: translateY(-1px);
}

.settings-card--disabled {
    opacity: .72;
}

.settings-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.04)),
        var(--aura-system-color);
    color: #fff7f2;
    font-weight: 800;
    letter-spacing: .08em;
}

.settings-card__content {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.settings-card__content strong {
    color: var(--aura-ink);
}

.settings-card__content span {
    color: #74635a;
}

.settings-card__arrow {
    font-size: 1.65rem;
    line-height: 1;
    color: #9b7d70;
}

.whatsapp-notifications-page {
    max-width: 1120px;
    margin: 0 auto;
}

.whatsapp-notifications-header {
    margin-bottom: 1.25rem;
}

.whatsapp-credit-group-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(67, 84, 255, .2);
    border-radius: .75rem;
    background: #fff;
    box-shadow: var(--aura-shadow);
}

.whatsapp-credit-group-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.whatsapp-credit-group-card__header h2 {
    margin: 0;
    color: var(--aura-ink);
    font-size: 1.18rem;
    font-weight: 800;
}

.whatsapp-credit-group-card__header p {
    margin: 0;
    color: var(--aura-muted);
}

.whatsapp-credit-group-card__body {
    display: grid;
    grid-template-columns: minmax(12rem, 1.1fr) minmax(14rem, 1.6fr) minmax(10rem, .9fr) minmax(12rem, 1fr);
    gap: .85rem;
    align-items: stretch;
}

.whatsapp-credit-group-card__usage,
.whatsapp-credit-group-card__meta,
.whatsapp-credit-group-card__included,
.whatsapp-credit-source-note {
    display: grid;
    gap: .55rem;
    padding: .85rem;
    border: 1px solid #e1e3e6;
    border-radius: .55rem;
    background: #f8fafc;
}

.whatsapp-credit-group-card__meta,
.whatsapp-credit-group-card__included,
.whatsapp-credit-source-note {
    align-content: start;
}

.whatsapp-credit-group-card__meta span,
.whatsapp-credit-group-card__meta small,
.whatsapp-credit-group-card__included span,
.whatsapp-credit-source-note span,
.whatsapp-credit-source-note small {
    color: var(--aura-muted);
    font-size: .8rem;
}

.whatsapp-credit-group-card__meta strong,
.whatsapp-credit-source-note strong {
    color: var(--aura-ink);
    font-size: 1.08rem;
    line-height: 1.15;
}

.whatsapp-credit-group-card__included div {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.whatsapp-credit-group-card__included strong {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4354ff;
    font-size: .8rem;
}

.whatsapp-notification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.whatsapp-notification-card {
    display: grid;
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-height: 15rem;
    padding: 1.25rem;
    border: 1px solid rgba(205, 177, 162, .6);
    border-radius: .75rem;
    background: rgba(255, 253, 249, .96);
    box-shadow: var(--aura-shadow);
}

.whatsapp-notification-card--off {
    border-color: #d7dade;
    background: #fff;
}

.whatsapp-notification-card--off .whatsapp-notification-card__icon {
    background: #f3f4f6;
    color: #6b7280;
}

.whatsapp-notification-card__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: #f1f5ff;
    color: #4354ff;
}

.whatsapp-notification-card__icon svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: currentColor;
}

.whatsapp-notification-card__content {
    min-width: 0;
    display: grid;
    gap: .65rem;
}

.whatsapp-notification-card__topline,
.whatsapp-notification-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.whatsapp-notification-card__status {
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    padding: .22rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.whatsapp-notification-card__status--on {
    background: #e7f6ed;
    color: #22623f;
}

.whatsapp-notification-card__status--off {
    background: #f3f4f6;
    color: #5d6470;
}

.whatsapp-notification-card__status--available {
    background: #eef2ff;
    color: #4354ff;
}

.whatsapp-notification-card h2 {
    margin: 0;
    color: var(--aura-ink);
    font-size: 1.12rem;
    font-weight: 800;
}

.whatsapp-notification-card p {
    margin: 0;
    color: var(--aura-muted);
}

.whatsapp-notification-card__meta span {
    min-height: 1.6rem;
    display: inline-flex;
    align-items: center;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: rgba(var(--aura-system-color-rgb), .09);
    color: var(--aura-muted);
    font-size: .78rem;
    font-weight: 700;
}

.whatsapp-notification-card__price {
    display: grid;
    gap: .12rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(67, 84, 255, .22);
    border-radius: .5rem;
    background: #f7f9ff;
}

.whatsapp-notification-card__price span,
.whatsapp-notification-card__price small {
    color: var(--aura-muted);
    font-size: .8rem;
}

.whatsapp-notification-card__price strong {
    color: var(--aura-ink);
    font-size: 1.15rem;
    line-height: 1.1;
}

.whatsapp-notification-card__balance {
    display: grid;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #fff;
}

.whatsapp-credit-available {
    display: grid;
    gap: .12rem;
    padding: .95rem 1rem;
    border-radius: .55rem;
}

.whatsapp-credit-available--positive {
    border: 1px solid #bfe5cc;
    background: #ecfdf3;
}

.whatsapp-credit-available--empty {
    border: 1px solid #e1e3e6;
    background: #f8fafc;
}

.whatsapp-credit-available span {
    color: #22623f;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.whatsapp-credit-available--empty span {
    color: var(--aura-muted);
}

.whatsapp-credit-available strong {
    color: #14532d;
    font-size: 2rem;
    line-height: 1;
}

.whatsapp-credit-available--empty strong {
    color: var(--aura-ink);
}

.whatsapp-credit-available small {
    color: #22623f;
    font-size: .85rem;
    font-weight: 700;
}

.whatsapp-credit-available--empty small {
    color: var(--aura-muted);
}

.whatsapp-credit-progress {
    height: .62rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f4;
}

.whatsapp-credit-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4354ff;
}

.whatsapp-notification-card__balance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.whatsapp-notification-card__balance-grid span {
    display: grid;
    gap: .1rem;
    min-width: 0;
    color: var(--aura-muted);
    font-size: .74rem;
}

.whatsapp-notification-card__balance-grid strong {
    color: var(--aura-ink);
    font-size: .9rem;
}

.whatsapp-notification-card__actions {
    grid-column: 2;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.whatsapp-credit-total,
.whatsapp-credit-checkout-summary {
    display: grid;
    gap: .15rem;
    padding: .75rem .85rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #f8fafc;
}

.whatsapp-credit-total span,
.whatsapp-credit-checkout-summary span {
    color: var(--aura-muted);
    font-size: .78rem;
    font-weight: 700;
}

.whatsapp-credit-total strong,
.whatsapp-credit-checkout-summary strong {
    color: var(--aura-ink);
    font-size: 1.05rem;
}

.whatsapp-credit-checkout-summary {
    margin-top: 1rem;
    border-color: rgba(67, 84, 255, .22);
    background: #f7f9ff;
}

.whatsapp-credit-checkout-summary strong {
    font-size: 1.35rem;
}

.whatsapp-credit-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.whatsapp-credit-payment-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
}

.whatsapp-credit-payment-option:has(input:checked) {
    border-color: #4354ff;
    background: #f7f9ff;
}

.whatsapp-credit-payment-option input {
    margin: 0;
}

.whatsapp-credit-payment-option span {
    display: grid;
    gap: .1rem;
}

.whatsapp-credit-payment-option strong {
    color: var(--aura-ink);
    font-size: .92rem;
}

.whatsapp-credit-payment-option small {
    color: var(--aura-muted);
    font-size: .78rem;
}

.whatsapp-history-empty {
    display: grid;
    gap: .2rem;
    padding: 1rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #f8fafc;
}

.whatsapp-history-empty strong {
    color: var(--aura-ink);
}

.whatsapp-history-empty span {
    color: var(--aura-muted);
}

.whatsapp-history-table {
    min-width: 860px;
    margin-bottom: 0;
}

.whatsapp-history-table th {
    color: var(--aura-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.whatsapp-history-table td strong,
.whatsapp-history-table td small {
    display: block;
}

.whatsapp-history-table td small {
    color: var(--aura-muted);
    margin-top: .15rem;
}

.whatsapp-history-status {
    min-height: 1.7rem;
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.whatsapp-history-status--sent {
    background: #e7f6ed;
    color: #22623f;
}

.whatsapp-history-status--pending {
    background: #eef2ff;
    color: #4354ff;
}

.whatsapp-history-status--warning {
    background: #fff7d6;
    color: #8a5a00;
}

.whatsapp-history-status--failed {
    background: #fee2e2;
    color: #991b1b;
}

.whatsapp-history-status--neutral {
    background: #f3f4f6;
    color: #5d6470;
}

.whatsapp-history-detail {
    display: block;
    max-width: 24rem;
    color: var(--aura-muted);
    font-size: .86rem;
    word-break: break-word;
}

.whatsapp-history-detail--error {
    color: #991b1b;
}

.whatsapp-history-detail--review {
    padding: .45rem .55rem;
    border-radius: .6rem;
    background: #eef6ff;
    color: #084298;
}

.whatsapp-history-detail--review span,
.whatsapp-history-detail--review small {
    display: block;
}

.whatsapp-settings-drawer {
    --bs-offcanvas-width: min(100vw, 840px);
}

.whatsapp-settings-drawer .offcanvas-header {
    align-items: flex-start;
    border-bottom: 1px solid #e1e3e6;
}

.whatsapp-settings-drawer .offcanvas-body {
    padding: 1.25rem 1.5rem 2rem;
}

.whatsapp-settings-drawer .whatsapp-settings-page {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.whatsapp-settings-drawer .whatsapp-settings-header {
    margin-bottom: 0;
}

.whatsapp-settings-shell {
    display: flex;
    justify-content: center;
}

.whatsapp-settings-page {
    width: min(100%, 920px);
    padding: 2.25rem;
    border: 1px solid rgba(95, 83, 76, .26);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .8);
}

.whatsapp-settings-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.35rem;
}

.whatsapp-settings-header h1 {
    margin: 0;
    color: #0e1520;
    font-size: 1.45rem;
    font-weight: 800;
}

.whatsapp-settings-header__back {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #101820;
    text-decoration: none;
    font-size: 1.55rem;
    line-height: 1;
}

.whatsapp-settings-header__back:hover,
.whatsapp-settings-header__back:focus {
    color: #101820;
    background: rgba(2, 35, 79, .08);
}

.whatsapp-settings-intro {
    max-width: 760px;
    margin: 0 0 1.7rem;
    color: #0e1520;
    font-size: 1rem;
    line-height: 1.5;
}

.whatsapp-message-type {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2.2rem;
    color: #0e1520;
}

.whatsapp-message-type__tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: .24rem .6rem;
    border-radius: .5rem;
    background: #02234f;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.whatsapp-scenario-card {
    background: transparent;
}

.whatsapp-empty-state {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #fff;
}

.whatsapp-empty-state__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    background: #f1f5ff;
    color: #4354ff;
}

.whatsapp-empty-state__icon svg,
.whatsapp-preview-heading svg,
.whatsapp-section-heading svg,
.whatsapp-rules-callout svg,
.whatsapp-audience-note svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.whatsapp-switch {
    min-width: 5.85rem;
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .42rem .85rem;
    border: 2px solid #8d929c;
    border-radius: 999px;
    background: #f3f4f6;
    color: #5d6470;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.whatsapp-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.whatsapp-switch svg {
    width: 1.45rem;
    height: 1.45rem;
    padding: .18rem;
    border-radius: 999px;
    background: #fff;
    fill: currentColor;
}

.whatsapp-switch--on {
    border-color: #4354ff;
    background: #4354ff;
    color: #fff;
}

.whatsapp-scenario-card__details {
    min-width: 0;
}

.whatsapp-scenario-card__details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.whatsapp-scenario-card__details summary::-webkit-details-marker {
    display: none;
}

.whatsapp-scenario-card__details summary::after {
    content: "";
    width: .58rem;
    height: .58rem;
    border-right: 2px solid #4354ff;
    border-bottom: 2px solid #4354ff;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.whatsapp-scenario-card__details[open] summary::after {
    transform: rotate(225deg);
}

.whatsapp-scenario-card__details strong,
.whatsapp-scenario-card__details small {
    display: block;
}

.whatsapp-scenario-card__details strong {
    color: #0e1520;
    text-transform: uppercase;
    font-weight: 800;
}

.whatsapp-scenario-card__details small {
    margin-top: .25rem;
    color: #0e1520;
    font-size: 1rem;
}

.whatsapp-scenario-card__body {
    display: grid;
    gap: 1.45rem;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid #e1e3e6;
    border-radius: .5rem;
    background: #fff;
}

.whatsapp-preview-heading,
.whatsapp-section-heading,
.whatsapp-rules-callout__title,
.whatsapp-audience-note {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.whatsapp-preview-heading {
    align-items: flex-start;
}

.whatsapp-preview-heading svg,
.whatsapp-section-heading svg {
    color: #0e1520;
}

.whatsapp-preview-heading h2,
.whatsapp-section-heading h2 {
    margin: 0;
    color: #0e1520;
    font-size: 1.45rem;
    font-weight: 800;
}

.whatsapp-preview-heading p,
.whatsapp-schedule-section > p {
    margin: .8rem 0 0;
    color: #0e1520;
}

.whatsapp-message-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 2rem;
    align-items: start;
}

.whatsapp-message-layout--image {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: .65rem;
}

.whatsapp-message-preview-image {
    width: min(100%, 415px);
    height: auto;
    display: block;
    border-radius: .4rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.whatsapp-message-preview-caption {
    max-width: 415px;
    margin: 0;
    color: #5d6470;
    font-size: .88rem;
    line-height: 1.35;
    text-align: center;
}

.whatsapp-schedule-section {
    display: grid;
    gap: 1rem;
}

.whatsapp-section-heading h2 {
    display: inline;
}

.whatsapp-leadtime-field {
    display: grid;
    gap: .25rem;
}

.whatsapp-leadtime-field span {
    color: #0e1520;
    font-size: .85rem;
}

.whatsapp-leadtime-field sup {
    color: #b42318;
}

.whatsapp-leadtime-field select {
    min-height: 3rem;
}

.whatsapp-rules-callout {
    padding: 1rem;
    border: 1px solid #1e73be;
    border-radius: .45rem;
    background: #d7edfb;
    color: #0f4f83;
}

.whatsapp-rules-callout__title {
    margin-bottom: .45rem;
}

.whatsapp-rules-callout ul {
    margin: 0 0 0 2.1rem;
    padding: 0;
    font-size: .92rem;
}

.whatsapp-audience-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .85rem 1rem;
    padding: .9rem 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    background: #f3f3f3;
    color: #0e1520;
}

.whatsapp-audience-note--enabled {
    border-color: #b9c6ff;
    background: #eef4ff;
}

.whatsapp-audience-note--disabled {
    border-color: #dedede;
    background: #f5f5f5;
}

.whatsapp-audience-note__content {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    flex: 0 1 auto;
}

.whatsapp-audience-note__content span {
    min-width: 0;
}

.whatsapp-audience-note .whatsapp-switch {
    flex: 0 0 auto;
    margin-left: .15rem;
}

.whatsapp-scenario-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.whatsapp-scenario-card__footer .btn:disabled {
    border-color: #d1d5db;
    background: #d1d5db;
    color: #7b8088;
}

.payment-methods-page,
.payment-method-editor,
.payment-method-config-editor,
.commission-settings-page,
.system-theme-page {
    max-width: 980px;
    margin: 0 auto;
}

.commission-settings-form {
    overflow: hidden;
}

.system-theme-form {
    overflow: hidden;
}

.system-theme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 1.5rem;
    align-items: start;
}

.system-theme-controls {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.system-theme-section + .system-theme-section {
    padding-top: 1.25rem;
    border-top: 1px solid #ece1d7;
}

.system-theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.system-theme-options--presets {
    grid-template-columns: 1fr;
}

.system-theme-option {
    position: relative;
    min-width: 0;
    min-height: 5.5rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid #e6d8cc;
    border-radius: .85rem;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.system-theme-option:hover {
    transform: translateY(-1px);
}

.system-theme-option:has(.system-theme-option__input:checked) {
    border-color: var(--aura-system-color);
    box-shadow: 0 0 0 .2rem rgba(var(--aura-system-color-rgb), .12);
}

.system-theme-option:has(.system-theme-option__input:focus-visible) {
    outline: .18rem solid rgba(var(--aura-system-color-rgb), .24);
    outline-offset: .12rem;
}

.system-theme-option__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.system-theme-option__swatch {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: .65rem;
    background: var(--option-color);
    box-shadow: 0 0 0 1px rgba(47, 38, 35, .12);
}

.system-theme-option--preset {
    min-height: 5rem;
}

.system-theme-preset-swatches {
    width: 4.6rem;
    height: 2.4rem;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: .65rem;
    box-shadow: 0 0 0 1px rgba(47, 38, 35, .12);
}

.system-theme-preset-swatches span:nth-child(1) {
    background: var(--preset-system-color);
}

.system-theme-preset-swatches span:nth-child(2) {
    background: var(--preset-menu-color);
}

.system-theme-preset-swatches span:nth-child(3) {
    background: var(--preset-modal-color);
}

.system-theme-option__content {
    display: grid;
    gap: .15rem;
    min-width: 0;
    color: #74635a;
    font-size: .84rem;
    line-height: 1.25;
}

.system-theme-option__content strong {
    color: #2e241d;
    font-size: .94rem;
}

.system-theme-preview {
    --preview-system-color: var(--aura-system-color);
    --preview-system-color-hover: var(--aura-system-color-hover);
    --preview-menu-color: var(--aura-menu-background);
    --preview-menu-color-end: var(--aura-menu-background-end);
    --preview-modal-color: var(--aura-modal-header-background);
    --preview-modal-text-color: var(--aura-modal-header-color);
    position: sticky;
    top: 1rem;
    min-height: 25rem;
    display: grid;
    grid-template-columns: 8.25rem minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3d5c8;
    border-radius: 1rem;
    background: #fffaf4;
    box-shadow: var(--aura-shadow);
}

.system-theme-preview__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem .75rem;
    background: var(--preview-menu-color);
    background: linear-gradient(160deg, var(--preview-menu-color), var(--preview-menu-color-end));
    color: rgba(255, 247, 242, .78);
}

.system-theme-preview__brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff7f2;
}

.system-theme-preview__brand span {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .13);
    font-weight: 800;
}

.system-theme-preview__nav {
    display: grid;
    gap: .35rem;
}

.system-theme-preview__nav span {
    display: block;
    min-width: 0;
    padding: .45rem .55rem;
    border-radius: .55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 700;
}

.system-theme-preview__nav .is-active {
    color: #fff7f2;
    background: rgba(255, 255, 255, .14);
    background: color-mix(in srgb, var(--preview-system-color), transparent 74%);
}

.system-theme-preview__surface {
    min-width: 0;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(250, 247, 243, .92)),
        var(--preview-system-color);
}

.system-theme-preview__topbar {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
    margin-bottom: 2rem;
}

.system-theme-preview__topbar span {
    width: 3.5rem;
    height: .7rem;
    border-radius: 999px;
    background: #e7d8ca;
}

.system-theme-preview__topbar span:first-child {
    background: var(--preview-system-color);
}

.system-theme-preview__panel {
    min-height: 16rem;
    display: grid;
    place-items: center;
    border: 1px dashed #decfc2;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .52);
}

.system-theme-preview__modal {
    width: min(100%, 16rem);
    overflow: hidden;
    border: 1px solid #ded0c3;
    border-radius: .85rem;
    background: #fffdf9;
    box-shadow: 0 16px 34px rgba(47, 38, 35, .12);
}

.system-theme-preview__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 3.3rem;
    padding: .75rem .9rem;
    background: var(--preview-modal-color);
    color: var(--preview-modal-text-color);
}

.system-theme-preview__modal-body {
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.system-theme-preview__modal-body span {
    height: .7rem;
    border-radius: 999px;
    background: #eaded4;
}

.system-theme-preview__modal-body span:nth-child(2) {
    width: 68%;
}

.system-theme-preview__modal-body button {
    justify-self: end;
    min-height: 2.25rem;
    padding: .45rem .9rem;
    border: 0;
    border-radius: .6rem;
    background: var(--preview-system-color);
    color: #fff;
    font-weight: 800;
}

.commission-settings-section + .commission-settings-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ece1d7;
}

.commission-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.commission-settings-field {
    min-width: 0;
}

.commission-settings-field .form-label {
    color: #2e241d;
    font-size: .88rem;
    font-weight: 700;
}

.commission-settings-note {
    margin: .35rem 0 0;
    color: #7b6d64;
    font-size: .82rem;
    line-height: 1.3;
}

.payment-method-row__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.payment-method-row__more {
    color: #8b776e;
    font-size: 1.5rem;
    line-height: 1;
}

.payment-method-editor__back {
    color: #7c6559;
    text-decoration: none;
    font-weight: 700;
}

.payment-method-toggle {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1rem;
    border: 1px solid #e6d8cc;
    border-radius: 1rem;
    background: #fff;
}

.payment-method-toggle .form-check-input {
    margin-top: .2rem;
}

.payment-method-toggle span {
    display: grid;
    gap: .2rem;
}

.payment-method-toggle small {
    color: #74635a;
}

.payment-method-installments {
    padding-top: 1.25rem;
    border-top: 1px solid #ece1d7;
}

.payment-method-installments__header {
    margin-bottom: .8rem;
}

@media (max-width: 767.98px) {
    .settings-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .whatsapp-settings-page {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .whatsapp-settings-drawer .whatsapp-settings-page {
        padding: 0;
    }

    .whatsapp-settings-drawer .offcanvas-body {
        padding: 1rem;
    }

    .whatsapp-credit-group-card__header {
        flex-direction: column;
    }

    .whatsapp-credit-group-card__header .btn {
        width: 100%;
    }

    .whatsapp-credit-group-card__body {
        grid-template-columns: 1fr;
    }

    .whatsapp-notification-card {
        grid-template-columns: 1fr;
    }

    .whatsapp-notification-card__actions {
        grid-column: 1;
    }

    .whatsapp-notification-card__actions .btn {
        width: 100%;
    }

    .whatsapp-credit-payment-methods {
        grid-template-columns: 1fr;
    }

    .whatsapp-message-layout {
        grid-template-columns: 1fr;
    }

    .whatsapp-empty-state,
    .whatsapp-scenario-card__summary {
        grid-template-columns: 1fr;
    }

    .whatsapp-switch {
        justify-self: start;
    }

    .whatsapp-scenario-card__body {
        padding: 1rem;
    }

    .whatsapp-scenario-card__footer .btn {
        width: 100%;
    }

    .commission-settings-grid {
        grid-template-columns: 1fr;
    }

    .system-theme-layout,
    .system-theme-options {
        grid-template-columns: 1fr;
    }

    .system-theme-preview {
        position: static;
        min-height: 20rem;
        grid-template-columns: 6.5rem minmax(0, 1fr);
    }

    .settings-card__arrow,
    .settings-card .badge {
        grid-column: 2;
        justify-self: start;
    }
}

/* Public hotsite */
.public-main {
    min-height: 100vh;
    padding: 0;
}

.landing-site {
    --landing-ink: #171412;
    --landing-muted: #665b54;
    --landing-line: #ddd4cc;
    --landing-panel: #fffdfa;
    --landing-rose: #b76f62;
    --landing-teal: #2f6f73;
    --landing-green: #687b45;
    color: var(--landing-ink);
    background: #fffdfa;
    overflow: hidden;
}

.landing-site h1,
.landing-site h2,
.landing-site h3 {
    letter-spacing: 0;
}

.landing-site .btn {
    border-radius: .5rem;
    min-height: 3.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.landing-hero {
    position: relative;
    isolation: isolate;
    min-height: 82svh;
    display: flex;
    flex-direction: column;
    background-image: url("/images/landing/aura-salon-hero.png");
    background-position: center right;
    background-size: cover;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 253, 250, .62);
}

.landing-nav {
    width: 100%;
    min-height: 86px;
    margin: 0;
    padding: .75rem max(1rem, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
    background: #231a14;
    border-bottom: 1px solid rgba(255, 247, 241, .1);
    box-shadow: 0 16px 38px rgba(31, 24, 20, .16);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #fff7f1;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.05rem;
    font-weight: 700;
    line-height: 1;
}

.landing-brand:hover {
    color: #fff7f1;
}

.landing-brand__logo-frame {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .7rem;
    background: rgba(255, 247, 241, .1);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.landing-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.55);
    transform-origin: center;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-width: 0;
}

.landing-nav__links a,
.landing-link-button {
    color: #3e3530;
    font-weight: 800;
    text-decoration: none;
}

.landing-nav__links a {
    color: rgba(255, 247, 241, .82);
}

.landing-nav__links a:hover {
    color: #fff7f1;
}

.landing-link-button:hover {
    color: var(--landing-rose);
}

.landing-nav__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem 1.05rem;
    border: 1px solid rgba(23, 20, 18, .18);
    border-radius: .5rem;
    color: #fff7f1;
    background: rgba(255, 247, 241, .1);
    border-color: rgba(255, 247, 241, .24);
    text-decoration: none;
    font-weight: 800;
}

.landing-nav__login:hover {
    color: #231a14;
    background: #fff7f1;
}

.landing-hero__content {
    width: min(calc(100% - 2rem), 1180px);
    margin: auto auto 0;
    padding: 3.25rem 0 5rem;
    position: relative;
    z-index: 1;
}

.landing-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--landing-teal);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0 0 1rem;
    max-width: 40rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.6rem, 9vw, 7rem);
    font-weight: 700;
    line-height: .9;
    color: var(--landing-ink);
}

.landing-hero p {
    max-width: 38rem;
    margin: 0;
    color: #3d342f;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.5;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem;
    margin-top: 1.6rem;
}

.landing-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: .65rem 1rem;
}

.landing-hero__metrics {
    width: min(100%, 42rem);
    margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(23, 20, 18, .18);
    border-bottom: 1px solid rgba(23, 20, 18, .18);
}

.landing-hero__metrics div {
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
}

.landing-hero__metrics div + div {
    padding-left: 1rem;
    border-left: 1px solid rgba(23, 20, 18, .14);
}

.landing-hero__metrics dt {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.landing-hero__metrics dd {
    margin: .15rem 0 0;
    color: var(--landing-muted);
    line-height: 1.3;
}

.landing-proof {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto;
    padding: 1.65rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    border-bottom: 1px solid var(--landing-line);
}

.landing-proof div {
    min-width: 0;
}

.landing-proof strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--landing-ink);
    font-size: 1rem;
}

.landing-proof span {
    display: block;
    color: var(--landing-muted);
}

.landing-section,
.landing-system,
.landing-operation {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto;
    padding: 4.75rem 0;
}

.landing-section__intro {
    max-width: 45rem;
    margin-bottom: 2rem;
}

.landing-section__intro h2,
.landing-system__copy h2,
.landing-operation h2,
.landing-cta h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.landing-section__intro p,
.landing-system__copy p,
.landing-operation p {
    margin: 1rem 0 0;
    color: var(--landing-muted);
    font-size: 1.08rem;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-feature-card {
    min-height: 13.5rem;
    padding: 1.25rem;
    border: 1px solid var(--landing-line);
    border-radius: .5rem;
    background: var(--landing-panel);
    box-shadow: 0 12px 32px rgba(43, 31, 25, .06);
}

.landing-feature-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #fff;
    background: var(--landing-teal);
    font-weight: 900;
    font-size: .78rem;
}

.landing-feature-card:nth-child(2n) span {
    background: var(--landing-rose);
}

.landing-feature-card:nth-child(3n) span {
    background: var(--landing-green);
}

.landing-feature-card h3 {
    margin: 0 0 .55rem;
    font-size: 1.28rem;
}

.landing-feature-card p {
    margin: 0;
    color: var(--landing-muted);
}

.landing-system {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
    align-items: center;
    gap: 3rem;
    border-top: 1px solid var(--landing-line);
    border-bottom: 1px solid var(--landing-line);
}

.landing-checklist {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .8rem;
}

.landing-checklist li {
    position: relative;
    padding-left: 1.65rem;
    color: #443a34;
    line-height: 1.45;
}

.landing-checklist li::before {
    content: "";
    position: absolute;
    top: .48rem;
    left: 0;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--landing-teal);
}

.landing-dashboard-preview {
    border: 1px solid #cfc6bd;
    border-radius: .5rem;
    background: #151312;
    color: #fff7f1;
    box-shadow: 0 24px 54px rgba(31, 24, 20, .18);
    overflow: hidden;
}

.landing-dashboard-preview__top {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 247, 241, .12);
}

.landing-dashboard-preview__top img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.landing-dashboard-preview__top strong,
.landing-dashboard-preview__top span {
    display: block;
}

.landing-dashboard-preview__top span {
    color: rgba(255, 247, 241, .68);
}

.landing-dashboard-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 247, 241, .12);
}

.landing-dashboard-preview__grid div {
    min-width: 0;
    padding: 1rem 1.25rem;
}

.landing-dashboard-preview__grid div + div {
    border-left: 1px solid rgba(255, 247, 241, .12);
}

.landing-dashboard-preview__grid span {
    display: block;
    color: rgba(255, 247, 241, .62);
    font-size: .86rem;
    line-height: 1.2;
}

.landing-dashboard-preview__grid strong {
    display: block;
    margin-top: .45rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1;
}

.landing-dashboard-preview__timeline {
    display: grid;
    gap: .75rem;
    padding: 1.25rem;
}

.landing-dashboard-preview__timeline span {
    height: .75rem;
    width: var(--size);
    border-radius: .5rem;
    background: linear-gradient(90deg, #d59786, #3a8a8f);
}

.landing-operation {
    padding-top: 4.25rem;
}

.landing-operation__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-operation__steps div {
    min-width: 0;
    padding-top: 1rem;
    border-top: 2px solid var(--landing-line);
}

.landing-operation__steps span {
    display: block;
    color: var(--landing-rose);
    font-size: .95rem;
    font-weight: 900;
}

.landing-operation__steps strong {
    display: block;
    margin-top: .55rem;
    color: var(--landing-ink);
    font-size: 1.2rem;
}

.landing-operation__steps p {
    margin-top: .45rem;
}

.landing-cta {
    width: 100%;
    margin: 0;
    padding: 4rem max(1rem, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #171412;
}

.landing-cta h2 {
    max-width: 42rem;
    color: #fff7f1;
}

.landing-cta .landing-eyebrow {
    color: #8dc4c7;
}

.landing-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .85rem;
}

@media (max-width: 991.98px) {
    .landing-nav__links {
        display: none;
    }

    .landing-hero {
        min-height: 78svh;
        background-position: 60% center;
    }

    .landing-hero::before {
        background: rgba(255, 253, 250, .78);
    }

    .landing-proof,
    .landing-feature-grid,
    .landing-system,
    .landing-operation__steps {
        grid-template-columns: 1fr;
    }

    .landing-system {
        gap: 2rem;
    }

    .landing-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .landing-site .btn,
    .landing-link-button {
        width: 100%;
    }

    .landing-nav {
        width: 100vw;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        min-height: 128px;
        gap: .7rem;
        padding: .75rem 1rem;
        box-sizing: border-box;
    }

    .landing-nav__login {
        display: inline-flex;
        position: static;
        transform: none;
        width: 100%;
        min-height: 2.5rem;
        padding: .45rem .85rem;
    }

    .landing-brand__logo-frame {
        width: 58px;
        height: 58px;
    }

    .landing-brand {
        min-width: 0;
        font-size: 1.65rem;
    }

    .landing-hero {
        min-height: 76svh;
    }

    .landing-hero__content {
        padding: 1.75rem 0 2.75rem;
    }

    .landing-hero h1 {
        max-width: 100%;
        font-size: clamp(2.75rem, 14vw, 3.55rem);
    }

    .landing-hero__actions,
    .landing-cta__actions {
        width: 100%;
    }

    .landing-hero__metrics {
        display: none;
    }

    .landing-proof,
    .landing-section,
    .landing-system,
    .landing-operation {
        width: min(calc(100% - 1.5rem), 1180px);
    }

    .landing-section,
    .landing-system,
    .landing-operation {
        padding: 3.25rem 0;
    }

    .landing-feature-card {
        min-height: 0;
    }

    .landing-dashboard-preview__grid {
        grid-template-columns: 1fr;
    }

    .landing-dashboard-preview__grid div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 247, 241, .12);
    }
}

/* Conversion landing refresh */
.landing-site {
    --landing-ink: #101820;
    --landing-muted: #56616d;
    --landing-line: #dbe3ea;
    --landing-panel: #ffffff;
    --landing-accent: #0f766e;
    --landing-action: #cf4f28;
    --landing-blue: #2556a3;
    background: #f7fafc;
}

.landing-hero {
    min-height: 86svh;
}

.landing-hero::before {
    background:
        linear-gradient(90deg, rgba(247, 250, 252, .96) 0%, rgba(247, 250, 252, .9) 36%, rgba(247, 250, 252, .48) 72%, rgba(247, 250, 252, .18) 100%);
}

.landing-nav {
    background: rgba(16, 24, 32, .96);
    border-bottom-color: rgba(255, 255, 255, .1);
    box-shadow: 0 16px 38px rgba(16, 24, 32, .18);
}

.landing-brand,
.landing-brand:hover,
.landing-nav__links a:hover {
    color: #ffffff;
}

.landing-brand__logo-frame {
    background: rgba(255, 255, 255, .1);
}

.landing-nav__links a {
    color: rgba(255, 255, 255, .8);
}

.landing-link-button {
    color: #23313f;
}

.landing-link-button:hover {
    color: var(--landing-action);
}

.landing-nav__actions {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.landing-nav__login {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}

.landing-nav__login:hover {
    color: #101820;
    background: #ffffff;
}

.landing-nav__trial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem 1.05rem;
    border-radius: .5rem;
    color: #ffffff;
    background: var(--landing-action);
    text-decoration: none;
    font-weight: 900;
}

.landing-nav__trial:hover {
    color: #ffffff;
    background: #b94322;
}

.landing-eyebrow,
.landing-checklist li::before,
.landing-feature-card span {
    color: #ffffff;
    background: var(--landing-accent);
}

.landing-eyebrow {
    color: var(--landing-accent);
    background: transparent;
}

.landing-hero p {
    color: #25313c;
}

.landing-hero__metrics {
    border-top-color: rgba(16, 24, 32, .18);
    border-bottom-color: rgba(16, 24, 32, .18);
}

.landing-hero__metrics div + div {
    border-left-color: rgba(16, 24, 32, .14);
}

.landing-feature-card,
.landing-price-card {
    background: var(--landing-panel);
    box-shadow: 0 14px 34px rgba(16, 24, 32, .07);
}

.landing-feature-card:nth-child(2n) span {
    background: var(--landing-action);
}

.landing-feature-card:nth-child(3n) span {
    background: var(--landing-blue);
}

.landing-dashboard-preview {
    border-color: #c8d4df;
    background: #101820;
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(16, 24, 32, .18);
}

.landing-dashboard-preview__top,
.landing-dashboard-preview__grid {
    border-bottom-color: rgba(255, 255, 255, .12);
}

.landing-dashboard-preview__top span {
    color: rgba(255, 255, 255, .68);
}

.landing-dashboard-preview__grid div + div {
    border-left-color: rgba(255, 255, 255, .12);
}

.landing-dashboard-preview__grid span {
    color: rgba(255, 255, 255, .62);
}

.landing-dashboard-preview__timeline span {
    background: linear-gradient(90deg, var(--landing-action), var(--landing-accent));
}

.landing-pricing,
.landing-faq {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto;
    padding: 4.75rem 0;
}

.landing-pricing {
    border-bottom: 1px solid var(--landing-line);
}

.landing-pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-price-card {
    min-width: 0;
    min-height: 15rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--landing-line);
    border-radius: .5rem;
}

.landing-price-card--featured {
    border-color: rgba(15, 118, 110, .5);
    box-shadow: 0 20px 44px rgba(15, 118, 110, .14);
}

.landing-price-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: .25rem .65rem;
    border-radius: .35rem;
    color: #ffffff;
    background: var(--landing-accent);
    font-size: .82rem;
    font-weight: 900;
}

.landing-price-card h3 {
    margin: 1rem 0 .35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.landing-price-card p {
    margin: 0;
    color: var(--landing-muted);
}

.landing-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-faq__grid article {
    min-width: 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--landing-line);
}

.landing-faq__grid h3 {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
}

.landing-faq__grid p {
    margin: 0;
    color: var(--landing-muted);
}

.landing-cta {
    background: #101820;
}

.landing-cta h2 {
    color: #ffffff;
}

.landing-cta .landing-eyebrow {
    color: #8ed7d0;
}

@media (max-width: 991.98px) {
    .landing-hero::before {
        background: rgba(247, 250, 252, .84);
    }

    .landing-pricing__grid,
    .landing-faq__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .landing-nav__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .landing-nav__trial,
    .landing-pricing,
    .landing-faq {
        width: min(calc(100% - 1.5rem), 1180px);
    }

    .landing-nav__trial {
        width: 100%;
    }

    .landing-pricing,
    .landing-faq {
        padding: 3.25rem 0;
    }

    .landing-dashboard-preview__grid div + div {
        border-left: 0;
        border-top-color: rgba(255, 255, 255, .12);
    }
}

.landing-legal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem max(1rem, calc((100vw - 1180px) / 2));
    color: #56616d;
    background: #ffffff;
    border-top: 1px solid var(--landing-line);
}

.landing-legal-footer span {
    color: var(--landing-ink);
    font-weight: 900;
}

.landing-legal-footer a {
    color: #23313f;
    font-weight: 800;
    text-decoration: none;
}

.landing-legal-footer a:hover,
.landing-legal-footer a:focus {
    color: var(--landing-action);
    text-decoration: underline;
}

.legal-page {
    min-height: 100vh;
    color: #1f2933;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

.legal-page__nav {
    position: sticky;
    top: 0;
}

.legal-document {
    width: min(calc(100% - 2rem), 920px);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.legal-document__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d5dee7;
}

.legal-document__header span {
    display: inline-block;
    margin-bottom: .75rem;
    color: #0f766e;
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-document h1 {
    margin: 0;
    color: #101820;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: .95;
    letter-spacing: 0;
}

.legal-document__header p {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #4a5663;
    font-size: 1.12rem;
}

.legal-document section {
    padding: 1.35rem 0;
    border-bottom: 1px solid #dbe3ea;
}

.legal-document h2 {
    margin: 0 0 .75rem;
    color: #101820;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.legal-document p {
    margin: 0;
    color: #344452;
}

.legal-document p + p {
    margin-top: .75rem;
}

.legal-document ul {
    display: grid;
    gap: .55rem;
    margin: .85rem 0 0;
    padding-left: 1.25rem;
    color: #344452;
}

.legal-document a {
    color: #0f766e;
    font-weight: 800;
}

.legal-document__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
}

.legal-document__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 1px solid #c8d4df;
    border-radius: .5rem;
    color: #101820;
    background: #ffffff;
    text-decoration: none;
}

.legal-document__footer a:hover,
.legal-document__footer a:focus {
    border-color: #0f766e;
    color: #0f766e;
}

@media (max-width: 767.98px) {
    .landing-legal-footer,
    .legal-document__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-legal-footer {
        text-align: center;
    }

    .legal-document__footer a {
        width: 100%;
    }
}

/* Public online booking */
.online-booking {
    --booking-bg: #f6efe6;
    --booking-ink: #211817;
    --booking-muted: #6f5f59;
    --booking-card: rgba(255, 252, 247, .92);
    --booking-line: rgba(87, 58, 48, .16);
    --booking-accent: #ba7d6f;
    --booking-accent-dark: #7d493d;
    min-height: 100vh;
    color: var(--booking-ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(186, 125, 111, .2), transparent 32rem),
        radial-gradient(circle at 86% 22%, rgba(78, 133, 119, .16), transparent 28rem),
        linear-gradient(135deg, #fff9f1 0%, var(--booking-bg) 46%, #efe0d0 100%);
}

.online-booking__shell {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.online-booking--index .online-booking__shell {
    width: min(calc(100% - 2rem), 1080px);
    padding-top: clamp(1.4rem, 4vh, 2.75rem);
}

.online-booking--company .online-booking__shell {
    padding-top: clamp(1.2rem, 3vh, 2rem);
}

.online-booking--confirmed .online-booking__shell {
    padding-top: clamp(1.4rem, 4vh, 2.75rem);
}

.online-booking__nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
}

.online-booking__shell--narrow {
    width: min(calc(100% - 2rem), 760px);
}

.online-booking__brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--booking-ink);
    font-weight: 800;
    text-decoration: none;
}

.online-booking__brand img {
    width: 34px;
    height: 34px;
}

.online-booking__hero {
    padding: 5rem 0 3rem;
    max-width: 760px;
}

.online-booking--index .online-booking__hero {
    margin-inline: auto;
    padding: 0 0 2rem;
    text-align: center;
}

.online-booking--index .online-booking__hero p {
    margin-inline: auto;
}

.online-booking__eyebrow,
.online-booking-chip {
    margin: 0 0 .75rem;
    color: var(--booking-accent-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.online-booking__hero h1,
.online-booking-business h1,
.online-booking-confirmation-card h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: .94;
}

.online-booking__hero p,
.online-booking-business p,
.online-booking-empty p,
.online-booking-confirmation-card p {
    color: var(--booking-muted);
    font-size: 1.08rem;
}

.online-booking-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
    margin-top: 2rem;
    padding: .55rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--booking-line);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(69, 45, 35, .12);
}

.online-booking-autocomplete {
    position: relative;
}

.online-booking-autocomplete__field {
    position: relative;
    min-width: 0;
}

.online-booking-search input,
.online-booking-fields input,
.online-booking-fields textarea,
.online-booking-date-row input {
    width: 100%;
    border: 1px solid var(--booking-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .82);
    color: var(--booking-ink);
    outline: none;
}

.online-booking-search input {
    min-width: 0;
    padding: .8rem 1rem;
    border: 0;
    background: transparent;
}

.online-booking-autocomplete [data-company-search-input] {
    padding-right: 3rem;
}

.online-booking-autocomplete__spinner {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: -.575rem;
    border: 2px solid rgba(186, 125, 111, .22);
    border-top-color: var(--booking-accent-dark);
    border-radius: 999px;
    animation: online-booking-spin .7s linear infinite;
}

@keyframes online-booking-spin {
    to {
        transform: rotate(360deg);
    }
}

.online-booking-autocomplete__results {
    position: absolute;
    z-index: 20;
    top: calc(100% + .75rem);
    right: 0;
    left: 0;
    display: grid;
    gap: .45rem;
    max-height: min(420px, 60vh);
    overflow: auto;
    padding: .6rem;
    border: 1px solid rgba(69, 45, 35, .18);
    border-radius: 1.25rem;
    background: #fffaf5;
    box-shadow: 0 24px 70px rgba(69, 45, 35, .2);
    text-align: left;
}

.online-booking-autocomplete__option {
    display: grid;
    gap: .45rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid rgba(69, 45, 35, .1);
    border-radius: .95rem;
    color: var(--booking-ink);
    background: #ffffff;
    text-align: left;
    box-shadow: 0 8px 24px rgba(69, 45, 35, .06);
}

.online-booking-autocomplete__option:hover,
.online-booking-autocomplete__option:focus {
    border-color: rgba(128, 76, 61, .42);
    background: #f7eadf;
    outline: 2px solid rgba(128, 76, 61, .2);
    outline-offset: 1px;
}

.online-booking-autocomplete__option-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.online-booking-autocomplete__option-main strong {
    font-size: 1rem;
    line-height: 1.15;
}

.online-booking-autocomplete__option-main em {
    flex: 0 0 auto;
    padding: .22rem .55rem;
    border-radius: 999px;
    color: #6d3b2e;
    background: #f1d7c9;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.online-booking-autocomplete__option-address,
.online-booking-autocomplete__empty {
    color: #5f524c;
    font-size: .92rem;
    line-height: 1.3;
}

.online-booking-autocomplete__empty {
    padding: .85rem .95rem;
}

.online-booking-search > button,
.online-booking-summary button,
.online-booking-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--booking-ink);
    font-weight: 800;
    text-decoration: none;
}

.online-booking-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.online-booking--index .online-booking-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
    margin-inline: auto;
}

.online-booking-company-grid--selected {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.online-booking--index .online-booking-company-grid--selected {
    grid-template-columns: minmax(0, 520px);
}

.online-booking--index .online-booking-empty {
    max-width: 760px;
    margin-inline: auto;
}

.online-booking-company-card,
.online-booking-step,
.online-booking-summary,
.online-booking-empty,
.online-booking-confirmation-card,
.online-booking-business {
    background: var(--booking-card);
    border: 1px solid var(--booking-line);
    border-radius: 1.5rem;
    box-shadow: 0 24px 70px rgba(69, 45, 35, .12);
}

.online-booking-company-card {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
    padding: 1.35rem;
}

.online-booking-company-card h2,
.online-booking-step h2,
.online-booking-confirmation-card h2 {
    margin: 0;
}

.online-booking-company-card p {
    min-height: 3rem;
    color: var(--booking-muted);
}

.online-booking-company-card dl,
.online-booking-confirmation-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.online-booking-company-card dl div,
.online-booking-confirmation-card dl div {
    padding: .8rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .58);
}

.online-booking-company-card dt,
.online-booking-confirmation-card dt {
    color: var(--booking-muted);
    font-size: .78rem;
}

.online-booking-company-card dd,
.online-booking-confirmation-card dd {
    margin: 0;
    font-weight: 800;
}

.online-booking-business {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
}

.online-booking-business h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.online-booking-business__change {
    color: var(--booking-accent-dark);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.online-booking-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.online-booking-flow__main {
    display: grid;
    gap: 1.25rem;
}

.online-booking-mobile-steps,
.online-booking-mobile-actions {
    display: none;
}

.online-booking-step {
    padding: 1.35rem;
}

.online-booking-step__header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.online-booking-step__header > span {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--booking-accent);
    font-weight: 900;
}

.online-booking-step__header p {
    margin: .25rem 0 0;
    color: var(--booking-muted);
}

.online-booking-service-tools {
    display: grid;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--booking-line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .52);
}

.online-booking-service-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr);
    gap: .85rem;
    align-items: end;
}

.online-booking-service-search,
.online-booking-service-category-select {
    display: grid;
    gap: .45rem;
    color: var(--booking-muted);
    font-weight: 800;
}

.online-booking-service-search input,
.online-booking-service-category-select select {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--booking-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .86);
    color: var(--booking-ink);
    outline: none;
}

.online-booking-service-category-select select {
    cursor: pointer;
    font-weight: 800;
}

.online-booking-service-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    flex-wrap: wrap;
}

.online-booking-service-filter-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .55rem .9rem;
    border: 1px solid var(--booking-line);
    border-radius: 999px;
    color: var(--booking-accent-dark);
    background: rgba(255, 255, 255, .72);
    font-weight: 900;
}

.online-booking-service-filter-footer button:hover {
    border-color: rgba(186, 125, 111, .48);
    background: rgba(186, 125, 111, .1);
}

.online-booking-service-results {
    margin: 0;
    color: var(--booking-muted);
    font-size: .92rem;
    font-weight: 800;
}

.online-booking-service-groups {
    display: grid;
    gap: .85rem;
}

.online-booking-service-group {
    overflow: hidden;
    border: 1px solid var(--booking-line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .44);
}

.online-booking-service-group[hidden],
.online-booking-service-card[hidden] {
    display: none !important;
}

.online-booking-service-group summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1rem;
    cursor: pointer;
    list-style: none;
}

.online-booking-service-group summary::-webkit-details-marker {
    display: none;
}

.online-booking-service-group summary::after {
    content: "+";
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: var(--booking-accent-dark);
    background: rgba(186, 125, 111, .14);
    font-weight: 900;
    transition: transform .18s ease;
}

.online-booking-service-group[open] summary::after {
    content: "-";
}

.online-booking-service-group summary > span {
    width: .75rem;
    height: .75rem;
    border-radius: 999px;
    background: var(--service-color);
}

.online-booking-service-group summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-booking-service-group summary small {
    color: var(--booking-muted);
    font-weight: 800;
    white-space: nowrap;
}

.online-booking-service-empty {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(186, 125, 111, .42);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .46);
    color: var(--booking-muted);
}

.online-booking-service-empty strong {
    display: block;
    color: var(--booking-ink);
}

.online-booking-service-empty p {
    margin: .25rem 0 0;
}

.online-booking-service-list,
.online-booking-slot-grid,
.online-booking-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.online-booking-service-list {
    padding: 0 1rem 1rem;
}

.online-booking-service-card,
.online-booking-slot {
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--booking-line);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .62);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.online-booking-service-card:has(input:checked),
.online-booking-slot:has(input:checked) {
    border-color: var(--booking-accent);
    box-shadow: 0 12px 32px rgba(186, 125, 111, .18);
    transform: translateY(-1px);
}

.online-booking-service-card input,
.online-booking-slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.online-booking-service-card strong,
.online-booking-slot span {
    display: block;
    font-weight: 900;
}

.online-booking-service-card small,
.online-booking-slot small,
.online-booking-summary small,
.online-booking-fields small {
    color: var(--booking-muted);
}

.online-booking-service-card em {
    color: var(--booking-accent-dark);
    font-style: normal;
    font-weight: 800;
}

.online-booking-date-row,
.online-booking-fields label {
    display: grid;
    gap: .45rem;
    color: var(--booking-muted);
    font-weight: 800;
}

.online-booking-date-row input,
.online-booking-fields input,
.online-booking-fields textarea {
    padding: .85rem 1rem;
}

.online-booking-slots {
    margin-top: 1rem;
}

.online-booking-fields__wide {
    grid-column: 1 / -1;
}

.online-booking-verification {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: end;
    padding: 1rem;
    border: 1px dashed rgba(186, 125, 111, .42);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .46);
}

.online-booking-verification__actions {
    display: grid;
    gap: .55rem;
    min-width: 210px;
}

.online-booking-verification__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--booking-accent-dark);
    font-weight: 800;
}

.online-booking-verification__actions button:disabled {
    cursor: wait;
    opacity: .72;
}

.online-booking-verification__actions p {
    margin: 0;
    color: var(--booking-muted);
    font-size: .88rem;
    font-weight: 700;
}

.online-booking-verification__actions p.is-error {
    color: #a53f35;
}

.online-booking-verification__actions p.is-success {
    color: #2e7b68;
}

.online-booking-summary {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
}

.online-booking-summary > span {
    color: var(--booking-accent-dark);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.online-booking-summary h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.online-booking-summary p {
    margin: 0;
    color: var(--booking-muted);
}

.online-booking-empty,
.online-booking-confirmation-card {
    padding: 2rem;
    text-align: center;
}

.online-booking-confirmation-card__icon {
    display: inline-grid;
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #3f8f68;
    font-size: 2rem;
    font-weight: 900;
}

.online-booking-confirmation-card dl {
    margin: 2rem 0;
    text-align: left;
}

.online-booking-confirmation-card dl div:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .online-booking-company-grid,
    .online-booking-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .online-booking--index .online-booking-company-grid,
    .online-booking--index .online-booking-company-grid--selected {
        grid-template-columns: minmax(0, 1fr);
    }

    .online-booking-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .online-booking--company .online-booking__shell {
        width: min(calc(100% - 1rem), 1180px);
        padding-top: .75rem;
        padding-bottom: 1.25rem;
    }

    .online-booking-business {
        flex-direction: column;
        margin: .75rem 0;
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .online-booking-business h1 {
        font-size: clamp(2rem, 12vw, 3.4rem);
    }

    .online-booking-business p {
        margin-bottom: 0;
        font-size: .95rem;
    }

    .online-booking-business__change {
        display: inline-flex;
        width: fit-content;
        min-height: 38px;
        align-items: center;
        padding: .45rem .75rem;
        border: 1px solid rgba(186, 125, 111, .28);
        border-radius: 999px;
        background: rgba(255, 255, 255, .58);
    }

    .online-booking-search,
    .online-booking-service-list,
    .online-booking-fields,
    .online-booking-confirmation-card dl {
        grid-template-columns: 1fr;
    }

    .online-booking-card-action {
        width: 100%;
    }

    .online-booking-autocomplete__option-main {
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
    }

    .online-booking-flow {
        gap: .85rem;
    }

    .online-booking-flow__main {
        gap: .85rem;
    }

    .online-booking-mobile-steps {
        position: sticky;
        top: .5rem;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .4rem;
        padding: .4rem;
        border: 1px solid var(--booking-line);
        border-radius: 1rem;
        background: rgba(255, 252, 247, .94);
        box-shadow: 0 12px 34px rgba(69, 45, 35, .12);
        backdrop-filter: blur(12px);
    }

    .online-booking-mobile-steps button {
        display: grid;
        gap: .25rem;
        justify-items: center;
        min-width: 0;
        min-height: 54px;
        padding: .45rem .25rem;
        border: 0;
        border-radius: .8rem;
        color: var(--booking-muted);
        background: transparent;
        font-size: .78rem;
        font-weight: 900;
    }

    .online-booking-mobile-steps button span {
        display: inline-grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border-radius: 999px;
        color: var(--booking-muted);
        background: rgba(33, 24, 23, .08);
        font-size: .8rem;
    }

    .online-booking-mobile-steps button.is-active {
        color: #fff;
        background: var(--booking-ink);
    }

    .online-booking-mobile-steps button.is-active span {
        color: var(--booking-ink);
        background: #fff;
    }

    .online-booking-flow.is-mobile-wizard .online-booking-step {
        display: none;
    }

    .online-booking-flow.is-mobile-wizard .online-booking-step.is-mobile-active {
        display: block;
    }

    .online-booking-step {
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .online-booking-step__header {
        gap: .75rem;
        margin-bottom: .95rem;
    }

    .online-booking-step__header > span {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .online-booking-step__header h2 {
        font-size: 1.35rem;
    }

    .online-booking-step__header p {
        font-size: .92rem;
    }

    .online-booking-service-tools {
        gap: .7rem;
        padding: .8rem;
        border-radius: 1rem;
    }

    .online-booking-service-tool-grid {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .online-booking-service-filter-footer {
        display: grid;
        gap: .6rem;
    }

    .online-booking-service-filter-footer button {
        width: 100%;
    }

    .online-booking-service-group summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .5rem;
        padding: .78rem .8rem;
    }

    .online-booking-service-group summary::after {
        display: none;
    }

    .online-booking-service-group summary small {
        font-size: .78rem;
    }

    .online-booking-service-list {
        padding: 0 .75rem .75rem;
    }

    .online-booking-service-card,
    .online-booking-slot {
        gap: .35rem;
        padding: .85rem;
        border-radius: .95rem;
    }

    .online-booking-service-card small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .online-booking-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }

    .online-booking-slot span {
        font-size: 1.05rem;
    }

    .online-booking-date-row input,
    .online-booking-fields input,
    .online-booking-fields textarea,
    .online-booking-service-search input,
    .online-booking-service-category-select select {
        min-height: 48px;
        font-size: 16px;
    }

    .online-booking-verification {
        grid-template-columns: 1fr;
        padding: .85rem;
    }

    .online-booking-verification__actions {
        min-width: 0;
    }

    .online-booking-mobile-actions {
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: .65rem;
        margin-top: 1rem;
    }

    .online-booking-mobile-actions--end {
        grid-template-columns: 1fr;
    }

    .online-booking-mobile-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: .75rem 1rem;
        border-radius: 999px;
        font-weight: 900;
    }

    .online-booking-mobile-back {
        border: 1px solid var(--booking-line);
        color: var(--booking-accent-dark);
        background: rgba(255, 255, 255, .76);
    }

    .online-booking-mobile-next {
        border: 0;
        color: #fff;
        background: var(--booking-ink);
    }

    .online-booking-summary {
        display: none;
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .online-booking-flow.is-step-details .online-booking-summary {
        display: grid;
    }

    .online-booking-summary h2 {
        font-size: 1.55rem;
    }
}

@media (max-width: 390px) {
    .online-booking-slot-grid {
        grid-template-columns: 1fr;
    }
}

/* Public entry gateway */
.public-main:has(.entry-gateway) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body:has(.entry-gateway) {
    overflow: hidden;
}

.entry-gateway {
    --entry-bg: #f8efe5;
    --entry-ink: #211817;
    --entry-muted: #73625b;
    --entry-line: rgba(76, 49, 40, .16);
    --entry-card: rgba(255, 252, 247, .88);
    --entry-booking: #2e7b68;
    --entry-business: #ba7d6f;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    color: var(--entry-ink);
    background:
        radial-gradient(circle at 14% 18%, rgba(46, 123, 104, .18), transparent 27rem),
        radial-gradient(circle at 86% 10%, rgba(186, 125, 111, .24), transparent 30rem),
        linear-gradient(135deg, #fffaf4 0%, var(--entry-bg) 48%, #ead9c7 100%);
}

.entry-gateway__shell {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: clamp(.65rem, 1.8vh, 1rem);
    width: min(calc(100% - 2rem), 1080px);
    height: calc(100% - 86px);
    min-height: 0;
    margin: 0 auto;
    padding: clamp(.65rem, 1.8vh, 1rem) 0;
}

.entry-gateway__nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
}

.entry-gateway__hero {
    align-self: start;
    max-width: 820px;
    padding: 0;
}

.entry-gateway__eyebrow {
    margin: 0 0 .45rem;
    color: #7d493d;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.entry-gateway__hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.85rem, 4.8vw, 3.7rem);
    line-height: .94;
}

.entry-gateway__hero p {
    max-width: 650px;
    margin: .55rem 0 0;
    color: var(--entry-muted);
    font-size: .98rem;
}

.entry-gateway__grid {
    align-self: start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.entry-gateway-card {
    position: relative;
    display: grid;
    min-height: 205px;
    gap: .55rem;
    align-content: start;
    padding: .95rem;
    overflow: hidden;
    color: var(--entry-ink);
    background: var(--entry-card);
    border: 1px solid var(--entry-line);
    border-radius: 1.75rem;
    box-shadow: 0 28px 78px rgba(69, 45, 35, .13);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.entry-gateway-card::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 15rem;
    height: 15rem;
    border-radius: 999px;
    opacity: .16;
    background: var(--entry-business);
}

.entry-gateway-card--booking::after {
    background: var(--entry-booking);
}

.entry-gateway-card:hover {
    color: var(--entry-ink);
    border-color: rgba(33, 24, 23, .28);
    box-shadow: 0 34px 90px rgba(69, 45, 35, .18);
    transform: translateY(-4px);
}

.entry-gateway-card__icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 1rem;
    color: #fff;
    background: var(--entry-business);
}

.entry-gateway-card--booking .entry-gateway-card__icon {
    background: var(--entry-booking);
}

.entry-gateway-card__icon svg {
    width: 21px;
    height: 21px;
}

.entry-gateway-card__kicker {
    color: #7d493d;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.entry-gateway-card strong {
    max-width: 460px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.4rem, 2.55vw, 2.1rem);
    line-height: .98;
}

.entry-gateway-card small {
    max-width: 430px;
    color: var(--entry-muted);
    font-size: .84rem;
}

.entry-gateway-card em {
    align-self: end;
    display: inline-flex;
    width: fit-content;
    margin-top: .15rem;
    padding: .52rem .78rem;
    border-radius: 999px;
    color: #fff;
    background: var(--entry-ink);
    font-style: normal;
    font-weight: 900;
}

.entry-gateway__login {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 0;
    color: var(--entry-muted);
}

.entry-gateway__login a {
    color: var(--entry-ink);
    font-weight: 900;
}

.entry-gateway__legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: var(--entry-muted);
    font-size: .88rem;
}

.entry-gateway__legal a {
    color: var(--entry-ink);
    font-weight: 800;
    text-decoration: none;
}

.entry-gateway__legal a:hover,
.entry-gateway__legal a:focus {
    text-decoration: underline;
}

.password-toggle-field {
    position: relative;
}

.password-toggle-field > .form-control {
    padding-right: 3rem;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: #6b5e58;
    transform: translateY(-50%);
}

.password-toggle-button:hover,
.password-toggle-button:focus-visible {
    background: #f2e5dd;
    color: #241d1a;
    outline: none;
}

@media (max-width: 767.98px) {
    .entry-gateway {
        min-height: 100vh;
        height: auto;
        overflow: auto;
    }

    .public-main:has(.entry-gateway),
    body:has(.entry-gateway) {
        height: auto;
        overflow: auto;
    }

    .entry-gateway__shell {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto auto auto;
    }

    .entry-gateway__hero {
        padding: 1rem 0 0;
    }

    .entry-gateway__grid {
        grid-template-columns: 1fr;
    }

    .entry-gateway-card {
        min-height: 0;
    }

    .entry-gateway__login {
        display: grid;
        text-align: center;
    }

    .entry-gateway__legal {
        flex-wrap: wrap;
        padding-bottom: 1rem;
        text-align: center;
    }
}
