.beto-brand {
    min-height: 132px;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px 24px 20px !important;
    margin: calc(var(--space-s) * -1) calc(var(--space-s) * -1) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--hub-text);
    font-family: 'Albert Sans', sans-serif;
    text-align: left !important;
}

.beto-brand__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.beto-brand__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.beto-brand__logo {
    width: auto;
    height: 22px;
    object-fit: contain;
    display: block;
    transition: transform 160ms ease, filter 160ms ease;
}

.beto-brand__link:hover .beto-brand__logo {
    filter: drop-shadow(0 0 10px rgba(203, 123, 55, 0.34));
    transform: translateY(-1px);
}

.beto-brand__domain {
    color: var(--beto-gray);
    font-size: var(--hub-text-body);
    line-height: 1;
    font-weight: var(--hub-weight-light);
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.beto-brand__version {
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-eyebrow);
    line-height: 1;
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.04em;
}

.beto-brand__link:hover .beto-brand__domain {
    color: var(--hub-text);
}

.v6-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--hub-primary);
    font-size: var(--hub-text-eyebrow);
    line-height: 1.2;
    font-weight: var(--hub-weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.v6-title {
    margin: 4px 0 0 0;
    color: var(--hub-text);
    font-size: var(--hub-text-page);
    line-height: 1.05;
    font-weight: var(--hub-weight-light);
    letter-spacing: 0;
}

.v6-title b {
    font-weight: var(--hub-weight-semibold);
}

.beto-tabs,
.beto-subtabs {
    display: grid;
    gap: var(--space-xs);
    margin: 0;
    border: 0;
    background: transparent;
}

.beto-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.beto-subtabs {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.beto-app[data-view="estrategia"] .beto-context-tabs--sim,
.beto-app[data-view="simulador"] .beto-context-tabs--sim {
    display: grid;
}

.beto-tab,
.beto-subtab,
.hub-tab {
    position: relative;
    min-height: 42px;
    padding: 0 var(--space-xs);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.025);
    color: var(--hub-text-muted);
    font: inherit;
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.beto-tab span,
.beto-subtab span,
.hub-tab span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beto-tab:hover,
.beto-tab.is-active,
.beto-subtab:hover,
.beto-subtab.is-active,
.hub-tab:hover,
.hub-tab.is-active {
    background: rgba(203, 123, 55, 0.1);
    border-color: rgba(203, 123, 55, 0.5);
    color: var(--hub-primary-hover);
    box-shadow: none;
}

.beto-rail .beto-tab.is-active {
    border-color: transparent;
    background: rgba(203, 123, 55, 0.12);
    color: var(--hub-primary-hover);
}

.beto-tab--inline {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    min-height: auto;
    padding: 4px 12px;
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-medium);
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--hub-text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.beto-tab--inline:hover {
    background: transparent;
    border-color: transparent;
    color: var(--hub-text);
}

.beto-tab--inline.is-active {
    background: transparent;
    border-bottom-color: var(--hub-primary);
    color: var(--hub-primary);
}

.beto-rail .beto-tab.is-active::before {
    background: var(--hub-primary);
}

.beto-app[data-view="home"] .beto-tab.is-active {
    background: rgba(203, 123, 55, 0.1);
    border-color: rgba(203, 123, 55, 0.5);
    color: var(--hub-primary-hover);
    box-shadow: none;
}

.beto-app[data-view="home"] .beto-rail .beto-tab.is-active {
    background: rgba(203, 123, 55, 0.13);
    color: var(--hub-primary-hover);
}

.beto-app[data-view="home"] .beto-rail .beto-tab.is-active::before {
    background: var(--hub-primary);
}

.beto-app[data-view="analysis"] .beto-tab.is-active {
    background: rgba(79, 151, 104, 0.1);
    border-color: rgba(79, 151, 104, 0.5);
    color: var(--hub-success)
    box-shadow: none;
}

.beto-app[data-view="analysis"] .beto-rail .beto-tab.is-active {
    background: rgba(79, 151, 104, 0.12);
    color: var(--hub-success)
}

.beto-app[data-view="analysis"] .beto-rail .beto-tab.is-active::before {
    background: var(--hub-success);
}

.beto-app[data-view="unidades"] .beto-tab.is-active {
    background: rgba(193, 145, 56, 0.12);
    border-color: rgba(193, 145, 56, 0.56);
    color: var(--hub-warning);
    box-shadow: none;
}

.beto-app[data-view="unidades"] .beto-rail .beto-tab.is-active {
    background: rgba(193, 145, 56, 0.13);
    color: var(--hub-warning);
}

.beto-app[data-view="unidades"] .beto-rail .beto-tab.is-active::before {
    background: var(--hub-warning);
}

.beto-app[data-view="reservas"] .beto-tab.is-active {
    background: rgba(68, 122, 203, 0.1);
    border-color: rgba(68, 122, 203, 0.5);
    color: var(--hub-info)
    box-shadow: none;
}

.beto-app[data-view="reservas"] .beto-rail .beto-tab.is-active {
    background: rgba(68, 122, 203, 0.13);
    color: var(--hub-info)
}

.beto-app[data-view="reservas"] .beto-rail .beto-tab.is-active::before {
    background: var(--hub-info);
}



.beto-app[data-view="estrategia"] .beto-rail .beto-tab.is-active,
.beto-app[data-view="simulador"] .beto-rail .beto-tab.is-active {
    background: rgba(203, 123, 55, 0.13);
    color: var(--hub-primary-hover);
}

.beto-app[data-view="estrategia"] .beto-rail .beto-tab.is-active::before,
.beto-app[data-view="simulador"] .beto-rail .beto-tab.is-active::before {
    background: var(--hub-primary);
}



.beto-analysis-filters {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1.2fr) 160px 170px auto;
    gap: var(--space-xs);
    align-items: end;
    width: min(100%, 940px);
}

.beto-analysis-filters select {
    min-height: var(--hub-control-height);
}

.beto-analysis-matrix-toggle {
    white-space: nowrap;
}


.beto-sidebar .beto-sidebar-panel {
    display: none;
}


.beto-sidebar .beto-form-grid,
.beto-sidebar .beto-form-grid--compact {
    grid-template-columns: 1fr;
}

.beto-sidebar .beto-grid-2-cols .beto-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beto-app[data-view="analysis"] .beto-sidebar .beto-sidebar-panel--analysis,
.beto-app[data-view="unidades"] .beto-sidebar .beto-sidebar-panel--unidades,
.beto-app[data-view="reservas"] .beto-sidebar .beto-sidebar-panel--reservas {
    display: grid;
}

.beto-app[data-view="estrategia"] .beto-sidebar .beto-sidebar-panel--motor,
.beto-app[data-view="simulador"] .beto-sidebar .beto-sidebar-panel--motor {
    display: grid;
}


/* --- Unit Drawer: Abas de Navegação --- */
.beto-unit-tabs {
    display: flex;
    gap: 2px;
    padding: var(--space-xs);
    border-bottom: 1px solid var(--hub-border);
    background: var(--hub-surface);
}
.beto-unit-tabs .hub-tab {
    min-height: 32px;
    padding: 0 var(--space-s);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-medium);
    text-transform: none;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--hub-radius-sm);
    background: transparent;
}

