* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  background: #0000aa;
  color: #ffffff;
  font-size: 11px;
}

header {
  padding: 8px 4px;
  background: linear-gradient(to right, #000080, #1084d7);
  color: white;
  border-bottom: 2px outset #dfdfdf;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

header p {
  margin: 2px 0 0;
  font-size: 10px;
}

.logout-button {
  margin-top: 8px;
  padding: 3px 12px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.logout-button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

#legacy-system-message {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 3000;
  width: min(360px, calc(100vw - 24px));
  background: #c0c0c0;
  color: #000000;
  border: 2px outset;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 2px 2px 0 #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms linear, transform 120ms linear;
}

#legacy-system-message.show {
  opacity: 1;
  transform: translateY(0);
}

.global-mail-notice {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 5000;
  padding: 13px 18px;
  border: 2px solid #0d2338;
  border-left: 8px solid #0d2338;
  background: #d7ef00;
  color: #0d2338;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.global-mail-notice:hover {
  filter: brightness(1.06);
}

.legacy-system-message-title {
  padding: 2px 6px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
}

.legacy-system-message-body {
  min-height: 28px;
  padding: 8px 10px;
  border-top: 1px solid #808080;
  background: #c0c0c0;
}

#legacy-system-message.ok .legacy-system-message-body::before {
  content: 'OK';
  display: inline-block;
  margin-right: 8px;
  padding: 1px 5px;
  border: 1px solid #008000;
  background: #ffffff;
  color: #006000;
  font-weight: bold;
}

#legacy-system-message.error .legacy-system-message-body::before {
  content: 'FEJL';
  display: inline-block;
  margin-right: 8px;
  padding: 1px 5px;
  border: 1px solid #800000;
  background: #ffffff;
  color: #800000;
  font-weight: bold;
}

.tabs {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  padding: 0 4px 4px;
  justify-content: center;
}

.tab-button {
  padding: 3px 12px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  min-width: 70px;
}

.tab-button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.tab-button.active {
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.polsas-two-col {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 380px;
  gap: 12px;
  align-items: start;
}

.polsas-right-col {
  padding-top: 12px;
}

.polsas-right-col #archived-cases-details {
  margin-top: 0 !important;
}

main {
  padding: 8px;
  max-width: none;
  margin-right: 568px;
}

.polsas-main {
  max-width: none;
}

.portal-card {
  max-width: 640px;
  margin: 12px auto;
  color: #000000;
}

.portal-links {
  margin-top: 8px;
}

.portal-link {
  display: inline-block;
  text-decoration: none;
  padding: 3px 12px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-weight: bold;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

.portal-link:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.login-form {
  display: grid;
  gap: 4px;
}

.login-form label {
  font-weight: bold;
}

.login-form input {
  padding: 2px 4px;
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #ffffff;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

.login-form button {
  margin-top: 6px;
  width: fit-content;
  padding: 2px 12px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-weight: bold;
  cursor: pointer;
}

.back-main-link {
  display: inline-block;
  margin-top: 6px;
  width: fit-content;
  padding: 2px 12px;
  text-decoration: none;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
}

.login-error {
  min-height: 14px;
  color: #990000;
  font-weight: bold;
}

.login-hint {
  margin-top: 8px;
  font-size: 9px;
  color: #333333;
}

.card {
  background: #c0c0c0;
  padding: 4px;
  margin-bottom: 8px;
  border: 2px outset #dfdfdf;
  border-bottom-color: #808080;
  border-right-color: #808080;
}

.card::before {
  content: '';
  display: block;
  background: linear-gradient(to right, #000080, #1084d7);
  padding: 2px 2px 0;
  margin: -4px -4px 4px -4px;
  color: white;
  font-weight: bold;
}

.card h2 {
  margin: -2px 0 8px;
  padding: 2px 2px;
  font-size: 11px;
  background: linear-gradient(to right, #000080, #1084d7);
  color: white;
  font-weight: bold;
}

.form-row {
  display: block;
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row button {
  padding: 2px 4px;
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  color: #000000;
  margin-right: 2px;
  margin-bottom: 2px;
}

.role-popup-item,
.medio-popup-item,
.bilag-type-popup-item {
  color: #000000;
  background: #f0f0f0;
  border-bottom: 1px solid #c0c0c0;
}

.role-popup-item:hover,
.medio-popup-item:hover,
.bilag-type-popup-item:hover {
  background: #d0d0d0;
}

.form-row button {
  padding: 2px 12px;
  background: #c0c0c0;
  color: #000000;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  cursor: pointer;
  font-weight: bold;
  min-width: 50px;
}

.form-row button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.form-row button.visitering-action-button.selected {
  background: #000080;
  color: #ffffff;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  box-shadow: inset 1px 1px 0 #000000;
}

.visitering-last-edited {
  margin-top: 2px;
  color: #666666;
  font-size: 10px;
  min-height: 12px;
}

.tablet-webhook-item {
  margin-bottom: 8px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
}

.tablet-webhook-config-grid,
.tablet-webhook-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
}

.tablet-webhook-config-grid code,
.tablet-webhook-guide code {
  padding: 1px 3px;
  background: #f4f4f4;
  border: 1px solid #c0c0c0;
}

.tablet-webhook-muted {
  margin-top: 2px;
  color: #555555;
  font-size: 10px;
}

.tablet-webhook-ok {
  color: #006000;
  font-weight: bold;
}

.tablet-webhook-warn {
  color: #7a4a00;
  font-weight: bold;
}

.tablet-webhook-guide {
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #808080;
  background: #ffffe1;
  color: #000000;
}

.tablet-webhook-test-result {
  min-height: 16px;
  margin-bottom: 8px;
  padding: 5px;
  border: 1px inset #808080;
  background: #ffffff;
  color: #000000;
  white-space: pre-wrap;
}

.tablet-webhook-item summary {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 6px;
  padding: 5px;
  cursor: pointer;
  background: #d0d0d0;
  border-bottom: 1px solid #808080;
  font-weight: bold;
}

.tablet-webhook-body {
  padding: 6px;
}

.tablet-webhook-actions {
  margin: 6px 0;
}

.tablet-webhook-actions button {
  padding: 2px 8px;
  margin-right: 4px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.tablet-webhook-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px dotted #c0c0c0;
  white-space: pre-wrap;
}

.tablet-webhook-empty {
  color: #555555;
  font-size: 10px;
}

.tablet-webhook-raw {
  margin-top: 8px;
}

.tablet-webhook-raw pre {
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: #f4f4f4;
  border: 1px inset #808080;
  color: #000000;
  white-space: pre-wrap;
  word-break: break-word;
}

#citizen-list,
#case-list {
  display: block;
}

.verser-panel {
  position: fixed;
  top: 104px;
  right: 8px;
  bottom: 8px;
  width: 276px;
  padding: 6px;
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #dfdfdf;
  z-index: 30;
  overflow: hidden;
}

.verser-title {
  padding: 3px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  border: 1px solid #000000;
}

.verser-subtitle {
  margin: 5px 0;
  font-size: 10px;
  color: #202020;
}

.verser-focus-toggle {
  width: 100%;
  margin-bottom: 5px;
  padding: 3px 5px;
  font-size: 10px;
  border: 2px outset #dfdfdf;
  background: #d0d0d0;
  color: #000000;
  cursor: pointer;
}

.verser-list {
  height: calc(100% - 72px);
  overflow-y: auto;
  border: 1px inset #808080;
  background: #ffffff;
  padding: 4px;
}

.verser-item {
  position: relative;
  padding: 5px;
  margin-bottom: 4px;
  border: 1px solid #808080;
  background: #e6e6e6;
  cursor: pointer;
}

.verser-item:hover {
  background: #d0d0d0;
}

.verser-item-title {
  margin-top: 3px;
  font-size: 10px;
  font-weight: bold;
}

.verser-item-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.verser-status-badge,
.verser-priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 1px 5px;
  border: 1px solid #808080;
  background: #eeeeee;
  color: #000000;
  font-size: 9px;
  font-weight: bold;
  white-space: nowrap;
}

.verser-status-badge.retur,
.verser-priority-pill.danger,
.focus-badge.danger {
  border-color: #8b0000;
  background: #ffd6d6;
}

.verser-status-badge.vis,
.verser-priority-pill.ok,
.focus-badge.ok {
  border-color: #2f6f2f;
  background: #dff2df;
}

.verser-status-badge.dialog,
.verser-priority-pill.dialog {
  border-color: #000080;
  background: #dce9ff;
}

.verser-status-badge.genkon,
.verser-priority-pill.warn,
.focus-badge.warn {
  border-color: #9a6700;
  background: #fff2bf;
}

.verser-status-badge.sabh,
.verser-priority-pill.action,
.focus-badge.action {
  border-color: #000080;
  background: #dce9ff;
}

.verser-item-meta {
  margin-top: 2px;
  font-size: 9px;
  color: #303030;
}

.verser-preview {
  display: none;
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
  width: 230px;
  z-index: 70;
  padding: 6px;
  border: 1px solid #000000;
  background: #ffffe1;
  color: #000000;
  box-shadow: 2px 2px 0 #808080;
  font-size: 10px;
}

.verser-preview span {
  display: block;
  margin-top: 3px;
}

.verser-item:hover .verser-preview {
  display: block;
}

.verser-empty {
  margin: 0;
  font-size: 10px;
  color: #303030;
}

.verser-focus-view {
  position: fixed;
  inset: 104px 296px 8px 8px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  border: 2px outset #dfdfdf;
  background: #c0c0c0;
  color: #000000;
}

.verser-focus-view[hidden] {
  display: none;
}

.verser-focus-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 6px;
  border: 1px solid #000000;
  background: #000080;
  color: #ffffff;
}

.verser-focus-header h2,
.verser-focus-header p {
  margin: 0;
}

.verser-focus-header h2 {
  font-size: 13px;
}

.verser-focus-header p {
  margin-top: 2px;
  font-size: 10px;
}

.verser-focus-header button,
.verser-focus-toolbar input,
.verser-focus-toolbar select,
.verser-focus-row {
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
}

.verser-focus-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 6px;
  align-items: center;
}

.verser-focus-toolbar input,
.verser-focus-toolbar select {
  min-width: 0;
  padding: 3px;
  border: 2px inset #dfdfdf;
  background: #ffffff;
}

.verser-focus-check {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
}

.verser-focus-content {
  min-height: 0;
  overflow: hidden;
  border: 1px inset #808080;
  background: #ffffff;
}

.verser-focus-workbench {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 36%);
  min-height: 0;
  height: 100%;
}

.verser-focus-list-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #808080;
}

.verser-focus-list-meta {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 5px 7px;
  border-bottom: 1px solid #808080;
  background: #d0d0d0;
  font-size: 10px;
  font-weight: bold;
}

.verser-focus-table {
  min-width: 980px;
}

.verser-focus-row {
  display: grid;
  grid-template-columns: 140px 128px 92px 96px minmax(140px, 1fr) 112px 112px 52px 118px;
  gap: 6px;
  width: 100%;
  align-items: center;
  padding: 6px 7px;
  border: 0;
  border-bottom: 1px solid #d0d0d0;
  background: #ffffff;
  color: #000000;
  text-align: left;
}

.verser-focus-row.head {
  position: sticky;
  top: 25px;
  z-index: 1;
  background: #efefef;
  font-weight: bold;
}

.verser-focus-row:not(.head) {
  cursor: pointer;
}

.verser-focus-row:not(.head):hover,
.verser-focus-row.selected {
  background: #dce9ff;
}

.verser-focus-row.priority-high {
  border-left: 5px solid #a40000;
}

.verser-focus-row.priority-medium {
  border-left: 5px solid #b7791f;
}

.verser-focus-badges {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -1px;
}

.focus-badge {
  padding: 1px 5px;
  border: 1px solid #808080;
  background: #eeeeee;
  font-size: 9px;
}

.focus-badge.muted {
  color: #444444;
}

.verser-focus-empty {
  padding: 14px;
  font-size: 11px;
}

.verser-focus-preview-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background: #f4f4f4;
}

.focus-preview-empty {
  padding: 12px;
  border: 1px dashed #808080;
  background: #ffffff;
  font-size: 11px;
}

.focus-preview-header {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.verser-focus-preview-panel h3 {
  margin: 0;
  font-size: 15px;
}

.focus-preview-title {
  margin: 4px 0 10px;
  font-size: 11px;
  font-weight: bold;
}

.focus-next-action {
  margin-bottom: 10px;
  padding: 8px;
  border: 2px solid #000080;
  background: #ffffff;
}

.focus-next-action span {
  display: block;
  color: #555555;
  font-size: 9px;
  font-weight: bold;
}

.focus-next-action strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.focus-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.focus-preview-grid div,
.focus-preview-section {
  padding: 7px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.focus-preview-grid span {
  display: block;
  color: #555555;
  font-size: 9px;
  text-transform: uppercase;
}

.focus-preview-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.focus-preview-section {
  margin-bottom: 8px;
}

.focus-preview-section h4 {
  margin: 0 0 5px;
  font-size: 11px;
}

.focus-preview-section p,
.focus-preview-section pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

.focus-preview-report pre {
  max-height: 220px;
  overflow: auto;
}

.case-help-panel {
  position: fixed;
  top: 104px;
  right: 296px;
  bottom: 8px;
  width: 264px;
  padding: 6px;
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #dfdfdf;
  z-index: 29;
  overflow: hidden;
}

.case-help-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  border: 1px solid #000000;
}

.case-help-titlebar button {
  padding: 1px 5px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.case-help-body {
  height: calc(100% - 25px);
  overflow-y: auto;
  margin-top: 5px;
  padding: 5px;
  border: 1px inset #808080;
  background: #ffffff;
}

.case-help-next {
  margin-bottom: 6px;
  padding: 5px;
  border: 1px solid #000000;
  background: #ffffcc;
  font-weight: bold;
  line-height: 1.35;
}

.case-help-progress {
  margin-bottom: 6px;
  color: #202020;
  font-size: 10px;
}

.case-help-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 5px;
  padding: 5px 3px;
  border-bottom: 1px solid #d0d0d0;
  line-height: 1.3;
}

.case-help-step-marker {
  width: 13px;
  height: 13px;
  border: 1px solid #000000;
  background: #ffffff;
  text-align: center;
  line-height: 12px;
  font-size: 10px;
  font-weight: bold;
}

.case-help-step.done .case-help-step-marker {
  background: #008000;
  color: #ffffff;
}

.case-help-step.current .case-help-step-marker {
  background: #000080;
  color: #ffffff;
}

.case-help-step-title {
  font-weight: bold;
}

.case-help-step-detail,
.case-help-context {
  color: #303030;
  font-size: 10px;
}

.case-help-context {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #808080;
  line-height: 1.35;
}

body.case-help-collapsed main {
  margin-right: 336px;
}

body.case-help-collapsed .case-help-panel {
  width: 34px;
  padding: 4px;
}

body.case-help-collapsed .case-help-body {
  display: none;
}

body.case-help-collapsed .case-help-titlebar {
  writing-mode: vertical-rl;
  min-height: 116px;
  justify-content: flex-start;
}

body.case-help-collapsed .case-help-titlebar button {
  writing-mode: horizontal-tb;
  padding: 1px 3px;
}

.verser-section-title {
  margin: 6px 0 4px;
  padding: 3px 4px;
  background: #000080;
  color: #ffffff;
  border: 1px solid #000000;
  font-size: 10px;
  font-weight: bold;
}

.citizen-item,
.case-card {
  border: 1px solid #808080;
  padding: 4px;
  margin-bottom: 4px;
  background: #c0c0c0;
  color: #000000;
}

.citizen-item strong {
  display: block;
  margin-bottom: 2px;
  font-weight: bold;
}

.citizen-item p {
  margin: 2px 0;
  font-size: 10px;
}

.case-header {
  display: block;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #808080;
}

.case-journal {
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.priority-journal {
  display: inline-block;
  padding: 1px 4px;
  border: 2px solid #b38b00;
  background: #fff3a3;
  color: #000000;
  font-weight: bold;
}

input.priority-journal {
  border: 2px solid #b38b00 !important;
  background: #fff3a3 !important;
}

.case-status {
  padding: 2px 4px;
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  color: #000000;
}

.case-card h3 {
  margin: 4px 0 2px;
  font-size: 12px;
}

.case-body > p {
  margin: 2px 0;
  font-size: 10px;
}

.archive-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.archive-count-box {
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  padding: 6px;
}

.archive-count-box strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.archive-count-box span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.archive-category {
  border: 1px solid #808080;
  background: #dfdfdf;
  color: #000000;
  margin-bottom: 10px;
  padding: 6px;
}

.archive-category-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #808080;
  color: #000000;
  cursor: pointer;
  list-style: none;
}

.archive-category-header::-webkit-details-marker {
  display: none;
}

.archive-category-header::before {
  content: '[ - ]';
  margin-right: 6px;
  font-weight: bold;
  color: #000000;
}

.archive-category:not([open]) .archive-category-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.archive-category:not([open]) .archive-category-header::before {
  content: '[ + ]';
}

.archive-category-header h3 {
  margin: 0;
  font-size: 12px;
  color: #000000;
}

.archive-category-header p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #000000;
}

