@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/montserrat/montserrat-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/montserrat/montserrat-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/montserrat/montserrat-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/montserrat/montserrat-700.ttf') format('truetype');
}

:root {
    --hp-brand-font: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    --hp-logo-filter: brightness(1.06) saturate(1.15) hue-rotate(10deg);
    --cupo-logo-surface: #1a2d32;
}

.cupo-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* RadzenHeader adds .fixed when not inside RadzenLayout; only RadzenBody gets offset margins */
.cupo-shell > .cupo-header.rz-header.fixed {
    position: static;
    top: auto;
    left: auto;
    right: auto;
}

.cupo-shell .cupo-main.rz-body {
    margin: 0;
    width: auto;
}

.cupo-header {
    border-bottom: 1px solid var(--rz-base-300);
    background: var(--rz-base-background-color);
    flex-shrink: 0;
}

.cupo-brand-logo {
    display: block;
    height: 2.5rem;
    width: auto;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: var(--cupo-logo-surface);
    box-sizing: content-box;
    filter: var(--hp-logo-filter);
}

.login-layout .cupo-brand-logo {
    height: 3.5rem;
    padding: 0.45rem 0.85rem;
    margin: 0 auto;
}

.cupo-brand {
    font-family: var(--hp-brand-font);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    padding-right: 0.5rem;
}

.cupo-brand-sub {
    font-family: var(--hp-brand-font);
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cupo-body-row {
    display: flex;
    flex: 1;
    min-height: 0;
}

.cupo-sidebar {
    width: 240px;
    flex-shrink: 0;
    border-right: 1px solid var(--rz-base-300);
    background: var(--rz-base-50, #f8fafc);
    padding: 0.75rem 0;
    overflow-y: auto;
}

.cupo-sidebar-section {
    margin-bottom: 1rem;
}

.cupo-sidebar-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color);
    padding: 0.35rem 1rem;
    text-decoration: none;
}

a.cupo-sidebar-section-title:hover {
    color: var(--rz-primary);
    text-decoration: none;
}

a.cupo-sidebar-section-title.active {
    color: var(--rz-primary);
}

.cupo-sidebar-section.active-section {
    background: color-mix(in srgb, var(--rz-primary-lighter) 35%, transparent);
}

.cupo-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    color: var(--rz-text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.cupo-sidebar-link:hover {
    background: var(--rz-base-100);
    text-decoration: none;
}

.cupo-sidebar-link.active {
    background: var(--rz-primary-lighter);
    border-left-color: var(--rz-primary);
    color: var(--rz-primary);
    font-weight: 500;
}

.cupo-main {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem;
}

/* Accessibility: skip straight to the routed page, before the header/sidebar chrome. */
.cupo-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1300;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    border: 2px solid var(--rz-primary);
    text-decoration: none;
    font-weight: 600;
}

.cupo-skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Scrim behind the mobile drawer; only shown below the 960px breakpoint (see media query). */
.cupo-sidebar-backdrop {
    display: none;
}

/* Below 960px there's no room to push content aside, so the sidebar becomes a fixed overlay
   drawer instead of being hidden outright — presence is still driven by _sidebarExpanded in
   MainLayout, this media query only changes how it's positioned once rendered. */
@media (max-width: 960px) {
    .cupo-header {
        position: relative;
        z-index: 1200;
    }

    .cupo-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1099;
        background: rgba(0, 0, 0, 0.45);
    }

    .cupo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        width: 240px;
        max-width: 85vw;
        padding-top: 3.75rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

.rz-notification {
    inset-block-start: auto;
    inset-block-end: 1rem;
}
