﻿.pos-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.pos-menu-item:hover {
  border-left-color: var(--primary);
  background: var(--bg-hover);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --primary: #7ddc4b;
  --primary-dark: #5fbf2d;
  --primary-light: rgba(125, 220, 75, 0.16);
  --bg-dark: #060b08;
  --bg-darker: #050806;
  --bg-card: #101713;
  --bg-hover: #17211a;
  --bg-elevated: #19241d;
  --text-primary: #f5f7f2;
  --text-secondary: #d3ddcf;
  --text-muted: #7f8d79;
  --border: #223125;
  --border-light: #334a2f;
  --success: #67d96d;
  --accent: #4c9be8;
  --text-color: #f5f7f2;
  --danger: #ff6b6b;
  --warning: #f2c94c;
  --error: #ff6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.18);
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at top left, rgba(125, 220, 75, 0.12), transparent 24%),
    linear-gradient(135deg, #030705 0%, #0b140d 45%, #101713 100%);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p, span, li, td, th, button, input, textarea, select {
  font-family: var(--font-sans);
}

button, input, textarea, select {
  font-size: 14px;
  font-weight: 500;
}

input[type="text"][id*="Search"],
input[type="text"][placeholder*="Search"],
input[type="search"],
#quickLoanCustomer {
  text-transform: uppercase;
}

body, .panel, .topbar, .sidebar, .content {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.status-card h2 {
  font-size: 20px !important;
  line-height: 1.15;
  margin: 0;
}

.status-card p {
  font-size: 12px !important;
}

body.modal-open {
  overflow: hidden;
}

.assistant-page-header {
  align-items: center;
  gap: 16px;
  margin-bottom: 8px !important;
  min-height: 34px;
}

.assistant-page-header h2 {
  font-size: 20px;
  line-height: 1.1;
}

.assistant-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.assistant-panel {
  width: 100%;
  height: min(640px, calc(100vh - 260px)) !important;
  min-height: 0;
}

.assistant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.assistant-shell.assistant-context-open {
  grid-template-columns: minmax(0, 3.6fr) minmax(190px, 1fr);
}

.assistant-main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.assistant-scroll-bottom {
  position: absolute;
  right: 28px;
  bottom: 82px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.assistant-scroll-bottom:hover {
  background: var(--bg-hover);
}

.assistant-toolbar {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 6px;
  font-size: 13px;
}

.assistant-reply {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.assistant-input-row textarea,
.assistant-attachment-status,
.assistant-voice-status {
  font-size: 13px !important;
}

.assistant-composer {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.assistant-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.assistant-attachment-status {
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-hover);
  font-size: 12px;
}

.assistant-job-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  font-size: 11px;
}

.assistant-job-panel.is-collapsed {
  display: none !important;
}

.assistant-job-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 820px) {
  .assistant-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .assistant-page-actions {
    justify-content: flex-start;
  }

  .assistant-panel {
    height: calc(100vh - 240px) !important;
    min-height: 0;
  }

  .assistant-shell {
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .assistant-shell.assistant-context-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-reply {
    min-height: 0;
  }

  .assistant-job-panel {
    max-height: 260px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 520px) {
  .assistant-page-actions {
    width: 100%;
  }

  .assistant-page-actions .btn {
    flex: 1 1 auto;
  }

  .assistant-shell {
    padding: 12px;
  }

  .assistant-input-row {
    flex-wrap: wrap;
  }

  .assistant-input-row textarea {
    order: 1;
    flex: 1 1 calc(100% - 52px);
  }

  .assistant-input-row #assistantAttachmentButton {
    order: 0;
  }

  .assistant-input-row #assistantVoiceButton,
  .assistant-input-row #assistantSendButton {
    order: 2;
  }
}

@keyframes overduePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}

@keyframes priorityAlertFlicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.68); }
  20% { opacity: 0.42; }
  38% { opacity: 1; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
  62% { opacity: 0.55; }
  78% { opacity: 1; }
}

#priorityAlertButton.priority-alert-active {
  border-color: #f59e0b;
  color: #fbbf24;
  animation: priorityAlertFlicker 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
  #priorityAlertButton.priority-alert-active {
    animation: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
  }
}

#overdueAlertButton.active,
#customerOrderAlertButton.active {
  border-color: var(--error);
  color: var(--error);
}

#remindersAlertButton.active {
  border-color: var(--warning);
  color: var(--warning);
}

#overdueAlertButton.overdue-notify,
#customerOrderAlertButton.overdue-notify {
  animation: overduePulse 1.2s infinite;
}

#remindersAlertButton.overdue-notify {
  animation: overduePulse 1.2s infinite;
}

::selection {
  background: rgba(125, 220, 75, 0.28);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 4, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3000 !important;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-panel {
  background: linear-gradient(180deg, rgba(16, 23, 19, 0.98), rgba(12, 18, 14, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  max-width: 580px;
  width: 100%;
  max-height: min(90vh, calc(100vh - 40px));
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  margin: 20px 0;
}

.document-print-format-overlay {
  align-items: center;
  z-index: 3010 !important;
}

.document-print-format-panel {
  max-width: 440px;
  margin: 0;
  text-align: center;
}

.document-print-format-panel h3 {
  margin: 0;
}

.document-print-format-description {
  margin: 10px 0 20px;
  color: var(--text-muted);
}

.document-print-format-actions {
  display: grid;
  gap: 10px;
}

.document-print-format-actions .btn {
  width: 100%;
  justify-content: center;
}

.document-print-format-receipt {
  min-height: 48px;
  font-weight: 800;
}

.document-print-format-cancel {
  margin-top: 4px;
}

.receipt-editor-fullscreen {
  padding: 0;
  overflow-x: hidden;
  overflow-y: scroll !important;
  height: 100vh;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

.receipt-editor-fullscreen::-webkit-scrollbar {
  display: block;
  width: 10px;
  height: 0;
}

.receipt-editor-fullscreen::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.receipt-editor-fullscreen::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

.receipt-editor-fullscreen > .modal-panel {
  width: 100vw !important;
  max-width: none !important;
  min-height: max-content;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: clamp(18px, 4vw, 42px);
}

.receipt-editor-fullscreen .modal-panel,
.receipt-editor-fullscreen .receipt-editor-formatting-bar,
.receipt-editor-fullscreen #receiptEditorPreview {
  overflow-x: hidden;
}

.receipt-editor-formatting-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  overflow-x: hidden;
}

.receipt-editor-formatting-bar strong {
  flex-basis: 100%;
  color: var(--text-primary);
}

.receipt-editor-formatting-bar label {
  display: grid;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.receipt-editor-formatting-bar select,
.receipt-editor-formatting-bar input[type='color'],
.receipt-editor-formatting-bar input[type='checkbox'] {
  accent-color: var(--primary);
}

.receipt-editor-formatting-bar select,
.receipt-editor-formatting-bar input[type='color'] {
  min-height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  color-scheme: dark;
}

.receipt-editor-formatting-bar select {
  min-width: 112px;
  padding: 7px 26px 7px 9px;
}

.receipt-editor-formatting-bar select option,
.receipt-editor-formatting-bar select optgroup {
  background: var(--bg-card);
  color: var(--text-primary);
}

.receipt-editor-formatting-bar input[type='color'] {
  width: 52px;
  padding: 3px;
}

.receipt-editor-formatting-bar input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.receipt-editor-formatting-bar .receipt-editor-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

#receiptEditorPreview {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

#receiptEditorPreview > div {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .receipt-editor-formatting-bar > label {
    flex: 1 1 135px;
  }
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(125, 220, 75, 0.12), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(120, 80, 220, 0.08), transparent 18%),
    linear-gradient(135deg, #030604 0%, #08100b 42%, #050806 100%);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(125, 220, 75, 0.10), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(125, 220, 75, 0.06), transparent 30%);
  pointer-events: none;
}

.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.12), transparent 18%, transparent 82%, rgba(0,0,0,0.16)),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.auth-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.9fr);
  min-height: 100vh;
  align-items: stretch;
}

/* ── LEFT HERO PANEL ── */
.auth-hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 38px 46px 34px;
  background:
    linear-gradient(180deg, rgba(5,8,6,0.92) 0%, rgba(6,11,8,0.95) 100%),
    radial-gradient(circle at 50% 0%, rgba(125,220,75,0.08), transparent 32%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(125,220,75,0.015) 40px, rgba(125,220,75,0.015) 41px);
  border-right: 1px solid rgba(125,220,75,0.10);
  overflow: hidden;
}

.auth-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.03), transparent 18%),
    radial-gradient(circle at 78% 38%, rgba(125,220,75,0.05), transparent 14%),
    linear-gradient(180deg, rgba(0,0,0,0.06), transparent 28%, rgba(0,0,0,0.14));
  pointer-events: none;
}

.auth-hero-panel > * {
  position: relative;
  z-index: 1;
}

/* top section: tagline + brand */
.lp-top {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-tagline-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.lp-tagline-stack .lp-green {
  color: var(--primary);
}

.lp-brand-center {
  flex: 1;
  text-align: center;
  max-width: 760px;
}

.lp-est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.lp-est-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lp-mower {
  width: 72px;
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(125,220,75,0.35));
}

.lp-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.lp-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.lp-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.lp-subtitle-row .lp-line:last-child {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.lp-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.lp-tagline {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* feature icons row */
.lp-features-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lp-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.lp-feature-item svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 6px rgba(125,220,75,0.28));
}

.lp-feature-item span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* stats row */
.lp-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(125,220,75,0.14);
  border-radius: 18px;
  padding: 18px 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.lp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.lp-stat strong {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.lp-stat span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.lp-stat small {
  font-size: 11px;
  color: var(--text-muted);
}

.lp-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(125,220,75,0.12);
  flex-shrink: 0;
}

/* modules section */
.lp-modules-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.01em;
}

.lp-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lp-module-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(125,220,75,0.12);
  border-radius: 14px;
  padding: 14px 12px;
  transition: background 0.15s, border-color 0.15s;
}

.lp-module-card:hover {
  background: rgba(125,220,75,0.06);
  border-color: rgba(125,220,75,0.22);
}

.lp-module-card svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-module-card strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.lp-module-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* value props row */
.lp-value-row {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

.lp-value-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-value-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.lp-value-item strong {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
}

.lp-value-item small {
  font-size: 11px;
  color: var(--text-muted);
}

.lp-copyright {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── RIGHT SIDE PANEL ── */
.auth-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px 24px;
  background:
    linear-gradient(180deg, rgba(7,11,9,0.98), rgba(5,8,6,0.98)),
    radial-gradient(circle at top right, rgba(125,220,75,0.08), transparent 25%);
  border-left: 1px solid rgba(125,220,75,0.10);
  overflow-y: auto;
}

/* Login box */
.lp-login-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(125,220,75,0.14);
  box-shadow: 0 16px 26px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.03);
}

.lp-code-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lp-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lp-code-input-wrap {
  position: relative;
  flex: 1;
}

.lp-code-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 8, 6, 0.82);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.lp-code-input-wrap input::placeholder,
.lp-job-input-row input::placeholder {
  color: rgba(211, 221, 207, 0.48);
}

.lp-code-input-wrap input:focus,
.lp-job-input-row input:focus {
  outline: none;
  border-color: rgba(125,220,75,0.45);
  box-shadow: 0 0 0 3px rgba(125,220,75,0.12);
  background: rgba(7, 12, 8, 0.96);
}

.lp-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.lp-signin-btn {
  white-space: nowrap;
  min-width: 110px;
  padding: 0 18px;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* Find your job card */
.lp-find-job-card {
  background: linear-gradient(135deg, rgba(13,29,18,0.96), rgba(8,18,11,0.92));
  border: 1px solid rgba(125,220,75,0.24);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
}

.lp-find-job-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-find-job-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(125,220,75,0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}

.lp-find-job-icon svg {
  width: 20px;
  height: 20px;
}

.lp-find-job-header strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
}

.lp-find-job-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lp-job-input-row {
  display: flex;
  gap: 8px;
}

.lp-job-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 8, 6, 0.82);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.lp-job-input-row .btn {
  white-space: nowrap;
  font-size: 13px;
  min-width: 118px;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.16);
}

/* Statements card */
.lp-statements-card {
  background: linear-gradient(135deg, rgba(46,26,100,0.36), rgba(28,18,62,0.26));
  border: 1px solid rgba(120,80,220,0.30);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.lp-statements-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.lp-statements-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(120,80,220,0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #a78bf0;
}

.lp-statements-icon svg {
  width: 20px;
  height: 20px;
}

.lp-statements-inner strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
}

.lp-statements-inner p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lp-statements-btn {
  background: rgba(120,80,220,0.22);
  border: 1px solid rgba(120,80,220,0.38);
  color: #c4aef8;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lp-statements-btn:hover {
  background: rgba(120,80,220,0.34);
  border-color: rgba(120,80,220,0.55);
}

