/* ==========================================================================
   CJP Southern Star OPC — Design System
   Clean, light, corporate visual language built on the CJP brand palette.
   ========================================================================== */

:root {
  /* --- Brand --- */
  --cjp-red: #E31E24;
  --cjp-red-dark: #B4151A;
  --cjp-red-50: #FDECEC;
  --cjp-black: #14171F;
  --cjp-black-soft: #1f2330;
  --cjp-green: #15803D;
  --cjp-green-50: #DCFCE7;
  --cjp-amber: #D97706;
  --cjp-amber-solid: #f2a924;
  --cjp-amber-50: #FEF3C7;
  --cjp-blue: #1D4ED8;
  --cjp-blue-50: #DBEAFE;

  /* legacy aliases kept so existing classes still resolve */
  --cjp-navy: #14171F;
  --cjp-navy-dark: #0a0a0b;
  --cjp-bg: #F8FAFC;

  /* --- Neutrals (slate) --- */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* --- Elevation / shape --- */
  --cjp-card-radius: 12px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.18);
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--slate-50);
  background-image: radial-gradient(circle, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--slate-800);
  font-size: .925rem;
}
h1, h2, h3, h4, h5, h6 { color: var(--slate-900); letter-spacing: -.01em; }
a { color: var(--cjp-red-dark); }
a:hover { color: var(--cjp-red); }

::selection { background: var(--cjp-red-50); color: var(--cjp-red-dark); }

/* Slim, unobtrusive scrollbars for the internal-scroll panels across the app */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ===== App shell: sidebar + topbar ===== */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 272px;
  flex-shrink: 0;
  background: var(--cjp-black);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(227,30,36,.30), transparent 42%),
    radial-gradient(circle at 90% 94%, rgba(21,128,61,.20), transparent 48%),
    linear-gradient(165deg, #14171F 0%, #1b1e29 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1045;
  box-shadow: 4px 0 28px rgba(0,0,0,.18);
  transition: transform .25s ease;
}
.app-main { flex: 1 1 auto; margin-left: 272px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.sidebar-brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.2rem 1.1rem 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-brand-logo { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 3px 8px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.sidebar-brand strong { color: #fff; display: block; font-size: .95rem; letter-spacing: -.01em; line-height: 1.25; }
.sidebar-brand small { color: var(--cjp-amber-solid); font-weight: 600; letter-spacing: .03em; font-size: .68rem; display: block; }
.sidebar-close-btn { margin-left: auto; color: rgba(255,255,255,.6); background: none; border: none; font-size: 1.25rem; display: none; padding: .25rem; line-height: 1; }
.sidebar-close-btn:hover { color: #fff; }

.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: .8rem .65rem 1.25rem; }
.sidebar-section-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  padding: 1rem .7rem .4rem;
  list-style: none;
}
.sidebar-menu, .sidebar-submenu { list-style: none; margin: 0; padding: 0; }
.sidebar-item { margin-bottom: .15rem; }
.sidebar-link, .sidebar-group-toggle {
  display: flex; align-items: center; gap: .65rem;
  width: 100%;
  padding: .62rem .75rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.72);
  font-size: .855rem; font-weight: 500;
  text-decoration: none;
  border: none; background: none;
  transition: background-color .15s ease, color .15s ease;
  position: relative;
}
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; color: rgba(255,255,255,.55); transition: color .15s ease; }
.sidebar-label { flex: 1 1 auto; text-align: left; }
.sidebar-link:hover, .sidebar-group-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-link:hover .sidebar-icon, .sidebar-group-toggle:hover .sidebar-icon { color: #fff; }
.sidebar-link.active, .sidebar-group-toggle.active { background: rgba(227,30,36,.18); color: #fff; }
.sidebar-link.active .sidebar-icon, .sidebar-group-toggle.active .sidebar-icon { color: var(--cjp-red); }
.sidebar-link.active::before, .sidebar-group-toggle.active::before {
  content: ''; position: absolute; left: -.65rem; top: .35rem; bottom: .35rem; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--cjp-red);
}
.sidebar-caret { font-size: .7rem; color: rgba(255,255,255,.4); transition: transform .2s ease; margin-left: auto; flex-shrink: 0; }
.sidebar-group-toggle[aria-expanded="true"] .sidebar-caret { transform: rotate(180deg); }
.sidebar-submenu {
  padding-left: 0; margin-top: .1rem; margin-bottom: .35rem; margin-left: 1.4rem;
  border-left: 1px dashed rgba(255,255,255,.1);
}
.sidebar-sublink {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .65rem; margin: .05rem 0 .05rem .1rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  font-size: .81rem; font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar-sublink i { width: 16px; text-align: center; font-size: .88rem; color: rgba(255,255,255,.45); flex-shrink: 0; }
.sidebar-sublink:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-sublink.active { background: rgba(227,30,36,.18); color: #fff; font-weight: 600; }
.sidebar-sublink.active i { color: var(--cjp-red); }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem .5rem; list-style: none; }
.sidebar-link .badge, .sidebar-sublink .badge, .sidebar-group-toggle .badge { margin-left: auto; flex-shrink: 0; }

.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,11,15,.55);
  z-index: 1040;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
}

