:root{
  --card-bg: #0f172a;
}

/* ============================================================
   GLOBAL APP LAYOUT (DO NOT OVERRIDE BOOTSTRAP CONTAINERS)
============================================================ */

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================
   GLOBAL RESPONSIVE SAFETY
================================ */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.container-fluid {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

/* ================================
   NAVBAR RESPONSIVE FIXES
================================ */

@media (max-width: 992px) {
  .pc-subnav .d-flex.align-items-center.justify-content-between {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .pc-subnav .d-flex.gap-2.ms-3 {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .pc-subnav {
    height: auto;
    padding: 12px 0;
  }

  .pc-subnav .fw-semibold.fs-5 {
    font-size: 1.1rem;
  }

  .pc-subnav .subnav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  #btnLogout {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ================================
   FIELD TABLE — RESPONSIVE
================================ */

.field-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.field-header-row,
.field-row {
  min-width: 1200px; /* keeps columns intact */
}

@media (max-width: 768px) {
  .field-header-row {
    font-size: 11px;
  }

  .field-row input,
  .field-row select {
    font-size: 12px;
    padding: 4px 6px;
  }
}

/* ================================
   BUTTON TOUCH TARGETS
================================ */

@media (max-width: 576px) {
  .btn {
    min-height: 40px;
  }

  .btn-sm {
    padding: 8px 14px;
  }

  .action-buttons,
  .d-flex.gap-2 {
    gap: 8px !important;
  }
}

/* ================================
   FOOTER & UTILITIES
================================ */

.pc-footer {
  padding: 24px 12px;
}

#backToTopBtn {
  right: 16px;
  bottom: 16px;
}

@media (max-width: 576px) {
  #backToTopBtn {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
}


/* Body */

body{
  background: #0b1220;
  color: #e5e7eb;
}

.card{
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}

.kpi-card .kpi-value{
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.table{
  --bs-table-bg: transparent;
  --bs-table-color: #e5e7eb;
}

.table thead th{
  white-space: nowrap;
}

.table td{
  white-space: nowrap;
}

.table td:nth-child(2){
  white-space: normal;
  min-width: 340px;
}

.form-control, .form-select{
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.15);
  color: #e5e7eb;
}

.form-control::placeholder{
  color: rgba(229,231,235,.55);
}

.badge{
  border: 1px solid rgba(255,255,255,.18);
}

/* Pay App action button spacing */
.stack-actions > .btn {
  margin-bottom: 8px;
}

.stack-actions > .btn:last-child {
  margin-bottom: 0;
}


/* CSV Input */

.csv-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 12px;
  cursor: pointer;
  color: #e5e7eb;
  background: rgba(255,255,255,.04);
  transition: all .15s ease;
  font-weight: 500;
}

.csv-upload:hover {
  background: rgba(59,130,246,.15);
  border-color: #3b82f6;
}

/* ================================
   Pay App – Dark Form Fix
   ================================ */

.pay-app .form-control,
.pay-app .form-select {
  color: #ffffff !important;
  background-color: #0b1220;
  border: 1px solid rgba(255,255,255,.25);
}

.pay-app .form-control::placeholder {
  color: rgba(255,255,255,.6);
}

/* Fix select option dropdown text */
.pay-app .form-select option {
  color: #000000;
}

/* Labels */
.pay-app .form-label {
  color: #e5e7eb;
}

/* Disabled fields (if any) */
.pay-app .form-control:disabled,
.pay-app .form-select:disabled {
  color: rgba(255,255,255,.7);
  background-color: rgba(255,255,255,.08);
}

/* ================================
   Daily Log – Dark Form Visibility
   ================================ */

.mobile-log .form-control,
.mobile-log .form-select {
  color: #ffffff !important;
  background-color: #0b1220;
  border: 1px solid rgba(255,255,255,.25);
}

/* Placeholders */
.mobile-log .form-control::placeholder {
  color: rgba(255,255,255,.6);
}

/* Labels */
.mobile-log .form-label {
  color: #e5e7eb;
}

/* Table inputs */
.mobile-log table input {
  color: #ffffff !important;
  background-color: #0b1220;
  border: 1px solid rgba(255,255,255,.25);
}

/* Focus state */
.mobile-log .form-control:focus,
.mobile-log .form-select:focus,
.mobile-log table input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.15rem rgba(59,130,246,.35);
}

/* Disabled fields */
.mobile-log .form-control:disabled,
.mobile-log .form-select:disabled {
  color: rgba(255,255,255,.7);
  background-color: rgba(255,255,255,.08);
}

/* Dropdown options (OS rendered – must be dark text) */
.mobile-log select option {
  color: #000000;
}

/* Daily Log headings */
.mobile-log h6,
.mobile-log h5,
.mobile-log h4 {
  color: #ffffff !important;
}

/* ================================
   Login Page
   ================================ */

.login-page {
  background: radial-gradient(circle at top, #0f172a, #020617);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
}

.login-card .form-control {
  background: #020617;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.25);
}

.login-card .form-control::placeholder {
  color: rgba(255,255,255,.55);
}

.login-card .form-label {
  color: #e5e7eb;
}

.login-card a {
  color: #93c5fd;
  text-decoration: none;
}

.login-card a:hover {
  text-decoration: underline;
}

.label-muted{color:var(--muted);}

/* ================================
   Project Controls – Sticky Sub Nav
   ================================ */

.pc-subnav {
  position: sticky;
  top: 0;
  height: 100px;
  z-index: 1020;

  background:
    linear-gradient(180deg,
      rgba(7,10,18,.94),
      rgba(11,16,32,.94)
    );

  border-bottom: 1px solid var(--stroke);

  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    0 0 26px var(--glow);

  backdrop-filter: blur(10px);
}

/* Brand text */
.pc-subnav .fw-semibold {
  color: var(--text);
  letter-spacing: .4px;
}

.pc-subnav .label-muted {
  color: var(--muted);
}

/* ================================
   Subnav Structure
================================ */

.pc-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  padding: 0 12px;
  height: 100%;
}

.pc-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pc-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subnav-links {
  display: flex;
  gap: 8px;
}

/* ================================
   Burger (Mobile)
================================ */

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.nav-burger:focus,
.nav-burger:focus-visible {
  outline: none;
  box-shadow: none;
}

.nav-burger::-moz-focus-inner {
  border: 0;
}

/* ================================
   NAV LAYOUT
================================ */

.pc-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  padding: 0 12px;
  height: 100%;
}

