@font-face {
  font-family: "D-DIN";
  src: url("/fonts/d-din/D-DIN.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN";
  src: url("/fonts/d-din/D-DIN-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN Condensed";
  src: url("/fonts/d-din/D-DINCondensed.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN Condensed";
  src: url("/fonts/d-din/D-DINCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pm-color-blue: #00417a;
  --pm-color-heading-accent: #00263a;
  --ipsc-active-header-border: #00263a;
  --ipsc-active-header-bg: #00263a;
  --ipsc-active-header-text: #ffffff;
  --ipsc-active-header-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  --pm-color-bg: #eceef2;
  --pm-color-card: #f3f4f6;
  --pm-color-border: #d4d8df;
  --pm-color-input: #e3e7ee;
  --pm-color-text: #1f2937;
  --pm-color-muted: #6b7280;

  --pm-font-family: "D-DIN", "Bahnschrift", "DIN Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pm-font-display: "D-DIN", "Bahnschrift", "DIN Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pm-fs-title-main: 20px;
  --pm-fs-title-sub: 13px;
  --pm-fs-section-title: 20px;
  --pm-fs-label: 14px;
  --pm-fs-control: 14px;
  --pm-fs-body: 14px;

  --pm-fs-tab: 13px;
  --pm-tab-weight: 700;
  --pm-tab-radius: 5px;
  --pm-tab-py: 6px;
  --pm-tab-px: 14px;

  --pm-radius-card: 6px;
  --pm-radius-panel: 6px;
  --pm-radius-control: 6px;
  --pm-radius-btn: 8px;
  --pm-radius-topbar: 6px;

  --pm-space-shell-top: 5px;
  --pm-space-shell-x: 16px;
  --pm-space-shell-bottom: 8px;
  --pm-space-card: 14px;
  --pm-gap-main: 16px;

  --pm-left-col: 320px;
}
:root {
  --pm-blue: #00417a;
  --pm-bg: #eceef2;
  --pm-card: #f3f4f6;
  --pm-border: #d4d8df;
  --pm-input: #e3e7ee;
  --pm-text: #1f2937;
  --pm-muted: #6b7280;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }

body.pm-page {
  margin: 0;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: var(--pm-font-family);
  overflow-x: hidden;
  overflow-y: scroll;
}

.pm-shell {
  max-width: var(--pm-shell-max, 1200px);
  margin: 0 auto;
  padding: 5px 16px 8px;
}

/* Width presets for reproducible cross-app layouts */
.pm-shell.pm-shell--w-1200 { --pm-shell-max: 1200px; }
.pm-shell.pm-shell--w-1280 { --pm-shell-max: 1280px; }
.pm-shell.pm-shell--w-1600 { --pm-shell-max: 1600px; }
/* Named presets used in project docs */
.pm-shell.pm-shell--w-a134 { --pm-shell-max: 1366px; } /* A1/A3/A4 */
.pm-shell.pm-shell--w-a2 { --pm-shell-max: 1600px; }   /* A2 */

.l4-formularlabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1f2937;
}

.l4-formularfeld {
  width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #7f8b97;
  border-radius: 0 !important;
  background: #f3f6f8;
  color: #1f2937;
  font-family: var(--pm-font-family);
  font-size: 13px;
  line-height: 1.2;
  box-shadow: none;
}

.l4-formularfeld::placeholder {
  color: #a0a8b3;
}

.l4-standard-dropdownfeld {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-color: #f3f6f8;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 1h12L7 9z' fill='%2364758b'/%3E%3C/svg%3E");
}

.l4-dropdown--compact,
.l4-formularfeld--compact {
  width: clamp(120px, 16vw, 180px);
  max-width: 100%;
}

.l4-dropdown--normal,
.l4-formularfeld--normal {
  width: clamp(180px, 24vw, 260px);
  max-width: 100%;
}

.l4-dropdown--wide,
.l4-formularfeld--wide {
  width: clamp(260px, 34vw, 380px);
  max-width: 100%;
}

.l4-dropdown--fluid,
.l4-formularfeld--fluid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.l4-standardbutton-menue {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #dbe2e9;
  color: #1f2937;
  box-shadow: none;
  font-family: var(--pm-font-family);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.l4-standardbutton-menue:hover,
.l4-standardbutton-menue:focus-visible {
  background: #006ba6;
  color: #ffffff;
  border-color: #006ba6;
  outline: none;
}

.l4-auswahlbutton {
  display: flex;
  min-width: 0;
}

button.l4-auswahlbutton,
.ro-btn.l4-auswahlbutton {
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #f3f6f8;
  color: #445363;
  font-family: var(--pm-font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.l4-auswahlbutton span {
  width: 100%;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #f3f6f8;
  color: #445363;
  font-family: var(--pm-font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.l4-auswahlbutton:hover span,
.l4-auswahlbutton input:focus-visible + span {
  background: #006ba6;
  border-color: #006ba6;
  color: #ffffff;
  outline: none;
}

button.l4-auswahlbutton:hover,
button.l4-auswahlbutton:focus-visible,
.ro-btn.l4-auswahlbutton:hover,
.ro-btn.l4-auswahlbutton:focus-visible {
  background: #006ba6;
  border-color: #006ba6;
  color: #ffffff;
  outline: none;
}

.l4-auswahlbutton input:checked + span {
  background: #1f426b;
  border-color: #1f426b;
  color: #f5f8fc;
}

button.l4-auswahlbutton.is-active,
.ro-btn.l4-auswahlbutton.is-active {
  background: #1f426b;
  border-color: #1f426b;
  color: #f5f8fc;
}

.l4-auswahlbutton input:focus-visible + span {
  outline: 2px solid rgba(0, 53, 102, 0.24);
  outline-offset: 1px;
}

.l4-formularbutton {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #dbe2e9;
  color: #1f2937;
  box-shadow: none;
  font-family: var(--pm-font-family);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.l4-formularbutton:hover,
.l4-formularbutton:focus-visible {
  background: #006ba6;
  color: #ffffff;
  border-color: #006ba6;
  outline: none;
}

.l4-formular-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #f3f6f8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1f2937;
}

.l4-formular-toggle span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 100%;
}

.l4-bereichsueberschrift-klein {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  font-family: var(--pm-font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.l4-kopf-kennzahlgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.l4-kopf-kennzahlblock {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #f3f6f8;
  display: grid;
  align-content: start;
  gap: 8px;
}

.l4-kopf-kennzahl-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a7786;
  margin: 0;
}

.l4-kopf-kennzahl-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
  margin: 0;
}

.l4-kopf-kennzahl-copy {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #5d6a79;
  margin: 0;
}

.l4-kopf-kennzahlblock.is-compact {
  min-height: 58px;
  padding: 10px 14px;
  gap: 4px;
  background: #eef2f6;
}

.l4-checkbox-mitte {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1f2937;
}

.l4-checkbox-mitte span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 100%;
}

.l4-formular-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  margin: 0;
  padding: 0;
  border: 1px solid #7f8b97;
  border-radius: 0;
  background: #f3f6f8;
  display: inline-grid;
  place-content: center;
  flex: 0 0 12px;
  cursor: pointer;
}

.l4-formular-checkbox::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #00417a;
  transform: scale(0);
  transition: transform 120ms ease;
}

.l4-formular-checkbox:checked::before {
  transform: scale(1);
}

@media (max-width: 1100px) {
  .l4-kopf-kennzahlgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .l4-kopf-kennzahlgrid {
    grid-template-columns: 1fr;
  }
}

.pm-topbar {
  background: var(--pm-blue);
  color: #dce5f0;
  border-radius: 0;
  min-height: 68px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-brand { display: flex; align-items: center; gap: 14px; }
.pm-logo { width: auto; height: 42px; display: block; }
.pm-title { margin: 0; font-size: 20px; line-height: 1.1; font-weight: 700; color: #dce5f0; }
.pm-subtitle { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: #dce5f0; }

.pm-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(220, 229, 240, 0.35);
  border-radius: 0;
  padding: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.lang-btn {
  text-decoration: none;
  color: #dce5f0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lang-btn.active { background: rgba(255, 255, 255, 0.2); }
.lang-btn.key-btn { background: rgba(255, 255, 255, 0.2); color: #dce5f0; }

.flag-flat,
.key-flat {
  width: 16px;
  height: 11px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.flag-flat.us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='110' viewBox='0 0 16 11'%3E%3Crect width='16' height='11' fill='%23fff'/%3E%3Cg fill='%23b22234'%3E%3Crect y='0' width='16' height='0.85'/%3E%3Crect y='1.7' width='16' height='0.85'/%3E%3Crect y='3.4' width='16' height='0.85'/%3E%3Crect y='5.1' width='16' height='0.85'/%3E%3Crect y='6.8' width='16' height='0.85'/%3E%3Crect y='8.5' width='16' height='0.85'/%3E%3Crect y='10.2' width='16' height='0.85'/%3E%3C/g%3E%3Crect width='6.8' height='5.95' fill='%233c3b6e'/%3E%3C/svg%3E"); }
.flag-flat.de { background-image: linear-gradient(to bottom,#000 0 33.333%,#dd0000 33.333% 66.666%,#ffce00 66.666% 100%); }

.key-flat {
  background-size: contain;
  background-color: #2e6aa4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cg fill='none' stroke='%23d1d5db' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='22' r='9'/%3E%3Cpath d='M25 22h22l4-4m-9 4v8m-8-8v8'/%3E%3C/g%3E%3C/svg%3E");
}

.pm-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce5f0;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  height: 30px;
  padding: 0 2px;
}

.pm-status {
  margin-top: 10px;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.pm-status.ok {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.pm-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

/* Prevent grid children (tables/panels) from expanding the page width */
.pm-layout > *,
.pm-grid-top > * {
  min-width: 0;
}

.pm-card {
  background: var(--pm-card);
  border: 1.5px solid var(--pm-border);
  border-radius: 0;
  padding: 14px;
  min-width: 0;
}

.pm-result-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.pm-grid-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}

.pm-panel,
.pm-section {
  border: 1.5px solid var(--pm-border);
  border-radius: 0;
  background: #f8fafc;
  padding: 10px 12px;
  min-width: 0;
}

.pm-panel { margin-top: 0; }
.pm-section { margin-top: 14px; }

.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.25;
}

.pm-table th,
.pm-table td {
  text-align: left;
  border-bottom: 1px solid #dce2ea;
  padding: 8px 10px;
  vertical-align: middle;
}

.pm-sort-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pm-sort-link.active { color: #1f2937; }
.pm-sort-link:hover { color: #111827; }

.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  border-radius: 0;
  font-size: 12px;
  line-height: 1;
  padding: 2px 8px;
  white-space: nowrap;
}

.pm-badge.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.pm-badge.no { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pm-badge.muted { background: #f8fafc; border-color: #d1d5db; color: #64748b; }

/* Explicit DB status aliases (A3 archive / shared usage) */
.pm-badge.db-yes,
.pm-badge.db_yes,
.pm-badge.decision-yes,
.pm-badge.pm-yes { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.pm-badge.db-no,
.pm-badge.db_no,
.pm-badge.decision-no,
.pm-badge.pm-no { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.pm-badge.db-s,
.pm-badge.db_s { background: #fffbeb; border-color: #fcd34d; color: #92400e; }

.pm-badge-btn { border: 0; cursor: pointer; font: inherit; }

.pm-mt-14 { margin-top: 14px; }
.pm-mt-0 { margin-top: 0; }
.pm-inline-form { display: inline-block; }

@media (max-width: 1320px) {
  .pm-layout,
  .pm-grid-top {
    grid-template-columns: 1fr;
  }
}

.pm-mt-10 { margin-top: 10px; }
.pm-page .pm-shell {
  max-width: var(--pm-shell-max, 1200px);
  margin: 0 auto;
  padding: var(--pm-space-shell-top) var(--pm-space-shell-x) var(--pm-space-shell-bottom);
}

.pm-page .pm-topbar {
  border-radius: 0;
  min-height: auto;
  padding: 14px 18px;
  gap: 12px;
}

.pm-page .pm-layout {
  grid-template-columns: var(--pm-left-col) 1fr;
  gap: var(--pm-gap-main);
}

.pm-page .pm-layout.pm-layout--left-two-thirds {
  grid-template-columns: calc(var(--pm-left-col) * 0.6667) 1fr;
}

.pm-page .pm-card {
  border-width: 1.5px;
  border-radius: 0;
  padding: var(--pm-space-card);
}

@media (max-width: 1320px) {
  .pm-page .pm-layout,
  .pm-page .pm-grid-top {
    grid-template-columns: 1fr;
  }
}
.pm-page .pm-logo {
  height: 42px;
  width: auto;
}

.pm-page .pm-title {
  font-size: var(--pm-fs-title-main);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.pm-page .pm-subtitle {
  margin-top: 2px;
  font-size: var(--pm-fs-title-sub);
  color: rgba(233, 236, 239, 0.9);
}

.pm-page .pm-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pm-page .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 0;
  border: 1px solid rgba(233, 236, 239, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.pm-page .lang-btn {
  border: 0;
  background: transparent;
  color: #e9ecef;
  border-radius: 0;
  padding: 3px 6px;
  line-height: 1;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pm-page .lang-btn.active,
.pm-page .lang-btn.key-btn {
  background: rgba(255, 255, 255, 0.2);
}

.pm-page .flag-flat,
.pm-page .key-flat {
  width: 16px;
  height: 11px;
  border-radius: 0;
}

.pm-page .pm-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: 30px;
  padding: 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(233,236,239,.94);
  cursor: pointer;
  margin: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  text-decoration: none;
}

.pm-page .pm-logout:link,
.pm-page .pm-logout:visited,
.pm-page .pm-logout:hover,
.pm-page .pm-logout:active {
  text-decoration: none;
}

.pm-page .pm-logout:hover,
.pm-page .pm-home:hover {
  color: #facc15;
}

.pm-page .pm-home {
  font-size: 23px;
  font-weight: 1000;
  -webkit-text-stroke: 0.75px currentColor;
  position: relative;
  top: -1px;
}

.pm-page .pm-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pm-page .pm-tab {
  appearance: none;
  border: 1px solid var(--pm-color-blue);
  background: var(--pm-color-blue);
  color: #e9ecef;
  font-size: var(--pm-fs-tab);
  font-weight: var(--pm-tab-weight);
  padding: var(--pm-tab-py) var(--pm-tab-px);
  border-radius: 0;
  line-height: 1;
}

.pm-page .pm-tab:hover,
.pm-page .pm-tab.active {
  color: var(--ipsc-active-header-text, #ffffff);
}

.pm-page .pm-tab.active,
.pm-page .pm-tab[aria-current="page"] {
  border-color: var(--ipsc-active-header-border, #00263a);
  background: var(--ipsc-active-header-bg, #00263a);
  color: var(--ipsc-active-header-text, #ffffff);
  box-shadow: var(--ipsc-active-header-shadow, inset 0 0 0 1px rgba(255,255,255,.08));
}

.pm-page .pm-left-title,
.pm-page .pm-right-title {
  color: var(--pm-color-heading-accent, #00263a);
  font-size: var(--pm-fs-section-title);
  line-height: 1.15;
}

.pm-page .pm-field-label { font-size: var(--pm-fs-label); line-height: 1.2; }

.pm-page .pm-input,
.pm-page .pm-select {
  font-size: var(--pm-fs-control);
  border-radius: 0;
  padding: 10px 12px;
}

.pm-page .pm-file {
  font-size: var(--pm-fs-control);
  border-radius: 0;
  padding: 8px 10px;
}

.pm-page .pm-btn {
  font-size: 14px;
  border-radius: 0;
  padding: 8px 14px;
}

.pm-page .pm-checkline label,
.pm-page .pm-note,
.pm-page .pm-source,
.pm-page .pm-empty,
.pm-page .pm-panel h3,
.pm-page .pm-section h3,
.pm-page .pm-kline,
.pm-page .pm-group-title,
.pm-page .pm-table {
  font-size: var(--pm-fs-body);
}

.pm-page .pm-subhead {
  font-size: 18px;
  line-height: 1.2;
}

.pm-page .pm-table th,
.pm-page .pm-table td {
  padding: 8px 10px;
}

.pm-page .pm-group-title.ipsc-lead-arrow::before {
  content: "▶  ";
  font-weight: 700;
  font-size: 12px;
}

.pm-page .pm-badge {
  font-size: 12px;
  border-radius: 0;
  padding: 2px 8px;
}

/* Archive-only tuning (right Result area) */
.pm-page .pm-archive-tab .pm-section > .pm-grid-top .pm-panel:first-child h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.pm-page .pm-archive-tab .pm-section > .pm-grid-top .pm-panel:first-child .pm-field-label {
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.pm-page .pm-archive-tab .pm-section > .pm-grid-top .pm-panel:first-child .pm-select {
  font-size: 13px;
  padding: 8px 10px;
  margin: 0 0 8px;
  border-radius: 0;
}

.pm-page .pm-archive-tab .pm-section > .pm-grid-top .pm-panel:first-child .pm-btn {
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
  padding: 6px 12px;
}

.pm-page .pm-archive-tab .pm-section .pm-table {
  font-size: 13px;
}

.pm-page .pm-archive-tab .pm-section .pm-table th {
  font-size: 12px;
  font-weight: 800;
}

.pm-page .pm-archive-tab .pm-section .pm-table td {
  font-size: 13px;
}

.pm-page .pm-archive-tab .pm-section .pm-sort-link {
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.pm-page .pm-archive-tab .pm-section .pm-badge {
  font-size: 12px;
  padding: 2px 8px;
}

.pm-page .pm-archive-tab .pm-section .pm-btn {
  font-size: 12px;
  font-weight: 700;
  border-radius: 0;
  padding: 5px 10px;
}

/* Input stack normalization (fixes inline drift) */
.pm-page .pm-field-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: #374151;
}

.pm-page .pm-input,
.pm-page .pm-select,
.pm-page .pm-file {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}

.pm-page .pm-file {
  max-width: 100%;
}

.pm-page .pm-card > form .pm-btn {
  display: inline-block;
}

.pm-page .pm-file-title {
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.pm-page .pm-file-meta {
  margin-top: 4px;
}

.pm-page .pm-file-subname {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.25;
  word-break: break-word;
}

.pm-page .pm-chip,
.pm-page .pm-autosave-badge,
.pm-page .autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  white-space: nowrap;
}

.pm-page .pm-chip.processed,
.pm-page .pm-chip.ok,
.pm-page .pm-autosave-badge,
.pm-page .autosave-badge {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.pm-page .pm-chip.no {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.pm-page .pm-chip.muted {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
}

/* Remove link underlines in header/tabs */
.pm-page .pm-tab,
.pm-page .pm-tab:link,
.pm-page .pm-tab:visited,
.pm-page .pm-tab:hover,
.pm-page .pm-tab:active,
.pm-page .lang-btn,
.pm-page .lang-btn:link,
.pm-page .lang-btn:visited,
.pm-page .lang-btn:hover,
.pm-page .lang-btn:active,
.pm-page .pm-logout,
.pm-page .pm-logout:link,
.pm-page .pm-logout:visited,
.pm-page .pm-logout:hover,
.pm-page .pm-logout:active {
  text-decoration: none;
}


.pm-page .pm-alert-values {
  font-size: 12px;
  line-height: 1.25;
  color: #374151;
}

.pm-page .pm-alert-values > div {
  white-space: nowrap;
}

.pm-page .pm-alert-detail {
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #f8fafc;
  padding: 6px 8px;
}

.pm-page .pm-alert-detail > summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
}

.pm-page .pm-alert-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.pm-page .pm-alert-division-block {
  margin-top: 8px;
}

@media (min-width: 1100px) {
  .pm-page .pm-alert-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.pm-page .pm-chip.pm-chip-highlight {
  border-color: #facc15;
  background: #fef08a;
  color: #1f2937;
  font-weight: 700;
}

.pm-page .pm-row-highlight {
  background: rgba(250, 204, 21, 0.18);
}

.pm-page .pm-alert-division-focus {
  border: 1px solid #facc15;
  border-radius: 0;
  padding: 6px;
  background: rgba(254, 240, 138, 0.12);
}

.pm-page .pm-chip.db-s,
.pm-page .pm-chip.db_s {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

/* Shared optional helpers (A4-derived v1) */
.pm-page .ipsc-form-compact {
  display: grid;
  gap: 12px;
}

.pm-page .ipsc-form-compact .ipsc-field-tight {
  display: grid;
  gap: 2px;
}

.pm-page .ipsc-form-compact .ipsc-field-tight .pm-field-label {
  margin-bottom: 0;
  line-height: 1.15;
}

.pm-page .ipsc-form-compact .pm-input,
.pm-page .ipsc-form-compact .pm-select {
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(15,23,42,.05);
  padding: 4px 10px;
  min-height: 30px;
}

.pm-page .ipsc-form-compact .pm-input[readonly] {
  background: #f8fafc;
  color: #111827;
}

.pm-page .ipsc-form-compact .pm-input:focus,
.pm-page .ipsc-form-compact .pm-select:focus {
  outline: none;
  border: 1.5px solid #00263a;
  box-shadow: none;
}

.pm-page .ipsc-form-compact .pm-input::placeholder {
  color: #94a3b8;
}

.pm-page .ipsc-form-compact .pm-file {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
  padding: 4px 8px;
}

.pm-page .ipsc-path-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-page .ipsc-actions-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
  flex-wrap: wrap;
}

.pm-page .ipsc-btn-filterlike,
.pm-page .ipsc-actions-inline .pm-btn.ipsc-btn-filterlike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none;
  text-decoration: none;
}

.pm-page .ipsc-btn-filterlike:hover {
  color: #0a2f57;
  border-color: #0a2f57;
  background: #c3d8f4;
}
  color: #facc15;
  border-color: #00417a;
  background: #00417a;
}

.pm-page .ipsc-btn-icon {
  display: inline-block;
  opacity: .86;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-.25px);
}

.pm-page .ipsc-btn-icon-eye {
  font-size: 12px;
}

.pm-page .ipsc-tabs-regular .pm-tab {
  font-weight: 400;
}

.pm-page .ipsc-grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 14px;
}

.pm-page .ipsc-stack-gap-5 > * + * {
  margin-top: 5px;
}

.pm-page .ipsc-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.pm-page .ipsc-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.pm-page .ipsc-metric-chip .k {
  color: #64748b;
  font-size: 12px;
}

.pm-page .ipsc-metric-chip .v {
  font-weight: 700;
  font-size: 12px;
}

.pm-page .ipsc-metric-chip.warn {
  border-color: #fecaca;
  background: #fff1f1;
  color: #991b1b;
}

.pm-page .ipsc-metric-chip.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.pm-page .ipsc-metric-chip.mid {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.pm-page .ipsc-metric-chip.neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

@media (max-width: 980px) {
  .pm-page .ipsc-grid-2-1 {
    grid-template-columns: 1fr;
  }
}


/* Central utility set: compact tabs + square chips + alert file input */
.pm-page .ipsc-tab-compact {
  appearance: none;
  display: inline-block;
  border: 1px solid var(--pm-blue);
  background: var(--pm-blue);
  color: #e9ecef;
  border-radius: 0;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms ease, filter 140ms ease, transform 140ms ease;
}

.pm-page .ipsc-tab-compact:hover {
  color: #facc15;
  filter: brightness(1.03);
  text-decoration: none;
}

.pm-page .ipsc-tab-compact:active {
  transform: translateY(.5px);
}

.pm-page .ipsc-tab-compact.is-active,
.pm-page .ipsc-tab-compact[aria-current="page"] {
  border-color: var(--ipsc-active-header-border, #00263a);
  background: var(--ipsc-active-header-bg, #00263a);
  color: var(--ipsc-active-header-text, #ffffff);
  box-shadow: var(--ipsc-active-header-shadow, inset 0 0 0 1px rgba(255,255,255,.08));
}

.ipsc-btn-header-active,
.pm-page .ipsc-btn-header-active {
  border-color: var(--ipsc-active-header-border, #00263a) !important;
  background: var(--ipsc-active-header-bg, #00263a) !important;
  color: var(--ipsc-active-header-text, #ffffff) !important;
  box-shadow: var(--ipsc-active-header-shadow, inset 0 0 0 1px rgba(255,255,255,.08)) !important;
}

.ipsc-btn-header-active:hover,
.ipsc-btn-header-active:focus-visible,
.pm-page .ipsc-btn-header-active:hover,
.pm-page .ipsc-btn-header-active:focus-visible {
  border-color: var(--ipsc-active-header-border, #00263a) !important;
  background: var(--ipsc-active-header-bg, #00263a) !important;
  color: var(--ipsc-active-header-text, #ffffff) !important;
  box-shadow: var(--ipsc-active-header-shadow, inset 0 0 0 1px rgba(255,255,255,.08)) !important;
}

.pm-page .ipsc-chip-radius-3 {
  border-radius: 0;
}

.pm-page .ipsc-file-input-alert {
  border: 1px solid #ef4444 !important;
  border-radius: 0;
}

/* Central neutral/inactive button style + compact control height */
.ipsc-btn-neutral-inactive,
.pm-page .ipsc-btn-neutral-inactive {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.8px solid #134278;
  background: #eceff3;
  color: #1f2937;
  border-radius: 0;
  text-decoration: none;
}

.ipsc-btn-neutral-inactive:hover,
.pm-page .ipsc-btn-neutral-inactive:hover {
  background: #e4e9ef;
  color: #1f2937;
  text-decoration: none;
}

.ipsc-h-30,
.pm-page .ipsc-h-30 {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}