/* ===== Top bar ===== */
.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: .55rem 1.1rem;
  z-index: 1035;
}
.app-topbar-inner { display: flex; align-items: center; gap: .6rem; }
.topbar-btn {
  border: none; background: none; color: var(--slate-600);
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
  text-decoration: none;
}
.topbar-btn:hover { background: var(--slate-100); color: var(--slate-900); }
.topbar-brand-logo { height: 28px; width: auto; }

.avatar-chip {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cjp-red), var(--cjp-red-dark));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.user-menu-toggle { color: var(--slate-700) !important; padding: .3rem .6rem !important; border-radius: 999px; }
.user-menu-toggle:hover { background: var(--slate-100); }
.user-menu-toggle .user-name { font-size: .85rem; font-weight: 600; color: var(--slate-900); }
.user-menu-toggle .user-role { font-size: .68rem; letter-spacing: .04em; color: var(--slate-500); display: block; margin-top: -2px; }

@media (min-width: 992px) {
  .sidebar-toggle-btn.d-lg-none, .topbar-brand.d-lg-none, .sidebar-close-btn.d-lg-none { display: none !important; }
}
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.sidebar-open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .sidebar-backdrop.show { opacity: 1; visibility: visible; }
  .sidebar-close-btn { display: inline-flex; }
}

/* The sidebar/topbar are on-screen chrome only - every printable page (invoices, reports,
   payslips, SOAs, receiving reports, etc.) should print just its content edge-to-edge. Several
   of those pages carry their own inline "@media print { .app-navbar, ... }" rule from before the
   sidebar existed; that rule is now a harmless no-op (no .app-navbar in the DOM anymore), so this
   is the one place that actually has to hide the new chrome on print, and it covers every page
   automatically since style.css is loaded everywhere. */
@media print {
  .app-sidebar, .app-topbar, .sidebar-backdrop { display: none !important; }
  .app-main { margin-left: 0 !important; }
}

/* Team Chat online/offline presence indicator - used in navbar, staff lists, and Team Chat */
.presence-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.presence-online { background: #28a745; box-shadow: 0 0 0 2px rgba(40,167,69,.2); }
.presence-offline { background: #adb5bd; }
.avatar-presence-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 9px; height: 9px;
  border: 2px solid #fff; /* sits on the light topbar now, not the old dark navbar */
  box-shadow: none;
}

.app-content { max-width: 1400px; margin: 0 auto; }

/* ===== Cards ===== */
.card {
  border: 1px solid var(--slate-200);
  border-radius: var(--cjp-card-radius);
  box-shadow: var(--shadow-xs);
}

/* ===== Stat cards (dashboard KPIs) ===== */
.stat-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--stat-color, var(--cjp-red));
  border-radius: var(--cjp-card-radius);
  padding: 1.15rem 1.35rem;
  color: var(--slate-800);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .18s ease, transform .18s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card i.bg-icon {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-size: 1.05rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--stat-tint, rgba(227,30,36,.1));
  color: var(--stat-color, var(--cjp-red));
  opacity: 1;
}
.stat-card h3 { font-weight: 800; margin-bottom: 0; font-size: 1.85rem; color: var(--slate-900); letter-spacing: -.02em; }
.stat-card .label { font-size: .76rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .3rem; }

.stat-navy  { --stat-color: var(--cjp-black); --stat-tint: rgba(20,23,31,.08); }
.stat-amber { --stat-color: var(--cjp-amber); --stat-tint: rgba(217,119,6,.12); }
.stat-teal  { --stat-color: var(--cjp-green); --stat-tint: rgba(21,128,61,.12); }
.stat-red   { --stat-color: var(--cjp-red);   --stat-tint: rgba(227,30,36,.1); }

