/* یکسان‌سازی فونت در همه بخش‌های سامانه ونداد
   - دکمه‌ها، کادرها و منوهای کشویی همیشه فونت خود صفحه (وزیرمتن) را می‌گیرند
   - فهرست باز منوی کشویی در کروم/اج تازه (appearance: base-select) داخل صفحه و با همان فونت کشیده می‌شود؛
     در مرورگرهای قدیمی‌تر همان منوی معمولی ویندوز نمایش داده می‌شود */
button, input, select, textarea, optgroup, option { font-family: inherit; }
::file-selector-button { font-family: inherit; }

@supports (appearance: base-select) {
  select:not([multiple]):not([size]) { appearance: base-select; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
  select:not([multiple]):not([size]) > button { font: inherit; }
  select:not([multiple]):not([size])::picker-icon {
    content: ''; width: 9px; height: 9px; flex-shrink: 0; margin-inline-start: auto;
    border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg);
    opacity: .55; transition: transform .2s;
  }
  select:not([multiple]):not([size]):open::picker-icon { transform: translateY(2px) rotate(-135deg); }
  /* بخش‌هایی که خودشان فلش دارند */
  .select-wrap select::picker-icon, .tr-select select::picker-icon, .tr-year::picker-icon, select.no-icon::picker-icon { display: none; }

  select:not([multiple]):not([size])::picker(select) {
    appearance: base-select; font-family: inherit; font-size: 13.5px; direction: inherit;
    color: #1d2433; background: #fff; border: 1px solid #d8dde7; border-radius: 12px; padding: 5px;
    box-shadow: 0 18px 40px -14px rgba(16, 24, 40, .38); margin-block: 4px;
    max-height: min(380px, 60vh); overflow-y: auto; min-width: anchor-size(width);
  }
  select:not([multiple]):not([size]) option {
    font: inherit; padding: 7px 11px; border-radius: 8px; line-height: 1.6; white-space: normal;
    background: transparent; color: inherit; cursor: pointer; min-height: 0;
  }
  select:not([multiple]):not([size]) option:hover, select:not([multiple]):not([size]) option:focus-visible { background: #f1f3f8; outline: none; }
  select:not([multiple]):not([size]) option:checked { background: #fff0e6; color: #b84f12; font-weight: 700; }
  select:not([multiple]):not([size]) option:disabled { opacity: .45; cursor: default; }
  select:not([multiple]):not([size]) option::checkmark { display: none; }
  select:not([multiple]):not([size]) optgroup { font: inherit; font-weight: 700; color: #6b7385; padding: 6px 8px 2px; }
  select:not([multiple]):not([size]) optgroup option { font-weight: 400; color: #1d2433; }
}
