/*
 * Version: 1.0.0 - 2026-10-03
 * Changelog: Brugerflade med næste opgave, kompakte lister og fast mobilnavigation.
 * Indlæses ikke i administrationen og ændrer ikke PDF-layoutet.
 */
.user-ui { background: #f6f7f9; }
.user-ui .app-navbar { box-shadow: none; }
.user-ui .app-page { max-width: 1240px; margin-inline: auto; }
.user-ui .narrow-page { max-width: 760px; }
.user-ui .page-header h1 { font-size: 1.65rem; }
.user-ui .page-header .eyebrow { text-transform: none; font-weight: 500; margin-bottom: 4px; }
.user-ui .panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; }
.user-ui .panel-header h2, .user-support h2 { font-size: 1rem; color: #293340; font-weight: 700; }
.user-ui .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.user-ui .btn-outline-primary { --bs-btn-active-bg: var(--av-blue); --bs-btn-active-border-color: var(--av-blue); }
.user-ui .btn-close { min-height: 32px; min-width: 32px; }
.user-ui .form-control, .user-ui .form-select { min-height: 44px; }
.user-ui .form-label { font-size: .875rem; font-weight: 600; }
.user-ui :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #228273; outline-offset: 3px; }
.user-mobile-nav { display: none; }
.next-assignment { padding: 22px 0 26px; border-top: 1px solid #dce1e7; border-bottom: 1px solid #dce1e7; margin-bottom: 28px; }
.next-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.next-heading h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.next-heading > span { color: #236e4d; background: #e3f2ea; border-radius: 4px; padding: 4px 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.next-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.next-details { max-width: 600px; }
.next-period { display: inline; margin-left: 10px; color: #626b78; font-size: .875rem; }
.next-actions { display: grid; gap: 10px; justify-items: stretch; }
.next-actions .btn { padding: 10px 16px; }
.user-task { display: inline-flex; align-items: center; gap: 6px; color: #36558f; background: #e8eef8; border-radius: 4px; padding: 5px 9px; font-weight: 700; font-size: .8rem; }
.user-task-platform { background: #e0f0eb; color: #246354; }
.user-task-video { background: #f5e9ed; color: #814057; }
.user-meetings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 12px; }
.user-meeting { display: grid; gap: 4px; font-size: .9rem; }
.user-meeting > strong { font-size: 1rem; font-weight: 600; }
.user-meeting.meeting-completed { color: #737c87; }
.today-label { font-size: .72rem; color: #246354; }
.meeting-title { margin-top: 10px; font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.user-ui .view-toolbar { margin-bottom: 14px; }
.user-ui .view-toolbar .form-select { min-width: 0; max-width: 290px; }
.assignment-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #626b78; font-size: .78rem; margin-bottom: 14px; }
.assignment-counts > strong { color: #293340; }
.assignment-counts b { font-weight: 600; color: #293340; }
.user-dashboard .assignment-list { gap: 12px; }
.user-dashboard .assignment-item { padding: 16px; border: 1px solid #dce1e7; border-radius: 6px; box-shadow: none; background: #fff; align-items: center; gap: 18px; }
.assignment-content { min-width: 0; flex: 1; }
.assignment-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.assignment-period { color: #626b78; font-size: .78rem; margin-top: 8px; }
.assignment-actions { display: grid; gap: 12px; justify-items: end; max-width: 190px; }
.assignment-actions > a { font-size: .8rem; color: #36558f; text-underline-offset: 3px; padding: 6px; }
.assignment-actions .btn { font-size: .78rem; }
.pending-request { color: #79601c; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.user-dashboard .request-item { border: 0; border-bottom: 1px solid #dce1e7; background: transparent; border-radius: 0; padding: 14px 0; font-size: .85rem; }
.user-dashboard .request-item:first-child { padding-top: 0; }
.user-dashboard .request-item .assignment-meta { font-size: .75rem; line-height: 1.6; }
.request-status { align-self: start; white-space: nowrap; font-size: .7rem; padding: 4px 6px; background: #edf0f3; color: #485460; border-radius: 4px; }
.status-pending { background: #fff2cc; color: #705516; }
.status-approved { background: #e3f2ea; color: #236e4d; }
.request-empty { font-size: .85rem; color: #626b78; display: flex; gap: 8px; align-items: baseline; }
.request-empty i { color: #287650; }
.request-history { font-size: .8rem; margin-top: 16px; }
.request-history summary { padding-block: 10px; cursor: pointer; font-weight: 600; }
.request-history .request-item { margin-top: 12px; }
.user-support { border-top: 1px solid #dce1e7; margin-top: 26px; padding-top: 20px; }
.user-support a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #293340; padding-block: 9px; font-size: .85rem; }
.user-support a i { color: #36558f; }
.user-support a small { display: block; margin-top: 2px; color: #626b78; }
.user-support a:hover span { text-decoration: underline; }
.user-empty { text-align: center; color: #626b78; padding: 32px 16px; border-block: 1px solid #dce1e7; }
.user-empty > i { font-size: 1.5rem; }
.user-empty p { margin: 8px 0 14px; }
.next-empty { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.next-empty > i { color: #287650; font-size: 1.75rem; }
.next-empty h2 { font-size: 1.15rem; margin-bottom: 6px; }
.next-empty p { color: #626b78; font-size: .875rem; margin: 0; }
.next-empty .btn { margin-left: auto; }
.request-context { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #dce1e7; }
.request-context > strong { margin-left: 8px; font-size: .875rem; }
.request-approval-note { font-size: .8rem; line-height: 1.7; color: #626b78; }
.user-ui .modal-content { border-radius: 8px; }
.user-ui .modal-footer { gap: 6px; }
.user-ui .calendar-toolbar { padding: 0; border: 0; background: transparent; box-shadow: none; }
.user-ui .calendar-page-header { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.user-ui .calendar-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; border: 0; background: transparent; box-shadow: none; padding: 0; margin-bottom: 16px; font-size: .8rem; color: #626b78; }
.calendar-person-own { background: #e3f2ea; color: #18583d; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.user-ui .calendar-week-target { outline: 3px solid #278465; outline-offset: 3px; }
.user-ui .calendar-week { scroll-margin-top: 90px; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 46px; border: 0; border-radius: 5px; background: transparent; color: #626b78; }
.password-toggle:hover { background: #eef2f7; }
.user-ui .login-shell { background: #f6f7f9; min-height: 100svh; }
.user-ui .login-panel { box-shadow: none; border: 1px solid #dce1e7; }
.user-ui .login-brand { align-items: start; }
.user-ui .login-brand img { width: 48px; height: 48px; flex-shrink: 0; }
.user-ui .login-brand h1 { font-size: 1.35rem; }
.user-ui .login-brand p { font-size: .85rem; }
.user-ui .login-panel .btn-lg { font-size: .95rem; min-height: 48px; }
.user-account .panel + .panel { border-top: 1px solid #dce1e7; padding-top: 28px; }
.user-account .panel-header { flex-wrap: wrap; }
.user-account .account-identity { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #dce1e7; overflow-wrap: anywhere; }
.account-identity p { margin: 4px 0 0; color: #626b78; font-size: .875rem; }
.user-account .passkey-item { background: #fff; border-color: #dce1e7; }
.user-account .passkey-meta { font-size: .75rem; }
.user-account .passkey-title { font-size: .9rem; overflow-wrap: anywhere; }
.user-ui .accordion-button { min-height: 56px; font-size: .95rem; }
.user-ui .accordion-body { font-size: .9rem; line-height: 1.75; }

@media (min-width: 1200px) {
    .user-dashboard > .row > section:last-child { border-left: 1px solid #dce1e7; padding-left: 28px; }
}
@media (max-width: 991.98px) {
    .user-signed-in { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .user-ui .app-navbar { padding-block: 10px; }
    .user-ui .app-navbar .container-fluid { gap: 8px; flex-wrap: nowrap; }
    .user-ui .navbar-brand { font-size: 1rem; margin: 0; }
    .user-ui .navbar-toggler, .user-ui .navbar-nav { display: none; }
    .user-ui #mainNav { display: flex !important; flex-basis: auto; flex-grow: 0; }
    .user-ui #mainNav .dropdown-toggle { max-width: 170px; overflow: hidden; white-space: nowrap; font-size: .75rem; }
    .user-mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dce1e7; z-index: 1030; }
    .user-mobile-nav a { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; text-decoration: none; font-size: .7rem; font-weight: 600; color: #626b78; border-radius: 6px; }
    .user-mobile-nav i { font-size: 1.25rem; line-height: 1.2; }
    .user-mobile-nav a.active { background: #e8eef8; color: #36558f; }
    .user-ui .app-page { padding: 22px 16px 28px; }
    .user-ui .page-header { gap: 12px; }
    .user-ui .page-header h1 { font-size: 1.5rem; }
    .user-ui .calendar-summary { display: flex; }
}
@media (max-width: 575.98px) {
    .user-ui .app-navbar .dropdown-toggle { max-width: 138px !important; }
    .user-ui .page-header { flex-direction: row; align-items: center; }
    .user-ui .page-header > .btn { display: none; }
    .user-ui .page-header .eyebrow { font-size: .75rem; }
    .next-assignment { padding-block: 18px 22px; margin-bottom: 24px; }
    .next-heading { justify-content: space-between; gap: 8px; }
    .next-heading h2 { font-size: 1.05rem; }
    .next-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .next-actions .btn { font-size: .8rem; padding: 10px; flex: 1 1 auto; }
    .next-period { font-size: .75rem; }
    .user-ui .view-toolbar { display: grid; gap: 10px; }
    .user-ui .view-toolbar .form-select { width: 100%; max-width: none; }
    .user-ui .view-toolbar .btn { font-size: .875rem; }
    .user-dashboard .assignment-item { display: block; padding: 14px; }
    .assignment-actions { display: flex; align-items: center; justify-content: space-between; max-width: none; margin-top: 14px; }
    .user-meetings { gap: 12px; }
    .user-meeting { font-size: .8rem; }
    .user-meeting > strong { font-size: .9rem; }
    .user-ui .calendar-page-header { display: block; }
    .user-ui .calendar-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin-top: 16px; gap: 10px; }
    .user-ui .calendar-toolbar .calendar-select-wrap { min-width: 0; width: auto; }
    .user-ui .calendar-toolbar .form-select { min-width: 0; font-size: .85rem; }
    .user-ui .calendar-toolbar #btnPdf { width: auto; font-size: .85rem; }
    .user-ui .calendar-toolbar #btnCurrentWeek { grid-column: 1 / -1; justify-self: start; font-size: .8rem; }
    .user-ui .login-shell { padding: 16px; }
    .user-ui .login-panel { padding: 24px 20px; }
    .user-account .passkey-item { grid-template-columns: minmax(0, 1fr) auto; }
    .user-account .passkey-icon { display: none; }
    .user-account .panel-header .btn { width: 100%; }
    .user-dashboard .alert { flex-wrap: wrap; }
    .user-ui .form-control, .user-ui .form-select { font-size: 16px; }
}
@media (max-width: 900px) {
    .user-ui .calendar-name-col > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .user-ui *, .user-ui *::before, .user-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .user-mobile-nav { display: none; }
    .user-signed-in { padding-bottom: 0; }
    .calendar-person-own { background: transparent; color: inherit; text-decoration: none; }
}
