:root {
    --navy: #172033;
    --navy-2: #222d43;
    --ink: #202733;
    --muted: #77808f;
    --line: #e8e8e4;
    --surface: #ffffff;
    --surface-soft: #f7f7f4;
    --warm: #ece9e2;
    --background: #f3f4f2;
    --accent: #b69a6d;
    --danger: #ff3651;
    --success: #84f000;
    --shadow: 0 18px 55px rgba(23, 32, 51, .08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--background);
}

body {
    min-height: 100vh;
}

button, input {
    font: inherit;
}

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

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, .78fr);
    background: var(--surface);
}

.login-brand {
    position: relative;
    overflow: hidden;
    padding: 56px;
    background:
        radial-gradient(circle at 18% 18%, rgba(182,154,109,.20), transparent 26%),
        radial-gradient(circle at 85% 78%, rgba(255,255,255,.08), transparent 30%),
        linear-gradient(145deg, #111827 0%, #182237 56%, #202b41 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    right: -260px;
    bottom: -210px;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(255,255,255,.018);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 700;
    letter-spacing: -.04em;
}

.brand-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .01em;
}

.brand-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.58);
    margin-top: 3px;
}

.login-copy {
    max-width: 610px;
    position: relative;
    z-index: 2;
}

.login-copy span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    margin-bottom: 22px;
    background: rgba(255,255,255,.04);
}

.login-copy h1 {
    max-width: 580px;
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 600;
}

.login-copy p {
    max-width: 510px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,.64);
}

.login-brand-footer {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.43);
    font-size: 12px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 52px;
    background: #fbfbf9;
}

.login-card {
    width: min(420px, 100%);
}

.login-card .eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.login-card h2 {
    margin: 12px 0 8px;
    font-size: 34px;
    letter-spacing: -.04em;
    font-weight: 650;
}

.login-card > p {
    margin: 0 0 34px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    height: 52px;
    border: 1px solid #dedfdc;
    border-radius: 14px;
    padding: 0 16px;
    background: white;
    outline: none;
    transition: .2s ease;
}

.field input:focus {
    border-color: #aeb5c0;
    box-shadow: 0 0 0 4px rgba(23,32,51,.05);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 24px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.login-btn {
    border: 0;
    width: 100%;
    height: 54px;
    border-radius: 15px;
    background: var(--navy);
    color: white;
    cursor: pointer;
    font-weight: 650;
    box-shadow: 0 12px 28px rgba(23,32,51,.18);
    transition: .2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    background: #202c44;
}

.form-error {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    background: #fff1f3;
    color: #a82036;
    border: 1px solid #ffdce3;
}

/* APP */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    background: var(--navy);
    padding: 26px 18px;
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 4px 8px 30px;
}

.sidebar-logo {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.10);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-brand strong {
    font-size: 14px;
    font-weight: 650;
}

.sidebar-brand small {
    display: block;
    color: rgba(255,255,255,.48);
    margin-top: 2px;
    font-size: 10px;
}

.nav-label {
    padding: 0 11px;
    margin: 12px 0 8px;
    color: rgba(255,255,255,.34);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 9px;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 45px;
    border-radius: 12px;
    padding: 0 12px;
    color: rgba(255,255,255,.67);
    font-size: 13px;
    margin: 2px 0;
    transition: .18s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,.06);
    color: white;
}

.nav-item.active {
    background: white;
    color: var(--navy);
    font-weight: 650;
}

.nav-icon {
    width: 18px;
    text-align: center;
    opacity: .8;
}

.sidebar-bottom {
    margin-top: auto;
}

.profile-chip {
    margin-top: 16px;
    padding: 13px;
    border-radius: 15px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.06);
}

.profile-chip strong {
    display: block;
    font-size: 12px;
}

.profile-chip span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
}

.main {
    grid-column: 2;
    padding: 28px 34px 48px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.035em;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    height: 41px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

.action-btn.primary {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.metric-card,
.panel {
    background: white;
    border: 1px solid rgba(24,32,48,.055);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 20px;
}

.metric-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 11px;
}

.metric-value {
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -.04em;
}

.metric-note {
    margin-top: 9px;
    font-size: 10px;
    color: #9a9fa7;
}

.metric-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    background: var(--success);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .85fr);
    gap: 18px;
}

.panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
}

.panel-subtitle {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--muted);
}

.empty-chart {
    height: 245px;
    border-radius: 16px;
    background:
        linear-gradient(to right, transparent 49.7%, #f0f0ed 50%, transparent 50.3%),
        linear-gradient(to bottom, transparent 49.7%, #f0f0ed 50%, transparent 50.3%),
        #fafaf8;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 45%;
    height: 2px;
    background: linear-gradient(90deg, #9da6b5, #172033 70%);
    transform: rotate(-6deg);
    border-radius: 99px;
}

.chart-line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(132,240,0,.13);
}

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

.schedule-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #efefec;
}

.schedule-item:last-child {
    border-bottom: 0;
}

.schedule-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.schedule-main strong {
    font-size: 12px;
    display: block;
}

.schedule-main span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.status {
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 700;
    background: #f0f2ee;
    color: #59606b;
}

.status.online {
    background: #ecfbd9;
    color: #3c6815;
}

.mobile-menu {
    display: none;
}

@media (max-width: 1050px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .login-page {
        display: block;
    }

    .login-brand {
        min-height: 240px;
        padding: 28px 24px;
    }

    .login-copy {
        margin-top: 56px;
    }

    .login-copy h1 {
        font-size: 38px;
    }

    .login-copy p,
    .login-brand-footer {
        display: none;
    }

    .login-panel {
        padding: 34px 22px;
    }

    .sidebar {
        display: none;
    }

    .app-shell {
        display: block;
    }

    .main {
        padding: 20px 16px 38px;
    }

    .mobile-menu {
        display: inline-flex;
    }

    .topbar {
        align-items: flex-start;
    }

    .top-actions .action-btn:not(.primary) {
        display: none;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        padding: 16px;
    }

    .metric-value {
        font-size: 23px;
    }
}

@media (max-width: 440px) {
    .metrics {
        grid-template-columns: 1fr;
    }
}

/* CLIENTES */

.sidebar-logout {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
    background: transparent;
}

.client-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    background: white;
    border: 1px solid rgba(24,32,48,.055);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 18px 20px;
}

.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 7px;
}

.summary-card strong {
    display: block;
    font-size: 25px;
    letter-spacing: -.04em;
}

.flash-success {
    padding: 13px 16px;
    background: #effbe7;
    color: #416829;
    border: 1px solid #ddf0d0;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.clients-panel {
    padding: 0;
    overflow: hidden;
}

.client-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.search-field {
    flex: 1;
}

.search-field input,
.client-toolbar select,
.client-form input,
.client-form select,
.client-form textarea {
    width: 100%;
    border: 1px solid #dedfdc;
    background: white;
    color: var(--ink);
    outline: none;
    border-radius: 12px;
    transition: .18s ease;
}

.search-field input,
.client-toolbar select {
    height: 44px;
    padding: 0 13px;
}

.client-toolbar select {
    width: 190px;
}

.search-field input:focus,
.client-toolbar select:focus,
.client-form input:focus,
.client-form select:focus,
.client-form textarea:focus {
    border-color: #aeb5c0;
    box-shadow: 0 0 0 4px rgba(23,32,51,.045);
}

.filter-btn,
.clear-filter {
    height: 44px;
    border-radius: 12px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 650;
}

.filter-btn {
    border: 0;
    background: var(--navy);
    color: white;
    cursor: pointer;
}

.clear-filter {
    color: var(--muted);
}

.clients-table-wrap {
    overflow-x: auto;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.clients-table th {
    padding: 13px 20px;
    text-align: left;
    color: #969ca5;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    background: #fafaf8;
}

.clients-table td {
    padding: 15px 20px;
    border-top: 1px solid #efefec;
    font-size: 12px;
}

.client-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.client-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f0f1ee;
    color: var(--navy);
    font-size: 12px;
    font-weight: 750;
}

.client-person strong,
.client-contact strong {
    display: block;
    font-size: 12px;
}

.client-person span,
.client-contact span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.client-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 700;
}

.client-status-active {
    background: #edf9df;
    color: #4a6b25;
}

.client-status-paused {
    background: #f4f0e7;
    color: #786a4d;
}