.pc-brand {
  display: flex;
  flex-direction: column;
}

.pc-nav-collapse {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pc-nav-primary,
.pc-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================================
   BURGER
================================ */

.nav-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2px 0;
  background: #fff;
}

/* ================================
   MOBILE / TABLET
================================ */

@media (max-width: 992px) {

  .nav-burger {
    display: block;
  }

  .pc-nav-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    gap: 12px;
  }

  .pc-subnav.nav-open .pc-nav-collapse {
    display: flex;
  }

  .pc-nav-primary,
  .pc-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-nav-actions button {
    width: 100%;
  }

  .pc-subnav-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ================================
   Responsive Behavior
================================ */

@media (max-width: 992px) {

  .nav-burger {
    display: block;
  }

  .subnav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
  }

  .pc-subnav.nav-open .subnav-links {
    display: flex;
  }

  .pc-subnav-inner {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .pc-nav-left,
  .pc-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .pc-nav-right {
    margin-top: 8px;
  }
}


/* Subnav links */
.subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;

  transition:
    color .15s ease,
    background .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.subnav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--stroke);
  box-shadow: 0 0 14px var(--glow);
}

/* Active page */
.subnav-link.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: var(--stroke);
  box-shadow:
    0 0 18px var(--glow2),
    inset 0 0 0 1px rgba(255,255,255,.05);
}

.subnav-link:focus,
.subnav-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 18px var(--glow2),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Mobile spacing */
@media (max-width: 768px) {
  .pc-subnav {
    height: auto;
    padding: 12px 0;
  }

  .subnav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}


/* Page content offset (prevents overlap) */
.page-content {
  padding-top: 16px;
}

/* ================================
   BURGER MENU
================================ */

