/* ============================================================
   Gestor de Reservas — Design System (Tabler + refino visual)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Tipografia */
    --tblr-font-sans-serif:
        "DM Sans", "Roboto", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    /* Raio de arredondamento */
    --app-radius-sm: 0.5625rem;   /* 9px  — inputs, botões */
    --app-radius-md: 0.625rem;    /* 10px — botões maiores / itens de sidebar */
    --app-radius-lg: 0.75rem;     /* 12px — cards */
    --app-radius-xl: 0.875rem;    /* 14px — painéis de filtro */
    --app-radius-pill: 999px;

    /* Cores do app */
    --app-bg: #f6f8fb;
    --app-border: #e5e9f0;
    --app-border-soft: #eef1f6;
    --app-muted: #5a6673;
    --app-primary: var(--tblr-primary);
    --exec-muted: #4a5560;

    /* Sombras — apenas elementos flutuantes */
    --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --app-shadow-md: 0 6px 20px rgba(16, 24, 40, 0.12);

    /* Alturas de controle */
    --app-control-height: 38px;

    /* Sidebar */
    --app-sidebar-width: 15.5rem;              /* 248px */
    --app-sidebar-bg: #ffffff;
    --app-sidebar-active: #0d2244;             /* navy escuro */
    --app-sidebar-active-rgb: 13, 34, 68;
    --app-sidebar-hover: #f2f5f9;              /* cinza/azulado muito claro */
}

body,
.form-control,
.form-select,
.btn,
.dropdown-menu,
.navbar,
.card,
.table,
.badge {
    font-family: var(--tblr-font-sans-serif, ui-sans-serif, system-ui, sans-serif);
}

body {
    background: var(--app-bg);
}

/* Garante que ícones Tabler usem a fonte de ícones mesmo sem a classe base "ti" */
i[class^="ti-"]::before,
i[class*=" ti-"]::before {
    font-family: "tabler-icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. LAYOUT / CONTAINER
   ============================================================ */
.page-body > .container-xl {
    max-width: 1720px;
    padding-left: 2rem;
    padding-right: 2rem;
}
.page-body {
    padding-top: 0.25rem;
    margin-top: 0.5rem;
}

/* Em tablets (768–991px) a sidebar colapsa: conteúdo em largura total */
@media (min-width: 992px) {
    .navbar-vertical.navbar-expand-lg.app-sidebar {
        display: flex;
    }
    .app-sidebar ~ .page-wrapper {
        margin-left: var(--app-sidebar-width);
    }
    .page-wrapper {
        margin-left: var(--app-sidebar-width);
    }
}

/* ============================================================
   3. SIDEBAR
   ============================================================ */

/* Largura levemente maior para acomodar subtítulo */
.navbar-vertical.navbar-expand-lg.app-sidebar {
    width: var(--app-sidebar-width);
    background: var(--app-sidebar-bg);
    border-right: 1px solid var(--app-border);
    box-shadow: none;
}
.app-sidebar > .container {
    padding: 0 0.875rem;
}

/* Em tablets (768–991px) a sidebar colapsa: conteúdo em largura total */
@media (min-width: 992px) {
    .page-wrapper {
        margin-left: var(--app-sidebar-width);
    }
}

/* Marca / logo */
.app-brand {
    padding: 1.25rem 0.5rem 0.75rem !important;
    justify-content: flex-start !important;
}
.app-brand a {
    color: inherit;
    display: block;
    width: 100%;
}
.app-brand-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--app-radius-md);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.app-brand-logo {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--app-radius-md);
    object-fit: contain;
    flex-shrink: 0;
}
.app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: 1.1rem;
}
.app-brand-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--app-muted);
    letter-spacing: 0.01em;
    margin-top: 0.1rem;
}

/* Navegação */
.app-sidebar-nav {
    gap: 0.125rem;
    padding-top: 0.5rem;
}

/* Títulos dos grupos */
.sidebar-section {
    margin-top: 1.25rem;
}
.sidebar-section:first-child {
    margin-top: 0.75rem;
}
.sidebar-section-label {
    display: block;
    padding: 0 0.75rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--app-muted);
}

/* Itens */
.sidebar-nav-item {
    margin-bottom: 0.125rem;
}
.sidebar-nav-item .nav-link {
    border-radius: var(--app-radius-md);
    padding: 0.55rem 0.75rem;
    margin: 0 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--tblr-body-color);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-nav-item .nav-link:hover {
    background: var(--app-sidebar-hover);
    color: var(--tblr-dark);
}
.sidebar-nav-item .nav-link:hover .nav-link-icon {
    color: var(--tblr-dark);
}
.sidebar-nav-item .nav-link .nav-link-icon {
    font-size: 1.15rem;
    color: var(--app-muted);
    transition: color 0.15s ease;
}
.sidebar-nav-item .nav-link .nav-link-title {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tblr-body-color);
}
.sidebar-nav-sub {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--app-muted);
    line-height: 1.3;
}

/* Item ativo — bloco destacado navy, sem azul forte */
.sidebar-nav-item .nav-link.active {
    background: var(--app-sidebar-active);
    color: #fff;
    box-shadow: 0 1px 3px rgba(var(--app-sidebar-active-rgb), 0.25);
}
.sidebar-nav-item .nav-link.active:hover {
    background: var(--app-sidebar-active);
    color: #fff;
}
.sidebar-nav-item .nav-link.active .nav-link-title {
    color: #fff;
}
.sidebar-nav-item .nav-link.active .nav-link-icon {
    color: #fff;
}
.sidebar-nav-item .nav-link.active .sidebar-nav-sub {
    color: rgba(255, 255, 255, 0.75);
}

/* Usuário + ações no rodapé da sidebar */
.sidebar-footer {
    padding-top: 0.875rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--app-border);
    margin-left: 0.125rem;
    margin-right: 0.125rem;
    padding-bottom: 0.125rem;
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
}
.sidebar-user-card-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: var(--app-radius-md);
    background: rgba(var(--app-sidebar-active-rgb), 0.1);
    color: var(--app-sidebar-active);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.sidebar-user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-user-card-body {
    min-width: 0;
    line-height: 1.3;
}
.sidebar-user-card-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-card-role {
    display: block;
    font-size: 0.72rem;
    color: var(--app-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-card-actions {
    display: flex;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem 0.5rem;
}
.sidebar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex: 1;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: transparent;
    color: var(--app-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    padding: 0.45rem 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-action:hover {
    background: var(--app-sidebar-hover);
    color: var(--app-sidebar-active);
    border-color: var(--app-border-soft);
}
.sidebar-action-danger:hover {
    background: rgba(var(--tblr-danger-rgb), 0.06);
    color: var(--tblr-danger);
    border-color: rgba(var(--tblr-danger-rgb), 0.25);
}

/* Sidebar fixa (position: fixed já vem do Tabler): conteúdo interno em coluna,
   menu rola e bloco do usuário fica ancorado no rodapé */
@media (min-width: 992px) {
    .app-sidebar > .container {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    .app-sidebar .navbar-collapse {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    .app-sidebar .app-sidebar-nav {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }
    .app-sidebar .sidebar-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
}

/* Barra de estatísticas + atalhos no topo do conteúdo */
.header-stats {
    background: #fff;
    border-bottom: 1px solid var(--app-border);
}
.header-stats .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: #f8fafc;
    color: var(--app-muted);
    font-size: 0.8125rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.header-stats .stat-pill i {
    color: var(--app-primary);
    font-size: 1rem;
}
.header-stats .stat-pill b {
    color: var(--app-sidebar-active);
    font-weight: 700;
    margin-right: 0.1rem;
}
.header-stats .stat-pill:hover {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(13, 34, 68, 0.1);
}
.header-stats .stat-pill-warn i { color: var(--tblr-warning); }
.header-stats .stat-pill-danger i { color: var(--tblr-danger); }

/* ============================================================
   4. TOPBAR
   ============================================================ */
.navbar.page-header {
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    min-height: 3.5rem;
    padding: 0;
}
.navbar.page-header .container-xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 3.5rem;
    max-width: 1720px;
}
.navbar.page-header .nav-link {
    padding: 0.35rem 0.6rem;
    border-radius: var(--app-radius-sm);
}

/* Breadcrumb discreto */
.navbar.page-header .breadcrumb {
    font-size: 0.8125rem;
    margin: 0;
}
.navbar.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--app-border);
    content: "/";
    font-weight: 400;
}
.navbar.page-header .breadcrumb-item a {
    color: var(--app-muted);
    text-decoration: none;
}
.navbar.page-header .breadcrumb-item a:hover {
    color: var(--tblr-primary);
}
.navbar.page-header .breadcrumb-item.active {
    color: var(--tblr-body-color);
    font-weight: 600;
}

/* Bloco de usuário na topbar */
.navbar.page-header .dropdown > .nav-link {
    padding: 0.25rem 0.5rem;
    border-radius: var(--app-radius-pill);
    gap: 0.625rem;
}
.navbar.page-header .dropdown > .nav-link:hover {
    background: var(--app-sidebar-hover);
}
.navbar.page-header .dropdown > .nav-link .avatar {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--app-border);
}
.navbar.page-header .fs-6 {
    line-height: 1.25;
}

/* ============================================================
   5. CABEÇALHO DE PÁGINA
   ============================================================ */
.page-header:not(.navbar) {
    padding: 0.625rem 0 1.25rem;
    margin-top: 0;
}
.page-header:not(.navbar) .page-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.page-header:not(.navbar) .page-subtitle {
    color: var(--app-muted);
    font-size: 0.875rem;
    margin-top: 0.375rem;
}
.page-header:not(.navbar) .page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    border-color: var(--app-border);
    border-radius: var(--app-radius-lg);
    background: #fff;
    box-shadow: none;
}
.card .card-header {
    padding: 0.875rem 1.375rem;
    background: #fff;
    border-bottom: 1px solid var(--app-border-soft);
    border-top-left-radius: var(--app-radius-lg);
    border-top-right-radius: var(--app-radius-lg);
}
.card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.card .card-title i:not([class*="text-"]):not([class*="bg-"]) {
    font-size: 1.05rem;
    color: var(--app-muted);
}
.card .card-title i.me-2,
.card .card-title i.me-1 {
    margin-right: 0;
}
.card .card-body {
    padding: 1.25rem 1.375rem;
}
.card.card-sm .card-body {
    padding: 1.125rem 1.25rem;
}
.card.card-hover {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.card.card-hover:hover {
    border-color: rgba(var(--tblr-primary-rgb), 0.4);
    box-shadow: var(--app-shadow-sm);
}

/* ============================================================
   7. BOTÕES
   ============================================================ */
.btn {
    --tblr-btn-font-weight: 500;
    border-radius: var(--app-radius-sm);
    box-shadow: none;
    transition: color 0.15s ease, background-color 0.15s ease,
                border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-icon {
    min-width: 2rem;
}
.page-actions .btn {
    white-space: nowrap;
}
.btn-primary {
    box-shadow: var(--app-shadow-sm);
}
.btn-sm {
    border-radius: calc(var(--app-radius-sm) - 1px);
}
.btn-outline-primary,
.btn-primary {
    border-width: 1px;
}
.btn-pill {
    border-radius: var(--app-radius-pill);
}

/* ============================================================
   8. BADGES
   ============================================================ */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0.5rem;
    padding: 0.4em 0.7em;
    --tblr-badge-padding-x: 0.6rem;
    --tblr-badge-padding-y: 0.375rem;
}

/* ============================================================
   9. FORMULÁRIOS, INPUTS, SELECTS
   ============================================================ */
.form-label {
    font-weight: 600;
    color: var(--tblr-dark);
    font-size: 0.82rem;
}
.form-label-soft {
    font-weight: 600;
    color: var(--app-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}
.form-hint {
    font-size: 0.8rem;
    color: var(--app-muted);
    margin-top: 0.3125rem;
}
.field-group {
    margin-bottom: 1rem;
}
.form-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}
.form-section-desc {
    color: var(--app-muted);
    font-size: 0.8rem;
    margin-bottom: 0.875rem;
}

.form-control,
.form-select {
    border-radius: var(--app-radius-sm);
    border-color: var(--app-border);
    min-height: var(--app-control-height);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--tblr-primary-rgb), 0.1);
}

