:root {
    --bg: #efe6d1;
    --bg-2: #e2d4b3;
    --panel: rgba(255, 250, 240, 0.86);
    --panel-strong: #fffaf0;
    --line: rgba(83, 59, 19, 0.12);
    --text: #201a12;
    --muted: #6f5a33;
    --accent: #8a5a16;
    --accent-dark: #59380b;
    --success: #1f6a42;
    --error: #8e2f20;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(218, 173, 96, 0.35), transparent 30%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: clamp(24px, 7vh, 64px) 24px 24px;
}

.sidebar {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 28px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--accent-dark) 0%, color-mix(in srgb, var(--accent-dark) 86%, #000000 14%) 100%);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
    color: var(--panel-strong);
    text-decoration: none;
    text-align: center;
    font-size: clamp(1.05rem, 0.7rem + 1vw, 1.45rem);
    font-weight: bold;
    line-height: 1.15;
}

.brand span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.brand-logo {
    flex: 0 0 auto;
    inline-size: min(100%, clamp(132px, 14vw, 180px));
    block-size: clamp(72px, 6vw, 92px);
    max-inline-size: 100%;
    object-fit: contain;
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 16%, transparent);
    padding: 8px 12px;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--panel-strong);
    text-decoration: none;
    background: color-mix(in srgb, var(--panel-strong) 8%, transparent);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
    background: color-mix(in srgb, var(--panel-strong) 16%, transparent);
    transform: translateX(2px);
}

.content {
    min-width: 0;
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.topbar > div {
    min-width: 0;
}

.topbar form {
    margin: 0;
    flex: 0 0 auto;
}

.topbar-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.topbar-userline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.topbar-username {
    display: inline;
    margin-top: 0;
}

.logout-button {
    width: auto;
    margin-top: 0;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-head > div {
    min-width: 0;
}

.eyebrow,
.label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--muted);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--text);
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem);
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
}

.lead {
    color: var(--muted);
    max-width: 72ch;
}

.grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 24px;
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(53, 36, 12, 0.08);
    backdrop-filter: blur(8px);
}

.form-panel {
    overflow: hidden;
}

.table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.list-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.list-search-form input[type="search"] {
    flex: 1 1 280px;
}

.status-card {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(53, 36, 12, 0.08);
}

.status-card strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-dark);
}

.module-card {
    display: block;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(53, 36, 12, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px rgba(53, 36, 12, 0.12);
    border-color: rgba(138, 90, 22, 0.25);
}

.module-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.auth-card {
    width: min(100%, 560px);
}

.flash {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.9);
}

.flash.success {
    border-color: rgba(31, 106, 66, 0.3);
    background: rgba(31, 106, 66, 0.1);
    color: var(--success);
}

.flash.error {
    border-color: rgba(142, 47, 32, 0.28);
    background: rgba(142, 47, 32, 0.1);
    color: var(--error);
}

form {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-form-grid {
    grid-template-columns: 1fr;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
}

label span {
    font-weight: bold;
}

small {
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 250, 240, 0.92);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(138, 90, 22, 0.35);
    box-shadow: 0 0 0 4px rgba(138, 90, 22, 0.12);
}

button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

button {
    background: var(--accent);
    color: var(--panel-strong);
    box-shadow: 0 14px 28px rgba(89, 56, 11, 0.18);
}

button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-1px);
}

.secondary-button {
    background: rgba(255, 250, 240, 0.92);
    color: var(--accent-dark);
    border: 1px solid var(--line);
}

.danger-button {
    background: var(--error);
    color: var(--panel-strong);
}

.action-button {
    width: auto;
    padding: 10px 14px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delete-form {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

thead th {
    text-align: left;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
}

tbody td,
tbody th {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(83, 59, 19, 0.08);
    vertical-align: top;
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 0;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.6);
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.check-item input {
    width: auto;
    margin: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(24, 16, 5, 0.46);
    backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
    display: none !important;
}

.confirm-modal {
    width: min(100%, 460px);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 58px rgba(27, 18, 5, 0.2);
}

.confirm-modal-text,
.confirm-modal-summary span {
    color: var(--muted);
}

.confirm-modal-summary {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.7);
}

.confirm-modal-summary strong {
    display: block;
    margin-top: 6px;
}

.confirm-modal-actions {
    margin-top: 0;
}

.parish-theme-grid {
    align-items: start;
}

.palette-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.62);
}

