:root {
    --bg: #070b10;
    --panel: #0e151e;
    --panel2: #121b26;
    --gold: #e8ad2f;
    --text: #f9faf7;
    --muted: #8f9aaa;
    --line: #23303d;
    --green: #56c271;
    --red: #f05b5b;
    --blue: #5b8def
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text)
}

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

button,
input,
select,
textarea {
    font: inherit
}

.app-body {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 240px;
    background: #070b10;
    border-right: 1px solid var(--line);
    padding: 22px 14px;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 20
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 3px
}

.brand span {
    font-size: 30px;
    color: var(--gold)
}

.brand small {
    color: var(--gold);
    font-size: 9px
}

.sidebar nav {
    margin-top: 30px;
    display: grid;
    gap: 8px
}

.sidebar nav a {
    padding: 13px 14px;
    border-radius: 10px;
    color: #c7ced8
}

.sidebar nav a:hover {
    background: linear-gradient(90deg, #2a2215, #161a1f);
    color: #fff
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 5px
}

.sidebar-footer small {
    color: var(--gold)
}

.main {
    margin-left: 240px;
    width: calc(100% - 240px)
}

.topbar {
    height: 72px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    background: rgba(7, 11, 16, .92);
    backdrop-filter: blur(12px);
    z-index: 10
}

.topbar h2 {
    margin: 0;
    font-size: 21px
}

.topbar small {
    color: var(--muted)
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 22px
}

.top-actions {
    display: flex;
    gap: 16px;
    align-items: center
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), #6e4a00);
    font-weight: 800
}

.content {
    padding: 24px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.cards.three {
    grid-template-columns: repeat(3, 1fr)
}

.stat,
.panel,
.profile-card,
.service-card {
    background: linear-gradient(145deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .2)
}

.stat {
    padding: 20px;
    display: grid;
    gap: 8px
}

.stat i {
    color: var(--gold);
    font-style: normal
}

.stat span,
.stat small {
    color: var(--muted)
}

.stat strong {
    font-size: 28px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-top: 16px
}

.panel {
    padding: 20px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.panel-head a {
    color: var(--gold)
}

.appointment {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.appointment small {
    display: block;
    color: var(--muted);
    margin-top: 4px
}

.badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: #28313c
}

.badge.confirmado,
.badge.finalizado {
    background: #173a25;
    color: #8aeba4
}

.badge.pendente,
.badge.atrasado {
    background: #44330d;
    color: #ffd878
}

.badge.cancelado,
.badge.nao_compareceu {
    background: #451d22;
    color: #ff9da5
}

.glow {
    border-color: #5a4614;
    background: radial-gradient(circle at top left, #2a210c, var(--panel) 50%)
}

.btn {
    border: 1px solid var(--line);
    background: #151d27;
    color: white;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(135deg, #e6a922, #9e6810);
    border-color: #e2a51f;
    color: #090a0c;
    font-weight: 800
}

.btn.full {
    width: 100%
}

.btn.large {
    padding: 14px 20px
}

.btn.small {
    padding: 7px 10px
}

.filters,
.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.timeline {
    margin-top: 16px
}

.timeline-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 15px;
    padding: 10px 0
}

.timeline-card {
    padding: 16px;
    border-left: 3px solid var(--gold);
    background: #111923;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.timeline-card p,
.timeline-card small {
    color: var(--muted)
}

input,
select,
textarea {
    background: #0b121a;
    color: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px;
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold)
}

.form-grid {
    display: grid;
    gap: 12px
}

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

.form-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted)
}

.wide {
    grid-column: 1/-1
}

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

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid var(--line)
}

th {
    color: var(--muted);
    font-size: 12px
}

.profile-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px
}

.profile-card,
.service-card {
    padding: 22px;
    text-align: center
}

.profile-card p,
.service-card p {
    color: var(--muted)
}

.avatar.big {
    width: 64px;
    height: 64px;
    margin: auto;
    font-size: 24px
}

.service-card>span {
    font-size: 28px;
    color: var(--gold)
}

.service-card>div {
    display: flex;
    justify-content: space-between
}

.automation {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.automation p {
    color: var(--muted)
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px
}

.alert.success {
    background: #153722
}

.alert.danger {
    background: #431c22
}

.empty {
    text-align: center;
    padding: 30px;
    color: var(--muted)
}

.login-page,
.booking-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 10%, #1d1608, var(--bg) 35%)
}

.login-card {
    width: min(420px, 92vw);
    padding: 35px;
    background: rgba(14, 21, 30, .95);
    border: 1px solid #5e4814;
    border-radius: 20px;
    box-shadow: 0 25px 80px #000
}

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

.login-card label {
    display: grid;
    gap: 7px
}

.login-brand {
    margin-bottom: 25px
}

.public {
    background: #05080c
}

.public-nav {
    padding: 20px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.public-nav .brand {
    align-items: flex-start
}

.hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 5vw 8vw;
    gap: 50px
}

.hero h1 {
    font-size: clamp(48px, 7vw, 92px);
    line-height: .95;
    margin: 16px 0
}

.hero em {
    color: var(--gold);
    font-style: normal
}

.hero p {
    color: var(--muted);
    max-width: 560px;
    font-size: 18px
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 12px
}

.hero-card {
    display: grid;
    place-items: center
}

.mock-phone {
    width: 300px;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(160deg, #17212d, #080b10);
    border: 2px solid #8a6518;
    box-shadow: 0 30px 100px rgba(232, 173, 47, .2)
}

.mock-phone strong {
    display: block;
    font-size: 28px;
    margin: 18px 0
}

.mock-phone p {
    font-size: 14px
}

.mock-phone button {
    width: 100%;
    padding: 13px;
    background: var(--gold);
    border: 0;
    border-radius: 10px;
    font-weight: 800
}

.public-section {
    padding: 70px 8vw
}

.public-section h2 {
    font-size: 38px
}

.booking-shell {
    width: min(980px, 94vw);
    padding: 40px 0
}

.booking-head {
    text-align: center;
    margin-bottom: 30px
}

.booking-form section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 15px
}

.step {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    font-weight: 800
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.choice input {
    display: none
}

.choice span {
    display: grid;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer
}

.choice input:checked+span {
    border-color: var(--gold);
    background: #241d0d
}

.choice small {
    color: var(--muted);
    margin-top: 5px
}

.slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.slot {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer
}

.slot.active {
    background: var(--gold);
    color: #111
}

.confirmation {
    width: min(650px, 94vw);
    text-align: center;
    padding: 35px;
    background: var(--panel);
    border: 1px solid #5f4916;
    border-radius: 20px
}

.check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #184427;
    color: #8ff0a8;
    font-size: 36px;
    margin: auto
}

.summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0
}

.summary div {
    padding: 15px;
    background: #0a1017;
    border-radius: 12px
}

.summary small,
.summary b {
    display: block
}

.summary small {
    color: var(--muted);
    margin-bottom: 5px
}

@media(max-width:900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s
    }

    .sidebar.open {
        transform: none
    }

    .main {
        margin: 0;
        width: 100%
    }

    .menu-btn {
        display: block
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid-2,
    .grid-form,
    .hero {
        grid-template-columns: 1fr
    }

    .profile-grid,
    .service-grid,
    .choice-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero {
        text-align: center
    }

    .public-nav .brand {
        align-items: flex-start
    }
}

@media(max-width:600px) {
    .content {
        padding: 14px
    }

    .cards,
    .cards.three,
    .profile-grid,
    .service-grid,
    .choice-grid,
    .form-grid.two {
        grid-template-columns: 1fr
    }

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

    .topbar {
        padding: 0 14px
    }

    .timeline-item {
        grid-template-columns: 50px 1fr
    }

    .timeline-card {
        flex-direction: column
    }

    .hero {
        padding: 50px 20px
    }

    .public-section {
        padding: 50px 20px
    }

    .public-nav {
        padding: 16px
    }

    .public-nav .brand strong {
        font-size: 12px
    }

    .summary {
        grid-template-columns: 1fr
    }
}



/* ==========================================================
   DASHBOARD PREMIUM — CARDS OPERACIONAIS
   ========================================================== */

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}


/* CARD BASE */

.dashboard-summary .stat {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 19px;
    align-content: start;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.dashboard-summary .stat:hover {
    transform: translateY(-3px);
    border-color: #3a4857;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.dashboard-summary .stat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at 90% 0,
            rgba(255, 255, 255, 0.055),
            transparent 38%);
}


/* CABEÇALHO DO CARD */

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 35px;
}


/* ÍCONE */

.stat-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 1px solid #2c3947;
    border-radius: 11px;

    background: #19232e;
    color: var(--gold);

    font-size: 14px;
    font-weight: 800;
}


/* ETIQUETA SUPERIOR */

.stat-trend {
    padding: 5px 8px;

    border-radius: 999px;

    background: #202a35;
    color: #aeb8c5;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* INDICADOR COLORIDO */

.stat-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}


/* TEXTOS */

.stat-label {
    margin-top: 5px;

    font-size: 13px !important;
}

