/* Produktiv: Formular-Styles aus Schritt 39, ohne das bestehende Portal-Layout zu überschreiben. */
#personalView { font-family: Arial, Helvetica, sans-serif; color: #444; font-size: 14px; }
#personalView [hidden] { display: none !important; }
#personalView h2 { color: #f00000; font-size: 20px; line-height: 1.2; font-weight: 400; margin: 30px 0 20px; }
#personalView p { line-height: 1.5; margin: 0 0 8px; }
#personalView a { color: #f00000; text-decoration: none; }
.message { padding: 12px; border: 1px solid #dcdcdc; background: #fafafa; margin-bottom: 15px; }
.message.error { border-color: #e60000; background: #fff4f4; color: #a00000; }

.steps {
    width: 500px;
    height: 70px;
    margin: 0 0 22px 46px;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
.step {
    position: relative;
    width: 145px;
    height: 52px;
    display: flex;
    align-items: center;
}
.step::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 25px;
    width: 98px;
    height: 2px;
    background: #f00000;
}
.step:last-child { width: 52px; }
.step:last-child::after { display: none; }
.step > span:first-child {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border: 2px solid #f00000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    font-size: 17px;
    font-weight: 700;
}
.step.active > span:first-child { color: #f00000; }
.step.done > span:first-child { color: #f00000; }
.step-arrow {
    position: absolute;
    z-index: 3;
    left: 28px;
    top: 14px;
    color: #f00000;
    font-size: 24px;
    font-weight: 400;
}
.step.done .step-arrow { display: none; }

.workflow-step { margin-top: 0; }
.step-intro { margin-bottom: 12px; }
.pharmacy-grid {
    display: grid;
    grid-template-columns: 281px 281px;
    gap: 14px 14px;
    margin-bottom: 38px;
}
.pharmacy-card {
    position: relative;
    width: 281px;
    min-height: 94px;
    border: 1px solid #cfd4d8;
    background: #f4f5f6;
    padding: 16px 15px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: #050505;
    cursor: pointer;
}
.pharmacy-card:hover { border-color: #f00000; }
.pharmacy-card.selected { border: 1px solid #f00000; background: #ffd0d0; padding: 16px 15px; color: #f00000; }
.card-check {
    display: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #f00000;
    font-size: 22px;
    font-weight: 700;
}
.pharmacy-card.selected .card-check { display: block; }

.selected-pharmacy-fields {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 21px;
    max-width: 569px;
}
.form-grid label { display: block; }
.form-grid label > span { display: block; margin-bottom: 6px; }
.form-span-2 { grid-column: 1 / -1; }
.form-grid input {
    width: 100%;
    height: 32px;
    border: 1px solid #cfd4d8;
    background: #f7f8f9;
    padding: 6px 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.form-grid input:focus { outline: 1px solid #777; }
.form-grid input.input-error { border-color: #f00000; }
.field-error { display: block; min-height: 17px; color: #f00000; margin-top: 3px; font-size: 12px; }

.workflow-actions { margin-top: 37px; }
.next-button {
    min-width: 96px;
    min-height: 33px;
    border: 1px solid #f00000;
    border-radius: 0;
    background: #f00000;
    color: #fff;
    padding: 6px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.next-button:hover:not(:disabled) { background: #d80000; border-color: #d80000; }
.next-button:disabled { opacity: .45; cursor: default; }
.button-arrow { font-size: 20px; line-height: 1; }



.json-output {
    width: 100%;
    min-height: 420px;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #b7b7b7;
    background: #fafafa;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
    resize: vertical;
}


.employee-list { margin-top: 16px; }
.employee-card {
    border-bottom: 1px solid #dedede;
    padding: 18px 0 22px;
}
.employee-card:first-child { border-top: 1px solid #dedede; }
.employee-number {
    margin-bottom: 12px;
    font-weight: 700;
    color: #444;
}
.employee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.employee-grid label > span { display: block; margin-bottom: 5px; }
.employee-grid input {
    width: 100%;
    height: 32px;
    border: 1px solid #cfd4d8;
    background: #f7f8f9;
    padding: 6px 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.employee-grid input[readonly] { background: #f5f6f7; color: #555; }
.employee-add-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.workflow-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
    .employee-grid { grid-template-columns: 1fr; }
}

/* Schritt 3: Statistik */
.statistics-reported {
    margin: 16px 0 26px;
    padding: 18px 0;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}
.statistics-list { margin-top: 8px; }
.statistics-card {
    border-bottom: 1px solid #dedede;
    padding: 16px 0 22px;
}
.statistics-card:first-child { border-top: 1px solid #dedede; }
.statistics-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 400;
    color: #444;
}
.statistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.statistics-grid label > span { display: block; margin-bottom: 5px; }
.statistics-grid input {
    width: 100%;
    height: 32px;
    border: 1px solid #cfd4d8;
    background: #f7f8f9;
    padding: 6px 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.statistics-names { grid-column: 1 / -1; }
@media (max-width: 820px) {
    .statistics-grid { grid-template-columns: 1fr; }
    .statistics-names { grid-column: auto; }
}


/* Schritt 4: Eingaben prüfen */
.review-content { margin-top: 8px; }
.review-section {
    border-bottom: 1px solid #dedede;
    padding: 0 0 22px;
    margin: 0 0 24px;
}
.review-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 400;
    color: #444;
}
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}
.review-grid > div { line-height: 1.45; }
.review-grid span { display: block; color: #666; font-size: 12px; margin-bottom: 2px; }
.review-grid strong, .review-grid b { color: #222; }
.review-wide { grid-column: 1 / -1; }
.review-employee { padding: 14px 0; border-top: 1px solid #ededed; }
.review-employee:first-of-type { border-top: 0; padding-top: 0; }
.review-grid.compact { margin-top: 9px; }
.review-stat-row {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, .55fr) 1.5fr;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #ededed;
    align-items: start;
}
.review-stat-row span { font-size: 12px; }
.review-note { margin-top: 12px; color: #777; font-size: 12px; }
@media (max-width: 820px) {
    .review-grid { grid-template-columns: 1fr; }
    .review-wide { grid-column: auto; }
    .review-stat-row { grid-template-columns: 1fr 1fr; }
    .review-stat-row strong { grid-column: 1 / -1; }
}

/* Overlay: Approbierte Mitarbeiter*in hinzufügen */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 70px 18px 40px;
}
.modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 36px));
    background: #fff;
    padding: 18px 18px 20px;
    box-shadow: 0 3px 16px rgba(0,0,0,.28);
    color: #444;
}
.modal-title {
    margin: 0 35px 22px 0;
    color: #f00000;
    font-size: 20px;
    font-weight: 600;
}
.modal-close {
    position: absolute;
    right: 10px;
    top: 7px;
    border: 0;
    background: transparent;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
.modal-choice-block { margin: 0 0 14px; }
.modal-choice-block strong { display: block; margin-bottom: 5px; }
.modal-choice-block label { display: block; margin: 3px 0; font-size: 13px; }
.modal-choice-block input[type="radio"] { margin: 0 7px 0 0; vertical-align: -1px; }
.modal-section {
    border-top: 2px solid #f00000;
    padding-top: 11px;
    margin-top: 18px;
}
.modal-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #444; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.modal-grid label > span { display: block; margin-bottom: 5px; font-size: 12px; }
.modal-grid input, .modal-grid select {
    width: 100%;
    height: 34px;
    border: 1px solid #cfd4d8;
    padding: 6px 8px;
    background: #fff;
    font: inherit;
}
.modal-grid input:focus, .modal-grid select:focus { outline: 1px solid #777; }
.modal-grid .input-error { border-color: #f00000; }
.modal-actions { margin-top: 14px; }
.red-action-button {
    border: 0;
    background: #f00000;
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
}
body.modal-open { overflow: hidden; }
@media (max-width: 700px) {
    .modal-backdrop { padding-top: 24px; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-grid > div:empty { display: none; }
}


/* PhiP-Overlay: im Original beginnt der erste Abschnitt ohne rote Trennlinie. */
.phip-first-section {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}


/* Schritt 18: Änderungen bestehender Beschäftigungen */
.employee-grid select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfc5ca;
    border-radius: 3px;
    padding: 9px 10px;
    background: #fff;
    font: inherit;
}
.employee-changed {
    border-left: 4px solid #b40018;
    padding-left: 14px;
}
.employee-change-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f2e5e7;
    font-size: 12px;
    font-weight: 600;
}
.employee-change-note {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

/* Schritt 22: manuelle Datumseingabe + Kalenderauswahl */
.date-input-wrap { position: relative; display: block; width: 100%; }
.date-input-wrap > .date-manual { width: 100%; box-sizing: border-box; padding-right: 44px; }
.date-picker-button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; background: transparent;
    cursor: pointer; font-size: 18px; line-height: 1; border-radius: 6px;
}
.date-picker-button:hover, .date-picker-button:focus-visible { background: rgba(0,0,0,.06); outline: none; }
.date-picker-native {
    position: absolute; right: 8px; top: 50%; width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}

.approved-type-choice { padding: 10px 12px; border: 1px solid #e1e1e1; background: #fafafa; }

/* Schritt 30: Styling Schritt 2 nach Originalansicht */
#step2Placeholder {
    max-width: 520px;
}
#step2Placeholder > h2 {
    margin: 0 0 24px;
    color: #f00000;
    font-size: 16px;
    font-weight: 400;
}
#step2Placeholder .step-intro {
    display: none;
}
#step2Placeholder .employee-list {
    margin-top: 0;
    width: 100%;
}
#step2Placeholder .employee-card,
#step2Placeholder .employee-card:first-child {
    position: relative;
    border: 0;
    border-bottom: 1px solid #f00000;
    margin: 0 0 18px;
    padding: 0 0 18px;
}
#step2Placeholder .employee-card:first-child {
    border-top: 0;
}
#step2Placeholder .employee-number {
    display: none;
}
#step2Placeholder .employee-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 11px 14px;
}
#step2Placeholder .employee-grid label {
    min-width: 0;
}
#step2Placeholder .employee-grid label > span {
    margin-bottom: 5px;
    color: #444;
    font-size: 12px;
    line-height: 1.15;
}
#step2Placeholder .employee-grid input,
#step2Placeholder .employee-grid select {
    width: 100%;
    height: 31px;
    box-sizing: border-box;
    border: 1px solid #cfd4d8;
    border-radius: 0;
    background: #f7f8f9;
    padding: 5px 7px;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}
#step2Placeholder .employee-grid select {
    padding-right: 26px;
}
#step2Placeholder .employee-grid input:focus,
#step2Placeholder .employee-grid select:focus {
    outline: 1px solid #777;
    outline-offset: 0;
}
#step2Placeholder .date-input-wrap > .date-manual {
    padding-left: 30px;
    padding-right: 26px;
}
#step2Placeholder .date-picker-button {
    left: 6px;
    right: auto;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 13px;
    color: #777;
}
#step2Placeholder .date-input-wrap::after {
    content: '×';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}
