/* Recepcao Connect - Brutalist Refined */

:root {
    --bg-color: #15171b;
    --bg-elevated: #1c1f24;
    --card-bg: #22262c;
    --text-primary: #f4f4f2;
    --text-secondary: #b9bdc6;
    --text-muted: #9da3af;
    --accent-orange: #ff6f3d;
    --accent-orange-soft: #ff9c7a;
    --accent-cyan: #22d3ee;
    --accent-green: #58d68d;
    --accent-red: #ff6b6b;
    --border-color: #343940;
    --border-strong: #6a7381;
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --glass-bg: rgb(28 31 36 / .55);
    --glass-sheen: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015) 50%);
    --glass-border: rgb(255 255 255 / .14);
    --glass-edge: inset 0 1px 0 rgb(255 255 255 / .1);
    --glass-blur: blur(14px) saturate(1.3);
    --accent-amber: #ffc107;
    --map-free: var(--accent-green);
    --map-free-edge: #2f9461;
    --map-reserved: var(--accent-amber);
    --map-reserved-edge: #d99e06;
    --map-occupied: var(--accent-orange);
    --map-occupied-edge: #d14f1f;
    --map-wall: var(--border-strong);
    --map-space: var(--accent-cyan);
    --map-select: var(--accent-cyan);
    --map-grid: rgb(255 255 255 / .05);
}

.recepcao-auth-logo {
    text-align: center;
    margin: 0 auto 20px;
    line-height: 0;
}

.recepcao-auth-logo img {
    display: inline-block;
    width: min(100%, 390px);
    height: auto;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.recepcao-auth-block {
    width: calc(100% - var(--space-32));
    max-width: 460px;
    margin: var(--space-32) auto;
    padding: clamp(var(--space-16), 5vw, var(--space-32));
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.recepcao-auth-block,
.recepcao-auth-block *,
.recepcao-auth-block *::before,
.recepcao-auth-block *::after {
    box-sizing: border-box;
}

.recepcao-auth-heading {
    margin: 0 0 var(--space-8);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}

.recepcao-auth-description {
    margin: 0 0 var(--space-24);
    color: var(--text-secondary);
}

.recepcao-auth-error {
    margin: 0 0 var(--space-16);
    padding: var(--space-12) var(--space-16);
    border: 1px solid rgba(255, 107, 107, .35);
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 107, .1);
    color: #ffb8b8;
}

.recepcao-auth-form {
    display: grid;
    gap: var(--space-16);
}

.recepcao-auth-form .recepcao-input {
    width: 100%;
    min-width: 0;
}

.recepcao-auth-submit {
    width: 100%;
}

.recepcao-wrap {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    padding: var(--space-24);
    margin-left: -20px;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(255, 111, 61, 0.035), transparent 35%),
        radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.025), transparent 38%);
}

.recepcao-dashboard {
    max-width: 1280px;
    margin: 0 auto;
}

.recepcao-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-24);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.recepcao-header h1 {
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: normal;
}

.recepcao-header-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.recepcao-page-title {
    margin: 0;
}

.recepcao-header-logo {
    position: static;
    display: block;
    grid-column: 2;
    justify-self: center;
    width: 200px;
    height: 44px;
    object-fit: contain;
}

.recepcao-header-left {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

.recepcao-header-user {
    grid-column: 3;
    justify-self: end;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.recepcao-auth-user {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.recepcao-header-user .recepcao-auth-user {
    margin: 0;
}

.recepcao-filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-12) var(--space-16);
    margin: 0 0 var(--space-24);
    flex-wrap: wrap;
}

.recepcao-filter-bar .recepcao-filter-form {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.recepcao-filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    color: var(--text-secondary);
    letter-spacing: normal;
}

.recepcao-filter-bar .recepcao-input,
.recepcao-filter-bar .recepcao-select {
    min-width: 140px;
}

.recepcao-header p {
    color: var(--text-secondary);
    margin: 2px 0 0;
    font-size: 13px;
}

.recepcao-side-menu-wrap {
    position: relative;
    display: inline-flex;
}

.recepcao-menu-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    padding: 0;
}

.recepcao-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.recepcao-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.recepcao-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    background: var(--card-bg);
    border-right: 2px solid var(--border-color);
    box-shadow: 6px 0 24px rgba(0, 0, 0, .6);
    z-index: 100001;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .25s ease-in-out, visibility 0s linear .25s;
    display: flex;
    flex-direction: column;
}

.recepcao-side-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s ease-in-out, visibility 0s;
}

.recepcao-side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.recepcao-side-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.recepcao-side-menu-brand {
    display: flex;
    justify-content: center;
    padding: 24px 20px 12px;
}

.recepcao-side-menu-brand img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: contain;
}

.recepcao-side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.recepcao-side-menu-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    color: var(--text-primary);
    letter-spacing: normal;
}

.recepcao-side-menu-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recepcao-side-menu-close:hover {
    color: var(--text-primary);
}

.recepcao-side-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    overflow-y: auto;
    flex: 1;
}

.recepcao-side-menu-list li {
    margin: 0;
}

.recepcao-side-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
    border-left: 3px solid transparent;
}

.recepcao-side-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-left-color: var(--accent-orange);
}

.recepcao-side-menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

.recepcao-side-menu-icon svg {
    width: 20px;
    height: 20px;
}

.recepcao-side-menu-empty {
    display: block;
    padding: var(--space-24);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.recepcao-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-24);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    color: var(--text-primary);
}

.recepcao-alert-success {
    border-left-color: var(--accent-green);
    background: rgba(88, 214, 141, 0.1);
    color: #b7f5d5;
}

.recepcao-alert-error {
    border-left-color: var(--accent-red);
    background: rgba(255, 107, 107, 0.12);
    color: #ffb8b8;
}

.recepcao-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.recepcao-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.recepcao-checkbox-label code {
    color: var(--accent-orange);
    font-size: 12px;
    background: rgba(255, 111, 61, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.recepcao-section h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
}

.recepcao-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-8);
    margin: 0 0 var(--space-24);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    padding: var(--space-8);
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.recepcao-tab {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--space-8);
    min-height: 40px;
    box-sizing: border-box;
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.recepcao-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.recepcao-tab.is-active,
.recepcao-tab.active,
.recepcao-tab[aria-current="page"] {
    color: var(--accent-orange-soft);
    background: rgba(255, 111, 61, .1);
    border-color: rgba(255, 111, 61, .35);
    font-weight: 700;
}

/* ===== Unified topbar: tabs row + period filter row ===== */
.recepcao-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-8);
    margin: 0 0 var(--space-24);
    padding: var(--space-8) var(--space-12);
    background-image: var(--glass-sheen), linear-gradient(rgb(28 31 36 / .55), rgb(0 0 0 / .32));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft), var(--glass-edge);
    /* Small strip — cheap enough for real backdrop blur; lets colors
       of scrolled content bleed through like frosted glass */
    backdrop-filter: blur(30px) saturate(2);
    -webkit-backdrop-filter: blur(30px) saturate(2);
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 800;
}

