/* ================================================================
   Drive Capital — Bold High-Contrast Editorial Style
   Palette: Cream #fff8f1, Ash #cbd5e1, Ink #0f172a, Voltage Blue #005ce6
   Fonts: Inter (Bold & Medium) + Cormorant Garamond (Bold Serif)
   Radii: Cards 0px (hairline border), Buttons/Pills 60px
   Legibility: High contrast, thick crisp weights (600/700)
   ================================================================ */

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

/* ================================================================
   Design Tokens
   ================================================================ */
:root {
  /* Colors */
  --color-cream:         #fff8f1;   /* Page background & card surfaces */
  --color-ash:           #cbd5e1;   /* Hairline dividers, borders */
  --color-ink:           #0f172a;   /* Body text & strokes - crisp dark slate */
  --color-voltage-blue:  #005ce6;   /* Primary accent & action outlines */

  /* Typography */
  --font-display: 'Inter', 'Cormorant Garamond', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-grotesk: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Type Scale */
  --text-body-sm:    16px;
  --leading-body-sm: 1.5;
  --tracking-body-sm: -0.01em;

  --text-body:       18px;
  --leading-body:    1.5;
  --tracking-body:   -0.01em;

  --text-subheading: 28px;
  --leading-subheading: 1.2;
  --tracking-subheading: -0.02em;

  --text-heading-sm: 38px;
  --leading-heading-sm: 1.2;
  --tracking-heading-sm: -0.02em;

  --text-heading:    62px;
  --leading-heading: 1.0;

  --text-heading-lg: 77px;
  --leading-heading-lg: 0.95;

  --text-display:    120px;
  --leading-display: 0.95;

  /* Font Weights — Bolder defaults for superior legibility */
  --font-weight-regular: 500;
  --font-weight-medium:  600;
  --font-weight-bold:    700;

  /* Radii */
  --radius-card:    0px;    /* Strictly flat cards with hairline border */
  --radius-pill:    60px;   /* 60px radius for pills & buttons */
  --radius-button:  60px;

  /* Spacing */
  --spacing-7:   7px;
  --spacing-11:  11px;
  --spacing-14:  14px;
  --spacing-20:  20px;
  --spacing-29:  29px;
  --spacing-30:  30px;
  --spacing-35:  35px;
  --spacing-43:  43px;
  --spacing-144: 144px;
  --spacing-150: 150px;

  /* Layout */
  --page-max-width: 1400px;

  /* Kanban column status dots */
  --col-intake:     #005ce6;   /* Voltage Blue */
  --col-processing: #2563eb;
  --col-pending:    #d97706;
  --col-preview:    #4f46e5;
  --col-avoid:      #dc2626;
  --col-paid:       #059669;
}

/* ================================================================
   Reset
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================================
   Base — Body
   ================================================================ */
body {
  font-family: var(--font-grotesk);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  font-weight: 500;
  color: var(--color-ink);
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   Navbar — Hairline Rule Bar
   ================================================================ */
.navbar-wrapper {
  background: var(--color-cream);
  border-bottom: 2px solid var(--color-ash);
  position: sticky;
  top: 0;
  z-index: 200;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 1.25rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-grotesk);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-voltage-blue);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.login-logo {
  height: 85px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   GitHub-Style User Avatar Dropdown Menu
   ================================================================ */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  background: #ffffff;
  border: 1.5px solid var(--color-voltage-blue);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--color-ink);
  outline: none;
}

.user-menu-btn:hover,
.user-menu-btn[aria-expanded="true"] {
  background: #f0f7ff;
  border-color: #0046b3;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-voltage-blue), #0046b3);
  color: #ffffff;
  font-family: var(--font-grotesk);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-menu-name {
  font-family: var(--font-grotesk);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-voltage-blue);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  color: var(--color-voltage-blue);
  transition: transform 0.2s ease;
}

.user-menu-btn[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  z-index: 300;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 1rem 1.1rem;
  background: #f8fafc;
}

.dropdown-user-name {
  font-family: var(--font-grotesk);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}

.dropdown-user-detail {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.25rem;
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-ash);
}

.dropdown-body,
.dropdown-footer {
  padding: 0.4rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-grotesk);
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--color-voltage-blue);
}

