/* Shared presentation for Dossiers, Relaties and Documenten. */
#workspace:has(#employee-sidebar :is(#sidebar-matters, #nav-clients, #sidebar-documents)[aria-current="page"]) {
  --register-blue: #204f79;
  --register-text: #233e54;
  --register-muted: #526b81;
  --register-tint: #eaf2fa;
  --register-line: #cddbe8;
  --register-focus: #28669b;
}

#workspace #employee-sidebar :is(#sidebar-matters, #nav-clients, #sidebar-documents)[aria-current="page"] {
  background: var(--register-tint);
  color: #173f63;
  box-shadow: inset 3px 0 var(--register-blue);
  font-weight: 600;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .matter-workplace, .relation-workplace, .documents-hub) {
  color: var(--register-text, #233e54);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .mw-header, .rw-header, .dh-header) h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

#workspace .sidebar-content :is(.matter-workplace, .relation-workplace, .documents-hub) :is(.mw-toolbar, .rw-toolbar, .rw-surface, .mw-section) > h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table th:not(:empty),
#workspace .sidebar-content :is(.matter-workplace .mw-table, .relation-workplace .rw-table) th {
  background: #f1f5f8;
  color: var(--register-muted, #526b81);
  font-size: 13px;
  font-weight: 600;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table td,
#workspace .sidebar-content :is(.matter-workplace .mw-table, .relation-workplace .rw-table) td {
  font-size: 14px;
  line-height: 1.5;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table .register-record-link,
#workspace .sidebar-content :is(.mw-document-link, .rw-table a) {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table .rw-linked-matters > summary {
  font-size: 14px;
  font-weight: 600;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .matter-workplace, .relation-workplace, .documents-hub) :is(.register-reference, .mw-meta, .dh-meta, .rw-facts dt, .muted) {
  font-size: 13px;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .matter-workplace, .relation-workplace, .documents-hub) :is(label, legend) {
  font-size: 13px;
}

#workspace .sidebar-content :is(.mw-tabs, .rw-tabs, .dh-tabs, .rw-archive-tabs, .register-documents-hub .qw-views) button {
  font-size: 14px;
  font-weight: 500;
}

#workspace .sidebar-content :is(.mw-tabs, .rw-tabs, .dh-tabs, .rw-archive-tabs, .register-documents-hub .qw-views) button[aria-pressed="true"] {
  background: var(--register-blue, #204f79);
  border-color: var(--register-blue, #204f79);
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) .qw-heading-actions > button:not(.secondary),
#workspace .sidebar-content .matter-workplace .mw-toolbar > button:not(.secondary) {
  background: var(--register-blue, #204f79);
  border-color: var(--register-blue, #204f79);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .matter-workplace, .relation-workplace, .documents-hub) :is(button:not(.secondary), summary, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--register-focus, #28669b);
  outline-offset: 2px;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table tbody tr:has(.register-record-link):is(:hover, :focus-within, [aria-selected="true"]) {
  background: var(--register-tint, #eaf2fa);
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table .register-status {
  background: #eef2f6;
  color: #435a70;
  border: 1px solid #d9e2eb;
  border-radius: 4px;
  font-size: 13px;
  padding: 2px 7px;
}

#workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub) #register-table .register-status.register-review {
  background: #fff3e4;
  color: #794311;
  border-color: #efd3ab;
}

#workspace .sidebar-content .register-documents-hub #register-table .register-status[data-status="approved"] {
  background: #e9f4f1;
  color: #22534f;
  border-color: #b8d7ce;
}

#workspace .sidebar-content .register-documents-hub #register-table .register-status:is([data-status="failed"], [data-status="rejected"]) {
  background: #fceeea;
  color: #8a382c;
  border-color: #e9c5be;
}

@media (max-width: 900px) {
  #workspace .sidebar-content :is(.register-dossier, .register-relations, .register-documents-hub, .matter-workplace, .relation-workplace, .documents-hub) :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    font-size: 16px;
  }
}

@media (forced-colors: active) {
  #workspace .sidebar-content :is(.mw-tabs, .rw-tabs, .dh-tabs, .rw-archive-tabs, .register-documents-hub .qw-views) button[aria-pressed="true"] {
    border: 1px solid Highlight;
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
}