.client-status-waitlist {
    background: #edf2fa;
    color: #4a5d79;
}

.client-status-discharged {
    background: #eaf6f2;
    color: #407063;
}

.client-status-dropout {
    background: #fff0ed;
    color: #975647;
}

.client-status-deceased {
    background: #eeeeee;
    color: #666;
}

.client-empty {
    padding: 80px 24px;
    text-align: center;
}

.client-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #f0f1ee;
    color: var(--navy);
    font-size: 22px;
}

.client-empty h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.client-empty p {
    max-width: 430px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.simple-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 16px;
    font-size: 11px;
    color: var(--muted);
}

.simple-pagination a {
    color: var(--navy);
    font-weight: 650;
}

.pagination-disabled {
    opacity: .4;
}

/* FORMULÁRIO DE CLIENTE */

.client-form {
    display: grid;
    gap: 17px;
}

.form-card {
    background: white;
    border: 1px solid rgba(24,32,48,.055);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 24px;
}

.form-section-header {
    margin-bottom: 22px;
}

.form-section-header h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.02em;
}

.form-section-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.client-form .field {
    margin: 0;
}

.client-form .field label {
    color: #454c58;
    font-size: 11px;
}

.client-form input,
.client-form select {
    height: 47px;
    padding: 0 13px;
}

.client-form textarea {
    resize: vertical;
    padding: 13px;
    min-height: 105px;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 4px 0 20px;
}

.form-error-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-empty {
    min-height: 245px;
    border-radius: 16px;
    background: #fafaf8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.dashboard-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eef0ec;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.dashboard-empty strong {
    font-size: 13px;
}

.dashboard-empty span {
    max-width: 390px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

@media (max-width: 1050px) {
    .client-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .client-toolbar {
        flex-wrap: wrap;
    }

    .search-field {
        flex: 1 0 100%;
    }

    .client-toolbar select {
        flex: 1;
        width: auto;
    }

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

    .field-wide,
    .field-full {
        grid-column: auto;
    }
}

@media (max-width: 440px) {
    .client-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* PERFIL DO CLIENTE */

.client-profile-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.client-back {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 17px;
}

.client-profile-name {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    font-size: 18px;
    font-weight: 750;
}

.client-profile-name h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.04em;
}

.client-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

.client-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    width: fit-content;
    background: #e9ebe7;
    border-radius: 13px;
}

.client-tabs a,
.client-tabs span {
    padding: 9px 14px;
    border-radius: 9px;
    color: #727a86;
    font-size: 11px;
    font-weight: 600;
}

.client-tabs .active {
    background: white;
    color: var(--navy);
    box-shadow: 0 3px 12px rgba(23,32,51,.06);
}

.client-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .55fr);
    gap: 17px;
}

.client-profile-main {
    display: grid;
    gap: 17px;
}

.client-profile-side {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.profile-card {
    background: white;
    border: 1px solid rgba(24,32,48,.055);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.profile-card-header {
    margin-bottom: 20px;
}

.profile-card-header h2 {
    margin: 0;
    font-size: 15px;
}

.profile-card-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-info span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.profile-info strong {
    display: block;
    font-size: 12px;
    font-weight: 650;
}

.profile-notes {
    color: #525966;
    white-space: pre-line;
    font-size: 12px;
    line-height: 1.7;
}

.profile-side-card .side-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 8px;
}

.profile-side-card > strong {
    display: block;
    font-size: 15px;
}

.profile-side-card > p {
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.profile-full-button {
    width: 100%;
}

.side-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #efefec;
}

.side-stat:last-child {
    border-bottom: 0;
}

.side-stat span {
    color: var(--muted);
    font-size: 10px;
}

.side-stat strong {
    font-size: 13px;
}

.client-name-link:hover {
    text-decoration: underline;
}

@media (max-width: 920px) {
    .client-profile-grid {
        grid-template-columns: 1fr;
    }

    .client-profile-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .client-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .client-tabs a,
    .client-tabs span {
        white-space: nowrap;
    }

    .profile-info-grid,
    .client-profile-side {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1051px) {
    .client-summary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.profile-exit-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #efefec;
}

.danger-zone {
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid #f0d8d8;
    border-radius: 18px;
    background: #fffafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.danger-zone strong {
    display: block;
    font-size: 12px;
}

.danger-zone span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.danger-btn {
    border: 1px solid #e3baba;
    background: white;
    color: #9b3c3c;
    height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .danger-btn {
        width: 100%;
    }
}

/* AGENDA */

.agenda-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.agenda-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.agenda-nav-btn,
.agenda-today-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 650;
}

.agenda-nav-btn {
    width: 38px;
}

.agenda-today-btn {
    padding: 0 15px;
}

.agenda-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    font-size: 9px;
}

