/* Extra styles for the Filament admin/seller panels (loaded after Filament's own CSS). */
:root { --font-family: 'Vazirmatn', 'Vazirmatn Static', Tahoma, sans-serif; }
body, .fi-body { font-family: var(--font-family) !important; }
.fi-sidebar-nav-groups { gap: .25rem; }
.fi-topbar { backdrop-filter: blur(8px); }
.fi-input[dir=ltr], .ltr-input input { direction: ltr; text-align: left; }
.fi-fo-field-wrp .num input { font-variant-numeric: tabular-nums; }
.fi-ta-cell .toman::after { content: ' تومان'; font-size: .75em; opacity: .7; }
.fi-logo { font-weight: 800; }
@media (max-width: 640px) { .fi-main { padding-inline: .75rem; } }

/* ================= Order view (resources/views/filament/admin/orders/view.blade.php) ================= */
.pso { --pso-bg: #fff; --pso-bd: var(--gray-200, #e5e7eb); --pso-muted: var(--gray-500, #6b7280); --pso-soft: var(--gray-50, #f9fafb); --pso-text: var(--gray-950, #030712); color: var(--pso-text); }
.dark .pso { --pso-bg: var(--gray-900, #111827); --pso-bd: rgba(255,255,255,.1); --pso-muted: var(--gray-400, #9ca3af); --pso-soft: rgba(255,255,255,.04); --pso-text: #fff; }
.pso a { color: var(--primary-600, #6d28d9); }
.dark .pso a { color: var(--primary-400, #a78bfa); }
.pso-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .pso-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pso-stat { background: var(--pso-bg); border: 1px solid var(--pso-bd); border-radius: .9rem; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 0; }
.pso-stat-label { font-size: .72rem; color: var(--pso-muted); }
.pso-stat-value { font-size: 1.15rem; font-weight: 800; }
.pso-stat-sub { font-size: .82rem; font-weight: 600; line-height: 1.6; }
.pso-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .pso-grid { grid-template-columns: minmax(0, 1fr) 21rem; } }
.pso-main, .pso-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pso-card { background: var(--pso-bg); border: 1px solid var(--pso-bd); border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; }
.pso-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--pso-bd); }
.pso-card-head h3 { font-size: .95rem; font-weight: 800; margin: 0; }
.pso-muted { color: var(--pso-muted); font-size: .78rem; }
.pso-strong { font-weight: 800; }
.pso-small { font-size: .78rem; }
.pso-break { word-break: break-all; }
.pso-empty { padding: 1rem 1.1rem; color: var(--pso-muted); font-size: .85rem; margin: 0; }
.pso-link { font-size: .8rem; font-weight: 700; }
.pso-items { display: flex; flex-direction: column; }
.pso-item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--pso-bd); }
.pso-item:last-child { border-bottom: 0; }
.pso-thumb { width: 3.5rem; height: 3.5rem; border-radius: .7rem; object-fit: cover; background: var(--pso-soft); border: 1px solid var(--pso-bd); }
.pso-item-name { font-weight: 700; font-size: .9rem; line-height: 1.7; }
.pso-item-name a { color: inherit !important; }
.pso-item-name a:hover { color: var(--primary-600, #6d28d9) !important; }
.pso-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: .3rem; }
.pso-item-price { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; white-space: nowrap; }
@media (max-width: 640px) { .pso-item { grid-template-columns: 3rem minmax(0, 1fr); } .pso-item-price { grid-column: 2; align-items: flex-start; } .pso-thumb { width: 3rem; height: 3rem; } }
.pso-strike { text-decoration: line-through; color: var(--pso-muted); font-size: .75rem; }
.pso-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; background: var(--pso-soft); border: 1px solid var(--pso-bd); }
.pso-chip-primary { background: color-mix(in oklab, var(--primary-500, #8b5cf6) 12%, transparent); border-color: color-mix(in oklab, var(--primary-500, #8b5cf6) 30%, transparent); color: var(--primary-700, #6d28d9); }
.dark .pso-chip-primary { color: var(--primary-300, #c4b5fd); }
.pso-totals { background: var(--pso-soft); border-top: 1px solid var(--pso-bd); padding: .8rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; font-size: .85rem; }
.pso-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pso-totals .pso-green { color: #059669; }
.pso-grand { border-top: 1px dashed var(--pso-bd); padding-top: .6rem; margin-top: .2rem; font-weight: 800; font-size: 1.05rem; }
.pso-table-wrap { overflow-x: auto; }
.pso-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pso-table th { text-align: right; font-weight: 700; color: var(--pso-muted); font-size: .74rem; padding: .6rem 1.1rem; background: var(--pso-soft); border-bottom: 1px solid var(--pso-bd); white-space: nowrap; }
.pso-table td { padding: .7rem 1.1rem; border-bottom: 1px solid var(--pso-bd); white-space: nowrap; }
.pso-table tr:last-child td { border-bottom: 0; }
.pso-kv { display: flex; flex-direction: column; padding: .4rem 1.1rem; }
.pso-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--pso-bd); font-size: .85rem; }
.pso-kv > div:last-child { border-bottom: 0; }
.pso-kv > div > span:first-child { color: var(--pso-muted); font-size: .78rem; white-space: nowrap; }
.pso-kv > div > :last-child { text-align: left; }
.pso-address { margin: 0 1.1rem 1rem; padding: .75rem .9rem; border-radius: .75rem; background: var(--pso-soft); border: 1px solid var(--pso-bd); font-size: .85rem; line-height: 1.9; }
.pso-note-block { padding: .75rem 1.1rem; border-bottom: 1px solid var(--pso-bd); }
.pso-note-block:last-child { border-bottom: 0; }
.pso-note-block p { margin: .3rem 0 0; font-size: .85rem; line-height: 1.8; white-space: pre-line; }
.pso-note-admin { background: color-mix(in oklab, #f59e0b 8%, transparent); }
.pso-note { margin-top: .35rem; font-size: .8rem; padding: .45rem .65rem; border-radius: .55rem; background: var(--pso-soft); border: 1px solid var(--pso-bd); }
.pso-timeline { list-style: none; margin: 0; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.pso-timeline li { display: flex; gap: .8rem; position: relative; }
.pso-timeline li:not(:last-child)::after { content: ''; position: absolute; right: .3rem; top: 1.1rem; bottom: -1rem; width: 2px; background: var(--pso-bd); }
.pso-dot { width: .7rem; height: .7rem; border-radius: 999px; margin-top: .4rem; flex-shrink: 0; background: var(--pso-muted); box-shadow: 0 0 0 3px var(--pso-bg); position: relative; z-index: 1; }
.pso-badge { display: inline-flex; width: fit-content; align-items: center; border-radius: .5rem; padding: .2rem .6rem; font-size: .76rem; font-weight: 700; background: var(--pso-soft); border: 1px solid var(--pso-bd); }
.pso-badge.pso-success, .pso-dot.pso-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.pso-badge.pso-warning, .pso-dot.pso-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pso-badge.pso-danger, .pso-dot.pso-danger { background: #ffe4e6; color: #9f1239; border-color: #fecdd3; }
.pso-badge.pso-info, .pso-dot.pso-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.pso-badge.pso-primary, .pso-dot.pso-primary { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.pso-dot.pso-success { background: #10b981; } .pso-dot.pso-warning { background: #f59e0b; } .pso-dot.pso-danger { background: #f43f5e; } .pso-dot.pso-info { background: #3b82f6; } .pso-dot.pso-primary { background: #7c3aed; }
.dark .pso-badge.pso-success { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.dark .pso-badge.pso-warning { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.3); }
.dark .pso-badge.pso-danger { background: rgba(244,63,94,.15); color: #fda4af; border-color: rgba(244,63,94,.3); }
.dark .pso-badge.pso-info { background: rgba(59,130,246,.15); color: #93c5fd; border-color: rgba(59,130,246,.3); }
.dark .pso-badge.pso-primary { background: rgba(124,58,237,.18); color: #c4b5fd; border-color: rgba(124,58,237,.35); }

/* ───────── Jalali date picker (JalaliDatePicker field) ───────── */
.psjd { position: relative; }
.psjd-input { width: 100%; display: flex; align-items: center; gap: .5rem; min-height: 2.25rem; padding: .375rem .75rem; padding-inline-end: 2rem;
  border-radius: .5rem; background: #fff; border: 1px solid rgb(0 0 0 / .1); box-shadow: 0 1px 2px rgb(0 0 0 / .05); font-size: .875rem; text-align: start; cursor: pointer; color: rgb(3 7 18); }
.psjd-input:focus-visible { outline: 2px solid rgb(var(--primary-600, 124 58 237)); outline-offset: 1px; }
.psjd-input:disabled { cursor: not-allowed; opacity: .6; background: rgb(249 250 251); }
.psjd-ico { width: 1.1rem; height: 1.1rem; color: rgb(156 163 175); flex-shrink: 0; }
.psjd-placeholder { color: rgb(156 163 175); }
.psjd-value, .psjd-placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.psjd-clear { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; border-radius: 999px;
  border: 0; background: transparent; color: rgb(156 163 175); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.psjd-clear:hover { background: rgb(243 244 246); color: rgb(75 85 99); }
.psjd-pop { position: absolute; z-index: 60; top: calc(100% + .35rem); inset-inline-start: 0; width: 18.5rem; max-width: calc(100vw - 2rem);
  background: #fff; border: 1px solid rgb(0 0 0 / .08); border-radius: .85rem; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .25); padding: .75rem; }
.psjd-head { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .5rem; }
.psjd-title { display: flex; gap: .35rem; }
.psjd-nav { width: 2rem; height: 2rem; border-radius: .5rem; border: 0; background: rgb(243 244 246); font-size: 1.2rem; line-height: 1; cursor: pointer; color: rgb(55 65 81); }
.psjd-nav:hover { background: rgb(229 231 235); }
.psjd-sel { border: 1px solid rgb(229 231 235); border-radius: .45rem; padding: .2rem 1.6rem .2rem .45rem; font-size: .8rem; background-color: #fff; color: inherit; }
.psjd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .15rem; text-align: center; }
.psjd-week span { font-size: .7rem; color: rgb(156 163 175); padding: .25rem 0; font-weight: 600; }
.psjd-day { width: 100%; aspect-ratio: 1/1; border: 0; border-radius: .5rem; background: transparent; font-size: .8rem; cursor: pointer; color: rgb(31 41 55); }
.psjd-day:hover { background: rgb(237 233 254); }
.psjd-day.is-today { box-shadow: inset 0 0 0 1.5px rgb(167 139 250); font-weight: 700; }
.psjd-day.is-selected { background: rgb(124 58 237); color: #fff; font-weight: 700; }
.psjd-time { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgb(243 244 246); font-size: .8rem; color: rgb(75 85 99); }
.psjd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.psjd-link { border: 0; background: none; color: rgb(109 40 217); font-weight: 700; font-size: .8rem; cursor: pointer; }
.psjd-ok { border: 0; background: rgb(124 58 237); color: #fff; font-weight: 700; font-size: .8rem; padding: .3rem .9rem; border-radius: .5rem; cursor: pointer; }
.dark .psjd-input { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); color: #fff; }
.dark .psjd-pop { background: rgb(24 24 27); border-color: rgb(255 255 255 / .1); }
.dark .psjd-nav, .dark .psjd-sel { background-color: rgb(255 255 255 / .06); color: #e5e7eb; border-color: rgb(255 255 255 / .1); }
.dark .psjd-sel option { background: rgb(24 24 27); }
.dark .psjd-day { color: #e5e7eb; }
.dark .psjd-day:hover { background: rgb(139 92 246 / .25); }
.dark .psjd-time { border-color: rgb(255 255 255 / .08); color: #d1d5db; }
.dark .psjd-link { color: rgb(167 139 250); }
.dark .psjd-clear:hover { background: rgb(255 255 255 / .08); color: #e5e7eb; }
