/* Snug Affiliate Staff Management */

/* Invite form */
.snug-staff-invite {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 480px;
}

.snug-staff-invite-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.snug-staff-invite-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Message banner */
.snug-staff-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.snug-staff-message--success {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #00a32a;
}

.snug-staff-message--error {
    background: #fcf0f0;
    border: 1px solid #d63638;
    color: #d63638;
}

/* Staff table */
.snug-staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.snug-staff-table thead {
    background: #f8f9fa;
}

.snug-staff-table th,
.snug-staff-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.snug-staff-table th {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.snug-staff-table td small {
    color: #999;
    font-size: 12px;
}

/* Action buttons */
.snug-staff-action {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    margin-right: 4px;
    transition: background 0.15s ease;
}

.snug-staff-action:hover {
    background: #eee;
}

.snug-staff-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.snug-staff-action--danger {
    color: #d63638;
    border-color: #d63638;
}

.snug-staff-action--danger:hover {
    background: #fcf0f0;
}

.snug-staff-self {
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .snug-staff-invite {
        flex-direction: column;
    }

    .snug-staff-invite-input {
        width: 100%;
    }

    .snug-staff-table {
        font-size: 13px;
    }

    .snug-staff-table th:nth-child(5),
    .snug-staff-table td:nth-child(5) {
        display: none;
    }
}
