:root {
    --ink: #192238;
    --muted: #687187;
    --line: #e7eaf0;
    --paper: #fff;
    --surface: #f6f8fc;
    --navy: #13254b;
    --blue: #3167e8;
    --green: #168968;
    --purple: #7755cf;
    font-family: var(--bs-font-sans-serif, Arial, Helvetica, sans-serif);
    color: var(--ink);
}

.event-form {
    max-width: 900px;
}

.event-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 7px;
}

.event-form input,
.event-form textarea,
.event-form select {
    width: 100%;
    border: 1px solid #dbe0e9;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font: inherit;
    font-size: 15px;
}

/* Campos informativos que não podem ser alterados. */
.event-form .readonly-field[readonly] {
    background: #eef2f6;
    border-color: #d7e0e8;
    color: #526273;
    cursor: not-allowed;
}

.event-form .form-check {
    margin: 20px 0;
    font-weight: 600;
}

.event-form .form-check input {
    width: auto;
    margin-right: 7px;
}

/* Confirmação explícita de e-mail com caixa de seleção tradicional. */
.email-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 24px 0 16px;
}

.event-form .email-confirmation-checkbox {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-height: 0;
    flex: 0 0 auto;
    margin: 3px 0 0;
    padding: 0 !important;
    box-shadow: none;
}

.event-form .email-confirmation-label {
    margin: 0;
    font-weight: 400;
}

.form-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.form-section h2 {
    font-size: 18px;
    margin: 0 0 5px;
}

/* Orientação exibida no rodapé do cadastro de usuários. */
.user-role-help {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: -4px;
    color: #526273;
    font-size: .9rem;
    line-height: 1.5;
}

.user-role-help i {
    margin-top: .2rem;
    color: var(--blue);
}

/* Ajuda contextual das situações disponíveis no formulário de evento. */
.form-label-with-help {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: auto;
}

.event-form .form-label-with-help label {
    display: inline-block;
    width: auto;
    margin: 0;
}

.field-label-with-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.event-form .field-label-with-counter label {
    margin: 0;
}

.character-counter {
    color: var(--muted);
    font-size: .8125rem;
    white-space: nowrap;
}

.public-event-summary {
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--surface);
}

.public-event-summary span,
.form-help {
    color: var(--muted);
    font-size: .875rem;
}

.form-help {
    display: block;
    margin-top: .45rem;
}

.registration-lookup-notice {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--green);
    font-size: .9rem;
}

.registration-form .registration-submit {
    width: auto;
    margin: 1.25rem 0 0 auto;
    padding-inline: 1.5rem;
}

.cpf-lookup-field { display: grid; grid-template-columns: minmax(16rem, 22rem) auto; column-gap: .75rem; align-items: end; justify-content: center; }
.cpf-lookup-field > label, .cpf-lookup-field > .form-help { grid-column: 1 / -1; }
.cpf-lookup-field .cpf-lookup-input { grid-column: 1; }
.cpf-lookup-row { grid-column: 2; display: flex; margin: 0; }
.cpf-lookup-row .button { min-height: 2.7rem; padding-inline: 1.75rem; }
.cpf-lookup-row + .form-help { margin-top: 1.2rem; }
@media (max-width: 576px) { .cpf-lookup-field { grid-template-columns: 1fr; } .cpf-lookup-field .cpf-lookup-input, .cpf-lookup-row { grid-column: 1; } .cpf-lookup-row { margin-top: .75rem; justify-content: stretch; } .cpf-lookup-row .button { width: 100%; } }

.registration-fields-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.registration-fields-heading h2 { margin: 0; }
.registration-fields-heading p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.registration-field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(7.5rem, .7fr) minmax(0, 1.4fr) 2rem; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.registration-field-row > :is(input, select) { min-width: 0; }
.registration-field-row input.is-disabled {
    background: #f1f3f6;
    border-color: #dfe3e8;
    color: #98a1ad;
    cursor: not-allowed;
}