#step2Placeholder .employee-add-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}
#step2Placeholder .employee-add-actions .next-button {
    min-width: 0;
    min-height: 30px;
    padding: 6px 12px;
    font-size: 12px;
}
#step2Placeholder .workflow-actions {
    margin-top: 14px;
    gap: 10px;
}
#step2Placeholder .workflow-actions .next-button {
    min-width: 88px;
    min-height: 31px;
    padding: 6px 11px;
    font-size: 12px;
}
#step2Placeholder .workflow-actions .button-arrow {
    font-size: 16px;
}
#step2Placeholder .employee-changed {
    border-left: 0;
    padding-left: 0;
}
#step2Placeholder .employee-change-badge {
    display: none;
}

@media (max-width: 620px) {
    #step2Placeholder { max-width: none; }
    #step2Placeholder .employee-grid { grid-template-columns: 1fr; }
}

/* Schritt 31: Modal "Approbierte Mitarbeiter*in hinzufügen" nach Originalansicht */
#approvedModal.modal-backdrop {
    padding: 4px 0 24px;
    background: rgba(0,0,0,.14);
    align-items: flex-start;
}
#approvedModal .modal-dialog {
    width: min(530px, calc(100vw - 12px));
    padding: 8px 12px 10px;
    border: 1px solid #cfcfcf;
    box-shadow: none;
    color: #444;
}
#approvedModal .modal-title {
    margin: 0 28px 28px 0;
    color: #f00000;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}
