/* ═══════════════════════════════════════════════════
   YH Hotel & Restaurant — Crypto Settlement Dashboard
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #f0f6fc;
  --bg-card: #ffffff;
  --bg-sidebar: #0d1b2e;
  --bg-sidebar-hover: #142d4a;
  --bg-sidebar-active: #1a3a5c;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-sidebar: #7daec8;
  --text-sidebar-active: #ffffff;
  --primary: #1e88e5;
  --primary-light: #e1f0fe;
  --primary-dark: #1565c0;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sidebar-width: 260px;
  --topbar-height: 70px;
  --transition: 0.2s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.3; }
hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 50%, #1e88e5 100%);
  padding: 1rem;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 960px;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0d1b2e 0%, #142d4a 100%);
  padding: 3rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.login-brand .brand-icon { font-size: 2rem; color: var(--primary); background: rgba(30,136,229,0.2); padding: 0.5rem; border-radius: 12px; }
.login-brand h1 { font-size: 1.8rem; font-weight: 800; }
.login-brand .brand-sub { color: var(--text-sidebar); font-size: 0.8rem; margin-left: -2.5rem; }

.login-tagline h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-tagline p { color: var(--text-sidebar); font-size: 0.9rem; margin-bottom: 2rem; }

.login-features { display: flex; flex-direction: column; gap: 0.75rem; }
.login-feature {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-sidebar); font-size: 0.85rem;
}
.login-feature .material-icons-round { font-size: 1.1rem; color: var(--primary); }

.login-right {
  flex: 1;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form { width: 100%; max-width: 340px; }
.login-form h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.login-subtitle { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.82rem; margin-bottom: 0.35rem; color: var(--text-secondary); }

.input-wrapper {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 0.75rem; transition: border-color var(--transition);
}
.input-wrapper:focus-within { border-color: var(--primary); }
.input-wrapper .material-icons-round { font-size: 1.1rem; color: var(--text-light); }
.input-wrapper input {
  flex: 1; border: none; outline: none; padding: 0.65rem 0;
  font-family: inherit; font-size: 0.9rem; background: transparent;
}

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }
.forgot-link { font-size: 0.82rem; color: var(--primary); }

.login-divider {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0;
  color: var(--text-light); font-size: 0.78rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.demo-accounts { display: flex; gap: 0.5rem; }
.demo-accounts .btn { flex: 1; font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 0.85rem;
  padding: 0.6rem 1.2rem; transition: all var(--transition);
  white-space: nowrap;
}
.btn .material-icons-round { font-size: 1rem; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--success); color: white; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; border-radius: var(--radius-xs); }

/* ═══════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════ */

.input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem; font-family: inherit; font-size: 0.85rem;
  transition: border-color var(--transition); outline: none; background: white;
}
.input:focus { border-color: var(--primary); }

textarea.input { resize: vertical; }

.input-sm {
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  padding: 0.35rem 0.6rem; font-family: inherit; font-size: 0.78rem;
  outline: none; background: white; transition: border-color var(--transition);
}
.input-sm:focus { border-color: var(--primary); }

select.input, select.input-sm { cursor: pointer; }

/* ═══════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════ */

