#insightRequestsAdminSection .admin-card {
    margin-bottom: 0;
}

#insightRequestsAdminSection .setting-item + .setting-item {
    margin-top: 0;
}

.ir-org-label {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0 0;
}

.ir-request-list {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ir-request-row {
    padding: 1rem 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-section-insight-requests .ir-request-row:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.12);
}

.ir-request-row__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ir-request-row__title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.ir-request-row__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ir-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ir-action-btn i {
    font-size: 0.85rem;
}

.ir-action-btn--edit {
    color: #856404;
    border-color: rgba(255, 215, 0, 0.55);
}

.ir-action-btn--edit:hover {
    background: #fff9e6;
    border-color: #ffc107;
}

.ir-action-btn--delete {
    color: #721c24;
    border-color: #f5c6cb;
}

.ir-action-btn--delete:hover:not(:disabled) {
    background: #f8d7da;
    border-color: #f1aeb5;
}

.ir-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ir-action-btn:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.ir-form-help {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.ir-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ir-form-actions .btn-insight-requests,
.ir-form-actions .ir-form-delete-btn {
    width: 100%;
}

.ir-form-delete-btn {
    color: #721c24;
    border-color: #f5c6cb;
    background: #fff;
}

.ir-form-delete-btn:hover {
    background: #f8d7da;
}

#insightRequestFormModal .form-group {
    margin-bottom: 1rem;
    min-width: 0;
    max-width: 100%;
}

#insightRequestFormModal .modal-content {
    box-sizing: border-box;
    overflow-x: hidden;
}

#insightRequestFormModal form {
    max-width: 100%;
}

#insightRequestFormModal label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

#insightRequestFormModal input,
#insightRequestFormModal select,
#insightRequestFormModal textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
}

#insightRequestFormModal textarea {
    display: block;
    resize: vertical;
    min-height: 5rem;
    max-height: min(40vh, 320px);
    line-height: 1.45;
}

#insightRequestFormModal input:disabled,
#insightRequestFormModal select:disabled,
#insightRequestFormModal textarea:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

#insightRequestFormMessage {
    min-height: 1.25rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .ir-request-row__main {
        flex-direction: column;
        align-items: stretch;
    }

    .ir-request-row__actions {
        justify-content: flex-end;
    }
}

.ir-request-row__meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.35rem;
}

.ir-request-row__desc {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #555;
}

.ir-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e9ecef;
    color: #495057;
}

.ir-status--active {
    background: #d4edda;
    color: #155724;
}

.ir-status--draft {
    background: #fff3cd;
    color: #856404;
}

.ir-invite-meta {
    display: block;
    margin-top: 0.25rem;
    color: #666;
}

.ir-payout-meta {
    display: block;
    margin-top: 0.25rem;
    color: #0d6efd;
    font-weight: 500;
}

.ir-payout-hint {
    font-size: 0.85rem;
    color: #666;
    margin: 0.35rem 0 0;
}

.ir-status--processing {
    background: #cce5ff;
    color: #004085;
}

.ir-status--complete {
    background: #d4edda;
    color: #155724;
}

.ir-status--failed {
    background: #f8d7da;
    color: #721c24;
}

.ir-status--closed,
.ir-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

.ir-loading,
.ir-empty {
    font-size: 0.875rem;
    color: #666;
    margin: 1rem 0 0;
}

.ir-load-notice {
    font-size: 0.875rem;
    color: #856404;
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.ir-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin: 1rem 0 0;
}

#insightRequestDeleteModal {
    z-index: 5100;
}

#insightRequestBlockDeleteModal {
    z-index: 5100;
}

.ir-delete-modal-content {
    max-width: 480px;
    padding: 1.5rem 1.75rem;
}

.ir-delete-modal-name {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.ir-delete-modal-body {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.ir-delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ir-delete-modal-message {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    min-height: 1.25rem;
    color: #dc3545;
}
