/* ================================================================
   YLP PORTAL — ELITE DESIGN SYSTEM v2
   Brand: #11007b (Deep Blue) | #8e8e8e (Silver) | #ffffff (White)
   Fonts: Cormorant Garamond (display) + Montserrat (body)
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue:         #11007b;
  --blue-dark:    #0a0055;
  --blue-mid:     #1a00b8;
  --blue-glow:    rgba(17,0,123,0.12);
  --silver:       #8e8e8e;
  --silver-lt:    #c4c4c4;
  --silver-pale:  #f2f2f6;
  --white:        #ffffff;
  --off-white:    #f7f7fb;
  --text:         #0f0f1a;
  --text-muted:   #5a5a7a;
  --border:       #e2e2ee;
  --border-dark:  #c8c8dc;
  --shadow-sm:    0 2px 12px rgba(17,0,123,0.07);
  --shadow-md:    0 6px 28px rgba(17,0,123,0.11);
  --shadow-lg:    0 16px 56px rgba(17,0,123,0.16);
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --nav-h:        60px;
  --sidebar-w:    230px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── GEOMETRIC BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 100% 0%, rgba(17,0,123,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(17,0,123,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-shell, .site-footer, .navbar { position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  background: var(--white);
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(17,0,123,0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  background: var(--blue);
  border-radius: 10px;
  padding: 5px 14px;
  text-decoration: none;
}
.nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-notif { position: relative; }
.notif-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--silver-pale);
  color: var(--silver);
  font-size: .9rem;
  transition: all .18s;
  border: 1.5px solid var(--border);
  position: relative;
}
.notif-btn:hover { background: var(--blue-glow); color: var(--blue); border-color: var(--blue); opacity: 1; }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e53935;
  color: white;
  font-size: .55rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
}
.nav-user { display: flex; align-items: center; gap: .75rem; }
.nav-role-pill {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .25rem .7rem;
  border-radius: 20px;
  background: var(--blue);
  color: var(--white);
}
.role-pill-approver { background: #1b5e20; }
.role-pill-user { background: #4a4a6a; }
.nav-name { font-size: .8rem; font-weight: 600; color: var(--text); }
.btn-signout {
  font-size: .75rem;
  font-weight: 700;
  color: var(--silver);
  padding: .4rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all .18s;
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.btn-signout:hover { background: var(--blue); color: var(--white); border-color: var(--blue); opacity: 1; }
.nav-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 40%, var(--silver-lt) 100%);
}

/* ══════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════ */
.page-shell {
  flex: 1;
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.75rem 0 2rem;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-section { padding: 0 .875rem; margin-bottom: 1.5rem; }
.sidebar-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--silver-lt);
  padding: .2rem .5rem;
  margin-bottom: .6rem;
  display: block;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .2rem;
  transition: all .15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
  transition: width .15s;
}
.sidebar-link:hover { background: var(--blue-glow); color: var(--blue); opacity: 1; }
.sidebar-link.active {
  background: rgba(17,0,123,.09);
  color: var(--blue);
  font-weight: 700;
}
.sidebar-link.active::before { width: 3px; }
.slink-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--silver-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--silver);
  flex-shrink: 0;
  transition: all .15s;
}
.sidebar-link.active .slink-icon { background: rgba(17,0,123,.12); color: var(--blue); }
.sidebar-link:hover .slink-icon { background: rgba(17,0,123,.08); color: var(--blue); }

