/* أزرار إدارة موحّدة — إضافة / تعديل / حذف */
.adm-act-group,
.fac-table-actions.adm-act-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 4;
    pointer-events: auto !important;
}

.adm-act-btn,
.fac-act-btn.adm-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    pointer-events: auto !important;
    touch-action: manipulation;
    line-height: 1;
    white-space: nowrap;
}

.adm-act-btn i,
.adm-act-btn svg,
.adm-act-btn [data-lucide] {
    width: 17px;
    height: 17px;
    pointer-events: none !important;
    flex-shrink: 0;
}

.adm-act-btn span {
    pointer-events: none;
}

.adm-act-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.adm-act-edit i,
.adm-act-edit svg {
    color: #fff !important;
    stroke: #fff !important;
}

.adm-act-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.adm-act-del {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.adm-act-del i,
.adm-act-del svg {
    color: #fff !important;
    stroke: #fff !important;
}

.adm-act-del:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.adm-act-pass {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.adm-act-pass i,
.adm-act-pass svg {
    color: #fff !important;
    stroke: #fff !important;
}

.adm-act-reply {
    background: linear-gradient(135deg, #6C4CF1, #4C2ECC);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(108, 76, 241, 0.35);
}

.adm-act-reply i,
.adm-act-reply svg {
    color: #fff !important;
    stroke: #fff !important;
}

.adm-act-btn:disabled,
.adm-act-btn.adm-act-busy {
    opacity: 0.65;
    cursor: wait;
    transform: none !important;
}

.adm-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6C4CF1 0%, #4C2ECC 100%) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(108, 76, 241, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.adm-add-btn i,
.adm-add-btn svg {
    width: 20px;
    height: 20px;
    color: #fff !important;
    stroke: #fff !important;
    pointer-events: none !important;
}

.adm-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 76, 241, 0.45);
}

.admin-header,
.dashboard-header,
.admin-header .header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-table .adm-act-group,
.data-table .adm-act-group,
.table-actions.adm-act-group {
    pointer-events: auto !important;
}

/* تجاوز قاعدة الأيقونات السوداء في admin-theme */
.admin-main .adm-act-btn i,
.admin-main .adm-act-btn svg,
.admin-main .adm-act-btn [data-lucide],
.admin-table .adm-act-btn i,
.admin-table .adm-act-btn svg,
.admin-table .adm-act-btn [data-lucide],
.data-table .adm-act-btn i,
.data-table .adm-act-btn svg,
.adm-add-btn i,
.adm-add-btn svg {
    color: #fff !important;
    stroke: #fff !important;
}

@media (max-width: 768px) {
    .adm-act-btn span {
        display: none;
    }

    .adm-act-btn {
        min-width: 40px;
        padding: 8px;
    }

    .adm-add-btn {
        width: 100%;
        justify-content: center;
    }
}
