/* ============================================================
   Mr Cocorico Butchery Management System — style.css
   Red Theme | Bootstrap 5.3 Custom Override
   Premium, bold, and fresh identity for butchery operations.
   ============================================================ */

/* ── 1. CSS Variables (Red Brand Core) ───────────────────────── */
:root {
  /* Primary Brand Red */
  --primary:         #C1121F;
  --primary-rgb:     193, 18, 31;
  --primary-dark:    #A10F1A;
  --primary-darker:  #7F0C14;
  --primary-light:   #FEE2E2;
  --primary-xlt:     #FFF5F5;

  /* Functional Colors */
  --secondary:       #6C757D;
  --success:         #2E7D32;
  --warning:         #F9A825;
  --danger:          #8B0000;
  --info:            #0288D1;
  --purple:          #7c3aed;
  --purple-light:    #ede9fe;

  /* Neutrals */
  --white:           #ffffff;
  --grey-bg:         #F8F9FA;
  --grey-border:     #e4e8ef;
  --grey-text:       #6b7280;
  --dark:            #111827;

  /* Layout */
  --sidebar-w:       260px;
  --topbar-h:        64px;

  /* Bootstrap Override Mapping */
  --bs-primary:      var(--primary);
  --bs-primary-rgb:  var(--primary-rgb);
  --bs-secondary:    var(--secondary);
  --bs-success:      var(--success);
  --bs-danger:       var(--danger);
  --bs-warning:      var(--warning);
  --bs-info:         var(--info);

  /* Legacy alias from PeaceData (now red themed) */
  --blue:            var(--primary);
  --blue-brand:      var(--primary);
  --blue-mid:        var(--primary-dark);
  --blue-light:      var(--primary-light);
  --blue-xlt:        var(--primary-xlt);
}

/* ── 2. Bootstrap 5 Overrides ────────────────────────────────── */
body {
  background-color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--dark);
}

/* Primary Buttons & Links */
.btn-primary {
  background-color: var(--primary);
  border-color:     var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color:     var(--primary-dark);
  box-shadow: 0 4px 12px rgba(193, 18, 31, .3);
}
.nav-link.active,
.nav-link:focus {
  color: var(--primary) !important;
}

/* Form controls — red focus ring */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, .15);
}

/* Pagination active */
.page-item.active .page-link {
  background-color: var(--primary);
  border-color:     var(--primary);
}

/* Table striped remains clean */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--grey-bg);
}

/* ── 3. Layout (Sidebar + Wrapper) ──────────────────────────── */
.pdps-wrapper {
  min-height: 100vh;
  transition: margin-left .25s ease;
}
@media (min-width: 992px) {
  .pdps-wrapper { margin-left: var(--sidebar-w); }
}

/* ── 4. Sidebar — Mr Cocorico Brand Identity ─────────────────── */
#pdpsSidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1.5px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1045;
}
@media (min-width: 992px) {
  #pdpsSidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    transform: none !important;
    visibility: visible !important;
  }
}

/* Sidebar Brand (Mr Cocorico) */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--grey-border);
  text-decoration: none;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon i { color: #fff; font-size: 1.1rem; }
.brand-text { line-height: 1.15; }
.brand-text .brand-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.2px;
}
.brand-text .brand-sub {
  font-size: .68rem;
  color: var(--grey-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Sidebar navigation */
.sidebar-section-label {
  font-size: .67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-text);
  padding: 16px 20px 6px;
  margin: 0;
}
.pdps-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #374151;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  position: relative;
  transition: background .15s, color .15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.pdps-nav-link:hover {
  background: var(--primary-xlt);
  color: var(--primary);
}
.pdps-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.pdps-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.pdps-nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.pdps-nav-link .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}
.pdps-nav-link .nav-badge-warn {
  margin-left: auto;
  background: #fef3c7;
  color: #92400e;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--grey-border);
  padding: 14px 16px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.user-chip:hover { background: var(--grey-bg); }

/* ── 5. User Avatar (Red accent) ─────────────────────────────── */
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--primary);
}
.user-avatar.sm { width: 28px; height: 28px; font-size: .65rem; }
.user-avatar.lg { width: 42px; height: 42px; font-size: 1rem; }
.user-info { line-height: 1.2; }
.user-info .u-name  { display: block; font-size: .8rem; font-weight: 600; color: var(--dark); }
.user-info .u-role  { font-size: .7rem; color: var(--grey-text); }

/* ── 6. Topbar ───────────────────────────────────────────────── */
.pdps-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1.5px solid var(--grey-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
}
.topbar-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
}
.topbar-subtitle {
  font-size: .75rem;
  color: var(--grey-text);
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--grey-border);
  border-radius: 8px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: border-color .15s, color .15s;
  position: relative;
  text-decoration: none;
}
.icon-btn:hover  { border-color: var(--primary); color: var(--primary); }
.icon-btn .notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.topbar-search {
  position: relative;
}
.topbar-search i {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey-text);
  font-size: .85rem;
}
.topbar-search input {
  padding-left: 32px;
  border: 1.5px solid var(--grey-border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  height: 34px;
  outline: none;
  width: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, .12);
}

