:root{--bg:#f4f6f8;--card:#fff;--line:#d8dee6;--text:#1f2933;--muted:#5d6b78;--accent:#245b91;--danger:#a61b1b}*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}header{background:#fff;border-bottom:1px solid var(--line);padding:14px 22px}h1{margin:0 0 10px;font-size:22px}nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}nav a,.button,button{background:var(--accent);color:white;border:0;border-radius:5px;padding:8px 12px;text-decoration:none;cursor:pointer;font-size:14px}nav a:hover,.button:hover,button:hover{opacity:.9}.nav-form{display:inline}main{padding:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:16px}h2{margin-top:0;font-size:18px}label{display:block;margin-bottom:10px;color:var(--muted);font-size:13px}input,select,textarea{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid var(--line);border-radius:5px;background:#fff}textarea{font-family:inherit}.form-grid,.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;align-items:end}.check input{display:inline;width:auto}.inline-form{display:flex;gap:8px;margin-bottom:14px}.inline-form input{width:320px}.actions{margin-top:12px;display:flex;gap:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:top}th{background:#edf2f7;position:sticky;top:0}.num{text-align:right;white-space:nowrap}.num-input{width:120px;text-align:right}.message{padding:10px;border-radius:5px;margin-bottom:10px}.message.ok{background:#e7f5e7;border:1px solid #b6ddb6}.message.error{background:#fdecec;border:1px solid #f0b5b5}.danger{background:var(--danger)}@media(max-width:1000px){.form-grid,.filter-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}


.actions-cell {
    white-space: nowrap;
}

.inline-action {
    display: inline-block;
    margin-left: 6px;
}

.small {
    padding: 5px 8px;
    font-size: 13px;
}


.login-card {
    max-width: 420px;
    margin: 40px auto;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.user-info {
    color: var(--muted);
    align-self: center;
    padding: 8px 4px;
}


.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 16px;
    margin: 10px 0 16px 0;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.checkline input {
    width: auto;
    margin: 0;
}

.role-form {
    max-width: 760px;
}


.table-actions {
    margin-bottom: 10px;
}


.pdf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}


.small-input {
    min-width: 90px;
    padding: 5px 7px;
}


.money-input {
    min-width: 140px;
}

.small-input {
    min-width: 90px;
}


.company-row th {
    background: #e5e7eb;
    text-align: left;
    font-weight: 700;
}

.company-sum th,
.company-sum td {
    background: #f3f4f6;
    font-weight: 700;
}


.comparison-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 140px 180px;
    gap: 12px;
    align-items: end;
    margin-bottom: 10px;
}

.comparison-table {
    table-layout: auto;
}

.comparison-table .col-select {
    width: 60px;
    text-align: center;
}

.comparison-table .col-name {
    min-width: 150px;
}

.comparison-table .col-company {
    min-width: 150px;
}

.comparison-table .col-qualification {
    min-width: 120px;
}

.comparison-table .col-hours {
    width: 90px;
}

.comparison-table .col-money {
    width: 125px;
}

.hours-input {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 5px 7px;
    text-align: right;
    box-sizing: border-box;
}

.compact-check {
    align-self: center;
    margin-bottom: 6px;
}


.csv-actions-row {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}



.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.header-title {
    flex: 1;
    min-width: 0;
}

.header-logo {
    flex: 0 0 auto;
    text-align: right;
}

.brand-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .header-logo {
        text-align: left;
    }

    .brand-logo {
        max-width: 220px;
    }
}


.secondary-button {
    background: #64748b;
}

.remark-box {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f8fafc;
    max-width: 420px;
    white-space: normal;
}


.upload-highlight {
    margin-top: 14px;
    padding: 9px 10px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: #f0f7ff;
}

.upload-highlight h3 {
    margin: 0 0 6px 0;
    color: var(--accent);
    font-size: 16px;
}

.upload-highlight input[type="file"] {
    background: #fff;
    border: 1px solid var(--accent);
}