/* Free trial card */
.lp-trial-card {
  background:
    linear-gradient(135deg, rgba(14,22,17,0.98), rgba(8,14,10,0.94)),
    radial-gradient(circle at 82% 40%, rgba(125,220,75,0.08), transparent 22%);
  border: 1px solid rgba(125,220,75,0.20);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 32px rgba(0,0,0,0.24);
}

.lp-trial-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.lp-trial-text {
  flex: 1;
  min-width: 0;
}

.lp-trial-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.lp-trial-sub {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 3px;
}

.lp-trial-list {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-trial-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-check {
  color: var(--primary);
  font-weight: 700;
}

.lp-trial-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.lp-trial-signin {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.lp-trial-signin a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* 14-day badge */
.lp-trial-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-badge-circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 4px dashed rgba(125,220,75,0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(125,220,75,0.06);
  padding: 10px;
  text-align: center;
}

.lp-badge-circle strong {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.lp-badge-circle span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.lp-badge-circle small {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}

/* Why choose card */
.lp-why-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 16px;
}

.lp-why-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 14px;
}

.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.lp-why-item svg {
  width: 22px;
  height: 22px;
}

.lp-why-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.lp-why-item small {
  font-size: 11px;
  color: var(--text-muted);
}

.lp-right-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}

.auth-result {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
}

.saas-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.saas-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 15, 12, 0.86);
  backdrop-filter: blur(10px);
}

.saas-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.saas-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), #4c9f28);
  color: #061108;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saas-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.saas-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#landingSignInButton[hidden] {
  display: none;
}

.saas-nav-link {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.saas-nav-link:hover,
.saas-nav-link.active {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(125, 220, 75, 0.14);
}

.saas-main {
  display: block;
}

.auth-section {
  display: none;
  animation: authFadeIn 0.28s ease;
}

.auth-section.is-active {
  display: block;
}

.saas-hero-copy,
.saas-logo-panel,
.saas-simple-section,
.saas-form-shell,
.saas-trial-banner,
.saas-feature-card,
.saas-pricing-card,
.saas-stat-card,
.saas-testimonial {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 23, 19, 0.96), rgba(8, 13, 10, 0.96));
  box-shadow: var(--shadow-soft);
}

.saas-hero-copy {
  padding: 34px;
}

.saas-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(125, 220, 75, 0.18);
  color: var(--primary);
  margin-bottom: 12px;
}

.saas-hero-copy h1 {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.saas-hero-copy h2 {
  margin-top: 10px;
  font-size: clamp(20px, 3vw, 30px);
  color: #e5f1e2;
}

.saas-hero-copy p {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--text-secondary);
}

.saas-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.saas-section-block {
  margin-top: 18px;
}

.saas-section-block h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.saas-feature-grid,
.saas-stats-grid,
.saas-testimonial-grid,
.saas-pricing-grid,
.saas-portal-grid {
  display: grid;
  gap: 12px;
}

.saas-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.saas-feature-card {
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.saas-feature-card:hover,
.saas-pricing-card:hover,
.saas-portal-card:hover,
.saas-stat-card:hover,
.saas-testimonial:hover {
  transform: translateY(-3px);
  border-color: #355f2a;
}

.saas-feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: #e9f8e6;
}

.saas-feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
}

.saas-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.saas-stat-card {
  padding: 18px;
}

.saas-stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
}

.saas-stat-card span {
  color: var(--text-secondary);
  font-size: 13px;
}

.saas-testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.saas-testimonial {
  padding: 18px;
  color: var(--text-secondary);
}

.saas-testimonial cite {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
}

.saas-trial-banner {
  padding: 22px;
}

.saas-trial-banner p {
  color: var(--text-secondary);
  margin: 8px 0 14px;
}

.saas-simple-section,
.saas-form-shell {
  padding: 24px;
}

.saas-simple-section h2,
.saas-form-shell h2 {
  margin-bottom: 8px;
}

.saas-simple-section p,
.saas-form-shell p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.saas-pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.saas-pricing-card {
  padding: 18px;
}

.saas-pricing-card.featured {
  border-color: #4f8d37;
  box-shadow: 0 16px 40px rgba(125, 220, 75, 0.12);
}

.saas-price {
  font-size: 30px;
  color: var(--primary);
  margin: 8px 0;
}

.saas-price span {
  font-size: 14px;
  color: var(--text-muted);
}

.saas-portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.saas-portal-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(17, 26, 20, 0.95), rgba(8, 13, 10, 0.95));
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.22s ease;
}

.saas-form-shell form {
  display: grid;
  gap: 10px;
}

.saas-form-shell input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-primary);
  padding: 12px;
}

@media (max-width: 740px) {
  .saas-shell {
    padding: 14px;
  }

  .saas-nav {
    position: static;
  }

  .saas-nav-links {
    justify-content: flex-start;
  }
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .auth-hero {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .lp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .auth-hero {
    grid-template-columns: 1fr;
  }
  .auth-side-panel {
    border-left: none;
    border-top: 1px solid rgba(125,220,75,0.10);
    padding: 24px 20px;
  }
  .auth-hero-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .lp-top {
    flex-direction: column;
    align-items: center;
  }
  .lp-tagline-stack {
    font-size: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .lp-value-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lp-value-item {
    flex: 1 1 120px;
  }
  .lp-code-row {
    flex-direction: column;
  }
  .lp-statements-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  height: auto;
  background: linear-gradient(90deg, rgba(5,8,6,0.98) 0%, rgba(6,10,8,0.98) 100%);
  overflow-x: hidden;
  overflow-y: visible;
}

.app-shell.pos-fullscreen {
  grid-template-columns: 1fr;
}

.app-shell.pos-fullscreen .sidebar {
  display: none;
}

.app-shell.pos-fullscreen .topbar {
  display: none;
}

.app-shell.pos-fullscreen .content {
  padding: 20px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1500;
  width: min(260px, 80vw);
  max-height: 100vh;
  height: 100vh;
  background: linear-gradient(180deg, rgba(5,8,6,0.97), rgba(8,12,9,0.97));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow: hidden;
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
}

.app-shell.mobile-menu-open .sidebar {
  transform: translateX(0);
}

.app-shell.mobile-menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.45);
}

.main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.topbar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.btn.mobile-menu-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 8px 10px;
  z-index: 1600;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-shell.mobile-menu-open .btn.mobile-menu-toggle {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-shell.mobile-menu-open .mobile-menu-close {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-filter-select {
  display: none;
}

.mobile-reports-view-select {
  display: none;
}

.global-scroll-bottom {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow);
}

.mobile-banking-sections {
  display: none;
}

.topbar h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand h2 .brand-title {
  text-transform: uppercase;
}

.topbar .eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.content {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 32px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

#content > .panel {
  width: 100% !important;
  max-width: none !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.brand h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.nav-item {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: none;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(125, 220, 75, 0.18), rgba(125, 220, 75, 0.1));
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(125, 220, 75, 0.16);
}

.nav-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0 4px;
  cursor: pointer;
}