/* ── 7. Main Content Area ───────────────────────────────────── */
.pdps-main {
  padding: 28px;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── 8. KPI Cards (Butchery metrics ready) ───────────────────── */
.kpi-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow .2s, border-color .2s;
  animation: fadeSlideIn .35s ease both;
}
.kpi-card:hover {
  box-shadow: 0 4px 16px rgba(193, 18, 31, .08);
  border-color: #f5c6cb;
}
.kpi-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.kpi-value {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.kpi-label { font-size: .78rem; color: var(--grey-text); font-weight: 500; }
.kpi-trend { font-size: .72rem; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.trend-up   { color: var(--success); }
.trend-down { color: var(--danger);  }
.trend-flat { color: var(--grey-text); }

/* ── 9. Section Cards ───────────────────────────────────────── */
.section-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeSlideIn .35s ease both;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--grey-border);
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--primary); }

/* ── 10. Tables (Inventory / Orders) ─────────────────────────── */
.pdps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.pdps-table thead th {
  background: var(--grey-bg);
  border-bottom: 1.5px solid var(--grey-border);
  padding: 10px 16px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--grey-text);
  white-space: nowrap;
}
.pdps-table tbody tr {
  border-bottom: 1px solid var(--grey-border);
  transition: background .12s;
}
.pdps-table tbody tr:last-child { border-bottom: none; }
.pdps-table tbody tr:hover { background: var(--primary-xlt); }
.pdps-table tbody tr:nth-child(even) { background: var(--grey-bg); }
.pdps-table tbody tr:nth-child(even):hover { background: var(--primary-xlt); }
.pdps-table td { padding: 11px 16px; vertical-align: middle; color: #374151; }
.table-footer {
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--grey-border);
  font-size: .75rem;
  color: var(--grey-text);
}