.palette-toolbar-title {
    display: block;
    font-weight: 700;
    color: var(--text);
}

.palette-toolbar-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.color-field {
    display: grid;
    gap: 8px;
}

.color-field-row,
.rgba-field-grid {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.rgba-field-grid {
    grid-template-columns: 72px minmax(120px, 160px) 1fr;
}

.color-swatch-input {
    width: 100%;
    min-height: 48px;
    padding: 4px;
}

.opacity-field {
    display: grid;
    gap: 6px;
    align-items: center;
}

.opacity-field span {
    font-size: 0.82rem;
    color: var(--muted);
}

.opacity-field input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.parish-preview-panel {
    position: sticky;
    top: 24px;
}

.parish-preview {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    min-height: 360px;
    display: grid;
    grid-template-columns: 170px 1fr;
}

.parish-preview-sidebar {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parish-preview-brand {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 14px;
}

.parish-preview-nav {
    opacity: 0.9;
}

.parish-preview-main {
    padding: 20px;
    display: grid;
    align-items: center;
}

.parish-preview-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}

.parish-preview-label {
    display: inline-block;
    margin-bottom: 10px;
}

.parish-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.parish-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 10px 14px;
    border-radius: 14px;
}

.logo-upload-preview {
    display: grid;
    gap: 10px;
}

.brand-logo-preview {
    width: min(220px, 100%);
    max-height: 120px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.96);
    padding: 12px;
}

body.print-body {
    min-height: auto;
    background: #f5efe1;
}

.print-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 28px;
}

.print-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 18px 48px rgba(53, 36, 12, 0.08);
}

.print-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.print-meta {
    text-align: right;
    color: var(--muted);
    font-size: 0.95rem;
}

.print-section-title {
    margin: 0 0 14px;
}

.palette-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.topbar-parish {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}

.topbar-parish-switch {
    margin: 0 0 8px;
}

.topbar-parish-switch select {
    min-width: min(100%, 360px);
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0 28px 6px 0;
    box-shadow: none;
}

.topbar-parish-switch select:focus {
    border-color: var(--accent);
    box-shadow: none;
}
@media (max-width: 1100px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-bottom: 22px;
    }

    .nav {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .content {
        padding: 24px;
    }

    .stats-grid,
    .module-grid,
    .two-col,
    .form-grid,
    .parish-preview,
    .color-field-row {
        grid-template-columns: 1fr;
    }

    .rgba-field-grid {
        grid-template-columns: 1fr;
    }

    .action-row,
    .table-actions,
    .topbar,
    .confirm-modal-actions,
    .page-head,
    .print-header,
    .list-search-form,
    .palette-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .parish-preview-panel {
        position: static;
    }

    .brand {
        width: min(100%, 320px);
        margin-inline: auto;
    }

    table {
        min-width: 100%;
    }
}