#approvedModal .modal-close {
    right: 8px;
    top: 1px;
    padding: 0;
    font-size: 18px;
    line-height: 18px;
    color: #444;
}
#approvedModal .modal-choice-block {
    margin: 0 0 13px;
}
#approvedModal .modal-choice-block strong {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 700;
}
#approvedModal .modal-choice-block label {
    margin: 2px 0;
    font-size: 10px;
    line-height: 1.25;
}
#approvedModal .modal-choice-block input[type="radio"] {
    width: 11px;
    height: 11px;
    margin: 0 8px 0 0;
    vertical-align: -1px;
}
#approvedModal .approved-type-choice {
    padding: 0;
    border: 0;
    background: transparent;
}
#approvedModal .modal-section {
    border-top: 1px solid #f00000;
    padding-top: 10px;
    margin-top: 16px;
}
#approvedModal .modal-section h3 {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #444;
}
#approvedModal .modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
}
#approvedModal .modal-grid label > span {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.2;
}
#approvedModal .modal-grid input,
#approvedModal .modal-grid select {
    height: 23px;
    min-height: 23px;
    padding: 2px 5px;
    border: 1px solid #c7ccd1;
    border-radius: 0;
    background: #f7f8f9;
    font-size: 10px;
    line-height: 17px;
    box-sizing: border-box;
}
#approvedModal .modal-grid select {
    padding-right: 22px;
}
#approvedModal .date-input-wrap > .date-manual {
    padding-left: 25px;
    padding-right: 5px;
}
#approvedModal .date-picker-button {
    left: 4px;
    right: auto;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 0;
    font-size: 0;
}
#approvedModal .date-picker-button::before {
    content: "▣";
    display: block;
    color: #8f969b;
    font-size: 11px;
    line-height: 18px;
}
#approvedModal .date-picker-button > span {
    display: none;
}
#approvedModal .modal-actions {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #f00000;
}
#approvedModal .red-action-button {
    min-width: 74px;
    height: 24px;
    padding: 3px 12px;
    border: 0;
    border-radius: 0;
    background: #f00000;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
}
@media (max-width: 560px) {
    #approvedModal .modal-grid { grid-template-columns: 1fr; }
    #approvedModal .modal-dialog { width: calc(100vw - 8px); }
}