.sidebar-alert {
  margin: 0 .875rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(17,0,123,.06), rgba(17,0,123,.02));
  border: 1px solid rgba(17,0,123,.18);
  border-radius: var(--radius);
  font-size: .75rem;
  color: var(--blue);
  line-height: 1.5;
}
.sidebar-alert strong { display: block; margin-bottom: .3rem; font-size: .78rem; }

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main-content {
  flex: 1;
  padding: 2rem 2.25rem;
  overflow-x: hidden;
  min-width: 0;
}

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header-left { flex: 1; min-width: 0; }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  color: var(--blue);
  line-height: 1.1;
  font-weight: 700;
}
.page-sub { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.back-link {
  font-size: .75rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .5rem;
  font-weight: 600;
  width: fit-content;
}
.back-link:hover { color: var(--blue); opacity: 1; }

/* ══════════════════════════════════════════
   STATS GRID
══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -15px; bottom: -15px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: .04;
  background: var(--blue);
}
.stat-total::before   { background: var(--blue); }
.stat-pending::before { background: #e65100; }
.stat-review::before  { background: #1565c0; }
.stat-approved::before { background: #2e7d32; }
.stat-rejected::before { background: #b71c1c; }
.stat-users::before   { background: var(--silver); }
.stat-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .6rem;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

/* ══════════════════════════════════════════
   SECTION BLOCK
══════════════════════════════════════════ */
.section-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.section-block:last-child { margin-bottom: 0; }
.section-no-pad { padding: 0; overflow: hidden; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
  font-weight: 700;
}
.section-header .section-title { margin-bottom: 0; }
.section-link { font-size: .76rem; font-weight: 700; color: var(--silver); }
.section-link:hover { color: var(--blue); opacity: 1; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 1; color: var(--white); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; justify-content: center; padding: .85rem; font-size: .84rem; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.btn-outline:hover { background: var(--blue); color: var(--white); opacity: 1; }
.btn-warn {
  background: #e65100;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .18s;
}
.btn-warn:hover { background: #bf360c; transform: translateY(-1px); opacity: 1; color: white; }
.btn-danger {
  background: #b71c1c;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  padding: .42rem .9rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all .18s;
}
.btn-success {
  background: #1b5e20;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  padding: .42rem .9rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all .18s;
}
.btn-silver {
  background: var(--silver-pale);
  color: var(--silver);
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  padding: .42rem .9rem;
  border-radius: 7px;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all .18s;
}
.btn-sm {
  font-family: 'Montserrat', sans-serif;
  font-size: .73rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: all .15s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .02em;
}
.btn-sm.btn-primary { background: var(--blue); color: white; }
.btn-sm.btn-primary:hover { background: var(--blue-dark); opacity: 1; }
.btn-sm.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-sm.btn-outline:hover { background: var(--blue); color: white; opacity: 1; }
.btn-sm.btn-silver { background: var(--silver-pale); color: var(--silver); border: 1px solid var(--border-dark); }
.signature-badge {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1.5px solid #a5d6a7;
  padding: .45rem 1rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th {
  text-align: left;
  padding: .8rem 1rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver);
  border-bottom: 2px solid var(--border);
  background: var(--off-white);
  white-space: nowrap;
}
.data-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover td { background: rgba(17,0,123,.025); }
.row-inactive td { opacity: .45; }
.doc-title-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.email-cell { font-size: .75rem; color: var(--text-muted); }
.action-cell { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   STATUS & ROLE PILLS
══════════════════════════════════════════ */
.status-pill {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  padding: .28rem .8rem;
  border-radius: 20px;
  white-space: nowrap;
}
.status-lg { font-size: .7rem; padding: .4rem 1.1rem; }
.status-pending         { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.status-under_review    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.status-approved        { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.status-approved_with_comment { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.status-rejected        { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.role-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .25rem .7rem;
  border-radius: 20px;
}
.role-badge.admin    { background: rgba(17,0,123,.1); color: var(--blue); border: 1px solid rgba(17,0,123,.2); }
.role-badge.user     { background: var(--silver-pale); color: #4a4a6a; border: 1px solid var(--border-dark); }
.role-badge.approver { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }

/* ══════════════════════════════════════════
   REF TAG
══════════════════════════════════════════ */
.ref-tag {
  font-size: .7rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: rgba(17,0,123,.07);
  color: var(--blue);
  padding: .25rem .65rem;
  border-radius: 5px;
  border: 1px solid rgba(17,0,123,.12);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.alert::before { font-size: 1rem; flex-shrink: 0; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #4caf50; }
.alert-success::before { content: '✓'; }
.alert-error   { background: #ffebee; color: #b71c1c; border-color: #f44336; }
.alert-error::before { content: '!'; font-weight: 900; }
.alert-warn    { background: #fff8e1; color: #e65100; border-color: #ff9800; }
.alert-warn::before { content: '!'; }

/* ══════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: .45rem 1.1rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--silver);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: all .15s;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .03em;
}
.filter-tab:hover { color: var(--blue); border-color: var(--blue); opacity: 1; }
.filter-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: .03em;
}
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .84rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(17,0,123,.08);
}
.form-input::placeholder { color: var(--silver-lt); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.75rem; }

/* ══════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════ */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-card-header {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.form-card-icon {
  width: 52px; height: 52px;
  background: var(--blue-glow);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(17,0,123,.12);
}
.form-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: .25rem; color: var(--blue); font-weight: 700; }
.form-card-sub { font-size: .77rem; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   FILE DROP ZONE
══════════════════════════════════════════ */
.file-drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--off-white);
  position: relative;
  user-select: none;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--blue);
  background: rgba(17,0,123,.03);
}
.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop-icon { font-size: 2.75rem; color: var(--silver-lt); margin-bottom: .85rem; }
.file-drop-text { font-size: .88rem; font-weight: 700; color: var(--text-muted); margin-bottom: .35rem; }
.file-drop-hint { font-size: .75rem; color: var(--silver); }
.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(17,0,123,.05);
  border: 1.5px solid rgba(17,0,123,.2);
  border-radius: var(--radius);
}
.file-preview-icon { font-size: 1.75rem; color: var(--blue); }
.file-preview-info { flex: 1; }
.file-preview-name { font-size: .84rem; font-weight: 700; color: var(--text); display: block; }
.file-preview-size { font-size: .73rem; color: var(--silver); }
.file-remove { background: none; border: none; color: var(--silver); cursor: pointer; font-size: 1rem; padding: .25rem; transition: color .15s; }
.file-remove:hover { color: var(--blue); }

/* ══════════════════════════════════════════
   UPLOAD NOTE
══════════════════════════════════════════ */
.upload-note {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(17,0,123,.03);
  border-radius: var(--radius);
  border: 1px solid rgba(17,0,123,.1);
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1.25rem;
}
.upload-note-icon { color: var(--blue); flex-shrink: 0; font-size: .9rem; padding-top: .1rem; }
.upload-note strong { display: block; color: var(--text); margin-bottom: .2rem; font-size: .8rem; font-weight: 700; }

/* ══════════════════════════════════════════
   DOC CARDS (USER DASHBOARD)
══════════════════════════════════════════ */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.doc-card[data-status="approved"]::before,
.doc-card[data-status="approved_with_comment"]::before { background: #4caf50; }
.doc-card[data-status="pending"]::before { background: #e65100; }
.doc-card[data-status="under_review"]::before { background: #1565c0; }
.doc-card[data-status="rejected"]::before { background: #b71c1c; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc-card-top { display: flex; align-items: center; justify-content: space-between; }
.doc-card-icon { font-size: 1.4rem; color: var(--silver-lt); }
.doc-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--blue); line-height: 1.3; font-weight: 700; }
.doc-card-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.55; }
.doc-card-meta { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.doc-card-date { font-size: .7rem; color: var(--silver); }
.doc-card-comment {
  background: rgba(17,0,123,.04);
  border-left: 3px solid var(--blue);
  padding: .65rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .76rem;
}
.comment-label { font-weight: 800; color: var(--blue); display: block; margin-bottom: .2rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.comment-text { color: var(--text-muted); line-height: 1.55; }
.doc-card-actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: auto; }

/* ══════════════════════════════════════════
   DETAIL VIEW
══════════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; }
.detail-fields { display: flex; flex-direction: column; gap: 1rem; }
.detail-field { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: start; }
.detail-label { font-size: .67rem; font-weight: 800; color: var(--silver); text-transform: uppercase; letter-spacing: .09em; padding-top: .15rem; }
.detail-value { font-size: .82rem; color: var(--text); line-height: 1.55; }
.action-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }

/* ══════════════════════════════════════════
   FEEDBACK BLOCKS
══════════════════════════════════════════ */
.feedback-block {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: .75rem;
}
.feedback-block:last-child { margin-bottom: 0; }
.feedback-comment       { background: #fff8e1; border-left: 4px solid #f9a825; }
.feedback-recommendation{ background: #e3f2fd; border-left: 4px solid #1565c0; }
.feedback-label { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; display: block; margin-bottom: .4rem; color: var(--silver); }
.feedback-text { font-size: .82rem; line-height: 1.6; color: var(--text); }

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .5rem; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.1rem; top: .3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.dot-default  { background: var(--silver-lt); }
.dot-approved { background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.dot-rejected { background: #f44336; box-shadow: 0 0 0 3px rgba(244,67,54,.15); }
.dot-review   { background: #1565c0; }
.timeline-action { font-size: .76rem; font-weight: 800; color: var(--blue); margin-bottom: .2rem; letter-spacing: .02em; }
.timeline-actor  { font-size: .72rem; color: var(--text-muted); }
.timeline-comment { font-size: .73rem; color: var(--silver); font-style: italic; margin-top: .3rem; line-height: 1.5; padding-left: .5rem; border-left: 2px solid var(--border); }
.timeline-date   { font-size: .68rem; color: var(--silver-lt); margin-top: .25rem; }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--silver);
}
.empty-icon {
  width: 64px; height: 64px;
  background: var(--silver-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  opacity: .5;
}
.empty-state p { font-size: .88rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,0,50,.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 660px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-sm { max-width: 440px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--blue); font-weight: 700; }
.modal-close { background: none; border: none; color: var(--silver); cursor: pointer; font-size: 1.1rem; padding: .3rem; border-radius: 6px; transition: all .15s; }
.modal-close:hover { background: var(--silver-pale); color: var(--blue); }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.75rem; }
.modal-doc-name { font-size: .86rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; padding: .65rem .85rem; background: var(--silver-pale); border-radius: var(--radius); }
.modal-body-text { font-size: .84rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════
   DOC REVIEW LIST (APPROVER DASHBOARD)
══════════════════════════════════════════ */
.doc-review-list { display: flex; flex-direction: column; gap: .85rem; }
.doc-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all .18s;
  position: relative;
  overflow: hidden;
}
.doc-review-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.review-new::before       { background: #e65100; }
.review-reviewing::before { background: #1565c0; }
.review-done::before      { background: var(--silver-lt); }
.doc-review-item:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.doc-review-left { display: flex; align-items: flex-start; gap: 1rem; flex: 1; min-width: 0; }
.doc-review-icon { font-size: 1.4rem; color: var(--silver-lt); flex-shrink: 0; margin-top: .1rem; }
.doc-icon-pending, .doc-icon-under_review { color: #e65100; }
.doc-icon-approved, .doc-icon-approved_with_comment { color: #4caf50; }
.doc-icon-rejected { color: #f44336; }
.doc-review-info { flex: 1; min-width: 0; }
.doc-review-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--blue); margin-bottom: .3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-review-meta { font-size: .73rem; color: var(--text-muted); margin-bottom: .25rem; }
.doc-review-meta strong { color: var(--text); }
.meta-sep { margin: 0 .3rem; color: var(--silver-lt); }
.doc-review-desc { font-size: .75rem; color: var(--silver); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-review-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* ══════════════════════════════════════════
   REVIEW GRID (APPROVER)
══════════════════════════════════════════ */
.review-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; }
.review-side-panel { display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; max-height: calc(100vh - 140px); }
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.pdf-toolbar-title { font-size: .82rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }
.pdf-iframe { width: 100%; height: calc(100vh - 230px); min-height: 480px; border: none; display: block; }

/* ══════════════════════════════════════════
   DECISION BUTTONS
══════════════════════════════════════════ */
.decision-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; margin-top: .75rem; }
.decision-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem .75rem;
  border-radius: var(--radius-lg);
  border: 2px solid;
  cursor: pointer;
  transition: all .18s;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  gap: .3rem;
}
.decision-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.decision-icon  { font-size: 1.35rem; font-weight: 900; }
.decision-label { font-size: .75rem; font-weight: 800; }
.decision-sub   { font-size: .62rem; opacity: .7; }
.decision-approve { border-color: #4caf50; color: #1b5e20; }
.decision-approve:hover { background: #4caf50; color: white; }
.decision-comment { border-color: #1565c0; color: #1565c0; }
.decision-comment:hover { background: #1565c0; color: white; }
.decision-reject { border-color: #f44336; color: #b71c1c; }
.decision-reject:hover { background: #f44336; color: white; }

/* ══════════════════════════════════════════
   SIGNATURE PAGE
══════════════════════════════════════════ */
.sig-upload-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.sig-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.sig-info-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--blue); font-weight: 700; }
.sig-guidelines { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.sig-guidelines li {
  font-size: .78rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.sig-guidelines li::before { content: '—'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.sig-sample { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sig-sample-label { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--silver); margin-bottom: .75rem; }
.sig-sample-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .75rem;
  height: 80px;
}
.sig-sample-line { flex: 1; height: 1px; background: var(--border); align-self: center; }
.sig-sample-text { font-size: .65rem; color: var(--silver-lt); border: 1px dashed var(--border); padding: .45rem .7rem; border-radius: 4px; }
.sig-sample-qr { width: 36px; height: 36px; background: repeating-linear-gradient(45deg, var(--border) 0, var(--border) 2px, transparent 0, transparent 50%) 0 0 / 6px 6px; border: 1px solid var(--border); border-radius: 3px; }
.sig-sample-desc { font-size: .72rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.55; }
.sig-preview-img { max-width: 100%; max-height: 100px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; background: var(--off-white); display: block; }

/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
.login-body { background: var(--blue); min-height: 100vh; display: flex; }
.login-split { display: flex; width: 100%; min-height: 100vh; }

/* Left panel */
.login-left {
  flex: 1.15;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.login-geo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
}
.geo-1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.geo-2 { width: 700px; height: 700px; bottom: -300px; left: -200px; }
.geo-3 { width: 220px; height: 220px; top: 38%; left: 62%; border: 2px solid rgba(255,255,255,.1); }
.geo-4 { width: 120px; height: 120px; top: 15%; left: 20%; border-color: rgba(255,255,255,.06); }
.login-left-inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
}
.login-logo-wrap { margin-bottom: 2.5rem; }
.login-logo {
  height: 70px;
  width: auto;
  display: block;
  /* Logo is white-on-black JPEG — show as-is on dark blue background */
}
.login-org-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  margin-bottom: .25rem;
  margin-top: .85rem;
}
.login-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.login-divider { width: 56px; height: 2px; background: rgba(255,255,255,.25); margin-bottom: 1.5rem; }
.login-desc { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.8; max-width: 340px; }
.login-badges { display: flex; gap: .75rem; margin-top: 2.5rem; flex-wrap: wrap; }
.login-badge {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.18);
  padding: .3rem .85rem;
  border-radius: 20px;
}
/* Architectural pattern overlay */
.login-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Right panel */

/* Right-side login logo (dark pill so white logo shows on white bg) */
.login-right-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.login-right-logo-img {
  height: 38px;
  width: auto;
  background: var(--blue);
  border-radius: 8px;
  padding: 4px 12px;
  display: block;
}

.login-right {
  flex: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
}
.login-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid), var(--silver-lt));
}
.login-form-wrap { width: 100%; max-width: 400px; }
.login-form-header { margin-bottom: 2rem; }
.login-form-title { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; color: var(--blue); margin-bottom: .4rem; font-weight: 700; }
.login-form-sub { font-size: .8rem; color: var(--text-muted); }
.login-form .form-group { margin-bottom: 1.2rem; }
.login-form .form-input {
  padding: .9rem 1.1rem;
  font-size: .88rem;
  border: 1.5px solid var(--border);
  background: var(--off-white);
}
.login-form .form-input:focus { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17,0,123,.07); }
.login-help { margin-top: 1.75rem; text-align: center; font-size: .73rem; color: var(--silver); line-height: 1.7; }
.login-btn-wrap { margin-top: .5rem; }

/* ══════════════════════════════════════════
   VERIFY / PUBLIC PAGE
══════════════════════════════════════════ */
.verify-body { background: var(--off-white); min-height: 100vh; }
.verify-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.verify-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.verify-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid), var(--silver-lt));
}
.verify-logo {
  height: 54px;
  width: auto;
  background: var(--blue);
  border-radius: 8px;
  padding: 4px 10px;
}
.verify-org   { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--blue); font-weight: 700; margin-bottom: .2rem; }
.verify-portal-name { font-size: .75rem; color: var(--silver); font-weight: 600; }
.verify-status-banner {
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.status-banner-approved,
.status-banner-approved_with_comment { background: #e8f5e9; border: 1px solid #a5d6a7; }
.status-banner-rejected { background: #ffebee; border: 1px solid #ef9a9a; }
.status-banner-pending,
.status-banner-under_review { background: #fff8e1; border: 1px solid #ffe082; }
.verify-status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900;
  flex-shrink: 0;
}
.status-banner-approved .verify-status-icon,
.status-banner-approved_with_comment .verify-status-icon { background: #4caf50; color: white; }
.status-banner-rejected .verify-status-icon { background: #f44336; color: white; }
.status-banner-pending .verify-status-icon,
.status-banner-under_review .verify-status-icon { background: #f9a825; color: white; }
.verify-status-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text); margin-bottom: .3rem; font-weight: 700; }
.verify-status-sub { font-size: .8rem; color: var(--text-muted); }
.verify-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; }
.verify-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.verify-card:last-child { margin-bottom: 0; }
.verify-card-approval { border-top: 3px solid #4caf50; }
.verify-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--blue); font-weight: 700; }
.verify-auth-box {
  background: rgba(17,0,123,.03);
  border: 1px solid rgba(17,0,123,.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.auth-seal { font-size: 2rem; color: var(--blue); opacity: .3; margin-bottom: .75rem; }
.auth-text { font-size: .74rem; color: var(--text-muted); line-height: 1.75; }
.verify-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  color: var(--silver);
  line-height: 1.9;
}
.verify-footer-logo {
  height: 38px;
  background: var(--blue);
  border-radius: 8px;
  padding: 3px 8px;
  opacity: .75;
  display: block;
  margin: 0 auto .75rem;
}
.verify-footer-sub { font-size: .7rem; opacity: .7; margin-top: .25rem; }

/* ══════════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════════ */
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.error-content { text-align: center; max-width: 440px; }
.error-code { font-family: 'Cormorant Garamond', serif; font-size: 7rem; color: rgba(17,0,123,.1); line-height: 1; font-weight: 700; }
.error-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--blue); margin-bottom: .75rem; font-weight: 700; }
.error-message { font-size: .86rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.75rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-logo { height: 30px; background: var(--blue); border-radius: 6px; padding: 3px 8px; opacity: .85; }
.footer-title { font-size: .8rem; font-weight: 700; color: var(--blue); }
.footer-sub   { font-size: .7rem; color: var(--silver); }
.footer-copy  { font-size: .7rem; color: var(--silver-lt); margin-left: auto; }
.footer-rule  { width: 1px; height: 28px; background: var(--border); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .review-side-panel { max-height: unset; overflow-y: visible; }
  .detail-grid { grid-template-columns: 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
  .sig-upload-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .page-shell { flex-direction: column; }
  .sidebar { width: 100%; min-height: unset; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem; }
  .sidebar-section { display: flex; flex-wrap: wrap; gap: .35rem; }
  .sidebar-label { display: none; }
  .slink-icon { width: 26px; height: 26px; font-size: .7rem; }
  .main-content { padding: 1.25rem; }
  .stats-grid, .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .decision-buttons { grid-template-columns: 1fr 1fr 1fr; }
  .doc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .login-split { flex-direction: column; }
  .login-left { min-height: 220px; padding: 2rem; }
  .login-tagline { font-size: 2rem; }
  .stats-grid, .stats-grid-4 { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .decision-buttons { grid-template-columns: 1fr; }
  .nav-name { display: none; }
}
