* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.system-page .system-list .volunteer-filters select.form-control {
    background-color: var(--layout-paper);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--layout-blue) 50%),
        linear-gradient(135deg, var(--layout-blue) 50%, transparent 50%);
}

body {
    font-family: Arial, sans-serif;
    background: #ededed;
    color: #1f1f1f;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: transform 0.2s ease;
}

h1 {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

main {
    padding: 28px 20px 60px;
    min-height: calc(100vh - 90px);
}

.system-page {
    background: #f3f7f5;
    color: #1d2b27;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    container-type: inline-size;
    display: flex;
    flex: 0 0 var(--sidebar-width, 300px);
    width: var(--sidebar-width, 300px);
    height: 100vh;
    min-height: 560px;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 0 18px;
    background: linear-gradient(188deg, var(--azul) 0%, var(--azul-profundo) 100%);
    color: var(--papel);
}

.sidebar-resize-handle {
    position: sticky;
    z-index: 1201;
    top: 0;
    flex: 0 0 8px;
    width: 8px;
    height: 100vh;
    margin-left: -8px;
    cursor: col-resize;
    touch-action: none;
}

.sidebar-resize-handle::after {
    position: absolute;
    top: 0;
    right: 3px;
    bottom: 0;
    width: 2px;
    background: transparent;
    content: "";
    transition: background-color 0.15s ease;
}

.sidebar-resize-handle:hover::after,
.sidebar-resize-handle:focus-visible::after,
.sidebar-resizing .sidebar-resize-handle::after {
    background: rgba(249, 246, 238, 0.85);
}

.sidebar-resize-handle:focus-visible {
    outline: none;
}

.sidebar-resizing,
.sidebar-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.sidebar::before {
    position: absolute;
    top: -146px;
    right: -274px;
    width: 426px;
    height: 417px;
    border-radius: 50%;
    background: var(--azul);
    content: "";
    pointer-events: none;
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 5.667cqi, 27px);
    min-height: clamp(76px, 30.333cqi, 146px);
    padding: 0 clamp(12px, 6cqi, 29px);
    margin-bottom: 30px;
    color: inherit;
    text-decoration: none;
}

.sidebar-brand-copy strong,
.sidebar-brand-copy small {
    white-space: nowrap;
    transition: color 200ms ease, letter-spacing 200ms ease;
}

.sidebar-brand-copy strong {
    display: block;
    color: #fff;
    font-family: var(--fonte-titulo);
    font-size: clamp(26px, 10cqi, 48px);
    font-weight: 700;
    line-height: 1.15;
}

.sidebar-brand-copy small {
    display: block;
    color: #fff;
    font-family: var(--fonte-corpo);
    font-size: clamp(16px, 6cqi, 29px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.brand-mark {
    flex: 0 0 clamp(42px, 19.333cqi, 93px);
    width: clamp(42px, 19.333cqi, 93px);
    height: clamp(48px, 21.333cqi, 102px);
    object-fit: contain;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 10%));
    transform-origin: 50% 85%;
    transition: filter 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.sidebar-brand:hover .brand-mark {
    filter: drop-shadow(0 5px 5px rgb(0 0 0 / 24%));
    transform: translateY(-3px) rotate(-7deg) scale(1.08);
}

.sidebar-brand:hover .sidebar-brand-copy strong,
.sidebar-brand:hover .sidebar-brand-copy small {
    color: #f4e01e;
    letter-spacing: 0.015em;
}

@container (max-width: 280px) {
    .sidebar-brand {
        justify-content: flex-start;
        gap: 10px;
        padding: 0 12px;
    }

    .sidebar-brand-copy {
        min-width: 0;
    }

    .sidebar-brand-copy strong {
        font-size: 23px;
    }

    .sidebar-brand-copy small {
        font-size: 13px;
    }

    .brand-mark {
        flex-basis: 42px;
        width: 42px;
        height: 48px;
    }
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(249, 246, 238, 0.4) transparent;
    scrollbar-width: thin;
}

.sidebar-group {
    display: grid;
    gap: clamp(8px, 3.333cqi, 16px);
    padding: 0 0 clamp(18px, 10cqi, 48px);
}

.sidebar-group:first-child {
    padding-bottom: clamp(12px, 6cqi, 29px);
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding-top: 14px;
}

.sidebar-link {
    display: flex;
    min-height: clamp(42px, 15.333cqi, 72px);
    align-items: center;
    gap: clamp(12px, 6cqi, 29px);
    padding: 3px clamp(14px, 6.667cqi, 32px);
    border-left: clamp(5px, 2.333cqi, 11px) solid transparent;
    color: var(--papel);
    font-family: var(--fonte-titulo);
    font-size: clamp(16px, 6cqi, 29px);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        font-size 0.15s ease,
        gap 0.15s ease,
        min-height 0.15s ease,
        padding 0.15s ease;
}

.sidebar-link-icon {
    flex: 0 0 clamp(24px, 9.333cqi, 45px);
    width: clamp(24px, 9.333cqi, 45px);
    height: clamp(24px, 9.333cqi, 45px);
    fill: currentColor;
    stroke: none;
    transition: width 0.15s ease, height 0.15s ease, flex-basis 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(249, 246, 238, 0.1);
}

.sidebar-link.active {
    border-left-color: var(--amarelo);
    background: rgba(249, 246, 238, 0.15);
}

.logout-link {
    color: var(--papel);
}

.logout-link .sidebar-link-icon {
    flex-basis: clamp(20px, 7.667cqi, 37px);
    width: clamp(20px, 7.667cqi, 37px);
    height: clamp(20px, 7.667cqi, 37px);
    color: #ffaaa7;
}

.sidebar-link.logout-link:hover {
    border-left-color: var(--erro);
    background: rgba(214, 69, 69, 0.14);
}

.logout-link:focus-visible {
    outline: 3px solid var(--amarelo);
    outline-offset: 2px;
    background: rgba(214, 69, 69, 0.14);
}

.main-panel {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.main-content {
    padding: 28px 32px 50px;
}

.topbar {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 78.5px;
    padding: 17px 20px;
    background: #fff;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.8);
}

.sidebar-toggle,
.sidebar-backdrop {
    display: none;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--azul);
    font-family: var(--fonte-corpo);
    font-size: 16px;
    font-weight: 700;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
}

.topbar-breadcrumb:active,
.topbar-breadcrumb.is-dragging {
    cursor: grabbing;
}

.topbar-breadcrumb::-webkit-scrollbar {
    display: none;
}

.topbar-breadcrumb a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.topbar-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-breadcrumb span[aria-current="page"] {
    color: var(--azul-profundo);
    font-weight: 700;
}

.breadcrumb-separator {
    flex: 0 0 7px;
    width: 7px;
    height: 8px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-link {
    position: relative;
    display: grid;
    box-sizing: border-box;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--azul);
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease;
}

.notification-link::before {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 3px solid var(--azul);
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.notification-link:hover,
.notification-link:focus-visible {
    color: #003f87;
    transform: translateY(-3px);
}

.notification-link:hover::before,
.notification-link:focus-visible::before {
    border-color: #003f87;
    background: #eaf3ff;
    box-shadow: 0 5px 12px rgba(0, 48, 107, 0.2);
}

.notification-link:focus-visible {
    outline: 3px solid rgba(0, 88, 185, 0.25);
    outline-offset: 2px;
}

.notification-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 44px;
    height: 44px;
    overflow: visible;
    transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.notification-link:hover .notification-icon,
.notification-link:focus-visible .notification-icon {
    transform: rotate(-7deg) scale(1.06);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -5.75px;
    display: grid;
    box-sizing: border-box;
    place-items: center;
    min-width: 25px;
    width: 25px;
    height: 24px;
    padding: 0 1px;
    border: 0;
    border-radius: 999px;
    background: var(--erro);
    color: #fff;
    font-family: var(--fonte-titulo);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.topbar-user {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 205px;
    align-items: center;
    gap: 12px;
    width: 205px;
    min-width: 0;
    height: 45px;
    padding: 2px 8px 2px 3px;
    border: 3px solid var(--azul);
    border-radius: 10px;
    background: var(--papel);
    color: var(--azul);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.topbar-user:hover,
.topbar-user:focus-visible {
    transform: translateY(-2px);
    border-color: #003f87;
    background: #fff;
    box-shadow: 0 5px 14px rgba(0, 48, 107, 0.16);
}

.topbar-user:focus-visible {
    outline: 3px solid rgba(0, 88, 185, 0.25);
    outline-offset: 2px;
}

.topbar-user-initial {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 35px;
    place-items: center;
    border-radius: 8px;
    background: var(--roxo);
    color: #fff;
    font-family: var(--fonte-titulo);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transition: transform 180ms ease;
}

.topbar-user:hover .topbar-user-initial,
.topbar-user:focus-visible .topbar-user-initial {
    transform: rotate(-5deg) scale(1.05);
}

.topbar-user-name {
    overflow: hidden;
    font-family: var(--fonte-titulo);
    font-size: 24px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--alerta-sucesso-fundo);
    color: var(--texto);
    border: 1px solid var(--sucesso);
    border-left-width: 5px;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-weight: 600;
}

.system-feedback-stack {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 48px));
    pointer-events: none;
}

.system-feedback-toast {
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0;
    box-shadow: 0 10px 30px rgba(20, 45, 37, 0.18);
    pointer-events: auto;
    animation: system-feedback-enter 0.22s ease-out;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.system-feedback-toast > span {
    min-width: 0;
}

.system-feedback-toast.toast-leaving {
    opacity: 0;
    transform: translateX(18px);
}

.system-feedback-close {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.system-feedback-close:hover,
.system-feedback-close:focus-visible {
    background: rgba(31, 31, 31, 0.08);
}

@keyframes system-feedback-enter {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 720px) {
    .system-feedback-stack {
        top: 124px;
        right: 16px;
        width: min(420px, calc(100vw - 48px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-feedback-toast {
        animation: none;
        transition: none;
    }
}

.alert-box,
.error-box,
.auth-feedback,
.auth-login-card .auth-password-error {
    font-family: var(--fonte-corpo);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-box::before,
.error-box::before,
.auth-feedback::before {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--sucesso-contraste);
    content: "✓";
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.alert-box.alert-error,
.error-box,
.auth-feedback--error,
.auth-login-card .auth-password-error {
    border-color: var(--erro);
    background: var(--alerta-erro-fundo);
    color: var(--texto);
    border-left-width: 5px;
}

.alert-box.alert-error::before,
.error-box::before,
.auth-feedback--error::before,
.auth-login-card .auth-password-error::before {
    color: var(--erro-contraste);
    content: "×";
}

.alert-box.alert-warning,
.auth-feedback--warning {
    border-color: #c39b22;
    background: var(--alerta-cuidado-fundo);
    color: var(--texto);
}

.alert-box.alert-warning::before,
.auth-feedback--warning::before {
    color: #8a6711;
    content: "!";
}

.alert-box.alert-info,
.auth-feedback--info {
    border-color: var(--azul);
    background: var(--layout-info-bg);
    color: var(--texto);
}

.alert-box.alert-info::before,
.auth-feedback--info::before {
    color: var(--azul-profundo);
    content: "i";
}

.error-msg {
    color: var(--erro-contraste);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

.field-hint {
    color: #6b7d76;
    font-size: 0.78rem;
    line-height: 1.35;
}

.error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--alerta-erro-fundo);
    color: var(--texto);
    border: 1px solid var(--erro);
    border-left-width: 5px;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(18, 58, 45, 0.06);
    border: 1px solid #e7efe9;
}

.card h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6f68;
    margin-bottom: 16px;
}

.volunteer-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: none;
    margin-bottom: 20px;
}


.volunteer-control {
    margin-bottom: 24px;
}

.section-kicker,
.form-kicker {
    display: block;
    margin-bottom: 6px;
    color: #1d785d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading h2 {
    color: #173d31;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.section-heading .form-subtitle {
    margin-bottom: 0;
}

.section-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.volunteer-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
    align-items: end;
    gap: 16px;
    padding: 16px;
    background: #f5f9f6;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    margin-bottom: 22px;
}

.volunteer-filters .form-group {
    margin-bottom: 0;
}

.equipe-filters {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto;
}

.equipe-filters .form-group,
.equipe-filters .filter-actions {
    min-width: 0;
}

@media (max-width: 900px) {
    .equipe-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipe-filters .form-group:first-child,
    .equipe-filters .filter-actions {
        grid-column: 1 / -1;
    }
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 1px;
}

.table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}


.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1040px;
}

.data-table th,
.data-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #edf1ee;
    white-space: nowrap;
}

.voluntario-destacado {
    background: #e8f5ec;
    box-shadow: inset 4px 0 0 #2f8f57;
}

.praia-destacada {
    background: #e8f5ec;
    box-shadow: inset 4px 0 0 #2f8f57;
}

.data-table th {
    color: #5b6f68;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-table td {
    color: #30463f;
}

.data-table td > small.table-secondary,
.data-table td > .bag-summary {
    display: block;
    margin-top: 5px;
}

.bag-summary {
    min-width: 105px;
    white-space: normal;
}

.bag-summary .table-link {
    display: inline-block;
    white-space: nowrap;
}

.bag-summary .table-secondary {
    display: block;
    margin-top: 4px;
    white-space: nowrap;
}

.table-secondary {
    color: #6b7d76;
    font-size: 0.78rem;
}

.bag-summary + .bag-summary {
    margin-top: 8px;
}

.bag-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2ef;
    color: #3d554b;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.bag-status-cheia {
    background: #fff0d8;
    color: #9a5b00;
}

.bag-status-em_uso {
    background: #e1f2e7;
    color: #176247;
}

.bag-status-em_transito,
.bag-status-retirada {
    background: #e4eef8;
    color: #245d8c;
}

.bag-status-danificada,
.bag-status-perdida {
    background: #fbe3e3;
    color: #a33c3c;
}

.audit-history-table {
    min-width: 1100px;
}

.audit-action {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2ef;
    color: #3d554b;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.audit-action-criacao {
    background: #e1f2e7;
    color: #176247;
}

.audit-action-edicao {
    background: #e4eef8;
    color: #245d8c;
}

.audit-action-mudanca_status,
.audit-action-movimentacao {
    background: #fff0d8;
    color: #9a5b00;
}

.audit-json {
    max-width: 440px;
    margin-top: 8px;
    color: #5b6f68;
    font-size: 0.76rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

details summary {
    color: #1d785d;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.table-link {
    color: #1b5a46;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.table-actions {
    white-space: nowrap !important;
}

.table-actions form {
    display: inline;
    margin: 0 0 0 8px;
}

.table-actions .btn {
    vertical-align: middle;
}

.user-edit-summary {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-left: 4px solid #1d785d;
    border-radius: 8px;
    background: #f1f8f4;
    color: #173d31;
}

.user-edit-summary span {
    color: #5b6f68;
    font-size: 0.88rem;
}

.user-access-title {
    margin-top: 26px;
}

.data-table tbody tr:hover {
    background: #f8fbf9;
}

.team-detail {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 0;
    background: #fff;
    border: 1px solid #e1ebe4;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(18, 58, 45, 0.07);
}

.team-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 30px;
    background: linear-gradient(120deg, #edf8f0 0%, #f9fcf8 68%, #fff8e9 100%);
    border-bottom: 1px solid #e3ede5;
}

.team-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #5b806f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-hero h2 {
    color: #173d31;
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.team-location {
    display: inline-block;
    margin-bottom: 10px;
    color: #1d785d;
    font-size: 0.86rem;
    font-weight: 800;
}

.team-hero p {
    max-width: 680px;
    color: #5b6f68;
    line-height: 1.55;
}

.team-hero-side {
    display: grid;
    justify-items: end;
    gap: 10px;
    flex-shrink: 0;
}

.team-hero-side small {
    color: #5b6f68;
    font-weight: 700;
}

.team-detail > .section-heading,
.team-detail > .volunteer-filters,
.team-detail > .table-wrap,
.team-detail > .empty-state {
    margin-left: 30px;
    margin-right: 30px;
}

.team-detail > .section-heading {
    margin-top: 28px;
}

.member-form-panel {
    margin: 0 30px 24px;
    padding: 20px;
    background: #f7fbf8;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
}

.member-form-panel h3 {
    margin-bottom: 16px;
    color: #173d31;
    font-size: 1rem;
}

.team-member-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
    margin-top: 4px;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e6f3ea;
    color: #1d7048;
    font-size: 0.78rem;
    vertical-align: middle;
}

