/* =========================================================================
   POULTRY CATCHING MANAGEMENT PLATFORM - MODERN EXECUTIVE THEME
   Clean, flat, high-contrast executive design with zero shadows & standard typography.
   Color Palette: DigitalSofts Signature Orange (#E37827), Slate Navy (#1E293B), Neutral Slate (#475569)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* DigitalSofts Signature Executive Palette */
  --ds-orange: #E37827;
  --ds-orange-hover: #D0671B;
  --ds-orange-light: #FFF7ED;
  --ds-orange-border: #FFEDD5;

  --ds-charcoal: #33363C;
  --ds-charcoal-dark: #1E293B;
  --ds-slate-body: #475569;
  --ds-slate-muted: #64748B;
  --ds-slate-dim: #94A3B8;

  /* Crisp Light Surfaces & Flat Borders (No Shadows) */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --bg-glass: #F1F5F9;
  --border-glass: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #E37827;

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Executive Accents */
  --accent-cyan: #0284C7;
  --accent-emerald: #059669;
  --accent-amber: #D97706;
  --accent-rose: #DC2626;
  --accent-indigo: #4F46E5;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* STRICT ZERO SHADOWS AS REQUESTED */
  --shadow-card: none;
  --shadow-hover: none;
  --shadow-glow: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 'Inter', Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   LOGIN SCREEN
   ========================================================================= */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background-color: #F1F5F9;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: none;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ds-orange);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.logo-badge {
  background: var(--ds-orange);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: none;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 22px;
}

.quick-demo-roles {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}

.demo-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.demo-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none;
}

.demo-btn:hover {
  background: var(--ds-orange-light);
  color: var(--ds-orange-hover);
  border-color: var(--ds-orange);
}

/* =========================================================================
   NAVBAR & HEADER
   ========================================================================= */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 24px;
  box-shadow: none;
}

.nav-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-icon {
  background: var(--ds-orange);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: none;
}

.nav-tab:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.nav-tab.active {
  color: var(--ds-orange);
  background: var(--ds-orange-light);
  border-color: var(--ds-orange-border);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--border-glass);
}

#navUserName {
  color: var(--text-main) !important;
  font-weight: 700;
  font-size: 0.85rem;
}

.role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.role-super_admin { background: #FFE4E6; color: #BE123C; border: 1px solid #FECDD3; }
.role-ceo { background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE; }
.role-manager { background: var(--ds-orange-light); color: var(--ds-orange-hover); border: 1px solid var(--ds-orange-border); }
.role-supervisor { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

.btn-logout {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s;
  box-shadow: none;
}

.btn-logout:hover {
  background: #FEE2E2;
  color: #EF4444;
  border-color: #FECDD3;
}

/* =========================================================================
   MAIN VIEW AREA
   ========================================================================= */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* =========================================================================
   KPI CARDS GRID
   ========================================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s;
}

.kpi-card:hover {
  border-color: var(--border-medium);
}

.kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.kpi-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--ds-orange-light);
  color: var(--ds-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* =========================================================================
   VEHICLE WEIGHBRIDGE SECTION (1ST, 2ND & 3RD WEIGHT FLOW)
   ========================================================================= */
.vehicle-weighbridge-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: none;
}

.weighbridge-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.weighbridge-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-orange);
  background: var(--ds-orange-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--ds-orange-border);
}

.vehicle-weights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .vehicle-weights-grid {
    grid-template-columns: 1fr;
  }
}

.vehicle-weight-card {
  background: #F8FAFC;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: border-color 0.15s;
}

.vehicle-weight-card:hover {
  border-color: var(--border-medium);
}

.vehicle-weight-card.stage-net {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
}

