/* assets/css/style.css — MRMS Design System */

/*@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* ── Variables ────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary:      #E75D97;
  --primary-dark: #d94b87;
  --primary-light:#F7D9E4;
  --primary-dim:  rgba(231, 93, 151, 0.12);
  --primary-link: #c43d79;  /* darker pink for small text/links on white — clears AA 4.5:1 */

  --white:        #ffffff;

  /* Text */
  --text-dark:    #2b2b2b;
  --text-mid:     #555555;
  --text-light:   #888888;

  /* Greys */
  --g100:         #fafafa;
  --g200:         #f1f1f1;
  --g300:         #dddddd;
  --g400:         #767676;  /* muted text on white — passes WCAG AA (~4.7:1), distinct from --g600 */
  --g600:         #666666;
  --g800:         #2b2b2b;

  /* Status */
  --red:          #dc2626;
  --red-bg:       #fff1f2;

  --green:        #16a34a;
  --green-bg:     #f0fdf4;

  --amber:        #d97706;
  --amber-bg:     #fff8eb;

  --blue:         #2563eb;
  --blue-bg:      #eff6ff;

  /* Legacy aliases — these names are historical (old navy/teal theme) and now
     resolve to the brand pink. Kept so existing selectors keep working; prefer
     --primary / --primary-dark / --primary-light / --primary-dim in new code. */
  --navy:         var(--primary);
  --navy-mid:     var(--primary-dark);
  --navy-light:   #f08ab3;

  --teal:         var(--primary);
  --teal-lt:      var(--primary-light);
  --teal-dim:     var(--primary-dim);

  --cream:        #fffafc;

  /* Radius */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(231,93,151,.08);
  --shadow:       0 4px 16px rgba(231,93,151,.10);
  --shadow-lg:    0 8px 32px rgba(231,93,151,.16);

  /* Layout */
  --sidebar-w:    240px;
  --topbar-h:     60px;

  /* Fonts 
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-disp:    'Instrument Serif', Georgia, serif;
  --font-mono:    'Courier New', monospace;*/
	/* Fonts */
  --font-body: 'Cairo', sans-serif;
  --font-disp: 'Cairo', sans-serif;
  --font-mono: 'Courier New', monospace;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body  { font-family: var(--font-body); background: var(--cream); color: var(--g800);
        min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { color: inherit; }

/* ── Typography ───────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-disp); font-weight: 600; line-height: 1.25;
                  color: var(--navy); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p  { color: var(--g600); }

/* ── Layout helpers ───────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-sm     { font-size: .85rem; }
.text-xs     { font-size: .78rem; }
.text-muted  { color: var(--g400); }
.text-teal   { color: var(--primary-link); }
.fw-500      { font-weight: 500; }
.w-full      { width: 100%; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Auth layout ──────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.auth-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,.16) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand       { position: relative; z-index: 1; }
.auth-logo        { display: flex; align-items: center; gap: .65rem; margin-bottom: 2.5rem; }
.auth-logo-icon   { width: 44px; height: 44px; background: var(--teal); border-radius: 10px;
                    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-logo-icon svg { width: 24px; height: 24px; fill: white; }
.auth-logo-name   { font-family: var(--font-disp); font-size: 1.45rem; color: white; }
.auth-brand h1    { color: white; font-size: 2rem; margin-bottom: .6rem; }
.auth-brand > p   { color: rgba(255,255,255,.58); font-size: .95rem; }
.auth-features    { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .8rem; }
.auth-feature     { display: flex; align-items: center; gap: .7rem; }
.auth-feature-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }
.auth-feature span { color: rgba(255,255,255,.72); font-size: .88rem; }

.auth-form-wrap   { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-card        { width: 100%; max-width: 430px; background: var(--white);
                    border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.auth-card h2     { margin-bottom: .3rem; }
.auth-subtitle    { font-size: .875rem; color: var(--g400); margin-bottom: 1.75rem; }

/* ── App shell ────────────────────────────────────────── */
.app-wrap    { display: flex; min-height: 100vh; }
.main-wrap   { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column;
               min-height: 100vh; }
.main-inner  { padding: 2rem; flex: 1; }

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); position: fixed; top: 0; left: 0;
  height: 100vh; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.4rem 1.4rem 1rem;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}