/* ===== Section headers ===== */
.section-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-left: .7rem;
  border-left: 4px solid var(--cjp-red);
  line-height: 1.25;
}
.section-title i { color: var(--cjp-red); }

/* ===== Tables ===== */
.table thead th {
  background: var(--slate-50);
  color: var(--slate-600);
  border: none;
  border-bottom: 2px solid var(--slate-200);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.table tbody td { border-color: var(--slate-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--slate-50); }
.table-responsive { border-radius: var(--radius-md); }

/* ===== Buttons ===== */
.btn { border-radius: var(--radius-md); font-weight: 600; font-size: .875rem; letter-spacing: .01em; }
.btn-primary { background: var(--cjp-red); border-color: var(--cjp-red); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus { background: var(--cjp-red-dark); border-color: var(--cjp-red-dark); box-shadow: 0 4px 10px rgba(227,30,36,.25); }
.btn-outline-secondary { border-color: var(--slate-300); color: var(--slate-600); }
.btn-outline-secondary:hover { background: var(--slate-100); border-color: var(--slate-400); color: var(--slate-900); }
.btn-warning { color: #fff; }
.btn-amber { background: var(--cjp-amber-solid); border-color: var(--cjp-amber-solid); color: #fff; }
.btn-amber:hover { background: var(--cjp-amber); color: #fff; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(227,30,36,.18); }

/* ===== Forms ===== */
.form-label { font-weight: 600; color: var(--slate-600); font-size: .84rem; }
.form-control, .form-select {
  border-color: var(--slate-300);
  border-radius: var(--radius-md);
  font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cjp-red);
  box-shadow: 0 0 0 3px rgba(227,30,36,.12);
}

/* ===== Badges — subtle "soft" style for status labels; counters (rounded-pill) stay solid ===== */
.badge { font-weight: 700; font-size: .7rem; padding: .38em .65em; border-radius: 6px; letter-spacing: .02em; }
.badge.text-bg-success:not(.rounded-pill), .badge.bg-success:not(.rounded-pill) { background: var(--cjp-green-50) !important; color: var(--cjp-green) !important; }
.badge.text-bg-warning:not(.rounded-pill), .badge.bg-warning:not(.rounded-pill) { background: var(--cjp-amber-50) !important; color: var(--cjp-amber) !important; }
.badge.text-bg-danger:not(.rounded-pill), .badge.bg-danger:not(.rounded-pill) { background: var(--cjp-red-50) !important; color: var(--cjp-red-dark) !important; }
.badge.text-bg-info:not(.rounded-pill), .badge.bg-info:not(.rounded-pill) { background: var(--cjp-blue-50) !important; color: var(--cjp-blue) !important; }
.badge.text-bg-secondary:not(.rounded-pill), .badge.bg-secondary:not(.rounded-pill) { background: var(--slate-100) !important; color: var(--slate-600) !important; }
.badge.text-bg-dark:not(.rounded-pill), .badge.bg-dark:not(.rounded-pill) { background: var(--slate-800) !important; color: #fff !important; }

/* ===== Login — split panel ===== */
.login-page { min-height: 100vh; background: var(--slate-50); }
.login-brand-panel {
  min-height: 100vh;
  background: var(--cjp-black);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(227,30,36,.35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(21,128,61,.25), transparent 50%),
    linear-gradient(160deg, #14171F 0%, #1b1e29 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.login-brand-panel .brand-mark {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.login-brand-panel .brand-mark img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 5px 10px; }
.login-brand-panel h1 {
  color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.02em; margin-bottom: .9rem; position: relative; z-index: 1; max-width: 480px;
}
.login-brand-panel p.lede { color: rgba(255,255,255,.68); font-size: 1rem; max-width: 440px; margin-bottom: 2.25rem; position: relative; z-index: 1; }
.login-feature-list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.login-feature-list li { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500; }
.login-feature-list li i {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--cjp-amber-solid);
  font-size: 1rem;
}

.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; min-height: 100vh; }
.login-card {
  width: 100%; max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cjp-red), var(--cjp-amber-solid), var(--cjp-green));
}
.login-card .card-header-plain { padding: 2.25rem 2rem .5rem; text-align: left; }
.login-card .card-header-plain .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cjp-red-dark); margin-bottom: .5rem; }
.login-card .card-header-plain h2 { font-weight: 800; font-size: 1.4rem; color: var(--slate-900); margin-bottom: .25rem; }
.login-card .card-header-plain p { color: var(--slate-500); font-size: .85rem; margin-bottom: 0; }
.login-card .card-body { padding: 1.25rem 2rem 2rem; }
.login-card .btn-primary {
  font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(227,30,36,.28);
}
.login-card .btn-primary:hover { filter: brightness(1.05); }
.login-card .footnote { color: var(--slate-400); text-align: center; font-size: .8rem; }

@media (max-width: 991px) {
  .login-brand-panel { display: none; }
}

/* ===== Voice / Video calling ===== */
.call-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,11,15,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.call-overlay-inner { color: #fff; }
.call-avatar-pulse {
  width: 96px; height: 96px; margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cjp-red), var(--cjp-red-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff;
  box-shadow: 0 0 0 0 rgba(227,30,36,.55);
  animation: call-pulse 1.6s infinite;
}
@keyframes call-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227,30,36,.55); }
  70%  { box-shadow: 0 0 0 22px rgba(227,30,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,30,36,0); }
}
.call-name { font-size: 1.35rem; font-weight: 700; color: #fff; }
.call-subtext { color: rgba(255,255,255,.65); font-size: .9rem; }

.call-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.call-btn:hover { transform: translateY(-2px); }
.call-btn-accept { background: var(--cjp-green); }
.call-btn-decline, .call-btn-hangup { background: var(--cjp-red); }
.call-btn-mute, .call-btn-camera { background: rgba(255,255,255,.15); width: 52px; height: 52px; font-size: 1.1rem; }
.call-btn-off { background: #fff !important; color: var(--cjp-black) !important; }

.call-active-inner {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.call-remote-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0a0b0f;
}
.call-voice-only {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.call-local-video {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 110px; height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow-md);
  background: #14171F;
}
.call-info-bar { position: relative; z-index: 1; text-align: center; margin-bottom: 1.5rem; }
.call-controls { position: relative; z-index: 1; display: flex; gap: 1.25rem; margin-bottom: 2.5rem; }

.call-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--cjp-black); color: #fff;
  padding: .6rem 1.2rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  z-index: 2100;
  box-shadow: var(--shadow-md);
}