.archive-category-header > span {
  min-width: 28px;
  padding: 3px 5px;
  border: 1px inset #808080;
  background: #ffffff;
  color: #000000;
  text-align: center;
  font-weight: bold;
}

.archive-empty {
  margin: 4px 0;
  font-size: 10px;
  color: #404040;
}

.case-description {
  margin: 4px 0;
  font-size: 10px;
  padding: 2px;
  background: #ffffff;
  color: #000000;
  border: 1px inset #808080;
}

button.save-case {
  padding: 2px 12px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
}

#gerningskode-search-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
}

.gerningskode-search-item {
  padding: 4px;
  cursor: pointer;
  border-bottom: 1px solid #cccccc;
}

.gerningskode-search-item:hover {
  background: #d0d0d0;
}
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  cursor: pointer;
  font-weight: bold;
  min-width: 60px;
  margin-top: 4px;
}

button.save-case:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #c0c0c0;
  color: #000000;
}

table td,
table th {
  padding: 2px 4px;
  border: 1px solid #808080;
  font-size: 10px;
}

table th {
  background: linear-gradient(to right, #000080, #1084d7);
  color: white;
  font-weight: bold;
  padding: 2px 4px;
}

input[type='text'],
input[type='number'] {
  background: #ffffff;
  color: #000000;
}

details {
  cursor: pointer;
}

details summary {
  list-style: none;
}

.citizen-search-item {
  background: #c0c0c0;
  border: 1px solid #808080;
  color: #000000;
  padding: 6px;
  margin-bottom: 4px;
  cursor: pointer;
}

.citizen-search-item:hover {
  background: #a4b5d1;
}

.citizen-search-item strong {
  display: block;
  margin-bottom: 2px;
  color: #000000;
}

.citizen-search-item p {
  margin: 1px 0;
  font-size: 10px;
  color: #000000;
}

#parter-selected-citizen {
  color: #000000;
  font-size: 12px;
}

#parter-selected-citizen strong {
  color: #000000;
}

.citizen-detail-header {
  background: #c0c0c0;
  color: #000000;
  border: 1px solid #808080;
  padding: 6px;
  margin-bottom: 8px;
}

.citizen-detail-header strong {
  display: block;
  margin-bottom: 4px;
  color: #000000;
}

.citizen-detail-header p {
  margin: 2px 0;
  font-size: 10px;
  color: #000000;
}

.citizen-cases {
  margin-top: 8px;
}

.citizen-cases h3 {
  margin: 0 0 5px;
  padding: 3px 5px;
  background: #000080;
  color: #ffffff;
  border: 1px solid #000000;
  font-size: 11px;
}

.citizen-case-section.sigtet h3 {
  background: #7a0000;
}

.citizen-case-section.closed h3 {
  background: #404040;
}

.citizen-case-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px;
  margin: 6px 0 10px;
  color: #000000;
}

.citizen-case-summary span {
  padding: 4px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: bold;
}

.citizen-case-item {
  background: #ffffff;
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  color: #000000;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.citizen-case-sigtet {
  border-left: 6px solid #7a0000;
}

.citizen-case-part {
  border-left: 6px solid #000080;
}

.citizen-case-closed {
  background: #eeeeee;
}

.citizen-case-topline {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.citizen-case-badge {
  padding: 1px 5px;
  border: 1px solid #000000;
  background: #c0c0c0;
  font-size: 9px;
  font-weight: bold;
}

.citizen-case-badge.sigtet {
  background: #7a0000;
  color: #ffffff;
}

.citizen-case-badge.part {
  background: #000080;
  color: #ffffff;
}

.citizen-case-badge.closed {
  background: #404040;
  color: #ffffff;
}

.citizen-case-badge.active {
  background: #fff3a3;
}

.citizen-case-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.citizen-case-meta,
.citizen-case-description {
  font-size: 10px;
  margin-top: 2px;
}

.citizen-case-description {
  padding: 3px;
  background: #f8f8f8;
  border: 1px solid #d0d0d0;
}

.citizen-case-children {
  margin-top: 7px;
  padding-left: 8px;
  border-left: 2px solid #808080;
}

.citizen-case-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 5px;
  margin-top: 4px;
  border: 1px solid #808080;
  background: #f4f4f4;
}

.citizen-case-child span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.citizen-case-child-button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.citizen-case-item:hover {
  background: #dbeafe;
}

.case-detail-tabs {
  display: flex;
  gap: 1px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.case-tab-button {
  padding: 3px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  min-width: 60px;
}

.case-tab-button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.case-tab-button.active {
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-weight: bold;
}

.case-tab-content {
  display: none;
  padding: 8px;
  background: #c0c0c0;
  border: 1px solid #808080;
}

.case-tab-content.active {
  display: block;
}

.case-tab-content h3 {
  margin-top: 0;
  font-size: 12px;
  margin-bottom: 8px;
}

.case-tab-content h4 {
  margin: 8px 0 4px;
  font-size: 11px;
}

.cockpit-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2.2fr);
  gap: 8px;
  align-items: stretch;
  padding: 6px;
  margin-bottom: 5px;
  border: 1px solid #808080;
  background: #eeeeee;
}

.cockpit-header h3 {
  margin: 0 0 3px;
  font-size: 12px;
}

.cockpit-meta {
  font-size: 10px;
  line-height: 1.25;
}

.cockpit-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.cockpit-fact {
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.cockpit-fact span {
  display: block;
  color: #555555;
  font-size: 9px;
  text-transform: uppercase;
}

.cockpit-fact strong {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.cockpit-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.cockpit-step {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #808080;
  background: #d8d8d8;
  color: #333333;
  font-size: 10px;
}

.cockpit-step span {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid #808080;
  background: #ffffff;
  font-weight: bold;
}

.cockpit-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-step.done {
  background: #e8e8e8;
  color: #555555;
}

.cockpit-step.current {
  border: 2px solid #000080;
  background: #ffffff;
  color: #000000;
}

.cockpit-next {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 3px solid #000080;
  background: #ffffff;
}

.cockpit-next span,
.cockpit-next em {
  color: #555555;
  font-size: 10px;
  font-style: normal;
}

.cockpit-next strong {
  font-size: 16px;
}

.cockpit-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px;
  border: 2px solid #000000;
  background: #fff8c6;
  font-size: 11px;
}

.command-primary,
.command-observations,
.command-facts > div {
  min-width: 0;
  border: 1px solid #808080;
  background: #ffffff;
  padding: 6px;
}

.command-primary span,
.command-observations span,
.command-facts span {
  display: block;
  color: #555555;
  font-size: 10px;
  font-weight: bold;
}

.command-primary strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
}

.command-primary p,
.command-observations p {
  margin: 0;
  line-height: 1.35;
}

.command-observations ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

.communication-mode .cockpit-command-center {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  padding: 4px;
  margin-bottom: 4px;
  font-size: 10px;
}

.communication-mode .command-primary,
.communication-mode .command-observations {
  padding: 4px 5px;
}

.communication-mode .command-primary strong {
  margin: 1px 0;
  font-size: 12px;
}

.communication-mode .command-primary p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.communication-mode .command-observations ul {
  display: flex;
  gap: 6px;
  margin: 2px 0 0;
  padding-left: 0;
  list-style: none;
}

.communication-mode .command-observations li {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.command-facts strong {
  display: block;
  margin-top: 2px;
  word-break: break-word;
}

.sagscockpit-workspace {
  display: grid;
  grid-template-columns: minmax(560px, 58%) minmax(340px, 42%);
  gap: 10px;
  height: calc(100vh - 156px);
  min-height: 620px;
  align-items: stretch;
  overflow: hidden;
}

.sagscockpit-workspace.genkon-mode {
  grid-template-columns: minmax(760px, 1fr) minmax(280px, 32%);
}

.integrated-cockpit-column,
.integrated-case-panel {
  min-width: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.integrated-cockpit-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 2px;
}

.integrated-cockpit-column .cockpit-header {
  position: sticky;
  top: 0;
  z-index: 8;
}

.integrated-cockpit-column .cockpit-command-center {
  flex: 0 0 auto;
}

.integrated-cockpit-column .cockpit-steps,
.integrated-cockpit-column .cockpit-next {
  grid-template-columns: 1fr;
}

.integrated-cockpit-column .cockpit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.integrated-cockpit-column .cockpit-command-center,
.integrated-cockpit-column .command-facts {
  grid-template-columns: 1fr;
}

.integrated-cockpit-column .cockpit-section {
  grid-column: span 1;
}

.integrated-cockpit-column .cockpit-section.active,
.integrated-cockpit-column .cockpit-section[data-cockpit-card="kvalitet"],
.integrated-cockpit-column .cockpit-section[data-cockpit-card="historik"],
.integrated-cockpit-column .cockpit-section[data-cockpit-card="checklist"].active {
  grid-column: 1 / -1;
}

.integrated-cockpit-column .cockpit-section[data-cockpit-card="ledelse"]:not(.active),
.integrated-cockpit-column .cockpit-section[data-cockpit-card="discord"]:not(.active),
.integrated-cockpit-column .cockpit-section[data-cockpit-card="genkontrol"]:not(.active),
.integrated-cockpit-column .cockpit-section[data-cockpit-card="historik"]:not(.active) {
  max-height: 86px;
  overflow: hidden;
}

.integrated-cockpit-column .cockpit-section[data-cockpit-card="historik"]:not(.active) {
  max-height: 58px;
}

.integrated-cockpit-column .cockpit-section[data-cockpit-card="checklist"]:not(.active) .quality-checklist-items,
.integrated-cockpit-column .cockpit-section[data-cockpit-card="checklist"]:not(.active) .cockpit-card-actions {
  display: none;
}

.integrated-cockpit-column .cockpit-section.active textarea#cockpit-feedback-text {
  min-height: 155px;
}

.integrated-cockpit-column #cockpit-leadership-note {
  min-height: 120px;
}

.cockpit-secondary-flow {
  flex: 0 0 auto;
  margin-top: 6px;
  opacity: 0.92;
}

.cockpit-work-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #808080;
}

.cockpit-work-tabs button {
  padding: 4px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.cockpit-work-tabs button.active {
  border-style: inset;
  background: #ffffff;
}

.cockpit-work-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.cockpit-task-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 2px inset #808080;
  background: #e0e0e0;
  color: #000000;
}

.cockpit-task-head {
  flex: 0 0 auto;
  padding: 7px 8px;
  border-bottom: 1px solid #808080;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cockpit-task-head h4,
.cockpit-task-head p {
  margin: 0;
}

.autosave-status {
  flex: 0 0 auto;
  color: #555555;
  font-size: 10px;
}

.cockpit-task-head h4 {
  font-size: 13px;
}

.cockpit-task-head p {
  margin-top: 2px;
  color: #555555;
  font-size: 10px;
}

.cockpit-task-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.cockpit-task-body:has(.leadership-workspace) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cockpit-task-body:has(.ticket-center) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cockpit-task-panel .cockpit-card-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 7px 8px;
  border-top: 2px solid #808080;
  background: #dcdcdc;
}

.cockpit-task-panel label {
  display: block;
  margin: 7px 0 3px;
  font-weight: bold;
}

.cockpit-primary-textarea,
.cockpit-secondary-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.cockpit-primary-textarea {
  min-height: 180px;
}

.cockpit-primary-textarea.leadership-note {
  min-height: 210px;
}

.cockpit-secondary-textarea {
  min-height: 110px;
}

.leadership-workspace {
  display: grid;
  grid-template-rows: minmax(180px, 38fr) minmax(220px, 49fr) minmax(44px, auto);
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.leadership-field {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.leadership-field label {
  flex: 0 0 auto;
}

.leadership-field textarea {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  resize: none;
}

.leadership-workspace #cockpit-leadership-note,
.leadership-workspace #cockpit-feedback-text {
  min-height: 0;
}

.leadership-feedback-points {
  min-height: 0;
  max-height: 92px;
  overflow: auto;
  align-content: start;
}

.cockpit-inline-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}

.cockpit-inline-facts div {
  min-width: 0;
  padding: 5px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.cockpit-inline-facts span {
  display: block;
  color: #555555;
  font-size: 9px;
  text-transform: uppercase;
}

.cockpit-inline-facts strong {
  display: block;
  overflow-wrap: anywhere;
}

.compact-note {
  margin-top: 0;
}

.cockpit-feedback-points {
  max-height: 112px;
}

.cockpit-feedback-points.compact {
  max-height: 74px;
}

.cockpit-technical-details {
  margin-top: 8px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.cockpit-technical-details summary {
  padding: 6px;
  cursor: pointer;
  font-weight: bold;
}

.communication-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 6px 0;
}

.communication-status-grid div {
  min-width: 0;
  padding: 5px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.communication-status-grid span {
  display: block;
  color: #555555;
  font-size: 9px;
  text-transform: uppercase;
}

.communication-status-grid strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.communication-core-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

.communication-core-status div,
.communication-action-section,
.communication-history-panel,
.communication-workflow-panel,
.ticket-message-composer {
  border: 1px solid #808080;
  background: #ffffff;
  padding: 7px;
}

.communication-core-status span,
.communication-section-head span,
.ticket-message-actions span {
  display: block;
  color: #555555;
  font-size: 10px;
}

.communication-core-status strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.communication-section-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}

.communication-section-head strong {
  font-size: 12px;
}

.ticket-message-composer {
  margin: 8px 0;
}

.ticket-message-composer textarea {
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  resize: vertical;
}

.ticket-message-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.ticket-message-actions button {
  min-width: 92px;
}

.communication-ticket-actions {
  margin-top: 6px;
}

.communication-action-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.communication-action-groups > div {
  min-width: 0;
  border: 1px solid #a0a0a0;
  background: #f5f5f5;
  padding: 6px;
}

.communication-action-groups span {
  display: block;
  color: #555555;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.communication-action-groups .cockpit-card-actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.communication-full-module {
  margin-top: 8px;
  padding: 6px;
  border: 1px solid #808080;
  background: #d0d0d0;
}

.communication-full-module .cockpit-discord-foundation {
  min-height: 96px;
}

.communication-workstation {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(210px, 0.8fr);
  gap: 8px;
  min-height: 100%;
}

.communication-workstation-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 8px;
}

.communication-workstation .communication-full-module {
  margin-top: 0;
}

.communication-history-panel,
.communication-workflow-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.communication-workflow-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.communication-workflow-panel .cockpit-card-actions {
  position: static;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.communication-workflow-panel select {
  width: 100%;
}

.cockpit-case-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0;
  padding: 6px;
  border: 2px inset #808080;
  background: #dcdcdc;
  color: #000000;
}

.cockpit-case-card div {
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
}

.cockpit-case-card span,
.communication-summary-grid span,
.image-viewer-meta span {
  display: block;
  color: #555555;
  font-size: 10px;
}

.cockpit-case-card strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.genkontrol-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(520px, 1.65fr) minmax(300px, 0.9fr);
  gap: 8px;
  margin: 8px 0 10px;
  min-height: 760px;
}

.cockpit-work-area > .genkontrol-workbench {
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.sagscockpit-workspace.genkon-mode {
  height: calc(100vh - 128px);
  min-height: 760px;
}

.genkontrol-column,
.genkontrol-subpanel,
.genkontrol-viewer,
.genkontrol-approval {
  min-width: 0;
  border: 2px inset #808080;
  background: #c0c0c0;
  color: #000000;
}

.genkontrol-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 760px;
  border: 0;
  background: transparent;
}

.cockpit-work-area .genkontrol-column {
  min-height: 0;
}

.review-stack {
  display: grid;
  grid-template-rows: minmax(110px, 0.55fr) minmax(260px, 1.2fr) minmax(170px, 0.75fr) minmax(150px, 0.7fr);
  gap: 8px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
}

.genkontrol-scroll-zone {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 2px inset #808080;
  background: #c0c0c0;
}

