/*
|===============================================================================
| ACL — BOLETINS DE INSCRIÇÃO
| Folha de estilos global
|===============================================================================
|
| Organização:
|  1. Base
|  2. Header e footer
|  3. Layout e componentes genéricos
|  4. Formulários e mensagens
|  5. Badges / disciplinas
|  6. Steps e pagamento
|  7. Dashboard comum
|  8. Backoffice ACL
|  9. Login / OTP
| 10. Responsive
|
*/


/*
|-------------------------------------------------------------------------------
| 1. BASE
|-------------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: Arial, sans-serif;

    background: #f4f6f8;
    color: #202124;
}

.acl-main {
    flex: 1;
}


/*
|-------------------------------------------------------------------------------
| 2. HEADER
|-------------------------------------------------------------------------------
*/

.acl-header {
    background: #fff;

    border-bottom: 1px solid #dde2e7;

    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.acl-header-inner {
    max-width: 1050px;
    min-height: 76px;

    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.acl-logo-link {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.acl-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 150px;
    max-height: 54px;
}

.acl-header-text {
    flex: 1;
    min-width: 0;
}

.acl-header-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;

    color: #202124;
}

.acl-header-subtitle {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.3;

    color: #6a6d72;
}

/* Identificação no header: organizador ou backoffice */

.acl-header-entity {
    margin-top: 4px;

    font-size: 14px;
    font-weight: 700;

    color: #202124;
}

.acl-header-meta {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.3;

    color: #6a6d72;
}

/* Compatibilidade com a versão anterior do header dos organizadores */

.acl-header-organizer {
    margin-top: 7px;

    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;

    font-size: 12px;

    color: #6a6d72;
}

.acl-header-organizer > strong {
    width: 100%;

    font-size: 13px;

    color: #202124;
}

.acl-header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.acl-header-actions form {
    margin: 0;
}

.acl-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    border-radius: 6px;

    background: #e9eefc;
    color: #2859ad;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
}

.acl-back-button:hover {
    background: #dce5fb;
}

