/* =====================================================================
   📱 پوسته‌ی گوشی به زبانِ iOS 27 (۹ نوامبر ۲۰۲۶ — ماکتِ تأییدشده‌ی علیرضا «آره، بساز»)
   ۱) نوارِ بالا: آواتار لبه‌ی راست، زنگ کنارش، لوگوی کشیده‌ی GTA SILVER سمتِ چپ.
   ۲) زدنِ آواتار (یا «منو»ی نوارِ پایین) ⇒ یک برگه‌ی تمام‌قد از راست: سرِ «منو» + جستجو + کارتِ کاربر
      + کارهای حساب، بعد «بخش‌ها» (همان ریل)، بعد اپِ گوشی/گزارش مشکل و «خروج» قرمز.
   فقط ≤۶۰۰؛ تبلت و لپ‌تاپ دست نمی‌خورند. باید بعد از gta-taste.css و gta-people.css بیاید.
   لنگرها فیزیکی‌اند (right/left): <html> ltr است و پوسته rtl.
   ===================================================================== */
.gta-acct-btn, .gta-ph-wlogo, .gta-acct-top, .gta-acct-bot { display: none !important; }

@media screen and (max-width: 600px) {
  /* ── نوارِ بالا ── */
  html:root:not(.gta-print-doc) .mud-appbar {
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
  }
  html:root:not(.gta-print-doc) .mud-appbar .mud-toolbar-appbar { width: 100%; }
  html:root:not(.gta-print-doc) .mud-appbar .gta-tools-isl { width: 100%; }
  html:root:not(.gta-print-doc) .gta-tools-isl .gta-user-menu-host { display: none !important; }
  html:root:not(.gta-print-doc) .gta-tools-isl .gta-acct-btn {
    display: inline-flex !important; order: -1; align-items: center; justify-content: center;
    min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    /* ۲۷ نوامبر ۲۰۲۶: بی‌عکس — دایره‌ی tonal با آیکونِ آدمک، هم‌شکلِ زنگ */
    background: var(--gta-tonal); color: var(--gta-text-2);
  }
  html:root:not(.gta-print-doc) .mud-appbar .gta-tools-isl .gta-acct-btn .gta-user-av { width: 40px !important; height: 40px !important; }
  html:root:not(.gta-print-doc) .gta-tools-isl .gta-ph-wlogo {
    display: block !important; order: 99; margin-right: auto; pointer-events: auto;
    width: 116px; height: 38px; flex: none;
    background: url(img/logo-wide.webp) no-repeat; background-size: 150px 75px; background-position: -17px -19px;
  }
  html:root:not(.gta-print-doc).gta-dark .gta-tools-isl .gta-ph-wlogo { filter: brightness(0) invert(.9); }
  /* خانه‌ی شخصی سلام و «کمک» خودش را دارد ⇒ لوگو آن‌جا نمی‌آید */
  html:root:not(.gta-print-doc) .gta-tools-isl:has(.gta-ph-hello) .gta-ph-wlogo { display: none !important; }

  /* ── برگه‌ی «منو» ── */
  html:root:not(.gta-print-doc) .mud-drawer.mud-drawer-mini,
  html:root:not(.gta-print-doc).gta-dark .mud-drawer.mud-drawer-mini {
    top: 0 !important; right: 0 !important; left: auto !important; bottom: 0 !important;
    width: min(calc(88 * var(--gta-vw, 1vw)), 342px) !important; max-width: 342px !important;
    height: calc(100 * var(--gta-dvh, 1dvh)) !important; max-height: none !important;
    border-radius: 28px 0 0 28px !important;
    background: #f2f2f7 !important;
    box-shadow: 0 0 40px rgba(0,0,0,.22) !important;
  }
  html:root:not(.gta-print-doc).gta-dark .mud-drawer.mud-drawer-mini { background: #2c2c2e !important; } /* brand-check-ignore: canon night bg #2c2c2e, cards #3a3a3c */
  html:root:not(.gta-print-doc) .mud-drawer.mud-drawer-mini .mud-drawer-content {
    height: 100% !important; max-height: none !important; overflow-y: auto !important; overscroll-behavior: contain;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  }
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-appmenu-head { display: none !important; }
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-acct-top,
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-acct-bot { display: block !important; direction: rtl; }

  .gta-acct-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 10px; }
  .gta-acct-ttl { font-size: 34px; line-height: 41px; font-weight: 700; color: var(--gta-text); }
  .gta-acct-x {
    width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.78); color: var(--gta-text);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 4px rgba(0,0,0,.12), inset 0 0 0 .5px rgba(0,0,0,.06);
  }
  .gta-acct-x svg { width: 18px; height: 18px; }
  html.gta-dark .gta-acct-x { background: rgba(118,118,128,.32); color: #f2f2f7; box-shadow: none; }

  /* جستجو: خانه‌ی خاکستریِ iOS */
  .gta-acct-search {
    --ph-card: #fff; --ph-text: var(--gta-text); --ph-faint: var(--gta-text-3); --ph-soft: var(--gta-tonal);
    --ph-shadow: none; --ph-brand-ink: var(--gta-accent);
    margin: 0 16px 16px; position: relative; z-index: 3;
  }
  html.gta-dark .gta-acct-search { --ph-card: #3a3a3c; } /* brand-check-ignore: iOS night card */
  .gta-acct-search .ph-box { height: 40px; border-radius: 12px; background: rgba(118,118,128,.12); padding: 0 10px; gap: 6px; font-size: 17px; box-shadow: none; }
  .gta-acct-search .ph-box svg { width: 18px; height: 18px; }
  .gta-acct-search .ph-results { border-radius: 14px; }

  /* کارت‌ها */
  .gta-acct-card, .gta-acct-me,
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-rail-groups {
    margin: 0 16px 18px !important; background: #fff !important; border-radius: 12px !important; overflow: hidden;
  }
  html.gta-dark .gta-acct-card, html.gta-dark .gta-acct-me,
  html:root:not(.gta-print-doc).gta-dark .mud-drawer-mini.mud-drawer--open .gta-rail-groups { background: #3a3a3c !important; } /* brand-check-ignore: iOS night card */
  /* ستونِ محتوای کشو flex است ⇒ بی‌این، ریل تا ~۱۲۰ نقطه جمع می‌شد و خودش اسکرول می‌خورد؛ حالا کلِ برگه یک‌جا اسکرول می‌خورد */
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-rail-groups { padding: 0 !important; flex: none !important; width: auto !important; height: auto !important; max-height: none !important; overflow: hidden !important; }
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-acct-top,
  html:root:not(.gta-print-doc) .mud-drawer-mini.mud-drawer--open .gta-acct-bot { flex: none !important; }

  .gta-acct-me {
    display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); border: 0; padding: 12px 14px; cursor: pointer;
    text-align: right; font: inherit; color: var(--gta-text);
  }
  /* کشوی حساب: کارتِ پروفایل و کارهایش یک کارتِ گروهی می‌شوند؛ فلش از «‹» به «⌄» می‌چرخد */
  .gta-acct-me .gta-acct-chev { transition: transform .2s; }
  .gta-acct-me.open .gta-acct-chev { transform: rotate(-45deg); }
  .gta-acct-me.open { border-radius: 12px 12px 0 0 !important; margin-bottom: 0 !important; }
  .gta-acct-me.open + .gta-acct-drop { border-radius: 0 0 12px 12px !important; position: relative; }
  .gta-acct-me.open + .gta-acct-drop::before { content: ""; position: absolute; top: 0; right: 14px; left: 0; height: .5px; background: var(--gta-sep); z-index: 1; }
  .gta-acct-av {
    width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(160deg, #0A6B41, #003B23); color: #fff; font-size: 21px; font-weight: 600;
  }
  .gta-acct-av img { width: 100%; height: 100%; object-fit: cover; }
  .gta-acct-me-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .gta-acct-me-t b { font-size: 19px; font-weight: 600; }
  .gta-acct-me-t small { font-size: 14px; color: var(--gta-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .gta-acct-row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; background: none;
    cursor: pointer; font: inherit; color: var(--gta-text); text-align: right; position: relative;
  }
  .gta-acct-row + .gta-acct-row::before, .gta-acct-online + .gta-acct-row::before, .gta-acct-row + .gta-acct-online::before {
    content: ""; position: absolute; top: 0; right: 55px; left: 0; height: .5px; background: var(--gta-sep);
  }
  .gta-acct-online { position: relative; }
  .gta-acct-ic {
    width: 29px; height: 29px; border-radius: 7px; flex: none; display: grid; place-items: center;
    background: #8e8e93; color: #fff;
  }
  .gta-acct-ic .mud-icon-root { width: 18px; height: 18px; color: #fff !important; }
  .gta-acct-lbl { flex: 1 1 auto; font-size: 17px; }
  .gta-acct-chev { width: 8px; height: 8px; flex: none; border-left: 2px solid var(--gta-text-3); border-bottom: 2px solid var(--gta-text-3); transform: rotate(45deg); opacity: .7; margin-left: 4px; }
  .gta-acct-out .gta-acct-lbl { color: #ff3b30; }
  .gta-acct-out .gta-acct-ic { background: #ff3b30; } /* brand-check-ignore: iOS destructive red */
  html.gta-dark .gta-acct-out .gta-acct-lbl { color: #ff857c; }

  /* کلیدِ شب = سوییچِ iOS */
  .gta-acct-sw { width: 51px; height: 31px; border-radius: 16px; background: rgba(120,120,128,.16); position: relative; flex: none; transition: background .2s; }
  .gta-acct-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: right .2s; }
  .gta-acct-sw.on { background: #34c759; } /* brand-check-ignore: iOS switch green */
  .gta-acct-sw.on::after { right: 22px; }

  .gta-acct-cap { margin: 4px 32px 6px; font-size: 13px; color: var(--gta-text-2); }
}

/* =====================================================================
   🧾 سرِ «فاکتورِ فروش» روی گوشی (سرِ C + کارت‌های بالا، ۹ نوامبر ۲۰۲۶، تأییدِ علیرضا)
   عنوانِ بزرگِ سبز، وضعیت = واژه‌ی نارنجی در خطِ زیرِ عنوان، آرم پنهان (لوگوی کشیده در نوارِ بالاست)،
   تیترِ «فاکتور» و «خریدار و فروشنده» بالای هر کارت، مقدارها خاکستریِ آرام، شعبه/فروشنده متنِ ساده + فلشِ بالا‌پایین.
   ===================================================================== */
/* !important: قاعده‌ی محدودِ .inv-pill (با برچسبِ b-…) از قاعده‌ی سراسریِ ساده قوی‌تر است و قرص را روی لپ‌تاپ هم نشان می‌داد */
.inv-pill-ph, .inv-ph-cap, .inv-ph-only, .inv-ud { display: none !important; }
@media (max-width: 719px) {
  .inv-paper .inv-nav { height: 54px !important; padding: 4px 4px 0 !important; align-items: center !important; gap: 0 !important; }
  .inv-paper .inv-back { height: 44px !important; min-height: 44px !important; padding: 0 12px 0 16px !important; border-radius: 22px !important; font-size: 17px !important; font-weight: 400 !important; color: var(--m-acc) !important; gap: 6px !important; }
  .inv-paper .inv-back svg { width: 10px !important; height: 17px !important; }
  .inv-paper .inv-back, .inv-paper .inv-nav-cl { background: rgba(255,255,255,.72) !important; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 2px 12px rgba(0,0,0,.08), inset 0 0 0 .5px rgba(0,0,0,.06) !important; }
  html.gta-dark .inv-paper .inv-back, html.gta-dark .inv-paper .inv-nav-cl { background: rgba(44,44,46,.72) !important; box-shadow: 0 2px 12px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.08) !important; } /* brand-check-ignore: iOS dark glass */
  .inv-paper .inv-nav-cl { height: 44px !important; padding: 0 2px !important; border-radius: 22px !important; gap: 0 !important; align-items: center !important; }
  .inv-paper .inv-nav-cl > * { width: 44px !important; height: 44px !important; min-width: 44px !important; }
  .inv-paper .inv-nav-cl .inv-cir, .inv-paper .inv-nav-cl button { background: transparent !important; box-shadow: none !important; color: var(--gta-text) !important; width: 44px !important; height: 44px !important; border-radius: 22px !important; }
  .inv-paper .inv-nav-cl svg, .inv-paper .inv-nav-cl .mud-icon-root { width: 19px !important; height: 19px !important; color: var(--gta-text) !important; }
  .inv-paper .inv-nav-ttl, .inv-paper .inv-nav .inv-ttl { display: none !important; }

  .inv-paper .inv-hd { position: relative !important; display: block !important; padding: 0 4px !important; }
  .inv-paper .inv-hd-r { width: auto !important; margin: 0 !important; }
  .inv-paper .inv-logo { display: none !important; }
  .inv-paper .inv-hd .inv-ttl { display: block !important; font-size: 34px !important; line-height: 41px !important; font-weight: 700 !important; margin: 6px 12px 0 !important; padding: 0 !important; }
  .inv-paper .inv-hd .inv-ttl, .inv-paper .inv-hd .inv-ttl > span { color: var(--m-acc) !important; }
  html.gta-dark .inv-paper .inv-hd .inv-ttl, html.gta-dark .inv-paper .inv-hd .inv-ttl > span { color: #5fd08a !important; } /* brand-check-ignore: night title */
  .inv-paper .inv-hd .inv-ttl > .inv-pill { display: none !important; }
  .inv-paper .inv-sub { display: flex !important; align-items: center; gap: 8px; font-size: 15px !important; line-height: 20px; color: var(--m-txt2) !important; margin: 2px 12px 6px !important; padding: 0 !important; }
  .inv-paper .inv-sub .inv-pill-ph { display: inline !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 15px !important; font-weight: 600 !important; color: #c77700 !important; flex: none; } /* brand-check-ignore: iOS orange status */
  .inv-paper .inv-sub .inv-pill-ph::after { content: "·"; color: var(--m-txt3); font-weight: 400; margin-right: 8px; }
  html.gta-dark .inv-paper .inv-sub .inv-pill-ph { color: #ffb340 !important; } /* brand-check-ignore: iOS orange status night */

  html .inv-ph-cap { display: block !important; font-size: 13px; color: var(--m-txt3); margin: 22px 16px 6px; font-weight: 400; direction: rtl; }
  .inv-paper .inv-kv, .inv-paper .inv-buyer { grid-template-columns: 118px minmax(0,1fr) !important; width: auto !important; margin: 0 !important; }
  .inv-paper .inv-buyer { margin: 0 4px !important; }
  .inv-paper .inv-kv > span, .inv-paper .inv-buyer > .inv-bl { padding-inline: 16px 8px !important; color: var(--gta-text) !important; }
  .inv-paper .inv-kv > b, .inv-paper .inv-buyer > .inv-bv { padding-inline: 8px 16px !important; }
  .inv-paper .inv-kv > b, .inv-paper .inv-kv > b *, .inv-paper .inv-buyer > .inv-bv, .inv-paper .inv-buyer > .inv-bv * { font-weight: 400 !important; font-size: 15px !important; color: var(--m-txt2) !important; }
  .inv-paper .inv-kv > b small, .inv-paper .inv-buyer > .inv-bv small { font-size: 12px !important; opacity: .75; }
  .inv-paper .inv-buyer .inv-isl-name { color: var(--gta-text) !important; font-weight: 500 !important; }
  .inv-paper .inv-buyer .inv-tel bdi { color: var(--m-acc) !important; }
  .inv-paper .inv-kv-branch, .inv-paper .inv-bv-seller { align-items: center !important; }
  .inv-paper .inv-kv-branch .inv-chip, .inv-paper .inv-kv-branch button, .inv-paper .inv-bv-seller .inv-chip { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; color: var(--m-txt2) !important; font-size: 15px !important; display: inline-flex !important; align-items: center; }
  .inv-paper .inv-dk-only { display: none !important; }
  .inv-paper .inv-ph-only { display: inline !important; }
  .inv-paper .inv-ud { display: inline-flex !important; flex-direction: column; gap: 2px; margin-right: 6px; vertical-align: middle; }
  .inv-paper .inv-ud i { width: 5px; height: 5px; border-left: 1.5px solid var(--m-txt3); border-top: 1.5px solid var(--m-txt3); transform: rotate(45deg); }
  .inv-paper .inv-ud i + i { transform: rotate(225deg); }

  .inv-paper .inv-ed { padding-inline: 4px !important; }
  .inv-paper .inv-entry { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 8px 10px 4px !important; margin: 0 !important; }
  .inv-paper .inv-entry .mud-input-outlined-border { border: 0 !important; }
  .inv-paper .inv-entry .mud-input-control, .inv-paper .inv-entry .mud-input { border-radius: 10px !important; }
  .inv-paper .inv-entry .mud-input { background: rgba(118,118,128,.12) !important; }
  html.gta-dark .inv-paper .inv-entry .mud-input { background: rgba(118,118,128,.24) !important; }
  .inv-paper .inv-entry .inv-bc-btn { background: color-mix(in srgb, var(--m-acc) 12%, transparent) !important; color: var(--m-acc) !important; border: 0 !important; box-shadow: none !important; }
  html.gta-dark .inv-paper .inv-kv > *, html.gta-dark .inv-paper .inv-buyer > * { background: var(--m-win) !important; }
}