.input-icon .form-control {
    padding-left: 2.5rem;
}

/* Campo de busca com lupa */
.input-icon .input-icon-addon i {
    color: var(--app-muted);
}

input[type="date"].form-control,
.flatpickr-input {
    min-width: 0;
}

/* Flatpickr combinando com os inputs */
.flatpickr-day.selected {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

/* Tom Select combinando com os inputs */
.tom-select .ts-control {
    min-height: 38px;
    border-radius: var(--app-radius-sm);
    border-color: var(--app-border);
}
.tom-select .ts-control:hover {
    border-color: var(--app-border);
}
.tom-select .dropdown-menu {
    border-radius: var(--app-radius-sm);
}

/* Dropdown do Tom Select com fundo/legibilidade corrigidos.
   Sempre acima de todos os componentes (navbar/sidebar/modais). */
.ts-dropdown {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    margin-top: 0.25rem;
    box-shadow: var(--app-shadow-md);
    z-index: 1060;
}
.ts-dropdown .option,
.ts-dropdown [data-selectable] > .option {
    opacity: 1;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: var(--app-sidebar-hover) !important;
}

/* ============================================================
   10. PAINÉIS DE FILTRO
   ============================================================ */
.filter-panel {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-xl);
    padding: 1.125rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: none;
}
.filter-panel .form-label {
    margin-bottom: 0.25rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.filter-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--app-muted);
    padding: 0.375rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-pill);
    background: #fff;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}
.filter-pill:hover {
    border-color: var(--tblr-primary);
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.05);
}
.filter-pill.active {
    background: var(--tblr-primary);
    border-color: var(--tblr-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--tblr-primary-rgb), 0.25);
}

/* ============================================================
   11. TABELAS
   ============================================================ */
.card-table {
    --tblr-table-cell-padding-y: 0.625rem;
}
.card-table thead th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-muted);
    border-bottom: 1px solid var(--app-border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.card-table tbody tr {
    transition: background 0.12s ease;
}
.card-table tbody tr:hover {
    background: var(--app-sidebar-hover) !important;
}
.card-table td {
    vertical-align: middle;
}
.row-clickable {
    cursor: pointer;
}

/* Código da reserva — azul principal, sem sublinhado permanente */
.card-table td.fw-bold a,
.card-table .fw-bold a {
    color: var(--app-primary);
    text-decoration: none;
}
.card-table td.fw-bold a:hover,
.card-table .fw-bold a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   12. ABAS COM ROLAGEM NO MOBILE
   ============================================================ */
.tabs-overflow {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-overflow::-webkit-scrollbar {
    display: none;
}
.tabs-overflow .nav-item {
    flex: 1 0 auto;
    text-align: center;
}

/* ============================================================
   13. EMPTY STATES
   ============================================================ */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-state-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: var(--app-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tblr-primary-rgb), 0.08);
    font-size: 2.2rem;
    color: var(--app-primary);
}
.empty-state-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.empty-state-desc {
    color: var(--app-muted);
    max-width: 380px;
    margin: 0 auto 1rem;
}

/* ============================================================
   14. ALERTAS
   ============================================================ */
.alert {
    border-radius: var(--app-radius-md);
    border: 1px solid;
}

.alert-success {
    background-color: #d5f0da;
    border-color: #9dd3a7;
    color: #14532d;
}

.alert-warning {
    background-color: #fff3d1;
    border-color: #f0d08b;
    color: #7c4a03;
}

.alert-danger {
    background-color: #f7d7d7;
    border-color: #e8a6a6;
    color: #7f1d1d;
}

.alert-info {
    background-color: #d9ebf9;
    border-color: #a7d0f2;
    color: #0c4a6e;
}

.alert-primary {
    background-color: #dce7ff;
    border-color: #a9c4ff;
    color: #1d3d8f;
}

.alert-secondary {
    background-color: #eef1f6;
    border-color: #d5dbe6;
    color: #4a5560;
}

.alert .btn-close {
    filter: none;
    opacity: 0.6;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ============================================================
   14b. PRÉVIA DE CHECKLIST
   ============================================================ */
.check-field-number {
    border-radius: var(--app-radius-md);
}
.check-field-number span {
    margin-left: 0.25rem;
}
.check-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 0.375rem;
    margin-right: 0.5rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    border-radius: var(--app-radius-pill);
}
.check-pill-info {
    background: rgba(var(--tblr-primary-rgb), 0.08);
    color: var(--app-primary);
}
.check-pill-note {
    background: var(--app-sidebar-hover);
    color: var(--app-muted);
}
.check-field-desc-row td {
    border-top: 0;
    padding-top: 0;
}
.check-field-desc {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.check-field-desc i {
    color: var(--app-muted);
}
.check-field-type-label {
    display: none;
}
.check-table-footer .btn {
    min-width: 0;
}

/* ============================================================
   15. TIMELINE (histórico)
   ============================================================ */
.timeline-simple {
    list-style: none;
    margin: 0;
    padding: 0;
}
.timeline-simple > li {
    position: relative;
    padding: 0 0 1.25rem 1.75rem;
    border-left: 2px solid var(--app-border);
}
.timeline-simple > li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline-simple .timeline-dot {
    position: absolute;
    left: -0.5rem;
    top: 0.125rem;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background: var(--tblr-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--tblr-primary);
}
.timeline-simple .timeline-dot.is-success { background: var(--tblr-green); box-shadow: 0 0 0 1px var(--tblr-green); }
.timeline-simple .timeline-dot.is-warning { background: var(--tblr-orange); box-shadow: 0 0 0 1px var(--tblr-orange); }

/* ============================================================
   16. RESUMO DE PROCESSO DA RESERVA
   ============================================================ */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.75rem;
    padding: 0.5rem 0;
}
.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 0;
    min-width: 96px;
    text-align: center;
    padding: 0 0.15rem;
}
/* conector horizontal entre etapas */
.process-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 1.125rem;
    left: calc(50% + 1.35rem);
    width: calc(100% - 2.7rem);
    height: 2px;
    border-radius: 2px;
    background: var(--tblr-border-color);
}
.process-step.is-done:not(:last-child)::before {
    background: rgba(var(--tblr-green-rgb), 0.45);
}
.process-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--tblr-bg-surface-secondary);
    color: var(--app-muted);
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px var(--tblr-border-color);
}
.process-step.is-done .process-step-icon {
    background: rgba(var(--tblr-green-lt-rgb));
    color: var(--tblr-green);
    box-shadow: inset 0 0 0 1px rgba(var(--tblr-green-rgb), 0.35);
}
.process-step.is-current .process-step-icon {
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--tblr-primary-rgb), 0.18);
}
.process-step.is-current .process-step-icon i {
    animation: app-pop-in 0.35s ease;
}
.process-step.is-blocked .process-step-icon {
    background: rgba(var(--tblr-red-lt-rgb));
    color: var(--tblr-red);
    box-shadow: inset 0 0 0 1px rgba(var(--tblr-red-rgb), 0.35);
}
.process-step-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.process-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-muted);
}
.process-step.is-done .process-step-label {
    color: var(--tblr-green);
}
.process-step.is-current .process-step-label {
    color: var(--app-primary);
    font-weight: 700;
}
.process-step.is-blocked .process-step-label {
    color: var(--app-muted);
    text-decoration: line-through;
}
.process-step-badge {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: 999px;
    padding: 0.08rem 0.5rem;
}

/* Próxima etapa (callout) */
.next-step-card {
    border-left: 4px solid var(--app-primary);
    background: rgba(var(--tblr-primary-rgb), 0.05);
    border-radius: var(--app-radius-lg);
}
.next-step-card .next-step-title {
    font-weight: 600;
    color: var(--app-primary);
    margin-bottom: 0.25rem;
}

/* ============================================================
   17. VIGILANTE: áreas de toque grandes
   ============================================================ */
.vigilante .big-action-btn {
    min-height: 64px;
    font-size: 1.1rem;
    font-weight: 600;
}
.vigilante .checklist-item-card {
    border-left: 4px solid var(--tblr-border-color);
}
.vigilante .checklist-item-card.is-ok { border-left-color: var(--tblr-green); }
.vigilante .checklist-item-card.has-problem { border-left-color: var(--tblr-red); }

.inspection-progress .progress { height: 10px; }

/* ============================================================
   17b. DASHBOARD — indicadores e painel de atenção
   ============================================================ */
