@import url("shell.css");
@import url("dashboard.css");
@import url("screens.css");
@import url("forms.css");

@font-face {
  font-family: Vazirmatn;
  src: url("vendor/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Persian fallback";
  src: local("Tahoma");
  size-adjust: 94.7%;
  ascent-override: 108.3%;
  descent-override: 56.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Arial fallback";
  src: local("Arial");
  size-adjust: 115.4%;
  ascent-override: 88.9%;
  descent-override: 46.5%;
  line-gap-override: 0%;
}
:root {
  color-scheme: light;
  --ink: #141418;
  --muted: #54535a;
  --label-ink: #45444b;
  --line: rgb(42 35 49 / .13);
  --field-line: #83838a;
  --paper: #fff;
  --card: #fffefc;
  --glass: rgb(255 255 255 / .62);
  --surface-filter: blur(18px) saturate(140%);
  --mint: #ccebd9;
  --sky: #cce4f6;
  --peach: #f5dcc4;
  --lavender: #e2d9f1;
  --cream: #faf3dc;
  --wash-mint: #bcebd1;
  --wash-butter: #f6ecc0;
  --wash-lilac: #d8cdf1;
  --focus: #333238;
  --focus-halo: rgb(20 20 24 / .2);
  --ok: #204a32;
  --ok-bg: #d9efdf;
  --warn: #5b400c;
  --warn-bg: #ffedbf;
  --danger: #822932;
  --danger-bg: #fbe0e3;
  --radius: 24px;
  --hero-radius: 32px;
  --radius-small: 16px;
  --pill: 999px;
  --highlight: inset 0 1px 0 rgb(255 255 255 / .7);
  --shadow: var(--highlight), 0 1px 2px rgb(20 20 40 / .04), 0 12px 32px -12px rgb(20 20 40 / .18);
  --shadow-hover: var(--highlight), 0 2px 5px rgb(20 20 40 / .07), 0 18px 36px -12px rgb(20 20 40 / .24);
  --primary: linear-gradient(180deg, #3a3a40, #0f0f12);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-title: 1.875rem;
  --text-number: 2rem;
  --plot-ink: #35393e;
  --plot-line: #dfe3de;
  --plot-muted: #505b58;
  --plot-paper: #f5f7f1;
  --plot-start: #3a3a40;
  --plot-end: #0f0f12;
  --plot-hatch: #c5cbc7;
  --ruler: #84958d;
  --dash-pad: clamp(16px, 2vw, 26px);
  --gradient:
    radial-gradient(ellipse at 91% 5%, var(--wash-mint) 5%, transparent 54%),
    radial-gradient(ellipse at 48% 35%, var(--wash-butter) 8%, transparent 49%),
    radial-gradient(ellipse at 2% 0%, var(--wash-lilac) 10%, transparent 50%),
    radial-gradient(ellipse at 9% 100%, var(--wash-lilac) 12%, transparent 65%);
}
*, *::after, *::before { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--cream);
  isolation: isolate;
  color: var(--ink);
  font-family: Vazirmatn, "Persian fallback", "Arial fallback", sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: -1;
  pointer-events: none;
  background-image: var(--gradient);
  filter: blur(86px);
  opacity: .8;
}
:where(main, section, article, div, nav, form, fieldset, dl, li) { min-inline-size: 0; }
:where(img, video, svg) { max-inline-size: 100%; }
:where(h1,h2,h3,p,dl,dd,ul,ol) { margin-block: 0; }
:where(h1,h2,h3) { text-wrap: pretty; }
h1 { font-size: var(--text-title); line-height: 1.22; font-weight: 300; }
h2 { font-size: var(--text-lg); font-weight: 400; }
h3 { font-size: var(--text-base); font-weight: 560; }
:where(h1,h2,h3) + :where(p,ul,ol,dl,form) { margin-block-start: var(--space-3); }
:where(p + p, ul + p, dl + p) { margin-block-start: var(--space-2); }
:where(ul,ol) { padding-inline-start: var(--space-6); }
:where(dd) { margin-inline-start: 0; }
:where(dt,small) { color: var(--muted); }
:where(button,input,select,textarea) { font: inherit; color: inherit; }
:where(button, .action, input[type=submit]) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-block-size: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--paper);
  padding: .55rem var(--space-4);
  cursor: pointer;
  text-decoration: none;
}
:where(a:not(.action)) { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .25em; }
:where(nav a, main a, summary) { min-block-size: 44px; display: inline-flex; align-items: center; gap: var(--space-2); }
:where(summary) { cursor: pointer; }
:where(button:disabled, input:disabled) { cursor: default; opacity: .65; }
:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
:where(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit]), select, textarea) {
  width: 100%; min-width: 0; max-width: 100%; min-height: 52px;
  background: var(--paper); border: 1px solid var(--field-line);
  border-radius: var(--radius-small); padding: .7rem .95rem;
}
:where(input, textarea, select):focus-visible {
  outline: 3px solid var(--focus-halo);
  outline-offset: 1px;
  border-color: var(--ink);
}
:where(input[type=checkbox], input[type=radio]) {
  width: 1.3rem; height: 1.3rem; margin: .7rem; vertical-align: middle; accent-color: var(--ink);
}
:where(textarea) { min-height: 6rem; resize: vertical; }
:where(label) { display: block; font-weight: 500; }
:where(fieldset) { margin: var(--space-4) 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-small); }
:where(legend) { padding-inline: var(--space-2); }
:where(form p, .lookup) { margin-block-end: var(--space-4); }
:where(.errorlist) { color: var(--danger); padding: .5rem 1.4rem; background: var(--danger-bg); border-radius: var(--radius-small); }
:where(.panel,article,.record,.report tbody tr) {
  background-color: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(18px)) {
  :where(.panel, article, .record) { background-color: var(--glass); backdrop-filter: var(--surface-filter); }
}
:where(.panel, article,.record) { padding: var(--space-4); }
:where(.status-badge) { padding: .15rem .65rem; font-size: var(--text-sm); border-radius: var(--pill); border: 1px solid var(--line); background: var(--cream); }
.status-badge[data-status="PENDING"] { color: var(--warn); background: var(--warn-bg); }
.status-badge[data-status="APPROVED"] { color: var(--ok); background: var(--ok-bg); }
.status-badge:is([data-status="REJECTED"],[data-status="BOUNCED"]) { color: var(--danger); background: var(--danger-bg); }
.figure, output { white-space: nowrap; overflow-wrap: normal; }
.report-scroll { max-inline-size: 100%; overflow-x: auto; }
.report { width: 100%; border-collapse: collapse; }
.report th, .report td { padding: .75rem; text-align: start; }
.report thead { display: none; }
.report, .report tbody { display: block; }
.report tr { display: block; margin-block: var(--space-3); padding: var(--space-2); }
.report td { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.report td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--text-sm); }
.report.profit-table { display: none; }
.profit-cards { display: grid; gap: var(--space-3); }
.profit-cards dl div { display: flex; justify-content: space-between; gap: var(--space-4); }
.sr-only,.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(.record-grid article, .directory a, .dash-panel, .money-card, .user-card) {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  :is(.record-grid article, .directory a, .dash-panel, .money-card, .user-card):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
@media(min-width: 768px) {
  :root { --text-title: 2.5rem; --text-number: 2.75rem; }
  :where(.panel, article, .record) { padding: var(--space-6); }
  .report, .report.profit-table { display: table; }
  .report thead { display: table-header-group; } .report tbody { display: table-row-group; }
  .report tr { display: table-row; } .report td { display: table-cell; }
  .report td, .report th { border-block-end: 1px solid var(--line); }
  .report td[data-label]::before,.profit-cards { display: none; }
  .report tbody tr { box-shadow: none; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: white; color: black; }
  body::before { display: none; }
  .controls, .filters, .filter-panel, .screen-only { display:none !important; }
  .report, .report.profit-table { display: table; }
  .report thead { display: table-header-group; } .report tbody { display: table-row-group; }
  .report tr { display: table-row; break-inside: avoid; } .report td { display: table-cell; }
  .report td[data-label]::before, .profit-cards { display:none; }
}