.recepcao-topbar .recepcao-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    justify-content: center;
    justify-content: safe center;
}

.recepcao-topbar .recepcao-filter-bar {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    justify-content: center;
}

.recepcao-topbar .recepcao-filter-form {
    width: auto;
    justify-content: center;
}

.recepcao-topbar .recepcao-filter-bar .recepcao-input,
.recepcao-topbar .recepcao-filter-bar .recepcao-select {
    min-width: 0;
}

.recepcao-topbar .recepcao-filter-bar .recepcao-input.recepcao-date-range {
    min-width: 235px;
}

.recepcao-header-meta {
    display: flex;
    gap: var(--space-8);
    margin-top: 8px;
    flex-wrap: wrap;
}

.header-actions,
.recepcao-filter-form {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    flex-wrap: wrap;
}

.recepcao-filter-form {
    width: 100%;
    margin: 0;
}

.recepcao-input,
.recepcao-select {
    min-height: 40px;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font: inherit;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.recepcao-input::placeholder {
    color: var(--text-muted);
}

.iti {
    width: 100%;
}

.iti__tel-input,
.iti input {
    width: 100%;
    box-sizing: border-box;
}

.iti--container {
    z-index: 100003 !important;
}

.iti__dropdown-content,
.iti__country-list {
    z-index: 100004;
    background: #1b1d22 !important;
    border: 1px solid #454a55;
    color: #f2f2f2 !important;
}

.iti__country,
.iti__country-name,
.iti__dial-code {
    color: #f2f2f2 !important;
}

.iti__country {
    background: #1b1d22 !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: #2d323b !important;
}

.iti__search-input {
    display: block;
    margin: 8px auto;
    width: calc(100% - 16px);
    box-sizing: border-box;
    padding: 8px;
    background: #101216 !important;
    color: #fff !important;
    border: 1px solid #454a55;
}

.iti__search-input::placeholder {
    color: #aeb5c0 !important;
    opacity: 1;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: #2d323b;
}

.iti__dial-code {
    color: #c4c8d0;
}

.recepcao-input:focus,
.recepcao-select:focus {
    outline: 2px solid rgba(255, 111, 61, 0.3);
    border-color: var(--accent-orange);
}

/* ===== Buttons — base compartilhada (vidro) ===== */
.btn-refresh,
.recepcao-auth-submit,
.recepcao-btn,
.recepcao-btn-danger,
.recepcao-action-btn {
    background-color: rgb(255 255 255 / .06);
    background-image: var(--glass-sheen);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    min-height: 40px;
    box-sizing: border-box;
    padding: var(--space-8) var(--space-16);
    font-family: inherit;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: var(--radius-sm);
    letter-spacing: normal;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    transition: background-color .14s ease, border-color .14s ease, filter .14s ease, transform .14s ease, box-shadow .14s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), var(--glass-edge);
}

.btn-refresh:hover,
.recepcao-auth-submit:hover,
.recepcao-btn:hover,
.recepcao-btn-danger:hover,
.recepcao-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgb(255 255 255 / .24);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25), var(--glass-edge);
}

.btn-refresh:active,
.recepcao-auth-submit:active,
.recepcao-btn:active,
.recepcao-btn-danger:active,
.recepcao-action-btn:active {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), var(--glass-edge);
}

/* ===== Buttons — variantes ===== */
.btn-refresh,
.recepcao-auth-submit,
.recepcao-btn.is-primary {
    background-color: var(--accent-orange);
    border-color: rgb(255 255 255 / .28);
    color: #161616;
    font-weight: 700;
}

.btn-refresh:hover,
.recepcao-auth-submit:hover,
.recepcao-btn.is-primary:hover {
    color: #161616;
    border-color: rgb(255 255 255 / .5);
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(255, 111, 61, .35), var(--glass-edge);
}

.btn-refresh.is-neutral,
.recepcao-btn.is-neutral,
.recepcao-action-btn.is-neutral {
    background-color: rgb(255 255 255 / .06);
    border-color: var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
}

.btn-refresh.is-neutral:hover,
.recepcao-btn.is-neutral:hover,
.recepcao-btn:hover,
.recepcao-action-btn:hover {
    background-color: rgb(255 255 255 / .1);
    border-color: rgb(255 255 255 / .28);
}

.btn-refresh.is-success,
.recepcao-btn.is-success {
    background-color: var(--accent-green);
    border-color: rgb(255 255 255 / .28);
    color: #102216;
}

.btn-refresh.is-success:hover,
.recepcao-btn.is-success:hover {
    box-shadow: 0 4px 14px rgba(88, 214, 141, .3), var(--glass-edge);
}

.btn-refresh.is-info,
.recepcao-btn.is-info {
    background-color: #52a8ff;
    border-color: rgb(255 255 255 / .28);
    color: #0c1b2e;
}

.btn-refresh.is-info:hover,
.recepcao-btn.is-info:hover {
    box-shadow: 0 4px 14px rgba(82, 168, 255, .3), var(--glass-edge);
}

.btn-refresh.is-danger,
.recepcao-btn.is-danger,
.recepcao-btn-danger,
.recepcao-action-btn-delete {
    background-color: rgba(255, 107, 107, .12);
    border-color: rgba(255, 107, 107, .45);
    color: #ffb8b8;
}

.btn-refresh.is-danger:hover,
.recepcao-btn.is-danger:hover,
.recepcao-btn-danger:hover,
.recepcao-action-btn-delete:hover {
    background-color: rgba(255, 107, 107, .2);
    border-color: var(--accent-red);
    box-shadow: 0 4px 14px rgba(255, 107, 107, .22), var(--glass-edge);
}

.recepcao-tab-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
}

.recepcao-tab-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* KPI Cards (Brutalist) */
.recepcao-kpis {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    margin-bottom: var(--space-32);
}

.kpi-group-title {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin: 0 0 var(--space-12);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
}

.kpi-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.kpi-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-16);
}

.kpi-grid-hero {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* All cards in a single row on wide screens */
.kpi-grid-flow {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .kpi-grid-flow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .kpi-grid-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.kpi-card.kpi-hero {
    min-height: 190px;
    display: flex;
    flex-direction: column;
}

.kpi-card.kpi-hero .kpi-value {
    font-size: clamp(30px, 3.6vw, 44px);
}

.kpi-spark-wrap {
    height: 48px;
    margin-top: auto;
    padding-top: var(--space-12);
}

.kpi-spark {
    width: 100%;
    height: 100%;
    display: block;
}

.kpi-spark-tip {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: #171c24;
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
    z-index: 5;
}

.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    width: fit-content;
}

.kpi-delta.up {
    color: #8ff0bb;
    background: rgba(88, 214, 141, .12);
}

.kpi-delta.down {
    color: #ffb8b8;
    background: rgba(255, 107, 107, .12);
}

.kpi-delta.flat {
    color: var(--text-muted);
    background: rgba(255, 255, 255, .05);
}

.recepcao-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-16);
    width: 100%;
}