/* Cards indicadores (ícone colorido + valor + título) */
.stat-card.card {
    border-radius: var(--app-radius-lg);
}
.stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.1rem 1.25rem;
}
.stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--app-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-icon.is-blue   { background: #e8f1ff; color: #1677ff; }
.stat-icon.is-green  { background: #eaf7ee; color: #2fb344; }
.stat-icon.is-orange { background: #fff4e3; color: #f76707; }
.stat-icon.is-red    { background: #fdebeb; color: #d63939; }
.stat-icon.is-purple { background: #f4f0fd; color: #826af9; }
.stat-icon.is-cyan   { background: #e6f7fb; color: #1c9fb2; }
.stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--tblr-dark);
}
.stat-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tblr-body-color);
}
.stat-sub {
    font-size: 0.75rem;
    color: var(--app-muted);
}

/* Painel "Precisa da sua atenção" — compacto, linhas operacionais */
.attention-card.card {
    border-radius: var(--app-radius-lg);
}
.attention-card .card-header {
    padding: 0.75rem 1.375rem;
}
.attention-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
}
.attention-card .card-body {
    padding: 0.375rem 0.5rem;
}
.attention-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.attention-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--app-radius-sm);
    font-size: 0.875rem;
}
.attention-row:hover {
    background: var(--app-sidebar-hover);
}
.attention-dot {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: var(--app-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(var(--tblr-warning-rgb), 0.12);
    color: var(--tblr-warning);
}
.attention-row .attention-cta {
    border-radius: var(--app-radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Cards de listas (status / financeiro / ocorrências) */
.metric-list .list-group-item {
    padding: 0.625rem 1rem;
    background: transparent;
}
.metric-list .list-group-item > span:first-child {
    font-size: 0.875rem;
}

/* Listas de status com barras laterais discretas */
.list-group.list-group-flush > .list-group-item {
    border-width: 0 0 1px 0;
    border-color: var(--app-border-soft);
}

/* ============================================================
   18. FOTOS (espacos, galeria e upload)
   ============================================================ */
.photo-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--app-radius-sm);
    border: 1px solid var(--app-border);
}

/* Capa na listagem de espaços */
.space-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #eef1f6, #e2e7ef);
    border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0;
}
.space-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.space-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--app-muted);
}

/* Preview do espaço no formulário de nova reserva */
.space-preview-media {
    min-height: 120px;
}
.space-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Espaços: toolbar, contagem e alternância cards/lista */
.spaces-count {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.view-toggle-btn.active {
    color: #fff !important;
    background-color: var(--app-primary, #206bc4) !important;
    border-color: var(--app-primary, #206bc4) !important;
}
[data-spaces-grid].view-list .space-item {
    flex: 0 0 100%;
    max-width: 100%;
}
[data-spaces-grid].view-list .card {
    flex-direction: row;
    align-items: stretch;
}
[data-spaces-grid].view-list .space-card-media {
    width: 260px;
    min-width: 260px;
    aspect-ratio: auto;
    border-radius: var(--app-radius-lg) 0 0 var(--app-radius-lg);
}
[data-spaces-grid].view-list .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
}
@media (max-width: 767.98px) {
    [data-spaces-grid].view-list .card {
        flex-direction: column;
    }
    [data-spaces-grid].view-list .space-card-media {
        width: 100%;
        min-width: 0;
        aspect-ratio: 16 / 9;
        border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0;
    }
}

/* Galeria administrativa */
.gallery-grid .gallery-item {
    position: relative;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    overflow: hidden;
    background: #f8fafc;
}
.gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.gallery-cover-badge {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    background: rgba(13, 34, 68, 0.85);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--app-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.gallery-actions {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: none;
    gap: 0.25rem;
}
.gallery-item:hover .gallery-actions { display: inline-flex; }
.gallery-actions .btn-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.15);
}
.gallery-caption {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--app-muted);
    background: #fff;
    border-top: 1px solid var(--app-border-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropzone inline */
.dropzone-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1.5rem 1.25rem;
    border: 1.5px dashed #c3ccd8;
    border-radius: var(--app-radius-md);
    background: #fbfcfe;
    color: var(--app-muted);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone-inline:hover,
.dropzone-inline.is-dragging {
    border-color: var(--app-primary);
    background: rgba(var(--tblr-primary-rgb), 0.05);
}
.dropzone-inline i { font-size: 1.75rem; }

.preview-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--app-radius-sm);
    border: 1px solid var(--app-border);
}

/* Upload de imagem de item locável */
.item-image-preview {
    display: none;
    margin-top: 0.75rem;
    width: 100%;
}
.item-image-preview.is-visible { display: block; }
.item-image-preview .preview-thumb {
    width: 100%;
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border);
}

/* Carrossel público de fotos do espaço */
.carousel-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: zoom-in;
}
.carousel-caption-start {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    text-align: left;
    background: rgba(13, 34, 68, 0.6);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: var(--app-radius-sm);
    backdrop-filter: blur(2px);
}
.carousel-caption-start .text-secondary { color: rgba(255, 255, 255, 0.85) !important; }
#spaceCarousel .carousel-control-prev,
#spaceCarousel .carousel-control-next {
    width: 2.75rem;
    height: 2.75rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
    opacity: 0.9;
    margin: 0 0.75rem;
}
#spaceCarousel .carousel-control-prev i,
#spaceCarousel .carousel-control-next i {
    font-size: 1.5rem;
    color: var(--app-sidebar-active);
}
#spacePhotoModal .modal-body img { max-height: 82vh; object-fit: contain; background: #0d2244; }

/* ============================================================
   19. CALENDÁRIO
   ============================================================ */
.calendar-event-mini { cursor: pointer; }
.calendar-event-mini:hover { filter: brightness(0.95); }

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer {
    color: var(--app-muted);
    font-size: 0.8125rem;
    background: transparent;
}
.footer .container-xl {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.app-footer {
    border-top: 1px solid var(--app-border);
    background: #ffffff;
}
.app-footer .row {
    margin-left: 0;
    margin-right: 0;
}
.app-footer-logo {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: var(--app-radius-sm);
}
.app-footer-title {
    font-size: 0.8125rem;
    color: var(--app-sidebar-active);
}
.footer-nav {
    list-style: none;
    padding-left: 0;
}
.footer-nav li {
    margin-bottom: 0.35rem;
}
.footer-nav a,
.footer-link {
    color: var(--app-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-nav a:hover,
.footer-link:hover {
    color: var(--app-sidebar-active);
}
.app-footer-divider {
    margin: 0;
    border-color: var(--app-border-soft);
}

/* ============================================================
   21. ACESSIBILIDADE
   ============================================================ */
.status-dot-green::after { content: " ✓"; font-weight: normal; }

/* Sombras apenas em elementos flutuantes (item 30) */
.dropdown-menu,
.modal-content,
.popover {
    box-shadow: var(--app-shadow-md);
    border-color: var(--app-border);
}
.dropdown-menu {
    border-radius: var(--app-radius-md);
}
.dropdown-item {
    border-radius: calc(var(--app-radius-sm) - 2px);
    padding: 0.4375rem 0.75rem;
}
.dropdown-item:hover {
    background: var(--app-sidebar-hover);
}
.dropdown-header {
    font-weight: 600;
}

/* ============================================================
   22. RESPONSIVO
   ============================================================ */
@media (max-width: 991.98px) {
    .page-body > .container-xl {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .app-sidebar .app-brand {
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }
    .app-sidebar .app-brand a > span {
        display: flex !important;
    }

    /* Sidebar vira drawer off-canvas à esquerda (em vez de empurrar o conteúdo) */
    body {
        overflow-x: hidden;
    }
    .app-sidebar.navbar-vertical {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        width: 18rem;
        max-width: 86vw;
        z-index: 1060;
        display: flex;
        flex-direction: column;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 0 0 48px rgba(9, 14, 25, 0.35);
    }
    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(9, 14, 25, 0.45);
        z-index: 1055;
    }
    .app-sidebar > .container {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: 0.75rem;
        overflow-y: auto;
    }
    .app-sidebar .collapse.navbar-collapse {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .app-sidebar .navbar-toggler {
        display: none;
    }
    .app-sidebar .app-sidebar-nav {
        flex: 1;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-body > .container-xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .page-header:not(.navbar) { padding: 0.5rem 0 1rem; }
    .page-header:not(.navbar) .page-actions { margin-top: 0.5rem; }
    .card .card-body { padding: 1.125rem 1rem; }
    .sidebar-nav-sub { display: none; }
    .stat-card .card-body { padding: 1rem 1.125rem; gap: 0.75rem; }
    .stat-icon { width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
    .stat-value { font-size: 1.5rem; }
}

@media print {
    body { background: #fff; }
    .page-body { padding: 0; }
}
/* ============ PORTAL DO MORADOR (jornada de reserva) ============ */
.public-page {
    font-size: 16px;
}
.public-page .portal-shell {
    min-height: 100vh;
    padding-bottom: 96px;
}
.public-page .portal-wrap {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* cabeçalho */
.public-page .portal-hero {
    padding: 24px 0 8px;
}
.public-page .portal-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 13px;
    margin-bottom: 16px;
}
.public-page .portal-kicker {
    margin: 0 0 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: #5a6472;
    text-transform: uppercase;
}
.public-page .portal-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--tblr-body-color);
}
.public-page .portal-space-name {
    margin: 6px 0 0;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--tblr-primary);
}
.public-page .portal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
}
.public-page .portal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #4a5360;
}
.public-page .portal-meta-item .ti {
    color: var(--tblr-primary);
}

/* grid principal */
.public-page .portal-grid {
    display: block;
    margin-top: 18px;
}
.public-page .portal-side {
    display: none;
}

/* alerta */
.public-page .portal-alert {
    border-radius: 12px;
}

/* galeria */
.public-page .portal-gallery {
    margin: 4px 0 22px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 22px rgba(24, 36, 51, .08);
}
.public-page .portal-gallery .carousel-item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    cursor: zoom-in;
}
.public-page .portal-gallery .carousel-control-prev,
.public-page .portal-gallery .carousel-control-next {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 12px;
    opacity: 1;
    border-radius: 50%;
    background: rgba(24, 36, 51, .45);
    color: #fff;
    right: 12px;
    left: auto;
}
.public-page .portal-gallery .carousel-control-prev { right: 58px; }
.public-page .portal-gallery .carousel-control-prev i,
.public-page .portal-gallery .carousel-control-next i {
    font-size: 1.1rem;
}
.public-page .portal-gallery-count {
    position: absolute;
    left: 12px;
    bottom: 21px;
    background: rgba(24, 36, 51, .55);
    color: #fff;
    font-size: .76rem;
    padding: 3px 11px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

/* introdução */
.public-page .portal-intro {
    margin-bottom: 20px;
}
.public-page .portal-intro-title {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 700;
    margin: 0 0 6px;
}
.public-page .portal-intro-text {
    margin: 0 0 16px;
    color: #4a5360;
    line-height: 1.55;
    font-size: .95rem;
}

/* progresso */
.public-page .portal-progress {
    margin: 4px 0 6px;
}
.public-page .portal-progress-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.public-page .portal-progress-label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--tblr-primary);
}
.public-page .portal-progress-name {
    font-size: .875rem;
    color: #4a5360;
}
.public-page .portal-progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--tblr-border-color);
    overflow: hidden;
}
.public-page .portal-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tblr-primary), var(--tblr-azure, #4299e1));
    transition: width .4s ease;
}