.sidebar-logo-icon { width: 34px; height: 34px; background: var(--teal); border-radius: 8px;
                     display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo-icon svg { width: 18px; height: 18px; fill: white; }
.sidebar-logo-name { color: white; font-family: var(--font-disp); font-size: 1.1rem; }

.sidebar-nav   { flex: 1; padding: .75rem 0; }
.nav-section   { padding: .6rem 1.4rem .2rem;
                 font-size: .68rem; font-weight: 600; letter-spacing: .09em;
                 color: rgba(255,255,255,.28); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1.4rem; color: rgba(255,255,255,.62);
  text-decoration: none; font-size: .875rem;
  transition: background-color .15s, color .15s, border-left-color .15s;
  border-left: 3px solid transparent;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.9); }
.nav-item.active { background: rgba(255,255,255,.18); color: white; border-left-color: white; }

.sidebar-footer {
  padding: 1rem 1.4rem; border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.sidebar-user-label { font-size: .72rem; color: rgba(255,255,255,.3); margin-bottom: .2rem; }
.sidebar-user-name  { color: white; font-weight: 500; font-size: .875rem;
                      margin-bottom: .65rem; }

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
}
.topbar-title h1 { font-size: 1.55rem; }
.topbar-title .breadcrumb { font-size: .82rem; color: var(--g400); margin-top: .15rem; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: .8rem; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase; color: var(--g600); margin-bottom: .35rem;
}
.form-label .optional { font-weight: 400; color: var(--g400); text-transform: none; font-size: .78rem; }
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: .72rem 1rem; font-family: var(--font-body); font-size: .94rem;
  color: var(--g800); background: var(--white); border: 1.5px solid var(--g200);
  border-radius: var(--radius); transition: border-color .18s, box-shadow .18s; outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231,93,151,.14);
}
.form-input.error,
.form-select.error { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .78rem; color: var(--g400); margin-top: .3rem; }
.form-error-text { font-size: .8rem; color: var(--red); margin-top: .3rem; }

/* Phone input with prefix */
.input-group { display: flex; }
.input-prefix {
  padding: .72rem .85rem; background: var(--g100); border: 1.5px solid var(--g200);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  font-size: .9rem; color: var(--g600); white-space: nowrap; font-weight: 500;
}
.input-group .form-input { border-radius: 0 var(--radius) var(--radius) 0; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.35rem; border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: background-color .18s, color .18s, transform .18s, box-shadow .18s; text-decoration: none; white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary { background: var(--primary); color: white;}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(231,93,151,.28);}
.btn-secondary { background: var(--g100); color: var(--g800); }
.btn-secondary:hover { background: var(--g200); }
.btn-danger    { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-ghost     { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: white; }
.btn-navy      { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-mid); }

.btn-sm  { padding: .42rem .9rem; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: .9rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Keyboard focus ───────────────────────────────────── */
/* Visible focus ring for keyboard users across all interactive controls.
   Inputs keep their own :focus box-shadow above; this covers buttons, nav,
   pagination and links that previously showed nothing on Tab. */
.btn:focus-visible,
.nav-item:focus-visible,
.page-btn:focus-visible,
.customer-logout-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}


/* ── Cards ────────────────────────────────────────────── */
.card   { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(231,93,151,.08);}
.card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--g200);
               display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1.05rem; }
.card-body  { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--g200); background: var(--g100); }