.dashboard-summary .stat strong {
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.dashboard-summary .stat small {
    min-height: 31px;

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


/* CARD PRINCIPAL */

.stat-featured {
    grid-column: span 2;

    border-color: #5d4817 !important;

    background:
        radial-gradient(circle at 85% 0,
            rgba(232, 173, 47, 0.18),
            transparent 42%),
        linear-gradient(145deg,
            #171a1e,
            #0e151e) !important;
}

.stat-featured .stat-icon,
.stat-money .stat-icon {
    background: #2d230d;
    border-color: #6f5317;
}


/* BARRA DO CARD PRINCIPAL */

.stat-progress {
    height: 3px;
    margin-top: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #28313a;
}

.stat-progress span {
    display: block;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(90deg,
            #a66b0d,
            var(--gold));
}


/* CORES DOS CARDS */

.stat-warning {
    color: #f1bb42;
}

.stat-info {
    color: #72a4ff;
}

.stat-success {
    color: #69d686;
}

.stat-danger {
    color: #ff727c;
}

.stat-money {
    color: var(--gold);
    border-color: #493a18 !important;
}


/* ÍCONE PENDENTE */

.stat-warning .stat-icon {
    color: #f1bb42;
    background: #2d240f;
    border-color: #554318;
}


/* ÍCONE EM ATENDIMENTO */

.stat-info .stat-icon {
    color: #72a4ff;
    background: #14233b;
    border-color: #25416a;
}


/* ÍCONE FINALIZADO */

.stat-success .stat-icon {
    color: #69d686;
    background: #132c1c;
    border-color: #245236;
}


/* ÍCONE CANCELADO */

.stat-danger .stat-icon {
    color: #ff727c;
    background: #32171b;
    border-color: #61252d;
}


/* TÍTULOS INTERNOS */

.section-kicker {
    display: block;
    margin-bottom: 5px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.panel-head h3 {
    margin: 0;
}

.panel-value {
    color: var(--gold);
    font-size: 18px;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 1250px) {

    .dashboard-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-featured {
        grid-column: span 1;
    }

}


@media (max-width: 760px) {

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

    .dashboard-summary .stat {
        min-height: 165px;
    }

    .dashboard-summary .stat strong {
        font-size: 27px;
    }

}


@media (max-width: 480px) {

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

    .dashboard-summary .stat {
        min-height: auto;
    }

    .stat-featured {
        grid-column: span 1;
    }

}

.chart-container {
    position: relative;
    width: 100%;
    height: 260px;
    margin-top: 20px;
}

@media (max-width: 760px) {
    .chart-container {
        height: 230px;
    }
}

/* ==========================================================
   CORREÇÃO DO GRÁFICO DE FATURAMENTO
   ========================================================== */

.revenue-panel {
    min-width: 0;
    overflow: hidden;
}

.chart-container {
    position: relative;

    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 260px;

    margin-top: 20px;
    overflow: hidden;
}

.chart-container canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 260px !important;
}

@media (max-width: 760px) {
    .chart-container {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .chart-container canvas {
        max-height: 220px !important;
    }
}

/* ==========================================================
   CORREÇÃO DO GRÁFICO DE STATUS
   ========================================================== */

.status-panel,
.automation-panel {
    min-width: 0;
    min-height: 340px;
    overflow: hidden;
}

.status-chart-container {
    position: relative;

    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;

    margin-top: 18px;
    overflow: hidden;
}

.status-chart-container canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 240px !important;
}

.automation-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.automation-panel p {
    max-width: 520px;
    line-height: 1.7;
}

.automation-panel .btn {
    margin-top: auto;
}

@media (max-width: 760px) {

    .status-panel,
    .automation-panel {
        min-height: auto;
    }

    .status-chart-container {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .status-chart-container canvas {
        max-height: 220px !important;
    }
}

/* ==========================================================
   FILTRO PREMIUM DO DASHBOARD
   ========================================================== */

.dashboard-filter-panel {
    margin-bottom: 18px;
    padding: 18px;

    border: 1px solid #27323e;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.08),
            transparent 35%),
        #111820;
}

.dashboard-filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 16px;
}

.dashboard-filter-heading h3 {
    margin: 0;
}

.filter-date-range {
    padding: 7px 11px;

    border: 1px solid #354250;
    border-radius: 999px;

    background: #18212b;
    color: #aeb8c4;

    font-size: 12px;
}

.dashboard-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-filter {
    min-height: 39px;
    padding: 0 14px;

    border: 1px solid #303d4a;
    border-radius: 11px;

    background: #18212b;
    color: #9da9b7;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.quick-filter:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: #5b4a22;
}

.quick-filter.active {
    border-color: #8a671c;

    background:
        linear-gradient(135deg,
            #34290f,
            #201b10);

    color: var(--gold);
}

.custom-period-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-period-filter label {
    display: grid;
    gap: 6px;
}

.custom-period-filter label span {
    color: #7f8a98;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.custom-period-filter input[type="date"] {
    min-height: 40px;
    padding: 0 11px;

    border: 1px solid #303d4a;
    border-radius: 10px;

    background: #151e27;
    color: #e8edf3;

    font-family: inherit;

    color-scheme: dark;
}

.custom-period-filter input[type="date"]:focus {
    outline: none;
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(232, 173, 47, 0.10);
}

.date-separator {
    padding-bottom: 11px;

    color: #687483;
    font-size: 11px;
}

.filter-submit {
    min-height: 40px;
    white-space: nowrap;
}


/* ==========================================================
   RESPONSIVIDADE DO FILTRO
   ========================================================== */

@media (max-width: 900px) {

    .dashboard-filter-form {
        align-items: stretch;
    }

    .quick-filter-buttons,
    .custom-period-filter {
        width: 100%;
    }

}


@media (max-width: 600px) {

    .dashboard-filter-panel {
        padding: 15px;
    }

    .dashboard-filter-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .quick-filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-filter {
        width: 100%;
    }

    .custom-period-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .date-separator {
        display: none;
    }

    .custom-period-filter input,
    .filter-submit {
        width: 100%;
    }

}

/* ==========================================================
   FILTRO RECOLHÍVEL DO DASHBOARD
   ========================================================== */

.dashboard-filter-panel {
    margin-bottom: 18px;

    overflow: hidden;

    border: 1px solid #27323e;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.08),
            transparent 35%),
        #111820;
}


/* BOTÃO PRINCIPAL */

.dashboard-filter-toggle {
    width: 100%;
    min-height: 74px;
    padding: 15px 18px;

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

    border: 0;

    background: transparent;
    color: #ffffff;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-filter-toggle:hover {
    background: rgba(255, 255, 255, 0.025);
}


/* LADO ESQUERDO */

.filter-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-toggle-info strong {
    display: block;

    color: #f3f6f9;

    font-size: 15px;
}

.filter-toggle-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 1px solid #554318;
    border-radius: 12px;

    background: #2d240f;
    color: var(--gold);

    font-size: 19px;
}


/* LADO DIREITO */

.filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.filter-toggle-arrow {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #19232d;
    color: #aeb8c4;

    font-size: 18px;

    transition:
        transform 0.3s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.dashboard-filter-toggle.open .filter-toggle-arrow {
    transform: rotate(180deg);

    background: #2d240f;
    color: var(--gold);
}


/* CONTEÚDO FECHADO */

.dashboard-filter-content {
    max-height: 0;
    padding: 0 18px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    border-top: 1px solid transparent;

    transition:
        max-height 0.38s ease,
        padding 0.38s ease,
        opacity 0.25s ease,
        visibility 0.25s ease,
        border-color 0.3s ease;
}


/* CONTEÚDO ABERTO */

.dashboard-filter-content.open {
    max-height: 360px;
    padding: 18px;

    opacity: 1;
    visibility: visible;

    border-top-color: #27323e;
}


/* FORMULÁRIO */

.dashboard-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}


/* RESPONSIVIDADE */

@media (max-width: 760px) {

    .dashboard-filter-toggle {
        align-items: flex-start;
    }

    .filter-toggle-right {
        align-items: flex-end;
        flex-direction: column;
        gap: 7px;
    }

    .filter-date-range {
        font-size: 10px;
    }

    .dashboard-filter-content.open {
        max-height: 620px;
    }

}


@media (max-width: 520px) {

    .dashboard-filter-toggle {
        padding: 14px;
    }

    .filter-toggle-icon {
        width: 36px;
        height: 36px;
    }

    .filter-date-range {
        display: none;
    }

    .dashboard-filter-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-filter-content.open {
        padding: 15px 14px;
    }

}


/* ==========================================================
   AGENDA PREMIUM
   ========================================================== */

.agenda-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;

    margin-bottom: 18px;
    padding: 22px;

    border: 1px solid #27323e;
    border-radius: 20px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.10),
            transparent 35%),
        linear-gradient(145deg,
            #121a22,
            #0e151c);
}

.agenda-heading {
    display: flex;
    align-items: center;
    gap: 30px;
}

.agenda-heading h2 {
    margin: 0 0 7px;
    font-size: 24px;
}

.agenda-heading p {
    max-width: 580px;
    margin: 0;

    color: #8793a1;
    font-size: 13px;
    line-height: 1.6;
}

.agenda-selected-date {
    min-width: 145px;
    padding: 12px 15px;

    border: 1px solid #5a4518;
    border-radius: 13px;

    background: rgba(232, 173, 47, 0.08);
}

.agenda-selected-date span {
    display: block;
    margin-bottom: 4px;

    color: #8f99a6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-selected-date strong {
    color: var(--gold);
    font-size: 14px;
}


/* FILTRO DE DATA */

.agenda-date-filter {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.agenda-date-filter label {
    display: grid;
    gap: 6px;
}

.agenda-date-filter label span {
    color: #7e8996;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-date-filter input {
    min-height: 42px;
    padding: 0 12px;

    border: 1px solid #34414e;
    border-radius: 11px;

    background: #141e27;
    color: #edf1f5;

    font-family: inherit;
    color-scheme: dark;
}

.agenda-date-filter input:focus {
    outline: none;
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(232, 173, 47, 0.10);
}

.agenda-filter-button {
    min-height: 42px;
}


/* RESUMO */

.agenda-mini-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    margin-bottom: 18px;
}

.agenda-mini-card {
    position: relative;
    overflow: hidden;

    padding: 15px 17px;

    border: 1px solid #283440;
    border-radius: 15px;

    background: #111922;
}

.agenda-mini-card::after {
    content: "";

    position: absolute;
    top: -20px;
    right: -20px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: currentColor;

    opacity: 0.05;
}

.agenda-mini-card span {
    display: block;
    margin-bottom: 8px;

    color: #8793a0;
    font-size: 11px;
}

.agenda-mini-card strong {
    color: #ffffff;
    font-size: 25px;
}

.agenda-mini-card.pending {
    color: #e5ad3a;
}

.agenda-mini-card.in-service {
    color: #6198ff;
}

.agenda-mini-card.finished {
    color: #59cc7a;
}


/* GRADE DE CARDS */

.agenda-cards-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill,
            minmax(285px, 1fr));
    gap: 15px;
}

.agenda-card {
    position: relative;
    overflow: hidden;

    padding: 18px;

    border: 1px solid #293641;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(255, 255, 255, 0.04),
            transparent 35%),
        #111922;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.agenda-card:hover,
.agenda-card:focus-visible {
    transform: translateY(-4px);

    outline: none;
    border-color: #69501a;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.30);
}

