﻿@font-face {
  font-family: "Roboto";
  src: url("/css/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf") format("opentype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/css/fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}
html, body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  padding-right: 0 !important;
}

main {
  flex: 1 0 auto; /* allows it to grow and fill space */
  margin-bottom: 60px;
}

footer {
  flex-shrink: 0; /* prevent it from shrinking */
}

.pointer {
  cursor: pointer;
}

#editor {
  height: 150px;
}

.z-max {
  z-index: 9999;
}

.autofill-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 180px;
  z-index: 1000;
  border: 1px solid #ccc;
  background-color: #fff;
  white-space: nowrap;
  overflow-y: auto;
  display: inline-block;
}

.autofill-item {
  padding: 5px 10px;
  margin: 2px 0;
  border: 1px solid transparent;
  color: #023846;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.autofill-item:hover {
  background-color: #023846;
  color: white;
  border-color: #023846;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.btn-image {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
}
.btn-image img {
  max-height: 32px;
  min-width: 40px;
}
.btn-image span + img {
  padding-left: 10px;
}
.btn-image img + span {
  padding-left: 10px;
}

:root {
  --p: #023846;
  --p-dark: #012f3b;
  --p-light: #0a4c60;
  --p-muted: rgba(2, 56, 70, 0.07);
  --p-border: rgba(2, 56, 70, 0.16);
  --surface: #ffffff;
  --bg: #f2f6f7;
  --text: #0f1c22;
  --muted: #5b6a70;
  --border: rgba(0, 0, 0, 0.08);
  --success: #73b32b;
  --danger: #dc2626;
}

.mk, .pb {
  background: #f2f6f7;
  min-height: 100vh;
  padding: 1.5rem 0;
}

@keyframes mkUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mk-up {
  animation: mkUp 0.3s ease both;
}
.mk-up:nth-child(2) {
  animation-delay: 0.04s;
}
.mk-up:nth-child(3) {
  animation-delay: 0.08s;
}

.pb-up {
  animation: mkUp 0.3s ease both;
}
.pb-up:nth-child(2) {
  animation-delay: 0.05s;
}

.mk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mk-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f1c22;
  margin: 0;
  letter-spacing: -0.02em;
}
.mk-title em {
  color: #023846;
  font-style: normal;
}

.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(2, 56, 70, 0.07);
  color: #023846;
  border: 1px solid rgba(2, 56, 70, 0.16);
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 1rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  background: #023846;
  color: #fff;
}
.btn-p:hover {
  background: #012f3b;
  color: #fff;
}
.btn-p:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-p.btn-o {
  background: transparent;
  border: 1.5px solid rgba(2, 56, 70, 0.16);
  color: #0f1c22;
}
.btn-p.btn-o:hover {
  border-color: #023846;
  color: #023846;
  background: rgba(2, 56, 70, 0.07);
}

.mk-upload {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(2, 56, 70, 0.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.mk-upload::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #023846;
  border-radius: 3px 0 0 3px;
}

.mk-drop {
  border: 1.5px dashed rgba(2, 56, 70, 0.16);
  border-radius: 5px;
  background: rgba(2, 56, 70, 0.07);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.mk-drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.mk-drop:hover, .mk-drop.over {
  border-color: #023846;
  background: rgba(2, 56, 70, 0.12);
}

.mk-drop-icon {
  font-size: 1.6rem;
  color: #023846;
  margin-bottom: 0.4rem;
}

.mk-drop-text {
  font-size: 0.83rem;
  color: #5b6a70;
  margin: 0;
}
.mk-drop-text strong {
  color: #023846;
}

.mk-drop-hint {
  font-size: 0.72rem;
  color: #5b6a70;
  margin: 0.2rem 0 0;
  opacity: 0.8;
}

.mk-file-name {
  font-size: 0.75rem;
  color: #0a4c60;
  font-weight: 600;
  margin-top: 0.35rem;
  min-height: 1.1rem;
}

.mk-status {
  display: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
  margin-top: 0.6rem;
  align-items: center;
  gap: 0.5rem;
}
.mk-status.ok {
  background: #eaf4dd;
  color: #5d9122;
  border: 1px solid #d3e8b6;
  display: flex;
}
.mk-status.err {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: flex;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mk-spin {
  display: none;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
.mk-spin.on {
  display: inline-block;
}

.mk-guide-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #023846;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.mk-guide {
  font-size: 0.75rem;
  color: #5b6a70;
  line-height: 1.85;
  padding-left: 1rem;
  margin: 0;
}

.mk-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.mk-table-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(2, 56, 70, 0.06);
  overflow: hidden;
}

.mk-table-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mk-table-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f1c22;
}

.mk-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #023846;
  background: rgba(2, 56, 70, 0.07);
  border: 1px solid rgba(2, 56, 70, 0.16);
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
}

