/* Modo oscuro para comprobante de operación */
[data-theme="dark"] .section-card {
    border-color: #304251;
    background: #182936;
    box-shadow: 0 16px 32px -28px rgba(0,0,0,0.8);
}
[data-theme="dark"] .section-title {
    color: #9eb8c9;
}
[data-theme="dark"] .summary-item {
    border-color: #304251;
    background: #22384a;
}
[data-theme="dark"] .summary-item .label {
    color: #9eb8c9;
}
[data-theme="dark"] .summary-item .value {
    color: #eef7fd;
}
[data-theme="dark"] .barcode-panel {
    border-color: #406074;
    background: linear-gradient(180deg, #182936 0%, #12222d 100%);
}
[data-theme="dark"] .barcode-value {
    color: #e4f0f8;
}
[data-theme="dark"] .barcode-render {
    background: #ffffff;
    border-color: #406074;
}
[data-theme="dark"] .table-wrap {
    border-color: #304251;
    background: #182936;
}
[data-theme="dark"] .table-wrap thead th {
    background: #22384a;
    color: #b7d0e6;
    border-bottom-color: #304251;
}
[data-theme="dark"] .table {
    color: #e4f0f8;
}
[data-theme="dark"] .text-muted-brand {
    color: #9eb8c9 !important;
}

/* Estilos en modo claro por defecto */
.content-stage {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 0 0.75rem;
}
.section-card {
    border: 1px solid #e4ebf2;
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px -18px rgba(0, 0, 0, 0.35);
    min-width: 0;
}
.section-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7E8080;
    margin-bottom: 0.8rem;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.summary-item {
    border: 1px solid #e8eef4;
    border-radius: 12px;
    background: #f8fbfd;
    padding: 0.7rem 0.85rem;
    min-width: 0;
}
.summary-item .label {
    font-size: 0.76rem;
    color: #7E8080;
    margin-bottom: 0.2rem;
}
.summary-item .value {
    color: #446078;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.barcode-panel {
    border: 1px dashed #c7d5e4;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.barcode-label {
    font-size: 0.76rem;
    color: #7E8080;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.barcode-value {
    color: #2c455c;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}
.barcode-render {
    display: block;
    max-width: min(100%, 420px);
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.55rem;
    border: 1px solid #d9e4ef;
}
.barcode-render svg {
    display: block;
    width: 100%;
    height: auto;
}
.table-wrap {
    border: 1px solid #e8eef4;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}
.table-wrap table {
    margin-bottom: 0;
    min-width: 980px;
}
.table-wrap thead th {
    background: #f7fafc;
    border-bottom-color: #e8eef4;
    font-size: 0.82rem;
    color: #446078;
}
@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}