.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;

  gap: 4px;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 0 12px var(--glow);
  border-radius: 10px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ================================
   MOBILE NAV MODE
================================ */

@media (max-width: 992px) {

  /* Show burger */
  .nav-burger {
    display: flex;
  }

  /* Hide nav links by default */
  .pc-subnav .d-flex.gap-2.ms-3 {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  /* When menu is open */
  .pc-subnav.nav-open .d-flex.gap-2.ms-3 {
    display: flex;
  }

  /* Make links full width */
  .pc-subnav .subnav-link {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  /* Stack top row */
  .pc-subnav .d-flex.align-items-center.justify-content-between {
    flex-wrap: wrap;
  }
}


/* ================================
   Logout Button – Green Action
   ================================ */

#btnLogout {
  color: #0affc8;
  border-color: rgba(0,255,198,.45);
  background: rgba(0,255,198,.08);
  font-size: 1.1rem;

  box-shadow:
    0 0 14px rgba(0,255,198,.35),
    inset 0 0 0 1px rgba(255,255,255,.06);

  transition:
    background .15s ease,
    box-shadow .15s ease,
    transform .1s ease;
}

#btnLogout:hover {
  background: rgba(0,255,198,.16);
  box-shadow:
    0 0 22px rgba(0,255,198,.55),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

#btnLogout:active {
  transform: translateY(1px);
}

/* ================================
   PowerUpv1 Charts
   ================================ */

.chart-container {
  position: relative;
  width: 100%;
  height: 260px; /* REQUIRED */
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.card-glow,
.card-glow * {
  color: var(--text);
}

.card-glow small,
.card-glow .label-muted {
  color: var(--muted);
}


.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}


/* ================================
   Dashboard Chart Spacing
   ================================ */

.dashboard-chart {
  margin-top: 25px;
  margin-bottom: 25px;
}

/* ================================
   Chart.js Hard Height Fix
   ================================ */

.chart-container {
  position: relative;
  width: 100%;
  height: 320px;   /* <-- THIS IS REQUIRED */
}

.chart-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ================================
   KPI Section Spacing
   ================================ */

.kpi-row {
  margin-top: 24px;
  margin-bottom: 32px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .kpi-row {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .dashboard-chart {
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .kpi-value {
    font-size: 1.5rem;
  }
}

.chart-container {
  position: relative;
  height: 280px;
}

.dashboard-chart {
  height: 100%;
}

@media (min-width: 992px) {
  .chart-container {
    height: 300px;
  }
}


/* ----------------------------
   Footer
---------------------------- */
.pc-footer {
  margin-top: 48px;
  padding: 25px 0;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(13,20,41,.85),
    rgba(10,14,28,.95)
  );
  color: var(--muted);
  letter-spacing: 0.2px;
  
}

.pc-footer .text-muted {
  color: var(--muted) !important;

}


/* New PowerBi Dashboard */

.dashboard-chart { min-height: 320px; }
.chart-container { position: relative; height: 240px; width: 100%; }

.kpi-card { min-height: 110px; }
.kpi-value { font-size: 1.6rem; font-weight: 800; letter-spacing: .2px; }

.card-body h6 { color: var(--text); }
.table-darkish th { color: rgba(255,255,255,.75); font-weight: 600; }

/* Table cards spacing */
.card-glow .table-responsive {
  margin-top: 12px;
}

.table-darkish th,
.table-darkish td {
  padding: 10px 12px;
  vertical-align: middle;
}

.table-darkish tbody tr + tr {
  border-top: 1px solid rgba(255,255,255,.06);
}

.card-body h6 {
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}

.kpi-card {
  padding-top: 6px;
}

.kpi-card .small {
  letter-spacing: .4px;
}

.table-darkish thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
  color: var(--muted);
}

.card-body h6 {
  margin-bottom: 6px;  /* keeps header tight */
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ===============================
   Back To Top Button (Global)
   =============================== */

#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(0,255,198,.45);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.2s ease;

  z-index: 1100;
}

/* Visible state */
#backToTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover / focus */
#backToTopBtn:hover {
 background-color: rgba(0,255,198,.45);
  transform: translateY(-2px);
}