.nav-section-toggle .nav-label {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

.nav-chevron {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.accordion-section.open .nav-chevron {
  transform: rotate(0deg);
}

.accordion-section:not(.open) .nav-chevron {
  transform: rotate(-90deg);
}

.nav-section-content {
  display: block;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 14px;
  margin-bottom: 12px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-footer p {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-footer span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 23, 19, 0.98), rgba(11, 16, 13, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.panel-head h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-head .eyebrow {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.muted-pill {
  background: rgba(125, 220, 75, 0.12);
  border: 1px solid rgba(125, 220, 75, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-section {
  margin-bottom: 28px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-group span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.field-group input,
.field-group textarea,
.field-group select {
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
  color-scheme: dark;
}

.field-group select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.field-group select option:checked,
.field-group select option:hover {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(125, 220, 75, 0.06);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.field-group input::placeholder {
  color: var(--text-muted);
}

#appShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
#appShell select,
#appShell textarea,
#authShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
#authShell select,
#authShell textarea,
.modal-overlay input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.modal-overlay select,
.modal-overlay textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  color: var(--text-primary);
  color-scheme: dark;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#appShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
#appShell select:focus,
#appShell textarea:focus,
#authShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
#authShell select:focus,
#authShell textarea:focus,
.modal-overlay input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
.modal-overlay select:focus,
.modal-overlay textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

#appShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"])::placeholder,
#appShell textarea::placeholder,
#authShell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"])::placeholder,
#authShell textarea::placeholder,
.modal-overlay input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"])::placeholder,
.modal-overlay textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#appShell input[type="checkbox"],
#appShell input[type="radio"],
#authShell input[type="checkbox"],
#authShell input[type="radio"],
.modal-overlay input[type="checkbox"],
.modal-overlay input[type="radio"] {
  accent-color: var(--primary);
}

.create-job-card-panel {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
}

.create-job-card-heading {
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.create-job-card-heading h3 {
  font-size: clamp(22px, 3vw, 28px);
}

.create-job-card-intro {
  margin: 8px 0 0;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.create-job-card-required-note {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
}

.job-create-section {
  margin: 0 0 16px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
}

.job-create-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.job-create-step {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(125, 220, 75, 0.28);
  border-radius: 9px;
  background: rgba(125, 220, 75, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.job-create-section-heading h4 {
  margin: 1px 0 4px;
  font-size: 14px;
  letter-spacing: 0.035em;
}

.job-create-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.job-create-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.job-create-basics-grid {
  grid-template-columns: minmax(160px, 0.72fr) minmax(300px, 1.55fr) minmax(190px, 0.9fr);
}

.job-create-basics-grid .job-create-technician-field {
  grid-column: 1 / -1;
}

.job-create-machine-grid {
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.5fr);
}

.job-create-condition-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.job-create-section .field-group {
  min-width: 0;
}

.job-create-section .field-group textarea {
  min-height: 132px;
  font-family: inherit;
}

.job-priority-field {
  gap: 10px;
}

.job-priority-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.job-priority-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.job-priority-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.job-priority-card {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-hover);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.job-priority-card strong {
  color: var(--text-primary);
  font-size: 13px;
}

.job-priority-card small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
}

.job-priority-normal input:checked + .job-priority-card {
  border-color: var(--primary);
  background: rgba(125, 220, 75, 0.1);
  box-shadow: inset 0 0 0 1px rgba(125, 220, 75, 0.16);
}

.job-priority-urgent input:checked + .job-priority-card {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.job-priority-critical input:checked + .job-priority-card {
  border-color: #ef5b5b;
  background: rgba(239, 91, 91, 0.13);
  box-shadow: inset 0 0 0 1px rgba(239, 91, 91, 0.18);
}

.job-priority-option:focus-within .job-priority-card {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.job-priority-urgent .job-priority-card strong {
  color: #fbbf24;
}

.job-priority-critical .job-priority-card strong {
  color: #f87171;
}

.job-priority-help {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.job-followup-details {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
}

.job-followup-details > summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.job-followup-details > summary::-webkit-details-marker {
  display: none;
}

.job-followup-summary-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.job-followup-summary-copy strong {
  color: var(--text-primary);
  font-size: 13px;
  text-transform: capitalize;
}

.job-followup-summary-copy small {
  color: var(--text-muted);
  font-size: 11px;
}

.job-followup-toggle {
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.job-followup-details[open] .job-followup-toggle {
  transform: rotate(45deg);
}

.job-followup-details[open] {
  border-color: rgba(125, 220, 75, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.job-followup-content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.job-followup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
}

.job-followup-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(23, 33, 26, 0.42);
}

.job-followup-grid label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.job-followup-grid input,
.job-followup-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  color: var(--text-primary);
  color-scheme: dark;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.job-followup-grid input:focus,
.job-followup-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(125, 220, 75, 0.06);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.job-followup-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.job-followup-grid textarea::placeholder {
  color: var(--text-muted);
}

.job-create-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px calc(clamp(18px, 3vw, 32px) * -1) calc(clamp(18px, 3vw, 32px) * -1);
  padding: 14px clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  background: rgba(16, 23, 19, 0.96);
  backdrop-filter: blur(12px);
}

.job-create-actions .btn {
  min-width: 132px;
}

@media (max-width: 900px) {
  .job-create-basics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-create-basics-grid .field-group:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .job-create-machine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .create-job-card-panel {
    padding: 18px 14px;
  }

  .create-job-card-heading {
    flex-direction: column;
    margin-bottom: 18px;
  }

  .create-job-card-required-note {
    align-self: flex-start;
  }

  .job-create-section {
    padding: 16px 13px;
  }

  .job-create-basics-grid,
  .job-create-condition-grid,
  .job-followup-grid {
    grid-template-columns: 1fr;
  }

  .job-create-basics-grid .field-group:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .job-priority-options {
    grid-template-columns: 1fr;
  }

  .job-priority-card {
    min-height: 58px;
  }

  .job-followup-details > summary {
    padding: 12px;
  }

  .job-followup-content {
    padding: 0 12px 12px;
  }

  .job-create-actions {
    margin-right: -14px;
    margin-bottom: -18px;
    margin-left: -14px;
    padding: 12px 14px;
  }

  .job-create-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

.quote-line-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quote-line-field {
  min-width: 0;
}

.quote-line-field input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .quote-line-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

#whatsappTemplateText,
#whatsappStorageNotice,
#whatsappCustomerOrderNotice {
  text-transform: none;
}

.review-supplier-invoice-item {
  background: var(--bg-card) !important;
  border-color: var(--border-light) !important;
  color: var(--text-primary);
}

.review-supplier-invoice-item > label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.review-supplier-invoice-item input,
.review-supplier-invoice-item select {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text-primary);
  color-scheme: dark;
}

.review-supplier-invoice-item input:focus,
.review-supplier-invoice-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.review-supplier-invoice-item input[readonly] {
  background: rgba(6, 11, 8, 0.72);
  color: var(--text-secondary);
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  white-space: nowrap !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(93, 173, 36, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(93, 173, 36, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.06);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d99a10);
  color: white;
}

.btn-warning:hover {
  box-shadow: 0 10px 24px rgba(242, 201, 76, 0.22);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #d94b4b);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.24);
}

.btn-danger:active {
  transform: translateY(0);
}

.btn-small {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dropdown-list {
  position: absolute;
  background: linear-gradient(180deg, rgba(16, 23, 19, 0.98), rgba(11, 16, 13, 0.98));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  width: 100%;
  box-shadow: var(--shadow);
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(125, 220, 75, 0.08);
}

.dropdown-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.dropdown-item small {
  color: var(--text-muted);
  font-size: 12px;
}

.header-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-employee-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #06110a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.header-employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.header-account-dropdown[hidden] {
  display: none;
}

.inventory-edit-page { max-width: 980px; margin: 0 auto; }
.inventory-edit-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.inventory-edit-header h3 { margin: 4px 0 3px; }
.inventory-edit-header p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 13px; }
.inventory-edit-back { flex: 0 0 auto; }
.inventory-edit-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; margin-top: 18px; }
.inventory-edit-section { border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: var(--bg-card); }
.inventory-edit-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.inventory-edit-section-heading > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(124, 214, 60, .12); color: var(--primary); font-size: 11px; font-weight: 800; }
.inventory-edit-section-heading h4 { margin: 0 0 3px; font-size: 15px; }
.inventory-edit-section-heading p { margin: 0; color: var(--text-muted); font-size: 12px; }
.inventory-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inventory-edit-full { grid-column: 1 / -1; }
.inventory-edit-picture-section { grid-column: 2; grid-row: 1 / span 2; }
.inventory-edit-picture-drop { min-height: 230px; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg-hover); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; cursor: pointer; overflow: hidden; }
.inventory-edit-picture-drop img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; }
.inventory-edit-picture-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.inventory-edit-picture-copy { text-align: center; }
.inventory-edit-picture-copy strong { display: block; }
.inventory-edit-picture-button { min-height: 38px; display: inline-flex !important; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--primary); border-radius: 6px; background: rgba(124, 214, 60, .12); color: var(--primary); font-size: 13px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.inventory-edit-picture-drop:hover .inventory-edit-picture-button { background: var(--primary); color: #06110a; }
.inventory-edit-picture-copy small { display: block; margin-top: 7px; color: var(--text-muted); }
.inventory-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
@media (max-width: 900px) {
  .inventory-edit-form { grid-template-columns: 1fr; }
  .inventory-edit-picture-section { grid-column: 1; grid-row: auto; }
  .inventory-edit-actions { grid-column: 1; }
}
@media (max-width: 520px) {
  .inventory-edit-header { flex-direction: column; }
  .inventory-edit-back { width: 100%; }
  .inventory-edit-grid { grid-template-columns: 1fr; }
  .inventory-edit-full { grid-column: 1; }
  .inventory-edit-actions { position: sticky; bottom: 8px; padding: 10px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); }
  .inventory-edit-actions .btn { flex: 1; }
}

.switch-account-panel { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: var(--bg-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .42); }
.switch-account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.switch-account-header h3 { margin: 3px 0 4px; }
.switch-account-header p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 13px; }
.switch-account-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.switch-account-card { min-height: 150px; border: 1px solid var(--border); border-radius: 10px; padding: 16px 12px; background: var(--bg-hover); color: var(--text-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; text-align: center; font: inherit; }
.switch-account-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.switch-account-avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; background: var(--primary); color: #06110a; font-size: 20px; font-weight: 800; }
.switch-account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.switch-account-card strong, .switch-account-code-person strong { overflow-wrap: anywhere; }
.switch-account-card small, .switch-account-code-person small { color: var(--text-muted); }
.switch-account-code-person { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-hover); }
.switch-account-avatar-large { width: 84px; height: 84px; flex-basis: 84px; }
.switch-account-code-person > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.switch-account-code-field { margin-top: 16px; }
.switch-account-code-field input { width: 100%; min-height: 46px; }
.mark-present-panel { width: min(420px, 100%); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px 24px; background: var(--bg-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .42); text-align: center; }
.mark-present-avatar { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--border); overflow: hidden; display: grid; place-items: center; background: var(--primary); color: #06110a; font-size: 34px; font-weight: 800; }
.mark-present-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark-present-panel .eyebrow { margin-bottom: 4px; }
.mark-present-panel h3 { margin: 4px 0 6px; font-size: 24px; white-space: normal; }
.mark-present-panel > p:not(.eyebrow) { margin: 0 0 20px; color: var(--text-muted); }
.mark-present-button { width: 100%; min-height: 48px; font-size: 15px; }
@media (max-width: 520px) { .switch-account-panel { padding: 16px; } .switch-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .switch-account-card { min-height: 138px; } .switch-account-avatar { width: 64px; height: 64px; flex-basis: 64px; } }

.pos-missing-cost-panel { max-width: 680px; width: 100%; padding: 28px 32px; }
.pos-missing-cost-header h3 { margin: 6px 0 8px; white-space: nowrap; font-size: 26px; }
.pos-missing-cost-header p:not(.eyebrow) { margin: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.pos-missing-cost-field span { font-size: 14px !important; }
.pos-missing-cost-field input { min-height: 54px !important; font-size: 18px !important; }
.pos-missing-cost-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 520px) {
  .pos-missing-cost-panel { padding: 22px 18px; }
  .pos-missing-cost-header h3 { font-size: 22px; white-space: normal; }
  .pos-missing-cost-actions { flex-direction: column-reverse; }
  .pos-missing-cost-actions .btn { width: 100%; }
}

.attendance-earned-total { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.attendance-earned-total div { min-height: 92px; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: var(--bg-card); display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.attendance-earned-total span { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.attendance-earned-total strong { color: var(--primary); font-size: 24px; }
.attendance-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attendance-history-heading h4 { margin: 3px 0 0; }
.attendance-history-heading > span { color: var(--text-muted); font-size: 12px; }
.attendance-history-toolbar { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.attendance-history-toolbar .field-group { margin: 0; }
.attendance-history-toolbar .field-group input, .attendance-history-toolbar .field-group select { min-height: 42px; width: 100%; }
.attendance-history-clear { min-height: 42px; margin-bottom: 0; }
.attendance-history-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.attendance-history-table table { margin: 0; }
.attendance-history-table th { background: var(--bg-hover); }
.attendance-history-actions-heading { width: 90px; }
.attendance-history-actions { text-align: right; }
.attendance-status { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 28px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.attendance-status-present { color: var(--success); background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .28); }
.attendance-status-absent { color: var(--error); background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .28); }
.attendance-history-empty { padding: 24px 12px; color: var(--text-muted); text-align: center; }
.attendance-history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.attendance-history-pagination > div { display: flex; align-items: center; gap: 8px; }
.attendance-history-pagination strong { color: var(--text-primary); font-size: 12px; }
@media (max-width: 900px) { .attendance-history-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .attendance-earned-total { grid-template-columns: 1fr; } .attendance-history-toolbar { grid-template-columns: 1fr; } .attendance-history-clear { width: 100%; } .attendance-history-pagination { align-items: flex-start; flex-direction: column; } }

.header-account-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.header-account-dropdown button:hover,
.header-account-dropdown button:focus-visible {
  background: var(--bg-hover);
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.message-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 4, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100 !important;
  padding: 24px;
  overflow-y: auto;
}

.message-modal {
  max-width: 480px;
  width: 100%;
  padding: 24px;
}

.message-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.message-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.message-content {
  line-height: 1.55;
  font-size: 14px;
  color: var(--text-secondary);
}

.message-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.table-wrapper {
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.inventory-table-wrapper {
  overflow-x: auto;
}

.pos-quick-view {
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 1;
  pointer-events: auto;
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: none;
}


#posPaymentScreen.pos-split-payment-screen > div {
  background: var(--bg-card) !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: auto;
}

#posPaymentScreen.pos-split-payment-screen {
  padding: 0 !important;
  align-items: stretch !important;
}

#posPaymentScreen.pos-split-payment-screen > div > div:first-child {
  padding: 24px 32px !important;
}

#posPaymentScreen.pos-split-payment-screen > div > div:first-child strong {
  font-size: 24px;
}

#posPaymentScreen.pos-split-payment-screen main {
  width: min(1180px, 100%) !important;
  padding: 36px 32px !important;
  gap: 24px !important;
}

#posPaymentScreen.pos-split-payment-screen main > div:first-child {
  font-size: 28px !important;
  font-weight: 800 !important;
}

#posPaymentScreen.pos-split-payment-screen main > div:nth-child(2) {
  padding: 22px !important;
  font-size: 20px;
  border-radius: 10px;
}

#posPaymentScreen.pos-split-payment-screen main > div:has(input[id^="posSplitAmount-"]) {
  padding: 24px !important;
  gap: 16px !important;
  border-radius: 10px;
}

#posPaymentScreen.pos-split-payment-screen input,
#posPaymentScreen.pos-split-payment-screen #posSplitNewMethod {
  min-height: 52px;
  padding: 12px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  color-scheme: dark;
  font-size: 18px !important;
}

#posPaymentScreen.pos-split-payment-screen main > div:has(input[id^="posSplitAmount-"]) strong {
  font-size: 18px;
}

#posPaymentScreen.pos-split-payment-screen main > div:has(input[id^="posSplitAmount-"]) .btn {
  min-height: 48px;
  font-size: 15px;
}

#posPaymentScreen.pos-split-payment-screen footer {
  padding: 24px 32px !important;
}

#posPaymentScreen.pos-split-payment-screen footer .btn {
  min-width: 260px;
  min-height: 58px;
  font-size: 18px;
}
.pos-item-tile:hover .pos-quick-view,
.pos-item-tile:focus-within .pos-quick-view {
  opacity: 1;
  pointer-events: auto;
}

.inventory-table {
  width: 100%;
  min-width: 1200px;
  table-layout: fixed;
  font-size: 12px;
}

.inventory-table th,
.inventory-table td {
  padding: 8px 6px;
  white-space: nowrap;
  word-break: normal;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  width: 10%;
}

.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2) {
  width: 16%;
}

.inventory-table th:nth-child(3),
.inventory-table td:nth-child(3) {
  width: 7%;
}

.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4),
.inventory-table th:nth-child(5),
.inventory-table td:nth-child(5) {
  width: 8%;
}

.inventory-table th:nth-child(6),
.inventory-table td:nth-child(6),
.inventory-table th:nth-child(7),
.inventory-table td:nth-child(7) {
  width: 6.5%;
}

.inventory-table th:nth-child(8),
.inventory-table td:nth-child(8) {
  width: 18%;
}

.inventory-table .table-actions {
  display: table-cell;
  width: 20%;
  min-width: 240px;
  white-space: nowrap;
  overflow: visible;
}

.inventory-row-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  width: max-content;
}

.inventory-table .table-actions > .inventory-row-actions {
  flex-direction: row;
  align-items: center;
}

.inventory-table .table-actions .btn {
  display: inline-flex;
  width: auto;
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.stock-count-table .stock-count-input {
  width: 76px;
  padding: 7px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font: inherit;
  color-scheme: dark;
}

.stock-count-table .stock-count-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(125, 220, 75, 0.16);
}

.stock-count-table {
  font-size: 11px;
}

.stock-count-table th,
.stock-count-table td {
  padding: 8px 5px;
}

.stock-count-table th {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
}

.stock-count-table th:nth-child(1),
.stock-count-table td:nth-child(1) {
  width: 15%;
}

.stock-count-table th:nth-child(2),
.stock-count-table td:nth-child(2) {
  width: 30%;
}

.stock-count-table th:nth-child(3),
.stock-count-table td:nth-child(3) {
  width: 17%;
}

.stock-count-table th:nth-child(4),
.stock-count-table td:nth-child(4) {
  width: 16%;
}

.stock-count-table th:nth-child(5),
.stock-count-table td:nth-child(5) {
  width: 22%;
}

