/* Удаление клиентов через согласование администратора */

.pending-delete-row {
    opacity: 0.45 !important;
    filter: grayscale(0.5);
    position: relative;
}

.pending-delete-row td {
    background: #f3f4f6 !important;
}

.pending-delete-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.btn-danger,
button.btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-danger:hover,
button.btn-danger:hover {
    background: #b91c1c !important;
}

.btn-danger-outline {
    background: #ffffff !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    min-width: 84px;
}

.btn-danger-outline:hover {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.row-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.row-actions-cell button {
    width: auto;
    min-width: 84px;
}

.delete-warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.admin-delete-requests-section {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 6px solid #dc2626 !important;
}

.admin-delete-requests-section h2 {
    color: #991b1b !important;
}

.admin-delete-requests-section .hint {
    color: #b91c1c !important;
}

.admin-delete-requests-section th {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
}

.deleted-clients-section {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 6px solid #475569 !important;
}

.deleted-clients-section h2 {
    color: #334155 !important;
}

.deleted-clients-section .hint {
    color: #64748b !important;
}

.deleted-clients-section th {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.delete-admin-popup {
    position: fixed;
    right: 16px;
    bottom: 92px;
    width: 360px;
    max-width: calc(100vw - 32px);
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 6px solid #dc2626;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.22);
    display: none;
}

.delete-admin-popup-title {
    font-weight: 900;
    color: #991b1b;
    margin-bottom: 8px;
}

.delete-admin-popup-reason {
    margin-top: 8px;
    background: #fef2f2;
    color: #7f1d1d;
    padding: 8px;
    border-radius: 10px;
    font-size: 13px;
}

.delete-admin-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.delete-admin-popup-actions button {
    min-height: 40px;
}

.admin-actions {
    grid-template-columns: repeat(6, 1fr) !important;
}

@media (max-width: 950px) {
    .row-actions-cell {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .row-actions-cell button {
        width: 100%;
    }

    .delete-admin-popup {
        left: 12px;
        right: 12px;
        bottom: 92px;
        width: auto;
    }

    .admin-actions {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .admin-actions button {
        font-size: 11px !important;
    }
}


/* Улучшение кнопок в строках: рядом и аккуратно */
.row-actions-cell {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

.row-actions-cell button,
.row-actions-cell .btn-light,
.row-actions-cell .btn-danger-outline {
    width: auto !important;
    min-width: 92px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.row-actions-cell .btn-light {
    background: #ffffff !important;
    color: #5b21b6 !important;
    border: 1px solid #8b5cf6 !important;
}

.row-actions-cell .btn-light:hover {
    background: #ede9fe !important;
}

.row-actions-cell .btn-danger-outline {
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

.row-actions-cell .btn-danger-outline:hover {
    background: #ffe4e6 !important;
    color: #9f1239 !important;
}

.admin-hidden-db {
    animation: adminDbFade .18s ease;
}

@keyframes adminDbFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.admin-actions button {
    white-space: normal !important;
    min-height: 46px !important;
    padding: 8px 8px !important;
}

@media (max-width: 950px) {
    .row-actions-cell {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .row-actions-cell button,
    .row-actions-cell .btn-light,
    .row-actions-cell .btn-danger-outline {
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-actions {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