.beto-sidebar__footer {
    margin-top: 0;
    display: grid;
    gap: var(--space-xs);
}

.beto-system-menu {
    position: fixed;
    right: var(--space-m);
    bottom: var(--space-m);
    z-index: 100000;
}

.beto-system-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(203, 123, 55, 0.42);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(203, 123, 55, 0.16), rgba(255, 255, 255, 0.025)),
        var(--hub-bg);
    color: var(--hub-primary-hover);
    font-size: var(--hub-text-heading);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52);
}

.beto-system-menu summary::-webkit-details-marker {
    display: none;
}

.beto-system-menu__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + var(--space-xs));
    display: grid;
    min-width: 190px;
    gap: var(--space-xs);
    padding: var(--space-xs);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(18, 18, 18, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
}

.beto-system-menu:not([open]) .beto-system-menu__panel {
    display: none;
}

.beto-mobile-controls-toggle {
    display: none;
}

.beto-actions-panel {
    display: none;
}

.beto-status {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 var(--space-s);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.025);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-table);
}

.beto-status[data-tone="error"] {
    border-color: rgba(190, 82, 75, 0.7);
    color: var(--hub-text-on-danger)
}

.beto-status[data-tone="success"] {
    border-color: rgba(79, 151, 104, 0.7);
    color: var(--hub-text-on-success)
}

.beto-notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: var(--hub-danger);
    color: var(--hub-text);
    font-size: var(--hub-text-eyebrow);
    line-height: 1;
    font-weight: var(--hub-weight-bold);
    box-shadow: 0 0 0 4px rgba(190, 82, 75, 0.12);
}

.beto-notification-badge[hidden],
.beto-reservation-alert[hidden] {
    display: none !important;
}

.beto-reservation-alert {
    display: grid;
    gap: 3px;
    padding: var(--space-xs) var(--space-s);
    border: 1px solid rgba(190, 82, 75, 0.48);
    border-left: 3px solid var(--hub-danger);
    border-radius: var(--hub-radius);
    background: rgba(190, 82, 75, 0.12);
    color: var(--hub-text-on-danger)
    cursor: pointer;
}

.beto-reservation-alert strong {
    color: var(--hub-text);
    font-size: var(--hub-text-eyebrow);
    line-height: 1.2;
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beto-reservation-alert span {
    color: var(--hub-text-on-danger)
    font-size: var(--hub-text-label);
    line-height: 1.35;
}

.beto-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: var(--space-m);
    align-items: start;
}

.beto-home-card {
    display: grid;
    align-content: start;
    gap: var(--space-s);
}

.beto-home-card--pending {
    border-color: rgba(203, 123, 55, 0.2);
    background:
        linear-gradient(135deg, rgba(203, 123, 55, 0.08), transparent 52%),
        var(--hub-surface-raised);
}

.beto-home-card--pending.has-pending {
    border-color: rgba(190, 82, 75, 0.42);
    background:
        linear-gradient(135deg, rgba(190, 82, 75, 0.13), transparent 58%),
        var(--hub-surface-raised);
}

.beto-home-card strong[data-home-pending-count] {
    color: var(--hub-text);
    font-size: 38px;
    line-height: 1;
    font-weight: var(--hub-weight-semibold);
}

.beto-home-card--pending.has-pending strong[data-home-pending-count] {
    color: var(--hub-text-on-danger)
}

.beto-home-card--today {
    border-color: rgba(106, 139, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(106, 139, 255, 0.1), transparent 58%),
        var(--hub-surface-raised);
}

.beto-home-card p {
    margin: 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    line-height: var(--hub-leading-normal);
}

.beto-home-actions {
    display: grid;
}

.beto-home-events {
    display: grid;
    gap: 8px;
    min-height: 44px;
}

.beto-home-event {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--hub-text);
    text-align: left;
    cursor: pointer;
}

.beto-home-event:hover {
    border-color: rgba(222, 183, 118, 0.38);
    background: rgba(222, 183, 118, 0.08);
}