.agenda-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}

.legend-dot.scheduled {
    background: #73819a;
}

.legend-dot.completed {
    background: #81d53e;
}

.legend-dot.canceled {
    background: #dd776d;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.agenda-day {
    min-height: 530px;
    background: white;
    border: 1px solid rgba(24,32,48,.06);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(23,32,51,.045);
    overflow: hidden;
}

.agenda-day.today {
    border-color: rgba(23,32,51,.22);
    box-shadow: 0 16px 40px rgba(23,32,51,.09);
}

.agenda-day-header {
    min-height: 84px;
    padding: 14px 15px;
    border-bottom: 1px solid #efefec;
    position: relative;
}

.agenda-weekday {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .09em;
    font-weight: 700;
}

.agenda-day-number {
    display: block;
    margin-top: 4px;
    font-size: 25px;
    letter-spacing: -.04em;
}

.today-label {
    position: absolute;
    right: 12px;
    top: 15px;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 8px;
    font-weight: 700;
}

.agenda-day-body {
    padding: 9px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.agenda-empty-slot {
    min-height: 46px;
    border: 1px dashed #dfe1dd;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a6ad;
    font-size: 9px;
    transition: .16s ease;
}

.agenda-empty-slot:hover {
    border-color: #bfc4cc;
    background: #fafaf8;
    color: var(--navy);
}

.appointment-card {
    display: block;
    padding: 11px;
    border-radius: 12px;
    background: #f4f5f3;
    border-left: 3px solid #73819a;
}

.appointment-card:hover {
    background: #eff0ee;
}

.appointment-completed {
    border-left-color: #81d53e;
}

.appointment-canceled,
.appointment-client_canceled,
.appointment-professional_canceled {
    border-left-color: #dd776d;
    opacity: .72;
}

.appointment-time {
    font-size: 10px;
    font-weight: 750;
    color: var(--navy);
    margin-bottom: 8px;
}

.appointment-time span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    margin-top: 2px;
    font-weight: 500;
}

.appointment-card > strong {
    display: block;
    font-size: 10px;
    line-height: 1.35;
}

.appointment-meta {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
}

@media (max-width: 1050px) {
    .week-grid {
        grid-template-columns: repeat(7, minmax(170px, 1fr));
    }
}

@media (max-width: 760px) {
    .agenda-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-legend {
        flex-wrap: wrap;
    }

    .agenda-day {
        min-height: 430px;
    }
}

/* AGENDA COM HORÁRIOS */

.calendar-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
}

.calendar-week {
    display: grid;
    grid-template-columns: 64px repeat(7, minmax(150px, 1fr));
    grid-template-rows: 78px auto;
    min-width: 1160px;
    background: white;
    border: 1px solid rgba(24,32,48,.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-corner {
    grid-column: 1;
    grid-row: 1;
    background: #fafaf8;
    border-right: 1px solid #eceeeb;
    border-bottom: 1px solid #eceeeb;
}

.calendar-day-header {
    position: relative;
    padding: 12px 14px;
    background: #fafaf8;
    border-right: 1px solid #eceeeb;
    border-bottom: 1px solid #eceeeb;
}

.calendar-day-header.today {
    background: #f2f4f0;
}

.calendar-day-header span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--muted);
}

.calendar-day-header strong {
    display: block;
    margin-top: 3px;
    font-size: 24px;
    letter-spacing: -.04em;
}

.calendar-day-header small {
    position: absolute;
    right: 10px;
    top: 12px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: 7px;
    font-weight: 700;
}

.calendar-time-column {
    grid-column: 1;
    grid-row: 2;
    background: #fafaf8;
    border-right: 1px solid #eceeeb;
}

