/*
 * Project theme on top of Tabler 1.7.3 (public/vendor/tabler).
 * Brand colours of docs/UI_TEMPLATE.md, system fonts (no remote font), and the behaviours that
 * Tabler leaves to Bootstrap JS, which is not loaded: recruitment.js drives the menu and the dialogs.
 */
:root {
    --app-navy: #16324F;
    --app-blue: #245EA8;
    --tblr-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tblr-primary: #245EA8;
    --tblr-primary-rgb: 36, 94, 168;
    --tblr-primary-fg: #FFFFFF;
    --tblr-primary-darken: #1D4C88;
    --tblr-primary-lt: #E9EFF7;
    --tblr-link-color: #245EA8;
    --tblr-link-color-rgb: 36, 94, 168;
    --tblr-link-hover-color: #1D4C88;
    --tblr-body-bg: #F5F7FA;
    --tblr-body-color: #202B37;
    --tblr-border-color: #D8DEE7;
}

/* Accessibility helpers used by every template. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1100; padding: .5rem 1rem; border-radius: var(--tblr-border-radius); background: var(--app-navy); color: #FFFFFF; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
.icon { flex: none; vertical-align: -.2em; }
.btn .icon { margin-inline-end: .35rem; }
.btn-icon .icon { margin: 0; }

/* Brand. */
.app-brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; line-height: 1.1; text-decoration: none; }
.app-brand small { display: block; font-size: .75rem; font-weight: 400; opacity: .75; }
.app-brand-mark { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: var(--app-blue); color: #FFFFFF; font-size: 1.1rem; }
.app-brand--light { color: var(--app-navy); }

/* Sidebar: always expanded on wide screens, off-canvas under 761px (same breakpoint as recruitment.js). */
.app-sidebar { --tblr-navbar-bg: var(--app-navy); background: var(--app-navy); color: #FFFFFF; }
.app-sidebar .navbar-brand { color: #FFFFFF; padding: 1rem 0 1.5rem; }
.app-sidebar .nav-link { color: rgba(255, 255, 255, .78); border: 0; background: none; width: 100%; text-align: start; border-radius: var(--tblr-border-radius); }
.app-sidebar .nav-link:hover, .app-sidebar .nav-link:focus-visible { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.app-sidebar .nav-item.active > .nav-link { color: #FFFFFF; background: rgba(255, 255, 255, .14); font-weight: 600; }
.app-nav-label { margin: 1.25rem 0 .35rem; padding: 0 .75rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.app-topbar { background: #FFFFFF; border-bottom: 1px solid var(--tblr-border-color); min-height: 3.5rem; }
.app-topbar .container-xl { gap: .75rem; }
.app-avatar { background: var(--tblr-primary-lt); color: var(--app-navy); font-weight: 600; }
.app-menu-button { display: none; }

@media (max-width: 760px) {
    .app--workspace .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: min(18rem, 85vw); transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; }
    .app--workspace .app-sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .45); }
    /* Beats Tabler's .navbar-expand.navbar-vertical ~ .page-wrapper offset. */
    .app--workspace .app-sidebar.navbar-vertical ~ .page-wrapper { margin-inline-start: 0; }
    .js .app-menu-button { display: inline-flex; }
    .app-hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .app-topbar .btn .icon { margin: 0; }
    .page-header .btn-list { width: 100%; }
}

/* Tables: horizontal scrolling stays inside the card on small screens. */
.table-responsive:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
.table td .text-secondary { display: block; font-size: .8125rem; }
.card-table td, .card-table th { white-space: nowrap; }
.card-table td:first-child { white-space: normal; min-width: 12rem; }

/* Stat cards that link to a filtered list. */
.app-stat { color: inherit; text-decoration: none; transition: box-shadow .15s ease; }
.app-stat:hover, .app-stat:focus-visible { box-shadow: 0 0 0 2px var(--tblr-primary); color: inherit; }
.app-stat.is-active { box-shadow: 0 0 0 2px var(--tblr-primary); }

/* Disclosure used for inline creation forms (works without JavaScript). */
.app-disclosure > summary { list-style: none; cursor: pointer; }
.app-disclosure > summary::-webkit-details-marker { display: none; }
.app-disclosure[open] > summary { margin-bottom: 1rem; }

/* Native dialogs (help, privacy, confirmation) styled as Tabler modals. */
dialog.dialog { width: min(32rem, calc(100vw - 2rem)); padding: 1.5rem; border: 0; border-radius: var(--tblr-border-radius-lg); box-shadow: var(--tblr-box-shadow-lg, 0 1rem 3rem rgba(0, 0, 0, .18)); }
/* Tabler's .modal-content sets display:flex, which would show closed dialogs: keep the native hidden state. */
dialog.dialog:not([open]) { display: none; }
dialog.dialog[open] { display: block; position: fixed; inset: 0; margin: auto; block-size: fit-content; max-block-size: calc(100dvh - 2rem); overflow-y: auto; background: var(--tblr-bg-surface, #fff); color: var(--tblr-body-color); }
dialog.dialog::backdrop { background: rgba(15, 23, 42, .55); }
dialog.dialog h2 { font-size: 1.25rem; margin: .25rem 0 .75rem; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading .eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tblr-secondary); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.btn-close-icon { border: 0; background: none; padding: .25rem; border-radius: var(--tblr-border-radius); color: var(--tblr-secondary); }
.btn-close-icon:hover, .btn-close-icon:focus-visible { background: var(--tblr-bg-surface-secondary, #EEF1F5); color: var(--tblr-body-color); }

/* Error pages. */
.app-error { max-width: 36rem; margin: 2rem auto; text-align: center; }
.app-error-code { font-size: 4rem; font-weight: 700; line-height: 1; color: var(--app-blue); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { .app-sidebar, .app-topbar, .footer, .btn-list, .btn { display: none !important; } .page-wrapper { margin: 0 !important; } }

/* Guided pages. */
.app-next-step { border-inline-start: 4px solid var(--tblr-primary); }
.datagrid-content a { font-weight: 600; }
.app-pre-line { white-space: pre-line; }
.app-inline-edit { min-width: 16rem; white-space: normal; }

/* Native progress element styled like Tabler's progress bar (no inline width needed). */
.app-progress { display: block; inline-size: 100%; block-size: .5rem; margin-block-end: .25rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--tblr-gray-200, #e6e7e9); appearance: none; }
.app-progress::-webkit-progress-bar { background: var(--tblr-gray-200, #e6e7e9); }
.app-progress::-webkit-progress-value { background: var(--tblr-primary); }
.app-progress::-moz-progress-bar { background: var(--tblr-primary); }
[data-upload-feedback].is-error { color: var(--tblr-danger); font-weight: 600; }
.upload-form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }

/* Public portal hero */
.app-hero { padding-block: 3rem; margin-block-end: 1.5rem; background: linear-gradient(135deg, var(--app-navy, #16324F), var(--tblr-primary)); color: #fff; }
.app-hero-pretitle { color: rgba(255, 255, 255, .75); }
.app-hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; font-weight: 700; margin-block: .5rem 1rem; color: #fff; }
.app-hero-lead { font-size: 1.125rem; max-inline-size: 36rem; color: rgba(255, 255, 255, .85); margin-block-end: 1.5rem; }
.app-hero-card { color: var(--tblr-body-color); }
.offer-description { line-height: 1.7; overflow-wrap: anywhere; }