.beto-home-event__type {
    width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(222, 183, 118, 0.12);
    color: var(--hub-warning);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beto-home-event strong {
    overflow: hidden;
    color: var(--hub-text);
    font-size: var(--hub-text-body);
    font-weight: var(--hub-weight-bold);
    line-height: var(--hub-leading-snug);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beto-home-event small,
.beto-home-empty {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-table);
    line-height: 1.35;
}

.beto-home-empty {
    margin: 0;
}

.beto-home-list {
    display: grid;
    gap: var(--space-xs);
    margin: 0;
}

.beto-home-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding: 10px 0;
    border-bottom: 1px solid var(--hub-border);
}

.beto-home-list div:last-child {
    border-bottom: 0;
}

.beto-home-list dt {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-table);
}

.beto-home-list dd {
    margin: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-heading);
    font-weight: var(--hub-weight-semibold);
}


.beto-sticky-summary {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    margin-bottom: var(--space-m);
    padding: var(--space-s) var(--space-m);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.beto-sim-panel {
    display: none;
    gap: var(--space-m);
    position: relative;
}

.beto-sim-panel.is-active {
    display: grid;
}

.beto-hero-metrics,
.beto-metrics-grid,
.beto-summary-panel,
.beto-chart-grid {
    display: grid;
    gap: var(--space-m);
}

.beto-hero-metrics {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 0;
}

.beto-analysis-kpis .hub-metric {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-height: 112px;
    padding: 14px 16px;
}

.beto-analysis-kpis .hub-metric span {
    line-height: 1.25;
}

.beto-analysis-kpis .hub-metric strong {
    font-size: var(--hub-text-heading);
    line-height: 1.08;
}

.beto-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.beto-summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.beto-summary-panel--single {
    grid-template-columns: minmax(0, 1fr);
}

.beto-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beto-chart-grid--primary {
    align-items: stretch;
}

.beto-panel--wide {
    grid-column: 1 / -1;
}

.beto-analysis-matrix-panel[hidden] {
    display: none !important;
}

.beto-analysis-matrix-panel {
    grid-column: 1 / -1;
}

.beto-analysis-matrix-panel .beto-panel__head {
    align-items: end;
    gap: var(--space-s);
}

.beto-analysis-matrix-controls {
    display: grid;
    grid-template-columns: minmax(220px, 280px) auto;
    gap: var(--space-xs);
    align-items: end;
}

.beto-analysis-matrix-controls label {
    grid-column: 1 / -1;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-medium);
}

.beto-analysis-matrix-controls select {
    min-height: var(--hub-control-height);
}

.beto-analysis-matrix-controls .beto-button {
    white-space: nowrap;
}

.beto-chart-wrap {
    height: var(--beto-chart-height);
    min-height: var(--beto-chart-height);
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: var(--space-s);
}

.beto-chart-wrap--large {
    height: 340px;
    min-height: 340px;
}

.beto-accordion-stack {
    display: grid;
    gap: var(--space-s);
}

.beto-accordion {
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
        var(--hub-surface-raised);
    overflow: hidden;
}

.beto-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    min-height: 52px;
    padding: 0 var(--space-m);
    color: var(--hub-text);
    cursor: pointer;
    list-style: none;
}

.beto-accordion summary::-webkit-details-marker {
    display: none;
}

.beto-accordion summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--hub-border);
    border-radius: 999px;
    color: var(--hub-primary);
    font-size: var(--hub-text-card-title);
    line-height: 1;
}

.beto-accordion[open] summary {
    border-bottom: 1px solid var(--hub-border);
}

.beto-accordion[open] summary::after {
    content: "-";
}

.beto-accordion--rx {
    border-color: rgba(68, 122, 203, 0.38);
    background:
        linear-gradient(180deg, rgba(68, 122, 203, 0.1), transparent 46%),
        var(--hub-surface-raised);
}

.beto-accordion--rx summary::after {
    color: var(--hub-text-on-info)
}

.beto-accordion--scenario {
    border-color: rgba(193, 145, 56, 0.34);
    background:
        linear-gradient(180deg, rgba(193, 145, 56, 0.1), transparent 48%),
        var(--hub-surface-raised);
}

.beto-accordion--scenario summary::after {
    color: var(--hub-warning);
}

.beto-rx-inline-form {
    padding: var(--space-m) var(--space-m) 0;
}

.beto-accordion summary span {
    color: var(--hub-text);
    font-size: var(--hub-text-body);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beto-accordion summary small {
    margin-left: auto;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-medium);
    text-align: right;
}

.beto-accordion > .beto-summary-panel,
.beto-accordion > .beto-chart-grid,
.beto-accordion > .beto-panel {
    padding: var(--space-m);
}

.beto-accordion > .beto-summary-panel {
    margin: 0;
}

.beto-summary-side {
    display: grid;
    gap: var(--space-m);
    min-height: 100%;
}

.beto-summary-side--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
}

.beto-summary-panel > .beto-metric-card,
.beto-summary-panel > .hub-metric,
.beto-summary-panel > .beto-summary-side {
    min-height: 264px;
}


.beto-empty-state,
.hub-empty-state {
    grid-column: 1 / -1;
    display: grid;
    align-items: center;
    justify-items: start;
    gap: var(--space-s);
    min-height: 180px;
    padding: var(--space-m);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(135deg, rgba(203, 123, 55, 0.08), rgba(68, 122, 203, 0.035)),
        rgba(255, 255, 255, 0.018);
    color: var(--hub-text);
}

.beto-empty-state[hidden],
.hub-empty-state[hidden] {
    display: none !important;
}

.beto-empty-state__eyebrow,
.hub-empty-state__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--hub-primary-hover);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold)
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.beto-empty-state h3,
.hub-empty-state h3 {
    margin: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-heading);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0;
}

.beto-empty-state p,
.hub-empty-state p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    line-height: 1.55;
}