.calendar-hour-label {
    height: 64px;
    padding: 8px 8px 0 0;
    text-align: right;
    color: #8d949e;
    font-size: 9px;
    border-bottom: 1px solid #eef0ed;
}

.calendar-day-column {
    position: relative;
    min-height: calc(64px * 16);
    border-right: 1px solid #eceeeb;
    background: white;
}

.calendar-day-column.today {
    background: #fcfdfb;
}

.calendar-hour-slot {
    display: block;
    height: 64px;
    border-bottom: 1px solid #eef0ed;
    transition: .15s ease;
}

.calendar-hour-slot:hover {
    background: rgba(23,32,51,.035);
}

.calendar-hour-slot:hover::after {
    content: "+";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #9ca3ad;
    font-size: 14px;
}

.calendar-appointment {
    position: absolute;
    left: 5px;
    right: 5px;
    z-index: 3;
    overflow: hidden;
    padding: 7px 8px;
    border-radius: 9px;
    background: #eef1f5;
    border-left: 3px solid #73819a;
    box-shadow: 0 3px 10px rgba(23,32,51,.08);
}

.calendar-appointment.appointment-completed {
    background: #eff8e7;
    border-left-color: #81d53e;
}

.calendar-appointment.appointment-canceled,
.calendar-appointment.appointment-client_canceled,
.calendar-appointment.appointment-professional_canceled {
    background: #fff0ed;
    border-left-color: #dd776d;
}

.calendar-appointment-time {
    font-size: 8px;
    font-weight: 750;
    color: var(--navy);
}

.calendar-appointment strong {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.25;
}

.calendar-appointment span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

@media (max-width: 760px) {
    .calendar-week {
        grid-template-columns: 54px repeat(7, 150px);
    }

    .calendar-hour-label {
        font-size: 8px;
    }
}

/* SUBDIVISÃO DA AGENDA EM 30 MINUTOS */

.calendar-half-slot {
    display: block;
    height: 32px;
    transition: background .12s ease;
    position: relative;
}

.calendar-half-slot.hour-start {
    border-top: 1px solid #eef0ed;
}

.calendar-half-slot.half-hour {
    border-top: 1px dashed #dfe3e5;
}

.calendar-half-slot:hover {
    background: rgba(23,32,51,.035);
}

.calendar-half-slot:hover::after {
    content: "+";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #969da7;
    font-size: 13px;
}

/* HORÁRIO ATUAL */

.calendar-now-line {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 8;
    height: 2px;
    background: #df4d4d;
    pointer-events: none;
}

.calendar-now-line::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #df4d4d;
}

.calendar-now-line span {
    position: absolute;
    left: 5px;
    top: -17px;
    padding: 2px 5px;
    border-radius: 5px;
    background: #df4d4d;
    color: white;
    font-size: 7px;
    font-weight: 700;
}

/* DETALHE DA SESSÃO */

.appointment-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, .55fr);
    gap: 17px;
}

.appointment-detail-main,
.appointment-detail-side {
    display: grid;
    align-content: start;
    gap: 17px;
}

.appointment-client-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.appointment-detail-label {
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.appointment-client-header h2 {
    margin: 3px 0 7px;
    font-size: 20px;
    letter-spacing: -.03em;
}

.appointment-side-value {
    display: block;
    margin-top: 7px;
    font-size: 16px;
}

.appointment-actions-placeholder {
    margin-top: 9px;
    padding: 13px;
    border-radius: 11px;
    background: #f7f8f5;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.calendar-appointment {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 900px) {
    .appointment-detail-grid {
        grid-template-columns: 1fr;
    }
}

.appointment-action-form,
.appointment-payment-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.appointment-action-form .field,
.appointment-payment-form .field {
    margin: 0;
}

.appointment-action-form label,
.appointment-payment-form label {
    display: block;
    margin-bottom: 6px;
    color: #555d68;
    font-size: 9px;
}

.appointment-action-form select,
.appointment-action-form textarea,
.appointment-payment-form input,
.appointment-payment-form select {
    width: 100%;
    border: 1px solid #dedfdc;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    outline: none;
    font-size: 11px;
}

.appointment-action-form select,
.appointment-payment-form input,
.appointment-payment-form select {
    height: 40px;
    padding: 0 10px;
}

.appointment-action-form textarea {
    padding: 10px;
    resize: vertical;
}

.appointment-action-button {
    width: 100%;
    margin-top: 2px;
}

.appointment-exempt-note {
    margin-top: 14px;
    padding: 11px;
    border-radius: 10px;
    background: #f6f7f4;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

/* JANELA RÁPIDA DA AGENDA */

.calendar-appointment {
    cursor: pointer;
    text-align: left;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    font-family: inherit;
}

.calendar-appointment-signals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
    color: #66717f;
    font-size: 7px;
    font-weight: 700;
}

.calendar-appointment-signals .signal-paid {
    color: #268d50;
}


.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.appointment-modal.open {
    display: block;
}

.appointment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 27, 40, .22);
    backdrop-filter: blur(2px);
}