.mk-hint {
  font-size: 0.72rem;
  color: #5b6a70;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mk-scroll {
  overflow-x: auto;
}

.mk-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
  white-space: nowrap;
}
.mk-t thead th {
  background: #023846;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.8rem;
  border: none;
  position: sticky;
  top: 0;
  z-index: 1;
}
.mk-t thead th:first-child {
  min-width: 160px;
}
.mk-t tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.1s;
}
.mk-t tbody tr:hover {
  background: rgba(2, 56, 70, 0.07);
}
.mk-t tbody tr:hover td:first-child {
  border-left: 3px solid #023846;
  padding-left: calc(0.8rem - 3px);
}
.mk-t tbody tr:last-child {
  border-bottom: none;
}
.mk-t td {
  padding: 0.5rem 0.8rem;
  color: #0f1c22;
  vertical-align: middle;
}
.mk-t td:first-child {
  font-weight: 600;
}
.mk-t td a {
  color: #023846;
  text-decoration: none;
  font-weight: 600;
}
.mk-t td a:hover {
  text-decoration: underline;
}

.bool-y {
  color: #73b32b;
}

.bool-n {
  color: #dc2626;
}

.mk-modal .modal-header {
  background: #023846;
  color: #fff;
  border-bottom: none;
  padding: 0.9rem 1.1rem;
}
.mk-modal .modal-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.mk-modal .btn-close {
  filter: invert(1) opacity(0.8);
}
.mk-modal .modal-body {
  padding: 0;
  max-height: 72vh;
  overflow-y: auto;
}

.mk-tl {
  padding: 1.1rem;
}

.mk-tl-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  position: relative;
}
.mk-tl-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -1.1rem;
  width: 1px;
  background: rgba(2, 56, 70, 0.16);
}

.mk-tl-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(2, 56, 70, 0.07);
  border: 2px solid #023846;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #023846;
  font-size: 0.62rem;
  position: relative;
  z-index: 1;
}

.mk-tl-body {
  flex: 1;
  background: #f8fafb;
  border: 1px solid rgba(2, 56, 70, 0.16);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
}

.mk-tl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.mk-tl-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #023846;
}

.mk-tl-user {
  font-size: 0.68rem;
  color: #5b6a70;
  background: rgba(2, 56, 70, 0.07);
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
}

.mk-tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.25rem 0.65rem;
}

.mk-tl-field {
  font-size: 0.7rem;
  color: #5b6a70;
}
.mk-tl-field span {
  color: #0f1c22;
  font-weight: 600;
}

.mk-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #5b6a70;
  font-size: 0.82rem;
}
.mk-empty i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.25;
  color: #023846;
}

.pb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #5b6a70;
  text-decoration: none;
  margin-bottom: 1.1rem;
  transition: color 0.15s;
}
.pb-back:hover {
  color: #023846;
}

.pb-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .pb-layout {
    grid-template-columns: 1fr;
  }
}

.pb-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(2, 56, 70, 0.06);
  overflow: hidden;
}

.pb-card-hd {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(2, 56, 70, 0.16);
  background: linear-gradient(135deg, #023846 0%, #012f3b 60%, rgba(10, 76, 96, 0.9) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pb-card-hd::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.pb-card-hd-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.pb-card-hd-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pb-card-hd-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.pb-body {
  padding: 1.35rem;
}

.pb-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
}
@media (max-width: 640px) {
  .pb-g {
    grid-template-columns: 1fr;
  }
}

.pb-g3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 640px) {
  .pb-g3 {
    grid-template-columns: 1fr;
  }
}

.pb-f {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.pb-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5b6a70;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pb-in {
  width: 100%;
  padding: 0.44rem 0.7rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  font-size: 0.82rem;
  color: #0f1c22;
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pb-in:focus {
  border-color: #023846;
  box-shadow: 0 0 0 3px rgba(2, 56, 70, 0.1);
}

.pb-sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='%235a7068' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  padding-right: 1.75rem;
}

.pb-hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 1.1rem 0;
}

.pb-permits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pb-permit {
  display: none;
}
.pb-permit.vis {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #f2f6f7;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.pb-permit.vis:has(input:checked) {
  border-color: #023846;
  background: rgba(2, 56, 70, 0.07);
  color: #023846;
}
.pb-permit input[type=checkbox] {
  width: 13px;
  height: 13px;
  accent-color: #023846;
  cursor: pointer;
}
.pb-permit span {
  font-size: 0.78rem;
  font-weight: 600;
}

.pb-tg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
@media (max-width: 640px) {
  .pb-tg-grid {
    grid-template-columns: 1fr;
  }
}

