/* ===========================
   Base / Reset
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-width: 320px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f3f7fb;
    color: #17243a;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Identidade NÚCLEO DO PORTO DA ANTF (azul)
   =========================== */

:root {
    --brand-navy: #082d57;
    --brand-dark: #0b3b70;
    --brand-blue: #146fb3;
    --brand-bright: #2f8ed0;
    --brand-soft: #eaf4fc;
    --brand-pale: #f4f9fd;
    --antf-green: var(--brand-blue);
    --antf-green-dark: var(--brand-dark);
    --antf-green-soft: var(--brand-soft);
    --antf-text: #17243a;
    --antf-muted: #68778d;
    --antf-border: #d9e4ef;
    --antf-danger: #c83c4d;
    --antf-warning: #d79a1d;
    --antf-success: #198754;
    --antf-radius-lg: 18px;
    --antf-shadow-soft: 0 14px 36px rgba(8, 45, 87, 0.09);
    --antf-shadow-lift: 0 22px 48px rgba(8, 45, 87, 0.14);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===========================
   Links e texto
   =========================== */

a {
    color: var(--antf-green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Botões
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: var(--antf-text);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--antf-green), var(--antf-green-dark));
    color: #fff;
    box-shadow: var(--antf-shadow-soft);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 143, 90, 0.3);
}

.btn-secondary {
    background: #fff;
    border-color: var(--antf-border);
    color: var(--antf-green-dark);
}

.btn-secondary:hover {
    background: var(--antf-green-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--antf-muted);
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ===========================
   Layout Admin
   =========================== */

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

.admin-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #00b46f, var(--antf-green-dark));
    color: #ecfdf5;
    padding: 1.5rem 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: rgba(0,0,0,0.12);
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.sidebar-title span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-title span:last-child {
    font-size: 0.75rem;
    opacity: 0.85;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 0.35rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #e5fbee;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

.sidebar-nav a:hover {
    background: rgba(0, 0, 0, 0.22);
    transform: translateX(2px);
}

.sidebar-footer {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* ===========================
   Main / Topbar
   =========================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.08), transparent 60%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem 0.4rem;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--antf-muted);
}

/* ===========================
   Conteúdo / Cartões / Tabelas
   =========================== */

.page-content {
    padding: 0.5rem 2rem 2rem;
}

.card {
    background: #ffffff;
    border-radius: var(--antf-radius-lg);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--antf-muted);
}

.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.stat-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--antf-green-soft);
    font-size: 0.85rem;
    color: var(--antf-green-dark);
}

/* Tabela */

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

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead {
    background: #f0f4f8;
}

.table th,
.table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--antf-border);
    text-align: left;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f9fbff;
}

/* Estados de presença */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-obs{
  border: 1px dashed rgba(0,0,0,.25);
  box-shadow: 0 0 0 2px rgba(0,0,0,.04) inset;
  cursor: help;
}

.badge-sim {
    background: rgba(0, 143, 90, 0.12);
    color: var(--antf-green-dark);
}

.badge-nao {
    background: rgba(214, 69, 69, 0.1);
    color: var(--antf-danger);
}

.badge-pendente {
    background: rgba(247, 201, 72, 0.12);
    color: #8a6d1c;
}

/* ===========================
   Formulários
   =========================== */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--antf-border);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #f9fafb;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--antf-green);
    box-shadow: 0 0 0 1px rgba(0, 143, 90, 0.2);
    background: #ffffff;
}

/* Radio */

.radio-group {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* Mensagens */

.alert {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.alert-error {
    background: rgba(214,69,69,0.06);
    color: var(--antf-danger);
}

.alert-success {
    background: rgba(0,143,90,0.08);
    color: var(--antf-green-dark);
}

/* ===========================
   Login
   =========================== */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.14), #f7fafc 60%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem 1.9rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.login-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.login-subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--antf-muted);
}

/* ===========================
   Frontend RSVP
   =========================== */

.rsvp-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(0, 143, 90, 0.15), #f7fafc 55%);
    padding: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rsvp-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 1.9rem;
    box-shadow: var(--antf-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.rsvp-header {
    margin-bottom: 1rem;
}

.rsvp-event-title {
    margin: 0 0 0.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.rsvp-meta {
    font-size: 0.9rem;
    color: var(--antf-muted);
}

.rsvp-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--antf-muted);
}

/* ===========================
   Responsivo
   =========================== */

@media (max-width: 880px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding-top: 0.5rem;
    }

    .topbar {
        padding: 1rem 1.1rem 0.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .page-content {
        padding: 0.75rem 1.1rem 1.6rem;
    }
}

/* Definições de identidade visual por conta */
.brand-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.brand-settings-card {
    min-width: 0;
}