.original-report-zone {
  flex: 1 1 auto;
  height: 100%;
}

.genkontrol-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px;
  border-bottom: 1px solid #808080;
  background: #000080;
  color: #ffffff;
}

.genkontrol-panel-head h4 {
  margin: 0;
  font-size: 12px;
}

.genkontrol-panel-head span {
  text-align: right;
  font-size: 10px;
  font-weight: bold;
}

.genkontrol-report-text {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  background: #ffffff;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.genkontrol-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.genkontrol-viewer.expanded {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: calc(100vh - 190px);
}

.image-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid #808080;
  background: #dcdcdc;
}

.image-viewer-toolbar button,
.image-viewer-toolbar a,
.image-viewer-strip button {
  padding: 3px 7px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.image-viewer-toolbar button:disabled {
  color: #808080;
  cursor: default;
}

.image-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 0;
  background: #1f1f1f;
  cursor: zoom-in;
}

.image-viewer-stage img {
  max-width: 92%;
  max-height: 92%;
  transform-origin: center;
  transition: transform 120ms linear;
}

.image-viewer-meta {
  padding: 6px 8px;
  border-top: 1px solid #808080;
  background: #ffffff;
}

.image-viewer-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.image-viewer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 4px;
  padding: 6px;
  border-top: 1px solid #808080;
  background: #dcdcdc;
}

.image-viewer-strip button {
  height: 58px;
  padding: 2px;
}

.image-viewer-strip button.active {
  border-style: inset;
  background: #ffffff;
}

.image-viewer-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genkontrol-empty {
  padding: 10px;
  background: #ffffff;
  color: #555555;
}

.approval-package-list {
  margin-bottom: 8px;
  border: 2px inset #808080;
  background: #c0c0c0;
}

.approval-package-item {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-top: 1px solid #808080;
  background: #ffffff;
}

.approval-package-item strong,
.approval-package-item span,
.approval-package-item a {
  overflow-wrap: anywhere;
}

.genkontrol-subpanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 6px;
  overflow: auto;
}

.genkontrol-subpanel .quality-checklist {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.genkontrol-subpanel .quality-checklist-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.previous-feedback-list {
  margin: 0;
  padding: 8px 8px 8px 28px;
  background: #ffffff;
}

.previous-feedback-list li {
  margin-bottom: 5px;
  font-weight: bold;
}

.communication-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
}

.genkontrol-workbench .cockpit-discord-foundation .communication-core-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.genkontrol-workbench .cockpit-discord-foundation .technical-details {
  display: none;
}

.genkontrol-workbench .communication-action-groups {
  display: grid;
  grid-template-columns: 1fr;
}

.communication-summary-grid div,
.communication-assets {
  border: 1px solid #808080;
  background: #ffffff;
  padding: 6px;
}

.communication-summary-grid strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.communication-timeline {
  padding: 6px;
  background: #dcdcdc;
}

.communication-timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  gap: 6px;
  align-items: start;
  padding: 5px 0;
  border-bottom: 1px dashed #808080;
}

.communication-timeline-item time {
  font-weight: bold;
}

.communication-timeline-item strong,
.communication-timeline-item span,
.communication-timeline-item p {
  display: block;
  margin: 0;
}

.communication-timeline-item span {
  color: #555555;
  font-size: 10px;
}

.communication-timeline-item i {
  color: #000080;
  font-style: normal;
  font-weight: bold;
  text-align: center;
}

.communication-assets {
  display: grid;
  gap: 4px;
  margin: 6px;
}

.communication-assets a {
  overflow-wrap: anywhere;
}

.genkontrol-approval {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 8px;
  background: #ffffff;
  overflow: hidden;
}

.approval-checks {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #808080;
}

.genkontrol-approval label {
  display: block;
  margin: 7px 8px 3px;
  font-weight: bold;
}

.genkontrol-approval textarea {
  width: calc(100% - 16px);
  flex: 1 1 auto;
  min-height: 92px;
  margin: 0 8px;
  resize: vertical;
}

.genkontrol-approval .cockpit-card-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  background: #dcdcdc;
  border-top: 1px solid #808080;
}

.integrated-case-panel,
.tablet-read-panel {
  border: 1px solid #808080;
  background: #d8d8d8;
  color: #000000;
  padding: 6px;
}

.tablet-read-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 6px;
  border-bottom: 1px solid #808080;
  background: #eeeeee;
  color: #000000;
}

.tablet-read-titlebar h3,
.tablet-read-titlebar p {
  margin: 0;
}

.tablet-read-titlebar h3 {
  font-size: 11px;
  letter-spacing: 0;
}

.tablet-read-titlebar p {
  margin-top: 2px;
  font-size: 10px;
  color: #444444;
}

.tablet-read-open-full,
.tablet-read-tabs button {
  padding: 3px 8px;
  border: 1px solid #808080;
  background: #efefef;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.tablet-read-open-full {
  flex: 0 0 auto;
  width: 24px;
  padding: 2px 0;
}

.tablet-read-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0;
}

.tablet-read-tabs button.active {
  background: #ffffff;
  border-color: #000000;
}

.tablet-read-body {
  height: calc(100% - 62px);
  min-height: 420px;
  overflow: auto;
  padding: 6px;
  border: 1px inset #808080;
  background: #c0c0c0;
}

.genkontrol-read-panel .tablet-read-body {
  min-height: 0;
}

.genkontrol-read-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
}

.genkontrol-read-thumbs button {
  min-width: 0;
  padding: 4px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  text-align: left;
  cursor: pointer;
}

.genkontrol-read-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #b0b0b0;
}

.genkontrol-read-thumbs span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrated-fieldset {
  margin: 0 0 8px;
  padding: 8px;
  border: 2px solid #000000;
  background: #d0d0d0;
}

.integrated-fieldset legend {
  padding: 0 5px;
  font-weight: bold;
}

.integrated-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.integrated-readonly-field,
.integrated-readonly-box,
.integrated-empty {
  border: 1px solid #808080;
  background: #ffffff;
  padding: 6px;
}

.integrated-readonly-field span,
.integrated-readonly-box span,
.integrated-document-list span {
  display: block;
  color: #555555;
  font-size: 10px;
}

.integrated-readonly-field strong,
.integrated-readonly-box strong {
  display: block;
  margin-top: 2px;
  word-break: break-word;
}

.integrated-text-block,
.integrated-report-body {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px inset #808080;
  background: #ffffff;
  color: #000000;
  padding: 8px;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.integrated-text-block {
  max-height: 360px;
}

.integrated-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 11px;
}

.integrated-table th,
.integrated-table td {
  border: 1px solid #808080;
  padding: 5px;
  text-align: left;
  vertical-align: top;
}

.integrated-table th {
  background: #dcdcdc;
}

.integrated-stack {
  display: grid;
  gap: 6px;
}

.integrated-readonly-box p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.integrated-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
  min-height: 560px;
}

.integrated-report-body {
  height: 100%;
  min-height: 540px;
}

.integrated-document-list {
  display: grid;
  align-content: start;
  gap: 6px;
}

.integrated-document-list > div,
.integrated-document-list > strong {
  border: 1px solid #808080;
  background: #ffffff;
  padding: 6px;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.cockpit-section {
  min-width: 0;
  padding: 8px;
  border: 1px solid #808080;
  background: #e0e0e0;
  font-size: 11px;
  grid-column: span 4;
}

.cockpit-section.active {
  border: 2px solid #000080;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #dce6ff;
}

.cockpit-section-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #a0a0a0;
}

.cockpit-section-head h4 {
  margin: 0;
  font-size: 12px;
}

.cockpit-section-head p {
  margin: 2px 0 0;
  color: #555555;
  font-size: 10px;
}

.cockpit-section-head > span {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid #000080;
  background: #000080;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
}

.cockpit-section label {
  display: block;
  margin-top: 6px;
  font-weight: bold;
}

.cockpit-section textarea {
  width: 100%;
  min-height: 120px;
  max-height: 260px;
  resize: vertical;
  box-sizing: border-box;
}

.cockpit-section[data-cockpit-card="kvalitet"] {
  grid-column: span 5;
}

.cockpit-section[data-cockpit-card="checklist"] {
  grid-column: span 7;
}

.cockpit-note {
  padding: 4px;
  margin: 4px 0 6px;
  border: 1px solid #a0a0a0;
  background: #ffffff;
  line-height: 1.35;
}

.cockpit-kv {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 6px;
  padding: 2px 0;
}

.cockpit-kv span {
  color: #555555;
}

.cockpit-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 26px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #b0b0b0;
}

.cockpit-card-actions button {
  padding: 3px 7px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.cockpit-card-actions button[data-critical="true"] {
  background: #fff3a3;
}

.cockpit-card-actions span {
  color: #555555;
  font-size: 10px;
}

.discord-sync-warning {
  border-color: #d97706;
  background: #fff7d6;
  color: #7c2d12;
}

.discord-details,
.discord-admin-actions {
  margin-top: 8px;
  border-top: 1px dashed #808080;
  padding-top: 6px;
}

.discord-details summary,
.discord-admin-actions summary {
  cursor: pointer;
  color: #404040;
  font-size: 10px;
  font-weight: bold;
}

.discord-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.discord-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  padding: 18px;
  font-family: Arial, sans-serif;
}

.discord-modal-header,
.discord-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discord-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.discord-modal-header button {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.discord-modal-grid,
.discord-selected {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.discord-modal-grid > div,
.discord-selected > div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.discord-modal-wide {
  grid-column: 1 / -1;
}

.discord-modal-grid span,
.discord-selected span,
.discord-field span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.discord-modal-grid strong,
.discord-selected strong {
  color: #0f172a;
  word-break: break-word;
}

.discord-field {
  display: block;
  margin: 12px 0 6px;
}

.discord-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
}

.discord-autocomplete-results {
  display: grid;
  gap: 6px;
}

.discord-autocomplete-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.discord-autocomplete-option:hover,
.discord-autocomplete-option:focus {
  border-color: #2563eb;
  background: #eff6ff;
}

.discord-autocomplete-option small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.discord-autocomplete-avatar,
.discord-autocomplete-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.discord-autocomplete-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  overflow: hidden;
  flex: 0 0 auto;
}

.discord-autocomplete-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  color: #64748b;
  background: #f8fafc;
}

.discord-modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.discord-modal-actions button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 14px;
  background: #ffffff;
  cursor: pointer;
}

.discord-modal-actions button[data-discord-save] {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #ffffff;
}

.cockpit-feedback-points {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  max-height: 112px;
  overflow: auto;
}

.cockpit-feedback-points.compact {
  max-height: 74px;
}

.cockpit-feedback-points button {
  font-size: 10px;
  padding: 2px 5px;
}

.quality-checklist {
  border: 1px solid #808080;
  background: #d0d0d0;
}

.quality-checklist summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px;
  cursor: pointer;
  font-weight: bold;
}

.quality-checklist summary strong {
  padding: 2px 5px;
  border: 1px solid #808080;
  background: #ffffff;
  font-size: 10px;
}

.quality-checklist-items {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.quality-checklist-item {
  border: 1px solid #808080;
  background: #ffffff;
  padding: 6px;
}

.quality-checklist-item.missing {
  border-color: #b00000;
  background: #fff0f0;
}

.quality-checklist-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.quality-checklist-title span {
  color: #555555;
  font-size: 10px;
  text-align: right;
}

.quality-checklist-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.quality-checklist-controls label {
  margin: 0;
  font-weight: normal;
}

.quality-checklist-controls button {
  margin-left: auto;
  padding: 2px 6px;
  font-size: 10px;
}

.quality-checklist textarea {
  width: 100%;
  margin-top: 5px;
  resize: vertical;
  box-sizing: border-box;
}

.quality-warning {
  border-color: #b00000;
  background: #fff0f0;
}

.cockpit-section[data-cockpit-card="historik"] {
  grid-column: 1 / -1;
}

.cockpit-report-panel {
  grid-column: span 7;
}

.cockpit-report-panel.collapsed {
  min-height: 0;
}

.cockpit-report-body {
  height: 38vh;
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 8px;
  border: 1px inset #808080;
  background: #ffffff;
  color: #000000;
  white-space: pre-wrap;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

#cockpit-report-toggle {
  padding: 2px 6px;
  border: 2px outset #dfdfdf;
  background: #d0d0d0;
  cursor: pointer;
  font-size: 10px;
}

.cockpit-timeline {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.cockpit-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #808080;
}

.cockpit-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px;
}

.cockpit-timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 1px solid #000080;
  background: #ffffff;
  z-index: 1;
}

.cockpit-timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cockpit-timeline-top span,
.cockpit-timeline-meta,
.cockpit-timeline-text {
  color: #555555;
  font-size: 10px;
}

.cockpit-timeline-text {
  margin-top: 2px;
}

.cockpit-empty {
  color: #555555;
  font-size: 10px;
}

@media (max-width: 900px) {
  .verser-focus-view {
    inset: 84px 8px 8px 8px;
  }

  .verser-focus-toolbar {
    grid-template-columns: 1fr;
  }

  .cockpit-header {
    display: block;
  }

  .cockpit-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    margin-top: 8px;
  }

  .cockpit-steps,
  .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-next {
    grid-template-columns: 1fr;
  }

  .sagscockpit-workspace,
  .genkontrol-workbench,
  .integrated-report-layout,
  .communication-workstation {
    grid-template-columns: 1fr;
  }

  .communication-core-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communication-action-groups {
    grid-template-columns: 1fr;
  }

  .integrated-cockpit-column,
  .integrated-case-panel {
    max-height: none;
  }

  .integrated-readonly-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-case-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genkontrol-column {
    min-height: 0;
  }

  .image-viewer-stage {
    min-height: 320px;
  }
}

.verser-priority-high {
  color: #8b0000;
  font-weight: bold;
}

textarea {
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  background: #ffffff;
  color: #000000;
}

.bilag-item {
  background: #c0c0c0;
  border: 1px solid #808080;
  padding: 4px;
  margin-bottom: 4px;
  font-size: 10px;
  color: #000000;
}

.bilag-item strong {
  display: block;
  margin-bottom: 2px;
  color: #000000;
}

.bilag-text {
  margin-left: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.dokument-item,
.sagsplacering-item {
  background: #c0c0c0;
  border: 1px solid #808080;
  padding: 4px;
  margin-bottom: 4px;
  font-size: 10px;
}

.henlaeggelse-warning-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2700;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.henlaeggelse-warning-window {
  width: min(720px, calc(100vw - 28px));
  background: #c0c0c0;
  color: #000000;
  border: 2px outset;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 3px 3px 0 #000000;
}

.henlaeggelse-warning-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
}

.henlaeggelse-warning-titlebar button,
.henlaeggelse-warning-statusbar button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.henlaeggelse-warning-body {
  padding: 10px;
  font-size: 11px;
}

.henlaeggelse-warning-alert {
  margin-bottom: 8px;
  padding: 5px;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #fff3a3;
  font-weight: bold;
}

.henlaeggelse-warning-info {
  background: #ffffff;
}

.henlaeggelse-warning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.henlaeggelse-warning-grid > div {
  padding: 6px;
  border: 1px solid #808080;
  background: #ffffff;
}

.close-case-helper-choice {
  display: block;
  width: 100%;
  padding: 8px;
  border: 2px outset;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #ffffff;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.close-case-helper-choice:active {
  border-style: inset;
  border-color: #808080 #ffffff #ffffff #808080;
}

.close-case-helper-choice strong,
.close-case-helper-choice span {
  display: block;
}

.close-case-helper-choice span {
  margin-top: 4px;
  font-weight: normal;
}

.henlaeggelse-warning-statusbar {
  padding: 6px 8px;
  border-top: 1px solid #808080;
  text-align: right;
}

.rapportbestilling-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(300px, 1.3fr);
  gap: 10px;
  align-items: start;
}

.rapportbestilling-left fieldset {
  margin-bottom: 8px !important;
}

.rapportbestilling-left select,
.rapportbestilling-left input[type='file'],
.rapportbestilling-left input[type='text'] {
  width: 100%;
  margin-top: 2px;
}

.afhoering-options {
  display: none;
  padding: 5px;
  margin: 6px 0;
  background: #d0d0d0;
  border: 1px inset #808080;
}

.rapport-checkbox-line {
  display: block;
  margin: 5px 0;
  color: #000000;
  font-size: 11px;
}

.rapportbestilling-list-title {
  padding: 3px 5px;
  background: #000080;
  color: #ffffff;
  border: 1px solid #000000;
  font-weight: bold;
  margin-bottom: 4px;
}