/* stepper (desktop) */
.public-page .portal-stepper {
    display: none;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

/* etapas */
.public-page .j-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.public-page .j-step {
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color);
    border-radius: 14px;
    overflow: hidden;
}
.public-page .j-step.is-current {
    border-color: rgba(0, 84, 166, .35);
    box-shadow: 0 8px 26px rgba(24, 36, 51, .07);
}
.public-page .j-step.is-next {
    opacity: .72;
}
.public-page .j-step-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.public-page .j-step.is-done .j-step-head:hover,
.public-page .j-step.is-current .j-step-head:hover {
    background: var(--tblr-bg-surface-tertiary);
}
.public-page .j-step-index {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--tblr-bg-surface-tertiary);
    color: var(--tblr-secondary);
    font-weight: 700;
}
.public-page .j-step.is-done .j-step-index {
    background: rgba(47, 179, 68, .12);
    color: #2fb344;
}
.public-page .j-step.is-current .j-step-index {
    background: rgba(0, 84, 166, .12);
    color: var(--tblr-primary);
}
.public-page .j-step-titlewrap {
    flex: 1;
    min-width: 0;
}
.public-page .j-step-title {
    display: block;
    font-size: .99rem;
    font-weight: 650;
    color: var(--tblr-body-color);
}
.public-page .j-step-sub {
    display: block;
    font-size: .79rem;
    color: #5a6472;
    margin-top: 2px;
}
.public-page .j-step-state {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tblr-bg-surface-tertiary);
    color: var(--tblr-secondary);
}
.public-page .j-step.is-done .j-step-state {
    background: rgba(47, 179, 68, .15);
    color: #2fb344;
}
.public-page .j-step.is-current .j-step-state {
    display: none;
}
.public-page .j-step.is-next .j-step-state {
    display: none;
}
.public-page .j-step-body {
    padding: 0 16px 18px;
    display: none;
}
.public-page .j-step.is-current .j-step-body,
.public-page .j-step.is-editing .j-step-body {
    display: block;
    padding-top: 16px;
    border-top: 1px solid var(--tblr-border-color);
}
/* etapa concluída minimizada: só o cabeçalho; clicar reabre o resumo compacto */
.public-page .j-step.is-done .j-step-body {
    display: none;
}
.public-page .j-step.is-done.is-open .j-step-body {
    display: block;
    padding: 0;
    border-top: 1px solid var(--tblr-border-color);
}

/* resumo compacto de etapa concluída */
.public-page .j-summary {
    display: none;
}
.public-page .j-step.is-done.is-open .j-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px 16px;
}
.public-page .j-step.is-done.is-open .j-step-body > *:not(.j-summary) {
    display: none;
}
.public-page .j-step.is-done .j-summary .j-summary-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3f4753;
    font-size: .9rem;
}
.public-page .j-summary .btn {
    margin-top: 2px;
    height: 40px;
    padding-left: 14px;
    padding-right: 14px;
}

/* formulários de etapa */
.public-page .j-fields {
    display: block;
}
.public-page .portal-primary-btn {
    min-height: 40px;
    min-width: 100%;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
}

/* ajuda / auxiliares */
.public-page .help-text {
    font-size: .86rem;
    color: #5a6472;
    line-height: 1.5;
    margin-top: 6px;
}
.public-page .form-label {
    font-size: .875rem;
    font-weight: 600;
    color: #333a44;
    margin-bottom: 6px;
}

/* data/horário */
.public-page .j-date-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.public-page .j-date-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .98rem;
    font-weight: 600;
    color: var(--tblr-body-color);
}
.public-page .j-date-line .ti {
    font-size: 1.2rem;
}

/* resumo de valores */
.public-page .resume-card {
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color);
    border-radius: 14px;
    padding: 18px 16px;
}
.public-page .resume-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.public-page .resume-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.public-page .resume-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .95rem;
    color: #3f4753;
}
.public-page .resume-line strong { color: var(--tblr-body-color); }
.public-page .resume-hr {
    margin: 14px 0;
}
.public-page .resume-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}
.public-page .resume-total strong { color: var(--tblr-primary); }
.public-page .resume-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--tblr-bg-surface-secondary);
    border-radius: 10px;
    font-size: .8125rem;
    color: #5a6472;
    line-height: 1.45;
}

/* visitantes */
.public-page .guests-ui {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.public-page .guests-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border: 1px dashed var(--tblr-border-color);
    border-radius: 12px;
}
.public-page .guests-empty p { font-size: .9rem; }
.public-page .guests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.public-page .guest-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    background: var(--tblr-bg-surface, #fff);
}
.public-page .guest-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tblr-bg-surface-tertiary);
    color: var(--tblr-secondary);
    font-size: 1.05rem;
}
.public-page .guest-meta { flex: 1; min-width: 0; }
.public-page .guest-name {
    font-weight: 650;
    font-size: .93rem;
    color: var(--tblr-body-color);
}
.public-page .guest-doc {
    font-size: .78rem;
    color: #5a6472;
    margin-top: 2px;
}
.public-page .guest-actions {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}
.public-page .guest-actions .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}
.public-page .guests-empty-text {
    font-size: .9rem;
    font-weight: 600;
}
.public-page .guests-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.public-page .guest-modal-dialog .modal-content {
    border-radius: 16px;
    border: 0;
}
.public-page .guest-modal-dialog .modal-title {
    font-size: 1.05rem;
}
.public-page .guest-modal-dialog .modal-footer .btn {
    min-height: 38px;
    padding: .4rem 1rem;
    font-size: .875rem;
    border-radius: 9px;
}
.public-page .privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .8rem;
    color: #6b7480;
    line-height: 1.45;
    margin: 4px 0 0;
}

/* caixa de orientações / regras (portal) */
.public-page .rules-box {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px dashed rgba(13, 34, 68, .3);
    border-radius: 12px;
    background: rgba(13, 34, 68, .035);
}
.public-page .rules-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .86rem;
    color: var(--app-sidebar-active, #0d2244);
    margin-bottom: 6px;
}
.public-page .rules-box-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .8rem;
    color: #555f6d;
    line-height: 1.45;
}
.public-page .rules-box-list li::marker {
    color: rgba(13, 34, 68, .5);
}

/* caixa de compartilhamento do link de convite (portal) */
.public-page .invite-share-box {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(13, 34, 68, .14);
    border-radius: 12px;
    background: #fff;
}
.public-page .invite-share-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .86rem;
    color: var(--app-sidebar-active, #0d2244);
    margin-bottom: 6px;
}
.public-page .invite-share-desc {
    margin: 0 0 10px;
    font-size: .8rem;
    color: #555f6d;
    line-height: 1.45;
}
.public-page .invite-share-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.public-page .invite-share-input-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--tblr-border-color, #d9dee3);
    border-radius: 9px;
    padding: .5rem .65rem;
    font-size: .78rem;
    color: #33415c;
    background: #f6f7f9;
}
.public-page .btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.public-page .btn-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
}
.public-page .extras-item.is-blocked {
    opacity: .55;
    pointer-events: none;
}

/* itens extras */
.public-page .extras-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.public-page .extras-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    background: var(--tblr-bg-surface, #fff);
    transition: border-color .15s, background .15s;
}
.public-page .extras-item.is-selected {
    border-color: rgba(0, 84, 166, .55);
    background: rgba(0, 84, 166, .03);
}
.public-page .extras-item-img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--tblr-bg-surface-tertiary);
}
.public-page .extras-item-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tblr-secondary);
    font-size: 1.6rem;
}
.public-page .extras-item-info { flex: 1; min-width: 0; }
.public-page .extras-item-name { font-weight: 650; font-size: .93rem; }
.public-page .extras-item-desc {
    font-size: .78rem;
    color: #5a6472;
    margin-top: 2px;
    line-height: 1.4;
}
.public-page .extras-item-price {
    font-weight: 700;
    font-size: .95rem;
    color: var(--tblr-body-color);
    margin-top: 4px;
}
.public-page .extras-item-avail {
    font-size: .76rem;
    color: #5a6472;
}
.public-page .qty-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.public-page .qty-stepper .qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface);
    border-radius: 9px;
    font-size: .9rem;
    color: var(--tblr-primary);
}
.public-page .qty-stepper .qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.public-page .qty-stepper .qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
}

/* termo */
.public-page .term-box {
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    background: var(--tblr-bg-surface-secondary);
    padding: 18px;
    font-size: .92rem;
    line-height: 1.6;
    color: #3f4753;
    max-height: none;
    overflow: visible;
}
.public-page .term-box p { margin-bottom: .75rem; }
.public-page .term-box h2, .public-page .term-box h3, .public-page .term-box h4 {
    margin: 1rem 0 .5rem;
    color: #22272f;
}
.public-page .term-accept {
    margin-top: 16px;
}
.public-page .term-accept .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .1rem;
}
.public-page .term-accept .form-check-label {
    font-size: .97rem;
}
.public-page .term-accept-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0 2rem;
    font-size: .8rem;
    color: #5a6472;
    line-height: 1.45;
}
.public-page .btn-block { width: 100%; }

/* barra fixa mobile */
.public-page .portal-footer {
    margin: 36px 0 0;
    padding: 0 16px 8px;
    text-align: center;
    font-size: .76rem;
    color: #8a93a0;
}
.public-page .portal-footer a {
    color: inherit;
    text-decoration: none;
}
.public-page .portal-footer a:hover {
    color: var(--tblr-primary);
    text-decoration: underline;
}
.public-page .portal-footer strong {
    color: #5a6472;
    font-weight: 600;
}
.public-page .portal-sticky {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--tblr-border-color);
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 16px rgba(24, 36, 51, .06);
}
.public-page .portal-sticky-label {
    flex: 1;
    font-size: .85rem;
    font-weight: 700;
    color: var(--tblr-primary);
}
.public-page .portal-sticky-btn {
    min-height: 40px;
    min-width: 150px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
}

