:root {
  --navy: #064882;
  --navy-dark: #09396b;
  --navy-muted: #5b87b0;
  --red: #d9534f;
  --panel-head: #f5f5f5;
  --border: #dcdfe4;
  --toolbar: #f9fafc;
  --teal: #1d9bc6;
}
html, body { height: 100%; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; color: #333; background: #fff; }
.topbar { height: 38px; background: var(--navy); color: #fff; display: flex; align-items: center; padding: 0 12px; position: sticky; top: 0; z-index: 1000; }
.topbar .brand { font-size: 18px; font-weight: 300; }
.demo-pill { font-size: 10px; font-weight: 700; background: #f0ad4e; color: #222; border-radius: 9px; padding: 1px 7px; vertical-align: middle; margin-left: 6px; }
.menu-toggle { background: none; border: 0; color: #fff; font-size: 16px; margin-left: 18px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; height: 100%; }
.topbar-right .dropdown { height: 100%; }
.topbar-right > .dropdown > a { color: #fff; display: flex; align-items: center; height: 100%; padding: 0 16px; text-decoration: none; }
.topbar-right .user-toggle { background: var(--navy-dark); }
.topbar-right .fa-user-circle { font-size: 18px; margin-right: 8px; color: #cfe0f3; }
.countdown { padding: 0 6px 0 16px; font-variant-numeric: tabular-nums; }
.navy-menu { background: var(--navy); border: 0; border-radius: 0; min-width: 260px; padding: 6px 0; }
.navy-menu > li > a, .navy-menu .link-button, .navy-menu .menu-head, .navy-menu .dropdown-header { color: #fff; padding: 8px 20px; display: block; font-size: 14px; }
.navy-menu .sub > a { padding-left: 40px; }
.navy-menu > li > a:hover, .navy-menu .link-button:hover { background: var(--navy-dark); color: #fff; }
.navy-menu .divider { background: #fff; opacity: 0.6; }
.navy-menu .dropdown-header { color: #cfe0f3; font-size: 12px; }
.link-button { background: none; border: 0; width: 100%; text-align: left; }
.shell { display: flex; height: calc(100vh - 38px); }
body.menu-hidden .side-menu { display: none; }
.side-menu { width: 240px; flex: none; border-right: 6px solid #e8e8e8; overflow-y: auto; overflow-x: hidden; background: #fff; }
.side-logo { display: flex; align-items: center; gap: 8px; padding: 18px 14px; }
.side-logo.big { padding: 10px 0 20px; justify-content: center; }
.logo-mark { width: 44px; height: 34px; }
.logo-title { color: #0b5d7e; font-weight: 700; font-size: 13px; }
.logo-sub { color: var(--teal); font-size: 12px; }
.side-menu ul { list-style: none; padding: 0; margin: 0; }
.side-menu li { line-height: 29px; white-space: nowrap; }
.side-menu li a { color: #333; display: block; text-decoration: none; padding-right: 8px; }
.side-menu li a:hover { background: #eef3f8; }
.side-menu li.active > a { background: var(--navy); color: #fff; }
.side-menu li.group { color: #333; font-weight: 400; padding-left: 10px; }
.side-menu li.md-group { margin-top: 10px; border-top: 1px solid #eee; color: var(--navy); font-weight: 700; }
.side-menu .depth-0 { padding-left: 10px; }
.side-menu .depth-1 > a, .side-menu li.group.depth-1 { padding-left: 26px; }
.side-menu .depth-2 > a { padding-left: 40px; }
.side-menu .depth-3 > a { padding-left: 66px; }
.side-menu .chevron { font-size: 10px; margin-right: 8px; color: #555; }
.side-menu li.active .chevron { color: #fff; }
.menu-icon { width: 18px; text-align: center; margin-right: 6px; color: #8a8a8a; }
.orange { color: #f39c12 !important; }
.blue { color: #2a6fb8 !important; }
.red { color: #d43f3a !important; }
.green { color: #3c9a3c !important; }
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 6px; background: var(--toolbar); border-bottom: 1px solid #e6e8ec; padding: 4px 8px; }
.toolbar .breadcrumb { background: none; margin: 0; padding: 4px 10px; font-size: 15px; }
.toolbar .breadcrumb a { color: #333; }
.sort-pill { background: var(--navy); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.quicksearch { margin-left: auto; display: flex; width: 440px; }
.quicksearch input { flex: 1; border: 1px solid #ccc; padding: 4px 6px; font-size: 11px; height: 30px; }
.quicksearch .btn { border-radius: 0; height: 30px; }
.btn-danger { background: var(--red); border-color: #d43f3a; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 0; font-weight: 700; min-width: 110px; }
.btn-navy:hover, .btn-navy:focus { color: #fff; background: var(--navy-dark); }
.btn-navy[disabled], .btn-navy.disabled { background: var(--navy-muted); border-color: var(--navy-muted); opacity: 1; }
.btn { border-radius: 0; }
.flash { margin: 8px; }
.split { display: flex; flex: 1; min-height: 0; }
.result-list { width: 330px; flex: none; display: flex; flex-direction: column; }
.list-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 10px; }
.rows { flex: 1; overflow-y: auto; border-top: 1px solid #eee; }
.list-row { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e5e5e5; color: #333; text-decoration: none; }
.list-row:hover { background: #f3f7fb; text-decoration: none; color: #333; }
.list-row.selected { background: var(--navy); color: #fff; }
.list-row.selected .text-muted { color: #cfe0f3; }
.row-time { font-weight: 400; font-size: 13px; }
.list-row.selected .row-time { font-weight: 700; }
.row-icons { margin-top: 4px; display: flex; gap: 5px; align-items: center; }
.m-icon { display: inline-block; background: #1f5fa8; color: #fff; font-weight: 700; font-size: 10px; width: 14px; height: 14px; line-height: 14px; text-align: center; border: 1px solid #fff; }
.status-icon { position: relative; width: 34px; height: 38px; flex: none; display: inline-block; }
.status-icon .base { font-size: 32px; color: #8a8a8a; }
.list-row.selected .status-icon .base { color: #fff; }
.status-icon .badge-icon { position: absolute; left: 14px; top: 18px; font-size: 15px; text-shadow: 0 0 2px #fff; }
.status-icon .frist-icon { position: absolute; left: -2px; top: 22px; font-size: 13px; background: #fff; }
.pager-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid #eee; background: #fafafa; }
.pager-row .inline { display: inline; }
.inline { display: inline; }
.empty { padding: 12px; }
.splitter { width: 5px; background: #c8c8c8; flex: none; }
.detail-pane, .full-pane { flex: 1; overflow-y: auto; padding: 14px 20px; }
.detail-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.detail-title { flex: 1; font-size: 13px; }
.detail-status { color: #666; margin-top: 4px; }
.detail-buttons { display: flex; gap: 6px; }
.portal-panel { border-radius: 0; border-color: var(--border); box-shadow: none; margin-bottom: 8px; }
.portal-panel > .panel-heading { background: var(--panel-head); border-radius: 0; font-size: 15px; color: #333; cursor: pointer; padding: 8px 12px; }
.kv { display: grid; grid-template-columns: 45% 55%; row-gap: 6px; margin: 0; }
.kv dt { font-weight: 400; color: #333; padding-left: 10px; }
.kv dd { margin: 0; }
.kv-sub { font-weight: 700; margin: 10px 0 6px; }
.pre { white-space: pre-wrap; }
.portal-table { font-size: 12px; margin: 0; }
.table-scroll { overflow-x: auto; }
.portal-table th { background: #fafafa; font-weight: 700; }
.klassifizierung { font-size: 11px; color: #555; }
.file-chip { display: inline-block; background: #e6e6e6; color: #333; padding: 2px 6px; border-radius: 3px; margin: 1px 0; }
.doc-actions { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 6px 0; border-left: 2px solid #ddd; padding-left: 12px; }
.timeline .chip { background: #1a8be0; color: #fff; border-radius: 3px; padding: 1px 6px; font-size: 11px; }
.modal-header { background: #f0f0f0; }
.modal-content { border-radius: 0; }
.modal-footer { background: #f8f9fc; }
.help-icon { color: #333; margin-top: 9px; }
.static-modal .modal-dialog { margin: 30px auto; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #ccc; border: 2px dashed var(--navy); padding: 26px; margin-bottom: 14px; cursor: pointer; font-weight: 400; width: 100%; }
.dropzone .fa { font-size: 40px; color: #427099; }
.dropzone input { max-width: 100%; }
.yesno .btn.active { background: var(--navy); color: #fff; }
.bare-main { max-width: 760px; margin: 40px auto; }
.login-box { max-width: 420px; margin: 0 auto; text-align: center; }
.login-box.wide { max-width: 720px; text-align: left; }
.login-box input { margin-bottom: 10px; border-radius: 0; }
.login-buttons { display: flex; justify-content: space-between; }
.demo-hint { margin-top: 24px; color: #8a6d3b; font-size: 12px; }
.login-footer { margin-top: 40px; background: #f2f2f2; padding: 14px; display: flex; gap: 18px; justify-content: center; }
.login-footer a { color: #333; }
.verwaltung-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.fall-card { border: 1px solid var(--border); margin-bottom: 10px; padding: 10px 12px; }
.fall-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.stage-track { display: flex; gap: 0; margin: 6px 0 12px; }
.stage { flex: 1; position: relative; }
.stage button { width: 100%; border: 0; padding: 8px 14px 8px 22px; font-size: 12px; font-weight: 700; background: #e9edf2; color: #556; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.stage.done button { background: #8fb3d9; color: #fff; }
.stage.current button { background: var(--navy); color: #fff; }
.stage.skipped button { background: #f5f5f5; color: #aaa; text-decoration: line-through; }
.stage-status { display: block; font-size: 11px; text-align: center; margin-top: 3px; }
.check-grid { display: flex; flex-direction: column; margin-bottom: 10px; }
.check-grid .checkbox-inline { margin-left: 0; padding-top: 3px; }
.secret-box { width: 180px; }
@media (max-width: 900px) {
  .side-menu { display: none; }
  .split { flex-direction: column; }
  .result-list { width: 100%; max-height: 50vh; }
  .quicksearch { width: 100%; }
  .toolbar { flex-wrap: wrap; }
}