.rapportbestilling-right {
  min-height: 220px;
  padding: 5px;
  background: #ffffff;
  color: #000000;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.dokument-report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: #e6e6e6;
  color: #000000;
}

.dokument-meta {
  margin-top: 2px;
  color: #303030;
  font-size: 9px;
}

.dokument-subtitle {
  margin-top: 1px;
  font-size: 10px;
  color: #000000;
}

.dokument-right-code {
  margin-top: 2px;
  color: #555555;
  font-size: 8px;
}

.dokument-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dokument-actions button,
.rapport-editor-statusbar button,
.rapport-editor-titlebar button,
.rapport-editor-toolbar button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.dokument-actions button:active,
.rapport-editor-statusbar button:active,
.rapport-editor-titlebar button:active,
.rapport-editor-toolbar button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.rapport-editor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.rapport-editor-window {
  width: min(980px, calc(100vw - 28px));
  height: min(820px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #c0c0c0;
  color: #000000;
  border: 2px outset;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 3px 3px 0 #000000;
}

.rapport-editor-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  background: linear-gradient(to right, #000080, #1084d7);
  color: #ffffff;
  font-weight: bold;
}

.rapport-editor-titlebar button {
  min-width: 22px;
  padding: 0 5px;
  line-height: 16px;
}

.rapport-editor-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid #808080;
}

.rapport-editor-toolbar select {
  height: 22px;
  border: 2px inset;
  background: #ffffff;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

.rapport-editor-separator {
  width: 1px;
  height: 20px;
  background: #808080;
  border-right: 1px solid #ffffff;
}

.rapport-editor-body {
  overflow: auto;
  padding: 18px;
  background: #808080;
}

#rapport-page-stack {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.rapport-paper {
  width: 794px;
  min-height: 1060px;
  margin: 0 auto;
  padding: 76px;
  background: #ffffff;
  color: #000000;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  box-shadow: 2px 2px 0 #404040;
}

.rapport-paper-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
}

.rapport-paper pre {
  margin: 0;
  font-family: 'Times New Roman', serif;
  white-space: pre-wrap;
}

.rapport-header-authority {
  font-weight: bold;
}

.rapport-header-right {
  text-align: right;
}

.rapport-header-right h1 {
  margin: 34px 0 6px;
  font-family: 'Times New Roman', serif;
  font-size: 28px;
}

#rapport-journal-box {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #000000;
  font-weight: bold;
}

#rapport-created-at {
  margin-top: 12px;
  white-space: pre-line;
}

#rapport-subtype {
  margin: -2px 0 14px;
  font-size: 18px;
}

.rapport-subtype-strong {
  font-weight: bold;
  font-size: 28px !important;
  line-height: 1.05;
}

#rapport-system-info {
  margin-top: 46px;
  padding: 12px 14px;
  border: 1px solid #b0b0b0;
  background: #f8f8f8;
}

.rapport-system-block {
  margin-bottom: 13px;
}

.rapport-system-block em {
  display: block;
  margin-bottom: 3px;
}

.rapport-system-block:last-child {
  margin-bottom: 0;
}

.rapport-system-block pre {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.3;
}

.rapport-system-notice {
  margin: 22px 0 8px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.28;
  font-style: italic;
  text-indent: 0;
}

.rapport-system-grid {
  width: 58%;
  margin: 18px 0;
}

.rapport-system-grid-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  margin-bottom: 7px;
}

.rapport-system-grid-row em {
  white-space: nowrap;
}

.rapport-locked-prior-text {
  display: none;
  margin-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px dotted #999999;
  white-space: pre-wrap;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.35;
}

#rapport-body-input {
  width: 100%;
  height: 360px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.35;
  background: #ffffff;
  color: #000000;
}

.rapport-body-page-full {
  width: 100%;
  height: 760px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.35;
  background: #ffffff;
  color: #000000;
}

.rapport-measure-textarea {
  padding: 0;
  border: 0;
  resize: none;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.35;
  white-space: pre-wrap;
}

#rapport-body-input[readonly],
.rapport-body-page-full[readonly] {
  background: #f8f8f8;
}

.rapport-signature {
  width: 330px;
  margin: 72px auto 0;
  text-align: center;
}

.rapport-signature-line {
  border-top: 1px solid #000000;
  margin: 18px 0 4px;
}

.rapport-editor-statusbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-top: 1px solid #ffffff;
}

#rapport-editor-lock {
  color: #500000;
  font-weight: bold;
}

.rapport-viewer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2450;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}

.rapport-viewer-window {
  width: min(940px, calc(100vw - 28px));
  height: min(840px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #d8d8d8;
  color: #000000;
  border: 2px solid #202020;
  box-shadow: 0 0 0 2px #ffffff inset, 4px 4px 0 #000000;
}

.rapport-viewer-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 7px;
  background: #202020;
  color: #ffffff;
  font-weight: bold;
}

.rapport-viewer-titlebar button,
.rapport-viewer-statusbar button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.rapport-viewer-body {
  overflow: auto;
  padding: 20px;
  background: #6f6f6f;
}

#rapport-viewer-pages {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.rapport-viewer-page {
  width: 794px;
  min-height: 1060px;
  padding: 76px;
  background: #ffffff;
  color: #000000;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  box-shadow: 0 0 0 1px #404040, 3px 3px 0 #303030;
}

.rapport-viewer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
}

.rapport-viewer-head-right {
  text-align: right;
}

.rapport-viewer-head-right h1 {
  margin: 34px 0 6px;
  font-size: 28px;
}

.rapport-viewer-subtype {
  margin: -2px 0 14px;
  font-size: 18px;
}

.rapport-viewer-subtype.rapport-subtype-strong {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.05;
}

.rapport-viewer-jnr {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #000000;
  font-weight: bold;
}

.rapport-viewer-head-right pre {
  margin: 12px 0 0;
  font-family: 'Times New Roman', serif;
  white-space: pre-wrap;
}

.rapport-viewer-system {
  margin-top: 46px;
  padding: 12px 14px;
  border: 1px solid #b0b0b0;
  background: #f8f8f8;
  font-size: 16px;
}

.rapport-viewer-text {
  margin-top: 28px;
  white-space: pre-wrap;
  line-height: 1.35;
}

.rapport-viewer-text-continued {
  margin-top: 0;
  min-height: 760px;
}

.rapport-viewer-signature {
  width: 330px;
  margin: 90px auto 0;
  text-align: center;
}

.rapport-viewer-signature-line {
  border-top: 1px solid #000000;
  margin: 18px 0 4px;
}

.rapport-viewer-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-top: 1px solid #ffffff;
  background: #d8d8d8;
}

.rapport-rights-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.rapport-rights-window {
  width: min(560px, calc(100vw - 28px));
  background: #c0c0c0;
  color: #000000;
  border: 2px outset;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 3px 3px 0 #000000;
}

.rapport-rights-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
}

.rapport-rights-titlebar button,
.rapport-rights-statusbar button,
.rapport-rights-grid button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.rapport-rights-body {
  padding: 8px;
}

.rapport-rights-current {
  margin-bottom: 8px;
  padding: 4px;
  border: 1px inset #808080;
  background: #ffffff;
  font-size: 10px;
}

.rapport-rights-grid {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 5px 8px;
  align-items: center;
}

.rapport-rights-grid button.active {
  background: #fff3a3;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.rapport-rights-statusbar {
  padding: 6px 8px;
  border-top: 1px solid #808080;
  text-align: right;
}

.kompleks-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.kompleks-window {
  width: min(720px, calc(100vw - 28px));
  background: #c0c0c0;
  color: #000000;
  border: 2px outset;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 3px 3px 0 #000000;
}

.kompleks-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
}

.kompleks-titlebar button,
.kompleks-statusbar button,
.kompleks-input-row button,
.kompleks-code-item button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.kompleks-body {
  padding: 8px;
}

.kompleks-help {
  margin-bottom: 8px;
  font-size: 10px;
}

.kompleks-input-row {
  display: grid;
  grid-template-columns: 90px 130px 1fr auto;
  gap: 6px;
  align-items: center;
}

.kompleks-code-wrap {
  position: relative;
}

#kompleks-gerningskode,
#kompleks-gerningskode-title {
  width: 100%;
  padding: 2px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

#kompleks-gerningskode-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 360px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 2650;
  background: #ffffff;
  border: 1px solid #000000;
}

.kompleks-popup-item,
.kompleks-popup-empty {
  padding: 4px;
  cursor: pointer;
  border-bottom: 1px solid #c0c0c0;
}

.kompleks-popup-item:hover {
  background: #d0d0d0;
}

#kompleks-code-list {
  margin-top: 10px;
  padding: 5px;
  min-height: 64px;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #ffffff;
}

.kompleks-code-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 3px;
  border-bottom: 1px solid #d0d0d0;
  font-size: 10px;
}

.kompleks-related-item {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 8px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid #d0d0d0;
  background: #ffffff;
  font-size: 10px;
}

.kompleks-related-item button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.kompleks-related-item button:disabled {
  color: #808080;
  cursor: default;
}

.ai-result {
  margin-top: 8px;
  padding: 6px;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #ffffff;
  font-size: 10px;
}

.ai-result h4 {
  margin: 4px 0;
  font-size: 11px;
}

.ai-suggestion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid #d0d0d0;
}

.ai-result button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}

.ai-report-draft {
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #808080;
  background: #ffffff;
}

.kompleks-statusbar {
  padding: 6px 8px;
  border-top: 1px solid #808080;
  text-align: right;
}

.leder-sagspl-result {
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.leder-sagspl-item {
  background: #ffffff;
  color: #000000;
  border: 1px solid #808080;
  padding: 5px;
  margin-bottom: 4px;
  cursor: pointer;
}

.leder-sagspl-item:hover {
  background: #e6e6e6;
}

.leder-sagspl-heading {
  background: #000080;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 3px 5px;
  margin: 6px 0 4px;
  font-weight: bold;
}

.leder-sagspl-meta {
  font-size: 10px;
  color: #303030;
  margin-top: 2px;
}

.leder-sagspl-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  z-index: 1200;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.leder-sagspl-popup-note {
  padding: 5px;
  border-bottom: 1px solid #808080;
  color: #333333;
  background: #f2f2f2;
}

.leder-sagspl-popup-item {
  padding: 5px;
  cursor: pointer;
}

.leder-sagspl-popup-item:hover {
  background: #d0d0d0;
}

.mail-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px;
  min-height: 520px;
}

.mail-sidebar,
.mail-main,
.mail-compose,
.mail-message-list,
.mail-message-view {
  background: #ffffff;
  color: #000000;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.mail-sidebar {
  padding: 6px;
}

.mail-command,
.mail-folder,
.mail-mailbox,
.mail-actions button {
  width: 100%;
  margin-bottom: 5px;
  padding: 4px 7px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.mail-command {
  background: #000080;
  color: #ffffff;
}

.mail-folder.active,
.mail-mailbox.active {
  background: #fff3a3;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.mail-sidebar-title {
  margin: 8px 0 4px;
  padding: 3px 5px;
  background: #000080;
  color: #ffffff;
  font-weight: bold;
}

.mail-main {
  padding: 6px;
}

.mail-compose {
  margin-bottom: 8px;
  padding: 8px;
}

.mail-compose-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 8px;
  align-items: start;
}

.mail-compose-grid label {
  font-weight: bold;
}

.mail-compose-grid input,
.mail-compose-grid select,
.mail-compose-grid textarea {
  width: 100%;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  padding: 3px;
}

.mail-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.mail-actions button {
  width: auto;
}

.mail-content-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 8px;
  min-height: 390px;
}

.mail-message-list,
.mail-message-view {
  overflow: auto;
}

.mail-message-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px;
  border: 0;
  border-bottom: 1px solid #c0c0c0;
  background: #ffffff;
  color: #000000;
  text-align: left;
  cursor: pointer;
}

.mail-message-item:hover {
  background: #dbeafe;
}

.mail-message-item.unread strong {
  color: #000080;
}

.mail-message-item span,
.mail-message-item small {
  font-size: 10px;
}

.mail-message-view {
  padding: 10px;
}

.mail-message-view h3 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #808080;
  font-size: 14px;
}

.mail-meta {
  margin-bottom: 4px;
  font-size: 11px;
}

.mail-message-view pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.mail-empty,
.mail-status {
  padding: 8px;
  color: #303030;
}

.mail-status.ok {
  color: #006000;
  font-weight: bold;
}

.mail-status.error {
  color: #800000;
  font-weight: bold;
}

.partie-item {
  background: #ffffff;
  border: 2px inset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  color: #000000;
  padding: 8px;
  margin: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.partie-item strong {
  color: #000000;
  font-size: 13px;
}

.partie-item span {
  color: #000000;
  display: block;
  margin-top: 2px;
}

.partie-item .remove-part {
  background: #c0c0c0;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  color: #000000;
  font-size: 11px;
  min-width: 22px;
  min-height: 22px;
  padding: 0 5px;
  cursor: pointer;
}

.polai-actions {
  margin-top: 6px;
  text-align: right;
}

.polai-actions button,
.polai-result button {
  padding: 2px 8px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.polai-result {
  margin-top: 8px;
  padding: 6px;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #ffffff;
  font-size: 10px;
}

.polai-action-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  align-items: start;
  padding: 5px;
  border-bottom: 1px solid #d0d0d0;
}

.polai-action-item strong {
  display: block;
  margin-bottom: 2px;
}

.polai-preview {
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid #c0c0c0;
}

fieldset {
  border: 2px solid #000000 !important;
  padding: 8px !important;
  margin-bottom: 8px !important;
  background: #c0c0c0 !important;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

fieldset legend {
  padding: 0 6px !important;
  font-weight: bold;
  background: #c0c0c0;
  font-size: 11px;
  text-transform: uppercase;
  color: #000000;
}

fieldset label {
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
}

fieldset input,
fieldset select {
  background: #ffffff;
  color: #000000;
  border: 1px solid #808080;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  padding: 2px;
}

fieldset textarea {
  background: #ffffff;
  color: #000000;
  border: 1px solid #808080;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

.gerningskode-item {
  background: #c0c0c0;
  border: 1px solid #808080;
  padding: 3px;
  margin-bottom: 1px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gerningskode-item button {
  padding: 1px 4px;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 9px;
  cursor: pointer;
  margin-left: 2px;
}

.gerningskode-item button:active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
}

body.home-shortcuts {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(3, 12, 25, 0.24) 0%, rgba(3, 12, 25, 0.1) 42%, rgba(3, 12, 25, 0.02) 100%),
    url('/assets/image.png') center / cover fixed,
    #061426;
  min-height: 100vh;
}

.home-shortcuts::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 12, 25, 0.28) 0%, rgba(3, 12, 25, 0.14) 44%, rgba(3, 12, 25, 0.02) 100%);
}

.home-backgrounds {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
  transform: scale(1.04);
  will-change: opacity, transform;
}

.home-background.active {
  opacity: 1;
}

.home-background-one {
  background-image:
    url('/assets/image.png');
}

.home-background-two {
  background-image:
    url('/assets/Skrmbillede_2026-01-28_195117.png');
}

.home-background-three {
  background-image:
    url('/assets/Skrmbillede_2026-01-28_195804.png');
}

.home-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px 10px;
  background: transparent;
  border-bottom: 0;
  text-align: left;
}

.home-brand {
  display: inline-block;
  padding: 7px 13px;
  background: rgba(0, 36, 77, 0.78);
  border-left: 8px solid #d7ef00;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.home-main {
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-height: calc(100vh - 96px);
  padding: 46px 34px 42px;
  display: grid;
  grid-template-columns: minmax(360px, 680px) minmax(280px, 430px);
  grid-template-areas:
    "welcome info"
    "menu info";
  gap: 34px;
  align-content: center;
  align-items: start;
  justify-content: space-between;
}

.intranet-welcome {
  grid-area: welcome;
  justify-self: start;
  padding: 8px 12px;
  background: rgba(4, 19, 36, 0.7);
  border: 1px solid rgba(215, 239, 0, 0.28);
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 14px;
  color: #f5fbff;
}