/* contrastes & foco & acessibilidade */
.public-page a.btn, .public-page button {
    -webkit-tap-highlight-color: transparent;
}
.public-page :focus-visible {
    outline: 3px solid rgba(0, 84, 166, .45);
    outline-offset: 2px;
}
.public-page .invalid-feedback {
    font-size: .82rem;
}
.public-page .form-control, .public-page .form-select {
    border-radius: 10px;
    font-size: .95rem;
}
.public-page .form-control-lg, .public-page .form-select-lg {
    min-height: 44px;
    padding: .5rem .875rem;
    font-size: .95rem;
    border-radius: 10px;
}
.public-page .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: #333a44;
    margin-bottom: 5px;
}
.public-page .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
}
.public-page .form-check-label {
    font-size: .93rem;
}

/* ===== DESKTOP / TABLET ===== */
@media (min-width: 992px) {
    .public-page .portal-shell {
        padding-bottom: 40px;
    }
    .public-page .portal-hero {
        padding: 32px 0 10px;
    }
    .public-page .portal-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 26px;
        align-items: start;
        margin-top: 22px;
    }
    .public-page .portal-side {
        display: block;
        position: sticky;
        top: 20px;
    }
    .public-page .portal-side-card {
        border: 1px solid var(--tblr-border-color);
        border-radius: 14px;
        background: var(--tblr-bg-surface, #fff);
        padding: 14px;
        box-shadow: 0 10px 30px rgba(24, 36, 51, .07);
    }
    .public-page .portal-side-photo {
        height: 150px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
        background: var(--tblr-bg-surface-tertiary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--tblr-secondary);
        font-size: 2rem;
    }
    .public-page .portal-side-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .public-page .portal-side-name {
        font-weight: 700;
        font-size: 1.1rem;
    }
    .public-page .portal-side-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
        color: #4a5360;
        font-size: .9rem;
    }
    .public-page .portal-side-meta div {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .public-page .portal-side-meta .ti { color: var(--tblr-primary); }
    .public-page .portal-side-hr { margin: 14px 0; }
    .public-page .portal-side-sum { font-size: .92rem; }

    /* galeria desktop */
    .public-page .portal-gallery .carousel-item img {
        aspect-ratio: 16 / 7.5;
    }
    .public-page .portal-gallery .carousel-control-prev,
    .public-page .portal-gallery .carousel-control-next {
        top: 50%;
        bottom: auto;
        left: 14px;
        right: auto;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity .2s;
    }
    .public-page .portal-gallery .carousel-control-next { left: auto; right: 14px; }
    .public-page .portal-gallery:hover .carousel-control-prev,
    .public-page .portal-gallery:hover .carousel-control-next { opacity: 1; }
    .public-page .portal-gallery-count {
        bottom: 16px;
        top: auto;
    }

    /* stepper visível */
    .public-page .portal-progress {
        display: none;
    }
    .public-page .portal-stepper {
        display: flex;
        gap: 0;
        margin-top: 24px;
    }
    .public-page .portal-step {
        flex: 1;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: var(--tblr-secondary);
    }
    .public-page .portal-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 19px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
        height: 2px;
        background: var(--tblr-border-color);
    }
    .public-page .portal-step.is-done:not(:last-child)::after {
        background: rgba(47, 179, 68, .4);
    }
    .public-page .portal-step-node {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--tblr-bg-surface);
        border: 2px solid var(--tblr-border-color);
        font-weight: 700;
        z-index: 1;
    }
    .public-page .portal-step.is-done .portal-step-node {
        background: #2fb344;
        border-color: #2fb344;
        color: #fff;
    }
    .public-page .portal-step.is-current .portal-step-node {
        border-color: var(--tblr-primary);
        color: var(--tblr-primary);
        box-shadow: 0 0 0 4px rgba(0, 84, 166, .12);
    }
    .public-page .portal-step-label { font-size: .78rem; }
    .public-page .portal-step.is-done { cursor: pointer; }
    .public-page .portal-step.is-done:hover .portal-step-node {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(47, 179, 68, .25);
    }
    .public-page .portal-step.is-done:focus-visible {
        outline: 3px solid rgba(0, 84, 166, .45);
        outline-offset: 4px;
        border-radius: 8px;
    }

    /* botões de etapa em linha */
    .public-page .portal-primary-btn {
        min-width: 180px;
        width: auto;
    }
    .public-page .j-actions {
        display: flex;
        justify-content: flex-end;
    }
    .public-page .guests-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    .public-page .term-box {
        max-height: 380px;
        overflow: auto;
    }
    .public-page .portal-sticky {
        display: none;
    }
    /* extras em 2 colunas */
    .public-page .extras-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .public-page .extras-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* modal como bottom sheet no celular */
@media (max-width: 575.98px) {
    .public-page .guest-modal-dialog {
        margin: 0;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: auto;
    }
    .public-page .guest-modal-dialog .modal-content {
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    }
}

/* ============ PÁGINA DE CONFIRMAÇÃO (solicitação enviada) ============ */
.public-page .success-page {
    background:
        radial-gradient(620px 320px at 50% -2%, rgba(0, 84, 166, .06), transparent 70%),
        linear-gradient(180deg, #f6f8fb 0%, #edf1f6 100%);
}
.success-page .success-topbar {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(16, 24, 40, .06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.success-page .success-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.success-page .success-topbar .portal-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.success-page .success-topbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.success-page .success-topbar-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--tblr-body-color);
}
.success-page .success-topbar-caption {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7480;
}

.success-page .success-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 0 56px;
}

.success-page .success-hero {
    text-align: center;
    padding: 10px 0 24px;
}
.success-page .success-title {
    margin: 20px 0 0;
    font-size: clamp(1.65rem, 4.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #1c2733;
}
.success-page .success-sub {
    max-width: 540px;
    margin: 12px auto 0;
    color: #5a6472;
    font-size: .97rem;
    line-height: 1.65;
}
.success-page .success-sub strong {
    display: block;
    margin-bottom: 4px;
    color: #22303d;
    font-weight: 650;
}
.success-page .success-check {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(47, 179, 68, .12);
    color: #2fb344;
    font-size: 1.5rem;
}
.success-page .success-check--hero {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, #e9f9ec 0%, #d5f2da 100%);
    color: #1f9d34;
    box-shadow: inset 0 0 0 1px rgba(47, 179, 68, .12), 0 0 0 6px rgba(47, 179, 68, .07), 0 12px 28px rgba(47, 179, 68, .16);
}
.success-page .success-check--hero .success-check-glow {
    position: absolute;
    inset: -14px;
    border-radius: 30px;
    background: radial-gradient(closest-side, rgba(47, 179, 68, .16), transparent 72%);
    z-index: 0;
}
.success-page .success-check--hero .ti {
    position: relative;
    z-index: 1;
}
.success-page .success-check--orange { background: rgba(253, 152, 32, .14); color: #fd9800; }
.success-page .success-check--red { background: rgba(214, 57, 57, .12); color: #d63939; }
.success-page .success-check--blue { background: rgba(0, 84, 166, .12); color: var(--tblr-primary); }

.success-page .success-check--hero.success-check--orange {
    background: linear-gradient(135deg, #fdf3e4 0%, #fbe7c8 100%);
    color: #e07e00;
    box-shadow: inset 0 0 0 1px rgba(253, 152, 32, .16), 0 0 0 6px rgba(253, 152, 32, .07), 0 12px 28px rgba(253, 152, 32, .14);
}
.success-page .success-check--hero.success-check--orange .success-check-glow {
    background: radial-gradient(closest-side, rgba(253, 152, 32, .18), transparent 72%);
}
.success-page .success-check--hero.success-check--red {
    background: linear-gradient(135deg, #fdecec 0%, #fadfdf 100%);
    color: #d63939;
    box-shadow: inset 0 0 0 1px rgba(214, 57, 57, .16), 0 0 0 6px rgba(214, 57, 57, .07), 0 12px 28px rgba(214, 57, 57, .12);
}
.success-page .success-check--hero.success-check--red .success-check-glow {
    background: radial-gradient(closest-side, rgba(214, 57, 57, .15), transparent 72%);
}
.success-page .success-check--hero.success-check--blue {
    background: linear-gradient(135deg, #e9f2fb 0%, #dceaf6 100%);
    color: var(--tblr-primary);
    box-shadow: inset 0 0 0 1px rgba(0, 84, 166, .14), 0 0 0 6px rgba(0, 84, 166, .07), 0 12px 28px rgba(0, 84, 166, .12);
}
.success-page .success-check--hero.success-check--blue .success-check-glow {
    background: radial-gradient(closest-side, rgba(0, 84, 166, .15), transparent 72%);
}

.success-page .success-status {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.success-page .success-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .04);
}
.success-page .success-status-pill .ti {
    font-size: 1.1rem;
}
.success-page .success-status-pill--orange {
    background: rgba(253, 152, 32, .1);
    color: #b05a06;
    border-color: rgba(253, 152, 32, .26);
}
.success-page .success-status-pill--green {
    background: rgba(47, 179, 68, .1);
    color: #1d7a2c;
    border-color: rgba(47, 179, 68, .26);
}
.success-page .success-status-pill--blue {
    background: rgba(0, 84, 166, .1);
    color: var(--tblr-primary);
    border-color: rgba(0, 84, 166, .22);
}
.success-page .success-status-text {
    margin: 10px 0 0;
    font-size: .88rem;
    color: #6b7480;
}

.success-page .success-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 26px;
}
.success-page .success-card {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .07);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 12px 32px rgba(16, 24, 40, .05);
}
.success-page .success-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.success-page .success-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(0, 84, 166, .08);
    color: var(--tblr-primary);
    font-size: 1.25rem;
}
.success-page .success-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #22303d;
}
.success-page .success-card-sub {
    margin: 1px 0 0;
    font-size: .8rem;
    color: #6b7480;
}
.success-page .success-muted {
    color: #7a8595;
    font-weight: 400;
}

.success-page .success-space {
    padding: 0;
    overflow: hidden;
}
.success-page .success-space-photo {
    border-bottom: 1px solid rgba(16, 24, 40, .06);
}
.success-page .success-space-photo img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.success-page .success-space-body {
    padding: 20px 22px 22px;
}
.success-page .success-space-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -.015em;
    color: #1c2733;
}
.success-page .success-space-sub {
    margin: 2px 0 0;
    font-size: .86rem;
    color: #7a8595;
}
.success-page .success-space-sub strong {
    font-weight: 700;
    color: #3d4a59;
    font-variant-numeric: tabular-nums;
}
.success-page .success-space-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}
.success-page .success-space-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    background: var(--tblr-bg-surface-secondary, #f6f8fb);
    border: 1px solid rgba(16, 24, 40, .05);
    border-radius: 999px;
    font-size: .86rem;
    color: #3d4a59;
}
.success-page .success-space-meta .ti {
    color: var(--tblr-primary);
    font-size: 1rem;
}