.registration-form input:disabled {
    background: #f1f3f6;
    border-color: #dfe3e8;
    color: #7b8594;
    cursor: not-allowed;
}
.registration-field-remove { border: 0; background: transparent; color: #bb3434; }
@media (max-width: 1100px) { .registration-field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .registration-field-remove { grid-column: 2; justify-self: end; } }
@media (max-width: 767px) { .registration-fields-heading { align-items: stretch; flex-direction: column; } .registration-field-row { grid-template-columns: 1fr; } .registration-field-remove { grid-column: auto; justify-self: start; } }

.status-help-trigger {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: .9rem;
    line-height: 1;
}

.status-help-trigger:hover,
.status-help-trigger:focus-visible {
    background: #3167e81a;
    outline: 0;
}

.event-status-help-list {
    margin: 0;
}

.event-status-help-list dt {
    margin-top: 1rem;
    color: var(--ink);
    font-weight: 700;
}

.event-status-help-list dt:first-child {
    margin-top: 0;
}

.event-status-help-list dd {
    margin: .2rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-actions form {
    margin: 0;
}

.button.danger {
    color: #bb3434;
    background: #fff0f0;
}

.button {
    border-radius: 50rem !important;
}

.sidebar nav a {
    font-size: 15px !important;
}

.page-heading h1 {
    font-size: 34px !important;
    line-height: 1.15;
}

.page-heading p {
    font-size: 16px !important;
    line-height: 1.5;
}

.button {
    font-size: 15px !important;
    padding: 12px 18px !important;
}

.metrics span,
.metrics small {
    font-size: 13px !important;
}

.metrics strong {
    font-size: 34px !important;
}

.panel h2 {
    font-size: 19px !important;
}

.panel-header p,
.session small,
.event-info p {
    font-size: 14px !important;
}

.session strong,
.event-info h2 {
    font-size: 15px !important;
}

.login-intro h1 {
    font-size: 30px !important;
}

.login-intro p:not(.eyebrow) {
    font-size: 16px !important;
    line-height: 1.5;
}

.login-card label,
.registration-form label {
    font-size: 13px !important;
}

.login-card input:not([type=checkbox]),
.registration-form input,
.registration-form select {
    font-size: 16px !important;
    padding: 13px !important;
}

.login-footer,
.public-access {
    font-size: 13px !important;
}

.table-tools input,
.event-filters input,
td {
    font-size: 14px !important;
}

.user-cell small {
    font-size: 13px !important;
}

.public-access {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 18px 0 0;
}

.public-access a,
.login-footer a {
    color: var(--blue);
    font-weight: 700;
}

.public-card {
    background: #fff;
    width: min(100%, 620px);
    padding: 38px;
    border-radius: 16px;
    box-shadow: 0 25px 70px #0d1d3f88;
}

.access-registrations-form { width: min(100%, 560px); margin: 24px auto; }
.access-registrations-form label { margin: 0 0 5px !important; }
.access-registrations-form :is(input, select) { margin: 0 0 14px; }
.access-registrations-form .button { margin-top: 8px; }

/* Inscrição pública é uma página de conteúdo, não uma janela modal. */
.public-registration-page {
    width: min(100%, 960px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 48px 32px;
    background: #fff;
}

.public-registration-page .login-brand,
.public-registration-page .login-intro,
.public-registration-page .registration-form,
.public-registration-page .public-event-summary,
.public-registration-page .alert {
    max-width: 720px;
}

.public-registration-page .registration-form {
    margin-top: 1.5rem;
    max-width: none;
}

.public-registration-page .alert {
    width: 100%;
    max-width: none;
}

.public-company-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: min(100%, 720px);
    min-height: 3.3rem;
    margin: 0 auto;
    padding: 0;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.2;
}

.public-company-header img {
    width: 7rem;
    height: 3rem;
    border-radius: .5rem;
    object-fit: contain;
}

.public-registration-intro {
    max-width: 720px;
    margin: 1.5rem auto 1.25rem;
    text-align: center;
}

.public-registration-intro .eyebrow {
    margin: 0 0 .4rem;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.public-registration-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 750;
}

.public-registration-intro h1 span {
    color: var(--blue);
    font-size: .875rem;
    letter-spacing: .06em;
}

.public-registration-page .public-event-summary {
    align-items: center;
    gap: .25rem;
    margin: 0 0 1.5rem;
    max-width: none;
    padding: 1.5rem;
    border: 1px solid #b9e5d1;
    border-left: .35rem solid var(--green);
    background: #f0fbf5;
    text-align: center;
}

.public-registration-page .public-event-summary strong {
    color: var(--navy);
    font-size: 1.7rem;
    line-height: 1.3;
}

.public-registration-page .public-event-date-value {
    margin-top: .5rem;
    color: #215943;
    font-size: 1.1rem;
    font-weight: 600;
}

.public-registration-page .alert.error {
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    border: 1px solid #f2a3a3;
    border-left: .4rem solid #c73636;
    background: #fff1f1;
    color: #8a1f1f;
    font-size: 1rem;
    font-weight: 650;
}

.registration-results {
    width: min(100%, 808px);
    margin: 2rem auto 0;
}

.registration-results-heading {
    width: min(100%, 808px);
    margin: 2rem auto 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 750;
    text-align: left;
}

.registration-result {
    padding: 1.25rem 0;
    border-bottom: 1px dashed #9aa8bd;
}

.registration-result:first-child {
    padding-top: 0;
}

.registration-result-title {
    margin: 0 0 .85rem;
    color: var(--ink);
    line-height: 1.5;
}

.registration-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.registration-result-actions .button {
    margin: 0;
    padding: .55rem .9rem;
    border-radius: 1.25rem;
    font-size: .9rem;
}

@media (max-width: 767px) {
    .public-registration-page { padding: 28px 20px; }
}

.registration-form {
    display: grid;
    gap: 8px;
}

.registration-form label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.registration-form input,
.registration-form select {
    width: 100%;
    border: 1px solid #dbe0e9;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font: inherit;
    outline-color: var(--blue);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.alert {
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    margin: 0 0 16px;
}

.alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.alert.success {
    background: #e4f8ef;
    color: #126445;
}

.alert.error {
    background: #fff0f0;
    color: #a43535;
}

.empty-state {
    text-align: center;
    padding: 35px 15px;
    background: #f7f9fd;
    border: 1px dashed #ccd4e2;
    border-radius: 9px;
    color: var(--muted);
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state span {
    font-size: 13px;
    margin-top: 6px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 250px;
    padding: 26px 16px 18px;
    background: var(--navy);
    color: #dbe6ff;
    display: flex;
    flex-direction: column;
}

.brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 750;
    padding: 0 10px;
}

.brand-mark {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: #6c91ff;
    color: #fff;
    font-weight: 800;
}

.workspace {
    margin: 38px 10px 12px;
    color: #91a4cf;
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 700;
}

.sidebar nav {
    display: grid;
    gap: 4px;
}

.sidebar nav a {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 550;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #28426f;
    color: #fff;
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid #31466d;
    padding: 17px 8px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user small {
    color: #9baed4;
    font-size: 10px;
    margin-top: 3px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #ea7047;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.avatar.blue {
    background: #3978e7;
}

.avatar.violet {
    background: #8062cd;
}

.avatar.green {
    background: #1a9a76;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 36px;
}

.menu-button {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--muted);
}

.topbar-actions a {
    color: var(--blue);
    font-weight: 650;
}

.environment {
    padding: 5px 9px;
    border-radius: 20px;
    background: #fff5d9;
    color: #946c12;
    font-size: 11px;
}

.page-content {
    max-width: 1260px;
    margin: 0 auto;
    padding: 38px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

.page-heading h1 {
    font-size: 28px;
    margin: 4px 0 20px;
    letter-spacing: -.6px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    color: var(--blue) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.button {
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.button.primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 15px #3167e82b;
}

.button.secondary {
    background: #f1f4f9;
    color: #4a556b;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metrics article,
.panel,
.event-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.metrics article {
    padding: 20px;
}

.metrics span,
.metrics small {
    color: var(--muted);
    display: block;
    font-size: 12px;
}

.metrics strong {
    display: block;
    font-size: 29px;
    margin: 10px 0 5px;
    letter-spacing: -1px;
}

.metrics small {
    color: var(--green);
}

.two-columns {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
}

.panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.panel-header a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.session {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.session time {
    width: 43px;
    text-align: center;
    background: #eef3ff;
    border-radius: 7px;
    color: var(--blue);
    padding: 5px;
}

.session time b,
.session time span {
    display: block;
}

.session time b {
    font-size: 15px;
}

.session time span {
    font-size: 9px;
    font-weight: 700;
}

.session div {
    flex: 1;
}

.session strong,
.session small {
    display: block;
}

.session strong {
    font-size: 13px;
}

.session small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.status,
.role {
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.status.open,
.status.active {
    background: #def7ed;
    color: #127859;
}

.status.scheduled {
    background: #e9eefc;
    color: #4965af;
}

.status.completed {
    background: #eef0f4;
    color: #647084;
}

/* Os códigos internos de status nunca devem ser apresentados ao usuário. */
.status.open,
.status.scheduled,
.status.closed,
.status.cancelled,
.status.published,
.status.draft {
    font-size: 0 !important;
}

.status.open::after,
.status.scheduled::after,
.status.closed::after,
.status.cancelled::after,
.status.published::after,
.status.draft::after {
    font-size: 11px !important;
}

.status.open::after { content: 'Aberta'; }
.status.scheduled::after { content: 'Agendada'; }
.status.closed::after { content: 'Encerrada'; }
.status.cancelled::after { content: 'Cancelada'; }
.status.published::after { content: 'Publicado'; }
.status.draft::after { content: 'Rascunho'; }

.quick-actions {
    display: grid;
    gap: 8px;
}

.quick-actions a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    font-size: 13px;
    font-weight: 650;
    display: flex;
    justify-content: space-between;
}

.quick-actions span {
    color: var(--blue);
}

.table-tools,
.event-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.table-tools input,
.event-filters input {
    border: 1px solid #dce1eb;
    padding: 10px 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    min-width: 260px;
    outline: 0;
}

.table-tools input {
    flex: 1;
}

.table-wrap {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 720px;
}

th {
    text-align: left;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 0 10px 12px;
}

td {
    border-top: 1px solid var(--line);
    padding: 14px 10px;
    font-size: 13px;
    color: #525e73;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell strong,
.user-cell small {
    display: block;
}

.user-cell strong {
    color: var(--ink);
}

.user-cell small {
    color: var(--muted);
    margin-top: 3px;
}

.role.admin {
    color: #5540ae;
    background: #eeeafd;
}

.role.manager {
    color: #9c6210;
    background: #fff1d9;
}

.role.operator {
    color: #257553;
    background: #ddf7ed;
}

.dots {
    border: 0;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
    color: #748097;
}

.filter {
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.filter.active {
    background: #e8efff;
    color: var(--blue);
    border-radius: 7px;
    font-weight: 700;
}

.filter b {
    margin-left: 4px;
}

.event-filters input {
    margin-left: auto;
}

.event-grid {
    display: grid;
    gap: 13px;
}

.event-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
}

.event-date {
    min-width: 48px;
    text-align: center;
    border-radius: 8px;
    background: #eff4ff;
    color: var(--blue);
    padding: 7px;
}

.event-date b,
.event-date span {
    display: block;
}

.event-date b {
    font-size: 19px;
}

.event-date span {
    font-size: 10px;
    font-weight: 800;
}

.event-info {
    flex: 1;
}

.event-info h2 {
    font-size: 15px;
    margin: 8px 0 5px;
}

.event-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.event-meta {
    display: flex;
    gap: 18px;
    margin-top: 13px;
    color: #5f6b80;
    font-size: 12px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #13254b, #244987);
    padding: 22px;
}

.login-card {
    background: #fff;
    width: min(100%, 440px);
    padding: 38px;
    border-radius: 16px;
    box-shadow: 0 25px 70px #0d1d3f88;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
}

.login-intro {
    margin: 32px 0 26px;
}

.login-intro h1 {
    font-size: 25px;
    margin: 7px 0;
}

.login-intro p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-card form {
    display: grid;
    gap: 8px;
}

.login-card label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.login-card input:not([type=checkbox]) {
    border: 1px solid #dbe0e9;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    outline-color: var(--blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 13px;
    font-size: 12px;
}

.form-options a {
    color: var(--blue);
    font-weight: 650;
}

.form-options .check {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.wide {
    text-align: center;
}

.login-footer {
    text-align: center;
    color: #9aa3b4;
    font-size: 11px;
    margin: 25px 0 0;
}

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

    .menu-button {
        display: block;
        border: 0;
        background: transparent;
        font-size: 20px;
    }

    .topbar {
        padding: 0 20px;
    }

    .page-content {
        padding: 25px 20px;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .environment {
        display: none;
    }
}

@media(max-width:520px) {
    .page-heading {
        display: grid;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metrics article {
        padding: 14px;
    }

    .metrics strong {
        font-size: 23px;
    }

    .event-filters {
        flex-wrap: wrap;
    }

    .event-filters input {
        margin: 4px 0 0;
        min-width: 100%;
    }

    .login-card {
        padding: 28px 23px;
    }
}

/* Campos de autenticação com label flutuante, no padrão de labels flutuantes. */
.login-card .auth-input-group {
    position: relative;
    margin-top: 8px;
}

.login-card .auth-input-group input:not([type=checkbox]) {
    width: 100%;
    min-height: 54px;
    padding: 18px 16px 9px !important;
    border: 1px solid #dbe0e9;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.15;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-card .auth-input-group input:not([type=checkbox]):focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px #3167e824;
}

.login-card .auth-input-group label {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 1;
    max-width: calc(100% - 32px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    transition: top .18s ease, left .18s ease, color .18s ease, font-size .18s ease, padding .18s ease;
}

.login-card .auth-input-group input:focus+label,
.login-card .auth-input-group input:not(:placeholder-shown)+label,
.login-card .auth-input-group input:-webkit-autofill+label {
    top: -8px;
    left: 12px;
    padding: 0 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px !important;
    font-weight: 700;
}

/* Ícone institucional do SICOP. */
.system-logo {
    display: block;
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.login-brand .system-logo {
    width: 38px;
    height: 38px;
}

/* Login: destaque e alinhamento das ações. */
.login-intro .eyebrow {
    font-size: 16px !important;
    letter-spacing: 1.4px;
}

.login-card .form-options {
    justify-content: flex-end;
}

.dismissible-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.alert-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0 2px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar nav a i {
    width: 18px;
    text-align: center;
    color: #a9bee9;
}

.sidebar nav a:hover i,
.sidebar nav a.active i {
    color: #fff;
}

/* Dashboard */
.dashboard-heading {
    align-items: center;
}

.dashboard-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-metrics {
    gap: 18px;
}

.metrics .metric-card {
    position: relative;
    overflow: hidden;
    padding: 21px;
    border: 0;
    box-shadow: 0 9px 24px rgba(23, 44, 87, .07);
}

.metrics .metric-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--blue);
}

.metric-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric-card-head>span {
    font-weight: 650;
}

.metric-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    font-size: 16px;
    background: #eaf0ff;
    color: var(--blue);
}

.metric-events::after {
    background: #3167e8 !important;
}

.metric-registrations::after {
    background: #7755cf !important;
}

.metric-attendance::after {
    background: #168968 !important;
}

.metric-users::after {
    background: #d98622 !important;
}

.metric-registrations .metric-icon {
    color: #7755cf;
    background: #f1ecff;
}

.metric-attendance .metric-icon {
    color: #168968;
    background: #e4f7ef;
}

.metric-users .metric-icon {
    color: #b76d12;
    background: #fff3df;
}

.metrics .metric-card small {
    margin-top: 2px;
}

.dashboard-panel {
    box-shadow: 0 7px 20px rgba(23, 44, 87, .045);
}

.dashboard-panel .panel-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-panel .panel-header h2 i {
    color: var(--blue);
    font-size: 16px;
}

.dashboard-panel .panel-header a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dashboard-empty {
    padding: 31px 15px;
}

.dashboard-empty>i {
    display: block;
    margin: 0 auto 11px;
    color: var(--blue);
    font-size: 28px;
}

.dashboard-actions {
    gap: 10px;
}

.dashboard-actions a {
    align-items: center;
    gap: 11px;
    padding: 12px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-actions a:hover {
    border-color: #b6c9fb;
    box-shadow: 0 6px 15px rgba(49, 103, 232, .10);
    transform: translateY(-1px);
}

.quick-action-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: #eaf0ff;
}

.quick-action-label {
    flex: 1;
    color: var(--ink) !important;
}

.quick-action-label small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.dashboard-actions .action-arrow {
    color: var(--blue);
    font-size: 12px;
}

@media(max-width:520px) {
    .dashboard-heading .button {
        width: 100%;
        justify-content: center;
    }

    .metric-icon {
        width: 34px;
        height: 34px;
    }
}

/* Controles Bootstrap padronizados. */
.form-control,
.form-select {
    border-radius: 10px !important;
    border-color: #dbe2ee;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: #8dacff;
    box-shadow: 0 0 0 .22rem rgba(49, 103, 232, .14);
}

textarea.form-control {
    min-height: 108px;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

/* Navegação superior fixa e escala de tipografia Bootstrap. */
:root {
    --bs-body-font-size: 1.0625rem;
}

body {
    font-size: var(--bs-body-font-size);
}

.app-page {
    padding-top: 76px;
}

.app-topnav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 34px;
    color: #dbe6ff;
    background: var(--navy);
    box-shadow: 0 3px 14px rgba(12, 29, 62, .2);
}

.app-topnav .brand {
    flex: 0 0 auto;
    padding: 0;
    font-size: 21px;
}

.app-topnav .brand .system-logo {
    width: 32px;
    height: 32px;
}

.app-topnav nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 3px;
    min-width: 0;
}

.app-topnav nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
    color: #b9c9ea;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.app-topnav nav a i {
    color: #91a9d8;
}

.app-topnav nav a:hover,
.app-topnav nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-bottom-color: #79a0ff;
}

.app-topnav nav a:hover i,
.app-topnav nav a.active i {
    color: #fff;
}

.topnav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    font-size: 13px;
}

.topnav-user,
.topnav-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topnav-user {
    color: #fff;
}

.topnav-user i {
    font-size: 19px;
    color: #a9c2fa;
}

.topnav-logout {
    color: #dbe6ff;
    font-weight: 700;
}

.topnav-logout:hover {
    color: #fff;
}

.app-topnav .environment {
    background: #fff5d9;
    color: #946c12;
}

.app-page .main-content {
    min-width: 0;
}

.app-page .page-content {
    padding-top: 34px;
}

@media(max-width:1120px) {
    .app-topnav {
        gap: 12px;
        padding: 0 20px;
    }

    .app-topnav nav a {
        padding: 0 8px;
        font-size: 13px;
    }

    .topnav-user span {
        display: none;
    }

    .app-topnav .environment {
        display: none;
    }
}

@media(max-width:780px) {
    .app-page {
        padding-top: 122px;
    }

    .app-topnav {
        min-height: 122px;
        flex-wrap: wrap;
        align-content: center;
        row-gap: 7px;
        padding: 10px 16px;
    }

    .app-topnav nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        min-height: 42px;
    }

    .app-topnav nav a {
        flex: 0 0 auto;
        padding: 0 9px;
    }

    .topnav-account {
        gap: 10px;
    }

    .topnav-logout span {
        display: none;
    }

    .app-page .page-content {
        padding-top: 24px;
    }
}

/* Escala de leitura ampliada. Estas regras sobrepõem os tamanhos legados do SICOP. */
:root {
    --bs-body-font-size: 1.0625rem;
}

body {
    font-size: 17px;
}

.app-topnav nav a {
    font-size: 15px;
}

.topnav-account {
    font-size: 14px;
}

.page-heading p {
    font-size: 16px !important;
}

.eyebrow {
    font-size: 12px;
}

.button,
.btn {
    font-size: 15px !important;
}

.metrics span,
.metrics small {
    font-size: 14px !important;
}

.metrics strong {
    font-size: 34px !important;
}

.panel h2 {
    font-size: 20px !important;
}

.panel-header p,
.session small,
.event-info p {
    font-size: 15px !important;
}

.session strong,
.event-info h2 {
    font-size: 16px !important;
}

.event-meta {
    font-size: 14px;
}

.quick-actions a {
    font-size: 15px;
}

.quick-action-label small {
    font-size: 12px;
}

.table-tools input,
.event-filters input,
td {
    font-size: 15px !important;
}

th {
    font-size: 12px;
}

.login-card input:not([type=checkbox]),
.registration-form input,
.registration-form select,
.form-control,
.form-select {
    font-size: 16px !important;
}

.login-card label,
.registration-form label,
.event-form label {
    font-size: 14px !important;
}

.public-access,
.login-footer {
    font-size: 14px !important;
}

.status,
.role {
    font-size: 11px;
}

.user-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.user-search-form .input-group {
    max-width: 520px;
}

/* Barra de ações reutilizável em visualizações e listagens. */
.action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 13px 16px;
    background: linear-gradient(90deg, #f5f8f8, #f9fbfc);
    border-bottom: 1px solid #d7e0e5;
    box-shadow: 0 2px 8px rgba(39, 67, 89, .04);
}

.action-toolbar--flush {
    margin: -22px -22px 18px;
    border-radius: 12px 12px 0 0;
}

.action-toolbar:not(.action-toolbar--flush) {
    margin: 0 0 16px;
    border: 1px solid #d7e0e5;
    border-radius: 8px;
}

.action-toolbar--actions-only {
    justify-content: flex-end;
}

.action-toolbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.action-toolbar-search {
    flex: 1 1 50%;
    max-width: 520px;
}

.action-toolbar-search .reusable-search-form {
    margin: 0;
}

.action-toolbar .button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 9px 17px !important;
    border: 1px solid #1f67dd;
    box-shadow: 0 4px 10px rgba(49, 103, 232, .16);
}

/* Confirmação exibida logo após as ações de uma visualização. */
.action-toolbar--flush + .dismissible-alert {
    padding: 16px 18px;
    background: #e3f3eb;
    border: 1px solid #a7d8bf;
    border-radius: 8px;
    color: #155c42;
}

.user-record-actions {
    justify-content: flex-end;
}

.user-view-panel .form-control:disabled {
    background: #f7f9fc;
    color: var(--ink);
    opacity: 1;
}

@media(max-width:640px) {
    .user-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .user-search-form .input-group {
        max-width: none;
    }

    .action-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .action-toolbar .button {
        justify-content: center;
    }

    .user-record-actions {
        justify-content: stretch;
    }

    .user-record-actions .btn {
        flex: 1;
    }
}

/* Barra de pesquisa reutilizável. */
.reusable-search-form {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
}

.reusable-search-form .input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.reusable-search-form .form-control {
    min-width: 0;
}

@media(max-width:640px) {
    .reusable-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .reusable-search-form .btn {
        width: 100%;
    }
}

/* Barra de pesquisa simples, reutilizada nas listagens. */
.reusable-search-form {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
}

.reusable-search-form .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.reusable-search-form .search-submit {
    flex: 0 0 auto;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

/* Submenus da navegação superior. */
.topnav-dropdown {
    display: flex;
    align-items: stretch;
}

.topnav-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #b9c9ea;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.topnav-menu-button>i:not(.topnav-chevron) {
    color: #91a9d8;
}

.topnav-chevron {
    font-size: 10px;
    transition: transform .18s ease;
}

.topnav-menu-button.show .topnav-chevron {
    transform: rotate(180deg);
}

.topnav-menu-button:hover,
.topnav-menu-button.active,
.topnav-menu-button.show {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-bottom-color: #79a0ff;
}

.topnav-menu-button:hover>i,
.topnav-menu-button.active>i,
.topnav-menu-button.show>i {
    color: #fff;
}

.app-topnav .dropdown-menu {
    min-width: 205px;
    margin-top: 0;
    padding: 7px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
}

.app-topnav .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #35435d;
    font-size: 14px;
    font-weight: 600;
}

.app-topnav .dropdown-menu .dropdown-item i {
    width: 18px;
    color: var(--blue);
}

.app-topnav .dropdown-menu .dropdown-item:hover,
.app-topnav .dropdown-menu .dropdown-item.active {
    background: #eaf0ff;
    color: #214db6;
}

@media(max-width:780px) {
    .topnav-dropdown {
        flex: 0 0 auto;
    }

    .topnav-menu-button {
        min-height: 42px;
        padding: 0 9px;
        font-size: 13px;
    }

    .app-topnav .dropdown-menu {
        position: fixed !important;
    }
}

/* Breadcrumb premium reutilizável. */
.premium-breadcrumb {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 20px;
    padding: 8px 14px;
    border: 1px solid #dfe7f4;
    border-radius: 12px;
    background: linear-gradient(110deg, #fff, #f5f8ff);
    box-shadow: 0 5px 15px rgba(29, 57, 104, .05);
}

.premium-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #41618f;
    font-size: 13px;
    font-weight: 650;
}

.premium-breadcrumb a:hover {
    color: var(--blue);
}

.premium-breadcrumb a i {
    color: var(--blue);
}

.premium-breadcrumb .breadcrumb-separator {
    color: #a9b7cb;
    font-size: 10px;
}

.premium-breadcrumb .current {
    color: #203a63;
    font-size: 13px;
    font-weight: 750;
}

@media(max-width:520px) {
    .premium-breadcrumb {
        margin-bottom: 16px;
        padding: 8px 11px;
    }

    .premium-breadcrumb a,
    .premium-breadcrumb .current {
        font-size: 12px;
    }
}

/* Breadcrumb copiado do padrão SICONV, posicionado abaixo do título. */
.siconv-breadcrumb-shell {
    width: fit-content;
    max-width: 100%;
    margin: .25rem 0 1.35rem;
    padding: .55rem .85rem;
    overflow-x: auto;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(193, 206, 226, .78);
    border-radius: 999px;
    box-shadow: 0 .45rem 1.2rem rgba(22, 53, 105, .07);
    backdrop-filter: blur(10px);
}

.siconv-breadcrumb {
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    font-size: .79rem;
    font-weight: 700;
}

.siconv-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    padding-right: .55rem;
    color: #94a3b8;
    content: "›";
    font-size: 1.15rem;
    font-weight: 400;
    line-height: .75;
}

.siconv-breadcrumb a {
    color: #3562b8;
    text-decoration: none;
    transition: color .18s ease;
}

.siconv-breadcrumb a:hover,
.siconv-breadcrumb a:focus-visible {
    color: #173f9f;
    text-decoration: underline;
}

.siconv-breadcrumb a i,
.siconv-breadcrumb .active>i {
    margin-right: .35rem;
}

.siconv-breadcrumb .active {
    color: #526482;
}

.action-toolbar--flush .user-record-actions {
    width: 100%;
}

@media(max-width:640px) {
    .action-toolbar--flush .user-record-actions {
        align-items: stretch;
    }

    .action-toolbar--flush .user-record-actions>div {
        width: 100%;
    }

    .action-toolbar--flush .user-record-actions .btn {
        flex: 1;
    }
}

/* Breadcrumb alinhado ao título em telas amplas. */
.page-heading>.siconv-breadcrumb-shell {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0 0 auto;
}

@media(max-width:760px) {
    .page-heading>.siconv-breadcrumb-shell {
        width: fit-content;
        max-width: 100%;
        margin: 0;
        order: 3;
    }
}

@media(max-width:767px) {
    .action-toolbar-search {
        max-width: none;
    }

    .action-toolbar .btn-success {
        width: 100%;
    }
}

/* Estrutura Bootstrap para navegação e conteúdo. */
.app-topnav {
    display: block;
    padding: 0;
}

.app-topnav>.container-fluid {
    height: 76px;
    padding: 0;
}

.app-topnav-content {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 12px;
}

.app-page .page-content {
    max-width: none;
    margin: 0 auto;
}

@media(max-width:1120px) {
    .app-topnav-content {
        gap: 12px;
        padding: 0 20px;
    }
}

@media(max-width:780px) {
    .app-topnav>.container-fluid {
        height: 122px;
    }

    .app-topnav-content {
        height: 122px;
        flex-wrap: wrap;
        align-content: center;
        row-gap: 7px;
        padding: 10px 16px;
    }

    .app-topnav-content nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        min-height: 42px;
    }
}