.drop-zone {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.drop-zone.drag-over {
    background: #e2f1ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.file-pick-button {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    width: auto;
}

.file-pick-button input[type="file"] {
    display: none;
}

.selected-files {
    margin-top: 8px;
    font-size: 13px;
    color: #334155;
    white-space: pre-line;
}


.age-hint {
    display: inline-block;
    margin-top: 4px;
    margin-left: 2px;
    font-size: 12px;
    color: #64748b;
}


.birthdate-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.birthdate-row input[type="date"] {
    flex: 1;
    min-width: 0;
}

.age-inline {
    white-space: nowrap;
    font-size: 13px;
    color: #64748b;
    padding: 8px 10px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #f8fafc;
}


.selected-files {
    max-height: 160px;
    overflow: auto;
}


.expand-row td {
    background: #f8fafc;
}

.expand-panel {
    padding: 12px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #ffffff;
}

.expand-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
}

.compact-table table {
    margin-bottom: 0;
}

.toggle-button {
    white-space: nowrap;
}




.role-name-highlight {
    display: block;
    padding: 12px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: #f0f7ff;
    margin-bottom: 14px;
}

.role-name-highlight input {
    margin-top: 6px;
    font-weight: 600;
}


.status-yes {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.status-no {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 9px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #d8dee6;
}

.status-pill.yes {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}


.disabled-button {
    cursor: default;
    opacity: 0.75;
    pointer-events: none;
}


.permission-cell {
    text-align: center;
    vertical-align: middle;
}

.permission-form {
    display: inline-block;
    margin: 0;
}

.permission-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    padding: 0;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.permission-toggle:hover {
    background: #f1f5f9;
}

.permission-active {
    border-color: #94a3b8;
    background: #f8fafc;
}

.permission-inactive {
    background: #ffffff;
}

.permission-toggle.disabled-button {
    cursor: default;
    opacity: 0.75;
    pointer-events: none;
}


.import-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.import-export-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-height: 58px;
    padding: 9px 10px;
    white-space: normal;
    text-align: left;
    width: 100%;
}

.import-export-tile strong {
    font-size: 13px;
}

.import-export-tile span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

.import-export-form {
    margin: 0;
}


.comparison-table .company-row th {
    padding-top: 18px;
    padding-bottom: 10px;
    border-top: 14px solid #ffffff;
    background: #eaf2fb;
}

.comparison-table .company-sum th,
.comparison-table .company-sum td {
    padding-bottom: 16px;
    border-bottom: 10px solid #ffffff;
}

.result-hours-input {
    max-width: 90px;
    text-align: right;
}


.comparison-table .company-color-a.company-row th {
    background: #eaf2fb;
    border-left: 6px solid #7aa7d9;
}

.comparison-table .company-color-b.company-row th {
    background: #eef7f0;
    border-left: 6px solid #83b98f;
}

.comparison-table .result-row.company-color-a td {
    background: #f7fbff;
}

.comparison-table .result-row.company-color-b td {
    background: #f8fcf8;
}

.comparison-table .company-sum.company-color-a th,
.comparison-table .company-sum.company-color-a td {
    background: #eaf2fb;
}

.comparison-table .company-sum.company-color-b th,
.comparison-table .company-sum.company-color-b td {
    background: #eef7f0;
}

.comparison-table .result-row td {
    transition: background-color 0.15s ease;
}


.customer-required-label {
    display: block;
    padding: 10px;
    border: 2px solid #0B2E6D;
    border-radius: 8px;
    background: #f0f7ff;
}

.customer-required-label select {
    margin-top: 6px;
    border: 2px solid #0B2E6D;
}

.customer-required-label.customer-missing {
    border-color: #b91c1c;
    background: #fff1f2;
}

.customer-required-label.customer-missing select {
    border-color: #b91c1c;
}

.customer-required-message {
    margin-top: 10px;
}


.auto-filter-form input,
.auto-filter-form select {
    border-color: #b8c7d9;
}

.auto-filter-form input:focus,
.auto-filter-form select:focus {
    border-color: #0B2E6D;
    box-shadow: 0 0 0 2px rgba(11, 46, 109, 0.12);
}


.comparison-table th.col-hours,
.comparison-table th.col-money,
.comparison-table thead th.col-hours,
.comparison-table thead th.col-money {
    text-align: center;
    vertical-align: middle;
}

.comparison-table td.col-money,
.comparison-table td.col-hours {
    text-align: right;
}

.comparison-table .company-sum .num,
.comparison-table tfoot .num {
    text-align: right;
}


.row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.document-upload-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.documents-details {
    margin-top: 8px;
    max-width: 360px;
}

.documents-details summary {
    cursor: pointer;
    font-weight: 600;
}

