/* POLSAS: the familiar blue/gray workbench, with clearer spacing and states. */
/* ===== Fælles designtokens for POLSAS/KR, Mail og Administration =====
   Ét sted at justere farver, typografi og flader. Alle systemer indlæser denne fil. */
:root {
  --pol-navy:#000080; --pol-navy-deep:#00005a; --pol-blue:#165aa7; --pol-accent:#6fb7ff; --pol-focus:#1764bb;
  --pol-bg:#e6eaf0; --pol-surface:#f4f6f9; --pol-paper:#fff; --pol-line:#b5c2d3; --pol-line-soft:#d3dce8; --pol-line-strong:#8ba2c1;
  --pol-text:#172337; --pol-text-muted:#546a84; --pol-heading:#14355c;
  --pol-danger:#a02b42; --pol-ok:#267345; --pol-warn:#82580c; --pol-badge:#ffd34d; --pol-badge-text:#2b2100;
  --pol-font:Arial,Helvetica,sans-serif; --pol-font-size:13px; --pol-radius:3px;
  --pol-shadow:0 2px 6px #17395f1f; --pol-shadow-lift:0 10px 30px #0006;
  --pol-header-bg:linear-gradient(100deg,var(--pol-navy),var(--pol-blue)); --pol-header-line:#193f6c; --pol-header-sub:#dce5ff;
  --pol-bar-bg:linear-gradient(180deg,#13265a,#0a1633); --pol-bar-h:38px; --pol-bar-text:#cfd9ef;
  --pol-btn-bg:#f3f5fa; --pol-btn-border:#99b2d3; --pol-btn-text:#153858;
  /* Ældre navne, bevaret for kompatibilitet */
  --polsas-navy:var(--pol-navy); --polsas-blue:var(--pol-blue); --polsas-line:#9aa5b5; --polsas-paper:var(--pol-paper); --polsas-surface:#eef1f5;
}
:where(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--pol-focus); outline-offset:2px; }
button:not(:disabled),summary,select { cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
input,textarea,select { accent-color:var(--polsas-navy); }
input,textarea { caret-color:var(--polsas-navy); }
.polsas-workbench { background:#102d72; font:12px var(--pol-font); color:#111; }
.polsas-workbench > header { background:var(--pol-header-bg); text-align:left; padding:12px 18px 0; position:relative; border-bottom:1px solid #193f6c; }
.polsas-workbench > header h1 { font-size:22px; letter-spacing:.08em; }
.polsas-workbench > header p { color:#dce5ff; font-size:11px; margin:3px 0 12px; }
.polsas-workbench > header .logout-button { position:absolute; right:16px; top:8px; background:#f0f2f7; border:1px solid #a9b6cc; padding:6px 12px; }
.polsas-workbench .tabs { justify-content:flex-start; margin:0; gap:4px; }
.polsas-workbench .tab-button { border:1px solid #8dadd1; border-bottom:0; padding:8px 18px; background:#d9e0ed; color:#24384b; font-size:11px; border-radius:2px 2px 0 0; }
.polsas-workbench .tab-button.active { background:#f3f5f8; color:var(--pol-navy); box-shadow:inset 0 3px #6fb7ff; }
.polsas-workbench main { color:#111; }
.polsas-workbench .card { background:#f4f5f7; border:1px solid #a5adba; box-shadow:0 2px 6px #0002; color:#111; }
.polsas-workbench .card > h2 { background:linear-gradient(90deg,var(--pol-navy),var(--pol-blue)); color:#fff; letter-spacing:.035em; font-size:12px; padding:7px 10px; }
.polsas-workbench :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { color:#141b29; background:#fff; border:1px solid #8998ac; border-radius:2px; padding:5px 6px; font-family:var(--pol-font); }
.polsas-workbench :is(input,select,textarea):disabled { background:#e5e8ed; }
.polsas-workbench button { font-family:var(--pol-font); }
.polsas-workbench button:not(.tab-button):not(.vc-link):not(.rd-page-btn):hover:enabled { filter:brightness(.97); }
.polsas-workbench .verser-panel { background:#e6e9ef; border:1px solid #9faabc; box-shadow:0 2px 7px #0003; }
.polsas-workbench .verser-title { padding:7px; background:var(--pol-navy); color:#fff; letter-spacing:.05em; }
.polsas-workbench .verser-case { border:1px solid #aeb7c5; background:#fff; margin-bottom:6px; padding:7px; }
.polsas-workbench #visitation-cockpit .vc-root { background:#e8edf3; }
.polsas-workbench #visitation-cockpit :is(.vc-panel,.vc-header,.vc-next,.vc-brief,.vc-journalization) { border:1px solid #a8b4c5; box-shadow:0 1px 2px #172a4610; border-radius:2px; }
.polsas-workbench #visitation-cockpit .vc-header { border-top:3px solid var(--pol-navy); }
.polsas-workbench #visitation-cockpit .vc-panel-head { background:#f2f4f8; text-align:left; }
.polsas-workbench #visitation-cockpit .vc-btn { min-height:29px; border:1px solid #758ba8; border-radius:2px; }
.polsas-workbench #visitation-cockpit .vc-journalization input[type=checkbox] { width:auto; margin-right:6px; }
.tablet-charge-tools { border-top:1px solid #bcc6d2; margin-top:10px; padding-top:4px; }
.tablet-charge-tools table { border-collapse:collapse; margin:6px 0; }
.tablet-charge-tools td { border-bottom:1px solid #ccd2da; padding:5px; vertical-align:top; overflow-wrap:anywhere; }
.tablet-charge-tools select { max-width:100%; }
.tablet-charge-tools > button { margin:4px 4px 4px 0; }
.ticket-health { border-left:3px solid var(--pol-blue); background:#edf3fc; color:#203c60; margin:8px 0; padding:8px; }
.ticket-compose-hint { margin:3px 0 7px; color:#536278; font-size:11px; }
.ticket-center-composer { padding:10px; background:#f4f6f9; border:1px solid #c0cada; }
.ticket-center-composer textarea { width:100%; min-height:90px; }
.ticket-message p { overflow-wrap:anywhere; white-space:pre-wrap; }
.delivery-item :is(strong,p) { overflow-wrap:anywhere; }
.delivery-item.retry_scheduled { border-left:4px solid #b57816; }
.delivery-item.permanently_failed,.delivery-item.failed { border-left:4px solid #af263b; }
.delivery-item.sent { border-left:4px solid #3a805b; }
.global-mail-notice { background:#f4f8ff; border:1px solid #96b3dc; border-left:4px solid var(--pol-navy); color:var(--pol-navy); box-shadow:0 2px 8px #0002; font-size:12px; font-weight:600; padding:9px 12px; top:auto; bottom:16px; right:16px; }
.outlook-mail { background:var(--pol-bg); color:#172337; font:13px var(--pol-font); }
.outlook-mail .outlook-ribbon { background:var(--pol-header-bg); padding:12px 18px; text-align:left; }
.outlook-mail .outlook-app-title strong { font-size:22px; }
.outlook-mail .outlook-app-title span { color:#dce7ff; }
.outlook-mail .outlook-ribbon-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.outlook-mail .outlook-ribbon-actions :is(button,a) { background:#f3f5fa; color:#153858; border:1px solid #99b2d3; padding:6px 10px; border-radius:2px; min-height:29px; text-decoration:none; }
.outlook-mail .outlook-ribbon-actions #mail-compose-open { color:var(--pol-navy); font-weight:bold; border-bottom:3px solid #6db5ec; }
.outlook-mail .outlook-shell { grid-template-columns:210px 320px minmax(0,1fr); margin:0; width:100%; min-height:calc(100vh - 138px); height:calc(100vh - 138px); gap:1px; background:#b5c1cf; padding:0; }
.outlook-mail .outlook-folder-pane { background:#f0f3f7; padding:10px 8px; overflow:auto; }
.outlook-mail .outlook-pane-heading { color:#54677e; font-size:10px; letter-spacing:.09em; text-transform:uppercase; margin:10px 0 5px; }
.outlook-mail :is(.mail-modern-folder,.mail-modern-mailbox) { padding:9px 10px; border:0; border-left:3px solid transparent; background:transparent; color:#273c55; font-size:12px; width:100%; text-align:left; }
.outlook-mail :is(.mail-modern-folder,.mail-modern-mailbox).active { background:#dce7f6; color:var(--pol-navy); border-left-color:var(--pol-navy); font-weight:bold; }
.outlook-mail .mail-modern-mailbox b { float:right; color:var(--pol-navy); }
.outlook-mail .outlook-list-pane { min-width:0; display:flex; flex-direction:column; overflow:hidden; background:#fff; }
.outlook-mail .outlook-search-row { padding:10px; }
.outlook-mail .outlook-search-row input { width:100%; background:#f3f5f8; border:1px solid #b0bed1; border-radius:2px; min-height:32px; padding:7px; }
.outlook-mail .mail-list-filters { display:flex; justify-content:space-between; gap:5px; padding:0 10px; color:#53657d; font-size:11px; }
.outlook-mail .mail-list-filters select { border:1px solid #bbc5d3; background:#fff; font:inherit; padding:3px; }
.outlook-mail #mail-list-status { padding:5px 10px; margin:0; min-height:25px; color:#52647a; font-size:11px; }
.outlook-mail .mail-modern-list { flex:1; overflow:auto; min-height:0; }
.outlook-mail .mail-modern-item { border:0; border-bottom:1px solid #dce2eb; border-left:3px solid transparent; padding:12px 11px; background:#fff; }
.outlook-mail .mail-modern-item.unread { border-left-color:var(--pol-blue); background:#f4f8ff; }
.outlook-mail .mail-modern-item.active { border-left-color:var(--pol-navy); background:#e1ebfa; }
.outlook-mail .mail-modern-item :is(small,em) { color:#607087; font-size:11px; }
.outlook-mail .mail-modern-item strong { font-size:13px; color:#183656; }
.outlook-mail .outlook-reading-pane { overflow:auto; padding:16px; background:#f8fafc; min-width:0; }
.outlook-mail .mail-modern-view,.outlook-mail .mail-modern-compose { background:#fff; padding:18px; border:1px solid #c6d0de; box-shadow:0 2px 4px #1538580a; border-radius:2px; min-width:0; }
.outlook-mail .outlook-message-header { border-bottom:1px solid #d6deea; padding-bottom:12px; margin-bottom:15px; color:#4b607b; }
.outlook-mail .outlook-message-header h2 { color:#14355c; font-size:21px; margin:0 0 12px; overflow-wrap:anywhere; }
.outlook-mail .outlook-message-header p { margin:4px 0; overflow-wrap:anywhere; }
.outlook-mail pre { white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; font:13px/1.65 var(--pol-font); color:#202d3e; }
.outlook-mail .mail-modern-compose input,.outlook-mail .mail-modern-compose select { min-width:0; border:1px solid #b5c2d4; border-radius:2px; padding:7px; color:#172337; background:#fff; font:inherit; }
.outlook-mail .mail-modern-compose-grid { grid-template-columns:65px minmax(0,1fr); gap:9px; }
.outlook-mail .mail-modern-compose-grid datalist { display:none; }
.outlook-mail .outlook-mail-body { border:1px solid #b5c2d4; padding:12px; font:13px/1.6 var(--pol-font); min-height:230px; resize:vertical; color:#172337; background:#fff; }
.outlook-mail .mail-editor-help,.outlook-mail #mail-draft-status { color:#546b83; font-size:11px; }
.outlook-mail .mail-modern-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:12px; }
.outlook-mail .mail-modern-actions button { border:1px solid #96abc8; border-radius:2px; padding:7px 12px; color:#1f3c60; background:#f0f4fa; }
.outlook-mail .mail-modern-actions #mail-send { background:var(--pol-navy); color:#fff; border-color:var(--pol-navy); font-weight:bold; }
.outlook-mail .mail-signature-details { margin:12px 0; color:#4a5f7a; }
.outlook-mail .mail-signature-preview { font:12px/1.5 var(--pol-font); margin:8px 0; padding:8px 12px; border-left:3px solid #a8b9d0; }
.outlook-mail .mail-thread { border-top:1px solid #bccadc; padding-top:12px; }
.outlook-mail .mail-thread summary { color:var(--pol-navy); font-weight:bold; }
.outlook-mail .mail-thread article { padding:14px 0; border-bottom:1px solid #d0d9e5; }
.outlook-mail .mail-modern-status.error { padding:9px; background:#fff0f0; color:#9a1736; border-left:3px solid #b72e4f; }
.outlook-mail .mail-address-book-window { width:min(650px,94vw); max-height:85vh; border:1px solid #8ba2c1; background:#f7f9fc; padding:14px; }
@media(max-width:1100px) {
 .outlook-mail .outlook-shell { grid-template-columns:170px 265px minmax(0,1fr); }
 .outlook-mail .outlook-reading-pane { padding:8px; }
 .outlook-mail .mail-address-row { flex-wrap:wrap; }
 .outlook-mail .mail-modern-compose-grid { grid-template-columns:minmax(0,1fr); }
 .outlook-mail .mail-modern-compose-grid > label { margin-bottom:-7px; font-weight:bold; }
}
@media(max-width:800px) {
 .outlook-mail .outlook-shell { grid-template-columns:140px minmax(0,1fr); height:auto; min-height:75vh; }
 .outlook-mail .outlook-list-pane { max-height:50vh; }
 .outlook-mail .outlook-reading-pane { grid-column:1/-1; min-height:40vh; }
 .outlook-mail .outlook-ribbon { padding:10px; }
 .outlook-mail .mail-user-badge { position:static; margin-top:8px; }
 .polsas-workbench > header { padding-left:10px; }
 .polsas-workbench .tab-button { padding:7px 10px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
@media print { .outlook-ribbon,.outlook-folder-pane,.outlook-list-pane,#mail-compose,.global-mail-notice { display:none!important; } .outlook-mail .outlook-shell { display:block;height:auto; } .outlook-mail .outlook-reading-pane { overflow:visible; } }

.admin-modern.mail-modern.outlook-mail { background:var(--pol-bg); display:flex; flex-direction:column; height:100vh; min-height:100vh; }
.outlook-mail .outlook-ribbon { flex:0 0 auto; }
.outlook-mail .outlook-app-title strong { color:white; }
.outlook-mail .outlook-shell { flex:1 1 auto; height:auto; min-height:0; }
@media(max-width:800px) {
 .admin-modern.mail-modern.outlook-mail { height:auto; }
 .outlook-mail .outlook-shell { min-height:75vh; }
 .outlook-mail .outlook-mail-body { width:100%; margin-left:0; }
}

/* Administration uses the same restrained POLSAS palette. */
body.admin-modern:not(.outlook-mail) { background:var(--pol-bg); color:#1b2d45; font:13px var(--pol-font); }
.admin-modern:not(.outlook-mail) .admin-header { background:var(--pol-header-bg); border-bottom:1px solid #456d9e; box-shadow:0 2px 5px #0002; padding:16px 24px; }
.admin-modern:not(.outlook-mail) .admin-header h1 { font-size:28px; }
.admin-modern:not(.outlook-mail) .admin-header p { font-size:12px; color:#e1eaff; }
.admin-modern:not(.outlook-mail) .admin-kicker { color:#d8e6ff; font-size:10px; letter-spacing:.1em; }
.admin-modern:not(.outlook-mail) .admin-kicker::before { background:#90c3ff; width:4px; height:13px; }
.admin-modern:not(.outlook-mail) .admin-header-actions { gap:8px; }
.admin-modern:not(.outlook-mail) :is(.admin-home-link,.admin-top-menu-toggle,.admin-logout) { background:#f4f7fc; border:1px solid #9bb4d5; border-radius:2px; color:#143a66; min-height:33px; font-size:12px; padding:7px 12px; box-shadow:none; }
.admin-modern:not(.outlook-mail) .admin-top-menu-panel { background:#f4f7fc; border:1px solid #9bb4d5; color:#163961; box-shadow:0 4px 12px #0002; }
.admin-modern:not(.outlook-mail) .admin-menu-btn { color:#17395f; border-color:#c5cfdd; background:#fff; font-size:12px; }
.admin-modern:not(.outlook-mail) .admin-menu-btn:hover { background:#e2ebfa; color:var(--pol-navy); }
.admin-modern:not(.outlook-mail) .admin-card { background:#fff; color:#1b2d45; border:1px solid #b5c2d3; border-top:3px solid var(--pol-navy); padding:16px 18px; box-shadow:0 2px 5px #17395f12; border-radius:2px; }
.admin-modern:not(.outlook-mail) .admin-card::before { display:none; }
.admin-modern:not(.outlook-mail) .admin-card h2 { color:var(--pol-navy); font-size:18px; border-color:#d3dce8; padding-bottom:10px; }
.admin-modern:not(.outlook-mail) :is(label,h3,h4,.admin-field label) { color:#324c6e; }
.admin-modern:not(.outlook-mail) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { background:#fff; border:1px solid #a1b2c9; border-radius:2px; color:#172e4e; padding:7px; font:inherit; }
.admin-modern:not(.outlook-mail) :is(table,td) { color:#243e60; border-color:#c0cddd; background:#f7f9fc; }
.admin-modern:not(.outlook-mail) th { background:#123b77; color:#fff; border-color:#6683a9; }
.admin-modern:not(.outlook-mail) .role-checkbox-item { border:1px solid #c2cedf; background:#edf3fb; color:#1b3c66; font-size:12px; }
.admin-modern:not(.outlook-mail) .admin-btn { border:1px solid var(--pol-navy); background:var(--pol-navy); color:white; border-radius:2px; padding:7px 12px; font-size:12px; box-shadow:none; }
.admin-modern:not(.outlook-mail) .admin-btn-danger { background:var(--pol-danger); border-color:var(--pol-danger); }
.admin-modern:not(.outlook-mail) .admin-status { color:#526b89; }
.admin-modern:not(.outlook-mail) .admin-status.ok { color:#267345; }
.admin-modern:not(.outlook-mail) .admin-status.error { color:var(--pol-danger); }
@media(max-width:800px) { .admin-modern:not(.outlook-mail) .admin-header { flex-wrap:wrap; gap:12px; padding:14px; } }
.admin-modern:not(.outlook-mail) .frontpage-department-chip { background:#edf3fb; color:#17395f; border:1px solid #b8c8df; border-radius:2px; padding:5px 7px; }
.admin-modern:not(.outlook-mail) .frontpage-department-chip span { color:#17395f; }

.outlook-mail .mail-modern-mailbox small { display:block; margin-top:4px; color:#4b647f; font-size:10px; overflow-wrap:anywhere; }
.outlook-mail .mail-mailbox-heading { padding:12px 10px 0; }
.outlook-mail .mail-mailbox-heading h2 { margin:0 0 5px; font-size:13px; color:#17395f; }
.outlook-mail .mail-mailbox-heading small { color:#546a84; overflow-wrap:anywhere; font-size:11px; }
.outlook-mail .mail-recipient-summary { grid-column:2; margin:0; color:#234d7a; font-size:11px; overflow-wrap:anywhere; }
@media(max-width:1100px) { .outlook-mail .mail-recipient-summary { grid-column:1; } }

.journalization-heading { margin:0 0 6px; color:var(--pol-navy); font-size:13px; }
.journalization-heading small { display:block; margin-top:4px; font-size:11px; color:#435c7c; }
.journal-suggestions { border:1px solid #b5c3d6; background:#fff; margin:8px 0; padding:8px; }
.journal-suggestions button { display:block; width:100%; margin-top:5px; padding:6px 8px; text-align:left; background:#f2f6fc; color:#183a64; border:1px solid #c5d0de; }
.journal-suggestions small { display:block; margin-top:3px; color:#566d89; }
.journal-suggestions .suggestion-warning { color:#82580c; }
.tablet-complex-overview h5 { color:var(--pol-navy); margin:9px 0 5px; font-size:12px; }

/* ===== Fælles topbar / systemskifter (samme udseende i alle systemer) ===== */
.pol-systembar { position:relative; z-index:60; flex:0 0 auto; display:flex; align-items:center; gap:14px; min-height:var(--pol-bar-h); padding:0 12px; background:var(--pol-bar-bg); color:#fff; border-bottom:1px solid #000; box-shadow:inset 0 1px #ffffff1f, 0 1px 0 var(--pol-accent); font:12px/1.2 var(--pol-font); text-align:left; }
.pol-systembar a { text-decoration:none; }
.pol-systembar-brand { display:flex; align-items:baseline; gap:7px; color:#fff; white-space:nowrap; padding-right:14px; border-right:1px solid #ffffff26; }
.pol-systembar-brand strong { font-size:13px; letter-spacing:.16em; }
.pol-systembar-brand span { color:var(--pol-bar-text); font-size:11px; }
.pol-systembar-systems { display:flex; align-items:stretch; gap:2px; flex:1 1 auto; min-width:0; align-self:stretch; }
.pol-systembar-system { display:inline-flex; align-items:center; gap:6px; padding:0 13px; color:var(--pol-bar-text); font-size:11px; font-weight:bold; letter-spacing:.07em; text-transform:uppercase; border-bottom:3px solid transparent; border-top:3px solid transparent; white-space:nowrap; }
.pol-systembar-system:hover { color:#fff; background:#ffffff14; }
.pol-systembar-system.active { color:#fff; background:#ffffff1f; border-bottom-color:var(--pol-accent); }
.pol-systembar-count { min-width:18px; padding:1px 5px; border-radius:9px; background:var(--pol-badge); color:var(--pol-badge-text); font-size:10px; text-align:center; letter-spacing:0; }
.pol-systembar-count[hidden] { display:none; }
.pol-systembar-user { display:grid; gap:2px; text-align:right; min-width:0; max-width:300px; }
.pol-systembar-user :is(strong,small) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pol-systembar-user strong { font-size:12px; }
.pol-systembar-user small { color:var(--pol-bar-text); font-size:10px; }
.pol-systembar-logout { flex:0 0 auto; min-height:26px; padding:4px 12px; border:1px solid #8fa3c8; border-radius:var(--pol-radius); background:transparent; color:#fff; font:bold 11px var(--pol-font); letter-spacing:.04em; }
.pol-systembar-logout:hover { background:#ffffff1f; border-color:#fff; }
.pol-systembar :focus-visible { outline:2px solid var(--pol-accent); outline-offset:-2px; }
/* Systemernes egne log ud- og navigationsknapper ligger nu i topbaren. Knapperne findes stadig i siden,
   så topbarens Log ud kan bruge dem (fx gemmer Mail en åben kladde først). */
body.has-systembar :is(#logout-button,#mail-logout,#admin-logout,.admin-home-link,.mail-user-badge),
body.has-systembar .outlook-ribbon-actions > a { display:none !important; }
.polsas-workbench.has-systembar :is(.verser-panel,.case-help-panel) { top:calc(104px + var(--pol-bar-h)); }
body.home-shortcuts.has-systembar .pol-systembar { position:sticky; top:0; }
@media(max-width:800px) {
 .pol-systembar { flex-wrap:wrap; gap:6px 10px; padding:5px 8px 0; }
 .pol-systembar-brand { border-right:0; padding-right:0; }
 .pol-systembar-user { flex:1 1 auto; max-width:none; }
 .pol-systembar-systems { order:3; flex:1 0 100%; min-height:32px; overflow-x:auto; }
 .pol-systembar-system { padding:0 10px; }
 .polsas-workbench.has-systembar .verser-panel { top:auto; }
}

/* ===== Fælles login (samme side-opbygning for POLSAS/KR, Mail og Administration) ===== */
body.pol-login-page { min-height:100vh; margin:0; display:flex; align-items:center; justify-content:center; padding:16px; background:var(--pol-bar-bg); background-attachment:fixed; color:var(--pol-text); font:var(--pol-font-size) var(--pol-font); }
.pol-login-wrap { width:min(430px,100%); }
.pol-login-card { overflow:hidden; background:var(--pol-surface); border:1px solid var(--pol-line-strong); border-radius:var(--pol-radius); box-shadow:var(--pol-shadow-lift); }
.pol-login-card > .pol-login-head { padding:16px 20px 14px; background:var(--pol-header-bg); color:#fff; text-align:left; border-bottom:1px solid var(--pol-header-line); box-shadow:inset 0 -3px var(--pol-accent); }
.pol-login-kicker { margin:0 0 5px; color:var(--pol-header-sub); font-size:10px; font-weight:bold; letter-spacing:.13em; text-transform:uppercase; }
.pol-login-card > .pol-login-head h1 { margin:0; font-size:22px; letter-spacing:.06em; }
.pol-login-card > .pol-login-head p:not(.pol-login-kicker) { margin:4px 0 0; color:var(--pol-header-sub); font-size:12px; }
.pol-login-form { display:grid; gap:5px; padding:16px 20px 6px; }
.pol-login-form label { margin-top:6px; color:var(--pol-text-muted); font-size:12px; font-weight:bold; }
.pol-login-form input { min-height:34px; padding:7px 8px; border:1px solid var(--pol-line-strong); border-radius:var(--pol-radius); background:#fff; color:var(--pol-text); font:inherit; }
.pol-login-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }
.pol-login-back { color:var(--pol-navy); font-size:12px; }
.pol-login-error { min-height:1.3em; margin:6px 0 0; color:var(--pol-danger); font-weight:bold; }
.pol-login-notice { margin:0 0 4px; padding:8px 10px; background:#edf3fc; border-left:3px solid var(--pol-blue); color:#203c60; }
.pol-login-notice[hidden] { display:none; }
.pol-login-sso, .pol-login-card .login-hint { margin:0; padding:0 20px 16px; color:var(--pol-text-muted); font-size:11px; line-height:1.45; text-align:left; }
.pol-login-card .login-hint { padding-top:0; }

/* ===== Fælles knapper ===== */
.pol-btn { min-height:32px; padding:7px 14px; border:1px solid var(--pol-btn-border); border-radius:var(--pol-radius); background:var(--pol-btn-bg); color:var(--pol-btn-text); font:bold 12px var(--pol-font); letter-spacing:.03em; }
.pol-btn-primary { background:var(--pol-navy); border-color:var(--pol-navy); color:#fff; box-shadow:inset 0 -2px #ffffff26; }
.pol-btn-primary:hover:enabled { background:var(--pol-blue); }

/* ===== Mail og Administration: præcis samme ramme ===== */
body.admin-modern { background:var(--pol-bg); color:var(--pol-text); font:var(--pol-font-size) var(--pol-font); }
.outlook-mail .outlook-ribbon,
.admin-modern:not(.outlook-mail) .admin-header { position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; padding:12px 18px; background:var(--pol-header-bg); border-bottom:1px solid var(--pol-header-line); box-shadow:inset 0 -3px var(--pol-accent); text-align:left; }
.outlook-mail .outlook-app-title { display:grid; gap:3px; }
.outlook-mail .outlook-app-title::before,
.admin-modern:not(.outlook-mail) .admin-kicker { display:block; margin:0; color:var(--pol-header-sub); font-size:10px; font-weight:bold; letter-spacing:.13em; text-transform:uppercase; }
.outlook-mail .outlook-app-title::before { content:'POLSAS kommunikation'; }
.admin-modern:not(.outlook-mail) .admin-kicker::before { display:none; }
.outlook-mail .outlook-app-title strong,
.admin-modern:not(.outlook-mail) .admin-header h1 { margin:0; color:#fff; font-size:22px; letter-spacing:.04em; line-height:1.15; }
.outlook-mail .outlook-app-title span,
.admin-modern:not(.outlook-mail) .admin-header p { margin:0; color:var(--pol-header-sub); font-size:12px; }
.outlook-mail .outlook-ribbon-actions { margin-top:0; flex:1 1 520px; justify-content:flex-end; }
.outlook-mail .outlook-ribbon-actions :is(button,a),
.admin-modern:not(.outlook-mail) :is(.admin-home-link,.admin-top-menu-toggle,.admin-logout) { min-height:30px; padding:6px 11px; border:1px solid var(--pol-btn-border); border-radius:var(--pol-radius); background:var(--pol-btn-bg); color:var(--pol-btn-text); font:12px var(--pol-font); box-shadow:none; text-decoration:none; }
.outlook-mail .outlook-ribbon-actions #mail-compose-open,
.admin-modern:not(.outlook-mail) .admin-top-menu-toggle { color:var(--pol-navy); font-weight:bold; border-bottom:3px solid var(--pol-accent); }
.outlook-mail .outlook-ribbon-actions :is(button,a):hover:enabled,
.admin-modern:not(.outlook-mail) :is(.admin-home-link,.admin-top-menu-toggle,.admin-logout):hover { background:#fff; border-color:var(--pol-navy); }
.outlook-mail :is(.mail-modern-view,.mail-modern-compose),
.admin-modern:not(.outlook-mail) .admin-card { background:var(--pol-paper); border:1px solid var(--pol-line); border-top:3px solid var(--pol-navy); border-radius:var(--pol-radius); box-shadow:var(--pol-shadow); color:var(--pol-text); }
.outlook-mail .outlook-message-header h2,
.admin-modern:not(.outlook-mail) .admin-card h2 { color:var(--pol-heading); }
.outlook-mail .outlook-folder-pane,
.admin-modern:not(.outlook-mail) .admin-top-menu-panel { background:var(--pol-surface); }
.outlook-mail :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
.admin-modern:not(.outlook-mail) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border:1px solid var(--pol-line); border-radius:var(--pol-radius); background:#fff; color:var(--pol-text); font:inherit; }
.outlook-mail .mail-modern-actions #mail-send,
.admin-modern:not(.outlook-mail) .admin-btn:not(.admin-btn-danger) { background:var(--pol-navy); border:1px solid var(--pol-navy); color:#fff; border-radius:var(--pol-radius); box-shadow:inset 0 -2px #ffffff26; }
.outlook-mail .mail-modern-actions button:not(#mail-send) { border-radius:var(--pol-radius); }
@media(max-width:800px) {
 .outlook-mail .outlook-ribbon, .admin-modern:not(.outlook-mail) .admin-header { padding:10px 12px; }
 .outlook-mail .outlook-ribbon-actions { flex-basis:100%; justify-content:flex-start; }
}

/* ===== POLSAS/KR: 90'er-arbejdsbordet med lidt blødere, moderne detaljer ===== */
.polsas-workbench > header { box-shadow:inset 0 -1px #ffffff26; }
.polsas-workbench .card { border-radius:var(--pol-radius); }
.polsas-workbench .card > h2 { border-radius:var(--pol-radius) var(--pol-radius) 0 0; box-shadow:inset 0 -2px #ffffff1a; }
.polsas-workbench .tab-button { transition:background-color .12s; }
.polsas-workbench .tab-button:hover:not(.active) { background:#e6ebf4; }

/* ===== Forsiden: samme topbar, når man er logget ind ===== */
body.home-shortcuts.has-systembar .home-topbar { margin-top:0; }

/* Omjournalisering: samme blå/grå vindue som resten af POLSAS. */
.polsas-confirm { width:min(540px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; border:2px outset #e4e7ee; border-radius:2px; background:#e8ebf0; color:#111; box-shadow:0 8px 28px #0004; font:12px Arial,sans-serif; }
.polsas-confirm::backdrop { background:rgba(9,20,43,.38); }
.polsas-confirm .polsas-confirm-titlebar { display:flex; align-items:center; justify-content:space-between; padding:7px 9px; background:linear-gradient(90deg,#000080,#165aa7); border:0; text-align:left; color:white; }
.polsas-confirm .polsas-confirm-titlebar h2 { margin:0; color:white; font-size:12px; font-weight:bold; letter-spacing:.04em; }
.polsas-confirm-titlebar button { width:24px; height:22px; padding:0; border:1px solid #b8c4d6; border-radius:0; background:#e5e8ee; color:#172c4a; font:bold 17px Arial; }
.polsas-confirm-body { padding:12px; }
.polsas-confirm-body > p { margin:0 0 12px; line-height:1.5; }
.polsas-confirm dl { margin:0; border:1px solid #a6b2c4; background:#fff; }
.polsas-confirm dl > div { display:grid; grid-template-columns:160px minmax(0,1fr); gap:10px; padding:9px; border-bottom:1px solid #d5dce6; }
.polsas-confirm dl > div:last-child { border-bottom:0; }
.polsas-confirm dt { color:#4d6078; }
.polsas-confirm dd { margin:0; font-weight:bold; color:#142f54; overflow-wrap:anywhere; }
.polsas-confirm-body .polsas-confirm-note { margin:12px 0 0; padding:8px; border-left:3px solid #365f98; background:#f3f6fb; color:#3c506c; font-size:11px; }
.polsas-confirm-actions { display:flex; justify-content:flex-end; gap:7px; padding:9px 12px; border-top:1px solid #aeb9c9; background:#dfe4ec; }
.polsas-confirm-actions button { min-width:100px; min-height:30px; padding:5px 12px; border:1px solid #8194af; border-radius:2px; background:#f5f6f9; color:#163657; font:12px Arial; cursor:pointer; }
.polsas-confirm-actions .polsas-confirm-primary { background:#000080; border-color:#000080; color:white; font-weight:bold; }
.polsas-confirm :is(button):focus-visible { outline:2px solid #2475d5; outline-offset:2px; }
@media(max-width:480px) { .polsas-confirm dl > div { grid-template-columns:1fr; gap:4px; } }

/* Dokumentfaner: flere rækker frem for skjulte faner uden for panelet. */
#visitation-cockpit .rd-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); min-width:0; }
#visitation-cockpit .rd-nav { position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:4px; width:100%; min-width:0; max-height:160px; padding:6px; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; overscroll-behavior:contain; border-right:0; border-bottom:1px solid #a0a0a0; }
#visitation-cockpit .rd-nav-item { width:100%; min-width:0; max-width:none; min-height:40px; padding:6px 8px; overflow:hidden; }
#visitation-cockpit .rd-nav-item strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
#visitation-cockpit .rd-nav-item span { display:none; }
#visitation-cockpit .rd-nav-hits { position:static; display:inline-block; margin-top:3px; }
#visitation-cockpit .rd-doc-picker { display:flex; align-items:center; gap:8px; padding:6px 8px; margin:0; background:#e6e8ee; border-bottom:1px solid #b7bfcb; color:#253f63; font-size:11px; }
#visitation-cockpit .rd-doc-picker select { flex:1; min-width:0; width:auto; margin:0; font-size:11px; }