.dropdown-icon {
  color: #64748b;
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-icon {
  color: var(--color-voltage-blue);
}

.dropdown-item-danger {
  color: #dc2626;
}

.dropdown-item-danger .dropdown-icon {
  color: #dc2626;
}

.dropdown-item-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ================================================================
   Buttons — Bold 60px Outlined Pills
   ================================================================ */
.btn {
  font-family: var(--font-grotesk);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-button);  /* 60px pill */
  border: 2px solid var(--color-voltage-blue);
  background: transparent;
  color: var(--color-voltage-blue);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Action — Voltage Blue Solid */
.btn-primary {
  background: var(--color-voltage-blue);
  color: #ffffff;
  border-color: var(--color-voltage-blue);
  font-weight: 700;
}
.btn-primary:hover {
  background: #0046b3;
  border-color: #0046b3;
}

/* Secondary Action — Outlined Blue */
.btn-outline {
  background: #ffffff;
  color: var(--color-voltage-blue);
  border-color: var(--color-voltage-blue);
  font-weight: 600;
}
.btn-outline:hover {
  background: rgba(0, 92, 230, 0.08);
}

/* Danger Action */
.btn-danger {
  background: #ffffff;
  color: #dc2626;
  border-color: #dc2626;
  font-weight: 600;
}
.btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ================================================================
   Form Inputs — Bold & Clear
   ================================================================ */
input[type="date"],
input[type="text"],
input[type="password"] {
  font-family: var(--font-grotesk);
  font-size: 15px;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  color: var(--color-ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus {
  border-color: var(--color-voltage-blue);
}

input::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* ================================================================
   Main Container
   ================================================================ */
.container {
  flex: 1;
  padding: 2rem 2rem 4rem;
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Section label — Grotesk 700 Bold, uppercase */
.section-label {
  font-family: var(--font-grotesk);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-voltage-blue);
  white-space: nowrap;
}

/* ================================================================
   Search Section — Crisp White Panel
   ================================================================ */
.search-section {
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card); /* 0px */
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

/* ================================================================
   Status Bar
   ================================================================ */
.status-bar {
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.status-bar.success {
  border-color: #059669;
  color: #059669;
  background: #ecfdf5;
}

.status-bar.error {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.status-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--color-ash);
  border-top-color: var(--color-voltage-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   Filter Section — White Panel
   ================================================================ */
.filter-section {
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.filter-input-wrap {
  flex: 1;
}

.filter-input-wrap input {
  width: 100%;
}

/* Missing Notice */
.missing-notice {
  background: #fef2f2;
  border-radius: var(--radius-pill);
  border: 1.5px solid #ef4444;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  width: 100%;
}

.missing-label {
  font-weight: 700;
}

.missing-text {
  word-break: break-word;
  font-weight: 600;
}

/* ================================================================
   Summary Bar — Crisp White Panel
   ================================================================ */
.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card);
  margin-bottom: 1.25rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  gap: 1rem;
}

.summary-value {
  font-family: var(--font-grotesk);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-voltage-blue);
  line-height: 1;
}

/* ================================================================
   Kanban Board — 5-column grid
   ================================================================ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
  width: 100%;
}

/* Column — White Card, 0px radius */
.kanban-col {
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card); /* 0px */
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

/* Column Header */
.col-header {
  padding: 0.85rem 0.75rem;
  border-bottom: 1.5px solid var(--color-ash);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  background: #f8fafc;
  min-width: 0;
}

/* Column title — Grotesk 700 Bold uppercase */
.col-title {
  font-family: var(--font-grotesk);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Status dot */
.col-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-col[data-state="INTAKE"]      .col-title::before { background: var(--col-intake); }
.kanban-col[data-state="PROCESSING"]  .col-title::before { background: var(--col-processing); }
.kanban-col[data-state="PENDING"]     .col-title::before { background: var(--col-pending); }
.kanban-col[data-state="2ND_PREVIEW"] .col-title::before { background: var(--col-preview); }
.kanban-col[data-state="PAID"]        .col-title::before { background: var(--col-paid); }

/* Column badge — Outlined pill */
.col-badge {
  font-family: var(--font-grotesk);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-voltage-blue);
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.col-cards {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar */
.col-cards::-webkit-scrollbar { width: 4px; }
.col-cards::-webkit-scrollbar-track { background: transparent; }
.col-cards::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* ================================================================
   Invoice Card — Bold, Crisp, High-Contrast
   ================================================================ */
.invoice-card {
  background: #fff8f1;
  border: 1.5px solid #cbd5e1;
  border-radius: 0px;
  padding: 1.1rem 1.15rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: default;
}

.invoice-card:hover {
  border-color: var(--color-voltage-blue);
  background: #ffffff;
}

/* Invoice number — Bold 700 Grotesk (thick and highly visible!) */
.card-no {
  font-family: var(--font-grotesk);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
  line-height: 1.2;
  word-break: break-word;
}

/* Card task */
.card-task {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
}

/* JIRA link — Voltage Blue solid or bold pill */
.jira-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-grotesk);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-voltage-blue);
  background: #eff6ff;
  border: 1.5px solid var(--color-voltage-blue);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.13s ease;
}

.jira-link:hover {
  background: var(--color-voltage-blue);
  color: #ffffff;
}

/* Card date */
.card-date {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.2rem 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  font-style: italic;
}

/* ================================================================
   Admin Supplier Page
   ================================================================ */
.admin-supplier-section {
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.admin-header-title-bar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-ash);
}

.admin-page-title {
  font-family: var(--font-grotesk);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-voltage-blue);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.admin-page-subtitle {
  font-size: 16px;
  color: #334155;
  font-weight: 500;
}

.supplier-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-box-wrap {
  flex: 1;
  max-width: 550px;
}

.admin-filter-input {
  width: 100%;
  padding: 0.85rem 1.25rem !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.btn-add-supplier {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 0.85rem 1.6rem !important;
}

/* Supplier Table */
.supplier-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1.5px solid var(--color-ash);
}

.supplier-table th {
  font-family: var(--font-grotesk);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-voltage-blue);
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--color-ash);
  background: #f8fafc;
}

