/* Rishta receivable-app — professional shell (peeled from index.html) */
* {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.rs-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(14, 165, 233, 0.10), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
  color: #0f172a;
}
.card { background: white; border-radius: 1.25rem; transition: 0.2s; }
.offer-card { border-left: 4px solid #4338ca; transition: 0.2s; }
.evidence-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.step-circle { transition: 0.2s; cursor: pointer; white-space: nowrap; }
.footer-link { cursor: pointer; text-decoration: none; color: #4338ca; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.legal-modal {
  background: rgba(15, 23, 42, 0.55);
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem; backdrop-filter: blur(2px);
}
.legal-content {
  max-width: 720px; max-height: 80vh; overflow-y: auto; background: white;
  border-radius: 1.25rem; padding: 1.5rem; margin: 0; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.pending-badge { background: #fef3c7; color: #b45309; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 9999px; }
.collected-badge { background: #d1fae5; color: #065f46; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 9999px; }
.timeline-step { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; margin-right: 8px; }
.notification-badge {
  position: absolute; top: -5px; right: -5px; background: #ef4444; color: white;
  border-radius: 50%; width: 16px; height: 16px; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
canvas { max-width: 100% !important; height: auto !important; }

.toast-tip {
  position: fixed; bottom: 20px; right: 20px; background: #1e3a5f; color: white;
  padding: 10px 18px; border-radius: 40px; font-size: 0.85rem; z-index: 1100;
  max-width: 340px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); pointer-events: none;
}
.toast-tip.toast-error { background: #991b1b; border-radius: 12px; }
.toast-tip.toast-success { background: #065f46; }
.rs-dialog-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.rs-dialog {
  background: #fff; border-radius: 1.25rem; padding: 1.25rem 1.35rem;
  width: min(420px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.rs-dialog h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.rs-dialog p { font-size: 0.9rem; color: #475569; margin: 0 0 1rem; }
.rs-dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }

#lfe-portal-bar, .lfe-bank-links, [data-lfe-bank-links] { display: none !important; }

.rs-auth-wrap { max-width: 28rem; margin: 2.5rem auto; padding: 0 1rem; }
.rs-auth-card {
  background: #fff; border-radius: 1.5rem; padding: 1.75rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.12);
}
.rs-auth-card label { display: block; font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 0.3rem; }
.rs-auth-card input,
.rs-auth-card select {
  border: 1px solid #e2e8f0; border-radius: 0.85rem; padding: 0.65rem 0.85rem;
  width: 100%; font-size: 0.875rem; background: #fff; color: #0f172a;
}
.rs-auth-card input:focus,
.rs-auth-card select:focus {
  outline: none; border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.rs-auth-submit {
  width: 100%; background: #4338ca; color: #fff; font-weight: 700;
  padding: 0.75rem 1rem; border-radius: 0.85rem; border: 0; cursor: pointer;
}
.rs-auth-submit:hover { background: #3730a3; }
.rs-section[hidden],
[data-rs-section].hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.rs-sync-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 9999px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.rs-sync-chip.off { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }

.rs-shell { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.rs-app-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.82); border: 1px solid #e2e8f0; border-radius: 1.25rem;
  padding: 1rem 1.15rem; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.rs-app-brand { display: flex; gap: 0.85rem; align-items: flex-start; min-width: 0; }
.rs-app-mark {
  width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; flex-shrink: 0;
  background: linear-gradient(145deg, #4338ca, #1e3a5f); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(67, 56, 202, 0.28);
}
.rs-app-title { margin: 0.2rem 0 0; font-size: 1.35rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.rs-app-sub { margin: 0.15rem 0 0; font-size: 0.85rem; color: #64748b; }
.rs-app-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rs-role-pill {
  font-size: 0.65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; border-radius: 9999px; padding: 0.15rem 0.5rem;
}

.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: 0.75rem; font-size: 0.8rem; font-weight: 700; padding: 0.45rem 0.85rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.rs-btn-primary { background: #4338ca; color: #fff; }
.rs-btn-primary:hover { background: #3730a3; }
.rs-btn-ghost { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.rs-btn-ghost:hover { background: #f1f5f9; }
.rs-btn-danger { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }

.rs-module-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
  padding: 0.35rem; background: rgba(255,255,255,0.75); border: 1px solid #e2e8f0;
  border-radius: 9999px; width: fit-content; max-width: 100%;
}
.rs-module-tab {
  border: 0; background: transparent; color: #64748b; font-size: 0.8rem; font-weight: 700;
  padding: 0.45rem 0.9rem; border-radius: 9999px; cursor: pointer;
}
.rs-module-tab:hover { color: #312e81; background: #eef2ff; }
.rs-module-tab.active { background: #4338ca; color: #fff; box-shadow: 0 6px 14px rgba(67,56,202,.25); }

.rs-sell-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 0.85rem 1rem; }
.rs-sell-stat .lbl { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.rs-sell-stat .val { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-top: 0.2rem; }
.rs-goods-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.2rem; border-bottom: 1px solid #f1f5f9;
}
.rs-goods-row:last-child { border-bottom: 0; }
.rs-qty {
  display: inline-flex; align-items: center; gap: 0.25rem; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 9999px; padding: 0.15rem;
}
.rs-qty button {
  width: 1.75rem; height: 1.75rem; border-radius: 9999px; border: 0; background: #fff;
  color: #1e3a5f; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.08); cursor: pointer;
}
.rs-qty button:hover { background: #eef2ff; }
.rs-qty span { min-width: 1.5rem; text-align: center; font-size: 0.85rem; font-weight: 700; }
.rs-inv-card {
  border: 1px solid #e2e8f0; border-radius: 1rem; padding: 0.95rem 1rem; background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.rs-attach-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700;
  color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe; padding: 0.45rem 0.75rem;
  border-radius: 0.7rem; cursor: pointer;
}
.rs-attach-btn:hover { background: #e0e7ff; }
.rs-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 1.05rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.03);
}
.rs-panel-title { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin: 0 0 0.75rem; }
.rs-footer {
  margin-top: 1.5rem; text-align: center; font-size: 0.75rem; color: #64748b;
  display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; align-items: center;
}
.rs-footer-sep { color: #cbd5e1; }

.rs-factor-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .rs-factor-grid { grid-template-columns: 1.1fr 1fr; }
}
.rs-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; }
@media (min-width: 768px) {
  .rs-metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .step-circle { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .rs-shell { padding: 0.85rem 0.75rem 2rem; }
  .rs-module-nav { border-radius: 1rem; }
  .rs-app-title { font-size: 1.15rem; }
}