.appointment-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(440px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    padding: 24px;
    border: 1px solid rgba(24,32,48,.08);
    border-radius: 20px;
    background: white;
    box-shadow:
        0 28px 80px rgba(20, 28, 43, .22);
}

.appointment-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: #f3f4f1;
    color: #6c7480;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.appointment-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 34px;
}

.appointment-modal-status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 4px;
    background: #75849a;
}

.appointment-modal-eyebrow {
    display: block;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.appointment-modal-heading h2 {
    margin: 3px 0 0;
    font-size: 19px;
    letter-spacing: -.03em;
}

.appointment-modal-badges {
    display: flex;
    gap: 7px;
    margin-top: 16px;
}

.appointment-modal-badges span {
    padding: 6px 9px;
    border-radius: 8px;
    background: #eef1f5;
    color: #475365;
    font-size: 9px;
    font-weight: 650;
}

.appointment-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid #eeefec;
    border-bottom: 1px solid #eeefec;
}

.appointment-modal-info span,
.appointment-modal-payment span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.appointment-modal-info strong,
.appointment-modal-payment strong {
    display: block;
    font-size: 11px;
    line-height: 1.4;
}

.appointment-modal-payment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.appointment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.appointment-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .appointment-modal-card {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 22px 22px 0 0;
        padding: 22px;
    }

    .appointment-modal-info {
        grid-template-columns: 1fr;
    }

    .appointment-modal-payment {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .appointment-modal-actions .action-btn {
        width: 100%;
    }
}

.appointment-quick-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eeefec;
}

.appointment-modal-section-title {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.quick-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.quick-status-btn {
    min-height: 37px;
    padding: 7px 10px;
    border: 1px solid #dedfdc;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
}

.quick-status-btn:hover {
    background: #f5f6f3;
}

.quick-status-btn.quick-completed {
    border-color: #bbdca6;
    background: #f4faef;
    color: #387524;
}

/* INDICADORES RÁPIDOS DA SESSÃO */

.signal-presence {
    color: #269447;
    font-weight: 800;
}

.signal-absence,
.signal-canceled {
    color: #c74c44;
    font-weight: 800;
}

.signal-paid {
    color: #269447 !important;
    font-weight: 800;
}

.signal-unpaid {
    color: #9ba2aa;
    font-weight: 700;
}

.signal-online {
    color: #64748b;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: .03em;
}

.appointment-quick-select {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #dedfdc;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
}

.signal-confirmed {
    color: #3486d3;
    font-weight: 800;
}

.presence-thumb-icon {
    width: 11px;
    height: 11px;
    display: inline-block;
    vertical-align: -2px;
    color: #269447;
}

/* PAGAMENTO RÁPIDO DA AGENDA */

.appointment-quick-payment {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eeefec;
}

.quick-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 8px;
}

.quick-payment-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
}

.quick-payment-field input,
.quick-payment-field select {
    width: 100%;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #dedfdc;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 9px;
    outline: none;
}

