/**
 * geral.css — estilos globais e correções que devem prevalecer sobre outros CSS.
 * Agora concentra também o CSS principal do dashboard, sem depender de dashboard.css.
 */

/* Fonte global: Lato em todo o site */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif !important;
}

/* Gradiente só no login (auth) ou RSVP com .login-page; painel padrão usa .dashboard-shell em dashboard.css */
body.login-page:not(.dashboard-shell) {
    background: linear-gradient(110deg, #e3e4e7 0%, #f9e27a 100%) !important;
}

/* Links do menu lateral — alinhado a dashboard.css (Inter, slate) */
body .sidebar .menu-group-label-link,
body .sidebar .menu-group-label-link:link,
body .sidebar .menu-group-label-link:visited,
body .sidebar .menu-group .menu-group-label a.menu-group-label-link,
body .sidebar .menu-group .menu-group-label a.menu-group-label-link:link,
body .sidebar .menu-group .menu-group-label a.menu-group-label-link:visited {
    text-decoration: none !important;
    color: #64748b !important;
}

body .sidebar .menu-group-label-link:hover,
body .sidebar .menu-group .menu-group-label a.menu-group-label-link:hover {
    color: #475569 !important;
}

body .sidebar .menu-group-label-link.active,
body .sidebar .menu-group .menu-group-label a.menu-group-label-link.active {
    color: #0f172a !important;
}

/* Peso do texto principal do menu (não submenus) */
body .sidebar .menu-item .menu-text,
body .sidebar .menu-group-label .menu-text {
    font-weight: 600 !important;
}

/* Contratos (Master): sem conteúdo ainda — texto cinza claro, sem hover */
body .sidebar .menu-group.menu-group--placeholder .menu-group-label,
body .sidebar .menu-group.menu-group--placeholder .menu-group-label:hover {
    color: #6B7280 !important;
    background: transparent !important;
    cursor: default;
}
body .sidebar .menu-group.menu-group--placeholder .menu-group-label .menu-icon svg,
body .sidebar .menu-group.menu-group--placeholder .menu-group-label .menu-arrow {
    opacity: 0.7;
}

/* Breadcrumb + título na barra superior (breadcrumb primeiro) */
.topbar-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breadcrumb-nav {
    margin-top: 0;
    font-size: 12px;
    color: #9b9b9b;
}

.breadcrumb-link {
    color: #9b9b9b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 4px;
    color: #c4c4c4;
}

.breadcrumb-current {
    color: #4b4b4b;
}

.breadcrumb-home svg {
    display: block;
}


/* Toggle simples (switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: 0.2s;
}

.switch input:checked + .switch-slider {
    background-color: #16a34a;
}

.switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Dashboard - cards, filtros e tabela de eventos */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dashboard-welcome {
    margin: 0 0 4px;
    color: #4b4b4b;
    font-size: 14px;
}

.dashboard-company {
    color: #9b9b9b;
    font-size: 13px;
}

.dashboard-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    color: #213047;
    margin-top: 32px;
    margin-bottom: 16px;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.7);
    border-right: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 30px;
    text-decoration: none;
    color: inherit;
}

.summary-card:hover,
.summary-card:focus,
.summary-card:active,
.summary-card:visited {
    text-decoration: none;
    color: inherit;
}

.summary-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.summary-value.accent {
    color: #006bb3;
}

/* Seta dos selects (mesmo traço que Novo Convidado: triângulo escuro) */
:root {
    --select-pill-bg: #fdf8f0;
    --select-pill-border: #e8dfd0;
    --select-pill-text: #3d3830;
    --select-pill-radius: 14px;
    --select-pill-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23191c1e'/%3E%3C/svg%3E");
}

/*
 * Campos globais: text, email, number, date, etc., select e textarea (.form-control).
 * Não aplicar a file, checkbox, radio, hidden, botões.
 */
textarea.form-control,
select.form-control,
input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #191c1e;
    background-color: #f8f9fa;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/*
 * Date/datetime nativos não centram o texto como inputs de texto quando height é fixo e padding-y é 0.
 */
input.form-control[type="date"],
input.form-control[type="datetime-local"] {
    height: auto;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.25;
}

input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])::placeholder,
textarea.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

textarea.form-control {
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.45;
}

select.form-control[multiple] {
    height: auto;
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
}

select.form-control:not([multiple]),
.form-group select.form-control:not([multiple]),
.form-card select.form-control:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    color: #6b7280;
    background-color: #f8f9fa;
    background-image: var(--select-pill-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 7px;
}

textarea.form-control:focus,
select.form-control:focus,
input.form-control:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):focus {
    outline: none;
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
    background-color: #f8f9fa;
}

