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

:root {
  /* Brand colors (Rentdeck style guide) */
  --brand-purple: #6a0dad;
  --brand-blue: #007bff;
  --brand-light: #f4f7f6;
  --brand-dark: #333333;
  --primary: #007bff;
  --primary-dark: #6a0dad;
  --success: #059669;
  --danger: #dc2626;
  --warning: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
}

.app-layout { display: flex; min-height: 100vh; height: 100vh; }
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}
/* Container: volle breedte over hele app (geen smalle kolom meer) */
.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
  padding: 16px 24px;
  box-sizing: border-box;
}
.main-area > main {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}
/* Dashboard en alle tab-inhoud over volle breedte */
.tab-content,
.main-area .container .tab-content,
section.tab-content {
  width: 100%;
  max-width: 100%;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
.toast-success { background: #d1fae5; color: #065f46; }
.toast-error { background: #fee2e2; color: #991b1b; }
.toast-warning { background: #fef3c7; color: #92400e; }
.toast-info { background: #dbeafe; color: #0c2340; }
.toast-message { flex: 1; font-size: 14px; }
.toast-close { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.7; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert li { margin: 4px 0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Brand font: Proxima Nova (fallback: Source Sans 3 uit Google Fonts) */
.brand-font, .header .brand-tagline { font-family: 'Proxima Nova', 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Header - brand gradient: logo + tagline naast elkaar */
.header .header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
  color: white;
  padding: 12px 0;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.header .brand-logo { height: 36px; width: auto; display: block; flex-shrink: 0; }
.header .brand-tagline { margin: 0; opacity: 0.95; font-size: 14px; }

/* Sidebar - in-page collapsible */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, min-width 0.3s ease;
  overflow: hidden;
}
.sidebar.collapsed {
  width: 72px;
  min-width: 72px;
}
.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sidebar-title {
  font-family: 'Proxima Nova', 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  margin: 0;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-title { white-space: nowrap; overflow: hidden; transition: opacity 0.2s ease; }
.sidebar.collapsed .sidebar-title { opacity: 0; width: 0; overflow: hidden; }
.sidebar-nav { padding: 10px 0; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-item.active { background: linear-gradient(90deg, rgba(106, 13, 173, 0.12), transparent); color: var(--brand-blue); border-left-color: var(--brand-blue); }
.nav-icon { font-size: 20px; flex-shrink: 0; }
.nav-label { white-space: nowrap; overflow: hidden; transition: opacity 0.2s ease; }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .nav-item { padding: 14px; justify-content: center; }
.nav-item-logout { margin-top: auto; border-top: 1px solid var(--gray-200); color: var(--gray-600); font-size: 14px; }
.nav-item-logout:hover { color: var(--danger); }

/* Hamburger - inside sidebar */
.sidebar .hamburger-btn {
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sidebar .hamburger-btn:hover { background: var(--primary-dark); }
.sidebar .hamburger-line { width: 20px; height: 2.5px; background: white; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.sidebar .hamburger-btn.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar .hamburger-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
.sidebar .hamburger-btn.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cards — overal dezelfde stijl */
.card { background: white; border-radius: 8px; box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 16px; }
.card:last-child { margin-bottom: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.card-header h2 { font-size: 18px; color: var(--gray-900); margin: 0; }
.link-muted { color: var(--gray-500); font-size: 14px; text-decoration: none; }
.link-muted:hover { color: var(--primary); text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.form-inline input { flex: 1; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.select-row { display: flex; gap: 8px; margin-bottom: 8px; }
.select-row select { flex: 1; }
.inline-create { display: flex; gap: 8px; margin-top: 8px; }
.inline-create input { flex: 1; }
.text-muted { color: var(--gray-600); font-size: 13px; font-style: italic; }
.ml-1 { margin-left: 6px; }
.customer-row-inactive { opacity: 0.75; }
.customer-row-inactive td { color: var(--gray-600); }

/* Buttons */
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%); color: white; border: none; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary { background: var(--gray-200); color: var(--gray-900); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-300); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--gray-100); padding: 12px; text-align: left; font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-300); }
.table td { padding: 12px; border-bottom: 1px solid var(--gray-200); }
.table tbody tr:hover { background: var(--gray-50); }
.table-actions { display: flex; gap: 8px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }
.modal.modal-over-quote { z-index: 3000; }
.modal-content { background: white; border-radius: 8px; padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-content.modal-wide { max-width: 700px; }
.import-modal-body { margin-bottom: 20px; }
.import-wizard-steps { display: flex; gap: 12px; margin-bottom: 16px; padding: 8px 0; border-bottom: 1px solid var(--gray-200); flex-wrap: wrap; }
.import-wizard-step { font-size: 13px; color: var(--gray-400); }
.import-wizard-step.active { color: var(--primary); font-weight: 500; }
.import-map-section { margin: 12px 0; }
.import-map-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; max-width: 480px; margin: 12px 0; }
.import-map-label { font-size: 13px; margin: 0; }
.import-map-select { padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 13px; min-width: 140px; }
.import-validation-errors { margin: 12px 0; }
.import-preview { margin: 16px 0; }
.import-preview-table-wrap { max-height: 200px; overflow: auto; margin: 8px 0; border: 1px solid var(--gray-200); border-radius: 6px; }
.import-result { padding: 12px; border-radius: 6px; margin: 12px 0; }
.import-result.success { background: #dcfce7; color: #166534; }
.import-result.warning { background: #fef3c7; color: #92400e; }
.import-errors { margin: 8px 0 0; padding-left: 20px; font-size: 13px; }
.file-input { display: block; padding: 8px 0; }

/* Quote PDF Preview Modal */
.quote-preview-modal .modal-content { max-width: 95vw; width: 900px; max-height: 95vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.quote-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
  flex-shrink: 0;
}
.quote-preview-header h3 { margin: 0; font-size: 18px; }
.quote-preview-actions { display: flex; gap: 12px; align-items: center; }
.quote-preview-pdf-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
  background: var(--gray-50);
  border-radius: 8px;
  color: var(--gray-600);
}
.quote-preview-pdf-notice p { margin: 0; font-size: 16px; }
.quote-preview-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--gray-100);
  padding: 20px;
}
.quote-preview-iframe {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: white;
  box-shadow: var(--shadow-md);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-body { margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding-top: 15px; border-top: 1px solid var(--gray-200); }
.conflict-list { list-style: none; padding: 0; margin: 15px 0 0; }
.conflict-item { padding: 8px 12px; background: #fef3c7; border-radius: 6px; margin-bottom: 8px; font-size: 14px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-600); padding: 0; }

.card-warning { border-left: 4px solid var(--warning); }
.shortage-list { list-style: none; padding: 0; margin: 10px 0 0; }
.shortage-item { padding: 10px 12px; background: #fef3c7; border-radius: 6px; margin-bottom: 8px; font-size: 14px; }
.shortage-conflicts { font-size: 13px; color: var(--gray-600); }
.shortage-projects { font-size: 13px; color: var(--gray-600); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: white; padding: 16px 20px; border-radius: 8px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); }
.stat-card h3 { font-size: 12px; color: var(--gray-600); margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 28px; font-weight: bold; color: var(--primary); }
.stat-card .subtitle { font-size: 12px; color: var(--gray-600); margin-top: 5px; }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #0c2340; }

/* Calendar */
.calendar-jobs { display: flex; flex-direction: column; gap: 20px; }
.calendar-job { margin-bottom: 8px; }
.calendar-job-title { margin-bottom: 12px; color: var(--gray-700); font-size: 15px; font-weight: 600; }
.calendar-product { margin-bottom: 30px; }
.calendar-product h3 { margin-bottom: 15px; color: var(--gray-700); font-size: 16px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day { aspect-ratio: 1; padding: 8px; border: 1px solid var(--gray-300); border-radius: 6px; background: white; font-size: 12px; text-align: center; }
.calendar-day.disabled { background: var(--gray-100); color: var(--gray-400); }
.calendar-day.active { background: var(--primary); color: white; border-color: var(--primary-dark); }
.day-num { font-weight: bold; }
.day-month { font-size: 10px; opacity: 0.7; }

/* Calendar by day (agenda) — current + next month */
.calendar-hint { margin-bottom: 12px; font-size: 13px; }
.calendar-by-day { display: flex; flex-direction: column; gap: 0; max-width: 100%; }
.calendar-month-block { margin-bottom: 24px; }
.calendar-month-title { font-size: 18px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-300); }
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.calendar-day-cell { min-height: 120px; padding: 10px; border: 1px solid var(--gray-300); border-radius: 8px; background: var(--gray-50); display: flex; flex-direction: column; }
.calendar-day-cell.has-jobs { background: #fff; border-color: var(--gray-200); }
.calendar-day-header { flex-shrink: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.calendar-day-header .day-num { font-size: 16px; }
.calendar-day-header .day-month { font-size: 11px; font-weight: 500; opacity: 0.8; margin-left: 4px; }
.calendar-day-projects { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.calendar-project-btn { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); transition: transform 0.1s, box-shadow 0.15s; }
.calendar-project-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.calendar-project-name { display: block; font-weight: 600; margin-bottom: 2px; }
.calendar-project-customer { display: block; font-size: 11px; opacity: 0.95; }
.calendar-day-empty { font-size: 12px; color: var(--gray-500); font-style: italic; }
.calendar-day-empty-cell { min-height: 120px; background: transparent; border: none; pointer-events: none; }
.calendar-weekday-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 6px; padding: 0 10px; }
.calendar-weekday-header span { font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; }

/* Groups & Settings */
.groups-list { margin-top: 16px; }
.group-card { background: var(--gray-50); padding: 15px; border-radius: 6px; margin-bottom: 15px; border: 1px solid var(--gray-200); }
.group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.group-header h4 { margin: 0; font-size: 15px; color: var(--gray-900); }
.subgroups-list { list-style: none; margin: 10px 0 0; padding: 0; }
.subgroups-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: white; border-radius: 4px; margin-bottom: 5px; font-size: 13px; }

.venues-list { margin-top: 16px; }
.venue-card { background: var(--gray-50); padding: 15px; border-radius: 6px; margin-bottom: 15px; border: 1px solid var(--gray-200); }
.venue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.venue-header h4 { margin: 0; font-size: 15px; color: var(--gray-900); }
.venue-actions { display: flex; gap: 8px; }
.venue-details { font-size: 13px; color: var(--gray-600); display: flex; flex-direction: column; gap: 2px; }

/* Venue selector in new quote popup */
.venue-selector-quote { position: relative; }
.venue-selected-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; }
.venue-selected-text { flex: 1; font-size: 14px; }
.venue-input-wrap { margin-bottom: 0; }
.venue-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 220px; overflow-y: auto; background: white; border: 1px solid var(--gray-300); border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; padding: 8px 0; }
.venue-quick-section { padding: 0 12px 8px; border-bottom: 1px solid var(--gray-200); margin-bottom: 8px; }
.venue-quick-label { display: block; font-size: 11px; color: var(--gray-500); text-transform: uppercase; margin-bottom: 6px; }
.venue-list-section { padding: 0 12px; max-height: 140px; overflow-y: auto; }
.venue-option { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; background: none; font-size: 14px; cursor: pointer; border-radius: 4px; }
.venue-option:hover { background: var(--gray-100); }
.venue-option-city { color: var(--gray-600); font-size: 13px; }
.venue-empty { padding: 8px 12px; font-size: 13px; color: var(--gray-500); margin: 0; }
.venue-add-new { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: var(--gray-50); font-size: 14px; cursor: pointer; border-radius: 4px; color: var(--primary); font-weight: 500; }
.venue-add-new:hover { background: var(--gray-100); }
.venue-add-new-top { margin: 8px 12px 8px; }
.venue-create-inline { padding: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; margin-top: 8px; }
.venue-create-title { margin: 0 0 12px; font-size: 14px; }
.venue-create-inline .form-input { margin-bottom: 8px; }
.venue-create-inline .form-row { display: flex; gap: 8px; }
.venue-create-inline .form-row input { flex: 1; }
.venue-create-actions { display: flex; gap: 8px; margin-top: 12px; }

hr { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }

/* Products section in rental modal */
.products-section { margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.product-selector { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--gray-50); padding: 15px; border-radius: 6px; margin-bottom: 15px; }
.product-selector select { flex: 1; min-width: 150px; padding: 8px; border: 1px solid var(--gray-300); border-radius: 6px; }
.product-selector input { width: 80px; padding: 8px; border: 1px solid var(--gray-300); border-radius: 6px; }
.selected-products { margin-bottom: 15px; }
.product-line { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: white; border: 1px solid var(--gray-200); border-radius: 6px; margin-bottom: 8px; }
.product-detail { display: block; font-size: 12px; color: var(--gray-600); margin-top: 2px; }
.price-summary { background: var(--gray-100); padding: 15px; border-radius: 6px; margin-bottom: 15px; }
.price-summary p { margin: 5px 0; }

/* Template upload */
.template-upload .form-group { margin-bottom: 20px; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-row input[type="file"] { flex: 1; min-width: 200px; font-size: 13px; }
.text-success { color: var(--success); font-size: 12px; }

/* Template editor */
.template-editor-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.template-editor-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  min-height: 400px;
}
@media (max-width: 900px) {
  .template-editor-layout { grid-template-columns: 1fr; }
}
.template-fields-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  height: fit-content;
}
.template-fields-panel h4 { margin: 0 0 12px 0; font-size: 14px; color: var(--gray-700); }
.template-field-hint { font-size: 12px; margin: 0 0 10px 0; }
.template-editor-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.template-step { font-size: 13px; color: var(--gray-500); }
.template-step.active { color: var(--primary); font-weight: 500; }
.template-step.hint { color: var(--gray-400); font-size: 12px; }
.template-place-hint { font-size: 12px; margin: 0 0 8px 0; }
.template-pdf-page-label { margin-left: 8px; }

/* Team members */
.team-members-list { margin: 12px 0; }
.team-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.team-member-email { flex: 1; font-weight: 500; }
.team-member-role { color: var(--gray-600); font-size: 13px; }
.form-row-wrap { flex-wrap: wrap; }
.form-actions-inline { display: flex; align-items: flex-end; }

.template-fields-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.template-field-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: all 0.15s;
}
.template-field-btn:hover {
  border-color: var(--primary);
  background: #eff6ff;
}
.template-field-btn code {
  font-size: 11px;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.template-field-label { color: var(--gray-600); font-size: 11px; }
.template-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.template-editor-section { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.template-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.template-editor-toolbar label { margin: 0; font-size: 14px; font-weight: 500; }
.template-editor-actions { display: flex; gap: 8px; align-items: center; }
.template-upload-input { display: none; }
.template-editor-textarea {
  flex: 1;
  min-height: 380px;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  resize: vertical;
}
.template-editor-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Settings tabs */
.settings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.settings-tab-content { padding-top: 0; }

/* PDF template visual editor */
.pdf-template-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  min-height: 500px;
}
/* Template-editor: volle breedte en hoogte (overal hetzelfde) */
.container .template-editor-layout,
.container .pdf-template-layout {
  width: 100%;
  min-height: 560px;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.container .template-fields-panel {
  min-height: 520px;
}
.container .template-pdf-editor-panel {
  min-height: 520px;
}
.container .template-pdf-canvas-wrap {
  min-height: 460px;
}
.container .template-pdf-empty {
  min-height: 460px;
}
.container .picklist-template-section {
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.container .picklist-template-section .template-editor-textarea {
  min-height: 460px;
  flex: 1;
}
.template-field-draggable {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: grab;
  transition: background 0.15s, border-color 0.15s;
}
.template-field-draggable:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}
.template-field-draggable:active { cursor: grabbing; }
.template-field-draggable code { font-size: 11px; color: var(--primary); }
.template-placed-fields { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200); }
.template-placed-fields h4 { font-size: 13px; margin-bottom: 8px; color: var(--gray-600); }
.template-placed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}
.template-placed-key { flex: 1; font-family: monospace; color: var(--gray-700); }
.template-placed-page { color: var(--gray-500); font-size: 11px; }
.template-pdf-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 450px;
}
.template-pdf-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pdf-page-select { padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 13px; }
.template-pdf-canvas-wrap {
  flex: 1;
  min-height: 400px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--gray-100);
  overflow: auto;
  position: relative;
}
.template-pdf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--gray-500);
  gap: 8px;
}
.template-pdf-canvas-container {
  position: relative;
  display: inline-block;
  margin: 16px;
}
.template-pdf-canvas-container canvas {
  display: block;
  box-shadow: var(--shadow-md);
  background: white;
}
.pdf-field-overlay {
  position: absolute;
  border: 2px dashed var(--primary);
  background: rgba(37, 99, 235, 0.1);
  pointer-events: auto;
  cursor: move;
  box-sizing: border-box;
}
.pdf-field-overlay:hover { background: rgba(37, 99, 235, 0.2); }

/* Picklist template */
.picklist-template-section { margin-top: 20px; }
.picklist-template-section h4 { margin-bottom: 8px; }
.picklist-template-textarea { min-height: 200px; }

/* Product groups (collapsible) */
.product-groups { display: flex; flex-direction: column; gap: 12px; }
.product-group-card { border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.product-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  transition: background 0.15s;
}
.product-group-header:hover { background: var(--gray-100); }
.product-group-toggle { font-size: 12px; color: var(--gray-600); min-width: 16px; }
.product-group-count { font-weight: normal; color: var(--gray-500); font-size: 14px; }
.product-group-body { padding: 0; }
.product-group-body .table { margin: 0; border-radius: 0; }

/* Quote builder product groups */
.quote-product-group { margin-bottom: 8px; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.quote-product-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: background 0.15s;
}
.quote-product-group-header:hover { background: var(--gray-100); }
.quote-product-group-toggle { font-size: 11px; color: var(--gray-600); min-width: 14px; }
.quote-product-group-count { font-weight: normal; color: var(--gray-500); font-size: 12px; }
.quote-product-group-body { padding: 4px; }

/* Empty state */
.empty-state { text-align: center; padding: 40px; color: var(--gray-600); }

/* Header actions */
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sort-label { font-size: 14px; color: var(--gray-600); margin: 0; white-space: nowrap; }
.sort-select { padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; background: white; }
.search-input { flex: 1; min-width: 200px; max-width: 320px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.search-input:focus { outline: none; border-color: var(--primary); }

/* Subproducts */
.subproduct-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.subproduct-select { flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.subproduct-qty { width: 60px; padding: 8px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.subproduct-list { list-style: none; margin: 8px 0 0; padding: 0; }
.subproduct-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--gray-50); border-radius: 6px; margin-bottom: 4px; font-size: 14px; }
.specimen-serial-list { margin-top: 8px; }
.specimen-serial-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.specimen-serial-row .specimen-index { min-width: 100px; font-size: 13px; color: var(--gray-600); }
.specimen-serial-row input { flex: 1; }
.product-subproducts { margin-top: 6px; font-size: 12px; color: var(--gray-600); }
.subproduct-badge { display: block; margin-top: 2px; }
.subproduct-badge.standard { color: var(--success); }
.subproduct-badge.accessory { color: var(--primary); }

/* Full-screen Quote Builder */
.quote-builder {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 2500;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.quote-builder.show { display: flex; }

.quote-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.quote-builder-header h2 { margin: 0; font-size: 20px; }
.quote-builder-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quote-name-field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.quote-name-field label { font-size: 13px; color: var(--gray-600); white-space: nowrap; }
.quote-address-field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.quote-address-field label { font-size: 13px; color: var(--gray-600); white-space: nowrap; }
.quote-name-input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-builder-meta-row { margin-bottom: 8px; display: flex; gap: 20px; flex-wrap: wrap; }
.quote-name-display { font-weight: normal; color: var(--gray-600); }
.quote-nr-cell { display: flex; flex-direction: column; gap: 4px; }
.quote-version-select { max-width: 200px; padding: 4px 8px; font-size: 12px; border: 1px solid var(--gray-300); border-radius: 4px; background: var(--gray-50); }
.quote-customer-select { min-width: 180px; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-date-input { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-date-label { font-size: 12px; color: var(--gray-600); margin-right: 4px; white-space: nowrap; }
.quote-item-extra, .product-line-extra { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; }
.quote-item-extra label, .product-line-extra label { color: var(--gray-600); }
.quote-item-discount-suffix { color: var(--gray-500); font-size: 12px; }
.quote-extra-input { width: 80px; padding: 4px 8px; font-size: 13px; }
.form-check .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; }
.events-mode-section .events-mode-explanation { margin-top: 10px; padding: 12px; background: var(--gray-50); border-radius: 8px; border-left: 3px solid var(--primary); }
.events-mode-explanation p { margin: 0 0 6px 0; font-size: 13px; line-height: 1.5; }
.events-mode-explanation p:last-child { margin-bottom: 0; }
.quote-total { font-weight: bold; font-size: 18px; color: var(--primary); min-width: 80px; text-align: right; }
.quote-builder-actions { display: flex; gap: 8px; }

.quote-builder-body {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.quote-catalog-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-200);
  min-height: 0;
  background: white;
}
.quote-catalog-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.quote-catalog-header h3 { margin: 0; font-size: 15px; }
.quote-catalog-hint {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.quote-chapters-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--gray-200);
  min-height: 0;
  background: var(--gray-50);
}
.quote-chapters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.quote-chapters-header h3 { margin: 0; font-size: 15px; }
.quote-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}
.quote-chapter-card {
  background: white;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.quote-chapter-card:hover { box-shadow: var(--shadow-md); }
.quote-chapter-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.quote-chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-bottom: 1px solid var(--gray-200);
}
.quote-chapter-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--gray-600);
}
.quote-chapter-toggle:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}
.quote-chapter-toggle-icon {
  font-size: 12px;
}
.quote-chapter-body {
  border-top: none;
}
.quote-chapter-body.drag-over-catalog {
  background: rgba(37, 99, 235, 0.06);
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
}
.quote-chapter-actions {
  display: flex;
  gap: 4px;
}
.quote-chapter-edit-input {
  flex: 1;
  min-width: 100px;
  padding: 4px 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 14px;
}
.quote-chapter-check { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
.quote-chapter-check input { cursor: pointer; }
.quote-chapter-title { font-weight: 600; font-size: 15px; color: var(--gray-800); }
.quote-chapter-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.quote-chapter-items {
  padding: 12px;
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
}
.quote-chapter-card.selected .quote-chapter-body.chapter-expanded .quote-chapter-items {
  max-height: 55vh;
  min-height: 120px;
}
.quote-chapter-empty {
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}
.quote-chapter-add {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.quote-chapter-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.quote-add-select {
  flex: 1;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
}
.quote-search-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}
.quote-search-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-group-filter { min-width: 120px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-product-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.quote-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: background 0.15s;
  cursor: grab;
  user-select: none;
}
.quote-product-row:active { cursor: grabbing; }
.quote-product-row:hover { background: var(--gray-50); }
.quote-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quote-product-name { font-weight: 500; font-size: 14px; }
.quote-product-meta { font-size: 12px; color: var(--gray-600); }
.quote-product-price { font-size: 13px; color: var(--primary); font-weight: 500; }
.quote-load-more { padding: 12px; text-align: center; }
.quote-empty { padding: 40px; text-align: center; color: var(--gray-600); }
.quote-qty-input { width: 56px; padding: 6px 8px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 13px; text-align: center; }
.quote-qty-edit { width: 48px; }

.quote-items-panel {
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  min-height: 0;
}
.quote-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}
.quote-items-header h3 { margin: 0; font-size: 16px; }
.quote-items-total { font-weight: bold; font-size: 18px; color: var(--primary); }
.quote-chapters-visibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 12px;
}
.quote-chapters-label { font-size: 13px; font-weight: 500; color: var(--gray-600); }
.quote-chapter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--gray-700);
}
.quote-chapter-check input { cursor: pointer; }
.quote-chapter-header {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-200);
}
.quote-chapter-header:first-child { margin-top: 0; }
.quote-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.quote-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-200);
}
.quote-item-drag-handle {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--gray-400);
  font-size: 14px;
  letter-spacing: -2px;
  user-select: none;
  -webkit-user-select: none;
}
.quote-item-drag-handle:active { cursor: grabbing; }
.quote-item-drag-handle:hover { color: var(--gray-600); }
.quote-item-row.item-edited { background: #fef9c3; border-color: #facc15; }
.quote-item-row.item-new { background: #dcfce7; border-color: #22c55e; }
.quote-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quote-item-name { font-weight: 500; font-size: 14px; }
.quote-item-detail { font-size: 12px; color: var(--gray-600); }
.quote-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.quote-item-line-total { font-weight: 500; min-width: 60px; text-align: right; }
.quote-items-empty { padding: 40px; text-align: center; color: var(--gray-600); }
.quote-summary-stats { padding: 16px; }
.quote-summary-stats p { margin: 4px 0; color: var(--gray-600); font-size: 14px; }
.quote-items-summary { padding: 16px; border-top: 1px solid var(--gray-200); background: white; }
.quote-summary-total { font-size: 20px; font-weight: bold; color: var(--primary); margin-top: 4px; }
.quote-status-select { padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.quote-discount-section { margin: 12px 0; padding: 12px 0; border-top: 1px solid var(--gray-200); }
.quote-rounding-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quote-rounding-row label { font-size: 13px; color: var(--gray-600); min-width: 100px; }
.quote-rounding-type { padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 13px; }
.quote-rounding-value { width: 80px; padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 13px; }
.quote-discount-line { font-size: 13px; color: var(--gray-600); margin: 4px 0; }

/* Quote builder responsive */
@media (max-width: 1200px) {
  .quote-builder-body { grid-template-columns: 240px 1fr 280px; }
}
@media (max-width: 1024px) {
  .quote-builder-body { grid-template-columns: 1fr; }
  .quote-catalog-panel { border-right: none; border-bottom: 1px solid var(--gray-200); max-height: 35vh; }
  .quote-chapters-panel { border-right: none; border-bottom: 1px solid var(--gray-200); max-height: 50vh; }
  .quote-items-panel { max-height: none; }
}
@media (max-width: 768px) {
  .quote-builder-header { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .quote-builder-meta { flex-direction: column; }
  .quote-customer-select { min-width: 100%; }
  .quote-search-bar { flex-direction: column; }
  .quote-group-filter { min-width: 100%; }
  .quote-product-row { flex-wrap: wrap; }
  .quote-product-add { width: 100%; justify-content: flex-end; }
  .quote-item-row { flex-wrap: wrap; }
  .quote-item-actions { width: 100%; justify-content: flex-end; }
}

/* Warehouse */
.warehouse-jobs { display: flex; flex-direction: column; gap: 20px; }
.warehouse-job-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
}
.warehouse-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.warehouse-job-header-click {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.warehouse-job-header-click:hover { opacity: 0.9; }
.warehouse-job-toggle-icon { font-size: 12px; color: var(--gray-600); flex-shrink: 0; }
.warehouse-job-title { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.warehouse-job-title strong { font-size: 16px; color: var(--gray-900); }
.warehouse-job-meta { font-size: 13px; color: var(--gray-600); }
.warehouse-job-actions { flex-shrink: 0; }
.warehouse-job-items { padding: 12px; }
.warehouse-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--gray-50);
  flex-wrap: wrap;
}
.warehouse-item-row:hover { background: var(--gray-100); }
.warehouse-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
}
.warehouse-check input { cursor: pointer; width: 18px; height: 18px; }
.warehouse-item-product { flex: 1; min-width: 120px; font-weight: 500; }
.warehouse-item-group { font-size: 13px; color: var(--gray-600); min-width: 100px; }
.warehouse-item-qty { font-weight: 600; min-width: 36px; text-align: right; }
.warehouse-detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.warehouse-detail-header h2 { margin: 0; font-size: 20px; }
.warehouse-detail-meta { font-size: 14px; color: var(--gray-600); }
.warehouse-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.warehouse-detail-items { padding: 16px; }
.warehouse-add-extra-form {
  margin: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
.warehouse-add-extra-form h4 { margin: 0 0 12px 0; font-size: 16px; }
.warehouse-add-extra-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.warehouse-add-extra-row select { flex: 1; min-width: 200px; }
.warehouse-invoice-confirm-modal { max-width: 400px; }
.warehouse-invoice-confirm-modal p { margin-bottom: 16px; }
.warehouse-invoice-confirm-modal .modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Archive search */
.archive-search { margin-bottom: 20px; padding: 16px; background: var(--gray-50); border-radius: 8px; border: 1px solid var(--gray-200); }
.archive-search-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.archive-search .form-group { margin-bottom: 0; }
.archive-search .form-inline { display: flex; align-items: center; gap: 8px; }
.archive-search .form-inline span { color: var(--gray-500); }
@media (max-width: 768px) {
  .warehouse-job-header { flex-direction: column; align-items: stretch; }
  .warehouse-item-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .warehouse-item-product { min-width: 100%; }
  .warehouse-add-extra-row { flex-direction: column; align-items: stretch; }
}

/* Responsive */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-inline { flex-direction: column; align-items: stretch; }
  .product-selector { flex-direction: column; align-items: stretch; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px; }
  .header h1 { font-size: 20px; }
}