.customer-order-customer-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.customer-order-customer-picker .customer-order-item-search {
  flex: 1 1 280px;
}

.customer-order-item-list {
  display: grid;
  gap: 10px;
}

.customer-order-payment-cell {
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.customer-order-payment-cell > span {
  display: block;
  color: var(--text-secondary);
}

.customer-order-payment-status {
  display: block;
  font-size: 11px;
}

.customer-orders-table {
  font-size: 12px;
}

.customer-orders-table-wrapper {
  overflow-x: auto;
  max-width: calc(100vw - 66px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.customer-orders-table th,
.customer-orders-table td {
  padding: 8px 7px;
  white-space: nowrap;
}

.customer-orders-table td:nth-child(2) {
  white-space: normal;
  min-width: 120px;
}

.customer-orders-table td:last-child {
  white-space: normal;
  width: 128px;
  min-width: 0;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--bg-card);
  box-shadow: -6px 0 10px rgba(2, 6, 23, 0.18);
}

.customer-orders-table th:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: var(--bg-card);
  box-shadow: -6px 0 10px rgba(2, 6, 23, 0.18);
}

.customer-order-actions {
  display: flex;
  width: 100%;
  gap: 4px;
  flex-direction: column;
  max-width: 100%;
}

.customer-order-actions .btn {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-customer-order-actions {
  flex-direction: row;
  width: min(286px, 100%);
  max-width: 100%;
}

.table-customer-order-actions .btn {
  width: 100%;
  max-width: none;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.customer-orders-table .customer-order-actions-row td {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: normal;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.customer-orders-table .table-customer-order-actions {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 720px) {
  .customer-order-actions {
    width: 100%;
  }

  .customer-order-actions .btn {
    width: 100%;
    font-size: 11px;
  }
}

.customer-orders-table .table-customer-order-actions .btn {
  width: auto;
  max-width: none;
}

.customer-order-item-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(170px, 1.6fr) minmax(86px, 0.55fr) minmax(120px, 0.75fr) minmax(106px, 0.65fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-hover);
}

.customer-order-item-field,
.customer-order-item-search {
  min-width: 0;
}

.customer-order-item-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.customer-order-item-field input,
.customer-order-item-search input {
  width: 100%;
}

.customer-order-item-action {
  display: flex;
  justify-content: flex-end;
}

.customer-order-line-total {
  display: flex;
  align-items: center;
  min-height: 42px;
  white-space: nowrap;
}

.customer-order-search-suggestions {
  display: none;
  position: absolute;
  z-index: 30;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.customer-order-item-search {
  position: relative;
}

.customer-order-search-result,
.customer-order-search-empty {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font: inherit;
}

.customer-order-search-result {
  cursor: pointer;
}

.customer-order-search-result:hover {
  background: var(--bg-hover);
}

.customer-order-search-empty {
  color: var(--text-muted);
}

.customer-order-field-error {
  min-height: 16px;
  margin-top: 4px;
  color: var(--error);
  font-size: 12px;
}

.job-cards-table-wrapper {
  overflow-x: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.job-cards-table {
  table-layout: fixed;
}

thead {
  background: rgba(125, 220, 75, 0.06);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  vertical-align: top;
  word-break: break-word;
}

.job-cards-table .table-actions {
  min-width: 0;
  white-space: normal;
  flex-wrap: wrap;
}

.job-cards-table .table-actions > div {
  min-width: 0;
}

.job-cards-table .job-card-info-row td {
  border-bottom: none;
}

.job-cards-table .job-card-actions-row td {
  border-bottom: 1px solid var(--border);
}

.job-cards-table .job-card-actions-row td > div {
  width: 100%;
}

.job-cards-table .job-card-actions-row td > div > button {
  flex: 1 1 160px;
  min-width: 140px;
}

.table-info-row td {
  border-bottom: none;
}

.table-actions-row td {
  border-bottom: 1px solid var(--border);
}

.table-actions-row td > div {
  width: 100%;
}

.table-actions-row td > div > button {
  flex: 1 1 160px;
  min-width: 140px;
}

.customer-orders-table .table-actions-row .table-customer-order-actions > button {
  flex: none;
  min-width: 0;
  width: 100%;
}

@media (max-width: 720px) {
  .customer-orders-table .table-actions-row .table-customer-order-actions {
    width: min(286px, 100%);
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-orders-table .table-actions-row .table-customer-order-actions > button {
    flex: none;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
  }
}

.supplier-operations-menu {
  min-width: 220px;
  max-width: 260px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  color-scheme: dark;
  font: inherit;
  cursor: pointer;
}

.supplier-operations-menu:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.supplier-operations-menu option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.supplier-purchase-activity-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.supplier-purchase-activity-wrapper {
  overflow-x: auto;
}

.supplier-purchase-activity-table th,
.supplier-purchase-activity-table td {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 9px 7px;
  font-size: 12px;
}

.supplier-purchase-activity-table th:nth-child(1),
.supplier-purchase-activity-table td:nth-child(1) {
  width: 29%;
}

.supplier-purchase-activity-table th:nth-child(2),
.supplier-purchase-activity-table td:nth-child(2) {
  width: 16%;
}

.supplier-purchase-activity-table th:nth-child(3),
.supplier-purchase-activity-table td:nth-child(3) {
  width: 13%;
}

.supplier-purchase-activity-table th:nth-child(4),
.supplier-purchase-activity-table td:nth-child(4) {
  width: 10%;
}

.supplier-purchase-activity-table th:nth-child(5),
.supplier-purchase-activity-table td:nth-child(5) {
  width: 12%;
}

.supplier-purchase-activity-table th:nth-child(6),
.supplier-purchase-activity-table td:nth-child(6) {
  width: 20%;
  overflow: visible;
  text-overflow: clip;
}

.supplier-order-source {
  display: inline;
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 11px;
}

.supplier-purchase-activity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.supplier-purchase-activity-actions .btn {
  flex: 0 0 auto;
  padding: 4px 5px;
  font-size: 10px;
  white-space: nowrap;
}

.purchase-order-type-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.purchase-order-type-badge.workshop {
  color: var(--success);
  background: rgba(125, 220, 75, 0.12);
}

.purchase-order-type-badge.customer {
  color: var(--accent);
  background: rgba(91, 169, 255, 0.12);
}

.performance-date-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.performance-date-field input {
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  color: var(--text-primary);
  color-scheme: dark;
  font: inherit;
}

.performance-date-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.hr-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hr-filter-bar > input[type="search"] {
  width: min(300px, 100%);
  min-height: 38px;
  padding: 8px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

.hr-filter-bar > select {
  min-height: 38px;
  padding: 8px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

.employee-performance-table-wrapper,
.payroll-table-wrapper {
  overflow-x: auto;
  width: 100%;
  min-width: 0;
}

.employee-performance-table {
  table-layout: fixed;
  font-size: 12px;
}

.employee-performance-table th,
.employee-performance-table td {
  padding: 8px 6px;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: anywhere;
}

.employee-performance-table th:first-child { width: 14%; }
.employee-performance-table th:nth-child(2) { width: 8%; }
.employee-performance-table th:nth-child(3) { width: 8%; }
.employee-performance-table th:nth-child(4) { width: 9%; }
.employee-performance-table th:nth-child(5) { width: 12%; }
.employee-performance-table th:nth-child(6) { width: 11%; }
.employee-performance-table th:nth-child(7) { width: 10%; }
.employee-performance-table th:nth-child(8) { width: 8%; }
.employee-performance-table th:nth-child(9) { width: 8%; }
.employee-performance-table th:last-child { width: 12%; }

.employee-performance-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.employee-performance-actions .btn {
  min-width: 0;
  padding: 5px 7px;
  font-size: 11px;
}

.payroll-table {
  min-width: 900px;
  font-size: 12px;
}

.payroll-table th,
.payroll-table td {
  padding: 8px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .employee-performance-table {
    min-width: 820px;
  }

  .employee-performance-table th:last-child,
  .employee-performance-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--bg-card);
  }

  .hr-filter-bar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hr-filter-bar > input[type="search"],
  .hr-filter-bar > select,
  .performance-date-field {
    width: 100%;
  }

  .performance-date-field input {
    width: 100%;
  }
}

.supplier-purchase-item-row {
  display: grid;
  grid-template-columns: var(--supplier-purchase-grid);
  gap: 5px;
  align-items: center;
  min-width: 818px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.supplier-purchase-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.supplier-purchase-insert-button {
  min-width: 32px;
  width: 32px;
  padding: 4px !important;
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.supplier-purchase-lines {
  --supplier-purchase-grid: minmax(58px, 0.8fr) minmax(105px, 1.3fr) minmax(115px, 1.5fr) minmax(52px, 0.65fr) minmax(45px, 0.6fr) minmax(60px, 0.8fr) minmax(55px, 0.7fr) minmax(65px, 0.85fr) minmax(65px, 0.9fr) minmax(100px, 1.1fr);
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-color: var(--border-light) var(--bg-card);
}

.supplier-purchase-item-header {
  display: grid;
  grid-template-columns: var(--supplier-purchase-grid);
  gap: 5px;
  min-width: 818px;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.supplier-purchase-item-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-purchase-item-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  color: var(--text-primary);
  color-scheme: dark;
}

.supplier-purchase-item-input option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.supplier-purchase-item-input option:checked,
.supplier-purchase-item-input option:hover {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
}

.supplier-purchase-item-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.supplier-account-picker {
  position: relative;
  min-width: 0;
}

.supplier-account-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  min-height: 37px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.supplier-account-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg) translateY(-2px);
}

.supplier-account-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.supplier-account-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: grid;
  width: max(100%, 240px);
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.supplier-account-menu[hidden] {
  display: none;
}

.supplier-account-option {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.supplier-account-option:hover,
.supplier-account-option:focus-visible,
.supplier-account-option.is-selected {
  outline: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.supplier-account-empty {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.edit-supplier-purchase-order-fullscreen {
  padding: 0;
  overflow: hidden;
}

.edit-supplier-purchase-order-fullscreen > .edit-purchase-order-panel {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(18px, 3vw, 36px);
  border: 0;
  border-radius: 0;
  overflow-y: auto;
}

.edit-purchase-section-heading {
  margin-top: 22px;
}

.edit-purchase-section-heading h4 {
  margin: 0;
}

.edit-purchase-section-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.edit-purchase-lines {
  margin: 12px 0;
}

.edit-purchase-item {
  align-items: center;
}

.edit-purchase-item button {
  min-height: 36px;
  padding: 6px;
  white-space: nowrap;
}

.edit-purchase-item .supplier-purchase-row-actions {
  justify-content: flex-end;
}

.edit-purchase-subtotal {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 10px;
  padding: 12px 10px;
  border-top: 2px solid var(--border);
  color: var(--text-secondary);
}

.edit-purchase-subtotal strong {
  color: var(--text-primary);
}

.supplier-purchase-order-types {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.supplier-purchase-order-types label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
}

.supplier-purchase-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.supplier-purchase-section {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(19, 28, 22, 0.92), rgba(13, 19, 16, 0.92));
}

.supplier-purchase-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.supplier-purchase-section-heading h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.supplier-purchase-section-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.supplier-purchase-step {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(125, 220, 75, 0.24);
  border-radius: 10px;
  background: rgba(125, 220, 75, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.supplier-purchase-details-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(2, minmax(150px, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.supplier-purchase-details-grid .field-group select,
.supplier-purchase-details-grid .field-group input {
  min-height: 42px;
}

.supplier-purchase-order-for {
  grid-column: span 2;
}

.supplier-purchase-order-for small {
  color: var(--text-muted);
  font-size: 12px;
}

.supplier-purchase-order-types {
  min-height: 42px;
  align-items: center;
}

.supplier-purchase-order-types label {
  min-height: 24px;
}

.supplier-purchase-notes {
  grid-column: span 1;
}

.supplier-purchase-notes textarea {
  min-height: 82px;
  font-family: inherit;
}

.supplier-purchase-items-section .supplier-workshop-orders-heading {
  margin: 20px 0 12px;
  padding: 16px 0 0;
}

.supplier-purchase-items-section .supplier-purchase-lines {
  margin-top: 12px;
}

.supplier-purchase-items-section .supplier-purchase-total-row {
  padding: 12px 10px;
}

.supplier-purchase-add-item {
  margin-top: 14px;
}

.supplier-purchase-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 2px 2px;
}

.supplier-purchase-form-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
}

.supplier-detail-picker {
  display: grid;
  min-width: min(260px, 100%);
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.supplier-detail-picker select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text-primary);
  color-scheme: dark;
  font: inherit;
}

.supplier-detail-picker select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.supplier-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.supplier-detail-summary > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.supplier-detail-summary span {
  color: var(--text-muted);
  font-size: 12px;
}

.supplier-detail-summary strong {
  color: var(--text-primary);
  font-size: 18px;
}

.supplier-detail-summary .supplier-detail-balance {
  border-color: rgba(125, 220, 75, 0.3);
  background: rgba(125, 220, 75, 0.07);
}

.supplier-detail-summary .supplier-detail-balance strong {
  color: var(--primary);
}

.supplier-detail-section {
  min-width: 0;
  margin-top: 16px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.supplier-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.supplier-detail-section-heading h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
}

.supplier-detail-section-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.supplier-detail-count {
  display: grid;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.supplier-detail-section .table-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.supplier-detail-section table {
  min-width: 680px;
}

.supplier-detail-empty {
  padding: 20px !important;
  color: var(--text-muted);
  text-align: center;
}

.supplier-detail-state {
  margin-top: 16px;
  padding: 30px 18px;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  color: var(--text-muted);
  text-align: center;
}

.supplier-detail-error {
  border-color: rgba(255, 99, 99, 0.45);
  color: var(--danger, #ff7777);
}

.supplier-detail-history .supplier-detail-section {
  margin-top: 14px;
}

.partially-paid-parts-modal {
  z-index: 10000;
  padding: 0;
}

.partially-paid-parts-panel {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 3vw, 36px);
}

.partially-paid-parts-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.partially-paid-parts-heading h2 {
  margin: 0;
  font-size: 22px;
}

.partially-paid-parts-heading > div > p:last-child {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.partially-paid-parts-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
}

.partially-paid-parts-summary strong {
  color: var(--text-primary);
}

.partially-paid-company-job-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr);
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
}

.partially-paid-company-job-picker > label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.partially-paid-company-job-picker select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-primary);
  color-scheme: dark;
  font: inherit;
}

.partially-paid-company-job-options {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.partially-paid-company-job-options .supplier-detail-state {
  margin: 0;
}

.partially-paid-company-job-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 112px;
  overflow: auto;
}

.partially-paid-company-job-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-hover);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
}

.partially-paid-company-job-list label span {
  display: grid;
  gap: 2px;
}

.partially-paid-company-job-list small {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: capitalize;
}

.partially-paid-added-company-jobs-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.partially-paid-added-company-jobs-summary:empty {
  display: none;
}

.partially-paid-job-source {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.partially-paid-order-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.partially-paid-order-picker label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.partially-paid-order-picker select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 33, 26, 0.96), rgba(16, 22, 18, 0.96));
  color: var(--text-primary);
  color-scheme: dark;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partially-paid-order-picker select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.partially-paid-order-picker select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.partially-paid-order-picker select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.partially-paid-selected-order {
  min-width: 0;
}

.partially-paid-report-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.partially-paid-report-block {
  min-width: 0;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.partially-paid-report-block > h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.partially-paid-pending-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(125, 220, 75, 0.08);
  color: var(--text-primary);
  font-size: 12px;
}

.partially-paid-pending-summary[hidden] {
  display: none;
}

.partially-paid-pending-summary > div {
  display: flex;
  gap: 8px;
}

.partially-paid-pending-summary .partially-paid-pending-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.partially-paid-preview-modal {
  z-index: 11000 !important;
}

.partially-paid-preview-panel {
  width: min(1100px, 96vw);
  max-width: none;
}

.partially-paid-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.partially-paid-preview-header h2 {
  margin: 0;
}

.partially-paid-preview-header p:last-child,
.partially-paid-preview-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.partially-paid-preview-table {
  min-width: 680px;
}

.partially-paid-preview-table th,
.partially-paid-preview-table td {
  padding: 9px 10px;
}

.partially-paid-preview-table td:nth-last-child(-n + 2),
.partially-paid-preview-table tfoot th:last-child {
  text-align: right;
  white-space: nowrap;
}

.partially-paid-preview-table tfoot th {
  border-top: 1px solid var(--border);
}

.partially-paid-add-cell {
  text-align: center;
  white-space: nowrap;
}

.partially-paid-add-button {
  padding: 5px 7px;
  font-size: 10px;
}

.partially-paid-pending-row td {
  background: rgba(125, 220, 75, 0.08);
}

.partially-paid-selected-order-card {
  min-width: 0;
}

.partially-paid-selected-order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.partially-paid-selected-order-heading h3,
.partially-paid-selected-order-heading p {
  margin: 0;
}

.partially-paid-selected-order-heading p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.partially-paid-selected-order-heading > strong {
  color: var(--text-primary);
  white-space: nowrap;
}

.partially-paid-parts-panel .partially-paid-selected-order-card .table-wrapper {
  max-height: none;
}

.partially-paid-parts-table {
  table-layout: fixed;
}

.partially-paid-parts-panel .partially-paid-parts-table {
  width: 100%;
  min-width: 560px;
}

.partially-paid-parts-table .part-number-column {
  width: 22%;
}

.partially-paid-parts-table .description-column {
  width: 48%;
}

.partially-paid-parts-table .quantity-column {
  width: 15%;
}

.partially-paid-report-jobs .partially-paid-parts-table .quantity-column {
  width: 15%;
}

.partially-paid-parts-table .total-column {
  width: 15%;
}

.partially-paid-parts-table .action-column {
  width: 15%;
}

.partially-paid-parts-table th,
.partially-paid-parts-table td {
  overflow-wrap: anywhere;
}

.partially-paid-parts-table th {
  padding-top: 8px;
  padding-bottom: 8px;
}

.partially-paid-parts-table td {
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.partially-paid-parts-table thead th {
  padding-right: 6px;
  padding-left: 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.partially-paid-readonly-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.partially-paid-parts-panel .table-wrapper {
  max-height: none;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.partially-paid-parts-panel table {
  min-width: 760px;
}

.partially-paid-parts-panel th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-elevated);
}

.partially-paid-parts-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .supplier-purchase-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partially-paid-parts-modal {
    padding: 10px;
  }

  .partially-paid-parts-panel {
    width: 100vw;
    height: 100vh;
    max-height: none;
    padding: 16px;
  }

  .partially-paid-order-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partially-paid-company-job-picker {
    grid-template-columns: 1fr;
  }

  .partially-paid-company-job-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .partially-paid-report-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .partially-paid-report-block {
    padding: 10px;
  }

  .partially-paid-parts-panel .table-wrapper {
    max-height: none;
  }

  .partially-paid-parts-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .supplier-purchase-order-for,
  .supplier-purchase-notes {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .supplier-purchase-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .supplier-purchase-order-for,
  .supplier-purchase-notes {
    grid-column: auto;
  }

  .supplier-purchase-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .supplier-purchase-form-actions .btn {
    width: 100%;
  }

  .supplier-detail-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.supplier-workshop-orders-heading {
  margin-top: 16px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.supplier-workshop-orders-heading h4 {
  margin: 0;
  color: var(--text-primary);
}

.supplier-workshop-orders-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.supplier-linked-customer-orders {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
}

.supplier-linked-customer-order {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.supplier-purchase-customer-order-item {
  border-color: rgba(242, 201, 76, 0.55) !important;
}

.supplier-purchase-customer-order-item input[readonly] {
  background: rgba(6, 11, 8, 0.72);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.supplier-purchase-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14px;
}

.supplier-purchase-total-row strong {
  color: var(--primary);
  white-space: nowrap;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: rgba(125, 220, 75, 0.06);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  min-width: max-content;
  height: 100%;
}

.table-actions .btn {
  white-space: nowrap;
  min-height: 32px;
}

.job-cards-main-table {
  table-layout: fixed;
  font-size: 12px;
}

.job-cards-main-table th,
.job-cards-main-table td {
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.job-cards-main-table .job-card-actions-row td {
  overflow: visible;
}

.job-cards-main-table .job-card-actions-row .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 6px;
  font-size: 11px;
}

.mobile-job-card-list {
  display: none;
}

.mobile-job-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--bg-hover);
}

.mobile-job-card[data-overdue="true"] {
  border-color: rgba(255, 107, 107, 0.65);
}

.mobile-job-card-top,
.mobile-job-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-job-card h4 {
  margin: 10px 0 3px;
  font-size: 15px;
}

.mobile-job-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.mobile-job-card-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.mobile-job-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.mobile-job-card-actions .btn {
  width: 100%;
  min-width: 0;
  padding: 8px 6px;
  white-space: normal;
  line-height: 1.15;
}

.table-actions > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-badge.received {
  background: rgba(125, 220, 75, 0.12);
  color: var(--primary);
}

.status-badge.diagnosis {
  background: rgba(242, 201, 76, 0.12);
  color: var(--warning);
}

.status-badge.in-progress {
  background: rgba(125, 220, 75, 0.12);
  color: var(--primary);
}

.status-badge.ready {
  background: rgba(103, 217, 109, 0.14);
  color: var(--success);
}

.status-badge.collected {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.status-badge.today-collections,
.status-badge.today-follow-ups,
.status-badge.overdue-reminders,
.status-badge.waiting-customer,
.status-badge.waiting-deposit,
.status-badge.waiting-parts,
.status-badge.overdue-jobs {
  background: rgba(125, 220, 75, 0.12);
  color: var(--primary);
}

.mt-4 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 24px;
}

.gap-2 {
  gap: 12px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .app-shell:has(.customer-orders-page) {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell:has(.customer-orders-page) .sidebar,
  .app-shell:has(.customer-orders-page) .main-content,
  .app-shell:has(.customer-orders-page) .content,
  .customer-orders-page {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1500;
    width: min(82vw, 300px);
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
  }

  .app-shell.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .app-shell.mobile-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0, 0, 0, 0.55);
  }

  .menu {
    max-height: none;
    height: auto;
    flex: none;
    overflow: visible;
  }

  .sidebar-footer {
    margin-top: 18px;
  }

  .main-content {
    overflow: visible;
  }

  .topbar {
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn.mobile-menu-toggle {
    display: inline-flex;
  }

  .topbar-heading .eyebrow {
    margin-bottom: 2px;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .topbar-actions {
    max-width: 100%;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
    overflow: visible;
  }

  .reports-view-switcher > button {
    display: none;
  }

  .mobile-reports-view-select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 12px 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-hover);
    color: var(--text-primary);
    color-scheme: dark;
    font: inherit;
  }

  .topbar-actions .btn {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    padding: 8px 6px;
    font-size: 12px;
  }

  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper > table {
    min-width: max-content;
  }

  .inventory-table-wrapper > table.inventory-table {
    display: table;
  }

  .inventory-table-wrapper > table.inventory-table tbody {
    display: table-row-group;
  }

  .inventory-table-wrapper > table.inventory-table tbody tr {
    display: table-row;
  }

  .inventory-table-wrapper > table.inventory-table tbody td {
    display: table-cell;
  }

  .inventory-table-wrapper > table.inventory-table .table-actions,
  .inventory-table-wrapper > table.inventory-table .inventory-row-actions {
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .table-wrapper > table.data-table {
    min-width: 720px;
    table-layout: auto;
  }

  table.data-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    min-width: 720px;
    table-layout: auto;
  }

  table.mobile-responsive-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible;
  }

  table.mobile-responsive-table thead {
    display: none;
  }

  table.mobile-responsive-table tbody,
  table.mobile-responsive-table tbody tr {
    display: block;
    width: 100%;
  }

  table.mobile-responsive-table tbody tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-hover);
  }

  table.mobile-responsive-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(34, 49, 37, 0.7);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  table.mobile-responsive-table tbody td:last-child {
    border-bottom: 0;
  }

  table.mobile-responsive-table tbody td:not(.mobile-table-full-cell)::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  table.mobile-responsive-table tbody td.mobile-table-full-cell {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  table.mobile-responsive-table .table-actions,
  table.mobile-responsive-table .table-actions-row td > div,
  table.mobile-responsive-table .job-card-actions-row td > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    flex-wrap: wrap !important;
  }

  table.mobile-responsive-table .table-actions .btn,
  table.mobile-responsive-table .table-actions-row .btn,
  table.mobile-responsive-table .job-card-actions-row .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
  }

  .table-wrapper > table.data-table th,
  .table-wrapper > table.data-table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .job-cards-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .job-cards-table {
    min-width: 680px;
    table-layout: auto;
  }

  .job-cards-main-table {
    width: 680px !important;
    min-width: 680px !important;
    table-layout: fixed !important;
  }

  .desktop-job-card-table {
    display: none;
  }

  .mobile-job-card-list {
    display: block;
  }

  .job-cards-main-table .job-card-actions-row td > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap !important;
  }

  .job-cards-main-table .job-card-actions-row .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
  }

  #bankingEntriesList > div {
    max-width: 100%;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  #bankingEntriesList > div > div:last-child {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }

  .content {
    padding: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  #content > .panel > div[style*="grid-template-columns:1.2fr 0.8fr"],
  #content > .panel > div[style*="grid-template-columns:1.3fr 0.9fr"],
  #content > .panel > div[style*="grid-template-columns:1fr 1fr"],
  #content > .panel > div[style*="grid-template-columns:minmax(250px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #overdueJobDetailPanel > div:first-child > div:first-child > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
  }

  #overdueJobDetailPanel > div:first-child > div:first-child > div:last-child .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
    padding: 8px 6px;
  }

  #content > .panel > div[style*="repeat(auto-fit,minmax(180px,1fr))"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #dashboardJobsSection > .form-grid,
  #dashboardPaymentsSection > .form-grid,
  #dashboardQuotationsSection > .form-grid,
  #dashboardInventorySection > .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  #dashboardJobsSection .status-card,
  #dashboardPaymentsSection .status-card,
  #dashboardQuotationsSection .status-card,
  #dashboardInventorySection .status-card {
    width: 100%;
    min-width: 0;
  }

  #content > .panel > .panel-head,
  #content > .panel > .panel-head > div {
    min-width: 0;
    max-width: 100%;
  }

  #content > .panel > .panel-head h1,
  #content > .panel > .panel-head h2,
  #content > .panel > .panel-head h3,
  #content > .panel > .panel-head h4 {
    overflow-wrap: anywhere;
  }

  #content > .panel > div[style*="display:flex"] {
    max-width: 100%;
    width: 100%;
    overflow: visible;
    flex-wrap: wrap !important;
    padding-bottom: 4px;
  }

  #content > .panel > div[style*="display:flex"] .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    padding: 9px 7px;
  }

  .mobile-filter-select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-hover);
    color: var(--text-primary);
    color-scheme: dark;
    font: inherit;
  }

  .mobile-banking-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }

  .mobile-banking-sections .btn {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
  }

  .banking-see-more {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
  }

  .mobile-filter-group {
    display: block !important;
    width: 100%;
    margin-bottom: 14px;
  }

  .mobile-filter-group > button {
    display: none;
  }

  .panel {
    padding: 16px;
  }

  .message-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .customer-order-item-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .customer-order-item-search,
  .customer-order-item-description {
    grid-column: 1 / -1;
  }
}