#backToTopBtn:active {
  transform: translateY(0);
}

/* Accessibility */
#backToTopBtn:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(13, 223, 41, 0.6),
    0 6px 18px rgba(7, 167, 73, 0.521);
}

/* Mobile adjustments */
@media (max-width: 900px) {
  #backToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* ==================================================
   RESPONSIVE TOP NAV (NO HTML CHANGES)
================================================== */

/* Ensure nav container is relative for dropdown */
.pc-subnav {
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* Target the inner flex wrapper */
.pc-subnav > .container-fluid > .d-flex {
  position: relative;
}

/* ---------------------------------
   DESKTOP: CENTER NAV LINKS
---------------------------------- */
@media (min-width: 992px) {
  /* Middle nav links container */
  .pc-subnav .d-flex.align-items-center.gap-4 > .d-flex.gap-2.ms-3 {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================================================
   MOBILE NAV — FULL PANEL MODE
================================================== */
@media (max-width: 991.98px) {

  .pc-subnav {
    height: auto;
  }

  /* Root container */
  .pc-subnav > .container-fluid > .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  /* ---------- BRAND HEADER ---------- */
  .pc-subnav .d-flex.align-items-center.gap-4 {
    width: 100%;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #0b1220, #070c18);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
  }

  .pc-subnav .d-flex.align-items-center.gap-4 > div:first-child {
    width: 100%;
  }

  .pc-subnav .fw-semibold.fs-5 {
    font-size: 1.15rem;
  }

  /* ---------- COLLAPSIBLE PANEL ---------- */
  .pc-subnav .d-flex.gap-2.ms-3,
  .pc-subnav .d-flex.gap-2.align-items-center {
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 1rem;
    background: #070c18;
  }

  /* When open */
  .pc-subnav.nav-open .d-flex.gap-2.ms-3,
  .pc-subnav.nav-open .d-flex.gap-2.align-items-center {
    display: flex !important;
  }

  /* ---------- PRIMARY NAV LINKS ---------- */
  .pc-subnav .d-flex.gap-2.ms-3 a.subnav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  /* Active link glow */
  .pc-subnav a.subnav-link.active {
    background: rgba(0, 255, 200, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0,255,200,0.25);
  }

  /* ---------- SECONDARY ACTIONS ---------- */
  .pc-subnav .d-flex.gap-2.align-items-center {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
  }

  .pc-subnav .d-flex.gap-2.align-items-center a,
  .pc-subnav .d-flex.gap-2.align-items-center button {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 10px;
  }

  /* ---------- LOGOUT ---------- */
  #btnLogout {
    margin-top: 0.75rem;
    border-color: rgba(0,255,200,0.5);
    color: #00ffd0;
  }

  /* ---------- BURGER ---------- */
  .pc-subnav::after {
    content: "☰";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
  }
}

/* ==================================================
   MOBILE NAV — FORCE SINGLE COLUMN STACK
================================================== */
@media (max-width: 991.98px) {

  /* Main nav row becomes vertical */
  .pc-subnav .container-fluid > .d-flex {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center;
  }

  /* Brand block centered */
  .pc-subnav .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    align-items: center !important;
    gap: 0.25rem;
  }

  /* Primary nav links (Dashboard, Daily Log, etc) */
  .pc-subnav .d-flex.gap-2.ms-3 {
    width: 100%;
    align-items: center !important;
    margin: 0;
  }

  /* Secondary actions (Scan, Tools/Admin, Logout) */
  .pc-subnav .d-flex.gap-2.align-items-center {
    width: 100%;
    align-items: center !important;
  }

  /* Ensure all nav items are centered */
  .pc-subnav a.subnav-link,
  .pc-subnav button {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}


/* ===============================
   FIELD TABLE (DAILY LOG)
   =============================== */

.field-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   DAILY LOG PAGE — LAYOUT FIX (CENTERED + SCROLL SAFE)
   Drop-in fix for current HTML structure
============================================================ */

/* Constrain page content to dashboard width */
.container-fluid > .mx-auto {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards should never exceed page width */
.card.card-glow {
  width: 100%;
}

/* ============================================================
   FIELD TABLE — HEADER + ROW GRID (FINAL)
============================================================ */

.field-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}

/* 🔑 SINGLE SOURCE OF TRUTH FOR COLUMNS */
.field-header-row,
.field-row {
  display: grid;
  grid-template-columns:
    120px   /* Bid Code */
    220px   /* Description */
    100px   /* Mix */
    70px    /* Unit */
    80px    /* Qty */
    90px    /* COSA Qty */
    90px    /* Est Qty */
    90px    /* Sub Unit */
    90px    /* Unit Cost */
    90px    /* Unit Bid */
    110px   /* Bid Total */
    120px   /* Projected Rev */
    120px   /* Actual Rev */
    90px    /* Qty Diff */
    90px    /* $ Diff */
    60px;   /* Delete */

  align-items: center;
  min-width: 1400px; /* Keeps grid aligned inside card */
}

/* ============================================================
   HEADER STYLING
============================================================ */

.field-header-row {
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Header + row cells */
.field-header-row > div,
.field-row > .cell {
  padding: 6px 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.field-header-row > div:last-child,
.field-row > .cell:last-child {
  border-right: none;
}

/* ============================================================
   ROW STYLING
============================================================ */

.field-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.field-row:hover {
  background: rgba(255,255,255,0.04);
}

/* Positive / Negative states */
.row-positive {
  background: rgba(40, 167, 69, 0.14);
}

.row-negative {
  background: rgba(220, 53, 69, 0.14);
}

/* ============================================================
   INPUTS — FULL WIDTH, NO COLLAPSE
============================================================ */

.field-row input,
.field-row select {
  width: 100%;
  min-width: 0;
}



/* PKG Row Cost Codes */

.pkg-row{
  display: flex;
  justify-content: space-evenly;
  margin-top: 50px;
  
}


/* ================================
   Subnav Layout Fix (Critical)
   ================================ */

/* Ensure nav content is centered like other pages */
.pc-subnav .app-shell {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;
  height: 100%;
}

/* Prevent nav items from wrapping */
.pc-subnav .d-flex {
  flex-wrap: nowrap;
}

/* Ensure links never wrap text */
.subnav-link {
  white-space: nowrap;
}


/* === REPORT TABLE GRID === */
.report-header,
.form-row {
  display: grid;
  grid-template-columns:
    90px   /* Code */
    220px  /* Description */
    70px   /* Mix */
    60px   /* Unit */
    80px   /* Qty */
    90px   /* COSA Qty */
    90px   /* Est Qty */
    90px   /* Sub Unit */
    90px   /* Unit Cost */
    90px   /* Unit Bid */
    110px  /* Bid Total */
    130px  /* Projected */
    130px  /* Actual */
    90px   /* Qty Diff */
    110px  /* $ Diff */
    60px;  /* Delete */
  align-items: center;
  column-gap: 0.5rem;
}

#report-rows .form-row > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === REPORT TEXT STYLE === */
#report-rows,
#report-rows div {
  color: #ffffff;
  font-size: 1rem;
}

/* === KPI ANALYTICS TEXT COLOR === */
.kpi-card,
.kpi-card *,
.analytics-card,
.analytics-card *,
#analytics,
#analytics * {
  color: #ffffff !important;
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* === REPORT DELETE BUTTON STYLING === */
.delete-btn {
  border-color: #dc3545 !important;   /* Bootstrap danger red */
  color: #dc3545 !important;
}

.delete-btn:hover {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-color: #dc3545 !important;
}

#showReportBtn {
  position: relative;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* ==================================================
   SCHEDULE CALENDAR GRID
================================================== */
#calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  min-height: 120px;
}

.calendar-task {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.calendar-task:hover {
  background: rgba(0,255,200,0.08);
  box-shadow: inset 0 0 0 1px rgba(0,255,200,0.25);
}

/* Status colors (optional but recommended) */
.calendar-task.status-todo { border-left: 4px solid #6c757d; }
.calendar-task.status-progress { border-left: 4px solid #0d6efd; }
.calendar-task.status-done { border-left: 4px solid #198754; }
.calendar-task.status-followup { border-left: 4px solid #ffc107; }