.acl-header-logout,
.acl-logout-button {
    padding: 9px 14px;

    border: 0;
    border-radius: 6px;

    background: #eef0f2;
    color: #333;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.acl-header-logout:hover,
.acl-logout-button:hover {
    background: #dfe3e6;
}


/*
|-------------------------------------------------------------------------------
| 2.1 FOOTER
|-------------------------------------------------------------------------------
*/

.acl-footer {
    margin-top: auto;

    background: rgba(255, 255, 255, .96);

    border-top: 1px solid #dde2e7;

    box-shadow: 0 -1px 4px rgba(0, 0, 0, .03);
}

.acl-footer-inner {
    max-width: 1050px;

    margin: 0 auto;
    padding: 12px 20px;

    text-align: center;

    font-size: 11px;
    line-height: 1.4;

    color: #7a7d81;
}

.acl-footer-inner strong {
    color: #3d4044;
}


/*
|-------------------------------------------------------------------------------
| 3. LAYOUT E COMPONENTES GENÉRICOS
|-------------------------------------------------------------------------------
*/

.container {
    max-width: 1050px;

    margin: 40px auto;
    padding: 0 20px;
}

.card {
    margin-bottom: 20px;
    padding: 30px;

    border-radius: 10px;

    background: #fff;

    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.section-title {
    margin-top: 0;
}

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

.steps {
    margin-bottom: 25px;
}

.steps span,
.steps strong {
    display: inline-block;
    margin-right: 25px;
}

.steps strong {
    color: #202124;
}


/*
|-------------------------------------------------------------------------------
| 4. FORMULÁRIOS
|-------------------------------------------------------------------------------
*/

.field {
    margin-bottom: 22px;
}

.field-label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;
}

.field small {
    display: block;

    margin-top: 6px;

    color: #666;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;

    padding: 11px;

    border: 1px solid #ccd2d8;
    border-radius: 6px;

    background: #fff;
    color: #202124;

    font-family: inherit;
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: #347de9;

    box-shadow: 0 0 0 3px rgba(52, 125, 233, .12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: #c62828;
}


/*
|-------------------------------------------------------------------------------
| 4.1 MENSAGENS
|-------------------------------------------------------------------------------
*/

.status {
    margin-bottom: 20px;
    padding: 15px;

    border-radius: 6px;

    background: #e7f7e7;
}

.errors {
    margin-bottom: 20px;
    padding: 15px;

    border-radius: 6px;

    background: #ffe5e5;
}

.errors ul {
    margin-bottom: 0;
}

.info {
    margin-bottom: 20px;
    padding: 16px;

    border-left: 4px solid #347de9;
    border-radius: 6px;

    background: #eef5ff;
}

.locked-info {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-left: 4px solid #efb000;

    background: #fff8df;
}

.locked-value {
    padding: 12px 14px;

    border: 1px solid #e1e4e8;
    border-radius: 6px;

    background: #f5f6f7;
}


/*
|-------------------------------------------------------------------------------
| 4.2 OPÇÕES / PILLS
|-------------------------------------------------------------------------------
*/

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.option {
    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;

    cursor: pointer;
}

.option:hover {
    background: #f8fafb;
}

.option input {
    margin: 0;
}

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pill {
    padding: 8px 13px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid #d5d9dd;
    border-radius: 20px;

    background: #fff;

    cursor: pointer;
}

.pill:hover {
    background: #f5f7f8;
}


/*
|-------------------------------------------------------------------------------
| 5. IDENTIFICADORES, BADGES E DISCIPLINAS
|-------------------------------------------------------------------------------
*/

.request-id {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 4px;

    background: #e9eefc;
    color: #2859ad;

    font-size: 13px;
    font-weight: 700;
}

.discipline-badge,
.badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 4px;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.discipline-badge {
    min-width: 42px;
    padding: 4px 8px;
}

.badge-bmx { background: #f47721; }
.badge-cpt { background: #087fb5; }
.badge-cro { background: #236fb2; }
.badge-ind { background: #7651b5; }
.badge-mtb { background: #30b8aa; }
.badge-par { background: #ef9500; }
.badge-ctr { background: #d72d42; }
.badge-road,
.badge-roa { background: #347de9; }
.badge-tri { background: #3caf60; }
.badge-bfr { background: #f1cb00; color: #111; }
.badge-ces { background: #087dbb; }
.badge-gra,
.badge-gravel { background: #b87b42; }
.badge-default { background: #66727d; }


/*
|-------------------------------------------------------------------------------
| 6. STEP 2
|-------------------------------------------------------------------------------
*/

.entity-box {
    padding: 18px;

    border: 1px solid #e1e4e8;
    border-radius: 8px;

    background: #f5f6f7;
}

.entity-box strong {
    display: block;

    margin-bottom: 8px;

    font-size: 17px;
}

.entity-row {
    margin: 5px 0;

    color: #555;
}


/*
|-------------------------------------------------------------------------------
| 6.1 STEP 3 — RESUMO
|-------------------------------------------------------------------------------
*/

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.summary-item {
    padding-bottom: 12px;

    border-bottom: 1px solid #eee;
}

.summary-label {
    display: block;

    margin-bottom: 5px;

    font-size: 13px;

    color: #6a6d72;
}

.summary-value {
    font-weight: 700;
}


/*
|-------------------------------------------------------------------------------
| 6.2 INTERNACIONAL
|-------------------------------------------------------------------------------
*/

.international-box {
    margin-bottom: 20px;
    padding: 20px;

    border-left: 5px solid #347de9;
    border-radius: 8px;

    background: #eef5ff;
}

.international-box h3 {
    margin-top: 0;
}


/*
|-------------------------------------------------------------------------------
| 6.3 TAXA / PAGAMENTO
|-------------------------------------------------------------------------------
*/

.fee-box {
    margin: 20px 0;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #e1e4e8;
    border-radius: 8px;

    background: #f6f7f8;
}

.fee-label {
    font-size: 16px;
    font-weight: 700;
}

.fee-value {
    font-size: 27px;
    font-weight: 700;
}

.fee-free {
    color: #237a3b;
}

.fee-breakdown {
    margin: 20px 0;

    overflow: hidden;

    border: 1px solid #e1e4e8;
    border-radius: 8px;

    background: #fff;
}

.fee-breakdown-row {
    padding: 14px 18px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #edf0f2;
}

.fee-breakdown-detail {
    padding: 10px 18px;

    border-bottom: 1px solid #edf0f2;

    background: #f8f9fa;
    color: #666;

    font-size: 12px;
}

.fee-breakdown-total {
    padding: 17px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #f5f7f8;

    font-size: 17px;
}

.fee-breakdown-total strong {
    font-size: 22px;
}

.fee-deadline-info {
    margin: -5px 0 22px;
    padding: 12px 15px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;

    border-left: 4px solid #347de9;

    background: #eef5ff;
    color: #4d5962;

    font-size: 13px;
}

.payment-option {
    display: block;

    margin-bottom: 12px;
    padding: 16px;

    border: 1px solid #d9dde1;
    border-radius: 8px;

    cursor: pointer;
}

.payment-option:hover {
    background: #f8fafb;
}

.payment-option-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.communication-option {
    padding: 18px;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    border: 1px solid #b9d8be;
    border-radius: 8px;

    background: #f1f8f2;
}

.payment-reference {
    margin-top: 20px;
    padding: 20px;

    border: 1px solid #ead58b;
    border-radius: 8px;

    background: #fff8df;
}

.payment-reference h3 {
    margin-top: 0;
}

.payment-reference-grid {
    margin: 20px 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.payment-reference-summary {
    padding-top: 15px;

    border-top: 1px solid #ead58b;

    font-size: 14px;
    line-height: 1.8;
}

.payment-reference-total {
    margin-top: 5px;

    font-size: 17px;
}

.payment-valid-until {
    margin-top: 10px;

    font-size: 13px;

    color: #7a5d00;
}

.reference-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.payment-reference-expired {
    border-color: #e3aaaa;

    background: #fff0f0;
}

.payment-reference-expired h3 {
    color: #9b2929;
}

.expired-payment-details {
    margin-top: 15px;
    padding-top: 15px;

    border-top: 1px solid #e3aaaa;

    color: #666;

    font-size: 13px;
    line-height: 1.8;
}

.fee-renewal-box {
    margin-top: 20px;
    padding: 20px;

    border: 1px solid #d7dce1;
    border-radius: 8px;

    background: #f8fafb;
}

.fee-renewal-box h3 {
    margin-top: 0;
}


/*
|-------------------------------------------------------------------------------
| 6.4 TERMOS
|-------------------------------------------------------------------------------
*/

.terms {
    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #eee;
}

.terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms a {
    color: #2859ad;

    font-weight: 600;

    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}


/*
|-------------------------------------------------------------------------------
| 6.5 BOTÕES / AÇÕES GENÉRICAS
|-------------------------------------------------------------------------------
*/

.actions {
    margin-top: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

button,
.button {
    padding: 13px 22px;

    border: 0;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;

    text-decoration: none;

    cursor: pointer;
}

button {
    background: #222;
    color: #fff;
}

button:hover {
    background: #000;
}

.button {
    background: #e5e7eb;
    color: #222;
}

.button:hover {
    background: #d9dce1;
}

.communication-button {
    background: #2868c7;
}

.communication-button:hover {
    background: #2057a8;
}


/*
|-------------------------------------------------------------------------------
| 7. DASHBOARD — ESTRUTURA
|-------------------------------------------------------------------------------
*/

.dash-shell {
    width: min(1380px, calc(100% - 40px));

    margin: 34px auto 0;
}

.dash-hero {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dash-eyebrow {
    margin-bottom: 6px;

    color: #6a6d72;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dash-title {
    margin: 0;

    font-size: 28px;
    line-height: 1.2;
}

.dash-meta {
    margin-top: 8px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;

    color: #666;

    font-size: 13px;
}

.dash-alert-success {
    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid #bddfc5;
    border-radius: 8px;

    background: #eaf7ed;
    color: #235f33;
}

.dash-panel {
    margin-bottom: 24px;
    padding: 24px;

    border: 1px solid #e4e7ea;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.dash-panel-header {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dash-panel-header h2 {
    margin: 0;

    font-size: 20px;
}

.dash-panel-header p {
    margin: 5px 0 0;

    color: #6a6d72;

    font-size: 13px;
}

.dash-empty {
    padding: 24px;

    color: #6a6d72;

    text-align: center;

    font-size: 13px;
}


/*
|-------------------------------------------------------------------------------
| 7.1 DASHBOARD — FILTROS
|-------------------------------------------------------------------------------
*/

.dash-filter-box {
    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid #e5e8eb;
    border-radius: 9px;

    background: #f8f9fa;
}

.dash-filters {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        repeat(5, minmax(120px, 1fr))
        auto;
    gap: 10px;

    align-items: end;
}

.dash-filter {
    min-width: 0;
}

.dash-filter label {
    display: block;

    margin-bottom: 6px;

    color: #5e6368;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dash-filter input,
.dash-filter select {
    width: 100%;
    height: 40px;

    padding: 8px 10px;

    border: 1px solid #cfd5da;
    border-radius: 6px;

    background: #fff;
    color: #202124;

    font-size: 13px;
}

.dash-filter input:focus,
.dash-filter select:focus {
    outline: none;

    border-color: #347de9;

    box-shadow: 0 0 0 3px rgba(52, 125, 233, .10);
}

.dash-filter-action {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dash-filter-action .dash-btn {
    min-height: 40px;
}


/*
|-------------------------------------------------------------------------------
| 7.2 DASHBOARD — TABELAS
|-------------------------------------------------------------------------------
*/

.dash-table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #e3e7ea;
    border-radius: 9px;

    background: #fff;
}

.dash-table {
    width: 100%;
    min-width: 1110px;

    border-collapse: collapse;
}

.dash-table-history {
    min-width: 920px;
}

.dash-table th {
    padding: 11px 12px;

    border-bottom: 1px solid #dfe4e8;

    background: #f5f7f8;
    color: #5d6268;

    text-align: left;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;

    white-space: nowrap;
}

.dash-table td {
    padding: 12px;

    border-bottom: 1px solid #edf0f2;

    color: #303337;

    vertical-align: middle;

    font-size: 13px;
}

.dash-table tbody tr:last-child td {
    border-bottom: 0;
}

.dash-table tbody tr:hover td {
    background: #fbfcfd;
}

.dash-col-action {
    width: 1%;
}

.dash-actions-cell {
    white-space: nowrap;
}

.dash-event-name {
    color: #202124;
}

.dash-cell-meta {
    margin-top: 3px;

    font-size: 11px;

    color: #6a6d72;
}

.dash-pagination {
    margin-top: 18px;
}


/*
|-------------------------------------------------------------------------------
| 7.3 DASHBOARD — IDENTIFICADORES E ESTADOS
|-------------------------------------------------------------------------------
*/

.dash-request-id,
.dash-code {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 5px;

    background: #edf2ff;
    color: #2859ad;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;

    white-space: nowrap;
}

.dash-status-draft {
    background: #fff4cc;
    color: #745900;
}

.dash-status-awaiting {
    background: #ffedd6;
    color: #8b4b00;
}

.dash-status-submitted {
    background: #e2f3e6;
    color: #236437;
}

.dash-status-review {
    background: #e8eefc;
    color: #2859ad;
}

.dash-status-info,
.dash-status-information {
    background: #fff1df;
    color: #8b5b1e;
}

.dash-status-accepted {
    background: #daf2df;
    color: #216937;
}

.dash-status-expired {
    border-color: #efc5c5;

    background: #fde8e8;
    color: #a12626;
}

.dash-status-default,
.dash-status-neutral {
    background: #edf0f2;
    color: #4d5962;
}


/*
|-------------------------------------------------------------------------------
| 7.4 DASHBOARD — DISCIPLINAS
|-------------------------------------------------------------------------------
*/

.dash-discipline {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 5px;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.dash-discipline-road { background: #347de9; }
.dash-discipline-mtb { background: #30b8aa; }
.dash-discipline-bmx { background: #f47721; }
.dash-discipline-gravel { background: #b87b42; }
.dash-discipline-other { background: #66727d; }


/*
|-------------------------------------------------------------------------------
| 7.5 DASHBOARD — BOTÕES
|-------------------------------------------------------------------------------
*/

.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    border: 0;
    border-radius: 6px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;
}

.dash-btn-primary {
    background: #347de9;
    color: #fff;
}

.dash-btn-primary:hover {
    background: #2869ca;
}

.dash-btn-muted {
    background: #eef0f2;
    color: #333;
}

.dash-btn-muted:hover {
    background: #dfe3e6;
}

.dash-btn-dark {
    background: #222;
    color: #fff;
}

.dash-btn-dark:hover {
    background: #000;
}

.dash-btn-danger {
    background: #fde8e8;
    color: #a12626;
}

.dash-btn-danger:hover {
    background: #f6d6d6;
}

.dash-btn-small {
    padding: 7px 10px;

    font-size: 12px;
}

.dash-inline-form {
    display: inline-block;

    margin-left: 4px;
}


/*
|-------------------------------------------------------------------------------
| 8. BACKOFFICE ACL
|-------------------------------------------------------------------------------
*/

/* Os filtros do admin têm apenas 4 campos + ações. */

.admin-dash-filters {
    grid-template-columns:
        minmax(290px, 1.7fr)
        repeat(3, minmax(150px, 1fr))
        auto;
}

.admin-filter-actions {
    justify-content: flex-end;
}

.admin-submissions-table {
    min-width: 1180px;
}

.admin-organizer-name {
    display: block;

    font-weight: 600;

    color: #303337;
}

/* Resumo do backoffice — disponível para utilização no dashboard. */

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-summary-card {
    min-height: 92px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid #e2e6e9;
    border-radius: 8px;

    background: #f8f9fa;
}

.admin-summary-label {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;

    color: #6a6d72;
}

.admin-summary-value {
    font-size: 27px;
    font-weight: 700;
    line-height: 1;

    color: #202124;
}


/*
|-------------------------------------------------------------------------------
| 9. LOGIN
|-------------------------------------------------------------------------------
*/

.login-page {
    min-height: calc(100vh - 70px);
    padding: 48px 20px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            rgba(15, 28, 45, .45),
            rgba(15, 28, 45, .45)
        ),
        url('https://aclx.ovh/ACL_site_v4.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-card {
    width: 100%;
    max-width: 440px;

    padding: 38px 42px;

    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 4px;

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, .18),
        0 18px 50px rgba(0, 0, 0, .16);

    backdrop-filter: blur(2px);
}

.login-logo {
    margin-bottom: 12px;
}

.login-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 150px;
    max-height: 62px;
}

.login-brand {
    margin-bottom: 26px;

    color: #5f6368;

    font-size: 13px;
    font-weight: 600;
}

.login-title {
    margin: 0 0 10px;

    color: #202124;

    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
}

.login-description {
    margin: 0 0 28px;

    color: #5f6368;

    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    margin: 0;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #34373b;

    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 46px;

    padding: 10px 12px;

    border: 0;
    border-bottom: 1px solid #777;
    border-radius: 0;

    background: #fff;

    font-size: 15px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.login-field input:focus {
    outline: none;

    border-bottom: 2px solid #347de9;

    box-shadow: none;
}

.login-field input::placeholder {
    color: #8a8d91;
}

.login-help {
    margin: -5px 0 24px;

    color: #686c70;

    font-size: 12px;
    line-height: 1.5;
}

.login-submit {
    display: block;

    min-width: 110px;

    margin-left: auto;
    padding: 11px 24px;

    border: 0;
    border-radius: 2px;

    background: #347de9;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.login-submit:hover {
    background: #2869ca;
}

.login-errors {
    margin-bottom: 20px;
    padding: 12px 14px;

    border-left: 4px solid #c62828;

    background: #fdeaea;
    color: #8c2424;

    font-size: 13px;
    line-height: 1.5;
}

.login-status {
    margin-bottom: 20px;
    padding: 12px 14px;

    border-left: 4px solid #2e7d32;

    background: #eaf6ec;
    color: #276431;

    font-size: 13px;
}

.login-security {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #e5e7e9;

    color: #666;

    font-size: 12px;
    line-height: 1.5;
}

.login-security strong {
    display: block;

    margin-bottom: 4px;

    color: #3c4043;
}

.login-security p {
    margin: 0;
}

.login-page + .acl-footer {
    background: rgba(255, 255, 255, .92);
}


/*
|-------------------------------------------------------------------------------
| 9.1 OTP
|-------------------------------------------------------------------------------
*/

.otp-field input {
    text-align: center;

    font-size: 25px;
    font-weight: 600;
    letter-spacing: .30em;
    font-variant-numeric: tabular-nums;
}

.otp-field input::placeholder {
    letter-spacing: .30em;
}

.otp-actions {
    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.otp-back {
    color: #2859ad;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.otp-back:hover {
    text-decoration: underline;
}

.otp-actions .login-submit {
    margin-left: auto;
}


/*
|-------------------------------------------------------------------------------
| 10. RESPONSIVE
|-------------------------------------------------------------------------------
*/

@media (max-width: 1200px) {

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

    .dash-filter-search {
        grid-column: span 2;
    }

    .admin-filter-actions {
        justify-content: flex-start;
    }
}


@media (max-width: 900px) {

    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .dash-shell {
        width: min(100% - 24px, 1380px);

        margin-top: 22px;
    }

    .dash-hero,
    .dash-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-filters,
    .admin-dash-filters {
        grid-template-columns: 1fr 1fr;
    }

    .dash-filter-search {
        grid-column: 1 / -1;
    }

    .dash-filter-action {
        grid-column: 1 / -1;
    }

    .dash-filter-action .dash-btn,
    .dash-panel-header .dash-btn,
    .dash-hero .dash-btn {
        width: 100%;
    }

    .dash-panel {
        padding: 18px;
    }
}


@media (max-width: 720px) {

    .acl-header-inner {
        padding: 10px 15px;

        flex-wrap: wrap;
        gap: 10px;
    }

    .acl-logo {
        max-width: 125px;
        max-height: 44px;
    }

    .acl-header-title {
        font-size: 15px;
    }

    .acl-header-subtitle {
        font-size: 11px;
    }

    .acl-header-organizer {
        flex-direction: column;
        gap: 3px;
    }

    .acl-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .acl-header-actions a,
    .acl-header-actions form,
    .acl-header-actions button,
    .acl-back-button,
    .acl-header-logout {
        width: 100%;
    }

    .acl-back-button {
        text-align: center;
    }

    .fee-breakdown-row,
    .fee-breakdown-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .payment-reference-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .login-page {
        min-height: calc(100vh - 60px);

        padding: 24px 14px;

        background-attachment: scroll;
        background-position: center;
    }

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

    .login-logo img {
        max-width: 130px;
    }

    .login-title {
        font-size: 23px;
    }

    .login-submit {
        width: 100%;
    }

    .otp-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .otp-actions .login-submit {
        width: 100%;
        margin-left: 0;
    }

    .otp-back {
        text-align: center;
    }
}


@media (max-width: 520px) {

    .dash-filters,
    .admin-dash-filters {
        grid-template-columns: 1fr;
    }

    .dash-filter-search,
    .dash-filter-action {
        grid-column: auto;
    }

    .dash-title {
        font-size: 23px;
    }

    .dash-meta {
        flex-direction: column;
        gap: 4px;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — DETALHE DO BOLETIM
|--------------------------------------------------------------------------
*/

.admin-detail-shell {
    padding-bottom: 24px;
}


/*
|--------------------------------------------------------------------------
| Cabeçalho do pedido
|--------------------------------------------------------------------------
*/

.admin-detail-hero {
    padding-top: 20px;
    padding-bottom: 20px;
}

.admin-back-link {
    display: inline-block;

    margin-bottom: 14px;

    color: #2859ad;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.admin-back-link:hover {
    text-decoration: underline;
}

.admin-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-detail-title {
    margin: 0;

    color: #202124;

    font-size: 24px;
    line-height: 1.25;
}

.admin-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 14px;

    margin-top: 10px;

    color: #6a6d72;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Grelhas de informação
|--------------------------------------------------------------------------
*/

.admin-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.admin-detail-item {
    min-width: 0;

    padding: 14px;

    border: 1px solid #e5e8eb;
    border-radius: 8px;

    background: #f8f9fa;
}

.admin-detail-item strong {
    display: block;

    overflow-wrap: anywhere;
}

.admin-detail-item small {
    display: block;

    margin-top: 4px;

    color: #74787e;

    font-size: 11px;
}

.admin-detail-label {
    display: block;

    margin-bottom: 5px;

    color: #6a6d72;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.admin-detail-block {
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #edf0f2;
}

.admin-detail-text {
    white-space: pre-wrap;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Categorias
|--------------------------------------------------------------------------
*/

.admin-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-category-pill {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: #eef0f2;

    color: #4d555c;

    font-size: 11px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Duas colunas
|--------------------------------------------------------------------------
*/

.admin-detail-two-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.admin-detail-stack {
    display: grid;
    gap: 16px;
}


/*
|--------------------------------------------------------------------------
| Pagamento
|--------------------------------------------------------------------------
*/

.admin-payment-summary {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;
}

.admin-payment-summary > div,
.admin-payment-reference > div {
    padding: 14px;

    border: 1px solid #e5e8eb;
    border-radius: 8px;

    background: #f8f9fa;
}

.admin-payment-total {
    font-size: 18px;
}

.admin-payment-reference {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;

    margin-top: 14px;
}


/*
|--------------------------------------------------------------------------
| Snapshot
|--------------------------------------------------------------------------
*/

.admin-snapshot-summary {
    display: grid;

    grid-template-columns:
        120px
        180px
        minmax(0, 1fr);

    gap: 14px;
}

.admin-snapshot-summary > div {
    padding: 14px;

    border: 1px solid #e5e8eb;
    border-radius: 8px;

    background: #f8f9fa;
}

.admin-snapshot-hash code {
    display: block;

    overflow-wrap: anywhere;

    font-size: 11px;
}

.admin-details-box {
    margin-top: 16px;

    border: 1px solid #e2e6e9;
    border-radius: 8px;

    background: #fff;
}

.admin-details-box summary {
    padding: 13px 15px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.admin-json-view {
    margin: 0;

    padding: 16px;

    overflow-x: auto;

    border-top: 1px solid #e5e8eb;

    background: #f7f8f9;

    font-size: 11px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Histórico
|--------------------------------------------------------------------------
*/

.admin-history-table {
    min-width: 1050px;
}


/*
|--------------------------------------------------------------------------
| Auditoria
|--------------------------------------------------------------------------
*/

.admin-audit-list {
    display: grid;
    gap: 10px;
}

.admin-audit-entry {
    border: 1px solid #e2e6e9;
    border-radius: 8px;

    background: #fff;
}

.admin-audit-entry summary {
    padding: 13px 15px;

    cursor: pointer;

    list-style-position: inside;
}

.admin-audit-meta {
    margin-left: 8px;

    color: #74787e;

    font-size: 11px;
    font-weight: 400;
}

.admin-audit-content {
    padding: 16px;

    border-top: 1px solid #edf0f2;
}

.admin-audit-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 16px;
}

.admin-audit-json {
    margin-top: 14px;
}

.admin-audit-json strong {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
}

.admin-audit-json pre {
    margin: 0;

    padding: 14px;

    overflow-x: auto;

    border-radius: 6px;

    background: #f7f8f9;

    font-size: 11px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Responsive — detalhe do backoffice
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .admin-detail-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-payment-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .admin-payment-reference {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .admin-audit-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .admin-detail-title-row {
        flex-direction: column;
    }

    .admin-detail-grid,
    .admin-detail-two-columns,
    .admin-payment-summary,
    .admin-payment-reference,
    .admin-snapshot-summary,
    .admin-audit-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — WORKFLOW ADMINISTRATIVO
|--------------------------------------------------------------------------
*/

.admin-workflow-panel {
    border-top: 3px solid #347de9;
}

.admin-workflow-message {
    margin-bottom: 16px;
    padding: 14px 16px;

    border-left: 4px solid #347de9;
    border-radius: 6px;

    background: #eef5ff;

    color: #454b51;

    font-size: 13px;
    line-height: 1.5;
}

.admin-workflow-warning {
    border-left-color: #d99522;

    background: #fff6e6;
}

.admin-workflow-success {
    border-left-color: #2f8a4c;

    background: #eaf7ed;
}

.admin-workflow-actions {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(260px, 1fr);

    gap: 20px;
}

.admin-workflow-form {
    padding: 18px;

    border: 1px solid #e3e7ea;
    border-radius: 8px;

    background: #f8f9fa;
}

.admin-workflow-form textarea {
    min-height: 110px;

    margin-top: 4px;
}

.admin-workflow-buttons {
    display: flex;
    justify-content: flex-end;

    margin-top: 12px;
}

.admin-workflow-accept {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 18px;

    border: 1px solid #cfe6d5;
    border-radius: 8px;

    background: #f1f9f3;
}

.admin-workflow-accept strong {
    color: #245f34;
}

.admin-workflow-accept p {
    margin: 6px 0 18px;

    color: #68706b;

    font-size: 12px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVE WORKFLOW
|--------------------------------------------------------------------------
*/

@media (max-width: 800px) {

    .admin-workflow-actions {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — Estado Submetido
|--------------------------------------------------------------------------
|
| No organizador, "Submetido" continua verde.
| No Backoffice, "Submetido" aparece amarelo para indicar
| que o pedido foi recebido mas ainda não entrou em análise.
|
*/

.admin-status-submitted {
    background: #fff4cc;
    color: #745900;
    border: 1px solid #eadb9a;
}

/*
|--------------------------------------------------------------------------
| ORGANIZADOR — REVISÃO DE BOLETIM
|--------------------------------------------------------------------------
*/

.organizer-review-shell {
    padding-bottom: 24px;
}

.organizer-review-hero {
    padding-top: 20px;
    padding-bottom: 20px;
}

.organizer-review-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.organizer-review-title {
    margin: 0;

    font-size: 24px;
    line-height: 1.25;

    color: #202124;
}

.organizer-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px 14px;

    margin-top: 10px;

    color: #6a6d72;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Estado do pedido
|--------------------------------------------------------------------------
*/

.organizer-review-state {
    padding: 16px 18px;

    border-left: 4px solid #66727d;
    border-radius: 7px;

    background: #f7f8f9;
}

.organizer-review-state strong {
    display: block;

    margin-bottom: 5px;
}

.organizer-review-state p {
    margin: 0;

    color: #5d6268;

    font-size: 13px;
    line-height: 1.5;
}

.organizer-review-state-submitted {
    border-left-color: #2f8a4c;

    background: #edf8f0;
}

.organizer-review-state-review {
    border-left-color: #347de9;

    background: #eef5ff;
}

.organizer-review-state-warning {
    border-left-color: #d99522;

    background: #fff6e6;
}

.organizer-review-state-success {
    border-left-color: #2f8a4c;

    background: #eaf7ed;
}


/*
|--------------------------------------------------------------------------
| Informação do boletim
|--------------------------------------------------------------------------
*/

.organizer-review-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.organizer-review-item {
    min-width: 0;

    padding: 14px;

    border: 1px solid #e5e8eb;
    border-radius: 8px;

    background: #f8f9fa;
}

.organizer-review-item strong {
    display: block;

    overflow-wrap: anywhere;
}

.organizer-review-label {
    display: block;

    margin-bottom: 5px;

    color: #6a6d72;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.organizer-review-block {
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #edf0f2;
}

.organizer-review-text {
    white-space: pre-wrap;

    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| ORGANIZADOR — ACOMPANHAMENTO ACL
|--------------------------------------------------------------------------
|
| Área de comunicação entre a ACL e o organizador.
|
| Objetivos:
| - mensagens compactas;
| - altura determinada apenas pelo conteúdo;
| - ACL alinhada à esquerda;
| - organizador alinhado à direita;
| - sem espaços verticais provocados pelo whitespace do Blade;
| - comportamento responsivo.
|
*/


/*
|--------------------------------------------------------------------------
| Conversa
|--------------------------------------------------------------------------
*/

.organizer-conversation {
    width: 100%;

    display: flex;
    flex-direction: column;

    /*
    | Distância real entre mensagens.
    | Não aumentar este valor para compensar conteúdo.
    */
    gap: 10px;

    margin: 8px 0 0;
    padding: 0;

    /*
    | Muito importante:
    | a conversa nunca deve distribuir mensagens pela altura disponível.
    */
    justify-content: flex-start;
    align-items: stretch;

    height: auto;
    min-height: 0;
}


/*
|--------------------------------------------------------------------------
| Balão base
|--------------------------------------------------------------------------
*/

.organizer-message {
    /*
    | O balão cresce apenas em função do conteúdo.
    */
    width: 58%;
    max-width: 70%;
    min-width: 0;

    height: auto;
    min-height: 0;
    max-height: none;

    margin: 0;

    /*
    | Padding compacto para evitar caixas altas.
    */
    padding: 9px 12px;

    display: block;

    border: 1px solid #dfe4e8;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, .025);

    /*
    | Impede qualquer comportamento estranho
    | provocado por elementos filhos.
    */
    overflow: visible;
}


/*
|--------------------------------------------------------------------------
| Mensagem da ACL
|--------------------------------------------------------------------------
*/

.organizer-message-acl {
    align-self: flex-start;

    margin-left: 0;
    margin-right: auto;

    border-left: 4px solid #347de9;

    background: #f4f8ff;
}


/*
|--------------------------------------------------------------------------
| Mensagem do organizador
|--------------------------------------------------------------------------
*/

.organizer-message-user {
    align-self: flex-end;

    margin-left: auto;
    margin-right: 0;

    border-right: 4px solid #2f8a4c;

    background: #f1f8f3;
}


/*
|--------------------------------------------------------------------------
| Cabeçalho da mensagem
|--------------------------------------------------------------------------
|
| Nome do autor à esquerda.
| Data/hora à direita.
|
*/

.organizer-message-header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    /*
    | Reduz bastante a altura do balão.
    */
    margin: 0 0 5px;
    padding: 0;

    line-height: 1.15;
}

.organizer-message-header strong {
    margin: 0;
    padding: 0;

    color: #30343a;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.15;
}

.organizer-message-header span {
    margin: 0;
    padding: 0;

    color: #81868c;

    font-size: 9px;
    font-weight: 400;

    line-height: 1.15;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Cor do autor — ACL
|--------------------------------------------------------------------------
*/

.organizer-message-acl
.organizer-message-header strong {
    color: #2859ad;
}


/*
|--------------------------------------------------------------------------
| Cor do autor — Organizador
|--------------------------------------------------------------------------
*/

.organizer-message-user
.organizer-message-header strong {
    color: #28713b;
}


/*
|--------------------------------------------------------------------------
| Corpo da mensagem
|--------------------------------------------------------------------------
|
| IMPORTANTE:
|
| Não utilizar "white-space: pre-wrap".
|
| O Blade contém espaços e linhas de indentação à volta de:
|
|     {{ $message->message }}
|
| Com pre-wrap esses espaços transformam-se em altura visível.
|
| "normal" colapsa o whitespace do HTML e elimina o problema.
|
*/

.organizer-message-body {
    display: block;

    width: 100%;

    height: auto;
    min-height: 0;
    max-height: none;

    margin: 0;
    padding: 0;

    color: #34383d;

    font-size: 11px;
    line-height: 1.35;

    /*
    | Esta é uma das correções principais.
    */
    white-space: normal;

    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
}


/*
|--------------------------------------------------------------------------
| Remover margens internas inesperadas
|--------------------------------------------------------------------------
|
| Proteção caso no futuro a mensagem contenha <p>, div, etc.
|
*/

.organizer-message-body p,
.organizer-message-body div {
    margin: 0;
    padding: 0;
}

.organizer-message p {
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Caixa de resposta
|--------------------------------------------------------------------------
*/

.organizer-reply-box {
    width: 100%;
    max-width: 900px;

    height: auto;
    min-height: 0;

    margin: 22px auto 0;
    padding: 18px 20px;

    border: 1px solid #dfe4e8;
    border-radius: 9px;

    background: #f8f9fa;
}


/*
|--------------------------------------------------------------------------
| Título da caixa de resposta
|--------------------------------------------------------------------------
*/

.organizer-reply-box h3 {
    margin: 0 0 5px;
    padding: 0;

    color: #202124;

    font-size: 16px;
    line-height: 1.25;
}

.organizer-reply-box > p {
    margin: 0 0 16px;
    padding: 0;

    color: #6a6d72;

    font-size: 12px;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Campo da resposta
|--------------------------------------------------------------------------
*/

.organizer-reply-box .field {
    margin: 0 0 13px;
}

.organizer-reply-box .field-label {
    margin-bottom: 6px;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Textarea
|--------------------------------------------------------------------------
*/

.organizer-reply-box textarea {
    width: 100%;

    /*
    | Altura inicial controlada.
    */
    height: 90px;
    min-height: 90px;
    max-height: 220px;

    padding: 10px 11px;

    border: 1px solid #ccd2d8;
    border-radius: 7px;

    background: #fff;
    color: #303337;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.45;

    resize: vertical;
}

.organizer-reply-box textarea:focus {
    outline: none;

    border-color: #347de9;

    box-shadow:
        0 0 0 3px
        rgba(52, 125, 233, .10);
}


/*
|--------------------------------------------------------------------------
| Botão da resposta
|--------------------------------------------------------------------------
*/

.organizer-reply-actions {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 0;
}

.organizer-reply-actions .dash-btn {
    min-width: 125px;

    padding: 8px 13px;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Painel de acompanhamento
|--------------------------------------------------------------------------
*/

.organizer-review-shell .dash-panel:last-child {
    padding-top: 22px;
}

.organizer-review-shell
.dash-panel:last-child
.dash-panel-header {
    margin-bottom: 14px;
}


/*
|--------------------------------------------------------------------------
| Responsive — tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .organizer-message {
        max-width: 85%;
        min-width: 70%;
    }

    .organizer-reply-box {
        max-width: none;
    }
}


/*
|--------------------------------------------------------------------------
| Responsive — telemóvel
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .organizer-conversation {
        gap: 8px;
    }

    .organizer-message {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 9px 11px;
    }

    .organizer-message-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 2px;

        margin-bottom: 5px;
    }

    .organizer-message-header span {
        white-space: normal;
    }

    .organizer-reply-box {
        padding: 15px;
    }

    .organizer-reply-actions {
        display: block;
    }

    .organizer-reply-actions .dash-btn {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| ORGANIZADOR — PAINEL DE ACOMPANHAMENTO
|--------------------------------------------------------------------------
*/

.organizer-review-shell .dash-panel:last-child {
    padding-top: 22px;
}

.organizer-review-shell .dash-panel:last-child .dash-panel-header {
    margin-bottom: 16px;
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — COMUNICAÇÕES ACL / ORGANIZADOR
|--------------------------------------------------------------------------
*/

.admin-conversation {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 6px;
}


/*
|--------------------------------------------------------------------------
| Mensagem base
|--------------------------------------------------------------------------
*/

.admin-message {
    width: 58%;
    max-width: 58%;
    min-width: 0;

    height: auto;
    min-height: 0;

    margin: 0;
    padding: 9px 12px;

    border: 1px solid #dfe4e8;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, .025);
}


/*
|--------------------------------------------------------------------------
| Mensagem da ACL
|--------------------------------------------------------------------------
*/

.admin-message-acl {
    align-self: flex-start;

    margin-left: 0;
    margin-right: auto;

    border-left: 4px solid #347de9;

    background: #f4f8ff;
}


/*
|--------------------------------------------------------------------------
| Mensagem do organizador
|--------------------------------------------------------------------------
*/

.admin-message-organizer {
    align-self: flex-end;

    margin-left: auto;
    margin-right: 0;

    border-right: 4px solid #2f8a4c;

    background: #f1f8f3;
}


/*
|--------------------------------------------------------------------------
| Cabeçalho da mensagem
|--------------------------------------------------------------------------
*/

.admin-message-header {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin: 0 0 5px;
    padding: 0;
}

.admin-message-header > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px 9px;
}

.admin-message-header strong {
    margin: 0;

    color: #30343a;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.15;
}


/*
|--------------------------------------------------------------------------
| Identificação ACL
|--------------------------------------------------------------------------
*/

.admin-message-acl
.admin-message-header strong {
    color: #2859ad;
}


/*
|--------------------------------------------------------------------------
| Identificação organizador
|--------------------------------------------------------------------------
*/

.admin-message-organizer
.admin-message-header strong {
    color: #28713b;
}


/*
|--------------------------------------------------------------------------
| Tipo da mensagem
|--------------------------------------------------------------------------
*/

.admin-message-type {
    display: inline-flex;

    padding: 2px 6px;

    border-radius: 999px;

    background: rgba(0, 0, 0, .05);

    color: #697078;

    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| Data
|--------------------------------------------------------------------------
*/

.admin-message-date {
    flex-shrink: 0;

    color: #81868c;

    font-size: 9px;
    line-height: 1.15;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Corpo da mensagem
|--------------------------------------------------------------------------
*/

.admin-message-body {
    display: block;

    width: 100%;

    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    color: #34383d;

    font-size: 11px;
    line-height: 1.35;

    white-space: normal;

    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Nota interna
|--------------------------------------------------------------------------
*/

.admin-message-internal {
    margin-top: 7px;
    padding-top: 6px;

    border-top: 1px dashed #d6dbe0;

    color: #8a5b1a;

    font-size: 9px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .admin-message {
        width: 72%;
        max-width: 72%;
    }
}

@media (max-width: 700px) {

    .admin-message {
        width: 85%;
        max-width: 85%;
    }
}

@media (max-width: 520px) {

    .admin-message {
        width: 100%;
        max-width: 100%;
    }

    .admin-message-header {
        flex-direction: column;

        gap: 4px;
    }

    .admin-message-date {
        white-space: normal;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — COMUNICAÇÕES
| Ajuste de tipografia
|--------------------------------------------------------------------------
*/

.admin-message-header strong {
    font-size: 11px;
}

.admin-message-type {
    font-size: 9px;
}

.admin-message-date {
    font-size: 10px;
}

.admin-message-body {
    font-size: 12px;
    line-height: 1.4;
}

.admin-message-internal {
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| ORGANIZADOR — COMUNICAÇÕES
| Ajuste de tipografia
|--------------------------------------------------------------------------
*/

.organizer-message-header strong {
    font-size: 11px;
}

.organizer-message-acl {
    font-size: 11px;
}

.organizer-message-body {
    font-size: 12px;
    line-height: 1.4;;
}

/* ==========================================================================
   Backoffice — Vista do organizador
   ========================================================================== */

.admin-organizer-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    padding: 0 12px;

    border-radius: 999px;

    background: #eef1f4;

    color: #333;

    font-size: 14px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Dados do organizador
|--------------------------------------------------------------------------
*/

.admin-organizer-data-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    overflow: hidden;

    border: 1px solid #e1e5e9;
    border-radius: 8px;

    background: #e1e5e9;
}


.admin-organizer-data-item {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 7px;

    padding: 18px 20px;

    background: #fff;
}


.admin-organizer-data-label {
    color: #6b7280;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .04em;
}


.admin-organizer-data-item strong {
    overflow-wrap: anywhere;

    color: #202124;

    font-size: 15px;
}


/*
|--------------------------------------------------------------------------
| Link do organizador no dashboard
|--------------------------------------------------------------------------
*/

a.admin-organizer-name {
    color: inherit;

    font-weight: 700;

    text-decoration: none;
}


a.admin-organizer-name:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Responsivo
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .admin-organizer-data-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .admin-organizer-data-grid {
        grid-template-columns: 1fr;
    }

}

.admin-organizer-name {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.admin-organizer-name:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Paginação Laravel
|--------------------------------------------------------------------------
|
| O paginator padrão do Laravel utiliza ícones SVG para os botões
| "Anterior" e "Seguinte".
|
| Como esta aplicação não utiliza Tailwind CSS, as classes de dimensão
| esperadas pelo componente padrão (w-5, h-5, etc.) não existem.
|
| Sem estas regras os SVG podem assumir dimensões muito grandes e
| desformatar completamente a página.
|
| Estas regras limitam os ícones e normalizam a apresentação da paginação
| em todo o Backoffice e portal do organizador.
|
*/

nav[role="navigation"] svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block;
    vertical-align: middle;
}


/*
|--------------------------------------------------------------------------
| Ligações e botões da paginação
|--------------------------------------------------------------------------
*/

nav[role="navigation"] a,
nav[role="navigation"] span {
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Contentores dos botões Anterior / Seguinte
|--------------------------------------------------------------------------
|
| Evita que qualquer SVG ou elemento interno force dimensões anormais.
|
*/

nav[role="navigation"] a[rel="prev"],
nav[role="navigation"] a[rel="next"],
nav[role="navigation"] span[aria-disabled="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Paginação das tabelas ACL
|--------------------------------------------------------------------------
*/

.dash-pagination svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/*
|--------------------------------------------------------------------------
| Paginação ACL
|--------------------------------------------------------------------------
|
| Paginação própria do sistema.
|
| Não depende das classes Tailwind utilizadas pelo paginator padrão
| do Laravel, evitando setas SVG gigantes e textos não traduzidos.
|
*/

.dash-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}


.dash-pagination-summary {
    font-size: 13px;
    color: #667085;
}


.dash-pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
}


.dash-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;
    padding: 0 9px;

    border: 1px solid #d9dee5;
    border-radius: 6px;

    background: #ffffff;
    color: #344054;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    box-sizing: border-box;
}


.dash-pagination-btn:hover {
    background: #f5f7f9;
    border-color: #b9c1cc;
}


.dash-pagination-btn.is-current {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}


.dash-pagination-btn.is-disabled {
    opacity: .4;
    cursor: default;
}


.dash-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 34px;

    color: #667085;
}


/*
|--------------------------------------------------------------------------
| Paginação — ecrãs pequenos
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .dash-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .dash-pagination-links {
        flex-wrap: wrap;
    }
}

/*
|--------------------------------------------------------------------------
| Espaço após estado positivo no review do organizador
|--------------------------------------------------------------------------
|
| Evita que o bloco verde fique colado ao resumo financeiro apresentado
| imediatamente a seguir.
|
*/

.organizer-review-state.organizer-review-state-success {
    margin-bottom: 16px;
}

/* ================================================================
   CAMPEONATOS REGIONAIS - DASHBOARD ORGANIZADOR
   ================================================================ */

.cr-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cr-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
}

.cr-subtitle {
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.cr-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cr-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 13px;
}

.cr-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.cr-table tbody td {
    padding: 12px;
    color: #374151;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f2;
}

.cr-table tbody tr:last-child td {
    border-bottom: none;
}

.cr-table tbody tr:hover {
    background: #fafafa;
}

.cr-name {
    font-weight: 600;
    color: #1f2937;
}

.cr-action {
    width: 180px;
    text-align: right !important;
    white-space: nowrap;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.cr-btn-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff !important;
}

.cr-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.cr-btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151 !important;
}

.cr-btn-secondary:hover {
    background: #f3f4f6;
}

.cr-btn-disabled {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.cr-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.cr-status-draft {
    background: #fef3c7;
    color: #92400e;
}

.cr-status-warning {
    background: #ffedd5;
    color: #9a3412;
}

.cr-status-info {
    background: #dbeafe;
    color: #1e40af;
}

.cr-status-success {
    background: #dcfce7;
    color: #166534;
}

.cr-status-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.cr-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.cr-my-applications {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cr-my-applications-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.cr-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .cr-card {
        padding: 15px;
    }

    .cr-header {
        display: block;
    }

    .cr-table {
        min-width: 760px;
    }
}

/* Formulários usados nos botões das candidaturas */
.cr-action-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.cr-action-form button {
    font-family: inherit;
}

/* ================================================================
   CATEGORIAS FIXAS - CAMPEONATOS REGIONAIS
   ================================================================ */

.championship-category-option {
    cursor: default;
}

/*
|--------------------------------------------------------------------------
| Categorias que fazem parte do Campeonato
|--------------------------------------------------------------------------
*/

.championship-category-selected {
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Categorias que não fazem parte do Campeonato
|--------------------------------------------------------------------------
|
| Mantemos o mesmo componente visual do Step 1 normal, mas ligeiramente
| atenuado para deixar claro que não está selecionado.
|
*/

.championship-category-unselected {
    background: #f8fafc;
}

/*
|--------------------------------------------------------------------------
| Checkboxes bloqueadas
|--------------------------------------------------------------------------
|
| O browser normalmente reduz bastante a opacidade de um input disabled.
| Aqui mantemos boa legibilidade para ficar semelhante ao Step 1 normal.
|
*/

.championship-category-option input[type="checkbox"]:disabled {
    opacity: 1;
    cursor: default;
}

/*
|--------------------------------------------------------------------------
| Evitar efeito hover de campo editável
|--------------------------------------------------------------------------
*/

.championship-category-option:hover {
    background: inherit;
}

/* ================================================================
   REVISÃO - CAMPEONATOS REGIONAIS
   ================================================================ */

.review-value {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
}

.review-text {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.5;
    white-space: normal;
}

/* ================================================================
   ESTADOS — CANDIDATURAS A CAMPEONATOS REGIONAIS
   ================================================================ */

.cr-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}


/* Rascunho */
.cr-status-draft {
    background: #f3f4f6;
    color: #374151;
}


/* A aguardar pagamento / informação / aceitação */
.cr-status-warning {
    background: #fef3c7;
    color: #92400e;
}


/* Submetida / em análise / aprovada / avaliada */
.cr-status-info {
    background: #dbeafe;
    color: #1e40af;
}


/* Selecionada / atribuída */
.cr-status-success {
    background: #dcfce7;
    color: #166534;
}


/* Rejeitada / cancelada */
.cr-status-danger {
    background: #fee2e2;
    color: #991b1b;
}


/* Não selecionada / retirada / caducada */
.cr-status-muted {
    background: #e5e7eb;
    color: #4b5563;
}

.actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .actions-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .actions-group .button,
    .actions-group button {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| CAMPEONATOS REGIONAIS — PAGAMENTO DA CANDIDATURA
|--------------------------------------------------------------------------
|
| Página de pagamento das candidaturas aos Campeonatos Regionais.
|
| Utiliza os componentes globais já existentes:
|
| - .container
| - .card
| - .fee-box
| - .fee-breakdown
| - .payment-option
| - .payment-reference
| - .actions
|
| e acrescenta apenas os ajustes específicos deste fluxo.
|
*/


/*
|--------------------------------------------------------------------------
| Estrutura geral
|--------------------------------------------------------------------------
*/

.cr-payment-shell {
    padding-bottom: 25px;
}


/*
|--------------------------------------------------------------------------
| Cabeçalho
|--------------------------------------------------------------------------
*/

.cr-payment-hero {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.cr-payment-eyebrow {
    margin-bottom: 6px;

    color: #6b7280;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.cr-payment-title {
    margin: 0;

    color: #202124;

    font-size: 28px;
    line-height: 1.2;
}

.cr-payment-meta {
    margin-top: 12px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


/*
|--------------------------------------------------------------------------
| Informação da candidatura
|--------------------------------------------------------------------------
*/

.cr-payment-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.cr-payment-info-item {
    min-width: 0;

    padding: 15px 16px;

    border: 1px solid #e2e6ea;
    border-radius: 8px;

    background: #f8f9fa;
}

.cr-payment-info-label {
    display: block;

    margin-bottom: 6px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .02em;
    text-transform: uppercase;
}

.cr-payment-info-item strong {
    display: block;

    color: #202124;

    font-size: 14px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Total destacado
|--------------------------------------------------------------------------
*/

.cr-payment-total-box {
    margin-top: 0;

    border-color: #cfd8e3;

    background: #f4f7fb;
}

.cr-payment-total-box .fee-value {
    color: #1f2937;

    font-size: 32px;

    font-variant-numeric: tabular-nums;
}

.cr-payment-total-description {
    margin-top: 5px;

    color: #6b7280;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Introdução aos métodos de pagamento
|--------------------------------------------------------------------------
*/

.cr-payment-intro {
    margin: -3px 0 20px;

    color: #5f6368;

    font-size: 14px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Opções de pagamento
|--------------------------------------------------------------------------
*/

.cr-payment-option {
    width: 100%;

    margin-bottom: 12px;
    padding: 18px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.cr-payment-option:hover {
    border-color: #aeb8c3;

    background: #fafbfc;
}

.cr-payment-option-selected {
    border-color: #347de9;

    background: #f3f7ff;

    box-shadow:
        0 0 0 2px
        rgba(52, 125, 233, .08);
}

.cr-payment-option-radio {
    padding-top: 2px;

    flex-shrink: 0;
}

.cr-payment-option-radio input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: #347de9;
}

.cr-payment-option-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.cr-payment-option-content strong {
    color: #202124;

    font-size: 15px;
}

.cr-payment-option-content span {
    color: #444a50;

    font-size: 13px;
    line-height: 1.4;
}

.cr-payment-option-content small {
    color: #737980;

    font-size: 12px;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Campo MB WAY
|--------------------------------------------------------------------------
*/

.cr-mbway-phone {
    margin: 16px 0 0;
    padding: 18px;

    border: 1px solid #d9e2ee;
    border-radius: 8px;

    background: #f7faff;
}

.cr-mbway-phone .field {
    margin-bottom: 0;
}

.cr-mbway-phone input {
    max-width: 360px;
}


/*
|--------------------------------------------------------------------------
| Aviso antes de criar pagamento
|--------------------------------------------------------------------------
*/

.cr-payment-submit-warning {
    margin-top: 22px;
    padding: 15px 17px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    border-left: 4px solid #d99522;
    border-radius: 6px;

    background: #fff7e8;
}

.cr-payment-submit-warning strong {
    color: #754c00;

    font-size: 14px;
}

.cr-payment-submit-warning span {
    color: #665b45;

    font-size: 13px;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| MB WAY pendente
|--------------------------------------------------------------------------
*/

.cr-mbway-pending {
    padding: 20px;

    display: flex;
    align-items: flex-start;

    gap: 16px;

    border: 1px solid #cfe0f4;
    border-radius: 8px;

    background: #f2f7fd;
}

.cr-mbway-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: #202124;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
}

.cr-mbway-pending h3 {
    margin: 0 0 8px;

    font-size: 17px;
}

.cr-mbway-pending p {
    margin: 5px 0;

    font-size: 13px;
    line-height: 1.5;
}

.cr-payment-muted {
    color: #687078;
}


/*
|--------------------------------------------------------------------------
| Pagamento já existente
|--------------------------------------------------------------------------
*/

.cr-payment-existing-warning {
    margin-top: 18px;
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Informação final
|--------------------------------------------------------------------------
*/

.cr-payment-final-info p {
    margin: 8px 0;

    color: #4f565d;

    font-size: 13px;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 720px) {

    .cr-payment-title {
        font-size: 23px;
    }

    .cr-payment-info-grid {
        grid-template-columns: 1fr;
    }

    .cr-payment-total-box {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .cr-payment-option {
        padding: 15px;
    }

    .cr-mbway-phone input {
        max-width: none;
    }

    .cr-mbway-pending {
        flex-direction: column;
    }

    .cr-payment-shell .actions {
        align-items: stretch;
        flex-direction: column;

        gap: 10px;
    }

    .cr-payment-shell .actions .button,
    .cr-payment-shell .actions button {
        width: 100%;

        text-align: center;
    }
}

/* ==========================================================================
   BACKOFFICE — CAMPEONATOS REGIONAIS
   ========================================================================== */

.regional-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.regional-dashboard-kpi-card {
    display: block;
    margin: 0;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.regional-dashboard-kpi-card:hover {
    text-decoration: none;
}

.regional-dashboard-kpi-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
}

.regional-dashboard-kpi-value {
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.regional-dashboard-kpi-meta {
    margin-top: 10px;
    font-size: .88rem;
    color: #667085;
}

.regional-dashboard-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 16px;
    font-size: .92rem;
    color: #667085;
}

.regional-dashboard-summary strong {
    color: inherit;
}

.regional-applications-table td,
.regional-applications-table th {
    vertical-align: middle;
}

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

@media (max-width: 640px) {
    .regional-dashboard-kpi-grid {
        grid-template-columns:
            1fr;
    }
}

/* ==========================================================================
   BACKOFFICE — AVALIAÇÃO DE CANDIDATURAS A CAMPEONATOS REGIONAIS
   ========================================================================== */

.regional-evaluation-table {
    min-width: 980px;
}

.regional-evaluation-table th:nth-child(1) {
    min-width: 230px;
}

.regional-evaluation-table th:nth-child(2) {
    width: 90px;
}

.regional-evaluation-table th:nth-child(3) {
    width: 120px;
}

.regional-evaluation-table th:nth-child(4) {
    width: 140px;
}

.regional-evaluation-table th:nth-child(5) {
    min-width: 280px;
}

.regional-evaluation-score-input {
    width: 90px;
    max-width: 100%;
}

.regional-evaluation-comment {
    width: 100%;
    min-width: 240px;
    min-height: 84px;
    resize: vertical;
}

.regional-evaluation-summary {
    margin-top: 20px;
}

/*
|--------------------------------------------------------------------------
| Campeonatos Regionais — retirada de candidatura
|--------------------------------------------------------------------------
|
| Adicionar este bloco ao ficheiro principal:
|
| public/css/acl.css
|
| O Blade não contém estilos CSS específicos desta funcionalidade.
|
*/

.regional-withdraw-card {
    padding: 18px 20px;
    border: 1px solid #f0d5d5;
    border-radius: 10px;
    background: #fffafa;
}

.regional-withdraw-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.regional-withdraw-copy {
    min-width: 0;
}

.regional-withdraw-copy > strong {
    display: block;
}

.regional-withdraw-copy p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.5;
}

.regional-withdraw-warning {
    color: #b42318 !important;
    font-size: .86rem;
    font-weight: 600;
}

.regional-withdraw-trigger {
    flex: 0 0 auto;
}

.regional-withdraw-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0d5d5;
}

.regional-withdraw-form[hidden] {
    display: none !important;
}

.regional-withdraw-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
}

.regional-withdraw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 700px) {

    .regional-withdraw-content {
        flex-direction: column;
        align-items: stretch;
    }

    .regional-withdraw-trigger {
        width: 100%;
    }

    .regional-withdraw-trigger .dash-btn {
        width: 100%;
        justify-content: center;
    }

    .regional-withdraw-actions {
        flex-direction: column;
    }

    .regional-withdraw-actions .dash-btn {
        width: 100%;
        justify-content: center;
    }
}

/*
|--------------------------------------------------------------------------
| Campeonatos Regionais — Backoffice
|--------------------------------------------------------------------------
|
| Acrescentar este bloco ao ficheiro principal:
|
| public/css/acl.css
|
| Inclui:
| - cartões de aceitação;
| - entrada para retificação administrativa;
| - página de retificação administrativa.
|
*/


/*
|--------------------------------------------------------------------------
| Aceitação / novo prazo
|--------------------------------------------------------------------------
*/

.regional-acceptance-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
}

.regional-acceptance-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.regional-acceptance-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.regional-acceptance-card-header p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.5;
}

.regional-acceptance-step {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.regional-acceptance-form-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.regional-acceptance-field {
    flex: 1 1 320px;
    max-width: 420px;
}

.regional-acceptance-input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
}

.regional-acceptance-action {
    flex: 0 0 auto;
}

.regional-acceptance-help {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475467;
    font-size: .86rem;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Entrada para retificação administrativa
|--------------------------------------------------------------------------
*/

.regional-correction-entry {
    border-left: 4px solid #d0d5dd;
}

.regional-correction-entry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.regional-correction-entry-content h2 {
    margin: 0;
}

.regional-correction-entry-content p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Página de retificação
|--------------------------------------------------------------------------
*/

.regional-correction-shell {
    max-width: 1180px;
}

.regional-correction-form .dash-panel {
    margin-bottom: 20px;
}

.regional-correction-notice {
    padding: 16px 18px;
    border: 1px solid #b2ddff;
    border-radius: 10px;
    background: #eff8ff;
    color: #344054;
}

.regional-correction-notice strong {
    display: block;
    margin-bottom: 6px;
    color: #175cd3;
}

.regional-correction-notice p {
    margin: 6px 0 0;
    line-height: 1.55;
}

.regional-correction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.regional-correction-grid + .field,
.regional-correction-form .field + .field {
    margin-top: 18px;
}

.regional-correction-field-wide {
    grid-column: 1 / -1;
}

.regional-correction-form input,
.regional-correction-form textarea {
    width: 100%;
}

.regional-correction-form textarea {
    resize: vertical;
}

.regional-correction-reason-panel {
    border: 1px solid #b2ddff;
}

.regional-correction-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .regional-acceptance-card-header {
        flex-direction: column;
    }

    .regional-acceptance-form-row {
        align-items: stretch;
    }

    .regional-acceptance-field {
        max-width: none;
    }

    .regional-acceptance-action {
        width: 100%;
    }

    .regional-acceptance-action .dash-btn {
        width: 100%;
        justify-content: center;
    }

    .regional-correction-entry-content {
        flex-direction: column;
        align-items: stretch;
    }

    .regional-correction-entry-content .dash-btn {
        width: 100%;
        justify-content: center;
    }

    .regional-correction-grid {
        grid-template-columns: 1fr;
    }

    .regional-correction-field-wide {
        grid-column: auto;
    }

    .regional-correction-actions {
        flex-direction: column-reverse;
    }

    .regional-correction-actions .dash-btn {
        width: 100%;
        justify-content: center;
    }
}

/*
|--------------------------------------------------------------------------
| Campeonatos Regionais — subdashboard administrativo compacto
|--------------------------------------------------------------------------
|
| Acrescentar este bloco ao ficheiro principal:
|
| public/css/acl.css
|
*/

.regional-admin-index-shell {
    max-width: 1500px;
}

.regional-admin-index-hero {
    overflow: hidden;
}

.regional-admin-index-heading {
    width: 100%;
}

.regional-admin-index-eyebrow {
    margin: 14px 0 6px;
    color: #667085;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Visão global
|--------------------------------------------------------------------------
*/

.regional-overview-panel {
    padding-bottom: 20px;
}

.regional-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.regional-overview-stat {
    padding: 16px 18px;
    border-right: 1px solid #e4e7ec;
}

.regional-overview-stat:last-child {
    border-right: 0;
}

.regional-overview-stat span {
    display: block;
    color: #667085;
    font-size: .76rem;
    font-weight: 600;
}

.regional-overview-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 1.45rem;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Grupos por disciplina
|--------------------------------------------------------------------------
*/

.regional-championship-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.regional-championship-group {
    min-width: 0;
}

.regional-championship-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #d0d5dd;
}

.regional-championship-group-heading h3 {
    margin: 0;
    color: #344054;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.regional-championship-group-heading span {
    color: #98a2b3;
    font-size: .76rem;
}

.regional-championship-list {
    display: flex;
    flex-direction: column;
}


/*
|--------------------------------------------------------------------------
| Linha de Campeonato
|--------------------------------------------------------------------------
*/

.regional-championship-row {
    display: grid;
    grid-template-columns:
        minmax(300px, 1.45fr)
        minmax(300px, 1.1fr)
        minmax(210px, auto);
    gap: 24px;
    align-items: center;
    padding: 18px 2px;
    border-bottom: 1px solid #eaecf0;
}

.regional-championship-row:last-child {
    border-bottom: 0;
}

.regional-championship-row-active {
    background: #fff;
}

.regional-championship-row-empty {
    opacity: .72;
}

.regional-championship-row-empty:hover {
    opacity: 1;
}

.regional-championship-main {
    min-width: 0;
}

.regional-championship-code {
    margin-bottom: 4px;
    color: #667085;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.regional-championship-main h4 {
    margin: 0;
    color: #101828;
    font-size: .96rem;
    line-height: 1.35;
}

.regional-championship-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 5px;
    color: #98a2b3;
    font-size: .76rem;
}


/*
|--------------------------------------------------------------------------
| Processo / estado
|--------------------------------------------------------------------------
*/

.regional-championship-process {
    min-width: 0;
}

.regional-championship-activity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    min-height: 22px;
    color: #475467;
    font-size: .82rem;
}

.regional-championship-activity strong {
    color: #101828;
}

.regional-championship-separator {
    color: #d0d5dd;
    margin: 0 2px;
}

.regional-championship-no-activity {
    color: #98a2b3;
}

.regional-championship-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.regional-process-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2;
}

.regional-process-badge-success {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.regional-process-badge-warning {
    border-color: #fedf89;
    background: #fffaeb;
    color: #b54708;
}

.regional-process-badge-danger {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.regional-process-badge-neutral {
    border-color: #e4e7ec;
    background: #f9fafb;
    color: #667085;
}


/*
|--------------------------------------------------------------------------
| Ações
|--------------------------------------------------------------------------
*/

.regional-championship-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.regional-championship-actions .dash-btn {
    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .regional-championship-row {
        grid-template-columns:
            minmax(260px, 1.2fr)
            minmax(260px, 1fr);
    }

    .regional-championship-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 2px;
    }

}

@media (max-width: 760px) {

    .regional-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .regional-overview-stat:nth-child(2) {
        border-right: 0;
    }

    .regional-overview-stat:nth-child(-n+2) {
        border-bottom: 1px solid #e4e7ec;
    }

    .regional-championship-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .regional-championship-actions {
        grid-column: auto;
    }

}

@media (max-width: 480px) {

    .regional-overview-stats {
        grid-template-columns: 1fr;
    }

    .regional-overview-stat {
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
    }

    .regional-overview-stat:last-child {
        border-bottom: 0;
    }

    .regional-championship-actions {
        flex-direction: column;
    }

    .regional-championship-actions .dash-btn {
        width: 100%;
        justify-content: center;
    }

}

/* ==========================================================================
   ATRIBUIÇÃO MASSIVA DE ISENÇÕES
   ========================================================================== */

.bulk-fee-panel {
    overflow: hidden;
}

.bulk-fee-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: stretch;
}

.bulk-fee-reason-field,
.bulk-fee-date-card {
    min-width: 0;
}

.bulk-fee-label {
    display: block;
    margin-bottom: 7px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    color: #475467;
}

.bulk-fee-textarea,
.bulk-fee-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font: inherit;
}

.bulk-fee-textarea {
    min-height: 142px;
    padding: 12px 14px;
    resize: vertical;
}

.bulk-fee-input {
    min-height: 42px;
    padding: 9px 11px;
}

.bulk-fee-textarea:focus,
.bulk-fee-input:focus {
    outline: none;
    border-color: #84adf4;
    box-shadow: 0 0 0 3px rgba(52, 125, 233, .10);
}

.bulk-fee-help {
    margin-top: 7px;
    font-size: .86rem;
    line-height: 1.45;
    color: #667085;
}

.bulk-fee-date-card {
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #f9fafb;
}

.bulk-fee-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bulk-fee-rule-note {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4e7ec;
    color: #475467;
    font-size: .88rem;
    line-height: 1.5;
}

.bulk-fee-rule-note strong {
    color: #344054;
}

.bulk-fee-selection-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    color: #667085;
    font-size: .9rem;
}

.bulk-fee-selection-counter strong {
    color: #101828;
    font-size: 1.3rem;
}

.bulk-fee-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.bulk-fee-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-fee-search-wrap {
    width: min(360px, 100%);
}

.bulk-fee-search-label {
    display: block;
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 700;
    color: #667085;
}

.bulk-fee-organizer-list {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.bulk-fee-organizer-list-head,
.bulk-fee-organizer-row {
    display: grid;
    grid-template-columns: 86px minmax(220px, 1.5fr) minmax(120px, .55fr) minmax(220px, 1fr);
    gap: 14px;
    align-items: center;
}

.bulk-fee-organizer-list-head {
    padding: 10px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #e4e7ec;
    color: #667085;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

#bulk-organizer-rows {
    max-height: 480px;
    overflow-y: auto;
}

.bulk-fee-organizer-row {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f1f3;
    cursor: pointer;
    transition: background-color .12s ease;
}

.bulk-fee-organizer-row:last-child {
    border-bottom: 0;
}

.bulk-fee-organizer-row:hover {
    background: #f8fafc;
}

.bulk-fee-organizer-row:has(.bulk-organizer-checkbox:checked) {
    background: #f4f8ff;
}

.bulk-fee-checkbox-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-organizer-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.bulk-fee-organizer-name {
    color: #1d2939;
}

.bulk-fee-missing-email {
    color: #b54708;
    font-weight: 700;
}

.bulk-fee-no-results {
    margin-top: 12px;
}

.bulk-fee-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.bulk-fee-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bulk-fee-preview-card {
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #f9fafb;
}

.bulk-fee-preview-card span {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: .8rem;
    font-weight: 700;
}

.bulk-fee-preview-card strong {
    display: block;
    color: #101828;
    font-size: 1.65rem;
    line-height: 1;
}

.bulk-fee-confirm-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d6e4fb;
    border-radius: 10px;
    background: #f6f9fe;
}

.bulk-fee-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #344054;
    line-height: 1.5;
}

.bulk-fee-confirm-label input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.bulk-fee-actions-confirm {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .bulk-fee-config-grid {
        grid-template-columns: 1fr;
    }

    .bulk-fee-organizer-list-head,
    .bulk-fee-organizer-row {
        grid-template-columns: 70px minmax(180px, 1.4fr) minmax(120px, .6fr) minmax(180px, 1fr);
    }

    .bulk-fee-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bulk-fee-date-grid {
        grid-template-columns: 1fr;
    }

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

    .bulk-fee-search-wrap {
        width: 100%;
    }

    .bulk-fee-organizer-list {
        overflow-x: auto;
    }

    .bulk-fee-organizer-list-head,
    .bulk-fee-organizer-row {
        min-width: 760px;
    }
}

@media (max-width: 520px) {
    .bulk-fee-preview-grid {
        grid-template-columns: 1fr;
    }

    .bulk-fee-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   CAMPEONATOS REGIONAIS — DATA OFICIAL
   Versão 0.4.Tagus
   ========================================================================== */

.regional-event-date-grid {
    margin-bottom: 18px;
}

/* ==========================================================================
   CANCELAMENTOS / DESISTÊNCIAS — Versão 0.4.Tagus
   ========================================================================== */

.cancellation-panel {
    border-top: 3px solid #b42318;
}

.cancellation-warning {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e8c2c2;
    border-radius: 10px;
    background: #fff7f7;
}

.cancellation-warning strong {
    display: block;
    margin-bottom: 7px;
    color: #8f1f17;
}

.cancellation-warning p {
    margin: 7px 0 0;
    color: #5d6268;
    font-size: 13px;
    line-height: 1.55;
}

.cancellation-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.cancellation-summary > div,
.cancellation-payment,
.cancellation-admin-note {
    padding: 14px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
}

.cancellation-summary span {
    display: block;
    margin-bottom: 5px;
    color: #68707d;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cancellation-tier-list {
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
}

.cancellation-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 13px;
    border-bottom: 1px solid #eef0f2;
    color: #475467;
    font-size: 12px;
}

.cancellation-tier-row:last-child {
    border-bottom: 0;
}

.cancellation-tier-row strong {
    color: #202124;
    white-space: nowrap;
}

.cancellation-payment {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    background: #fff8df;
    border-color: #ead58b;
}

.cancellation-payment > strong {
    margin-bottom: 3px;
}

.cancellation-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.cancellation-confirm input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.cancellation-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cancellation-admin-grid label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}

.cancellation-admin-grid input,
.cancellation-admin-grid select,
.cancellation-panel textarea {
    width: 100%;
    box-sizing: border-box;
}

.cancellation-admin-note {
    margin-top: 12px;
    color: #475467;
    font-size: 13px;
}

@media (max-width: 760px) {
    .cancellation-summary,
    .cancellation-admin-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| CANCELAMENTOS / DESISTÊNCIAS — apresentação em cartões
| Versão 0.4.Tagus
|--------------------------------------------------------------------------
|
| Acrescentar ao final de:
|
| public/css/acl.css
|
| Este bloco complementa as classes de cancelamento já existentes.
|
*/

.cancellation-decision-panel {
    border-top: 3px solid #b42318;
}

.cancellation-decision-alert {
    margin-bottom: 18px;
    padding: 18px 20px;

    border: 1px solid #f2c8c5;
    border-radius: 10px;

    background: #fff7f6;
}

.cancellation-decision-alert strong {
    display: block;

    margin-bottom: 6px;

    color: #b42318;

    font-size: 15px;
    line-height: 1.35;
}

.cancellation-decision-alert p {
    margin: 0;

    color: #5f4a47;

    font-size: 13px;
    line-height: 1.55;
}

.cancellation-decision-alert-registered {
    border-color: #fedf89;

    background: #fffaeb;
}

.cancellation-decision-alert-registered strong {
    color: #b54708;
}

.cancellation-decision-alert-registered p {
    color: #665b45;
}


/*
|--------------------------------------------------------------------------
| Cartões-resumo
|--------------------------------------------------------------------------
*/

.cancellation-decision-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.cancellation-decision-grid-regional {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cancellation-decision-card {
    min-width: 0;
    min-height: 96px;

    padding: 15px 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    background: #f9fafb;
}

.cancellation-decision-card span {
    display: block;

    margin-bottom: 10px;

    color: #667085;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.cancellation-decision-card strong {
    display: block;

    color: #101828;

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

.cancellation-decision-card-amount {
    border-color: #fecdca;

    background: #fef3f2;
}

.cancellation-decision-card-amount strong {
    color: #b42318;

    font-size: 18px;
}


/*
|--------------------------------------------------------------------------
| Enquadramento legal
|--------------------------------------------------------------------------
*/

.cancellation-decision-legal {
    padding: 15px 17px;

    border: 1px solid #dce3ea;
    border-radius: 9px;

    background: #f8fafc;
}

.cancellation-decision-legal > strong {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 12px;
}

.cancellation-decision-legal p {
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.55;
}

.cancellation-decision-legal p strong {
    color: #344054;
}


/*
|--------------------------------------------------------------------------
| Confirmação
|--------------------------------------------------------------------------
*/

.cancellation-decision-form {
    margin-top: 18px;
}

.cancellation-decision-confirm {
    padding: 14px 16px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #fff;

    color: #344054;

    font-size: 13px;
    line-height: 1.5;

    cursor: pointer;
}

.cancellation-decision-confirm input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 1px 0 0;

    flex: 0 0 18px;
}

.cancellation-decision-actions {
    margin-top: 14px;

    display: flex;
    justify-content: flex-start;
}

.cancellation-decision-submit {
    min-height: 40px;
}


/*
|--------------------------------------------------------------------------
| Pagamento Multibanco
|--------------------------------------------------------------------------
*/

.cancellation-decision-payment {
    margin-top: 18px;
    padding: 17px 18px;

    border: 1px solid #ead58b;
    border-radius: 10px;

    background: #fff8df;
}

.cancellation-decision-payment-title {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.cancellation-decision-payment-title > strong {
    color: #594500;

    font-size: 14px;
}

.cancellation-decision-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.cancellation-decision-payment-grid > div {
    min-width: 0;

    padding: 12px 13px;

    border: 1px solid rgba(141, 112, 0, .16);
    border-radius: 8px;

    background: rgba(255, 255, 255, .65);
}

.cancellation-decision-payment-grid span {
    display: block;

    margin-bottom: 5px;

    color: #7a670f;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.cancellation-decision-payment-grid strong {
    display: block;

    color: #3d3308;

    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {

    .cancellation-decision-grid-regional {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cancellation-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {

    .cancellation-decision-grid,
    .cancellation-decision-grid-regional,
    .cancellation-decision-payment-grid {
        grid-template-columns: 1fr;
    }

    .cancellation-decision-payment-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .cancellation-decision-actions .dash-btn {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — CANCELAMENTO / DESISTÊNCIA
| Versão 0.4.Tagus
|--------------------------------------------------------------------------
*/

.admin-cancellation-panel {
    border-top: 3px solid #b42318;
}

.admin-cancellation-note {
    margin-bottom: 18px;
    padding: 15px 17px;

    border: 1px solid #fecdca;
    border-radius: 9px;

    background: #fef3f2;
}

.admin-cancellation-note strong {
    display: block;

    margin-bottom: 5px;

    color: #b42318;

    font-size: 13px;
}

.admin-cancellation-note p {
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.5;
}

.admin-cancellation-note-registered {
    border-color: #b2ddff;

    background: #eff8ff;
}

.admin-cancellation-note-registered strong {
    color: #175cd3;
}


/*
|--------------------------------------------------------------------------
| Resumo do cálculo
|--------------------------------------------------------------------------
*/

.admin-cancellation-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.admin-cancellation-summary-card {
    min-width: 0;
    min-height: 94px;

    padding: 14px 15px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #f9fafb;
}

.admin-cancellation-summary-card > span {
    display: block;

    margin-bottom: 8px;

    color: #667085;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.admin-cancellation-summary-card > strong {
    display: block;

    color: #101828;

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

.admin-cancellation-summary-card > small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 10px;
    line-height: 1.35;
}

.admin-cancellation-summary-card-amount {
    border-color: #fecdca;

    background: #fef3f2;
}

.admin-cancellation-summary-card-amount > strong {
    color: #b42318;

    font-size: 19px;
}


/*
|--------------------------------------------------------------------------
| Campos administrativos
|--------------------------------------------------------------------------
*/

.admin-cancellation-form {
    margin: 0;
}

.admin-cancellation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.admin-cancellation-field {
    min-width: 0;

    padding: 14px;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #f9fafb;
}

.admin-cancellation-field label,
.admin-cancellation-reason label {
    display: block;

    margin-bottom: 7px;

    color: #475467;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.admin-cancellation-field select,
.admin-cancellation-field input,
.admin-cancellation-reason textarea {
    width: 100%;
}

.admin-cancellation-reason {
    margin-top: 14px;
    padding: 14px;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #f9fafb;
}

.admin-cancellation-reason textarea {
    min-height: 120px;

    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| Confirmação e ação
|--------------------------------------------------------------------------
*/

.admin-cancellation-confirm {
    margin-top: 16px;
    padding: 13px 15px;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #fff;
}

.admin-cancellation-confirm label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: #344054;

    font-size: 13px;
    line-height: 1.5;

    cursor: pointer;
}

.admin-cancellation-confirm input {
    width: 18px;
    height: 18px;

    margin: 1px 0 0;

    flex: 0 0 18px;
}

.admin-cancellation-actions {
    margin-top: 14px;

    display: flex;
    justify-content: flex-end;
}


/*
|--------------------------------------------------------------------------
| Notas adicionais
|--------------------------------------------------------------------------
*/

.admin-cancellation-detail-note {
    margin-top: 12px;
    padding: 13px 15px;

    border: 1px solid #e4e7ec;
    border-radius: 9px;

    background: #f9fafb;
}

.admin-cancellation-detail-note strong {
    display: block;

    margin-bottom: 5px;

    color: #344054;

    font-size: 11px;
    text-transform: uppercase;
}

.admin-cancellation-detail-note p {
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Multibanco
|--------------------------------------------------------------------------
*/

.admin-cancellation-payment {
    margin-top: 18px;
    padding: 16px 17px;

    border: 1px solid #ead58b;
    border-radius: 9px;

    background: #fff8df;
}

.admin-cancellation-payment-header {
    margin-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.admin-cancellation-payment-header > strong {
    color: #594500;

    font-size: 14px;
}

.admin-cancellation-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.admin-cancellation-payment-grid > div {
    min-width: 0;

    padding: 12px 13px;

    border: 1px solid rgba(141, 112, 0, .16);
    border-radius: 8px;

    background: rgba(255, 255, 255, .65);
}

.admin-cancellation-payment-grid span {
    display: block;

    margin-bottom: 5px;

    color: #7a670f;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.admin-cancellation-payment-grid strong {
    display: block;

    color: #3d3308;

    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .admin-cancellation-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .admin-cancellation-grid {
        grid-template-columns: 1fr;
    }

    .admin-cancellation-actions {
        justify-content: stretch;
    }

    .admin-cancellation-actions .dash-btn {
        width: 100%;
    }
}

@media (max-width: 620px) {

    .admin-cancellation-summary-grid,
    .admin-cancellation-payment-grid {
        grid-template-columns: 1fr;
    }

    .admin-cancellation-payment-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/*
|===============================================================================
| ORGANIZADOR — CLASSIFICAÇÕES DOS CAMPEONATOS REGIONAIS
| Versão 0.4.Tagus
|===============================================================================
*/

.cr-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.regional-public-classification-shell {
    max-width: 1500px;
    padding-bottom: 26px;
}

.regional-public-classification-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.regional-public-classification-eyebrow {
    margin-bottom: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.regional-public-classification-subtitle {
    margin: 7px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.regional-public-classification-publication {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.regional-public-classification-published {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid #abefc6;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.regional-public-classification-published-at {
    text-align: right;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.regional-public-classification-published-at span {
    display: block;
}

.regional-public-classification-published-at strong {
    color: #344054;
}

.regional-public-classification-note {
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #b2ddff;
    border-radius: 9px;
    background: #eff8ff;
}

.regional-public-classification-note strong {
    display: block;
    margin-bottom: 5px;
    color: #175cd3;
    font-size: 13px;
}

.regional-public-classification-note p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.regional-public-classification-wrap {
    overflow-x: auto;
}

.regional-public-classification-table {
    min-width: 1050px;
}

.regional-public-classification-table th,
.regional-public-classification-table td {
    vertical-align: middle;
}

.regional-public-classification-code {
    min-width: 145px;
}

.regional-public-classification-score-column {
    width: 82px;
    min-width: 82px;
    text-align: center !important;
    white-space: nowrap !important;
}

.regional-public-classification-score {
    text-align: center;
    white-space: nowrap;
}

.regional-public-classification-score strong {
    color: #101828;
    font-size: 13px;
}

.regional-public-classification-empty-score {
    color: #98a2b3;
}

.regional-public-classification-total {
    width: 95px;
    min-width: 95px;
    text-align: center !important;
}

.regional-public-classification-total-value {
    text-align: center;
    white-space: nowrap;
}

.regional-public-classification-total-value strong {
    color: #101828;
    font-size: 15px;
}

.regional-public-classification-result {
    min-width: 165px;
}


/*
|--------------------------------------------------------------------------
| Legenda dos critérios
|--------------------------------------------------------------------------
*/

.regional-public-classification-legend {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.regional-public-classification-legend-header {
    margin-bottom: 14px;
}

.regional-public-classification-legend-header h2 {
    margin: 0;
    color: #101828;
    font-size: 15px;
}

.regional-public-classification-legend-header p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.regional-public-classification-legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.regional-public-classification-legend-item {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
}

.regional-public-classification-legend-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.regional-public-classification-legend-item strong {
    display: block;
    color: #344054;
    font-size: 12px;
    line-height: 1.35;
}

.regional-public-classification-legend-item small {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 1050px) {
    .regional-public-classification-legend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .regional-public-classification-heading {
        flex-direction: column;
    }

    .regional-public-classification-publication {
        align-items: flex-start;
    }

    .regional-public-classification-published-at {
        text-align: left;
    }

    .regional-public-classification-legend-grid {
        grid-template-columns: 1fr;
    }

    .cr-action-buttons {
        justify-content: flex-start;
    }

    .cr-action-buttons .cr-btn,
    .cr-action-buttons .cr-action-form,
    .cr-action-buttons .cr-action-form .cr-btn {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| BACKOFFICE — CALENDÁRIO DE PROVAS
| Versão 0.4.Tagus v3
|--------------------------------------------------------------------------
|
| Substituir integralmente o bloco CSS do calendário v2 por este bloco.
|
| Alterações:
| - Vista anual 3 colunas × 4 linhas;
| - meses com mais largura e leitura mais confortável;
| - dias compactos, mas menos comprimidos que na grelha 4×3;
| - correção do badge "Campeonato Regional", que agora só aparece
|   em eventos realmente provenientes de candidaturas Regionais atribuídas;
| - Gantt mantém-se compacto.
|
*/

.admin-calendar-shell {
    max-width: 1700px;
}

.admin-calendar-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-calendar-subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
}

.admin-calendar-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-calendar-view-button {
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.admin-calendar-view-button.is-active {
    background: #ffffff;
    color: #175cd3;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.admin-calendar-filters-panel {
    padding-top: 16px;
    padding-bottom: 16px;
}

.admin-calendar-filters {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-calendar-filter {
    min-width: 0;
}

.admin-calendar-filter label {
    display: block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-calendar-filter select {
    width: 100%;
}

.admin-calendar-filter-actions {
    display: flex;
    align-items: flex-end;
}

.admin-calendar-workspace {
    overflow: hidden;
}

.admin-calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-calendar-toolbar-left {
    display: flex;
    gap: 6px;
}

.admin-calendar-toolbar-title {
    text-align: center;
}

.admin-calendar-toolbar-title strong {
    display: block;
    color: #101828;
    font-size: 17px;
}

.admin-calendar-toolbar-title span {
    color: #667085;
    font-size: 10px;
}

.admin-calendar-toolbar-right {
    display: flex;
    justify-content: flex-end;
}

.admin-calendar-regional-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 10px;
}

.admin-calendar-regional-key > span {
    width: 15px;
    height: 8px;
    border-radius: 3px;
    background: #f79009;
}

.admin-calendar-loading {
    padding: 24px;
    text-align: center;
    color: #667085;
}


/*
|--------------------------------------------------------------------------
| Vista anual — 3 colunas × 4 linhas
|--------------------------------------------------------------------------
*/

.admin-calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.admin-calendar-month {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #ffffff;
}

.admin-calendar-month-header {
    padding: 6px 8px;
    background: #173b73;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.admin-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #244b84;
}

.admin-calendar-weekdays span {
    padding: 4px 1px;
    color: #ffffff;
    font-size: 7px;
    font-weight: 800;
    text-align: center;
}

.admin-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-calendar-day {
    min-width: 0;
    min-height: 52px;
    padding: 3px;
    border-right: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
    background: #ffffff;
}

.admin-calendar-day:nth-child(7n) {
    border-right: 0;
}

.admin-calendar-day.is-empty {
    background: #f9fafb;
}

.admin-calendar-day-number {
    display: block;
    margin-bottom: 1px;
    color: #667085;
    font-size: 8px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Balões dos eventos
|--------------------------------------------------------------------------
*/

.admin-calendar-event.discipline-badge,
.admin-calendar-event-regional {
    width: 100%;
    min-width: 0;
    margin: 1px 0 0;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 0;
    border-radius: 3px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.admin-calendar-event-code {
    flex: 0 0 auto;
    font-size: 7px;
    font-weight: 900;
}

.admin-calendar-event-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
    font-weight: 700;
}

.admin-calendar-event-regional {
    background: #f79009;
    color: #ffffff;
}

.admin-calendar-event-regional:hover {
    background: #dc6803;
}


/*
|--------------------------------------------------------------------------
| Gantt anual — compacto
|--------------------------------------------------------------------------
*/

.admin-calendar-gantt-scroll {
    overflow-x: auto;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
}

.admin-calendar-gantt-grid {
    min-width: 1450px;
    display: grid;
    grid-template-columns: 105px repeat(31, minmax(40px, 1fr));
    background: #ffffff;
}

.admin-calendar-gantt-corner,
.admin-calendar-gantt-day-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 5px 3px;
    border-right: 1px solid #315789;
    border-bottom: 1px solid #315789;
    background: #173b73;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    text-align: center;
}

.admin-calendar-gantt-corner {
    left: 0;
    z-index: 4;
}

.admin-calendar-gantt-month-label {
    position: sticky;
    left: 0;
    z-index: 3;
    min-height: 38px;
    padding: 5px 7px;
    border-right: 1px solid #dfe3e8;
    border-bottom: 1px solid #dfe3e8;
    background: #ffffff;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
}

.admin-calendar-gantt-cell {
    min-width: 0;
    min-height: 38px;
    padding: 2px;
    border-right: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
    background: #ffffff;
}

.admin-calendar-gantt-cell.is-disabled {
    background: #f2f4f7;
}

.admin-calendar-gantt-event.discipline-badge,
.admin-calendar-gantt-event.admin-calendar-event-regional {
    min-height: 18px;
}


/*
|--------------------------------------------------------------------------
| Dialog
|--------------------------------------------------------------------------
*/

.admin-calendar-dialog {
    width: min(650px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

.admin-calendar-dialog::backdrop {
    background: rgba(16, 24, 40, .48);
}

.admin-calendar-dialog-card {
    padding: 22px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .24);
}

.admin-calendar-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-calendar-dialog-header h2 {
    margin: 8px 0 0;
    color: #101828;
    font-size: 20px;
}

.admin-calendar-regional-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f79009;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

/*
| IMPORTANTE:
| a regra acima tem display:inline-flex, por isso precisamos preservar
| explicitamente o atributo hidden usado pelo JavaScript.
*/
.admin-calendar-regional-label[hidden] {
    display: none !important;
}

#calendar-dialog-discipline[hidden] {
    display: none !important;
}

.admin-calendar-dialog-close {
    width: 38px;
    height: 38px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #ffffff;
    color: #475467;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.admin-calendar-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-calendar-dialog-grid > div {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-calendar-dialog-grid span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-calendar-dialog-grid strong {
    display: block;
    color: #344054;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-calendar-dialog-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .admin-calendar-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-calendar-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-calendar-heading {
        flex-direction: column;
    }

    .admin-calendar-view-switch {
        width: 100%;
    }

    .admin-calendar-view-button {
        flex: 1;
    }

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

    .admin-calendar-filter-actions .dash-btn {
        width: 100%;
    }

    .admin-calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-calendar-toolbar-title {
        order: -1;
    }

    .admin-calendar-toolbar-right {
        justify-content: flex-start;
    }

    .admin-calendar-year-grid {
        grid-template-columns: 1fr;
    }

    .admin-calendar-dialog-grid {
        grid-template-columns: 1fr;
    }

    .admin-calendar-dialog-actions .dash-btn {
        width: 100%;
    }
}