.recepcao-kpi-grid .kpi-card {
    min-width: 0;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .recepcao-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .recepcao-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    position: relative;
    background: var(--glass-sheen), var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: var(--space-24);
    border-radius: var(--radius-md);
    text-transform: none;
    box-shadow: var(--shadow-soft), var(--glass-edge);
    min-width: 0;
    word-wrap: break-word;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

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

.kpi-card.highlight,
.kpi-card.orange {
    border-color: rgba(255, 111, 61, .3);
}

.kpi-card.blue {
    border-color: rgba(34, 211, 238, .25);
}

/* Neon variants (soft ambient glow, tech look) — shared by KPI cards and chart boxes */
.neon-green { --neon: 88 214 141; --neon-hi: #8ff0bb; }
.neon-orange { --neon: 255 111 61; --neon-hi: var(--accent-orange-soft); }
.neon-yellow { --neon: 255 193 7; --neon-hi: #ffe082; }
.neon-red { --neon: 255 107 107; --neon-hi: #ffb8b8; }
.neon-blue { --neon: 34 211 238; --neon-hi: #8be9f7; }

.kpi-card[class*="neon-"] {
    border: 1px solid transparent;
    background:
        radial-gradient(120% 70% at 50% 0%, rgb(var(--neon) / .12), transparent 60%) padding-box,
        linear-gradient(rgb(28 31 36 / .5), rgb(28 31 36 / .5)) padding-box,
        linear-gradient(150deg, rgb(255 255 255 / .55), rgb(var(--neon) / .5) 35%, rgb(var(--neon) / .18) 75%, rgb(var(--neon) / .45)) border-box;
    box-shadow:
        0 0 26px -8px rgb(var(--neon) / .45),
        inset 0 1px 0 rgb(255 255 255 / .1);
}

.kpi-card[class*="neon-"] h3 {
    color: var(--neon-hi);
}

.kpi-card[class*="neon-"]:hover {
    background:
        radial-gradient(120% 70% at 50% 0%, rgb(var(--neon) / .2), transparent 65%) padding-box,
        linear-gradient(rgb(28 31 36 / .45), rgb(28 31 36 / .45)) padding-box,
        linear-gradient(150deg, rgb(255 255 255 / .8), rgb(var(--neon) / .85) 35%, rgb(var(--neon) / .3) 75%, rgb(var(--neon) / .7)) border-box;
    box-shadow:
        0 0 44px -6px rgb(var(--neon) / .65),
        inset 0 1px 0 rgb(255 255 255 / .18);
}

.kpi-card h3 {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 10px;
    letter-spacing: normal;
}

.kpi-value {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -.6px;
    white-space: nowrap;
}

.kpi-unit {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 2px;
}

.kpi-sub {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 2px 0 0;
}

.kpi-value-text {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: normal;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Brutalist Asymmetric Grid for Charts */
.recepcao-brutalist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-24);
    margin-bottom: var(--space-32);
}

.chart-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: var(--space-24);
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-soft);
    min-width: 0;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.chart-box:hover {
    transform: translateY(-3px);
}

.chart-box.feature-origins {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    border-color: var(--border-color);
    box-shadow: var(--shadow-soft);
}

.chart-box.feature-origins .chart-container {
    height: 550px;
}

.chart-box h3 {
    margin-top: 0;
    text-align: left;
    font-weight: 700;
    text-transform: none;
    font-size: 15px;
    letter-spacing: normal;
    line-height: 1.4;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-12);
    margin-bottom: var(--space-16);
    color: var(--text-primary);
}

.chart-box.feature-origins h3 {
    border-bottom-color: var(--border-color);
}

.chart-box.black-box {
    background-color: var(--bg-elevated);
    border-color: var(--border-color);
}

.recepcao-marketing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
    min-width: 0;
}

.recepcao-marketing-grid > * {
    min-width: 0;
}

.recepcao-marketing-chart,
.chart-container.recepcao-marketing-chart {
    height: clamp(300px, 45vw, 440px);
    min-width: 0;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 900px) {
    .recepcao-brutalist-grid,
    .recepcao-marketing-grid {
        grid-template-columns: 1fr;
    }

    .recepcao-header {
        align-items: flex-start;
        gap: var(--space-12);
    }

    .recepcao-header h1 {
        font-size: 19px;
    }

    .chart-container:not(.recepcao-marketing-chart) {
        height: 480px !important;
    }

    .chart-box.feature-origins {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .chart-box.feature-origins .chart-container:not(.recepcao-marketing-chart) {
        height: 650px !important;
    }

    .kpi-value:not(.kpi-value-text) {
        font-size: clamp(28px, 4vw, 32px);
    }

    .kpi-card {
        padding: var(--space-16);
    }
}

/* Origins List */
.origin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.origin-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.origin-list li:last-child {
    border-bottom: none;
}

.origin-name {
    color: var(--text-primary);
}

.origin-stats {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Table */
.recepcao-recent-entries {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: var(--space-24);
    border-radius: var(--radius-md);
    scroll-margin-top: 50px;
}

.recepcao-recent-entries h2 {
    font-size: 18px;
    text-transform: none;
    margin: 0 0 20px;
    color: var(--text-primary);
}

.table-responsive {
    overflow-x: auto;
}

.recepcao-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.recepcao-table th,
.recepcao-table td {
    padding: var(--space-8) var(--space-12);
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.recepcao-table th {
    text-transform: none;
    font-size: 12px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, .025);
    font-weight: 700;
    letter-spacing: normal;
}

.recepcao-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: #555;
    display: inline-block;
}

.status-badge.active,
.status-badge.seated {
    background-color: var(--accent-orange);
    color: #000;
}

.status-badge.finished,
.status-badge.left {
    background-color: transparent;
    color: #888;
    border: 1px solid #555;
}

/* Reservations Report Overlay */
.recepcao-report-card {
    width: 100%;
    max-width: 900px;
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-top: 4px solid var(--accent-orange);
    background: linear-gradient(145deg, #20242b, #171a1f);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    position: relative;
}

.recepcao-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-24);
}

.recepcao-section-spaced {
    margin-top: 16px;
}

.recepcao-subtext {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.recepcao-note {
    color: var(--text-secondary);
    font-size: 13px;
}

.recepcao-inline-accent {
    color: var(--accent-orange-soft);
    font-weight: 700;
}

.recepcao-flex-split {
    display: flex;
    gap: var(--space-24);
    flex-wrap: wrap;
}

.recepcao-panel {
    background: #20242b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-24);
}

.recepcao-panel h3 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
}

.recepcao-form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.recepcao-muted {
    color: var(--text-muted);
}

.recepcao-code {
    background: #0c0e12;
    padding: 4px 8px;
    color: #9fffb5;
    border-radius: 4px;
    border: 1px solid #243528;
}

.recepcao-stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.recepcao-end {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-12);
}