.document-list {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.document-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.document-list li span {
    flex-basis: 100%;
    word-break: break-word;
}


table td:last-child {
    min-width: 230px;
}


.document-upload-button {
    margin: 0;
}

.actions-cell .document-upload-button {
    vertical-align: middle;
}

.expand-row .expand-panel h3 {
    margin-top: 0;
}


.empty-document-button {
    opacity: 0.45;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border-color: #cbd5e1 !important;
}

.empty-document-button:hover {
    background: #e5e7eb !important;
    color: #6b7280 !important;
}


/* Wechsel-Färbung nur für normale Mitarbeiterzeilen in der Personalübersicht */
.employee-row:nth-of-type(4n+1) {
    background: #ffffff;
}

.employee-row:nth-of-type(4n+3) {
    background: #f4f7fb;
}

.employee-row:hover {
    background: #eaf2fb;
}

.expand-row {
    background: #ffffff;
}


.contact-drop-zone {
    margin: 8px 0 12px 0;
    padding: 14px;
    border: 2px dashed #b8c7d9;
    border-radius: 10px;
    background: #f8fbff;
    color: #334155;
    text-align: center;
}

.contact-drop-zone.drag-over {
    border-color: #0B2E6D;
    background: #eaf2fb;
}

.contact-drop-zone button {
    margin-left: 6px;
}


.compact-contact-drop-zone {
    margin-top: 8px;
    padding: 8px 10px;
    min-width: 190px;
    font-size: 0.9rem;
    background: #f8fbff;
}

.compact-contact-drop-zone::before {
    content: "↧ ";
    font-weight: 700;
}


.inline-contact-drop-zone {
    margin: 0;
    padding: 7px 10px;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}

.inline-contact-drop-zone:hover {
    border-color: #0B2E6D;
    background: #eaf2fb;
}

.inline-contact-drop-zone::before {
    content: "↧ ";
    font-weight: 700;
    margin-right: 3px;
}


.inline-contact-drop-zone.compact-contact-drop-zone::before {
    content: "↧ ";
}


/* Hervorhebung aufgeklappter Dokumentenbereiche */
.expand-row > td {
    background: #eef5ff;
    border-top: 2px solid #0B2E6D;
    border-bottom: 2px solid #0B2E6D;
    box-shadow: inset 5px 0 0 #0B2E6D;
}

.expand-panel {
    background: #ffffff;
    border: 1px solid #b8c7d9;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.expand-panel h3 {
    color: #0B2E6D;
    border-bottom: 1px solid #d7e1ee;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Kontakt bearbeiten: Gesperrt visuell hervorheben */
.blocked-status-label {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    background: #ffffff;
}

.blocked-status-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    margin-bottom: 6px;
}

.blocked-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #94a3b8;
    display: inline-block;
}

.blocked-status-label.blocked-active {
    border-color: #b91c1c;
    background: #fff1f2;
}

.blocked-status-label.blocked-active .blocked-status-title {
    color: #b91c1c;
}

.blocked-status-label.blocked-active .blocked-dot {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.blocked-status-label.blocked-active select {
    background: #dc2626;
    color: #ffffff;
    border-color: #991b1b;
    font-weight: 700;
}


.inline-subsection {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #f8fbff;
}

.compact-money-input {
    max-width: 160px;
}

.firm-ek-price-choice {
    border: 1px solid #b8c7d9;
    border-radius: 10px;
    padding: 10px;
    background: #f8fbff;
}


.comparison-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #f8fbff;
}


.timesheet-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin: 12px 0 16px 0;
    padding: 14px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #f8fbff;
}

.timesheet-contact-table td:first-child,
.timesheet-contact-table th:first-child {
    text-align: center;
    width: 80px;
}


.timesheet-settings input[type="date"] {
    min-height: 38px;
}


.range-date-field {
    border: 1px solid #0B2E6D;
    border-radius: 10px;
    padding: 10px;
    background: #eef5ff;
}

.range-info-box {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-left: 5px solid #0B2E6D;
    border-radius: 8px;
    background: #eef5ff;
    font-weight: 700;
    color: #0B2E6D;
}


.timesheet-mode-box {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #ffffff;
}

.field-title {
    font-weight: 700;
    margin-right: 8px;
    color: #0B2E6D;
}

.radio-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
}