.beto-empty-state .beto-button,
.beto-empty-state .hub-button,
.hub-empty-state .beto-button,
.hub-empty-state .hub-button {
    min-width: 150px;
}

.beto-empty-state__secondary,
.hub-empty-state__secondary {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--hub-text-muted);
}

.beto-empty-state--compact,
.hub-empty-state--compact {
    min-height: 0;
    padding: var(--space-s);
    gap: var(--space-xs);
}

.beto-empty-state--compact h3,
.hub-empty-state--compact h3 {
    font-size: var(--hub-text-card-title);
}

.beto-empty-state--compact p,
.hub-empty-state--compact p {
    font-size: var(--hub-text-table);
}

.beto-empty-state--filter,
.hub-empty-state--filter {
    background:
        linear-gradient(135deg, rgba(68, 122, 203, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.014);
}

.beto-empty-state--onboarding,
.hub-empty-state--onboarding {
    border-color: rgba(203, 123, 55, 0.28);
}

.beto-table .beto-empty-state,
.hub-table .hub-empty-state {
    margin: var(--space-s) 0;
    text-align: left;
}

.beto-inline-error {
    color: #f2b4ae;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

/* --- Painel informativo em formulários (Nova Unidade, Marketing) --- */
.hub-info-panel {
    margin-bottom: var(--space-s);
    padding: var(--space-s);
    border: 1px solid var(--hub-border-strong);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
}
.hub-info-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hub-info-panel__head h4 {
    margin: 0;
    font-size: var(--hub-text-card-title, 15px);
    font-weight: var(--hub-weight-semibold, 600);
    color: var(--hub-text);
}
.hub-info-panel p {
    margin: 8px 0 0;
    font-size: var(--hub-text-body, 13px);
    font-weight: var(--hub-weight-light, 300);
    color: var(--hub-text-muted);
}

.beto-inline-error[hidden] {
    display: none !important;
}

.beto-sticky-metrics {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-s);
    margin-bottom: var(--space-m);
    padding: var(--space-s);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(18, 18, 18, 0.95);
    box-shadow: none;
}

.beto-hero-metrics.beto-sticky-metrics {
    min-height: var(--hub-shell-header-height);
}

.beto-sticky-summary.beto-sticky-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    min-height: var(--hub-shell-header-height);
    margin-bottom: 0;
}

.beto-parameter-toggle {
    align-self: center;
    min-width: 160px;
    min-height: 40px;
    height: 40px;
    padding: 0 var(--space-s);
    white-space: nowrap;
}
.beto-save-strategy-cta {
    align-self: center;
    min-width: 120px;
    height: var(--hub-button-height);
    min-height: var(--hub-button-height);
    padding: 0 var(--space-s);
    white-space: nowrap;
}

.beto-save-strategy-cta:hover,
.beto-parameter-toggle:hover {
    color: var(--hub-text);
}

.beto-parameter-panel {
    position: sticky;
    top: calc(var(--hub-shell-header-height) + var(--space-xs));
    z-index: 130;
    max-height: 0;
    margin: 0;
    padding: 0 var(--space-m);
    border: 1px solid transparent;
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(203, 123, 55, 0.07), transparent),
        var(--hub-surface-raised);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.72);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease, padding 220ms ease, border-color 220ms ease;
}

.beto-parameter-panel.is-open {
    max-height: clamp(280px, 34vh, 380px);
    margin-bottom: var(--space-m);
    padding: var(--space-m);
    border-color: var(--hub-border);
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    transform: translateY(0);
}

.beto-parameter-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
    padding-bottom: var(--space-s);
    border-bottom: 1px solid var(--hub-border);
}

.beto-parameter-panel__head h2,
.beto-parameter-panel__head p {
    margin: 0;
}

.beto-parameter-panel__head h2 {
    color: var(--hub-text);
    font-size: var(--hub-text-card-title);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beto-parameter-panel__head p {
    margin-top: 4px;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-table);
}

.beto-parameter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: var(--space-xs);
}

.beto-rule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.beto-rule-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(203, 123, 55, 0.42);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(203, 123, 55, 0.24), rgba(203, 123, 55, 0.1));
    color: var(--hub-primary);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-bold)
}

.beto-rule-chips span:nth-child(2n) {
    border-color: rgba(68, 122, 203, 0.45);
    background: linear-gradient(180deg, rgba(68, 122, 203, 0.26), rgba(68, 122, 203, 0.1));
    color: var(--hub-text-on-info)
}

.beto-rule-chips span:nth-child(3n) {
    border-color: rgba(190, 82, 75, 0.45);
    background: linear-gradient(180deg, rgba(190, 82, 75, 0.24), rgba(190, 82, 75, 0.1));
    color: var(--hub-text-on-danger)
}

.beto-advanced-rules {
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(0, 0, 0, 0.14);
}

.beto-advanced-rules summary {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0 var(--space-s);
    color: var(--hub-text);
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-bold)
    text-align: center;
    cursor: pointer;
}

.beto-advanced-rules .beto-rule-panel {
    margin: 0;
    border: none;
    border-top: 1px solid var(--hub-border);
    border-radius: 0;
    background: transparent;
}

.beto-strategy-inline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-s);
    align-items: start;
}

.beto-sticky-metrics .beto-metric-card,
.beto-sticky-metrics .hub-metric {
    min-height: 88px;
    padding: var(--space-s);
}

.beto-panel__head {
    margin-bottom: var(--space-s);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
}

.beto-panel__head h2,
.beto-summary-title,
.beto-control-section h3,
.beto-rx-card__head strong {
    margin: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-body);
    line-height: 1.2;
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.beto-panel__head span {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
    text-align: right;
}

.beto-summary-title {
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-s);
    border-bottom: 1px solid var(--hub-border);
}