/* Schritt 32: Modal "Pharmazeut*in im Praktikum hinzufügen" nach Originalansicht */
#phipModal.modal-backdrop {
    padding: 3px 0 24px;
    background: rgba(0,0,0,.12);
    align-items: flex-start;
}
#phipModal .modal-dialog {
    width: min(542px, calc(100vw - 10px));
    padding: 9px 11px 9px;
    border: 1px solid #cfcfcf;
    box-shadow: none;
    color: #444;
}
#phipModal .modal-title {
    margin: 0 28px 21px 0;
    color: #f00000;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}
#phipModal .modal-close {
    right: 8px;
    top: 1px;
    padding: 0;
    font-size: 18px;
    line-height: 18px;
    color: #444;
}
#phipModal .modal-section {
    border-top: 1px solid #f00000;
    padding-top: 10px;
    margin-top: 16px;
}
#phipModal .phip-first-section {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}
#phipModal .modal-section h3 {
    margin: 0 0 13px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #444;
}
#phipModal .modal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 11px;
}
#phipModal .modal-grid label > span {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.15;
}
#phipModal .modal-grid input,
#phipModal .modal-grid select {
    height: 23px;
    min-height: 23px;
    padding: 2px 5px;
    border: 1px solid #c7ccd1;
    border-radius: 0;
    background: #f7f8f9;
    font-size: 10px;
    line-height: 17px;
    box-sizing: border-box;
}
#phipModal .modal-grid select {
    padding-right: 22px;
}
#phipModal .date-input-wrap > .date-manual {
    padding-left: 25px;
    padding-right: 5px;
}
#phipModal .date-picker-button {
    left: 4px;
    right: auto;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 0;
    font-size: 0;
}
#phipModal .date-picker-button::before {
    content: "▣";
    display: block;
    color: #8f969b;
    font-size: 11px;
    line-height: 18px;
}
#phipModal .date-picker-button > span {
    display: none;
}
#phipModal .modal-actions {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #f00000;
}
#phipModal .red-action-button {
    min-width: 74px;
    height: 24px;
    padding: 3px 12px;
    border: 0;
    border-radius: 0;
    background: #f00000;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
}
@media (max-width: 560px) {
    #phipModal .modal-grid { grid-template-columns: 1fr; }
    #phipModal .modal-dialog { width: calc(100vw - 8px); }
}