.radio-card:has(input:checked),
.range-radio-card:has(input:checked) {
    border-color: #0B2E6D;
    background: #eef5ff;
    color: #0B2E6D;
}

.range-fixed-box {
    grid-column: 1 / -1;
    padding: 14px;
    border: 2px solid #d7e1ee;
    border-radius: 12px;
    background: #f8fbff;
}

.range-fixed-box.range-active {
    border-color: #0B2E6D;
    box-shadow: 0 0 0 3px rgba(11, 46, 109, 0.10);
}

.range-fixed-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0B2E6D;
    margin-bottom: 10px;
}

.range-fixed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}


.sort-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.sort-link:hover {
    text-decoration: underline;
}

.sort-header-button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.sort-header-button:hover {
    text-decoration: underline;
}

.expand-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.expand-panel-header h3 {
    margin: 0;
}


.hours-apply-all-box {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px 0;
    padding: 12px 14px;
    border: 1px solid #0B2E6D;
    border-radius: 12px;
    background: #eef5ff;
    color: #0B2E6D;
    font-weight: 700;
}

.hours-apply-all-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}


.profile-image-hint {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left: 5px solid #0B2E6D;
    border-radius: 8px;
    background: #eef5ff;
    color: #0B2E6D;
    font-size: 0.92rem;
    line-height: 1.35;
}


.profile-image-drop-zone,
.profile-image-contact-drop-zone,
.profile-image-inline-drop-zone {
    border-color: #0B2E6D;
    background: #eef5ff;
}

.rename-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.rename-form input[type="text"] {
    width: 190px;
    min-width: 160px;
}


/* V105 Uploadfelder kompakter/quadratischer */
.contact-upload-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.upload-square {
    min-height: 180px;
    aspect-ratio: 1.45 / 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.document-drop-zone {
    border-color: #2563eb;
    background: #f0f7ff;
}

.profile-image-drop-zone,
.profile-image-contact-drop-zone,
.profile-image-inline-drop-zone {
    border-color: #7c3aed !important;
    background: #f3ecff !important;
    color: #3b0764;
}

.profile-image-drop-zone h3 {
    color: #5b21b6;
}
.inline-contact-drop-zone {
    min-width: 118px;
    max-width: 135px;
    min-height: 52px;
    white-space: normal;
    line-height: 1.15;
}

.profile-image-inline-drop-zone {
    font-weight: 700;
}

/* V105 Import/Export: schmalere Kacheln und unterschiedliche Farben */
.import-export-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: start;
}

.import-export-tile {
    width: 180px;
    max-width: 180px;
    min-height: 52px;
    padding: 8px 9px;
}

.import-export-tile strong {
    font-size: 12.5px;
}

.import-export-tile span {
    font-size: 11.5px;
}

.export-tile {
    background: #eaf7ee !important;
    border-color: #22c55e !important;
    color: #14532d !important;
}

.import-tile {
    background: #eef5ff !important;
    border-color: #3b82f6 !important;
    color: #0B2E6D !important;
}

.import-export-form {
    width: 180px;
}

@media (max-width: 760px) {
    .contact-upload-pair,
    .expanded-upload-pair {
        grid-template-columns: 1fr;
    }

    .upload-square,
    .expanded-upload-square {
        aspect-ratio: auto;
    }
}


/* V110 Home und Kontaktformular-Uploadgrößen */
.home-nav-button {
    background: #b91c1c !important;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 800;
    min-width: 42px;
    text-align: center;
    padding: 8px 11px;
}

.home-nav-button:hover {
    background: #991b1b !important;
}

.contact-upload-pair {
    grid-template-columns: repeat(2, minmax(118px, 135px));
    justify-content: start;
    align-items: stretch;
}

.contact-upload-pair .upload-square {
    width: 135px;
    max-width: 135px;
    min-height: 72px;
    aspect-ratio: auto;
    padding: 8px 10px;
    justify-content: center;
    gap: 6px;
}

.contact-upload-pair .upload-square h3 {
    font-size: 13px;
    margin-bottom: 2px;
}

.contact-upload-pair .upload-square .hint {
    display: none;
}

.contact-upload-pair .file-pick-button {
    margin-top: 0;
    padding: 6px 8px;
    font-size: 12px;
}

.contact-upload-pair .selected-files {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    max-height: 32px;
    overflow: hidden;
}