/* Escala tipográfica alinhada ao padrão do SICONV. */
:root {
    --bs-body-font-size: 1rem;
}

body {
    font-size: 1rem;
}

.button,
.btn {
    font-size: 1rem !important;
}

.form-control,
.form-select,
.login-card input:not([type=checkbox]),
.registration-form input,
.registration-form select {
    font-size: 1rem !important;
}

.login-card label,
.registration-form label,
.event-form label {
    font-size: .9rem !important;
}

.page-heading p {
    font-size: 1rem !important;
}

.metrics span,
.metrics small,
.panel-header p,
.session small,
.event-info p {
    font-size: .9rem !important;
}

.session strong,
.event-info h2,
.quick-actions a,
.table-tools input,
.event-filters input,
td {
    font-size: .95rem !important;
}

th {
    font-size: .75rem;
}

.metrics strong {
    font-size: 2.3rem !important;
}

.panel h2 {
    font-size: 1.05rem !important;
}

/* As sections e formulários internos ocupam toda a largura do container. */
.event-form,
.user-view-panel {
    width: 100%;
    max-width: none;
}

/* Empresa autenticada e posicionamento dos alertas de página. */
.company-context-bar {
    background: #f7f9fd;
    border-bottom: 1px solid #dfe6f1;
}

.company-context-content {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #112d5d;
}

