/* Shared Actions Modal UI */
:root {
    --brand-primary: #15487B;
    --brand-secondary: #f57a36;
    --erp-action-border: #e9edf4;
    --erp-action-primary: #0d6efd;
    --erp-action-danger: #dc3545;
}

.erp-actions-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.erp-actions-modal .modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.erp-actions-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.erp-actions-modal__header-text {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.erp-actions-modal--rtl .erp-actions-modal__header-text,
.erp-actions-modal[dir="rtl"] .erp-actions-modal__header-text,
body.rtl .erp-actions-modal .erp-actions-modal__header-text {
    text-align: right;
}

.erp-actions-modal__body {
    padding: 1rem;
    text-align: start;
}

.erp-actions-modal--rtl .erp-actions-modal__body,
.erp-actions-modal[dir="rtl"] .erp-actions-modal__body,
body.rtl .erp-actions-modal .erp-actions-modal__body {
    text-align: right;
}

.erp-actions-modal__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.erp-actions-modal .action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--erp-action-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    text-align: start;
}

.erp-actions-modal--rtl .action-card,
.erp-actions-modal[dir="rtl"] .action-card,
body.rtl .erp-actions-modal .action-card {
    flex-direction: row-reverse;
    text-align: right;
}

.erp-actions-modal .action-card:hover,
.erp-actions-modal .action-card:focus-visible {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.erp-actions-modal .action-card--primary:hover,
.erp-actions-modal .action-card--primary:focus-visible {
    border-color: var(--erp-action-primary) !important;
    background: rgba(13, 110, 253, 0.05);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
}

.erp-actions-modal .action-card--danger:hover,
.erp-actions-modal .action-card--danger:focus-visible {
    border-color: var(--erp-action-danger) !important;
    background: rgba(220, 53, 69, 0.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.12);
}

.erp-actions-modal .action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.erp-actions-modal .action-icon i {
    font-size: 1.125rem;
    line-height: 1;
}

.erp-actions-modal .action-icon--primary {
    background-color: rgba(13, 110, 253, 0.15) !important;
    color: var(--erp-action-primary) !important;
}

.erp-actions-modal .action-icon--primary i {
    color: var(--erp-action-primary) !important;
}

.erp-actions-modal .action-icon--danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: var(--erp-action-danger) !important;
}

.erp-actions-modal .action-icon--danger i {
    color: var(--erp-action-danger) !important;
}

.erp-actions-modal .action-content {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.erp-actions-modal--rtl .action-content,
.erp-actions-modal[dir="rtl"] .action-content,
body.rtl .erp-actions-modal .action-content {
    text-align: right;
}

.erp-actions-modal .action-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
}

.erp-actions-modal .action-description {
    display: block;
    margin-block-start: 0.125rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1.35;
}

.erp-actions-modal .delete-action {
    border: 1px solid var(--erp-action-border);
    background: #fff;
    text-align: start;
}

.erp-actions-modal--rtl .delete-action,
.erp-actions-modal[dir="rtl"] .delete-action,
body.rtl .erp-actions-modal .delete-action {
    text-align: right;
}

.erp-actions-modal .btn-close-custom {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.erp-actions-modal .btn-close-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.erp-actions-modal .btn-close-custom:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }

.bg-brand-primary { background-color: var(--brand-primary) !important; color: #fff; }
.bg-brand-secondary { background-color: var(--brand-secondary) !important; color: #fff; }
.bg-brand-primary-transparent { background-color: rgba(21, 72, 123, 0.1); }
.bg-brand-secondary-transparent { background-color: rgba(245, 122, 54, 0.1); }

.bg-info-transparent { background-color: rgba(13, 202, 240, 0.1); }
.bg-success-transparent { background-color: rgba(25, 135, 84, 0.1); }
.bg-danger-transparent { background-color: rgba(220, 53, 69, 0.1); }
.bg-warning-transparent { background-color: rgba(255, 193, 7, 0.12); }
.bg-primary-transparent { background-color: rgba(13, 110, 253, 0.12); }

@media (max-width: 767.98px) {
    .erp-actions-modal .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .erp-actions-modal__body {
        padding: 0.875rem;
    }

    .erp-actions-modal .action-card {
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .erp-actions-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .erp-actions-modal__header {
        gap: 0.5rem;
    }
}