.agenda-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #e5ad3a;
}

.agenda-card-in-service::before {
    background: #6198ff;
}

.agenda-card-finished::before {
    background: #59cc7a;
}

.agenda-card-cancelled::before {
    background: #fa6975;
}


/* TOPO DO CARD */

.agenda-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 18px;
}

.agenda-time-box span,
.agenda-client-info span,
.agenda-card-label,
.agenda-card-details span {
    display: block;
    margin-bottom: 4px;

    color: #778391;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.agenda-time-box strong {
    color: var(--gold);
    font-size: 22px;
}


/* STATUS */

.agenda-status-badge {
    padding: 6px 9px;

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

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.agenda-status-pending {
    border-color: #574318;
    background: #2a220f;
    color: #e5ad3a;
}

.agenda-status-in-service {
    border-color: #294a79;
    background: #152944;
    color: #76a8ff;
}

.agenda-status-finished {
    border-color: #28583a;
    background: #142e1d;
    color: #67d486;
}

.agenda-status-cancelled {
    border-color: #672932;
    background: #34191d;
    color: #ff7680;
}


/* INFORMAÇÕES DO CARD */

.agenda-client-info {
    margin-bottom: 17px;
}

.agenda-client-info h3 {
    margin: 0;

    color: #ffffff;
    font-size: 18px;
}

.agenda-card-service {
    margin-bottom: 17px;
    padding: 12px;

    border: 1px solid #283540;
    border-radius: 12px;

    background: #151f28;
}

.agenda-card-service strong {
    color: #dce2e8;
    font-size: 13px;
}

.agenda-card-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.agenda-card-details strong {
    color: #d7dee5;
    font-size: 12px;
}

.agenda-card-value {
    text-align: right;
}

.agenda-card-value strong {
    color: var(--gold);
    font-size: 14px;
}


/* RODAPÉ */

.agenda-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 18px;
    padding-top: 13px;

    border-top: 1px solid #27333e;

    color: #707c89;
    font-size: 10px;
}

.agenda-open-icon {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #1b2630;
    color: var(--gold);

    font-size: 15px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.agenda-card:hover .agenda-open-icon {
    transform: translateX(3px);
    background: #2d250f;
}


/* ESTADO VAZIO */

.agenda-empty-state {
    grid-column: 1 / -1;

    padding: 60px 25px;

    border: 1px dashed #33404c;
    border-radius: 18px;

    background: #101820;

    text-align: center;
}

.agenda-empty-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin: 0 auto 15px;

    border: 1px solid #554318;
    border-radius: 17px;

    background: #2a220f;
    color: var(--gold);

    font-size: 24px;
}

.agenda-empty-state h3 {
    margin: 0 0 7px;
}

.agenda-empty-state p {
    margin: 0;
    color: #7d8995;
}


/* ==========================================================
   MODAL DA AGENDA
   ========================================================== */

body.modal-open {
    overflow: hidden;
}

.agenda-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 22px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.agenda-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

    background: rgba(3, 8, 13, 0.78);
    backdrop-filter: blur(8px);
}

.agenda-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(760px, 100%);
    max-height: calc(100vh - 44px);

    overflow-y: auto;

    border: 1px solid #33404d;
    border-radius: 22px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.10),
            transparent 30%),
        #101820;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);

    transform: translateY(18px) scale(0.98);

    transition:
        transform 0.28s ease;
}

.agenda-modal.open .agenda-modal-dialog {
    transform: translateY(0) scale(1);
}


/* CABEÇALHO DO MODAL */

.agenda-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;

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

    padding: 20px 22px;

    border-bottom: 1px solid #293641;

    background: rgba(16, 24, 32, 0.94);
    backdrop-filter: blur(12px);
}

.agenda-modal-header h2 {
    margin: 0;
    font-size: 21px;
}

.agenda-modal-close {
    width: 38px;
    height: 38px;

    border: 1px solid #34414d;
    border-radius: 11px;

    background: #18222c;
    color: #d4dae0;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.agenda-modal-close:hover {
    border-color: #703039;
    background: #36191d;
    color: #ff7a84;
}

.agenda-modal-body {
    padding: 22px;
}


/* DESTAQUE */

.agenda-modal-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-bottom: 16px;
}

.agenda-modal-highlight>div {
    padding: 16px;

    border: 1px solid #5a4518;
    border-radius: 15px;

    background:
        linear-gradient(135deg,
            rgba(232, 173, 47, 0.12),
            rgba(232, 173, 47, 0.03));
}

.agenda-modal-highlight span,
.agenda-detail-item span {
    display: block;
    margin-bottom: 6px;

    color: #84909d;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-modal-highlight strong {
    color: var(--gold);
    font-size: 21px;
}


/* DETALHES */

.agenda-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 20px;
}

.agenda-detail-item {
    padding: 13px 14px;

    border: 1px solid #293641;
    border-radius: 13px;

    background: #141d26;
}

.agenda-detail-item strong {
    color: #e4e9ee;
    font-size: 13px;
}


/* SEÇÕES DO MODAL */

.agenda-contact-section,
.agenda-status-section,
.agenda-observations-section {
    margin-top: 16px;
    padding-top: 19px;

    border-top: 1px solid #293641;
}

.agenda-modal-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;

    margin-bottom: 13px;
}

.agenda-modal-section-title h3 {
    margin: 0;
    font-size: 16px;
}


/* CONTATOS */

.agenda-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.agenda-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
    padding: 14px;

    border: 1px solid #2e3a46;
    border-radius: 14px;

    background: #141e27;
    color: inherit;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.agenda-contact-card:hover {
    transform: translateY(-2px);
}

.agenda-contact-card.whatsapp:hover {
    border-color: #2e7044;
    background: #14271b;
}

.agenda-contact-card.email:hover {
    border-color: #375a89;
    background: #15243a;
}

.agenda-contact-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #202c36;
    color: var(--gold);

    font-weight: 900;
}

.agenda-contact-card span:not(.agenda-contact-icon) {
    display: block;
    margin-bottom: 4px;

    color: #7d8996;
    font-size: 10px;
}