.dashboard-page {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.sidebar-brand .material-icons-round { font-size: 1.6rem; color: var(--primary); }
.sidebar-brand strong { color: white; font-size: 1.1rem; display: block; }
.sidebar-brand small { font-size: 0.7rem; color: var(--text-sidebar); }

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--text-sidebar); font-size: 0.85rem; font-weight: 450;
  transition: all var(--transition);
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: var(--text-sidebar-active); }
.nav-item.active { background: linear-gradient(135deg, rgba(30,136,229,0.25), rgba(100,216,245,0.15)); color: var(--text-sidebar-active); font-weight: 500; border-left: 3px solid #42a5f5; }
.nav-item .material-icons-round { font-size: 1.2rem; }

.sidebar-footer {
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-user { display: flex; align-items: center; gap: 0.6rem; }
.sidebar-user strong { color: white; font-size: 0.82rem; display: block; }
.sidebar-user small { font-size: 0.7rem; }
.sidebar-footer .btn { color: var(--text-sidebar); }
.sidebar-footer .btn:hover { color: var(--danger); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600;
}

/* ─── MAIN ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  height: var(--topbar-height);
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 40%, #42a5f5 70%, #64d8f5 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}
.topbar-title { flex: 1; }
.topbar-title h2 { font-size: 1.2rem; color: #ffffff; }
.topbar-date { font-size: 0.78rem; color: rgba(255,255,255,0.8); }

.topbar-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.live-rate {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.2); color: #ffffff;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 500;
  backdrop-filter: blur(4px);
}
.live-rate .material-icons-round { font-size: 1rem; color: #ffd54f; }

.topbar .btn-primary {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
}
.topbar .btn-primary:hover {
  background: rgba(255,255,255,0.35);
}

.menu-toggle { display: none; }
.topbar .menu-toggle { color: #ffffff; }

/* ─── PAGES ─── */
.page {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
  max-width: 100%;
}
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem;
}
.card-header h4 { font-size: 1rem; }

/* ─── METRICS ─── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.metrics-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}
.metric-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metric-icon .material-icons-round { font-size: 1.3rem; line-height: 1; display: block; }
.metric-icon.blue   { background: var(--info-light); color: var(--info); }
.metric-icon.green  { background: var(--success-light); color: var(--success); }
.metric-icon.orange { background: var(--orange-light); color: var(--orange); }
.metric-icon.purple { background: var(--purple-light); color: var(--purple); }

.metric-info { min-width: 0; }
.metric-info small { color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; }
.metric-info h3 { font-size: 1.35rem; margin: 0.15rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-change { font-size: 0.72rem; font-weight: 600; }
.metric-change.up { color: var(--success); }
.metric-change.down { color: var(--danger); }
.metric-change.neutral { color: var(--text-secondary); }

/* ─── CHARTS ─── */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}
.chart-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}
.chart-container-sm { height: 250px; }
.chart-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.chart-controls { display: flex; gap: 0.25rem; }
.chart-controls .btn.active { background: var(--primary-light); color: var(--primary); }

/* ─── TABLES ─── */
.table-wrapper { overflow-x: auto; min-width: 0; max-width: 100%; }

.data-table {
  width: 100%; border-collapse: collapse;
}
.data-table th {
  text-align: left; padding: 0.6rem 0.75rem;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary); border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.65rem 0.75rem; font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: #f9fafb; }