.beto-scenario-box {
    display: grid;
    gap: var(--space-xs);
    padding: var(--space-s);
    border: 1px solid rgba(193, 145, 56, 0.28);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(193, 145, 56, 0.09), transparent 72%),
        rgba(7, 7, 7, 0.28);
}

.beto-scenario-box__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--hub-border);
}

.beto-scenario-box__head h4 {
    margin: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.beto-scenario-box__head span {
    color: var(--hub-warning);
    font-size: var(--hub-text-eyebrow);
    text-align: right;
}

.beto-control-section {
    display: grid;
    gap: var(--space-xs);
    padding-top: 12px;
    border-top: 1px solid var(--hub-border);
}

.beto-hidden-select {
    display: none !important;
}

.beto-hidden {
    display: none !important;
}

.beto-chip-select-wrapper {
    position: relative;
    width: 100%;
}

.beto-chip-container {
    width: 100%;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--hub-border-strong);
    border-radius: var(--hub-radius);
    background: var(--hub-input-bg);
    cursor: text;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.beto-chip-container:focus-within {
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 3px rgba(203, 123, 55, 0.16);
}

.beto-chip-search {
    flex: 1 1 130px;
    width: auto !important;
    min-width: 100px;
    min-height: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--hub-text);
    outline: none;
}

.beto-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(203, 123, 55, 0.24);
    border-radius: 999px;
    background: rgba(203, 123, 55, 0.14);
    color: var(--hub-primary-hover);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold)
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.beto-chip button {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hub-text);
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.beto-chip button:hover {
    background: rgba(190, 82, 75, 0.28);
    color: var(--hub-text);
}

.beto-chip-dropdown {
    position: absolute;
    z-index: 100000;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--hub-border-strong);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%),
        #0b0b0b;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.64);
}

.beto-chip-option {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hub-text-muted);
    cursor: pointer;
    font: inherit;
    font-size: var(--hub-text-table);
    text-align: left;
}

.beto-chip-option:hover,
.beto-chip-option.is-selected {
    background: rgba(203, 123, 55, 0.14);
    color: var(--hub-text);
}

.beto-chip-option.is-selected::after {
    content: "Selecionado";
    color: var(--hub-primary-hover);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beto-range-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beto-range-field label span {
    color: var(--hub-primary);
    font-weight: var(--hub-weight-semibold);
}

/* ==========================================================================
   PADRÃO DE HOVER DE TABELAS OPERACIONAIS (Hub Design System)
   Aplica cursor pointer e tonalidade âmbar suave para todas as linhas clicáveis.
   ========================================================================== */
.beto-view[data-view="reservas"] .beto-table tbody tr.is-pending-review td,
.beto-view[data-view="reservas"] .hub-table tbody tr.is-pending-review td {
    background: rgba(203, 123, 55, 0.08);
    border-bottom-color: rgba(203, 123, 55, 0.22);
}

.beto-view[data-view="reservas"] .beto-table tbody tr.is-pending-review td:first-child,
.beto-view[data-view="reservas"] .hub-table tbody tr.is-pending-review td:first-child {
    box-shadow: inset 3px 0 0 var(--hub-primary);
}

.beto-view[data-view="reservas"] .beto-table tbody tr.is-pending-review:hover td,
.beto-view[data-view="reservas"] .hub-table tbody tr.is-pending-review:hover td {
    background: rgba(203, 123, 55, 0.12);
}

.beto-unit-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-s);
    overflow: auto;
    padding-right: 2px;
}

.beto-unit-card {
    min-width: 0;
    min-height: 260px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 120px minmax(140px, auto);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: linear-gradient(180deg, rgba(68, 122, 203, 0.14), transparent 74%), var(--hub-surface-raised);
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease;
}

.beto-unit-card:hover {
    border-color: rgba(203, 123, 55, 0.45);
    transform: translateY(-1px);
}

.beto-unit-img {
    width: 100%;
    height: 120px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: var(--hub-radius) var(--hub-radius) 0 0;
    margin: 0;
}

.beto-unit-img--fallback {
    background:
        linear-gradient(135deg, rgba(203, 123, 55, 0.22), rgba(68, 122, 203, 0.22)),
        #252525;
    color: var(--hub-text);
    font-size: 34px;
    font-weight: var(--hub-weight-bold)
}

.beto-unit-card__media {
    height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(203, 123, 55, 0.25), rgba(68, 122, 203, 0.18));
    color: var(--hub-text);
    font-size: 34px;
    font-weight: var(--hub-weight-bold)
}

.beto-unit-card__image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--beto-surface-3);
    border-bottom: 1px solid var(--hub-border);
}

.beto-unit-card__image--placeholder {
    background: linear-gradient(135deg, rgba(203, 123, 55, 0.25), rgba(68, 122, 203, 0.18));
}

.beto-unit-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.beto-unit-card__body {
    display: grid;
    gap: 8px;
    padding: var(--space-s);
    align-content: start;
    background: rgba(7, 7, 7, 0.24);
    min-height: 140px;
    visibility: visible;
}

.beto-unit-card__title {
    color: var(--hub-text);
    font-size: var(--hub-text-card-title);
    line-height: 1.35;
    font-weight: var(--hub-weight-bold)
}

.beto-unit-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
}

.beto-unit-card__meta strong {
    max-width: 62%;
    overflow: hidden;
    color: var(--hub-text);
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-semibold);
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beto-unit-card__pill {
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(79, 151, 104, 0.18);
    color: var(--hub-text-on-success)
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold)
    text-transform: uppercase;
}

.beto-unit-card__pill.is-inactive {
    background: rgba(190, 82, 75, 0.2);
    color: var(--hub-text-on-danger)
}

.beto-unit-card__pill.is-progress {
    background: rgba(193, 145, 56, 0.2);
    color: var(--hub-text-on-warning)
}