#appShell,
#appShell * {
  overflow-x: hidden !important;
}

/* clip (not hidden) so these wrappers don't become scroll containers and break the sticky top bar */
#appShell,
#appShell .main-content {
  overflow: clip !important;
}

#appShell .topbar,
#appShell .topbar-actions,
#appShell .header-account-menu,
#appShell .header-account-dropdown {
  overflow: visible !important;
}

#appShell .main-content,
#appShell .content {
  min-width: 0;
}

#appShell .inventory-table-wrapper {
  max-width: 100%;
  overflow-x: auto !important;
}

#appShell .inventory-edit-page:has(.inventory-name-select),
#appShell .inventory-edit-form:has(.inventory-name-select),
#appShell .inventory-edit-section:has(.inventory-name-select),
#appShell .inventory-edit-grid:has(.inventory-name-select),
#appShell .inventory-name-field {
  overflow: visible !important;
}

.inventory-name-field {
  position: relative;
  z-index: 1;
}

.inventory-name-field:focus-within {
  z-index: 101;
}

#appShell .inventory-name-select {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible !important;
}

.inventory-name-select input {
  width: 100%;
  padding-right: 42px;
}

.inventory-name-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transform: translateY(-50%);
}

.inventory-name-toggle::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.inventory-name-select.is-open .inventory-name-toggle::before {
  transform: translateY(2px) rotate(225deg);
}

