/**
 * Workmen Management System (WMS)
 * Enterprise Design System & Modern UI Tokens
 */

:root {
  /* Brand & Theme Primaries */
  --color-primary: #0f766e;
  --color-primary-hover: #115e59;
  --color-primary-light: #e6f4f1;
  --color-primary-subtle: #c4e7e1;
  --color-primary-contrast: #ffffff;

  /* Semantic State Colors */
  --color-success: #137333;
  --color-success-hover: #0d5424;
  --color-success-bg: #e6f4ea;
  --color-success-border: #ceead6;
  --color-success-text: #137333;

  --color-warning: #b06000;
  --color-warning-hover: #8f4e00;
  --color-warning-bg: #fef7e0;
  --color-warning-border: #feefc3;
  --color-warning-text: #8a3b00;

  --color-danger: #b3261e;
  --color-danger-hover: #8c1d18;
  --color-danger-bg: #fce8e6;
  --color-danger-border: #fad2cf;
  --color-danger-text: #b3261e;

  --color-info: #0284c7;
  --color-info-hover: #0369a1;
  --color-info-bg: #e0f2fe;
  --color-info-border: #bae6fd;
  --color-info-text: #0284c7;

  /* Neutrals & Surfaces */
  --color-bg-app: #f8fafc;
  --color-bg-canvas: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f8fafc;
  --color-surface-elevated: #ffffff;

  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-focus: #0f766e;

  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Modern Layered Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Core Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-app);
  color: var(--color-text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Universal Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; }
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* Custom Elevated Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Modern Form Elements & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  appearance: none;
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.form-control option {
  color: var(--color-text-main);
  background-color: var(--color-surface);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--color-bg-canvas);
  color: var(--color-text-muted);
  cursor: not-allowed;
  border-color: var(--color-border);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.25rem;
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.25;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 8px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.btn-success {
  background-color: var(--color-success);
  color: #ffffff;
}
.btn-success:hover {
  background-color: var(--color-success-hover);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: var(--color-danger-hover);
}

.btn-outline {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-body);
}
.btn-outline:hover {
  background-color: var(--color-surface-hover);
  border-color: #cbd5e1;
  color: var(--color-text-main);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  padding: 0.5rem;
  border-radius: var(--radius-full);
}

/* Responsive Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background-color: #f8fafc;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover td {
  background-color: #f8fafc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Keep account photos and form labels legible across every selected theme. */
.account-profile-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 750;
}
.account-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-profile-avatar-small { width: 52px; height: 52px; flex: 0 0 52px; margin: 0; font-size: 1.2rem; }
.profile-photo-user-picker, .profile-photo-upload-form { display: grid; gap: 9px; }
.profile-photo-user-picker { margin-bottom: 18px; }
.profile-photo-user-picker > div { min-width: 0; }
.profile-photo-user-picker .form-control { flex: 1; min-width: 0; }
.profile-photo-target { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-canvas); color: var(--color-text-main); }
.profile-photo-target > div:last-child { display: grid; gap: 3px; min-width: 0; }
.profile-photo-target strong { color: var(--color-text-main); overflow-wrap: anywhere; }
.profile-photo-target span { color: var(--color-text-muted); font-size: .78rem; }
.profile-photo-upload-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.profile-photo-upload-form label, .profile-photo-upload-form small { grid-column: 1 / -1; }
.profile-photo-upload-form .form-control { min-width: 0; }
.profile-photo-upload-form .btn { min-height: 42px; }
.profile-admin-fields-form { display: grid; gap: 4px; }
.profile-admin-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.profile-admin-fields-grid .form-group { min-width: 0; }
.profile-admin-fields-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--color-border); }
.profile-admin-fields-footer > span { color: var(--color-text-muted); font-size: .74rem; }
.profile-readonly-fields > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-canvas); }
.profile-readonly-fields span { color: var(--color-text-muted); font-size: .69rem; font-weight: 750; text-transform: uppercase; }
.profile-readonly-fields strong { color: var(--color-text-main); font-size: .84rem; overflow-wrap: anywhere; }
.profile-contact-form { display: flex; align-items: end; gap: 12px; }
.profile-contact-form .form-group { width: min(100%, 460px); margin-bottom: 0; }
.profile-contact-form .btn { min-height: 42px; }

@media (max-width: 700px) {
  .profile-photo-upload-form { grid-template-columns: minmax(0, 1fr); }
  .profile-photo-upload-form .btn { width: 100%; }
  .profile-admin-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-admin-fields-footer, .profile-contact-form { align-items: stretch; flex-direction: column; }
  .profile-admin-fields-footer .btn, .profile-contact-form .btn { width: 100%; }
  .profile-contact-form .form-group { width: 100%; }
}