.beto-unit-card__link {
    display: none;
    margin-top: 2px;
    color: var(--hub-primary-hover);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.beto-glossary-modal__panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-modal-bg);
    box-shadow: var(--hub-modal-shadow);
    animation: betoDrawerIn 180ms ease-out;
}


.beto-glossary-modal__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--hub-modal-head-padding);
    border-bottom: 1px solid var(--hub-border);
}

.beto-glossary-modal__head span,
.beto-glossary-modal__section h3 {
    color: var(--hub-primary);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.beto-glossary-modal__head h2 {
    margin: 6px 0;
    color: var(--hub-text);
    font-size: var(--hub-text-page);
    line-height: var(--hub-leading-tight);
    font-weight: var(--hub-weight-medium);
}

.beto-glossary-modal__head p {
    margin: 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    line-height: var(--hub-leading-normal);
    font-weight: var(--hub-weight-light);
}

.beto-glossary-modal__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
    padding: var(--space-m);
    overflow: auto;
}

.beto-glossary-modal__section {
    min-width: 0;
    padding: var(--space-s);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.025);
}

.beto-glossary-modal__section h3 {
    margin: 0 0 var(--space-xs);
}

.beto-glossary-modal__section dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.beto-glossary-modal__section dt {
    color: var(--hub-text);
    font-size: var(--hub-text-body);
    line-height: var(--hub-leading-snug);
    font-weight: var(--hub-weight-medium);
}

.beto-glossary-modal__section dd {
    margin: 4px 0 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-table);
    line-height: var(--hub-leading-normal);
    font-weight: var(--hub-weight-light);
}

[data-confirm-modal] .hub-modal__panel,
.beto-confirm-modal__panel {
    position: relative;
    width: min(480px, calc(100vw - 48px));
    max-height: calc(100vh - 96px);
    height: auto;
    margin: 0;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-modal-bg);
    box-shadow: var(--hub-modal-shadow);
    animation: betoDrawerIn 180ms ease-out;
}

.beto-matrix-modal__panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--space-m);
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    margin: var(--space-s);
    padding: var(--space-m);
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-modal-bg);
    box-shadow: var(--hub-modal-shadow);
}

.beto-matrix-modal__head {
    position: relative;
}

.beto-analysis-matrix-modal__filters {
    width: min(100%, 1180px);
    grid-template-columns: 150px minmax(220px, 1.2fr) 160px 170px 220px;
}

.beto-matrix-modal .beto-table-wrap,
.beto-matrix-modal .hub-table-wrap {
    min-height: 0;
    max-height: none !important;
    overflow: auto;
}

[data-confirm-modal] .hub-modal__head h3,
.beto-confirm-modal__panel h3 {
    margin: 0 0 var(--space-xs);
    color: var(--hub-text);
    font-size: var(--hub-text-heading);
    line-height: 1.2;
    font-weight: var(--hub-weight-semibold);
}

[data-confirm-modal] .hub-modal__body {
    padding: 28px var(--space-m);
}

[data-confirm-modal] .hub-modal__body p,
.beto-confirm-modal__panel p {
    margin: 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    line-height: var(--hub-leading-normal);
    font-weight: var(--hub-weight-light);
}

[data-confirm-modal] .hub-modal__footer,
.beto-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    border-top: 1px solid var(--hub-border);
}













.hub-drawer__form {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.hub-drawer--record .hub-drawer__body,
.hub-drawer--tasks .hub-drawer__body {
    display: grid;
    gap: var(--space-s);
    padding: var(--space-m);
}

[data-strategy-app-modal] .hub-drawer__body,
[data-bulk-apply-modal] .hub-drawer__body {
    display: grid;
    gap: var(--space-s);
    padding: var(--space-m);
    align-content: start;
    grid-auto-rows: max-content;
    padding-top: var(--space-s);
}

.hub-drawer__error {
    padding: var(--space-xs) var(--space-s);
    border: 1px solid rgba(190, 82, 75, 0.45);
    border-radius: var(--hub-radius);
    background: rgba(190, 82, 75, 0.12);
    color: var(--hub-text-on-danger);
    font-size: var(--hub-text-table);
    line-height: var(--hub-leading-normal);
}

.hub-drawer__error[hidden] {
    display: none;
}

.beto-field[data-unit-only][hidden],
.beto-field[data-booking-only][hidden],
.beto-control-section[data-unit-only][hidden],
.beto-control-section[data-booking-only][hidden] {
    display: none !important;
}

@keyframes betoDrawerIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.beto-page-cta {
    min-height: 34px;
    padding-inline: var(--space-s);
}


.beto-unit-card__actions,
.beto-unit-drawer__actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.beto-unit-card__actions {
    justify-content: space-between;
    margin-top: 2px;
}

.beto-unit-drawer__actions {
    margin-top: var(--space-s);
}

.beto-unit-drawer__hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-m);
    padding: var(--space-m);
    border-bottom: 1px solid var(--hub-border);
}

.beto-unit-drawer__hero img,
.beto-unit-drawer__hero > div {
    width: 180px;
    height: 120px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: var(--hub-radius);
    background: linear-gradient(135deg, rgba(203, 123, 55, 0.28), rgba(68, 122, 203, 0.2)), #252525;
    color: var(--hub-text);
    font-size: 42px;
    font-weight: var(--hub-weight-bold);
}

.beto-unit-drawer__hero span,
.beto-unit-drawer__section h3 {
    color: var(--hub-primary);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.beto-unit-drawer__hero h2 {
    margin: 8px 0;
    color: var(--hub-text);
    font-size: var(--hub-text-page);
    font-weight: var(--hub-weight-semibold);
    line-height: 1.15;
}

.beto-unit-drawer__hero p {
    margin: 0;
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    font-weight: var(--hub-weight-extralight);
    line-height: var(--hub-leading-snug);
}

.beto-unit-drawer__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-s);
    padding: var(--space-m);
}

