/* SmartDatum overrides (loaded after app.min.css) */

/* Slightly darker gray page background in light theme so white cards/tables stand out. */
html:not([data-bs-theme="dark"]) {
    --bs-body-bg: #e3e8ee;
    --bs-body-bg-rgb: 227, 232, 238;
}

html:not([data-bs-theme="dark"]) body {
    background-color: #e3e8ee;
}

/* Give cards a touch more separation from the darker ground. */
html:not([data-bs-theme="dark"]) .card {
    border-color: #d9e0e7;
    box-shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 4px 16px rgba(16, 32, 48, .05);
}

/* Horizontal (topnav) layout: content must use the full page width (no sidebar offset). */
html[data-layout="topnav"] .content-page {
    margin-left: 0 !important;
    width: 100% !important;
}
html[data-layout="topnav"] .topnav .navbar,
html[data-layout="topnav"] .content-page > .container-fluid {
    width: 100%;
}

/* CFDI report tables (emitidos / recibidos / nómina / conceptos / búsqueda UUID):
   compact 12px text and a visible line separating each row. */
table.cfdi-report th,
table.cfdi-report td {
    font-size: 12px;
    padding-top: .3rem;
    padding-bottom: .3rem;
}
table.cfdi-report tbody tr {
    border-bottom: 1px solid var(--bs-border-color);
}
/* Distinct, colored header so it stands apart from the striped data rows. */
table.cfdi-report thead th,
table.cfdi-report tfoot th {
    background-color: #d7e3f4 !important;
    color: #1f2d3d !important;
    font-weight: 600;
    border-bottom: 2px solid #b6c6de !important;
    white-space: nowrap;
}
html[data-bs-theme="dark"] table.cfdi-report thead th,
html[data-bs-theme="dark"] table.cfdi-report tfoot th {
    background-color: #2b3140 !important;
    color: #e8edf3 !important;
    border-bottom-color: #3b4557 !important;
}
