.table td {
    vertical-align: middle;
}

.card {
    border-radius: 12px;
}

.employee-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 10px;
    align-items: center;
}

.employee-search-wrap {
    position: relative;
}

.employee-search-wrap i {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.employee-search-wrap .form-control {
    padding-inline-start: 38px;
}

.employee-count {
    color: #64748b;
    font-weight: 750;
    white-space: nowrap;
}

.system-users-panel {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #f7f9fc;
}

.system-users-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.system-users-panel-header h5 {
    margin: 0 0 4px;
    font-weight: 800;
    color: #0f172a;
}

.system-users-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.system-users-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
}

.system-users-list {
    display: grid;
    gap: 8px;
    max-height: min(56vh, 520px);
    overflow: auto;
    padding-inline-end: 4px;
}

.system-user-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.system-user-row:hover {
    border-color: #9bb8dc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.system-user-checkbox {
    width: 18px;
    height: 18px;
}

.system-user-main {
    min-width: 0;
}

.system-user-main strong,
.system-user-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-user-meta {
    color: #64748b;
    font-size: .82rem;
    margin-top: 3px;
}

.system-users-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dbe3ec;
}

@media (max-width: 768px) {
    .employee-toolbar {
        grid-template-columns: 1fr;
    }

    .system-users-panel {
        padding: 14px;
    }

    .system-users-panel-header {
        flex-direction: column;
    }

    .system-users-toolbar {
        grid-template-columns: 1fr;
    }

    .system-user-row {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .system-user-row .badge {
        grid-column: 2;
        width: max-content;
    }

    .system-users-actions {
        flex-direction: column-reverse;
    }

    .system-users-actions .btn {
        width: 100%;
    }
}