.inventory-name-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 100;
  max-height: 260px;
  overflow: auto !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.inventory-name-menu[hidden] {
  display: none;
}

.inventory-name-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.inventory-name-option:last-child {
  border-bottom: 0;
}

.inventory-name-option:hover,
.inventory-name-option:focus-visible {
  outline: none;
  background: rgba(125, 220, 75, 0.14);
  color: var(--primary);
}

.inventory-name-empty {
  padding: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.inventory-photo-transfer-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1900 !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(2, 6, 23, 0.9) !important;
}

.inventory-photo-transfer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px 24px 16px;
  background: var(--bg-dark);
  color: var(--text-primary);
}

.inventory-photo-transfer-header,
.inventory-photo-transfer-column-heading,
.inventory-photo-transfer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inventory-photo-transfer-header {
  flex: 0 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.inventory-photo-transfer-header h2 {
  margin: 2px 0 4px;
}

.inventory-photo-transfer-header p:last-child,
.inventory-photo-transfer-column-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.inventory-photo-transfer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 0;
}

.inventory-photo-transfer-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.inventory-photo-transfer-column-heading {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.inventory-photo-transfer-column-heading h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.inventory-photo-transfer-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(125, 220, 75, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.inventory-photo-transfer-search {
  flex: 0 0 auto;
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font: inherit;
}

.inventory-photo-transfer-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 220, 75, 0.12);
}

.inventory-photo-transfer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto !important;
  padding: 2px 4px 8px 2px;
}

.inventory-photo-transfer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-primary);
  text-align: left;
}

.inventory-photo-source-card {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  cursor: pointer;
  font: inherit;
}

.inventory-photo-source-card:hover,
.inventory-photo-source-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(125, 220, 75, 0.14);
}

.inventory-photo-transfer-image {
  display: grid;
  width: 100%;
  height: clamp(150px, 24vh, 260px);
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden !important;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #0b100d;
}

.inventory-photo-transfer-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inventory-photo-transfer-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.inventory-photo-transfer-card-copy strong,
.inventory-photo-transfer-card-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-photo-transfer-card-copy > span {
  display: -webkit-box;
  color: var(--text-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inventory-photo-target-card {
  cursor: pointer;
}

.inventory-photo-target-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(125, 220, 75, 0.1);
}

.inventory-photo-target-card > input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.inventory-photo-target-placeholder {
  width: 72px;
  height: 72px;
  color: var(--text-muted);
  font-size: 28px;
}

.inventory-photo-transfer-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
}

.inventory-photo-transfer-footer {
  flex: 0 0 auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.inventory-photo-transfer-footer > span {
  color: var(--text-muted);
}

.inventory-photo-transfer-footer > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .inventory-photo-transfer {
    padding: 14px;
  }

  .inventory-photo-transfer-columns {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(250px, 0.9fr) minmax(300px, 1.1fr);
    gap: 12px;
    overflow: auto;
  }

  .inventory-photo-transfer-column {
    padding: 12px;
  }

  .inventory-photo-transfer-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .inventory-photo-transfer-image {
    height: 160px;
  }
}

#appShell .sidebar,
#appShell .menu,
#appShell .content,
#appShell .modal-overlay,
#appShell .modal-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .customer-order-item-row {
    grid-template-columns: 1fr;
  }

  .customer-order-item-search,
  .customer-order-item-description {
    grid-column: auto;
  }

  .customer-order-item-action {
    justify-content: flex-start;
  }
}

/* Dashboard redesign (visual only) */
.dash-redesign.panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 4px !important;
}

.dash-redesign .panel-head h3 {
  font-size: 30px !important;
}

.dash-redesign > div[style*="flex-wrap"] {
  gap: 10px !important;
  margin-bottom: 28px !important;
}

.dash-redesign > div[style*="flex-wrap"] .btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  background: #121a15;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-redesign > div[id^="dashboard"] > p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 1.4px !important;
  color: #9db8a5 !important;
  margin: 8px 0 16px !important;
}

.dash-redesign > div[id^="dashboard"] > p::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.dash-redesign .dash-collapsible > p {
  cursor: pointer;
  user-select: none;
}

.dash-redesign .dash-collapsible > p::before {
  content: "▾";
  font-size: 14px;
  transition: transform 0.15s;
}

.dash-redesign .dash-collapsible.collapsed > p::before {
  transform: rotate(-90deg);
}

.dash-redesign .dash-collapsible.collapsed > :not(p) {
  display: none !important;
}

.dash-redesign .status-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #17221b 0%, #101612 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px !important;
  padding: 22px !important;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dash-redesign .status-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #7cd63c;
}

.dash-redesign .status-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 214, 60, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.dash-redesign .status-card p {
  font-size: 12px !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px !important;
  color: #8fa596 !important;
}

.dash-redesign .status-card h2 {
  font-size: 34px !important;
  font-weight: 800;
  line-height: 1;
}

