/* ==========================================================================
   APTI Business Solution — light theme (white surfaces + gold accent)
   Palette: light neutral surfaces, gold/bronze accent (matches login.css).
   Enterprise dashboard styling in the spirit of Microsoft / Zoho /
   Salesforce / Power BI, adapted to light mode.
   Display face: Fraunces (serif, restrained) for titles + eyebrows.
   Body face: Inter for everything else.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-base: #f5f6fa;
  --bg-surface: #ffffff;
  --bg-surface-2: #f0f2f7;
  --bg-surface-3: #e7eaf2;
  --border: #dde1ec;
  --border-soft: #e6e9f1;

  --text-primary: #1b2436;
  --text-secondary: #5b6478;
  --text-muted: #8891a5;

  --gold: #b8791f;
  --gold-bright: #d9a13d;
  --gold-dim: rgba(217, 161, 61, 0.12);

  --success: #34d399;
  --success-bright: #10b981;
  --danger: #f87171;
  --danger-bright: #ef4444;
  --info: #60a5fa;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(20, 26, 43, 0.06), 0 10px 24px rgba(20, 26, 43, 0.08);
  --shadow-sm: 0 1px 2px rgba(20, 26, 43, 0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(217, 161, 61, 0.06), transparent 60%),
    var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------- Top navigation ---------------- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(20, 26, 43, 0.04);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--gold) 0%, #7f5817 100%);
  color: #fdf6ea;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(167, 118, 31, 0.28);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.nav-brand-text strong {
  font-weight: 700;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

.nav-link.active {
  color: #fdf6ea;
  background: var(--gold);
  font-weight: 600;
}

/* ---------------- Page shell ---------------- */
.page-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