/* ── Stats ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
              gap: 1rem; margin-bottom: 1.75rem; }
.stat-card  { background: var(--white); border-radius: var(--radius-lg); padding: 1.4rem;
              box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; }
.stat-icon  { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center;
              justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon.teal { background: var(--primary-dim);         color: var(--primary); }
.stat-icon.navy  { background: rgba(15,31,56,.08);        color: var(--navy); }
.stat-icon.green { background: rgba(22,163,74,.1);        color: var(--green); }
.stat-icon.amber { background: rgba(217,119,6,.1);        color: var(--amber); }
.stat-label { font-size: .75rem; color: var(--g400); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.75rem; font-family: var(--font-disp); color: var(--navy); line-height: 1.1; }

/* ── Table ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table   { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th { text-align: left; padding: .65rem 1rem;
           font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
           color: var(--g400); background: var(--g100); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--g100); transition: background .12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(231,93,151,.04); }
tbody td { padding: .8rem 1rem; color: var(--g800); }
.td-nowrap { white-space: nowrap; }
.td-actions { display: flex; align-items: center; gap: .4rem; }

/* ── Alerts ───────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .8rem 1rem; border-radius: var(--radius); font-size: .875rem;
  margin-bottom: 1.1rem; line-height: 1.45;
}
.alert-success { background: var(--green-bg); color: #14532d; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-bg);   color: #7f1d1d; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-bg);  color: #1e3a8a; border: 1px solid #bfdbfe; }
.alert-warning { background: var(--amber-bg); color: #78350f; border: 1px solid #fde68a; }

/* ── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .18rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 500;
}
.badge-teal  { background: var(--teal-dim);        color: var(--teal); }
.badge-gray  { background: var(--g100);             color: var(--g600); }
.badge-green { background: rgba(22,163,74,.1);      color: var(--green); }
.badge-red   { background: rgba(220,38,38,.1);      color: var(--red); }
.badge-amber { background: rgba(217,119,6,.1);      color: var(--amber); }
.badge-navy  { background: rgba(15,31,56,.1);       color: var(--navy); }
.badge-slate { background: rgba(100,116,139,.12);   color: #64748b; }  /* neutral file-type badge — not a status */

/* ── File upload zone ─────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--g200); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  background: var(--g100);
}
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--primary); background: rgba(231,93,151,.05); }
.upload-zone input[type=file] { display: none; }
.upload-zone .upload-icon { color: var(--teal); margin-bottom: .5rem; }
.upload-zone .upload-hint { font-size: .82rem; color: var(--g400); margin-top: .25rem; }
.upload-filename { margin-top: .5rem; font-size: .84rem; color: var(--primary-link); font-weight: 500; }

/* ── OTP inputs ───────────────────────────────────────── */
.otp-row  { display: flex; gap: .55rem; justify-content: flex-start; margin: 1.5rem 0; }
.otp-digit {
  width: 50px; height: 58px; text-align: center;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
  font-family: var(--font-body); border: 2px solid var(--g200);
  border-radius: var(--radius); color: var(--navy);
  transition: border-color .18s, box-shadow .18s; outline: none;
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.otp-digit.filled { border-color: var(--teal); }

/* ── Report cards (patient) ───────────────────────────── */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.report-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem;
  transition: box-shadow .2s, transform .2s;
}
.report-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.report-card-top   { display: flex; align-items: center; gap: .75rem; }
.report-file-icon  { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center;
                     justify-content: center; flex-shrink: 0; }
.report-filename   { font-weight: 500; color: var(--primary-link); font-size: .9rem;
                     word-break: break-all; line-height: 1.3; }
.report-meta       { font-size: .78rem; color: var(--g400); }
.report-desc       { font-size: .84rem; color: var(--g600); }
.report-actions    { display: flex; gap: .5rem; margin-top: auto; padding-top: .4rem; }

/* ── Pagination ───────────────────────────────────────── */
.pagination { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: .85rem; text-decoration: none;
  background: var(--white); color: var(--g600); border: 1px solid var(--g200);
  transition: background-color .15s, color .15s, border-color .15s;
}
.page-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.page-btn.active { background: var(--teal); color: white; border-color: var(--teal); font-weight: 600; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── Modal ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,31,56,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; padding: 1rem;
}
.modal {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 480px; width: 100%; padding: 2rem;
}
.modal h3 { margin-bottom: .5rem; }
.modal-actions { display: flex; gap: .65rem; margin-top: 1.5rem; justify-content: flex-end; }