/* V111 2FA und Smartphone-Optimierung */
.two-factor-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.two-factor-qr img {
    width: 220px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.secret-code {
    display: inline-block;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    word-break: break-all;
}

.two-factor-test-form {
    margin-top: 16px;
}

@media (max-width: 760px) {
    header {
        padding: 10px 12px;
    }

    .header-top {
        gap: 8px;
    }

    h1 {
        font-size: 19px;
    }

    .brand-logo {
        max-width: 160px;
    }

    nav {
        gap: 7px;
    }

    nav a,
    .button,
    button {
        padding: 9px 10px;
        font-size: 13px;
    }

    .user-info {
        width: 100%;
        font-size: 12px;
        margin-top: 4px;
    }

    main {
        padding: 10px;
    }

    .card {
        padding: 12px;
        border-radius: 7px;
    }

    .form-grid,
    .filter-grid,
    .comparison-filter-grid {
        grid-template-columns: 1fr !important;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        min-height: 40px;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 760px;
    }

    .actions,
    .table-actions,
    .row-actions,
    .actions-cell {
        gap: 6px;
    }

    .actions .button,
    .actions button,
    .table-actions .button,
    .table-actions button,
    .actions-cell .button,
    .actions-cell button {
        margin-bottom: 4px;
    }

    .contact-upload-pair {
        grid-template-columns: 1fr 1fr;
    }

    .contact-upload-pair .upload-square {
        width: auto;
        max-width: none;
        min-height: 90px;
    }

    .import-export-grid {
        grid-template-columns: 1fr 1fr;
    }

    .import-export-tile,
    .import-export-form {
        width: auto;
        max-width: none;
    }

    .two-factor-layout {
        display: block;
    }

    .two-factor-qr {
        text-align: center;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    nav a,
    .button,
    button {
        width: auto;
    }

    .contact-upload-pair,
    .import-export-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        max-width: none;
    }
}


/* V112 2FA sichtbar in Benutzerverwaltung */
.two-factor-action-button {
    background: #7c3aed !important;
}

.status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-ok {
    background: #dcfce7;
    color: #166534;
}

.status-neutral {
    background: #f1f5f9;
    color: #475569;
}


/* V113 2FA beim nächsten Login erzwingen */
.two-factor-require-button {
    background: #f59e0b !important;
    color: #111827 !important;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}


/* V114 Login ohne Kopfbereich */
.login-main {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
}

.login-main .login-card {
    width: min(420px, calc(100vw - 24px));
}


/* V115 automatische Abmeldung */
.inline-settings-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-settings-form label {
    min-width: 220px;
    margin-bottom: 0;
}

.admin-settings-card {
    border-left: 5px solid #b91c1c;
}

.inactivity-warning-box {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-weight: 700;
}

@media (max-width: 760px) {
    .inline-settings-form {
        display: block;
    }

    .inline-settings-form label {
        min-width: 0;
        margin-bottom: 10px;
    }
}


/* V116 Stundennachweise mit Zeiten */
.timesheet-entry-card {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.timesheet-entry-card h3 {
    margin-top: 0;
}

.timesheet-entry-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.timesheet-entry-table input,
.timesheet-entry-table textarea {
    min-width: 92px;
    font-size: 13px;
}

.timesheet-entry-table textarea {
    min-width: 220px;
    resize: vertical;
}

.timesheet-entry-table th,
.timesheet-entry-table td {
    vertical-align: top;
}

@media (max-width: 760px) {
    .timesheet-entry-actions {
        grid-template-columns: 1fr;
    }

    .timesheet-entry-table {
        min-width: 980px;
    }
}


/* V117 Stundennachweise: sichtbare aktuelle Auswahl */
.timesheet-entry-current-selection {
    margin: 8px 0 12px 0;
    padding: 8px 10px;
    border-left: 5px solid #0B2E6D;
    border-radius: 6px;
    background: #eef5ff;
    color: #0B2E6D;
    font-weight: 700;
}


/* V118 Stundennachweise: automatische Stundenberechnung */
.timesheet-calculation-hint,
.timesheet-entry-total-box {
    margin: 8px 0 12px 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #ecfdf5;
    border-left: 5px solid #16a34a;
    color: #14532d;
}

.timesheet-entry-total-box {
    font-size: 15px;
}

.calculated-hours-input {
    background: #f1f5f9;
    font-weight: 700;
}


/* V119 hervorgehobene Zeitmaske und lesbarere Mitarbeiterzeilen */
.timesheet-entry-card {
    border: 2px solid #0B2E6D;
    border-left: 8px solid #0B2E6D;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(11, 46, 109, 0.10);
}

.timesheet-entry-card h3 {
    color: #0B2E6D;
    padding-bottom: 8px;
    border-bottom: 1px solid #bfd0e7;
}

.timesheet-entry-actions {
    padding: 12px;
    border: 1px solid #bfd0e7;
    border-radius: 10px;
    background: #ffffff;
}

.timesheet-entry-table {
    border-collapse: separate;
    border-spacing: 0;
}

.timesheet-entry-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0B2E6D;
    color: #ffffff;
}

.timesheet-entry-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.timesheet-entry-table tbody tr:nth-child(even) {
    background: #f4f7fb;
}

.timesheet-entry-table tbody tr:hover {
    background: #eaf2fb;
}

.timesheet-entry-table input,
.timesheet-entry-table textarea {
    border-color: #b8c7d9;
    background: #ffffff;
}

.employee-readable-table tbody tr.readable-employee-row:nth-of-type(odd),
.firm-contact-table tbody tr.readable-employee-row:nth-of-type(odd) {
    background: #ffffff;
}

.employee-readable-table tbody tr.readable-employee-row:nth-of-type(even),
.firm-contact-table tbody tr.readable-employee-row:nth-of-type(even) {
    background: #f4f7fb;
}

.employee-readable-table tbody tr.readable-employee-row:hover,
.firm-contact-table tbody tr.readable-employee-row:hover {
    background: #eaf2fb;
}

.employee-readable-table tbody tr.readable-employee-row td,
.firm-contact-table tbody tr.readable-employee-row td {
    border-bottom: 1px solid #d7e1ee;
}

.employee-readable-table tbody tr.readable-employee-row td:first-child,
.firm-contact-table tbody tr.readable-employee-row td:first-child {
    font-weight: 700;
    color: #0B2E6D;
}


/* V120 Stundennachweise: Firmensuche */
.timesheet-contact-filter {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin: 14px 0 10px 0;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #f8fbff;
}

.timesheet-contact-filter label {
    min-width: 260px;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .timesheet-contact-filter {
        display: block;
    }

    .timesheet-contact-filter label {
        min-width: 0;
        margin-bottom: 10px;
    }
}


/* V121 Stundennachweise Reihenfolge */
.timesheet-order-section {
    margin: 14px 0 18px 0;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #ffffff;
}

.timesheet-order-section h3,
.timesheet-step-heading {
    margin-top: 0;
    color: #0B2E6D;
}

.timesheet-entry-card h4 {
    margin: 6px 0 8px 0;
    color: #0B2E6D;
}


/* V126 Personalübersicht: Tabellenkopf fixiert */
.contacts-sticky-table-wrap {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
}

.contacts-sticky-table {
    border-collapse: separate;
    border-spacing: 0;
}

.contacts-sticky-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0B2E6D;
    color: #ffffff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.contacts-sticky-table thead th .sort-header-button {
    color: #ffffff;
}

.contacts-sticky-table thead th .sort-header-button:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* V127 Personalübersicht: EK-Stundensatz ein-/ausblendbar */
.contacts-rate-toggle {
    align-self: center;
    padding: 9px 10px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
}


/* V128 Benutzeraktivität */
.activity-details {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}


/* V129 Countdown bis automatische Abmeldung */
.session-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #bfd0e7;
    border-radius: 8px;
    background: #eef5ff;
    color: #0B2E6D;
    font-size: 13px;
    white-space: nowrap;
}

.session-countdown strong {
    font-variant-numeric: tabular-nums;
}

.session-countdown.session-countdown-warning {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}


/* V133 Kunden/Kundennummer */
.timesheet-settings select[name="customer_id"] {
    min-width: 260px;
}


/* V1.0.138 Auswahlbuttons Personalübersicht */
.table-actions .secondary-button {
    margin-right: 6px;
}


/* V1.0.142 Chipnummer inline in Personalübersicht */
.inline-chip-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}
.chipnr-inline-input {
    min-width: 110px;
    max-width: 150px;
}