.beto-reservation-drawer .beto-unit-drawer__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.beto-unit-drawer__metrics article,
.beto-unit-drawer__section {
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.025);
}

.beto-unit-drawer__metrics article {
    display: grid;
    gap: 6px;
    padding: var(--space-s);
}

.beto-unit-drawer__metrics span {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    text-transform: uppercase;
}

.beto-unit-drawer__metrics strong {
    color: var(--hub-text);
    font-size: var(--hub-text-heading);
}

.beto-unit-drawer__section {
    margin: 0 var(--space-m) var(--space-s);
    padding: var(--space-s);
}

.beto-unit-drawer__section dl {
    display: grid;
    gap: 1px;
    margin: var(--space-s) 0 0;
}

.beto-unit-drawer__section dl div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-s);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.beto-unit-drawer__section dt {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
}

.beto-unit-drawer__section dd {
    margin: 0;
    min-width: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-table);
    overflow-wrap: anywhere;
}

.beto-unit-drawer__description-row {
    align-items: start;
}

.beto-unit-description {
    margin: 0;
    color: var(--hub-text);
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-medium);
    line-height: 1.55;
    white-space: pre-wrap;
}

.beto-unit-description.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.beto-link-button {
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hub-primary);
    font: inherit;
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.beto-link-button:hover {
    color: var(--hub-text);
}

.beto-unit-drawer__accordion {
    padding: 0;
    overflow: hidden;
}

.beto-unit-drawer__accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--space-s);
    color: var(--hub-text);
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-bold)
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.beto-unit-drawer__accordion summary span {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-eyebrow);
    letter-spacing: 0.04em;
}

.beto-unit-drawer__accordion > div,
.beto-unit-drawer__accordion > dl {
    padding: 0 var(--space-s) var(--space-s);
}

.beto-unit-drawer__reservas,
.beto-unit-drawer__strategies {
    margin-top: var(--space-s);
    overflow: auto;
}

.beto-review-status {
    display: inline-grid;
    min-height: 28px;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-eyebrow);
    font-weight: var(--hub-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beto-review-status.is-new {
    border-color: rgba(190, 82, 75, 0.42);
    background: rgba(190, 82, 75, 0.13);
    color: var(--hub-text-on-danger)
}

.beto-review-status.is-reviewed {
    border-color: rgba(79, 151, 104, 0.42);
    background: rgba(79, 151, 104, 0.14);
    color: var(--hub-text-on-success)
}

.beto-reservation-avatar {
    background:
        linear-gradient(135deg, rgba(203, 123, 55, 0.24), rgba(68, 122, 203, 0.16)),
        var(--hub-surface);
    color: var(--hub-text);
    font-size: 44px;
    font-weight: var(--hub-weight-bold);
}

.beto-reservation-drawer__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    margin: 0 var(--space-m) var(--space-m);
}

[data-reservation-row] {
    cursor: pointer;
}

[data-reservation-row]:hover {
    background: rgba(203, 123, 55, 0.055);
}

#beto-matrix-checkin .beto-matrix__unit,
#beto-matrix-booking .beto-matrix__unit,
#beto-matrix-active .beto-matrix__unit {
    min-width: 360px;
    width: 360px;
    max-width: 480px;
    position: sticky;
    left: 0;
    z-index: 2;
    white-space: nowrap;
}

.beto-unit-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%),
        var(--hub-surface-raised);
}

.beto-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}



#beto-matrix-checkin td.beto-matrix__unit,
#beto-matrix-booking td.beto-matrix__unit,
#beto-matrix-active td.beto-matrix__unit {
    background: rgba(24, 24, 24, 0.98);
}

.beto-matrix-cell {
    border-radius: 4px;
    font-weight: inherit;
    transition: filter 160ms ease, transform 160ms ease;
}

.beto-matrix-cell:hover {
    filter: brightness(1.15);
}

.beto-matrix__total,
.beto-matrix__total td,
.beto-matrix__total-cell {
    font-weight: var(--hub-weight-semibold);
}

.beto-sensitivity--base td {
    color: var(--hub-primary);
    font-weight: var(--hub-weight-bold);
}

.beto-heatmap {
    border-collapse: separate !important;
    border-spacing: 4px !important;
}

.beto-heatmap th,
.beto-heatmap td {
    border: none !important;
}

.beto-heatmap th:not(:first-child),
.beto-heatmap td.hm-cell {
    min-width: 184px;
}

.beto-heatmap td.hm-cell {
    border-radius: 6px;
    color: var(--hub-text) !important;
    font-weight: var(--hub-weight-semibold);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.beto-heatmap td.hm-cell:hover {
    cursor: crosshair;
    transform: scale(1.05);
    border-radius: var(--hub-radius);
}


/* =========================================================
   SPRINT 2: HOME OPERACIONAL MÃ NIMA
   ========================================================= */

.beto-home-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.beto-home-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--hub-view-section-gap, var(--space-s));
}

.beto-home-dashboard__row {
    display: grid;
    gap: var(--hub-view-section-gap, var(--space-s));
    grid-template-columns: 1fr;
}


.beto-home-month__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
}


.beto-home-month__item {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.beto-home-month__item span {
    font-size: var(--hub-text-label);
    color: var(--hub-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beto-home-month__item strong {
    font-size: var(--hub-text-heading);
    color: var(--hub-text);
}

/* --- SPRINT 6: VISÃƒO ATIVA --- */
[hidden] {
    display: none !important;
}

.beto-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--hub-border);
    padding-bottom: 0;
    margin-top: 8px;
}



.beto-strategy-active-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 16px;
}