/* Schritt 33: Einheitliche Typografie fuer alle roten Aktionsbuttons */
.next-button,
#step2Placeholder .employee-add-actions .next-button,
#step2Placeholder .workflow-actions .next-button,
.red-action-button,
#approvedModal .red-action-button,
#phipModal .red-action-button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.next-button .button-arrow,
#step2Placeholder .workflow-actions .button-arrow {
    font-size: 16px;
    font-weight: 700;
}

/* Direkter Personalmeldungsweg (rollenabhaengig) */
.direct-employment-form { max-width: 640px; }
.direct-section { border-bottom: 1px solid #f00; padding-bottom: 18px; margin-bottom: 18px; }
.direct-section h3 { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #444; }
.direct-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.direct-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.direct-form-grid input,
.direct-form-grid select { width: 100%; min-height: 29px; padding: 4px 8px; border: 1px solid #c9d0d8; background: #f7f8fa; font: inherit; color: #111; box-sizing: border-box; }
.direct-submit-row { display: flex; align-items: center; gap: 12px; padding: 0 0 18px; border-bottom: 1px solid #f00; }
.direct-success { max-width: 640px; }
@media (max-width: 680px) { .direct-form-grid { grid-template-columns: 1fr; } .direct-form-grid > div { display:none; } }

/* Produktiv v4: Modale bleiben an der aktuellen Scrollposition sichtbar und nutzen die normale Portal-Typografie. */
body.modal-open {
    overflow: auto !important;
}

#approvedModal.modal-backdrop,
#phipModal.modal-backdrop {
    position: fixed;
    inset: 0;
    padding: 24px 12px 32px;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#approvedModal .modal-dialog,
#phipModal .modal-dialog {
    width: min(680px, calc(100vw - 24px));
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

#approvedModal .modal-title,
#phipModal .modal-title {
    margin: 0 34px 24px 0;
    font-size: 20px;
    line-height: 1.3;
}

#approvedModal .modal-close,
#phipModal .modal-close {
    right: 12px;
    top: 8px;
    font-size: 26px;
    line-height: 26px;
}

#approvedModal .modal-choice-block strong,
#phipModal .modal-choice-block strong,
#approvedModal .modal-section h3,
#phipModal .modal-section h3 {
    font-size: 14px;
    line-height: 1.35;
}

#approvedModal .modal-choice-block label,
#phipModal .modal-choice-block label,
#approvedModal .modal-grid label > span,
#phipModal .modal-grid label > span {
    font-size: 13px;
    line-height: 1.35;
}

