/* ==========================================================================
   ATS Shop Dashboard – Premium UI
   Navy #072138  |  Orange #d7722e
   ========================================================================== */

:root {
  --navy:      #072138;
  --navy-mid:  #0d3560;
  --orange:    #d7722e;
  --orange-dk: #b85e22;
  --white:     #ffffff;
  --g50:       #f8f9fa;
  --g100:      #f1f3f5;
  --g200:      #e2e8f0;
  --g300:      #cbd5e1;
  --g400:      #94a3b8;
  --g500:      #64748b;
  --g600:      #475569;
  --g800:      #1e293b;
  
  --green:     #16a34a;
  --green-bg:  #dcfce7;
  --blue:      #2563eb;
  --blue-bg:   #dbeafe;
  --amber:     #d97706;
  --amber-bg:  #fef3c7;
  --red:       #dc2626;
  --red-bg:    #fee2e2;

  --r:         14px;
  --r-sm:      8px;
  
  /* Modern clean shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --top-bar:    60px;
  --bot-nav:    65px;
}

*, *::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); background: var(--g50); color: var(--g800); min-height: 100vh; }
a    { color: inherit; text-decoration: none; }

/* ════════════════════════════════════════════════════════
   TOP BAR
   ════════════════════════════════════════════════════════ */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--top-bar);
  background: var(--navy);
  display: flex; align-items: center; padding: 0 1.25rem; gap: .75rem;
  z-index: 200;
  box-shadow: var(--shadow);
}
.top-bar .back-btn {
  color: var(--g300); padding: .25rem; margin-left: -0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.top-bar .back-btn svg { width: 24px; height: 24px; }
.top-bar .back-btn:hover { color: var(--white); }

.top-bar-title {
  flex: 1; font-size: 1.125rem; font-weight: 600; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-bar-logo { height: 24px; width: auto; margin-right: 0.5rem; }
.top-bar-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   BOTTOM NAV
   ════════════════════════════════════════════════════════ */
.bot-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bot-nav);
  background: var(--white);
  display: flex; align-items: stretch; justify-content: space-around;
  border-top: 1px solid var(--g200);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom); /* iOS support */
}
.bot-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; font-size: .65rem; font-weight: 600;
  color: var(--g400); transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bot-nav a svg { width: 22px; height: 22px; stroke-width: 2px; }
.bot-nav a:hover,
.bot-nav a.active { color: var(--navy); }
.bot-nav a.active svg { color: var(--orange); }

.bot-nav .nav-add {
  flex: 0 0 70px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  color: var(--g400); font-size: .65rem; font-weight: 600;
  cursor: pointer; position: relative;
}
.bot-nav .nav-add .add-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(215,114,46,.4);
  margin-top: -20px; margin-bottom: 4px;
  transition: transform .1s, background .15s;
}
.bot-nav .nav-add .add-circle svg { width: 26px; height: 26px; stroke-width: 2.5px; }
.bot-nav .nav-add:active .add-circle { transform: scale(.92); }

/* ════════════════════════════════════════════════════════
   PAGE BODY
   ════════════════════════════════════════════════════════ */
.page-body {
  padding-top: calc(var(--top-bar) + 1.25rem);
  padding-bottom: calc(var(--bot-nav) + 1.5rem);
  padding-left: 1.25rem; padding-right: 1.25rem;
  max-width: 800px; margin: 0 auto;
}

/* ════════════════════════════════════════════════════════
   STATS ROW
   ════════════════════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .75rem; margin-bottom: 1.5rem;
}
.stat-tile {
  background: var(--white); border-radius: var(--r);
  padding: 1rem .5rem; text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--g200);
}
.stat-val { font-size: 1.375rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: .375rem; }
.stat-lbl { font-size: .6875rem; font-weight: 600; color: var(--g500); text-transform: uppercase; letter-spacing: .04em; }

/* ════════════════════════════════════════════════════════
   SEARCH & FILTERS
   ════════════════════════════════════════════════════════ */
.search-box { position: relative; margin-bottom: 1rem; }
.search-box input {
  width: 100%; padding: .875rem 1rem .875rem 2.75rem;
  border: 1px solid var(--g200); border-radius: var(--r);
  font-size: .9375rem; font-family: var(--font);
  background: var(--white); color: var(--g800);
  box-shadow: var(--shadow-sm);
  transition: all .15s; -webkit-appearance: none;
}
.search-box input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,33,56,.08); }
.search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--g400); width: 18px; height: 18px; pointer-events: none;
}