.agenda-contact-card strong {
    display: block;
    overflow: hidden;

    color: #dce2e8;
    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-contact-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* OBSERVAÇÕES */

.agenda-observations-section p {
    margin: 8px 0 0;
    padding: 13px;

    border: 1px solid #293641;
    border-radius: 12px;

    background: #141d26;
    color: #adb6c0;

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


/* FORMULÁRIO DE STATUS */

.agenda-status-help {
    color: #727e8b;
    font-size: 10px;
}

.agenda-status-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
}

.agenda-status-select-group {
    display: grid;
    gap: 7px;
}

.agenda-status-select-group>span {
    color: #87929f;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-status-select-group select {
    min-height: 46px;
    padding: 0 13px;

    border: 1px solid #34414e;
    border-radius: 12px;

    background: #141e27;
    color: #edf1f5;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}

.agenda-status-select-group select:focus {
    outline: none;
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(232, 173, 47, 0.10);
}

.agenda-update-button {
    min-height: 46px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    border: 1px solid #9a741d;
    border-radius: 12px;

    background:
        linear-gradient(135deg,
            #d59c22,
            #f0bd47);

    color: #17120a;

    font-family: inherit;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(232, 173, 47, 0.17);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.agenda-update-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(232, 173, 47, 0.25);
}

.agenda-update-icon {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: rgba(19, 15, 8, 0.14);
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 950px) {

    .agenda-header-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-date-filter {
        justify-content: flex-end;
    }

}


@media (max-width: 760px) {

    .agenda-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .agenda-selected-date {
        width: 100%;
    }

    .agenda-mini-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .agenda-modal {
        padding: 10px;
    }

    .agenda-modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .agenda-detail-grid,
    .agenda-contact-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .agenda-header-panel {
        padding: 16px;
    }

    .agenda-date-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .agenda-date-filter input,
    .agenda-filter-button {
        width: 100%;
    }

    .agenda-mini-summary {
        grid-template-columns: 1fr 1fr;
    }

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

    .agenda-modal-body {
        padding: 16px;
    }

    .agenda-modal-highlight {
        grid-template-columns: 1fr;
    }

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

    .agenda-update-button {
        justify-content: center;
        width: 100%;
    }

}

/* ==========================================================
   STATUS PREMIUM NO CARD DA AGENDA
   ========================================================== */

.agenda-card-top {
    align-items: center;
}

.agenda-time-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 1px solid #384551;
    border-radius: 12px;

    background: #17212a;
    color: #9ba6b2;

    font-size: 17px;
}


/* RODAPÉ DO CARD */

.agenda-card-footer {
    margin-top: 18px;
    padding-top: 14px;

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

    border-top: 1px solid #27333e;
}


/* STATUS */

.agenda-card-status {
    min-width: 0;

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

.agenda-status-indicator {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.035),
        0 0 13px currentColor;
}

.agenda-card-status div {
    min-width: 0;
}

.agenda-card-status small {
    display: block;

    margin-bottom: 3px;

    color: #6f7b88;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.agenda-card-status strong {
    display: block;

    overflow: hidden;

    color: currentColor;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.35px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}


/* CORES DO STATUS */

.agenda-card-status-pending {
    color: #e5ad3a;
}

.agenda-card-status-in-service {
    color: #72a4ff;
}

.agenda-card-status-finished {
    color: #64d283;
}

.agenda-card-status-cancelled {
    color: #ff747e;
}


/* BOTÃO DE ABRIR */

.agenda-card-footer .agenda-open-icon {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    border: 1px solid #34414d;
    border-radius: 11px;

    background: #19242d;
    color: var(--gold);

    font-size: 17px;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.agenda-card:hover .agenda-open-icon {
    transform: translateX(3px);

    border-color: #65501e;
    background: #2c240f;
}


/* DIFERENÇA VISUAL POR STATUS */

.agenda-card-pending {
    border-bottom-color: rgba(229, 173, 58, 0.42);
}

.agenda-card-in-service {
    border-bottom-color: rgba(114, 164, 255, 0.42);
}

.agenda-card-finished {
    border-bottom-color: rgba(100, 210, 131, 0.42);
}

.agenda-card-cancelled {
    border-bottom-color: rgba(255, 116, 126, 0.42);
}

/* ==========================================================
   FILTRO RECOLHÍVEL DA AGENDA
   ========================================================== */

.agenda-filter-panel {
    margin-bottom: 18px;

    overflow: hidden;

    border: 1px solid #27323e;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.08),
            transparent 35%),
        #111820;
}

.agenda-filter-toggle {
    width: 100%;
    min-height: 74px;
    padding: 15px 18px;

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

    border: 0;

    background: transparent;
    color: #ffffff;

    font-family: inherit;
    text-align: left;

    cursor: pointer;
}

.agenda-filter-toggle:hover {
    background: rgba(255, 255, 255, 0.025);
}

.agenda-filter-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-filter-toggle-info strong {
    color: #f3f6f9;
    font-size: 15px;
}

.agenda-filter-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid #554318;
    border-radius: 12px;

    background: #2d240f;
    color: var(--gold);

    font-size: 18px;
}

.agenda-filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.agenda-filter-arrow {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #19232d;
    color: #aeb8c4;

    font-size: 18px;

    transition:
        transform 0.3s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.agenda-filter-toggle.open .agenda-filter-arrow {
    transform: rotate(180deg);

    background: #2d240f;
    color: var(--gold);
}

.agenda-filter-content {
    max-height: 0;
    padding: 0 18px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    border-top: 1px solid transparent;

    transition:
        max-height 0.38s ease,
        padding 0.38s ease,
        opacity 0.25s ease,
        visibility 0.25s ease,
        border-color 0.3s ease;
}

.agenda-filter-content.open {
    max-height: 360px;
    padding: 18px;

    opacity: 1;
    visibility: visible;

    border-top-color: #27323e;
}

.agenda-period-form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.agenda-quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.agenda-custom-period {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-custom-period label {
    display: grid;
    gap: 6px;
}

.agenda-custom-period label span {
    color: #7f8a98;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.agenda-custom-period input[type="date"] {
    min-height: 40px;
    padding: 0 11px;

    border: 1px solid #303d4a;
    border-radius: 10px;

    background: #151e27;
    color: #e8edf3;

    font-family: inherit;
    color-scheme: dark;
}

.agenda-custom-period input[type="date"]:focus {
    outline: none;
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(232, 173, 47, 0.10);
}


/* TÍTULO DA LISTA */

.agenda-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    margin: 22px 0 14px;
}

.agenda-list-heading h2 {
    margin: 0;
    font-size: 21px;
}

.agenda-count-badge {
    padding: 7px 11px;

    border: 1px solid #36434f;
    border-radius: 999px;

    background: #17212a;
    color: #aeb8c4;

    font-size: 11px;
    font-weight: 800;
}


/* RESPONSIVIDADE */

@media (max-width: 760px) {

    .agenda-filter-toggle {
        align-items: flex-start;
    }

    .agenda-filter-toggle-right {
        align-items: flex-end;
        flex-direction: column;
        gap: 7px;
    }

    .agenda-filter-content.open {
        max-height: 620px;
    }

    .agenda-period-form,
    .agenda-custom-period {
        width: 100%;
    }

    .agenda-list-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

}


@media (max-width: 520px) {

    .agenda-filter-toggle {
        padding: 14px;
    }

    .agenda-filter-toggle-right .filter-date-range {
        display: none;
    }

    .agenda-filter-content.open {
        padding: 15px 14px;
    }

    .agenda-quick-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .agenda-custom-period {
        display: grid;
        grid-template-columns: 1fr;
    }

    .agenda-custom-period input,
    .agenda-custom-period .btn {
        width: 100%;
    }

}


/* ==========================================================
   CLIENTES PREMIUM
   ========================================================== */

.client-register-panel,
.client-filter-panel {
    margin-bottom: 17px;
    overflow: hidden;

    border: 1px solid #293641;
    border-radius: 18px;

    background: #111922;
}

.client-register-toggle {
    width: 100%;
    min-height: 72px;
    padding: 15px 18px;

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

    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.client-register-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-register-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid #5a4518;
    border-radius: 12px;

    background: #2b230f;
    color: var(--gold);

    font-size: 21px;
}

.client-register-toggle-info strong {
    display: block;
    font-size: 15px;
}

.client-register-arrow {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #19242d;
    color: #aab4bf;

    transition: transform 0.3s ease;
}

.client-register-toggle.open .client-register-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}

.client-register-content {
    max-height: 0;
    padding: 0 18px;

    overflow: hidden;
    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.35s ease,
        padding 0.35s ease,
        opacity 0.25s ease;
}

.client-register-content.open {
    max-height: 300px;
    padding: 18px;

    opacity: 1;
    visibility: visible;

    border-top: 1px solid #293641;
}

.client-register-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr auto;
    align-items: end;
    gap: 11px;
}

.client-register-form label {
    display: grid;
    gap: 6px;
}

.client-register-form label span {
    color: #84909d;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.client-register-form input,
.client-filter-form input,
.client-filter-form select {
    min-height: 43px;
    padding: 0 12px;

    border: 1px solid #34414e;
    border-radius: 11px;

    background: #151f28;
    color: #edf1f5;
    font-family: inherit;
}

.client-register-button {
    min-height: 43px;
}


/* RESUMO */

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    margin-bottom: 17px;
}

.client-summary-card {
    position: relative;
    overflow: hidden;

    padding: 16px;

    border: 1px solid #2a3742;
    border-radius: 16px;

    background: #111922;
    color: inherit;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.client-summary-card:hover {
    transform: translateY(-3px);
}

.client-summary-card span,
.client-summary-card small {
    display: block;
    color: #83909d;
}

.client-summary-card span {
    margin-bottom: 8px;
    font-size: 11px;
}

.client-summary-card strong {
    display: block;
    margin-bottom: 7px;

    color: #fff;
    font-size: 27px;
}

.client-summary-card small {
    font-size: 10px;
    line-height: 1.45;
}

.client-summary-card.active {
    border-bottom-color: #54c977;
}

.client-summary-card.attention {
    border-bottom-color: #e5ad3a;
}

.client-summary-card.inactive {
    border-bottom-color: #fa6975;
}


/* FILTRO */

.client-filter-panel {
    padding: 14px;
}

.client-filter-form {
    display: flex;
    gap: 10px;
}

.client-search-field {
    position: relative;
    flex: 1;
}

.client-search-field span {
    position: absolute;
    top: 50%;
    left: 13px;

    color: #84909c;
    transform: translateY(-50%);
}

.client-search-field input {
    width: 100%;
    padding-left: 38px;
}

.client-filter-form select {
    min-width: 190px;
}


/* TÍTULO */

.client-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 22px 0 13px;
}

.client-list-heading h2 {
    margin: 0;
}

.client-result-count {
    padding: 7px 11px;

    border: 1px solid #34414d;
    border-radius: 999px;

    background: #17212a;
    color: #aeb8c4;

    font-size: 11px;
}


/* CARDS */

.client-cards-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.client-card {
    position: relative;
    overflow: hidden;

    padding: 18px;

    border: 1px solid #293641;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(255, 255, 255, 0.04),
            transparent 35%),
        #111922;
}

.client-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #758292;
}

.client-card-ativo::before {
    background: #58ce7a;
}

.client-card-atencao::before {
    background: #e5ad3a;
}

.client-card-inativo::before {
    background: #fa6975;
}

.client-card-novo::before {
    background: #72a4ff;
}

.client-card-top {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 17px;
}

.client-avatar {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 1px solid #594719;
    border-radius: 14px;

    background: #2b230f;
    color: var(--gold);

    font-size: 18px;
    font-weight: 900;
}

.client-main-info {
    min-width: 0;
    flex: 1;
}