.team-history-section {
    border-color: #e5ebe7;
    box-shadow: 0 8px 22px rgba(18, 58, 45, 0.04);
}


.confirmation-modal[hidden] {
    display: none;
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
}

.confirmation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 32, 0.52);
    backdrop-filter: blur(3px);
}

.confirmation-modal-card {
    position: relative;
    width: min(100%, 440px);
    padding: 30px;
    border: 1px solid #d6e6dc;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(13, 52, 38, 0.24);
    text-align: center;
}

.confirmation-modal-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e4f4e9;
    color: #237654;
    font-size: 1.5rem;
    font-weight: 800;
}

.confirmation-modal-card h2 {
    margin-bottom: 10px;
    color: #173d31;
    font-size: 1.3rem;
}

.confirmation-modal-card p {
    color: #5b6f68;
    line-height: 1.55;
}

.confirmation-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 720px) {
    .action-detail-section {
        padding: 20px;
    }

    .action-participants-section > .member-form-panel {
        padding: 16px;
    }

    .action-participants-section .member-form-panel h3 {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .team-hero {
        display: grid;
        padding: 24px 20px;
    }

    .team-hero-side {
        justify-items: start;
    }

    .team-detail > .section-heading,
    .team-detail > .volunteer-filters,
    .team-detail > .table-wrap,
    .team-detail > .empty-state {
        margin-left: 20px;
        margin-right: 20px;
    }

    .member-form-panel {
        margin-left: 20px;
        margin-right: 20px;
        padding: 16px;
    }
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.inline-status-form {
    display: inline-flex;
}

.status-select {
    min-width: 86px;
    padding: 5px 24px 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    appearance: auto;
}

.status-select:focus {
    outline: 2px solid rgba(22, 115, 89, 0.25);
}

.status-select.status-ativo,
.status-select.status-ativa {
    background: #dff3e7;
    border-color: #bfe5ce;
    color: #176146;
}

.status-select.status-inativo,
.status-select.status-inativa {
    background: #fde3e3;
    border-color: #efbcbc;
    color: #a23737;
}

.status-select.status-pausado {
    background: #fff1d5;
    color: #8b5b12;
}

.status-select.status-planejada {
    background: #e4eef8;
    border-color: #c4d9ea;
    color: #245d8c;
}

.status-select.status-em_andamento {
    background: #fff1d5;
    border-color: #f1d89d;
    color: #8b5b12;
}

.status-select.status-concluida {
    background: #dff3e7;
    border-color: #bfe5ce;
    color: #176146;
}

.status-select.status-confirmada {
    background: #dff3e7;
    border-color: #bfe5ce;
    color: #176146;
}

.status-select.status-pendente {
    background: #fff3d5;
    border-color: #f1d89d;
    color: #8b6415;
}

.status-select.status-cancelada {
    background: #fde3e3;
    border-color: #efbcbc;
    color: #a23737;
}

.status-select.status-rascunho {
    background: #fff3d5;
    border-color: #f1d89d;
    color: #8b6415;
}

.status-select.status-publicado {
    background: #dff3e7;
    border-color: #bfe5ce;
    color: #176146;
}

.status-select.status-arquivado {
    background: #edf0f2;
    border-color: #d5dce0;
    color: #52616b;
}

.status-select.status-disponivel,
.status-select.status-entregue {
    background: #dff3e7;
    border-color: #bfe5ce;
    color: #176146;
}

.status-select.status-em_uso,
.status-select.status-em_transito {
    background: #e4eef8;
    border-color: #c4d9ea;
    color: #245d8c;
}

.status-select.status-cheia {
    background: #fff1d5;
    border-color: #f1d89d;
    color: #8b5b12;
}

.status-select.status-retirada {
    background: #edf0f2;
    border-color: #d5dce0;
    color: #52616b;
}

.status-select.status-danificada,
.status-select.status-perdida {
    background: #fde3e3;
    border-color: #efbcbc;
    color: #a23737;
}

.status-select:hover {
    border-color: #a9c7b8;
    box-shadow: 0 2px 6px rgba(18, 58, 45, 0.08);
}

.donation-status-control {
    align-items: center;
    gap: 10px;
}

.donation-status-control label {
    color: #5b6f68;
    font-size: 0.8rem;
    font-weight: 700;
}

.type-select.type-admin {
    background: #e1f4e7;
    border-color: #bfe5ce;
    color: #1d7048;
}

.type-select.type-coordenador {
    background: #fff1d5;
    border-color: #f1d89d;
    color: #8b5b12;
}

.type-select {
    min-width: 132px;
    padding-right: 28px;
    box-shadow: 0 2px 5px rgba(18, 58, 45, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.type-select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(18, 58, 45, 0.1);
}

.type-select:focus {
    border-color: #1d785d;
    box-shadow: 0 0 0 3px rgba(29, 120, 93, 0.14);
}

.funcao-select {
    min-width: 128px;
    padding-right: 28px;
    border-color: transparent;
    box-shadow: 0 2px 5px rgba(18, 58, 45, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.funcao-select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(18, 58, 45, 0.1);
}

.funcao-select:focus {
    border-color: #1d785d;
    box-shadow: 0 0 0 3px rgba(29, 120, 93, 0.14);
}

.funcao-select.funcao-coordenador {
    background: #fff1d5;
    color: #8b5b12;
}

.funcao-select.funcao-voluntario {
    background: #e1f4e7;
    color: #1d7048;
}

.status-ativo {
    background: #e1f4e7;
    color: #1d7048;
}

.status-inativo {
    background: #fce5e3;
    color: #a6382e;
}

.status-pausado {
    background: #fff1d5;
    color: #8b5b12;
}

.table-empty {
    padding: 34px 20px;
}

.metric {
    font-size: 2rem;
    font-weight: 800;
    color: #153d31;
}

.card-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.card-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
}

.card-list li:last-child {
    border-bottom: none;
}

.dashboard-page {
    background: var(--layout-paper);
    color: var(--layout-navy);
}

.dashboard-page .main-panel {
    background: var(--layout-paper);
    padding: 12px 24px 40px;
}

.dashboard-page .dashboard-welcome {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 0;
    margin: 0 0 14px;
    padding: 7px 14px;
    border: 2px solid var(--layout-success);
    border-radius: 14px;
    background: var(--layout-success-bg);
    color: var(--layout-navy);
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-page .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-page .dashboard-metric-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--layout-border-strong);
    border-radius: 12px;
    box-shadow: none;
}

.dashboard-page .dashboard-metric-card h2 {
    margin: 0 0 6px;
    color: var(--layout-purple);
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-page .dashboard-metric-card .metric {
    margin: 0;
    color: var(--layout-navy);
    font-family: var(--fonte-titulo);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.dashboard-page .dashboard-section-title {
    margin: 0 0 10px;
    color: var(--layout-purple);
    font-size: 1.125rem;
    text-transform: uppercase;
}

.dashboard-page .dashboard-action-list {
    gap: 4px;
}

.dashboard-page .dashboard-action-list li {
    display: grid;
    grid-template-columns: minmax(76px, 0.12fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--layout-border-strong);
    border-radius: 6px;
    background-color: #ffffff;
}

.dashboard-page .dashboard-action-time {
    color: var(--layout-blue);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-page .dashboard-action-details {
    display: grid;
    min-width: 0;
}

.dashboard-page .dashboard-action-details strong {
    overflow: hidden;
    color: var(--layout-navy);
    font-size: 0.9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .dashboard-action-details span {
    overflow: hidden;
    color: #6f7075;
    font-size: 0.875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .dashboard-action-status {
    justify-self: end;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--alerta-aviso-fundo);
    color: var(--layout-navy);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-page .dashboard-action-status--em_andamento {
    background: var(--layout-warning-bg);
}

.dashboard-page .dashboard-action-status--concluida {
    background: var(--layout-success-bg);
    color: var(--layout-success-text);
}

.dashboard-page .dashboard-action-empty {
    display: block;
    grid-column: 1 / -1;
    padding: 14px;
    color: var(--layout-navy);
    font-size: 0.875rem;
}

.form-shell,
.auth-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.auth-card,
.form-card {
    width: min(100%, 620px);
    background: #fff;
    border: 1px solid #e7efe9;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 18px 38px rgba(19, 44, 36, 0.08);
}

.collection-form {
    display: flex;
    flex-direction: column;
}

.collection-form-heading {
    align-items: center;
    margin-bottom: 18px;
}

.collection-form-heading h2 {
    margin-bottom: 6px;
}

.collection-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 18px;
}

.collection-form-section {
    padding: 18px;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    background: #f8fbf9;
}

.collection-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.collection-section-number {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    background: #dff2e6;
    color: #1d785d;
    font-size: 0.8rem;
    font-weight: 800;
}

.collection-section-heading h3 {
    color: #173d31;
    font-size: 1rem;
    margin-bottom: 3px;
}

.collection-section-heading p {
    color: #6b7d76;
    font-size: 0.78rem;
    line-height: 1.35;
}

.collection-form-section .form-grid {
    gap: 12px;
}

.collection-form-section .form-group {
    gap: 6px;
    margin-bottom: 10px;
}

.collection-form-section .form-control {
    padding: 10px 12px;
    font-size: 0.92rem;
}

.collection-form-section textarea.form-control {
    min-height: 68px;
}

.collection-form-actions {
    justify-content: flex-end;
    padding-top: 16px;
}

.profile-page {
    width: min(100%, 1056px);
    margin: 0 auto;
}

.system-page.profile-page-body {
    background: var(--papel);
}

.profile-card {
    width: 100%;
    padding: 18px 20px 20px;
    border-color: #d1cfc8;
    border-radius: 15px;
    background: var(--papel);
    box-shadow: 0 6px 20px rgba(0, 42, 89, 0.08);
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    margin-bottom: 18px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 15px;
    background: var(--roxo);
    color: var(--papel);
    font-family: var(--fonte-titulo);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.profile-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #6a50b4;
    font-family: var(--fonte-titulo);
    font-size: 18px;
    font-weight: 700;
}

.profile-heading h2 {
    margin: 0 0 2px;
    color: #002a59;
    font-family: var(--fonte-titulo);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.profile-heading .form-subtitle {
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--fonte-corpo);
    font-size: 14px;
    font-weight: 500;
}

.profile-section-title {
    margin-bottom: 12px;
    color: #6a50b4;
    font-family: var(--fonte-titulo);
    font-size: 22px;
    font-weight: 700;
}

.profile-fields {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin-bottom: 0;
}

.profile-fields .form-group {
    gap: 4px;
    margin-bottom: 0;
}

.profile-fields .form-group label {
    color: #111;
    font-family: var(--fonte-corpo);
    font-size: 15px;
    font-weight: 700;
}

.profile-fields .form-control {
    min-height: 51px;
    padding: 11px 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-family: var(--fonte-corpo);
    font-size: 14px;
    font-weight: 500;
}

.profile-fields .form-control:focus {
    border-color: var(--azul);
    outline: 3px solid rgba(0, 88, 185, 0.14);
}

.profile-fields .access-type {
    min-height: 51px;
    padding: 8px 12px;
    border: 2px solid var(--sucesso);
    border-radius: 14px;
    background: rgba(46, 139, 87, 0.25);
    color: #111;
    font-family: var(--fonte-corpo);
    font-size: 14px;
    font-weight: 500;
}

.profile-fields .access-type strong {
    color: inherit;
    font-weight: 500;
}

.profile-fields .access-type small {
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.profile-actions .form-actions {
    margin-top: 0;
    gap: 8px;
    padding-top: 0;
}

.profile-note {
    max-width: 42%;
    color: rgba(0, 0, 0, 0.55);
    font-family: var(--fonte-corpo);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.system-page.password-page-body {
    background: var(--papel);
}

.password-page {
    display: flex;
    width: min(100%, 760px);
    min-height: calc(100vh - 190px);
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 24px 0;
}

.password-card {
    width: 100%;
    padding: 30px 34px;
    border-color: #d1cfc8;
    border-radius: 16px;
    background: var(--papel);
    box-shadow: 0 6px 20px rgba(0, 42, 89, 0.08);
}

.password-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.password-avatar {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    place-items: center;
    border-radius: 14px;
    background: var(--roxo);
    color: var(--papel);
}

.password-avatar svg {
    width: 42px;
    height: 42px;
}

.password-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #6a50b4;
    font-family: var(--fonte-titulo);
    font-size: 16px;
    font-weight: 700;
}

.password-heading h2 {
    margin: 0 0 4px;
    color: #002a59;
    font-family: var(--fonte-titulo);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.password-heading .form-subtitle {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--fonte-corpo);
    font-size: 14px;
    font-weight: 500;
}

.password-card .form-group {
    gap: 5px;
    margin-bottom: 15px;
}

.password-card .form-group label {
    color: #111;
    font-family: var(--fonte-corpo);
    font-size: 14px;
    font-weight: 700;
}

.password-card .form-control {
    min-height: 48px;
    padding: 11px 84px 11px 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #002a59;
    font-family: var(--fonte-corpo);
    font-size: 14px;
}

.password-card .form-control:focus {
    border-color: var(--azul);
    outline: 3px solid rgba(0, 88, 185, 0.14);
}

.password-card .password-toggle {
    color: var(--azul);
    font-family: var(--fonte-corpo);
    font-size: 12px;
}

.password-card .password-toggle:focus-visible {
    outline-color: rgba(0, 88, 185, 0.35);
}

.password-card .error-box {
    margin-top: 4px;
    border-color: var(--erro);
    border-left-width: 5px;
    border-radius: 14px;
    background: var(--alerta-erro-fundo);
    color: var(--texto);
}

.password-card .form-actions {
    gap: 12px;
    margin-top: 8px;
}

.auth-card h2,
.form-card h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #173d31;
}

.password-card .password-heading h2 {
    color: var(--azul-profundo);
}

.auth-subtitle,
.form-subtitle {
    color: #5b6f68;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group[hidden] {
    display: none !important;
}

.volunteer-picker {
    position: relative;
}

.donor-picker.is-disabled .form-control,
.donor-picker .form-control:disabled {
    border-color: #d7dfdb;
    background: #e9eeeb;
    color: #77847e;
    cursor: not-allowed;
    opacity: 0.8;
}

.donor-picker.is-disabled {
    cursor: not-allowed;
}

.volunteer-picker-options,
.categoria-options,
.material-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 230px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #cfe1d6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 61, 49, 0.14);
}

.volunteer-picker-options {
    display: none;
}

.volunteer-picker-options.is-open {
    display: block;
}

.categoria-options[hidden],
.material-options[hidden] {
    display: none;
}

.volunteer-picker-option,
.categoria-option,
.material-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #173d31;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.volunteer-picker-option {
    justify-content: space-between;
}

.categoria-option-nova,
.material-option-new {
    margin-top: 4px;
    border-top: 1px solid #edf1ee;
    color: #215b45;
    font-weight: 600;
}

.volunteer-picker-option[hidden],
.volunteer-picker-empty[hidden],
.categoria-option[hidden],
.material-option[hidden] {
    display: none;
}

.volunteer-picker-option:hover,
.volunteer-picker-option:focus,
.categoria-option:hover,
.categoria-option:focus-visible,
.categoria-option.is-active,
.material-option:hover,
.material-option:focus-visible,
.material-option.is-active {
    outline: none;
    background: #edf7f0;
}

.volunteer-picker-option small {
    overflow: hidden;
    color: #6b7d76;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-picker-empty,
.categoria-options .material-options-empty,
.material-options-empty {
    display: block;
    padding: 10px;
    color: #6b7d76;
    font-size: 0.82rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group[data-field="duracao_expiracao"],
.form-group[data-field="unidade_duracao_expiracao"] {
    grid-row: auto;
}

.form-group[data-field="duracao_expiracao"] {
    grid-column: 1;
}

.form-group[data-field="unidade_duracao_expiracao"] {
    grid-column: 2;
}

.form-section-title {
    margin: 24px 0 6px;
    color: #173d31;
    font-size: 1rem;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-help {
    display: block;
    color: #6b7d76;
    font-size: 0.8rem;
    line-height: 1.4;
}

.relationship-help {
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid #cfe4d8;
    border-radius: 10px;
    background: #eef8f1;
    color: #315b4c;
    font-size: 0.88rem;
    line-height: 1.45;
}

.relationship-help strong {
    display: block;
    color: #184936;
    margin-bottom: 4px;
}

.relationship-help p {
    margin: 0;
}

.relationship-warning {
    display: block;
    margin-top: 9px;
    color: #8a5a00;
    font-weight: 700;
}

.relationship-help[hidden] {
    display: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #f7faf8;
}

.detail-grid strong {
    color: #5b6f68;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-grid span {
    color: #173d31;
    font-weight: 700;
}

.muted {
    color: #6b7d76;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #204e42;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7e1dd;
    border-radius: 10px;
    background: #f9fbfa;
    font-size: 1rem;
    color: #173d31;
}

.form-control[readonly] {
    background: #f4f7f5;
    color: #5b6f68;
    cursor: default;
}

.relationship-select {
    min-height: 148px;
    padding: 8px;
    background: #fff;
    line-height: 1.45;
    cursor: pointer;
}

.relationship-select option {
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.relationship-select option:checked {
    background: #dff2e6 linear-gradient(0deg, #dff2e6, #dff2e6);
    color: #184936;
    font-weight: 700;
}

.relationship-search {
    margin-bottom: 8px;
}

.relationship-selected {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #e3ede7;
    border-radius: 9px;
    background: #f7faf8;
}

.relationship-selected-title {
    display: block;
    color: #47615d;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.relationship-selected-title strong {
    color: #1d785d;
}

.relationship-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.relationship-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid #b9dcc8;
    border-radius: 999px;
    background: #e8f6ed;
    color: #184936;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
}

.relationship-chip:hover,
.relationship-chip:focus-visible {
    background: #d8eee0;
    border-color: #1d785d;
}

.relationship-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relationship-chip b {
    font-size: 1rem;
    line-height: 1;
}

select.form-control,
select.select-control {
    appearance: none;
    padding-right: 42px;
    background-color: #f9fbfa;
    background-image:
        linear-gradient(45deg, transparent 50%, #1d785d 50%),
        linear-gradient(135deg, #1d785d 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 52%,
        calc(100% - 13px) 52%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

select.form-control:hover,
select.select-control:hover {
    border-color: #a9c7b8;
}

select.form-control:disabled,
select.select-control:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control:focus {
    outline: 2px solid rgba(22, 115, 89, 0.2);
    border-color: #1d785d;
}

.topic-status-control {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #d7e8dd;
    border-radius: 10px;
    background: #f5faf6;
}

.topic-active-checkbox {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
    accent-color: #1d785d;
}

.topic-status-control label {
    cursor: pointer;
}

.topic-status-control strong {
    color: #184936;
}

.topic-status-help {
    display: block;
    margin-top: 7px;
    color: #5b6f68;
    font-size: 0.82rem;
    line-height: 1.4;
}

.data-hora-input {
    min-height: 46px;
}

.expiration-preview {
    display: grid;
    gap: 4px;
    margin-top: 9px;
    padding: 11px 13px;
    border: 1px solid #cfe4d8;
    border-radius: 9px;
    background: #f3faf5;
    color: #315b4c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.expiration-preview strong {
    color: #184936;
}

.expiration-preview small {
    color: #5b6f68;
}

.current-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8efec;
    color: #46635a;
    font-size: 0.9rem;
    font-weight: 700;
}

.current-status.status-ativo,
.current-status.status-publicado {
    background: #dff2e6;
    color: #176247;
}

.current-status.status-inativo {
    background: #fde3e3;
    color: #a23737;
}

.current-status.status-rascunho {
    background: #fff1cc;
    color: #8a5a00;
}

.current-status.status-arquivado {
    background: #f5dede;
    color: #9b2c2c;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 84px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 4px;
    border: 0;
    background: transparent;
    color: #1b5a46;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(22, 115, 89, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.searchable-select {
    display: grid;
    gap: 8px;
}

.volunteer-search {
    background: #fff;
}

.access-type {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 47px;
    padding: 10px 14px;
    border: 1px solid #cfe4d8;
    border-radius: 10px;
    background: #eef8f1;
    color: #184936;
}

.access-type-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #1d785d;
    box-shadow: 0 0 0 4px #d8eee0;
}

.access-type small {
    margin-left: auto;
    color: #5b766b;
    font-size: 0.72rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.form-link {
    color: #1b5a46;
    text-decoration: none;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e7efe9;
}

/* Componentes compartilhados para as páginas do sistema. */
.system-page {
    background: var(--layout-paper);
    color: var(--texto);
    font-family: var(--fonte-corpo);
}

.system-page .main-panel {
    background: var(--layout-paper);
}

.system-page .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width, 300px);
    z-index: 1100;
    width: auto;
    min-height: 56px;
    margin: 0;
    padding: 8px 20px;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--layout-border);
}

.system-page .main-content {
    padding-top: 84px;
}

.dashboard-page .topbar {
    width: 100%;
    min-height: 73px;
    margin: 0;
    padding: 12px 28px;
}

.system-page.dashboard-page .main-content {
    padding-top: 101px;
}

.system-page .card-grid {
    gap: 14px;
    margin-bottom: 16px;
}

.system-page .card-grid > .card {
    padding: 14px 18px;
    border: 1px solid var(--layout-border, #d0cec8);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    min-width: 0;
}

.system-page .card-grid .metric {
    font-size: 2.5rem;
}

.system-page .card h3 {
    margin-bottom: 8px;
    color: var(--layout-purple);
    font-family: var(--fonte-corpo);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.system-page .metric {
    color: var(--layout-navy);
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.system-page .metric-caption {
    display: block;
    margin-top: 4px;
    color: #6f7075;
    font-size: 0.8rem;
    line-height: 1.4;
}

.system-page .section-heading h2 {
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
}

.system-page .section-heading {
    align-items: center;
}

.system-page .section-heading .form-subtitle {
    color: #6f7075;
    font-size: 0.875rem;
}

.system-page .status-badge,
.system-page .bag-status,
.system-page .team-status {
    font-size: 0.8125rem;
}

.system-page .status-select {
    font-size: 0.875rem;
}

.system-page .volunteer-control {
    margin-bottom: 24px;
}

.system-page .card.volunteer-control:not(.action-detail-section):not(.team-history-section):not(.unified-collections) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.system-page .volunteer-filters {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.system-page .form-group label {
    color: var(--layout-navy);
}

.system-page .form-control {
    min-height: 44px;
    padding: 10px 12px;
    border-color: var(--layout-border);
    border-radius: 6px;
    background-color: var(--layout-paper);
    color: var(--layout-navy);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.system-page .form-control:focus {
    border-color: var(--layout-blue);
    outline: 3px solid rgba(0, 88, 185, 0.18);
}

.system-page select.form-control {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--layout-blue) 50%),
        linear-gradient(135deg, var(--layout-blue) 50%, transparent 50%);
}

.system-page .data-table th {
    color: var(--layout-purple);
}

.system-page .data-table td {
    color: var(--texto);
}

.system-page .section-kicker,
.system-page .form-kicker {
    color: var(--layout-purple);
    font-size: 0.8125rem;
}

.system-page .section-count {
    min-width: 36px;
    height: 36px;
    padding-inline: 10px;
    background: #e8eef8;
    color: var(--layout-blue);
    font-family: var(--fonte-titulo);
    font-size: 1rem;
    font-weight: 700;
}

.system-page .form-group label {
    color: var(--layout-navy);
    font-size: 1rem;
}

.system-page input.form-control,
.system-page select.form-control,
.system-page textarea.form-control {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--layout-border);
    border-radius: 6px;
    background-color: var(--layout-paper);
    color: var(--layout-navy);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.system-page input.form-control:focus,
.system-page select.form-control:focus,
.system-page textarea.form-control:focus {
    border-color: var(--layout-blue);
    outline: 3px solid rgba(0, 88, 185, 0.18);
}

.system-page .estoque-metrica-card h3 {
    margin: 0 0 8px;
    color: var(--layout-purple);
    font-family: var(--fonte-corpo);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .system-page .topbar {
        left: 0;
        width: 100%;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 1300;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, calc(100vw - 56px));
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: 16px 0 18px;
        box-shadow: 12px 0 32px rgba(0, 24, 56, 0.22);
        transform: translateX(-105%);
        transition: transform 0.24s ease, visibility 0s linear 0.24s;
        visibility: hidden;
        will-change: transform;
    }

    .sidebar-resize-handle {
        display: none;
    }

    .sidebar-brand {
        min-height: 72px;
        margin-bottom: 16px;
    }

    .sidebar-nav {
        overscroll-behavior: contain;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1290;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(0, 24, 56, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    .sidebar-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 2px solid var(--azul);
        border-radius: 10px;
        background: var(--papel);
        color: var(--azul);
        cursor: pointer;
        transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .sidebar-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 57, 125, 0.18);
    }

    .sidebar-toggle:active {
        transform: scale(0.94);
    }

    .sidebar-toggle[aria-expanded="true"] {
        background: var(--azul);
        color: #fff;
    }

    .sidebar-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.16s ease;
    }

    .system-page.sidebar-open {
        overflow: hidden;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-open .sidebar-toggle span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .sidebar-open .sidebar-toggle span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-open .sidebar-toggle span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .sidebar-toggle:focus-visible {
        outline: 3px solid rgba(0, 88, 185, 0.25);
        outline-offset: 2px;
    }

    .main-panel {
        width: 100%;
        min-height: 100vh;
    }

    .system-page .topbar {
        left: 0;
        width: 100%;
    }

    .system-page .main-content {
        padding-top: 84px;
    }

    .sidebar-brand {
        justify-content: flex-start;
        min-height: 76px;
        margin-bottom: 14px;
        padding: 0 24px;
    }

    .sidebar-brand-copy strong {
        font-size: 26px;
    }

    .sidebar-group {
        padding-bottom: 18px;
    }

    .main-panel {
        padding: 0;
    }

    .main-content {
        padding: 22px 18px 40px;
    }

    .system-page .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        margin: 0;
        box-shadow: 0 4px 14px rgba(11, 30, 61, 0.1);
    }

    .system-page .topbar {
        margin: 0 0 14px;
    }

    .system-page .main-content {
        padding-top: 129px;
    }

    .system-page.dashboard-page .topbar {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 721px) and (max-width: 900px) {
    .system-page .topbar {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 12px;
        justify-content: initial;
        padding-inline: 16px;
    }

    .system-page .sidebar-toggle {
        grid-column: 1;
        grid-row: 1;
    }

    .system-page .topbar-breadcrumb {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .system-page .topbar-actions {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .system-page .topbar-user {
        flex: 0 1 160px;
        width: 160px;
        min-width: 104px;
    }
}

@media (max-width: 600px) {
    .system-page .topbar {
        margin: 0 0 14px;
        padding-inline: 18px;
    }

    .system-page .section-heading {
        align-items: flex-start;
    }

    .system-page .section-heading-actions {
        justify-content: flex-start;
    }

    .system-page.dashboard-page .topbar {
        width: 100%;
        margin: 0;
        padding-inline: 14px;
    }

    .dashboard-page .main-panel {
        padding: 18px 14px 32px;
    }

    .dashboard-page .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-page .dashboard-action-list li {
        grid-template-columns: 1fr auto;
    }

    .dashboard-page .dashboard-action-time {
        grid-column: 1 / -1;
    }

    .topbar {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: 40px 40px;
        align-items: center;
        gap: 8px 10px;
        min-height: 0;
        padding: 10px 14px;
    }

    .topbar-breadcrumb {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        gap: 8px;
        overflow: hidden;
        font-size: 15px;
    }

    .sidebar-toggle {
        grid-column: 1;
        grid-row: 1;
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .sidebar-toggle span {
        width: 18px;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
    }

    .notification-link {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .notification-link::before {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    .notification-badge {
        top: -6px;
        right: -5px;
        min-width: 19px;
        width: 19px;
        height: 19px;
        padding: 0;
        font-size: 13px;
        line-height: 1;
    }

    .topbar-user {
        flex: 0 1 150px;
        gap: 7px;
        width: auto;
        max-width: 150px;
        height: 40px;
        justify-content: flex-start;
        padding: 2px 7px 2px 2px;
        border-width: 2px;
        border-radius: 8px;
    }

    .topbar-user-initial {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 18px;
        border-radius: 6px;
    }

    .topbar-user-name {
        display: block;
        min-width: 0;
        font-size: 16px;
    }

    .main-content {
        padding: 22px 18px 40px;
    }

    .volunteer-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .residue-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .collection-form-layout {
        grid-template-columns: 1fr;
    }

    .collection-form-heading {
        align-items: flex-start;
    }

    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .volunteer-filters {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group[data-field="duracao_expiracao"],
    .form-group[data-field="unidade_duracao_expiracao"] {
        grid-column: 1;
    }

    .auth-card,
    .form-card {
        padding: 22px 18px;
    }

    .collection-form-section {
        padding: 15px;
    }

    .profile-card {
        padding: 18px 16px;
    }

    .profile-heading {
        align-items: flex-start;
    }

    .profile-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-note {
        max-width: none;
    }
}

@media (max-width: 360px) {
    .topbar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-user {
        flex: 0 0 112px;
        max-width: 112px;
    }

    .topbar-user-name {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    .system-page .topbar {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 10px;
        padding-inline: 14px;
    }

    .topbar-breadcrumb {
        display: flex;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        touch-action: pan-x;
        cursor: grab;
    }

    .topbar-breadcrumb:active {
        cursor: grabbing;
    }

    .topbar-breadcrumb.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .topbar-breadcrumb:focus-visible {
        outline: 2px solid var(--azul);
        outline-offset: 2px;
    }

    .topbar-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .topbar-breadcrumb > a,
    .topbar-breadcrumb > span,
    .topbar-breadcrumb > .breadcrumb-separator {
        flex: 0 0 auto;
    }

    .topbar-breadcrumb > span {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    .topbar-actions {
        min-width: 0;
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .notification-link {
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .profile-page {
        margin-top: 0;
    }

    .profile-heading {
        min-height: 76px;
        gap: 12px;
        margin-bottom: 14px;
    }

    .profile-avatar {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        font-size: 40px;
    }

    .profile-heading h2 {
        font-size: 28px;
    }

    .profile-heading .form-subtitle {
        font-size: 12px;
    }

    .profile-card {
        padding: 16px 14px;
    }

    .profile-section-title {
        font-size: 20px;
    }

    .profile-actions .form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .profile-button {
        flex: 1 1 auto;
    }

    .password-page {
        min-height: auto;
        padding: 24px 0;
    }

    .password-card {
        padding: 22px 18px;
    }

    .password-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .password-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 12px;
    }

    .password-avatar svg {
        width: 34px;
        height: 34px;
    }

    .password-heading h2 {
        font-size: 26px;
    }

    .password-heading .form-subtitle {
        font-size: 12px;
    }

    .password-card .form-actions {
        align-items: center;
        justify-content: flex-start;
        align-content: flex-start;
        padding-top: 4px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .password-card .profile-button {
        flex: 1 1 140px;
    }
}

.audit-cell {
    min-width: 190px;
    white-space: normal !important;
}

.audit-cell strong,
.audit-cell small {
    display: block;
}

.audit-cell small {
    margin-top: 4px;
    color: #6b7d76;
    font-size: 0.76rem;
    line-height: 1.35;
}

.required-indicator {
    color: #a33f39;
    font-weight: 800;
}

.donation-form {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 28px;
}

.donation-form [hidden] {
    display: none !important;
}

.donation-form-heading {
    align-items: flex-start;
    max-width: none;
    margin: 0 0 22px;
}

.donation-form-heading h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.donation-form-heading .form-subtitle {
    max-width: 680px;
}

.donation-page .form-error-summary {
    width: min(100%, 1040px);
    margin: 0 auto 18px;
}

.form-section {
    padding: 20px;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    background: #f8fbf9;
}

.form-section + .form-section {
    margin-top: 16px;
}

.form-section-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-section-heading h3 {
    color: #174d3c;
    margin-bottom: 4px;
}

.form-section-heading p {
    color: #6b7d76;
    font-size: 0.9rem;
}

.form-section-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2f1e8;
    color: #176146;
    font-weight: 700;
    flex-shrink: 0;
}

.form-grid.two-columns,
.material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.donation-primary-grid {
    margin-bottom: 18px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label,
.donation-form > .form-section > label {
    display: block;
    color: #29443a;
    font-weight: 700;
    margin-bottom: 6px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding-top: 30px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #1b684d;
}

.form-control {
    width: 100%;
}

.form-help {
    color: #6b7d76;
    font-size: 0.85rem;
    margin-top: 8px;
}

.inline-donor-card {
    margin: 12px 0 18px;
    padding: 18px;
    border: 1px solid #cfe3d6;
    border-radius: 14px;
    background: #f4faf6;
    box-shadow: inset 4px 0 0 #2d8a68;
}

.inline-donor-card[hidden] {
    display: none;
}

.inline-donor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.inline-donor-heading strong {
    display: block;
    color: #174d3c;
    font-size: 1rem;
}

.inline-donor-heading small {
    display: block;
    margin-top: 4px;
    color: #6b7d76;
    font-size: 0.8rem;
}

.inline-donor-grid {
    gap: 14px;
}

.inline-donor-grid .form-field {
    margin-bottom: 2px;
}

.form-error-summary {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    border-left: 4px solid #b64242;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff0f0;
    color: #7e2929;
}

.form-error-summary ul,
.errorlist {
    margin: 5px 0 0 18px;
    color: #a33333;
    font-size: 0.88rem;
}

.inline-donor-card,
.material-card {
    margin: 14px 0;
    border: 1px solid #cfe0d7;
    border-radius: 12px;
    padding: 16px;
    background: #f7fbf8;
}

.inline-donor-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #174d3c;
    margin-bottom: 12px;
}

.material-card legend {
    padding: 0 8px;
    color: #174d3c;
    font-weight: 700;
}

.material-card .form-field {
    margin-bottom: 8px;
}

.inline-donor-card {
    margin-top: 14px;
    padding: 20px;
    border-color: #c9dfd1;
    border-radius: 16px;
    background: #f1f8f3;
    box-shadow: inset 4px 0 0 #2d8a68;
}

.inline-donor-heading {
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #dce9e0;
}

.inline-donor-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #39765b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inline-donor-heading strong {
    font-size: 1.12rem;
}

.inline-donor-section {
    padding: 16px;
    border: 1px solid #e0ebe3;
    border-radius: 12px;
    background: #fff;
}

.inline-donor-section + .inline-donor-section {
    margin-top: 14px;
}

.inline-donor-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.inline-donor-section-heading .form-section-number {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
}

.inline-donor-section-heading h4 {
    margin: 2px 0 4px;
    color: #173d31;
    font-size: 0.95rem;
}

.inline-donor-section-heading p {
    color: #6b7d76;
    font-size: 0.78rem;
    line-height: 1.4;
}

.inline-donor-contact-note {
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f8f5;
}

.inline-volunteer-picker {
    margin-bottom: 2px;
}

.relationship-picker-option[aria-selected="true"] {
    background: #edf7f0;
    color: #174d3c;
    font-weight: 700;
}

.inline-donor-card .form-help {
    font-size: 0.78rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 24px;
}

@media (max-width: 700px) {
    .form-grid.two-columns,
    .material-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .donation-form {
        padding: 20px 16px;
    }

    .donation-form-heading {
        flex-direction: column;
        gap: 14px;
    }

    .donation-form-heading h2 {
        font-size: 1.6rem;
    }

    .form-section {
        padding: 16px;
    }

    .inline-donor-heading {
        align-items: flex-start;
    }

    .inline-donor-card {
        padding: 15px;
    }

    .inline-donor-section {
        padding: 13px;
    }

    .inline-donor-heading {
        align-items: flex-start;
    }
}

/* Donation module */
.donation-dashboard,
.donation-detail {
    max-width: 1240px;
    margin: 0 auto;
}

.donation-dashboard .section-heading,
.donation-detail .section-heading {
    padding: 24px 26px;
    margin-bottom: 22px;
    border: 1px solid #dce9e1;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
    box-shadow: 0 8px 24px rgba(18, 58, 45, 0.06);
}

.donation-dashboard .section-heading h2,
.donation-detail .section-heading h2 {
    margin-bottom: 5px;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.donation-dashboard .eyebrow,
.donation-detail .eyebrow {
    color: #258060;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#chamada {
    scroll-margin-top: 24px;
}

.donation-page-guidance {
    max-width: 720px;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.45;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #dce9e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 58, 45, 0.06);
}

.stat-card span {
    color: #60756c;
    font-size: 0.82rem;
    font-weight: 700;
}

.stat-card strong {
    color: #174d3c;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.donation-filters,
.donor-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(125px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #dce9e1;
    border-radius: 16px;
    background: #f8fbf9;
}

.donor-clear-filter {
    align-self: center;
    white-space: nowrap;
}

.donor-records {
    padding: 22px;
}

.donation-dashboard .donor-records > .section-heading {
    padding: 0 0 16px;
    margin-bottom: 18px;
    border: 0;
    border-bottom: 1px solid #e3ede7;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.donor-records > .section-heading h2 {
    font-size: 1.25rem;
}

.donor-search-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #f5f9f6;
}

.donor-search-form .form-group {
    margin: 0;
}

.donor-search-form label {
    display: block;
    margin-bottom: 7px;
    color: #38554a;
    font-size: 0.78rem;
    font-weight: 800;
}

.donor-search-form input {
    width: 100%;
    min-height: 44px;
}

.donor-detail-hero {
    max-width: 1240px;
    margin: 0 auto 24px;
}

.detail-status-label {
    color: #5b6f68;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donor-form-heading {
    max-width: 1040px;
    margin: 0 auto 22px;
}

.donor-form-heading .form-subtitle {
    max-width: 680px;
    margin-bottom: 0;
}

.donor-form {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 24px;
}

.donor-form-section {
    padding: 20px;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    background: #f8fbf9;
}

.donor-form-section + .donor-form-section {
    margin-top: 16px;
}

.donor-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.donor-form-section-heading h3 {
    margin-bottom: 4px;
    color: #173d31;
    font-size: 1rem;
}

.donor-form-section-heading p {
    color: #6b7d76;
    font-size: 0.8rem;
    line-height: 1.4;
}

.donor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
}

.donor-form-grid .form-group {
    margin-bottom: 14px;
}

.donor-active-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 13px 14px;
    border: 1px solid #cfe4d8;
    border-radius: 10px;
    background: #eef8f1;
}

.donor-active-field input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: 2px;
    accent-color: #1d785d;
}

.donor-active-field label {
    display: block;
    margin-bottom: 4px;
    color: #184936;
    font-weight: 800;
}

.donor-form-actions {
    justify-content: flex-end;
    margin-top: 20px;
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #38554a;
    font-size: 0.78rem;
    font-weight: 800;
}

.donation-dashboard input:not([type="checkbox"]),
.donation-dashboard .donation-filters select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d9d0;
    border-radius: 9px;
    background-color: #fff;
    color: #243c33;
    font: inherit;
}

.donation-dashboard input:not([type="checkbox"]) {
    padding: 10px 12px;
}

.donation-dashboard .donation-filters select,
.donation-form select {
    appearance: none;
    padding: 10px 38px 10px 12px;
    background-image: linear-gradient(45deg, transparent 50%, #2b7459 50%), linear-gradient(135deg, #2b7459 50%, transparent 50%);
    background-position: calc(100% - 17px) 19px, calc(100% - 11px) 19px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

.donation-dashboard input:focus,
.donation-dashboard .donation-filters select:focus,
.donation-form select:focus {
    border-color: #268060;
    box-shadow: 0 0 0 3px rgba(38, 128, 96, 0.14);
    outline: none;
}

.filter-submit {
    min-height: 44px;
    white-space: nowrap;
}

.donation-records {
    padding: 22px;
}

.donation-dashboard .donation-records > .section-heading {
    padding: 0 0 16px;
    margin-bottom: 18px;
    border: 0;
    border-bottom: 1px solid #e3ede7;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.donation-records > .section-heading h2 {
    font-size: 1.25rem;
}

.donation-records .donation-filters {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border-color: #e3ede7;
    border-radius: 12px;
    background: #f5f9f6;
}

.donation-records .filter-field label {
    margin-bottom: 7px;
    color: #38554a;
    font-size: 0.78rem;
    font-weight: 800;
}

.donation-records-table {
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #fff;
}

.donation-records-table .data-table {
    min-width: 1080px;
}

.donation-records-table .data-table th {
    background: #f5f9f6;
}

.donation-records-table .data-table td:nth-child(3),
.donation-records-table .audit-cell {
    white-space: normal;
}

.donation-records-table .data-table td:nth-child(3) {
    min-width: 150px;
    max-width: 220px;
}

.donation-records-table .audit-cell {
    min-width: 220px;
}

.donation-records-table .donation-value {
    white-space: nowrap;
}

.donation-records-table .status-select {
    max-width: 140px;
}

.donation-records .table-empty {
    padding: 40px 20px;
}

.donation-records .table-empty .form-subtitle {
    margin-bottom: 16px;
}

.donation-summary {
    margin-bottom: 26px;
}

.donation-summary > div {
    min-height: 92px;
    padding: 18px;
    border: 1px solid #dce9e1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 58, 45, 0.04);
}

.donation-summary span {
    display: block;
    margin-bottom: 9px;
    color: #6b7d76;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.donation-summary p {
    color: #203c30;
    font-size: 1rem;
    font-weight: 700;
}

.donation-detail-hero,
.donation-detail-content,
.donation-status-card,
.donation-audit {
    max-width: 1240px;
    margin: 0 auto 20px;
}

.donation-detail-hero {
    padding: 26px;
}

.donation-detail-heading {
    align-items: center;
}

.donation-detail-subtitle {
    margin-top: 8px;
    color: #60756c;
}

.donation-detail-actions {
    flex-wrap: wrap;
}

.donation-detail-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -4px 0 18px;
}

.donation-detail-hero .donation-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.donation-detail-hero .donation-summary > div {
    min-height: 82px;
    padding: 15px;
}

.donation-summary p small {
    display: block;
    margin-top: 5px;
    color: #60756c;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.4;
}

.donor-profile-summary p {
    overflow-wrap: anywhere;
}

.donation-detail-content {
    padding: 24px;
}

.donation-content-heading {
    align-items: center;
    margin-bottom: 18px;
}

.donation-content-heading h2,
.donation-status-card h2 {
    margin: 0 0 5px;
    color: #173d31;
    font-size: 1.2rem;
}

.donation-content-heading .form-subtitle,
.donation-status-card .form-subtitle {
    margin: 0;
}

.donation-financial-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.donation-financial-summary > div,
.donation-note {
    padding: 16px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #f7faf8;
}

.donation-financial-summary span,
.donation-note > span {
    display: block;
    margin-bottom: 7px;
    color: #60756c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.donation-financial-summary strong {
    color: #174d3c;
    font-size: 1.2rem;
}

.donation-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.donation-note p {
    color: #354c43;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.donation-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
}

.donation-status-control {
    margin: 0;
}

.donation-audit {
    padding: 0;
    overflow: hidden;
}

.donation-audit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
}

.donation-audit-summary::-webkit-details-marker {
    display: none;
}

.donation-audit-summary::marker {
    content: "";
}

.donation-audit-summary > span:first-child strong,
.donation-audit-summary > span:first-child small {
    display: block;
}

.donation-audit-summary strong {
    color: #173d31;
    font-size: 1rem;
}

.donation-audit-summary small {
    margin-top: 4px;
    color: #60756c;
}

.donation-audit-toggle {
    flex: 0 0 auto;
    color: #176146;
    font-size: 0.85rem;
    font-weight: 800;
}

.donation-audit-toggle::after {
    display: inline-block;
    margin-left: 8px;
    content: "⌄";
    transition: transform 0.2s ease;
}

.donation-audit[open] .donation-audit-toggle::after {
    transform: rotate(180deg);
}

.donation-audit-summary:focus-visible {
    outline: 3px solid #258060;
    outline-offset: -3px;
}

.donation-audit-content {
    padding: 0 22px 22px;
    border-top: 1px solid #e7efe9;
}

.donation-audit-content .section-heading {
    padding-top: 18px;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.status-confirmada {
    background: #dff3e7;
    color: #176146;
}

.status-pendente {
    background: #fff3d5;
    color: #8b6415;
}

.status-cancelada {
    background: #fde3e3;
    color: #a23737;
}

.donation-detail > h3 {
    margin: 26px 0 12px;
    color: #174d3c;
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-filters,
    .donation-records .donation-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .stats-grid,
    .donation-filters,
    .donor-filters {
        grid-template-columns: 1fr;
    }

    .donation-records {
        padding: 18px;
    }

    .donor-records {
        padding: 18px;
    }

    .donor-search-form {
        grid-template-columns: 1fr;
    }

    .donor-search-form .btn {
        width: 100%;
    }

    .donation-dashboard .section-heading,
    .donation-detail .section-heading {
        padding: 18px;
    }

    .donation-dashboard .donation-records > .section-heading {
        padding: 0 0 14px;
    }

    .donation-dashboard .donor-records > .section-heading {
        padding: 0 0 14px;
    }

    .donation-detail-hero,
    .donation-detail-content {
        padding: 18px;
    }

    .donation-detail-hero .donation-summary,
    .donation-financial-summary {
        grid-template-columns: 1fr;
    }

    .donation-detail-actions,
    .donation-status-card {
        align-items: stretch;
        flex-direction: column;
    }

    .donation-status-control {
        align-items: flex-start;
        flex-direction: column;
    }

    .donation-audit-summary {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .donation-audit-content {
        padding: 0 16px 16px;
    }

    .filter-submit {
        width: 100%;
    }

    .donor-form {
        padding: 18px;
    }

    .donor-form-grid {
        grid-template-columns: 1fr;
    }

    .donor-form-section {
        padding: 16px;
    }

    .donor-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .donor-form-actions .btn {
        width: 100%;
    }
}

.record-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #f7faf8;
}

.record-pagination-summary {
    color: #40594e;
    font-size: 0.86rem;
    font-weight: 700;
}

.record-pagination-summary .muted {
    font-weight: 500;
}

.record-pagination-actions {
    display: flex;
    gap: 8px;
}

.record-pagination-actions .is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.record-pagination a:focus-visible {
    outline: 3px solid #258060;
    outline-offset: 2px;
}

.collection-detail-page {
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.collection-detail-hero,
.collection-detail-items {
    margin-bottom: 20px;
}

.collection-detail-hero {
    background:
        radial-gradient(ellipse at top right, rgba(225, 242, 231, 0.6), transparent 48%),
        #fff;
}

.collection-detail-hero .donation-detail-heading h2 {
    margin: 0;
    color: #173d31;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.collection-detail-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.collection-detail-summary > div {
    min-width: 0;
    min-height: 82px;
    padding: 15px;
}

.collection-detail-summary p {
    margin: 0;
    color: #203c30;
    overflow-wrap: anywhere;
}

.collection-detail-note {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #f7faf8;
}

.collection-detail-note > span {
    display: block;
    margin-bottom: 6px;
    color: #60756c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.collection-detail-note p {
    color: #354c43;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.collection-item-form {
    margin-bottom: 20px;
}

.collection-detail-table {
    min-width: 720px;
}

.collection-detail-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .collection-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .record-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .record-pagination-actions .btn {
        flex: 1;
        text-align: center;
    }

    .collection-detail-summary {
        grid-template-columns: 1fr;
    }

    .collection-detail-page .donation-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .collection-detail-page .donation-detail-actions {
        align-items: stretch;
    }
}

    .residue-records .section-heading {
        align-items: center;
        margin-bottom: 16px;
    }

    .residue-records .section-heading h2 {
        margin-bottom: 5px;
    }

    .residue-filters {
        grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .residue-filters .form-group {
        min-width: 0;
    }

    .residue-records-table {
        border: 1px solid #e5eee8;
        border-radius: 10px;
    }

    .residue-records-table .data-table {
        min-width: 960px;
        table-layout: fixed;
    }

    .residue-records-table .data-table th,
    .residue-records-table .data-table td {
        padding: 12px 10px;
        white-space: normal;
        vertical-align: top;
        overflow-wrap: anywhere;
    }

    .residue-records-table .data-table th:nth-child(1) { width: 11%; }
    .residue-records-table .data-table th:nth-child(2) { width: 10%; }
    .residue-records-table .data-table th:nth-child(3) { width: 21%; }
    .residue-records-table .data-table th:nth-child(4) { width: 23%; }
    .residue-records-table .data-table th:nth-child(5) { width: 18%; }
    .residue-records-table .data-table th:nth-child(6) { width: 17%; }

    .residue-records-table .audit-cell {
        min-width: 0;
    }

    @media (max-width: 600px) {
        .residue-filters {
            grid-template-columns: 1fr;
        }

        .residue-records .section-heading-actions {
            justify-content: space-between;
        }
    }

    .communication-center {
        padding: 26px;
    }

    .communication-center-heading {
        align-items: center;
        margin-bottom: 20px;
    }

    .communication-center-heading h2 {
        margin-bottom: 5px;
    }

    .communication-total {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 13px;
        border-radius: 999px;
        background: #eaf4ee;
        color: #1d624d;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .communication-filters {
        display: grid;
        grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
        align-items: end;
        gap: 14px;
        margin-bottom: 24px;
        padding: 16px;
        border: 1px solid #e3ede7;
        border-radius: 12px;
        background: #f5f9f6;
    }

    .communication-filters .form-group {
        min-width: 0;
        margin-bottom: 0;
    }

    .communication-results-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .communication-results-heading h3 {
        margin: 0;
        color: #173d31;
        font-size: 1rem;
    }

    .communication-results-heading > span {
        color: #6b7d76;
        font-size: 0.82rem;
    }

    .communication-list {
        display: grid;
        gap: 12px;
    }

    .communication-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 20px;
        border: 1px solid #e5eee8;
        border-left: 4px solid #278264;
        border-radius: 12px;
        background: #fff;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    .communication-item:hover {
        border-color: #c7ded1;
        box-shadow: 0 8px 20px rgba(26, 70, 53, 0.07);
        transform: translateY(-1px);
    }

    .communication-item-content {
        min-width: 0;
    }

    .communication-item-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .communication-type,
    .communication-topic {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 3px 9px;
        border-radius: 999px;
        background: #eaf4ee;
        color: #1d624d;
        font-size: 0.72rem;
        font-weight: 750;
    }

    .communication-type-noticia {
        background: #edf1fb;
        color: #415d9b;
    }

    .communication-topic {
        background: #f3f5f3;
        color: #5d7069;
        font-weight: 600;
    }

    .communication-item-meta time {
        margin-left: auto;
        color: #6b7d76;
        font-size: 0.78rem;
    }

    .communication-item h3 {
        margin: 0 0 6px;
        color: #173d31;
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .communication-item h3 a {
        color: inherit;
        text-decoration: none;
    }

    .communication-item h3 a:hover {
        color: #207b5f;
    }

    .communication-item p {
        margin: 0 0 9px;
        color: #5d7069;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .communication-audience {
        color: #6b7d76;
        font-size: 0.78rem;
    }

    .communication-read-link {
        flex-shrink: 0;
    }

    .communication-empty .btn {
        margin-top: 12px;
    }

    @media (max-width: 700px) {
        .communication-center {
            padding: 20px 16px;
        }

        .communication-filters {
            grid-template-columns: 1fr;
        }

        .communication-filters .filter-actions {
            align-items: center;
        }

        .communication-item {
            align-items: stretch;
            flex-direction: column;
            gap: 14px;
            padding: 16px;
        }

        .communication-item-meta time {
            margin-left: 0;
            width: 100%;
        }

        .communication-read-link {
            align-self: flex-start;
        }
    }

    .communication-total.has-unread {
        background: #fff1e8;
        color: #a44e1c;
    }

    .communication-filters {
        grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) auto;
    }

    .communication-item.is-unread {
        border-left-color: #e29a36;
        background: #fffdf8;
    }

    .communication-item.is-unread h3 {
        font-weight: 800;
    }

    .communication-unread-label {
        display: inline-flex;
        vertical-align: middle;
        margin-left: 7px;
        padding: 3px 8px;
        border-radius: 999px;
        background: #fff1e8;
        color: #a44e1c;
        font-size: 0.67rem;
        font-weight: 750;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    @media (max-width: 1000px) {
        .communication-filters {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 700px) {
        .communication-filters {
            grid-template-columns: 1fr;
        }
    }

    .communication-detail {
        display: grid;
        gap: 18px;
        width: min(100%, 1040px);
        margin: 0 auto;
    }

    .communication-detail-hero,
    .communication-detail-body,
    .communication-detail-relations {
        padding: 26px;
    }

    .communication-detail-hero {
        border-top: 4px solid #278264;
    }

    .communication-back-link {
        display: inline-flex;
        margin-bottom: 20px;
        font-weight: 700;
        text-decoration: none;
    }

    .communication-detail-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .communication-read-label {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 3px 9px;
        border-radius: 999px;
        background: #edf5f0;
        color: #547267;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .communication-detail-hero h2 {
        max-width: 820px;
        margin: 0 0 14px;
        color: #173d31;
        font-size: clamp(1.55rem, 3vw, 2.15rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .communication-detail-info {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        color: #60756c;
        font-size: 0.84rem;
    }

    .communication-detail-summary {
        margin: 20px 0 0;
        padding: 14px 16px;
        border-left: 3px solid #a9c7b8;
        border-radius: 0 9px 9px 0;
        background: #f5f9f6;
        color: #36584b;
        font-size: 1rem;
        line-height: 1.6;
    }

    .communication-detail-body-heading {
        margin-bottom: 18px;
    }

    .communication-detail-body-heading h3 {
        margin: 0 0 6px;
        color: #173d31;
        font-size: 1.15rem;
    }

    .communication-detail-body-heading .form-subtitle {
        margin: 0;
    }

    .communication-detail-content {
        color: #33483f;
        font-size: 1rem;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .communication-detail-content > :first-child {
        margin-top: 0;
    }

    .communication-detail-content > :last-child {
        margin-bottom: 0;
    }

    .communication-relation-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 10px;
    }

    .communication-relation {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 5px;
        padding: 14px;
        border: 1px solid #e3ede7;
        border-radius: 10px;
        background: #f8faf8;
        text-decoration: none;
        transition: border-color 0.18s ease, background 0.18s ease;
    }

    .communication-relation:hover {
        border-color: #a9c7b8;
        background: #f1f8f4;
    }

    .communication-relation-kind {
        color: #258060;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .communication-relation strong {
        color: #173d31;
        font-size: 0.92rem;
        overflow-wrap: anywhere;
    }

    .communication-relation small {
        color: #6b7d76;
    }

    .communication-detail-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 4px;
        color: #6b7d76;
        font-size: 0.82rem;
    }

    @media (max-width: 700px) {
        .communication-detail-hero,
        .communication-detail-body,
        .communication-detail-relations {
            padding: 20px 16px;
        }

        .communication-detail-footer {
            align-items: stretch;
            flex-direction: column;
        }

        .communication-detail-footer .btn {
            width: 100%;
        }
    }

.communication-admin-metrics {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    max-width: 1160px;
}

.communication-admin-list,
.communication-topic-list {
    padding: 24px;
}

.communication-admin-list > .section-heading,
.communication-topic-list > .section-heading {
    align-items: center;
    margin-bottom: 18px;
}

.system-page .communication-topic-list > .section-heading {
    align-items: flex-end;
    padding: 0 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
}

.communication-admin-list > .section-heading h2,
.communication-topic-list > .section-heading h2 {
    margin-bottom: 5px;
}

.communication-admin-filters {
    grid-template-columns: minmax(240px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
    margin-bottom: 14px;
}

.communication-admin-filters .form-group {
    min-width: 0;
}

.communication-admin-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 10px;
    color: #173d31;
    font-size: 0.86rem;
}

.communication-admin-table-heading strong {
    color: #6b7d76;
    font-size: 0.78rem;
    font-weight: 600;
}

.communication-admin-table {
    border: 1px solid #e5eee8;
    border-radius: 10px;
}

.communication-admin-table .data-table {
    min-width: 1050px;
    table-layout: fixed;
}

.communication-admin-table .data-table th,
.communication-admin-table .data-table td {
    padding: 12px 10px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.communication-admin-table .data-table th:nth-child(1) { width: 22%; }
.communication-admin-table .data-table th:nth-child(2) { width: 12%; }
.communication-admin-table .data-table th:nth-child(3) { width: 12%; }
.communication-admin-table .data-table th:nth-child(4) { width: 14%; }
.communication-admin-table .data-table th:nth-child(5) { width: 20%; }
.communication-admin-table .data-table th:nth-child(6) { width: 20%; }

.communication-admin-title {
    min-width: 0;
}

.communication-admin-title .communication-type {
    margin-bottom: 6px;
}

.communication-admin-title .table-link,
.communication-admin-title .table-secondary {
    display: block;
}

.communication-admin-table .audit-cell {
    min-width: 0;
}

.communication-admin-actions {
    white-space: nowrap;
}

.communication-admin-actions form {
    display: inline;
    margin: 0 0 0 6px;
}

.communication-topic-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.communication-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.communication-topic-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #fbfdfb;
}

.communication-topic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.communication-topic-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #eaf4ee;
    color: #1d785d;
    font-size: 1.1rem;
    font-weight: 800;
}

.communication-topic-card h3 {
    margin: 0 0 7px;
    color: #173d31;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.communication-topic-card > p {
    flex: 1;
    margin: 0 0 16px;
    color: #60756c;
    font-size: 0.86rem;
    line-height: 1.5;
}

.communication-topic-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e7efe9;
}

.communication-topic-card-footer > span,
.communication-topic-form-count {
    color: #60756c;
    font-size: 0.78rem;
}

.communication-form-card,
.communication-topic-form-card {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 26px;
}

.communication-form-heading,
.communication-topic-form-heading {
    align-items: center;
    margin-bottom: 22px;
}

.communication-form-heading h2,
.communication-topic-form-heading h2 {
    margin-bottom: 5px;
}

.communication-form {
    display: grid;
    gap: 18px;
}

.communication-form-section {
    padding: 20px;
    border: 1px solid #e3ede7;
    border-radius: 12px;
    background: #fff;
}

.communication-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
}

.communication-step {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4ee;
    color: #1d785d;
    font-size: 0.83rem;
    font-weight: 800;
}

.communication-form-section-heading h3 {
    margin: 1px 0 4px;
    color: #173d31;
    font-size: 1rem;
}

.communication-form-section-heading p {
    margin: 0;
    color: #6b7d76;
    font-size: 0.82rem;
    line-height: 1.4;
}

.communication-primary-fields {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.7fr);
}

.communication-display-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.communication-relations-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.communication-relations-fields .form-group {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #e3ede7;
    border-radius: 11px;
    background: #fbfdfb;
}

.communication-relations-fields .form-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.96rem;
}

.communication-relations-fields .relationship-search {
    margin-bottom: 9px;
    background: #fff;
}

.communication-relations-fields .relationship-select {
    width: 100%;
    min-height: 220px;
    padding: 8px 10px;
    border-color: #cbdad1;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.55;
}

.communication-relations-fields .relationship-select option {
    min-height: 32px;
    padding: 7px 10px;
    color: #24483a;
}

.communication-relations-fields .relationship-select option:checked {
    background: #dff2e6 linear-gradient(0deg, #dff2e6, #dff2e6);
    color: #184936;
    font-weight: 750;
}

.communication-relations-fields .relationship-selected {
    padding: 12px 14px;
    background: #f2f8f4;
}

.communication-relations-fields .relationship-selected-title {
    font-size: 0.84rem;
}

.communication-relations-fields .relationship-chip {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.84rem;
}

.communication-relations-fields .form-help {
    line-height: 1.5;
}

.communication-form .relationship-help {
    margin-top: 16px;
}

.communication-related-waste {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #dcebe2;
    border-radius: 9px;
    background: #fff;
}

.communication-related-waste > strong {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.communication-related-waste [data-waste-count] {
    color: #258060;
}

.communication-related-waste p {
    color: #667a72;
    font-size: 0.82rem;
}

.communication-related-waste ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.communication-related-waste li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f2f8f4;
    font-size: 0.8rem;
}

.communication-related-waste li span {
    color: #667a72;
}

.communication-related-donations {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #dcebe2;
    border-radius: 9px;
    background: #fff;
}

.communication-related-donations > strong {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.communication-related-donations [data-donation-count] {
    color: #258060;
}

.communication-related-donations p {
    color: #667a72;
    font-size: 0.82rem;
}

.communication-related-donations ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.communication-related-donations li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f2f8f4;
    font-size: 0.8rem;
}

.communication-related-donations li span {
    color: #667a72;
}

.communication-related-residue {
    padding-top: 4px;
    border-top: 1px solid #e5eee8;
    line-height: 1.45;
}

.communication-related-residue span {
    display: block;
    color: #258060;
    font-size: 0.75rem;
}

.communication-form-actions {
    padding-top: 2px;
}

.communication-topic-form {
    display: grid;
    gap: 18px;
}

.communication-topic-form .communication-form-section {
    background: #fbfdfb;
}

.communication-topic-form .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.communication-topic-form textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.communication-topic-form-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f2;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .communication-admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .communication-relations-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .communication-admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .communication-admin-list,
    .communication-topic-list,
    .communication-form-card,
    .communication-topic-form-card {
        padding: 18px 16px;
    }

    .communication-admin-filters,
    .communication-primary-fields,
    .communication-display-fields,
    .communication-relations-fields {
        grid-template-columns: 1fr;
    }

    .communication-form-section {
        padding: 16px;
    }

    .communication-admin-list > .section-heading,
    .communication-topic-list > .section-heading,
    .communication-form-heading,
    .communication-topic-form-heading {
        align-items: stretch;
    }

    .communication-admin-list .section-heading-actions,
    .communication-topic-list .section-heading-actions {
        justify-content: flex-start;
    }

}

    .bag-detail-page,
    .condominium-detail-page {
        padding-bottom: 8px;
    }

    .bag-detail-hero,
    .condominium-detail-hero {
        background:
            radial-gradient(ellipse at top right, rgba(225, 242, 231, 0.6), transparent 48%),
            #fff;
    }

    .bag-detail-hero .donation-detail-heading h2,
    .condominium-detail-hero .donation-detail-heading h2 {
        margin: 0;
        color: #173d31;
        font-size: clamp(1.45rem, 2.5vw, 2rem);
        overflow-wrap: anywhere;
    }

    .bag-detail-hero .eyebrow,
    .condominium-detail-hero .eyebrow {
        margin-bottom: 7px;
        color: #56806c;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .bag-detail-hero .donation-detail-subtitle,
    .condominium-detail-hero .donation-detail-subtitle {
        max-width: 760px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .detail-status-label {
        color: #60756c;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .condominium-status,
    .condominium-location-tag {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: #e1f2e7;
        color: #176247;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .condominium-status-inativo,
    .condominium-status-bloqueado {
        background: #fbe3e3;
        color: #a33c3c;
    }

    .condominium-location-tag {
        background: #edf4f1;
        color: #426356;
    }

    .bag-detail-hero .bag-summary,
    .condominium-detail-hero .condominium-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bag-detail-hero .bag-summary > div,
    .condominium-detail-hero .condominium-summary > div {
        min-width: 0;
    }

    .bag-detail-hero .bag-summary p,
    .condominium-summary p {
        margin: 0;
        overflow-wrap: anywhere;
    }

    .condominium-summary a {
        color: #176146;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .bag-occupancy-track {
        height: 7px;
        margin-top: 9px;
        overflow: hidden;
        border-radius: 999px;
        background: #e6eee9;
    }

    .bag-occupancy-track > span {
        display: block;
        height: 100%;
        min-width: 2px;
        border-radius: inherit;
        background: linear-gradient(90deg, #64a47c, #258060);
    }

    .bag-detail-section,
    .condominium-detail-section {
        margin-bottom: 16px;
    }

    .bag-detail-table,
    .condominium-detail-table {
        min-width: 760px;
    }

    .bag-detail-table td,
    .condominium-detail-table td {
        vertical-align: top;
        overflow-wrap: anywhere;
    }

    .bag-collection-item {
        display: inline-block;
        margin: 0 5px 5px 0;
        padding: 5px 8px;
        border: 1px solid #e3ede7;
        border-radius: 8px;
        background: #f7faf8;
        color: #34574a;
        font-size: 0.82rem;
    }

    .bag-detail-table .btn-small,
    .condominium-detail-table .btn-small {
        white-space: nowrap;
    }

    .bag-detail-page .donation-audit,
    .condominium-detail-page .donation-audit {
        max-width: 1240px;
    }

    @media (max-width: 980px) {
        .bag-detail-hero .bag-summary,
        .condominium-detail-hero .condominium-summary {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 620px) {
        .bag-detail-hero .bag-summary,
        .condominium-detail-hero .condominium-summary {
            grid-template-columns: 1fr;
        }

        .bag-detail-page .donation-detail-status-row,
        .condominium-detail-page .donation-detail-status-row {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .bag-detail-page .donation-content-heading,
        .condominium-detail-page .donation-content-heading {
            align-items: stretch;
            flex-direction: column;
        }

        .bag-detail-page .donation-content-heading .btn,
        .condominium-detail-page .donation-content-heading .btn {
            width: 100%;
        }
    }

.login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--azul) 0%, var(--azul-profundo) 100%);
    color: var(--texto);
}

.login-page .app-shell {
    min-height: 100vh;
    background: transparent;
}

.login-page .app-shell::before {
    position: fixed;
    top: -208px;
    right: -213px;
    z-index: 0;
    width: 426px;
    height: 417px;
    border-radius: 50%;
    background: rgba(0, 88, 185, 0.55);
    content: "";
    pointer-events: none;
}

.login-page .main-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: transparent;
}

.login-page .main-content {
    width: 100%;
    padding: 0;
}

.auth-login-shell {
    width: 100%;
    min-height: 100%;
    padding: 0;
}

.auth-login-card {
    display: grid;
    width: min(100%, 560px);
    gap: 22px;
    padding: 40px;
    border: 1px solid #d8dde5;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 25, 63, 0.14);
}

.auth-login-heading h1 {
    margin: 0 0 4px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
}

.auth-brand-name {
    margin: 0 0 4px;
    color: var(--azul-profundo);
    font-family: var(--fonte-titulo);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.4;
}

.auth-login-card .auth-subtitle {
    margin: 0;
    color: #586273;
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-login-card form {
    display: grid;
    gap: 16px;
}

.auth-login-card .form-group {
    gap: 8px;
    margin: 0;
}

.auth-login-card .form-group label {
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.auth-login-card .form-control {
    min-height: 60px;
    padding: 14px;
    border: 1px solid #7a8494;
    border-radius: 8px;
    background: #fff;
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.auth-login-card .form-control::placeholder {
    color: #586273;
    opacity: 1;
}

.auth-login-card .form-control:focus {
    border-color: var(--azul);
    outline: 3px solid rgba(0, 88, 185, 0.16);
}

.auth-login-card .password-toggle {
    color: var(--azul);
}

.auth-login-card .password-hint {
    color: #586273;
    font-family: var(--fonte-corpo);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.auth-login-card .auth-password-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--erro);
    border-left-width: 5px;
    border-radius: 14px;
    background: var(--alerta-erro-fundo);
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

.auth-login-card .auth-password-error::before {
    margin-top: 1px;
}

.auth-login-card .auth-password-error p {
    margin: 0;
}

.auth-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 16px;
    margin-top: 2px;
}

.auth-login-note {
    color: #586273;
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--sucesso);
    border-left-width: 5px;
    border-radius: 14px;
    background: var(--alerta-sucesso-fundo);
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.auth-feedback--info {
    border-color: #0058b9;
    background: var(--layout-info-bg);
}

.auth-feedback--warning {
    border-color: #c39b22;
    background: #fceeb4;
}

.auth-feedback--error {
    border-color: var(--erro);
    background: var(--alerta-erro-fundo);
}

.auth-back-link {
    justify-self: start;
    color: var(--azul);
}

.auth-site-link {
    justify-self: center;
}

.auth-site-link-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-recovery-instruction {
    margin: -2px 0 -6px;
    color: #586273;
    font-family: var(--fonte-corpo);
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-recovery-card {
    min-height: 464px;
    align-content: start;
}

.auth-recovery-card--sent {
    min-height: 300px;
}

.auth-login-card .auth-confirmation-link {
    justify-self: center;
    width: fit-content;
    text-align: center;
}

.auth-logout-card {
    gap: 24px;
}

.auth-logout-actions {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.auth-logout-actions .auth-submit-button {
    width: fit-content;
}

.login-page .error-box {
    margin: 0;
}

@media (max-width: 700px) {
    .login-page .main-panel {
        padding: 20px 16px;
    }

    .auth-login-card {
        padding: 28px 22px;
    }

    .auth-login-actions {
        flex-wrap: wrap;
    }

    .auth-login-actions .btn {
        flex: 1 1 150px;
    }
}

.system-page .card {
    box-shadow: none;
}

.donation-dashboard > .section-heading {
    align-items: flex-end;
    padding: 0;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.donation-dashboard > .section-heading h2 {
    margin: 0 0 4px;
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
}

.donation-dashboard > .section-heading .donation-page-guidance {
    margin-top: 0;
}

.donation-dashboard > .section-heading .button-group {
    gap: 12px;
}

.stats-grid {
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 116px;
    padding: 16px;
    border-color: var(--layout-border);
    border-radius: 12px;
    background: var(--layout-paper);
    box-shadow: none;
}

.stat-card span {
    color: var(--layout-purple);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--layout-navy);
    font-family: var(--fonte-titulo);
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.donation-records .donation-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.donation-records .donation-filters .filter-submit {
    min-height: 44px;
    justify-self: start;
    padding-inline: 22px;
}

.donation-dashboard .donor-search-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.donation-dashboard .donor-search-form label,
.donation-records .filter-field label {
    color: var(--layout-navy);
}

.system-page .donor-detail-hero,
.system-page .donor-associated-donations,
.system-page .donation-audit {
    border: 1px solid var(--layout-border);
    border-radius: 14px;
    background: var(--layout-paper);
    box-shadow: none;
}

.donor-detail-hero > .donation-detail-heading {
    padding: 0;
    margin: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.donor-detail-hero .donation-detail-heading h2 {
    margin: 0 0 2px;
    color: var(--layout-purple);
    font-size: 1.25rem;
}

.donor-detail-hero .donation-detail-subtitle {
    margin: 0;
    color: #6f7075;
}

.donor-detail-hero .donation-detail-actions .btn {
    min-height: 40px;
    padding-inline: 18px;
}

.donor-detail-hero .donor-profile-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.donor-detail-hero .donor-profile-summary > div {
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--layout-border);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

.donor-detail-hero .donor-profile-summary span {
    margin-bottom: 4px;
    color: #111;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.donor-detail-hero .donor-profile-summary p {
    color: #6f7075;
    font-size: 0.85rem;
    font-weight: 500;
}

.donor-detail-hero .donation-status-control {
    margin: 0;
}

.donor-detail-hero .donation-status-control .status-select {
    min-height: 28px;
}

.system-page .system-list > .section-heading {
    align-items: flex-end;
    padding: 0 0 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
}

.system-page .system-list > .section-heading h2 {
    margin: 0 0 4px;
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
}

.system-page .system-list > .section-heading .form-subtitle {
    margin: 0;
    color: #6f7075;
}

.system-page .system-list .volunteer-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 0;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.system-page .system-list .volunteer-filters .form-group {
    min-width: min(100%, 180px);
    flex: 1 1 180px;
    margin: 0;
}

.system-page .system-list .volunteer-filters .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--layout-navy);
    font-size: 0.875rem;
    font-weight: 700;
}

.system-page .system-list .volunteer-filters .form-control {
    width: 100%;
    min-height: 44px;
    border-color: var(--layout-border);
    border-radius: 6px;
    background-color: var(--layout-paper);
    color: var(--layout-navy);
    font: inherit;
}

.system-page .system-list .volunteer-filters .filter-actions {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
}

.system-page .volunteer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    align-items: stretch;
    gap: 16px;
}

.system-page .volunteer-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--layout-border);
    border-top: 4px solid var(--layout-blue);
    border-radius: 12px;
    background: #fffdf7;
    box-shadow: 0 5px 16px rgb(11 30 61 / 7%);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.system-page .volunteer-card:hover,
.system-page .volunteer-card:focus-within {
    border-color: var(--layout-blue);
    box-shadow: 0 10px 24px rgb(11 30 61 / 12%);
    transform: translateY(-2px);
}

.system-page .volunteer-card.voluntario-destacado {
    border-color: var(--layout-purple);
    box-shadow: 0 0 0 3px rgb(118 87 203 / 16%);
}

.system-page .volunteer-card-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7e2d8;
}

.system-page .volunteer-card-identity {
    min-width: 0;
}

.system-page .volunteer-card-label,
.system-page .volunteer-card-details dt,
.system-page .volunteer-card-frequency-heading > span {
    color: var(--layout-purple);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.system-page .volunteer-card-identity h3 {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: var(--layout-navy);
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
    line-height: 1.2;
}

.system-page .volunteer-card-identity h3 a {
    color: inherit;
    text-decoration: none;
}

.system-page .volunteer-card-identity h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.system-page .volunteer-card-status {
    flex: 0 0 auto;
}

.system-page .volunteer-card-status .inline-status-form {
    display: flex;
}

.system-page .volunteer-card-status .status-select {
    max-width: 120px;
    min-width: 0;
}

.system-page .volunteer-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 16px 0;
}

.system-page .volunteer-card-details > div {
    min-width: 0;
}

.system-page .volunteer-card-details .volunteer-card-detail-wide {
    grid-column: 1 / -1;
}

.system-page .volunteer-card-details dt {
    margin-bottom: 3px;
}

.system-page .volunteer-card-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--layout-navy);
    font-size: 0.875rem;
    line-height: 1.4;
}

.system-page .volunteer-card-details dd a {
    color: inherit;
    text-decoration-color: var(--borda-neutra-forte);
    text-underline-offset: 2px;
}

.system-page .volunteer-card-frequency {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding: 12px 0;
    border-top: 1px solid #e7e2d8;
}

.system-page .volunteer-card-frequency-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.system-page .volunteer-card-frequency-heading strong {
    color: var(--layout-navy);
    font-size: 0.85rem;
}

.system-page .volunteer-card-frequency-track {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8e5df;
    accent-color: var(--layout-blue);
}

.system-page .volunteer-card-frequency-track::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8e5df;
}

.system-page .volunteer-card-frequency-track::-webkit-progress-value {
    border-radius: 999px;
    background: var(--layout-blue);
}

.system-page .volunteer-card-frequency-track::-moz-progress-bar {
    border-radius: 999px;
    background: var(--layout-blue);
}

.system-page .volunteer-card-frequency > small {
    color: #6f7075;
    font-size: 0.75rem;
}

.system-page .volunteer-card-audit {
    padding: 10px 0;
    border-top: 1px solid #e7e2d8;
}

.system-page .volunteer-card-audit summary {
    color: var(--layout-blue);
    font-size: 0.8rem;
}

.system-page .volunteer-card-audit > div {
    display: grid;
    gap: 4px;
    padding-top: 9px;
}

.system-page .volunteer-card-audit p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #6f7075;
    font-size: 0.75rem;
    line-height: 1.4;
}

.system-page .volunteer-card-audit p strong {
    color: var(--layout-navy);
}

.system-page .volunteer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e7e2d8;
}

.system-page .volunteer-card-actions form {
    margin: 0;
}

.system-page .table-wrap {
    overflow: auto;
    border: 1px solid var(--layout-border);
    border-radius: 10px;
    background: var(--layout-paper);
    scrollbar-color: var(--borda-neutra-forte) var(--layout-paper);
    scrollbar-width: thin;
}

.system-page .data-table {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.system-page .data-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--layout-border);
    background: #f4f8f7;
    color: var(--layout-purple);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.system-page .data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7e2d8;
    background: #ffffff;
    color: var(--texto);
    font-size: 0.875rem;
    vertical-align: middle;
}

.system-page .data-table tbody tr:last-child td {
    border-bottom: 0;
}

.system-page .data-table tbody tr:hover td {
    background: #f1eef9;
}

.system-page .data-table td > small,
.system-page .data-table .table-secondary {
    color: #6f7075;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.system-page .data-table .table-link {
    color: var(--layout-navy);
    font-weight: 700;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.system-page .data-table .table-link:hover {
    color: var(--layout-blue);
    text-decoration-color: currentColor;
}

.system-page .data-table .audit-cell {
    min-width: 200px;
    white-space: normal;
}

.system-page .data-table .audit-cell strong {
    color: var(--layout-navy);
    font-size: 0.875rem;
}

.system-page .data-table .audit-cell small {
    display: block;
    margin-top: 4px;
    color: #6f7075;
    font-size: 0.8125rem;
}

.system-page .data-table .table-actions {
    min-width: 145px;
}

.system-page .system-list .record-pagination {
    border-color: var(--layout-border);
    border-radius: 10px;
    background: #f4f8f7;
}

.system-page .system-list .record-pagination-summary {
    color: var(--layout-navy);
}

.system-page .system-list .record-pagination-summary .muted {
    color: #6f7075;
}

.system-page .system-list .record-pagination a:focus-visible {
    outline-color: var(--layout-blue);
}

.system-page .record-card-grid {
    display: grid;
    align-items: stretch;
    gap: 14px;
}

.system-page .record-card-grid--line {
    grid-template-columns: minmax(0, 1fr);
}

.system-page .record-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--layout-border);
    border-top: 3px solid var(--layout-blue);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgb(11 30 61 / 7%);
}

.system-page .record-card--line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 16px;
    border-top-width: 1px;
    border-left: 4px solid var(--layout-blue);
}

.system-page .record-card--line .record-card-heading {
    display: grid;
    flex: 0 0 220px;
    align-items: start;
    padding: 0;
    border: 0;
}

.system-page .record-card--line .record-card-fields {
    flex: 1 1 420px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    margin: 0;
}

.system-page .record-card--line .record-card-audit,
.system-page .record-card--line .record-card-summary {
    flex: 1 0 100%;
}

.system-page .record-card--line .record-card-audit {
    margin: 0;
}

.system-page .record-card--line .record-card-actions {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border: 0;
}

.system-page .record-card--line .record-card-heading {
    order: 0;
}

.system-page .record-card--line .record-card-fields {
    order: 1;
}

.system-page .record-card--line .record-card-fields {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    gap: 1rem 2rem; /* Espaçamento vertical e horizontal entre os campos */
}

/* Faz o terceiro bloco (Cidade) pular para a linha de baixo */
.system-page .record-card--line .record-card-fields > div:nth-child(3) {
    grid-column: 1 / -1;
}

.system-page .record-card--line .record-card-actions {
    order: 2;
}

.system-page .record-card--line .record-card-summary {
    order: 3;
    margin: 0;
}

.system-page .record-card--line .record-card-audit {
    order: 4;
}

.system-page .record-table-cards {
    display: grid;
    gap: 10px;
    width: 100%;
}

.system-page .record-table-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 3.5fr) auto;
    align-items: center;
    gap: 12px 20px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--layout-border);
    border-left: 4px solid var(--layout-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(11 30 61 / 5%);
}

.system-page .record-table-cards--expandable .record-table-card {
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 4fr) auto;
    align-items: center;
    max-height: 92px;
    overflow: hidden;
    cursor: pointer;
    transition: max-height 180ms ease, box-shadow 180ms ease;
}

.system-page .record-table-cards--expandable .record-table-card-fields {
    align-items: center;
}

.system-page .record-table-cards--expandable .record-table-card-value {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-auto-rows: min-content;
    align-content: start;
    align-items: start;
    max-height: 2000px;
    overflow: visible;
    cursor: default;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-identity,
.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-fields {
    grid-column: 1 / -1;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-fields {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 10px 16px;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-value {
    display: block;
    overflow: visible;
}

.system-page .record-table-card-toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    min-height: 36px;
    padding: 0 12px;
    border: 2px solid var(--layout-blue);
    border-radius: 999px;
    background: #fff;
    color: var(--layout-blue);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-toggle {
    grid-column: 2;
    grid-row: auto;
    justify-self: end;
}

.system-page .record-table-card-toggle:hover,
.system-page .record-table-card-toggle:focus-visible {
    background: #f4f8fb;
}

.system-page .record-table-card-toggle:focus-visible {
    outline: 3px solid rgb(0 88 185 / 24%);
    outline-offset: 2px;
}

.system-page .record-table-card-identity {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 4px;
    min-width: 0;
}

.system-page .record-table-card-label {
    display: block;
    color: var(--layout-purple);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.system-page .record-table-card-value {
    min-width: 0;
    color: var(--layout-navy);
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.system-page .record-table-card-title {
    font-size: 0.98rem;
    font-weight: 700;
}

.system-page .record-table-card-title > a,
.system-page .record-table-card-title .table-link {
    color: var(--layout-navy);
    font-weight: 700;
    text-decoration: none;
}

.system-page .record-table-card-title > a:hover,
.system-page .record-table-card-title .table-link:hover {
    color: var(--layout-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.system-page .record-table-card-title small,
.system-page .record-table-card-value small,
.system-page .record-table-card-value .table-secondary {
    display: block;
    color: #6f7075;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.system-page .record-table-card-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
    align-items: start;
    gap: 10px 16px;
    min-width: 0;
}

.system-page .record-table-card-field {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
}

.system-page .record-table-card-status {
    display: grid;
    grid-template-columns: auto;
    gap: 0;
}

.system-page .record-table-card-status > .record-table-card-label {
    display: none;
}

.system-page .record-table-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.system-page .record-table-card-actions form {
    margin: 0;
}

.system-page .table-wrap.has-record-table-cards {
    height: auto;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.system-page table.data-table[hidden] {
    display: none;
}

.system-page .record-table-cards--limited {
    grid-auto-rows: 66px;
    max-height: 218px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: var(--borda-neutra-forte) var(--layout-paper);
    scrollbar-width: thin;
}

.system-page .record-table-cards--limited .record-table-card {
    height: 66px;
    min-height: 0;
    overflow: hidden;
}

.system-page .record-table-cards--limited .record-table-card-actions {
    align-self: center;
}

.system-page .record-table-card-event {
    align-self: start;
}

.system-page .record-table-card-event .audit-action {
    margin: 0;
}

.system-page .record-card:focus-within {
    border-color: var(--layout-blue);
    box-shadow: 0 0 0 3px rgb(11 79 108 / 12%);
}

.system-page .record-card-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e2d8;
}

.system-page .record-card-heading > div:first-child {
    min-width: 0;
}

.system-page .record-card-eyebrow {
    display: block;
    color: var(--layout-purple);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.4;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.system-page .record-card-heading h3 {
    margin: 3px 0 0;
    color: var(--layout-navy);
    font-family: var(--fonte-titulo);
    font-size: 1.2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.system-page .record-card-heading h3 a {
    color: inherit;
    text-decoration: none;
}

.system-page .record-card-heading h3 a:hover {
    color: var(--layout-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.system-page .record-card-control {
    flex: 0 0 auto;
}

.system-page .record-card-control .inline-status-form {
    display: flex;
    margin: 0;
}

.system-page .record-card-control .status-select {
    max-width: 145px;
    min-width: 0;
}

.system-page .record-card-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 14px 0;
}

.system-page .record-card-fields > div {
    min-width: 0;
}

.system-page .record-card-fields .record-card-field-wide {
    grid-column: 1 / -1;
}

.system-page .record-card-fields dt {
    margin-bottom: 3px;
    color: var(--layout-purple);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.system-page .record-card-fields dd {
    margin: 0;
    color: var(--layout-navy);
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.system-page .record-card-fields dd a {
    color: inherit;
    text-decoration-color: var(--borda-neutra-forte);
    text-underline-offset: 2px;
}

.system-page .record-card-fields dd a:hover {
    color: var(--layout-blue);
}

.system-page .record-card-audit {
    margin-top: auto;
    padding: 10px 0;
    border-top: 1px solid #e7e2d8;
}

.system-page .record-card-audit summary {
    color: var(--layout-blue);
    font-size: 0.875rem;
    cursor: pointer;
}

.system-page .record-card-audit > div {
    display: grid;
    gap: 4px;
    padding-top: 9px;
}

.system-page .record-card-audit p {
    margin: 0;
    color: #6f7075;
    font-size: 0.8125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.system-page .record-card-audit p strong {
    color: var(--layout-navy);
}

.system-page .record-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e7e2d8;
}

.system-page .record-card-actions form {
    margin: 0;
}

.system-page .record-card-summary {
    margin: 12px 0 0;
    color: #4c5663;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.system-page .record-card-progress {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8e5df;
    accent-color: var(--layout-blue);
}

.system-page .record-card-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8e5df;
}

.system-page .record-card-progress::-webkit-progress-value {
    border-radius: 999px;
    background: var(--layout-blue);
}

.system-page .record-card-progress::-moz-progress-bar {
    border-radius: 999px;
    background: var(--layout-blue);
}

.system-page .volunteer-card {
    background: #fff;
}

.system-page .unified-collections .record-table-card,
.system-page .system-list .record-table-card {
    background: #fff;
}

.system-page .main-panel input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.system-page .main-panel select:not(.status-select),
.system-page .main-panel textarea,
.system-page .main-panel .form-control {
    background-color: #fff;
}

.system-page .system-list .volunteer-filters select.form-control {
    background-color: #fff;
}

.system-page .residue-records > .section-heading {
    align-items: flex-start;
    flex-direction: column;
}

.system-page .residue-records > .section-heading .section-heading-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.system-page .residue-records > .section-heading .section-heading-actions .btn {
    flex: 0 0 auto;
}

.system-page .record-card .communication-type {
    display: inline-flex;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .system-page .record-card {
        padding: 14px;
    }

    .system-page .record-card-grid--line,
    .system-page .record-card-grid--block {
        grid-template-columns: minmax(0, 1fr);
    }

    .system-page .record-card--line,
    .system-page .record-table-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .system-page .record-card--line {
        align-items: stretch;
    }

    .system-page .record-card--line .record-card-heading,
    .system-page .record-card--line .record-card-fields,
    .system-page .record-card--line .record-card-actions,
    .system-page .record-card--line .record-card-summary,
    .system-page .record-card--line .record-card-audit {
        flex-basis: 100%;
        margin-left: 0;
    }

    .system-page .record-card--line .record-card-fields {
        grid-column: 1;
        grid-row: auto;
    }

    .system-page .record-card--line .record-card-actions {
        grid-column: 1;
        grid-row: auto;
    }

    .system-page .record-table-card-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-page .record-table-cards--expandable .record-table-card,
    .system-page .record-table-cards--expandable .record-table-card.is-expanded {
        grid-template-columns: minmax(0, 1fr) auto;
        max-height: 120px;
    }

    .system-page .record-table-cards--expandable .record-table-card-fields,
    .system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-fields {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-identity {
        grid-column: 1;
        grid-row: 1;
    }

    .system-page .record-table-cards--expandable .record-table-card-toggle,
    .system-page .record-table-cards--expandable .record-table-card.is-expanded .record-table-card-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .system-page .record-table-cards--expandable .record-table-card.is-expanded {
        max-height: 1000px;
    }

    .system-page .record-table-card-actions {
        justify-content: flex-start;
    }

    .system-page .record-card-heading {
        flex-wrap: wrap;
    }

    .system-page .record-card-control {
        max-width: 100%;
    }

    .system-page .record-card-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .system-page .record-card-fields .record-card-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .system-page .system-list > .section-heading {
        align-items: flex-start;
    }

    .system-page .system-list > .section-heading .section-heading-actions,
    .system-page .system-list > .section-heading .table-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .system-page .system-list .volunteer-filters .form-group {
        flex-basis: 100%;
    }

    .system-page .system-list .volunteer-filters .filter-actions {
        justify-content: flex-start;
    }
}

.donor-associated-donations {
    padding: 18px;
}

.donor-associated-donations .donation-content-heading {
    margin-bottom: 12px;
}

.donor-associated-donations .donation-content-heading h2 {
    color: var(--layout-purple);
}

.system-page .donation-dashboard {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-inline: 0;
}

.system-page .donation-dashboard > .section-heading,
.system-page .donation-dashboard > .stats-grid,
.system-page .donation-dashboard > .donation-records {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.system-page .donation-records-table,
.system-page .donor-records-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 1100px) {
    .system-page .donation-dashboard > .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-page .donation-dashboard > .section-heading .button-group {
        width: 100%;
        justify-content: flex-start;
    }
}

.communication-admin-metrics {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

@media (max-width: 900px) {
    .donation-records .donation-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donor-detail-hero .donor-profile-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .communication-admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .donation-dashboard > .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .donation-dashboard > .section-heading .button-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .donation-dashboard > .section-heading .button-group .btn {
        flex: 1 1 140px;
    }

    .donation-records .donation-filters,
    .donation-dashboard .donor-search-form,
    .donor-detail-hero .donor-profile-summary,
    .communication-admin-metrics {
        grid-template-columns: 1fr;
    }

    .donation-records .donation-filters .filter-submit {
        width: 100%;
    }
}

.system-page .main-panel h2,
.system-page .main-panel h3,
.system-page .main-panel h4 {
    color: var(--layout-purple);
}

.system-page .main-panel .section-heading h2,
.system-page .main-panel .inline-donor-section-heading h4,
.system-page .main-panel .donation-content-heading h2,
.system-page .main-panel .donation-status-card h2,
.system-page .main-panel .donation-detail > h3,
.system-page .main-panel .collection-detail-hero .donation-detail-heading h2,
.system-page .main-panel .communication-topic-card h3,
.system-page .main-panel .communication-form-section-heading h3 {
    color: var(--layout-purple);
}

.system-page .main-panel .profile-eyebrow,
.system-page .main-panel .profile-section-title {
    color: var(--layout-purple);
}

.system-page .main-panel .inline-donor-heading strong,
.system-page .main-panel .material-name-result,
.system-page .main-panel .condominio-identificacao strong,
.system-page .main-panel .bag-identificacao strong,
.system-page .main-panel .estoque-detalhe-resumo strong {
    color: var(--layout-navy);
}

.system-page .main-panel label {
    color: var(--layout-navy);
}

.system-page .main-panel input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="image"], [type="range"], [type="color"]),
.system-page .main-panel select:not(.status-select, .material-select-real),
.system-page .main-panel textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--layout-border);
    border-radius: 8px;
    background-color: #fffdf7;
    color: var(--layout-navy);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.system-page .main-panel select:not(.status-select, .material-select-real, .relationship-select) {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--layout-blue) 50%),
        linear-gradient(135deg, var(--layout-blue) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 52%,
        calc(100% - 13px) 52%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

.system-page .main-panel select.relationship-select {
    width: 100%;
    max-width: 100%;
    min-height: 148px;
    padding: 8px;
    border: 1px solid var(--layout-border);
    border-radius: 8px;
    background-color: #fff;
    background-image: none;
    color: var(--layout-navy);
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.system-page .main-panel input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="image"], [type="range"], [type="color"]):focus,
.system-page .main-panel select:not(.status-select, .material-select-real):focus,
.system-page .main-panel textarea:focus {
    border-color: var(--layout-blue);
    outline: 3px solid rgba(0, 88, 185, 0.18);
}

.system-page .main-panel input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="image"], [type="range"], [type="color"])::placeholder,
.system-page .main-panel textarea::placeholder {
    color: #6f7075;
    opacity: 1;
}

.system-page .main-panel input:disabled,
.system-page .main-panel select:disabled,
.system-page .main-panel textarea:disabled,
.system-page .main-panel input[readonly],
.system-page .main-panel textarea[readonly] {
    background-color: #efede7;
    color: #6f7075;
}

.system-page .main-panel input:disabled,
.system-page .main-panel select:disabled,
.system-page .main-panel textarea:disabled {
    cursor: not-allowed;
}

.system-page .main-panel input[readonly],
.system-page .main-panel textarea[readonly] {
    cursor: default;
}

.system-page .main-panel input[type="checkbox"],
.system-page .main-panel input[type="radio"] {
    accent-color: var(--layout-blue);
}

.system-page .main-panel .campo-invalido label {
    color: #b42318;
}

.system-page .main-panel .campo-invalido input,
.system-page .main-panel .campo-invalido select,
.system-page .main-panel .campo-invalido textarea {
    border-color: #b42318;
    background-color: #fff8f7;
}

.system-page .main-panel .campo-invalido input:focus,
.system-page .main-panel .campo-invalido select:focus,
.system-page .main-panel .campo-invalido textarea:focus {
    outline-color: #b42318;
}

.system-page .main-panel .form-link,
.system-page .main-panel .form-link:hover,
.system-page .main-panel .table-link:hover,
.system-page .main-panel .communication-item h3 a:hover,
.system-page .main-panel .communication-relation-kind,
.system-page .main-panel .communication-topic-icon {
    color: var(--layout-blue);
}

.system-page .main-panel .material-name-result:hover,
.system-page .main-panel .material-name-result:focus,
.system-page .main-panel .communication-relation:hover {
    border-color: #c8d8ec;
    background: #edf2fa;
}

.system-page .main-panel .material-name-result:hover,
.system-page .main-panel .material-name-result:focus {
    outline-color: #c8d8ec;
}

.system-page .main-panel .relationship-chip:hover,
.system-page .main-panel .relationship-chip:focus-visible {
    border-color: var(--layout-blue);
    background: #e8eef8;
}

.system-page .main-panel .communication-item:not(.is-unread) {
    border-left-color: var(--layout-blue);
}

.system-page .main-panel .communication-item:hover {
    border-color: #d6e1f0;
    box-shadow: 0 8px 20px rgba(0, 88, 185, 0.08);
}

.system-page .main-panel .communication-item:not(.is-unread):hover {
    border-left-color: var(--layout-blue);
}

.system-page .main-panel .communication-item.is-unread:hover {
    border-left-color: #e29a36;
}

.system-page .main-panel .communication-total:not(.has-unread),
.system-page .main-panel .communication-type:not(.communication-type-noticia) {
    background: #e8eef8;
    color: var(--layout-blue);
}

.system-page .main-panel .table-link,
.system-page .main-panel .table-link:visited {
    color: var(--layout-navy);
}

.system-page .main-panel .table-link:hover,
.system-page .main-panel .table-link:focus-visible {
    color: var(--layout-blue);
}

.system-page .main-panel .status-select:hover {
    border-color: var(--layout-blue);
    box-shadow: 0 2px 6px rgba(0, 88, 185, 0.12);
}

.system-page .main-panel .status-select:focus,
.system-page .main-panel .type-select:focus,
.system-page .main-panel .funcao-select:focus {
    border-color: var(--layout-blue);
    outline: 3px solid rgba(0, 88, 185, 0.18);
    box-shadow: none;
}

.system-page .form-shell {
    display: block;
    min-height: 0;
    padding: 0;
}

.system-page .form-shell > .form-card,
.system-page .main-panel > .form-card,
.system-page .main-panel > .form-card.estoque-form-card,
.system-page .main-panel > .donation-page > .donation-form,
.system-page .main-panel > .communication-form-card,
.system-page .main-panel > .communication-topic-form-card {
    width: 100%;
    max-width: none;
    padding: 24px;
    border: 1px solid var(--layout-border);
    border-radius: 16px;
    background: var(--layout-paper);
    box-shadow: none;
}

.system-page .form-shell > .form-card > h2,
.system-page .main-panel > .form-card > .section-heading h2,
.system-page .main-panel > .form-card > h2,
.system-page .main-panel > .donation-page > .donation-form > .section-heading h2,
.system-page .main-panel > .communication-form-card > .section-heading h2,
.system-page .main-panel > .communication-topic-form-card > .section-heading h2 {
    margin: 0 0 6px;
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.35rem;
}

.system-page .form-shell > .form-card > .form-subtitle,
.system-page .main-panel > .form-card > .section-heading .form-subtitle,
.system-page .main-panel > .form-card > .form-subtitle {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--layout-border);
    color: #6f7075;
    line-height: 1.5;
}

.system-page .system-form {
    display: grid;
    gap: 18px;
}

.system-page .system-form > .form-section-title {
    padding-bottom: 8px;
    margin: 4px 0 0;
    border-bottom: 1px solid var(--layout-border);
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.05rem;
}

.system-page .main-panel form .form-grid,
.system-page .main-panel form .donor-form-grid {
    align-items: start;
    column-gap: 24px;
    row-gap: 18px;
}

.system-page .form-shell .form-group,
.system-page .system-form .form-group,
.system-page .donation-form .form-group,
.system-page .communication-form .form-group,
.system-page .communication-topic-form .form-group {
    min-width: 0;
    margin-bottom: 0;
}

.system-page .form-actions,
.system-page .donation-form-actions {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--layout-border);
    margin-top: 4px;
}

.system-page .profile-card {
    width: 100%;
    max-width: none;
}

.system-page .estoque-form-card > .section-heading,
.system-page .donation-form-heading,
.system-page .communication-form-heading,
.system-page .communication-topic-form-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
    margin-bottom: 4px;
}

.system-page .estoque-form-card .form-kicker {
    color: var(--layout-purple);
}

.system-page .estoque-form-section,
.system-page .donation-form > .form-section,
.system-page .communication-form-section,
.system-page .donor-form-section,
.system-page .collection-form-section {
    border-color: var(--layout-border);
    border-radius: 12px;
    background: #fffdf7;
}

.system-page .estoque-form-section-heading .form-section-number,
.system-page .donation-form .form-section-number,
.system-page .communication-step,
.system-page .donor-form-section-heading .form-section-number,
.system-page .collection-section-number {
    background: #e8eef8;
    color: var(--layout-blue);
}

.system-page .estoque-form-section-heading h3,
.system-page .donation-form .form-section-heading h3,
.system-page .communication-form-section-heading h3,
.system-page .donor-form-section-heading h3,
.system-page .collection-section-heading h3 {
    color: var(--layout-purple);
}

.system-page .donor-form-section-heading p,
.system-page .collection-section-heading p {
    color: #6f7075;
}

.system-page .donor-active-field {
    border-color: #c8d8ec;
    background: #edf2fa;
}

.system-page .donor-active-field input {
    accent-color: var(--layout-blue);
}

.system-page .donor-active-field label,
.system-page .profile-section-title {
    color: var(--layout-navy);
}

.system-page .profile-heading {
    border-color: var(--layout-border);
}

.system-page .profile-avatar {
    background: #e8eef8;
    color: var(--layout-blue);
}

.system-page .profile-eyebrow {
    color: var(--layout-purple);
}

.system-page .profile-heading h2 {
    color: var(--layout-purple);
}

.system-page .profile-actions {
    border-color: var(--layout-border);
}

.system-page .field-hint,
.system-page .form-help {
    color: #6f7075;
}

.system-page .status-select.status-ativo,
.system-page .status-select.status-ativa,
.system-page .status-select.status-concluida,
.system-page .status-select.status-confirmada,
.system-page .status-select.status-publicado,
.system-page .status-select.status-disponivel,
.system-page .status-select.status-entregue,
.system-page .status-select.status-normal {
    border-color: #bfe5ce;
    background-color: #dff3e7;
    color: #176146;
}

.system-page .main-panel select.status-select {
    width: 140px;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 5px 30px 5px 12px;
    border: 1px solid #c8d8ec;
    border-radius: 999px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--layout-blue) 50%),
        linear-gradient(135deg, var(--layout-blue) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 52%,
        calc(100% - 11px) 52%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    font-family: var(--fonte-corpo);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
    text-transform: none;
}

.system-page .main-panel select.status-select.status-rascunho,
.system-page .main-panel select.status-select.status-pendente,
.system-page .main-panel select.status-select.status-pausado,
.system-page .main-panel select.status-select.status-em_andamento,
.system-page .main-panel select.status-select.status-cheia {
    border-color: #f1d89d;
    background-color: #fff3d5;
    background-image:
        linear-gradient(45deg, transparent 50%, #8b5b12 50%),
        linear-gradient(135deg, #8b5b12 50%, transparent 50%);
    color: #8b5b12;
}

.system-page .main-panel select.status-select.status-arquivado,
.system-page .main-panel select.status-select.status-retirada {
    border-color: #d5dce0;
    background-color: #edf0f2;
    background-image:
        linear-gradient(45deg, transparent 50%, #52616b 50%),
        linear-gradient(135deg, #52616b 50%, transparent 50%);
    color: #52616b;
}

.system-page .main-panel select.status-select.status-inativo,
.system-page .main-panel select.status-select.status-inativa,
.system-page .main-panel select.status-select.status-cancelada,
.system-page .main-panel select.status-select.status-danificada,
.system-page .main-panel select.status-select.status-perdida {
    border-color: #efbcbc;
    background-color: #fde3e3;
    background-image:
        linear-gradient(45deg, transparent 50%, #a23737 50%),
        linear-gradient(135deg, #a23737 50%, transparent 50%);
    color: #a23737;
}

.system-page .main-panel .volunteer-card-status select.status-select {
    width: auto;
    min-width: 86px;
    max-width: 120px;
}

.system-page .main-panel .usuarios-list .volunteer-card-status select.type-select {
    min-width: 132px;
    max-width: 160px;
}

.system-page .status-select:focus {
    outline-color: rgba(0, 88, 185, 0.28);
}

.system-page .main-panel select.bag-status-select {
    width: 152px;
}

@media (max-width: 700px) {
    .system-page .form-shell > .form-card,
    .system-page .main-panel > .form-card,
    .system-page .main-panel > .form-card.estoque-form-card,
    .system-page .main-panel > .donation-page > .donation-form,
    .system-page .main-panel > .communication-form-card,
    .system-page .main-panel > .communication-topic-form-card {
        padding: 18px;
    }

    .system-page .form-actions,
    .system-page .donation-form-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .system-page .form-shell > .form-card,
    .system-page .main-panel > .form-card,
    .system-page .main-panel > .form-card.estoque-form-card,
    .system-page .main-panel > .donation-page > .donation-form,
    .system-page .main-panel > .communication-form-card,
    .system-page .main-panel > .communication-topic-form-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .system-page .form-actions,
    .system-page .donation-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .system-page .form-actions .btn,
    .system-page .donation-form-actions .btn {
        width: 100%;
    }

    .system-page .password-card form .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .system-page .password-card form .form-actions > .profile-button {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-mark,
    .sidebar-brand-copy strong,
    .sidebar-brand-copy small,
    .sidebar-toggle,
    .sidebar-toggle span,
    .notification-link,
    .notification-link::before,
    .notification-icon,
    .topbar-user,
    .topbar-user-initial {
        transition: none;
    }

    .sidebar-brand:hover .brand-mark {
        transform: none;
    }

    .sidebar-toggle:hover,
    .sidebar-toggle:active {
        transform: none;
    }

    .notification-link:hover,
    .notification-link:focus-visible,
    .notification-link:hover .notification-icon,
    .notification-link:focus-visible .notification-icon,
    .topbar-user:hover,
    .topbar-user:focus-visible,
    .topbar-user:hover .topbar-user-initial,
    .topbar-user:focus-visible .topbar-user-initial {
        transform: none;
    }

}

.system-page .record-table-card-event {
    align-self: start;
}

.system-page input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]),
.system-page select:not(.status-select),
.system-page textarea,
.system-page .form-control:not(.status-select) {
    background-color: #fff !important;
}

.system-page .main-panel form .form-grid > .form-group,
.system-page .main-panel form .donor-form-grid > .form-group {
    min-width: 0;
    margin-bottom: 0;
}

.system-page .communication-form-heading,
.system-page .communication-topic-form-heading {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 4px;
}

.system-page .donor-form-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
}

.system-page .main-content > .form-card,
.system-page .main-content > .card.form-card,
.system-page .main-content > .form-shell > .form-card,
.system-page .main-content > .donation-page > .donation-form,
.system-page .main-content > .communication-form-card,
.system-page .main-content > .communication-topic-form-card {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 24px;
    border: 1px solid var(--layout-border);
    border-radius: 16px;
    margin: 0;
    background: #fff;
    box-shadow: none;
}

.system-page .main-content > .form-card > .section-heading,
.system-page .main-content > .form-shell > .form-card > .section-heading,
.system-page .main-content > .donation-page > .donation-form > .section-heading,
.system-page .main-content > .communication-form-card > .section-heading,
.system-page .main-content > .communication-topic-form-card > .section-heading {
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
    margin: 0 0 18px;
}

.system-page .main-content > .form-card > .section-heading h2,
.system-page .main-content > .form-shell > .form-card > h2,
.system-page .main-content > .donation-page > .donation-form > .section-heading h2,
.system-page .main-content > .communication-form-card > .section-heading h2,
.system-page .main-content > .communication-topic-form-card > .section-heading h2 {
    margin: 0 0 6px;
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.35rem;
}

.system-page .main-content > .form-shell > .form-card > .form-subtitle {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--layout-border);
    margin: 0 0 18px;
    color: #6f7075;
    line-height: 1.5;
}

.system-page .main-content > .communication-form-card > .communication-form-heading,
.system-page .main-content > .communication-topic-form-card > .communication-topic-form-heading {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 4px;
}

.system-page .main-content .form-shell form .form-grid,
.system-page .main-content .form-shell form .donor-form-grid,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-grid,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .donor-form-grid,
.system-page .main-content form.form-card .form-grid,
.system-page .main-content form.form-card .donor-form-grid,
.system-page .main-content .communication-form-card form .form-grid,
.system-page .main-content .communication-form-card form .donor-form-grid,
.system-page .main-content .communication-topic-form-card form .form-grid,
.system-page .main-content .communication-topic-form-card form .donor-form-grid,
.system-page .main-content .member-form-panel form .form-grid,
.system-page .main-content .member-form-panel form .donor-form-grid {
    align-items: start;
    column-gap: 24px;
    row-gap: 18px;
}

.system-page .main-content .form-shell form .form-group,
.system-page .main-content .form-shell form .form-field,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-group,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-field,
.system-page .main-content form.form-card .form-group,
.system-page .main-content form.form-card .form-field,
.system-page .main-content .communication-form-card form .form-group,
.system-page .main-content .communication-form-card form .form-field,
.system-page .main-content .communication-topic-form-card form .form-group,
.system-page .main-content .communication-topic-form-card form .form-field,
.system-page .main-content .member-form-panel form .form-group,
.system-page .main-content .member-form-panel form .form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.system-page .main-content .form-shell form .form-group > label,
.system-page .main-content .form-shell form .form-field > label:not(.checkbox-label),
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-group > label,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-field > label:not(.checkbox-label),
.system-page .main-content form.form-card .form-group > label,
.system-page .main-content form.form-card .form-field > label:not(.checkbox-label),
.system-page .main-content .communication-form-card form .form-group > label,
.system-page .main-content .communication-form-card form .form-field > label:not(.checkbox-label),
.system-page .main-content .communication-topic-form-card form .form-group > label,
.system-page .main-content .communication-topic-form-card form .form-field > label:not(.checkbox-label),
.system-page .main-content .member-form-panel form .form-group > label,
.system-page .main-content .member-form-panel form .form-field > label:not(.checkbox-label) {
    margin: 0;
    color: var(--layout-navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.system-page .main-content form .form-section,
.system-page .main-content form .donor-form-section,
.system-page .main-content form .communication-form-section,
.system-page .main-content form .estoque-form-section,
.system-page .main-content form .collection-form-section {
    padding: 20px;
    border: 1px solid var(--layout-border);
    border-radius: 12px;
    background: #fffdf7;
}

.system-page .main-content form .form-section-title {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--layout-border);
    margin: 4px 0 0;
    color: var(--layout-purple);
    font-family: var(--fonte-titulo);
    font-size: 1.05rem;
}

.system-page .main-content .form-shell form .form-help,
.system-page .main-content .form-shell form .field-hint,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-help,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .field-hint,
.system-page .main-content form.form-card .form-help,
.system-page .main-content form.form-card .field-hint,
.system-page .main-content .communication-form-card form .form-help,
.system-page .main-content .communication-form-card form .field-hint,
.system-page .main-content .communication-topic-form-card form .form-help,
.system-page .main-content .communication-topic-form-card form .field-hint,
.system-page .main-content .member-form-panel form .form-help,
.system-page .main-content .member-form-panel form .field-hint {
    color: #6f7075;
    line-height: 1.45;
}

.system-page .main-content .form-shell form .form-actions,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions,
.system-page .main-content form.form-card .form-actions,
.system-page .main-content .communication-form-card form .form-actions,
.system-page .main-content .communication-topic-form-card form .form-actions,
.system-page .main-content .member-form-panel form .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-flow: row wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--layout-border);
    margin: 4px 0 0;
}

.system-page .main-content .form-shell form .form-actions > .btn,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions > .btn,
.system-page .main-content form.form-card .form-actions > .btn,
.system-page .main-content .communication-form-card form .form-actions > .btn,
.system-page .main-content .communication-topic-form-card form .form-actions > .btn,
.system-page .main-content .member-form-panel form .form-actions > .btn {
    order: 1;
}

.system-page .main-content .form-shell form .form-actions > .btn-primary,
.system-page .main-content .form-shell form .form-actions > button[type="submit"],
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions > .btn-primary,
.system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions > button[type="submit"],
.system-page .main-content form.form-card .form-actions > .btn-primary,
.system-page .main-content form.form-card .form-actions > button[type="submit"],
.system-page .main-content .communication-form-card form .form-actions > .btn-primary,
.system-page .main-content .communication-form-card form .form-actions > button[type="submit"],
.system-page .main-content .communication-topic-form-card form .form-actions > .btn-primary,
.system-page .main-content .communication-topic-form-card form .form-actions > button[type="submit"],
.system-page .main-content .member-form-panel form .form-actions > .btn-primary,
.system-page .main-content .member-form-panel form .form-actions > button[type="submit"] {
    order: 2;
}

@media (max-width: 700px) {
    .system-page .main-content > .form-card,
    .system-page .main-content > .card.form-card,
    .system-page .main-content > .form-shell > .form-card,
    .system-page .main-content > .donation-page > .donation-form,
    .system-page .main-content > .communication-form-card,
    .system-page .main-content > .communication-topic-form-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .system-page .main-content > .form-card,
    .system-page .main-content > .card.form-card,
    .system-page .main-content > .form-shell > .form-card,
    .system-page .main-content > .donation-page > .donation-form,
    .system-page .main-content > .communication-form-card,
    .system-page .main-content > .communication-topic-form-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .system-page .main-content .form-shell form .form-actions,
    .system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions,
    .system-page .main-content form.form-card .form-actions,
    .system-page .main-content .communication-form-card form .form-actions,
    .system-page .main-content .communication-topic-form-card form .form-actions,
    .system-page .main-content .member-form-panel form .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .system-page .main-content .form-shell form .form-actions > .btn,
    .system-page .main-content .form-card:not(.profile-card):not(.password-card) form .form-actions > .btn,
    .system-page .main-content form.form-card .form-actions > .btn,
    .system-page .main-content .communication-form-card form .form-actions > .btn,
    .system-page .main-content .communication-topic-form-card form .form-actions > .btn,
    .system-page .main-content .member-form-panel form .form-actions > .btn {
        width: 100%;
    }
}

/* ── Cards da listagem de usuários ──────────────────────────────── */

.system-page .usuarios-list .volunteer-card-heading {
    border-bottom-color: var(--layout-border);
}

/* Badge de tipo de usuário no status — usa variáveis do design system */
.system-page .usuarios-list .type-select.type-admin {
    background-color: var(--selecionado-fundo);
    color: var(--roxo);
    font-weight: 700;
}

.system-page .usuarios-list .type-select.type-coordenador {
    background-color: var(--alerta-aviso-fundo);
    color: var(--azul-profundo);
    font-weight: 700;
}

.system-page .usuarios-list .type-select.type-voluntario {
    background-color: var(--layout-paper);
    color: var(--texto);
    font-weight: 700;
}

/* Sublabel genérico nos cards (usado por ação, estoque) */
.system-page .volunteer-card-sublabel {
    display: block;
    margin-top: 2px;
    color: var(--roxo);
    font-size: 0.8rem;
    font-family: var(--fonte-corpo);
    font-weight: 600;
    line-height: 1.3;
}
