/* -- Padding de página (Front/docs/style-guide/dashboards.md §Page padding) --
   Raíz de página = var(--dacs-page-pad). .dacs-page para páginas sin clase raíz propia;
   .content (tema) como raíz directa de .content-inner: mismo valor en vez de su 1rem 1.25rem. */
.dacs-page { padding: var(--dacs-page-pad); }
.content-inner > .content { padding: var(--dacs-page-pad); }

/* ── Loader.razor ── */
.loader-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader
{
    text-align: center;
    color: white;
}

/* ── SideBar.razor ── */
.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar.sidebar-main,
body.sidebar-main-resized:not(.sidebar-main-unfold) .sidebar.sidebar-main {
    --bs-sidebar-width: calc(calc(var(--bs-spacer) * 2) + var(--bs-icon-font-size) + 32px) !important;
}
.sidebar-main-resized:not(.sidebar-main-unfold) + *,
body.sidebar-main-resized:not(.sidebar-main-unfold) .page-content {
    margin-left: calc(calc(var(--bs-spacer) * 2) + var(--bs-icon-font-size) + 32px) !important;
}

/* ── NavBar.razor ── */
/* The theme sizes any .navbar-brand img to the body line-height (~24px). That is too small for this
   logo: it carries the "TECNICAS REUNIDAS" wordmark inside the image itself, so at 24px tall the
   lettering is unreadable. Scoped to this one img so the rest of the theme's brand sizing is untouched.
   The brand block is pulled left so the logo sits closer to the sidebar column. */
.navbar-brand .navbar-tr-logo {
    height: 2.25rem;
    width: auto;
    max-width: 100%;
}

.navbar-brand:has(.navbar-tr-logo) {
    margin-left: -1rem;
}

/* "D A C S" title. nowrap: at 375 px the spaced letters wrapped onto two lines (hallazgo navbar-movil). */
.navbar-app-title {
    background: transparent;
    cursor: default;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .navbar-app-title { letter-spacing: 0.2em; }
}

/* ── Back-to-top button (theme app.js: .btn-to-top, absolute bottom-right of .content-wrapper) ── */
/* Covered the last footer actions (e.g. "Save exceptions") once scrolled to the end. While it is visible
   (only after 250 px of scroll, so full-height pages never get it) reserve its height below the content. */
.content-wrapper:has(> .btn-to-top-visible) > .content-inner {
    padding-bottom: 4rem;
}

/* ── DataProcessingConsentModal.razor ── */
.dpc-modal .dpc-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── AlertsBell.razor ── */
.alb-dot { display:inline-block; width:.55rem; height:.55rem; border-radius:50%; flex-shrink:0; }