.company-context-content strong {
    font-size: 1.05rem;
    font-weight: 750;
}

.company-context-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.company-context-placeholder {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f0ff;
    color: var(--blue);
}

.page-alert-region:empty {
    display: none;
}

.page-alert-region .dismissible-alert {
    margin: 0 0 22px;
}

/* Identidade visual da empresa no mesmo alinhamento do conteúdo. */
.company-context-content {
    min-height: 132px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.company-context-logo {
    width: 114px;
    height: 114px;
    flex: 0 0 114px;
}

.company-context-placeholder {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    font-size: 1.7rem;
}

/* A logo fica próxima ao menu, com afastamento visual de 15px. */
.company-context-content {
    min-height: 0;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Mantém o título da página próximo da identidade da empresa. */
.company-context-content {
    padding-bottom: 5px;
}

.company-context-bar+.main-content .page-content {
    padding-top: 8px;
}

/* Compensa a área transparente da imagem para aproximar a marca do menu. */
.company-context-logo {
    transform: translateY(-34px);
    margin-bottom: -34px;
}

.company-context-placeholder {
    transform: translateY(-34px);
    margin-bottom: -34px;
}

/* Nome sempre centralizado verticalmente na faixa da empresa. */
.company-context-content strong {
    align-self: center;
    display: flex;
    align-items: center;
}

/* Barra de identidade: mesmo alinhamento estrutural do SICONV. */
.company-context-content {
    min-height: 70px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-context-logo {
    width: 114px;
    height: 114px;
    margin-top: -12px;
    margin-bottom: -12px;
    transform: none;
    object-fit: contain;
}

.company-context-placeholder {
    margin-top: -12px;
    margin-bottom: -12px;
    transform: none;
}

.company-context-content strong {
    display: block;
    align-self: auto;
}

.company-context-bar {
    border-bottom: 0;
}

/* Alinha a identidade da empresa à coluna de títulos e formulários. */
.company-context-content {
    padding-left: calc(34px + var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(34px + var(--bs-gutter-x, 1.5rem) * .5);
}

@media (max-width: 780px) {
    .company-context-content {
        padding-left: calc(20px + var(--bs-gutter-x, 1.5rem) * .5);
        padding-right: calc(20px + var(--bs-gutter-x, 1.5rem) * .5);
    }
}

.company-context-logo {
    margin-top: -17px;
}

.company-context-logo {
    margin-top: -22px;
}

/* Rodapé global reutilizável. */
.app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-page .main-content {
    flex: 1 0 auto;
}

.system-footer {
    flex: 0 0 auto;
    border-top: 1px solid #dfe6f1;
    background: #fff;
    color: #62738a;
    font-size: .82rem;
}

.system-footer-content {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-page .system-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    border: 0;
    color: #dbe6ff;
}

.login-page .system-footer-content {
    justify-content: center;
    min-height: 42px;
}

@media(max-width:575px) {
    .system-footer-content {
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }

    .login-page .system-footer {
        display: none;
    }
}

/* Rodapé em duas colunas, baseado na composição do módulo Agreement do SICONV. */
.system-footer {
    margin-top: auto;
    background: #18335f;
    color: #fff;
    border: 0;
}

.system-footer-content {
    padding-top: 18px;
    padding-bottom: 18px;
}

.system-footer-content>div {
    display: grid;
    gap: 4px;
    font-size: .9rem;
}

.system-footer-content strong {
    font-size: .98rem;
    font-weight: 750;
}

.system-footer-content i {
    width: 18px;
    color: #b9cdf8;
}

.system-footer-company {
    align-content: start;
}

.system-footer-system {
    text-align: right;
    justify-items: end;
}

.system-footer-copyright {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, .28);
    text-align: center;
    color: #dbe6ff;
    font-size: .78rem;
}

.system-footer-copyright i {
    margin-right: 4px;
}

@media(max-width:767px) {
    .system-footer-system {
        text-align: left;
        justify-items: start;
    }

    .system-footer-content {
        padding: 18px 0;
    }
}

.login-page .system-footer {
    background: transparent;
    color: #dbe6ff;
}

.login-page .system-footer-copyright {
    border-top: 0;
}

/* Duas colunas reais no rodapé, independente das regras antigas. */
.system-footer .system-footer-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 0;
    margin: 0;
    padding: 18px 0;
}

.system-footer .system-footer-content>.col-md-6 {
    width: auto;
    max-width: none;
    padding: 0;
}

.system-footer .system-footer-company {
    justify-self: start;
    text-align: left;
    justify-items: start;
}

.system-footer .system-footer-system {
    justify-self: end;
    text-align: right;
    justify-items: end;
}

@media(max-width:767px) {
    .system-footer .system-footer-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .system-footer .system-footer-system {
        justify-self: start;
        text-align: left;
        justify-items: start;
    }
}

/* Centraliza as informações dentro de cada coluna do rodapé. */
.system-footer .system-footer-content>.col-md-6 {
    justify-self: stretch;
    text-align: center;
    justify-items: center;
    align-content: center;
}

.system-footer .system-footer-company,
.system-footer .system-footer-system {
    text-align: center;
    justify-items: center;
}

/* Tela de acesso em duas colunas. */
.login-page {
    display: block;
    padding: 0;
    background: #f7f9fd;
}

.login-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 46%);
    min-height: 100vh;
}