#approvedModal .modal-choice-block input[type="radio"],
#phipModal .modal-choice-block input[type="radio"] {
    width: 14px;
    height: 14px;
}

#approvedModal .modal-grid,
#phipModal .modal-grid {
    gap: 13px 16px;
}

#approvedModal .modal-grid input,
#approvedModal .modal-grid select,
#phipModal .modal-grid input,
#phipModal .modal-grid select {
    height: 34px;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 20px;
}

#approvedModal .date-input-wrap > .date-manual,
#phipModal .date-input-wrap > .date-manual {
    padding-left: 34px;
}

#approvedModal .date-picker-button,
#phipModal .date-picker-button {
    left: 7px;
    width: 22px;
    height: 22px;
}

#approvedModal .date-picker-button::before,
#phipModal .date-picker-button::before {
    font-size: 13px;
    line-height: 22px;
}

#approvedModal .red-action-button,
#phipModal .red-action-button {
    min-width: 92px;
    height: 34px;
    padding: 7px 16px;
    font-size: 13px;
    line-height: 20px;
}

@media (max-width: 700px) {
    #approvedModal .modal-dialog,
    #phipModal .modal-dialog {
        width: calc(100vw - 16px);
    }
}


/* Produktiv v5: Modal im sichtbaren Bereich des grossen eingebetteten iframes oeffnen. */
#approvedModal.modal-backdrop,
#phipModal.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    min-height: 100%;
    overflow: visible;
}

#approvedModal .modal-dialog,
#phipModal .modal-dialog {
    margin-top: var(--modal-open-y, 24px);
    flex: 0 0 auto;
}
\n\n/* v7: Overlays an der aktuell sichtbaren Klickposition im eingebetteten Portal.\n   Das aeussere Hostfenster ist cross-origin und kann deshalb nicht direkt gescrollt werden. */\n#approvedModal.modal-backdrop,\n#phipModal.modal-backdrop {\n    position: absolute !important;\n    top: 0 !important;\n    right: 0 !important;\n    bottom: auto !important;\n    left: 0 !important;\n    min-height: 100%;\n    display: block;\n    padding: 0 !important;\n    overflow: visible;\n}\n#approvedModal .modal-dialog,\n#phipModal .modal-dialog {\n    margin: var(--modal-open-y, 24px) auto 40px !important;\n}\n\n/* v7: lesbare Typografie in beiden Dialogen */\n#approvedModal .modal-title,\n#phipModal .modal-title { font-size: 20px !important; }\n#approvedModal .modal-choice-block strong,\n#approvedModal .modal-choice-block label,\n#approvedModal .modal-section h3,\n#approvedModal .modal-grid label > span,\n#phipModal .modal-section h3,\n#phipModal .modal-grid label > span { font-size: 13px !important; }\n#approvedModal .modal-grid input,\n#approvedModal .modal-grid select,\n#phipModal .modal-grid input,\n#phipModal .modal-grid select {\n    min-height: 32px !important;\n    height: 32px !important;\n    font-size: 13px !important;\n    line-height: 20px !important;\n}\n#approvedModal .red-action-button,\n#phipModal .red-action-button {\n    min-height: 32px !important;\n    height: auto !important;\n    font-size: 13px !important;\n    line-height: 20px !important;\n}\n
/* Produktiv v14: Personalmeldungen - Schriftgroessen an den Personalmeldebogen angleichen */
.direct-employment-form,
.direct-success {
    font-size: 14px;
    line-height: 1.4;
}

.direct-section h3 {
    font-size: 16px;
}

.direct-form-grid label {
    font-size: 14px;
    gap: 6px;
}

.direct-form-grid input,
.direct-form-grid select {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 14px;
    line-height: 20px;
}

.direct-submit-row .red-action-button,
.direct-employment-form .red-action-button {
    min-height: 34px;
    font-size: 14px;
    line-height: 20px;
}