.pb-tg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.7rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  background: #f2f6f7;
  transition: border-color 0.15s;
}
.pb-tg-row:has(input:checked) {
  border-color: rgba(2, 56, 70, 0.16);
  background: rgba(2, 56, 70, 0.07);
}

.pb-tg-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: #0f1c22;
}

.pb-tg {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}
.pb-tg input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pb-tg-sl {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.18s;
}
.pb-tg-sl::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
input:checked + .pb-tg-sl {
  background: #023846;
}
input:checked + .pb-tg-sl::before {
  transform: translateX(16px);
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.pb-btn-p {
  background: #023846;
  color: #fff;
}
.pb-btn-p:hover {
  background: #012f3b;
  color: #fff;
}

.pb-btn-o {
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  color: #0f1c22;
}
.pb-btn-o:hover {
  border-color: #023846;
  color: #023846;
  background: rgba(2, 56, 70, 0.07);
}

.pb-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}

.pb-sc {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(2, 56, 70, 0.06);
  overflow: hidden;
}

.pb-sc-hd {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  color: #023846;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(2, 56, 70, 0.07);
}

.pb-sc-body {
  padding: 0.65rem 0.9rem;
}

.pb-sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.pb-sc-row:last-child {
  border-bottom: none;
}

.pb-sc-k {
  font-size: 0.7rem;
  color: #5b6a70;
}

.pb-sc-v {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f1c22;
}
.pb-sc-v.y {
  color: #73b32b;
}
.pb-sc-v.n {
  color: #dc2626;
}

.pb-typ {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(2, 56, 70, 0.07);
  color: #023846;
  border: 1px solid rgba(2, 56, 70, 0.16);
}

.pb-note {
  font-size: 0.72rem;
  color: #5b6a70;
  line-height: 1.65;
  margin: 0;
}
.pb-note strong {
  color: #0f1c22;
}

@keyframes pfIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pf-body {
  background: #f1f5f6;
  font-size: 0.82rem;
  color: #0d2a33;
}

.pf-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #1e293b;
}
@media (max-width: 640px) {
  .pf-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf-kpi-cell {
  padding: 0.55rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.pf-kpi-cell:last-child {
  border-right: none;
}
.pf-kpi-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.2s;
}
.pf-kpi-cell:hover::before {
  background: #023846;
}

.pf-kpi-lbl {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.12rem;
}

.pf-kpi-val {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 1.18rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.025em;
}
.pf-kpi-val.ok {
  color: #9ccf63;
}
.pf-kpi-val.warn {
  color: #fbbf24;
}
.pf-kpi-val.err {
  color: #f87171;
}
.pf-kpi-val.acc {
  color: #67e8f9;
}

.pf-kpi-sub {
  margin-top: 0.1rem;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.3);
}

.pf-content {
  padding: 0.6rem 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pf-cap-grid {
  display: grid;
  /* immer zwei Spalten: eine einzelne Person ist so breit wie bei zwei Personen, nicht so breit wie das Popup */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  animation: pfIn 0.25s ease both;
}

@media (max-width: 575.98px) {
  .pf-cap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pf-cap-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(2, 56, 70, 0.06);
}

.pf-cap-hd {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  background: #023846;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pf-cap-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pf-cap-name {
  font-size: 0.73rem;
  font-weight: 600;
}

.pf-cap-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.pf-cap-tbl thead th {
  padding: 0.2rem 0.65rem;
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5b6a70;
  background: #f1f5f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.pf-cap-tbl tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.1s;
}
.pf-cap-tbl tbody tr:last-child {
  border-bottom: none;
}
.pf-cap-tbl tbody tr:hover {
  background: rgba(2, 56, 70, 0.07);
}
.pf-cap-tbl td {
  padding: 0.22rem 0.65rem;
  color: #0d2a33;
  vertical-align: middle;
}
.pf-cap-tbl td:nth-child(2) {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #5b6a70;
}

.pf-iw {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  width: 112px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pf-iw:focus-within {
  border-color: #023846;
  box-shadow: 0 0 0 2px rgba(2, 56, 70, 0.07);
}

.pf-cur {
  padding: 0 0.3rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #5b6a70;
  background: #f1f5f6;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pf-inp {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.22rem 0.3rem;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: #0d2a33;
  text-align: right;
}

.pf-section {
  animation: pfIn 0.25s ease both;
}
.pf-section:nth-child(2) {
  animation-delay: 0.06s;
}
.pf-section:nth-child(3) {
  animation-delay: 0.12s;
}

.pf-section > .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-left: 3px solid #023846;
  border-top: none;
  border-right: none;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  cursor: pointer;
  border-radius: 0 !important;
}

.pf-section.pf-section--pension > .card-header {
  border-left-color: #f18f0b;
}

.pf-section > .card-body {
  padding: 0 !important;
  background: #ffffff;
}

.pf-section-label {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 700;
  font-size: 0.76rem;
  color: #0d2a33;
  letter-spacing: -0.01em;
}
.pf-section-label i {
  font-size: 0.72rem;
  color: #023846;
}

.pf-section--pension .pf-section-label i {
  color: #f18f0b;
}

.pf-form-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-left: 3px solid #023846;
  border-top: none;
  border-right: none;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  border-radius: 0 !important;
}