.login-showcase {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 48px;
    color: #fff;
    background: linear-gradient(135deg, #102a5b 0%, #1d4e96 55%, #2f72cb 100%);
}

.login-showcase::before,
.login-showcase::after {
    position: absolute;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: '';
}

.login-showcase::before {
    top: -225px;
    right: -140px;
    box-shadow: 0 0 0 64px rgba(255, 255, 255, .05), 0 0 0 128px rgba(255, 255, 255, .035);
}

.login-showcase::after {
    bottom: -300px;
    left: -175px;
}

.login-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 470px;
    text-align: center;
}

.login-showcase-logo {
    width: 126px;
    height: 126px;
    margin-bottom: 30px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(5, 22, 53, .32));
}

.login-showcase-kicker {
    margin: 0 0 8px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .19em;
}

.login-showcase h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.055em;
}

.login-showcase-description {
    max-width: 350px;
    margin: 17px auto 0;
    color: rgba(255, 255, 255, .85);
    font-size: 1.08rem;
    line-height: 1.55;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 44px;
    background: #fff;
}

.login-panel .login-card {
    width: min(100%, 440px);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.login-panel .login-intro {
    margin: 0 0 30px;
}

.login-panel .login-intro h2 {
    margin: 6px 0 8px;
    color: #172b4d;
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -.03em;
}

.login-panel .login-intro p:not(.eyebrow) {
    font-size: .94rem;
}

.login-panel .eyebrow {
    margin: 0;
    color: #3167e8;
    font-size: .74rem !important;
    font-weight: 800;
    letter-spacing: .13em;
}

.login-panel .button.primary {
    min-height: 50px;
    border-radius: 8px;
}

.login-panel .public-access {
    margin: 26px 0 0;
    text-align: center;
}

@media (max-width: 860px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 245px;
        padding: 34px 24px;
    }

    .login-showcase-logo {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }

    .login-showcase h1 {
        font-size: 2.8rem;
    }

    .login-showcase-description {
        margin-top: 7px;
        font-size: .95rem;
    }

    .login-panel {
        min-height: auto;
        padding: 42px 28px 52px;
    }
}