.success-page .success-timeline {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.success-page .success-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 20px;
    position: relative;
}
.success-page .success-timeline li:last-child {
    padding-bottom: 0;
}
.success-page .success-timeline li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(16, 24, 40, .1), rgba(16, 24, 40, .05));
}
.success-page .success-timeline li:last-child::before {
    display: none;
}
.success-page .success-step-dot {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #dce2ea;
    color: #9aa5b1;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .05);
    z-index: 1;
}
.success-page .success-timeline li.is-done .success-step-dot {
    background: #e7f7ea;
    border-color: #2fb344;
    color: #2fb344;
}
.success-page .success-timeline li.is-current .success-step-dot {
    background: #fdf1e3;
    border-color: #fd9800;
    color: #e07e00;
}
.success-page .success-timeline li > div {
    padding-top: 2px;
}
.success-page .success-timeline strong {
    display: block;
    font-size: .97rem;
    font-weight: 650;
    color: #22303d;
}
.success-page .success-timeline .success-muted {
    display: block;
    margin-top: 2px;
    font-size: .85rem;
    line-height: 1.45;
}

.success-page .success-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 20px;
    margin-top: 6px;
}
.success-page .success-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.success-page .success-cell-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #7a8595;
}
.success-page .success-cell-label .ti {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 84, 166, .08);
    color: var(--tblr-primary);
    font-size: 1rem;
}
.success-page .success-cell strong {
    font-size: .98rem;
    font-weight: 650;
    color: #22303d;
    word-break: break-word;
    padding-left: 34px;
}

.success-page .success-hr {
    margin: 20px 0 16px;
    opacity: .6;
    border-top-color: rgba(16, 24, 40, .08);
}
.success-page .success-value-title {
    margin: 0 0 12px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7a8595;
}
.success-page .success-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.success-page .success-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .93rem;
    color: #3d4a59;
}
.success-page .success-total-row--extra {
    color: #6b7480;
    font-size: .9rem;
}
.success-page .success-grand {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px dashed rgba(16, 24, 40, .12);
    font-size: 1rem;
    font-weight: 700;
    color: #22303d;
}
.success-page .success-grand strong {
    font-size: 1.3rem;
    color: var(--tblr-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.success-page .success-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    padding: 12px 14px;
    background: rgba(0, 84, 166, .05);
    border: 1px solid rgba(0, 84, 166, .08);
    border-radius: 11px;
    font-size: .83rem;
    color: #5a6472;
    line-height: 1.5;
}
.success-page .success-note .ti {
    color: var(--tblr-primary);
    margin-top: 1px;
}

.success-page .success-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0f2b46 0%, #12355a 100%);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .18);
}
.success-page .success-code-info {
    min-width: 0;
}
.success-page .success-code-label {
    margin: 0;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9fb3c8;
}
.success-page .success-code-value {
    margin: 3px 0 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}
.success-page .success-copy {
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    font-weight: 600;
}
.success-page .success-copy:hover,
.success-page .success-copy:focus {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.success-page .success-copy.is-copied {
    color: #b7f0c2;
    border-color: rgba(47, 179, 68, .5);
}

.success-page .success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}
.success-page .success-cta {
    width: 100%;
    max-width: 360px;
    min-height: 50px;
    border-radius: 13px;
    font-size: 1rem;
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(0, 84, 166, .25);
}
.success-page .success-close {
    color: #7a8595;
    font-size: .86rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 133, 149, .45);
    padding: 0 2px 1px;
}
.success-page .success-close:hover {
    color: #3d4a59;
}

@media (max-width: 575px) {
    .success-page .success-card {
        padding: 18px;
    }
    .success-page .success-space-body {
        padding: 18px;
    }
    .success-page .success-hero {
        padding-top: 4px;
    }
    .success-page .success-code {
        flex-direction: column;
        align-items: flex-start;
    }
    .success-page .success-copy {
        width: 100%;
    }
}
@media (min-width: 576px) {
    .success-page .success-grid2 {
        grid-template-columns: 1fr 1fr;
    }
    .success-page .success-hero {
        padding-bottom: 28px;
    }
}
@media (min-width: 992px) {
    .success-page .success-main {
        padding-top: 44px;
    }
    .success-page .success-space-photo img {
        height: 240px;
    }
}
/* --------------------------------------------------------------------- */
/* Lista de reservas — cards responsivos (mobile/tablet)                 */
/* --------------------------------------------------------------------- */
.reservation-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.reservation-card:hover {
    border-color: rgba(0, 84, 166, .35);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
}
.reservation-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.reservation-card-code {
    font-weight: 700;
    font-size: .98rem;
    color: #1c2733;
}
.reservation-card-line {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: #3d4a59;
    min-width: 0;
}
.reservation-card-line .ti {
    color: var(--tblr-primary);
    flex: 0 0 auto;
    font-size: 1.05rem;
}
.reservation-card-line span {
    overflow-wrap: anywhere;
}
.reservation-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(16, 24, 40, .1);
}
.reservation-card-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #6b7480;
}
.reservation-card-next .ti {
    font-size: .9rem;
    color: #7a8595;
}

/* ============================================================
   2Z. DETALHES DA RESERVA: navegação por seções
   ============================================================ */
.reservation-nav {
    position: sticky;
    top: 4rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.reservation-nav::-webkit-scrollbar {
    display: none;
}
.reservation-nav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--app-radius-sm);
    color: var(--app-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.reservation-nav-link:hover {
    background: var(--app-sidebar-hover);
    color: var(--app-primary);
    text-decoration: none;
}
.reservation-nav-link.is-active {
    background: rgba(var(--tblr-primary-rgb), 0.1);
    color: var(--app-primary);
    font-weight: 600;
}

.reservation-section {
    scroll-margin-top: 7rem;
}
.reservation-section + .reservation-section {
    margin-top: 1rem;
}

.reservation-summary {
    position: sticky;
    top: 4.5rem;
}
.reservation-summary .list-group-item {
    padding: 0.5rem 0;
}
@media (max-width: 1199.98px) {
    .reservation-summary {
        position: static;
    }
}

.reservation-status-card {
    background: rgba(var(--tblr-primary-rgb), 0.04);
    border-left: 4px solid var(--app-primary);
}
.reservation-status-card .form-label {
    font-weight: 600;
}

/* ============================================================
   17c. PAINEL DO VIGILANTE — home operacional (tablet)
   ============================================================ */
.vigilante-home {
    padding: 0.25rem 0 1rem;
}

/* Cabeçalho */
.vig-home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.vig-home-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.vig-home-sub {
    color: var(--app-muted);
    margin: 0.125rem 0 0.5rem;
}
.vig-home-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--app-muted);
    font-size: 0.875rem;
    margin: 0;
}
.vig-home-date i {
    color: var(--app-primary);
}
.vig-home-greeting {
    text-align: right;
    font-size: 0.9375rem;
    color: var(--app-muted);
    padding-bottom: 0.25rem;
}
.vig-home-greeting strong {
    color: var(--tblr-dark);
}
.vig-home-greeting span {
    display: block;
    font-size: 0.8125rem;
}

/* Seções */
.vig-section {
    margin-bottom: 1.5rem;
}
.vig-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tblr-dark);
    margin-bottom: 0.75rem;
}