@media (max-width: 700px) {
    html {
        font-size: 15px;
    }

    .auth-shell,
    .content,
    .sidebar,
    .print-shell {
        padding: 18px;
    }

    .panel,
    .print-card,
    .confirm-modal,
    .status-card,
    .module-card {
        padding: 18px;
        border-radius: 18px;
    }

    .nav {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav a,
    .secondary-button,
    .danger-button,
    button,
    .action-button {
        width: 100%;
    }

    .table-actions,
    .action-row {
        gap: 8px;
    }

    .table-actions > *,
    .action-row > * {
        width: 100%;
    }

    .table-panel {
        margin-inline: -6px;
        padding-inline: 6px;
    }

    table {
        min-width: 560px;
    }

    th,
    td {
        font-size: 0.92rem;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        inline-size: min(100%, 168px);
        block-size: 84px;
    }


    .auth-card {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .nav {
        grid-template-columns: 1fr;
    }

    .page-head {
        gap: 14px;
    }

    .palette-toolbar-actions {
        justify-content: stretch;
    }

    .palette-toolbar-actions > * {
        width: 100%;
    }

    .confirm-modal {
        padding: 16px;
    }

    table {
        min-width: 520px;
    }
}

@media print {
    body.print-body {
        background: #ffffff;
    }

    .print-shell {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .print-card,
    .panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff;
        padding: 0;
    }
}


.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pagination-summary {
    margin: 0;
    color: var(--muted);
}

.pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.sort-link:hover {
    text-decoration: underline;
}


@media print {
    .two-col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}






@media print {
    .print-card {
        display: block !important;
    }

    .print-card > .panel {
        display: block !important;
        margin-bottom: 18px !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-header {
        display: block !important;
        margin-bottom: 18px !important;
    }

    .print-meta {
        margin-top: 10px !important;
        text-align: left !important;
    }

    table,
    tbody,
    tr,
    th,
    td {
        page-break-inside: avoid;
    }
}

@page {
    size: auto;
    margin: 12mm;
}

@media print {
    html,
    body.print-body {
        width: auto !important;
        min-height: auto !important;
        background: #ffffff !important;
    }

    .print-shell {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-card,
    .panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .print-card > .panel {
        margin: 0 0 18px 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-header {
        display: block !important;
        margin-bottom: 18px !important;
    }

    .print-meta {
        margin-top: 10px !important;
        text-align: left !important;
    }

    .grid,
    .two-col {
        display: block !important;
    }

    table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    tbody,
    tr,
    th,
    td {
        page-break-inside: avoid;
    }

    th,
    td {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        vertical-align: top !important;
    }
}

.print-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

@media print {
    .no-print {
        display: none !important;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    .shell {
        display: block !important;
        min-height: auto !important;
    }

    .sidebar,
    .topbar,
    .flash,
    .page-head .action-row,
    .no-print {
        display: none !important;
    }

    .content {
        padding: 0 !important;
        min-width: 0 !important;
    }

    .page-head {
        display: block !important;
        margin-bottom: 18px !important;
    }

    .page-head .eyebrow {
        margin-bottom: 6px !important;
    }

    .grid,
    .two-col {
        display: block !important;
    }

    .panel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 0 18px 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
        overflow: visible !important;
    }

    table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    th,
    td {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        vertical-align: top !important;
        page-break-inside: avoid;
    }
}

@media print {
    .grid.two-col {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .grid.two-col > .panel {
        margin: 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .content {
        padding: 0 !important;
    }

    h1 {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }

    h2 {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }

    .panel,
    .page-head {
        margin-bottom: 12px !important;
    }

    th,
    td {
        font-size: 0.84rem !important;
        padding: 6px 8px !important;
    }
}

.print-only {
    display: none;
}

.screen-only {
}

@media print {
    .screen-only {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }
}

@media print {
    .screen-only,
    .screen-only.grid,
    .screen-only.two-col,
    .screen-only.grid.two-col {
        display: none !important;
    }

    .print-only,
    .print-only.grid,
    .print-only.two-col {
        display: block !important;
    }
}

@media print {
    .print-compact-panel {
        margin: 0 !important;
    }

    .print-compact-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .print-compact-table th,
    .print-compact-table td {
        font-size: 0.8rem !important;
        padding: 5px 6px !important;
    }

    .print-compact-table th {
        width: 18% !important;
    }
}

.nested-panel {
    margin-top: 18px;
}

.section-head.compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.stacked-detail-list {
    display: grid;
    gap: 14px;
}

.detail-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    padding: 14px;
}

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

.detail-item-actions {
    margin-top: 10px;
    justify-content: flex-end;
}

.empty-inline-note {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 700px) {
    .section-head.compact-head,
    .detail-item-grid {
        grid-template-columns: 1fr;
    }

    .section-head.compact-head {
        align-items: stretch;
    }
}
.detail-item-grid-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.detail-inline-action {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.detail-inline-action .danger-button {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .detail-item-grid-actions {
        grid-template-columns: 1fr;
    }

    .detail-inline-action {
        justify-content: stretch;
    }

    .detail-inline-action .danger-button {
        width: 100%;
    }
}
.etapa-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.stacked-detail-list .etapa-item:first-child {
    padding-top: 0;
}

.stacked-detail-list .etapa-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.detail-table-head {
    display: grid;
    gap: 14px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.etapa-table-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.inline-field > span {
    display: none;
}

.etapa-table-list {
    gap: 0;
}

@media (max-width: 700px) {
    .detail-table-head {
        display: none;
    }

    .inline-field > span {
        display: block;
    }
}
.topbar-parroco {
    display: block;
    margin-top: 4px;
    margin-bottom: 6px;
    font-weight: 600;
}