/* Busca em pill no painel — alinhado à topbar / lista (.topbar-guest-search-*); vence .form-control acima */
body.dashboard-shell .filters-form input.form-control[type="search"],
body.dashboard-shell .dashboard-filters-section input[type="search"],
body.dashboard-shell .dashboard-filters-section input.form-control[type="search"],
body.dashboard-shell .dashboard-filters-section input[name="procurar"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: 12px;
    border: 1px solid #92908c;
    border-radius: 999px;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #422d2d;
    background-color: #fff;
    box-shadow: -1px -1px 4px 0 #ffffff, 1px 1px 4px 0 #abbccc;
}

body.dashboard-shell .filters-form input.form-control[type="search"]::placeholder,
body.dashboard-shell .dashboard-filters-section input[type="search"]::placeholder,
body.dashboard-shell .dashboard-filters-section input.form-control[type="search"]::placeholder,
body.dashboard-shell .dashboard-filters-section input[name="procurar"]::placeholder {
    color: #422d2d;
    opacity: 0.85;
    font-weight: 400;
}

body.dashboard-shell .filters-form input.form-control[type="search"]:focus,
body.dashboard-shell .dashboard-filters-section input[type="search"]:focus,
body.dashboard-shell .dashboard-filters-section input.form-control[type="search"]:focus,
body.dashboard-shell .dashboard-filters-section input[name="procurar"]:focus {
    outline: none;
    border-color: #7a7873;
    background-color: #fff;
    box-shadow: -1px -1px 4px 0 #ffffff, 1px 1px 4px 0 #abbccc, 0 0 0 1px rgba(66, 45, 45, 0.12);
}

/* Cards principais do dashboard (filtros e tabela) */
.dashboard-filters-section,
.dashboard-table-section {
    background: rgba(255, 255, 255, 0.7);
    border-right: none;
    display: flex;
    flex-direction: column;
    position: relative; /* volta a fluir no grid */
    height: auto;
    overflow-y: visible;
    z-index: 1;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Espaçamento vertical entre os blocos principais do dashboard */
.dashboard-content > section + section {
    margin-top: 20px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

/* Inputs e selects da busca no dashboard (mesmo padrão global; não aplica a checkboxes) */
.dashboard-filters-section .filter-field input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #9aa5b1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #6b7280;
    background-color: #fafafa;
    outline: none;
    transition: all 0.15s;
}

.dashboard-filters-section .filter-field select:not([multiple]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid #9aa5b1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #6b7280;
    background-color: #fafafa;
    outline: none;
    transition: all 0.15s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--select-pill-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 8px;
}

/* Exceção: checkboxes de cargos (Novo/Editar Colaborador) — classe específica, maior especificidade + !important */
.dashboard-filters-section .filter-field .form-colaborador-cargos input.checkbox-cargo-colaborador {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #fff !important;
    background-image: none !important;
    color: #111827 !important;
    font-size: inherit !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, background 0.15s !important;
}
.dashboard-filters-section .filter-field .form-colaborador-cargos input.checkbox-cargo-colaborador:hover {
    border-color: #9ca3af !important;
    background: #fff !important;
}
.dashboard-filters-section .filter-field .form-colaborador-cargos input.checkbox-cargo-colaborador:checked {
    background-color: #3b82f6 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 12px 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-color: #3b82f6 !important;
}
.dashboard-filters-section .filter-field .form-colaborador-cargos input.checkbox-cargo-colaborador:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35) !important;
}

.filter-field input:focus {
    outline: none;
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
}

.filter-field select:focus {
    outline: none;
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

/* Botões globais (.btn) com base única */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

/* Aplica o estilo base também a elementos button e variações de botão que já existem */
button,
input[type="button"],
input[type="submit"],
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #ffcf4e;
    border-color: #ffcf4e;
    color: #1e1a10;
    border-radius: 100px;
    font-family: 'Inter', 'Manrope', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: -1px -1px 4px 0 #ffffff, 1px 1px 4px 0 #abbccc;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    background: #ffbf1a;
    border-color: #ffbf1a;
    color: #1e1a10;
}

.btn-secondary {
    background: #303030;
    border-color: #303030;
    color: #fff;
    border-radius: 50px;
}

.btn-secondary:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.btn-light {
    background: #fefaf2;
    border-color: #e5ded0;
    color: #4b5563;
    border-radius: 50px;
}

.btn-light:hover {
    background: #f3ede1;
    border-color: #ded3c2;
    color: #111827;
}

.btn-light-outline {
    background: transparent;
    border-color: #e0b030;
    color: #946200;
    border-radius: 50px;
}