.recepcao-actions-row {
    display: flex;
    gap: var(--space-12);
    flex-wrap: wrap;
    align-items: center;
}

.recepcao-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: #2a303a;
    color: #e8ecf3;
    font-size: 12px;
    font-weight: 700;
}

.recepcao-map-panel {
    background: #111418;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: var(--space-24);
    margin-bottom: 30px;
    position: relative;
}

.recepcao-toolbar {
    display: flex;
    gap: var(--space-12);
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #222833;
    background: #14181d;
}

.recepcao-report-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.recepcao-report-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
}

.recepcao-report-subtitle {
    margin: 0 0 18px;
    color: #bdbdbd;
    font-size: 14px;
}

.recepcao-report-actions {
    display: flex;
    gap: var(--space-12);
    margin-bottom: var(--space-24);
    flex-wrap: wrap;
}

.recepcao-report-chart-container {
    position: relative;
    height: 450px;
    width: 100%;
}

.recepcao-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.recepcao-modal {
    background: #1a1d23;
    border: 1px solid var(--border-strong);
    border-top: 4px solid var(--accent-orange);
    border-radius: var(--radius-md);
    padding: var(--space-24);
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}

.recepcao-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.recepcao-modal-close:hover {
    color: var(--text-primary);
}

.recepcao-modal-title {
    margin: 0 0 18px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
}

.recepcao-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.recepcao-form-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 22px;
}

.recepcao-form-block {
    margin-bottom: 22px;
}

.recepcao-form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.recepcao-form-label .recepcao-input,
.recepcao-form-label .recepcao-select,
.recepcao-form-label textarea {
    margin-top: 4px;
    width: 100%;
    display: block;
}

.recepcao-form-error {
    color: #ff8a80;
    margin: 12px 0 0;
    font-size: 13px;
}

.recepcao-actions {
    display: inline-flex;
    gap: var(--space-8);
    align-items: center;
    white-space: nowrap;
}

.recepcao-contact-cell {
    display: table-cell;
    white-space: nowrap;
    vertical-align: middle;
}

.recepcao-contact-cell > span {
    vertical-align: middle;
}

.recepcao-whatsapp-btn,
button.recepcao-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0;
    vertical-align: middle;
    border: none;
    border-radius: 50%;
    background: #25d366;
    color: #092b16;
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, filter .14s ease;
}

.recepcao-whatsapp-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.recepcao-whatsapp-btn:hover,
.recepcao-whatsapp-btn:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Menu de mensagens WhatsApp (CRM) */
.recepcao-crm-whatsapp {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 8px;
}

.recepcao-crm-whatsapp-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 180px;
    background: #1a1d23;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    z-index: 1000;
}

.recepcao-crm-whatsapp-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.recepcao-crm-whatsapp-option + .recepcao-crm-whatsapp-option {
    border-top: 1px solid var(--border-color);
}

.recepcao-crm-whatsapp-option:hover {
    background: rgb(255 255 255 / .06);
}

/* Feedback dos garçons */
.recepcao-feedback-head h2 {
    margin: 0;
}

.recepcao-feedback-head .recepcao-muted {
    margin-top: 8px;
}

.recepcao-feedback-filters {
    margin: 22px 0;
    align-items: end;
}

.recepcao-feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-16);
    margin-top: 18px;
}

.recepcao-feedback-grid.recepcao-feedback-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 0;
}

.recepcao-feedback-panel {
    margin: 0;
    padding: 18px;
}

.recepcao-feedback-panel h3 {
    margin-top: 0;
}

.recepcao-feedback-dish {
    margin: 14px 0;
}

.recepcao-feedback-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 28px 0 12px;
}

.recepcao-feedback-list-head h3 {
    margin: 0;
}

.recepcao-rating-track {
    height: 7px;
    background: var(--accent-red);
    border-radius: 9px;
    margin-top: 8px;
    overflow: hidden;
}

.recepcao-rating-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 9px;
}

.recepcao-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recepcao-rank-row-compact {
    padding: 0;
    border-bottom: 0;
}

.recepcao-feedback-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 18px;
}

.recepcao-feedback-card.is-like {
    border-color: #315d48;
    border-left-color: var(--accent-green);
}

.recepcao-feedback-card.is-dislike {
    border-color: #633b43;
    border-left-color: var(--accent-red);
}

.recepcao-feedback-card-head {
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    align-items: flex-start;
}

.recepcao-feedback-table {
    font-size: 18px;
}

.recepcao-feedback-card-head .recepcao-muted {
    margin-top: 4px;
}

.recepcao-feedback-rating {
    font-weight: 800;
    text-transform: uppercase;
}

.recepcao-feedback-rating.is-like { color: var(--accent-green); }
.recepcao-feedback-rating.is-dislike { color: var(--accent-red); }

.recepcao-feedback-lead {
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.recepcao-feedback-waiter {
    margin: 0 0 12px;
}

.recepcao-feedback-note {
    margin: 14px 0 0;
    line-height: 1.5;
}

.recepcao-feedback-dishes {
    padding: 10px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    color: var(--accent-orange-soft);
    font-size: 13px;
}

.recepcao-action-btn {
    padding: 6px var(--space-8);
    min-height: 32px;
    font-size: 12px;
    font-weight: 500;
}

.recepcao-action-btn svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.recepcao-city-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100005;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #454a55;
    border-radius: 6px;
    background: #1b1d22;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

.recepcao-city-autocomplete-item {
    padding: 10px 12px;
    color: #f2f2f2;
    cursor: pointer;
    border-bottom: 1px solid #2c3038;
}

.recepcao-city-autocomplete-item:hover {
    background: #2d323b;
}

.recepcao-whatsapp-settings {
    max-width: 860px;
    margin: 24px auto;
}

.recepcao-whatsapp-form {
    margin-top: 22px;
    padding: var(--space-24);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #202329, #17191e);
}

.recepcao-whatsapp-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.recepcao-whatsapp-form textarea {
    width: 100%;
    min-height: 170px;
    padding: var(--space-16);
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #101216;
    color: var(--text-primary);
    font: inherit;
    line-height: 1.5;
}

.recepcao-whatsapp-form textarea:focus {
    outline: 2px solid rgba(255, 111, 61, .3);
    border-color: var(--accent-orange);
}

.recepcao-whatsapp-form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
    margin-top: 18px;
}

