@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');
/* YH Mobile 1.0.1 — screen only, legacy selectors kept intact. */
[data-yh-ui] { display: none; }
@media screen and (max-width: 1023px) {
  html { --yh-ink:#213349; --yh-accent:#263e56; --yh-line:#d4dde6; --yh-bg:#f3f6f9; --yh-font:'Vazirmatn',Tahoma,sans-serif; }
  body { min-width:0 !important; margin:0 !important; padding:0 0 calc(82px + env(safe-area-inset-bottom)) !important; background:var(--yh-bg) !important; color:var(--yh-ink); font-family:var(--yh-font) !important; }
  button, input, select, textarea, .btn, .navbar, .well, table { font-family:var(--yh-font) !important; }
  *, *::before, *::after { box-sizing:border-box; }
  .container-fluid { width:100% !important; min-width:0 !important; padding:12px !important; }
  .container-fluid > .row-fluid { display:flex; flex-wrap:wrap; gap:12px; margin-top:0 !important; }
  .row-fluid > [class*="span"] { width:100% !important; min-width:0 !important; margin:0 !important; float:none !important; }
  .container-fluid > .row-fluid > .span2.nonprint { display:none !important; }
  .paddingtop-sidbar { margin-top:0 !important; }
  .well { min-width:0; max-width:100%; overflow:visible !important; margin-bottom:12px; border:1px solid var(--yh-line); border-radius:8px; box-shadow:none; }
  .well .title { width:100% !important; min-height:48px; padding:12px !important; line-height:1.8; margin:0 !important; height:auto !important; background:var(--yh-accent); }
  .well .title::after { content:""; display:block; clear:both; }
  .well .title .btn { margin:0 8px 0 0 !important; }
  .well .inner { padding:12px; max-width:100%; }
  .topest_nav { height:auto !important; min-height:0; }
  .topest_nav .main_logo { display:none !important; }
  .topest_nav ul { float:none !important; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
  .topest_nav ul li { float:none !important; padding:0 4px; margin:0; font-size:12px !important; line-height:1.8; }
  .topest_nav a { display:inline-flex; align-items:center; min-height:44px; padding:4px 8px; }
  [data-yh-ui="toolbar"] { display:flex; direction:rtl; align-items:center; gap:8px; position:sticky; top:0; z-index:1090; min-height:60px; background:linear-gradient(120deg,#1d3650,#304f6c); color:#fff; padding:8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); box-shadow:0 4px 18px #17283b26; }
  [data-yh-ui="title"] { display:block; flex:1; font-size:14px; font-weight:bold; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  [data-yh-ui] button { font:inherit; min-height:44px; min-width:44px; border:1px solid #ffffff55; color:inherit; background:#ffffff12; border-radius:12px; padding:8px 12px; cursor:pointer; transition:background .18s ease, transform .18s ease; }
  [data-yh-ui="toolbar"] button:active { transform:scale(.97); background:#ffffff28; }
  [data-yh-ui] button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid #c37700; outline-offset:2px; }
  [data-yh-ui] [hidden] { display:none !important; }
  html[data-yh-ready] .navbar { display:none; margin:0 !important; }
  html[data-yh-ready][data-yh-menu="open"] .navbar { display:block; position:fixed; top:68px; right:10px; left:10px; bottom:calc(78px + env(safe-area-inset-bottom)); z-index:1080; overflow:auto; overscroll-behavior:contain; border:1px solid #e4eaf0; border-radius:18px; background:#fff; box-shadow:0 18px 55px #13263c38; }
  html[data-yh-ready][data-yh-menu="open"] body::before { content:""; position:fixed; inset:0; z-index:1070; background:#15263b70; backdrop-filter:blur(3px); }
  .navbar-inner { border:0; border-radius:18px; min-height:0; padding:6px; background:#fff; box-shadow:none; }
  .navbar .container-fluid { padding:8px !important; }
  .navbar .nav { float:none !important; width:100% !important; margin:0 !important; display:flex; flex-wrap:wrap; }
  .navbar .nav > li { float:none !important; width:100% !important; }
  .navbar .divider-vertical { display:none !important; }
  .navbar .nav > li > a { min-height:50px; padding:13px 16px; line-height:24px; border-radius:12px; color:#24364b; font-size:15px; }
  .navbar .nav > li > a:hover, .navbar .nav > li.open > a { background:#eef4f9; color:#173c61; }
  .navbar .dropdown-menu { position:static !important; float:none !important; width:100% !important; min-width:0 !important; max-width:100%; margin:0 0 8px !important; padding:6px; box-shadow:none; border:0; border-radius:12px; background:#f5f8fb; }
  .navbar .dropdown-menu a { min-height:46px; white-space:normal; padding:11px 16px; border-radius:9px; }
  .navbar .dropdown-menu form { float:none !important; margin:8px !important; }
  .navbar .search-query { width:100% !important; min-height:44px; font-size:16px; }
  [data-yh-ui="rates"] { display:none; position:fixed; top:66px; right:12px; left:12px; z-index:1100; padding:16px; border:1px solid #e2e9f0; border-radius:16px; background:#fff; color:var(--yh-ink); box-shadow:0 16px 42px #17283b30; }
  [data-yh-ui="rates"][data-open="true"] { display:grid; gap:10px; }
  [data-yh-ui="rates"] strong { font-size:15px; margin-bottom:2px; }
  [data-yh-ui="rates"] a { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:48px; margin:0 !important; padding:10px 13px; border:1px solid #e1e9f0; border-radius:11px; background:#f7f9fb; color:#24364b; text-decoration:none; font-size:14px; }
  [data-yh-ui="rates"] a .left { float:none; margin-inline-start:auto; }
  [data-yh-ui="quicknav"] { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:center; gap:2px; position:fixed; right:8px; left:8px; bottom:calc(8px + env(safe-area-inset-bottom)); z-index:1060; min-height:62px; padding:6px 4px; border:1px solid #e7edf3; border-radius:18px; background:#fffffff2; box-shadow:0 8px 28px #17283b24; backdrop-filter:blur(16px); }
  [data-yh-ui="quicknav"] a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; min-height:48px; padding:3px 1px; border-radius:12px; color:#43566a; text-decoration:none; font-size:10px; line-height:1.2; text-align:center; }
  [data-yh-ui="quicknav"] a:active { background:#edf3f8; }
  [data-yh-ui="quicknav"] i { font-size:17px; line-height:1; }
  [data-yh-ui="quicknav"] span { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .form-horizontal { overflow:visible !important; max-width:100%; }
  fieldset { min-width:0; }
  .form-horizontal .control-group { display:block; max-width:100%; margin-bottom:16px; }
  .form-horizontal .control-label { display:block; float:none !important; width:100% !important; margin:0 0 6px !important; padding:0; text-align:right; }
  .form-horizontal .controls { margin:0 !important; width:100% !important; min-width:0; }
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]), select, textarea { max-width:100% !important; min-height:44px; font-size:16px !important; line-height:1.5; }
  .controls > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), .controls > select, .controls > textarea { width:100% !important; margin:0 0 8px !important; }
  input[type="checkbox"], input[type="radio"] { width:22px; height:22px; vertical-align:middle; }
  .btn, input[type="submit"], input[type="button"], input[type="reset"], button { min-height:44px; touch-action:manipulation; }
  .btn { white-space:normal; line-height:1.5; padding:10px 12px; }
  .selectize-control { max-width:100% !important; width:100% !important; }
  .selectize-input { min-height:44px; font-size:16px; padding:10px !important; }
  .selectize-input input { min-height:24px !important; width:auto !important; }
  .selectize-dropdown { font-size:16px; max-width:100%; z-index:1060; }
  .selectize-dropdown .option { min-height:44px; padding:10px; }
  #tablecontent, .table-responsive { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .well table.table, .well table.editablegrid { display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  #tablecontent table { display:table; width:max-content; min-width:100%; }
  .well table th, .well table td { min-width:88px; padding:10px; vertical-align:middle; }
  #paginator, .pagination, .nav-tabs { max-width:100%; overflow-x:auto; }
  #paginator a, .pagination a, .nav-tabs a { min-height:44px; min-width:44px; }
  #pagecontrol { float:none !important; margin:0 0 12px !important; }
  .modal.fade:not(.in) { pointer-events:none; }
  .modal { position:fixed !important; width:calc(100% - 24px) !important; max-width:680px; left:50% !important; right:auto !important; margin:0 !important; transform:translateX(-50%); top:12px !important; max-height:calc(100dvh - 24px); overflow:auto; }
  .modal-body { max-height:calc(100dvh - 180px); overflow:auto; }
  .modal-footer { display:flex; flex-wrap:wrap; gap:8px; }
  .modal .close { min-width:44px; min-height:44px; }
  .modal-backdrop { z-index:1040; }
  .jconfirm .jconfirm-box-container { width:calc(100% - 24px) !important; max-width:100% !important; margin:12px !important; }
  .boxy-wrapper { max-width:calc(100vw - 16px); }
  canvas, img, video { max-width:100%; }
  #wrapper, #container, #box { width:100% !important; min-width:0 !important; height:auto !important; }
  #wrapper { position:static !important; top:auto !important; right:auto !important; margin:0 !important; padding:24px 12px !important; }
  #container { margin:0 auto !important; max-width:480px; }
  #box { padding:12px; }
  #login-box { width:100% !important; float:none !important; padding:12px !important; }
  #login-description { display:none; }
  #login-box input.input-text { width:100% !important; }
  #login-box input.submit { min-height:48px; font-size:16px; }
  [data-yh-ui="status"] { display:block; direction:rtl; padding:10px 12px; line-height:1.8; font-size:13px; color:#663d00; background:#fff1cf; }
  [data-yh-ui="status"][hidden] { display:none; }
  @media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
}
@media print { [data-yh-ui] { display:none !important; } }