.client-main-info span {
    color: #788491;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-main-info h3 {
    margin: 3px 0;

    overflow: hidden;

    color: #fff;
    font-size: 16px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-main-info small {
    color: #8995a1;
}

.client-status {
    padding: 6px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-status-ativo {
    background: #142d1c;
    color: #61d382;
}

.client-status-atencao {
    background: #2d240f;
    color: #e5ad3a;
}

.client-status-inativo {
    background: #34191d;
    color: #ff747e;
}

.client-status-novo {
    background: #162842;
    color: #78a9ff;
}

.client-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.client-metrics>div {
    padding: 11px;

    border: 1px solid #283540;
    border-radius: 11px;

    background: #151f28;
}

.client-metrics span {
    display: block;
    margin-bottom: 5px;

    color: #798591;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-metrics strong {
    color: #dce3e9;
    font-size: 11px;
}

.client-alert {
    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 10px;

    font-size: 10px;
}

.client-alert.attention {
    border: 1px solid #594418;
    background: #2b230f;
    color: #e5ad3a;
}

.client-alert.inactive {
    border: 1px solid #612831;
    background: #32191d;
    color: #ff7781;
}

.client-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    margin-top: 15px;
    padding-top: 14px;

    border-top: 1px solid #293641;
}

.client-action {
    min-height: 35px;
    padding: 0 11px;

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

    border: 1px solid #35424e;
    border-radius: 10px;

    background: #18232c;
    color: #cbd3db;

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.client-action.whatsapp:hover {
    border-color: #2d7043;
    color: #61d382;
}

.client-action.email:hover {
    border-color: #365d90;
    color: #75a9ff;
}

.client-action.archive:hover {
    border-color: #6b2d35;
    color: #ff747e;
}

.client-action.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.client-archive-form {
    margin-left: auto;
}


/* RESPONSIVO */

@media (max-width: 950px) {
    .client-register-form {
        grid-template-columns: 1fr 1fr;
    }

    .client-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .client-register-form,
    .client-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .client-filter-form select,
    .client-filter-form .btn {
        width: 100%;
    }

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


.client-action.reactivate {
    margin-left: auto;

    border-color: #285b3a;

    background:
        linear-gradient(135deg,
            #173321,
            #14291c);

    color: #67d486;
}

.client-action.reactivate:hover {
    border-color: #3e8a59;
    background: #1a3b26;
    color: #83e39e;
}

.client-alert.archived {
    border: 1px solid #46515d;
    background: #202933;
    color: #aeb8c3;
}

/* ==========================================================
   PROFISSIONAIS PREMIUM
   ========================================================== */

.professional-register-panel {
    margin-bottom: 17px;
    overflow: hidden;

    border: 1px solid #293641;
    border-radius: 18px;

    background: #111922;
}

.professional-register-toggle {
    width: 100%;
    min-height: 68px;
    padding: 14px 18px;

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

    border: 0;
    background: transparent;
    color: #fff;

    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.professional-register-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.professional-register-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid #554318;
    border-radius: 12px;

    background: #2b230f;
    color: var(--gold);

    font-size: 20px;
}

.professional-register-arrow {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #19242d;
    color: #aab4bf;

    transition: transform 0.3s ease;
}

.professional-register-toggle.open .professional-register-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}

.professional-register-content {
    max-height: 0;
    padding: 0 18px;

    overflow: hidden;
    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.4s ease,
        padding 0.4s ease,
        opacity 0.25s ease;
}

.professional-register-content.open {
    max-height: 1000px;
    padding: 18px;

    opacity: 1;
    visibility: visible;

    border-top: 1px solid #293641;
}

.professional-register-form {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 11px;
}

.professional-register-form label,
.professional-edit-form label {
    display: grid;
    gap: 6px;
}

.professional-register-form label span,
.professional-edit-form label span {
    color: #84909d;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.professional-register-form input,
.professional-edit-form input {
    min-height: 43px;
    padding: 0 12px;

    border: 1px solid #34414e;
    border-radius: 11px;

    background: #151f28;
    color: #edf1f5;
    font-family: inherit;
}

.professional-register-form input[type="file"],
.professional-edit-form input[type="file"] {
    padding: 9px;
}


/* RESUMO */

.professional-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-bottom: 18px;
}

.professional-summary-card {
    padding: 16px;

    border: 1px solid #2a3742;
    border-radius: 16px;

    background: #111922;
    color: inherit;
    text-decoration: none;
}

.professional-summary-card span,
.professional-summary-card small {
    display: block;
    color: #84909d;
}

.professional-summary-card strong {
    display: block;
    margin: 7px 0;

    color: #fff;
    font-size: 27px;
}

.professional-summary-card.active {
    border-bottom-color: #59cd7b;
}

.professional-summary-card.inactive {
    border-bottom-color: #7d8995;
}


/* LISTA */

.professional-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 22px 0 13px;
}

.professional-list-heading h2 {
    margin: 0;
}

.professional-result-count {
    padding: 7px 11px;

    border: 1px solid #34414d;
    border-radius: 999px;

    background: #17212a;
    color: #aeb8c4;

    font-size: 11px;
}

.professional-cards-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.professional-card {
    padding: 18px;

    border: 1px solid #293641;
    border-radius: 18px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(232, 173, 47, 0.07),
            transparent 35%),
        #111922;
}

.professional-card-top {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;
}

.professional-photo {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    flex-shrink: 0;
    overflow: hidden;

    border: 2px solid #5b4618;
    border-radius: 17px;

    background: #2b230f;
    color: var(--gold);

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

.professional-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-main-info {
    min-width: 0;
    flex: 1;
}

.professional-main-info span,
.professional-info-grid span,
.professional-commission span {
    display: block;
    margin-bottom: 4px;

    color: #7d8996;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.professional-main-info h3 {
    margin: 0 0 4px;

    overflow: hidden;

    color: #fff;
    font-size: 17px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.professional-main-info small {
    color: #87939f;
}

.professional-status {
    padding: 6px 8px;

    border-radius: 999px;

    background: #142e1d;
    color: #63d382;

    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.professional-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.professional-info-grid>div {
    min-width: 0;
    padding: 11px;

    border: 1px solid #283540;
    border-radius: 11px;

    background: #151f28;
}

.professional-info-grid strong {
    display: block;
    overflow: hidden;

    color: #dce3e9;
    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* COMISSÃO */

.professional-commission {
    margin-top: 12px;
    padding: 13px;

    border: 1px solid #5a4518;
    border-radius: 13px;

    background:
        linear-gradient(135deg,
            rgba(232, 173, 47, 0.10),
            rgba(232, 173, 47, 0.025));
}

.professional-commission strong {
    color: var(--gold);
    font-size: 21px;
}

.professional-commission small {
    display: block;
    margin-top: 8px;

    color: #8d98a4;
    font-size: 9px;
}

.professional-commission-bar {
    height: 4px;
    margin-top: 10px;

    overflow: hidden;

    border-radius: 999px;
    background: #28313a;
}

.professional-commission-bar span {
    display: block;
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(90deg,
            #a66b0d,
            var(--gold));

    transition: width 0.5s ease;
}


/* AÇÕES */

.professional-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    margin-top: 15px;
    padding-top: 14px;

    border-top: 1px solid #293641;
}

.professional-action {
    min-height: 35px;
    padding: 0 11px;

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

    border: 1px solid #35424e;
    border-radius: 10px;

    background: #18232c;
    color: #cbd3db;

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.professional-action.whatsapp:hover {
    border-color: #2d7043;
    color: #61d382;
}

.professional-action.edit:hover {
    border-color: #69531e;
    color: var(--gold);
}

.professional-action.remove:hover {
    border-color: #6b2d35;
    color: #ff747e;
}

.professional-action.reactivate {
    border-color: #285b3a;
    color: #67d486;
}

.professional-remove-form {
    margin-left: auto;
}


/* MODAL */

.professional-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.professional-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

    background: rgba(3, 8, 13, 0.78);
    backdrop-filter: blur(8px);
}

.professional-modal-dialog {
    position: relative;
    z-index: 1;

    width: min(650px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    border: 1px solid #33404d;
    border-radius: 21px;

    background: #101820;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);
}

.professional-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 19px 21px;

    border-bottom: 1px solid #293641;
}

.professional-modal-header h2 {
    margin: 0;
}

.professional-modal-close {
    width: 38px;
    height: 38px;

    border: 1px solid #34414d;
    border-radius: 11px;

    background: #18222c;
    color: #d4dae0;

    font-size: 22px;
    cursor: pointer;
}

.professional-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;

    padding: 21px;
}

.professional-edit-form .btn {
    grid-column: 1 / -1;
}


/* RESPONSIVO */

@media (max-width: 900px) {
    .professional-register-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .professional-register-form,
    .professional-edit-form {
        grid-template-columns: 1fr;
    }

    .professional-summary-grid,
    .professional-info-grid {
        grid-template-columns: 1fr;
    }

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

    .professional-edit-form .btn {
        grid-column: auto;
    }
}



/* ==========================================================
   NAIL LUXURY
   TEMA DARK ROSÉ PREMIUM
   ========================================================== */

body.theme-nail-luxury {

    /* Fundo principal */
    --bg: #0d070b;

    /* Superfícies */
    --panel: #160d13;
    --panel2: #1d1119;

    /* O antigo "gold" vira o destaque rosé */
    --gold: #d8a0ae;

    /* Textos */
    --text: #fff8fa;
    --muted: #a98e98;

    /* Bordas */
    --line: #35202b;

    /* Estados permanecem funcionais */
    --green: #69c98a;
    --red: #ee7183;
    --blue: #8b9ee8;

    background:
        radial-gradient(circle at 85% 5%,
            rgba(173, 72, 107, 0.10),
            transparent 28%),
        radial-gradient(circle at 15% 95%,
            rgba(111, 45, 76, 0.08),
            transparent 32%),
        #0d070b;

    color: #fff8fa;
}


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

.theme-nail-luxury .sidebar {

    background:
        linear-gradient(180deg,
            #10080d 0%,
            #0b0609 100%);

    border-right-color: #35202b;

    box-shadow:
        15px 0 50px rgba(0, 0, 0, 0.18);
}


/* MARCA */

.theme-nail-luxury .brand span {

    color: #e0a8b7;

    text-shadow:
        0 0 25px rgba(224, 168, 183, 0.25);
}


.theme-nail-luxury .brand strong {

    color: #fff7fa;
}


.theme-nail-luxury .brand small {

    color: #d8a0ae;
}


/* LINKS */

.theme-nail-luxury .sidebar nav a {

    color: #cbb6be;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}


.theme-nail-luxury .sidebar nav a:hover {

    color: #fff8fa;

    background:
        linear-gradient(90deg,
            rgba(157, 72, 104, 0.22),
            rgba(88, 40, 61, 0.08));

    transform: translateX(2px);
}


/* RODAPÉ */

.theme-nail-luxury .sidebar-footer {

    border-color: #3a222e;

    background:
        linear-gradient(145deg,
            rgba(48, 25, 36, 0.65),
            rgba(19, 10, 15, 0.70));
}


.theme-nail-luxury .sidebar-footer small {

    color: #d8a0ae;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.theme-nail-luxury .topbar {

    border-bottom-color: #35202b;

    background:
        rgba(13, 7, 11, 0.90);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12);
}


.theme-nail-luxury .topbar h2 {

    color: #fff8fa;
}


.theme-nail-luxury .topbar small {

    color: #a98e98;
}


/* AVATAR */

.theme-nail-luxury .avatar {

    background:
        linear-gradient(135deg,
            #e0a8b7,
            #8e405f);

    color: #1a0c12;

    box-shadow:
        0 0 24px rgba(192, 102, 132, 0.20);
}


/* MENU MOBILE */

.theme-nail-luxury .menu-btn {

    color: #e0a8b7;
}




/* ==========================================================
   BOTÕES
   ========================================================== */

.theme-nail-luxury .btn {

    border-color: #422734;

    background: #1c1117;

    color: #f8edf1;
}


.theme-nail-luxury .btn:hover {

    border-color: #9c6076;
}


.theme-nail-luxury .btn.primary {

    border-color: #c88b9e;

    background:
        linear-gradient(135deg,
            #e2a8b7,
            #b96883);

    color: #1a0b11;

    box-shadow:
        0 10px 28px rgba(183, 91, 122, 0.18);
}


/* ==========================================================
   INPUTS / SELECTS
   ========================================================== */

.theme-nail-luxury input,
.theme-nail-luxury select,
.theme-nail-luxury textarea {

    border-color: #3b2530;

    background: #120a0f;

    color: #fff7fa;
}


.theme-nail-luxury input:focus,
.theme-nail-luxury select:focus,
.theme-nail-luxury textarea:focus {

    border-color: #d49aae;

    box-shadow:
        0 0 0 3px rgba(212, 154, 174, 0.10);
}






/* ==========================================================
   MODAL DA AGENDA
   ========================================================== */

.theme-nail-luxury .agenda-modal-backdrop {

    background:
        rgba(8, 3, 6, 0.82);
}


.theme-nail-luxury .agenda-modal-dialog {

    border-color: #49303a;

    background:
        radial-gradient(circle at 100% 0,
            rgba(214, 143, 166, 0.11),
            transparent 30%),
        #140c11;
}


.theme-nail-luxury .agenda-modal-header {

    border-bottom-color: #39232e;

    background:
        rgba(20, 12, 17, 0.94);
}


.theme-nail-luxury .agenda-modal-highlight>div {

    border-color: #704255;

    background:
        linear-gradient(135deg,
            rgba(217, 151, 173, 0.13),
            rgba(217, 151, 173, 0.03));
}


.theme-nail-luxury .agenda-modal-highlight strong {

    color: #e0a8b7;
}


.theme-nail-luxury .agenda-detail-item,
.theme-nail-luxury .agenda-observations-section p {

    border-color: #39232e;

    background: #1a1016;
}


.theme-nail-luxury .agenda-contact-card {

    border-color: #3d2731;

    background: #1b1117;
}


.theme-nail-luxury .agenda-contact-icon {

    background: #2a1821;

    color: #dda4b4;
}


/* BOTÃO ATUALIZAR */

.theme-nail-luxury .agenda-update-button {

    border-color: #bd7b91;

    background:
        linear-gradient(135deg,
            #dca0b1,
            #b65e7b);

    color: #1a0b11;

    box-shadow:
        0 10px 28px rgba(190, 94, 126, 0.18);
}


.theme-nail-luxury .agenda-update-button:hover {

    box-shadow:
        0 15px 34px rgba(190, 94, 126, 0.28);
}


/* ==========================================================
   PROFISSIONAIS
   ========================================================== */

.theme-nail-luxury .professional-register-panel {

    border-color: #3b2530;

    background: #171016;
}


.theme-nail-luxury .professional-register-icon {

    border-color: #704255;

    background: #301923;

    color: #dda4b4;
}


.theme-nail-luxury .professional-register-arrow {

    background: #24151c;

    color: #bba4ad;
}


.theme-nail-luxury .professional-register-toggle.open .professional-register-arrow {

    color: #e0a8b7;
}


/* ==========================================================
   CLIENTES / SERVIÇOS / DEMAIS CARDS
   ========================================================== */

.theme-nail-luxury .profile-card,
.theme-nail-luxury .service-card {

    border-color: #39232e;

    background:
        linear-gradient(145deg,
            #1c1118,
            #130b10);
}


.theme-nail-luxury .service-card>span {

    color: #dda4b4;
}


/* ==========================================================
   TABELAS
   ========================================================== */

.theme-nail-luxury table {

    color: #f7edf1;
}


.theme-nail-luxury th,
.theme-nail-luxury td {

    border-bottom-color: #35212b;
}


.theme-nail-luxury th {

    color: #a88f98;
}


/* ==========================================================
   ELEMENTOS DE DESTAQUE
   ========================================================== */

.theme-nail-luxury .section-kicker,
.theme-nail-luxury .panel-value {

    color: #dda4b4;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

.theme-nail-luxury ::-webkit-scrollbar {

    width: 9px;
    height: 9px;
}


.theme-nail-luxury ::-webkit-scrollbar-track {

    background: #0d070b;
}


.theme-nail-luxury ::-webkit-scrollbar-thumb {

    background: #4b2b38;

    border-radius: 999px;
}


.theme-nail-luxury ::-webkit-scrollbar-thumb:hover {

    background: #714054;
}


/* ==========================================================
   NAIL LUXURY — CORREÇÃO COMPLETA DAS ÁREAS CINZAS
   ========================================================== */


/* ==========================================================
   AGENDA — FILTROS / CAMPOS / BADGES
   ========================================================== */

.theme-nail-luxury .agenda-date-filter input,
.theme-nail-luxury .agenda-status-select-group select,
.theme-nail-luxury .custom-period-filter input[type="date"] {

    border-color: #452936;

    background: #160c12;

    color: #f8edf2;
}


.theme-nail-luxury .agenda-count-badge,
.theme-nail-luxury .filter-date-range {

    border-color: #452936;

    background: #211219;

    color: #c3aab4;
}


.theme-nail-luxury .agenda-time-icon {

    border-color: #4b2c39;

    background: #21131a;

    color: #c49dab;
}



/* ==========================================================
   PROFISSIONAIS
   ========================================================== */

.theme-nail-luxury .professional-register-panel {

    border-color: #3b2430;

    background:
        linear-gradient(145deg,
            #1b1017,
            #120a0f);
}


.theme-nail-luxury .professional-register-content.open {

    border-top-color: #39232e;
}


.theme-nail-luxury .professional-register-form input,
.theme-nail-luxury .professional-edit-form input {

    border-color: #432936;

    background: #140b10;

    color: #f8edf2;
}


.theme-nail-luxury .professional-summary-card {

    border-color: #3a2430;

    background: #171016;
}


.theme-nail-luxury .professional-summary-card span,
.theme-nail-luxury .professional-summary-card small {

    color: #a08a94;
}


.theme-nail-luxury .professional-result-count {

    border-color: #422936;

    background: #201219;

    color: #c3abb4;
}


.theme-nail-luxury .professional-card {

    border-color: #3b2430;

    background:
        radial-gradient(circle at 100% 0,
            rgba(216, 160, 174, 0.08),
            transparent 35%),
        #171016;
}


/* ==========================================================
   SERVIÇOS
   ========================================================== */

.theme-nail-luxury .service-card {

    border-color: #3b2430 !important;

    background:
        radial-gradient(circle at 100% 0,
            rgba(216, 160, 174, 0.07),
            transparent 35%),
        linear-gradient(145deg,
            #1b1017,
            #120a0f) !important;
}


.theme-nail-luxury .service-card>span {

    color: #dda4b4;
}


/* ==========================================================
   PAINÉIS GENÉRICOS
   Financeiro / Serviços / outras telas antigas
   ========================================================== */

.theme-nail-luxury .panel {

    border-color: #3a2430;

    background:
        radial-gradient(circle at 100% 0,
            rgba(216, 160, 174, 0.045),
            transparent 34%),
        linear-gradient(145deg,
            #1b1017,
            #120a0f);
}


.theme-nail-luxury .timeline-card {

    border-left-color: #d8a0ae;

    background: #171016;
}


/* ==========================================================
   TABELAS
   ========================================================== */

.theme-nail-luxury .table-wrap {

    border-color: #35212b;
}


.theme-nail-luxury table {

    background: transparent;
}


.theme-nail-luxury th {

    color: #9f8992;
}


.theme-nail-luxury td {

    color: #eadde2;
}


/* ==========================================================
   BADGES GENÉRICOS
   ========================================================== */

.theme-nail-luxury .badge {

    background: #24151c;

    color: #c9b2bb;
}


/* ==========================================================
   SETAS / PEQUENOS ELEMENTOS CINZAS
   ========================================================== */

.theme-nail-luxury .client-register-arrow,
.theme-nail-luxury .professional-register-arrow,
.theme-nail-luxury .filter-toggle-arrow {

    background: #21131a;

    color: #b9a2ab;
}


/* ==========================================================
   CONFIGURAÇÕES
   Cobertura dos componentes genéricos usados nessa página
   ========================================================== */

.theme-nail-luxury .config-page,
.theme-nail-luxury .config-page section {

    color: #f8edf2;
}


.theme-nail-luxury .config-panel {

    border-color: #3b2430;

    background:
        radial-gradient(circle at 100% 0,
            rgba(216, 160, 174, 0.06),
            transparent 35%),
        linear-gradient(145deg,
            #1b1017,
            #120a0f);
}


.theme-nail-luxury .config-panel input,
.theme-nail-luxury .config-panel select {

    border-color: #432936;

    background: #140b10;

    color: #f8edf2;
}


/* ==========================================================
   ELEMENTOS ANTIGOS COM FUNDO CINZA
   ========================================================== */

.theme-nail-luxury .automation {

    border-bottom-color: #38222d;
}


.theme-nail-luxury .empty {

    color: #a28b94;
}





/* ==========================================================
   NAIL LUXURY — SERVIÇOS
   ========================================================== */

.theme-nail-luxury .service-grid {
    color: #f8edf2;
}

.theme-nail-luxury .service-card {
    border: 1px solid #432735 !important;

    background:
        radial-gradient(circle at 100% 0,
            rgba(220, 150, 174, 0.09),
            transparent 38%),
        linear-gradient(145deg,
            #1b0f16,
            #11090e) !important;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22);
}

.theme-nail-luxury .service-card h3,
.theme-nail-luxury .service-card strong {
    color: #fff5f8;
}

.theme-nail-luxury .service-card p,
.theme-nail-luxury .service-card small {
    color: #a98e99;
}

.theme-nail-luxury .service-card>span {
    color: #dfa4b6;
}

.theme-nail-luxury .grid-form>.panel {
    border-color: #432735;

    background:
        linear-gradient(145deg,
            #1a0f15,
            #11090e) !important;
}

/* Formulário de serviço */

.theme-nail-luxury .grid-form input,
.theme-nail-luxury .grid-form select,
.theme-nail-luxury .grid-form textarea {
    border-color: #472a38;
    background: #140a10;
    color: #f9edf2;
}

.theme-nail-luxury .grid-form label {
    color: #ad929c;
}

/* Tabela/listagem */

.theme-nail-luxury .table-wrap {
    border-color: #3d2430;
    background: #150c11;
}

.theme-nail-luxury .table-wrap table {
    background: #150c11;
}

.theme-nail-luxury .table-wrap th {
    color: #a78c97;
    background: #1a0f15;
}

.theme-nail-luxury .table-wrap td {
    color: #eadde2;
    border-bottom-color: #39212c;
}

/* ==========================================================
   ASSINATURA — TOPO CENTRAL
   ========================================================== */

.topbar {
    position: relative;
}


.topbar-subscription {
    position: absolute;

    top: 7px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 5;

    display: flex;
    justify-content: center;

    pointer-events: none;
}


.top-subscription-pill {
    min-height: 25px;

    padding: 5px 11px;

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

    gap: 6px;

    border: 1px solid;
    border-radius: 999px;

    backdrop-filter: blur(12px);

    white-space: nowrap;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .15);
}


.top-subscription-pill span {
    font-size: 6px;
    font-weight: 900;

    letter-spacing: .9px;
}


.top-subscription-pill strong {
    font-size: 9px;
    font-weight: 900;
}


.top-subscription-pill small {
    font-size: 6px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* BOLINHA */

.top-subscription-dot {
    width: 5px;
    height: 5px;

    flex: 0 0 5px;

    border-radius: 50%;
}


/* ==========================================================
   TESTE
   ========================================================== */

.top-subscription-trial {
    border-color:
        rgba(213, 164, 58, .28);

    background:
        rgba(213, 164, 58, .07);

    color: #d5a43a;
}


.top-subscription-trial .top-subscription-dot {
    background: #d5a43a;

    box-shadow:
        0 0 8px rgba(213, 164, 58, .6);
}


/* ==========================================================
   ATIVA
   ========================================================== */

.top-subscription-active {
    border-color:
        rgba(74, 194, 135, .25);

    background:
        rgba(74, 194, 135, .07);

    color: #55c891;
}


.top-subscription-active .top-subscription-dot {
    background: #55c891;

    box-shadow:
        0 0 8px rgba(85, 200, 145, .55);
}


/* ==========================================================
   VENCIDA
   ========================================================== */

.top-subscription-expired {
    border-color:
        rgba(225, 89, 89, .28);

    background:
        rgba(225, 89, 89, .07);

    color: #e16f6f;
}


.top-subscription-expired .top-subscription-dot {
    background: #e16f6f;
}

/* ==========================================================
   TOPBAR MOBILE — CORREÇÃO DEFINITIVA
   ========================================================== */

@media (max-width: 700px) {

    .topbar {
        position: relative !important;

        width: 100%;

        height: auto !important;
        min-height: 112px !important;

        padding:
            10px 16px 12px !important;

        display: grid !important;

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

        grid-template-rows:
            32px 52px;

        column-gap: 10px;
        row-gap: 7px;

        align-items: center;
    }


    /* ==========================================
       PERÍODO DE TESTE
       ========================================== */

    .topbar-subscription {
        position: static !important;

        grid-column: 1 / -1;
        grid-row: 1;

        width: 100%;

        margin: 0;

        transform: none !important;

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

        z-index: auto;
    }


    .top-subscription-pill {
        width: max-content;
        max-width: 95%;

        min-height: 26px;

        padding:
            5px 10px;

        gap: 6px;
    }


    /* ==========================================
       MENU
       ========================================== */

    .menu-btn {
        position: static !important;

        grid-column: 1;
        grid-row: 2;

        margin: 0 !important;

        align-self: center;
        justify-self: start;
    }


    /* ==========================================
       DASHBOARD + NOME EMPRESA
       ========================================== */

    .topbar-title {
        grid-column: 2;
        grid-row: 2;

        min-width: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 3px;

        margin: 0 !important;
        padding: 0 !important;
    }


    .topbar-title h2 {
        margin: 0 !important;
        padding: 0;

        font-size: 18px;
        line-height: 1.15;

        white-space: nowrap;
    }


    .topbar-title small {
        display: block;

        margin: 0 !important;

        font-size: 8px;
        line-height: 1.2;

        opacity: .72;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* ==========================================
       SINO + AVATAR
       ========================================== */

    .top-actions {
        position: relative !important;
        z-index: 50;
        grid-column: 3;
        grid-row: 2;

        margin: 0 !important;

        display: flex;
        align-items: center;

        gap: 11px;

        justify-self: end;
    }


    /* ==========================================
       CONTEÚDO COMEÇA DEPOIS DA TOPBAR
       ========================================== */

    .content {
        position: relative;

        margin-top: 0 !important;
        padding-top: 14px !important;
    }

}

/* ==========================================================
   NOTIFICAÇÕES DO PAINEL
   ========================================================== */

.panel-notification-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    z-index: 100;
}


/* BOTÃO */

.panel-notification-button {
    position: relative;

    width: 36px;
    height: 36px;

    padding: 0;

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

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .035);

    color: var(--text);

    cursor: pointer;

    transition: .2s ease;

    pointer-events: auto;

    z-index: 101;
}


.panel-notification-button:hover {
    background:
        rgba(255, 255, 255, .07);

    border-color:
        rgba(255, 255, 255, .14);
}


.panel-notification-bell {
    display: block;

    font-size: 15px;

    line-height: 1;
}


/* CONTADOR */

.panel-notification-counter {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

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

    border: 2px solid var(--bg);

    border-radius: 999px;

    background: #d85d68;

    color: #fff;

    font-size: 7px;
    font-weight: 900;

    line-height: 1;
}


/* DROPDOWN */

.panel-notification-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 360px;

    max-height: 480px;

    overflow: hidden;

    border: 1px solid var(--line);

    border-radius: 16px;

    background: #11171c;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .5);

    z-index: 9999;

    pointer-events: auto;
}


.panel-notification-dropdown[hidden] {
    display: none !important;
}


/* BOTÃO */

.panel-notification-button {
    position: relative;

    width: 34px;
    height: 34px;

    padding: 0;

    display: grid;
    place-items: center;

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

    background: transparent;

    cursor: pointer;

    transition: .2s ease;
}


.panel-notification-button:hover {
    border-color: var(--line);

    background:
        rgba(255, 255, 255, .035);
}


.panel-notification-bell {
    font-size: 14px;
}


/* CONTADOR */

.panel-notification-counter {
    position: absolute;

    top: -3px;
    right: -4px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    display: grid;
    place-items: center;

    border: 2px solid var(--bg);
    border-radius: 999px;

    background: #d95f68;

    color: #fff;

    font-size: 7px;
    font-weight: 900;

    line-height: 1;
}


/* ==========================================================
   DROPDOWN
   ========================================================== */

.panel-notification-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 360px;
    max-height: 480px;

    overflow: hidden;

    z-index: 1000;

    border: 1px solid var(--line);
    border-radius: 16px;

    background:
        linear-gradient(145deg,
            rgba(24, 29, 33, .98),
            rgba(13, 17, 20, .99));

    box-shadow:
        0 28px 80px rgba(0, 0, 0, .45);

    backdrop-filter: blur(18px);
}


.panel-notification-header {
    padding: 14px 15px;

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

    gap: 12px;

    border-bottom:
        1px solid rgba(255, 255, 255, .06);
}


.panel-notification-header>div {
    display: grid;

    gap: 3px;
}


.panel-notification-header span {
    color: var(--muted);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: 1px;
}


.panel-notification-header strong {
    color: var(--text);

    font-size: 11px;
}


.panel-notification-header small {
    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(213, 164, 58, .08);

    color: #d5a43a;

    font-size: 6px;
    font-weight: 900;
}


/* ==========================================================
   LISTA
   ========================================================== */

.panel-notification-list {
    max-height: 400px;

    overflow-y: auto;
}


.panel-notification-item {
    position: relative;

    padding: 12px 14px;

    display: grid;

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

    align-items: start;

    gap: 10px;

    border-bottom:
        1px solid rgba(255, 255, 255, .045);

    background: transparent;
}


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


.panel-notification-item.unread {
    background:
        rgba(213, 164, 58, .035);
}


/* TIPO */

.panel-notification-type {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .04);

    color: #aab3b9;

    font-size: 9px;
    font-weight: 900;
}


.panel-notification-type.type-importante {
    background:
        rgba(217, 95, 104, .10);

    color: #e57a82;
}


.panel-notification-type.type-promocao {
    background:
        rgba(213, 164, 58, .10);

    color: #d5a43a;
}


.panel-notification-type.type-manutencao {
    background:
        rgba(83, 149, 200, .10);

    color: #71afe0;
}


/* TEXTO */

.panel-notification-main {
    min-width: 0;

    display: grid;

    gap: 3px;
}


.panel-notification-main>span {
    color: var(--muted);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .7px;
}


.panel-notification-main strong {
    color: var(--text);

    font-size: 9px;
}


.panel-notification-main p {
    margin: 1px 0 0;

    color: var(--muted);

    font-size: 7px;

    line-height: 1.45;
}


.panel-notification-main small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 6px;

    opacity: .75;
}


/* NÃO LIDA */

.panel-notification-unread-dot {
    width: 6px;
    height: 6px;

    margin-top: 5px;

    border-radius: 50%;

    background: #d5a43a;

    box-shadow:
        0 0 8px rgba(213, 164, 58, .55);
}


/* ==========================================================
   VAZIO
   ========================================================== */

.panel-notification-empty {
    padding: 28px 18px;

    display: grid;
    place-items: center;

    text-align: center;
}


.panel-notification-empty>span {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 20px;
}


.panel-notification-empty strong {
    color: var(--text);

    font-size: 9px;
}


.panel-notification-empty small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 7px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .panel-notification-dropdown {
        position: fixed;

        top: 105px;
        right: 12px;
        left: 12px;

        width: auto;

        max-height:
            calc(100vh - 125px);

        z-index: 99999;

    }


    .panel-notification-list {
        max-height:
            calc(100vh - 205px);
    }

}


/* ==========================================================
   NOTIFICAÇÃO CLICÁVEL
   ========================================================== */

.panel-notification-form {
    margin: 0;
}


.panel-notification-item-button {
    width: 100%;

    border: 0;

    color: inherit;

    text-align: left;

    font-family: inherit;

    cursor: pointer;
}


.panel-notification-item-button:hover {
    background:
        rgba(
            255,
            255,
            255,
            .035
        );
}


/* ==========================================================
   MARCAR TODAS COMO LIDAS
   ========================================================== */

.panel-notification-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}


.panel-mark-all-read {
    padding: 5px 8px;

    border: 1px solid
        rgba(255, 255, 255, .08);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, .025);

    color: var(--muted);

    font-size: 6px;
    font-weight: 800;

    cursor: pointer;
}


.panel-mark-all-read:hover {
    color: var(--text);

    background:
        rgba(255, 255, 255, .05);
}


/* ==========================================================
   ALERTA COMERCIAL
   ========================================================== */

.commercial-alert {
    margin: 10px 22px 0;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: rgba(255, 255, 255, .025);
}


.commercial-alert-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 900;
}


.commercial-alert-content {
    min-width: 0;

    display: grid;
    gap: 2px;
}


.commercial-alert-content strong {
    color: var(--text);

    font-size: 9px;
}


.commercial-alert-content small {
    color: var(--muted);

    font-size: 7px;
}


/* AVISO */

.commercial-alert-warning {
    border-color:
        rgba(213, 164, 58, .28);

    background:
        rgba(213, 164, 58, .045);
}


.commercial-alert-warning
.commercial-alert-icon {
    background:
        rgba(213, 164, 58, .12);

    color: #d5a43a;
}


/* INFORMATIVO */

.commercial-alert-info {
    border-color:
        rgba(77, 145, 196, .22);

    background:
        rgba(77, 145, 196, .035);
}


.commercial-alert-info
.commercial-alert-icon {
    background:
        rgba(77, 145, 196, .10);

    color: #73b0dd;
}


/* CORTESIA */

.commercial-alert-extra {
    border-color:
        rgba(81, 190, 137, .22);

    background:
        rgba(81, 190, 137, .035);
}


.commercial-alert-extra
.commercial-alert-icon {
    background:
        rgba(81, 190, 137, .10);

    color: #63ce97;
}


@media (max-width: 700px) {

    .commercial-alert {
        margin:
            8px
            12px
            0;

        padding: 9px 10px;
    }

}




/* ==========================================================
   PROFISSIONAIS — ÁREAS DE ATUAÇÃO
   ========================================================== */

.areas-profissional {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.area-profissional-option {
    position: relative;

    min-height: 54px;
    padding: 12px 14px;

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

    border: 1px solid #2b3945;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #151e27,
            #111820
        );

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.area-profissional-option:hover {
    transform: translateY(-1px);

    border-color: #536373;

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, .18);
}


/* CHECKBOX REAL */

.area-profissional-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


/* CHECK VISUAL */

.area-profissional-option::before {
    content: "";

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: grid;
    place-items: center;

    border: 1px solid #4a5a68;
    border-radius: 7px;

    background: #10171e;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


/* TEXTO */

.area-profissional-option span {
    color: #dfe6ec;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.2;
}


/* SELECIONADO */

.area-profissional-option:has(input:checked) {
    border-color: #8b6b22;

    background:
        linear-gradient(
            145deg,
            #211b10,
            #151b21
        );

    box-shadow:
        0 0 0 3px
        rgba(227, 173, 64, .05);
}

.area-profissional-option:has(input:checked)::before {
    content: "✓";

    border-color: #a77c22;

    background: #2b230f;

    color: #e3ad40;

    font-size: 11px;
    font-weight: 900;
}

.area-profissional-option:has(input:checked) span {
    color: #f3f6f8;
}


/* TEXTO AUXILIAR */

.form-group > small {
    display: block;

    margin-top: 8px;

    color: #778592;

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


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .areas-profissional {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .area-profissional-option {
        min-height: 50px;
        padding: 11px 13px;
    }

    .area-profissional-option span {
        font-size: 12px;
    }
}


/* ==========================================================
   SERVIÇOS — ÁREA + PROFISSIONAIS
   ========================================================== */

.service-professionals-field {
    display: grid;
    gap: 9px;

    padding: 14px;

    border: 1px solid #2b3945;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #151e27,
            #111820
        );
}


/* TÍTULO */

.service-professionals-title {
    color: #8f9aa5;

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

    letter-spacing: .8px;

    text-transform: uppercase;
}


/* LISTA */

.service-professionals-list {
    display: grid;

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

    gap: 8px;
}


/* OPÇÃO */

.service-professional-option {
    position: relative;

    min-height: 48px;
    padding: 10px 12px;

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

    border: 1px solid #33414d;
    border-radius: 12px;

    background: #151f28;

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.service-professional-option:hover {
    transform: translateY(-1px);

    border-color: #526271;
}


/* CHECKBOX REAL */

.service-professional-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


/* CHECKBOX VISUAL */

.service-professional-option::before {
    content: "";

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: grid;
    place-items: center;

    border: 1px solid #4d5c69;
    border-radius: 7px;

    background: #10171e;

    transition:
        border-color .18s ease,
        background .18s ease;
}


/* NOME */

.service-professional-option span {
    color: #dce3e9;

    font-size: 12px;
    font-weight: 650;
}


/* SELECIONADO */

.service-professional-option:has(input:checked) {
    border-color: #87681f;

    background:
        linear-gradient(
            145deg,
            #211b10,
            #151b21
        );

    box-shadow:
        0 0 0 3px
        rgba(227, 173, 64, .05);
}


.service-professional-option:has(input:checked)::before {
    content: "✓";

    border-color: #a37a21;

    background: #2a220f;

    color: #e3ad40;

    font-size: 10px;
    font-weight: 900;
}


.service-professional-option:has(input:checked) span {
    color: #f4f6f8;
}


/* TEXTO DE AJUDA */

#serviceProfessionalsHelp,
#serviceEditProfessionalsHelp {
    color: #768491;

    font-size: 10px;
    line-height: 1.45;
}


/* ==========================================================
   SELECT DE ÁREA
   ========================================================== */

#serviceArea,
#serviceEditArea {
    min-height: 43px;

    padding: 0 12px;

    border: 1px solid #34414e;
    border-radius: 11px;

    background: #151f28;
    color: #edf1f5;

    font: inherit;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


#serviceArea:focus,
#serviceEditArea:focus {
    border-color: #80631f;

    box-shadow:
        0 0 0 3px
        rgba(227, 173, 64, .06);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .service-professionals-field {
        padding: 12px;
    }

    .service-professionals-list {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .service-professional-option {
        min-height: 46px;
        padding: 10px 11px;
    }

    .service-professional-option span {
        font-size: 11px;
    }
}




/* ==========================================================
   NOTIFICAÇÕES OPERACIONAIS — AGENDAMENTOS
   ========================================================== */

.panel-operational-notifications {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.panel-operational-notifications[hidden] {
    display: none !important;
}


/* ==========================================================
   CABEÇALHO DA ÁREA DE AGENDA
   ========================================================== */

.panel-operational-header {
    padding: 11px 14px;

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

    border-bottom: 1px solid rgba(255, 255, 255, .05);

    background:
        linear-gradient(
            135deg,
            rgba(213, 164, 58, .08),
            rgba(213, 164, 58, .015)
        );
}

.panel-operational-header > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-operational-header span {
    color: var(--muted);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .14em;
}

.panel-operational-header strong {
    color: var(--text);

    font-size: 11px;
    font-weight: 800;
}


/* ==========================================================
   ITEM OPERACIONAL
   ========================================================== */

.panel-operational-item {
    display: block;

    padding: 0;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.panel-operational-item.unread {
    background:
        linear-gradient(
            90deg,
            rgba(213, 164, 58, .07),
            rgba(213, 164, 58, .015)
        );
}

.panel-operational-item:hover {
    background:
        rgba(255, 255, 255, .025);
}


/* ==========================================================
   CONTEÚDO CLICÁVEL
   ========================================================== */

.operational-notification-content {
    position: relative;

    width: 100%;

    padding: 13px 14px;

    display: grid;

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

    align-items: start;

    gap: 10px;

    border: 0;

    background: transparent;

    color: inherit;

    text-align: left;

    font-family: inherit;

    cursor: pointer;
}

.operational-notification-content:hover {
    background:
        rgba(255, 255, 255, .02);
}


/* ==========================================================
   ÍCONE DO AGENDAMENTO
   ========================================================== */

.panel-notification-type.type-operational {
    color: #d5a43a;

    border:
        1px solid rgba(213, 164, 58, .20);

    background:
        rgba(213, 164, 58, .08);

    font-size: 16px;
    font-weight: 500;
}


/* ==========================================================
   DETALHES
   ========================================================== */

.operational-details {
    margin-top: 8px;

    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.operational-details span {
    padding: 4px 7px;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, .025);

    color: var(--muted);

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


/* ==========================================================
   AÇÕES
   ========================================================== */

.operational-actions {
    padding:
        0 14px 12px 56px;

    display: flex;

    gap: 8px;
}

.operational-confirm-button,
.operational-view-button {
    display: inline-flex;

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

    min-height: 28px;

    padding: 6px 10px;

    border-radius: 8px;

    text-decoration: none;

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

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.operational-confirm-button {
    color: #17130a;

    border:
        1px solid rgba(213, 164, 58, .85);

    background: #d5a43a;
}

.operational-confirm-button:hover {
    transform: translateY(-1px);

    background: #e0b54d;
}

.operational-view-button {
    color: var(--text);

    border:
        1px solid rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .035);
}

.operational-view-button:hover {
    background:
        rgba(255, 255, 255, .07);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .panel-operational-header {
        padding:
            12px 13px;
    }

    .operational-notification-content {
        padding:
            13px;
    }

    .operational-actions {
        padding:
            0 13px 13px 55px;
    }

    .operational-confirm-button,
    .operational-view-button {
        min-height: 32px;

        padding:
            7px 11px;

        font-size: 9px;
    }
}




/* ==========================================================
   ROLAGEM ÚNICA DA CENTRAL DE NOTIFICAÇÕES
   ========================================================== */

.panel-notifications-scroll {
    max-height: 400px;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    scrollbar-width: thin;
}


/* As listas internas não controlam mais a rolagem */
.panel-notifications-scroll .panel-notification-list {
    max-height: none;
    overflow: visible;
}


/* Scrollbar - Chrome / Edge / Safari */
.panel-notifications-scroll::-webkit-scrollbar {
    width: 6px;
}

.panel-notifications-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.panel-notifications-scroll::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, .12);

    border-radius: 999px;
}

.panel-notifications-scroll::-webkit-scrollbar-thumb:hover {
    background:
        rgba(213, 164, 58, .35);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .panel-notifications-scroll {
        max-height:
            calc(100vh - 205px);

        -webkit-overflow-scrolling: touch;
    }

}