* { box-sizing: border-box; }
body { margin: 0; font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; color: #1B2430; background: #F2F4F7; font-size: 14px; }
a { color: #1F4E79; }

.topbar { background: #14283D; color: #fff; padding: 0 32px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-name { font-size: 20px; font-weight: 600; }
.brand-sub { font-size: 13px; color: #C3CEDB; padding-left: 12px; border-left: 1px solid #3A5370; }
.topbar-note { font-size: 13px; color: #C3CEDB; }

.container { max-width: 1296px; margin: 0 auto; padding: 28px 32px 40px; }
.narrow { max-width: 960px; margin: 0 auto; }

.kpis { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.kpi { flex: 1 1 220px; background: #fff; border: 1px solid #DDE2E9; border-radius: 8px; padding: 16px 20px; }
.kpi-l { font-size: 13px; color: #5B6573; }
.kpi-v { font-size: 32px; font-weight: 600; margin-top: 4px; }
.kpi-v.crit { color: #B42318; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.filter-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.field label { font-size: 13px; font-weight: 500; }
.filters .field label { font-size: 12px; color: #5B6573; }
input[type=text], input[type=date], select, textarea, input:not([type]) {
  height: 44px; padding: 0 12px; border: 1px solid #B9C2CE; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: #1B2430; width: 100%;
}
.filters input, .filters select { font-size: 14px; width: auto; min-width: 150px; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
.right { text-align: right; }
.req { color: #B42318; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: #1F4E79; color: #fff; }
.btn-secondary { background: #fff; color: #1B2430; border-color: #B9C2CE; }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger-outline { background: #fff; color: #B42318; border-color: #E0A8A2; }
.btn-row { display: flex; gap: 12px; }
.btn-row.end { justify-content: flex-end; margin-top: 8px; }

.table-wrap { background: #fff; border: 1px solid #DDE2E9; border-radius: 8px; overflow-x: auto; }
table { width: 100%; min-width: 1100px; border-collapse: collapse; }
th { background: #EAEEF3; text-align: left; color: #3A4452; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
th.right { text-align: right; }
td { padding: 12px 16px; border-top: 1px solid #E4E8EE; vertical-align: middle; }
td.empty { text-align: center; color: #5B6573; padding: 32px; }
.muted { color: #5B6573; }
.light { font-weight: 400; }
.small { font-size: 12px; }
.strong { font-weight: 500; }
.nowrap { white-space: nowrap; }
.overdue { color: #B42318; font-weight: 600; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: #5B6573; }

.pill, .chip { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.pill { border-radius: 999px; }
.chip { border-radius: 4px; }
.sev-krit { background: #FDE7E4; color: #9B1C12; }
.sev-mittel { background: #FFF0CC; color: #7A4A00; }
.sev-gering { background: #E7EDF3; color: #3A4452; }
.st-offen { background: #E7EDF3; color: #1F3A56; }
.st-bearb { background: #D6E6F7; color: #123E6B; }
.st-behoben { background: #D9F0E3; color: #14572F; }
.st-abgen { background: #BFE5CE; color: #0F4224; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; }
.icon-btn:hover { background: #F2F4F7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.alert { border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #D9F0E3; color: #14572F; }
.alert-err { background: #FDE7E4; color: #9B1C12; }
.alert-err ul { margin: 0; padding-left: 18px; }
.field-validation-error, .text-danger { color: #B42318; font-size: 12px; }
.input-validation-error { border-color: #B42318 !important; }

.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; text-decoration: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 20px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 600; }
.card { background: #fff; border: 1px solid #DDE2E9; border-radius: 8px; padding: 28px; }
.form section { margin-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #3A4452; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid #E4E8EE; }

.dialog-wrap { display: flex; justify-content: center; padding: 48px 0; }
.dialog { width: 100%; max-width: 480px; background: #fff; border-radius: 10px; padding: 28px; box-shadow: 0 16px 48px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 16px; }
.dialog h1 { margin: 0; font-size: 20px; font-weight: 600; }
.dialog p { margin: 0; font-size: 15px; line-height: 1.5; color: #3A4452; }
.dialog-head { display: flex; align-items: center; gap: 12px; }
.dialog-icon { width: 44px; height: 44px; border-radius: 999px; background: #FDE7E4; display: flex; align-items: center; justify-content: center; }
.dialog-item { background: #F2F4F7; border-radius: 6px; padding: 12px 16px; }

@media (max-width: 720px) {
  .grid3 { grid-template-columns: 1fr; }
  .container, .topbar { padding-left: 16px; padding-right: 16px; }
}