@media (max-width: 480px) {
    .login-showcase {
        min-height: 210px;
    }

    .login-showcase-description {
        display: none;
    }

    .login-panel {
        padding: 36px 22px 44px;
    }

    .login-panel .login-intro h2 {
        font-size: 1.65rem;
    }
}

/* Ajuste visual da tela de acesso: duas áreas contínuas, sem card flutuante. */
.login-screen {
    grid-template-columns: minmax(270px, 44%) minmax(0, 56%);
    background: #fff;
}

.login-showcase {
    justify-items: start;
    padding: clamp(36px, 7vw, 104px);
    background: #13366f;
}

.login-showcase-content {
    max-width: 390px;
    text-align: left;
}

.login-showcase-logo {
    width: 92px;
    height: 92px;
    margin-bottom: 38px;
}

.login-showcase-kicker,
.login-showcase h1,
.login-showcase-description {
    color: #fff !important;
}

.login-showcase-kicker {
    margin-bottom: 12px;
    color: #b9d5ff !important;
    font-size: .7rem;
}

.login-showcase h1 {
    font-size: clamp(2.45rem, 4.8vw, 4.15rem);
    letter-spacing: -.045em;
}

.login-showcase-description {
    max-width: 300px;
    margin: 15px 0 0;
    color: #d5e4ff !important;
    font-size: 1rem;
}