.quick-payment-button {
    width: 100%;
    height: 38px;
    margin-top: 9px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: white;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.quick-payment-button:hover {
    opacity: .92;
}

@media (max-width: 600px) {
    .quick-payment-grid {
        grid-template-columns: 1fr;
    }
}

.package-calculated-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #e1e2df;
    border-radius: 11px;
    background: #f7f8f5;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

/* NOVO PAGAMENTO DA AGENDA */

.quick-payment-launch-button {
    width: 100%;
    height: 40px;
    margin-top: 8px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.appointment-quick-payment-launch {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eeefec;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.payment-modal.open {
    display: block;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,27,40,.34);
    backdrop-filter: blur(3px);
}

.payment-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(20,28,43,.28);
}

.payment-modal-header {
    position: relative;
    padding-right: 42px;
}

.payment-modal-header h2 {
    margin: 4px 0 0;
    font-size: 20px;
}

.payment-package-section {
    margin-top: 20px;
}

.payment-package-section > label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 9px;
}

.payment-package-section select {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #dedfdc;
    border-radius: 10px;
    background: #fff;
}

.payment-package-summary {
    display: grid;
    gap: 3px;
    margin-top: 9px;
    padding: 12px;
    border-radius: 10px;
    background: #f5f7f3;
}

.payment-package-summary strong {
    font-size: 11px;
}

.payment-package-summary span {
    color: var(--muted);
    font-size: 9px;
}

.payment-sessions-section {
    margin-top: 20px;
}

.payment-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 9px;
}

.payment-section-heading strong {
    display: block;
    font-size: 12px;
}

.payment-section-heading span {
    color: var(--muted);
    font-size: 9px;
}

.payment-selection-counter {
    white-space: nowrap;
    font-weight: 700;
}

.payment-session-list {
    border: 1px solid #e5e6e3;
    border-radius: 11px;
    overflow: hidden;
}

.payment-session-row {
    display: grid;
    grid-template-columns: 22px 1fr 100px 75px;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 12px;
    border-bottom: 1px solid #ededeb;
    cursor: pointer;
}

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

.payment-session-row:hover {
    background: #fafbf8;
}

.payment-session-row.already-paid {
    opacity: .5;
    cursor: default;
}

.payment-session-main strong {
    display: block;
    font-size: 10px;
}

.payment-session-main span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.payment-session-value {
    text-align: right;
    font-size: 10px;
}

.payment-session-status {
    text-align: right;
    color: var(--muted);
    font-size: 8px;
}

.payment-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: 11px;
    background: #f5f7f3;
}

.payment-total-box span {
    color: var(--muted);
    font-size: 9px;
}

.payment-total-box strong {
    font-size: 19px;
}

.payment-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.payment-notes-field {
    margin-top: 10px;
}

.payment-notes-field input {
    width: 100%;
}

.payment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.payment-modal-footer button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 650px) {

    .payment-modal-card {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 88vh;
        transform: none;
        border-radius: 22px 22px 0 0;
    }

    .payment-session-row {
        grid-template-columns: 22px 1fr 80px;
    }

    .payment-session-status {
        display: none;
    }

    .payment-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* PACOTE ATIVO NA FICHA DO CLIENTE */

.client-active-package-card {
    position: relative;
}

.package-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.package-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff8e7;
    color: #4f7d2b;
    font-size: 9px;
    font-weight: 700;
}

.package-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}

.package-title-row > div {
    display: grid;
    gap: 4px;
}

.package-name {
    color: var(--ink);
    font-size: 14px;
}

.package-title-row span {
    color: var(--muted);
    font-size: 9px;
}

.package-progress-number {
    color: var(--navy);
    font-size: 14px;
}

.package-progress {
    width: 100%;
    height: 7px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0ec;
}

.package-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #76bb39;
    transition: width .25s ease;
}

.package-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.package-summary-item {
    padding: 13px 14px;
    border: 1px solid #eceeeb;
    border-radius: 11px;
    background: #fafbf9;
}

.package-summary-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.package-summary-item strong {
    color: var(--ink);
    font-size: 11px;
}

@media (max-width: 750px) {
    .package-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* CANCELAMENTO DE SESSÃO */

.client-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
}

.client-cancel-modal.open {
    display: block;
}

.client-cancel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,27,40,.38);
    backdrop-filter: blur(3px);
}

.client-cancel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(20,28,43,.28);
}

.client-cancel-header {
    position: relative;
    padding-right: 44px;
}

.client-cancel-header h2 {
    margin: 4px 0 2px;
    font-size: 20px;
}

.client-cancel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.client-cancel-message {
    margin: 20px 0 12px;
    color: var(--ink);
    font-size: 11px;
}

