/* ==========================================================================
   LFX Sales Pricing — Brand styles
   Matches the LFX Project Tracker visual identity.
   ========================================================================== */

:root {
  --lfx-red:         #D6001C;
  --lfx-red-dark:    #B00017;
  --lfx-red-light:   #FCE4E7;
  --lfx-white:       #FFFFFF;
  --lfx-grey:        #6C757D;
  --lfx-grey-light:  #F1F3F5;
  --lfx-grey-dark:   #343A40;
  --lfx-black:       #000000;

  --bs-primary:           var(--lfx-red);
  --bs-primary-rgb:       214, 0, 28;
  --bs-body-color:        var(--lfx-black);
  --bs-body-bg:           var(--lfx-white);
  --bs-border-color:      var(--lfx-grey);
  --bs-link-color:        var(--lfx-red);
  --bs-link-hover-color:  var(--lfx-red-dark);
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--lfx-red);
  border-color: var(--lfx-red);
  color: var(--lfx-white);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--lfx-red-dark) !important;
  border-color: var(--lfx-red-dark) !important;
  color: var(--lfx-white) !important;
}
.btn-outline-primary {
  color: var(--lfx-red);
  border-color: var(--lfx-red);
}
.btn-outline-primary:hover {
  background-color: var(--lfx-red);
  color: var(--lfx-white);
}

/* ---- Navbar ---- */
.navbar-lfx {
  background-color: var(--lfx-white);
  border-bottom: 3px solid var(--lfx-red);
  padding: 0.75rem 1.25rem;
}
.navbar-lfx .navbar-brand {
  color: var(--lfx-black);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.navbar-lfx .navbar-brand .brand-accent {
  color: var(--lfx-red);
}
.navbar-lfx .nav-link {
  color: var(--lfx-black);
}
.navbar-lfx .nav-link:hover,
.navbar-lfx .nav-link.active {
  color: var(--lfx-red);
}

/* ---- Forms ---- */
.form-control:focus,
.form-select:focus {
  border-color: var(--lfx-red);
  box-shadow: 0 0 0 0.2rem rgba(214, 0, 28, 0.2);
}

/* ---- Tables ---- */
.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--lfx-grey-light);
}
.table th {
  font-weight: 600;
}

/* ---- Home page verb cards ---- */
.verb-card {
  display: block;
  background: var(--lfx-white);
  border: 2px solid var(--lfx-grey);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--lfx-black);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}
.verb-card:hover,
.verb-card:focus {
  border-color: var(--lfx-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--lfx-black);
  transform: translateY(-2px);
}
.verb-card .verb-title {
  color: var(--lfx-red);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.verb-card .verb-desc {
  color: var(--lfx-grey);
  font-size: 0.925rem;
}

/* ---- Auth pages ---- */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: var(--lfx-white);
  border-top: 5px solid var(--lfx-red);
  border-radius: 4px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  color: var(--lfx-black);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.auth-card .subtitle {
  color: var(--lfx-grey);
  margin-bottom: 1.5rem;
}

/* ---- Money & percent formatting ---- */
.money, .percent {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---- Flash messages ---- */
.alert-danger {
  background-color: var(--lfx-red-light);
  border-color: var(--lfx-red);
  color: var(--lfx-red-dark);
}

/* ---- Section colors (Material / Labour / Equipment) ---- */
.section-material {
  border-left: 6px solid #22C55E;
}
.section-material > .section-header,
.section-material > .card-header.section-header {
  background-color: #22C55E;
  color: #fff;
  border-bottom: none;
}

.section-labour {
  border-left: 6px solid #F97316;
}
.section-labour > .section-header,
.section-labour > .card-header.section-header {
  background-color: #F97316;
  color: #fff;
  border-bottom: none;
}

.section-equipment {
  border-left: 6px solid #2563EB;
}
.section-equipment > .section-header,
.section-equipment > .card-header.section-header {
  background-color: #2563EB;
  color: #fff;
  border-bottom: none;
}

.section-total {
  border-left: 6px solid var(--lfx-red);
}
.section-total > .section-header,
.section-total > .card-header.section-header {
  background-color: var(--lfx-red);
  color: #fff;
  border-bottom: none;
}

.section-material > .section-header .text-muted,
.section-labour > .section-header .text-muted,
.section-equipment > .section-header .text-muted,
.section-total > .section-header .text-muted {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* ---- Section-tinted table rows ---- */
tr.section-row-material > td:first-child { border-left: 4px solid #22C55E; }
tr.section-row-material > td { background-color: rgba(34, 197, 94, 0.08); }

tr.section-row-labour > td:first-child { border-left: 4px solid #F97316; }
tr.section-row-labour > td { background-color: rgba(249, 115, 22, 0.08); }

tr.section-row-equipment > td:first-child { border-left: 4px solid #2563EB; }
tr.section-row-equipment > td { background-color: rgba(37, 99, 235, 0.08); }

tr.section-row-total > td:first-child { border-left: 4px solid var(--lfx-red); }
tr.section-row-total > td { background-color: rgba(214, 0, 28, 0.08); font-weight: 600; }

/* ---- Status badges ---- */
.badge-draft      { background-color: #6C757D; }
.badge-pending    { background-color: #F59E0B; color: #000; }
.badge-sent       { background-color: #2563EB; }
.badge-won        { background-color: #22C55E; }
.badge-lost       { background-color: #EF4444; }
.badge-stale      { background-color: #9CA3AF; }

/* ---- iPad touch targets ---- */
@media (max-width: 1024px) {
  .btn { min-height: 44px; }
  .form-control, .form-select { min-height: 44px; font-size: 1rem; }
  .verb-card { padding: 1.5rem 1.25rem; }
}