.login-panel {
    padding: clamp(32px, 8vw, 120px);
}

.login-panel .login-card {
    width: min(100%, 410px);
}

.login-panel .login-intro {
    margin-bottom: 34px;
}

.login-panel .login-intro h2 {
    font-size: 2rem;
}

@media (max-width: 860px) {
    .login-screen {
        grid-template-columns: minmax(270px, 43%) minmax(0, 57%);
    }

    .login-showcase {
        min-height: 100vh;
        padding: 32px;
    }

    .login-showcase-logo {
        width: 76px;
        height: 76px;
        margin-bottom: 28px;
    }

    .login-showcase h1 {
        font-size: 2.65rem;
    }

    .login-showcase-description {
        display: block;
        font-size: .92rem;
    }

    .login-panel {
        min-height: 100vh;
        padding: 32px;
    }
}

@media (max-width: 640px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 178px;
        padding: 28px 26px;
    }

    .login-showcase-logo {
        position: absolute;
        top: 28px;
        right: 26px;
        width: 62px;
        height: 62px;
        margin: 0;
    }

    .login-showcase-kicker {
        margin-bottom: 4px;
    }

    .login-showcase h1 {
        font-size: 2.35rem;
    }

    .login-showcase-description {
        max-width: 240px;
        margin-top: 5px;
        font-size: .82rem;
    }

    .login-panel {
        min-height: auto;
        padding: 40px 26px 48px;
    }
}

/* Evita que o padding some altura ao viewport e provoque rolagem no login. */
.login-screen,
.login-showcase,
.login-panel {
    box-sizing: border-box;
}

.login-screen {
    min-height: 100dvh;
}

@media (max-width: 860px) and (min-width: 641px) {
    .login-showcase,
    .login-panel {
        min-height: 100dvh;
    }

    .login-panel {
        padding: 20px 28px;
    }

    .login-panel .login-intro {
        margin-bottom: 22px;
    }

    .login-panel .public-access {
        margin-top: 18px;
    }
}

/* Em janelas largas e baixas, o espaçamento vertical acompanha a altura,
   não a largura — evitando que o conteúdo ultrapasse o viewport. */
@media (min-width: 861px) {
    .login-panel {
        padding-block: clamp(24px, 5vh, 64px);
    }

    .login-panel .login-intro {
        margin-bottom: clamp(20px, 3vh, 34px);
    }

    .login-panel .public-access {
        margin-top: clamp(16px, 2.5vh, 26px);
    }
}

/* Mantém o label flutuante visível acima do campo durante a edição. */
.login-panel .auth-input-group:focus-within label,
.login-panel .auth-input-group:has(input:not(:placeholder-shown)) label,
.login-panel .auth-input-group:has(input:-webkit-autofill) label {
    top: -8px;
    left: 12px;
    padding: 0 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px !important;
    font-weight: 700;
}

/* Recuperação de senha: formulário centralizado e tipografia mais legível. */
.auth-page {
    display: grid;
    min-height: 100dvh;
    padding: 28px;
    place-items: center;
}

.recovery-card {
    width: min(100%, 480px);
}

.recovery-card .login-intro h1 {
    font-size: 1.85rem;
}

.recovery-card .login-intro p:not(.eyebrow),
.recovery-card .login-footer {
    font-size: .95rem;
}