.recepcao-whatsapp-notice {
    margin-top: 18px;
    padding: 12px 14px;
    border-left: 4px solid #25d366;
    border-radius: var(--radius-sm);
    background: rgba(37, 211, 102, .12);
    color: #baf5cd;
}

.recepcao-dedupe-modal {
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
}

.recepcao-dedupe-list {
    display: grid;
    gap: var(--space-12);
    max-height: 420px;
    overflow-y: auto;
    margin: 18px 0;
}

.recepcao-dedupe-group {
    padding: var(--space-16);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #111317;
}

.recepcao-dedupe-group ul {
    margin: 8px 0 0 18px;
    padding: 0;
    color: var(--text-secondary);
}

.recepcao-dedupe-empty {
    padding: var(--space-24);
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .recepcao-report-chart-container {
        height: 350px !important;
    }

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

.recepcao-section-heading,
.recepcao-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-16);
    flex-wrap: wrap;
    margin-bottom: var(--space-24);
}

.recepcao-section-heading h2,
.recepcao-page-heading h2 {
    margin: 0 0 5px;
}

.recepcao-section-heading p,
.recepcao-page-heading p {
    margin: 0;
}

.recepcao-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.recepcao-action-toolbar-primary,
.recepcao-action-toolbar-secondary,
.recepcao-form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.recepcao-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.recepcao-filter-field-grow {
    flex: 1 1 230px;
}

.recepcao-filter-summary {
    width: 100%;
    color: var(--text-secondary);
    font-size: 12px;
}

.btn-refresh:disabled,
.recepcao-auth-submit:disabled,
.recepcao-btn:disabled,
.recepcao-btn-danger:disabled,
.recepcao-action-btn:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
    filter: none;
}

.recepcao-auth-block :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.recepcao-wrap :where(a, button, input, select, textarea, [tabindex]):focus-visible,
.recepcao-modal-overlay :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.table-responsive:focus-visible {
    border-radius: var(--radius-sm);
}

.recepcao-table caption {
    padding: 0 0 12px;
    color: var(--text-secondary);
    text-align: left;
}

.recepcao-empty-state {
    padding: 30px 18px !important;
    color: var(--text-muted) !important;
    text-align: center !important;
}

.recepcao-accent-text {
    color: var(--accent-orange);
}

.recepcao-error-text {
    color: var(--accent-red);
    text-align: center;
    padding: var(--space-24);
}