.beto-active-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* Central de Configurações - Shell SETTINGS-1A */

.beto-settings-sidebar {
    width: 220px;
    border-right: 1px solid var(--hub-border);
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    flex-shrink: 0;
}

.beto-settings-content {
    flex: 1;
    padding-left: 2rem;
    overflow-y: auto;
}

/* ==========================================
   HUB CANONICAL MODALS & DRAWERS (Frente A)
   ========================================== */

/* 1. Modal Canônico Base */
.hub-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hub-modal[hidden] {
    display: none !important;
}

.hub-modal__overlay,
.hub-drawer__overlay {
    position: absolute;
    inset: 0;
    background: var(--hub-overlay-bg);
}

.hub-modal--blur .hub-modal__overlay,
.hub-drawer--blur .hub-drawer__overlay {
    backdrop-filter: blur(4px);
}

.hub-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(var(--hub-modal-width-md), calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-modal-bg);
    box-shadow: var(--hub-modal-shadow);
    animation: hubModalIn 180ms ease-out;
}

@keyframes hubModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hub-modal__panel--sm {
    width: min(var(--hub-modal-width-sm), calc(100vw - 48px));
}

/* Cabeçalho base (simples) */
.hub-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--hub-modal-head-padding);
    border-bottom: 1px solid var(--hub-border);
}
.hub-modal__head h3 {
    margin: 0;
    font-size: var(--hub-text-heading);   /* 18px */
    font-weight: var(--hub-weight-bold);  /* 700 */
    color: var(--hub-text);
}
.hub-modal__head p {
    margin: 4px 0 0;
    font-size: var(--hub-text-table);     /* 12px */
    font-weight: var(--hub-weight-light); /* 300 */
    color: var(--hub-text-muted);
}

/* Fechar (Clean X) */
.hub-modal__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--hub-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.hub-modal__close:hover {
    color: var(--hub-text);
}

/* Corpo */
.hub-modal__body {
    flex: 1;
    padding: var(--hub-modal-body-padding);
    overflow: auto;
}

/* Rodapé */
.hub-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    padding: var(--hub-modal-footer-padding);
    border-top: 1px solid var(--hub-border);
}

/* Variante Leitura Complexa (--reading) */
.hub-modal--reading .hub-modal__panel {
    width: min(var(--hub-modal-width-lg), calc(100vw - 48px));
}
.hub-modal--reading .hub-modal__eyebrow {
    display: block;
    font-size: var(--hub-text-eyebrow);       /* 10px */
    font-weight: var(--hub-weight-semibold);  /* 600 */
    color: var(--hub-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.hub-modal--reading .hub-modal__head h2 {
    margin: 0;
    font-size: var(--hub-text-page);          /* 24px */
    font-weight: var(--hub-weight-medium);    /* 500 */
    color: var(--hub-text);
}

/* Corpo em Grid para variante reading (Glossário) */
.hub-modal--reading .hub-modal__body--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
}

.hub-modal--reading .hub-modal__body--sidebar {
    display: flex;
    gap: 0;
    height: 100%;
    overflow: hidden;
}

/* Variante Tela Cheia (--full) */
.hub-modal--full .hub-modal__panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    margin: var(--space-s);
}

/* 2. Drawer Canônico Base */
.hub-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    justify-items: end;
}
.hub-drawer[hidden] {
    display: none !important;
}

.hub-drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--hub-drawer-width-record);
    height: calc(100vh - 32px);
    margin: var(--space-s);
    overflow: hidden;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    background: var(--hub-modal-bg);
    box-shadow: var(--hub-modal-shadow);
    animation: hubDrawerIn 200ms ease-out;
}

@keyframes hubDrawerIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Cabeçalho */
.hub-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
    padding: var(--hub-modal-head-padding);
    border-bottom: 1px solid var(--hub-border);
    flex-shrink: 0;
}
.hub-drawer__head h3 {
    margin: 0;
    font-size: var(--hub-text-heading);
    font-weight: var(--hub-weight-semibold);
    color: var(--hub-text);
}
.hub-drawer__head p {
    margin: 4px 0 0;
    font-size: var(--hub-text-table);
    font-weight: var(--hub-weight-light);
    color: var(--hub-text-muted);
}

/* Fechar (Pill circular de 32px para gavetas) */
.hub-drawer__close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--hub-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hub-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.hub-drawer__close:hover {
    border-color: rgba(203, 123, 55, 0.48);
    background: rgba(203, 123, 55, 0.12);
}

/* Corpo */
.hub-drawer__body {
    flex: 1;
    padding: var(--hub-modal-body-padding);
    overflow: auto;
}

/* Rodapé */
.hub-drawer__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
    padding: var(--hub-modal-footer-padding);
    border-top: 1px solid var(--hub-border);
    flex-shrink: 0;
}

/* Tamanhos das Gavetas */
.hub-drawer--narrow .hub-drawer__panel { width: var(--hub-drawer-width-narrow); }
.hub-drawer--record .hub-drawer__panel { width: var(--hub-drawer-width-record); }
.hub-drawer--wide .hub-drawer__panel   { width: var(--hub-drawer-width-wide); }

/* ==========================================
   STACKING LAYERS (z-index)
   ========================================== */

/* Confirm modal sits on top of everything */
[data-confirm-modal] {
    z-index: 100300 !important;
}

/* Sub-modals & Form Drawers sit above standard drawers/modals */
[data-record-drawer],
[data-strategy-app-modal],
[data-bulk-apply-modal],
[data-glossary-modal],
[data-metadata-audit-modal],
.beto-tasks-drawer {
    z-index: 100200 !important;
}