.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; font-size: 0.78rem; color: var(--text-secondary);
}
.pagination { display: flex; gap: 0.25rem; }
.pagination button {
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius-xs);
  background: white; cursor: pointer; font-size: 0.78rem; font-family: inherit;
  transition: all var(--transition);
}
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button:hover:not(.active) { border-color: var(--primary); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600;
}
.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger  { background: var(--danger-light);  color: #991b1b; }
.badge-info    { background: var(--info-light);    color: #1e40af; }
.badge-neutral { background: #f3f4f6;             color: #4b5563; }
.badge-purple  { background: var(--purple-light);  color: #5b21b6; }

.badge-legend { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ─── FILTERS ─── */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ─── SETTLEMENT PIPELINE ─── */
.settlement-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pipeline-step {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.pipeline-step .step-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.pipeline-step .step-icon .material-icons-round { font-size: 1.4rem; }
.pipeline-step h5 { font-size: 0.8rem; margin-bottom: 0.2rem; }
.pipeline-step .step-amount { font-size: 1.1rem; font-weight: 700; }
.pipeline-step .step-count { font-size: 0.72rem; color: var(--text-secondary); }

.pipeline-step.step-received  { background: var(--warning-light); }
.pipeline-step.step-received .step-icon { background: var(--warning); color: white; }

.pipeline-step.step-converting { background: var(--info-light); }
.pipeline-step.step-converting .step-icon { background: var(--info); color: white; }

.pipeline-step.step-settled   { background: var(--success-light); }
.pipeline-step.step-settled .step-icon { background: var(--success); color: white; }

.pipeline-step.step-offramped { background: #f3f4f6; }
.pipeline-step.step-offramped .step-icon { background: #6b7280; color: white; }

/* ─── HIGHLIGHT CARD ─── */
.highlight-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--info-light); border: 1px solid #93c5fd;
}
.highlight-card .material-icons-round { color: var(--info); font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.highlight-card strong { font-size: 0.88rem; display: block; margin-bottom: 0.2rem; }
.highlight-card p { font-size: 0.82rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
.modal-lg { max-width: 720px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.05rem; }
.modal-header .btn { font-size: 1.4rem; color: var(--text-light); }

.modal-body { padding: 1.5rem; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}

.checkbox-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.3rem; }

/* ─── INVOICE PREVIEW ─── */
.invoice-doc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1rem;
  background: #fafafa;
}
.invoice-doc-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.invoice-doc-header h2 { font-size: 1.1rem; color: var(--primary); }
.invoice-doc-header p { font-size: 0.8rem; color: var(--text-secondary); }
.invoice-doc-meta { text-align: right; font-size: 0.82rem; }
.invoice-doc-meta strong { color: var(--primary); font-size: 0.95rem; }

.invoice-doc-details {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem; margin: 1rem 0;
}
.invoice-doc-details small { display: block; color: var(--text-secondary); font-size: 0.72rem; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.invoice-doc-details strong { font-size: 0.88rem; }
.invoice-doc-details p { font-size: 0.82rem; color: var(--text-secondary); }
.text-primary { color: var(--primary) !important; }

.inv-description { font-size: 0.82rem; color: var(--text-secondary); margin: 0.5rem 0; }

.qr-section {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1rem; padding-top: 1rem;
}
.qr-code { flex-shrink: 0; }
.qr-code canvas { border-radius: 8px; }
.qr-info h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.qr-info p { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

.wallet-address {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.7rem; color: var(--text-secondary);
  word-break: break-all;
  background: #f0f0f0; padding: 0.4rem 0.6rem; border-radius: var(--radius-xs);
}

.checkout-link-box {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.76rem;
  color: var(--text);
  word-break: break-all;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.7rem;
  margin-top: 0.5rem;
}

.invoice-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

.hidden { display: none !important; }

/* ─── TRANSACTION DETAIL ─── */
.tx-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.tx-detail-row:last-child { border-bottom: none; }
.tx-detail-label { color: var(--text-secondary); font-size: 0.78rem; }
.tx-detail-value { font-weight: 500; }

/* ─── CRYPTO ICONS ─── */
.crypto-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: 99px;
  font-size: 0.72rem; font-weight: 600;
}
.crypto-BTC { background: #fff7ed; color: #f97316; }
.crypto-ETH { background: #ede9fe; color: #7c3aed; }
.crypto-USDT { background: #d1fae5; color: #059669; }
.crypto-USDC { background: #dbeafe; color: #2563eb; }
.crypto-LTC { background: #f3f4f6; color: #6b7280; }

/* ─── USER TABLE ─── */
.user-cell { display: flex; align-items: center; gap: 0.6rem; }
.user-cell .avatar { width: 32px; height: 32px; font-size: 0.68rem; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .settlement-pipeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar { padding: 0 1rem; }
  .page { padding: 1rem; }
  .login-container { flex-direction: column; }
  .login-left { padding: 2rem; }
  .login-right { padding: 2rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid.cols-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .invoice-doc-details { grid-template-columns: 1fr; }
  .qr-section { flex-direction: column; text-align: center; }
  .settlement-pipeline { grid-template-columns: 1fr; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── PRINT ─── */
@media print {
  .sidebar, .topbar, .invoice-actions { display: none !important; }
  .main-content { margin-left: 0; }
  .modal-overlay { position: static; background: none; display: block; }
  .modal { box-shadow: none; max-width: 100%; }
}
