.currency-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rate-spotlight{display:grid;grid-template-columns:auto minmax(250px,1fr) auto auto;align-items:center;gap:16px;margin:0 0 18px;padding:15px 18px;border:1px solid #ead793;border-radius:18px;background:linear-gradient(120deg,#fff8d7,#fff 58%,#edf5e4);box-shadow:0 8px 24px #6f531015}
.rate-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#111;color:var(--y);font-weight:950;letter-spacing:.5px}
.rate-spotlight small,.rate-spotlight span{display:block;color:var(--muted)}
.rate-spotlight>div:nth-child(2)>b{display:block;font-size:25px;line-height:1.1;margin:3px 0}
.rate-taxes{display:flex;gap:9px}.rate-taxes span{min-width:76px;padding:8px 11px;border-radius:11px;background:#fff;border:1px solid var(--line);text-align:center}.rate-taxes b{display:block;color:#111;font-size:17px}
.rate-spotlight.rate-error{border-color:#e5a5b8;background:linear-gradient(120deg,#fff0f3,#fff)}.rate-spotlight.rate-local{border-color:#e5c25a}.rate-spotlight .iconbtn{white-space:nowrap}
.recovery-steps{margin:16px 0;padding-left:25px}.recovery-steps li{margin:9px 0;padding-left:5px;line-height:1.4}.recovery-steps li::marker{font-weight:900;color:var(--w)}
.recovery-confirm{display:flex!important;grid-template-columns:auto 1fr;align-items:center}.recovery-confirm input{width:20px;height:20px}.recovery-confirm span{font-weight:700}
@media(max-width:1050px){.rate-spotlight{grid-template-columns:auto 1fr auto}.rate-taxes{grid-column:2}.rate-spotlight .iconbtn{grid-column:3;grid-row:1/3}}
@media(max-width:650px){.rate-spotlight{grid-template-columns:auto 1fr}.rate-taxes{grid-column:1/3}.rate-spotlight .iconbtn{grid-column:1/3;grid-row:auto;width:100%}}
.fiscal-card{margin-top:16px}.fiscal-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.fiscal-card .review-note{margin-top:8px}
.customer-picker{margin:8px 0 14px}.customer-picker select{margin-top:6px}.customer-picker small{display:block;margin-top:5px;color:var(--muted)}
.customer-create{width:100%;margin-top:7px}
.merchant-approved{color:#315d20}.merchant-rejected{color:#a40c42}.merchant-pending{color:#8a4c00}
.merchant-health{border:1px solid #cdddba;border-left:5px solid #6f9148;background:#f4faed;border-radius:13px;padding:11px 13px;margin:14px 0 10px}.merchant-health.checking{border-color:#ead276;background:#fff9df}.merchant-health.failed{border-color:#e5a2b9;background:#fff2f6}.merchant-health-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.merchant-health-head>div{display:flex;align-items:center;gap:8px}.merchant-dot{width:10px;height:10px;border-radius:50%;background:#5f8d36;box-shadow:0 0 0 4px #dcebcf}.merchant-health.checking .merchant-dot{background:#cc9800;box-shadow:0 0 0 4px #fff0b3}.merchant-health.failed .merchant-dot{background:#b4164b;box-shadow:0 0 0 4px #f7ccd9}.merchant-retry{border:1px solid #d9cfbd;background:#fff;border-radius:9px;padding:6px 9px;font-size:12px;font-weight:850}.merchant-retry:disabled{opacity:.5}.merchant-health-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.merchant-health-grid span{border:1px solid #e6e0d5;background:#fff;border-radius:9px;padding:7px 9px}.merchant-health-grid small{display:block;color:var(--muted);font-size:10px}.merchant-health-grid b{font-size:12px}.merchant-health p{margin:8px 0 3px;font-size:12px}.merchant-health>small{color:var(--muted);font-size:10px}
.merchant-proof{border-color:#e6b000;background:#fff8d8}.merchant-voucher{width:min(480px,100%);margin:12px auto;border:1px dashed #999;padding:16px;font-family:ui-monospace,Consolas,monospace}.merchant-voucher h3,.merchant-voucher>small{text-align:center;display:block;margin:0 0 5px}.merchant-voucher>div{display:flex;justify-content:space-between;gap:18px;border-top:1px dotted #ccc;padding:7px 0}.merchant-voucher>div span{color:var(--muted)}.merchant-voucher>div b{text-align:right}
.dialog.wide{width:min(920px,100%)}.post-sale-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.post-sale-summary>div{border:1px solid var(--line);border-radius:12px;padding:11px}.post-sale-summary small,.audit-list small{display:block;color:var(--muted)}.audit-list{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.status-ok{color:#315d20}.status-warn{color:#8a4c00}.status-bad{color:var(--w)}

.field-note {
  color: var(--muted);
  margin: 0 0 8px;
}

.totals b,
.totals .grand span:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  #view-cash .twocol { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .currency-pair { grid-template-columns: 1fr; }
  .totals div { gap: 12px; }
  .totals b,
  .totals .grand span:last-child {
    font-size: .9em;
    white-space: normal;
  }
  .post-sale-summary{grid-template-columns:1fr 1fr}
}
