/* Verbindung zwischen bestehenden HR-Fachkomponenten und Bootstrap. */
body.hr-bootstrap { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hr-bootstrap .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.hr-bootstrap .btn-primary { --bs-btn-bg: #e97919; --bs-btn-border-color: #e97919; --bs-btn-hover-bg: #cf6811; --bs-btn-hover-border-color: #cf6811; --bs-btn-active-bg: #b95b0c; --bs-btn-active-border-color: #b95b0c; }
.hr-bootstrap .btn-outline-secondary { --bs-btn-color: #172642; --bs-btn-border-color: #cad6e3; --bs-btn-hover-bg: #edf2f7; --bs-btn-hover-color: #12264a; --bs-btn-hover-border-color: #aebdce; }
.hr-bootstrap .card { --bs-card-border-color: #dce4ee; --bs-card-border-radius: 1rem; }
.hr-bootstrap .form-control,.hr-bootstrap .form-select { border-color: #cad6e3; min-height: 42px; }
.hr-bootstrap .form-control:focus,.hr-bootstrap .form-select:focus { border-color: #e97919; box-shadow: 0 0 0 .2rem rgba(233,121,25,.16); }
.hr-bootstrap textarea.form-control { min-height: 110px; }
.hr-bootstrap .table { --bs-table-bg: transparent; --bs-table-hover-bg: #f7f9fc; margin-bottom: 0; }
.hr-bootstrap .table > :not(caption) > * > * { padding: .8rem .7rem; border-bottom-color: #dce4ee; }
.hr-bootstrap .alert { border-radius: .75rem; }
.hr-bootstrap .nav-icon { width: 1.25rem; text-align: center; flex: 0 0 1.25rem; }
.hr-bootstrap .nav-icon i { font-size: .95rem; }
.hr-bootstrap .button i,.hr-bootstrap .link-button i { pointer-events: none; }
.hr-bootstrap .badge.status-pill { font-size: .7rem; padding: .45rem .6rem; }
.hr-bootstrap .test-badge { background: #fff1de !important; color: #9a4e08 !important; border: 1px solid #f3c996; }
.hr-bootstrap .document-alert { --bs-alert-padding-x: 1.25rem; --bs-alert-padding-y: 1rem; }
.hr-bootstrap .input-group .form-control { min-width: 0; }
@media (max-width: 850px) { .hr-bootstrap .topbar { padding-inline: 1rem; } }

/* Kompakte Anmeldung ohne Werbe- und Technikertexte. */
.login-page .login-shell {
    display: block;
    width: min(460px, 100%);
}
.login-page .login-card {
    padding: 48px;
}
.login-page .login-logo {
    margin-bottom: 32px;
}
.login-page .login-logo img {
    width: auto;
    height: 48px;
    max-width: 190px;
    object-fit: contain;
}
.login-page .login-card h1 {
    margin: 0;
    font-size: 28px;
}
.login-page .trust-option {
    align-items: center;
}
.login-page .trust-option > span {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 560px) {
    .login-page .login-card { padding: 28px; }
}

/* Hauptnavigation nach dem Muster der Warenwirtschaft, ohne Klappmenüs. */
.hr-bootstrap .sidebar nav { padding: 14px 9px 24px; }
.hr-bootstrap .sidebar .brand { padding: 0 16px; }
.hr-bootstrap .sidebar .brand img {
    width: 194px;
    height: 48px;
    max-width: calc(100% - 46px);
    padding: 6px 10px;
    object-fit: contain;
    object-position: left center;
    background: #fff;
    border-radius: 11px;
}
.hr-bootstrap .sidebar > nav > .nav-link { margin-bottom: 8px; }
.hr-bootstrap .hr-nav-section { margin: 8px 0 14px; }
.hr-bootstrap .hr-nav-heading {
    margin: 0 0 4px;
    padding: 9px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.hr-bootstrap .hr-nav-items {
    margin-left: 16px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,.14);
}
.hr-bootstrap .hr-nav-items .nav-link { padding: 9px 10px; font-size: 14px; }
.hr-bootstrap .nav-link .nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 6px;
}
.hr-bootstrap .nav-link.active .nav-icon { border-color: #e97919; color: #e97919; }

/* Dokumente und Unterweisungen: getrennte, schnell erfassbare Arbeitsbereiche. */
.document-workspace { max-width: 1500px; }
.document-page-head { align-items: center; }
.document-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
    padding: 6px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 13px;
}
.document-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 9px;
    color: #52647d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.document-tabs a:hover { background: #f1f5f9; color: #12264a; }
.document-tabs a.active { background: #12264a; color: #fff; }
.document-tabs b { min-width: 20px; padding: 2px 6px; background: #e97919; color: #fff; border-radius: 99px; text-align: center; }
.document-action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.document-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: #172642;
    text-decoration: none;
    transition: transform .15s ease,border-color .15s ease;
}
.document-action:hover { transform: translateY(-2px); border-color: #e97919; }
.document-action > i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 11px; background: #eef3f8; color: #1b3563; }
.document-action span,.document-action strong,.document-action small { display: block; }
.document-action small { margin-top: 4px; color: #718098; line-height: 1.35; }
.document-section { margin-bottom: 20px; padding: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title p { margin: 5px 0 0; color: #718098; font-size: 14px; }
.document-compact-list { display: grid; gap: 8px; }
.document-compact-list a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #dce4ee; border-radius: 10px; color: #172642; text-decoration: none; }
.document-compact-list strong,.document-compact-list small { display: block; }
.document-compact-list small { margin-top: 3px; color: #718098; }
.empty-state { padding: 42px 20px; color: #718098; text-align: center; }
.empty-state > i { font-size: 32px; }
.empty-state h3 { color: #172642; }
.document-workspace .document-item { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.document-workspace .document-item > div:first-child { flex: 1; min-width: 260px; }
.document-version-main { min-width: 260px; flex: 1; }
.document-version-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.document-withdraw { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 14px; border-top: 1px solid #e4eaf1; }
.document-withdraw label span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.document-create-card { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 20px; color: #172642; text-decoration: none; }
.document-create-card > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #fff0e2; color: #d6610a; font-size: 20px; }
.document-create-card span { flex: 1; }
.document-create-card strong,.document-create-card small { display: block; }
.document-create-card small { margin-top: 4px; color: #718098; }
.document-create-grid { align-items: start; }
.company-source-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
}
.company-source-card img { width: 84px; height: 54px; object-fit: contain; flex: 0 0 84px; }
.company-source-card > div { flex: 1; }
.company-source-card small,.company-source-card strong,.company-source-card span { display: block; }
.company-source-card small { color: #718098; }
.company-source-card strong { margin: 3px 0; font-size: 16px; }
.company-source-card.compact { margin: 0 0 18px; background: #f8fafc; border: 1px solid #dce4ee; border-radius: 12px; }
.central-company-note { display: flex; align-items: center; gap: 12px; }
.central-company-note > i { font-size: 20px; }
.central-company-note strong,.central-company-note span { display: block; }
.central-company-note span { margin-top: 2px; font-size: 13px; }
.data-form .form-row:has(input[name="employer_name"]) { display: none; }
.hr-bootstrap .data-form .trust-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.hr-bootstrap .data-form .trust-option input[type="checkbox"] {
    width: 1.1rem !important;
    min-width: 1.1rem;
    max-width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;
    margin: .15rem 0 0;
    padding: 0;
    flex: 0 0 1.1rem;
}
.hr-bootstrap .data-form .trust-option > span { margin: 0; line-height: 1.4; }
.status-pill.pending { background: #fff4dc; color: #805000; }
.status-pill.overdue,.status-pill.failed { background: #fff0f0; color: #9d2929; }
.status-pill.acknowledged,.status-pill.sent { background: #eaf8ef; color: #237747; }
.status-pill.waiting_employer,.status-pill.test_preview { background: #edf5ff; color: #31598f; }
.document-section td small { display: block; margin-top: 4px; color: #718098; }
.template-workspace { max-width: 1200px; }
.template-form { display: grid; gap: 20px; }
.template-form .form-card { margin: 0; }
.template-content-card .template-editor { min-height: 480px; max-height: none; }
.template-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.template-options .trust-option { padding: 14px; border: 1px solid #dce4ee; border-radius: 11px; background: #f8fafc; }
.template-options strong,.template-options small { display: block; }
.template-options small { margin-top: 4px; color: #718098; }
.template-publish-button { width: 100%; }
@media (max-width: 1100px) { .document-action-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 700px) {
    .document-tabs { margin-inline: -4px; }
    .document-action-grid { grid-template-columns: 1fr; }
    .section-title,.document-item { align-items: flex-start; flex-direction: column; }
    .document-withdraw { grid-template-columns: 1fr; }
    .template-options { grid-template-columns: 1fr; }
}

/* Einheitliche HR-Oberfläche im Stil der Warenwirtschaft. */
body.hr-bootstrap {
    --hr-navy: #12264a;
    --hr-navy-soft: #1b3563;
    --hr-orange: #ef790f;
    --hr-bg: #f2f5f9;
    --hr-line: #d8e1eb;
    --hr-text: #14233c;
    --hr-muted: #6f7f96;
    min-height: 100vh;
    color: var(--hr-text);
    background: var(--hr-bg);
    font-size: 14px;
}
.hr-bootstrap .app-shell { min-height: 100vh; align-items: stretch; }
.hr-bootstrap .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 270px;
    height: 100vh;
    min-height: 0;
    background: var(--hr-navy);
    box-shadow: none;
}
.hr-bootstrap .sidebar .brand {
    height: 66px;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.hr-bootstrap .sidebar .brand img {
    width: 192px;
    height: 46px;
    max-width: calc(100% - 42px);
    padding: 6px 10px;
    border-radius: 11px;
    object-fit: contain;
    object-position: left center;
}
.hr-bootstrap .sidebar .brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}
.hr-bootstrap .sidebar nav {
    padding: 12px 9px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
.hr-bootstrap .sidebar > nav > .nav-link { margin-bottom: 7px; }
.hr-bootstrap .hr-nav-section { margin: 10px 0 14px; }
.hr-bootstrap .hr-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin: 0 0 4px;
    padding: 7px 10px;
    color: #f6f9ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    list-style: none;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}
.hr-bootstrap .hr-nav-heading::-webkit-details-marker { display: none; }
.hr-bootstrap .hr-nav-heading:hover,
.hr-bootstrap .hr-nav-section.active > .hr-nav-heading { background: rgba(255,255,255,.08); }
.hr-bootstrap .hr-nav-heading i { font-size: 9px; transition: transform .18s ease; }
.hr-bootstrap .hr-nav-section[open] > .hr-nav-heading i { transform: rotate(180deg); }
.hr-bootstrap .hr-nav-items {
    margin: 0;
    padding: 0;
    border: 0;
}
.hr-bootstrap .hr-sidebar-footer {
    flex: 0 0 auto;
    padding: 10px 9px 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hr-bootstrap .hr-sidebar-footer .nav-link { margin: 0; }
.hr-bootstrap .nav-link {
    min-height: 39px;
    margin: 2px 0;
    padding: 8px 10px;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #e2ebf8;
    font-size: 13px;
    font-weight: 750;
}
.hr-bootstrap .nav-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.hr-bootstrap .nav-link.active {
    color: var(--hr-navy);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(4,18,42,.18);
}
.hr-bootstrap .nav-link .nav-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 6px;
}
.hr-bootstrap .nav-link.active .nav-icon { color: var(--hr-orange); border-color: var(--hr-orange); }
.hr-bootstrap .nav-link .nav-icon i { font-size: 12px; }

.hr-bootstrap .main {
    width: calc(100% - 270px);
    min-width: 0;
    margin-left: 270px;
}
.hr-bootstrap .topbar {
    height: 66px;
    padding: 0 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--hr-line);
    backdrop-filter: blur(10px);
}
.hr-bootstrap .breadcrumb { color: var(--hr-muted); font-size: 13px; }
.hr-bootstrap .breadcrumb strong { color: var(--hr-text); }
.hr-bootstrap .test-badge {
    padding: 5px 9px;
    color: #a64f08 !important;
    background: #fff1e3 !important;
    border-color: #ffd2a9;
    font-size: 10px;
    letter-spacing: .04em;
}
.hr-bootstrap .userbox { min-width: 0; }
.hr-bootstrap .userbox a { font-weight: 700; text-decoration: none; }
.hr-bootstrap .content {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
    padding: 28px 30px 48px;
}
.hr-bootstrap .page-head,
.hr-bootstrap .home-hero {
    align-items: flex-end;
    margin-bottom: 22px;
}
.hr-bootstrap .page-head h1,
.hr-bootstrap .home-hero h1 {
    color: var(--hr-text);
    font-size: clamp(26px,2.1vw,34px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.hr-bootstrap .page-head p,
.hr-bootstrap .home-hero p:not(.date-line) { color: var(--hr-muted); font-size: 13px; }
.hr-bootstrap .eyebrow,
.hr-bootstrap .date-line { color: var(--hr-orange) !important; font-size: 12px; letter-spacing: .03em; }

.hr-bootstrap .card,
.hr-bootstrap .metrics article,
.hr-bootstrap .home-metrics > a {
    border: 1px solid var(--hr-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(18,38,74,.055);
}
.hr-bootstrap .card:hover { box-shadow: 0 9px 26px rgba(18,38,74,.07); }
.hr-bootstrap .home-actions { grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); }
.hr-bootstrap .button,
.hr-bootstrap .btn {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}
.hr-bootstrap .button.primary,
.hr-bootstrap .btn-primary { background: var(--hr-orange); border-color: var(--hr-orange); color: #fff; }
.hr-bootstrap .button.primary:hover,
.hr-bootstrap .btn-primary:hover { background: #d96809; border-color: #d96809; transform: translateY(-1px); }
.hr-bootstrap .button.secondary,
.hr-bootstrap .btn-outline-secondary { color: var(--hr-text); background: #fff; border-color: #cbd6e3; }
.hr-bootstrap .button.secondary:hover,
.hr-bootstrap .btn-outline-secondary:hover { color: var(--hr-text); background: #f4f7fa; border-color: #aebdce; }

.hr-bootstrap .data-form { gap: 15px; }
.hr-bootstrap .data-form label > span {
    margin-bottom: 6px;
    color: #263b5c;
    font-size: 12px;
    font-weight: 800;
}
.hr-bootstrap .data-form input:not([type="checkbox"]):not([type="radio"]),
.hr-bootstrap .data-form select,
.hr-bootstrap .data-form textarea,
.hr-bootstrap .form-control,
.hr-bootstrap .form-select {
    min-height: 42px;
    border-color: #c8d4e1;
    border-radius: 9px;
    color: var(--hr-text);
    background-color: #fff;
    font-size: 14px;
}
.hr-bootstrap .data-form textarea { min-height: 105px; }
.hr-bootstrap .data-form input:focus,
.hr-bootstrap .data-form select:focus,
.hr-bootstrap .data-form textarea:focus {
    border-color: var(--hr-orange);
    box-shadow: 0 0 0 3px rgba(239,121,15,.12);
    outline: 0;
}
.hr-bootstrap .data-form small { color: var(--hr-muted); font-size: 11px; line-height: 1.4; }

.hr-bootstrap .table-scroll,
.hr-bootstrap .table-responsive { border: 1px solid var(--hr-line); border-radius: 11px; }
.hr-bootstrap .data-table { width: 100%; margin: 0; font-size: 13px; }
.hr-bootstrap .data-table thead th {
    padding: 11px 13px;
    color: #65758c;
    background: #f5f7fa;
    border-bottom: 1px solid var(--hr-line);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hr-bootstrap .data-table tbody td { padding: 12px 13px; border-bottom-color: #e7edf3; vertical-align: middle; }
.hr-bootstrap .data-table tbody tr:last-child td { border-bottom: 0; }
.hr-bootstrap .data-table tbody tr:hover { background: #f8fafc; }
.hr-bootstrap .data-table td > strong,
.hr-bootstrap .data-table td > small { display: block; }
.hr-bootstrap .data-table td > small { margin-top: 3px; color: var(--hr-muted); font-size: 11px; }
.hr-bootstrap .section-title { margin-bottom: 14px; }
.hr-bootstrap .section-title h2 { color: var(--hr-text); font-size: 18px; }
.hr-bootstrap .section-title p { color: var(--hr-muted); font-size: 12px; }
.hr-bootstrap .notice,
.hr-bootstrap .alert { margin-bottom: 18px; border-radius: 10px; font-size: 13px; }

/* Aufträge: klare Lesereihenfolge statt großer leerer Flächen. */
.hr-bootstrap .work-order-workspace { max-width: 1450px; }
.hr-bootstrap .ownership-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: -4px 0 18px;
    padding: 13px 16px;
    color: #35506f;
    background: #edf4fb;
    border: 1px solid #cdddec;
    border-radius: 11px;
}
.hr-bootstrap .ownership-note > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    color: #315e8c;
    background: #fff;
    border-radius: 9px;
}
.hr-bootstrap .ownership-note strong,
.hr-bootstrap .ownership-note span { display: block; }
.hr-bootstrap .ownership-note span { margin-top: 2px; color: #637994; font-size: 11px; }
.hr-bootstrap .work-order-list { padding: 20px; overflow: hidden; }
.hr-bootstrap .work-order-list .table-scroll { margin: 0; }
.hr-bootstrap .execution-badge,
.hr-bootstrap .status-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}
.hr-bootstrap .execution-badge.internal { color: #286341; background: #e7f5ec; }
.hr-bootstrap .execution-badge.subcontractor { color: #7b5200; background: #fff2d4; }

.hr-bootstrap .onboarding-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; align-items: start; }
.hr-bootstrap .onboarding-form-card { padding: 1.4rem; }
.hr-bootstrap .onboarding-form-card .data-form > h3 { margin: 1.8rem 0 .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--bs-border-color); font-size: 1.05rem; }
.hr-bootstrap .onboarding-wizard-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: .75rem 0 1.35rem; }
.hr-bootstrap .onboarding-wizard-tab { display: grid; grid-template-columns: 30px 22px 1fr; align-items: center; gap: .45rem; min-height: 54px; padding: .65rem .75rem; color: #52657e; text-align: left; background: #f5f7fa; border: 1px solid #d8e0ea; border-radius: 10px; }
.hr-bootstrap .onboarding-wizard-tab > span { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; font-weight: 800; background: #8190a4; border-radius: 50%; }
.hr-bootstrap .onboarding-wizard-tab > i { color: #718198; text-align: center; }
.hr-bootstrap .onboarding-wizard-tab > strong { font-size: 12px; line-height: 1.25; }
.hr-bootstrap .onboarding-wizard-tab.active { color: var(--hr-navy); background: #fff7ed; border-color: var(--hr-orange); box-shadow: 0 4px 12px rgba(239,124,18,.12); }
.hr-bootstrap .onboarding-wizard-tab.active > span { background: var(--hr-orange); }
.hr-bootstrap .onboarding-wizard-tab.completed > span { background: var(--bs-success); }
.hr-bootstrap .onboarding-form-stage > h3 { margin: .25rem 0 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--bs-border-color); font-size: 1.08rem; }
.hr-bootstrap .wizard-ready .onboarding-form-stage { display: none; }
.hr-bootstrap .wizard-ready .onboarding-form-stage.active { display: grid; gap: 15px; }
.hr-bootstrap .onboarding-wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.hr-bootstrap .onboarding-wizard-controls > span { color: var(--hr-muted); font-size: 12px; font-weight: 700; }
.hr-bootstrap .onboarding-final-submit { width: 100%; margin-top: .75rem; }
.hr-bootstrap .minimum-wage-check { display: flex; align-items: flex-start; gap: .45rem; margin-top: .5rem; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.hr-bootstrap .minimum-wage-check.valid { color: #17633a; background: #ecf8f1; border-color: #9fd5b7; }
.hr-bootstrap .minimum-wage-check.invalid { color: #9b2c2c; background: #fff0f0; border-color: #efaaaa; }
.hr-bootstrap .minimum-wage-check.neutral { color: #4c6079; background: #f5f7fa; }
.hr-bootstrap .minimum-wage-check i { margin-top: .1rem; }
.hr-bootstrap .onboarding-side { position: static; order: -1; }
.hr-bootstrap .onboarding-checklist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 1.25rem; }
.hr-bootstrap .onboarding-checklist > h2,.hr-bootstrap .onboarding-checklist > p,.hr-bootstrap .onboarding-checklist > .onboarding-progress,.hr-bootstrap .onboarding-checklist > .alert,.hr-bootstrap .onboarding-checklist > form:not(.onboarding-step) { grid-column: 1/-1; }
.hr-bootstrap .onboarding-checklist > h2 { margin: 0; }
.hr-bootstrap .onboarding-checklist > p { margin: 0; color: var(--hr-muted); }
.hr-bootstrap .onboarding-progress { height: .55rem; margin: .15rem 0 .35rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.hr-bootstrap .onboarding-progress span { display: block; height: 100%; border-radius: inherit; background: var(--bs-success); }
.hr-bootstrap .onboarding-step { display: grid; grid-template-columns: 24px minmax(0,1fr); align-content: start; gap: .5rem .65rem; min-width: 0; padding: .8rem; background: #f8fafc; border: 1px solid var(--bs-border-color); border-radius: 10px; }
.hr-bootstrap .onboarding-step::before { content: attr(data-phase); grid-column: 1/-1; color: var(--hr-orange); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.hr-bootstrap .onboarding-step > i { margin-top: .2rem; color: #94a3b8; }
.hr-bootstrap .onboarding-step.done > i { color: var(--bs-success); }
.hr-bootstrap .onboarding-step span { display: flex; flex-direction: column; }
.hr-bootstrap .onboarding-step small { color: var(--bs-secondary-color); }
.hr-bootstrap .onboarding-step button { grid-column: 1/-1; width: 100%; justify-self: stretch; margin-top: .25rem; }
.hr-bootstrap .onboarding-step > .onboarding-contract-action { grid-column: 1/-1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; max-width: 100%; white-space: normal; line-height: 1.25; }
.hr-bootstrap .cancel-case { display: grid; gap: .65rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.hr-bootstrap .onboarding-list { margin-top: 1.25rem; }
.hr-bootstrap .onboarding-list td small { display: block; }
@media (max-width: 1000px) { .hr-bootstrap .onboarding-checklist { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .hr-bootstrap .onboarding-checklist { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .hr-bootstrap .onboarding-wizard-nav { grid-template-columns: 1fr; } .hr-bootstrap .onboarding-wizard-tab { min-height: 46px; } .hr-bootstrap .onboarding-wizard-controls { flex-wrap: wrap; } .hr-bootstrap .onboarding-wizard-controls > span { order: -1; width: 100%; text-align: center; } .hr-bootstrap .onboarding-wizard-controls .btn { flex: 1; } }
.hr-bootstrap .execution-badge.mixed { color: #31598f; background: #e8f1fc; }
.hr-bootstrap .status-pill.open { color: #a34d08; background: #fff0e1; }
.hr-bootstrap .status-pill.planned { color: #31598f; background: #e8f1fc; }
.hr-bootstrap .status-pill.in_progress { color: #67439b; background: #eee8f8; }
.hr-bootstrap .status-pill.completed { color: #237747; background: #e7f5ec; }
.hr-bootstrap .status-pill.cancelled { color: #8d3740; background: #f9e7e9; }
.hr-bootstrap .work-order-metrics { margin-bottom: 18px; }
.hr-bootstrap .hr-order-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}
.hr-bootstrap .hr-order-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--hr-line);
    border-left: 4px solid #91a3b9;
    border-radius: 12px;
    background: #fff;
}
.hr-bootstrap .hr-order-card.needs-staff { border-left-color: var(--hr-orange); }
.hr-bootstrap .hr-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.hr-bootstrap .hr-order-card-head small {
    display: block;
    margin-bottom: 3px;
    color: var(--hr-orange);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
}
.hr-bootstrap .hr-order-card-head h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.hr-bootstrap .hr-order-location,
.hr-bootstrap .hr-order-access { display: flex; align-items: flex-start; gap: 9px; margin: 0; }
.hr-bootstrap .hr-order-location { color: #51647e; }
.hr-bootstrap .hr-order-location i,
.hr-bootstrap .hr-order-access > i { width: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--hr-orange); text-align: center; }
.hr-bootstrap .hr-order-scope { margin: 13px 0; padding: 11px 12px; border-radius: 9px; background: #f5f7fa; }
.hr-bootstrap .hr-order-scope strong { display: block; margin-bottom: 4px; font-size: 11px; }
.hr-bootstrap .hr-order-scope p { margin: 0; color: #40536d; font-size: 12px; line-height: 1.45; }
.hr-bootstrap .hr-order-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.hr-bootstrap .hr-order-facts > div { min-width: 0; padding: 10px; border: 1px solid #e1e7ee; border-radius: 9px; }
.hr-bootstrap .hr-order-facts dt { margin-bottom: 4px; color: var(--hr-muted); font-size: 10px; font-weight: 800; }
.hr-bootstrap .hr-order-facts dt i { width: 15px; color: #536d8e; }
.hr-bootstrap .hr-order-facts dd { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.4; }
.hr-bootstrap .hr-order-facts dd small { display: block; margin-top: 4px; color: var(--hr-muted); font-size: 10px; }
.hr-bootstrap .warning-text { color: #a64f08; }
.hr-bootstrap .hr-order-access { margin-top: 11px; padding: 10px 11px; color: #664216; background: #fff7eb; border: 1px solid #f1d8b6; border-radius: 9px; font-size: 11px; line-height: 1.45; }
.hr-bootstrap .hr-order-access strong { display: block; margin-bottom: 2px; }
.hr-bootstrap .hr-order-actions { display: flex; justify-content: flex-end; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e5ebf1; }

/* Dienst- und Monatsplanung bleiben auf breiten Bildschirmen kompakt. */
.hr-bootstrap .schedule-editor,
.hr-bootstrap .manual-order-card { margin-bottom: 16px; }
.hr-bootstrap .weekly-board,
.hr-bootstrap .monthly-plan { border-radius: 14px; }
.hr-bootstrap .weekly-day,
.hr-bootstrap .month-cell { background-color: #fff; }
.hr-bootstrap .weekly-day:nth-child(even),
.hr-bootstrap .month-cell:nth-child(even) { background-color: #fbfcfe; }

@media (max-width: 1100px) {
    .hr-bootstrap .content { padding-inline: 22px; }
    .hr-bootstrap .hr-order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
    .hr-bootstrap .sidebar { transform: translateX(-100%); }
    .hr-bootstrap .sidebar.open { transform: translateX(0); }
    .hr-bootstrap .main { width: 100%; margin-left: 0; }
    .hr-bootstrap .topbar { height: 62px; padding-inline: 14px; }
    .hr-bootstrap .content { padding: 20px 14px 36px; }
    .hr-bootstrap .page-head { align-items: flex-start; }
    .hr-bootstrap .work-order-list { padding: 14px; }
}
@media (max-width: 600px) {
    .hr-bootstrap .page-head > .button,
    .hr-bootstrap .section-title > .button { width: 100%; }
    .hr-bootstrap .section-title { align-items: stretch; }
    .hr-bootstrap .ownership-note { align-items: flex-start; }
    .hr-bootstrap .hr-order-facts { grid-template-columns: 1fr; }
    .hr-bootstrap .hr-order-actions .button { width: 100%; }
}

/* Abrechnung und Unfallvorgänge. */
.hr-bootstrap .payroll-workspace { max-width: 1450px; }
.hr-bootstrap .period-picker { display: flex; align-items: center; gap: 8px; }
.hr-bootstrap .period-picker input { min-height: 40px; padding: 8px 10px; border: 1px solid #c8d4e1; border-radius: 9px; background: #fff; }
.hr-bootstrap .payroll-export-card { margin-top: 18px; padding: 20px; }
.hr-bootstrap .payroll-export-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.hr-bootstrap .payroll-export-grid > a { display: flex; align-items: center; gap: 13px; min-height: 92px; padding: 15px; color: var(--hr-text); background: #f8fafc; border: 1px solid var(--hr-line); border-radius: 11px; text-decoration: none; }
.hr-bootstrap .payroll-export-grid > a:hover { background: #fff; border-color: var(--hr-orange); box-shadow: 0 7px 18px rgba(18,38,74,.08); }
.hr-bootstrap .payroll-export-grid i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; color: var(--hr-navy); background: #e8eef6; border-radius: 9px; }
.hr-bootstrap .payroll-export-grid strong,.hr-bootstrap .payroll-export-grid small { display: block; }
.hr-bootstrap .payroll-export-grid small { margin-top: 4px; color: var(--hr-muted); font-size: 10px; line-height: 1.35; }
.hr-bootstrap .payroll-workspace .inline-actions select { min-width: 135px; }
.hr-bootstrap .payroll-format-chooser { display: grid; grid-template-columns: minmax(230px,300px) minmax(240px,1fr); align-items: end; gap: 12px; width: min(650px,100%); }
.hr-bootstrap .payroll-format-chooser label { margin: 0; }
.hr-bootstrap .payroll-format-chooser label > span { display: block; margin-bottom: 5px; color: var(--hr-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.hr-bootstrap .payroll-format-chooser p { margin: 0 0 7px; color: var(--hr-muted); font-size: 11px; line-height: 1.4; }
.hr-bootstrap code { color: #40536d; font-size: 11px; }
@media(max-width:1100px){.hr-bootstrap .payroll-export-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.hr-bootstrap .payroll-export-grid{grid-template-columns:1fr}.hr-bootstrap .period-picker{width:100%;flex-wrap:wrap}.hr-bootstrap .period-picker input,.hr-bootstrap .period-picker .button{flex:1}.hr-bootstrap .payroll-format-chooser{grid-template-columns:1fr}.hr-bootstrap .payroll-format-chooser p{margin:0}}

/* Personalfragebogen: Bildschirmansicht und sauberer A4-Ausdruck. */
.hr-bootstrap .questionnaire-sheet { width: min(920px,calc(100% - 32px)); margin: 26px auto; padding: 48px 54px; color: #172b4d; background: #fff; border: 1px solid #dce3ec; border-radius: 12px; box-shadow: 0 12px 32px rgba(18,38,74,.10); }
.hr-bootstrap .questionnaire-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 22px; border-bottom: 3px solid var(--hr-navy); }
.hr-bootstrap .questionnaire-head p { margin: 0 0 5px; color: var(--hr-orange); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.hr-bootstrap .questionnaire-head h1 { margin: 0 0 4px; font-size: 28px; }
.hr-bootstrap .questionnaire-head img { width: 190px; max-height: 72px; object-fit: contain; }
.hr-bootstrap .questionnaire-section { margin-top: 27px; break-inside: avoid; }
.hr-bootstrap .questionnaire-section h2 { margin: 0 0 8px; padding-bottom: 7px; color: var(--hr-navy); font-size: 17px; border-bottom: 1px solid #ccd6e3; }
.hr-bootstrap .questionnaire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.hr-bootstrap .questionnaire-grid > div { min-width: 0; padding: 9px 0; border-bottom: 1px dotted #bcc6d2; }
.hr-bootstrap .questionnaire-grid dt { color: #66758a; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hr-bootstrap .questionnaire-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.hr-bootstrap .questionnaire-sheet > p { margin-top: 30px; font-size: 11px; line-height: 1.5; }
.hr-bootstrap .signature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 68px; }
.hr-bootstrap .signature-row > div { padding-top: 7px; font-size: 11px; border-top: 1px solid #172b4d; }
.hr-bootstrap .print-actions { display: flex; justify-content: space-between; width: min(920px,calc(100% - 32px)); margin: 22px auto; }
.hr-bootstrap .contract-file-layout { display: grid; grid-template-columns: minmax(320px,420px) minmax(0,1fr); gap: 18px; align-items: start; }
.hr-bootstrap .contract-file-layout .form-card,.hr-bootstrap .contract-file-layout .table-card { padding: 20px; }
@media(max-width:900px){.hr-bootstrap .contract-file-layout{grid-template-columns:1fr}.hr-bootstrap .questionnaire-grid{grid-template-columns:1fr}.hr-bootstrap .questionnaire-sheet{padding:30px 24px}.hr-bootstrap .questionnaire-head{flex-direction:column}.hr-bootstrap .questionnaire-head img{order:-1}}
@media print{@page{size:A4;margin:14mm}.hr-bootstrap{background:#fff!important}.hr-bootstrap .print-actions{display:none!important}.hr-bootstrap .questionnaire-sheet{width:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.hr-bootstrap .questionnaire-head img{width:155px}.hr-bootstrap .questionnaire-section{margin-top:20px}.hr-bootstrap .questionnaire-grid>div{padding:6px 0}.hr-bootstrap .signature-row{margin-top:52px}}