/* Polished Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.badge-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

.badge-warning {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
}

.badge-danger {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger-text);
}

.badge-info {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  color: var(--color-info-text);
}

.badge-muted {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

/* Modals & Backdrop Blur */
.modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--color-bg-app);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success { background-color: #0f5132; color: #ffffff; }
.toast-error   { background-color: var(--color-danger); color: #ffffff; }
.toast-warning { background-color: #78350f; color: #ffffff; }

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Food requisitions: approval-first workspace */
.food-index-page,
.food-detail-page,
.food-create-page {
  color: var(--color-text-main);
}

.food-index-header,
.food-detail-header {
  padding: 22px 24px;
  border: 1px solid #dbe6f3;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 92% 10%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
  box-shadow: var(--shadow-sm);
}

.food-index-header h1,
.food-detail-header h1 {
  letter-spacing: -0.035em;
}

.food-index-header .btn,
.food-detail-header .btn {
  min-height: 40px;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.food-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.food-summary-card {
  position: relative;
  display: flex;
  min-height: 130px;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  padding: 18px 19px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-main);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.food-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c7d8ed;
  color: var(--color-text-main);
}

.food-summary-card::after {
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.045;
}

.food-summary-label {
  color: var(--color-text-muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.food-summary-card strong {
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.food-summary-hint {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.food-summary-card.is-pending { color: #a65b00; }
.food-summary-card.is-approved { color: #137333; }
.food-summary-card.is-fulfilled { color: #0969a8; }
.food-summary-card.is-rejected { color: #b3261e; }

.food-index-page .ot-tab-link {
  border-radius: 10px 10px 0 0;
  white-space: nowrap;
}

.food-index-page .ot-tab-link.active {
  border-bottom: 2px solid var(--color-primary);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent);
  color: var(--color-primary) !important;
}

.food-table-card {
  border: 1px solid #dce5ef;
  box-shadow: var(--shadow-sm);
}

.food-table-card thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f6f8fc;
  color: #526174;
  font-size: 0.7rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.food-table-card tbody tr:hover {
  background: #f8fbff;
}

.food-current-role {
  max-width: 180px;
  margin-top: 5px;
  color: #9a5700;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.food-detail-page > div[style*="grid-template-columns"] {
  align-items: start;
}

.food-detail-page .card {
  border-color: #dce5ef;
  box-shadow: var(--shadow-sm);
}

.food-detail-page .card-header {
  gap: 12px;
}

.food-approval-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.food-approval-card .card-header {
  align-items: flex-start;
}

.food-approval-caption {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.food-sequence-list {
  display: flex;
  flex-direction: column;
  padding: 5px 0 4px;
}

.food-sequence-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px 0 12px;
}

.food-sequence-step:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: -2px;
  left: 15px;
  width: 2px;
  background: #e1e8f0;
  content: "";
}

.food-step-marker {
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid #d9e1ea;
  border-radius: 50%;
  background: #f5f7fa;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 750;
}

.food-sequence-step.is-complete .food-step-marker {
  border-color: #b9e3c3;
  background: #e6f4ea;
  color: #137333;
}

.food-sequence-step.is-current .food-step-marker {
  border: 2px solid #f1c27d;
  background: #fff7e6;
  color: #9a5700;
  box-shadow: 0 0 0 4px rgba(240, 171, 56, 0.12);
}

.food-sequence-step.is-rejected .food-step-marker {
  border-color: #f2c4c0;
  background: #fce8e6;
  color: #b3261e;
}

.food-step-content {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.food-step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.food-step-state {
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.is-current .food-step-state { color: #9a5700; }
.is-complete .food-step-state { color: #137333; }
.is-rejected .food-step-state { color: #b3261e; }

.food-step-meta,
.food-step-comment {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.food-step-comment {
  padding: 7px 9px;
  border-left: 2px solid #d7e2ef;
  border-radius: 0 6px 6px 0;
  background: #f7f9fc;
  color: var(--color-text-body);
}

.food-step-empty {
  padding: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.food-approval-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.food-current-approval {
  box-shadow: var(--shadow-sm);
}

.food-create-page .food-create-intro {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid #dbe6f3;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 36%), #fff;
  box-shadow: var(--shadow-sm);
}

.food-create-page .food-form-section {
  overflow: hidden;
  border-color: #dce5ef;
  box-shadow: var(--shadow-sm);
}

.food-create-page .food-form-section .card-header {
  margin: -1px -1px 18px;
  padding: 15px 18px;
  border-bottom: 1px solid #e8edf3;
  background: #f8faff;
}

.food-route-preview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 18px;
  padding: 17px 19px;
  border: 1px solid #d6e3f2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f4f8ff, #ffffff 75%);
}

.food-route-title {
  font-size: 0.9rem;
  font-weight: 750;
}

.food-route-subtitle {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.food-route-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.food-route-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #dce6f0;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-body);
  font-size: 0.75rem;
  font-weight: 650;
}

.food-route-steps li:not(:last-child):not(.is-unconfigured)::after {
  position: relative;
  right: -14px;
  color: #8fa3bb;
  content: "›";
  font-size: 1.05rem;
}

.food-route-steps li > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e9f1ff;
  color: var(--color-primary);
  font-size: 0.67rem;
  font-weight: 800;
}

.food-route-steps .is-unconfigured {
  border-style: dashed;
  background: #fff9e9;
  color: #8a5a00;
}

@media (max-width: 1000px) {
  .food-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-approval-card { position: static; }
}

@media (max-width: 650px) {
  .food-index-header,
  .food-detail-header,
  .food-create-page .food-create-intro { padding: 17px; }
  .food-summary-grid { gap: 9px; }
  .food-summary-card { min-height: 118px; padding: 14px; }
  .food-summary-card strong { font-size: 1.55rem; }
  .food-summary-hint { font-size: 0.72rem; }
  .food-detail-page > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .food-route-preview { grid-template-columns: 1fr; gap: 11px; }
}

/* Shared full-viewport layout and responsive sizing for every module. */
html, body { min-width: 320px; min-height: 100%; }
body { height: 100vh !important; height: 100dvh !important; }
.workspace-container { width: 100%; min-width: 0; min-height: 0; flex: 1 1 auto; }
.workspace-canvas { min-width: 0; min-height: 0; flex: 1 1 0; }
.content { width: 100%; min-width: 0; min-height: 0; flex: 1 0 auto; padding: clamp(12px, 2vw, 28px) !important; }
.content > div[style*="max-width"],
.content > main[style*="max-width"],
.content > section[style*="max-width"],
.content > .approval-settings-page,
.content > .roles-permissions-page,
.content > .theme-settings-page,
.content > .workman-form-page { width: 100% !important; max-width: none !important; }
.content > * { min-width: 0; }
.table-responsive { width: 100%; max-width: 100%; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
img, svg, canvas { max-width: 100%; }

/* Workman profiles keep every detail readable without a fixed-width side rail. */
.workman-profile-shell { width: 100%; max-width: none !important; }
.workman-profile-main-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.workman-profile-shell .workman-profile-main-grid > *,
.profile-details-grid > * { min-width: 0; }
.profile-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 22px; }
.profile-detail-value { overflow-wrap: anywhere; word-break: normal; }
.profile-detail-card { min-width: 0; padding: 8px 0; }

/* Universal safe multi-selection for module tables. */
.bulk-select-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0 0 10px; padding: 9px 11px; border: 1px solid #d9e6e7; border-radius: 12px; background: linear-gradient(115deg, #f0f8f7, #fff 75%); color: #294252; }
.bulk-select-toolbar[hidden] { display: none !important; }
.bulk-select-count { margin-right: auto; color: #496171; font-size: .76rem; font-weight: 750; }
.bulk-select-toolbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid #d6e2e6; border-radius: 9px; background: #fff; color: #1d4350; font: inherit; font-size: .73rem; font-weight: 720; cursor: pointer; }
.bulk-select-toolbar button:hover { border-color: #9bcac1; background: #f7fcfb; }
.bulk-select-checkbox { width: 17px; height: 17px; accent-color: var(--color-primary, #0f766e); vertical-align: middle; cursor: pointer; }
th.bulk-select-cell, td.bulk-select-cell { width: 40px; min-width: 40px; padding-inline: 8px !important; text-align: center; }
tr.bulk-row-selected { background: color-mix(in srgb, var(--color-primary) 6%, transparent) !important; }

/* Statutory documents */
.statutory-page { width: 100%; max-width: none; padding-bottom: 28px; }
.statutory-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: clamp(17px, 2.5vw, 26px); border: 1px solid var(--color-border); border-radius: 18px; background: radial-gradient(ellipse at 92% 0%, color-mix(in srgb,var(--color-primary) 13%,transparent), transparent 38%), linear-gradient(125deg,#fff,var(--color-primary-light)); box-shadow: 0 6px 22px rgba(25,51,68,.045); }
.statutory-eyebrow { margin-bottom: 5px; color: var(--color-primary); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.statutory-hero h1 { margin: 0; color: #183345; font-size: clamp(1.25rem,2.7vw,1.7rem); font-weight: 820; letter-spacing: -.035em; }
.statutory-hero p { margin: 7px 0 0; color: #657987; font-size: .82rem; line-height: 1.5; }
.statutory-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.statutory-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 15px; }
.statutory-form-grid .span-all { grid-column: 1 / -1; }
.statutory-type-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #d9e6e8; border-radius: 999px; background: #f7fbfa; color: #365466; font-size: .69rem; font-weight: 760; }
.statutory-document-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #304857; line-height: 1.8; }
.statutory-print-sheet { width: min(100%, 900px); margin: 0 auto; padding: clamp(22px,5vw,56px); border: 1px solid #dce5e8; border-radius: 12px; background: #fff; box-shadow: 0 10px 32px rgba(25,51,68,.08); }
.statutory-print-header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--color-primary); }
.statutory-print-header h1 { margin: 0; color: #183345; font-size: 1.4rem; }
.statutory-print-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; margin: 20px 0; }
.statutory-print-meta div { min-width: 0; }
.statutory-print-meta small { display: block; margin-bottom: 3px; color: #788b97; font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.statutory-print-content { min-height: 220px; margin-top: 24px; }
.statutory-pay-table { width: 100%; border-collapse: collapse; }
.statutory-pay-table th,.statutory-pay-table td { padding: 9px 11px; border: 1px solid #dce5e8; text-align: right; }
.statutory-pay-table th:first-child,.statutory-pay-table td:first-child { text-align: left; }
.statutory-signature { margin: 48px 0 0 auto; width: 220px; padding-top: 9px; border-top: 1px solid #718591; text-align: center; color: #516977; font-size: .75rem; }

/* API integration management and workman field assists */
.api-management-page { width: 100%; max-width: none; padding-bottom: 28px; }
.api-management-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; padding:clamp(18px,2.5vw,27px); border:1px solid var(--color-border); border-radius:19px; background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--color-primary) 14%,transparent),transparent 40%),linear-gradient(125deg,#fff,var(--color-primary-light)); box-shadow:0 7px 24px rgba(24,51,69,.05); }
.api-management-hero h1 { margin:0; color:#183648; font-size:clamp(1.3rem,2.7vw,1.75rem); font-weight:830; letter-spacing:-.035em; }
.api-management-hero p { margin:7px 0 0; color:#647986; font-size:.82rem; line-height:1.55; }
.api-management-eyebrow { margin-bottom:5px; color:var(--color-primary); font-size:.66rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.api-management-secure-pill { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #cde7dc; border-radius:999px; background:#f0faf5; color:#176248; font-size:.69rem; font-weight:760; white-space:nowrap; }
.api-management-secure-pill span { width:8px; height:8px; border-radius:50%; background:#1c9b69; box-shadow:0 0 0 3px #d8f4e8; }
.api-management-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr)); gap:15px; }
.api-management-card { display:flex; min-width:0; flex-direction:column; padding:clamp(16px,2vw,22px); border:1px solid #dce6e9; border-radius:17px; background:#fff; box-shadow:0 4px 16px rgba(24,51,69,.045); }
.api-card-heading { display:flex; align-items:flex-start; gap:11px; margin-bottom:16px; }
.api-card-heading h2 { margin:1px 0 3px; color:#203d4e; font-size:.96rem; font-weight:800; }
.api-card-heading p { margin:0; color:#758995; font-size:.71rem; line-height:1.4; }
.api-card-icon { display:grid; width:39px; height:39px; flex:0 0 39px; place-items:center; border-radius:12px; }
.api-card-icon svg { width:20px; height:20px; fill:currentColor; }
.api-icon-bank { background:#e6f5f0; color:#14745d; }.api-icon-ifsc { background:#edf3ff; color:#315ca8; }.api-icon-pin { background:#fff3e9; color:#b85b1c; }
.api-status-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid #edf1f3; color:#536a78; font-size:.74rem; }
.api-status { font-size:.72rem; }.api-status.is-ready { color:#18764e; }.api-status.is-pending { color:#9a650c; }
.api-card-note { margin:11px 0; color:#697d89; font-size:.72rem; line-height:1.55; }
.api-setup-note { display:grid; gap:5px; margin:8px 0 13px; padding:12px; border:1px solid #f1dfb8; border-radius:11px; background:#fffaf0; color:#704f14; font-size:.72rem; }
.api-setup-note code,.api-card-note code { padding:2px 5px; border-radius:5px; background:#f0f3f5; color:#395366; font-size:.68rem; }
.api-setup-note small { color:#80672e; line-height:1.45; }
.api-doc-link { align-self:flex-start; margin-top:auto; padding-top:11px; color:var(--color-primary); font-size:.72rem; font-weight:740; text-decoration:none; }
.api-doc-link:hover { text-decoration:underline; }
.api-management-test { margin-top:11px; padding:12px; border:1px solid #e4ebee; border-radius:12px; background:#fafcfd; }
.api-management-test > label { display:block; margin-bottom:7px; color:#405868; font-size:.7rem; font-weight:750; }
.api-test-row { display:flex; align-items:center; gap:7px; }
.api-test-row .form-control { min-width:0; }
.api-test-result { margin-top:8px; color:#627885; font-size:.71rem; line-height:1.5; overflow-wrap:anywhere; }
.api-test-result.is-error { color:#a7352c; }.api-test-result.is-success { color:#1b714b; }
.api-management-footer { display:flex; align-items:flex-start; gap:10px; margin-top:15px; padding:13px 15px; border:1px solid #dce8eb; border-radius:13px; background:#f8fbfc; color:#637986; font-size:.73rem; line-height:1.5; }
.api-management-footer strong { flex:0 0 auto; color:#284553; }
.workman-api-assist { grid-column:1/-1; min-width:0; padding:13px; border:1px solid #dce9e8; border-radius:13px; background:linear-gradient(120deg,#f4faf8,#fff 80%); }
.workman-api-assist .assist-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; color:#294b56; font-size:.75rem; font-weight:780; }
.workman-api-assist .assist-help { display:block; margin-top:5px; color:#72848d; font-size:.67rem; line-height:1.45; }
.workman-api-result { margin-top:8px; color:#59717e; font-size:.72rem; line-height:1.45; overflow-wrap:anywhere; }
.workman-api-result.is-error { color:#aa3831; }.workman-api-result.is-success { color:#16704a; }.workman-api-result.is-pending { color:#8a620e; }
.workman-api-assist select { margin-top:8px; }
.workman-bank-consent { display:flex; align-items:flex-start; gap:8px; margin-top:10px; color:#536a78; font-size:.69rem; line-height:1.45; }
.workman-bank-consent input { margin-top:2px; accent-color:var(--color-primary); }
.workman-bank-verify-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:9px; }

@media (max-width: 900px) {
  .workman-profile-main-grid { grid-template-columns: minmax(0,1fr); }
  .workman-profile-main-grid > .card:first-child { max-width: none; }
}

@media (max-width: 650px) {
  .content [style*="grid-template-columns: 1fr 1fr"],
  .content [style*="grid-template-columns: 2fr 1fr"],
  .content [style*="grid-template-columns: 320px"],
  .content [style*="grid-template-columns: 300px"] { grid-template-columns: minmax(0,1fr) !important; }
  .content [style*="grid-template-columns: repeat(2"] { grid-template-columns: minmax(0,1fr) !important; }
  .statutory-print-sheet { padding: 18px; }
}

@media (max-width: 768px) {
  .gmail-header { gap: 8px; padding-inline: 8px; }
  .header-brand-group { min-width: 0 !important; flex: 1 1 auto; gap: 7px; }
  .brand-logo-wrap { min-width: 0; }
  .brand-logo-text { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gmail-sidebar { width: min(84vw, 300px) !important; }
  .content { padding: 12px !important; }
  .content .card { padding: 16px; }
  .content .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .content table.table { min-width: 680px; }
  .content .table-responsive table.table { width: max-content; min-width: 680px; }
  .content h1 { font-size: clamp(1.25rem, 5vw, 1.65rem); }
  .content .btn { max-width: 100%; }
  .statutory-hero { flex-direction: column; }
  .api-management-hero { flex-direction:column; }
  .api-management-grid { grid-template-columns:minmax(0,1fr); }
  .api-management-footer { flex-direction:column; gap:3px; }
  .statutory-hero-actions { width: 100%; }
  .statutory-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
  .content { padding: 9px !important; }
  .content .card { border-radius: 12px; padding: 13px; }
  .content .table-responsive table.table { min-width: 620px; }
  .content .btn { white-space: normal; }
  .statutory-form-grid { grid-template-columns: minmax(0,1fr); }
  .statutory-form-grid .span-all { grid-column: auto; }
  .statutory-print-meta { grid-template-columns: minmax(0,1fr); }
  .statutory-print-header { flex-direction: column; }
  .api-test-row { align-items:stretch; flex-direction:column; }
  .workman-bank-verify-row .btn { width:100%; }
}

/* Modern contractor scope and workflow settings */
.food-scope-picker .card-header { margin-bottom: 12px; }
.food-scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.food-scope-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 15px 42px 15px 15px;
  border: 1px solid #dce5ed;
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.food-scope-option:hover { border-color: #8bc9bf; background: #fbfefd; transform: translateY(-1px); }
.food-scope-option:has(input:checked) { border-color: var(--color-primary); background: linear-gradient(135deg, var(--color-primary-light), #fff 76%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent); }
.food-scope-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.food-scope-icon, .food-auto-summary-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.food-scope-icon.is-selected { background: #eef2ff; color: #4f46e5; }
.food-scope-icon svg, .food-auto-summary-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.food-scope-copy { display: grid; gap: 4px; }
.food-scope-copy strong { color: var(--color-text-main); font-size: .88rem; }
.food-scope-copy small { color: var(--color-text-muted); font-size: .75rem; line-height: 1.45; }
.food-scope-check { position: absolute; top: 13px; right: 14px; color: transparent; font-size: .9rem; font-weight: 800; }
.food-scope-option:has(input:checked) .food-scope-check { color: var(--color-primary); }
.food-scope-option:focus-within { outline: 3px solid color-mix(in srgb, var(--color-primary) 24%, transparent); outline-offset: 2px; }
.food-contractor-auto-summary { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px 13px; border: 1px solid #c9e8dd; border-radius: var(--radius-md); background: #f1fbf7; color: #155e50; font-size: .82rem; font-weight: 650; }
.food-auto-summary-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; background: #d8f3e7; }
.food-auto-summary-icon svg { width: 17px; height: 17px; }

.screening-page-header {
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #dbe8e8;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 92% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 36%), #fff;
  box-shadow: var(--shadow-sm);
}
.screening-header-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.screening-header-content h1 { margin: 0; font-size: 1.55rem; font-weight: 780; letter-spacing: -.035em; }
.screening-header-content p { margin: 7px 0 0; color: var(--color-text-muted); font-size: .86rem; }
.screening-header-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border: 1px solid var(--color-primary-subtle); border-radius: 16px; background: var(--color-primary-light); color: var(--color-primary); }
.screening-header-icon svg { width: 25px; height: 25px; fill: currentColor; }
.screening-route-preview { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.5fr); align-items: center; gap: 14px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #d6e5e7; border-radius: var(--radius-lg); background: linear-gradient(120deg, #f3f9fa, #fff 75%); }
.screening-route-title { display: flex; align-items: center; gap: 10px; }
.screening-route-title > span:last-child { display: grid; gap: 2px; }
.screening-route-title strong { color: var(--color-text-main); font-size: .84rem; }
.screening-route-title small { color: var(--color-text-muted); font-size: .7rem; }
.screening-route-icon, .screening-form-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: var(--color-primary-light); color: var(--color-primary); }
.screening-route-icon svg, .screening-form-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screening-route-unconfigured { color: #8a5a00; font-size: .78rem; }
.screening-review-card { overflow: hidden; margin-bottom: 18px; border-color: #d7e4ef; box-shadow: 0 7px 22px rgba(24, 56, 75, .07); }
.screening-review-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border-subtle); }
.screening-review-head h2 { margin: 3px 0; font-size: 1.05rem; }
.screening-review-head p { color: var(--color-text-muted); font-size: .78rem; }
.screening-eyebrow { color: var(--color-primary); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.screening-review-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border-subtle); }
.screening-review-actions .form-control { flex: 1; min-width: 160px; }
.screening-tier-note, .screening-no-route { display: block; margin-top: 3px; color: var(--color-text-muted); font-size: .68rem; }
.screening-form-card .card-title { display: inline-flex; align-items: center; gap: 9px; }
.screening-form-icon { width: 30px; height: 30px; flex-basis: 30px; background: #eef2ff; color: #4f46e5; }
.screening-form-icon svg { width: 17px; height: 17px; }

.approval-settings-page { max-width: 1180px; margin: 0 auto; }
.approval-settings-page.approval-settings-fullscreen { width: 100%; max-width: none; margin: 0; padding: 24px 24px 0; }
.approval-settings-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 21px 23px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at 94% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 37%), #fff; box-shadow: var(--shadow-sm); }
.approval-settings-breadcrumb { margin-bottom: 9px; color: var(--color-text-muted); font-size: .75rem; }
.approval-settings-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.approval-settings-breadcrumb span { margin: 0 5px; color: #a0adba; }
.approval-settings-heading { display: flex; align-items: center; gap: 13px; }
.approval-settings-heading h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; }
.approval-settings-heading p { margin-top: 4px; color: var(--color-text-muted); font-size: .82rem; }
.approval-settings-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; background: var(--color-primary-light); color: var(--color-primary); }
.approval-settings-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.approval-settings-create { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-full); box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.approval-settings-create svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.approval-settings-table { padding: 0; overflow: hidden; border-color: #dce5ea; }
.approval-settings-fullscreen .approval-settings-table { overflow-x: auto; }
.approval-settings-table .table { margin: 0; }
.approval-settings-table thead { background: #f5f8fa; }
.approval-settings-table th { padding-top: 13px; padding-bottom: 13px; color: #536273; font-size: .69rem; letter-spacing: .055em; text-transform: uppercase; }
.approval-settings-table td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.readiness-flow-card { margin: 22px 0 30px; padding: 22px; border: 1px solid #dce5ea; border-radius: var(--radius-xl); background: linear-gradient(140deg, #fff 55%, #f3fbf9); box-shadow: var(--shadow-sm); }
.readiness-flow-fullscreen { margin: 22px 24px 30px; }
.readiness-flow-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 17px; }
.readiness-flow-kicker { color: var(--color-primary); font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
.readiness-flow-heading h2 { margin: 5px 0 3px; color: #172b3a; font-size: 1.15rem; font-weight: 800; }
.readiness-flow-heading p { max-width: 720px; margin: 0; color: #667788; font-size: .79rem; line-height: 1.5; }
.readiness-flow-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); font-size: .69rem; font-weight: 800; }
.readiness-flow-alert { margin: 12px 0; padding: 10px 13px; border: 1px solid; border-radius: 10px; font-size: .78rem; font-weight: 700; }
.readiness-flow-alert.is-success { border-color: #b8dfc7; background: #effaf3; color: #176b43; }
.readiness-flow-alert.is-error { border-color: #f2c4c1; background: #fff3f2; color: #a32e28; }
.readiness-flow-scope { display: flex; align-items: center; gap: 12px; margin: 15px 0; padding: 13px; border: 1px solid #e1e9ed; border-radius: 12px; background: #fff; }
.readiness-flow-scope label { color: #425466; font-size: .75rem; font-weight: 750; }
.readiness-flow-scope select { max-width: 380px; }
.readiness-flow-source { margin-left: auto; color: #718096; font-size: .69rem; font-weight: 700; }
.readiness-stage-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.readiness-stage-item { display: grid; grid-template-columns: 28px 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #dfe8eb; border-radius: 13px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.readiness-stage-item:hover { border-color: var(--color-primary); box-shadow: 0 3px 12px color-mix(in srgb,var(--color-primary) 10%,transparent); }
.readiness-stage-number { color: var(--color-primary); font-size: .68rem; font-weight: 850; text-align: center; }
.readiness-stage-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--color-primary-light); color: var(--color-primary); font-size: .67rem; font-weight: 850; }
.readiness-stage-item[data-stage="TRADE_TEST"] .readiness-stage-icon { background: #fff3df; color: #9a6200; }
.readiness-stage-item[data-stage="MEDICAL"] .readiness-stage-icon { background: #f1edff; color: #6741b9; font-size: 1.15rem; }
.readiness-stage-item[data-stage="EHS_INDUCTION"] .readiness-stage-icon { background: #eaf3ff; color: #2f63aa; font-size: .6rem; }
.readiness-stage-item[data-stage="GATEPASS"] .readiness-stage-icon { background: #fff0e9; color: #b74b25; font-size: .6rem; }
.readiness-stage-name { color: #25384a; font-size: .8rem; font-weight: 800; }
.readiness-stage-name small { display: block; margin-top: 2px; color: #718096; font-size: .67rem; font-weight: 500; }
.readiness-stage-controls { display: flex; gap: 5px; }
.readiness-stage-move { width: 31px; height: 31px; border: 1px solid #dce5ea; border-radius: 9px; background: #fff; color: #526779; cursor: pointer; font-weight: 800; }
.readiness-stage-move:hover { border-color: var(--color-primary); color: var(--color-primary); }
.readiness-flow-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; }
.readiness-flow-footer span { color: #718096; font-size: .7rem; }
.approval-module-chip { display: inline-flex; padding: 5px 9px; border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.approval-module-chip.is-overtime { background: #eef2ff; color: #4f46e5; }
.approval-module-chip.is-workman { background: #fff3df; color: #995d00; }
.approval-duplicate-note { margin-top: 5px; color: #a06100; font-size: .66rem; font-weight: 650; }
.approval-tier-list { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.approval-tier-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 4px 9px 4px 5px; border: 1px solid #dce7eb; border-radius: var(--radius-full); background: #fff; color: var(--color-text-body); font-size: .71rem; font-weight: 650; }
.approval-tier-pill b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); font-size: .64rem; }
.approval-tier-arrow { color: #98aab8; font-size: .82rem; }
.approval-tier-editor-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.approval-tier-editor-label { width: 67px; flex: 0 0 67px; color: var(--color-text-muted); font-size: .75rem; font-weight: 750; }
.approval-tier-editor-row .form-control { flex: 1; }
.approval-tier-remove { width: 36px; min-width: 36px; padding: 3px; color: var(--color-danger); font-size: 1.15rem; }
.approval-workflow-page .approval-workflow-title { display: flex; align-items: center; gap: 10px; letter-spacing: -.025em; }
.approval-workflow-title svg { width: 27px; height: 27px; fill: none; stroke: var(--color-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.approval-workflow-page .card { border-color: #dce5ea; box-shadow: var(--shadow-sm); }
.approval-workflow-page .table thead tr { background: #f5f8fa !important; border-color: #dce5ea !important; }
.approval-workflow-page .table th { color: #536273; font-size: .69rem; letter-spacing: .045em; text-transform: uppercase; }
.approval-workflow-page .table tbody tr { transition: background var(--transition-fast); }
.approval-workflow-page .table tbody tr:hover { background: #f7fbfa; }
.approval-workflow-page .ot-tab-link { border-radius: 10px 10px 0 0; transition: background var(--transition-fast), color var(--transition-fast); }
.approval-workflow-page .ot-tab-link:hover { background: #f1f8f7; color: var(--color-primary); }
.approval-workflow-page .ot-tab-link.active { color: var(--color-primary) !important; border-bottom: 2px solid var(--color-primary); }
.approval-workflow-page .btn-success { background: #16825d; border-color: #16825d; }
.approval-workflow-page .btn-success:hover { background: #116e4f; border-color: #116e4f; }
.approval-workflow-page .btn-danger { border-radius: 9px; }

@media (max-width: 700px) {
  .food-scope-options { grid-template-columns: 1fr; }
  .screening-route-preview { grid-template-columns: 1fr; }
  .screening-review-actions { flex-wrap: wrap; }
  .screening-review-actions .form-control { flex-basis: 100%; }
  .approval-settings-hero { align-items: flex-start; flex-direction: column; padding: 17px; }
  .approval-settings-page.approval-settings-fullscreen { padding: 14px 14px 0; }
  .readiness-flow-fullscreen { margin: 14px 14px 24px; }
  .approval-settings-create { align-self: stretch; justify-content: center; }
  .approval-tier-list { min-width: 210px; }
  .readiness-flow-card { padding: 16px; }
  .readiness-flow-heading { flex-direction: column; }
  .readiness-flow-scope { align-items: stretch; flex-direction: column; }
  .readiness-flow-scope select { max-width: none; }
  .readiness-flow-source { margin-left: 0; }
  .readiness-stage-item { grid-template-columns: 25px 34px minmax(0,1fr) auto; gap: 8px; padding: 9px; }
  .readiness-stage-icon { width: 32px; height: 32px; }
  .readiness-flow-footer { align-items: stretch; flex-direction: column; }
}

/* Roles and permissions workspace */
.roles-permissions-page { max-width: 1240px; margin: 0 auto; padding-bottom: 3rem; }
.roles-permissions-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 21px 23px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at 94% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 37%), #fff; box-shadow: var(--shadow-sm); }
.roles-settings-breadcrumb { margin-bottom: 9px; color: var(--color-text-muted); font-size: .75rem; }
.roles-settings-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.roles-settings-breadcrumb span { margin: 0 6px; color: #a0adba; }
.roles-permissions-heading { display: flex; align-items: center; gap: 13px; }
.roles-permissions-heading h1 { margin: 0; font-size: 1.48rem; font-weight: 800; letter-spacing: -.035em; }
.roles-permissions-heading p { margin-top: 5px; color: var(--color-text-muted); font-size: .82rem; }
.roles-permissions-heading-icon, .roles-list-heading-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid var(--color-primary-subtle); border-radius: 15px; background: var(--color-primary-light); color: var(--color-primary); }
.roles-permissions-heading-icon svg, .roles-list-heading-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roles-add-button, .roles-save-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-full); box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.roles-add-button svg, .roles-save-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.roles-page-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 12px 15px; border: 1px solid; border-radius: var(--radius-md); font-size: .84rem; font-weight: 650; box-shadow: var(--shadow-xs); }
.roles-page-alert.is-success { border-color: var(--color-success-border); background: var(--color-success-bg); color: var(--color-success-text); }
.roles-page-alert.is-error { border-color: var(--color-danger-border); background: var(--color-danger-bg); color: var(--color-danger-text); }
.roles-alert-mark { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); font-weight: 850; }
.roles-permissions-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); align-items: start; gap: 17px; }
.roles-list-card, .roles-matrix-card { overflow: hidden; border: 1px solid #dce5ea; border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.roles-list-card { position: sticky; top: 18px; padding: 15px; }
.roles-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 3px 13px; border-bottom: 1px solid var(--color-border-subtle); }
.roles-list-heading h2 { margin: 0; font-size: .92rem; font-weight: 780; }
.roles-list-heading p { margin-top: 4px; color: var(--color-text-muted); font-size: .72rem; }
.roles-list-heading-icon { width: 38px; height: 38px; flex-basis: 38px; border: 0; border-radius: 12px; }
.roles-list-heading-icon svg { width: 20px; height: 20px; }
.roles-list { display: grid; gap: 5px; max-height: min(58vh, 620px); overflow-y: auto; margin: 10px -3px 0; padding: 0 3px 5px; }
.roles-list-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 9px; border: 1px solid transparent; border-radius: 12px; color: var(--color-text-body); text-decoration: none; transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.roles-list-item:hover { border-color: #e0ecea; background: #f8fbfa; }
.roles-list-item.is-active { border-color: var(--color-primary-subtle); background: var(--color-primary-light); color: var(--color-primary-hover); }
.roles-list-item-mark { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; background: #f1f5f7; color: #637589; }
.roles-list-item.is-active .roles-list-item-mark { background: var(--color-primary-subtle); color: var(--color-primary); }
.roles-list-item-mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.roles-list-item-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.roles-list-item-copy strong { overflow: hidden; color: inherit; font-size: .78rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.roles-list-item-copy small { color: var(--color-text-muted); font-size: .66rem; }
.roles-full-access-badge { flex: 0 0 auto; padding: 4px 6px; border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); font-size: .58rem; font-weight: 800; }
.roles-list-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; padding: 11px 8px 2px; border-top: 1px solid var(--color-border-subtle); color: var(--color-text-muted); font-size: .68rem; line-height: 1.45; }
.roles-list-footnote svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--color-primary); stroke-width: 1.7; stroke-linejoin: round; }
.roles-matrix-card { padding: 20px; }
.roles-matrix-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 17px; padding: 0 0 15px; border-bottom: 1px solid var(--color-border-subtle); }
.roles-matrix-eyebrow { margin-bottom: 5px; color: var(--color-primary); font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.roles-matrix-header h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.roles-matrix-header p { margin-top: 5px; color: var(--color-text-muted); font-size: .76rem; }
.roles-protected-access-note { display:flex; align-items:flex-start; gap:11px; margin:0 0 16px; padding:12px 14px; border:1px solid var(--color-primary-subtle); border-radius:var(--radius-md); background:var(--color-primary-light); color:var(--color-text-main); }
.roles-protected-access-icon { display:grid; width:28px; height:28px; flex:0 0 28px; place-items:center; border-radius:9px; background:var(--color-surface); color:var(--color-primary); font-size:.85rem; }
.roles-protected-access-note > span:last-child { display:grid; gap:3px; }
.roles-protected-access-note strong { color:var(--color-primary-hover); font-size:.78rem; }
.roles-protected-access-note small { color:var(--color-text-body); font-size:.7rem; line-height:1.45; }
.roles-matrix-count { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #dce7eb; border-radius: var(--radius-full); background: #f8fbfc; color: #526474; font-size: .66rem; font-weight: 750; }
.roles-superadmin-note { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid #c9e4df; border-radius: var(--radius-lg); background: linear-gradient(135deg, #eef9f6, #fff 85%); color: #155e50; }
.roles-superadmin-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--color-primary-subtle); color: var(--color-primary); }
.roles-superadmin-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.roles-superadmin-note > span:last-child { display: grid; gap: 5px; }
.roles-superadmin-note strong { font-size: .84rem; }
.roles-superadmin-note small { color: #477368; font-size: .75rem; line-height: 1.5; }
.permission-module-group { margin: 0 0 17px; padding: 0 0 16px; border-bottom: 1px solid var(--color-border-subtle); }
.permission-module-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.permission-module-title-wrap { display: flex; align-items: center; gap: 9px; }
.permission-module-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: #edf5f4; color: var(--color-primary); }
.permission-module-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.permission-module-title-wrap h3 { margin: 0; color: #263b4c; font-size: .74rem; font-weight: 820; letter-spacing: .06em; }
.permission-module-title-wrap div > span { display: block; margin-top: 2px; color: var(--color-text-muted); font-size: .64rem; }
.permission-module-actions { display: flex; align-items: center; gap: 4px; }
.permission-mini-action { padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--color-primary); cursor: pointer; font: inherit; font-size: .67rem; font-weight: 700; }
.permission-mini-action:hover { background: #eef8f5; }
.permission-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 8px; }
.permission-card { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 68px; padding: 11px; border: 1px solid #e1e8ed; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.permission-card:hover { border-color: #b7d9d2; background: #fbfefd; transform: translateY(-1px); }
.permission-card.is-selected { border-color: var(--color-primary-subtle); background: linear-gradient(130deg, var(--color-primary-light), #fff 78%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 7%, transparent); }
.permission-card:focus-within { outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent); outline-offset: 2px; }
.permission-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.permission-card-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; margin-top: 1px; border: 1.5px solid #bdc9d2; border-radius: 6px; background: #fff; color: transparent; }
.permission-card-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.permission-card.is-selected .permission-card-check { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.permission-card-copy { display: grid; min-width: 0; gap: 4px; }
.permission-card-copy strong { overflow-wrap: anywhere; color: var(--color-text-main); font-size: .75rem; font-weight: 750; }
.permission-card-copy small { color: var(--color-text-muted); font-size: .66rem; line-height: 1.42; }
.roles-matrix-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px -20px; padding: 12px 20px; border-top: 1px solid #e4ebee; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.roles-matrix-footer > span { color: var(--color-text-muted); font-size: .68rem; }
.roles-empty-state { padding: 18px 12px; color: var(--color-text-muted); font-size: .78rem; text-align: center; }
.roles-no-selection { padding: 60px 20px; }
.roles-create-modal { max-width: 520px; }
.roles-modal-title { display: flex; align-items: center; gap: 10px; }
.roles-modal-title .modal-title { margin: 0; }
.roles-modal-title p { margin-top: 3px; color: var(--color-text-muted); font-size: .72rem; }
.roles-modal-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--color-primary-light); color: var(--color-primary); }
.roles-modal-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

@media (max-width: 850px) {
  .roles-permissions-layout { grid-template-columns: minmax(0, 1fr); }
  .roles-list-card { position: static; }
  .roles-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; }
  .roles-list-item { min-width: max-content; }
  .roles-list-item-copy { min-width: 120px; }
  .roles-list-footnote { display: none; }
}
@media (max-width: 600px) {
  .roles-permissions-hero { align-items: stretch; flex-direction: column; padding: 17px; }
  .roles-permissions-heading h1 { font-size: 1.25rem; }
  .roles-add-button { width: 100%; }
  .roles-matrix-card { padding: 15px; }
  .roles-matrix-header { flex-direction: column; }
  .roles-matrix-footer { align-items: stretch; flex-direction: column; margin: 0 -15px -15px; padding: 12px 15px; }
  .roles-save-button { width: 100%; }
  .permission-module-header { align-items: flex-start; flex-direction: column; }
  .permission-module-actions { align-self: flex-end; }
}

/* Contractor-wide meal request form */
.food-contractor-request-page .food-create-intro { margin-bottom: 18px; padding: 21px 23px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(ellipse at 92% 0%, color-mix(in srgb, var(--color-primary) 15%, transparent), transparent 38%), #fff; box-shadow: var(--shadow-sm); }
.food-create-breadcrumb { margin-bottom: 10px; color: var(--color-text-muted); font-size: .75rem; }
.food-create-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.food-create-breadcrumb span { margin: 0 6px; color: #a0adba; }
.food-create-heading { display: flex; align-items: center; gap: 13px; }
.food-create-heading h1 { margin: 0; font-size: 1.5rem !important; font-weight: 820 !important; letter-spacing: -.035em; }
.food-create-heading p { margin-top: 5px !important; color: var(--color-text-muted) !important; font-size: .83rem !important; }
.food-create-heading-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid var(--color-primary-subtle); border-radius: 15px; background: var(--color-primary-light); color: var(--color-primary); }
.food-create-heading-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.food-contractor-request-form .food-form-section { margin-bottom: 15px !important; padding: 19px; border-color: #dce6e9; box-shadow: var(--shadow-sm); }
.food-contractor-request-form .food-form-section .card-header { margin: -19px -19px 17px; padding: 14px 19px; background: #f7fafb; }
.food-contractor-request-form .card-title { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 780; }
.food-request-section-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); }
.food-request-section-icon.is-notes { background: #eef2ff; color: #4f46e5; }
.food-request-section-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.food-request-step { color: #a4b3bc; font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.food-contractor-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.food-contractor-form-grid .form-group { margin-bottom: 15px; }
.food-contractor-form-grid label { color: #344b5d; font-size: .76rem; font-weight: 720; }
.food-field-hint { display: block; margin-top: 5px; color: var(--color-text-muted); font-size: .68rem; }
.food-meal-quantity-group { grid-column: 1 / -1; }
.food-quantity-control { display: flex; align-items: center; gap: 9px; max-width: 480px; padding: 6px 10px; border: 1px solid #cfdde2; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.food-quantity-control:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.food-quantity-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); }
.food-quantity-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.food-quantity-control .form-control { min-width: 0; border: 0; box-shadow: none; font-size: 1.05rem; font-weight: 780; }
.food-quantity-control .form-control:focus { outline: 0; box-shadow: none; }
.food-quantity-suffix { padding: 0 7px; color: var(--color-text-muted); font-size: .75rem; font-weight: 700; }
.food-request-quantity-summary { display: flex; align-items: center; gap: 10px; margin-top: 3px; padding: 11px 13px; border: 1px solid #c9e8dd; border-radius: var(--radius-md); background: #f1fbf7; color: #155e50; font-size: .78rem; font-weight: 700; }
.food-request-summary-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: #d8f3e7; color: var(--color-primary); }
.food-request-summary-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.food-contractor-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.food-submit-request { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: var(--radius-full); box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.food-submit-request svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.food-contractor-allocation-summary { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #cce5dc; border-radius: var(--radius-lg); background: linear-gradient(130deg, #f1faf7, #fff 84%); }
.food-allocation-summary-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #dff2eb; color: var(--color-primary); }
.food-allocation-summary-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.food-contractor-allocation-summary > div { display: grid; gap: 5px; }
.food-contractor-allocation-summary strong { color: #155e50; font-size: .82rem; }
.food-contractor-allocation-summary small { color: #53756d; font-size: .72rem; line-height: 1.5; }
.food-fulfillment-recipient-kind { color: var(--color-text-muted); font-size: .66rem; }

@media (max-width: 650px) {
  .food-create-heading { align-items: flex-start; }
  .food-create-heading h1 { font-size: 1.25rem !important; }
  .food-contractor-form-grid { grid-template-columns: minmax(0, 1fr); }
  .food-meal-quantity-group { grid-column: auto; }
  .food-contractor-request-form .food-form-section { padding: 15px; }
  .food-contractor-request-form .food-form-section .card-header { margin: -15px -15px 15px; padding: 13px 15px; }
  .food-contractor-form-actions { flex-direction: column-reverse; }
  .food-contractor-form-actions .btn { justify-content: center; }
  .food-detail-page > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
