.crm-exporter-wrapper {
    margin: 10px 0;
    display: inline-block;
}

.crm-export-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff !important;
    color: #173624 !important;
    border: 1px solid #173624 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crm-export-trigger-btn:hover {
    background-color: #173624 !important;
    color: #ffffff !important;
}

.crm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.crm-modall-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.crm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.crm-modal-header h3 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
}

.crm-modal-close {
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

.crm-modal-body {
    padding: 20px;
}

.crm-step-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.crm-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 6px;
}

.crm-checkbox-group label,
.crm-format-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1e293b;
    cursor: pointer;
}

/* تغییر رنگ تیک چک‌باکس‌ها و دکمه‌های رادیویی به رنگ سبز اختصاصی */
.crm-checkbox-group input[type="checkbox"],
.crm-format-options input[type="radio"] {
    accent-color: #173624 !important;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.crm-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 15px 0;
}

.crm-format-options {
    display: flex;
    gap: 20px;
}

/* وضعیت و لودر */
.crm-status-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.crm-status-box.crm-loading {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.crm-status-box.crm-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.crm-modal-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* اصلاح اولویت استایل دکمه ثبت خروجی */
#crm-exporter-modal .crm-btn-primary {
    background-color: #173624 !important;
    color: #ffffff !important;
    border: 1px solid #173624 !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

#crm-exporter-modal .crm-btn-primary span {
    color: inherit !important;
}

#crm-exporter-modal .crm-btn-primary:hover:not(:disabled) {
    background-color: #ffffff !important;
    color: #173624 !important;
    border-color: #173624 !important;
}

#crm-exporter-modal .crm-btn-primary:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    cursor: not-allowed;
}