/* Cards de acesso rápido */
.vig-quick-card {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1rem;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--app-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
}
.vig-quick-card:hover {
    border-color: var(--tblr-primary);
    box-shadow: var(--app-shadow-md);
    color: inherit;
    text-decoration: none;
}
.vig-qc-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: var(--app-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.vig-quick-card--orange .vig-qc-icon { background: #fff4e3; color: #f76707; }
.vig-quick-card--blue   .vig-qc-icon { background: #e8f1ff; color: #1677ff; }
.vig-quick-card--purple .vig-qc-icon { background: #f4f0fd; color: #826af9; }
.vig-quick-card--green  .vig-qc-icon { background: #eaf7ee; color: #2fb344; }

.vig-qc-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.vig-qc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}
.vig-qc-count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: var(--tblr-primary);
    border-radius: var(--app-radius-pill);
    padding: 0.125rem 0.5rem;
    line-height: 1.5;
    margin-left: auto;
}
.vig-qc-count.is-zero {
    background: var(--app-border);
    color: var(--app-muted);
}
.vig-qc-desc {
    color: var(--app-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}
.vig-qc-link {
    color: var(--app-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

/* Alerta "Precisa da sua atenção" */
.vig-alert {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-left-width: 4px;
    border-radius: var(--app-radius-lg);
    padding: 0.875rem 1rem;
    box-shadow: var(--app-shadow-sm);
}
.vig-alert + .vig-alert {
    margin-top: 0.625rem;
}
.vig-alert--orange { border-left-color: #f76707; }
.vig-alert--purple { border-left-color: #826af9; }
.vig-alert-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: var(--app-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.vig-alert--orange .vig-alert-icon { background: #fff4e3; color: #f76707; }
.vig-alert--purple .vig-alert-icon { background: #f4f0fd; color: #826af9; }
.vig-alert-body {
    flex: 1;
    min-width: 0;
}
.vig-alert-title {
    font-weight: 600;
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}
.vig-alert-meta {
    font-size: 0.8125rem;
    color: var(--app-muted);
}
.vig-alert-desc {
    font-size: 0.8125rem;
    color: var(--app-muted);
    margin-top: 0.125rem;
}
.vig-alert-action {
    flex-shrink: 0;
}

/* Próximas vistorias */
.vig-next-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--app-shadow-sm);
}
.vig-next-card + .vig-next-card {
    margin-top: 0.625rem;
}
.vig-next-when {
    flex-shrink: 0;
    width: 3.25rem;
    text-align: center;
    border-right: 1px solid var(--app-border-soft);
    padding-right: 0.875rem;
}
.vig-next-day {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--app-muted);
}
.vig-next-time {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tblr-dark);
    line-height: 1.2;
}
.vig-next-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.vig-next-space {
    font-weight: 600;
    color: var(--tblr-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vig-next-type {
    font-size: 0.8125rem;
    color: var(--app-muted);
}
.vig-next-action {
    flex-shrink: 0;
}

/* Botões de ação com área de toque ≥44px */
.vig-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Empty state */
.vig-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 2rem 1rem;
    background: #fff;
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius-lg);
    color: var(--app-muted);
}
.vig-empty-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #eaf7ee;
    color: #2fb344;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}
.vig-empty strong {
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}

/* Footer mínimo do vigilante */
.app-footer-mini {
    padding: 0.75rem 0;
    color: var(--app-muted);
    font-size: 0.8125rem;
    text-align: center;
}

/* ============================================================
   17d. EXECUÇÃO DE VISTORIA — checklist tablet-first
   ============================================================ */
body.page-exec {
    overflow-x: hidden;
}

.page.page-exec {
    min-height: 100vh;
    padding-bottom: calc(6.25rem + env(safe-area-inset-bottom));
}

/* Checklist sem sidebar: usa toda a largura da tela (sem deslocamento da sidebar) */
.page-wrapper.page-wrapper-exec {
    margin-left: 0;
}
.page-wrapper-exec > .page-body > .container-xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Faixa superior enxuta (sem sidebar) */
.exec-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    padding: 0.5rem 0;
}
.exec-topbar-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-weight: 600;
}
.exec-topbar-title {
    font-weight: 600;
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}

.exec-layout {
    max-width: 1280px;
    margin-inline: auto;
    padding: 1.125rem 0 0.5rem;
}

/* Cabeçalho da vistoria */
.exec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-left: 4px solid var(--tblr-primary);
    border-radius: var(--app-radius-lg);
    padding: 1rem 1.125rem;
    box-shadow: var(--app-shadow-sm);
}
.exec-head-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-primary);
    margin-bottom: 0.125rem;
}
.exec-head-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}
.exec-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    margin-top: 0.5rem;
}
.exec-head-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--exec-muted, #4a5560);
    font-size: 0.875rem;
}
.exec-head-meta i {
    color: var(--app-primary);
}
.exec-badge {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.25);
    border-radius: var(--app-radius-pill);
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}
.exec-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.exec-action--head {
    min-height: 40px;
    padding: 0 0.875rem;
    font-size: 0.875rem;
}

/* Texto auxiliar */
.exec-guide {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.05);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: var(--app-radius-lg);
    font-size: 0.9375rem;
    color: var(--tblr-dark);
}

/* Progresso */
.exec-progress {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 0.875rem 1.125rem;
    box-shadow: var(--app-shadow-sm);
}
.exec-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.exec-progress-top strong {
    font-size: 0.9375rem;
}
.exec-progress-chips {
    display: inline-flex;
    gap: 0.5rem;
}
.exec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--app-radius-pill);
    padding: 0.25rem 0.75rem;
}
.exec-chip--pending {
    color: #b4550c;
    background: #fff4e3;
}
.exec-chip--problem {
    color: var(--tblr-red);
    background: #fdebeb;
}
.exec-progress-track {
    height: 10px;
    background: var(--app-border-soft);
    border-radius: var(--app-radius-pill);
    overflow: hidden;
    margin-top: 0.625rem;
}
.exec-progress-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--tblr-blue), var(--tblr-primary));
    border-radius: var(--app-radius-pill);
    transition: width 0.3s ease;
    width: 0;
}

/* Resumo compacto */
.exec-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
}
.exec-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--tblr-dark);
}
.exec-strip-item i {
    color: var(--tblr-green);
}
.exec-strip-item b {
    font-weight: 700;
}
.exec-strip-item--muted i { color: var(--app-muted); }
.exec-strip-item--problem i { color: var(--tblr-red); }
.exec-strip-item--problem { color: var(--tblr-red); }

/* Seções */
.exec-section {
    margin-top: 1.25rem;
}
.exec-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 2px solid var(--app-border);
    padding-bottom: 0.375rem;
    margin-bottom: 0.75rem;
}
.exec-section-head h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}
.exec-section-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--exec-muted, #4a5560);
    white-space: nowrap;
}

/* Card do item */
.exec-field {
    position: relative;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1rem 1.125rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--app-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.exec-field.exec-flash {
    border-color: var(--tblr-orange);
    box-shadow: 0 0 0 4px rgba(247, 103, 7, 0.18);
}
.exec-field-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.exec-field-title {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}
.exec-field-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tblr-dark);
    line-height: 1.3;
}
.exec-req {
    color: var(--tblr-red);
    font-style: normal;
    margin-left: 0.125rem;
}
.exec-field-edit {
    display: none;
    border: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-primary);
    border-radius: var(--app-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    min-height: 40px;
    padding: 0.375rem 0.75rem;
    flex-shrink: 0;
}
.exec-chip-field {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--app-radius-pill);
    padding: 0.2rem 0.625rem;
    width: fit-content;
}
.exec-chip-field.is-ok {
    color: #14803a;
    background: #eaf7ee;
}
.exec-chip-field.is-problem {
    color: var(--tblr-red);
    background: #fdebeb;
}
.exec-chip-field.is-muted {
    color: var(--app-muted);
    background: var(--app-border-soft);
}
.exec-chip-field.is-info {
    color: var(--app-primary);
    background: rgba(var(--tblr-primary-rgb), 0.08);
}

/* Enunciado */
.exec-field-question {
    margin-top: 0.5rem;
}
.exec-field-desc {
    margin: 0 0 0.375rem;
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}
.exec-field-help {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0;
    color: var(--exec-muted, #555f6b);
    font-size: 0.8125rem;
}
.exec-field-help i {
    margin-top: 0.15rem;
    color: var(--app-primary);
}

/* Resumo compacto (item concluído) */
.exec-field-compact {
    display: none;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--exec-muted, #4a5560);
}
.exec-field.is-collapsed .exec-field-content,
.exec-field.is-collapsed .exec-field-question,
.exec-field.is-collapsed .exec-field-save {
    display: none !important;
}
.exec-field.is-collapsed .exec-field-compact {
    display: flex;
}
.exec-field.is-collapsed .exec-field-edit {
    display: inline-flex;
}

/* Escolha OK / Problema */
.exec-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.875rem;
}
.exec-choice {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 56px;
    padding: 0.625rem 0.875rem;
    border-radius: var(--app-radius-lg);
    border: 2px solid var(--app-border);
    background: #fff;
    text-align: left;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.exec-choice > i {
    font-size: 1.375rem;
}
.exec-choice b {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.2;
}
.exec-choice small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}
.exec-choice--ok {
    color: #14803a;
}
.exec-choice--ok.is-on {
    background: #eaf7ee;
    border-color: #2fb344;
    box-shadow: 0 0 0 3px rgba(47, 179, 68, 0.18);
}
.exec-choice--problem {
    color: var(--tblr-red);
}
.exec-choice--problem.is-on {
    background: var(--tblr-red);
    border-color: var(--tblr-red);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(214, 57, 57, 0.2);
}
.exec-choice.is-off {
    opacity: 0.55;
}

/* Blocos de entrada */
.exec-input-block {
    margin-top: 0.875rem;
}
.exec-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--tblr-dark);
}
.exec-input-lg {
    min-height: 48px;
    font-size: 1rem;
}
.exec-input-help {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}

/* Quantidade */
.qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.qty-step {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    overflow: hidden;
    background: #fff;
}
.qty-step button {
    width: 52px;
    min-height: 52px;
    border: 0;
    background: var(--app-border-soft);
    color: var(--tblr-dark);
    font-size: 1.25rem;
    cursor: pointer;
}
.qty-step button:active {
    background: var(--app-border);
}
.qty-step input {
    width: 88px;
    min-height: 52px;
    border: 0;
    border-left: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    background: transparent;
}
.qty-expected {
    font-size: 0.9375rem;
    color: var(--exec-muted, #4a5560);
}
.qty-expected strong {
    color: var(--tblr-dark);
    font-size: 1.0625rem;
}
.field-diff-hint {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff4e3;
    color: #b4550c;
    border: 1px solid #ffd9a8;
    border-radius: var(--app-radius-md);
    font-size: 0.875rem;
}
.exec-tip {
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}
.exec-tip i {
    margin-top: 0.15rem;
}

/* Select / multi */
.exec-multi-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.exec-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: #fff;
    cursor: pointer;
    font-size: 0.9375rem;
}
.exec-option input {
    width: 1.2rem;
    height: 1.2rem;
}
.exec-option:has(input:checked) {
    border-color: var(--app-primary);
    background: rgba(var(--tblr-primary-rgb), 0.06);
    font-weight: 600;
}

/* Issue type */
.exec-issue-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.exec-issue-opt {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
}
.exec-issue-opt input {
    margin-right: 0.375rem;
}
.exec-issue-opt:has(input:checked) {
    border-color: var(--tblr-red);
    background: #fdebeb;
    color: var(--tblr-red);
    font-weight: 600;
}

/* Painel problema */
.exec-problems {
    display: none;
    margin-top: 1rem;
    padding: 0.875rem 1rem 1rem;
    border: 1px solid rgba(214, 57, 57, 0.25);
    border-left: 4px solid var(--tblr-red);
    background: rgba(224, 242, 241, 0.25);
    border-radius: var(--app-radius-lg);
}
.exec-problems.is-open {
    display: block;
}
.exec-problems-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.125rem;
    color: var(--tblr-red);
}
.exec-problems-sub {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}

/* Info */
.exec-info-box {
    margin-top: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--app-border-soft);
    border-radius: var(--app-radius-lg);
    color: var(--tblr-dark);
    font-size: 0.9375rem;
}

