/* Staff Grid Container */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Scrollable Container */
.staff-container-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Scrollbar refinement */
.staff-container-scroll::-webkit-scrollbar {
    width: 8px;
}

.staff-container-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.staff-container-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.staff-container-scroll::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--color-primary, #007bff);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Staff Card */
.staff-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
    /* For check icon positioning if needed */
}

.staff-card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Selected State */
.staff-card.selected {
    border-color: var(--color-primary, #007bff);
    background-color: #f0f7ff;
    /* Very light blue */
}

/* Avatar Circle */
.staff-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Info Section */
.staff-card .info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.staff-card .info .name {
    font-weight: 600;
    color: var(--text-main, #333);
    font-size: 0.95rem;
}

.staff-card .info .role {
    font-size: 0.75rem;
    color: var(--text-muted, #777);
    margin-top: 2px;
}

/* Check Icon */
.staff-card .check-icon {
    display: none;
    color: var(--color-primary, #007bff);
    font-size: 1.2rem;
    margin-left: 10px;
}

.staff-card.selected .check-icon {
    display: block;
}

/* Hidden Input */
.staff-card input[type="checkbox"] {
    display: none;
}