.recovery-card .auth-input-group:focus-within label,
.recovery-card .auth-input-group:has(input:not(:placeholder-shown)) label,
.recovery-card .auth-input-group:has(input:-webkit-autofill) label {
    top: -8px;
    left: 12px;
    padding: 0 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px !important;
    font-weight: 700;
}

.recovery-card .auth-input-group input:not([type=checkbox]) {
    font-size: 1.05rem !important;
}

@media (max-width: 520px) {
    .auth-page { padding: 20px; }
    .recovery-card { padding: 30px 24px; }
}

/* No celular, a logo participa do fluxo do conteúdo para não cobrir o texto. */
@media (max-width: 640px) {
    .login-showcase {
        min-height: auto;
        padding: 24px 26px 28px;
    }

    .login-showcase-logo {
        position: static !important;
        display: block;
        width: 56px;
        height: 56px;
        margin: 0 0 16px !important;
    }

    .login-showcase-content {
        max-width: none;
    }

    .login-showcase h1 {
        margin-top: 0;
    }
}

/* Escala e ritmo alinhados aos formulários de Usuários e Empresa. */
.login-panel,
.auth-page {
    font-size: 1rem;
}

.login-panel .login-intro,
.recovery-card .login-intro {
    margin-bottom: 20px;
}

.login-panel .login-intro h2,
.recovery-card .login-intro h1 {
    font-size: 2.125rem;
    line-height: 1.15;
}

.login-panel .login-intro p:not(.eyebrow),
.recovery-card .login-intro p:not(.eyebrow),
.recovery-card .login-footer {
    font-size: 1rem;
}

.login-panel .auth-input-group,
.recovery-card .auth-input-group {
    margin-top: 0;
}

.login-panel .auth-input-group input:not([type=checkbox]),
.recovery-card .auth-input-group input:not([type=checkbox]) {
    font-size: 1rem !important;
}

/* Padrão de formulários do SICOP, alinhado à escala visual do SICONV. */
:root {
    --sicop-form-font-size: 1rem;
    --sicop-form-label-gap: .5rem;
    --sicop-form-gutter: 1rem;
    --sicop-form-radius: .85rem;
    --sicop-form-border: rgba(100, 116, 139, .35);
}

.event-form,
.registration-form,
.login-panel form,
.recovery-card form {
    font-size: var(--sicop-form-font-size);
}

.event-form .row.g-3,
.registration-form .row.g-3,
.login-panel form .row.g-3,
.recovery-card form .row.g-3 {
    --bs-gutter-x: var(--sicop-form-gutter);
    --bs-gutter-y: var(--sicop-form-gutter);
}

.event-form label:not(.check),
.registration-form label {
    display: block;
    margin: 0 0 var(--sicop-form-label-gap);
    color: var(--ink);
    font-size: var(--sicop-form-font-size) !important;
    font-weight: 700;
    line-height: 1.5;
}

.event-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
.registration-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
    width: 100%;
    min-height: 2.375rem;
    /* Substitui o padding antigo de 13px da inscrição pública pelo padrão dos formulários. */
    padding: .375rem .75rem !important;
    border: 1px solid var(--sicop-form-border);
    border-radius: var(--sicop-form-radius);
    box-shadow: 0 .3rem .9rem rgba(22, 53, 105, .06);
    color: var(--ink);
    font-size: var(--sicop-form-font-size) !important;
    line-height: 1.5;
}

/* A regra antiga de fundo removia a imagem padrão do Bootstrap. Mantemos uma
   seta explícita para todos os selects dos formulários do sistema. */
.event-form select,
.registration-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23536783' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
}

.event-form textarea,
.registration-form textarea {
    min-height: unset;
}

.event-form :is(input, select, textarea):focus,
.registration-form :is(input, select, textarea):focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .22rem #3167e829, 0 .3rem .9rem rgba(22, 53, 105, .08);
    outline: 0;
}

.event-form .form-section {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

/* Blocos de dependentes: duas linhas de campos e uma separação visual clara. */
.dependent-fields-editor {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.dependent-entry + .dependent-entry {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #aebcd0;
}

.dependent-remove-action {
    display: flex;
    align-items: flex-end;
}

.dependent-remove-action .button {
    width: 100%;
}

@media (max-width: 767px) {
    .dependent-remove-action .button {
        width: auto;
    }
}

.login-panel .auth-input-group input:not([type=checkbox]),
.recovery-card .auth-input-group input:not([type=checkbox]) {
    min-height: 2.8rem;
    border-color: var(--sicop-form-border);
    border-radius: var(--sicop-form-radius);
    box-shadow: 0 .3rem .9rem rgba(22, 53, 105, .06);
}

/* Campos obrigatórios: marcador explícito e reutilizável em todos os formulários. */
.required-mark {
    margin-left: .12rem;
    color: #c62828;
    font-weight: 800;
}

/* Formulário público de acesso: compacto e com ação alinhada à direita. */
.access-registrations-form {
    gap: .25rem;
}

.access-registrations-form label {
    margin: 0 0 .125rem !important;
}

.access-registrations-form :is(input, select) {
    margin: 0 0 .375rem;
}

.access-registrations-form > .button {
    justify-self: end;
    width: auto;
    margin-top: .25rem;
}

.button.success {
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 15px rgba(22, 137, 104, .2);
}

/* A saída só fica disponível após o encerramento da entrada. */
.button[data-registration-control="EXIT"]:disabled {
    cursor: not-allowed;
}

.registration-result-actions .button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.public-registration-actions {
    width: min(100%, 720px);
    margin: 1rem auto 0;
}

.event-public-modal-link {
    display: block;
    font-size: 1rem;
    color: var(--blue);
    overflow-wrap: anywhere;
}

/* Mantém o cancelamento separado da ação principal em todos os modais. */
.modal-footer > .button[data-bs-dismiss] {
    margin-right: auto;
}

.modal-footer > .button[data-bs-dismiss].modal-close-action {
    margin-right: 0;
}

/* Menus de ações das listagens devem abrir acima dos cartões e tabelas. */
.event-card:has(.dropdown.show),
.panel:has(.dropdown.show) {
    position: relative;
    z-index: 20;
}

.event-card .dropdown-menu,
.panel .dropdown-menu {
    z-index: 1100;
    min-width: 150px;
    padding: .4rem;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 39, 75, .18);
}

.event-card .card-actions > .dropdown {
    order: 99;
}

.panel .table-responsive:has(.dropdown) {
    overflow: visible;
}

.panel .dropdown-item {
    border-radius: 7px;
    font-weight: 600;
    padding: .55rem .7rem;
}

.panel .dropdown-item:hover {
    background: #edf3ff;
}