.dash-redesign [id$="List"] > div {
  background: linear-gradient(160deg, #17221b 0%, #101612 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  transition: transform 0.15s, border-color 0.15s;
}

.dash-redesign [id$="List"] > div:hover {
  transform: translateX(3px);
  border-color: rgba(124, 214, 60, 0.45) !important;
}

.dash-redesign #dashboardLoanStatementsSection > .panel {
  background: linear-gradient(160deg, #17221b 0%, #101612 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
}

/* Banking page redesign */
.bk-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b95a1; margin: 16px 0 0; font-weight: 600; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 10px; }
.bk-payment-method-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.bk-payment-method-card { min-height: 92px; }
.bk-payment-grand-total { grid-column: 1 / -1; min-height: 100px; background: linear-gradient(145deg, #26251c, #171b24); border-color: rgba(245, 185, 66, .55); }
.bk-payment-grand-total h3 { font-size: 30px; }
@media (max-width: 900px) { .bk-payment-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bk-payment-method-grid { grid-template-columns: 1fr; } }
.bk-card { position: relative; background: linear-gradient(160deg, #1e2430, #171b24); border: 1px solid #2a3140; border-radius: 14px; padding: 16px 18px 16px 22px; overflow: hidden; transition: .15s; }
.bk-card:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, #7cd63c); }
.bk-card .ic { position: absolute; right: 14px; top: 12px; font-size: 20px; opacity: .55; }
.bk-card p { margin: 0 0 8px; font-size: 12px; color: #9aa4b2; }
.bk-card h3 { margin: 0; font-size: 26px; color: #fff; }
.bk-card.click { cursor: pointer; }
.bk-card.click:hover { transform: translateY(-2px); border-color: var(--c); }
.bk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 14px; }
.bk-btn { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid #2a3140; background: #1b202b; color: #fff; cursor: pointer; text-align: left; font: inherit; transition: .15s; }
.bk-btn:hover { border-color: #7cd63c; transform: translateY(-2px); }
.bk-btn.active { background: #7cd63c; color: #0f1a05; border-color: #7cd63c; }
.bk-btn .big { font-size: 24px; }
.bk-btn b { display: block; font-size: 15px; }
.bk-btn small { opacity: .7; font-size: 12px; }
.bk-date-filter { margin: 12px 0 14px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.bk-date-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.bk-date-preset { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-hover); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.bk-date-preset:hover { border-color: var(--primary); color: var(--text-primary); }
.bk-date-preset.active { border-color: var(--primary); background: rgba(124, 214, 60, .16); color: var(--primary); }
.bk-date-custom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-date-custom label { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.bk-date-custom input { min-width: 145px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-dark); color: var(--text-primary); }
.bk-date-range-label { margin: 10px 0 0; color: var(--text-muted); font-size: 12px; }
.bk-activity-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(125deg, var(--bg-card), var(--bg-hover)); }
.bk-activity-summary > div:first-child > span, .bk-activity-summary small { display: block; color: var(--text-muted); font-size: 12px; }
.bk-activity-summary strong { display: block; margin: 4px 0; color: var(--primary); font-size: 24px; line-height: 1.2; }
.bk-activity-count { flex: none; color: var(--text-primary); font-size: 20px; font-weight: 700; text-align: right; }
.bk-activity-count span { display: block; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.bk-activity-list { display: flex; flex-direction: column; gap: 18px; }
.bk-activity-group { min-width: 0; }
.bk-activity-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 0 2px 8px; border-bottom: 1px solid var(--border); color: var(--text-primary); font-size: 13px; }
.bk-activity-date span { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.bk-activity-group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch; gap: 10px; }
.bk-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 0 12px 0 0; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card); transition: border-color .15s, transform .15s; }
.bk-activity-row:hover { transform: translateY(-1px); border-color: rgba(124, 214, 60, .42); }
.bk-activity-open { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; width: 100%; padding: 14px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bk-activity-open:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.bk-activity-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(34, 197, 94, .12); color: #4ade80; font-size: 19px; font-weight: 700; }
.bk-activity-icon.is-outflow { background: rgba(239, 91, 91, .12); color: #fb7777; }
.bk-activity-main { display: block; min-width: 0; }
.bk-activity-title { display: block; color: var(--text-primary); font-size: 12px; font-weight: 700; }
.bk-activity-description { display: block; overflow: hidden; margin-top: 3px; color: var(--text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.bk-activity-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.bk-activity-meta span { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 10px; overflow-wrap: anywhere; }
.bk-activity-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bk-activity-amount { color: var(--text-primary); font-size: 15px; white-space: nowrap; }
.bk-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 2px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.bk-pagination > div { display: flex; align-items: center; gap: 10px; }
.bk-pagination button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 700px) { .bk-actions { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bk-activity-summary { align-items: flex-start; padding: 14px; }
  .bk-activity-summary strong { font-size: 21px; }
  .bk-activity-group-list { grid-template-columns: 1fr; }
  .bk-activity-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding-right: 8px; }
  .bk-activity-open { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .bk-activity-icon { width: 32px; height: 32px; }
  .bk-activity-amount { font-size: 14px; }
  .bk-pagination { align-items: flex-start; flex-direction: column; }
  .bk-pagination > div { width: 100%; justify-content: space-between; }
}
.bk-activity-actions button { cursor: pointer; }
.bk-payment-report { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; }
.bk-payment-report-amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-hover); }
.bk-payment-report-amount span { color: var(--text-muted); font-size: 13px; }
.bk-payment-report-amount strong { color: var(--primary); font-size: 24px; }
.bk-payment-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.bk-payment-report-grid > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); }
.bk-payment-report-grid span { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 11px; }
.bk-payment-report-grid strong { display: block; color: var(--text-primary); font-size: 13px; overflow-wrap: anywhere; }
.bk-payment-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.bk-payment-report-actions p { margin: 0; color: var(--text-muted); font-size: 13px; }
.bk-record-panel { width: min(880px, 100%); margin: 12px auto 24px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(ellipse at 0 0, rgba(124, 214, 60, .09), transparent 42%), linear-gradient(160deg, var(--bg-card), var(--bg-dark)); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.bk-record-panel.bk-record-expense { background: radial-gradient(ellipse at 0 0, rgba(239, 91, 91, .1), transparent 42%), linear-gradient(160deg, var(--bg-card), var(--bg-dark)); }
.bk-record-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.bk-record-heading { display: flex; align-items: center; gap: 14px; }
.bk-record-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid rgba(124, 214, 60, .22); border-radius: 14px; background: rgba(124, 214, 60, .12); color: var(--primary); font-size: 25px; font-weight: 700; }
.bk-record-expense .bk-record-icon { border-color: rgba(239, 91, 91, .25); background: rgba(239, 91, 91, .12); color: #fb7777; }
.bk-record-heading .eyebrow { margin: 0 0 4px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bk-record-heading h4 { margin: 0; color: var(--text-primary); font-size: 22px; }
.bk-record-heading p:last-child { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; }
.bk-record-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "type date" "amount amount" "description description" "reference reference"; gap: 18px; padding: 22px 0; }
.bk-record-fields .field-group { min-width: 0; gap: 7px; }
.bk-record-fields .field-group > span { color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.bk-record-fields .field-group input, .bk-record-fields .field-group select { width: 100%; min-height: 46px; border-radius: 10px; }
.bk-record-fields .bk-record-type-field { grid-area: type; }
.bk-record-fields .bk-record-date-field { grid-area: date; }
.bk-record-fields .bk-record-amount-field { grid-area: amount; }
.bk-record-fields .bk-record-description-field { grid-area: description; }
.bk-record-fields .bk-record-reference-field { grid-area: reference; }
.bk-record-fields .bk-record-amount-field input { min-height: 58px; padding: 12px 15px; border-color: rgba(124, 214, 60, .28); font-size: 22px; font-weight: 700; }
.bk-record-expense .bk-record-amount-field input { border-color: rgba(239, 91, 91, .3); }
.bk-record-fields .bk-record-description-field { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 10px; row-gap: 7px; }
.bk-record-fields .bk-record-description-field > span { grid-column: 1 / -1; }
.bk-record-fields .bk-record-description-field input { margin-top: 0 !important; }
.bk-record-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.bk-record-footer > span { color: var(--text-muted); font-size: 12px; }
.bk-record-footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bk-record-expense #bankingSaveEntryButton { background: linear-gradient(135deg, #ef5b5b, #c43d3d); box-shadow: 0 8px 20px rgba(239, 91, 91, .18); }
.bk-record-expense #bankingSaveEntryButton:hover { box-shadow: 0 10px 24px rgba(239, 91, 91, .26); }
@media (max-width: 560px) {
  .bk-record-header { flex-direction: column; }
  .bk-record-header > button { align-self: flex-start; }
  .bk-record-fields { grid-template-columns: 1fr; grid-template-areas: "type" "date" "amount" "description" "reference"; gap: 14px; padding: 18px 0; }
  .bk-record-fields .bk-record-description-field { grid-template-columns: 1fr; }
  .bk-record-footer { align-items: flex-start; flex-direction: column; }
  .bk-record-footer > div { width: 100%; }
  .bk-record-footer > div button { flex: 1; }
}
  .bk-allocation-panel { margin-top: 12px; padding: clamp(18px, 3vw, 28px); overflow: hidden; }
  .bk-allocation-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .bk-allocation-header .eyebrow { margin: 0 0 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .bk-allocation-header h4 { margin: 0; color: var(--text-primary); font-size: 21px; }
  .bk-allocation-header p:last-child { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
  .bk-allocation-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(120deg, rgba(124, 214, 60, .08), rgba(255, 255, 255, .015)); }
  .bk-allocation-toolbar-copy { display: grid; gap: 4px; }
  .bk-allocation-toolbar-copy strong { color: var(--text-primary); font-size: 13px; }
  .bk-allocation-toolbar-copy span { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
  .bk-allocation-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .bk-allocation-feed-modal { width: min(500px, 100%); }
  .bk-allocation-feed-modal .eyebrow { margin: 0 0 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .bk-allocation-feed-modal h3 { margin: 0 0 12px; color: var(--text-primary); font-size: 21px; }
  .bk-allocation-feed-modal > p:not(.eyebrow) { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
  .bk-allocation-feed-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: rgba(124, 214, 60, .12); color: var(--primary); font-size: 22px; }
  .bk-statement-preview-modal { width: min(1180px, 100%); max-height: min(90vh, 900px); overflow: auto; }
  .bk-statement-preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
  .bk-statement-preview-heading .eyebrow { margin: 0 0 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .bk-statement-preview-heading h3 { margin: 0; color: var(--text-primary); font-size: 22px; }
  .bk-statement-preview-heading p:last-child { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
  .bk-statement-balance-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
  .bk-statement-balance-summary > span { display: grid; gap: 6px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .02); color: var(--text-muted); font-size: 10px; }
  .bk-statement-balance-summary strong { color: var(--text-primary); font-size: 14px; }
  .bk-statement-extraction-notes { margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(246, 190, 75, .28); border-radius: 9px; background: rgba(246, 190, 75, .06); color: #f6be4b; font-size: 11px; line-height: 1.6; }
  .bk-statement-preview-status { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 12px; line-height: 1.5; }
  .bk-statement-preview-status.is-ready { border-color: rgba(124, 214, 60, .3); background: rgba(124, 214, 60, .07); color: var(--primary); }
  .bk-statement-preview-status.is-warning { border-color: rgba(246, 190, 75, .3); background: rgba(246, 190, 75, .07); color: #f6be4b; }
  .bk-statement-preview-table-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
  .bk-statement-preview-table { width: 100%; min-width: 900px; border-collapse: collapse; }
  .bk-statement-preview-table th { position: sticky; top: 0; padding: 10px 9px; background: var(--bg-hover); color: var(--text-secondary); font-size: 10px; text-align: left; z-index: 1; }
  .bk-statement-preview-table td { padding: 7px; border-top: 1px solid var(--border); vertical-align: top; }
  .bk-statement-preview-table input { width: 100%; min-width: 72px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-dark); color: var(--text-primary); font: inherit; font-size: 11px; }
  .bk-statement-preview-table td:nth-child(3) input { min-width: 190px; }
  .bk-statement-preview-table tr.is-invalid { background: rgba(239, 91, 91, .045); }
  .bk-statement-preview-table tr.is-duplicate { background: rgba(246, 190, 75, .045); }
  .bk-statement-row-warning { display: block; min-width: 130px; color: #ef7777; font-size: 10px; line-height: 1.5; }
  .bk-statement-row-ok { color: var(--primary); font-size: 10px; }
  .bk-statement-duplicate { display: block; max-width: 90px; margin-top: 4px; color: #f6be4b; font-size: 9px; }
  .bk-allocation-bank-label { display: block; margin: 16px 0 6px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
  .bk-allocation-bank-select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-dark); color: var(--text-primary); font: inherit; }
  .bk-feed-connection-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
  .bk-feed-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
  .bk-feed-connection-status.is-connected { border-color: rgba(124, 214, 60, .35); background: rgba(124, 214, 60, .08); color: var(--primary); }
  .bk-feed-connection-status.is-disconnected { border-color: rgba(151, 164, 181, .3); background: rgba(151, 164, 181, .07); color: var(--text-muted); }
  .bk-feed-connection-status.is-pending { border-color: rgba(246, 190, 75, .35); background: rgba(246, 190, 75, .08); color: #f6be4b; }
  .bk-feed-connection-status.is-error { border-color: rgba(239, 91, 91, .35); background: rgba(239, 91, 91, .08); color: #ef7777; }
  .bk-feed-last-sync { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; }
  .bk-feed-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .bk-feed-modal-actions button:disabled { opacity: .48; cursor: not-allowed; }
  .bk-allocation-table-wrapper { border: 1px solid var(--border); border-radius: 12px; }
  .bk-allocation-table { width: 100%; min-width: 940px; border-collapse: collapse; }
  .bk-allocation-table th { padding: 13px 14px; background: var(--bg-hover); color: var(--text-secondary); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
  .bk-allocation-table td { padding: 22px 14px; border-top: 1px solid var(--border); }
  .bk-allocation-table .bk-allocation-empty { color: var(--text-muted); font-size: 13px; text-align: center; }
  .bk-allocation-row td { min-width: 130px; vertical-align: top; }
  .bk-allocation-row td:first-child, .bk-allocation-row td:nth-child(4), .bk-allocation-row td:nth-child(7), .bk-allocation-row td:nth-child(8) { white-space: nowrap; }
  .bk-allocation-row td:nth-child(5) { min-width: 260px; }
  .bk-allocation-input, .bk-allocation-type { width: 100%; min-width: 125px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-dark); color: var(--text-primary); font: inherit; font-size: 12px; }
  .bk-allocation-input:focus, .bk-allocation-type:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(125, 220, 75, .12); }
  .bk-allocation-description { max-width: 250px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .bk-allocation-money { color: var(--text-primary); font-size: 12px; font-weight: 700; text-align: right; }
  .bk-allocation-picker { position: relative; display: grid; gap: 7px; margin-top: 7px; }
  .bk-allocation-add { order: -1; width: 100%; padding: 7px 9px; border: 1px solid rgba(124, 214, 60, .28); border-radius: 8px; background: rgba(124, 214, 60, .08); color: var(--primary); font: inherit; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
  .bk-allocation-add:hover { background: rgba(124, 214, 60, .15); }
  .bk-allocation-suggestions { position: absolute; z-index: 20; top: calc(100% - 1px); left: 0; right: 0; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }
  .bk-allocation-suggestions-floating { position: fixed; z-index: 3000; top: 0; left: 0; right: auto; }
  .bk-allocation-suggestions[hidden] { display: none; }
  .bk-allocation-suggestion { display: block; width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text-primary); font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
  .bk-allocation-suggestion:last-child { border-bottom: 0; }
  .bk-allocation-suggestion:hover, .bk-allocation-suggestion:focus-visible { outline: none; background: rgba(124, 214, 60, .1); color: var(--primary); }
  .bk-allocation-no-results { padding: 10px; color: var(--text-muted); font-size: 11px; }
  .bk-allocation-selected { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; border: 1px solid rgba(124, 214, 60, .25); border-radius: 8px; background: rgba(124, 214, 60, .08); color: var(--text-primary); font-size: 11px; }
  .bk-allocation-selected span { overflow-wrap: anywhere; }
  .bk-allocation-selected button { flex: none; border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
  .bk-allocation-status { display: inline-flex; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 10px; white-space: nowrap; }
  .bk-allocation-status.is-ready { border-color: rgba(124, 214, 60, .3); background: rgba(124, 214, 60, .08); color: var(--primary); }
  .bk-allocation-actions-cell { display: grid; justify-items: start; gap: 7px; min-width: 150px; }
  .bk-allocation-actions-cell button { white-space: nowrap; }
  .bk-allocation-actions-cell button:disabled { opacity: .48; cursor: not-allowed; }
  .bk-allocation-fee-flag { display: inline-flex; margin: 0 0 5px; padding: 3px 7px; border: 1px solid rgba(246, 190, 75, .3); border-radius: 999px; background: rgba(246, 190, 75, .08); color: #f6be4b; font-size: 10px; font-weight: 700; }
  .bk-allocation-create-modal { width: min(560px, 100%); }
  .bk-allocation-create-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bk-allocation-create-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
  @media (max-width: 560px) {
    .bk-allocation-header { flex-direction: column; }
    .bk-allocation-toolbar { align-items: stretch; flex-direction: column; }
    .bk-allocation-toolbar-actions { justify-content: stretch; }
    .bk-allocation-toolbar-actions button { flex: 1 1 100%; }
    .bk-feed-modal-actions { flex-direction: column; }
    .bk-feed-modal-actions button { width: 100%; }
    .bk-statement-preview-heading { flex-direction: column; }
    .bk-statement-preview-heading > button { align-self: flex-start; }
    .bk-statement-balance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bk-allocation-create-fields { grid-template-columns: 1fr; }
    .bk-allocation-create-actions { flex-direction: column-reverse; }
    .bk-allocation-create-actions button { width: 100%; }
  }

  /* Banking flyout menu */
.banking-flyout { position: fixed; display: none; z-index: 2500; min-width: 290px; padding: 12px 12px 12px 20px; margin-left: 0; background: rgba(22, 27, 36, .97); border: 1px solid #2f3748; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 214, 60, .08); }
.banking-flyout.open { display: block; }
.banking-flyout:before { content: ""; position: absolute; left: 13px; top: var(--arrow-top, 30px); width: 12px; height: 12px; background: #161b24; border-left: 1px solid #2f3748; border-bottom: 1px solid #2f3748; transform: rotate(45deg); }
.bkf-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7cd63c; font-weight: 700; padding: 4px 10px 10px; }
.bkf-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; color: #e8edf3; transition: .15s; }
.bkf-item:hover, .bkf-item:focus { background: rgba(124, 214, 60, .12); transform: translateX(3px); outline: none; }
.bkf-item:hover b, .bkf-item:focus b { color: #9be85c; }
.bkf-tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--fg); }
.bkf-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bkf-item b { display: block; font-size: 13.5px; font-weight: 600; }
.bkf-item small { display: block; font-size: 11.5px; color: #8b95a1; margin-top: 1px; }
.bkf-arrow { margin-left: auto; opacity: 0; color: #7cd63c; transition: .15s; }
.bkf-item:hover .bkf-arrow { opacity: 1; }
.bkf-sep { height: 1px; background: #2a3140; margin: 6px 8px; }
.jobcards-flyout { width: 290px; }
.banking-flyout.flyout-2col { column-count: 2; column-gap: 16px; width: 620px; max-width: calc(100vw - 260px); }
.banking-flyout.flyout-2col .bkf-head { column-span: all; }
.banking-flyout.flyout-2col .bkf-item, .banking-flyout.flyout-2col .jcf-item { break-inside: avoid; }
.banking-flyout.flyout-2col .jcf-group { break-after: avoid; }
.banking-flyout.flyout-2col .jcf-grid { grid-template-columns: 1fr; break-inside: avoid; }
.banking-flyout.flyout-2col .jcf-item.wide { grid-column: auto; }
.jcf-group { display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-radius: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6f7a89; font-weight: 600; padding: 10px 10px 4px; }
.jcf-group:hover { color: #9be85c; }
.jcf-section { position: relative; }
.jcf-section:hover > .jcf-group, .jcf-section.open > .jcf-group { background: rgba(124, 214, 60, .12); color: #9be85c; }
.jcf-caret { font-size: 14px; }
.jcf-section > .jcf-grid { display: none; position: absolute; top: -12px; left: calc(100% + 18px); min-width: 230px; grid-template-columns: 1fr; padding: 12px; background: rgba(22, 27, 36, .97); border: 1px solid #2f3748; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.jcf-section > .jcf-grid:before { content: ""; position: absolute; top: 0; bottom: 0; left: -24px; width: 24px; }
.jcf-section:hover > .jcf-grid, .jcf-section.open > .jcf-grid { display: grid; }
.jcf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.jcf-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: #e8edf3; font-size: 13px; font-weight: 500; transition: .15s; }
.jcf-item:hover, .jcf-item:focus { background: rgba(124, 214, 60, .12); transform: translateX(3px); color: #9be85c; outline: none; }
.jcf-item.wide { grid-column: 1 / -1; background: rgba(124, 214, 60, .08); font-weight: 600; }
.jcf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }

/* Reports layout */
.rpt-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.rpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rpt-head h4 { margin: 0; font-size: 22px; }
.rpt-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; max-width: 640px; text-transform: none; }
.rpt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rpt-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 6px; padding: 8px; background: var(--bg-dark); border-radius: 10px; }
.rpt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.rpt-kpi { background: var(--bg-hover); border: 1px solid var(--border); border-left: 4px solid var(--kpi, var(--primary)); border-radius: 10px; padding: 14px 16px; }
.rpt-kpi p { margin: 0 0 6px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.rpt-kpi h3 { margin: 0; font-size: 24px; color: var(--text-primary); }
.rpt-kpi small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.rpt-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 16px; }
.rpt-chart { background: var(--bg-hover); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.rpt-chart h5 { margin: 0 0 12px; font-size: 14px; }
.rpt-chart-empty { margin: 0; color: var(--text-muted); font-size: 13px; }
.rpt-bar-row { display: grid; grid-template-columns: minmax(70px, 28%) 1fr auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.rpt-bar-label { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-bar-track { height: 12px; background: var(--bg-dark); border-radius: 6px; overflow: hidden; display: block; }
.rpt-bar-fill { display: block; height: 100%; border-radius: 6px; }
.rpt-bar-value { color: var(--text-primary); font-weight: 600; min-width: 48px; text-align: right; }
.rpt-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.rpt-muted { color: var(--text-muted); font-size: 13px; }
.rpt-section-title { margin: 0 0 10px; font-size: 16px; color: var(--text-primary); }
.rpt-jc-search, .rpt-detail { margin-top: 18px; }
.rpt-jc-search input { width: 100%; padding: 10px 12px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); }
.rpt-jc-list { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rpt-jc-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; background: var(--bg-dark); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; color: var(--text-primary); cursor: pointer; }
.rpt-jc-item span { font-size: 13px; color: var(--text-secondary); }
.rpt-jc-item small { color: var(--text-muted); }
.rpt-jc-item:hover { border-color: var(--primary); }
.rpt-jc-item.active { border-color: var(--primary); border-left-color: var(--primary); background: rgba(125, 220, 75, 0.08); }
.rpt-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rpt-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.rpt-mini { padding: 12px 14px; background: var(--bg-dark); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; }
.rpt-mini span { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.rpt-mini strong { display: block; margin-top: 6px; font-size: 22px; color: var(--text-primary); }

.pos-salesplay-screen { position: fixed; inset: 0; z-index: 1450; display: flex; align-items: stretch; justify-content: center; padding: 0; overflow: auto; background: var(--bg); }
.pos-salesplay-shell { display: flex; flex-direction: column; width: 100%; min-height: 100%; padding: 24px; background: var(--bg-card); color: var(--text-primary); }
.pos-salesplay-header { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pos-salesplay-header h2 { margin: 0; font-size: 22px; }
.pos-salesplay-header p:last-child { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.pos-salesplay-header > button:last-child { margin-left: auto; }
.pos-salesplay-notice { display: grid; gap: 4px; margin: 16px 0; padding: 13px 15px; border: 1px solid rgba(246, 190, 75, .3); border-radius: 10px; background: rgba(246, 190, 75, .07); color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.pos-salesplay-notice strong { color: #f6be4b; }
.pos-salesplay-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.pos-salesplay-date, .pos-salesplay-upload { display: grid; gap: 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.pos-salesplay-date input, .pos-salesplay-upload input { min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-dark); color: var(--text-primary); font: inherit; }
.pos-salesplay-upload input { max-width: 260px; }
.pos-salesplay-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pos-salesplay-summary > span { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-hover); color: var(--text-muted); font-size: 11px; }
.pos-salesplay-summary strong { color: var(--text-primary); font-size: 15px; }
.pos-salesplay-table-wrap { flex: 1; overflow: auto; border: 1px solid var(--border); border-radius: 11px; }
.pos-salesplay-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.pos-salesplay-table th { position: sticky; top: 0; z-index: 1; padding: 10px; background: var(--bg-hover); color: var(--text-muted); font-size: 10px; text-align: left; white-space: nowrap; }
.pos-salesplay-table td { padding: 9px 10px; border-top: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
.pos-salesplay-table td small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.pos-salesplay-table tr.is-acknowledged { background: rgba(124, 214, 60, .035); }
.pos-salesplay-table select { max-width: 250px; min-width: 210px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-dark); color: var(--text-primary); }
.pos-salesplay-product-cell { min-width: 250px; }
.pos-salesplay-mapped { display: block; max-width: 250px; color: var(--text-secondary); overflow-wrap: anywhere; }
.pos-salesplay-status { display: inline-flex; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 10px; white-space: nowrap; }
.pos-salesplay-status.is-pending { border-color: rgba(246, 190, 75, .3); background: rgba(246, 190, 75, .07); color: #f6be4b; }
.pos-salesplay-status.is-done { border-color: rgba(124, 214, 60, .3); background: rgba(124, 214, 60, .07); color: var(--primary); }
.pos-salesplay-source-tag { display: inline-flex; margin-top: 7px; padding: 4px 8px; border: 1px solid rgba(124, 214, 60, .25); border-radius: 999px; color: var(--primary); font-size: 10px; font-weight: 700; }
.pos-salesplay-empty { padding: 30px !important; color: var(--text-muted); text-align: center; }
.pos-salesplay-footnote { margin: 12px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.pos-salesplay-ack-overlay { position: fixed; inset: 0; z-index: 1550; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(2, 6, 23, .78); }
.pos-salesplay-ack-modal { width: min(620px, 100%); max-height: 92vh; overflow: auto; }
.pos-salesplay-ack-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pos-salesplay-ack-heading h3 { margin: 0; }
.pos-salesplay-ack-warning { padding: 10px 12px; border: 1px solid rgba(246, 190, 75, .3); border-radius: 8px; background: rgba(246, 190, 75, .06); color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.pos-salesplay-ack-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.pos-salesplay-ack-metrics span { padding: 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 10px; }
.pos-salesplay-ack-metrics strong { display: block; margin-top: 4px; color: var(--text-primary); font-size: 13px; }
.pos-salesplay-ack-modal .field-group { margin: 12px 0; }
.pos-salesplay-ack-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pos-salesplay-ack-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 700px) {
  .pos-salesplay-shell { padding: 14px; }
  .pos-salesplay-header { align-items: flex-start; }
  .pos-salesplay-header > button:first-child { flex: none; }
  .pos-salesplay-header h2 { font-size: 18px; }
  .pos-salesplay-tools { align-items: stretch; }
  .pos-salesplay-date, .pos-salesplay-upload { flex: 1 1 140px; }
  .pos-salesplay-upload input { max-width: 100%; }
  .pos-salesplay-summary { grid-template-columns: 1fr; }
  .pos-salesplay-ack-fields { grid-template-columns: 1fr; gap: 0; }
  .pos-salesplay-ack-actions { flex-direction: column-reverse; }
  .pos-salesplay-ack-actions button { width: 100%; }
}

.customer-actions-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 32%, rgba(125, 220, 75, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(16, 23, 19, 0.96), rgba(8, 13, 10, 0.98));
  box-shadow: var(--shadow-soft);
}

.customer-actions-logo {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(900px, 96%);
  height: 100%;
  object-fit: contain;
  opacity: 0.24;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.customer-actions-intro {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.customer-actions-brand-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.customer-actions-brand-subtitle {
  margin: 8px 0 28px;
  color: var(--primary);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.customer-actions-intro h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.customer-actions-intro p {
  margin: 8px auto 0;
  color: var(--text-secondary);
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.customer-actions-grid {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-action-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 23, 19, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.customer-action-card:last-child {
  grid-column: 1 / -1;
}

.customer-action-card:hover,
.customer-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--bg-elevated);
  outline: none;
}

.customer-action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(125, 220, 75, 0.26);
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
}

.customer-action-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-action-copy {
  min-width: 0;
}

.customer-action-title,
.customer-action-description {
  display: block;
}

.customer-action-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 800;
}

.customer-action-description {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.customer-action-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--primary);
}

.customer-action-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.customer-action-card:hover .customer-action-arrow svg {
  transform: translateX(3px);
}

@media (max-width: 740px) {
  .customer-actions-section {
    padding: 28px 16px 18px;
  }

  .customer-actions-logo {
    width: 140%;
    opacity: 0.18;
  }

  .customer-actions-grid {
    grid-template-columns: 1fr;
  }

  .customer-action-card,
  .customer-action-card:last-child {
    grid-column: auto;
  }
}

.customer-job-lookup-shell {
  width: min(560px, 100%);
  margin: clamp(24px, 8vh, 80px) auto;
  padding: clamp(22px, 5vw, 36px);
}

.customer-job-lookup-eyebrow {
  margin: 0 0 8px !important;
  color: var(--primary) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.customer-job-lookup-instructions {
  line-height: 1.6;
}

.customer-job-lookup-instructions strong {
  color: var(--text-primary);
}

.customer-job-lookup-field {
  display: block;
  margin-bottom: -4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.customer-job-lookup-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-job-lookup-name-fields > div {
  display: grid;
  gap: 8px;
}

.customer-job-lookup-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .customer-job-lookup-name-fields {
    grid-template-columns: 1fr;
  }
}
