/* Admin: Entwurf 1 – breite Benutzerliste mit klar getrennten Arbeitsbereichen. */
html body #admin-users-view .admin-modern-shell {
    gap: 18px;
    padding: 18px clamp(14px, 2vw, 30px) 28px;
}

html body #admin-users-view .admin-modern-page-head {
    min-height: 76px;
    padding: 14px 20px;
}

html body #admin-users-view .admin-modern-page-head h2 { font-size: clamp(25px, 2.2vw, 31px); }

html body #admin-users-view .admin-modern-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    align-items: start;
}

html body #admin-users-view .admin-users-panel {
    width: 100%;
    align-self: stretch;
}

html body #admin-users-view .admin-modern-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

html body #admin-users-view .admin-modern-secondary > .admin-modern-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

html body #admin-users-view .admin-modern-user-table-wrap {
    width: calc(100% - 32px);
    max-height: min(720px, 66vh);
    overflow: auto;
}

html body #admin-users-view .admin-modern-user-table {
    min-width: 1120px;
}

html body #admin-users-view .admin-modern-user-table thead th {
    color: #60101b !important;
    border-right: 1px solid #e1e9eb !important;
    border-bottom: 1px solid #e6e6e7 !important;
    background: #fafafb !important;
    font-size: 12px;
}

html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(1) { width: 22%; }
html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(2) { width: 24%; }
html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(3) { width: 25%; }
html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(4) { width: 9%; }
html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(5) { width: 9%; }
html body #admin-users-view .admin-modern-user-table :is(th, td):nth-child(6) { width: 11%; }

html body #admin-users-view .admin-users-toolbar {
    grid-template-columns: minmax(180px, 440px) auto;
    justify-content: end;
}

html body #admin-users-view .admin-responsibilities-list {
    display: grid;
    gap: 8px;
    padding: 0 16px 16px;
}

html body #admin-users-view .admin-responsibilities-list .admin-system-row {
    width: 100%;
    min-width: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

html body #admin-users-view .admin-responsibilities-panel .admin-row-icon {
    color: #a40a1c !important;
}

html body #admin-users-view .admin-week-plan-approvers-panel[hidden] { display: none !important; }
html body #admin-users-view .admin-week-plan-approvers-panel {
    margin: 0 16px 16px;
    padding: 14px;
    border: 1px solid #e3e3e4;
    border-radius: 12px;
    background: #fafafb;
}
html body #admin-users-view .admin-week-plan-approvers-head,
html body #admin-users-view .admin-week-plan-approver-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
html body #admin-users-view .admin-week-plan-approvers-head { margin-bottom: 12px; }
html body #admin-users-view .admin-week-plan-approvers-head h4 { margin: 0; color: #60101b; font-size: 14px; }
html body #admin-users-view .admin-week-plan-approvers-head > button {
    border: 0;
    background: transparent;
    color: #52666c;
    font-size: 23px;
    cursor: pointer;
}
html body #admin-users-view .admin-week-plan-approvers-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
html body #admin-users-view .admin-week-plan-approver-row {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e9e9ea;
    border-radius: 9px;
    background: #fff;
}
html body #admin-users-view .admin-week-plan-approver-person { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
html body #admin-users-view .admin-week-plan-approver-person strong { color: #60101b; font-size: 13px; }
html body #admin-users-view .admin-week-plan-approver-person small { color: #65757a; font-size: 11px; }
html body #admin-users-view .admin-week-plan-approver-row .admin-basis-team-toggle { flex: none; }
html body #admin-users-view .admin-week-plan-approver-row .admin-basis-team-toggle:disabled { opacity: .55; cursor: wait; }
html body #admin-users-view .admin-week-plan-approvers-empty { padding: 10px; color: #65757a; font-size: 13px; }

html body #admin-users-view .admin-responsibilities-panel > .sonderfahrt-admin-email-panel {
    margin: 0 16px 16px;
    padding: 14px !important;
    border: 1px solid #e3e3e4;
    border-radius: 12px;
    background: #fafafb !important;
}

html body #admin-users-view .sonderfahrt-admin-email-panel[hidden] { display: none !important; }
@media (max-width: 420px) {
    html body #admin-users-view .admin-week-plan-approver-row { align-items: flex-start; flex-direction: column; }
}
html body #admin-users-view .sonderfahrt-admin-email-add { grid-template-columns: minmax(0, 1fr); }
html body #admin-users-view .sonderfahrt-admin-email-add button { width: 100%; }
html body #admin-users-view .sonderfahrt-admin-email-row { min-width: 0; }
html body #admin-users-view .sonderfahrt-admin-email-row span { overflow-wrap: anywhere; }

html body #admin-users-view .admin-modern-system-panel .admin-system-list {
    flex: 1;
}

html body #admin-users-view #admin-password-requests-section .admin-modern-panel-head {
    align-items: center !important;
}

html body #admin-users-view :is(.admin-inbox-preview-list, .admin-system-list) {
    min-width: 0;
}

html body #admin-users-view .admin-inbox-badge { background: #75111d; }

@media (max-width: 1199px) {
    html body #admin-users-view .admin-modern-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html body #admin-users-view #admin-password-requests-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    html body #admin-users-view .admin-modern-secondary { grid-template-columns: minmax(0, 1fr); }
    html body #admin-users-view #admin-password-requests-section { grid-column: auto; }
    html body #admin-users-view .admin-users-toolbar {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
    html body #admin-users-view .admin-modern-user-table-wrap {
        max-height: 62vh;
    }
}
