/* §74 Обменное бюро: экран обмена, курсы, касса валют, отчёты, табло для клиентов */
.fx .panel + .panel, .fx section.panel { margin-top: 16px; }
.fx-flag { font-size: 20px; line-height: 1; }
.fx-flag.big { font-size: 34px; }
.fx-ex { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .fx-ex { grid-template-columns: 1fr; } }
.fx-type { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.fx-type button { display: grid; gap: 2px; padding: 10px; text-align: center; height: auto !important; min-height: 64px; border-radius: 14px !important; }
.fx-type button b { font-size: 18px; }
.fx-type button small { font-size: 12px; opacity: .75; }
.fx-type button[data-type="buy"][aria-pressed="true"] { background: #1f8f5a; color: #fff; }
.fx-type button[data-type="sell"][aria-pressed="true"] { background: #2563eb; color: #fff; }
.fx-curs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-cur { width: 100%; display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border, rgba(127,127,127,.25)); background: var(--surface, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fx-cur[aria-selected="true"] { border-color: var(--accent, #2BB673); box-shadow: 0 0 0 2px var(--accent, #2BB673) inset; }
.fx-code { display: grid; } .fx-code b { font-size: 18px; } .fx-code small { font-size: 12px; opacity: .7; }
.fx-r { display: grid; justify-items: end; min-width: 84px; } .fx-r small { font-size: 11px; opacity: .65; } .fx-r b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fx-right { display: grid; gap: 12px; position: sticky; top: 12px; }
.fx-head { display: flex; align-items: center; gap: 12px; } .fx-head h2 { margin: 0; font-size: 22px; } .fx-head p { margin: 2px 0 0; }
.fx-in { display: grid; gap: 4px; } .fx-in span { font-size: 13px; opacity: .8; }
.fx-big { font-size: 28px !important; height: 56px !important; font-variant-numeric: tabular-nums; text-align: right; }
.fx-total { padding: 14px; border-radius: 12px; background: var(--fill, rgba(127,127,127,.12)); font-size: 18px; display: grid; gap: 2px; }
.fx-total b { font-size: 30px; font-variant-numeric: tabular-nums; } .fx-total small { font-size: 13px; opacity: .75; }
.fx-go { height: 56px; font-size: 18px; }
.fx-client { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.fx-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(43,182,115,.12); }
.fx-t { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.fx-t.buy { background: rgba(31,143,90,.15); color: #1f8f5a; } .fx-t.sell { background: rgba(37,99,235,.15); color: #2563eb; }
.fx-cancelled td { text-decoration: line-through; text-decoration-color: rgba(127,127,127,.6); }
.fx-rin { width: 120px; text-align: right; }
.fx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fx-card { display: flex; align-items: center; gap: 12px; margin: 0 !important; } .fx-card div { display: grid; gap: 2px; } .fx-card b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fx-card small { font-size: 12px; opacity: .75; } .fx-card.neg b { color: var(--danger-ink, #c0392b); }
.fx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fx-kpi { display: grid; gap: 4px; margin: 0 !important; } .fx-kpi b { font-size: 26px; font-variant-numeric: tabular-nums; } .fx-kpi small { opacity: .75; }
.fx-filters { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; } .fx-filters .input { width: auto; }
.fx-sum { margin: 8px 0; }
/* табло для клиентов — на весь экран, крупно */
.fx-board-on #main { position: fixed; inset: 0; z-index: 50; margin: 0; padding: 0; max-width: none; background: #07130d; }
/* значки валют (символ в кружке) и «Все курсы» на экране обмена */
.fx-sym { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 15px; line-height: 1;
  color: #fff; background: #64748b; vertical-align: middle; letter-spacing: -.02em; }
.fx-sym.big { width: 46px; height: 46px; font-size: 22px; }
.fx-sym.xl { width: 7vh; height: 7vh; font-size: 3.6vh; }
.fx-sym[data-c="USD"] { background: #15803d; } .fx-sym[data-c="EUR"] { background: #1d4ed8; } .fx-sym[data-c="RUB"] { background: #b91c1c; }
.fx-sym[data-c="KZT"] { background: #0891b2; } .fx-sym[data-c="CNY"] { background: #dc2626; } .fx-sym[data-c="UZS"] { background: #0f766e; font-size: 10px; }
.fx-sym.big[data-c="UZS"] { font-size: 13px; } .fx-sym.xl[data-c="UZS"] { font-size: 2vh; }
.fx-sym[data-c="TRY"] { background: #e11d48; } .fx-sym[data-c="GBP"] { background: #4338ca; } .fx-sym[data-c="KGS"] { background: #ca8a04; }
.fx-hr { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 4px 0 0; font-size: 15px; }
.fx-hr span { opacity: .65; } .fx-hr span.on { opacity: 1; } .fx-hr b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fx-head h2 small { font-size: 13px; font-weight: 500; }
.fx-allr { border-top: 1px solid var(--border, rgba(127,127,127,.2)); padding-top: 8px; display: grid; gap: 2px; }
.fx-allr-h, .fx-allr-r { display: grid; grid-template-columns: 1fr 90px 90px; align-items: center; gap: 8px; }
.fx-allr-h { font-size: 12px; opacity: .65; padding: 0 8px; } .fx-allr-h span:not(:first-child) { text-align: right; }
.fx-allr-r { grid-template-columns: 26px auto 1fr 90px 90px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.fx-allr-r .fx-sym { width: 24px; height: 24px; font-size: 12px; } .fx-allr-r .fx-sym[data-c="UZS"] { font-size: 8px; }
.fx-allr-r small { opacity: .6; font-size: 11px; } .fx-allr-r span { text-align: right; font-variant-numeric: tabular-nums; opacity: .7; } .fx-allr-r span.on { opacity: 1; font-weight: 700; }
.fx-allr-r[aria-pressed="true"] { background: var(--fill, rgba(127,127,127,.14)); }
.fx-allr-r:hover { background: var(--fill, rgba(127,127,127,.1)); }
/* §74.2 клиент сдаёт валюту — сколько выдать в каждой валюте */
.fx-po-r { display: grid; grid-template-columns: 26px auto 1fr 120px 112px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.fx-po-r .fx-sym { width: 24px; height: 24px; font-size: 12px; } .fx-po-r .fx-sym[data-c="UZS"] { font-size: 8px; }
.fx-po-r > small { opacity: .7; font-size: 12px; } .fx-po-r > span { text-align: right; font-variant-numeric: tabular-nums; }
.fx-po-r > span.on { font-weight: 700; font-size: 16px; } .fx-po-r.fx-po-main { background: var(--fill, rgba(127,127,127,.14)); }
.fx-po-r .btn-sm { white-space: nowrap; }
@media (max-width: 560px) { .fx-po-r { grid-template-columns: 24px auto 1fr auto; } .fx-po-r > small { display: none; } }

/* §74.3 смены */
.fx-shbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 14px;margin-bottom:12px;border-radius:12px;background:color-mix(in srgb,var(--ok,#16a34a) 12%,transparent);border:1px solid color-mix(in srgb,var(--ok,#16a34a) 35%,transparent)}
.fx-shbar.off{background:color-mix(in srgb,var(--warn,#d97706) 12%,transparent);border-color:color-mix(in srgb,var(--warn,#d97706) 40%,transparent)}
.fx-shbar > button{margin-left:auto}
.fx-shopen{max-width:520px;margin:40px auto;text-align:center;padding:28px}
.fx-shopen .fx-go{width:100%;margin-top:12px}
.fx-cnt .fx-cin{width:9em;text-align:right}
.fx-cdiff.ok{color:var(--ok,#16a34a);font-weight:600}
.fx-cdiff.neg,.fx-cwarn,b.neg,p.neg{color:var(--danger,#dc2626)}
.fx-shsum{font-size:1.05em}

/* §74.4 табло курсов */
.fx-board{--rows:7;min-height:100vh;height:100vh;box-sizing:border-box;padding:3.2vh 3.5vw 2.4vh;color:#f3fff8;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:2.4vh;overflow:hidden;width:100vw;
  background:radial-gradient(1200px 700px at 8% -10%,rgba(34,197,94,.28),transparent 60%),radial-gradient(900px 600px at 110% 110%,rgba(56,189,248,.18),transparent 60%),linear-gradient(160deg,#06140d,#03090a 70%);
  font-family:Inter,"Segoe UI",system-ui,sans-serif}
.fxb-h{display:flex;align-items:center;gap:2vw;min-width:0}
.fxb-brand{display:flex;align-items:center;gap:1.4vw;flex:1;min-width:0}
.fxb-logo{flex:none;display:grid;place-items:center;width:8vh;height:8vh;border-radius:2.2vh;background:linear-gradient(140deg,#4ade80,#16a34a);color:#03200f;font-weight:900;font-size:4.6vh;box-shadow:0 1vh 4vh rgba(34,197,94,.35)}
.fxb-brand b{display:block;font-size:4.4vh;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fxb-brand small{display:block;font-size:2.2vh;opacity:.6;text-transform:uppercase;letter-spacing:.14em;margin-top:.3vh}
.fxb-brand > div,.fxb-c > span{min-width:0}
.fxb-clock{text-align:right;line-height:1.05;flex:none}
.fxb-clock b{display:block;font-size:6vh;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.fxb-clock small{font-size:2.1vh;opacity:.65}
.fxb-c .fx-sym.xl[data-c=UZS],.fxb-c .fx-sym.xl[data-c=AED]{font-size:min(2.4vh,calc(20vh / var(--rows)))}
.fxb-v{white-space:nowrap}
.fxb-fs{align-self:flex-start;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);color:inherit;border-radius:1.2vh;font-size:2.4vh;padding:.6vh 1vw;cursor:pointer;opacity:.5}
.fxb-fs:hover{opacity:1}
:fullscreen .fxb-fs{display:none}
.fxb-main{display:grid;grid-template-rows:auto repeat(var(--rows),minmax(0,1fr));gap:1.1vh;min-height:0}
.fxb-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:2vw;padding:0 2.2vw}
.fxb-head{font-size:2.1vh;font-weight:700;text-transform:uppercase;letter-spacing:.16em;opacity:.7;padding-bottom:.4vh}
.fxb-head span:not(:first-child){text-align:right}
.fxb-head span:nth-child(2){color:#86efac} .fxb-head span:nth-child(3){color:#7dd3fc}
.fxb-cur{border-radius:2.2vh;background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  animation:fxbIn .6s both;animation-delay:calc(var(--i) * 60ms);min-height:0}
.fxb-c{display:flex;align-items:center;gap:1.4vw;min-width:0}
.fxb-c .fx-sym.xl{width:min(8vh,calc(70vh / var(--rows)));height:min(8vh,calc(70vh / var(--rows)));font-size:min(4vh,calc(35vh / var(--rows)));flex:none}
.fxb-c b{display:block;font-size:min(5.6vh,calc(48vh / var(--rows)));font-weight:800;letter-spacing:.02em;line-height:1}
.fxb-c small{display:block;font-size:min(2.2vh,calc(20vh / var(--rows)));opacity:.6;margin-top:.4vh;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fxb-v{text-align:right;font-size:min(7.6vh,calc(62vh / var(--rows)));font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:1}
.fxb-v.buy{color:#86efac} .fxb-v.sell{color:#7dd3fc}
.fxb-tr{display:inline-block;font-style:normal;font-size:.38em;vertical-align:middle;margin-right:.6em;width:1em;opacity:.95}
.fxb-tr.up{color:#4ade80} .fxb-tr.dn{color:#f87171}
.fxb-cur.flash{animation:fxbFlash 2.4s ease-out}
@keyframes fxbIn{from{opacity:0;transform:translateY(1.5vh)}to{opacity:1;transform:none}}
@keyframes fxbFlash{0%,30%{background:rgba(250,204,21,.28);border-color:rgba(250,204,21,.6)}100%{}}
.fxb-f{display:flex;justify-content:space-between;gap:2vw;font-size:2vh;opacity:.55;padding:0 2.2vw}
.fxb-err{font-size:4vh;text-align:center;opacity:.8;align-self:center}
@media (orientation:portrait){.fx-board{padding:2.4vh 4vw;gap:1.6vh}.fxb-row{grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr);gap:2vw;padding:0 3vw}
  .fxb-v{font-size:min(6.4vw,calc(50vh / var(--rows)))}.fxb-c b{font-size:min(5.6vw,calc(40vh / var(--rows)))}.fxb-c small{font-size:min(2.6vw,1.6vh)}
  .fxb-c .fx-sym.xl{width:min(9vw,calc(60vh / var(--rows)));height:min(9vw,calc(60vh / var(--rows)));font-size:min(4.4vw,calc(30vh / var(--rows)))}
  .fxb-c .fx-sym.xl[data-c=UZS]{font-size:min(2.6vw,2vh)}
  .fxb-logo{width:6vh;height:6vh;font-size:3.4vh}.fxb-brand b{font-size:min(3vh,5vw)}.fxb-brand small{font-size:1.5vh}.fxb-clock b{font-size:min(4.4vh,8vw)}.fxb-clock small{font-size:1.5vh}
  .fxb-head{font-size:min(1.6vh,2.6vw);letter-spacing:.08em}.fxb-tr{margin-right:.3em}.fxb-f{flex-direction:column;font-size:1.4vh}}
@media (prefers-reduced-motion:reduce){.fxb-cur{animation:none}}
@media (max-width:600px){.fx-cnt .fx-cin{width:6.5em}.fx-cnt th,.fx-cnt td{padding-inline:4px}.fx-shbar > button{margin-left:0;width:100%}}

/* §74.5 отчёты: часы, покупка/продажа, особый курс, история курсов */
.fx-kpi.warn b{color:var(--warn,#d97706)}
.fx-hours{display:flex;align-items:flex-end;gap:4px;height:190px;padding-top:8px}
.fx-hour{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.fx-hour span{width:100%;max-width:38px;border-radius:6px 6px 2px 2px;background:color-mix(in srgb,var(--accent,#22c55e) 55%,transparent);min-height:2px}
.fx-hour span.peak{background:var(--accent,#22c55e)}
.fx-hour small{font-size:.72em;color:var(--muted,#888);min-height:1.2em}
.fx-hour em{font-style:normal;font-size:.78em;color:var(--muted,#888);margin-top:4px}
.fx-flow{display:grid;gap:10px}
.fx-flow-r{display:grid;grid-template-columns:auto 3.2em minmax(0,1fr) auto;align-items:center;gap:4px 10px}
.fx-flow-r small{grid-column:3;color:var(--muted,#888)}
.fx-flow-bars{display:grid;gap:3px}
.fx-flow-bars span{height:8px;border-radius:4px;min-width:2px}
.fx-flow-bars .in,.fx-legend .buy{color:#16a34a}
.fx-flow-bars .in{background:#22c55e}
.fx-flow-bars .out{background:#38bdf8}
.fx-legend .sell{color:#0284c7}
.fx-net{grid-row:1/3;grid-column:4;font-weight:700;white-space:nowrap}
.fx-net.in{color:#16a34a}.fx-net.out{color:#0284c7}
.fx-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.9em;margin:.6em 0 0}
.fx-hc{margin-bottom:10px;flex-wrap:wrap}
.fx-chart{width:100%;height:auto;display:block}
.fx-chart text{font-size:12px;fill:var(--muted,#888)}
.fx-chart line.g{stroke:color-mix(in srgb,currentColor 12%,transparent)}
.fx-chart path{fill:none;stroke-width:2.5;stroke-linejoin:round}
.fx-chart path.buy{stroke:#22c55e}.fx-chart path.sell{stroke:#38bdf8}
.fx-spbox{border-left:3px solid var(--warn,#d97706);padding-left:10px}
@media (max-width:600px){.fx-hour small{display:none}.fx-flow-r{grid-template-columns:auto 3em minmax(0,1fr)}.fx-net{grid-row:auto;grid-column:2/-1}}

/* §87 приход и расход денег: назначение, долги по людям */
.fx-pur{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.fx-pur .chip-radio span{display:grid;gap:2px;align-items:start;min-height:46px;padding:7px 14px;border-radius:12px;text-align:left;line-height:1.25}
.fx-pur .chip-radio small{font-size:11px;font-weight:500;opacity:.72}
.fx-dchip{display:inline-block;padding:2px 9px;margin:0 4px 4px 0;border-radius:999px;font-variant-numeric:tabular-nums;font-weight:600;font-size:.88rem;background:color-mix(in srgb,var(--ok,#16a34a) 16%,transparent)}
.fx-dchip.neg{background:color-mix(in srgb,var(--danger,#c0392b) 16%,transparent);color:var(--danger-ink,#c0392b)}
.fx-shbar .btn + .btn{margin-left:0}
@media (max-width:600px){.fx-shbar > button{flex:1 1 40%;width:auto}}

/* §93 пересчёт по купюрам */
.fx-dbtn{display:block;margin-top:4px;font-size:.8rem;white-space:normal;text-align:right;max-width:22em}
.fx-den .fx-dn{width:6.5em;text-align:right;height:36px;padding:2px 10px}
.fx-den td,.fx-den th{padding-block:3px}
.fx-den tfoot th{font-size:1.05rem;position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line-strong)}

/* §115 окно закрытия смены с курсом: пять колонок должны поместиться, а итог прибыли — быть на виду */
.fx-cnt.has-rate .fx-cin{width:6.5em}
.fx-cnt .fx-ratec{white-space:nowrap}
.fx-cnt .fx-rate{width:5.6em;text-align:right}
.fx-cnt .fx-ratec small{display:block;font-size:11px;line-height:1.2;margin-top:2px}
.fx-cp{position:sticky;bottom:-1px;z-index:3;margin:0;padding:10px 0;background:var(--surface);border-top:1px solid var(--line,rgba(255,255,255,.08));box-shadow:0 14px 0 var(--surface),0 -10px 14px -8px rgba(0,0,0,.55)}
@media (max-width:600px){.fx-cnt.has-rate .fx-cin{width:5.2em}.fx-cnt .fx-rate{width:4.8em}}