.btn-light-outline:hover {
    background: #fffaf0;
    border-color: #e0b030;
    color: #111827;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #e8e3d0;
    color: #6a6058;
    border-radius: 8px;
}

.btn-ghost:hover {
    background: #f4f1e8;
    border-color: #e8e3d0;
    color: #4a4035;
}

.btn-danger {
    background: #fdecea;
    border: 1px solid #f5c0c0;
    color: #d63031;
    border-radius: 8px;
}

.btn-danger:hover {
    background: #fbd5d5;
    border-color: #f5c0c0;
    color: #b02020;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.table-length {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
}

.table-length select:not([multiple]) {
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    min-width: 4.5rem;
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid #9aa5b1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #6b7280;
    background-color: #fafafa;
    outline: none;
    transition: all 0.15s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--select-pill-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 8px;
}

.table-length select:not([multiple]):focus {
    outline: none;
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Tabelas dentro dos cards do dashboard */
.dashboard-card .table-wrap {
    overflow-x: auto;
    width: 100% !important;
}

.dashboard-card .data-table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed !important;
}

.dashboard-card .data-table th,
.dashboard-card .data-table td {
    padding: 12px;
    border-bottom: none !important;
    vertical-align: middle;
    font-size: 0.9rem;
}

.dashboard-card .data-table th {
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    white-space: normal !important;
}

.dashboard-card .data-table td {
    word-break: break-word;
}

.events-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    table-layout: fixed !important;
    font-size: 0.9rem;
    color: #111827;
}

.events-table thead,
.data-table thead {
    background-color: #f3f4f6;
}

.events-table th,
.events-table td,
.data-table th,
.data-table td {
    padding: 20px;
    border-bottom: none !important;
    vertical-align: middle;
    white-space: normal !important;
}

.events-table th,
.data-table th {
    text-align: left;
    font-weight: 700;
    color: #1f2937;
}

.events-table td,
.data-table td {
    word-break: break-word;
    border: none;
}

.events-table tbody tr,
.data-table tbody tr {
    border: none !important;
}

.events-table tbody tr:hover,
.data-table tbody tr:hover {
    background-color: #FFD85F;
}

.events-table tbody tr:hover td:first-child,
.data-table tbody tr:hover td:first-child {
    border-radius: 25px 0 0 25px;
}

.events-table tbody tr:hover td:last-child,
.data-table tbody tr:hover td:last-child {
    border-radius: 0 25px 25px 0;
}

.table-empty {
    text-align: center;
    padding: 16px 0;
    color: #6b7280;
}

/* Bloco de Histórico (layout padrão) */
.historico-padrao .convidado-status-table th,
.historico-padrao .convidado-status-table td {
    text-align: left !important;
}

/* Tabela do Histórico (mesmo padrão usado em convidados/show.blade.php) */
.historico-padrao .convidado-status-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.historico-padrao .convidado-status-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.historico-padrao .convidado-status-table th,
.historico-padrao .convidado-status-table td {
    font-size: 0.85rem;
    vertical-align: middle;
}

.historico-padrao .convidado-status-table th {
    font-weight: 700;
    color: #1f2937;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.historico-padrao .convidado-status-table td {
    word-break: break-word;
    white-space: normal;
    padding: 20px 0;
}

.historico-padrao .convidado-status-table td:nth-child(3) {
    word-break: break-word;
    white-space: normal;
    padding: 20px 0;
}

/* Reforço: "Detalhes" sempre à esquerda */
.historico-padrao .convidado-status-table th.historico-detalhes,
.historico-padrao .convidado-status-table td.historico-detalhes {
    text-align: left !important;
    word-break: break-word;
    white-space: normal;
}

.historico-detalhes {
    text-align: left !important;
}

/* Ações rápidas do Histórico RSVP (botões ícone circular) */
.historico-rsvp-actions .historico-rsvp-action-btn {
    background: #111827;
    border-color: #111827;
    color: #e5e7eb;
}
.historico-rsvp-actions .historico-rsvp-action-btn:hover {
    background: #030712;
    border-color: #030712;
    color: #f9fafb;
}
.historico-rsvp-actions .historico-rsvp-action-btn svg {
    display: block;
}

/* Lista de convidados: colunas à direita + e-mail sem quebra */
.convidados-table-wrapper {
    overflow-x: auto;
}
.convidados-table .convidados-col-right,
.convidados-table th.convidados-col-right {
    text-align: right;
}
.convidados-table .convidados-email-col,
.convidados-table th.convidados-email-col {
    white-space: nowrap;
}