.pf-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
@media (max-width: 820px) {
  .pf-panel {
    grid-template-columns: 1fr;
  }
  .pf-panel .pf-panel-data {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.pf-panel-data {
  padding: 0.6rem 0.85rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.pf-panel-chart {
  padding: 0.6rem 0.85rem;
  background: #f1f5f6;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pf-body .port-data {
  font-size: 0.74rem;
  color: #0d2a33;
}
.pf-body .port-data > .d-flex {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.045) !important;
}
.pf-body .port-data > .d-flex:last-child {
  border-bottom: none !important;
}
.pf-body .port-data .text-muted {
  color: #5b6a70 !important;
  font-size: 0.7rem;
}
.pf-body .port-data .fw-semibold {
  font-weight: 650;
  color: #0d2a33;
}
.pf-body .port-data #tragbarkeit, .pf-body .port-data #tragbarkeitP {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #73b32b;
  line-height: 1;
}
.pf-body .port-data .bg-light {
  background: rgba(2, 56, 70, 0.07) !important;
  border-radius: 6px;
  border: 1px solid rgba(2, 56, 70, 0.15) !important;
  padding: 0.3rem 0.5rem !important;
  margin-top: 0.1rem;
}
.pf-body .port-data hr {
  border-color: rgba(0, 0, 0, 0.06) !important;
  opacity: 1;
  margin: 0.03rem 0;
}
.pf-body .port-data .form-control-sm {
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #ffffff;
  color: #0d2a33;
  padding: 0.2rem 0.38rem;
}
.pf-body .port-data .form-control-sm:focus {
  border-color: #023846 !important;
  box-shadow: 0 0 0 2px rgba(2, 56, 70, 0.07) !important;
  outline: none;
}
.pf-body .port-data .form-check-input:checked {
  background-color: #023846;
  border-color: #023846;
}
.pf-body .port-data .form-check-label {
  font-size: 0.7rem;
  color: #5b6a70;
  cursor: pointer;
}
.pf-body .port-data .wrapper-tranche, .pf-body .port-data .wrapper-wohnkosten, .pf-body .port-data .wrapper-einkommen {
  background: rgba(2, 56, 70, 0.07);
  border-radius: 6px;
  border: 1px solid rgba(2, 56, 70, 0.15) !important;
  margin: 0.05rem 0 0.1rem;
  padding: 0.15rem 0.45rem !important;
}
.pf-body .port-data .wrapper-tranche .d-flex, .pf-body .port-data .wrapper-wohnkosten .d-flex, .pf-body .port-data .wrapper-einkommen .d-flex {
  border-bottom-color: rgba(2, 56, 70, 0.07) !important;
}
.pf-body .port-data .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.08);
  color: #5b6a70;
  background: transparent;
  border-radius: 4px;
  padding: 0.14rem 0.35rem;
  font-size: 0.64rem;
  transition: all 0.15s;
}
.pf-body .port-data .btn-outline-secondary:hover {
  border-color: #023846;
  color: #023846;
  background: rgba(2, 56, 70, 0.07);
}
.pf-body .port-data span {
  font-variant-numeric: tabular-nums;
}

.pf-body .input-group-text {
  background: transparent;
  border: none;
  color: #5b6a70;
  font-size: 0.68rem;
  padding: 0.2rem 0.28rem;
}

.pf-panel-chart .alert-danger {
  background: rgba(220, 38, 38, 0.06) !important;
  border: none !important;
  border-left: 3px solid #dc2626 !important;
  color: #991b1b;
  border-radius: 6px;
  font-size: 0.68rem;
  padding: 0.35rem 0.6rem;
}
.pf-panel-chart .text-muted.fw-semibold {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6a70 !important;
}

#tragbarkeitChart, #tragbarkeitChartP {
  max-height: 120px;
}

#behlenungChart, #behlenungChartP {
  max-height: 88px;
}

.pf-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.45rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pf-hd-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pf-hd-customer {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.pf-hd-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d2a33;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-hd-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.42rem;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pf-tag i {
  font-size: 0.55rem;
}
.pf-tag.pf-tag--blue {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.pf-tag.pf-tag--amber {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