.filter-row {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding-bottom: .5rem; margin-bottom: 1rem;
}
.pill {
  flex-shrink: 0; padding: .4rem .875rem;
  border-radius: 50px; font-size: .8125rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--g200);
  background: var(--white); color: var(--g500);
  box-shadow: var(--shadow-sm);
  transition: all .15s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; gap: .375rem;
}
.pill svg { width: 14px; height: 14px; }
.pill:hover  { border-color: var(--g300); color: var(--navy); }
.pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ════════════════════════════════════════════════════════
   JOB CARDS — Clean, no thick borders
   ════════════════════════════════════════════════════════ */
.jobs-list { display: flex; flex-direction: column; gap: 1rem; }

.job-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--g200); box-shadow: var(--shadow);
  padding: 1rem 1.25rem; text-decoration: none; color: inherit;
  display: block; position: relative;
  transition: box-shadow .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--g300); }

/* Card Header: Badge + Date */
.card-header {
  display: flex; align-items: center; gap: .625rem; margin-bottom: .625rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .25rem .5rem; border-radius: 6px;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge svg { width: 12px; height: 12px; }
.badge-waiting    { background: var(--g100); color: var(--g600); }
.badge-in_progress{ background: var(--amber-bg); color: var(--amber); }
.badge-completed  { background: var(--green-bg); color: var(--green); }

.card-date { font-size: .75rem; font-weight: 500; color: var(--g400); }

/* Vehicle Hero */
.card-vehicle {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: .25rem;
}
.card-vehicle .make { color: var(--orange); }

/* Customer + Call */
.card-customer-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.card-customer {
  display: flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 500; color: var(--g600);
}
.card-customer svg { width: 14px; height: 14px; color: var(--g400); }

.card-call {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-bg); color: var(--green);
  border-radius: 50px; padding: .375rem .75rem;
  font-size: .75rem; font-weight: 700; gap: .375rem;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.card-call svg { width: 12px; height: 12px; }
.card-call:hover { background: #bbf7d0; }

/* Issue Preview */
.card-issue {
  font-size: .875rem; color: var(--g600); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: .75rem; border-top: 1px solid var(--g100);
}

/* ════════════════════════════════════════════════════════
   FORMS & BUTTONS
   ════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: .8125rem; font-weight: 600; color: var(--g600);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem; border: 1px solid var(--g300); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 1rem; color: var(--g800);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(7,33,56,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: .875rem 1.5rem; border: none; border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent; width: 100%;
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: scale(.98); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dk); }
.btn-navy   { background: var(--navy);   color: var(--white); }
.btn-navy:hover   { background: var(--navy-mid); }

/* ════════════════════════════════════════════════════════
   JOB DETAIL CARDS
   ════════════════════════════════════════════════════════ */
.section-card {
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
  border: 1px solid var(--g200); margin-bottom: 1rem; overflow: hidden;
}
.section-hdr {
  padding: .875rem 1.25rem; font-size: .8125rem; font-weight: 700; color: var(--navy);
  background: var(--g50); border-bottom: 1px solid var(--g200);
  display: flex; align-items: center; gap: .5rem;
}
.section-hdr svg { width: 16px; height: 16px; color: var(--g500); }
.section-body { padding: 1.25rem; }

.info-row { display: flex; align-items: flex-start; gap: 1rem; padding: .625rem 0; border-bottom: 1px dashed var(--g200); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-lbl  { font-size: .8125rem; font-weight: 600; color: var(--g500); min-width: 90px; }
.info-val  { font-size: .9375rem; font-weight: 500; color: var(--g800); flex: 1; word-break: break-word; }

/* Status selector */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.s-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .375rem; padding: 1rem .5rem; border-radius: var(--r-sm);
  border: 2px solid var(--g200); cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--g500);
  background: var(--white); transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.s-opt input { display: none; }
.s-opt svg { width: 24px; height: 24px; stroke-width: 2px; }
.s-opt.sel-waiting    { border-color: var(--g400); background: var(--g50); color: var(--g800); }
.s-opt.sel-in_progress{ border-color: var(--orange); background: var(--amber-bg); color: var(--amber); }
.s-opt.sel-completed  { border-color: var(--green); background: var(--green-bg); color: var(--green); }

/* Profit bar */
.profit-bar { margin-top: 1rem; padding: 1rem; background: var(--g50); border-radius: var(--r-sm); border: 1px solid var(--g200); }
.p-row { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .875rem; color: var(--g600); }
.p-total { display: flex; justify-content: space-between; padding: .75rem 0 0; border-top: 1px solid var(--g300); margin-top: .5rem; font-weight: 700; font-size: 1.125rem; color: var(--navy); }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ════════════════════════════════════════════════════════
   UTILS
   ════════════════════════════════════════════════════════ */
.alert { padding: .875rem 1rem; border-radius: var(--r-sm); font-size: .9375rem; margin-bottom: 1rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.alert svg { width: 20px; height: 20px; }
.alert-ok  { background: var(--green-bg); color: var(--green); border: 1px solid #bbf7d0; }
.alert-err { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--g500); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--g300); }
.empty-state h3 { font-size: 1.125rem; color: var(--navy); margin-bottom: .375rem; font-weight: 600; }
.empty-state p  { font-size: .9375rem; }

.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }

/* ════════════════════════════════════════════════════════
   REPORTS PAGE (Tabs & Charts)
   ════════════════════════════════════════════════════════ */
.tabs-nav {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
  background: var(--white); padding: .375rem; border-radius: var(--r);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  box-shadow: var(--shadow-sm); border: 1px solid var(--g200);
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1; min-width: 90px; padding: .625rem .75rem;
  border-radius: var(--r-sm); border: none; background: transparent;
  font-size: .8125rem; font-weight: 700; color: var(--g500);
  cursor: pointer; transition: all .15s;
  text-align: center; white-space: nowrap;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  background: var(--navy); color: var(--white);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; animation: fadeIn .2s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.report-section { margin-bottom: 1.5rem; }

/* Horizontal bar chart */
.bar-chart { display: flex; flex-direction: column; gap: .75rem; }
.bar-row { display: flex; align-items: center; gap: .625rem; }
.bar-lbl { font-size: .8125rem; font-weight: 600; color: var(--g800); min-width: 130px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 18px; background: var(--g100); border-radius: 50px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 50px; transition: width .4s ease; }
.bar-fill-orange { background: linear-gradient(90deg, var(--orange), #e8924a); }
.bar-fill-navy   { background: linear-gradient(90deg, var(--navy), var(--navy-mid)); }
.bar-fill-green  { background: linear-gradient(90deg, var(--green), #22c55e); }
.bar-fill-blue   { background: linear-gradient(90deg, var(--blue), #3b82f6); }
.bar-count { font-size: .8125rem; font-weight: 800; color: var(--g500); min-width: 28px; text-align: right; }

/* Monthly trend dots/bars */
.trend-chart { display: flex; align-items: flex-end; gap: .375rem; height: 90px; margin-bottom: .5rem; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; }
.trend-bar { width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--orange), var(--orange-dk)); min-height: 4px; transition: height .4s ease; }
.trend-lbl { font-size: .6rem; font-weight: 700; color: var(--g400); text-align: center; }

/* Issue tags */
.issue-tags { display: flex; flex-wrap: wrap; gap: .625rem; }
.issue-tag {
  padding: .35rem .8rem; border-radius: 50px;
  font-size: .8125rem; font-weight: 600; color: var(--navy);
  background: var(--blue-bg); border: 1px solid var(--blue);
}
.issue-tag.t-lg  { font-size: .9375rem; background: var(--amber-bg); color: var(--amber); border-color: var(--amber); font-weight: 700; }
.issue-tag.t-md  { font-size: .875rem;  background: var(--g100); color: var(--navy); border-color: var(--g300); }
.issue-tag.t-sm  { font-size: .75rem;   background: var(--g50); color: var(--g500); border-color: var(--g200); }

/* Insights grid inside tabs */
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.insight-tile {
  background: var(--white); border-radius: var(--r);
  padding: 1.25rem 1rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--g200); border-top: 3px solid var(--orange);
}
.insight-val { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: .25rem; line-height: 1; }
.insight-lbl { font-size: .75rem; font-weight: 600; color: var(--g600); margin-bottom: .25rem; }
.insight-sub { font-size: .7rem; color: var(--g400); }

/* ════════════════════════════════════════════════════════
   TOP BAR — icon buttons (Users link etc.)
   ════════════════════════════════════════════════════════ */
.top-bar-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--g300); background: rgba(255,255,255,.06);
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.top-bar-btn svg { width: 20px; height: 20px; stroke-width: 2; }
.top-bar-btn:hover,
.top-bar-btn:focus-visible { color: var(--white); background: rgba(255,255,255,.14); outline: none; }
.top-bar-btn:active { transform: scale(.94); }

/* ════════════════════════════════════════════════════════
   PANELS (generic card/section wrapper used on Users page)
   ════════════════════════════════════════════════════════ */
.panel {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--g200); box-shadow: var(--shadow);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.panel-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.panel-sub   { font-size: .75rem; font-weight: 600; color: var(--g400); text-transform: uppercase; letter-spacing: .04em; }

.inline-form { display: inline; margin: 0; }

/* ════════════════════════════════════════════════════════
   USER LIST (users.php)
   ════════════════════════════════════════════════════════ */
.user-list { display: flex; flex-direction: column; }

.user-row {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--g100);
}
.user-row:last-of-type { border-bottom: 0; }

.user-avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}

.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: .9375rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: .5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-meta {
  font-size: .75rem; color: var(--g500); margin-top: .125rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.you-pill {
  font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .125rem .5rem; border-radius: 50px;
  background: var(--orange); color: var(--white);
}

.user-actions { display: flex; align-items: center; gap: .375rem; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--g50); color: var(--g600);
  border: 1px solid var(--g200);
  cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.btn-icon:hover  { background: var(--g100); color: var(--navy); border-color: var(--g300); }
.btn-icon:active { transform: scale(.94); }
.btn-icon-danger { color: var(--red); }
.btn-icon-danger:hover { background: var(--red-bg); color: var(--red); border-color: #fecaca; }

/* Collapsible password form inside the user list */
.pw-form {
  background: var(--g50); border: 1px solid var(--g200); border-radius: var(--r-sm);
  padding: .875rem 1rem; margin: 0 0 .875rem;
  animation: fadeIn .18s ease;
}
.pw-btns {
  display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem;
}

.btn-ghost {
  background: transparent; color: var(--g600);
  border: 1px solid var(--g200);
}
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--g300); }

.btn-full { width: 100%; display: flex; justify-content: center; }

/* ════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════ */
body.login-page {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(215,114,46,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(13,53,96,.55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #051627 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}

.login-wrap { width: 100%; max-width: 400px; }

.login-card {
  background: var(--white); border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,.35),
    0 10px 25px -5px rgba(0,0,0,.15);
  text-align: center;
}
.login-logo-badge {
  width: 84px; height: 84px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 22px;
  box-shadow:
    0 12px 28px -8px rgba(7, 33, 56, .55),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.login-logo {
  width: 56px; height: 56px; display: block;
}
.login-title {
  font-size: 1.375rem; font-weight: 800; color: var(--navy);
  letter-spacing: -.01em; margin-bottom: .25rem;
}
.login-sub {
  font-size: .8125rem; color: var(--g500); margin-bottom: 1.5rem;
}
.login-card form { text-align: left; }
.login-card .form-group input {
  padding: .9rem 1rem; font-size: 1rem;
}
.login-card .alert { text-align: left; }

/* ════════════════════════════════════════════════════════
   DESKTOP LAYOUT — tablet and larger
   Widens the page body, turns the jobs list into a responsive
   grid, and converts the bottom nav into a floating pill so
   the dashboard doesn't feel like a single narrow column on
   large monitors.
   ════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .page-body {
    max-width: 960px;
    padding-left: 1.75rem; padding-right: 1.75rem;
  }

  /* Jobs list: 1 col → 2 cols */
  .jobs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
  }
  .job-card { display: flex; flex-direction: column; }
  .card-issue { flex: 1; }

  /* Stats row stays 2-col but tighter relative to wider body */
  .stats-row { gap: 1rem; }

  /* Forms / panels shouldn't sprawl across a wide screen */
  .panel { max-width: 780px; margin-left: auto; margin-right: auto; }

  /* Search bar capped so it doesn't stretch to an absurd width */
  .search-box, .filter-row { max-width: 780px; margin-left: auto; margin-right: auto; }

  /* Floating pill nav */
  .bot-nav {
    left: 50%; right: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    max-width: 520px; width: calc(100% - 2rem);
    border: 1px solid var(--g200);
    border-top: 1px solid var(--g200);
    border-radius: 999px;
    box-shadow: 0 18px 40px -12px rgba(7,33,56,.25),
                0 4px 12px rgba(7,33,56,.08);
    padding: 0 .5rem;
    padding-bottom: 0; /* reset iOS safe-area on desktop */
  }
  .bot-nav a        { border-radius: 999px; }
  .bot-nav .nav-add { flex: 0 0 80px; }

  /* Page-body needs extra bottom clearance for the floating pill */
  .page-body {
    padding-bottom: calc(var(--bot-nav) + 3rem);
  }
}

@media (min-width: 1100px) {
  .page-body {
    max-width: 1240px;
    padding-left: 2rem; padding-right: 2rem;
  }

  /* Jobs list: 2 cols → 3 cols */
  .jobs-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* Keep the stats compact and centered so they don't sprawl */
  .stats-row {
    max-width: 560px;
    margin-left: auto; margin-right: auto;
  }

  /* Keep the top bar content from stretching across ultrawide monitors */
  .top-bar {
    padding-left: 2rem; padding-right: 2rem;
  }
}