/* Foto */
.exec-photo-block {
    margin-top: 0.875rem;
    padding: 1rem;
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius-lg);
    background: #fafbfc;
}
.exec-photo-block--problem {
    margin-top: 0;
    border-color: rgba(214, 57, 57, 0.35);
    background: #fff;
}
.exec-photo-head {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.625rem;
}
.exec-photo-head strong {
    font-size: 0.9375rem;
    color: var(--tblr-dark);
}
.exec-photo-head span {
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}
.exec-photo-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.625rem 1.125rem;
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--app-primary);
    background: #fff;
    color: var(--app-primary);
    font-weight: 700;
    font-size: 0.9375rem;
}
.exec-photo-trigger:disabled,
.exec-photo-trigger.is-uploading {
    cursor: wait;
}
.exec-photo-trigger.is-uploading {
    animation: exec-photo-pulse 1.1s ease-in-out infinite;
}
@keyframes exec-photo-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--tblr-primary-rgb), 0.4); }
    100% { box-shadow: 0 0 0 10px rgba(var(--tblr-primary-rgb), 0); }
}
.exec-photo-progress {
    display: none;
    height: 5px;
    border-radius: var(--app-radius-pill);
    overflow: hidden;
    background: var(--app-border-soft);
    margin-top: 0.75rem;
    position: relative;
}
.exec-photo-progress.is-active {
    display: block;
}
.exec-photo-progress span {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tblr-blue), var(--tblr-primary));
    animation: exec-photo-slide 1.1s linear infinite;
}
@keyframes exec-photo-slide {
    0% { margin-left: -42%; }
    100% { margin-left: 100%; }
}
.exec-photo-status {
    margin: 0.625rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tblr-green);
}
.exec-photo-status.is-error {
    color: var(--tblr-red);
}
.exec-photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.625rem;
}
.exec-photo-gallery a {
    width: 88px;
    height: 88px;
    border-radius: var(--app-radius-md);
    overflow: hidden;
    border: 1px solid var(--app-border);
    background: #fff;
}
.exec-photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exec-photo-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}
.exec-photo-count,
.exec-add-more {
    color: var(--app-primary);
    font-weight: 600;
}
.exec-add-more {
    border: 0;
    background: none;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.exec-field-save {
    min-height: 1.1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #14803a;
    display: flex;
    justify-content: flex-end;
}

/* Resumo lateral dedicado (desktop grande) */
.exec-sidebar {
    position: sticky;
    top: 4.25rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1rem;
    box-shadow: var(--app-shadow-sm);
}
.exec-sidebar-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.exec-sidebar-lines {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.exec-sidebar-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--tblr-dark);
}
.exec-sidebar-line i { color: var(--tblr-green); }
.exec-sidebar-line.is-problem i,
.exec-sidebar-line.is-problem { color: var(--tblr-red); }
.exec-sidebar-line b {
    margin-left: auto;
    font-size: 1rem;
}
.exec-sidebar-sections {
    margin-top: 0.875rem;
    border-top: 1px solid var(--app-border-soft);
    padding-top: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.exec-sidebar-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--exec-muted, #555f6b);
}
.exec-sidebar-sec i { color: var(--tblr-green); }
.exec-sidebar-sec b { color: var(--tblr-dark); font-weight: 600; }
.exec-sidebar-check {
    margin: 0.875rem 0 0;
    font-size: 0.75rem;
    color: var(--exec-muted, #555f6b);
}

/* Barra de ações fixa */
.exec-actionbar-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--app-border);
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}
.exec-actionbar {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.exec-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    border-radius: var(--app-radius-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0 1.125rem;
    border: 1px solid transparent;
}
.exec-action--ghost {
    color: var(--app-primary);
    background: #fff;
    border-color: var(--app-border);
}
.exec-action--primary {
    color: #fff;
    background: var(--tblr-green);
}
.exec-action--primary:active {
    background: #1d8a3c;
}
.exec-actionbar-mid {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.exec-actionbar-mid strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--tblr-dark);
}
.exec-actionbar-track {
    height: 6px;
    background: var(--app-border-soft);
    border-radius: var(--app-radius-pill);
    overflow: hidden;
    margin-top: 0.25rem;
}
.exec-actionbar-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--tblr-blue), var(--tblr-primary));
    transition: width 0.3s ease;
    width: 0;
}
.exec-autosave {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: var(--app-muted);
}
.exec-autosave.is-ok { color: var(--tblr-green); }
.exec-autosave.is-offline { color: var(--tblr-red); }

/* Modais */
.exec-modal {
    border-radius: var(--app-radius-lg);
}
.exec-modal-sub {
    color: var(--exec-muted, #555f6b);
    font-size: 0.9375rem;
}
.exec-missing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--app-border-soft);
    border-radius: var(--app-radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.exec-missing-list li i {
    color: var(--tblr-orange);
    margin-top: 0.15rem;
}
.exec-btn-lg {
    min-height: 48px;
    font-size: 0.9375rem;
    font-weight: 600;
}
.exec-modal-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tblr-red);
    margin: 1rem 0 0.5rem;
}
.exec-final-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}
.exec-final-stat {
    text-align: center;
    padding: 0.75rem 0.25rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: #fafbfc;
}
.exec-final-stat b {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tblr-dark);
    line-height: 1.1;
}
.exec-final-stat span {
    font-size: 0.6875rem;
    color: var(--exec-muted, #555f6b);
}
.exec-final-stat.is-ok b { color: var(--tblr-green); }
.exec-final-stat.is-problem b { color: var(--tblr-red); }
.exec-final-warn {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border-radius: var(--app-radius-md);
    font-size: 0.8125rem;
    color: var(--tblr-dark);
    margin-bottom: 0.375rem;
}
.exec-final-warn i {
    color: var(--app-primary);
    margin-top: 0.1rem;
}
.exec-final-problems {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 260px;
    overflow: auto;
}
.exec-final-problem {
    border: 1px solid var(--app-border);
    border-left: 3px solid var(--tblr-red);
    border-radius: var(--app-radius-md);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}
.exec-final-problem strong { display: block; }
.exec-final-detail {
    display: block;
    color: var(--exec-muted, #555f6b);
    font-size: 0.8125rem;
}
.exec-final-photos {
    color: var(--app-primary);
    font-size: 0.75rem;
    font-weight: 600;
}
.exec-final-problem p {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--tblr-dark);
}

/* Responsivo tablet/telefone */
@media (max-width: 991.98px) {
    .page-wrapper-exec > .page-body > .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .exec-head {
        padding: 0.875rem;
    }
    .exec-head-title {
        font-size: 1.25rem;
    }
}
@media (max-width: 575.98px) {
    .page-wrapper-exec > .page-body > .container-xl {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    .exec-choices {
        grid-template-columns: 1fr;
    }
    .exec-head {
        flex-wrap: wrap;
    }
    .exec-head-actions {
        width: 100%;
        justify-content: space-between;
    }
    .exec-badge {
        margin-left: 0;
    }
    .exec-action {
        padding: 0 0.875rem;
        font-size: 0.875rem;
    }
    .exec-actionbar-wrap {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    .exec-actionbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .exec-actionbar .exec-action {
        width: 100%;
    }
    .exec-final-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .exec-layout {
        padding-top: 0.875rem;
    }
}

/* Responsivo */
@media (max-width: 575.98px) {
    .vig-home-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .vig-home-greeting {
        text-align: left;
    }
    .vig-alert,
    .vig-next-card {
        flex-wrap: wrap;
    }
    .vig-alert-action,
    .vig-next-action {
        flex-basis: 100%;
        padding-left: 3.125rem;
    }
    .vig-alert-action .vig-btn,
    .vig-next-action .vig-btn {
        width: 100%;
    }
}

/* ============================================================
   30. ANIMAÇÕES FLUIDAS
   ============================================================ */
/* Rolagem suave da página (âncoras, retorno ao topo) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 3.5rem;
}
@keyframes app-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes app-rise-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes app-pop-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes app-spin {
    to { transform: rotate(360deg); }
}

/* Entrada do conteúdo da página */
.page-body > .container-xl {
    animation: app-fade-in 0.4s ease;
}

/* Cards e painéis entram com leve subida.
   Usa fill "backwards": ao final, NENHUM transform permanece no card,
   evitando stacking context que prendia os dropdowns do Tom Select por baixo. */
.page-body > .container-xl .card,
.page-body > .container-xl > .filter-panel {
    animation: app-rise-in 0.45s ease backwards;
}
.page-body > .container-xl .card .card {
    animation: none;
}
.page-body > .container-xl > .card:nth-of-type(2) { animation-delay: 0.05s; }
.page-body > .container-xl > .card:nth-of-type(3) { animation-delay: 0.1s; }
.page-body > .container-xl > .card:nth-of-type(4) { animation-delay: 0.15s; }
.page-body > .container-xl > .card:nth-of-type(5) { animation-delay: 0.2s; }

/* Alertas entram com suavidade */
.alert {
    animation: app-rise-in 0.35s ease;
}

/* Dropdown de menus abre/fecha com suavidade */
.dropdown-menu {
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-menu:not(.show) {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* Passos do portal (j-steps) abrem com fade */
.public-page .j-step-body {
    animation: app-fade-in 0.35s ease;
}

/* Overlay de carregamento global */
.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 10, 17, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.app-loading-overlay.app-loading-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.app-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem 2.25rem;
    background: #fff;
    border-radius: var(--app-radius-md, 0.75rem);
    box-shadow: 0 16px 40px rgba(4, 10, 17, 0.18);
    animation: app-pop-in 0.3s ease;
}
.app-loading-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgba(13, 34, 68, 0.15);
    border-top-color: var(--app-primary);
    border-radius: 50%;
    animation: app-spin 0.8s linear infinite;
}
#app-loading-msg {
    color: var(--app-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
body.app-loading-lock {
    overflow: hidden;
}

/* Usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .app-loading-spinner {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   CONVIDADO VIA LINK (tela mínima de confirmação de presença)
   ========================================================================== */
.guest-join-main {
    max-width: 620px;
}

.guest-join-hero .success-sub {
    max-width: 42rem;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.guest-join-card {
    background: #fff;
    border: 1px solid var(--tblr-border-color);
    border-radius: 1rem;
    box-shadow: var(--tblr-shadow-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.guest-join-row {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--tblr-border-color);
}

.guest-join-row:last-child {
    border-bottom: 0;
}

.guest-join-row .form-label {
    margin-bottom: 0.35rem;
}

.guest-join-role {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    background: var(--tblr-secondary-bg);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

@media (max-width: 540px) {
    .guest-join-card {
        padding: 1rem;
    }
    .guest-join-actions .btn {
        width: 100%;
    }
}