/* Usuários Empresa: tabelas de cargos e usuários */
.usuarios-company-table .usuarios-company-id {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    background: rgba(17, 24, 39, 0.06);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}
.usuarios-edit-row td {
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.usuarios-inline-form .form-control {
    min-height: 48px;
}

/* Bloco de serviços do evento (Aéreo, Hospedagem, Transfer, Terrestre, A&B, Credenciamento) */
.event-services-card {
    margin-top: 0.5rem;
    border-radius: 18px;
    border: 1px solid rgba(17,24,39,0.06);
    background: #fff;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-services-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.event-services-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
}
.event-services-hint {
    font-size: 0.8rem;
    color: #6b7280;
}
.event-services-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.event-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
/* Ícones de serviço = mesmo padrão do dashboard (círculo escuro, ícone claro) */
.event-services-icons .event-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #111827;
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.event-services-icons .event-service-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}
.event-services-icons .event-service-btn:hover {
    background: #030712;
    border-color: #030712;
    color: #f9fafb;
}
/* Selecionado: estilo .btn-primary (amarelo) mantendo o círculo */
.event-services-icons .event-service-btn.is-active,
.event-services-icons .event-service-btn.btn-primary {
    background: #ffd85f;
    border-color: #ffd85f;
    color: #333;
    box-shadow: 0 0 0 2px rgba(255, 216, 95, 0.5);
}
.event-services-icons .event-service-btn.btn-primary:hover {
    background: #e0b030;
    border-color: #e0b030;
    color: #333;
}
.event-service-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}
.event-services-note {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.event-coordinator-label-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 0.5rem;
}

.event-coordinator-label-row .form-label {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
}

.event-coordinator-add-btn {
    all: unset;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: #272727 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    transition: background 0.2s, transform 0.1s;
}

.event-coordinator-add-btn:hover {
    background: #c3c7cf !important;
}

.event-coordinator-add-btn:active {
    transform: scale(0.98);
}

.event-coordinator-add-btn span {
    font-size: 16px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    pointer-events: none;
}

.event-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
}

