/* ═══════════════════════════════════════════════════════════════
   Panache Green — Project Execution Module
   Color palette mirrors CRM exactly
   ═══════════════════════════════════════════════════════════════ */
:root {
  --pg-primary:   #14aea1;
  --pg-dark:      #2a5365;
  --pg-mid:       #158489;
  --pg-accent:    #a2bd38;
  --pg-cyan:      #59c7d6;
  --pg-pale:      #e8f8f7;
  --pg-pale-dark: #d0f0ee;
  --pg-text:      #1a2e35;
  --pg-danger:    #dc3545;
  --pg-warning:   #f4a30a;
  --pg-success:   #28a745;
  --sidebar-w:    250px;
  --topbar-h:     58px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f0f4f5;
  color: var(--pg-text);
  font-size: 14px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--pg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-logo {
  width: 38px; height: 38px;
  background: var(--pg-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.brand-name  { font-size: 13px; font-weight: 700; line-height: 1.2; }
.brand-tag   { font-size: 9px; opacity: .6; margin-top: 2px; }

.sidebar-nav { padding: 8px 0; flex-grow: 1; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-link:hover        { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active       { background: var(--pg-primary); color: #fff; }
.nav-link i            { width: 18px; text-align: center; font-size: 15px; }

.sidebar-divider { border-color: rgba(255,255,255,.1); margin: 6px 14px; }

.sidebar-group-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 18px;
  background: none; border: none; color: rgba(255,255,255,.78);
  font-size: 13px; font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer; transition: background .15s;
}
.sidebar-group-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-group-btn .chevron { margin-left: auto; transition: transform .2s; }
.sidebar-group-btn.open .chevron { transform: rotate(180deg); }

.sidebar-group-body .nav-link { padding-left: 42px; font-size: 12.5px; }

/* ── Module color accents in sidebar ─────────────────────────── */
.mod-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
}
.nav-link .mod-icon, .sidebar-group-btn .mod-icon { margin-right: -2px; }

/* Color variants */
.mi-teal    { background: rgba(20,174,161,.25);  color: #4dd9d0 !important; }
.mi-blue    { background: rgba(59,130,246,.25);  color: #93c5fd !important; }
.mi-amber   { background: rgba(245,158,11,.25);  color: #fcd34d !important; }
.mi-green   { background: rgba(162,189,56,.25);  color: #bef264 !important; }
.mi-purple  { background: rgba(139,92,246,.25);  color: #c4b5fd !important; }
.mi-pink    { background: rgba(236,72,153,.25);  color: #f9a8d4 !important; }
.mi-emerald { background: rgba(16,185,129,.25);  color: #6ee7b7 !important; }
.mi-orange  { background: rgba(249,115,22,.25);  color: #fdba74 !important; }
.mi-cyan    { background: rgba(6,182,212,.25);   color: #67e8f9 !important; }
.mi-red     { background: rgba(239,68,68,.25);   color: #fca5a5 !important; }
.mi-indigo  { background: rgba(99,102,241,.25);  color: #a5b4fc !important; }
.mi-dkorange{ background: rgba(234,88,12,.25);   color: #fed7aa !important; }
.mi-gray    { background: rgba(156,163,175,.2);  color: #d1d5db !important; }

/* keep icon color on hover/active */
.nav-link:hover .mod-icon,
.nav-link.active .mod-icon,
.sidebar-group-btn:hover .mod-icon { background: rgba(255,255,255,.15); }

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--pg-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}

/* ── Main Content ─────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  padding: 0 24px;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e0eaed;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.topbar-title  { font-size: 16px; font-weight: 700; color: var(--pg-dark); }
.topbar-sub    { font-size: 11px; color: #7a9ab0; margin-top: 1px; }

.content-area { padding: 20px 24px; flex-grow: 1; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-pg {
  background: var(--pg-primary); color: #fff; border: none;
  padding: 7px 16px; border-radius: 8px; font-weight: 600;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  cursor: pointer; transition: background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-pg:hover           { background: var(--pg-mid); color: #fff; }
.btn-pg.btn-sm          { padding: 4px 11px; font-size: 12px; }
.btn-pg.btn-lg          { padding: 11px 22px; font-size: 15px; }

.btn-outline-pg {
  background: transparent; color: var(--pg-primary);
  border: 2px solid var(--pg-primary);
  padding: 6px 16px; border-radius: 8px; font-weight: 600;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-pg:hover { background: var(--pg-pale); }

.btn-accent {
  background: var(--pg-accent); color: #fff; border: none;
  padding: 7px 16px; border-radius: 8px; font-weight: 600;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  cursor: pointer; transition: background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-accent:hover { background: #8da82e; color: #fff; }

.btn-danger-soft {
  background: #fff1f1; color: var(--pg-danger); border: 1px solid #f5c6c6;
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid #e4edf0;
  border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid #eaf2f4;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--pg-dark);
}
.card-body  { padding: 16px 18px; }
.card-footer {
  padding: 10px 18px;
  border-top: 1px solid #eaf2f4;
  background: var(--pg-pale);
}

.pg-header {
  background: linear-gradient(135deg, var(--pg-dark), var(--pg-mid));
  color: #fff;
}

/* ── Stat Cards ───────────────────────────────────────────────── */
.stat-card {
  background: #fff; border: 1px solid #e4edf0;
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.primary  { background: var(--pg-pale); color: var(--pg-primary); }
.stat-icon.accent   { background: #f4f9e3; color: var(--pg-accent); }
.stat-icon.warning  { background: #fff8ec; color: var(--pg-warning); }
.stat-icon.danger   { background: #fff1f1; color: var(--pg-danger); }
.stat-icon.cyan     { background: #ebfafc; color: var(--pg-cyan); }
.stat-card > div:last-child { min-width: 0; overflow: hidden; }
.stat-value { font-size: 19px; font-weight: 800; color: var(--pg-dark); white-space: normal; line-height: 1.2; overflow-wrap: break-word; letter-spacing: -.2px; }
.stat-label { font-size: 11px; color: #7a9ab0; margin-top: 1px; white-space: normal; line-height: 1.25; overflow-wrap: break-word; }

/* ── Overview: hero progress + metric grid ───────────────────── */
.overview-hero-card {
  background: linear-gradient(135deg, var(--pg-dark), var(--pg-mid));
  border-radius: 16px; padding: 18px 22px; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(20,84,100,.18);
}
.overview-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.overview-hero-label { font-size: 11px; color: rgba(255,255,255,.65); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.overview-hero-pct { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.overview-hero-sub { font-size: 13px; color: rgba(255,255,255,.8); }
.overview-hero-card .pg-progress { background: rgba(255,255,255,.18); }
.overview-hero-card .pg-progress-bar { background: linear-gradient(90deg, var(--pg-cyan), var(--pg-accent)); }
.overview-hero-card .behind-tag { background: #fff8ec; box-shadow: 0 2px 6px rgba(0,0,0,.12); }

.overview-metric-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.metric-card {
  background: #fff; border: 1px solid #e4edf0; border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.metric-card.accent  { background: #f4f9e3; border-color: #e8f0d4; }
.metric-card.primary { background: var(--pg-pale); border-color: var(--pg-pale-dark); }
.metric-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.metric-icon.warning { background: #fff8ec; color: var(--pg-warning); }
.metric-icon.danger  { background: #fff1f1; color: var(--pg-danger); }
.metric-icon.accent  { background: #e6f0c9; color: var(--pg-accent); }
.metric-icon.primary { background: var(--pg-pale-dark); color: var(--pg-primary); }
.metric-card > div:last-child { min-width: 0; overflow: hidden; }
.metric-label { font-size: 11px; font-weight: 600; color: #7a9ab0; margin-bottom: 3px; white-space: nowrap; }
.metric-card.accent  .metric-label { color: #6b8324; }
.metric-card.primary .metric-label { color: var(--pg-mid); }
.metric-value { font-size: 18px; font-weight: 800; color: var(--pg-dark); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card.accent  .metric-value { color: #5a7220; }
.metric-card.primary .metric-value { color: var(--pg-mid); }

/* ── ITP gate status row ──────────────────────────────────────── */
.itp-segment-bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: #e8eef0; margin-bottom: 10px;
}
.itp-segment.approved   { background: var(--pg-accent); }
.itp-segment.rejected   { background: var(--pg-danger); }
.itp-segment.inprogress { background: var(--pg-primary); }
.itp-segment.pending    { background: #d7e3e8; }
.itp-status-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.itp-status-row .itp-stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #5a6b73; }
@media (max-width: 768px) {
  .overview-metric-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Key Contacts ─────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.contact-chip {
  display: flex; align-items: center; gap: 10px;
  background: #f8fbfc; border: 1px solid #eaf2f4; border-radius: 10px;
  padding: 10px 12px;
}
.contact-chip.empty { background: #fbfcfd; border-style: dashed; }
.contact-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.contact-avatar.company { background: var(--pg-mid); }
.contact-avatar.client  { background: var(--pg-accent); }
.contact-avatar.empty   { background: #d7e3e8; color: #9bb0ba; }
.contact-info { min-width: 0; overflow: hidden; }
.contact-role { font-size: 10px; font-weight: 700; color: #7a9ab0; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.contact-name { font-size: 13px; font-weight: 700; color: var(--pg-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-name.muted { color: #aab8c2; font-weight: 500; font-style: italic; }
.contact-phone { font-size: 11px; color: var(--pg-primary); text-decoration: none; display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.contact-phone:hover { text-decoration: underline; }

/* ── Status Badges ────────────────────────────────────────────── */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-planning  { background: #eef2ff; color: #6366f1; }
.badge-active    { background: #e6fbf8; color: var(--pg-primary); }
.badge-hold      { background: #fff8ec; color: var(--pg-warning); }
.badge-completed { background: #f0fdf4; color: var(--pg-success); }
.badge-closed    { background: #f4f4f4; color: #888; }
.badge-pending   { background: #fff8ec; color: var(--pg-warning); }
.badge-approved  { background: #e6fbf8; color: var(--pg-primary); }
.badge-rejected  { background: #fff1f1; color: var(--pg-danger); }
.badge-paid      { background: #f0fdf4; color: var(--pg-success); }

/* ── Gate Progress ────────────────────────────────────────────── */
.gate-track {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.gate-pill {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.gate-pill.done    { background: var(--pg-primary); color: #fff; }
.gate-pill.current { background: var(--pg-accent); color: #fff; }
.gate-pill.pending { background: #e8eef0; color: #aaa; }

/* ── Tables ───────────────────────────────────────────────────── */
.pg-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.pg-table th {
  background: var(--pg-pale); color: var(--pg-dark);
  padding: 10px 12px; font-weight: 700;
  border-bottom: 2px solid var(--pg-pale-dark);
  white-space: nowrap;
  text-align: left;
}
.pg-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f5f6;
  vertical-align: middle;
}
.pg-table tr:last-child td { border-bottom: none; }
.pg-table tr:hover td { background: #fafefe; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-label {
  font-size: 12px; font-weight: 600; color: var(--pg-dark);
  margin-bottom: 4px; display: block;
}
.form-control, .form-select {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid #d6e4e8; border-radius: 8px;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  color: var(--pg-text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pg-primary);
  box-shadow: 0 0 0 3px rgba(20,174,161,.12);
}
.form-control::placeholder { color: #aac3ca; }
textarea.form-control { resize: vertical; min-height: 70px; }

.input-group { display: flex; }
.input-group .form-control { border-radius: 8px 0 0 8px; }
.input-group .btn-pg       { border-radius: 0 8px 8px 0; }

/* ── Progress Bar ─────────────────────────────────────────────── */
.pg-progress {
  height: 8px; border-radius: 4px;
  background: #e8eef0; overflow: hidden;
}
.pg-progress-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--pg-primary), var(--pg-accent));
  transition: width .4s ease;
}
.pg-progress-bar.danger  { background: var(--pg-danger); }
.pg-progress-bar.warning { background: var(--pg-warning); }

/* ── Timeline ─────────────────────────────────────────────────── */
.timeline-item {
  display: flex; gap: 14px; padding-bottom: 20px;
  position: relative;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: 15px; top: 30px; bottom: 0; width: 2px;
  background: var(--pg-pale-dark);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pg-pale); border: 2px solid var(--pg-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--pg-primary); flex-shrink: 0;
  z-index: 1;
}
.timeline-dot.done { background: var(--pg-primary); color: #fff; }
.timeline-dot.active { background: var(--pg-accent); border-color: var(--pg-accent); color: #fff; }

/* ── Mobile top nav ───────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 12px; left: 14px; z-index: 1100;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--pg-dark); color: #fff; border: none;
  font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.45);
}

/* ── Tool Cards (Area / Level) ────────────────────────────────── */
.tool-card {
  background: #fff; border-radius: 18px;
  border: 1px solid #e4edf0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}
.tool-display {
  background: var(--pg-dark);
  color: #fff; text-align: center;
  padding: 24px 16px;
}
.tool-big-number {
  font-size: 48px; font-weight: 800;
  color: var(--pg-accent); line-height: 1;
}
.tool-unit { font-size: 16px; opacity: .7; margin-top: 4px; }

/* Level indicator */
.level-bubble-wrap {
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 3px solid rgba(255,255,255,.3);
  margin: 0 auto; position: relative; overflow: hidden;
}
.level-bubble {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pg-accent);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: top .1s, left .1s;
  box-shadow: 0 0 0 4px rgba(162,189,56,.3);
}
.level-crosshair {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.level-crosshair::before, .level-crosshair::after {
  content: ''; position: absolute;
  background: rgba(255,255,255,.2);
}
.level-crosshair::before { width: 100%; height: 1px; }
.level-crosshair::after  { width: 1px; height: 100%; }

/* ── Expense quick-add fab ────────────────────────────────────── */
.fab {
  position: fixed; bottom: 24px; right: 22px; z-index: 800;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--pg-primary); color: #fff; border: none;
  font-size: 24px; box-shadow: 0 4px 16px rgba(20,174,161,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, background .15s;
}
.fab:hover { background: var(--pg-mid); transform: scale(1.08); }

/* ── Kanban / Stage board ─────────────────────────────────────── */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col {
  min-width: 220px; background: var(--pg-pale);
  border-radius: 12px; padding: 10px;
  flex-shrink: 0;
}
.kanban-col-header {
  font-size: 12px; font-weight: 700; color: var(--pg-dark);
  padding: 4px 6px 10px; text-transform: uppercase; letter-spacing: .5px;
}
.kanban-item {
  background: #fff; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid #e4edf0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  font-size: 13px;
}

/* ── Checklist ────────────────────────────────────────────────── */
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f0f5f6;
}
.check-item:last-child { border-bottom: none; }
.check-box {
  width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid #c8dde2; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; margin-top: 1px;
}
.check-box.checked {
  background: var(--pg-primary); border-color: var(--pg-primary); color: #fff;
}

/* ── Photo upload ─────────────────────────────────────────────── */
.photo-upload-area {
  border: 2px dashed #c4d9dd; border-radius: 12px;
  padding: 20px; text-align: center;
  color: #7a9ab0; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.photo-upload-area:hover { border-color: var(--pg-primary); background: var(--pg-pale); }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-thumb {
  width: 70px; height: 70px; border-radius: 8px;
  object-fit: cover; border: 2px solid var(--pg-pale-dark);
}

/* ── Toast / Flash ────────────────────────────────────────────── */
.toast-container { z-index: 9999; }

/* ── Alert inline ─────────────────────────────────────────────── */
.alert-pg {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; display: flex; align-items: flex-start; gap: 8px;
}
.alert-pg.info    { background: #ebfafc; color: var(--pg-mid); border: 1px solid #c4eef2; }
.alert-pg.success { background: #f0fdf4; color: var(--pg-success); border: 1px solid #bbf0cc; }
.alert-pg.warning { background: #fff8ec; color: #b07a00; border: 1px solid #fce7a8; }
.alert-pg.danger  { background: #fff1f1; color: var(--pg-danger); border: 1px solid #f5c6c6; }

/* ── Utilities ────────────────────────────────────────────────── */
.text-pg      { color: var(--pg-primary) !important; }
.text-accent  { color: var(--pg-accent) !important; }
.text-dark-pg { color: var(--pg-dark) !important; }
.bg-pg        { background: var(--pg-primary) !important; }
.bg-pale      { background: var(--pg-pale) !important; }
.rounded-pg   { border-radius: 12px; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.gap-8        { gap: 8px; }
.text-11      { font-size: 11px; }
.text-12      { font-size: 12px; }
.text-13      { font-size: 13px; }

/* ── Mobile Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; }

  .mobile-menu-btn { display: flex; }

  .topbar { padding: 0 14px 0 60px; }

  .content-area { padding: 14px 14px; }

  .stat-card { padding: 12px 14px; }
  .stat-value { font-size: 18px; }

  .tool-big-number { font-size: 36px; }

  .fab { bottom: 16px; right: 16px; }

  .pg-table { font-size: 12px; }
  .pg-table th, .pg-table td { padding: 8px 8px; }

  .card-body { padding: 12px 14px; }
  .card-header { padding: 12px 14px; }

  .btn-pg, .btn-outline-pg { font-size: 12px; padding: 7px 13px; }

  /* Hide less critical table columns on mobile */
  .hide-mobile { display: none; }
}

@media (max-width: 420px) {
  .topbar-title { font-size: 14px; }
  .stat-icon { width: 38px; height: 38px; font-size: 16px; }
}