.brand-color-editor {
    display: flex;
    margin-top: 1rem;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.brand-color-editor .form-group {
    min-width: min(100%, 280px);
    margin: 0;
}

.brand-color-inputs {
    display: grid;
    grid-template-columns: 52px minmax(130px, 1fr);
    gap: 0.55rem;
}

.admin-body .page-content .brand-color-inputs input[type="color"] {
    width: 52px;
    height: 42px;
    padding: 3px;
    border: 1px solid var(--admin-line-strong);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    cursor: pointer;
}

.brand-presets {
    display: flex;
    padding-bottom: 2px;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.brand-preset {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    outline: 1px solid #cbd5e1;
    background: var(--preset-color);
    box-shadow: 0 2px 7px rgba(15,23,42,0.12);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.brand-preset:hover,
.brand-preset:focus-visible {
    transform: translateY(-2px) scale(1.06);
}

.brand-logo-field {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--admin-line);
}

.brand-logo-field small,
.brand-settings-actions span {
    display: block;
    margin-top: 0.4rem;
    color: var(--admin-muted);
    font-size: 0.76rem;
}

.brand-remove-logo {
    display: flex;
    margin-top: 0.75rem;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.8rem;
}

.brand-settings-actions {
    display: flex;
    margin-top: 1.2rem;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.brand-settings-actions span {
    margin: 0;
}

.brand-preview-card {
    position: sticky;
    top: 105px;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--admin-shadow-raised);
}

.brand-preview-label {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: var(--preview-dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-preview-sidebar {
    display: flex;
    min-height: 92px;
    padding: 1.1rem;
    align-items: center;
    gap: 0.8rem;
    background:
        radial-gradient(circle at 8% 0, var(--preview-primary), transparent 55%),
        linear-gradient(145deg, var(--preview-dark), #09121d);
    color: #fff;
}

.brand-preview-logo {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    padding: 5px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.46);
    border-radius: 12px;
    background: #fff;
    color: var(--preview-dark);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand-preview-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-preview-sidebar strong,
.brand-preview-sidebar span {
    display: block;
}

.brand-preview-sidebar strong {
    font-size: 0.86rem;
}

.brand-preview-sidebar span {
    margin-top: 0.14rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.67rem;
}

.brand-preview-content {
    padding: 1.25rem;
}

.brand-preview-content > span {
    color: var(--preview-dark);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.brand-preview-content h3 {
    margin: 0.3rem 0 0.4rem;
    color: #172b42;
    font-size: 1.08rem;
}

.brand-preview-content p {
    margin: 0;
    color: #66788c;
    font-size: 0.76rem;
    line-height: 1.5;
}

.brand-preview-content button {
    margin-top: 1rem;
    padding: 0.58rem 0.85rem;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, var(--preview-primary), var(--preview-dark));
    color: #fff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
}

.brand-preview-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 9px;
    margin-top: 1.15rem;
    overflow: hidden;
    border-radius: 999px;
}

.brand-preview-swatches i:nth-child(1) { background: var(--preview-dark); }
.brand-preview-swatches i:nth-child(2) { background: var(--preview-primary); }
.brand-preview-swatches i:nth-child(3) { background: var(--preview-soft); }
.brand-preview-swatches i:nth-child(4) { background: #f8fafc; }

@media (max-width: 980px) {
    .brand-settings-layout { grid-template-columns: 1fr; }
    .brand-preview-card { position: static; }
}

.sidebar-account-name,
.sidebar-user-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-name {
    margin-bottom: .2rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
}

.sidebar-user-name {
    margin-bottom: .65rem;
    color: rgba(255,255,255,.68);
    font-size: .7rem;
    text-transform: capitalize;
}

.topbar-account-context {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: .15rem;
    color: #37506a;
    font-size: .75rem;
}

.topbar-account-context strong {
    color: #173a5d;
    font-size: .82rem;
}

/* ===========================
   Tema premium azul — Núcleo do Porto da ANTF
   =========================== */

:focus-visible {
    outline: 3px solid rgba(47, 142, 208, 0.35);
    outline-offset: 2px;
}

.btn {
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
}

.btn-primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20, 111, 179, 0.28);
}

.btn-secondary:hover {
    border-color: #b9d6eb;
    text-decoration: none;
}

.btn-ghost:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-decoration: none;
}

.admin-body {
    overflow-x: hidden;
}

.sidebar {
    position: sticky;
    top: 0;
    width: 286px;
    height: 100vh;
    padding: 1.6rem 1.25rem 1.4rem;
    color: #f2f8fd;
    background:
        radial-gradient(circle at 15% 0%, rgba(47, 142, 208, 0.55), transparent 34%),
        linear-gradient(165deg, var(--brand-navy), #061f3c 78%);
    box-shadow: 14px 0 38px rgba(6, 31, 60, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(174, 210, 236, .3) transparent;
    scrollbar-width: thin;
    z-index: 40;
}

.sidebar-header {
    margin-bottom: 2.2rem;
    padding: 0.2rem 0.25rem;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-weight: 800;
    background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px rgba(0,0,0,0.16);
}

.sidebar-title span:first-child {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.sidebar-title span:last-child {
    font-size: 0.7rem;
    opacity: 0.72;
    letter-spacing: 0.02em;
}

.sidebar-nav a {
    gap: 0.7rem;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #dceaf7;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.09);
    transform: translateX(3px);
}

.sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(47,142,208,0.42), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.nav-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: rgba(178, 211, 238, 0.65);
    box-shadow: 0 0 0 4px rgba(178, 211, 238, 0.08);
}

.sidebar-nav a.active .nav-dot {
    background: #8dd2ff;
    box-shadow: 0 0 0 4px rgba(141, 210, 255, 0.15);
}

.sidebar-footer {
    color: rgba(226, 239, 250, 0.65);
    padding: 1rem 0.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.sidebar-footer-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
    font-weight: 700;
}

.sidebar-session {
    display: flex;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    color: rgba(226, 239, 250, 0.82);
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-session > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #45d483;
    box-shadow: 0 0 0 4px rgba(69,212,131,0.12);
}

.sidebar-logout {
    display: flex;
    width: 100%;
    min-height: 42px;
    margin-top: 1rem;
    padding: 0.62rem 0.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sidebar-logout:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sidebar-logout svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-toggle,
.sidebar-backdrop {
    display: none;
}

.main-content {
    min-width: 0;
    background:
        radial-gradient(circle at 75% 0%, rgba(47, 142, 208, 0.1), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, #f2f6fa 100%);
}

/* No desktop, apenas a area de conteudo rola; o menu permanece no viewport. */
@media (min-width: 881px) {
    body.admin-body {
        height: 100%;
        overflow: hidden;
    }

    .admin-shell {
        display: block;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-content {
        width: calc(100% - 286px);
        height: 100vh;
        height: 100dvh;
        margin-left: 286px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

.topbar {
    padding: 1.65rem clamp(1.2rem, 3vw, 2.6rem) 0.8rem;
    gap: 1.5rem;
}

.topbar-heading {
    min-width: 0;
}

.page-eyebrow,
.section-kicker,
.login-eyebrow {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--brand-blue);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: 760;
    letter-spacing: -0.025em;
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
}

.session-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--antf-success);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.page-content {
    width: 100%;
    max-width: 1680px;
    padding: 0.7rem clamp(1.2rem, 3vw, 2.6rem) 2.6rem;
}

.card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid rgba(201, 218, 233, 0.75);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-title {
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.card-subtitle {
    margin: 0.15rem 0 0;
}

.stat-pill {
    border-radius: 10px;
}

.table-wrapper {
    border: 1px solid #e2ebf3;
    border-radius: 14px;
    background: #fff;
}

.table thead {
    background: #f2f7fb;
}

.table th,
.table td {
    padding: 0.72rem 0.78rem;
}

.table th {
    color: #4f6177;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: #f4f9fd;
}

.form-group label {
    font-weight: 650;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    min-height: 42px;
    padding: 0.62rem 0.75rem;
    border-radius: 11px;
    background: #fbfdff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(20, 111, 179, 0.12);
}

.alert {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.08);
    color: #146c43;
}

.login-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(47, 142, 208, 0.42), transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(20, 111, 179, 0.2), transparent 30%),
        linear-gradient(145deg, #061f3c 0%, #0b3b70 52%, #0d538e 100%);
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50%;
    pointer-events: none;
}

.login-shell::before { top: -230px; right: -120px; }
.login-shell::after { bottom: -290px; left: -130px; }

.login-card {
    max-width: 470px;
    position: relative;
    z-index: 1;
    padding: clamp(1.45rem, 4vw, 2.2rem);
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(255,255,255,0.62);
    box-shadow: 0 32px 70px rgba(1, 19, 38, 0.34);
}

.login-header {
    gap: 0.95rem;
    margin-bottom: 1.7rem;
}

.login-card .sidebar-logo {
    color: #fff;
    background: linear-gradient(145deg, var(--brand-bright), var(--brand-dark));
    border-color: rgba(20,111,179,0.18);
    box-shadow: 0 12px 28px rgba(20,111,179,0.25);
}

.login-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.015em;
}

.login-actions {
    display: flex;
    margin-top: 1.35rem;
}

.login-actions .btn {
    width: 100%;
    min-height: 46px;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 6px;
}

.login-footer {
    margin: 1.3rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e5edf4;
    color: var(--antf-muted);
    font-size: 0.75rem;
    text-align: center;
}

.rsvp-body {
    background: radial-gradient(circle at top, rgba(47, 142, 208, 0.18), #f4f8fc 55%);
}

@media (max-width: 880px) {
    .sidebar {
        display: flex;
        position: fixed;
        left: 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .menu-open .sidebar { transform: translateX(0); }

    .mobile-menu-toggle {
        position: fixed;
        top: max(0.85rem, env(safe-area-inset-top));
        left: 0.85rem;
        z-index: 60;
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid #d4e1ec;
        border-radius: 12px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 10px 26px rgba(8,45,87,0.16);
        cursor: pointer;
        transition: left 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .menu-open .mobile-menu-toggle {
        left: 232px;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand-dark);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: block;
        border: 0;
        background: rgba(2, 18, 35, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        backdrop-filter: blur(2px);
    }

    .menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-open { overflow: hidden; }

    .main-content { padding-top: 0.2rem; }

    .topbar {
        min-height: 76px;
        padding: 1rem 1rem 0.6rem 4.4rem;
        flex-direction: row;
        align-items: center;
    }

    .page-content { padding: 0.75rem 1rem 1.6rem; }
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .card-header > .btn { width: 100%; }

    .radio-group {
        flex-direction: column;
        gap: 0.65rem;
    }

    .login-shell,
    .rsvp-body { padding: 0.75rem; }

    .login-card { border-radius: 20px; }
}

/* Listagem de convidados em duas linhas por pessoa */
.guest-two-row-wrapper {
    overflow-x: hidden;
}

.guest-two-row-table {
    table-layout: fixed;
}

.guest-two-row-table th,
.guest-two-row-table td {
    white-space: normal;
    vertical-align: middle;
}

.guest-two-row-table th:nth-child(1) { width: 27%; }
.guest-two-row-table th:nth-child(2) { width: 14%; }
.guest-two-row-table th:nth-child(3) { width: 16%; }
.guest-two-row-table th:nth-child(4) { width: 18%; }
.guest-two-row-table th:nth-child(5) { width: 25%; }

.guest-primary-row td {
    padding-top: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 0;
}

.guest-detail-row td {
    padding-top: 0;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #d9e4ee;
}

.guest-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid #e2ebf3;
    border-radius: 10px;
    background: #f7fafc;
}

.guest-detail-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.guest-detail-wide {
    grid-column: span 2;
}

.guest-detail-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.guest-detail-value,
.guest-secondary-text {
    overflow-wrap: anywhere;
}

.guest-detail-value {
    color: #1f2937;
    font-size: 0.86rem;
}

.guest-secondary-text {
    color: #64748b;
    font-size: 0.78rem;
}

.guest-name-edit,
.guest-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.guest-edit-btn {
    padding: 0.3rem 0.55rem;
}

/* Tratamento editorial/premium exclusivo de evento_convidados.php */
.guest-premium-page {
    --guest-ink: #10283f;
    --guest-ink-soft: #30475d;
    --guest-gold: #b9904a;
    --guest-gold-light: #dfc999;
    --guest-paper: #f7f5f0;
    --guest-line: #dce3e8;
    color: var(--guest-ink);
}

.guest-premium-page h2,
.guest-premium-page h3 {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.guest-premium-shell {
    margin-bottom: 2.8rem;
    overflow: hidden;
    border: 1px solid #d9e1e7;
    border-top: 3px solid var(--guest-gold);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 40, 63, 0.08);
}

.guest-premium-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 2rem 1.65rem;
    color: #fff;
    background: var(--guest-ink);
}

.guest-premium-heading h2 {
    max-width: 900px;
    margin: 0.18rem 0 0.35rem;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.guest-premium-heading p {
    margin: 0;
    color: #cbd6df;
    font-size: 0.92rem;
}

.guest-premium-kicker,
.guest-option-label {
    color: var(--guest-gold-light);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guest-back-link {
    flex: 0 0 auto;
    padding: 0.56rem 0.76rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.guest-back-link:hover {
    border-color: var(--guest-gold-light);
    background: rgba(255, 255, 255, 0.08);
}

.guest-option-bar {
    display: grid;
    grid-template-columns: 1.05fr 1.45fr 0.55fr;
    border-bottom: 1px solid var(--guest-line);
    background: var(--guest-paper);
}

.guest-option-group {
    min-width: 0;
    padding: 1rem 1.25rem 1.1rem;
    border-right: 1px solid var(--guest-line);
}

.guest-option-group:last-child {
    border-right: 0;
}

.guest-option-group .guest-option-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #6f6048;
}

.guest-option-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.guest-option-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.68rem;
    border: 1px solid #b8c4ce;
    border-radius: 7px;
    background: #fff;
    color: var(--guest-ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.guest-option-btn:hover {
    transform: translateY(-1px);
    border-color: var(--guest-ink);
    background: #eef2f5;
}

.guest-option-primary {
    border-color: var(--guest-ink);
    background: var(--guest-ink);
    color: #fff;
}

.guest-option-primary:hover {
    border-color: #1d3d59;
    background: #1d3d59;
    color: #fff;
}

.guest-option-quiet {
    border-color: var(--guest-gold);
    color: #725723;
}

.guest-metrics-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--guest-line);
    background: #fff;
}

.guest-metric {
    min-width: 0;
    padding: 0.15rem 1rem;
    border-left: 1px solid var(--guest-line);
}

.guest-metric:first-child {
    border-left: 0;
}

.guest-metric-value {
    color: var(--guest-ink);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
}

.guest-metric-label {
    margin-top: 0.38rem;
    color: var(--guest-ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.guest-metric-note {
    margin-top: 0.15rem;
    color: #8795a2;
    font-size: 0.66rem;
    line-height: 1.25;
}

.guest-filter-bar,
.guest-add-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1.5rem;
}

.guest-filter-bar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--guest-line);
}

.guest-filter-copy {
    color: #637486;
    font-size: 0.82rem;
}

.guest-filter-copy > strong {
    display: block;
    margin-bottom: 0.12rem;
    color: var(--guest-ink);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 0;
}

.guest-filter-form label {
    color: #637486;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guest-filter-form select {
    min-width: 150px;
    border-color: #b8c4ce;
    border-radius: 7px;
    background: #fff;
}

.guest-add-heading {
    padding: 1.15rem 0;
}

.guest-add-heading h3 {
    margin: 0.15rem 0 0;
    color: var(--guest-ink);
    font-size: 1.12rem;
    font-weight: 500;
}

.guest-add-heading .guest-option-label {
    color: #8b6b32;
}

.guest-premium-shell #addGuestForm {
    margin: 0 !important;
    padding: 1.4rem 1.5rem 1.6rem;
    border-top: 1px solid var(--guest-line);
    background: #faf9f6;
}

.guest-premium-shell #addGuestForm h4 {
    color: var(--guest-ink);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1rem !important;
    font-weight: 500;
}

.guest-premium-shell .btn-primary {
    border-color: var(--guest-ink);
    border-radius: 7px;
    background: var(--guest-ink);
    box-shadow: none;
}

.guest-directory-section {
    margin: 0 0 2.8rem;
}

.guest-directory-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #aebbc6;
}

.guest-directory-number {
    color: var(--guest-gold);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1;
}

.guest-directory-heading h2 {
    margin: 0;
    color: var(--guest-ink);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.guest-directory-heading p {
    margin: 0.15rem 0 0;
    color: #748391;
    font-size: 0.74rem;
}

.guest-directory-heading p span {
    color: #9aa5ae;
}

.guest-premium-page .guest-two-row-wrapper {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.guest-premium-page .guest-two-row-table thead {
    background: transparent;
}

.guest-premium-page .guest-two-row-table th {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--guest-ink);
    color: #687887;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.guest-premium-page .guest-primary-row td {
    padding-top: 1rem;
    background: #fff;
}

.guest-premium-page .guest-primary-row td:first-child strong {
    color: var(--guest-ink);
    font-size: 0.94rem;
    font-weight: 750;
}

.guest-premium-page .guest-detail-row td {
    background: #fff;
}

.guest-premium-page .guest-detail-grid {
    border: 0;
    border-left: 2px solid var(--guest-gold-light);
    border-radius: 0 8px 8px 0;
    background: var(--guest-paper);
}

.guest-premium-page .guest-detail-label {
    color: #796846;
}

.guest-premium-page .badge {
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 750;
}

.guest-premium-page .guest-edit-btn {
    border: 1px solid #c9ae76;
    border-radius: 5px;
    background: transparent;
    color: #75591f;
    box-shadow: none;
    font-size: 0.68rem;
}

.guest-premium-page .guest-edit-btn:hover {
    border-color: var(--guest-gold);
    background: #f4ecdc;
    color: #5b4213;
}

.guest-premium-page .guest-detail-actions .btn {
    padding: 0.36rem 0.58rem;
    border: 1px solid #aebdca;
    border-radius: 5px;
    background: #fff;
    color: var(--guest-ink);
    box-shadow: none;
    font-size: 0.68rem;
    font-weight: 800;
}

.guest-premium-page .guest-detail-actions .btn:hover {
    border-color: var(--guest-ink);
    background: #eaf0f4;
}

@media (max-width: 1050px) {
    .guest-option-bar {
        grid-template-columns: 1fr 1fr;
    }

    .guest-option-group:nth-child(2) {
        border-right: 0;
    }

    .guest-option-group-utility {
        grid-column: 1 / -1;
        border-top: 1px solid var(--guest-line);
    }

    .guest-metrics-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .guest-metric:nth-child(4) {
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .guest-premium-heading,
    .guest-filter-bar,
    .guest-add-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-premium-heading {
        padding: 1.35rem;
    }

    .guest-option-bar {
        display: block;
    }

    .guest-option-group,
    .guest-option-group:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--guest-line);
    }

    .guest-option-group:last-child {
        border-bottom: 0;
    }

    .guest-metrics-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem 0.6rem;
    }

    .guest-metric,
    .guest-metric:nth-child(4) {
        border-left: 1px solid var(--guest-line);
    }

    .guest-metric:nth-child(odd) {
        border-left: 0;
    }

    .guest-filter-bar,
    .guest-add-heading {
        margin: 0 1rem;
    }

    .guest-filter-form,
    .guest-filter-form .form-group,
    .guest-filter-form select,
    .guest-add-heading .guest-option-btn {
        width: 100%;
    }

    .guest-directory-heading {
        align-items: flex-start;
    }

    .guest-two-row-table,
    .guest-two-row-table tbody,
    .guest-primary-row,
    .guest-detail-row,
    .guest-detail-row td {
        display: block;
        width: 100%;
    }

    .guest-two-row-table thead {
        display: none;
    }

    .guest-primary-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.7rem 0.7rem 0;
    }

    .guest-primary-row td {
        display: block;
        padding: 0.35rem;
        border: 0;
    }

    .guest-primary-row td:first-child,
    .guest-primary-row td:last-child {
        grid-column: 1 / -1;
    }

    .guest-detail-row td {
        padding: 0.35rem 0.7rem 0.85rem;
    }

    .guest-detail-grid {
        grid-template-columns: 1fr;
    }

    .guest-detail-wide {
        grid-column: auto;
    }
}

/* Linguagem visual comum ao Guião: convidados e resumo do evento */
.event-view-page {
    --event-ink: #152033;
    --event-muted: #64748b;
    --event-line: #d8e0e8;
    --event-blue: #1f65b6;
    --event-gold: #d3aa59;
    display: grid;
    width: 100%;
    gap: 14px;
    color: var(--event-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.event-view-page *,
.event-view-page *::before,
.event-view-page *::after {
    box-sizing: border-box;
}

.event-view-stack {
    display: grid;
    gap: 14px;
}

.event-view-summary {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    border: 1px solid #dce3eb;
    border-radius: 7px;
    background: linear-gradient(120deg, #fff 0%, #f8fafc 72%, #edf4fb 100%);
    box-shadow: 0 12px 38px rgba(21, 39, 61, 0.07);
}

.event-view-summary::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(var(--event-blue), var(--event-gold));
    content: "";
}

.event-view-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.event-view-title {
    margin: 0 0 6px;
    color: #142238;
    font-family: inherit;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.event-view-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.event-view-back,
.event-view-button,
.event-view-readonly-badge {
    display: inline-flex;
    min-height: 40px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.event-view-back,
.event-view-button {
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #33465c;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.event-view-back:hover,
.event-view-button:hover {
    border-color: #9dafc0;
    background: #edf3f8;
    color: #14263b;
}

.event-view-button-primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.event-view-button-primary:hover {
    border-color: #25364a;
    background: #25364a;
    color: #fff;
}

.event-view-metrics {
    display: flex;
    margin-top: 10px;
    padding: 0;
    gap: 7px;
    align-items: stretch;
    flex-wrap: wrap;
    border: 0;
    background: transparent;
}

.event-view-metric {
    display: inline-flex;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    gap: 4px;
    align-items: center;
    border: 1px solid #d7dfe8;
    border-radius: 4px;
    background: #fff;
    color: #43546a;
    box-shadow: 0 1px 0 rgba(20, 38, 58, 0.03);
    font-size: 12px;
    line-height: 1.15;
}

.event-view-metric strong {
    color: #142238;
    font-size: 12px;
    font-weight: 900;
}

.event-view-metric-ok {
    border-color: #b8dfcd;
    background: #f1faf6;
    color: #176246;
}

.event-view-metric-ok strong {
    color: #126442;
}

.event-view-command {
    overflow: hidden;
    border: 1px solid var(--event-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(25, 44, 68, 0.06);
}

.event-view-command-grid {
    display: grid;
    grid-template-columns: auto minmax(410px, 1.6fr) auto minmax(205px, 0.7fr);
    align-items: stretch;
}

.event-view-command-group {
    min-width: 0;
    padding: 14px 15px;
    border-right: 1px solid #e1e7ee;
}

.event-view-command-group:last-child {
    border-right: 0;
}

.event-view-command-label,
.event-view-command-group > .guest-option-label {
    display: block;
    margin-bottom: 7px;
    color: #728197;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.event-view-command-buttons,
.event-view-command-group > .guest-option-buttons {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.event-view-command-footer {
    display: flex;
    min-height: 43px;
    margin: 0;
    padding: 9px 14px;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e0e6ed;
    background: #f8fafc;
    color: #516175;
    font-size: 12px;
}

.event-view-readonly-badge {
    min-height: 32px;
    border: 1px solid #9fc9e8;
    background: #e7f4fc;
    color: #195b8f;
}

.event-view-section {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--event-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(25, 44, 68, 0.07);
}

.event-view-section-heading,
.guest-directory-heading {
    display: flex;
    min-height: 52px;
    margin: 0 0 12px;
    padding: 10px 14px;
    gap: 10px;
    align-items: center;
    border: 1px solid #d6dee8;
    border-radius: 5px;
    background: linear-gradient(90deg, #f7f9fb, #edf3f8);
}

.event-view-section-number,
.guest-directory-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #cdd8e3;
    border-radius: 4px;
    background: #fff;
    color: #2f6ea9;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.event-view-section-heading h2,
.guest-directory-heading h2 {
    margin: 0;
    color: #1d3047;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.event-view-section-heading p,
.guest-directory-heading p {
    margin: 2px 0 0;
    color: #6b7b8e;
    font-size: 11px;
}

.event-view-table-wrapper {
    overflow: hidden;
    border-color: #d9e1e9;
    border-radius: 5px;
}

.event-view-table thead {
    background: #f3f6f9;
}

.event-view-table th {
    color: #516175;
    font-size: 10px;
}

/* Ajustes específicos do diretório de convidados */
.guest-premium-page h2,
.guest-premium-page h3,
.guest-premium-page #addGuestForm h4 {
    font-family: inherit;
}

.guest-premium-page .guest-premium-shell {
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guest-premium-page .guest-premium-heading {
    display: block;
    padding: 20px 20px 18px;
    color: var(--event-ink);
    background: linear-gradient(120deg, #fff 0%, #f8fafc 72%, #edf4fb 100%);
}

.guest-premium-page .guest-premium-heading h1,
.guest-premium-page .guest-premium-heading p {
    color: inherit;
}

.guest-premium-page .guest-back-link {
    flex: 0 0 auto;
    padding: 0 12px;
    border-color: #cfd8e3;
    border-radius: 4px;
    background: #fff;
    color: #33465c;
    font-size: 11px;
}

.guest-premium-page .guest-back-link:hover {
    border-color: #9dafc0;
    background: #edf3f8;
    color: #14263b;
}

.guest-premium-page .guest-metrics-strip {
    display: flex;
    grid-template-columns: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.guest-premium-page .guest-metric,
.guest-premium-page .guest-metric:first-child,
.guest-premium-page .guest-metric:nth-child(4) {
    padding: 5px 10px;
    border: 1px solid #d7dfe8;
}

.guest-premium-page .guest-metric-value,
.guest-premium-page .guest-metric-label {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.15;
}

.guest-premium-page .guest-metric-value {
    color: #142238;
    font-weight: 900;
}

.guest-premium-page .guest-name-search {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    margin-top: 14px;
    padding-top: 14px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #dce3eb;
}

.guest-premium-page .guest-name-search > label {
    color: #516175;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-premium-page .guest-name-search-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 7px;
    align-items: stretch;
}

.guest-premium-page .guest-name-search input[type="search"] {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    background: #fff;
    color: #1d3047;
    font-size: 12px;
    outline: 0;
}

.guest-premium-page .guest-name-search input[type="search"]:focus {
    border-color: #5d9cca;
    box-shadow: 0 0 0 3px rgba(47, 110, 169, 0.12);
}

.guest-premium-page .guest-name-search button,
.guest-premium-page .guest-name-search a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid #111827;
    border-radius: 4px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.guest-premium-page .guest-name-search a {
    border-color: #cfd8e3;
    background: #fff;
    color: #33465c;
}

.guest-premium-page .guest-name-search button:hover {
    border-color: #25364a;
    background: #25364a;
}

.guest-premium-page .guest-name-search a:hover {
    border-color: #9dafc0;
    background: #edf3f8;
    color: #14263b;
}

.guest-premium-page .guest-option-bar {
    grid-template-columns: auto minmax(410px, 1.6fr) auto minmax(205px, 0.7fr);
    border: 0;
    background: #fff;
}

.guest-premium-page .guest-option-group {
    padding: 14px 15px;
    border-right: 1px solid #e1e7ee;
}

.guest-premium-page .guest-option-group:last-child {
    border-right: 0;
}

.guest-premium-page .guest-option-build {
    background: #f8fafc;
}

.guest-premium-page .guest-option-live {
    background: linear-gradient(135deg, #101d2d, #172a41);
}

.guest-premium-page .guest-option-live > .guest-option-label {
    color: #d8b873;
}

.guest-premium-page .guest-option-live .guest-option-btn {
    border-color: #3a5068;
    background: #21364d;
    color: #eaf0f6;
}

.guest-premium-page .guest-option-live .guest-option-btn:hover {
    border-color: #bc9141;
    background: #182d45;
    color: #fff;
}

.guest-premium-page .guest-option-group-utility {
    background: #fbfcfd;
}

.guest-premium-page .guest-option-group > .guest-option-label {
    margin-bottom: 7px;
    color: #728197;
    font-size: 9px;
}

.guest-premium-page .guest-option-live > .guest-option-label {
    color: #d8b873;
}

.guest-premium-page .guest-option-btn {
    min-height: 40px;
    padding: 0 12px;
    border-color: #cfd8e3;
    border-radius: 4px;
    color: #33465c;
    font-size: 11px;
    letter-spacing: 0;
}

.guest-premium-page .guest-option-btn:hover {
    transform: none;
    border-color: #9dafc0;
    background: #edf3f8;
    color: #14263b;
}

.guest-premium-page .guest-option-primary,
.guest-premium-page .guest-option-primary:hover {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.guest-premium-page .guest-option-quiet {
    border-color: #cfd8e3;
    color: #33465c;
}

.guest-premium-page .guest-filter-form {
    display: block;
    width: 100%;
    margin: 0;
}

.guest-premium-page .guest-filter-form select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    background: #fff;
    color: #33465c;
    font-size: 11px;
    font-weight: 750;
}

.guest-premium-page .guest-filter-bar {
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-top: 1px solid #e0e6ed;
}

.guest-premium-page .guest-filter-copy {
    color: #516175;
    font-size: 12px;
}

.guest-premium-page .alert {
    margin: 0 !important;
}

.guest-premium-page .guest-registration-card {
    padding: 0;
    overflow: hidden;
}

.guest-premium-page .guest-add-heading {
    margin: 0;
    padding: 14px 15px;
    border: 0;
    background: #fff;
}

.guest-premium-page .guest-add-heading h3 {
    margin: 2px 0 0;
    color: #1d3047;
    font-size: 14px;
    font-weight: 850;
}

.guest-premium-page .guest-add-heading .guest-option-label {
    color: #728197;
}

.guest-premium-page .guest-premium-shell #addGuestForm {
    padding: 15px;
    border-top: 1px solid #e0e6ed;
    background: #f8fafc;
}

.guest-premium-page #addGuestForm h4 {
    color: #1d3047;
    font-size: 13px !important;
    font-weight: 850;
}

.guest-premium-page input,
.guest-premium-page textarea,
.guest-premium-page select,
.guest-premium-page .btn {
    border-radius: 4px;
}

.guest-premium-page .guest-directory-section {
    margin: 0;
}

.guest-premium-page .guest-directory-heading {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #d6dee8;
}

.guest-premium-page .guest-directory-heading p span {
    color: #8a98a8;
}

.guest-premium-page .guest-two-row-wrapper {
    overflow: hidden;
    border: 1px solid #d9e1e9;
    border-radius: 5px;
    background: #fff;
}

.guest-premium-page .guest-two-row-table thead {
    background: #f3f6f9;
}

.guest-premium-page .guest-two-row-table th {
    padding: 0.68rem 0.75rem;
    border-bottom: 1px solid #d9e1e9;
    color: #516175;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.guest-premium-page .guest-primary-row td {
    padding-top: 0.85rem;
    background: #fff;
}

.guest-premium-page .guest-primary-row td:first-child,
.guest-premium-page .guest-detail-row td {
    border-left: 3px solid #d8e1ea;
}

.guest-premium-page .guest-primary-row:hover td:first-child,
.guest-premium-page .guest-primary-row:hover + .guest-detail-row td {
    border-left-color: #2f6ea9;
}

.guest-premium-page .guest-primary-row td:first-child strong {
    color: #14263b;
    font-size: 0.94rem;
}

.guest-premium-page .guest-detail-grid {
    border: 1px solid #e0e6ed;
    border-left: 0;
    border-radius: 4px;
    background: #f8fafc;
}

.guest-premium-page .guest-detail-label {
    color: #65778b;
}

.guest-premium-page .badge {
    border-radius: 4px !important;
}

.guest-premium-page .guest-edit-btn,
.guest-premium-page .guest-detail-actions .btn {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #c9d4df;
    border-radius: 4px;
    background: #fff;
    color: #33465c;
    box-shadow: none;
    font-size: 10px;
}

.guest-premium-page .guest-edit-btn:hover,
.guest-premium-page .guest-detail-actions .btn:hover {
    border-color: #9dafc0;
    background: #edf3f8;
    color: #14263b;
}

/* Check-in neutro, alinhado com o restante painel administrativo. */
.checkin-premium-page {
    --checkin-ink: #1d354c;
    --checkin-ink-soft: #52687c;
    --checkin-accent: var(--admin-blue-600, #2877ae);
    --checkin-line: #d9e1e9;
    max-width: 1480px;
    margin: 0 auto 2rem;
    color: var(--checkin-ink);
}

.checkin-premium-page h2,
.checkin-premium-page h3 {
    font-family: inherit;
}

.checkin-premium-shell {
    overflow: hidden;
    border: 1px solid var(--checkin-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 48, 76, .045);
}

.checkin-premium-heading {
    display: flex;
    padding: 1.15rem 1.25rem;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    color: var(--checkin-ink);
    background: #fff;
}

.checkin-kicker,
.checkin-filter-label {
    display: block;
    color: #728197;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.checkin-premium-heading h2 {
    max-width: 950px;
    margin: .2rem 0 .35rem;
    color: #1d354c;
    font-size: 1.18rem;
    font-weight: 780;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.checkin-premium-heading p {
    margin: 0;
    color: #718397;
    font-size: .75rem;
}

.checkin-back-link {
    display: inline-flex;
    min-height: 38px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd8e3;
    border-radius: 4px;
    background: #fff;
    color: #425d75;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.checkin-back-link:hover {
    border-color: #9fb4c5;
    background: #f1f5f8;
    color: #1f4f75;
    text-decoration: none;
}

.checkin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    background: #fff;
}

.checkin-metrics .countBox {
    min-width: 0;
    padding: 1rem 1.25rem;
    border-right: 1px solid #e1e7ed;
    background: #f8fafc;
}

.checkin-metrics .countBox:last-child { border-right: 0; }
.checkin-metrics .countN { margin: 0; color: var(--checkin-ink); font-family: inherit; font-size: 1.35rem; font-weight: 800; }
.checkin-metrics .countL { margin: .2rem 0 0; color: #65778b; font-size: .65rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }

.checkin-filter-panel,
.checkin-operations-panel,
.checkin-results-card {
    margin-top: 14px;
    border: 1px solid var(--checkin-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.checkin-filter-panel { overflow: hidden; }
.checkin-operations-panel {
    overflow: hidden;
    border-left: 1px solid var(--checkin-line);
}
.checkin-operations-summary {
    display: flex;
    min-height: 82px;
    padding: 14px 15px;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.checkin-operations-summary::-webkit-details-marker { display: none; }
.checkin-operations-summary::marker { content: ""; }
.checkin-operations-summary:hover { background: #f8fafc; }
.checkin-operations-summary:focus-visible { outline: 3px solid rgba(47,110,169,.2); outline-offset: -3px; }
.checkin-operations-copy h3 { margin: 2px 0 5px; color: #1d3047; font-size: 1.08rem; font-weight: 700; }
.checkin-operations-copy p { max-width: 620px; margin: 0; color: #65778b; font-size: .76rem; line-height: 1.5; }
.checkin-operations-toggle { display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; color: #33465c; font-size: .7rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.checkin-operations-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.checkin-toggle-open { display: none; }
.checkin-operations-panel[open] .checkin-toggle-closed { display: none; }
.checkin-operations-panel[open] .checkin-toggle-open { display: inline; }
.checkin-operations-panel[open] .checkin-operations-toggle svg { transform: rotate(180deg); }
.checkin-operations-body { padding: 14px 15px 15px; border-top: 1px solid #e0e6ed; background: #fbfcfd; }
.checkin-operations-intro { margin: 0 0 11px; color: #65778b; font-size: .72rem; line-height: 1.45; }
.checkin-operations-actions { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; gap: 9px; align-items: end; }
.checkin-random-action { min-width: 0; }
.checkin-random-action > label { display: block; margin-bottom: 5px; color: #65778b; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.checkin-random-action > div { display: grid; grid-template-columns: 78px minmax(135px, 1fr); gap: 6px; }
.checkin-premium-page .checkin-random-action input[type="number"] { width: 100%; min-height: 38px; padding: 0 9px; border: 1px solid #c7d3df; border-radius: 4px; outline: 0; background: #fff; color: #172b42; font: inherit; }
.checkin-premium-page .checkin-random-action input[type="number"]:focus { border-color: #5d9cca; box-shadow: 0 0 0 3px rgba(47,110,169,.12); }
.checkin-operations-warning { margin: 11px 0 0; padding: 9px 11px; border: 1px solid #ecd8aa; border-radius: 4px; background: #fff9eb; color: #76551f; font-size: .7rem; line-height: 1.45; }
.checkin-premium-page button:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .48; }
.checkin-share-panel { border-left-color: var(--checkin-line); }
.checkin-share-create { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px) auto; gap: 9px; align-items: end; }
.checkin-share-create label { min-width: 0; }
.checkin-share-create label > span { display: block; margin-bottom: 5px; color: #65778b; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.checkin-share-generated { margin-top: 12px; padding: 11px; border: 1px solid #b9d4ed; border-radius: 5px; background: #eef6fd; }
.checkin-share-generated[hidden] { display: none; }
.checkin-share-generated > div:first-child { display: flex; margin-bottom: 8px; gap: 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #245c8e; font-size: .75rem; }
.checkin-share-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
.checkin-share-open { display: inline-flex; min-height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid #c9d4df; border-radius: 4px; background: #fff; color: #33465c; font-size: .72rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.checkin-share-open:hover { border-color: #9dafc0; background: #edf3f8; color: #24364b; text-decoration: none; }
.checkin-share-list-heading { display: flex; margin: 15px 0 7px; gap: 12px; align-items: center; justify-content: space-between; color: #24364b; font-size: .78rem; }
.checkin-share-list { display: grid; gap: 7px; }
.checkin-share-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 11px; gap: 12px; align-items: center; border: 1px solid #dce4ec; border-left: 3px solid #2f6ea9; border-radius: 5px; background: #fff; }
.checkin-share-item[data-share-state="expired"],
.checkin-share-item[data-share-state="revoked"] { border-left-color: #a9b4bf; background: #f6f8fa; opacity: .72; }
.checkin-share-item-main { min-width: 0; }
.checkin-share-item-main > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checkin-share-item-main strong { overflow-wrap: anywhere; color: #1f344b; font-size: .82rem; }
.checkin-share-state { padding: 3px 6px; border: 1px solid #b8ddc9; border-radius: 4px; background: #effaf4; color: #207047; font-size: .58rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.checkin-share-item[data-share-state="expired"] .checkin-share-state,
.checkin-share-item[data-share-state="revoked"] .checkin-share-state { border-color: #d1d9e0; background: #edf1f4; color: #647487; }
.checkin-share-item-main p { margin: 4px 0 0; color: #718095; font-size: .68rem; line-height: 1.4; }
.checkin-share-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.checkin-share-empty { padding: 15px; border: 1px dashed #cad5df; border-radius: 5px; background: #fff; color: #718095; font-size: .75rem; text-align: center; }
.checkin-share-note { margin: 10px 0 0; color: #718095; font-size: .68rem; line-height: 1.45; }
body.checkin-access-open { overflow: hidden; }
.checkin-access-backdrop { position: fixed; inset: 0; z-index: 10020; display: grid; padding: 20px; place-items: center; overflow-y: auto; background: rgba(4,18,31,.72); backdrop-filter: blur(4px); }
.checkin-access-backdrop[hidden] { display: none; }
.checkin-access-panel { width: min(100%, 900px); max-height: min(88vh, 820px); overflow: auto; border: 1px solid rgba(180,205,225,.78); border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.checkin-access-heading { display: flex; padding: 18px 20px; position: sticky; top: 0; z-index: 2; gap: 20px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #dce5ed; background: rgba(255,255,255,.97); }
.checkin-access-heading h3 { margin: 3px 0 5px; color: #172b42; font-size: 1.08rem; }
.checkin-access-heading p { margin: 0; color: #65778b; font-size: .74rem; line-height: 1.45; }
.checkin-access-heading .checkin-kicker { color: #2f6ea9; font-size: .58rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.checkin-access-body { padding: 20px; }
.checkin-filter-heading {
    display: flex;
    padding: 13px 15px;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e6ed;
    background: #f8fafc;
}

.checkin-filter-label { color: #728197; font-size: .62rem; }
.checkin-filter-heading h3 { margin: 2px 0 0; color: #1d3047; font-size: 1rem; font-weight: 700; }
.checkin-live-label { padding: 4px 7px; border: 1px solid #b8ddc9; border-radius: 4px; background: #effaf4; color: #207047; font-size: .62rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }

.checkin-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 7px;
    padding: 14px 15px 10px;
}

.checkin-premium-page input[type="text"],
.checkin-premium-page select,
.checkin-premium-page textarea {
    width: 100%;
    border: 1px solid #c7d3df;
    border-radius: 4px;
    outline: 0;
    background: #fff;
    color: #172b42;
    font: inherit;
}

.checkin-premium-page input[type="text"],
.checkin-premium-page select { min-height: 40px; padding: 0 11px; }
.checkin-premium-page textarea { min-height: 120px; padding: 10px 12px; resize: vertical; }
.checkin-premium-page input[type="text"]:focus,
.checkin-premium-page select:focus,
.checkin-premium-page textarea:focus { border-color: #5d9cca; box-shadow: 0 0 0 3px rgba(47,110,169,.12); }

.checkin-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 15px 13px;
}

.checkin-filter-grid label { min-width: 0; }
.checkin-filter-grid label > span { display: block; margin-bottom: 5px; color: #65778b; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }

.checkin-premium-page button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    cursor: pointer;
}

.checkin-premium-page .btn { border-color: #24364b; background: #24364b; color: #fff; }
.checkin-premium-page .btn2 { border-color: #c9d4df; background: #fff; color: #33465c; }
.checkin-premium-page .btnIn { border-color: #268258; background: #268258; color: #fff; }
.checkin-premium-page .btnOut { border-color: #bd414b; background: #bd414b; color: #fff; }
.checkin-premium-page .btn:hover,
.checkin-premium-page .btnIn:hover,
.checkin-premium-page .btnOut:hover { filter: brightness(.94); }
.checkin-premium-page .btn2:hover { border-color: #9dafc0; background: #edf3f8; }

.checkin-premium-page .rightNote { margin: 0; padding: 10px 15px 12px; border-top: 1px solid #e7ebf0; color: #718095; font-size: .7rem; }
.checkin-premium-page .kbd { display: inline-block; padding: 1px 5px; border: 1px solid #cbd5df; border-bottom-width: 2px; border-radius: 3px; background: #fff; color: #35495f; font-size: .65rem; }
.checkin-premium-page .muted { color: #718095; }
.checkin-premium-page .small { font-size: .72rem; }
.checkin-premium-page .row { display: flex; min-width: 0; gap: 9px; align-items: center; flex-wrap: wrap; }

.checkin-results-card { padding: 14px; overflow: hidden; }
.checkin-table-wrapper { width: 100%; margin-top: 10px; overflow-x: hidden; border: 1px solid #d9e1e9; border-radius: 5px; background: #fff; }
.checkin-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.checkin-table th,
.checkin-table td { min-width: 0; padding: .72rem .75rem; overflow-wrap: anywhere; vertical-align: middle; white-space: normal; word-break: break-word; }
.checkin-table th { border-bottom: 1px solid #d9e1e9; background: #f3f6f9; color: #516175; font-size: .63rem; font-weight: 850; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.checkin-table th:nth-child(1) { width: 38%; }
.checkin-table th:nth-child(2) { width: 23%; }
.checkin-table th:nth-child(3) { width: 18%; }
.checkin-table th:nth-child(4) { width: 21%; }

.checkin-primary-row td { padding-top: .88rem; padding-bottom: .58rem; border-bottom: 0; background: #fff; }
.checkin-primary-row td:first-child,
.checkin-detail-row td { border-left: 3px solid #d8e1ea; }
.checkin-primary-row:hover td:first-child,
.checkin-primary-row:hover + .checkin-detail-row td { border-left-color: #2f6ea9; }
.checkin-person-name { color: #14263b; font-size: .94rem; }
.checkin-person-code { margin-top: 4px; color: #718095; font-size: .68rem; }
.checkin-badge-stack { display: flex; min-width: 0; gap: 5px; align-items: flex-start; flex-wrap: wrap; }

.checkin-detail-row td { padding-top: 0; padding-bottom: .88rem; border-bottom: 1px solid #d9e4ee; background: #fff; }
.checkin-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: .72rem; border: 1px solid #e0e6ed; border-left: 0; border-radius: 4px; background: #f8fafc; }
.checkin-detail-item { display: flex; min-width: 0; gap: 3px; flex-direction: column; }
.checkin-detail-label { display: flex; gap: 5px; align-items: center; color: #65778b; font-size: .6rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.checkin-detail-value { color: #1f344b; font-size: .78rem; overflow-wrap: anywhere; }
.checkin-secondary-text { color: #718095; font-size: .7rem; overflow-wrap: anywhere; }
.checkin-detail-note { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid #dfe6ed; }
.checkin-note-copy { line-height: 1.45; white-space: pre-wrap; }
.checkin-empty-row { padding: 1.4rem !important; text-align: center; }

.checkin-premium-page .pill { display: inline-flex; max-width: 100%; min-height: 24px; padding: 4px 7px; gap: 5px; align-items: center; border: 1px solid transparent; border-radius: 4px; font-size: .63rem; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; }
.checkin-premium-page .ok { border-color: #a8d9be; background: #ecf8f1; color: #17623d; }
.checkin-premium-page .no { border-color: #efb8bd; background: #fff1f2; color: #9b2831; }
.checkin-premium-page .pend { border-color: #d4dbe3; background: #f1f4f7; color: #516175; }
.checkin-premium-page .badge { border-color: #b9d4ed; background: #eef6fd; color: #245c8e; }
.checkin-premium-page .seat { border-color: #e6c29b; background: #fff6e9; color: #8c4c18; }
.checkin-premium-page .cred { border-color: #d5c3ed; background: #f7f2fc; color: #603493; }
.checkin-premium-page .seatBig,
.checkin-premium-page .credBig { padding: 5px 7px; font-size: .68rem; }

.checkin-premium-page .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.checkin-premium-page .actions button { width: 100%; min-width: 0; padding: 6px 8px; white-space: normal; }
.checkin-premium-page .noteHint { margin-top: 6px; padding: 7px 8px; border: 1px solid #e0e6ed; border-radius: 4px; background: #f8fafc; }
.checkin-premium-page .noteBadge { display: inline-flex; gap: 6px; align-items: center; color: #24364b; font-size: .7rem; font-weight: 850; }
.checkin-premium-page .noteDot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--checkin-accent); }

.checkin-premium-page #quickWrap > .card { border: 1px solid #dbe3eb !important; border-radius: 5px !important; background: #f8fafc !important; box-shadow: none !important; }
.checkin-premium-page #quickWrap .row > div { min-width: 0 !important; }
.checkin-premium-page #confirmModal,
.checkin-premium-page #noteModal,
.checkin-premium-page #bulkConfirmModal { padding: 16px; overflow-y: auto; }
.checkin-premium-page #confirmModal > div,
.checkin-premium-page #noteModal > div { width: min(100%, 640px); border-radius: 6px !important; }
.checkin-premium-page #confirmModal > div { max-width: 520px !important; }
.checkin-modal-backdrop { position: fixed; inset: 0; z-index: 10010; background: rgba(0,0,0,.45); }
.checkin-modal-card { width: min(100%, 560px); margin: 9vh auto; padding: 16px; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.checkin-modal-heading { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.checkin-modal-eyebrow { letter-spacing: .05em; text-transform: uppercase; }
.checkin-modal-title { margin-top: 4px; color: #172b42; font-size: 18px; font-weight: 800; }
.checkin-premium-page .checkin-modal-close { min-height: 32px; padding: 5px 10px; }
.checkin-modal-body { margin-top: 11px; }
.checkin-bulk-summary { margin-top: 9px; padding: 9px 10px; border: 1px solid #dce4ec; border-radius: 4px; background: #f8fafc; color: #263b51; font-size: .76rem; font-weight: 750; line-height: 1.45; }
.checkin-modal-actions { margin-top: 14px; justify-content: flex-end; }
body.loading .checkin-premium-page { opacity: .58; pointer-events: none; }

@media (max-width: 1100px) {
    .checkin-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkin-operations-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .checkin-premium-shell { border-radius: 8px; }
    .checkin-premium-heading { padding: 1.3rem 1.15rem; flex-direction: column; }
    .checkin-back-link { width: 100%; }
    .checkin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkin-metrics .countBox { border-bottom: 1px solid #e1e7ed; }
    .checkin-metrics .countBox:nth-child(2) { border-right: 0; }
    .checkin-metrics .countBox:nth-last-child(-n+2) { border-bottom: 0; }
    .checkin-search-row,
    .checkin-filter-grid { grid-template-columns: 1fr; }
    .checkin-operations-summary { min-height: 0; align-items: flex-start; flex-direction: column; }
    .checkin-operations-toggle { width: 100%; justify-content: space-between; }
    .checkin-operations-actions { grid-template-columns: 1fr; align-items: stretch; }
    .checkin-operations-actions > button { width: 100%; }
    .checkin-share-create { grid-template-columns: 1fr; }
    .checkin-share-create > button { width: 100%; }
    .checkin-share-item { grid-template-columns: 1fr; align-items: stretch; }
    .checkin-share-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .checkin-share-actions > * { width: 100%; }
    .checkin-access-backdrop { padding: 10px; place-items: end center; }
    .checkin-access-panel { max-height: 92vh; border-radius: 9px 9px 0 0; }
    .checkin-access-heading { padding: 15px; }
    .checkin-access-body { padding: 15px; }
    .checkin-results-card { padding: 10px; }
    .checkin-table-wrapper { overflow: visible; border: 0; }
    .checkin-table,
    .checkin-table tbody,
    .checkin-primary-row,
    .checkin-detail-row,
    .checkin-detail-row td { display: block; width: 100%; }
    .checkin-table thead { display: none; }
    .checkin-primary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem .75rem .3rem; border: 1px solid #dce3ea; border-bottom: 0; border-left: 3px solid #d8e1ea; border-radius: 5px 5px 0 0; background: #fff; }
    .checkin-primary-row td { display: block; padding: .38rem; border: 0 !important; }
    .checkin-primary-row td:first-child,
    .checkin-primary-row td:last-child { grid-column: 1 / -1; }
    .checkin-detail-row { display: block; margin-bottom: 10px; padding: 0 .75rem .75rem; border: 1px solid #dce3ea; border-top: 0; border-left: 3px solid #d8e1ea; border-radius: 0 0 5px 5px; background: #fff; }
    .checkin-detail-row td { padding: 0; border: 0 !important; }
    .checkin-detail-grid { grid-template-columns: 1fr; border-left: 1px solid #e0e6ed; }
    .checkin-premium-page .actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
    .checkin-filter-heading { align-items: flex-start; flex-direction: column; }
    .checkin-metrics { grid-template-columns: 1fr; }
    .checkin-metrics .countBox { border-right: 0; border-bottom: 1px solid #e1e7ed !important; }
    .checkin-metrics .countBox:last-child { border-bottom: 0 !important; }
    .checkin-primary-row { grid-template-columns: 1fr; }
    .checkin-primary-row td { grid-column: 1 / -1; }
    .checkin-premium-page .actions { grid-template-columns: 1fr; }
    .checkin-share-url-row { grid-template-columns: 1fr 1fr; }
    .checkin-share-url-row input { grid-column: 1 / -1; }
    .checkin-share-actions { grid-template-columns: 1fr; }
}

/* Filtro de vínculo nos ecrãs de envio e lembrete. */
.send-membership-filter {
    display: grid;
    grid-template-columns: auto minmax(180px, 260px) minmax(0, 1fr);
    gap: 10px;
    margin: 16px 0;
    padding: 13px 14px;
    align-items: center;
    border: 1px solid #d8e1ea;
    border-radius: 5px;
    background: #f8fafc;
}

.send-membership-filter label {
    color: #42556b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.send-membership-filter select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c8d3df;
    border-radius: 4px;
    background: #fff;
    color: #1e344c;
}

.send-membership-filter > span {
    color: #65778b;
    font-size: 12px;
}

/* Ajustes específicos do resumo somente de leitura */
.event-summary-page .summary-command-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(190px, auto);
}

.event-summary-page .summary-command-build {
    background: #f8fafc;
}

.event-summary-page .summary-command-readonly {
    border-right: 0;
    background: linear-gradient(135deg, #101d2d, #172a41);
}

.event-summary-page .summary-command-readonly .event-view-command-label {
    color: #d8b873;
}

.event-summary-page .event-view-readonly-badge {
    border-color: #3a5068;
    background: #21364d;
    color: #eaf0f6;
}

.event-summary-page .summary-directory-section {
    margin: 0;
}

.event-summary-page .summary-table td:first-child {
    border-left: 3px solid #d8e1ea;
}

.event-summary-page .summary-table tr:hover td:first-child {
    border-left-color: #2f6ea9;
}

.event-summary-page .summary-table .badge {
    border-radius: 4px !important;
}

.event-summary-page .summary-name-search {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    align-items: center;
    border-top: 1px solid #dce4ec;
}

.event-summary-page .summary-name-search > label {
    color: #516175;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-summary-page .summary-name-search-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 7px;
}

.event-summary-page .summary-name-search input[type="search"] {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #c7d3df;
    border-radius: 4px;
    outline: 0;
    background: #fff;
    color: #172b42;
}

.event-summary-page .summary-name-search input[type="search"]:focus {
    border-color: #5d9cca;
    box-shadow: 0 0 0 3px rgba(47, 110, 169, .12);
}

.event-summary-page .summary-name-search button,
.event-summary-page .summary-name-search a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid #24364b;
    border-radius: 4px;
    background: #24364b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.event-summary-page .summary-name-search a {
    border-color: #cfd8e3;
    background: #fff;
    color: #33465c;
}

@media (min-width: 761px) and (max-width: 1220px) {
    .guest-premium-page .guest-option-bar {
        grid-template-columns: 1fr 1.6fr;
    }

    .guest-premium-page .guest-option-group:nth-child(2) {
        border-right: 0;
    }

    .guest-premium-page .guest-option-group:nth-child(-n+2) {
        border-bottom: 1px solid #e1e7ee;
    }

    .guest-premium-page .guest-option-group-utility {
        grid-column: auto;
        border-top: 0;
    }
}

@media (max-width: 760px) {
    .send-membership-filter,
    .event-summary-page .summary-name-search,
    .event-summary-page .summary-name-search-controls {
        grid-template-columns: 1fr;
    }

    .event-summary-page .summary-name-search button,
    .event-summary-page .summary-name-search a {
        width: 100%;
    }

    .event-view-summary {
        padding: 16px;
    }

    .event-view-summary-head,
    .event-view-command-footer,
    .guest-premium-page .guest-filter-bar,
    .guest-premium-page .guest-add-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-view-back,
    .guest-premium-page .guest-back-link {
        width: 100%;
    }

    .guest-premium-page .guest-name-search,
    .guest-premium-page .guest-name-search-controls {
        grid-template-columns: 1fr;
    }

    .guest-premium-page .guest-name-search button,
    .guest-premium-page .guest-name-search a {
        width: 100%;
    }

    .event-view-metric,
    .guest-premium-page .guest-metric,
    .guest-premium-page .guest-metric:nth-child(4) {
        flex: 1 1 calc(50% - 7px);
        justify-content: center;
        border-left: 1px solid #d7dfe8;
    }

    .event-view-command-grid,
    .guest-premium-page .guest-option-bar,
    .event-summary-page .summary-command-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .event-view-command-group,
    .guest-premium-page .guest-option-group,
    .guest-premium-page .guest-option-group:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e1e7ee;
    }

    .event-view-command-group:last-child,
    .guest-premium-page .guest-option-group:last-child {
        border-bottom: 0;
    }

    .guest-premium-page .guest-option-group-utility {
        grid-column: auto;
        border-top: 0;
    }

    .guest-premium-page .guest-option-buttons,
    .event-view-command-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .guest-premium-page .guest-option-btn,
    .event-view-command-buttons .event-view-button,
    .event-view-command-buttons .event-view-readonly-badge {
        width: 100%;
    }

    .guest-premium-page .guest-primary-row {
        padding: 0.7rem 0.7rem 0;
    }

    .guest-premium-page .guest-primary-row td:first-child,
    .guest-premium-page .guest-detail-row td {
        border-left: 0;
    }

    .event-summary-page .event-view-table-wrapper {
        overflow: visible;
        border: 0;
    }

    .event-summary-page .summary-table,
    .event-summary-page .summary-table tbody,
    .event-summary-page .summary-table tr,
    .event-summary-page .summary-table td {
        display: block;
        width: 100%;
    }

    .event-summary-page .summary-table thead {
        display: none;
    }

    .event-summary-page .summary-table tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid #dce3ea;
        border-left: 3px solid #d8e1ea;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(26, 45, 66, 0.04);
    }

    .event-summary-page .summary-table td,
    .event-summary-page .summary-table td:first-child {
        display: grid;
        grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr);
        padding: 7px 0;
        gap: 8px;
        align-items: center;
        border: 0;
        border-bottom: 1px solid #edf1f5;
    }

    .event-summary-page .summary-table td:last-child {
        border-bottom: 0;
    }

    .event-summary-page .summary-table td::before {
        color: #65778b;
        content: attr(data-label);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   Sistema visual administrativo 2026
   Camada deliberadamente limitada a .admin-body para manter
   intactas as experiências públicas, de palco e de operação.
   ========================================================== */

.admin-body {
    --admin-navy-950: #071b2e;
    --admin-navy-900: #0b2845;
    --admin-navy-800: #113a61;
    --admin-blue-700: #1d5f96;
    --admin-blue-600: #2877ae;
    --admin-blue-100: #e9f2f9;
    --admin-blue-050: #f5f9fc;
    --admin-ink: #172b42;
    --admin-muted: #66788c;
    --admin-line: #d9e3ec;
    --admin-line-strong: #c6d3df;
    --admin-surface: #ffffff;
    --admin-canvas: #f1f5f8;
    --admin-radius: 10px;
    --admin-radius-sm: 7px;
    --admin-shadow: 0 10px 28px rgba(18, 48, 76, 0.065);
    --admin-shadow-raised: 0 16px 38px rgba(18, 48, 76, 0.1);
    background: var(--admin-canvas);
    color: var(--admin-ink);
}

.admin-body .main-content {
    background:
        radial-gradient(circle at 88% -8%, rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.12), transparent 30%),
        linear-gradient(180deg, #f8fafc 0, var(--admin-canvas) 420px);
}

.admin-body .sidebar {
    border-right: 1px solid rgba(180, 211, 234, 0.09);
    background:
        radial-gradient(circle at 16% -5%, rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.38), transparent 32%),
        linear-gradient(168deg, var(--admin-navy-900), var(--admin-navy-950) 82%);
    box-shadow: 12px 0 34px rgba(7, 27, 46, 0.13);
}

.admin-body .sidebar-header {
    margin-bottom: 1.7rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(211, 231, 246, 0.09);
}

.admin-body .sidebar-logo {
    border-radius: 13px;
    border-color: rgba(220, 237, 250, 0.3);
    background: linear-gradient(145deg, rgba(255,255,255,0.19), rgba(255,255,255,0.065));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 9px 22px rgba(0,0,0,0.16);
}

.admin-body .sidebar-logo.has-image {
    overflow: hidden;
    padding: 5px;
    border-color: rgba(255,255,255,0.45);
    background: #fff;
}

.admin-body .sidebar-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-body .sidebar-nav-label {
    display: block;
    margin: 0 0.35rem 0.55rem;
    color: rgba(205, 224, 241, 0.56);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-body .sidebar-nav a {
    min-height: 48px;
    padding: 0.52rem 0.62rem;
    gap: 0.68rem;
    border-radius: 11px;
    color: #d4e4f1;
    font-size: 0.86rem;
    font-weight: 680;
}

.admin-body .sidebar-nav a:hover {
    border-color: rgba(202, 227, 245, 0.12);
    background: rgba(255,255,255,0.075);
    transform: none;
}

.admin-body .sidebar-nav a.active {
    border-color: rgba(154, 207, 244, 0.24);
    background: linear-gradient(135deg, rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.36), rgba(255,255,255,0.09));
    box-shadow: 0 9px 24px rgba(0,0,0,0.12);
}

.admin-body .nav-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(190, 216, 238, 0.13);
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    color: #b9d4e9;
}

.admin-body .nav-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-body .sidebar-nav a.active .nav-icon {
    border-color: rgba(151, 205, 244, 0.32);
    background: rgba(126, 192, 239, 0.14);
    color: #fff;
}

.admin-body .topbar {
    position: sticky;
    top: 0;
    z-index: 24;
    min-height: 88px;
    padding: 1.28rem clamp(1.2rem, 3vw, 2.6rem) 1rem;
    border-bottom: 1px solid rgba(205, 217, 228, 0.76);
    background: rgba(248, 250, 252, 0.91);
    backdrop-filter: blur(14px);
}

.admin-body .page-eyebrow {
    margin-bottom: 0.18rem;
    color: var(--admin-blue-700);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
}

.admin-body .page-title {
    color: #10263d;
    font-size: clamp(1.28rem, 2.2vw, 1.72rem);
    font-weight: 790;
    letter-spacing: -0.027em;
}

.admin-body .topbar-private {
    display: inline-flex;
    min-height: 32px;
    padding: 0 0.72rem;
    align-items: center;
    gap: 0.48rem;
    border: 1px solid #d4e0ea;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    color: #52677c;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.admin-body .topbar-private span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2a78ad;
    box-shadow: 0 0 0 4px rgba(42,120,173,0.1);
}

.admin-body .page-content {
    max-width: 1720px;
    margin: 0 auto;
    padding-top: 1.25rem;
}

.admin-body .card {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.admin-body .card-header {
    padding-bottom: 0.9rem;
    align-items: flex-start;
    border-bottom: 1px solid #e7edf2;
}

.admin-body .card-title {
    color: #183149;
    font-size: 1.08rem;
    font-weight: 790;
}

.admin-body .card-subtitle,
.admin-body .muted {
    color: var(--admin-muted);
}

.admin-body .section-kicker {
    color: var(--admin-blue-700);
    font-size: 0.63rem;
    letter-spacing: 0.13em;
}

.admin-body .btn {
    min-height: 38px;
    padding: 0.5rem 0.88rem;
    border-radius: var(--admin-radius-sm);
    box-shadow: none;
    font-size: 0.83rem;
    font-weight: 730;
    letter-spacing: 0.005em;
}

.admin-body .btn-primary {
    border-color: var(--admin-blue-700);
    background: linear-gradient(180deg, var(--admin-blue-600), var(--admin-blue-700));
    box-shadow: 0 6px 16px rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.18);
    color: var(--tenant-on-primary, #fff);
}

.admin-body .btn-primary:hover {
    border-color: var(--admin-navy-800);
    background: linear-gradient(180deg, var(--admin-blue-700), var(--admin-navy-800));
    box-shadow: 0 8px 20px rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.24);
    transform: translateY(-1px);
}

.admin-body .btn-secondary {
    border-color: var(--admin-line-strong);
    background: #fff;
    color: #244d70;
}

.admin-body .btn-secondary:hover {
    border-color: #9fbbd0;
    background: var(--admin-blue-050);
    color: #153f63;
}

.admin-body .btn-ghost {
    border-color: transparent;
    color: #596d81;
}

.admin-body .btn-ghost:hover {
    background: #edf3f7;
    color: #214e72;
}

.admin-body :is(.btn-danger, .btn-delete) {
    border-color: #bd5863;
    background: #fff;
    color: #a63340;
}

.admin-body :is(.btn-danger, .btn-delete):hover {
    border-color: #aa3e4a;
    background: #fff5f6;
}

.admin-body .table-wrapper {
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.admin-body .table {
    color: #263c52;
    font-size: 0.84rem;
}

.admin-body .table thead {
    background: linear-gradient(180deg, #f5f8fa, #eef3f7);
}

.admin-body .table th {
    color: #516579;
    font-size: 0.67rem;
    font-weight: 820;
    letter-spacing: 0.07em;
}

.admin-body .table th,
.admin-body .table td {
    padding: 0.68rem 0.75rem;
    border-bottom-color: #e5ebf0;
}

.admin-body .table tbody tr:hover {
    background: #f4f8fb;
}

.admin-body .table tbody tr:last-child > * {
    border-bottom: 0;
}

.admin-body .page-content :is(
    input[type="text"], input[type="email"], input[type="password"], input[type="number"],
    input[type="date"], input[type="time"], input[type="tel"], input[type="url"], input[type="search"],
    textarea, select
) {
    border-color: var(--admin-line-strong);
    border-radius: var(--admin-radius-sm);
    background-color: #fbfcfd;
    color: var(--admin-ink);
    box-shadow: inset 0 1px 1px rgba(25, 50, 75, 0.025);
}

.admin-body .page-content :is(
    input[type="text"], input[type="email"], input[type="password"], input[type="number"],
    input[type="date"], input[type="time"], input[type="tel"], input[type="url"], input[type="search"],
    textarea, select
):focus {
    border-color: var(--admin-blue-600);
    outline: 0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.12);
}

.admin-body .form-group label {
    color: #40566c;
    font-size: 0.78rem;
    font-weight: 720;
}

.admin-body .alert {
    border: 1px solid transparent;
    border-radius: var(--admin-radius-sm);
    box-shadow: none;
}

.admin-body .alert-success {
    border-color: #bedfcf;
    background: #f1f8f5;
    color: #216146;
}

.admin-body .alert-error {
    border-color: #ebc8cd;
    background: #fff5f6;
    color: #963541;
}

.admin-body .alert-warning {
    border-color: #ead9ad;
    background: #fffaf0;
    color: #755b21;
}

.admin-body .badge,
.admin-body .stat-pill {
    border-radius: 999px;
    font-weight: 700;
}

.admin-body ::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

.admin-body ::-webkit-scrollbar-track {
    background: #edf2f6;
}

.admin-body ::-webkit-scrollbar-thumb {
    border: 3px solid #edf2f6;
    border-radius: 999px;
    background: #aabac8;
}

.admin-body ::-webkit-scrollbar-thumb:hover {
    background: #8499aa;
}

@media (max-width: 880px) {
    .admin-body .topbar {
        min-height: 78px;
        padding: 1rem 1rem 0.85rem 4.4rem;
        align-items: flex-start;
        flex-direction: row;
    }

    .admin-body .topbar-private {
        display: none;
    }

    .admin-body .page-content {
        padding: 1rem 0.9rem 2rem;
    }

    .admin-body .card {
        padding: 1rem;
        border-radius: 9px;
    }

    .admin-body .card-header {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ===========================
   Centro operacional e contexto do evento
   =========================== */

.page-breadcrumbs {
    display: flex;
    max-width: min(72vw, 760px);
    margin-bottom: 0.32rem;
    align-items: center;
    gap: 0.42rem;
    overflow: hidden;
    color: #718399;
    font-size: 0.68rem;
    white-space: nowrap;
}

.page-breadcrumbs a {
    color: var(--admin-blue-700, #1d5f96);
    font-weight: 720;
}

.page-breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-event-switch {
    margin-top: 0.16rem;
    color: var(--admin-blue-700, #1d5f96);
    font-size: 0.68rem;
    font-weight: 760;
    text-decoration: none;
}

.topbar-event-switch:hover {
    text-decoration: underline;
}

.operations-hero {
    position: relative;
    display: flex;
    min-height: 190px;
    margin-bottom: 1rem;
    padding: clamp(1.45rem, 3vw, 2.2rem);
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(83, 147, 197, 0.24);
    border-radius: 15px;
    background:
        radial-gradient(circle at 84% 10%, rgba(var(--tenant-primary-rgb, 40, 119, 174), 0.58), transparent 30%),
        linear-gradient(135deg, var(--admin-navy-950, #071b2e), var(--admin-navy-800, #113a61));
    box-shadow: 0 20px 42px rgba(8, 38, 66, 0.16);
    color: #fff;
}

.operations-hero::before,
.operations-hero::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.operations-hero::before {
    top: -150px;
    right: -65px;
    width: 320px;
    height: 320px;
}

.operations-hero::after {
    right: 150px;
    bottom: -185px;
    width: 250px;
    height: 250px;
}

.operations-hero-copy,
.operations-hero-action,
.operations-hero > .badge {
    position: relative;
    z-index: 1;
}

.operations-hero-copy {
    max-width: 720px;
}

.operations-hero .section-kicker {
    color: #8bd3ff;
}

.operations-hero h2 {
    margin: 0.34rem 0 0.52rem;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 790;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

.operations-hero p {
    max-width: 630px;
    margin: 0;
    color: rgba(228, 240, 249, 0.76);
    font-size: 0.88rem;
    line-height: 1.65;
}

.admin-body .operations-hero-action {
    min-height: 46px;
    padding-inline: 1.05rem;
    flex: 0 0 auto;
    border-color: rgba(255,255,255,0.38);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    color: #153f63;
}

.admin-body .operations-hero-action:hover {
    border-color: #fff;
    background: #f6fbff;
    color: #0d3558;
}

.operations-kpis {
    display: grid;
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 0.75rem;
}

.operations-kpi {
    display: flex;
    min-width: 0;
    padding: 1rem;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--admin-line, #d9e3ec);
    border-radius: 12px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 8px 22px rgba(18, 48, 76, 0.055);
}

.operations-kpi-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

.operations-kpi-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.operations-kpi-icon-blue { background: #e8f2fa; color: #1d5f96; }
.operations-kpi-icon-cyan { background: #e6f7fa; color: #147c8d; }
.operations-kpi-icon-violet { background: #f0ecfb; color: #6954a5; }
.operations-kpi-icon-green { background: #e9f6ef; color: #247a51; }
.operations-kpi-icon-amber { background: #fff5dc; color: #a66a0a; }

.operations-kpi div {
    min-width: 0;
}

.operations-kpi div > span,
.operations-kpi div > strong,
.operations-kpi div > small {
    display: block;
}

.operations-kpi div > span {
    color: #62768a;
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.operations-kpi div > strong {
    margin-top: 0.05rem;
    color: #172f47;
    font-size: 1.4rem;
    font-weight: 810;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.operations-kpi div > small {
    margin-top: 0.18rem;
    overflow: hidden;
    color: #8a98a7;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operations-events {
    padding-bottom: 1rem;
}

.operations-section-heading {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.operations-section-heading h2 {
    margin: 0;
    color: #183149;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.operations-section-heading p {
    margin: 0.2rem 0 0;
    color: var(--admin-muted, #66788c);
    font-size: 0.78rem;
}

.operations-event-count {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    flex: 0 0 auto;
    border: 1px solid #cddce8;
    border-radius: 999px;
    background: #fff;
    color: #526b82;
    font-size: 0.68rem;
    font-weight: 750;
}

.operations-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.operations-event-card {
    position: relative;
    min-width: 0;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--admin-line, #d9e3ec);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--admin-shadow, 0 10px 28px rgba(18,48,76,.065));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.operations-event-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #aab8c5;
    content: "";
}

.operations-event-card-live::before { background: #2c9a67; }
.operations-event-card-upcoming::before { background: var(--admin-blue-600, #2877ae); }

.operations-event-card:hover {
    border-color: #b9cfdf;
    box-shadow: 0 18px 38px rgba(18, 48, 76, 0.105);
    transform: translateY(-2px);
}

.operations-event-card-head,
.operations-event-actions,
.operations-event-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.operations-event-status,
.operations-event-modules {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.63rem;
    font-weight: 770;
}

.operations-event-status {
    color: #64788b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.operations-event-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9cabb8;
}

.operations-event-card-live .operations-event-status { color: #23724d; }
.operations-event-card-live .operations-event-status i { background: #2c9a67; box-shadow: 0 0 0 4px rgba(44,154,103,.11); }
.operations-event-card-upcoming .operations-event-status { color: #1d5f96; }
.operations-event-card-upcoming .operations-event-status i { background: #3486bf; box-shadow: 0 0 0 4px rgba(52,134,191,.11); }

.operations-event-modules {
    padding: 0.25rem 0.48rem;
    border-radius: 999px;
    background: #edf4f9;
    color: #42627e;
}

.operations-event-title-row {
    display: grid;
    margin-top: 1rem;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.85rem;
}

.operations-event-date {
    display: flex;
    width: 48px;
    height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #cedde8;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f4f8fb);
}

.operations-event-date strong {
    color: #153f63;
    font-size: 1.1rem;
    line-height: 1;
}

.operations-event-date span {
    margin-top: 0.25rem;
    color: #6c8194;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.operations-event-title-row h3 {
    margin: 0;
    overflow: hidden;
    color: #172f47;
    font-size: 1.02rem;
    font-weight: 790;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operations-event-title-row p {
    margin: 0.22rem 0 0;
    color: #748598;
    font-size: 0.69rem;
}

.operations-event-location {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operations-event-location svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.operations-event-metrics {
    display: grid;
    margin-top: 1.05rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e1e9f0;
    border-radius: 10px;
    background: #f8fafc;
}

.operations-event-metrics > div {
    min-width: 0;
    padding: 0.65rem 0.55rem;
    text-align: center;
}

.operations-event-metrics > div + div {
    border-left: 1px solid #e1e9f0;
}

.operations-event-metrics span,
.operations-event-metrics strong {
    display: block;
}

.operations-event-metrics span {
    overflow: hidden;
    color: #7b8998;
    font-size: 0.57rem;
    font-weight: 730;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.operations-event-metrics strong {
    margin-top: 0.15rem;
    color: #213d58;
    font-size: 1rem;
    font-weight: 810;
}

.operations-event-progress {
    margin-top: 0.9rem;
}

.operations-event-progress > div {
    color: #65778a;
    font-size: 0.64rem;
    font-weight: 680;
}

.operations-event-progress strong {
    color: #2b4d69;
}

.operations-progress-track {
    display: block;
    height: 6px;
    margin-top: 0.42rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef3;
}

.operations-progress-track i {
    display: block;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--admin-blue-600, #2877ae), #35a779);
}

.operations-module-list {
    display: flex;
    min-height: 26px;
    margin-top: 0.85rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.operations-module-list span {
    display: inline-flex;
    padding: 0.22rem 0.45rem;
    border: 1px solid #d8e4ed;
    border-radius: 6px;
    background: #fff;
    color: #60768b;
    font-size: 0.58rem;
    font-weight: 690;
}

.operations-event-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    justify-content: flex-start;
    border-top: 1px solid #e7edf2;
}

.admin-body .operations-event-actions .btn-primary {
    flex: 1 1 auto;
}

.operations-empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed #bfd0dd;
    border-radius: 14px;
    background: rgba(255,255,255,0.7);
    text-align: center;
}

.operations-empty-state > span {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf3f9;
    color: #2a6d9e;
}

.operations-empty-state svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.operations-empty-state h3 {
    margin: 0.85rem 0 0.25rem;
    color: #1d3a55;
}

.operations-empty-state p {
    margin: 0 auto 1rem;
    color: #738397;
    font-size: 0.8rem;
}

@media (max-width: 1260px) {
    .operations-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 1080px) {
    .operations-event-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .operations-hero {
        min-height: 0;
        padding: 1.3rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .admin-body .operations-hero-action { width: 100%; }
    .operations-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-kpi { padding: 0.8rem; }
    .operations-kpi-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .operations-kpi div > small { display: none; }
    .operations-section-heading { align-items: flex-start; flex-direction: column; }
    .operations-event-card { padding: 1rem; }
}

@media (max-width: 460px) {
    .operations-kpis { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
    .operations-kpi { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
    .operations-event-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-event-metrics > div:nth-child(3) { border-top: 1px solid #e1e9f0; border-left: 0; }
    .operations-event-metrics > div:nth-child(4) { border-top: 1px solid #e1e9f0; }
    .operations-event-actions { align-items: stretch; flex-direction: column; }
    .operations-event-actions .btn { width: 100%; }
}

/* Dashboard em lista: pesquisa, filtros e acesso rápido a históricos extensos */
.operations-event-filters {
    display: grid;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    grid-template-columns: minmax(240px, 1fr) auto auto minmax(150px, auto) auto;
    align-items: end;
    gap: 0.65rem;
    border: 1px solid #dbe5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(18, 48, 76, 0.045);
}

.operations-search-field {
    position: relative;
}

.operations-search-field svg {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #71869a;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}

.operations-search-field input {
    width: 100%;
    padding-left: 2.35rem;
}

.operations-date-field label {
    display: block;
    margin: 0 0 0.24rem 0.1rem;
    color: #708196;
    font-size: 0.61rem;
    font-weight: 760;
    text-transform: uppercase;
}

.operations-date-field input { min-width: 142px; }
.operations-status-field select { min-width: 158px; }

.operations-event-list-head,
.operations-event-row {
    display: grid;
    grid-template-columns: minmax(285px, 1.45fr) minmax(270px, 1fr) 105px 128px;
    align-items: center;
    gap: 1rem;
}

.operations-event-list-head {
    padding: 0.5rem 1rem;
    color: #8190a0;
    font-size: 0.59rem;
    font-weight: 780;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.operations-event-list {
    overflow: hidden;
    border: 1px solid #d9e3ec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 48, 76, 0.055);
}

.operations-event-row {
    position: relative;
    min-height: 102px;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.operations-event-row[hidden] { display: none !important; }

.operations-event-row + .operations-event-row {
    border-top: 1px solid #e7edf2;
}

.operations-event-row::before {
    position: absolute;
    inset: 13px auto 13px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #aab8c5;
    content: "";
}

.operations-event-row.operations-event-card-live::before { background: #2c9a67; }
.operations-event-row.operations-event-card-upcoming::before { background: var(--admin-blue-600, #2877ae); }
.operations-event-row:hover { z-index: 1; background: #fafdff; box-shadow: inset 0 0 0 1px #c8dbe8; }

.operations-event-identity {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.operations-event-row .operations-event-date {
    width: 46px;
    height: 50px;
}

.operations-event-name { min-width: 0; }
.operations-event-name .operations-event-status { margin-bottom: 0.22rem; font-size: 0.56rem; }

.operations-event-name h3 {
    margin: 0;
    overflow: hidden;
    color: #172f47;
    font-size: 0.91rem;
    font-weight: 790;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operations-event-name p {
    margin: 0.16rem 0 0;
    color: #718397;
    font-size: 0.64rem;
}

.operations-event-row-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
}

.operations-event-row-metrics div {
    min-width: 0;
    padding: 0.3rem 0.15rem;
    text-align: center;
}

.operations-event-row-metrics strong,
.operations-event-row-metrics span,
.operations-event-row-options strong,
.operations-event-row-options span { display: block; }

.operations-event-row-metrics strong,
.operations-event-row-options strong {
    color: #23435e;
    font-size: 0.9rem;
    font-weight: 820;
}

.operations-event-row-metrics span,
.operations-event-row-options span {
    margin-top: 0.14rem;
    overflow: hidden;
    color: #8492a1;
    font-size: 0.52rem;
    font-weight: 730;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.operations-event-row-rate strong { color: #23724d; }
.operations-event-row-options { text-align: center; }
.operations-event-next { margin-top: .32rem !important; color: #4e6b7f !important; font-size: .66rem !important; line-height: 1.35 !important; }
.operations-event-next strong { color: #244b67; }
.operations-event-readiness { display: block; width: 72px; height: 4px; margin: .42rem auto 0; overflow: hidden; border-radius: 999px; background: #e4ecf1; }
.operations-event-readiness b { display: block; height: 100%; border-radius: inherit; }

.operations-event-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.operations-event-details {
    color: #567087;
    font-size: 0.64rem;
    font-weight: 730;
    text-decoration: none;
}

.operations-event-details:hover { color: var(--admin-blue-700, #1f638f); text-decoration: underline; }
.operations-list-empty { padding: 2.2rem 1rem; border: 1px dashed #c5d5e0; border-radius: 12px; text-align: center; }
.operations-list-empty strong, .operations-list-empty span { display: block; }
.operations-list-empty strong { color: #29465f; }
.operations-list-empty span { margin-top: 0.25rem; color: #77899b; font-size: 0.72rem; }

.operations-pagination {
    display: flex;
    padding: 0.8rem 0.15rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #718397;
    font-size: 0.66rem;
}

.operations-pagination nav { display: flex; align-items: center; gap: 0.65rem; }
.operations-pagination .btn { min-height: 32px; padding: 0.4rem 0.7rem; }
.operations-pagination .btn:disabled { opacity: 0.4; cursor: default; }

/* Configuração SMTP por conta */
.email-settings-card { margin-top: 1rem; overflow: hidden; }
.email-settings-header { align-items: flex-start; }

.email-status {
    display: inline-flex;
    padding: 0.4rem 0.62rem;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #d7e1e9;
    border-radius: 999px;
    background: #f7f9fb;
    color: #6b7e90;
    font-size: 0.65rem;
    font-weight: 760;
    white-space: nowrap;
}

.email-status i { width: 7px; height: 7px; border-radius: 50%; background: #98a7b5; }
.email-status-active { border-color: #c5e5d4; background: #f0faf5; color: #23724d; }
.email-status-active i { background: #2c9a67; box-shadow: 0 0 0 4px rgba(44,154,103,.11); }
.email-settings-form { margin-top: 0.9rem; }

.email-enable-row {
    display: flex;
    padding: 0.85rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #cfe0ec;
    border-radius: 10px;
    background: #f5faff;
    cursor: pointer;
}

.email-enable-row span, .email-enable-row strong, .email-enable-row small { display: block; }
.email-enable-row strong { color: #21435e; font-size: 0.78rem; }
.email-enable-row small { margin-top: 0.18rem; color: #72869a; font-size: 0.66rem; }
.email-enable-row input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--admin-blue-600, #2877ae); }

.email-settings-section {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e0e8ef;
    border-radius: 11px;
}

.email-settings-section-title {
    display: flex;
    margin-bottom: 0.9rem;
    align-items: center;
    gap: 0.65rem;
}

.email-settings-section-title > span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #eaf3f9;
    color: #236a9d;
    font-size: 0.7rem;
    font-weight: 820;
}

.email-settings-section-title strong, .email-settings-section-title small { display: block; }
.email-settings-section-title strong { color: #29455d; font-size: 0.76rem; }
.email-settings-section-title small { margin-top: 0.12rem; color: #8290a0; font-size: 0.64rem; }
.email-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.email-settings-grid .form-group { margin-bottom: 0; }
.email-settings-grid .form-group small { display: block; margin-top: 0.3rem; color: #8694a2; font-size: 0.6rem; }
#registration-messages .email-settings-section { padding: 0; overflow: hidden; background: #fff; }
#registration-messages .email-settings-section > summary { display: flex; min-height: 48px; padding: 0.8rem 1rem; align-items: center; justify-content: space-between; color: #29455d; font-size: 0.76rem; cursor: pointer; list-style: none; }
#registration-messages .email-settings-section > summary::-webkit-details-marker { display: none; }
#registration-messages .email-settings-section > summary::after { content: '+'; color: #6b8293; font-size: 1rem; font-weight: 700; }
#registration-messages .email-settings-section[open] > summary { border-bottom: 1px solid #e4ebf0; background: #f8fbfd; }
#registration-messages .email-settings-section[open] > summary::after { content: '−'; }
#registration-messages .email-settings-section > .email-settings-grid { padding: 1rem; }
#registration-messages textarea { width: 100%; min-height: 96px; resize: vertical; }

.email-test-panel {
    display: flex;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 10px;
    background: #f6f8fa;
}

.email-test-panel strong, .email-test-panel small, .email-last-test { display: block; }
.email-test-panel strong { color: #29455d; font-size: 0.75rem; }
.email-test-panel small { margin-top: 0.15rem; color: #7d8d9d; font-size: 0.62rem; }
.email-last-test { margin-top: 0.35rem; color: #23724d; font-size: 0.61rem; font-weight: 740; }
.email-last-test-error { color: #a04343; }
.email-test-actions { display: flex; min-width: min(100%, 430px); gap: 0.55rem; }
.email-test-actions input { min-width: 0; flex: 1 1 auto; }
.email-settings-actions { margin-top: 1rem; }

@media (max-width: 1180px) {
    .operations-event-filters { grid-template-columns: minmax(220px, 1fr) auto auto; }
    .operations-status-field { grid-column: 1 / 2; }
    .operations-event-list-head { display: none; }
    .operations-event-row { grid-template-columns: minmax(270px, 1.3fr) minmax(250px, 1fr) 100px; }
    .operations-event-row-actions { grid-column: 1 / -1; padding-top: 0.65rem; border-top: 1px solid #edf1f4; }
}

@media (max-width: 820px) {
    .operations-event-filters { grid-template-columns: 1fr 1fr; }
    .operations-search-field { grid-column: 1 / -1; }
    .operations-status-field { grid-column: auto; }
    .operations-event-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .operations-event-row-metrics { padding: 0.5rem 0; border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; }
    .operations-event-row-options { text-align: left; }
    .operations-event-row-options strong, .operations-event-row-options span { display: inline; }
    .operations-event-row-actions { grid-column: auto; padding-top: 0; border-top: 0; justify-content: flex-start; }
    .email-settings-grid { grid-template-columns: 1fr 1fr; }
    .email-test-panel { align-items: stretch; flex-direction: column; }
    .email-test-actions { width: 100%; min-width: 0; }
}

@media (max-width: 540px) {
    .operations-event-filters, .email-settings-grid { grid-template-columns: 1fr; }
    .operations-search-field, .operations-status-field { grid-column: auto; }
    .operations-date-field input, .operations-status-field select, .operations-filter-clear { width: 100%; }
    .operations-event-row { padding: 0.85rem; }
    .operations-event-row-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operations-pagination { align-items: flex-start; flex-direction: column; }
    .operations-pagination nav { width: 100%; justify-content: space-between; }
    .email-settings-header, .email-enable-row { align-items: flex-start; flex-direction: column; }
    .email-test-actions { flex-direction: column; }
    .email-test-actions .btn { width: 100%; }
}

/* Acabamento do centro operacional: compacto, legível e orientado à pesquisa. */
.operations-hero {
    min-height: 138px;
    padding: 1.35rem 1.55rem;
    border-radius: 11px;
    background: linear-gradient(125deg, var(--admin-navy-950, #071b2e), var(--admin-navy-800, #173f60));
    box-shadow: 0 12px 30px rgba(8, 38, 66, 0.12);
}
.operations-hero::before, .operations-hero::after { display: none; }
.operations-hero h2 { font-size: clamp(1.35rem, 2.2vw, 1.82rem); }
.operations-hero p { max-width: 760px; font-size: 0.8rem; line-height: 1.55; }
.admin-body .operations-hero-action { min-height: 41px; box-shadow: none; }
.operations-kpis { margin-bottom: 1.25rem; gap: 0.55rem; }
.operations-kpi {
    min-height: 78px;
    padding: 0.75rem 0.82rem;
    gap: 0.65rem;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(18, 48, 76, 0.035);
}
.operations-kpi-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; }
.operations-kpi-icon svg { width: 17px; height: 17px; }
.operations-kpi div > span { font-size: 0.6rem; }
.operations-kpi div > strong { font-size: 1.22rem; }
.operations-kpi div > small { font-size: 0.57rem; }
.operations-section-heading { margin-bottom: 0.75rem; align-items: center; }
.operations-section-heading h2 { font-size: 1.16rem; }
.operations-section-heading p { font-size: 0.71rem; }
.operations-event-filters {
    margin-bottom: 0.65rem;
    padding: 0.65rem;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(18, 48, 76, 0.035);
}
.operations-event-list { border-radius: 9px; box-shadow: 0 5px 18px rgba(18, 48, 76, 0.045); }
.operations-event-row { min-height: 92px; }
.operations-event-row:hover { background: #fbfdff; box-shadow: inset 2px 0 0 var(--admin-blue-600, #2877ae); }
.operations-event-row .operations-event-date { border-radius: 7px; background: #f7f9fb; }
.operations-event-name h3 { font-weight: 740; }

/* Identidade e conteúdos de email por evento */
.event-email-page { display: grid; gap: 0.85rem; }
.event-email-page .panel-card { border-radius: 9px; box-shadow: 0 5px 18px rgba(18,48,76,.045); }
.event-email-hero {
    display: flex;
    padding: 1.1rem 1.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 3px solid var(--event-email-accent, var(--admin-blue-600, #2877ae));
}
.event-email-hero h2 { margin: 0.2rem 0 0.3rem; color: #1c3851; font-size: 1.16rem; }
.event-email-hero p { max-width: 760px; margin: 0; color: #6c7e90; font-size: 0.72rem; line-height: 1.55; }
.event-email-hero-actions { display: flex; flex: 0 0 auto; gap: 0.45rem; }
.event-email-workspace { display: grid; grid-template-columns: 220px minmax(390px, 1fr) 285px; align-items: start; gap: 0.8rem; }
.event-email-models { padding: 0.6rem; }
.event-email-side-label { display: block; padding: 0.3rem 0.45rem 0.55rem; color: #8492a1; font-size: 0.57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-email-models nav { display: grid; gap: 0.18rem; }
.event-email-models a { display: block; padding: 0.62rem 0.68rem; border: 1px solid transparent; border-radius: 7px; color: #3f5870; text-decoration: none; }
.event-email-models a:hover { background: #f6f9fb; }
.event-email-models a.active { border-color: #cbdde9; background: #eff6fa; box-shadow: inset 2px 0 0 var(--event-email-accent, #2877ae); color: #173e5e; }
.event-email-models a span, .event-email-models a small { display: block; }
.event-email-models a span { font-size: 0.7rem; font-weight: 740; }
.event-email-models a small { margin-top: 0.18rem; color: #8492a1; font-size: 0.56rem; line-height: 1.35; }
.event-email-editor { padding: 1rem; }
.event-email-editor-head { display: flex; padding-bottom: 0.85rem; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e5ebf0; }
.event-email-editor-head h3 { margin: 0.18rem 0 0.25rem; color: #1b3851; font-size: 1rem; }
.event-email-editor-head p { margin: 0; color: #778899; font-size: 0.67rem; line-height: 1.45; }
.event-email-status { display: inline-flex; padding: 0.32rem 0.5rem; align-items: center; gap: 0.34rem; border: 1px solid #d5e1e9; border-radius: 999px; color: #607589; font-size: 0.58rem; font-weight: 720; white-space: nowrap; }
.event-email-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--event-email-accent, #2877ae); }
.event-email-form fieldset { display: grid; margin: 0; padding: 0; gap: 0.8rem; border: 0; }
.event-email-form fieldset:disabled { opacity: .55; }
.event-email-color-row { display: grid; margin-top: 0.9rem; padding: 0.75rem; grid-template-columns: 1fr auto; align-items: center; gap: 0.55rem 0.8rem; border: 1px solid #dce6ed; border-radius: 8px; background: #f8fafc; }
.event-email-color-row label, .event-email-color-row p { display: block; margin: 0; }
.event-email-color-row label { color: #334f67; font-size: 0.68rem; font-weight: 740; }
.event-email-color-row p { margin-top: 0.15rem; color: #8190a0; font-size: 0.59rem; }
.event-email-color-control { display: flex; align-items: center; gap: 0.5rem; }
.event-email-color-control input[type="color"] { width: 38px; height: 32px; padding: 2px; border: 1px solid #ccd9e3; border-radius: 6px; background: #fff; cursor: pointer; }
.event-email-color-control output { color: #435d73; font: 700 .64rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.event-email-check { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 0.4rem; color: #687c8f !important; font-weight: 620 !important; }
.event-email-check input { accent-color: var(--event-email-accent, #2877ae); }
.event-email-field { display: grid; gap: 0.3rem; }
.event-email-field > span { color: #344e65; font-size: 0.67rem; font-weight: 750; }
.event-email-field input, .event-email-field textarea { width: 100%; }
.event-email-field textarea { min-height: 88px; resize: vertical; }
.event-email-field small { color: #8794a1; font-size: 0.57rem; line-height: 1.4; }
.event-email-tokens { display: flex; padding: 0.65rem; gap: 0.32rem; align-items: center; flex-wrap: wrap; border-radius: 7px; background: #f5f7f9; }
.event-email-tokens strong { margin-right: 0.2rem; color: #526a7e; font-size: 0.6rem; }
.event-email-tokens code { padding: 0.2rem 0.35rem; border: 1px solid #d7e1e8; border-radius: 4px; background: #fff; color: #2d5d80; font-size: 0.55rem; }
.event-email-actions { display: flex; padding-top: 0.15rem; gap: 0.5rem; }
.event-email-preview { position: sticky; top: 1rem; padding: 0.75rem; }
.event-email-preview-label { display: flex; margin-bottom: 0.65rem; align-items: center; justify-content: space-between; }
.event-email-preview-label span { color: #344f67; font-size: 0.67rem; font-weight: 760; }
.event-email-preview-label small { color: #8b98a5; font-size: 0.55rem; }
.event-email-preview-subject { display: grid; margin-bottom: 0.55rem; padding: 0.52rem 0.58rem; gap: 0.16rem; border: 1px solid #dfe7ed; border-radius: 6px; background: #f8fafb; }
.event-email-preview-subject span { color: #8492a1; font-size: 0.5rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.event-email-preview-subject strong { overflow: hidden; color: #3b5368; font-size: 0.6rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.event-email-device { overflow: hidden; border: 1px solid #d7e1e8; border-radius: 7px; background: #fff; box-shadow: 0 7px 20px rgba(24,52,78,.07); }
.event-email-preview-bar { height: 48px; background: var(--event-email-accent, #2877ae); }
.event-email-preview-body { padding: 1rem; font-family: Arial, sans-serif; }
.event-email-preview-body > span { color: #7b8997; font-size: 0.58rem; }
.event-email-preview-body h4 { margin: 0.6rem 0 0.35rem; color: var(--event-email-accent, #2877ae); font-size: 0.9rem; line-height: 1.3; }
.event-email-preview-body p { margin: 0; color: #56697b; font-size: 0.61rem; line-height: 1.55; white-space: pre-line; }
.event-email-preview-data { display: grid; margin: 0.8rem 0; padding: 0.65rem; gap: 0.18rem; border: 1px solid #e2e8ed; border-radius: 6px; background: #f8fafb; }
.event-email-preview-data b { color: #2c465d; font-size: 0.66rem; }
.event-email-preview-data span { color: #7b8997; font-size: 0.55rem; }
.event-email-preview-body button { width: 100%; min-height: 33px; border: 0; border-radius: 5px; background: var(--event-email-accent, #2877ae); color: #fff; font-size: 0.6rem; font-weight: 760; }
.event-email-preview-signature { margin-top: 0.85rem !important; padding-top: 0.7rem; border-top: 1px solid #e8edf1; }
.event-email-preview-note { margin: 0.65rem 0 0; color: #8794a1; font-size: 0.56rem; line-height: 1.45; }

@media (max-width: 1280px) {
    .event-email-workspace { grid-template-columns: 205px minmax(380px, 1fr); }
    .event-email-preview { position: static; grid-column: 2; }
}
@media (max-width: 820px) {
    .event-email-hero { align-items: flex-start; flex-direction: column; }
    .event-email-workspace { grid-template-columns: 1fr; }
    .event-email-preview { grid-column: auto; }
    .event-email-models nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .event-email-models nav { grid-template-columns: 1fr; }
    .event-email-hero-actions, .event-email-actions { width: 100%; flex-direction: column; }
    .event-email-hero-actions .btn, .event-email-actions .btn { width: 100%; }
}

/* Histórico operacional do check-in */
.checkin-heading-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; }
.checkin-premium-page .checkin-history-open { min-height: 38px; padding-right: 14px; padding-left: 14px; }
.checkin-history-backdrop { position: fixed; inset: 0; z-index: 10030; display: grid; padding: 18px; place-items: center; background: rgba(10,25,39,.66); backdrop-filter: blur(5px); }
.checkin-history-backdrop[hidden] { display: none; }
.checkin-history-panel { width: min(820px,100%); max-height: calc(100vh - 36px); display: flex; overflow: hidden; flex-direction: column; border: 1px solid #d6e0e8; border-radius: 8px; background: #f8fafc; box-shadow: 0 24px 75px rgba(12,31,48,.32); }
.checkin-history-heading { display: flex; padding: 17px 18px; gap: 15px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #dce4eb; background: #fff; }
.checkin-history-heading h3 { margin: 3px 0 0; color: #1d354c; font-size: 1.08rem; }
.checkin-premium-page .checkin-history-heading button { min-width: 38px; padding: 0; }
.checkin-history-tools { display: grid; padding: 12px 18px; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid #dce4eb; }
.checkin-history-tools > span { color: #687b8e; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.checkin-history-list { padding: 9px 18px 18px; overflow: auto; }
.checkin-history-row { display: grid; padding: 13px 4px; grid-template-columns: 86px 45px minmax(0,1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid #e1e7ed; }
.checkin-history-row:last-child { border-bottom: 0; }
.checkin-history-when { color: #6b7d8f; font-size: .67rem; line-height: 1.35; }
.checkin-history-when strong { display: block; color: #243c53; font-size: .77rem; }
.checkin-history-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 6px; background: #e7f7ef; color: #176b45; font-size: .66rem; font-weight: 900; }
.checkin-history-row.out .checkin-history-mark { background: #fff0e2; color: #985718; }
.checkin-history-person { min-width: 0; }
.checkin-history-person strong { display: block; overflow-wrap: anywhere; color: #1e344a; font-size: .83rem; }
.checkin-history-person span { display: block; margin-top: 3px; color: #718296; font-size: .65rem; }
.checkin-history-source { color: #758698; font-size: .65rem; text-align: right; }
.checkin-history-source strong { display: block; color: #40596f; }
.checkin-history-empty { padding: 42px 16px; color: #718296; font-size: .76rem; text-align: center; }

@media (max-width: 760px) {
    .checkin-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .checkin-heading-actions .checkin-back-link { width: auto; }
    .checkin-history-backdrop { padding: 0; align-items: end; }
    .checkin-history-panel { max-height: 92vh; border-radius: 10px 10px 0 0; }
    .checkin-history-tools { grid-template-columns: 1fr; }
    .checkin-history-row { grid-template-columns: 70px 39px minmax(0,1fr); gap: 8px; }
    .checkin-history-source { grid-column: 3; text-align: left; }
}

/* Assistente modal para novos convidados e intervenientes */
body.guest-wizard-open { overflow: hidden !important; }
.guest-created-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-created-alert .btn { flex: 0 0 auto; }
.guest-wizard-modal { position: fixed; inset: 0; z-index: 11000; display: grid; padding: 24px; place-items: center; }
.guest-wizard-modal[hidden], .guest-wizard-step[hidden], .guest-type-panel[hidden], .guest-registration-card[hidden], .guest-wizard-footer [hidden], [data-accommodation-detail][hidden], [data-transfer-detail][hidden] { display: none !important; }
.guest-wizard-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(5,20,34,.72); backdrop-filter: blur(6px); cursor: default; }
.guest-wizard-dialog { position: relative; width: min(980px,100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #cddae4; border-radius: 14px; background: #f7fafc; box-shadow: 0 30px 90px rgba(5,24,41,.38); }
.guest-wizard-header { position: sticky; z-index: 4; top: 0; display: flex; padding: 20px 24px 17px; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d9e3eb; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.guest-wizard-header h2 { margin: 3px 0 4px; color: #1b354c; font-size: 1.32rem; }
.guest-wizard-header p { margin: 0; color: #6c7f91; font-size: .75rem; }
.guest-wizard-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; place-items: center; border: 1px solid #d2dde6; border-radius: 8px; background: #fff; color: #4b6175; font-size: 1.35rem; cursor: pointer; }
.guest-wizard-progress { display: grid; padding: 12px 24px; grid-template-columns: repeat(auto-fit,minmax(96px,1fr)); gap: 6px; border-bottom: 1px solid #dce5ec; background: #eef3f7; }
.guest-wizard-progress button { display: flex; min-width: 0; padding: 7px 8px; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #718394; font: inherit; font-size: .64rem; text-align: left; cursor: default; }
.guest-wizard-progress button b { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: #dce6ed; color: #51697c; font-size: .62rem; }
.guest-wizard-progress button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-wizard-progress button.done { color: #37745b; cursor: pointer; }
.guest-wizard-progress button.done b { background: #dff3e8; color: #1d704b; }
.guest-wizard-progress button.active { border-color: #b9d7ea; background: #fff; color: #185d8b; font-weight: 800; }
.guest-wizard-progress button.active b { background: #2877ae; color: #fff; }
.guest-wizard-server-message { margin: 18px 24px 0; }
.guest-wizard-step { min-height: 360px; padding: 26px 28px 30px; background: #fff; }
.guest-wizard-step-heading { margin-bottom: 21px; }
.guest-wizard-step-heading > span, .guest-type-panel-title { display: block; margin-bottom: 4px; color: #2877ae; font-size: .61rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.guest-wizard-step-heading h3 { margin: 0; color: #1c354b; font-size: 1.12rem; }
.guest-wizard-step-heading p { max-width: 720px; margin: 6px 0 0; color: #6b7f91; font-size: .75rem; line-height: 1.5; }
.guest-wizard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.guest-wizard-grid .form-group { min-width: 0; margin: 0; }
.guest-wizard-grid .form-group label, .guest-memory-search > label { display: block; margin-bottom: 6px; color: #40596f; font-size: .68rem; font-weight: 780; }
.guest-wizard-grid input, .guest-wizard-grid select, .guest-wizard-grid textarea { width: 100%; }
.guest-wizard-grid small { display: block; margin-top: 5px; color: #82909d; font-size: .62rem; }
.guest-wizard-wide { grid-column: 1 / -1; }
.guest-type-panel { margin-top: 18px; padding: 17px; border: 1px solid #dce6ed; border-radius: 9px; background: #f8fafc; }
.guest-memory-search { margin-bottom: 20px; padding: 15px; border: 1px solid #cfe0eb; border-radius: 9px; background: #f3f8fb; }
.guest-memory-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.guest-memory-search-row input { width: 100%; background: #fff; }
.guest-memory-search-row span { color: #708394; font-size: .65rem; }
.guest-memory-results { display: grid; max-height: 190px; margin-top: 9px; overflow: auto; gap: 4px; }
.guest-memory-results button { display: block; width: 100%; padding: 9px 11px; border: 1px solid #d9e4ec; border-radius: 7px; background: #fff; color: #263f55; font: inherit; text-align: left; cursor: pointer; }
.guest-memory-results button:hover { border-color: #9ec5de; background: #f7fbfd; }
.guest-memory-results strong, .guest-memory-results small { display: block; }
.guest-memory-results strong { font-size: .73rem; }
.guest-memory-results small { margin-top: 2px; color: #728497; font-size: .63rem; }
.guest-meal-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.guest-meal-options label { display: flex; padding: 12px; align-items: flex-start; gap: 10px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fafcfd; cursor: pointer; }
.guest-meal-options label:has(input:checked) { border-color: #8dc1df; background: #eef7fc; }
.guest-meal-options input { margin-top: 3px; }
.guest-meal-options strong, .guest-meal-options small { display: block; }
.guest-meal-options strong { color: #274258; font-size: .76rem; }
.guest-meal-options small { margin-top: 3px; color: #718394; font-size: .64rem; }
.guest-wizard-empty, .guest-wizard-next-note { padding: 14px 16px; border: 1px solid #dce6ed; border-radius: 8px; background: #f8fafc; color: #62788b; font-size: .72rem; line-height: 1.5; }
.guest-wizard-review { display: grid; margin: 0 0 18px; grid-template-columns: 180px minmax(0,1fr); border: 1px solid #dce5ec; border-radius: 9px; overflow: hidden; }
.guest-wizard-review dt, .guest-wizard-review dd { margin: 0; padding: 11px 13px; border-bottom: 1px solid #e3e9ee; }
.guest-wizard-review dt { background: #f5f8fa; color: #5e7487; font-size: .67rem; font-weight: 800; }
.guest-wizard-review dd { overflow-wrap: anywhere; background: #fff; color: #203a51; font-size: .75rem; }
.guest-wizard-review dt:nth-last-of-type(1), .guest-wizard-review dd:last-child { border-bottom: 0; }
.guest-wizard-footer { position: sticky; z-index: 4; bottom: 0; display: flex; min-height: 68px; padding: 13px 24px; align-items: center; gap: 12px; border-top: 1px solid #d7e2ea; background: rgba(255,255,255,.98); backdrop-filter: blur(12px); }
.guest-wizard-footer > span { margin-right: auto; color: #748698; font-size: .66rem; font-weight: 750; }
.guest-wizard-footer-main { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
    .guest-wizard-modal { padding: 0; place-items: end center; }
    .guest-wizard-dialog { width: 100%; max-height: 96vh; border-radius: 14px 14px 0 0; }
    .guest-wizard-header { padding: 17px 18px 14px; }
    .guest-wizard-progress { display: flex; padding: 9px 14px; overflow-x: auto; }
    .guest-wizard-progress button { min-width: 110px; }
    .guest-wizard-step { min-height: 420px; padding: 21px 18px 26px; }
    .guest-wizard-grid, .guest-meal-options, .guest-memory-search-row { grid-template-columns: 1fr; }
    .guest-wizard-wide { grid-column: auto; }
    .guest-wizard-review { grid-template-columns: 112px minmax(0,1fr); }
    .guest-wizard-footer { padding: 11px 14px; align-items: flex-end; }
    .guest-wizard-footer-main { flex: 1; }
    .guest-wizard-footer-main .btn { flex: 1 1 auto; }
    .guest-created-alert { align-items: stretch; flex-direction: column; }
}

/* Dashboard do portefólio: diretório operacional compacto e premium. */
.operations-hero.dashboard-portfolio-bar {
    min-height: 0;
    padding: 1.15rem 1.25rem;
    align-items: center;
    border: 1px solid #d8e2e9;
    border-left: 3px solid var(--admin-blue-600, #2877ae);
    border-radius: 9px;
    background: linear-gradient(110deg, #fff 0%, #fff 68%, #f4f8fb 100%);
    box-shadow: 0 6px 22px rgba(18,48,76,.055);
    color: #183149;
}
.dashboard-portfolio-bar .section-kicker { color: var(--admin-blue-700, #1d5f96); }
.dashboard-portfolio-bar h2 { margin: .2rem 0 .25rem; color: #172f47; font-size: clamp(1.2rem,2vw,1.55rem); }
.dashboard-portfolio-bar p { color: #687d90; font-size: .72rem; }
.dashboard-portfolio-summary { display: flex; margin-top: .72rem; gap: .4rem; flex-wrap: wrap; }
.dashboard-portfolio-summary > span { display: inline-flex; min-height: 27px; padding: .28rem .5rem; align-items: center; gap: .28rem; border: 1px solid #dae4eb; border-radius: 6px; background: rgba(255,255,255,.86); color: #6c7f90; font-size: .61rem; }
.dashboard-portfolio-summary strong { color: #24445f; font-size: .67rem; }
.dashboard-view-switch { display: flex; padding: 3px; gap: 2px; border: 1px solid #d6e1e9; border-radius: 8px; background: #f3f6f8; }
.dashboard-view-switch a { display: inline-flex; min-height: 31px; padding: .38rem .55rem; align-items: center; gap: .4rem; border-radius: 5px; color: #64798c; font-size: .66rem; font-weight: 750; text-decoration: none; }
.dashboard-view-switch a:hover { background: rgba(255,255,255,.7); color: #2a526f; }
.dashboard-view-switch a.active { background: #fff; box-shadow: 0 1px 5px rgba(18,48,76,.09); color: #1d587f; }
.dashboard-view-switch a span { display: inline-grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; border-radius: 5px; background: #e8f0f5; font-size: .56rem; }
.operations-events .operations-event-list { overflow: visible; }
.operations-events .operations-event-row { min-height: 84px; padding-top: .68rem; padding-bottom: .68rem; }
.operations-events .operations-event-row::before { inset-block: 10px; }
.operations-events .operations-event-name p { display: inline; margin-right: .35rem; }
.operations-events .operations-event-location { white-space: nowrap; }
.operations-event-next { display: flex !important; margin-top: .25rem !important; align-items: center; gap: .32rem; }
.operations-event-next > span { color: #8997a4; font-size: .56rem; font-weight: 750; text-transform: uppercase; }
.operations-event-next a { max-width: 100%; overflow: hidden; color: #245f87; font-size: .63rem; font-weight: 760; text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }
.operations-event-next a:hover { text-decoration: underline; }
.operations-open-event { min-height: 34px; padding: .4rem .7rem; border-radius: 7px; box-shadow: none; font-size: .65rem; }
.operations-event-menu { position: relative; }
.operations-event-menu > summary { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d4dfe7; border-radius: 7px; background: #fff; color: #5d7387; font-size: .72rem; font-weight: 850; letter-spacing: .08em; cursor: pointer; list-style: none; }
.operations-event-menu > summary::-webkit-details-marker { display: none; }
.operations-event-menu[open] > summary { border-color: #a9c8dc; background: #f3f8fb; color: #205f8b; }
.operations-event-menu > div { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; display: grid; width: 188px; padding: 5px; border: 1px solid #d3dee6; border-radius: 8px; background: #fff; box-shadow: 0 16px 38px rgba(17,42,64,.17); }
.operations-event-menu a, .operations-event-menu button { display: block; width: 100%; padding: .55rem .62rem; border: 0; border-radius: 5px; background: transparent; color: #38536a; font: inherit; font-size: .65rem; font-weight: 680; text-align: left; text-decoration: none; cursor: pointer; }
.operations-event-menu a:hover, .operations-event-menu button:hover { background: #f2f7fa; color: #175b88; }
.operations-event-menu button { border-top: 1px solid #e5ebef; border-radius: 0 0 5px 5px; color: #7c5529; }
.operations-event-list-head-inactive, .operations-event-row-inactive { grid-template-columns: minmax(320px,1.6fr) minmax(220px,1fr) 130px; }
.operations-event-row-inactive::before { background: #8797a5; }
.operations-event-row-inactive .operations-event-status i { background: #8797a5; }
.operations-event-inactive-meta span, .operations-event-inactive-meta strong, .operations-event-inactive-meta small { display: block; }
.operations-event-inactive-meta span { color: #8997a4; font-size: .54rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.operations-event-inactive-meta strong { margin-top: .14rem; color: #375269; font-size: .7rem; }
.operations-event-inactive-meta small { margin-top: .12rem; color: #8795a3; font-size: .58rem; }
.operations-event-row-actions form { margin: 0; }
.dashboard-event-dialog { width: min(470px,calc(100% - 28px)); padding: 0; border: 1px solid #cedbe4; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(8,27,43,.32); color: #213b52; }
.dashboard-event-dialog::backdrop { background: rgba(7,22,35,.62); backdrop-filter: blur(4px); }
.dashboard-event-dialog form { padding: 1.35rem; }
.dashboard-dialog-kicker { color: #2877ae; font-size: .58rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-event-dialog h2 { margin: .32rem 0 .45rem; color: #1b344a; font-size: 1.18rem; }
.dashboard-event-dialog > form > p { margin: 0; color: #62778a; font-size: .73rem; line-height: 1.55; }
.dashboard-event-dialog > form > p strong { color: #2b465d; }
.dashboard-dialog-note { margin-top: 1rem; padding: .8rem .85rem; border: 1px solid #d6e4ed; border-radius: 8px; background: #f5f9fb; }
.dashboard-dialog-note strong, .dashboard-dialog-note span { display: block; }
.dashboard-dialog-note strong { color: #24577a; font-size: .7rem; }
.dashboard-dialog-note span { margin-top: .22rem; color: #687d8f; font-size: .65rem; line-height: 1.45; }
.dashboard-dialog-actions { display: flex; margin-top: 1.1rem; justify-content: flex-end; gap: .5rem; }

/* Atalhos de configuração e relação entre o envelope e os textos operacionais. */
.settings-shortcuts { display: flex; margin: 0 0 1rem; padding: .42rem; gap: .35rem; flex-wrap: wrap; border: 1px solid #d8e3ea; border-radius: 9px; background: #f5f8fa; }
.settings-shortcuts a { display: flex; min-height: 38px; padding: .45rem .65rem; align-items: center; gap: .38rem; border: 1px solid transparent; border-radius: 6px; color: #536b7f; font-size: .66rem; font-weight: 690; text-decoration: none; }
.settings-shortcuts a:hover { border-color: #cfdee8; background: #fff; color: #1e608d; }
.settings-shortcuts a strong { color: #235879; }
.settings-shortcuts a span { color: #8392a0; font-size: .58rem; font-weight: 600; }
.event-email-registration-routing { display: flex; margin: .85rem 0 0; padding: .75rem .82rem; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid #cfe0ea; border-radius: 8px; background: #f4f9fc; }
.event-email-registration-routing strong, .event-email-registration-routing p { display: block; }
.event-email-registration-routing strong { color: #25506e; font-size: .7rem; }
.event-email-registration-routing p { margin: .16rem 0 0; color: #708496; font-size: .62rem; line-height: 1.45; }
.event-email-registration-routing .btn { flex: 0 0 auto; }
.registration-message-shortcut { display: flex; margin-top: .85rem; padding: .75rem .82rem; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid #d5e3ec; border-radius: 8px; background: #f5f9fb; }
.registration-message-shortcut strong, .registration-message-shortcut span { display: block; }
.registration-message-shortcut strong { color: #28506d; font-size: .71rem; }
.registration-message-shortcut span { margin-top: .16rem; color: #728597; font-size: .62rem; line-height: 1.45; }
.registration-message-shortcut small { color: #82909d; font-size: .62rem; }

@media (max-width: 1180px) {
    .operations-event-list-head-inactive, .operations-event-row-inactive { grid-template-columns: minmax(280px,1fr) minmax(210px,.8fr) 120px; }
}
@media (max-width: 820px) {
    .operations-hero.dashboard-portfolio-bar { align-items: stretch; }
    .operations-section-heading { align-items: stretch; }
    .dashboard-view-switch { width: 100%; }
    .dashboard-view-switch a { flex: 1; justify-content: center; }
    .operations-event-row-inactive { grid-template-columns: 1fr; }
    .operations-event-inactive-meta { padding: .5rem 0; border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; }
    .event-email-registration-routing { align-items: stretch; flex-direction: column; }
    .event-email-registration-routing .btn { width: 100%; }
    .registration-message-shortcut { align-items: stretch; flex-direction: column; }
    .registration-message-shortcut .btn { width: 100%; }
}
@media (max-width: 540px) {
    .dashboard-portfolio-summary { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-portfolio-summary > span:last-child { grid-column: 1 / -1; }
    .dashboard-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
    .dashboard-dialog-actions .btn { width: 100%; }
    .settings-shortcuts { display: grid; }
}

/* Conta, créditos e catálogo comercial. */
.account-hub { display: grid; gap: .9rem; }
.account-hub .panel-card { margin: 0; }
.account-hub-hero { display: flex; padding: 1.05rem 1.15rem; align-items: center; justify-content: space-between; gap: 1rem; border-left: 3px solid #2877ae; background: linear-gradient(110deg,#fff 0%,#fff 68%,#f4f8fb 100%); }
.account-hub-hero h2, .account-profile-card h3, .account-credit-card h3, .account-user-card h3, .account-billing-card h3, .account-plans h3 { margin: .22rem 0 0; color: #1b354b; font-size: 1.05rem; }
.account-hub-hero p { margin: .3rem 0 0; color: #697d8f; font-size: .7rem; }
.account-status { display: inline-flex; padding: .4rem .62rem; align-items: center; gap: .4rem; border: 1px solid #cee2d8; border-radius: 999px; background: #f2faf6; color: #27694b; font-size: .64rem; font-weight: 780; }
.account-status i { width: 6px; height: 6px; border-radius: 50%; background: #2aa16c; box-shadow: 0 0 0 3px rgba(42,161,108,.12); }
.account-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.account-profile-card, .account-credit-card, .account-user-card, .account-billing-card { padding: 1.05rem 1.1rem; }
.account-facts { display: grid; margin: .85rem 0 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 1px solid #e1e8ed; }
.account-facts > div { padding: .65rem 0; border-bottom: 1px solid #e7edf1; }
.account-facts > div:nth-child(odd) { padding-right: .75rem; }
.account-facts dt, .account-facts dd { margin: 0; }
.account-facts dt { color: #8493a0; font-size: .55rem; font-weight: 760; letter-spacing: .045em; text-transform: uppercase; }
.account-facts dd { margin-top: .18rem; overflow-wrap: anywhere; color: #314e65; font-size: .69rem; font-weight: 680; }
.account-package-description, .account-card-footnote, .account-billing-card > p { margin: .72rem 0 0; color: #758697; font-size: .63rem; line-height: 1.5; }
.account-credit-balance { display: flex; margin-top: .8rem; align-items: baseline; gap: .55rem; }
.account-credit-balance > strong { color: #185e8c; font-size: 2.25rem; line-height: 1; }
.account-credit-balance > span { color: #567086; font-size: .68rem; font-weight: 720; }
.account-credit-progress { margin-top: .75rem; }
.account-credit-progress > i, .dashboard-account-progress > i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #e5edf2; }
.account-credit-progress > i b, .dashboard-account-progress > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2c7caf,#54a6c8); }
.account-credit-progress > span { display: block; margin-top: .35rem; color: #718497; font-size: .61rem; }
.account-credit-note { display: grid; margin: .85rem 0 0; padding: .7rem .75rem; gap: .18rem; border: 1px solid #d8e4eb; border-radius: 7px; background: #f6f9fb; }
.account-credit-note strong { color: #31556e; font-size: .64rem; }
.account-credit-note span { color: #718496; font-size: .6rem; line-height: 1.45; }
.account-billing-state { display: flex; margin-top: .8rem; padding: .68rem .72rem; align-items: flex-start; gap: .58rem; border: 1px solid #eadfc8; border-radius: 7px; background: #fffaf1; }
.account-billing-state > i { width: 7px; height: 7px; margin-top: .26rem; flex: 0 0 7px; border-radius: 50%; background: #c18a32; }
.account-billing-state-connected { border-color: #cfe3d8; background: #f3faf6; }
.account-billing-state-connected > i { background: #2b9a68; }
.account-billing-state-connected strong { color: #286248; }
.account-billing-state-connected span { color: #668373; }
.account-billing-state strong, .account-billing-state span { display: block; }
.account-billing-state strong { color: #705127; font-size: .67rem; }
.account-billing-state span { margin-top: .15rem; color: #8a7655; font-size: .59rem; line-height: 1.4; }
.account-plans { padding: 1.1rem; }
.account-plans-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.account-plans-heading p { max-width: 660px; margin: .32rem 0 0; color: #6d8193; font-size: .66rem; line-height: 1.5; }
.account-current-plan { padding: .38rem .55rem; border: 1px solid #cfe1eb; border-radius: 6px; background: #f3f8fb; color: #285f83; font-size: .61rem; font-weight: 770; white-space: nowrap; }
.account-plan-grid { display: grid; margin-top: .9rem; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.account-plan { position: relative; display: grid; min-height: 290px; padding: 1rem; align-content: start; border: 1px solid #d9e3ea; border-radius: 9px; background: #fff; }
.account-plan-featured { border-color: #b8d4e5; background: linear-gradient(145deg,#fff 0%,#f4f9fc 100%); box-shadow: 0 8px 24px rgba(31,92,132,.07); }
.account-plan-current { box-shadow: inset 0 0 0 1px #3984b3; }
.account-plan-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #456177; font-size: .67rem; font-weight: 780; }
.account-plan-top b { padding: .22rem .38rem; border-radius: 5px; background: #e8f2f8; color: #24668e; font-size: .52rem; text-transform: uppercase; }
.account-plan-price { display: block; margin-top: .75rem; color: #18364e; font-size: 1.65rem; line-height: 1; }
.account-plan-cycle { margin-top: .2rem; color: #82909d; font-size: .57rem; }
.account-plan > p { margin: .7rem 0 0; color: #6c8092; font-size: .64rem; }
.account-plan-capacity { display: flex; margin-top: .9rem; padding: .65rem 0; align-items: baseline; gap: .42rem; border-top: 1px solid #e4eaee; }
.account-plan-capacity strong { color: #246a95; font-size: 1.08rem; }
.account-plan-capacity span { color: #5e7488; font-size: .62rem; font-weight: 700; }
.account-plan-upgrade { margin-bottom: .7rem; padding: .55rem .6rem; border-radius: 6px; background: #edf6fa; color: #547184; font-size: .59rem; line-height: 1.4; }
.account-plan .btn { width: 100%; margin-top: auto; }
.account-plan > form { display: flex; margin-top: auto; }
.account-plan > form .btn { width: 100%; }
.account-plan .btn:disabled { opacity: .66; cursor: not-allowed; }
.account-billing-action { margin: .75rem 0 0; }
.account-plans-footnote { margin: .75rem 0 0; color: #768899; font-size: .6rem; text-align: center; }
.dashboard-account-overview { display: grid; margin: 1rem 0; padding: .85rem 1rem; grid-template-columns: minmax(220px,1fr) auto minmax(160px,.55fr) auto; align-items: center; gap: 1rem; border-left: 3px solid #2877ae; }
.dashboard-account-copy h2 { margin: .16rem 0 0; color: #263f55; font-size: .85rem; }
.dashboard-account-copy p { margin: .2rem 0 0; color: #7c8d9c; font-size: .6rem; }
.dashboard-account-balance { text-align: right; }
.dashboard-account-balance strong, .dashboard-account-balance span { display: block; }
.dashboard-account-balance strong { color: #1f6996; font-size: 1.28rem; line-height: 1; }
.dashboard-account-balance span { margin-top: .18rem; color: #718395; font-size: .55rem; }
.dashboard-account-progress > span { display: block; margin-top: .28rem; color: #738597; font-size: .56rem; }

@media (max-width: 900px) {
    .dashboard-account-overview { grid-template-columns: 1fr auto; }
    .dashboard-account-progress { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .account-hub-grid, .account-plan-grid { grid-template-columns: 1fr; }
    .account-hub-hero, .account-plans-heading { align-items: flex-start; flex-direction: column; }
    .account-facts { grid-template-columns: 1fr; }
    .account-facts > div:nth-child(odd) { padding-right: 0; }
    .dashboard-account-overview { grid-template-columns: 1fr; align-items: stretch; }
    .dashboard-account-balance { text-align: left; }
}
