/* ============================================================================
   القوائم المنسدلة القابلة للبحث (combo-select.js).
   الحقل يأخذ تنسيق الحقول النصية في كل صفحة (.field input، لوحة الإدارة، الوصل)،
   وهنا فقط: السهم، القائمة المنبثقة، والـ<select> الأصلي المخفي.
   الألوان بقيم احتياطية لأن صفحة الوصل لا تحمّل style.css.
   ============================================================================ */
.combo{position:relative;display:inline-block;vertical-align:middle;max-width:100%}
.combo.combo-block{display:block;width:100%}

.combo > .combo-input{width:100%;cursor:text;padding-inline-end:38px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e6b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:left 14px center}
.combo.is-open > .combo-input{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%230e6b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* الـ<select> الأصلي: موجود للإرسال فقط */
.combo > .combo-native{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;z-index:-1}

.combo-list{position:absolute;z-index:1000;margin:0;padding:6px;list-style:none;box-sizing:border-box;
    max-height:280px;overflow-y:auto;overscroll-behavior:contain;
    background:#fff;border:1px solid var(--border,#e8e3d3);border-radius:12px;
    box-shadow:0 12px 32px rgba(10,30,20,.16);direction:rtl;text-align:right;
    font-family:inherit;font-size:15px;line-height:1.5;color:var(--ink,#182420)}
.combo-list[hidden]{display:none}
.combo-option{padding:8px 12px;border-radius:8px;cursor:pointer}
.combo-option.is-active{background:var(--primary-light,#e7f3ea)}
.combo-option[aria-selected="true"]{font-weight:800;color:var(--primary,#0e6b3a)}
.combo-option[aria-disabled="true"]{color:#a4aea8;cursor:not-allowed}
.combo-group{padding:8px 12px 4px;font-size:12.5px;font-weight:800;color:var(--muted,#687a70)}
.combo-empty{padding:10px 12px;color:var(--muted,#687a70);font-size:14px}

@media print{.combo-list{display:none!important}.combo > .combo-input{background-image:none}}
