.modal-box-600 {
    max-width: 600px !important;
}

.modal-box-650 {
    max-width: 650px !important;
}

.modal-box-700 {
    max-width: 700px !important;
}

.modal-box-750 {
    max-width: 750px !important;
}

.modal-box-800 {
    max-width: 800px !important;
}

.modal-box-850 {
    max-width: 850px !important;
}

.fieldset-legend {
    font-weight: bold;
    font-size: 13px;
    padding: 0;
    margin-bottom: 5px !important;
}

/*.fieldset {*/
/*    min-width: 250px !important;*/
/*}*/

.fl-wrapper {
    z-index: 20000 !important;
}

.input:focus, .input:focus-within,
.select:focus, .select:focus-within,
.textarea:focus, .textarea:focus-within,
.checkbox:focus, .checkbox:focus-within,
.radio:focus, .radio:focus-within, .file-input:focus-within {
    border: 2px solid #3b25c1 !important;
    outline: 0 !important;
}

.customs-overlay-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 12%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    user-select: none;
}

.customs-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.bg-yellow-500 {
    background-color: #f59e0b !important;
    color: white;
}

.map-container {
    width: 100%;
    max-width: 900px; /* حد أقصى للعرض على الشاشات الكبيرة */
    margin: 20px auto; /* لتوسيط الحاوية وإضافة هوامش رأسية */
}

/* اختياري: لتقليل ارتفاع الخريطة على الشاشات الصغيرة جدًا */
@media (max-width: 600px) {
    .map-container #regions_div {
        height: 350px !important;
    }
}

.loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid oklch(58.5% .233 277.117);
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border-bottom: 4px solid oklch(58.5% .233 277.117);
    border-left: 4px solid transparent;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-blue-500 {
    background-color: #3b25c1 !important;
    color: white;
}

.badge {
    white-space: nowrap;
    color: white;
}

.text-secondary {
    color: #6c757d !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-orange-500 {
    color: #f59e0b !important;
}

.text-blue-500 {
    color: #3b25c1 !important;
}

.trix-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.trix-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.sun-editor {
    width: 100% !important;
}

.se-wrapper-inner {
    min-height: 300px !important;
}
.sun-editor-editable[dir="rtl"] ul,
.sun-editor-editable[dir="rtl"] ol {
    direction: rtl; /* هذه هي القاعدة الأهم لضبط اتجاه القائمة */
    list-style-position: outside; /* يضمن أن تكون العلامات خارج كتلة النص */
    padding-right: 40px; /* ننقل المسافة البادئة الافتراضية إلى اليمين */
    padding-left: 0;
}

.sun-editor-editable[dir="rtl"] li {
    text-align: right; /* يضمن محاذاة النص داخل كل عنصر في القائمة لليمين */
}

/* باقي الـ CSS الخاص بالـ Loader نفسه وبحركة الدوران كما هو */
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #4F46E5; /* لون Indigo 600 */
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-overlay {
    position: fixed; /* لتثبيته في الشاشة */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* تم التعديل هنا: خلفية شبه معتمة (80% عتامة) */
    display: flex; /* لمركزة اللودر في المنتصف */
    justify-content: center; /* لمركزة اللودر أفقياً */
    align-items: center; /* لمركزة اللودر رأسياً */
    z-index: 9999; /* لضمان ظهوره فوق كل العناصر الأخرى */
    transition: opacity 0.3s ease-in-out; /* لجعل عملية الإخفاء سلسة */
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-left: 4px solid #9333EA; /* لون Pink 600 */
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-orange-500 {
    background-color: #f59e0b !important;
    color: white;
}

.bg-gray-500 {
    background-color: #6b7280 !important;
    color: white;
}

.bg-green-500 {
    background-color: #22c55e !important;
    color: white;
}

.bg-red-500 {
    background-color: #ef4444 !important;
    color: white;
}

.bg-blue-500 {
    background-color: #3b25c1 !important;
    color: white;
}
.badge-soft{
    background-color: rgba(59, 37, 193, 0.1) !important;
    color: #3b25c1 !important;
}

.md\:grid-cols-5 {
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
}
.fieldset{
    min-width: 190px !important;
}
/*ol {*/
/*    list-style-type: decimal !important;*/
/*    margin-left: 1rem !important;*/
/*    padding-left: 1rem !important;*/
/*    margin-right: 1rem !important;*/
/*    padding-right: 1rem !important;*/
/*}*/

/*ul {*/
/*    list-style-type: disc !important;*/
/*    margin-left: 1rem !important;*/
/*    padding-left: 1rem !important;*/
/*    margin-right: 1rem !important;*/
/*    padding-right: 1rem !important;*/
/*}*/
@media (min-width: 640px) and (max-width: 1023px) {
    .sm-only\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-7 {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-8 {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-9 {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-10 {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-11 {
        grid-template-columns: repeat(11, minmax(0, 1fr));
    }

    .sm-only\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}
.badge-soft {
    background-color: gray !important;
    color: white !important;
}