.page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 640px;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--gold);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-gold {
  background: var(--gold);
  color: #fdf6ea;
  box-shadow: 0 1px 2px rgba(167, 118, 31, 0.25);
}
.btn-gold:hover:not(:disabled) {
  background: #8f6519;
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.btn-success {
  background: var(--success);
  color: #06150e;
}
.btn-success:hover:not(:disabled) {
  background: var(--success-bright);
}

.btn-danger-outline {
  background: transparent;
  border-color: rgba(220, 76, 71, 0.4);
  color: var(--danger-bright);
}
.btn-danger-outline:hover:not(:disabled) {
  background: rgba(220, 76, 71, 0.08);
}

.btn-danger {
  background: var(--danger);
  color: #1a0403;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bright);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

/* ---------------- Toolbar / filters ---------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

input[type="text"],
input[type="search"],
select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font-body);
  min-width: 170px;
  box-shadow: var(--shadow-sm);
}

input[type="text"]::placeholder,
input[type="search"]::placeholder {
  color: var(--text-muted);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-input {
  flex: 1;
  min-width: 240px;
}

.upload-label {
  display: inline-flex;
  align-items: center;
}

/* ---------------- Summary cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 16px;
  min-width: 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 18px rgba(20, 26, 43, 0.12);
  transform: translateY(-2px);
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------- Table ---------------- */
.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: auto;
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  background: linear-gradient(180deg, #cf9a3d 0%, var(--gold) 100%);
  color: #fdf6ea;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 2px solid #7f5817;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--bg-surface-2);
}

tbody tr:hover {
  background: var(--gold-dim);
}

.cell-muted {
  color: var(--text-secondary);
}

.source-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.source-naukri  { background: #e8f0fe; color: #2f5fc4; }
.source-shine   { background: #f7ecd9; color: var(--gold); }
.source-foundit { background: #e3f6ec; color: var(--success-bright); }
.source-upload  { background: #eef0f4; color: var(--text-secondary); }

.job-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.job-link:hover {
  text-decoration: underline;
}

/* ---------------- Pagination ---------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

#pageInfo {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------------- Empty state ---------------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.hint {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ---------------- Home page ---------------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.home-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.home-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(20, 26, 43, 0.12);
  transform: translateY(-3px);
}

.home-card-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.home-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-card-arrow {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------------- Modal (job description / matches) ---------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 43, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(20, 26, 43, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-primary); }

.modal-box h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  margin: 4px 0 16px;
  font-size: 13.5px;
}

.modal-desc-text {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 13.5px;
  color: var(--text-primary);
}

/* ---------------- Match badges / skill chips ---------------- */
.match-badge {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.match-high { background: #e3f6ec; color: var(--success-bright); }
.match-mid  { background: #f7ecd9; color: var(--gold); }
.match-low  { background: #fbe7e6; color: var(--danger-bright); }

.skill-chip {
  display: inline-block;
  background: var(--bg-surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  margin: 2px 4px 2px 0;
  font-size: 11.5px;
  font-weight: 500;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-inner, .page-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-title { font-size: 32px; }
  .nav-links { gap: 0; }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------------- Fetch module (Feature 5) ---------------- */
.fetch-module {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.fetch-module-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fetch-status {
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 18px;
  transition: color 0.2s ease;
}

.fetch-status.is-active {
  color: var(--gold);
}

.fetch-status.is-success {
  color: var(--success-bright);
}

.fetch-status.is-error {
  color: var(--danger-bright);
}

/* ---------------- Charts (Features 1 & 2) ---------------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px 16px;
  box-shadow: var(--shadow-card);
}

.chart-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
}

.chart-canvas-wrap.tall {
  height: 320px;
}

/* ---------------- Full-width primary chart row (7 Day) ---------------- */
.chart-grid-full {
  grid-template-columns: 1fr;
}

.chart-canvas-wrap.tall-lg {
  height: 380px;
}

.chart-canvas-wrap canvas {
  position: relative;
  z-index: 1;
}

/* ---------------- Skeleton loaders (Feature 7) ---------------- */
.skeleton-chart {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--bg-surface-2) 30%, var(--bg-surface-3) 50%, var(--bg-surface-2) 70%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
  z-index: 0;
}

.sector-grid .skeleton-chart {
  position: static;
  height: 140px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

.chart-canvas-wrap.is-loaded .skeleton-chart,
.sector-grid.is-loaded .skeleton-chart {
  display: none;
}

/* ---------------- Sector breakdown (Feature 3) ---------------- */
.sector-card {
  margin-bottom: 24px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.sector-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sector-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.sector-item-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sector-item-count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.sector-item-pct {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-left: 6px;
}

.sector-item-bar {
  margin-top: 8px;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-surface-3);
  overflow: hidden;
}

.sector-item-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---------------- Per-sector mini trend charts ---------------- */
.mini-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  position: relative;
  min-height: 130px;
}

.mini-chart-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 8px;
  transition: border-color 0.15s ease;
}

.mini-chart-item:hover {
  border-color: var(--gold);
}

.mini-chart-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-chart-canvas-wrap {
  position: relative;
  height: 90px;
}

.mini-chart-grid .skeleton-chart {
  position: static;
  height: 130px;
  grid-column: 1 / -1;
}

/* ---------------- Stat boxes (used on jobs.html and home.html) ----------------
   Two side-by-side groups, each a 2x2 grid of .stat-card cards. */
.home-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 14px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.home-stats-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
}

.home-stats-group-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.home-stats-grid {
  display: grid;
  gap: 12px;
}

.home-stats-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-stats-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .home-stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-stats-grid-4,
  .home-stats-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------- Report page ---------------- */

/* Premium report header: soft card background, accent underline,
   stronger typography — makes "Email & Contact Report" the clear
   focal point of the page while staying inside the light theme. */
.report-header {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 36px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.report-header-inner {
  padding-left: 4px;
}

.report-main-title {
  font-size: 36px;
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.report-main-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 1100px) {
  .report-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .report-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-header {
    padding: 24px 22px 22px;
  }
  .report-main-title {
    font-size: 28px;
  }
}

/* ---------------- Coverage Comparison card (single combined total) ---------------- */
.comparison-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-card p {
  font-size: 26px;
}

.comparison-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.report-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.no-results-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
}

.report-cards + .report-toolbar-row + .table-wrap table,
#reportTableBody {
  table-layout: fixed;
}

#reportTableBody td:nth-child(1) { width: 22%; }
#reportTableBody td:nth-child(2) { width: 46%; }
#reportTableBody td:nth-child(3) { width: 17%; }
#reportTableBody td:nth-child(4) { width: 15%; }

#reportTableBody td {
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: middle;
}

#reportTableBody tr {
  height: 1px; /* lets vertical-align: middle actually take effect per-row */
}

.multi-value {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0;
}

.multi-value span {
  line-height: 1.4;
}

#reportTableBody tr:first-child td {
  padding-top: 20px;
}

/* ---------------- Jobs table: Description column (clamp + expand) ---------------- */
.desc-cell {
  max-width: 260px;
  vertical-align: top;
}

.desc-text {
  display: block;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.desc-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.desc-toggle-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0 0;
  cursor: pointer;
}

.desc-toggle-btn:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}
/* Loading spinner (added) - used on jobs-list.html while jobs are being fetched from the backend */
.table-loading-cell {
  text-align: center;
  padding: 40px 0;
}
.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #e8d5b0;
  border-top: 4px solid #c9922e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}