/* New message pop-up (chat_notify.js) - stacked in the corner, one card per message, since
   several can arrive close together and a chat message needs more room than a call's one-liner. */
.chat-toast-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 2200;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: 320px;
}
.chat-toast {
  background: #fff; color: var(--cjp-black, #212529);
  border-radius: .5rem; box-shadow: var(--shadow-md);
  padding: .75rem .9rem; cursor: pointer;
  border-left: 4px solid #8b0000;
  animation: chatToastIn .2s ease-out;
}
.chat-toast:hover { background: #f8f9fa; }
.chat-toast-title { font-weight: 700; font-size: .85rem; margin-bottom: .15rem; }
.chat-toast-body { font-size: .82rem; color: #555; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes chatToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 575px) {
  .call-local-video { width: 84px; height: 116px; top: .75rem; right: .75rem; }
}

/* ===== Misc ===== */
.badge { }
@media (max-width: 767px) {
  .stat-card { margin-bottom: .75rem; }
  .table-responsive { font-size: .88rem; }
}

/* ===== Fuel-type color coding (assets/js/script.js wires this up on every page) ===== */
:root {
  --cjp-brown: #6F4518;        /* Kerosene - darker yellow/brown, distinct from Diesel's amber */
  --cjp-brown-50: #F1E6D9;
  --cjp-fuel-yellow: #EAB308;  /* Diesel */
  --cjp-fuel-red: #DC2626;     /* Gasoline (Premium) */
  --cjp-fuel-green: #16A34A;   /* Gasoline (Unleaded) */
  --cjp-violet: #7C3AED;
  --cjp-violet-50: #EDE4FB;
  --cjp-chartreuse: #C8CA48;   /* F1 - a blended orange/light-green */
  --cjp-chartreuse-50: #F6F6E3;
}
.fuel-color-wrap { position: relative; display: block; width: 100%; margin: 0; padding: 0; }
.fuel-color-wrap > select { padding-right: 3.25rem !important; }
.fuel-color-dot {
  display: none;
  position: absolute;
  top: 50%;
  right: 2.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,.2);
  pointer-events: none;
}