.supplier-table td {
  padding: 1.1rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-ash);
  color: var(--color-ink);
  vertical-align: middle;
}

.supplier-table tr:last-child td {
  border-bottom: none;
}

.supplier-table tbody tr:hover td {
  background: #f1f5f9;
}

.disabled-input {
  background: #e2e8f0 !important;
  color: #64748b !important;
  font-weight: 600 !important;
  cursor: not-allowed;
}

/* ================================================================
   Modals — Crisp White Card (0px radius, 2px border)
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

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

.modal {
  background: #ffffff;
  border: 2px solid var(--color-ash);
  border-radius: var(--radius-card); /* 0px */
  width: 100%;
  max-width: 460px;
  padding: 2.25rem;
}

.modal-md {
  max-width: 520px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.modal-title {
  font-family: var(--font-grotesk);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-voltage-blue);
  line-height: 1.1;
}

.btn-close {
  background: transparent;
  border: 1.5px solid var(--color-ash);
  color: var(--color-ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.13s ease;
}

.btn-close:hover {
  border-color: var(--color-voltage-blue);
  color: var(--color-voltage-blue);
}

.form-group-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group-stacked label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1.1rem !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-ash);
}

/* Error message */
.modal-error {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
}

/* ================================================================
   Responsive Breakpoints & Mobile Optimization
   ================================================================ */
@media (max-width: 900px) {
  /* Kanban Board: Smooth Horizontal Scroll on Tablet & Mobile */
  .kanban-board {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.25rem;
    gap: 0.85rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .kanban-col {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .kanban-col {
    flex: 0 0 86vw !important;
    min-width: 86vw !important;
    max-width: 86vw !important;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.85rem 3rem;
  }

  .navbar {
    padding: 0.85rem 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .brand span {
    font-size: 1.25rem;
  }

  .brand-logo {
    height: 32px;
  }

  /* Search Panel Mobile Stacking */
  .search-section {
    padding: 1.25rem 1rem;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
  }

  .form-group label {
    font-size: 14px;
  }

  .date-input-wrap {
    width: 100%;
  }

  .date-input {
    width: 100%;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 0.75rem 1rem !important;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem !important;
  }

  /* Filter Panel Mobile */
  .filter-section {
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .filter-section .section-label {
    margin-bottom: 0;
  }

  .filter-input-wrap {
    width: 100%;
  }

  .filter-input-wrap input {
    font-size: 16px !important;
    padding: 0.75rem 1rem !important;
  }

  /* Summary Bar Mobile */
  .summary-bar {
    padding: 1rem 1.25rem;
  }

  .summary-value {
    font-size: 1.8rem;
  }

  /* Admin Manager Toolbar Mobile */
  .supplier-manager-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .filter-box-wrap {
    max-width: 100%;
    width: 100%;
  }

  .btn-add-supplier {
    width: 100%;
    justify-content: center;
  }

  /* Modal Mobile */
  .modal {
    padding: 1.5rem;
    max-width: 92vw;
  }
}

/* ================================================================
   Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
