@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:Vazirmatn,Tahoma,sans-serif;line-height:1.8;color:#17243d;background:#f3f5f9;--blue:#0754cf;--blue-dark:#0646b2;--navy:#17243d;--muted:#647089;--edge:#dfe5ef;--paper:#fff;--radius:12px;--ease-out:cubic-bezier(0.23,1,0.32,1);--motion-fast:160ms;--motion-normal:200ms;--motion-stagger:40ms}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:320px}
button,input,select,textarea,a,summary{-webkit-tap-highlight-color:transparent}
a{color:var(--blue);text-underline-offset:4px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #86b5ff;outline-offset:3px}
svg{width:21px;height:21px;flex:none;vertical-align:middle}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.4rem,5vw,1.8rem);font-weight:800;line-height:1.6;letter-spacing:-.025em}
h2{font-size:1.08rem;font-weight:800;margin-bottom:12px;line-height:1.8}
.top{background:#fff;border-bottom:1px solid var(--edge)}
.shell{max-width:1180px;margin:auto;padding-inline:clamp(16px,4vw,32px)}
.bar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-size:1.3rem;font-weight:900;color:var(--navy)}
.mark{width:36px;height:36px;border-radius:11px;background:var(--blue);color:white;display:grid;place-items:center}
.mark svg{width:25px;height:25px}
.nav{display:flex;align-items:center;gap:12px;font-size:.9rem;min-width:0}
.narrow{width:min(100% - 32px,560px);margin-inline:auto}
.admin{padding-block:28px 48px}
.intro{margin-bottom:22px}
.intro h2{margin-bottom:3px}
.intro p{color:var(--muted);font-size:.9rem;line-height:1.9;margin-top:4px;text-wrap:pretty}
.panel{background:var(--paper);border:1px solid var(--edge);border-radius:18px;padding:clamp(18px,4vw,28px);box-shadow:0 4px 20px #233e6105;min-width:0}
.stack{display:grid;gap:19px}
label,.field-label{display:grid;gap:8px;font-size:.9rem;font-weight:650;min-width:0}
input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:52px;padding:12px 14px;background:#fff;color:var(--navy);border:1px solid #cbd4e2;border-radius:var(--radius);font:inherit;font-size:16px;font-weight:450;line-height:1.7;letter-spacing:0;text-align:right;box-shadow:0 1px 2px #17243d04;scroll-margin-block:24px}
textarea{resize:vertical}
select{cursor:pointer}
.select-field{position:relative;min-width:0;width:100%}
.select-field>.select-native{position:absolute;inset:0 auto auto 0;width:1px;height:1px;min-height:1px;margin:0;padding:0;border:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap;opacity:0;pointer-events:none}
.select-field .select-input{padding-left:44px;cursor:pointer;background:#fff;color:var(--navy)}
.select-field .select-input[aria-autocomplete=list]{cursor:text}
.select-field .select-input:disabled{background:#f4f6fa;color:var(--muted);cursor:default}
.select-chevron{position:absolute;left:18px;top:21px;width:8px;height:8px;border-right:1.7px solid #647089;border-bottom:1.7px solid #647089;transform:rotate(45deg);pointer-events:none}
.select-field.is-open .select-chevron{transform:translateY(4px) rotate(225deg);border-color:var(--blue)}
.select-field.is-open .select-input{border-color:var(--blue);outline:3px solid #0754cf18;outline-offset:1px}
.select-popup{position:fixed;z-index:1000;background:#fff;border:1px solid #dbe4f1;border-radius:14px;box-shadow:0 12px 36px #17243d1c,0 2px 6px #17243d08;padding:6px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;font-family:Vazirmatn,Tahoma,sans-serif;font-size:16px;font-weight:450;line-height:1.7}
.select-option{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:9px;color:var(--navy);cursor:pointer;overflow-wrap:anywhere}
.select-option.is-active{background:#f0f5ff}
.select-option[aria-selected=true]{background:#eaf2ff;color:var(--blue);font-weight:600}
.select-option[aria-disabled=true]{color:#9ca6b6;cursor:default}
.select-check{display:inline-grid;place-items:center;width:18px;flex:none;font-size:18px;color:var(--blue)}
.select-empty{padding:22px 12px;text-align:center;font-size:.86rem;color:var(--muted)}
.field-error{font-size:.78rem;font-weight:450;line-height:1.8;color:#a93e38;margin-top:7px}
.select-input[aria-invalid=true]{border-color:#c86d65}
@media(hover:hover) and (pointer:fine){.select-option:not([aria-disabled=true]):hover{background:#f0f5ff}}
input[readonly]{background:#f4f6fa;color:var(--muted);border-color:var(--edge)}
input[type=checkbox]{width:21px;height:21px;accent-color:var(--blue);margin:3px 0 0;flex:none;cursor:pointer}
input:focus,textarea:focus,select:focus{border-color:var(--blue);outline:3px solid #0754cf18;outline-offset:1px}
input::placeholder,textarea::placeholder{color:#8590a3;opacity:1;font-family:inherit;font-size:inherit;font-weight:450;letter-spacing:0;text-align:right;direction:rtl}
input[dir=ltr],textarea[dir=ltr]{text-align:right;font-variant-numeric:tabular-nums}
button,.primary,.secondary,.plain{font:inherit;cursor:pointer;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;border-radius:var(--radius);border:1px solid transparent;font-size:.93rem;font-weight:700;text-decoration:none;text-align:center;line-height:1.65;touch-action:manipulation;transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,transform var(--motion-fast) var(--ease-out),box-shadow var(--motion-fast) ease}
button:disabled{cursor:default;opacity:.5}
button:not(:disabled):active,.primary:active,.secondary:active{transform:scale(.985)}
.primary{background:var(--blue);color:#fff;box-shadow:0 3px 7px #0754cf13}
.secondary{background:#fff;color:var(--blue);border-color:#c5d7f1}
.plain{background:transparent;color:var(--blue)}
.small{min-height:44px;padding:8px 12px;font-size:.81rem}
.hint{font-weight:450;color:var(--muted);font-size:.79rem;overflow-wrap:anywhere;line-height:1.9}
.field-hint{margin-top:-14px}
.resend{margin-top:24px;padding-top:24px;border-top:1px solid var(--edge)}
.alert{margin-bottom:18px;padding:12px 14px;border-radius:11px;border:1px solid transparent;font-size:.83rem;line-height:1.95;overflow-wrap:anywhere}
.alert.warning{background:#fff7e8;border-color:#f4e2b9;color:#785215}
.alert.good{background:#eef8f1;border-color:#dcefe1;color:#2d6a40}
.alert a{overflow-wrap:anywhere}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.flow-page>.top{display:none}
.flow-shell{padding-block:32px 16px}
.flow-header{position:relative;background:var(--blue);color:#fff;border-radius:20px 20px 0 0;padding:18px 24px 42px}
.flow-header-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:38px}
.eyebrow{font-size:.82rem;font-weight:500;color:#e2edff}
.header-wordmark{display:flex;align-items:center;gap:7px;font-size:1rem;font-weight:800;color:#fff}
.wordmark-dot{width:5px;height:5px;background:#fff;border-radius:50%;opacity:.8}
.header-back{color:#fff;background:transparent;width:44px;min-height:44px;padding:10px;margin-left:-10px;border-radius:10px}
.header-back svg{width:25px;height:25px}
.flow-header h1{margin:0 0 22px;font-size:1.5rem;line-height:1.6}
.header-description{font-size:.87rem;color:#e2edff;margin-top:-12px;line-height:1.8}
.flow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:0 -8px}
.flow-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;color:#e0eaff;font-size:.75rem;line-height:1.6}
.flow-steps li:not(:last-child)::after{content:'';position:absolute;top:13px;right:calc(50% + 14px);width:calc(100% - 28px);height:2px;background:#a4c4f5}
.flow-steps .complete::after{background:#fff}
.step-circle{display:grid;place-items:center;width:28px;height:28px;border:1.5px solid #b7d1fa;border-radius:50%;font-weight:650;font-size:.85rem;z-index:1}
.step-circle svg{width:17px;height:17px;stroke-width:2.4}
.flow-steps .active .step-circle,.flow-steps .complete .step-circle{background:#fff;color:var(--blue);border-color:#fff}
.flow-steps .active .step-label{color:#fff;font-weight:800}
.flow-surface{position:relative;margin-top:-20px;border:0;border-radius:24px 24px 18px 18px;padding:24px;box-shadow:0 12px 32px #1e3b6807;min-height:220px}
.flow-footer{text-align:center;color:#8590a3;font-size:.73rem;padding:20px 0 8px}
.auth{max-width:460px;padding-top:clamp(32px,8vh,88px)}
.auth .flow-header{padding-bottom:44px}
.auth .hint{margin-top:10px}
.otp-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--edge)}
.otp-actions form{min-width:0}
.otp-actions .plain{font-size:.8rem;padding-inline:8px;gap:7px}
.otp-actions button:disabled{color:var(--muted);opacity:1;cursor:default}
.otp-actions bdi{font-variant-numeric:tabular-nums;min-width:35px}
.otp-input{letter-spacing:.22em!important;text-align:center!important}
.otp-input::placeholder{text-align:center;letter-spacing:.22em}
.transaction{background:#f8faff;border:1px solid #e2e8f2;border-radius:12px;padding:13px 15px;margin-bottom:24px;display:flex;gap:16px;justify-content:space-between;font-size:.87rem}
.transaction div{display:grid;gap:2px;min-width:0}
.transaction div:last-child{text-align:left}
.transaction strong{font-weight:700;overflow-wrap:anywhere}
.customer-panel .intro{margin-bottom:20px}
.customer-panel .alert:last-child{margin-bottom:0}
.customer-panel .stack>.primary{width:100%;margin-top:3px}
.optional-card{border:1px solid var(--edge);border-radius:12px;padding:14px;margin-bottom:20px}
.optional-card form{margin-top:16px}
summary{font-size:.9rem;font-weight:650;cursor:pointer;color:var(--blue);min-height:32px;line-height:2}
summary .hint{margin-right:8px}
.consent{display:flex;align-items:flex-start;gap:10px;line-height:1.95;font-weight:500;font-size:.84rem;padding-block:4px;min-height:44px;cursor:pointer}
.return{margin-top:12px;text-align:center}
.return .plain{font-size:.82rem}
.confirmed-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:700;font-size:.88rem}
.confirmed-name>svg{color:#2d7647}
.payment{border:1px solid var(--edge);border-radius:14px;padding:18px;margin:0;min-width:0;background:#fff;gap:17px}
.payment>legend{padding:2px 12px;font-size:.86rem;font-weight:750;background:#edf2f9;border-radius:7px}
.payment-type{display:flex;gap:4px;padding:4px;border:1px solid var(--edge);border-radius:11px;margin:0;background:#f6f8fc;min-width:0}
.payment-type label{position:relative;flex:1;cursor:pointer;display:block}
.payment-type input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.payment-type span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px;border-radius:8px;font-size:.86rem;font-weight:550}
.payment-type input:checked+span{background:var(--blue);color:white;box-shadow:0 2px 5px #0754cf1c}
.payment-type input:focus-visible+span{outline:3px solid #86b5ff;outline-offset:2px}
.payment-total{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f1f4f9;border-radius:11px;padding:13px 15px;font-size:.86rem}
.payment-total strong{font-size:1rem}
.payment-total small{font-weight:500}
.add-payment{border-style:dashed;min-height:48px}
.upload-field{display:grid;gap:8px;min-width:0}
.receipt-upload{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#f0f5ff;border:1px dashed #aac4ec;border-radius:12px;padding:18px 14px;min-height:92px;cursor:pointer}
.receipt-upload input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:1;min-height:100%;width:100%}
.receipt-upload:focus-within{outline:3px solid #86b5ff;outline-offset:2px}
.upload-icon{color:var(--blue);display:flex}
.upload-icon svg{width:25px;height:25px}
.upload-caption{display:grid;gap:3px;flex:1;min-width:100px}
.upload-caption strong{color:var(--blue);font-size:.87rem}
.upload-caption .hint{font-size:.71rem}
.upload-preview{width:55px;height:65px;object-fit:contain;background:#fff;border:1px solid var(--edge);border-radius:6px}
.signature{position:relative;border:1.5px solid #c4cfdf;border-radius:14px;background:#fff;overflow:hidden}
.signature::after{content:'';position:absolute;left:28px;right:28px;bottom:24%;border-bottom:1px dashed #e0e6ef;pointer-events:none}
.signature canvas{position:relative;z-index:1;width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}
.signature-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#98a2b3;font-size:.9rem;pointer-events:none}
.clear{justify-self:end;min-height:44px;font-size:.83rem}
.signature+.hint{margin-top:0}
.facts{padding:0;margin:0 0 20px}
.facts>div{display:grid;grid-template-columns:minmax(90px,1fr) 1.5fr;gap:10px;border-bottom:1px solid #e9edf4;padding:10px 0;font-size:.83rem}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.checks{display:grid;gap:10px;margin-bottom:24px;padding:14px;background:#f8faff;border:1px solid #e8eef6;border-radius:12px}
.checks>div,.proof-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:.78rem}
.pill{display:inline-block;color:#5d6b80;background:#eef1f6;border-radius:6px;padding:3px 8px;font-size:.7rem;font-weight:550;white-space:normal;line-height:1.7}
.pill.verified{background:#eaf6ed;color:#2c7144}
.pill.mismatch,.pill.unavailable{background:#fff2d9;color:#805718}
.proof{margin-bottom:12px;border:1px solid var(--edge);border-radius:12px;padding:13px}
.proof-top bdi{overflow-wrap:anywhere}
.proof img{display:block;max-width:100%;max-height:220px;object-fit:contain;margin:12px auto 0;border-radius:5px}
.statement{border-right:3px solid #7eacef;padding:14px;margin:18px 0;background:#f3f7ff;border-radius:8px;font-size:.86rem;line-height:2.1}
.receipt-document>.hint{margin:12px 0}
.receipt-document+.primary{width:100%;margin-top:20px}
.signed{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--edge);padding-top:16px;gap:10px}
.signed img{width:48%;max-height:110px;object-fit:contain}
.emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#edf7f0;color:#2d7647;margin-bottom:16px}
.admin-heading{background:var(--blue);color:#fff;border-radius:18px;padding:25px 28px;margin-bottom:24px}
.admin-heading p{color:#dceaff;font-size:.88rem}
.admin-heading h1{margin-bottom:5px}
.admin-grid{display:grid;gap:22px;align-items:start}
.team{margin-top:22px}
.inside{margin-top:14px;padding:16px;background:#f7f9fc;border-radius:12px}
.filters{display:grid;gap:10px;margin-bottom:18px;align-items:end}
.row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding-block:20px;border-bottom:1px solid #e9edf4}
.row-title,.actions,.pagination,.new-link{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.row-title{margin-bottom:5px}
.new-link{justify-content:space-between}
.new-link>div{min-width:0;max-width:100%}
.pagination{justify-content:space-between;margin-top:18px}
.empty{padding:40px 8px;text-align:center;color:var(--muted);font-size:.9rem}
.export{margin-bottom:5px}
.export .secondary{width:100%}
.print-header{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px}
.document-body .narrow{margin-bottom:32px;max-width:720px;width:min(100% - 32px,720px)}
.printed h1{margin-bottom:20px}
.form-progress{margin:0;color:var(--blue);font-size:.8rem;line-height:1.8}
[aria-busy=true] .primary{opacity:.8;cursor:wait}
@media(hover:hover) and (pointer:fine){.primary:hover{background:var(--blue-dark)}.secondary:hover{background:#edf4ff}.plain:hover{background:#f0f5ff}.header-back:hover{background:#ffffff18}}
@media(min-width:800px){.admin-grid{grid-template-columns:minmax(280px,.8fr) minmax(380px,1.4fr)}.filters{grid-template-columns:1fr 1fr auto}.admin-grid>section:first-child{position:sticky;top:24px}.export .secondary{width:auto}}
@media(max-width:480px){.flow-page{background:#fff}.flow-shell{width:100%;padding-top:0;padding-bottom:0}.flow-header{border-radius:0;padding:15px 22px 42px}.flow-header h1{font-size:1.4rem}.flow-surface{padding:24px 20px;box-shadow:none;border-radius:24px 24px 0 0}.auth{padding-top:0}.auth .flow-header{padding-top:24px}.flow-footer{padding-top:4px}.payment{padding:15px}.bar{min-height:66px}.nav{gap:7px;font-size:.8rem}.admin{padding-block:16px 30px}.admin-heading{padding:20px}.transaction{font-size:.8rem;padding:12px;gap:10px}.checks>div{align-items:flex-start}.flow-steps{margin-inline:-4px}}
@media(prefers-reduced-motion:reduce){button,.primary,.secondary,.plain{transition:none}button:not(:disabled):active,.primary:active,.secondary:active{transform:none}}
@media(max-width:480px){
    .auth{min-height:100svh;display:flex;flex-direction:column;background:var(--paper)}
    .auth .flow-header{flex:none}
    .auth .flow-surface{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;padding-block:32px}
    .auth .flow-footer{flex:none;padding:18px 20px max(18px,env(safe-area-inset-bottom));border-top:1px solid #edf1f6}
}
html[data-input-mode=keyboard]{--motion-fast:0ms;--motion-normal:0ms;--motion-stagger:0ms}
.optional-details{border:1px solid var(--edge);border-radius:14px;background:#fff;container-type:inline-size}
.optional-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;min-height:76px;color:var(--navy);border-radius:14px;font-size:.9rem;line-height:1.7;transition:background-color var(--motion-fast) ease}
.optional-summary::-webkit-details-marker{display:none}
.optional-summary::marker{content:''}
.optional-summary>span:first-child{display:grid;gap:4px;min-width:0}
.optional-summary strong{font-weight:700}
.optional-summary .hint{font-size:.75rem;margin:0;font-weight:450}
.disclosure-chevron{display:grid;place-items:center;width:30px;height:30px;background:#edf3ff;border-radius:9px;flex:none;color:var(--blue)}
.disclosure-chevron::after{content:'';width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform var(--motion-normal) var(--ease-out)}
.optional-details[open]:not([data-closing]) .disclosure-chevron::after{transform:translateY(2px) rotate(225deg)}
.optional-details[open]:not([data-closing])>.optional-summary{background:#f5f8ff;border-radius:14px 14px 0 0}
.optional-grid{display:grid;gap:20px;padding:20px 16px;border-top:1px solid #e8edf5}
.optional-grid label{font-size:.85rem;gap:8px}
.optional-grid label>.hint{font-size:.73rem;line-height:1.8}
.optional-grid textarea{min-height:100px;resize:vertical}
.disclosure-content{display:flow-root}
@container(min-width:420px){.optional-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.optional-wide{grid-column:1/-1}}
input:not([type=checkbox]):not([type=radio]),select,textarea{transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background-color var(--motion-fast) ease}
.select-chevron{transition:transform var(--motion-fast) var(--ease-out),border-color var(--motion-fast) ease}
.select-popup{transform-origin:top right}
button[data-original-label]::before{content:'';width:14px;height:14px;flex:none;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;animation:emza-spin 800ms linear infinite}
@keyframes emza-spin{to{transform:rotate(360deg)}}
@media(hover:hover) and (pointer:fine){.optional-summary:hover{background:#f5f8ff}}
@media(prefers-reduced-motion:no-preference){
    .flow-header,.flow-surface,.admin-heading,.admin-grid>.panel,.team{transition:opacity var(--motion-normal) var(--ease-out),transform var(--motion-normal) var(--ease-out)}
    .flow-surface,.admin-grid>.panel:first-child{transition-delay:var(--motion-stagger)}
    .admin-grid>.panel:last-child,.team{transition-delay:calc(2 * var(--motion-stagger))}
    @starting-style{.flow-header,.flow-surface,.admin-heading,.admin-grid>.panel,.team{opacity:0;transform:translateY(4px)}}
}
html[data-input-mode=keyboard] button[data-original-label]::before{animation:none}
@media(prefers-reduced-motion:reduce){
    :root{--motion-fast:0ms;--motion-normal:0ms;--motion-stagger:0ms}
    button[data-original-label]::before{animation:none}
    .disclosure-chevron::after,.select-chevron{transition:none}
}
@page{size:A4;margin:11mm}
@media print{
    :root{background:#fff;font-size:13px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
    .document-body .narrow{width:100%;max-width:none;margin:0}
    .print-header{margin:0 0 10px}
    .print-header>a,.document-body .team{display:none}
    .printed{box-shadow:none;border:0;padding:0}
    .facts>div,.checks>div,.proof,.statement,.signed{break-inside:avoid}
    .facts>div{padding:6px 0}
    .checks{padding:10px;margin-bottom:14px}
    .proof img{max-height:130px}
    .proof{padding:8px;margin-bottom:8px}
    .statement{padding:10px;margin-block:12px}
}
.admin-menu-bar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--edge)}
.admin-menu{max-width:840px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;padding-block:9px}
.admin-menu a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 12px;border-radius:10px;color:var(--muted);font-size:.85rem;font-weight:550;text-decoration:none;white-space:nowrap;transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease}
.admin-menu a.active{background:#edf4ff;color:var(--blue);font-weight:750}
.admin-menu svg{width:19px;height:19px}
.admin-create-page{max-width:620px}
.admin-create-page .admin-heading{padding:20px 24px}
.admin-create-page .admin-heading h1{font-size:1.4rem}
.admin-workspace{max-width:840px}
.admin-workspace>.receipt-list,.admin-users-panel{width:100%}
.admin-workspace>.panel,.admin-create-page>.panel{transition:opacity var(--motion-normal) var(--ease-out),transform var(--motion-normal) var(--ease-out)}
.document-body .admin-menu-bar{margin-bottom:20px;border:1px solid var(--edge);border-radius:12px}
.document-body .admin-menu{padding-inline:8px}
@media(hover:hover) and (pointer:fine){.admin-menu a:hover{background:#f3f7fd;color:var(--blue)}}
@media(max-width:480px){.admin-menu{padding-inline:16px;gap:4px}.admin-menu a{gap:5px;padding-inline:8px;font-size:.8rem}.admin-menu svg{width:18px;height:18px}.admin-create-page .admin-heading{padding:18px 20px}}
@media(prefers-reduced-motion:no-preference){@starting-style{.admin-workspace>.panel,.admin-create-page>.panel{opacity:0;transform:translateY(4px)}}}
@media print{.admin-menu-bar{display:none}}
.customer.flow-shell{min-height:100svh;display:flex;flex-direction:column}
.customer>.flow-header{flex:none}
.customer>.flow-surface{flex:1 0 auto}
.customer>.flow-footer{flex:none;padding:18px 20px max(18px,env(safe-area-inset-bottom));border-top:1px solid #edf1f6;background:#fff}
@media(max-width:480px){
    .flow-page{min-height:100svh}
    .customer.flow-shell{background:#fff}
    .customer>.flow-surface{border-radius:24px 24px 0 0}
    .customer[data-receipt-step=mobile]>.flow-surface{display:flex;flex-direction:column;justify-content:center;padding-block:32px}
}
.flow-navigation{display:flex;flex-wrap:wrap;gap:10px}
.flow-navigation>.primary{flex:1 1 155px}
.flow-navigation>.secondary{flex:1 1 105px}

.customer .flow-header{padding:11px 22px 36px}
.customer .flow-header h1{margin:0 0 12px;font-size:1.25rem}
.customer .flow-header-top{min-height:28px}
.customer .flow-steps li{gap:3px;font-size:.7rem}
.customer .flow-steps .step-circle{width:24px;height:24px}
.customer .flow-steps li:not(:last-child)::after{top:11px}
.compact-transaction{align-items:center;flex-wrap:wrap;gap:4px 14px;padding:7px 10px;margin-bottom:14px;border-radius:9px;font-size:.75rem;color:var(--muted)}
.compact-transaction strong,.compact-transaction b{color:var(--navy)}
.customer .payment-instruction{margin:-7px 0 0}
.customer .payment-total{background:#edf4ff;border:1px solid #d8e7ff;color:var(--blue);font-weight:700;padding:13px 15px}
.customer .payment-total strong{font-size:1.35rem}
.payment-total-entry{display:grid;gap:8px}
.payment-total-entry small{font-size:.75rem;color:var(--muted)}
.payment-total-entry input{background:white}
.customer fieldset.payment{gap:12px;padding:12px}
.customer fieldset.payment .receipt-upload{min-height:58px;padding:9px 11px}
.customer fieldset.payment .upload-preview{max-height:47px}
.receipt-success{text-align:center;display:grid;justify-items:center;gap:10px;padding:40px 10px;color:#20613c}
.receipt-success .emblem{background:#e7f7ed;color:#24824d;margin-bottom:0}
.receipt-success .primary{margin-top:8px;background:#247844}
.customer[data-receipt-step=done] .flow-header{background:#247844}
.customer[data-receipt-step=done] .flow-header h1{margin-bottom:9px}
.customer[data-receipt-step=done] .header-description{display:none}
.validation-message{color:#a72e35;font-size:.8rem}
input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true],label:has(>[aria-invalid=true]),.signature:has([aria-invalid=true]){border-color:#c63640}
input[aria-invalid=true]:not([type=checkbox]),textarea[aria-invalid=true]{box-shadow:0 0 0 2px #c6364022}
label.receipt-upload:has([aria-invalid=true]){border:1px solid #c63640}
.toast-region{position:fixed;inset:auto 16px max(16px,env(safe-area-inset-bottom));z-index:1100;display:grid;justify-items:center;pointer-events:none}
.toast-message{pointer-events:auto;display:flex;align-items:center;gap:14px;width:min(100%,410px);padding:10px 15px;border-radius:11px;background:#842c36;color:#fff;box-shadow:0 8px 28px #17243d30;font-size:.9rem;justify-content:space-between}
.toast-dismiss{background:transparent;color:inherit;min-height:36px;padding:2px 8px;font-size:1.35rem}
@media(prefers-reduced-motion:no-preference){
    .toast-message{transition:transform 180ms var(--ease-out),opacity 180ms var(--ease-out)}
    @starting-style{.toast-message{opacity:0;transform:translateY(7px)}}
}
.notification-count{border-radius:100px;background:#e1f5eb;color:#20613c;min-width:18px;padding:0 4px;text-align:center;font-size:.7rem;line-height:1.5}
.toast-success{background:#20613c}
@media print{
    .receipt-print{margin:0;background:white;min-width:0;font:10.5pt/1.55 Vazirmatn,Tahoma,sans-serif}
    .receipt-print main.narrow{width:100%;margin:0;max-width:none}
    .receipt-print .print-header{border-bottom:1px solid #cbdaf1;padding-bottom:3mm;margin:0 0 3mm}
    .receipt-print .printed{border:0;box-shadow:none;padding:0}
    .receipt-print h1{font-size:19pt;margin:0 0 3mm}
    .receipt-print h2{font-size:11pt;margin:2.5mm 0 2mm}
    .receipt-print .print-totals{display:grid;grid-template-columns:1fr 1fr;gap:3mm;margin-bottom:3mm}
    .receipt-print .print-totals>div{display:grid;gap:.5mm;padding:2mm 3mm;border-radius:2mm;background:#eef4ff}
    .receipt-print .print-totals span{font-size:8.5pt;color:#4b5974}
    .receipt-print .print-totals strong{color:#18448c;font-size:13pt}
    .receipt-print .facts{display:grid;grid-template-columns:1fr 1fr;gap:0 4mm;margin:0 0 2mm}
    .receipt-print .facts>div{grid-template-columns:minmax(22mm,auto) 1fr;gap:1mm;font-size:8.5pt;line-height:1.5;padding:1.1mm 0}
    .receipt-print .facts dd{overflow-wrap:anywhere;min-width:0}
    .receipt-print .facts .print-wide-fact{grid-column:1/-1}
    .receipt-print .facts .receipt-note{grid-column:1/-1;white-space:normal}
    .receipt-print .checks{margin:0;padding:1.5mm 2mm;gap:.8mm}
    .receipt-print .receipt-proofs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2mm}
    .receipt-print .proof{margin:0;padding:1.5mm;min-width:0}
    .receipt-print .proof-top{display:flex;gap:.8mm;font-size:8pt;overflow-wrap:anywhere}
    .receipt-print .proof img{display:block;width:100%;height:27mm;max-height:27mm;object-fit:contain;margin:1mm 0 0}
    .receipt-print .hint,.receipt-print .alert,.receipt-print .statement{font-size:8pt;line-height:1.55;margin:1.4mm 0}
    .receipt-print .alert,.receipt-print .statement{padding:1.5mm 2mm}
    .receipt-print .pill{font-size:7pt;padding:.4mm 1mm}
    .receipt-print .signed{margin-top:2mm;padding-top:1.5mm}
    .receipt-print .signed img{width:43mm;height:17mm;object-fit:contain}
}

@media print{
    .receipt-print-dense .print-header{padding-bottom:1.5mm;margin-bottom:1.5mm}
    .receipt-print-dense h1{font-size:16pt;margin-bottom:2mm}
    .receipt-print-dense .print-totals>div{padding-block:1.5mm}
    .receipt-print-dense .print-totals strong{font-size:11pt}
    .receipt-print-dense .facts>div{font-size:7.8pt;line-height:1.35;padding-block:.7mm}
    .receipt-print-dense .facts .receipt-note{grid-template-columns:1fr;gap:.6mm}
    .receipt-print-dense .receipt-note dd{font-size:7.5pt;line-height:1.35}
    .receipt-print-dense .proof img{height:20mm;max-height:20mm}
    .receipt-print-dense .proof{padding:1mm}
    .receipt-print-dense .proof-top{font-size:7.4pt}
    .receipt-print-dense .holder-name-status{margin:.5mm 0}
    .receipt-print-dense .signed img{height:13mm}
}