.weight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.weight-stage-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.weight-stage-tag.stage-1 { background: #E2E8F0; color: #334155; }
.weight-stage-tag.stage-2 { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.weight-stage-tag.stage-3 { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }

.weight-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.weight-num-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0;
}

.weight-big-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.weight-big-num.text-success {
  color: #15803D;
}

.weight-unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.weight-sub-info {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.weight-action-wrap {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-action-outline {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  box-shadow: none;
}

.btn-action-outline:hover {
  background: var(--ds-orange-light);
  color: var(--ds-orange);
  border-color: var(--ds-orange);
}

.net-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803D;
  background: #DCFCE7;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

/* =========================================================================
   SUPERVISOR / FIELD WEIGHING INTERFACE
   ========================================================================= */
.scale-weighing-deck {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .scale-weighing-deck {
    grid-template-columns: 1fr;
  }
}

.hero-scale-card {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-top: 3px solid var(--ds-orange);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scale-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scale-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.scale-digits-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 26px 10px;
  background: #F8FAFC;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.scale-weight-num {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  line-height: 1;
}

.scale-weight-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ds-orange);
}

.scale-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scale-status-badge.stable {
  background: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.scale-status-badge.measuring {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* Sequential Weighing Workflow Cards */
.weighing-sequence-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sequence-step-card {
  background: #F8FAFC;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.sequence-step-card.active-step {
  border-color: var(--ds-orange);
  background: #FFFFFF;
}

.sequence-step-card.completed-step {
  border-color: #BBF7D0;
  background: #F0FDF4;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.step-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #94A3B8;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sequence-step-card.active-step .step-num-circle {
  background: var(--ds-orange);
}

.sequence-step-card.completed-step .step-num-circle {
  background: #15803D;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.step-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.step-status-tag.pending {
  background: #E2E8F0;
  color: #475569;
}

.step-status-tag.ready {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.step-status-tag.done {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.btn-action {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: none;
}

.btn-tare-scale {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

.btn-tare-scale:hover {
  background: var(--bg-glass);
}

/* =========================================================================
   SESSION SUMMARY / TRUCK BATCH CARD
   ========================================================================= */
.session-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.session-info-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-stat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-val-highlight {
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   TABLES & CARDS (ZERO SHADOWS)
   ========================================================================= */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: none;
  margin-bottom: 22px;
}

.table-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 10px 14px;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #F8FAFC;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 11px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
}

.data-table tr:hover td {
  background: #F8FAFC;
}

/* =========================================================================
   INPUTS, FORMS & MODALS (ZERO SHADOWS)
   ========================================================================= */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-input, .form-select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s;
  box-shadow: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--ds-orange);
  outline: none;
  box-shadow: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  overflow-y: auto;
  padding: 20px 12px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--ds-orange);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: none;
  margin: auto;
}

.modal-box-scrollable {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-box-scrollable .modal-header {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.modal-box-scrollable .slip-ticket-paper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text-main);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.btn-primary {
  background: var(--ds-orange);
  color: #FFFFFF;
  border: 1px solid var(--ds-orange-hover);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--ds-orange-hover);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-glass);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* =========================================================================
   ADMIN SUB-NAVIGATION & BUTTONS (ZERO SHADOWS)
   ========================================================================= */
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.admin-subtab {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: none;
}

.admin-subtab:hover {
  background: var(--ds-orange-light);
  color: var(--ds-orange);
  border-color: var(--ds-orange);
}

.admin-subtab.active {
  background: var(--ds-orange);
  color: #fff;
  border-color: var(--ds-orange);
  box-shadow: none;
}

.btn-sm-action {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  color: var(--text-main);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: none;
}

.btn-sm-action:hover {
  background: var(--ds-orange-light);
  color: var(--ds-orange);
  border-color: var(--ds-orange);
}

.btn-sm-delete {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #FECDD3;
  background: #FFF;
  color: #DC2626;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: none;
}

.btn-sm-delete:hover {
  background: #FEE2E2;
}

/* =========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================= */
@media (max-width: 768px) {
  .navbar { padding: 8px 14px; }
  .main-content { padding: 14px; }
  .scale-weight-num { font-size: 2.8rem; }
  .nav-menu { display: flex; overflow-x: auto; max-width: 60vw; }
  .nav-tab { font-size: 0.76rem; padding: 5px 8px; }
  .vehicle-weights-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   CATCHING HISTORY & DATE FILTER STYLES
   ========================================================================= */
.filter-btn-group {
  display: inline-flex;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border-glass);
}

.filter-btn {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.7);
}

.filter-btn.active {
  background: #FFFFFF;
  color: var(--ds-orange);
  font-weight: 700;
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.filter-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.82rem;
}

.filter-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-body);
}

.filter-stat-pill strong {
  color: var(--text-main);
  font-weight: 700;
}

.filter-stat-pill.highlight strong {
  color: var(--ds-orange);
}

/* Weighbridge Ticket Slip Modal */
.slip-ticket-paper {
  background: #FFFFFF;
  border: 2px dashed #94A3B8;
  border-radius: var(--radius-sm);
  padding: 24px;
  max-width: 520px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
  color: #0F172A;
  box-sizing: border-box;
}

/* Custom sleek scrollbar for ticket content */
.slip-ticket-paper::-webkit-scrollbar {
  width: 6px;
}
.slip-ticket-paper::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 3px;
}
.slip-ticket-paper::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
.slip-ticket-paper::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.slip-ticket-header {
  text-align: center;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.slip-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-orange);
}

.slip-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.88rem;
  border-bottom: 1px dotted #E2E8F0;
}

.slip-row.highlight {
  background: #F0FDF4;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 4px;
  border: 1px solid #BBF7D0;
  margin: 8px 0;
}

@media print {
  body * {
    visibility: hidden;
  }
  #modalWeighbridgeSlip, #modalWeighbridgeSlip * {
    visibility: visible;
  }
  #modalWeighbridgeSlip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: visible !important;
  }
  #modalWeighbridgeSlip .modal-box {
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  #modalWeighbridgeSlip .modal-header,
  #modalWeighbridgeSlip .modal-footer,
  #modalWeighbridgeSlip button {
    display: none !important;
  }
  #slipTicketContent {
    position: static;
    border: 2px dashed #000;
    padding: 24px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    overflow: visible !important;
  }
}