.event-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 480px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
    z-index: 1000;
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.event-modal-title {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

.event-modal-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

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

.event-modal-actions {
    padding: 12px 16px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Ações nas tabelas (última coluna com lápis/lixeira alinhados) */
.events-table-actions,
.event-actions,
.clientes-actions,
.empresas-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Ícones de ação do dashboard (tabela de eventos) */
.events-table-actions .btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #111827;
    border-color: #111827;
    color: #e5e7eb;
}

.events-table-actions .btn-icon:hover {
    background: #030712;
    border-color: #030712;
    color: #f9fafb;
}

.events-table-actions .btn-icon--danger {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fef2f2;
}

.events-table-actions .btn-icon--danger:hover {
    background: #991b1b;
    border-color: #991b1b;
    color: #fee2e2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-status-aberto,
.badge-status-aberta {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-status-fechado {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status-desconhecido {
    background-color: #e5e7eb;
    color: #374151;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.table-info {
    font-size: 12px;
    color: #6b7280;
}

.table-pagination nav > div:first-child {
    display: none;
}

.table-pagination nav > div:nth-child(2) {
    display: flex;
    justify-content: flex-end;
}

.table-pagination nav ul {
    font-size: 12px;
}

@media (max-width: 1200px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .dashboard-table-section {
        padding: 10px;
    }
}

/* Empresas — lista (master) */
.usuarios-company-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usuarios-company-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 14px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    position: relative;
}

.usuarios-company-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.usuarios-company-id {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    background: rgba(17, 24, 39, 0.06);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.usuarios-company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9fafb;
}

.usuarios-company-info {
    flex: 1;
    font-size: 0.9375rem;
    min-width: 0;
}

.usuarios-company-trade {
    color: #6b7280;
    font-weight: normal;
}

.usuarios-company-meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.usuarios-company-actions,
.empresas-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.usuarios-company-row-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 18px;
}

.usuarios-company-actions,
.empresas-actions,
.usuarios-company-actions * ,
.empresas-actions * {
    position: relative;
    z-index: 2;
}

.usuarios-company-row-link:focus-visible {
    outline: 2px solid rgba(0, 107, 179, 0.6);
    outline-offset: 2px;
}

.usuarios-company-row-link:hover {
    cursor: pointer;
}

/* Botões ícone genéricos */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #0b1b3a;
    background: #0b1b3a;
    color: #f3f4f6;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

.btn-icon:hover {
    background: #081329;
    border-color: #081329;
    color: #ffffff;
}

.btn-icon--danger {
    border-color: #c91414;
    background: #c91414;
    color: #ffffff;
}

.btn-icon--danger:hover {
    background: #a91010;
    border-color: #a91010;
    color: #ffffff;
}

.btn-icon--user-ok {
    border-color: #16a34a;
    color: #16a34a;
}

.btn-icon--user-empty {
    border-color: #d1d5db;
    color: #6b7280;
}

.empresas-actions .btn-icon,
.usuarios-company-actions .btn-icon {
    width: 36px;
    height: 36px;
}

.empresas-actions form,
.usuarios-company-actions form {
    margin: 0;
}

.empresas-actions .btn-icon svg,
.usuarios-company-actions .btn-icon svg {
    width: 20px;
    height: 20px;
}

.empresas-actions .btn-icon:hover,
.usuarios-company-actions .btn-icon:hover {
    background: #f3f4f6;
    color: #111827;
}

.empresas-actions .btn-icon--danger,
.usuarios-company-actions .btn-icon--danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.empresas-actions .btn-icon--danger:hover,
.usuarios-company-actions .btn-icon--danger:hover {
    background: #fef2f2;
}

.empresas-actions .btn-icon--user-ok,
.usuarios-company-actions .btn-icon--user-ok {
    border-color: #16a34a;
    color: #16a34a;
}

.empresas-actions .btn-icon--user-empty,
.usuarios-company-actions .btn-icon--user-empty {
    border-color: #d1d5db;
    color: #6b7280;
}

/* ======================== */
/* Serviços do Evento       */
/* ======================== */

.event-services-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-services-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.event-services-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.event-services-hint {
    font-size: 0.8125rem;
    color: #6b7280;
}

.event-services-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.event-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Ícones de serviço = mesmo padrão do dashboard (círculo escuro, ícone claro) */
.event-services-icons .event-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #111827;
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.event-services-icons .event-service-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.event-services-icons .event-service-btn:hover {
    background: #030712;
    border-color: #030712;
    color: #f9fafb;
}

/* Selecionado: estilo .btn-primary (amarelo) mantendo o círculo */
.event-services-icons .event-service-btn.is-active,
.event-services-icons .event-service-btn.btn-primary {
    background: #ffd85f;
    border-color: #ffd85f;
    color: #333;
    box-shadow: 0 0 0 2px rgba(255, 216, 95, 0.5);
}
.event-services-icons .event-service-btn.btn-primary:hover {
    background: #ffd030;
    border-color: #ffd030;
    color: #333;
}

.event-service-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

/* <select> simples sem .form-control: mesma caixa e seta */
select:not([multiple]):not(.form-control) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #6b7280;
    background-color: #f8f9fa;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--select-pill-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 7px;
}

select:not([multiple]):not(.form-control):focus {
    outline: none;
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
    background-color: #f8f9fa;
}

/* Telefone (DDI + número; Brasil: DDI + UF/DDD + número) — mesma linha, larguras relativas */
.phone-profile-field-row {
    display: grid;
    gap: 8px;
    align-items: stretch;
    grid-template-columns: minmax(0, 25%) minmax(0, 75%);
}

.phone-profile-field-root--br .phone-profile-field-row {
    grid-template-columns: minmax(0, 23%) minmax(0, 25%) minmax(0, 50%);
}

.phone-profile-field-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.phone-profile-field-col--country,
.phone-profile-field-col--number {
    justify-content: flex-end;
}

.phone-profile-field-col--state {
    gap: 4px;
}

.phone-profile-field-sub-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
}

/* País / DDI — combobox com busca (≥3 caracteres filtra) */
.phone-country-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Mesma caixa que select.form-control (botão não entra na regra global de select) */
.phone-country-combobox__toggle.form-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    color: #6b7280;
    background-color: #f8f9fa;
    background-image: var(--select-pill-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 7px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.phone-country-combobox__toggle.form-control:focus {
    border-color: #7c8794;
    box-shadow: 0 0 0 2px rgba(154, 165, 177, 0.35);
    background-color: #f8f9fa;
}

.phone-country-combobox__toggle-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

/* Seta igual ao <select>; o ▾ em texto fica oculto */
.phone-country-combobox__caret {
    display: none;
}

.phone-country-combobox__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    padding: 8px;
    background: #fff;
    border: 1px solid #dbe0e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.phone-country-combobox__hint {
    margin: 6px 0 8px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

.phone-country-combobox__search {
    width: 100%;
    box-sizing: border-box;
}

.phone-country-combobox__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.phone-country-combobox__item {
    padding: 8px 10px;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}

.phone-country-combobox__item:last-child {
    border-bottom: none;
}

.phone-country-combobox__item:hover,
.phone-country-combobox__item:focus {
    outline: none;
    background: #e0f2fe;
}