.shortcut-panel {
  grid-area: menu;
  width: min(680px, 100%);
  background: rgba(0, 36, 77, 0.86);
  border: 1px solid rgba(215, 239, 0, 0.32);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.home-info-board {
  grid-area: info;
  width: min(430px, 100%);
  min-height: 260px;
  justify-self: end;
  align-self: center;
  padding: 22px;
  background: rgba(0, 36, 77, 0.78);
  border: 1px solid rgba(215, 239, 0, 0.42);
  border-left: 8px solid #d7ef00;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.home-info-kicker {
  color: #d7ef00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-info-board h2 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

.home-info-board p {
  margin: 0;
  white-space: pre-line;
  color: #edf6ff;
  font-size: 19px;
  line-height: 1.45;
}

.home-audio-control {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 9px;
  width: 58px;
  padding: 12px 8px;
  transform: translateY(-50%);
  background: rgba(0, 36, 77, 0.9);
  border: 1px solid rgba(215, 239, 0, 0.5);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.home-audio-label {
  color: #d7ef00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.home-audio-control button {
  border: 1px solid rgba(215, 239, 0, 0.7);
  border-radius: 4px;
  background: rgba(5, 23, 40, 0.88);
  color: #ffffff;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.home-audio-control button.active {
  background: #d7ef00;
  color: #0d2338;
}

.home-audio-control input[type='range'] {
  width: 128px;
  height: 28px;
  transform: rotate(-90deg) translateX(-50px);
  transform-origin: 18px 18px;
  accent-color: #d7ef00;
}

.home-audio-control small {
  margin-top: 70px;
  color: #d7ef00;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  writing-mode: vertical-rl;
}

#home-audio-player {
  position: fixed;
  width: 200px;
  height: 120px;
  right: 0;
  bottom: 0;
  opacity: 0.01;
  pointer-events: none;
}

.shortcut-panel h2 {
  margin: 0;
  padding: 20px 18px;
  font-size: 48px;
  color: #d7ef00;
  background: rgba(0, 36, 77, 0.9);
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: #ffffff;
  border-top: 1px solid rgba(142, 163, 187, 0.58);
  font-size: 32px;
  font-weight: bold;
  transition: background 140ms ease, color 140ms ease, padding-left 140ms ease;
}

.shortcut-item .arrow {
  color: #d7ef00;
}

.shortcut-item.active:hover {
  background: rgba(11, 54, 104, 0.92);
  color: #d7ef00;
  padding-left: 24px;
}

.shortcut-item.disabled {
  opacity: 0.72;
}

.role-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-checkbox-item {
  background: #ffffff;
  border: 1px solid #808080;
  color: #000000;
  padding: 4px 6px;
  font-size: 11px;
}

.admin-status {
  color: #000000;
  font-weight: bold;
  min-height: 14px;
  margin-top: 4px;
}

body.admin-modern {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background:
    linear-gradient(90deg, rgba(215, 239, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(215, 239, 0, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 9%, rgba(215, 239, 0, 0.16), transparent 26%),
    linear-gradient(135deg, #071421 0%, #0b263f 48%, #132f4c 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: #f4f8ff;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background:
    linear-gradient(90deg, rgba(4, 16, 29, 0.98), rgba(6, 29, 50, 0.94)),
    #061421;
  border-bottom: 1px solid rgba(215, 239, 0, 0.34);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #d7ef00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-kicker::before {
  content: '';
  width: 28px;
  height: 16px;
  background: linear-gradient(105deg, #d7ef00 0 38%, transparent 38% 52%, #d7ef00 52% 90%, transparent 90%);
}

.admin-header h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0;
}

.admin-header p {
  margin: 7px 0 0;
  color: #c9d8e7;
  font-size: 15px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-top-menu {
  position: relative;
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  border: 1px solid rgba(215, 239, 0, 0.72);
  background: rgba(5, 23, 40, 0.76);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border-radius: 6px;
  padding: 9px 14px;
  box-shadow: inset 4px 0 0 rgba(215, 239, 0, 0.82);
}

.admin-home-link:hover {
  background: rgba(209, 245, 0, 0.18);
  color: #d8f500;
}

.admin-top-menu-toggle {
  border: 1px solid rgba(215, 239, 0, 0.85);
  background: rgba(5, 23, 40, 0.72);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
}

.admin-top-menu-toggle:hover,
.admin-top-menu-toggle[aria-expanded='true'] {
  background: rgba(209, 245, 0, 0.12);
}

.admin-top-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 50;
  width: 390px;
  padding: 20px;
  background: rgba(0, 36, 77, 0.96);
  border: 1px solid rgba(215, 239, 0, 0.48);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

.admin-top-menu-panel.open {
  display: grid;
  gap: 18px;
}

.admin-top-menu-panel .admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
}

.admin-top-menu-panel .admin-menu-btn::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 24px;
  flex: 0 0 auto;
  background: linear-gradient(105deg, #d8f500 0 34%, transparent 34% 50%, #d8f500 50% 84%, transparent 84%);
}

.admin-top-menu-panel .admin-menu-btn:hover,
.admin-top-menu-panel .admin-menu-btn.active {
  color: #d8f500;
}

.admin-logout {
  border: 0;
  background: #d1f500;
  color: #12243c;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}

.admin-grid {
  width: min(1320px, calc(100% - 48px));
  max-width: none;
  margin: 24px auto;
  padding: 0 0 34px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.admin-empty-state {
  min-height: 58vh;
  margin: 0;
  color: transparent;
}

.admin-empty-state.hidden {
  display: none;
}

.admin-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 34, 58, 0.96), rgba(7, 24, 42, 0.94)),
    #0b1f38;
  border: 1px solid rgba(155, 184, 216, 0.24);
  border-left: 7px solid #d7ef00;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.admin-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 3px;
  background: #d7ef00;
  opacity: 0.8;
}

.admin-card h2 {
  margin: 0 0 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(215, 239, 0, 0.24);
  font-size: 22px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-card-wide {
  grid-column: auto;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-menu-btn {
  border: 1px solid #4d6a8f;
  background: #173555;
  color: #dce9fb;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-menu-btn.active {
  background: #2f88e9;
  border-color: #2f88e9;
  color: #ffffff;
}

.admin-panel {
  display: none;
  gap: 16px;
}

.admin-panel.active {
  display: grid;
}

.admin-subsection.hidden {
  display: none;
}

.admin-field {
  margin-bottom: 12px;
}

.admin-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #d7ef00;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgba(155, 184, 216, 0.54);
  border-radius: 4px;
  background: #edf4fb;
  color: #0f2239;
  padding: 10px 11px;
  font-size: 14px;
}

.admin-field textarea {
  resize: vertical;
  min-height: 150px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.admin-btn {
  border: 0;
  background: linear-gradient(180deg, #2f88e9, #1f6fc6);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.admin-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.admin-btn-small {
  padding: 6px 10px;
  font-size: 12px;
}

.admin-btn-danger {
  background: #b6363d;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.admin-modern .role-checkbox-list {
  gap: 8px;
}

body.admin-modern .role-checkbox-item {
  border-radius: 4px;
  border: 1px solid rgba(155, 184, 216, 0.42);
  background: rgba(16, 52, 84, 0.9);
  color: #ffffff;
  padding: 7px 10px;
}

body.admin-modern .admin-status {
  color: #d5dfeb;
  margin-top: 10px;
}

body.admin-modern .admin-status.ok {
  color: #8ef0a8;
}

body.admin-modern .admin-status.error {
  color: #ff9ea0;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(9, 31, 53, 0.92);
  border: 1px solid rgba(155, 184, 216, 0.22);
  border-radius: 4px;
  overflow: hidden;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.admin-table th,
.admin-table td {
  padding: 13px 11px;
  border-bottom: 1px solid rgba(155, 184, 216, 0.18);
  border-right: 1px solid rgba(155, 184, 216, 0.12);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: linear-gradient(180deg, #173f68, #0d2d4e);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-table tr:hover td {
  background: rgba(35, 82, 126, 0.34);
}

.admin-user-edit-table input,
.admin-user-edit-table select {
  width: 100%;
  min-width: 150px;
  border: 1px solid rgba(155, 184, 216, 0.58);
  border-radius: 4px;
  background: #edf4fb;
  color: #0f2239;
  padding: 8px;
  font-size: 13px;
}

.admin-user-edit-table select {
  min-width: 210px;
}

.frontpage-department-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 280px;
  max-width: 420px;
}

.frontpage-department-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(155, 184, 216, 0.48);
  border-radius: 4px;
  background: rgba(17, 54, 89, 0.9);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.frontpage-department-chip input {
  width: auto;
  min-width: 0;
  margin: 0;
}

.mail-modern-grid {
  width: min(1380px, calc(100% - 48px));
  margin: 24px auto 36px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.mail-modern-card {
  background: linear-gradient(180deg, rgba(10, 34, 58, 0.96), rgba(7, 24, 42, 0.94));
  border: 1px solid rgba(155, 184, 216, 0.24);
  border-left: 7px solid #d7ef00;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  padding: 18px;
}

.mail-user-badge {
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 9px 12px;
  border: 1px solid rgba(215, 239, 0, 0.48);
  border-left: 6px solid #d7ef00;
  border-radius: 4px;
  background: rgba(5, 23, 40, 0.76);
  color: #ffffff;
}

.mail-user-badge span {
  font-weight: 900;
  line-height: 1.1;
}

.mail-user-badge strong,
.mail-user-badge small {
  color: #c9d8e7;
  font-size: 12px;
}

.mail-user-badge strong {
  color: #d7ef00;
}

.mail-modern-sidebar {
  display: grid;
  gap: 9px;
  align-content: start;
}

.mail-primary-btn,
.mail-modern-folder,
.mail-modern-mailbox {
  width: 100%;
  border: 1px solid rgba(155, 184, 216, 0.38);
  border-radius: 4px;
  background: rgba(14, 48, 78, 0.88);
  color: #ffffff;
  padding: 12px 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.mail-primary-btn {
  background: #d7ef00;
  color: #0d2338;
  text-align: center;
}

.mail-modern-folder.active,
.mail-modern-mailbox.active {
  border-color: #d7ef00;
  background: rgba(215, 239, 0, 0.12);
  color: #d7ef00;
}

.mail-modern-heading {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(215, 239, 0, 0.22);
  color: #d7ef00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mail-modern-mailboxes {
  display: grid;
  gap: 8px;
}

.mail-modern-compose {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(6, 20, 35, 0.72);
  border: 1px solid rgba(215, 239, 0, 0.22);
}

.mail-modern-compose h2,
.mail-modern-view h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 24px;
}

.mail-modern-compose-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
  align-items: start;
}

.mail-modern-compose-grid label {
  color: #d7ef00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mail-modern-compose-grid input,
.mail-modern-compose-grid select,
.mail-modern-compose-grid textarea {
  width: 100%;
  border: 1px solid rgba(155, 184, 216, 0.54);
  border-radius: 4px;
  background: #edf4fb;
  color: #0f2239;
  padding: 10px 11px;
  font: 14px 'Segoe UI', Tahoma, sans-serif;
}

.mail-modern-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mail-modern-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: 14px;
  min-height: 560px;
}

.mail-modern-list,
.mail-modern-view {
  background: rgba(6, 20, 35, 0.72);
  border: 1px solid rgba(155, 184, 216, 0.2);
  overflow: auto;
}

.mail-modern-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-bottom: 1px solid rgba(155, 184, 216, 0.16);
  background: transparent;
  color: #dce9fb;
  text-align: left;
  cursor: pointer;
}

.mail-modern-item:hover {
  background: rgba(47, 136, 233, 0.14);
}

.mail-modern-item.unread {
  box-shadow: inset 5px 0 0 #d7ef00;
}

.mail-modern-item strong {
  color: #ffffff;
}

.mail-modern-item span,
.mail-modern-item small {
  color: #aec4dc;
}

.mail-modern-view {
  padding: 18px;
}

.mail-modern-meta {
  margin-bottom: 6px;
  color: #cddbed;
}

.mail-modern-view pre {
  margin: 18px 0 0;
  white-space: pre-wrap;
  color: #ffffff;
  font: 15px/1.45 'Segoe UI', Tahoma, sans-serif;
}

.mail-modern-empty,
.mail-modern-status {
  padding: 14px;
  color: #cddbed;
}

.mail-modern-status.ok {
  color: #8ef0a8;
}

.mail-modern-status.error {
  color: #ff9ea0;
}

.outlook-mail {
  background: #f3f3f3;
  color: #1f1f1f;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.outlook-ribbon {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 8px 14px;
  background: #ffffff;
  color: #1f1f1f;
  border-bottom: 1px solid #c8c8c8;
  text-align: left;
}

.outlook-app-title {
  display: grid;
  gap: 2px;
}

.outlook-app-title strong {
  color: #0f5c9c;
  font-size: 22px;
  font-weight: 600;
}

.outlook-app-title span {
  color: #5f5f5f;
  font-size: 12px;
}

.outlook-ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.outlook-ribbon-actions button,
.outlook-ribbon-actions a,
.outlook-compose-title button {
  border: 1px solid #ababab;
  background: #ffffff;
  color: #1f1f1f;
  padding: 6px 10px;
  font: 13px 'Segoe UI', Tahoma, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.outlook-ribbon-actions button:hover,
.outlook-ribbon-actions a:hover,
.outlook-compose-title button:hover {
  background: #e5f1fb;
  border-color: #0078d7;
}

.outlook-ribbon-actions button:disabled {
  color: #8f8f8f;
  background: #f4f4f4;
  border-color: #d0d0d0;
  cursor: default;
}

.outlook-mail .mail-user-badge {
  min-width: 180px;
  padding: 6px 9px;
  border: 1px solid #d0d0d0;
  border-left: 4px solid #0f5c9c;
  background: #f8f8f8;
  color: #1f1f1f;
}

.outlook-mail .mail-user-badge strong,
.outlook-mail .mail-user-badge small {
  color: #5f5f5f;
}

.outlook-shell {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 230px 360px minmax(520px, 1fr);
  height: calc(100vh - 73px);
  background: #ffffff;
}

.outlook-folder-pane,
.outlook-list-pane,
.outlook-reading-pane {
  min-height: 0;
  border-right: 1px solid #d6d6d6;
  background: #f7f7f7;
  color: #1f1f1f;
}

.outlook-folder-pane {
  padding: 12px 8px;
  overflow-y: auto;
}

.outlook-pane-heading {
  margin: 10px 6px 6px;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.outlook-mail .mail-modern-folder,
.outlook-mail .mail-modern-mailbox,
.outlook-mail .mail-primary-btn {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #1f1f1f;
  padding: 8px 10px;
  font: 14px 'Segoe UI', Tahoma, sans-serif;
  text-align: left;
}

.outlook-mail .mail-modern-folder:hover,
.outlook-mail .mail-modern-mailbox:hover {
  background: #e5f1fb;
}

.outlook-mail .mail-modern-folder.active,
.outlook-mail .mail-modern-mailbox.active {
  border-color: #0078d7;
  background: #dbeaf7;
  color: #1f1f1f;
  font-weight: 600;
}

.outlook-mail .mail-modern-folder:disabled {
  color: #999999;
}

.outlook-search-row {
  padding: 10px;
  border-bottom: 1px solid #d6d6d6;
  background: #ffffff;
}

.outlook-search-row input {
  width: 100%;
  border: 1px solid #bfbfbf;
  background: #ffffff;
  color: #1f1f1f;
  padding: 8px 10px;
  font: 14px 'Segoe UI', Tahoma, sans-serif;
}

.outlook-mail .mail-modern-list {
  height: calc(100% - 55px);
  border: 0;
  background: #ffffff;
  overflow-y: auto;
}

.outlook-mail .mail-modern-item {
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  color: #1f1f1f;
  padding: 11px 13px;
}

.outlook-mail .mail-modern-item:hover,
.outlook-mail .mail-modern-item.active {
  background: #e5f1fb;
}

.outlook-mail .mail-modern-item.unread {
  box-shadow: inset 4px 0 0 #0078d7;
}

.outlook-mail .mail-modern-item strong {
  color: #1f1f1f;
  font-weight: 600;
}

.outlook-mail .mail-modern-item span,
.outlook-mail .mail-modern-item small,
.outlook-mail .mail-modern-item em {
  color: #5f5f5f;
  font-style: normal;
}

.outlook-reading-pane {
  background: #ffffff;
  border-right: 0;
  overflow: auto;
}

.outlook-mail .mail-modern-compose,
.outlook-mail .mail-modern-view {
  margin: 0;
  padding: 18px 22px;
  border: 0;
  background: #ffffff;
  color: #1f1f1f;
}

.outlook-compose-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.outlook-mail .mail-modern-compose h2,
.outlook-mail .mail-modern-view h2 {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 400;
}

.outlook-mail .mail-modern-compose-grid {
  grid-template-columns: 86px minmax(260px, 1fr);
  gap: 8px 10px;
}

.outlook-mail .mail-modern-compose-grid label {
  color: #444444;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding-top: 8px;
}

.outlook-mail .mail-modern-compose-grid input,
.outlook-mail .mail-modern-compose-grid select {
  border: 1px solid #bfbfbf;
  border-radius: 0;
  background: #ffffff;
  color: #1f1f1f;
  padding: 7px 8px;
  font: 14px 'Segoe UI', Tahoma, sans-serif;
}

.mail-address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.mail-address-row button {
  border: 1px solid #bfbfbf;
  background: #ffffff;
  color: #1f1f1f;
  padding: 7px 10px;
  font: 13px 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
}

.mail-address-book {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}

.mail-address-book-window {
  width: min(640px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid #8a8a8a;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.mail-address-book-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mail-address-book-title button,
.mail-address-book-results button {
  border: 1px solid #bfbfbf;
  background: #ffffff;
  color: #1f1f1f;
  padding: 7px 10px;
  font: 13px 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
}

.mail-address-book input {
  width: 100%;
  border: 1px solid #bfbfbf;
  padding: 9px 10px;
  font: 14px 'Segoe UI', Tahoma, sans-serif;
}

.mail-address-book-results {
  overflow-y: auto;
  border: 1px solid #d6d6d6;
}

.mail-address-book-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.mail-address-book-results button:hover {
  background: #e5f1fb;
}

.mail-address-book-results span,
.mail-address-book-results small {
  color: #5f5f5f;
}

.outlook-editor-tools {
  display: flex;
  gap: 4px;
  margin: 12px 0 0 96px;
  padding: 5px;
  border: 1px solid #d6d6d6;
  background: #f7f7f7;
}

.outlook-editor-tools button {
  border: 1px solid #bfbfbf;
  background: #ffffff;
  color: #1f1f1f;
  padding: 4px 8px;
  cursor: pointer;
}

.outlook-mail-body {
  display: block;
  width: calc(100% - 96px);
  min-height: 260px;
  margin: 0 0 0 96px;
  padding: 12px;
  border: 1px solid #bfbfbf;
  border-top: 0;
  background: #ffffff;
  color: #1f1f1f;
  font: 15px/1.45 'Segoe UI', Tahoma, sans-serif;
  resize: vertical;
}

.mail-signature-preview {
  width: calc(100% - 96px);
  margin: 12px 0 0 96px;
  padding: 12px;
  border: 1px solid #d6d6d6;
  background: #ffffff;
  color: #5b5b5b;
  font: 13px/1.45 'Segoe UI', Tahoma, sans-serif;
}

.mail-politi-logo {
  margin: 6px 0;
  color: #00284d;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

.mail-signature-links {
  text-decoration: underline;
}

.outlook-message-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #e0e0e0;
  color: #444444;
}

.outlook-mail .mail-modern-view pre {
  color: #1f1f1f;
  background: #ffffff;
  font: 15px/1.5 'Segoe UI', Tahoma, sans-serif;
}

.outlook-mail .mail-modern-empty,
.outlook-mail .mail-modern-status {
  color: #5f5f5f;
}

.admin-archived-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  font-size: 14px;
  color: #dbe9fb;
}

.admin-archived-note {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #e6f0fd;
}

#user-case-chart {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0f263f;
}

.admin-graph-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ticket-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.ticket-status-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid #909090;
  background: #eeeeee;
  color: #111111;
}

.ticket-status-card div {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #d0d0d0;
  background: #ffffff;
}

.ticket-status-card span,
.ticket-message-meta span {
  display: block;
  color: #595959;
  font-size: 10px;
  text-transform: uppercase;
}

.ticket-status-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ticket-center-composer {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #909090;
  background: #f7f7f7;
}

.ticket-center-composer textarea {
  min-height: 66px;
  resize: vertical;
  border: 2px inset;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  background: #ffffff;
  color: #000000;
}

.ticket-message-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ticket-message-actions span {
  color: #555555;
}

.ticket-chat {
  flex: 1 1 auto;
  min-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #909090;
  background: #f4f6f8;
}

.ticket-message {
  max-width: 84%;
  padding: 7px 8px;
  border: 1px solid #9aa4ae;
  background: #ffffff;
  color: #101820;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.ticket-message.caseworker {
  align-self: flex-start;
  border-left: 4px solid #2d6fb7;
}

.ticket-message.vagtcentral {
  align-self: flex-end;
  border-right: 4px solid #23735c;
  background: #eefaf5;
}

.ticket-message.system {
  align-self: center;
  max-width: 92%;
  background: #fff8df;
  border-color: #b7a86d;
}

.ticket-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  color: #333333;
}

.ticket-message-meta time {
  font-size: 11px;
  color: #555555;
}

.ticket-message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.35;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.ticket-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #003a72;
}

.ticket-attachment.image {
  flex-direction: column;
  align-items: flex-start;
  max-width: 150px;
  padding: 4px;
  border: 1px solid #8b98a5;
  background: #ffffff;
  cursor: pointer;
}

.ticket-attachment.image img {
  display: block;
  width: 140px;
  height: 92px;
  object-fit: cover;
  border: 1px solid #b7b7b7;
  background: #e9e9e9;
}

.ticket-attachment.image span {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-empty {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #999999;
  color: #555555;
  background: #fafafa;
}

.ticket-delivery-center {
  max-height: 230px;
  overflow: auto;
  border: 1px solid #909090;
  background: #eeeeee;
}

.delivery-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #909090;
  background: #dcdcdc;
}

.delivery-list {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.delivery-item {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(5, minmax(74px, 1fr));
  gap: 5px;
  padding: 6px;
  border: 1px solid #9a9a9a;
  background: #ffffff;
}

.delivery-item.retry_scheduled,
.delivery-item.failed {
  background: #fff8df;
}

.delivery-item.permanently_failed {
  background: #ffe8e8;
}

.delivery-item.sent {
  background: #eefaf5;
}

.delivery-item span {
  display: block;
  color: #555555;
  font-size: 10px;
}

.delivery-item strong,
.delivery-item p {
  overflow-wrap: anywhere;
}

.delivery-item p,
.delivery-actions {
  grid-column: 1 / -1;
  margin: 0;
}

.workflow-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.workflow-preview-dialog {
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 2px outset;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  color: #000000;
  padding: 10px;
}

.workflow-preview-dialog h3,
.workflow-preview-dialog h4 {
  margin: 0 0 8px;
}

.workflow-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.workflow-preview-grid div,
.workflow-preview-dialog pre {
  border: 1px inset #808080;
  background: #ffffff;
  padding: 6px;
}

.workflow-preview-grid span {
  display: block;
  color: #555555;
  font-size: 10px;
}

.workflow-preview-dialog pre {
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
}

.ticket-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.82);
}

.ticket-image-lightbox[hidden] {
  display: none;
}

.ticket-lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
}

.ticket-lightbox-toolbar a {
  color: #ffffff;
}

.ticket-lightbox-image-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
}

.ticket-lightbox-image-wrap img {
  max-width: 96%;
  max-height: 96%;
  transform-origin: center center;
  transition: transform 120ms ease;
}

@media (max-width: 900px) {
  main {
    margin-right: 0;
  }

  .verser-panel {
    position: static;
    width: auto;
    max-height: 240px;
    margin: 8px;
  }

  .case-help-panel {
    position: static;
    width: auto;
    max-height: 260px;
    margin: 8px;
  }

  body.case-help-collapsed main {
    margin-right: 0;
  }

  body.case-help-collapsed .case-help-panel {
    width: auto;
  }

  body.case-help-collapsed .case-help-titlebar {
    writing-mode: horizontal-tb;
    min-height: 0;
    justify-content: space-between;
  }

  .polsas-two-col {
    grid-template-columns: 1fr;
  }

  .polsas-right-col {
    padding-top: 0;
  }

  .admin-header {
    padding: 16px;
  }

  .admin-header h1 {
    font-size: 30px;
  }

  .admin-header-actions {
    gap: 10px;
  }

  .admin-top-menu-panel {
    right: -96px;
    width: min(360px, calc(100vw - 24px));
  }

  .admin-top-menu-panel .admin-menu-btn {
    font-size: 22px;
  }
}

body.admin-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(180, 220, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #0b1b2f 0%, #122c49 45%, #173f66 100%);
  color: #ecf4ff;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-card {
  width: min(500px, 100%);
  background: rgba(8, 20, 36, 0.88);
  border: 1px solid rgba(201, 224, 249, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.admin-login-kicker {
  margin: 0 0 8px;
  color: #c6defa;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 34px;
  color: #ffffff;
}

.admin-login-sub {
  margin: 8px 0 16px;
  color: #aecded;
}

.admin-login-form {
  display: grid;
  gap: 8px;
}

.admin-login-form label {
  font-size: 13px;
  color: #d2e4f8;
}

.admin-login-form input {
  border: 1px solid #6f88a7;
  background: #f3f8ff;
  color: #0e2237;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
}

.admin-login-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.admin-login-back {
  color: #d8e9ff;
  text-decoration: none;
  border: 1px solid #6e88a8;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .home-brand {
    font-size: 38px;
  }

  .shortcut-panel h2 {
    font-size: 34px;
  }

  .shortcut-item {
    font-size: 24px;
    padding: 12px;
  }

  .home-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "welcome"
      "menu"
      "info";
  }

  .home-info-board {
    justify-self: start;
  }

  .mail-modern-grid,
  .mail-modern-content {
    grid-template-columns: 1fr;
  }

  .ticket-status-card {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .ticket-message {
    max-width: 96%;
  }
}

/* =====================================================================
   VISITATIONSCOCKPIT v2
   Samme klassiske POLSAS-udtryk (grå flader, navy accenter), men med
   tydeligere hierarki: header -> næste skridt -> arbejdsflade -> handlinger.
   ===================================================================== */
.vc-root { font-size: 11px; }
.vc-main { gap: 6px; }
.vc-header {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #808080;
  background: #ffffff;
}
.vc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-kicker { padding: 1px 6px; background: #000080; color: #ffffff; font-weight: bold; font-size: 10px; letter-spacing: 0.06em; }
.vc-title h3 { margin: 0; font-size: 14px; color: #000000; }
.vc-journal { color: #404040; font-weight: bold; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.vc-chip { display: flex; flex-direction: column; min-width: 96px; max-width: 260px; padding: 3px 6px; border: 1px solid #c0c0c0; background: #f4f4f4; }
.vc-chip dt { font-size: 9px; text-transform: uppercase; color: #555555; }
.vc-chip dd { margin: 0; font-weight: bold; color: #000000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-chip-info { border-color: #000080; background: #eef0ff; }
.vc-chip-warn { border-color: #b07a00; background: #fff3a3; }
.vc-chip-danger { border-color: #a00000; background: #ffe3e3; }
.vc-chip-danger dd { color: #a00000; }
.vc-header .cockpit-steps { margin-bottom: 0; }
.vc-header .cockpit-step.done { background: #e2ecd9; border-color: #6c8f4e; }
.vc-header .cockpit-step.done span { background: #6c8f4e; color: #ffffff; border-color: #6c8f4e; }
.vc-header .cockpit-step.current span { background: #000080; color: #ffffff; border-color: #000080; }

.vc-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 8px 10px;
  border: 2px solid #000080;
  background: #fffbe0;
}
.vc-next.is-readonly { border-color: #808080; background: #f0f0f0; }
.vc-next span { display: block; font-size: 9px; font-weight: bold; letter-spacing: 0.06em; color: #000080; }
.vc-next strong { display: block; font-size: 13px; color: #000000; }
.vc-hint { margin: 4px 0 0; max-width: 620px; color: #a00000; }
.vc-obs { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vc-obs li { padding: 2px 6px; border: 1px solid #b07a00; background: #ffffff; font-weight: bold; color: #5a3d00; }

.vc-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 2px solid #000080; }
.vc-tabs button { padding: 5px 14px; border: 1px solid #808080; border-bottom: none; background: #dfdfdf; font-weight: bold; font-size: 11px; cursor: pointer; }
.vc-tabs button.active { background: #000080; color: #ffffff; border-color: #000080; }
.vc-tabs .autosave-status { margin-left: auto; padding-right: 4px; color: #555555; font-style: italic; }

.vc-work-area { flex: 1 1 auto; min-height: 0; overflow: auto; padding-bottom: 4px; }
.vc-workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.vc-workspace.vc-single { grid-template-columns: minmax(0, 1fr); }
.vc-workspace.vc-discord { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }

.vc-panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px; border: 1px solid #808080; background: #ffffff; }
.vc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vc-panel-head h4 { margin: 0; font-size: 12px; color: #000080; }
.vc-panel-head p { margin: 2px 0 0; color: #555555; }
.vc-panel-intro { margin: 0; color: #404040; }
.vc-panel-foot { color: #555555; font-style: italic; }
.vc-progress { height: 6px; border: 1px solid #c0c0c0; background: #f0f0f0; }
.vc-progress span { display: block; height: 100%; background: #000080; transition: width 0.2s ease; }

.vc-check-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: vc-check; }
.vc-check-item { padding: 5px 6px; border: 1px solid #d0d0d0; border-left: 4px solid #c0c0c0; background: #fafafa; counter-increment: vc-check; }
.vc-check-item.status-ok { border-left-color: #4c8a2f; background: #f3faef; }
.vc-check-item.status-mangler { border-left-color: #b00000; background: #fff1f1; }
.vc-check-item.status-ikke_relevant { border-left-color: #808080; background: #f4f4f4; }
.vc-check-item.status-ikke_relevant .vc-check-text strong { color: #666666; }
.vc-check-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.vc-check-text { min-width: 180px; flex: 1 1 200px; }
.vc-check-text strong::before { content: counter(vc-check) ". "; color: #555555; }
.vc-check-text span { display: block; font-size: 9px; color: #666666; }
.vc-segment { display: inline-flex; border: 1px solid #808080; }
.vc-segment button { padding: 3px 7px; border: none; border-right: 1px solid #c0c0c0; background: #ffffff; font-size: 10px; cursor: pointer; white-space: nowrap; }
.vc-segment button:last-child { border-right: none; }
.vc-segment button:hover:not(:disabled) { background: #eef0ff; }
.vc-segment button.active[data-check-set="ok"] { background: #4c8a2f; color: #ffffff; font-weight: bold; }
.vc-segment button.active[data-check-set="mangler"] { background: #b00000; color: #ffffff; font-weight: bold; }
.vc-segment button.active[data-check-set="ikke_relevant"] { background: #808080; color: #ffffff; font-weight: bold; }
.vc-check-note { display: none; width: 100%; margin-top: 4px; box-sizing: border-box; font: inherit; resize: vertical; }
.vc-check-item.status-mangler .vc-check-note,
.vc-check-item .vc-check-note:not(:placeholder-shown) { display: block; }

.vc-textarea { width: 100%; box-sizing: border-box; padding: 6px; border: 1px solid #808080; font: 11px/1.45 inherit; font-family: inherit; resize: vertical; background: #ffffff; }
.vc-textarea[readonly] { background: #f0f0f0; color: #404040; }
.vc-feedback-text { min-height: 210px; }
.vc-note-text { min-height: 70px; }
.vc-flash { outline: 2px solid #d7a800; transition: outline-color 0.6s ease; }
.vc-chips-row { display: flex; flex-wrap: wrap; gap: 4px; }
.vc-chip-btn { padding: 2px 7px; border: 1px solid #808080; background: #f4f4f4; font-size: 10px; cursor: pointer; }
.vc-chip-btn:hover { background: #eef0ff; border-color: #000080; }
.vc-internal summary { cursor: pointer; font-weight: bold; color: #000080; padding: 3px 0; }
.vc-internal small { font-weight: normal; color: #555555; }

.vc-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #808080;
  border-top: 2px solid #000080;
  background: #dfdfdf;
}
.vc-actionbar.is-empty { position: static; color: #a00000; font-weight: bold; }
.vc-actions-primary, .vc-actions-secondary { display: flex; flex-wrap: wrap; gap: 5px; }
.vc-actions-secondary { padding-top: 5px; border-top: 1px dashed #a0a0a0; }
.vc-suggestion { margin: 0; color: #404040; font-style: italic; }
.vc-btn { padding: 5px 12px; border: 1px solid #404040; background: #ffffff; font-size: 11px; font-weight: bold; cursor: pointer; box-shadow: 1px 1px 0 #808080; }
.vc-btn:hover:not(:disabled) { filter: brightness(0.95); }
.vc-btn:active:not(:disabled) { box-shadow: none; transform: translate(1px, 1px); }
.vc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vc-btn-approve { border-color: #2f5f1b; background: #e7f4df; color: #1f4a10; }
.vc-btn-return { border-color: #8a4b00; background: #fff0dc; color: #6a3900; }
.vc-btn-neutral { border-color: #000080; background: #ffffff; color: #000080; }
.vc-btn-small { padding: 3px 8px; font-size: 10px; font-weight: normal; box-shadow: none; }
.vc-btn.is-suggested { outline: 3px solid #d7a800; outline-offset: 1px; }
.vc-btn-approve.is-suggested { background: #4c8a2f; color: #ffffff; }
.vc-btn-return.is-suggested { background: #b05a00; color: #ffffff; }
.vc-link { padding: 0; border: none; background: none; color: #000080; font-weight: bold; text-decoration: underline; cursor: pointer; }

.vc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; }
.vc-facts > div { padding: 4px 6px; border: 1px solid #d0d0d0; background: #fafafa; }
.vc-facts > div.is-danger { border-color: #a00000; background: #ffe3e3; }
.vc-facts > div.is-warn { border-color: #b07a00; background: #fff3a3; }
.vc-facts span { display: block; font-size: 9px; text-transform: uppercase; color: #555555; }
.vc-facts strong { color: #000000; }
.vc-pre { margin: 0; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #d0d0d0; background: #fafafa; white-space: pre-wrap; font: 11px/1.45 inherit; font-family: inherit; }
.vc-quote { padding: 6px 8px; border-left: 4px solid #000080; background: #eef0ff; white-space: pre-wrap; }
.vc-quote span { display: block; font-size: 9px; color: #555555; margin-bottom: 2px; }
.vc-inline-field { display: grid; gap: 3px; font-weight: bold; color: #404040; }
.vc-inline-field select { max-width: 260px; }
.vc-empty-state { align-items: flex-start; padding: 16px; }
.vc-empty-state h4 { margin: 0; color: #000080; font-size: 13px; }
.vc-empty-state p { margin: 0; max-width: 560px; line-height: 1.5; }
.vc-empty { font-size: 11px; padding: 8px; }
.vc-discord-side .cockpit-discord-foundation { border: none; padding: 0; }
.genkontrol-approval.vc-panel { gap: 6px; }

@media (max-width: 1200px) {
  .vc-workspace, .vc-workspace.vc-discord { grid-template-columns: minmax(0, 1fr); }
}
/* v2: nulstil den globale side-header-stil inde i cockpittet */
.vc-root header { position: static; margin: 0; padding: 0; background: none; color: inherit; text-align: left; box-shadow: none; border: none; }
.vc-root header.vc-header { padding: 8px 10px; border: 1px solid #808080; background: #ffffff; }
.vc-root header.vc-panel-head { padding: 0; }
.vc-root .vc-header .cockpit-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.vc-root .vc-header .cockpit-step { padding: 3px 4px; }
.vc-root .vc-chip-btn, .vc-root .vc-btn, .vc-root .vc-segment button, .vc-root .vc-tabs button { width: auto; min-width: 0; margin: 0; }
.vc-root .vc-chips-row { max-height: 120px; overflow: auto; }
/* v2: genkontrol i to kolonner, så vurdering og knapper altid er synlige */
.vc-root .genkontrol-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  grid-template-areas: "orig review" "corr review";
  grid-template-rows: auto 1fr;
  gap: 8px;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.vc-root .genkontrol-column { min-width: 0; height: auto; max-height: none; overflow: visible; }
.vc-root .genkontrol-column.original-report { grid-area: orig; }
.vc-root .genkontrol-column.corrected-report { grid-area: corr; }
.vc-root .genkontrol-column.review-stack { grid-area: review; display: flex; flex-direction: column; gap: 8px; }
.vc-root .original-report-zone { max-height: 320px; overflow: auto; }
.vc-root .review-stack .vc-actionbar { position: static; }

/* =====================================================================
   SAGSMAPPE-LÆSER
   ===================================================================== */
.sagscockpit-workspace.vc-wide-reader { grid-template-columns: minmax(480px, 42%) minmax(420px, 58%); }
.vc-root .rd-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; border: 1px solid #808080; background: #c9ccd3; overflow: hidden; }
.rd-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; background: #ffffff; border-bottom: 2px solid #000080; }
.rd-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rd-title strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.vc-root .rd-search { width: 170px; padding: 3px 6px; border: 1px solid #808080; font: inherit; font-size: 11px; }
.rd-search-count { color: #000080; font-weight: bold; }
.vc-root .rd-tool { width: auto; margin: 0; padding: 3px 7px; border: 1px solid #808080; background: #f4f4f4; font-size: 10px; font-weight: bold; cursor: pointer; }
.vc-root .rd-tool.is-on { background: #000080; color: #ffffff; border-color: #000080; }
.rd-layout { flex: 1 1 auto; display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; }
.rd-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; overflow: auto; background: #e6e8ee; border-right: 1px solid #a0a0a0; }
.vc-root .rd-nav-item { position: relative; display: block; width: 100%; margin: 0; padding: 6px 8px; border: 1px solid transparent; border-left: 3px solid #a0a0a0; background: transparent; text-align: left; cursor: pointer; }
.vc-root .rd-nav-item:hover { background: #ffffff; }
.vc-root .rd-nav-item.active { border-color: #808080; border-left-color: #000080; background: #ffffff; box-shadow: 1px 1px 0 #a0a0a0; }
.rd-nav-item strong { display: block; font-size: 11px; color: #000000; }
.rd-nav-item span { display: block; margin-top: 1px; font-size: 9px; color: #555555; }
.rd-nav-pdf { border-left-color: #a00000 !important; }
.rd-nav-overview { border-left-color: #4c8a2f !important; }
.rd-nav-hits { position: absolute; top: 5px; right: 5px; padding: 0 5px; background: #ffd400; color: #000000; font-style: normal; font-weight: bold; font-size: 9px; }
.rd-reading { overflow: auto; padding: 14px; min-height: 0; }
.rd-paper { max-width: 760px; margin: 0 auto; padding: 22px 26px; background: #ffffff; border: 1px solid #a0a0a0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); font-size: var(--rd-font, 13px); line-height: 1.6; color: #111111; }
.rd-paper-pdf { max-width: none; padding: 10px; }
.rd-paper-head { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #000080; }
.rd-paper-kicker { font-size: 9px; font-weight: bold; letter-spacing: 0.1em; color: #000080; }
.rd-paper-head h4 { margin: 2px 0 0; font-size: 1.25em; color: #000000; }
.rd-paper-head p { margin: 2px 0 0; font-size: 0.8em; color: #555555; }
.rd-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 14px; margin: 0 0 12px; }
.rd-fields div { padding: 3px 0; border-bottom: 1px dotted #c0c0c0; }
.rd-fields dt { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.04em; color: #555555; }
.rd-fields dd { margin: 0; font-weight: bold; white-space: pre-wrap; }
.rd-block { margin: 0 0 12px; }
.rd-block h5, .rd-body-title { margin: 0 0 3px; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.05em; color: #000080; }
.rd-block p { margin: 0; white-space: pre-wrap; }
.rd-notice { margin: 0 0 12px; padding: 8px 10px; border-left: 4px solid #000080; background: #eef0ff; white-space: pre-wrap; font-size: 0.92em; }
.rd-body-text { white-space: pre-wrap; }
.rd-muted { color: #777777; font-style: italic; }
.rd-empty { padding: 30px; text-align: center; color: #555555; }
.rd-pdf { width: 100%; height: 72vh; border: 1px solid #c0c0c0; background: #ffffff; }
.rd-bilag { margin: 0; padding-left: 18px; }
.rd-bilag li { margin-bottom: 10px; }
.rd-bilag-type { font-weight: bold; }
.rd-bilag-meta { margin-left: 6px; font-size: 0.8em; color: #555555; }
.rd-bilag p { margin: 2px 0 0; }
.rd-bilag img { display: block; max-width: 100%; max-height: 260px; margin-top: 6px; border: 1px solid #c0c0c0; }
mark.rd-hit { background: #ffd400; color: #000000; outline: 1px solid #b08f00; }
mark.rd-kw { background: transparent; color: inherit; border-bottom: 2px solid #6b8fd6; padding: 0 1px; }
mark.rd-kw-rights, mark.rd-kw-charge { border-bottom-color: #b00000; }
mark.rd-kw-arrest, mark.rd-kw-transport, mark.rd-kw-search { border-bottom-color: #b05a00; }
mark.rd-kw-interview { border-bottom-color: #4c8a2f; }
.rd-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 5px 8px; background: #ffffff; border-top: 1px solid #a0a0a0; }
.rd-hints-label { font-size: 9px; font-weight: bold; text-transform: uppercase; color: #555555; margin-right: 2px; cursor: help; }
.vc-root .rd-hint { width: auto; margin: 0; padding: 2px 6px; border: 1px solid #c0c0c0; background: #f7f7f7; font-size: 10px; cursor: pointer; }
.vc-root .rd-hint.found { border-color: #6c8f4e; color: #1f4a10; background: #f1f8ec; }
.vc-root .rd-hint.missing { color: #777777; }
.vc-root .rd-hint.active { background: #000080; border-color: #000080; color: #ffffff; }

/* =====================================================================
   SAGSFORLØB (samtaletråd)
   ===================================================================== */
.lg-panel { min-height: 420px; }
.lg-filters { display: flex; gap: 2px; }
.vc-root .lg-filters button { width: auto; margin: 0; padding: 3px 9px; border: 1px solid #808080; background: #f4f4f4; font-size: 10px; font-weight: bold; cursor: pointer; }
.vc-root .lg-filters button.active { background: #000080; color: #ffffff; border-color: #000080; }
.lg-log { display: flex; flex-direction: column; gap: 8px; }
.lg-thread { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #eef0f4; border: 1px solid #c0c0c0; max-height: 48vh; overflow: auto; }
.lg-empty { padding: 24px; text-align: center; color: #555555; }
.lg-day { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; color: #555555; font-size: 10px; font-weight: bold; text-transform: capitalize; }
.lg-day::before, .lg-day::after { content: ''; flex: 1; border-top: 1px solid #c0c0c0; }
.lg-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; }
.lg-in { align-self: flex-start; }
.lg-out { align-self: flex-end; flex-direction: row-reverse; }
.lg-avatar { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: bold; color: #ffffff; background: #b05a00; }
.lg-out .lg-avatar { background: #000080; }
.lg-bubble { padding: 7px 10px; border: 1px solid #c9b27a; background: #fff8e1; box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08); min-width: 160px; }
.lg-out .lg-bubble { border-color: #9aa6d6; background: #eef1ff; }
.lg-bubble header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 3px; }
.lg-bubble header strong { font-size: 11px; }
.lg-badge { padding: 0 5px; border: 1px solid currentColor; font-size: 9px; font-weight: bold; color: #6a3900; }
.lg-out .lg-badge { color: #000080; }
.lg-bubble time { margin-left: auto; font-size: 9px; color: #555555; }
.lg-text { white-space: pre-wrap; font-size: 12px; line-height: 1.5; color: #111111; }
.lg-text.is-long { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.vc-root .lg-more { width: auto; margin: 2px 0 0; padding: 0; border: none; background: none; color: #000080; font-weight: bold; text-decoration: underline; cursor: pointer; font-size: 10px; }
.lg-deadline { margin-top: 4px; font-size: 10px; font-weight: bold; color: #6a3900; }
.lg-delivery { margin-top: 5px; padding-top: 3px; border-top: 1px dashed #c0c0c0; font-size: 9px; color: #2f5f1b; }
.lg-delivery.warn { color: #a00000; }
.lg-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vc-root .lg-thumb { width: 120px; margin: 0; padding: 2px; border: 1px solid #808080; background: #ffffff; cursor: zoom-in; }
.lg-thumb img { display: block; width: 100%; height: 86px; object-fit: cover; }
.lg-thumb span { display: block; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-event { align-self: center; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; max-width: 90%; padding: 4px 12px; border: 1px solid #a0a0a0; background: #ffffff; font-size: 11px; text-align: center; }
.lg-event span { font-weight: bold; }
.lg-event em { font-size: 9px; color: #555555; font-style: normal; }
.lg-event p { flex-basis: 100%; margin: 2px 0 0; white-space: pre-wrap; color: #404040; }
.lg-decision { border-color: #2f5f1b; background: #e7f4df; }
.lg-milestone { border-style: dashed; }
.lg-sys { align-self: center; font-size: 9px; color: #777777; }
.lg-sys time { font-weight: bold; }
.lg-open-question { padding: 10px; border: 2px solid #b05a00; background: #fff4e5; }
.lg-open-question header { display: flex; justify-content: space-between; font-size: 10px; font-weight: bold; color: #8a4b00; letter-spacing: 0.05em; }
.lg-open-question blockquote { margin: 6px 0 8px; padding: 8px 10px; border-left: 4px solid #b05a00; background: #ffffff; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.lg-answer-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #555555; }
.lg-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 20, 0.86); }
.lg-lightbox img { max-width: 92vw; max-height: 84vh; background: #ffffff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.lg-lightbox-bar { display: flex; align-items: center; gap: 8px; color: #ffffff; }
.lg-lightbox-bar button, .lg-lightbox-bar a { padding: 4px 10px; border: 1px solid #ffffff; background: transparent; color: #ffffff; font-weight: bold; cursor: pointer; text-decoration: none; font-size: 11px; }
.lg-lightbox-bar button:disabled { opacity: 0.4; }

/* Næste skridt: spørgsmål og nye billeder */
.vc-question { margin: 6px 0 0; padding: 6px 10px; border-left: 4px solid #b05a00; background: #ffffff; font-size: 12px; white-space: pre-wrap; max-width: 700px; }
.vc-question span { display: block; font-size: 9px; font-weight: bold; color: #8a4b00; text-transform: uppercase; }
.vc-fresh { margin: 4px 0 0; font-weight: bold; color: #2f5f1b; }

/* =====================================================================
   GENKONTROL
   ===================================================================== */
.gk-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #6c8f4e; border-left-width: 5px; background: #f1f8ec; }
.gk-banner.is-warn { border-color: #b07a00; background: #fff8dc; }
.gk-banner strong { font-size: 12px; }
.gk-banner span { color: #404040; }
.vc-root .genkontrol-workbench { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); grid-template-areas: "corr review"; grid-template-rows: auto; }
.vc-root .genkontrol-column.corrected-report .genkontrol-viewer { min-height: 520px; }
.gk-keys { margin: 4px 0 0; font-size: 9px; color: #555555; }
.gk-new { position: absolute; top: 2px; left: 2px; padding: 0 4px; background: #b00000; color: #ffffff; font-size: 8px; font-style: normal; font-weight: bold; }
.vc-root .image-viewer-strip button { position: relative; }
.gk-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: gk; }
.gk-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 6px 8px; border: 1px solid #d0d0d0; border-left: 4px solid #c0c0c0; background: #fafafa; counter-increment: gk; }
.gk-item p { flex: 1 1 220px; margin: 0; font-size: 12px; }
.gk-item p::before { content: counter(gk) ". "; font-weight: bold; color: #555555; }
.gk-item.status-rettet { border-left-color: #4c8a2f; background: #f3faef; }
.gk-item.status-rettet p { color: #2f5f1b; }
.gk-item.status-ikke_rettet { border-left-color: #b00000; background: #fff1f1; }
.vc-root .vc-segment button.active[data-gk-set="rettet"] { background: #4c8a2f; color: #ffffff; font-weight: bold; }
.vc-root .vc-segment button.active[data-gk-set="ikke_rettet"] { background: #b00000; color: #ffffff; font-weight: bold; }
.vc-collapsible { border: 1px solid #a0a0a0; background: #ffffff; }
.vc-collapsible > summary { padding: 6px 8px; cursor: pointer; font-weight: bold; color: #000080; background: #f0f0f0; }
.vc-collapsible[open] > summary { border-bottom: 1px solid #c0c0c0; }
.vc-collapsible > .vc-panel, .vc-collapsible > pre { border: none; margin: 0; }
.vc-collapsible .genkontrol-report-text { max-height: 320px; overflow: auto; padding: 8px; white-space: pre-wrap; }

@media (max-width: 1300px) {
  .rd-layout { grid-template-columns: 1fr; }
  .rd-nav { flex-direction: row; flex-wrap: wrap; max-height: 110px; border-right: none; border-bottom: 1px solid #a0a0a0; }
  .vc-root .rd-nav-item { width: auto; }
}
/* Sagsmappen tilpasser sig sin egen bredde (fx smal i genkontrol) */
.vc-root .rd-panel { container-type: inline-size; container-name: reader; }
@container reader (max-width: 600px) {
  .rd-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .rd-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-height: none; border-right: none; border-bottom: 1px solid #a0a0a0; }
  .vc-root .rd-nav-item { flex: 0 0 auto; width: auto; max-width: 180px; }
  .rd-nav-item span { display: none; }
  .rd-reading { padding: 8px; }
  .rd-paper { padding: 14px 16px; }
  .vc-root .rd-search { width: 120px; }
}

/* =====================================================================
   SAGSGANG: leder -> feedback-medarbejder
   ===================================================================== */
.lf-panel { gap: 7px; }
.lf-note { min-height: 140px; font-size: 12px; }
.lf-reserved { padding: 4px 8px; border: 1px solid #000080; background: #eef0ff; }
.lf-question, .lf-note-quote { margin: 0; padding: 8px 10px; border-left: 4px solid #b05a00; background: #fff4e5; white-space: pre-wrap; font-size: 12px; line-height: 1.5; }
.lf-question span { display: block; margin-bottom: 2px; font-size: 9px; font-weight: bold; text-transform: uppercase; color: #8a4b00; }
.lf-note-quote { border-left-color: #000080; background: #eef0ff; font-size: 13px; }
.lf-missing { padding: 6px 8px; border: 1px dashed #b00000; background: #fff8f8; }
.lf-missing > span { display: block; font-size: 9px; font-weight: bold; text-transform: uppercase; color: #8a0000; }
.lf-missing ul { margin: 4px 0 0; padding-left: 18px; }
.lf-missing li { margin: 1px 0; }
.lf-missing p { margin: 3px 0 0; color: #777777; font-style: italic; }
.lf-briefing { margin-bottom: 8px; border: 2px solid #000080; }
.lf-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vc-root #feedback-assignee { width: 100%; max-width: none; padding: 4px; font: inherit; font-size: 11px; }
.lf-guidance > summary { font-weight: normal; }
.lg-event.lg-type-retur_til_ledelse { border-color: #8a4b00; background: #fff0dc; }
.lg-event.lg-type-visiteret_til_feedback { border-color: #000080; background: #eef0ff; }
.lg-event.lg-type-retur_til_ledelse p, .lg-event.lg-type-visiteret_til_feedback p { text-align: left; }

/* =====================================================================
   VISITATIONSOVERBLIK (POLSAS-siden)
   ===================================================================== */
.vo-board { padding: 0 !important; overflow: hidden; }
.vo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 10px; background: linear-gradient(90deg, #000080, #1d4fb8); color: #ffffff; }
.vo-head h2 { margin: 0; font-size: 12px; letter-spacing: 0.06em; color: #ffffff; background: none; padding: 0; border: none; }
.vo-head span { font-size: 10px; opacity: 0.9; }
.vo-refresh { margin-left: auto; width: auto; padding: 1px 8px; border: 1px solid rgba(255,255,255,0.6); background: transparent; color: #ffffff; cursor: pointer; font-size: 12px; }
.vo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; padding: 8px; background: #eef0f4; }
.vo-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: auto; margin: 0; padding: 7px 9px; border: 1px solid #a0a0a0; border-left: 5px solid #808080; background: #ffffff; text-align: left; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.vo-tile:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.vo-tile strong { font-size: 22px; line-height: 1; color: #000000; }
.vo-tile span { font-size: 10px; font-weight: bold; color: #404040; }
.vo-tile.is-empty { opacity: 0.55; }
.vo-tile.active { outline: 3px solid #d7a800; outline-offset: -1px; }
.vo-navy { border-left-color: #000080; } .vo-blue { border-left-color: #1d4fb8; } .vo-orange { border-left-color: #b05a00; }
.vo-purple { border-left-color: #5e35b1; } .vo-red { border-left-color: #b00000; } .vo-red strong { color: #b00000; } .vo-grey { border-left-color: #808080; }
.vo-list { display: grid; gap: 3px; padding: 0 8px 8px; background: #eef0f4; }
.vo-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #c0c0c0; background: #ffffff; }
.vo-code { flex: 0 0 auto; padding: 1px 6px; background: #000080; color: #ffffff; font-size: 10px; font-weight: bold; }
.vo-main { flex: 1 1 auto; min-width: 0; font-size: 11px; }
.vo-meta { display: block; font-size: 9px; color: #555555; }
.vo-flag { padding: 1px 6px; border: 1px solid #b07a00; background: #fff3a3; font-size: 9px; font-weight: bold; }
.vo-empty, .vo-error { padding: 10px; color: #555555; font-style: italic; }
.vc-next-case-slot { margin-left: auto; }
.vc-root .vc-next-case { width: auto; margin: 0; padding: 4px 10px; border: 1px solid #2f5f1b; background: #e7f4df; color: #1f4a10; font-weight: bold; font-size: 11px; cursor: pointer; }
.vc-root .vc-next-case small { font-weight: normal; color: #404040; }
.vc-root .vc-next-case:hover { background: #4c8a2f; color: #ffffff; }
.vc-root .vc-next-case:hover small { color: #ffffff; }

/* =====================================================================
   AFGØRELSE (henlæggelse / påtaleopgivelse) + TABLET-INDGANG
   ===================================================================== */
.cl-panel > summary { color: #404040; }
.cl-suggest { margin-left: 6px; padding: 1px 6px; background: #fff3a3; border: 1px solid #b07a00; color: #5a3d00; font-size: 9px; }
.cl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.cl-option { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid #c0c0c0; background: #fafafa; }
.cl-option h5 { margin: 0; font-size: 12px; color: #000000; }
.cl-option p { margin: 0; color: #555555; font-size: 10px; }
.vc-root .cl-option select { width: 100%; padding: 3px; font: inherit; font-size: 10px; }
.cl-note, .cl-notify { grid-column: 1 / -1; }
.cl-notify { display: flex; align-items: center; gap: 6px; font-weight: bold; color: #404040; }
.in-banner { display: flex; gap: 10px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #1d4fb8; border-left-width: 5px; background: #eef3ff; }
.in-banner.is-warn { border-color: #b07a00; background: #fff8dc; }
.in-icon { font-size: 20px; line-height: 1; }
.in-banner ul { margin: 3px 0 0; padding-left: 16px; }
.in-banner li { margin: 1px 0; }

/* =====================================================================
   VISUEL OPFRISKNING AF VISITERINGSBILLEDET
   ===================================================================== */
.vc-root header.vc-header { border-top: 4px solid #000080; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.vc-title { align-items: center; }
.vc-title h3 { font-size: 15px; }
.vc-chip { border-radius: 2px; }
.vc-chips .vc-chip:first-child { border-color: #000080; background: #000080; }
.vc-chips .vc-chip:first-child dt { color: #c9d3ff; }
.vc-chips .vc-chip:first-child dd { color: #ffffff; }
.vc-next { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.vc-next strong { font-size: 14px; }
.vc-panel { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.vc-panel-head h4 { font-size: 13px; letter-spacing: 0.01em; }
.vc-root .vc-tabs button { padding: 6px 16px; font-size: 11px; letter-spacing: 0.04em; }
.vc-actionbar { box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08); }
.vc-btn { padding: 6px 14px; font-size: 11px; }
.vc-btn-small { padding: 3px 8px; font-size: 10px; }
.vc-check-item { transition: background-color 0.15s ease, border-color 0.15s ease; }
.vc-textarea:focus, .vc-root select:focus, .rd-search:focus { outline: 2px solid #1d4fb8; outline-offset: 0; }


/* Nye overblik følger POLSAS' klassiske formsprog. */
#visitation-cockpit .vc-brief { padding: 6px 8px; border: 1px solid #808080; background: #fff; color: #000; font: inherit; }
#visitation-cockpit .vc-brief-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; }
#visitation-cockpit .vc-brief-summary::before { content: "▸"; color: #000080; }
#visitation-cockpit .vc-brief[open] > summary::before { content: "▾"; }
#visitation-cockpit .vc-brief-summary strong { color: #000080; }
#visitation-cockpit .vc-brief-summary small { margin-left: auto; font-size: 10px; color: #555; }
#visitation-cockpit .vc-brief-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
#visitation-cockpit .vc-brief-heading strong { margin-right: auto; color: #000080; }
#visitation-cockpit .vc-brief-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 8px 0; }
#visitation-cockpit .vc-brief-facts dt { margin-bottom: 2px; color: #555; font-size: 9px; text-transform: uppercase; }
#visitation-cockpit .vc-brief-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#visitation-cockpit .vc-quality-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; }
#visitation-cockpit progress { width: 100px; height: 8px; accent-color: #000080; }
#visitation-cockpit .vc-brief-help { margin: 8px 0 0; color: #555; font-size: 10px; }
#visitation-cockpit details.in-banner { display: block; padding: 6px 8px; }
#visitation-cockpit details.in-banner summary { cursor: pointer; line-height: 1.4; }
#visitation-cockpit details.in-banner summary span { color: #555; font-size: 10px; }
#visitation-cockpit details.in-banner[open] ul { margin-top: 6px; }
#visitation-overview .vo-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 2px 8px 8px; background: #eef0f4; color: #000; font-size: 10px; }
#visitation-overview .vo-tools label { display: grid; gap: 3px; }
#visitation-overview .vo-tools input, #visitation-overview .vo-tools select { width: auto; max-width: 100%; margin: 0; padding: 3px 5px; border: 2px inset #dfdfdf; border-radius: 0; background: #fff; color: #000; font: inherit; }
#visitation-overview .vo-head { background: linear-gradient(90deg, #000080, #1084d7); }
#visitation-overview .vo-tile, #visitation-overview .vo-row { border-radius: 0; box-shadow: none; }
#visitation-cockpit .vc-panel, #visitation-cockpit .vc-header, #visitation-cockpit .vc-next, #visitation-cockpit .vc-chip, #visitation-cockpit .vc-btn, #visitation-cockpit .vc-tabs button { border-radius: 0; box-shadow: none; }
#visitation-cockpit .vc-textarea, #visitation-cockpit select { border-radius: 0; }
#visitation-cockpit :is(button,input,select,textarea,summary):focus-visible, #visitation-overview :is(button,input,select):focus-visible { outline: 2px solid #000080; outline-offset: 2px; }
@media(max-width: 1200px) {
  #visitation-cockpit .vc-root { grid-template-columns: minmax(0,1fr); }
  #visitation-cockpit .rd-panel { max-height: 800px; }
}
@media(max-width: 650px) {
  #visitation-cockpit .vc-workspace, #visitation-cockpit .vc-brief-facts { grid-template-columns: minmax(0,1fr); }
  #visitation-overview .vo-row { flex-wrap: wrap; }
}
@media(prefers-reduced-motion: reduce) {
  #visitation-cockpit *, #visitation-overview * { transition: none; scroll-behavior: auto; }
}

/* Omjournalisering i det klassiske POLSAS-billede. */
#visitation-cockpit .vc-journalization { padding: 7px 9px; border: 1px solid #808080; border-left: 4px solid #000080; background: #f4f4f4; color: #000; }
#visitation-cockpit .vc-journalization summary { cursor: pointer; color: #000080; }
#visitation-cockpit .vc-journalization p { margin: 6px 0; line-height: 1.4; }
#visitation-cockpit .vc-journalization label { display: block; margin: 6px 0 3px; font-weight: bold; }
#visitation-cockpit .vc-journalization input { width: 100%; max-width: 100%; padding: 4px 6px; border: 2px inset #dfdfdf; border-radius: 0; background: #fff; color: #000; font: inherit; }
#visitation-cockpit .journalization-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
#visitation-cockpit .journal-code-label { color: #000080; font-weight: bold; }
/* Overblikkets rækker ligger på hvid baggrund – arv ikke kortets hvide tekst */
#visitation-overview .vo-list, #visitation-overview .vo-row, #visitation-overview .vo-main, #visitation-overview .vo-empty { color: #111111; }

/* Kompakt omjournalisering: færdig = én linje, forslag 3 ad gangen (10.11.2026) */
#visitation-cockpit .vc-journalization { padding: 5px 9px; }
#visitation-cockpit .vc-journalization .journalization-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; list-style: none; font-size: 13px; }
#visitation-cockpit .vc-journalization .journalization-fold > summary::-webkit-details-marker { display: none; }
#visitation-cockpit .vc-journalization .journalization-fold > summary::before { content: '▸'; color: #000080; }
#visitation-cockpit .vc-journalization .journalization-fold[open] > summary::before { content: '▾'; }
#visitation-cockpit .vc-journalization .journalization-fold > summary small { display: inline; margin: 0; font-size: 12px; color: #1f4f1f; }
#visitation-cockpit .vc-journalization .journalization-fold[open] > summary { margin-bottom: 6px; }
#visitation-cockpit .vc-journalization .journalization-edit { margin-left: 6px; padding: 0 5px; border: 1px solid #808080; background: #e8e8e8; color: #000080; font-size: 11px; }
#visitation-cockpit .vc-journalization .journalization-fold[open] .journalization-edit { display: none; }
#visitation-cockpit .vc-journalization.is-done { background: #f3f8f1; border-left-color: #2f7a2f; }
#visitation-cockpit .journal-suggestions { padding: 6px 8px; margin: 6px 0; }
#visitation-cockpit .journal-suggestions > p { margin: 2px 0 4px; font-size: 12px; }
#visitation-cockpit .journal-suggestions button { margin-top: 3px; padding: 4px 8px; }
#visitation-cockpit .journal-suggestions button small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 1px; }
#visitation-cockpit .journal-more > summary { margin-top: 5px; cursor: pointer; color: #000080; font-size: 12px; }

/* Omjournalisering må ikke skubbe resten af visitationen ud af kolonnen: egen rullebjælke (10.11.2026) */
.integrated-cockpit-column > .vc-journalization { flex: 0 1 auto; min-height: 0; max-height: min(55%, 560px); overflow-y: auto; overscroll-behavior: contain; }
.integrated-cockpit-column > .vc-work-area { min-height: 180px; }

/* Differentierede tjeklister: områdeoverskrifter (10.11.2026) */
#visitation-cockpit .vc-check-list > .vc-check-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; list-style: none; margin: 10px 0 4px; padding: 4px 8px; border-left: 4px solid #000080; background: #e6eaf2; color: #000080; }
#visitation-cockpit .vc-check-list > .vc-check-group:first-child { margin-top: 0; }
#visitation-cockpit .vc-check-list > .vc-check-group strong { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
#visitation-cockpit .vc-check-list > .vc-check-group span { font-size: 11px; color: #435c7c; }
#visitation-cockpit .vc-check-stale { display: block; font-size: 11px; color: #82580c; }
.rd-hints .rd-hints-more { display: inline; }
.rd-hints .rd-hints-more > summary { display: inline-block; cursor: pointer; padding: 1px 6px; border: 1px dashed #808080; background: #f4f4f4; color: #000080; font-size: 11px; }
.rd-hints .rd-hints-more[open] > summary { border-style: solid; }

/* Rapportbestilling: afgørelsesskrivelser og dokumentmail i POLSAS-stil. */
.rb-form { display:grid; gap:8px; margin-top:10px; }
.rb-form[hidden],.rb-form [hidden] { display:none!important; }
.rb-form label { display:grid; gap:4px; font-weight:bold; min-width:0; }
.rb-form input:not([type=checkbox]),.rb-form select,.rb-form textarea { width:100%; min-width:0; box-sizing:border-box; font:inherit; font-weight:normal; }
.rb-form textarea { resize:vertical; }
.rb-hint { font-size:11px; color:#30475f; margin:3px 0; }
.rb-footer { margin-top:12px; padding-top:10px; border-top:1px solid #808080; }
.rb-mail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; min-width:0; }
.rb-choices { max-height:260px; overflow:auto; background:white; border:1px solid #808080; padding:6px; }
.rb-choices label { display:flex; align-items:flex-start; gap:6px; padding:5px; font-weight:normal; overflow-wrap:anywhere; }
.rb-choices small { display:block; color:#40566d; }
#rb-preview-text { white-space:pre-wrap; overflow-wrap:anywhere; padding:8px; background:white; border:1px solid #808080; max-height:400px; overflow:auto; }
#rb-status { white-space:pre-wrap; color:#173e31; font-weight:bold; }
#rb-status.rb-error { color:#a00000; }
.rb-confirm { width:min(560px,calc(100vw - 24px)); }
.rb-confirm .polsas-confirm-body { overflow-wrap:anywhere; }
@media(max-width:760px){.rb-mail-grid{grid-template-columns:1fr;}}