.recepcao-editor-placeholder {
    background: var(--card-bg, #22262c);
    border: 1px solid var(--border-color, #343940);
    border-radius: var(--radius-md, 10px);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary, #b9bdc6);
    font-family: inherit;
}

.recepcao-editor-placeholder h3 {
    color: var(--text-primary, #f4f4f2);
    margin-top: 0;
}

/* ===== Cards administrativos (wp-admin dentro de .recepcao-wrap) ===== */
.recepcao-admin-card {
    max-width: 900px;
    background: var(--card-bg);
    background-image: var(--glass-sheen);
    color: var(--text-primary);
    padding: var(--space-24);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-24);
    box-shadow: var(--glass-edge);
}

.recepcao-admin-card.is-narrow {
    max-width: 760px;
}

.recepcao-wrap .form-table th,
.recepcao-wrap .form-table td {
    color: var(--text-primary);
}

.recepcao-wrap .form-table input.regular-text,
.recepcao-wrap .form-table input[type="text"],
.recepcao-wrap .form-table input[type="email"],
.recepcao-wrap .form-table input[type="password"],
.recepcao-wrap .form-table input[type="number"],
.recepcao-wrap .form-table select,
.recepcao-wrap .form-table textarea {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.recepcao-wrap .form-table input:focus,
.recepcao-wrap .form-table select:focus,
.recepcao-wrap .form-table textarea:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 1px var(--accent-orange);
}

.recepcao-wrap .widefat,
.recepcao-wrap .widefat thead th,
.recepcao-wrap .widefat thead td,
.recepcao-wrap .widefat tbody td,
.recepcao-wrap .widefat tfoot th,
.recepcao-wrap .widefat tfoot td {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.recepcao-wrap .widefat tbody tr:nth-child(odd),
.recepcao-wrap .widefat.striped tbody tr:nth-child(odd) {
    background: var(--bg-elevated);
}

.recepcao-wrap .widefat tbody tr:hover {
    background: rgb(255 255 255 / .05);
}

.recepcao-wrap .description,
.recepcao-wrap code {
    color: var(--text-secondary);
}

.recepcao-wrap code {
    background: var(--bg-elevated);
}

.recepcao-wrap .notice {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Componentes nativos do wp-admin dentro do shell escuro */
.wrap.recepcao-wrap .button,
.wrap.recepcao-wrap .button-secondary {
    background: rgb(255 255 255 / .06);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.wrap.recepcao-wrap .button:hover,
.wrap.recepcao-wrap .button-secondary:hover {
    background: rgb(255 255 255 / .1);
    border-color: rgb(255 255 255 / .28);
    color: var(--text-primary);
}

.wrap.recepcao-wrap .button-primary {
    background: var(--accent-orange);
    border-color: rgb(255 255 255 / .28);
    color: #161616;
}

.wrap.recepcao-wrap .button-primary:hover,
.wrap.recepcao-wrap .button-primary:focus {
    background: var(--accent-orange);
    border-color: rgb(255 255 255 / .5);
    color: #161616;
    filter: brightness(1.06);
}

.wrap.recepcao-wrap h1,
.wrap.recepcao-wrap h2,
.wrap.recepcao-wrap h3 {
    color: var(--text-primary);
}

/* ===== Paginação ===== */
.recepcao-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    flex-wrap: wrap;
    margin-top: var(--space-16);
}

.recepcao-pagination-info {
    color: var(--text-secondary);
}

.recepcao-pagination-links {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    flex-wrap: wrap;
}

.recepcao-pagination-links .recepcao-btn {
    min-height: 32px;
    padding: 5px 12px;
}

.recepcao-pagination-links .recepcao-btn.is-current {
    background-color: var(--accent-orange);
    border-color: rgb(255 255 255 / .28);
    color: #161616;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

.recepcao-pagination-ellipsis {
    padding: 5px 8px;
    color: var(--text-muted);
}

/* ===== Utilitários de formulário ===== */
.recepcao-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--accent-orange);
}

.recepcao-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: var(--space-16);
    background: #111318;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.recepcao-check-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    cursor: pointer;
}

.recepcao-more-filters {
    width: 100%;
    gap: var(--space-12);
    flex-wrap: wrap;
    align-items: end;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

.recepcao-kicker {
    margin: 0 0 6px;
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.recepcao-capacity-alert {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--radius-sm);
    background: rgba(255, 111, 61, .14);
    color: var(--text-primary);
    font-weight: 500;
}

.recepcao-capacity-alert.is-full {
    border-left-color: var(--accent-red);
    background: rgba(255, 107, 107, .16);
}

.recepcao-dialog-open {
    overflow: hidden;
}

.recepcao-modal-wide {
    max-width: 900px;
}

.recepcao-modal-description {
    margin: -8px 0 18px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recepcao-export-toolbar {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.recepcao-export-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: var(--space-16);
    background: var(--bg-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.recepcao-export-field {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    cursor: pointer;
}

.recepcao-form-error[role="alert"]:empty {
    display: none;
}

.recepcao-notifications {
    position: fixed;
    z-index: 100010;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: var(--space-12);
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.recepcao-toast {
    padding: 13px 16px;
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    background: #20242b;
    color: var(--text-primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.recepcao-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.recepcao-toast-success {
    border-left-color: var(--accent-green);
}

.recepcao-toast-error {
    border-left-color: var(--accent-red);
}

.recepcao-autocomplete[role="listbox"] {
    top: 100%;
    margin-top: 4px;
    overflow-y: auto;
    max-height: 240px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #111318;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}

.recepcao-autocomplete-option {
    padding: 10px 12px;
    color: var(--text-primary);
    cursor: pointer;
}

.recepcao-autocomplete-option + .recepcao-autocomplete-option {
    border-top: 1px solid var(--border-color);
}

.recepcao-autocomplete-option:hover,
.recepcao-autocomplete-option.is-active {
    background: #2d323b;
}

.recepcao-map-heading,
.recepcao-map-legend {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.recepcao-map-heading {
    justify-content: space-between;
    margin-bottom: 16px;
}

.recepcao-map-heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: normal;
    text-transform: none;
}

.recepcao-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.recepcao-map-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.recepcao-map-status {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: #0f1115;
    color: var(--text-secondary);
    font-size: 12px;
}

.recepcao-map-legend-swatch.is-free { background: var(--map-free); }
.recepcao-map-legend-swatch.is-reserved { background: var(--map-reserved); }
.recepcao-map-legend-swatch.is-occupied { background: var(--map-occupied); }
.recepcao-map-legend-swatch.is-wall { background: var(--map-wall); }

.recepcao-map-canvas {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid #222833;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.recepcao-map-canvas-area {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.recepcao-map-canvas-area canvas {
    display: block;
    width: 100%;
    cursor: default;
}

.recepcao-map-tool {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.recepcao-map-layout-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.recepcao-map-tooltip {
    display: none;
    position: absolute;
    z-index: 100;
    max-width: 220px;
    padding: 10px 14px;
    border: 1px solid var(--accent-orange);
    border-radius: var(--radius-sm);
    background: rgb(20 22 27 / .92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    color: var(--text-primary);
    font-size: 12px;
    pointer-events: none;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.recepcao-map-tooltip .map-tip-title {
    color: var(--accent-orange);
    font-size: 14px;
}

.recepcao-map-tooltip .map-tip-muted {
    color: var(--text-muted);
}

.recepcao-map-tooltip .map-tip-occupied,
.recepcao-map-tooltip .map-tip-reserved,
.recepcao-map-tooltip .map-tip-free {
    font-weight: 700;
}

.recepcao-map-tooltip .map-tip-occupied { color: var(--map-occupied); }
.recepcao-map-tooltip .map-tip-reserved { color: var(--map-reserved); }
.recepcao-map-tooltip .map-tip-free { color: var(--map-free); }

.recepcao-map-sidebar {
    width: 100%;
    background: #16181d;
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    font-size: 11px;
    color: var(--text-primary);
}

.recepcao-map-sidebar-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.recepcao-map-sidebar-title {
    margin: 0 0 10px;
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 11px;
}

.recepcao-map-sidebar-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
}

.recepcao-map-sidebar-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.recepcao-map-sidebar .recepcao-map-field {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
}

.recepcao-map-sidebar .recepcao-input {
    width: 100%;
    min-height: 0;
    padding: 4px 6px;
    font-size: 12px;
}

.recepcao-map-sidebar .recepcao-map-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    margin-top: 18px;
}

@media (max-width: 768px) {
    .recepcao-auth-form .recepcao-input {
        font-size: 16px;
    }

    .recepcao-wrap {
        margin-left: 0;
        padding: var(--space-16);
    }

    .recepcao-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .recepcao-header-left,
    .recepcao-header-user {
        grid-column: 1;
        width: 100%;
    }

    .recepcao-header-logo {
        width: 96px;
        height: 38px;
    }

    .recepcao-header-user .recepcao-auth-user {
        justify-content: space-between !important;
        width: 100%;
    }

    .recepcao-filter-bar .recepcao-filter-form,
    .recepcao-actions-row.recepcao-auto-filter-form {
        align-items: stretch;
    }

    .recepcao-filter-field,
    .recepcao-filter-bar .recepcao-input,
    .recepcao-filter-bar .recepcao-select {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .recepcao-modal,
    .recepcao-report-card {
        padding: 22px 18px;
    }

    .recepcao-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .recepcao-toolbar > * {
        flex: 0 0 auto;
    }
}

@media (max-width: 680px) {
    .recepcao-table-mobile,
    .recepcao-table-mobile tbody,
    .recepcao-table-mobile tr,
    .recepcao-table-mobile td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .recepcao-table-mobile thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .recepcao-table-mobile tr {
        margin-bottom: 12px;
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        background: #15181d;
    }

    .recepcao-table-mobile td {
        display: grid;
        grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
        gap: var(--space-12);
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
        white-space: normal;
    }

    .recepcao-table-mobile td:last-child {
        border-bottom: 0;
    }

    .recepcao-table-mobile td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: normal;
        text-transform: none;
    }

    .recepcao-table-mobile .recepcao-empty-state {
        display: block;
    }

    .recepcao-table-mobile .recepcao-empty-state::before {
        content: none;
    }

    .recepcao-table-mobile .recepcao-actions,
    .recepcao-table-mobile .recepcao-contact-cell {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        white-space: normal;
    }

    .recepcao-table-mobile .recepcao-actions::before,
    .recepcao-table-mobile .recepcao-contact-cell::before {
        flex: 0 0 90px;
    }

    .recepcao-action-toolbar-primary,
    .recepcao-action-toolbar-secondary,
    .recepcao-form-actions,
    .recepcao-action-toolbar .btn-refresh,
    .recepcao-action-toolbar .recepcao-btn {
        width: 100%;
    }

    .recepcao-action-toolbar-primary .btn-refresh,
    .recepcao-action-toolbar-secondary .btn-refresh,
    .recepcao-form-actions .btn-refresh,
    .recepcao-action-toolbar-primary .recepcao-btn,
    .recepcao-action-toolbar-secondary .recepcao-btn,
    .recepcao-form-actions .recepcao-btn {
        flex: 1 1 140px;
    }

    .recepcao-filter-field,
    .recepcao-filter-bar .recepcao-input,
    .recepcao-filter-bar .recepcao-select {
        flex-basis: 100%;
        width: 100%;
    }

    .recepcao-map-panel,
    .recepcao-section,
    .recepcao-recent-entries {
        padding: var(--space-16);
    }

    .recepcao-notifications {
        right: 16px;
        bottom: 16px;
    }
}

.recepcao-skip-link {
    position: fixed;
    z-index: 100020;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent-orange);
    color: #111318;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
}

.recepcao-skip-link:focus {
    transform: translateY(0);
}

.recepcao-autocomplete-option:is(button) {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}

.status-badge.confirmed {
    background: rgba(88, 214, 141, .2);
    color: #aaf0c9;
}

.status-badge.pending {
    background: rgba(255, 193, 7, .18);
    color: #ffe082;
}

.status-badge.cancelled {
    background: rgba(255, 107, 107, .16);
    color: #ffb8b8;
}

/* Status de leads do CRM */
.status-badge.lead-novo {
    background: rgba(34, 211, 238, .18);
    color: #8be9f7;
}

.status-badge.lead-em-atendimento {
    background: rgba(255, 193, 7, .18);
    color: #ffe082;
}

.status-badge.lead-convertido {
    background: rgba(88, 214, 141, .2);
    color: #aaf0c9;
}

.status-badge.lead-perdido {
    background: rgba(255, 107, 107, .16);
    color: #ffb8b8;
}

.status-badge.lead-aguardando {
    background: rgb(255 255 255 / .08);
    color: var(--text-secondary);
}

.status-badge.lead-aguardando {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
}

.recepcao-confirm-card {
    max-width: 460px;
}

.recepcao-confirm-card .recepcao-form-actions {
    justify-content: flex-end;
}

@media (pointer: coarse) {
    .recepcao-input,
    .recepcao-select,
    .recepcao-auth-submit,
    .btn-refresh,
    .recepcao-tab,
    .recepcao-btn-danger,
    .recepcao-btn,
    .recepcao-action-btn,
    .recepcao-whatsapp-btn,
    button.recepcao-whatsapp-btn {
        min-height: 44px;
    }

    .recepcao-whatsapp-btn,
    button.recepcao-whatsapp-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 680px) {
    #tableMapSidebar > div {
        flex-direction: column;
    }

    .recepcao-map-heading {
        align-items: flex-start;
    }

    .recepcao-map-legend {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recepcao-auth-block *,
    .recepcao-auth-block *::before,
    .recepcao-auth-block *::after,
    .recepcao-wrap *,
    .recepcao-wrap *::before,
    .recepcao-wrap *::after,
    .recepcao-modal-overlay *,
    .recepcao-modal-overlay *::before,
    .recepcao-modal-overlay *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ----------------------------------------------------------------------
   Glass surfaces (futuristic treatment shared across the plugin)
---------------------------------------------------------------------- */
.recepcao-section,
.recepcao-panel,
.recepcao-recent-entries,
.recepcao-map-panel,
.recepcao-filter-bar,
.chart-box,
.recepcao-modal,
.recepcao-toast,
.recepcao-side-menu {
    background-image: var(--glass-sheen);
    background-color: var(--glass-bg);
    border-color: var(--glass-border);
}

/* Real blur only on small overlays — backdrop-filter on large
   surfaces is too expensive during page animations/scroll. */
.recepcao-modal,
.recepcao-toast,
.recepcao-side-menu {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.recepcao-section,
.recepcao-panel,
.recepcao-recent-entries,
.recepcao-map-panel,
.recepcao-filter-bar,
.chart-box {
    box-shadow: var(--shadow-soft), var(--glass-edge);
}

.recepcao-modal {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5), var(--glass-edge);
}

.recepcao-toast {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45), var(--glass-edge);
}

.recepcao-side-menu {
    box-shadow: 6px 0 24px rgba(0, 0, 0, .6), var(--glass-edge);
}

/* Glass inputs */
.recepcao-input,
.recepcao-select {
    background: rgb(255 255 255 / .04);
    border-color: rgb(255 255 255 / .16);
}

.recepcao-input:focus,
.recepcao-select:focus {
    box-shadow: 0 0 0 3px rgb(255 111 61 / .16), 0 0 18px -4px rgb(255 111 61 / .5);
}

/* Active tab accent glow */
.recepcao-tab.is-active,
.recepcao-tab.active,
.recepcao-tab[aria-current="page"] {
    box-shadow: 0 0 18px -6px rgb(255 111 61 / .45), inset 0 1px 0 rgb(255 255 255 / .08);
}

/* ----------------------------------------------------------------------
   Motion & page transitions (premium feel)
---------------------------------------------------------------------- */
@view-transition {
    navigation: auto;
}

@keyframes recepcao-vt-out {
    to {
        opacity: 0;
        transform: translateX(-18px);
    }
}

@keyframes recepcao-vt-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
}

::view-transition-old(root) {
    animation: recepcao-vt-out .16s ease-in both;
}

::view-transition-new(root) {
    animation: recepcao-vt-in .26s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes recepcao-page-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes recepcao-page-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes recepcao-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes recepcao-fade-in {
    from {
        opacity: 0;
    }
}

.recepcao-wrap {
    animation: recepcao-page-in .3s cubic-bezier(.22, .61, .36, 1) backwards;
}

.recepcao-wrap.recepcao-page-out {
    animation: recepcao-page-out .15s ease-in forwards;
}

/* Staggered entrance: KPI cards, chart boxes and table rows cascade in */
.kpi-group-grid > *,
.recepcao-kpi-grid > *,
.recepcao-brutalist-grid > * {
    animation: recepcao-fade-up .45s cubic-bezier(.22, .61, .36, 1) backwards;
}

.kpi-group-grid > :nth-child(1),
.recepcao-kpi-grid > :nth-child(1),
.recepcao-brutalist-grid > :nth-child(1) { animation-delay: .05s; }

.kpi-group-grid > :nth-child(2),
.recepcao-kpi-grid > :nth-child(2),
.recepcao-brutalist-grid > :nth-child(2) { animation-delay: .1s; }

.kpi-group-grid > :nth-child(3),
.recepcao-kpi-grid > :nth-child(3),
.recepcao-brutalist-grid > :nth-child(3) { animation-delay: .15s; }

.kpi-group-grid > :nth-child(4),
.recepcao-kpi-grid > :nth-child(4),
.recepcao-brutalist-grid > :nth-child(4) { animation-delay: .2s; }

.kpi-group-grid > :nth-child(5),
.recepcao-kpi-grid > :nth-child(5),
.recepcao-brutalist-grid > :nth-child(5) { animation-delay: .25s; }

.kpi-group-grid > :nth-child(6),
.recepcao-kpi-grid > :nth-child(6),
.recepcao-brutalist-grid > :nth-child(6) { animation-delay: .3s; }

.kpi-group-grid > :nth-child(7),
.recepcao-kpi-grid > :nth-child(7),
.recepcao-brutalist-grid > :nth-child(7) { animation-delay: .35s; }

.kpi-group-grid > :nth-child(8),
.recepcao-kpi-grid > :nth-child(8),
.recepcao-brutalist-grid > :nth-child(8) { animation-delay: .4s; }

.kpi-group-grid > :nth-child(n+9),
.recepcao-kpi-grid > :nth-child(n+9),
.recepcao-brutalist-grid > :nth-child(n+9) { animation-delay: .44s; }

.recepcao-dashboard table tbody tr {
    animation: recepcao-fade-in .35s ease backwards;
}

.recepcao-dashboard table tbody tr:nth-child(1) { animation-delay: .1s; }
.recepcao-dashboard table tbody tr:nth-child(2) { animation-delay: .14s; }
.recepcao-dashboard table tbody tr:nth-child(3) { animation-delay: .18s; }
.recepcao-dashboard table tbody tr:nth-child(4) { animation-delay: .22s; }
.recepcao-dashboard table tbody tr:nth-child(5) { animation-delay: .26s; }
.recepcao-dashboard table tbody tr:nth-child(6) { animation-delay: .3s; }
.recepcao-dashboard table tbody tr:nth-child(7) { animation-delay: .34s; }
.recepcao-dashboard table tbody tr:nth-child(n+8) { animation-delay: .38s; }

/* ===== Datepicker próprio ===== */
.recepcao-date-src {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recepcao-date-pair-end {
    display: none !important;
}

.recepcao-date {
    cursor: pointer;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6f3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.recepcao-date-range,
.recepcao-filter-bar .recepcao-input.recepcao-date-range,
.recepcao-topbar .recepcao-filter-bar .recepcao-input.recepcao-date-range {
    min-width: 235px;
}

.recepcao-datepicker {
    position: fixed;
    z-index: 100020;
    display: none;
    width: 268px;
    padding: var(--space-12);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(180deg, rgb(28 31 36 / .82), rgb(0 0 0 / .6)),
        var(--glass-sheen);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), var(--glass-edge);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    user-select: none;
}

.recepcao-datepicker.is-open {
    display: block;
    animation: recepcao-fade-up .18s cubic-bezier(.2, .8, .25, 1) both;
}

.recepcao-dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.recepcao-dp-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.recepcao-dp-title:hover {
    background: rgb(255 255 255 / .08);
    color: var(--accent-orange);
}

.recepcao-datepicker.is-year-mode .recepcao-dp-week,
.recepcao-datepicker.is-months-mode .recepcao-dp-week {
    display: none;
}

.recepcao-datepicker.is-year-mode .recepcao-dp-grid,
.recepcao-datepicker.is-months-mode .recepcao-dp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.recepcao-dp-month,
.recepcao-dp-year {
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: var(--space-12) var(--space-8);
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

.recepcao-dp-month:hover,
.recepcao-dp-year:hover {
    background: rgb(255 255 255 / .1);
}

.recepcao-dp-month.is-today,
.recepcao-dp-year.is-today {
    box-shadow: inset 0 0 0 1px var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 700;
}

.recepcao-dp-month.is-selected,
.recepcao-dp-year.is-selected {
    background: var(--accent-orange);
    color: #161616;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 111, 61, .35);
}

.recepcao-dp-nav {
    width: 28px;
    height: 28px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgb(255 255 255 / .05);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.recepcao-dp-nav:hover {
    background: rgb(255 255 255 / .1);
    border-color: var(--accent-orange);
    color: var(--text-primary);
}

.recepcao-dp-week,
.recepcao-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.recepcao-dp-week {
    margin-bottom: 4px;
}

.recepcao-dp-week span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    padding: 4px 0;
}

.recepcao-dp-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

.recepcao-dp-day:hover {
    background: rgb(255 255 255 / .1);
}

.recepcao-dp-day.is-today {
    box-shadow: inset 0 0 0 1px var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 700;
}

.recepcao-dp-day.is-in-range {
    background: rgba(255, 111, 61, .14);
    border-radius: 0;
}

.recepcao-dp-day.is-selected,
.recepcao-dp-day.is-range-start,
.recepcao-dp-day.is-range-end {
    background: var(--accent-orange);
    color: #161616;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 111, 61, .35);
}

.recepcao-dp-day.is-range-start {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.recepcao-dp-day.is-range-end {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.recepcao-dp-day.is-selected {
    border-radius: var(--radius-sm);
}

.recepcao-dp-day.is-preview-range {
    background: rgba(255, 111, 61, .14);
    border-radius: 0;
}

.recepcao-dp-day.is-preview {
    background: rgba(255, 111, 61, .4);
    color: #fff;
    font-weight: 700;
}

.recepcao-dp-foot {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recepcao-dp-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.recepcao-dp-today {
    border: 0;
    background: transparent;
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background .14s ease;
}

.recepcao-dp-today:hover {
    background: rgba(255, 111, 61, .12);
}

/* ===== Dropdown próprio (select) ===== */
.recepcao-select-src {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recepcao-select-display {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    text-align: left;
}

/* .recepcao-form-label força display:block em .recepcao-select — manter flex no botão */
.recepcao-form-label .recepcao-select.recepcao-select-display {
    display: inline-flex;
}

.recepcao-select-display .recepcao-sb-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.recepcao-sb-chevron {
    flex: 0 0 auto;
    color: var(--text-muted);
    transition: transform .18s ease;
}

.recepcao-select-display.is-open .recepcao-sb-chevron {
    transform: rotate(180deg);
    color: var(--accent-orange);
}

.recepcao-select-display:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.recepcao-selectbox {
    position: fixed;
    z-index: 100020;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(180deg, rgb(28 31 36 / .88), rgb(0 0 0 / .7)),
        var(--glass-sheen);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), var(--glass-edge);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    scrollbar-width: thin;
}

.recepcao-selectbox.is-open {
    display: block;
    animation: recepcao-fade-up .18s cubic-bezier(.2, .8, .25, 1) both;
}

.recepcao-sb-option {
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .12s ease, color .12s ease;
}

.recepcao-sb-option.is-focus {
    background: rgb(255 255 255 / .09);
}

.recepcao-sb-option.is-selected {
    color: var(--accent-orange);
    font-weight: 700;
}

.recepcao-sb-option.is-selected::after {
    content: '✓';
    float: right;
    margin-left: var(--space-8);
}

.recepcao-sb-option.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}