/* ── Empty state ──────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 2rem; }
.empty-state svg { color: var(--g200); margin: 0 auto 1rem; }
.empty-state h3 { color: var(--g400); font-family: var(--font-body); font-weight: 500; margin-bottom: .4rem; }
.empty-state p  { font-size: .875rem; }

/* ── Filters / search bar ─────────────────────────────── */
.filter-bar { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-bar .form-select,
.filter-bar .form-input  { max-width: 220px; padding: .55rem .9rem; }
.filter-bar .form-input  { min-width: 200px; }

/* ── Inline delete confirm ────────────────────────────── */
.delete-form { display: inline; }

/* ── Divider ──────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--g200); margin: 1.5rem 0; }

/* ── Dev OTP box ──────────────────────────────────────── */
.dev-otp-box {
  background: #fefce8; border: 1px solid #fde047; border-radius: var(--radius);
  padding: .75rem 1rem; font-size: .875rem; color: #713f12; margin-top: .75rem;
}
.dev-otp-box code { font-size: 1.35rem; font-weight: 700; letter-spacing: .2em;
                    font-family: var(--font-mono); color: #1c1917; }

/* ── Customer header bar ──────────────────────────────── */
.cust-header {
  background: var(--navy); height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; position: sticky; top: 0; z-index: 100;
}
.cust-header-logo { display: flex; align-items: center; gap: .55rem; }
.cust-header-logo-icon { width: 30px; height: 30px; background: var(--teal); border-radius: 7px;
                         display: flex; align-items: center; justify-content: center; }
.cust-header-logo-icon svg { width: 16px; height: 16px; fill: white; }
.cust-header-logo-name { color: white; font-family: var(--font-disp); font-size: 1.05rem; }
.cust-header-right { display: flex; align-items: center; gap: 1rem; }
.cust-header-user  { color: rgba(255,255,255,.6); font-size: .84rem; }
/* Customer Logout Button */

.customer-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .48rem 1rem;

  border-radius: 8px;

  background: var(--primary);
  color: white;

  border: 1.5px solid white;

  font-size: .82rem;
  font-weight: 500;

  text-decoration: none;

  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.customer-logout-btn:hover {
  background: white;
  color: var(--primary);

  transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-panel { padding: 2rem; }
  .auth-brand h1 { font-size: 1.4rem; }
  .auth-features { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.25rem; }
  .sidebar { transform: translateX(-100%); transition: transform .28s; }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .mobile-toggle { display: flex !important; }
}
@media (max-width: 600px) {
  /* Collapse the brand panel to a slim logo band rather than hiding it
     entirely — keeps branding + the only logo on the customer login. */
  .auth-panel { padding: 1.1rem 1.5rem; }
  .auth-panel::before { display: none; }
  .auth-brand h1,
  .auth-brand > p,
  .auth-features { display: none; }
  .sidebar-logo { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

  .main-inner { padding: 1rem; }
  .report-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .otp-digit   { width: 42px; height: 50px; font-size: 1.3rem; }
}
.mobile-toggle { display: none; }

.payment-toggle {
  display: flex;
  gap: .6rem;
  margin-top: .4rem;
}
.payment-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .72rem 1rem;
  border: 1.5px solid var(--g200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--g600);
  background: var(--white);
  transition: background-color .18s, color .18s, border-color .18s;
  user-select: none;
}
.payment-option input[type=radio] {
  display: none;
}
.payment-option:hover {
  border-color: var(--g300);
  background: var(--g100);
}
.payment-option.selected.unpaid {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}
.payment-option.selected.paid {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}
.payment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.payment-dot.unpaid { background: #dc2626; }
.payment-dot.paid   { background: #16a34a; }

/* ── Reduced motion ───────────────────────────────────── */
/* Respect the OS-level "reduce motion" setting. Medical audiences are
   over-represented for vestibular/motion sensitivity. Purely additive —
   no visual change for users who haven't opted in. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}