.client-cancel-options {
    display: grid;
    gap: 8px;
}

.client-cancel-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e6e7e4;
    border-radius: 11px;
    cursor: pointer;
}

.client-cancel-option:hover {
    background: #fafbf8;
}

.client-cancel-option input {
    margin-top: 3px;
}

.client-cancel-option span {
    display: grid;
    gap: 3px;
}

.client-cancel-option strong {
    font-size: 10px;
}

.client-cancel-option small {
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4;
}

.client-cancel-reason {
    margin-top: 18px;
}

.client-cancel-reason label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 650;
}

.client-cancel-reason label span {
    color: var(--muted);
    font-weight: 400;
}

.client-cancel-reason textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    padding: 10px;
    border: 1px solid #dedfdc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 10px;
}

.client-cancel-counter {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
}

.client-cancel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.client-cancel-footer button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .client-cancel-card {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 88vh;
        transform: none;
        border-radius: 22px 22px 0 0;
    }
}

/* EXCLUSÃO RÁPIDA DE SESSÃO */

.appointment-modal-delete {
    position: absolute;
    top: 16px;
    right: 58px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f5f5f2;
    cursor: pointer;
    font-size: 14px;
}

.appointment-modal-delete:hover {
    background: #fff0ee;
}

.appointment-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
}

.appointment-delete-modal.open {
    display: block;
}

.appointment-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,27,40,.42);
    backdrop-filter: blur(3px);
}

.appointment-delete-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(430px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(20,28,43,.30);
}

.appointment-delete-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 11px;
    background: #fff0ee;
    color: #b8463e;
    font-size: 17px;
    font-weight: 800;
}

.appointment-delete-card h2 {
    margin: 0;
    font-size: 20px;
}

.appointment-delete-card > p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.appointment-delete-warning {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f7f4;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.appointment-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.appointment-delete-confirm {
    background: #b8463e !important;
    color: #fff !important;
}

/* CANCELAMENTO PELO PROFISSIONAL */

.professional-reschedule-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 15px 0;
    border-top: 1px solid #ededeb;
    border-bottom: 1px solid #ededeb;
}

.professional-reschedule-option > span:first-child {
    display: grid;
    gap: 3px;
}

.professional-reschedule-option strong {
    font-size: 10px;
}

.professional-reschedule-option small {
    color: var(--muted);
    font-size: 8px;
}

.professional-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
}

.professional-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.professional-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d7dad6;
    cursor: pointer;
    transition: .2s;
}

.professional-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.16);
    transition: .2s;
}

.professional-switch input:checked + .professional-switch-track {
    background: var(--navy);
}

.professional-switch input:checked + .professional-switch-track::after {
    transform: translateX(18px);
}

/* CAMPOS DE REAGENDAMENTO NO CANCELAMENTO */

.professional-reschedule-fields {
    padding: 18px 0 4px;
}

.professional-reschedule-fields[hidden] {
    display: none !important;
}

.professional-reschedule-grid {
    display: grid;
    grid-template-columns: 1.5fr .75fr .75fr;
    gap: 12px;
}

.professional-field {
    display: grid;
    gap: 6px;
}

.professional-field label {
    color: var(--ink);
    font-size: 9px;
    font-weight: 650;
}

.professional-field input,
.professional-field select {
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    border: 1px solid #dedfdc;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
}

.professional-reschedule-grid
.professional-field:nth-child(4),
.professional-reschedule-grid
.professional-field:nth-child(5) {
    margin-top: 3px;
}

.professional-reschedule-hint {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 8px;
}

@media (min-width: 701px) {
    .professional-reschedule-grid
    .professional-field:nth-child(4) {
        grid-column: 1 / 2;
    }

    .professional-reschedule-grid
    .professional-field:nth-child(5) {
        grid-column: 2 / 4;
    }
}

@media (max-width: 700px) {
    .professional-reschedule-grid {
        grid-template-columns: 1fr 1fr;
    }

    .professional-field-date {
        grid-column: 1 / -1;
    }
}

/* AUSÊNCIA: esconder corretamente grupos incompatíveis */

#absence-unpaid-options[hidden],
#absence-paid-options[hidden] {
    display: none !important;
}