/* ── 11. Action Buttons (Edit / Delete / Process) ────────────── */
.action-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--grey-border);
  background: transparent;
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-size: .8rem;
  text-decoration: none;
}
.action-btn:hover         { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.action-btn.danger        { color: var(--danger); }
.action-btn.danger:hover  { background: #fee2e2; border-color: var(--danger); }
.action-btn.success-act   { color: var(--success); }
.action-btn.success-act:hover { background: #dcfce7; border-color: var(--success); }
.action-btn.warn          { color: var(--warning); }
.action-btn.warn:hover    { background: #fef3c7; border-color: var(--warning); }

/* ── 12. Status Badges (Stock / Orders / Meat cuts) ──────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-active::before   { background: var(--success); }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-pending::before  { background: var(--warning); }
.badge-inactive { background: #f3f4f6; color: #4b5563; }
.badge-inactive::before { background: #9ca3af; }
.badge-verified { background: #dbeafe; color: #1d4ed8; }
.badge-verified::before { background: var(--info); }
.badge-risk     { background: #fee2e2; color: #991b1b; }
.badge-risk::before     { background: var(--danger); }
.badge-purple   { background: var(--purple-light); color: var(--purple); }
.badge-purple::before   { background: var(--purple); }

/* Role pills */
.role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.role-admin       { background: var(--purple-light); color: var(--purple); }
.role-manager     { background: var(--primary-light); color: var(--primary); }
.role-field_officer{ background: #dcfce7; color: #15803d; }
.role-data_officer{ background: #fef3c7; color: #92400e; }
.role-analyst     { background: #f3e8ff; color: var(--purple); }
.role-donor       { background: #fce7f3; color: #9d174d; }

/* ── 13. Progress Bars (Stock level, production) ─────────────── */
.progress-bar-wrap { display: flex; align-items: center; gap: 8px; }
.prog-track {
  flex: 1; height: 7px;
  background: var(--grey-border);
  border-radius: 4px;
  overflow: hidden;
}
.prog-fill { height: 100%; border-radius: 4px; background: var(--primary); transition: width .6s ease; }
.prog-fill.warn    { background: var(--warning); }
.prog-fill.success { background: var(--success); }
.prog-fill.danger  { background: var(--danger);  }
.prog-pct { font-size: .72rem; font-weight: 700; color: var(--dark); width: 32px; text-align: right; }

/* ── 14. Custom Buttons (Butchery actions) ───────────────────── */
.btn-pdps-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-pdps-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(193,18,31,.25); color: #fff; }

.btn-pdps-secondary {
  background: var(--white);
  color: #374151;
  border: 1.5px solid var(--grey-border);
  border-radius: 7px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-pdps-secondary:hover { background: var(--grey-bg); color: #374151; }

.btn-pdps-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-pdps-danger:hover { background: #6f0000; color: #fff; }

.btn-pdps-success {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-pdps-success:hover { background: #1f5a23; color: #fff; }

.btn-pdps-purple {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-pdps-purple:hover { background: #5b2cbf; color: #fff; }

/* ── 15. Form Controls (Data entry for butchery) ─────────────── */
.form-label-sm {
  font-size: .78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  display: block;
}
.form-control,
.form-select {
  border: 1.5px solid var(--grey-border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  padding: 8px 12px;
  color: var(--dark);
  background: var(--white);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,18,31,.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: .75rem; }
.upload-zone {
  border: 2px dashed var(--grey-border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--grey-text);
  font-size: .82rem;
}
.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-xlt);
  color: var(--primary);
}

/* ── 16. Activity Feed (Butchery operations log) ─────────────── */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--grey-border);
  transition: background .12s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--primary-xlt); }
.activity-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.activity-content p   { margin: 0; font-size: .82rem; color: #374151; line-height: 1.4; }
.activity-content span{ font-size: .72rem; color: var(--grey-text); }

/* ── 17. Timeline (Milestones / Meat aging process) ──────────── */
.pdps-timeline { padding: 0 22px 8px; position: relative; }
.pdps-timeline::before {
  content: ''; position: absolute;
  left: 42px; top: 0; bottom: 0;
  width: 2px; background: var(--grey-border);
}
.tl-item {
  display: flex; gap: 14px;
  padding: 12px 0; position: relative;
}
.tl-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700;
  color: #fff; z-index: 1; margin-top: 2px; flex-shrink: 0;
}
.tl-dot.done     { background: var(--success); }
.tl-dot.active   { background: var(--primary); }
.tl-dot.upcoming { background: var(--grey-border); color: var(--grey-text); }
.tl-dot.risk     { background: var(--danger); }
.tl-content p    { margin: 0; font-size: .82rem; font-weight: 600; color: var(--dark); }
.tl-content span { font-size: .72rem; color: var(--grey-text); }

/* ── 18. Task Items (Production / Orders tasks) ───────────────── */
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--grey-border);
  transition: background .12s;
}
.task-item:hover { background: var(--primary-xlt); }
.task-item:last-child { border-bottom: none; }
.task-text      { font-size: .82rem; color: #374151; flex: 1; }
.task-text.done { text-decoration: line-through; color: var(--grey-text); }
.task-due       { font-size: .7rem; color: var(--grey-text); white-space: nowrap; }
.task-due.overdue { color: var(--danger); font-weight: 600; }

/* ── 19. Notification Items ─────────────────────────────────── */
.notif-item {
  display: flex; gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--grey-border);
  transition: background .12s;
}
.notif-item:hover { background: var(--primary-xlt); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread-bg { background: var(--primary-xlt); }
.notif-dot-sm { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.notif-dot-sm.unread { background: var(--primary); }
.notif-dot-sm.read   { background: var(--grey-border); }

/* ── 20. Inline Bar Charts (Sales / Meat cuts distribution) ──── */
.bar-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--grey-border);
}
.bar-row:last-child { border-bottom: none; }
.bar-lbl { font-size: .78rem; width: 130px; flex-shrink: 0; color: #374151; }
.bar-track { flex: 1; background: var(--grey-border); border-radius: 3px; height: 8px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; background: var(--primary); }
.bar-fill.purple  { background: var(--purple); }
.bar-fill.success { background: var(--success); }
.bar-fill.warn    { background: var(--warning); }
.bar-fill.danger  { background: var(--danger); }
.bar-v { font-size: .75rem; font-weight: 700; color: var(--dark); width: 36px; text-align: right; }

/* ── 21. Mini Stats (Daily slaughter / revenue) ──────────────── */
.mini-stat {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
}
.mini-stat:last-child { border-bottom: none; }
.mini-stat-label { font-size: .82rem; color: #374151; display: flex; align-items: center; gap: 8px; }
.mini-stat-value { font-size: .82rem; font-weight: 700; color: var(--dark); }

/* ── 22. Alert Banners (Low stock / Expiry) ──────────────────── */
.alert-banner {
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
}
.alert-banner.danger  { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.alert-banner.warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }
.alert-banner.info    { background: var(--primary-light); border: 1px solid #fec5c5; color: #8b2c2c; }
.alert-banner.success { background: #dcfce7; border: 1px solid #bbf7d0; color: #15803d; }

/* ── 23. Step Indicator (Multi-step forms: cuts, orders) ─────── */
.step-indicator { display: flex; gap: 0; margin-bottom: 28px; }
.step { flex: 1; text-align: center; position: relative; }
.step::after {
  content: ''; position: absolute;
  top: 15px; left: 50%; width: 100%; height: 2px;
  background: var(--grey-border);
}
.step:last-child::after { display: none; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--grey-border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  margin: 0 auto 6px;
  position: relative; z-index: 1;
}
.step.done   .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-label  { font-size: .7rem; color: var(--grey-text); font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ── 24. Validation Checklist (Quality control for meat) ─────── */
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--grey-border);
}
.check-item:last-child { border-bottom: none; }
.check-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.check-icon.pass    { background: #dcfce7; color: var(--success); }
.check-icon.fail    { background: #fee2e2; color: var(--danger);  }
.check-icon.warn    { background: #fef3c7; color: var(--warning); }
.check-icon.pending { background: var(--grey-bg); color: var(--grey-text); }
.check-label        { font-size: .82rem; color: #374151; flex: 1; }
.check-result       { font-size: .75rem; font-weight: 600; }
.check-result.pass  { color: var(--success); }
.check-result.fail  { color: var(--danger);  }
.check-result.warn  { color: var(--warning); }

/* ── 25. Field Diff View (Review inventory changes) ──────────── */
.field-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-border);
  display: flex; gap: 12px; align-items: flex-start;
}
.field-row:last-child { border-bottom: none; }
.field-key { font-size: .75rem; color: var(--grey-text); font-weight: 600; width: 160px; flex-shrink: 0; padding-top: 2px; }
.field-val { font-size: .82rem; color: var(--dark); flex: 1; }
.field-val.missing { color: var(--danger); font-style: italic; }

/* ── 26. Trend Chip (Sales / Demand trends) ──────────────────── */
.trend-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: .72rem; font-weight: 700;
}
.trend-chip.up   { background: #dcfce7; color: var(--success); }
.trend-chip.down { background: #fee2e2; color: var(--danger);  }
.trend-chip.flat { background: #f3f4f6; color: var(--grey-text); }

/* ── 27. Insight Cards (Butchery analytics) ──────────────────── */
.insight-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
  height: 100%;
}
.insight-card:hover { box-shadow: 0 4px 16px rgba(193,18,31,.08); border-color: #f5c6cb; }
.insight-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 10px;
}
.insight-title { font-size: .82rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.insight-text  { font-size: .75rem; color: var(--grey-text); line-height: 1.4; }

/* ── 28. Filter Chips ───────────────────────────────────────── */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #fbc4c4;
}

/* ── 29. Big Action Cards (Field Officer / Inventory actions) ── */
.big-action-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
  height: 100%;
  text-decoration: none;
  display: block;
  color: inherit;
}
.big-action-card:hover {
  box-shadow: 0 6px 20px rgba(193,18,31,.1);
  border-color: var(--primary);
  color: inherit;
}
.big-action-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

/* ── 30. Quality Ring (Meat quality score) ───────────────────── */
.quality-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--success) 0% 72%, var(--grey-border) 72% 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.quality-ring-inner {
  width: 90px; height: 90px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}

/* ── 31. Animations ─────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.kpi-card:nth-child(1) { animation-delay: .04s; }
.kpi-card:nth-child(2) { animation-delay: .08s; }
.kpi-card:nth-child(3) { animation-delay: .12s; }
.kpi-card:nth-child(4) { animation-delay: .16s; }

/* ── 32. Tooltip ─────────────────────────────────────────────── */
[data-pdps-tip] { position: relative; cursor: default; }
[data-pdps-tip]:hover::after {
  content: attr(data-pdps-tip);
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--dark); color: #fff;
  padding: 4px 10px; border-radius: 5px;
  font-size: .7rem; white-space: nowrap;
  pointer-events: none; z-index: 999;
}

/* ── 33. Responsive Adjustments ──────────────────────────────── */
@media (max-width: 991.98px) {
  .pdps-topbar { padding: 0 16px; }
  .pdps-main   { padding: 20px 16px; }
  .topbar-search input { width: 160px; }
  .topbar-search { display: none; }
}
@media (max-width: 575.98px) {
  .kpi-value { font-size: 1.4rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* ── 34. Utility Helpers (Red theme extras) ──────────────────── */
.text-brand  { color: var(--primary) !important; }
.text-muted  { color: var(--grey-text)  !important; }
.border-brand{ border-color: var(--primary) !important; }
.bg-red-soft { background: var(--primary-xlt); }
.bg-red-light{ background: var(--primary-light); }
.bg-grey-bg  { background: var(--grey-bg); }
.fw-semi     { font-weight: 600; }
.font-serif  { font-family: 'Fraunces', serif; }
.rounded-pdps{ border-radius: 12px; }
.border-pdps { border: 1.5px solid var(--grey-border); }
.offcanvas-header .btn-close { filter: none; }

/* Butchery-specific additional touches */
.bg-primary-soft { background-color: var(--primary-xlt); }
.btn-outline-primary-custom {
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: white;
}