:root {
  color-scheme: light;
  --fec-orange: #f23e02;
  --fec-cream: #fef5c8;
  --fec-teal: #00988d;
  --fec-teal-dark: #2c6b74;
  --fec-blue-dark: #013750;
  --fec-white: #ffffff;
  --fec-orange-hover: color-mix(in srgb, var(--fec-orange) 86%, var(--fec-blue-dark));
  --fec-orange-soft: color-mix(in srgb, var(--fec-orange) 9%, var(--fec-white));
  --fec-teal-soft: color-mix(in srgb, var(--fec-teal) 8%, var(--fec-white));
  --fec-blue-soft: color-mix(in srgb, var(--fec-blue-dark) 5%, var(--fec-white));
  --fec-border: color-mix(in srgb, var(--fec-blue-dark) 15%, var(--fec-white));
  --fec-muted: color-mix(in srgb, var(--fec-blue-dark) 64%, var(--fec-white));
  --fec-shadow: 0 8px 24px rgba(1, 55, 80, .07);
  --fec-shadow-subtle: 0 1px 3px rgba(1, 55, 80, .06);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --ink: var(--fec-blue-dark);
  --muted: var(--fec-muted);
  --line: var(--fec-border);
  --surface: var(--fec-white);
  --background: #f8fafc;
  --blue: var(--fec-teal-dark);
  --blue-dark: var(--fec-blue-dark);
  --orange: var(--fec-orange);
  --orange-dark: var(--fec-orange-hover);
  --success: var(--fec-teal);
  --danger: var(--fec-orange);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 15px; }
body, button, input, select, textarea { font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fec-orange) 34%, transparent);
  outline-offset: 2px;
}
svg { width: 19px; height: 19px; stroke-width: 1.8; flex: 0 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--fec-blue-dark); letter-spacing: 0; }

.app-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--fec-blue-dark);
  color: var(--fec-white);
  padding: 22px 14px 16px;
  z-index: 30;
}
.sidebar-brand { display: flex; align-items: center; min-height: 70px; padding: 0 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.brand { display: flex; align-items: center; width: 176px; min-height: 48px; }
.brand img { display: block; width: 100%; height: auto; }
.sidebar-close { display: none; margin-left: auto; color: var(--fec-white); }
.main-nav { display: grid; gap: 20px; margin: 24px 0; }
.nav-section { display: grid; gap: 3px; }
.nav-section-label {
  margin: 0 10px 7px;
  color: rgba(255, 255, 255, .52);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.main-nav a, .nav-disabled {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--fec-white); }
.main-nav a.active { background: var(--fec-teal-dark); box-shadow: inset 3px 0 var(--fec-orange); color: var(--fec-white); }
.main-nav a small { color: var(--fec-cream); font-size: 9px; text-transform: uppercase; }
.nav-disabled { color: rgba(255, 255, 255, .34); cursor: not-allowed; }
.sidebar-user {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.sidebar-user > span:nth-child(2) { display: grid; min-width: 0; }
.sidebar-user strong { overflow: hidden; color: var(--fec-white); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 11px; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fec-orange);
  color: var(--fec-white);
  font-weight: 800;
}
.sidebar-user .icon-button { color: rgba(255, 255, 255, .68); }
.sidebar-backdrop { display: none; }

.workspace { min-width: 0; }
.topbar {
  height: 72px;
  padding: 0 30px;
  background: var(--fec-white);
  border-bottom: 1px solid var(--fec-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scope { display: grid; gap: 2px; }
.scope strong { font-size: 13px; }
.scope-label, .eyebrow, .section-label {
  color: var(--fec-teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.topbar-actions form { margin: 0; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 138px;
  padding: 5px 9px;
  border-left: 1px solid var(--fec-border);
}
.topbar-user > span:last-child { display: grid; min-width: 0; }
.topbar-user strong { max-width: 135px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user small { color: var(--fec-muted); font-size: 10px; }
.topbar-user .user-avatar { width: 32px; height: 32px; font-size: 12px; }
.environment-badge {
  margin-right: 7px;
  padding: 5px 8px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-sm);
  color: var(--fec-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fec-blue-dark);
  cursor: pointer;
}
.icon-button:hover { background: var(--fec-blue-soft); }
.menu-toggle { display: none; }
.content { width: min(1320px, 100%); margin: 0 auto; padding: 36px 36px 64px; }

.page-header { margin-bottom: 24px; }
.page-header-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-header h1, .status-panel h1, .error-page h1 { margin: 5px 0 8px; font-size: 32px; line-height: 1.15; }
.page-header p:last-child, .muted { color: var(--fec-muted); max-width: 740px; line-height: 1.55; }
.page-header-meta { display: grid; gap: 3px; min-width: 180px; padding-left: 18px; border-left: 2px solid var(--fec-orange); }
.page-header-meta span { color: var(--fec-muted); font-size: 11px; text-transform: uppercase; }

.executive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.executive-header h1 { margin: 5px 0 8px; font-size: 32px; line-height: 1.15; }
.executive-header > div:first-child > p:last-child { margin: 0; color: var(--fec-muted); }
.executive-context { display: flex; gap: 26px; }
.executive-context div { display: grid; gap: 5px; min-width: 170px; }
.executive-context span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.executive-context strong { font-size: 13px; }

.fec-card {
  background: var(--fec-white);
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  box-shadow: var(--fec-shadow-subtle);
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 20px 0; }
.kpi-grid article { min-height: 142px; padding: 18px; display: grid; align-content: space-between; gap: 10px; }
.executive-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.fec-kpi-card { position: relative; overflow: hidden; border-top: 3px solid var(--fec-teal-dark); }
.fec-kpi-card.tone-orange { border-top-color: var(--fec-orange); }
.fec-kpi-card.tone-teal { border-top-color: var(--fec-teal); }
.fec-kpi-card.tone-blue { border-top-color: var(--fec-blue-dark); }
.kpi-heading { display: flex; align-items: center; justify-content: space-between; color: var(--fec-muted); }
.kpi-heading > span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.kpi-heading svg { color: var(--fec-teal-dark); }
.fec-kpi-card > strong { font-size: 34px; line-height: 1.05; }
.fec-kpi-card > small { color: var(--fec-muted); font-size: 12px; }
.kpi-suffix, .kpi-prefix { font-size: 14px; font-weight: 700; }
.kpi-suffix { margin-left: 3px; }
.kpi-prefix { margin-right: 3px; }

.dashboard-section { margin-bottom: 30px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 18px; margin-bottom: 30px; }
.distribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fec-chart-card, .distribution-card { min-height: 370px; padding: 22px; }
.chart-wide { min-height: 410px; }
.fec-chart-card > header, .distribution-card > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.fec-chart-card h2, .fec-chart-card h3, .distribution-card h2, .distribution-card h3 { margin: 4px 0 5px; font-size: 18px; }
.fec-chart-card header p:last-child, .distribution-card header p:last-child { margin: 0; color: var(--fec-muted); font-size: 12px; line-height: 1.45; }
.chart-surface { position: relative; width: 100%; height: 280px; }
.chart-surface canvas { width: 100%; height: 100%; }
.chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fec-muted);
  font-size: 12px;
}
.chart-surface.is-ready .chart-loading { display: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; color: var(--fec-muted); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 17px; height: 3px; border-radius: 2px; background: var(--fec-orange); }
.legend-line.weight { background: var(--fec-teal); }
.legend-line.volumes { background: var(--fec-teal-dark); }
.distribution-list { display: grid; gap: 16px; margin-top: 24px; }
.distribution-list > div { display: grid; gap: 7px; }
.distribution-list span { display: flex; justify-content: space-between; gap: 10px; }
.distribution-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.distribution-list small { color: var(--fec-muted); font-size: 10px; white-space: nowrap; }
.distribution-list i { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--fec-blue-soft); }
.distribution-list b { display: block; height: 100%; border-radius: 3px; background: var(--fec-teal); }
.weight-distribution b { background: var(--fec-orange); }

.performance-section { margin: 8px 0 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.section-heading h2 { margin: 4px 0 0; font-size: 20px; }
.period-label { color: var(--fec-muted); font-size: 11px; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--fec-teal-dark); font-size: 12px; font-weight: 800; }
.text-link:hover { color: var(--fec-orange); }
.performance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--fec-border); border-radius: var(--radius-md); background: var(--fec-white); box-shadow: var(--fec-shadow-subtle); }
.performance-grid article { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 16px; border-right: 1px solid var(--fec-border); }
.performance-grid article:last-child { border-right: 0; }
.performance-grid article > svg { color: var(--fec-orange); }
.performance-grid article div { display: grid; gap: 4px; }
.performance-grid span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.performance-grid strong { font-size: 14px; }
.performance-grid small { color: var(--fec-muted); font-size: 10px; }
.scope-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-left: 3px solid var(--fec-teal); background: var(--fec-teal-soft); }
.scope-note svg { color: var(--fec-teal-dark); }
.scope-note p { margin: 0; color: var(--fec-teal-dark); font-size: 12px; line-height: 1.5; }

.fec-badge, .status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--fec-teal-soft);
  color: var(--fec-teal-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.fec-badge.pending { background: var(--fec-cream); color: var(--fec-blue-dark); }
.fec-badge.error, .fec-badge.blocked { background: var(--fec-orange-soft); color: var(--fec-orange-hover); }
.fec-badge.processing, .fec-badge.neutral { background: var(--fec-blue-soft); color: var(--fec-teal-dark); }
.status-badge { gap: 5px; }
.status-badge svg { width: 14px; height: 14px; }
.status-badge.approved { background: var(--fec-teal-soft); color: var(--fec-teal-dark); }
.status-badge.pending { background: var(--fec-cream); color: var(--fec-blue-dark); }
.status-badge.error { background: var(--fec-orange-soft); color: var(--fec-orange-hover); }

.primary-button, .secondary-button, .neutral-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 750;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--fec-orange); background: var(--fec-orange); color: var(--fec-white); }
.primary-button:hover { border-color: var(--fec-orange-hover); background: var(--fec-orange-hover); }
.secondary-button { border: 1px solid var(--fec-teal-dark); color: var(--fec-teal-dark); background: var(--fec-white); }
.secondary-button:hover { background: var(--fec-teal-soft); }
.neutral-button { border: 1px solid var(--fec-border); color: var(--fec-blue-dark); background: var(--fec-white); }
.danger-button { border: 1px solid var(--fec-orange); color: var(--fec-orange); background: var(--fec-orange-soft); }
.full-width { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--fec-orange-hover); cursor: pointer; padding: 7px; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.module-card { background: var(--fec-white); border: 1px solid var(--fec-border); border-top: 3px solid var(--fec-teal-dark); border-radius: var(--radius-md); padding: 20px; min-height: 150px; }
.module-card:hover { border-top-color: var(--fec-orange); box-shadow: var(--fec-shadow); }
.module-card h2 { margin: 18px 0 8px; font-size: 18px; }
.module-card p, .status-panel p { color: var(--fec-muted); line-height: 1.55; }
.status-panel, .detail-list { background: var(--fec-white); border: 1px solid var(--fec-border); border-radius: var(--radius-md); padding: 22px; max-width: 800px; }
.status-panel h2 { font-size: 18px; margin: 18px 0 8px; }
.detail-list { display: grid; gap: 14px; margin-bottom: 18px; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--fec-border); padding-bottom: 11px; }
.detail-list span { color: var(--fec-muted); }
.technical-details { margin: 16px 0 22px; border: 1px solid var(--fec-border); border-radius: var(--radius-md); background: var(--fec-white); }
.technical-details summary { padding: 13px 16px; color: var(--fec-teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.technical-details[open] summary { border-bottom: 1px solid var(--fec-border); }
.technical-details .detail-list { margin: 0; border: 0; border-radius: 0; }
.technical-details .table-wrap { margin: 0; border: 0; border-radius: 0; }
.shipping-audit { min-width: 0; }
.shipping-audit .content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.shipping-audit .panel { min-width: 0; margin-bottom: 20px; }
.shipping-audit .panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.shipping-audit .panel-heading h2 { margin: 4px 0 0; font-size: 20px; }
.shipping-audit .detail-list { width: 100%; max-width: none; min-width: 0; }
.shipping-audit .detail-list div, .shipping-audit .detail-list dd { min-width: 0; }
.shipping-audit .detail-list dt { flex: 0 0 auto; }
.shipping-audit .detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.shipping-audit .technical-value { max-width: 66%; word-break: break-all; }
.shipping-audit details.panel { min-width: 0; overflow: hidden; }
.shipping-audit .technical-block {
  max-width: 100%;
  margin: 10px 0 18px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.shipping-audit .table-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
}
.shipping-audit .table-shell table { width: 100%; margin: 0; }
.evidence-workspace .page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evidence-workspace small { display: block; margin-top: 4px; color: var(--fec-muted); }
.evidence-filter { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto; }
.evidence-filter label { display: grid; gap: 6px; color: var(--fec-muted); font-size: 11px; font-weight: 800; }
.evidence-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence-form-grid label { display: grid; align-content: start; gap: 6px; color: var(--fec-muted); font-size: 12px; font-weight: 800; }
.evidence-form-grid .wide { grid-column: 1 / -1; }
.evidence-form-grid input, .evidence-form-grid select, .evidence-form-grid textarea,
.compact-form input, .compact-form select, .compact-form textarea { width: 100%; max-width: 100%; }
.evidence-workspace .technical-value { overflow-wrap: anywhere; word-break: break-word; }
.readiness-panel { border-left: 3px solid var(--fec-orange); }
.scheduling-dashboard .page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.scheduling-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scheduling-filter { grid-template-columns: repeat(4, minmax(145px, 1fr)) auto; }
.scheduling-filter label, .scheduling-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--fec-muted);
  font-size: 11px;
  font-weight: 800;
}
.scheduling-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scheduling-form-grid .wide { grid-column: 1 / -1; }
.scheduling-form-grid input, .scheduling-form-grid select, .scheduling-form-grid textarea,
.compact-form input, .compact-form select, .compact-form textarea { width: 100%; max-width: 100%; }
.scheduling-dashboard .table-shell { width: 100%; max-width: 100%; overflow-x: auto; }
.scheduling-table { min-width: 1180px; }
.scheduling-table td:nth-child(n+6):nth-child(-n+7) { text-align: right; white-space: nowrap; }
.scheduling-table td small, .scheduling-dashboard small { display: block; margin-top: 4px; color: var(--fec-muted); }
.table-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.table-tools input, .table-tools select { min-height: 38px; }
.danger-zone { border-left: 3px solid var(--fec-orange); }

.auth-page { min-height: 100vh; background: var(--fec-blue-dark); }
.auth-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(430px, 1.1fr); min-height: 100vh; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 60px; color: var(--fec-white); }
.auth-intro img, .auth-mobile-brand img {
  width: 220px;
  height: auto;
  object-fit: contain;
}
.auth-intro h1 { max-width: 540px; margin: 9px 0 16px; color: var(--fec-white); font-size: 42px; line-height: 1.15; }
.auth-intro p:not(.eyebrow) { max-width: 540px; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.65; }
.auth-intro .eyebrow { color: var(--fec-cream); }
.auth-intro small { color: rgba(255, 255, 255, .58); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: 100%; padding: 70px max(8vw, 70px); background: var(--fec-white); }
.auth-panel h2 { margin: 5px 0 8px; font-size: 28px; }
.auth-mobile-brand { display: none; }
.form-stack { display: grid; gap: 8px; margin-top: 26px; }
.form-stack label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.form-stack input, .content-form input, .content-form select, .content-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: var(--fec-white);
  color: var(--fec-blue-dark);
}
.form-stack input:focus, .content-form input:focus, .content-form select:focus, .content-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--fec-teal) 20%, transparent);
  border-color: var(--fec-teal);
}
.auth-support { margin: 22px 0 0; color: var(--fec-muted); font-size: 11px; text-align: center; }
.content-form { max-width: 640px; }
.content-form p { display: grid; gap: 6px; margin: 0; }
.content-form .helptext, .content-form ul { color: var(--fec-muted); font-size: 12px; }
.form-error, .field-error, .errorlist { color: var(--fec-orange-hover); font-size: 13px; }

.error-page { max-width: 620px; padding: 50px 0; }
.error-code { color: var(--fec-orange); font-size: 50px; font-weight: 800; margin: 0; }
.messages { margin-bottom: 18px; }
.message { padding: 12px 14px; border-left: 4px solid var(--fec-teal); background: var(--fec-white); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

.table-wrap { overflow-x: auto; margin-top: 18px; background: var(--fec-white); border: 1px solid var(--fec-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--fec-border); text-align: left; vertical-align: top; }
th { color: var(--fec-teal-dark); background: var(--fec-blue-soft); font-size: 10px; text-transform: uppercase; }
tbody tr:hover { background: var(--fec-teal-soft); }
tbody tr:last-child td { border-bottom: 0; }
.hash-value { overflow-wrap: anywhere; color: var(--fec-muted); font-family: Consolas, monospace; font-size: 11px; }
.fec-table-header { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border-bottom: 1px solid var(--fec-border); }

.status-strip, .filter-bar, .metric-band {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: var(--fec-white);
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.status-strip div, .metric-band div { display: grid; gap: 4px; min-width: 145px; }
.status-strip span, .metric-band span, .kpi-grid > article > span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.filter-bar label { display: grid; gap: 6px; color: var(--fec-muted); font-size: 12px; font-weight: 750; }
.filter-bar input, .filter-bar select { min-height: 40px; border: 1px solid var(--fec-border); border-radius: var(--radius-sm); padding: 7px 9px; background: var(--fec-white); }
.filter-bar .primary-button { margin-top: 0; }
.fec-filter-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--fec-border); background: var(--fec-white); }
.fec-filter-panel > div { display: flex; align-items: center; gap: 8px; }
.fec-filter-panel p { margin: 0; color: var(--fec-muted); font-size: 12px; }
.notice { border-left: 4px solid var(--fec-orange); background: var(--fec-orange-soft); padding: 12px 14px; margin: 18px 0; }
.policy-note { margin: 0 0 16px; color: var(--fec-muted); font-size: 12px; }
.policy-note summary { width: fit-content; color: var(--fec-teal-dark); font-weight: 750; cursor: pointer; }
.policy-note p { max-width: 760px; margin: 9px 0 0; line-height: 1.5; }
.metric-band { align-items: stretch; }
.metric-band div { flex: 1 1 170px; border-left: 2px solid var(--fec-orange); padding-left: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.pagination a { color: var(--fec-teal-dark); font-weight: 750; }
.ranking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.ranking-grid > div { background: var(--fec-white); border: 1px solid var(--fec-border); border-radius: var(--radius-md); padding: 16px; }
.ranking-grid h2 { margin: 0 0 12px; font-size: 16px; }
.ranking-grid ol { margin: 0; padding-left: 24px; }
.ranking-grid li { padding: 8px 0 8px 3px; border-bottom: 1px solid var(--fec-border); }
.ranking-grid li span { display: inline-block; width: 58%; }
.ranking-grid li strong { font-size: 12px; }
.fec-empty-state { display: grid; place-items: center; min-height: 180px; padding: 26px; color: var(--fec-muted); text-align: center; }
.fec-empty-state svg { width: 30px; height: 30px; color: var(--fec-teal-dark); }
.fec-empty-state h2 { margin: 10px 0 4px; font-size: 16px; }
.fec-empty-state p { margin: 0; font-size: 12px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.design-section { margin-bottom: 34px; }
.logo-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.logo-sample { display: grid; place-items: center; min-height: 180px; padding: 24px; border: 1px solid var(--fec-border); border-radius: var(--radius-md); }
.logo-sample.light { background: var(--fec-white); }
.logo-sample.dark { background: var(--fec-blue-dark); }
.logo-sample img { width: min(300px, 80%); height: auto; }
.logo-sample span { align-self: end; color: var(--fec-muted); font-size: 11px; font-weight: 700; }
.logo-sample.dark span { color: rgba(255, 255, 255, .68); }
.color-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.color-grid > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--fec-border); border-radius: var(--radius-md); background: var(--fec-white); }
.color-grid i { display: block; height: 54px; border: 1px solid var(--fec-border); border-radius: var(--radius-sm); }
.color-grid strong { font-size: 12px; }
.color-grid small { color: var(--fec-muted); font-family: Consolas, monospace; }
.component-demo { padding: 20px; }
.component-demo .actions:last-child { margin-bottom: 0; }
.design-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.design-table { margin: 0; }

.receiving-dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(450px, .75fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 24px;
}
.receiving-dashboard-header h1 { margin: 5px 0 8px; font-size: 32px; line-height: 1.15; }
.receiving-dashboard-header > div > p:not(.eyebrow) { margin: 0; color: var(--fec-muted); line-height: 1.5; }
.receiving-dashboard-header .actions { margin: 18px 0 0; }
.receiving-header-context {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 16px 0 4px 20px;
  border-left: 2px solid var(--fec-orange);
}
.receiving-header-context div { min-width: 0; }
.receiving-header-context dt {
  margin-bottom: 6px;
  color: var(--fec-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.receiving-header-context dd { margin: 0; font-size: 12px; font-weight: 800; line-height: 1.4; }
.receiving-header-context small { display: block; margin-top: 2px; color: var(--fec-muted); font-size: 10px; font-weight: 600; }

.receiving-filter-panel {
  margin-bottom: 30px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
  box-shadow: var(--fec-shadow-subtle);
}
.receiving-filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: var(--fec-blue-dark);
  cursor: pointer;
  list-style: none;
}
.receiving-filter-panel summary::-webkit-details-marker { display: none; }
.receiving-filter-panel summary > span { display: flex; align-items: center; gap: 9px; }
.receiving-filter-panel summary svg { color: var(--fec-teal-dark); }
.receiving-filter-panel summary small { color: var(--fec-muted); font-size: 11px; }
.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-top: 1px solid var(--fec-border);
  background: var(--fec-blue-soft);
  color: var(--fec-muted);
  font-size: 11px;
}
.active-filter-summary strong { color: var(--fec-blue-dark); }
.active-filter-summary span {
  padding: 4px 7px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-sm);
  background: var(--fec-white);
  color: var(--fec-teal-dark);
  font-weight: 700;
}
.receiving-filter-panel form {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--fec-border);
}
.receiving-filter-panel label, .operational-table-tools label {
  display: grid;
  gap: 6px;
  color: var(--fec-muted);
  font-size: 11px;
  font-weight: 750;
}
.receiving-filter-panel input, .receiving-filter-panel select,
.operational-table-tools input, .operational-table-tools select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-sm);
  background: var(--fec-white);
  color: var(--fec-blue-dark);
}
.filter-actions { display: flex; gap: 8px; }
.receiving-filter-panel .form-error { grid-column: 1 / -1; }
.receiving-filter-panel .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fec-orange-hover);
  font-size: 10px;
}
.receiving-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }

.receiving-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analytic-chart-card, .customer-ranking-card, .customer-participation-card { padding: 22px; }
.analytic-chart-card > header, .customer-ranking-card > header, .customer-participation-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.analytic-chart-card h3, .customer-ranking-card h3, .customer-participation-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.analytic-chart-card header p, .customer-ranking-card header p, .customer-participation-card header p {
  margin: 0;
  color: var(--fec-muted);
  font-size: 12px;
  line-height: 1.45;
}
.analytic-chart-surface { position: relative; width: 100%; height: 255px; }
.analytic-chart-surface canvas, .participation-chart canvas { width: 100%; height: 100%; }
[data-receiving-chart-container].is-ready .chart-loading { display: none; }
[data-shipping-chart-container].is-ready .chart-loading { display: none; }
.chart-tooltip {
  position: absolute;
  z-index: 4;
  display: none;
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  background: var(--fec-blue-dark);
  color: var(--fec-white);
  box-shadow: var(--fec-shadow);
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
}
.chart-tooltip.visible { display: block; }

.customer-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.customer-participation-card { grid-column: 1 / -1; }
.analytic-ranking { display: grid; gap: 14px; margin-top: 22px; }
.analytic-ranking > div { display: grid; gap: 7px; }
.analytic-ranking span { display: flex; justify-content: space-between; gap: 12px; }
.analytic-ranking strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytic-ranking small { color: var(--fec-muted); font-size: 10px; white-space: nowrap; }
.analytic-ranking > div > i { height: 7px; overflow: hidden; border-radius: 4px; background: var(--fec-blue-soft); }
.analytic-ranking b { display: block; height: 100%; border-radius: 4px; background: var(--fec-orange); }
.weight-ranking b { background: var(--fec-teal); }
.participation-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(300px, 1.35fr); align-items: center; gap: 32px; }
.participation-chart { position: relative; height: 220px; }
.participation-legend { display: grid; gap: 11px; }
.participation-legend > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.participation-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--fec-orange); }
.participation-legend div:nth-child(2) i { background: var(--fec-teal); }
.participation-legend div:nth-child(3) i { background: var(--fec-teal-dark); }
.participation-legend div:nth-child(4) i { background: var(--fec-blue-dark); }
.participation-legend div:nth-child(5) i { background: #f2a900; }
.participation-legend div:nth-child(6) i { background: #6b7c85; }
.participation-legend div:nth-child(7) i { background: #b8c3c9; }
.participation-legend span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.participation-legend strong { font-size: 12px; }

.productivity-panel, .receiving-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
  box-shadow: var(--fec-shadow-subtle);
}
.productivity-panel article, .receiving-attention-grid article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 100px;
  padding: 18px;
  border-right: 1px solid var(--fec-border);
}
.productivity-panel article:last-child, .receiving-attention-grid article:last-child { border-right: 0; }
.productivity-panel svg { color: var(--fec-teal-dark); }
.receiving-attention-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.receiving-attention-grid .state-attention svg { color: var(--fec-orange); }
.receiving-attention-grid .state-critical svg { color: var(--fec-orange-hover); }
.receiving-attention-grid .state-normal svg { color: var(--fec-teal); }
.receiving-attention-grid .state-critical { box-shadow: inset 0 3px var(--fec-orange-hover); }
.receiving-attention-grid .state-attention { box-shadow: inset 0 3px var(--fec-orange); }
.receiving-attention-grid .state-normal { box-shadow: inset 0 3px var(--fec-teal); }
.productivity-panel article div, .receiving-attention-grid article div { display: grid; gap: 4px; min-width: 0; }
.productivity-panel span, .receiving-attention-grid span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.productivity-panel strong, .receiving-attention-grid strong { font-size: 16px; }
.productivity-panel small, .receiving-attention-grid small { color: var(--fec-muted); font-size: 10px; line-height: 1.35; }

.operational-detail-section { margin-top: 36px; }
.operational-table-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, .45fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fec-border);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--fec-white);
}
.receiving-table-wrap { max-height: 590px; margin-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.receiving-operational-table thead { position: sticky; top: 0; z-index: 2; }
.receiving-operational-table td { font-size: 12px; }
.receiving-operational-table td:first-child a { color: var(--fec-teal-dark); font-weight: 800; }
.receiving-operational-table th:nth-child(n+4):nth-child(-n+6),
.receiving-operational-table td:nth-child(n+4):nth-child(-n+6) { text-align: right; white-space: nowrap; }
.receiving-operational-table td:nth-child(2),
.receiving-operational-table td:nth-child(3) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.technical-context { padding: 18px; }
.technical-context > p { margin-bottom: 16px; color: var(--fec-muted); font-size: 12px; line-height: 1.5; }

.shipping-dashboard { min-width: 0; }
.shipping-dashboard-header { grid-template-columns: minmax(0, 1fr) minmax(520px, .9fr); }
.shipping-dashboard-header .receiving-header-context {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.governance-caption {
  display: block;
  margin-top: 10px;
  color: var(--fec-muted);
  font-size: 11px;
}
.shipping-filter-panel form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.shipping-filter-panel .filter-actions { align-self: end; }
.shipping-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shipping-chart-grid,
.shipping-ranking-grid,
.shipping-utilization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.shipping-ranking-grid .revenue-ranking b { background: var(--fec-orange); }
.shipping-ranking-grid .profit-ranking b { background: var(--fec-blue-dark); }
.chart-legend .revenue { background: var(--fec-orange); }
.chart-legend .profit { background: var(--fec-blue-dark); }
.utilization-card { padding: 22px; }
.utilization-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.utilization-card h3 { margin: 0 0 5px; font-size: 17px; }
.utilization-card header p { margin: 0; color: var(--fec-muted); font-size: 12px; }
.utilization-card header svg { flex: 0 0 auto; color: var(--fec-orange); }
.utilization-list { display: grid; margin-top: 18px; }
.utilization-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--fec-border);
}
.utilization-list > div:last-child { border-bottom: 0; }
.utilization-list span { display: grid; min-width: 0; gap: 3px; }
.utilization-list strong,
.utilization-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utilization-list strong { font-size: 12px; }
.utilization-list small { color: var(--fec-muted); font-size: 10px; }
.utilization-list b { flex: 0 0 auto; color: var(--fec-teal-dark); font-size: 11px; }
.governance-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--fec-teal);
  background: var(--fec-blue-soft);
  color: var(--fec-muted);
  font-size: 11px;
  line-height: 1.45;
}
.governance-note svg { flex: 0 0 auto; color: var(--fec-teal-dark); }
.financial-composition {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) auto repeat(3, minmax(135px, 1fr) auto) minmax(150px, 1.15fr);
  align-items: stretch;
  gap: 9px;
}
.financial-composition > svg { align-self: center; width: 18px; color: var(--fec-muted); }
.financial-step {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 125px;
  padding: 17px;
  border: 1px solid var(--fec-border);
  border-top: 3px solid var(--fec-blue);
  border-radius: var(--radius-md);
  background: var(--fec-white);
  box-shadow: var(--fec-shadow-subtle);
}
.financial-step.revenue { border-top-color: var(--fec-orange); }
.financial-step.profit { border-top-color: var(--fec-teal); }
.financial-step span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.financial-step strong { font-size: 18px; line-height: 1.2; }
.financial-step small { color: var(--fec-muted); font-size: 10px; }
.financial-formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.financial-formulas p {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-sm);
  background: var(--fec-blue-soft);
  color: var(--fec-muted);
  font-size: 11px;
}
.shipping-productivity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shipping-productivity article:nth-child(4n) { border-right: 0; }
.shipping-productivity article:nth-child(-n+4) { border-bottom: 1px solid var(--fec-border); }
.shipping-attention-grid .state-governance { box-shadow: inset 0 3px var(--fec-blue); }
.shipping-attention-grid .state-governance svg { color: var(--fec-blue); }
.shipping-table-wrap { max-width: 100%; overflow: auto; }
.shipping-operational-table { min-width: 1320px; }
.shipping-operational-table th:nth-child(n+7):nth-child(-n+10),
.shipping-operational-table td:nth-child(n+7):nth-child(-n+10) {
  text-align: right;
  white-space: nowrap;
}
.shipping-operational-table td:nth-child(3),
.shipping-operational-table td:nth-child(4),
.shipping-operational-table td:nth-child(6) {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
  box-shadow: var(--fec-shadow-subtle);
}
.business-detail-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--fec-border);
  border-bottom: 1px solid var(--fec-border);
}
.business-detail-grid article:nth-child(4n) { border-right: 0; }
.business-detail-grid span { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.business-detail-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.technical-operation-grid pre {
  max-height: 340px;
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--fec-blue-dark);
  color: var(--fec-white);
  white-space: pre-wrap;
  word-break: break-word;
}
.technical-context dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.technical-context dt { color: var(--fec-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.technical-context dd { margin: 5px 0 0; font-size: 12px; font-weight: 700; }

.admin-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-navigation a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
  color: var(--fec-ink);
  box-shadow: var(--fec-shadow-subtle);
}
.admin-navigation a:hover { border-color: var(--fec-teal); }
.admin-navigation svg { grid-row: 1 / 3; color: var(--fec-orange); }
.admin-navigation strong { font-size: 15px; }
.admin-navigation span { color: var(--fec-muted); font-size: 12px; line-height: 1.45; }
.admin-section { margin-top: 28px; }
.scope-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--fec-border);
  background: var(--fec-white);
}
.scope-summary span { display: grid; gap: 3px; }
.scope-summary small { color: var(--fec-muted); }
.admin-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
}
.admin-filters.compact { grid-template-columns: minmax(240px, 1fr) minmax(180px, .45fr) auto; }
.admin-filters label, .admin-form label { display: grid; gap: 7px; color: var(--fec-muted); font-size: 11px; font-weight: 800; }
.admin-filters input, .admin-filters select, .admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--fec-border);
  border-radius: 5px;
  background: var(--fec-white);
  color: var(--fec-ink);
  font: inherit;
  font-weight: 500;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  padding: 22px;
  border: 1px solid var(--fec-border);
  border-radius: var(--radius-md);
  background: var(--fec-white);
}
.admin-form label:has(textarea), .admin-form .actions, .admin-form .message { grid-column: 1 / -1; }
.admin-table { margin-top: 14px; }
.admin-table td { vertical-align: top; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--fec-muted); }
.permission-chip {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 3px 6px;
  border: 1px solid var(--fec-border);
  border-radius: 4px;
  background: var(--fec-surface);
  font-size: 10px;
}
.permission-row { display: grid; gap: 2px; margin-bottom: 8px; }
.permission-row span { color: var(--fec-muted); font-size: 11px; }
.field-error { color: #a64022; font-size: 11px; }

@media (max-width: 1100px) {
  .executive-kpis, .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-grid article:nth-child(2) { border-right: 0; }
  .performance-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--fec-border); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .distribution-card { min-height: 0; }
  .color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .receiving-dashboard-header { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .receiving-header-context { padding-left: 0; border-left: 0; border-top: 2px solid var(--fec-orange); padding-top: 16px; }
  .receiving-filter-panel form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { align-self: end; }
  .receiving-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receiving-attention-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .receiving-attention-grid article:nth-child(3) { border-right: 0; }
  .receiving-attention-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--fec-border); }
  .shipping-dashboard-header { grid-template-columns: 1fr; }
  .shipping-dashboard-header .receiving-header-context { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shipping-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-composition { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .financial-composition > svg { display: none; }
  .financial-step.profit { grid-column: span 2; }
  .admin-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 278px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 16px 0 32px rgba(1, 55, 80, .24); }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(1, 55, 80, .42); }
  .menu-open .sidebar-backdrop { display: block; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .content { padding: 26px 18px 52px; }
  .scope { display: none; }
  .environment-badge { display: none; }
  .topbar-user > span:last-child { display: none; }
  .topbar-user { min-width: 0; padding-inline: 7px; }
  .executive-header { display: grid; align-items: start; }
  .executive-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .executive-context div { min-width: 0; }
  .page-header-row { display: grid; }
  .page-header-meta { padding: 0; border-left: 0; }
  .auth-layout { grid-template-columns: 1fr; min-height: 100vh; background: var(--fec-white); }
  .auth-intro { display: none; }
  .auth-panel { padding: 44px 24px; }
  .auth-mobile-brand { display: block; margin-bottom: 40px; }
  .auth-mobile-brand img { width: 180px; height: auto; }
  .distribution-grid, .logo-showcase { grid-template-columns: 1fr; }
  .design-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receiving-chart-grid, .customer-analysis-grid { grid-template-columns: 1fr; }
  .customer-participation-card { grid-column: auto; }
  .productivity-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .productivity-panel article:nth-child(2) { border-right: 0; }
  .productivity-panel article:nth-child(-n+2) { border-bottom: 1px solid var(--fec-border); }
  .receiving-attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receiving-attention-grid article:nth-child(3) { border-right: 1px solid var(--fec-border); }
  .receiving-attention-grid article:nth-child(even) { border-right: 0; }
  .shipping-ranking-grid, .shipping-utilization-grid { grid-template-columns: 1fr; }
  .shipping-filter-panel form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-formulas { grid-template-columns: 1fr; }
  .shipping-productivity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipping-productivity article:nth-child(even) { border-right: 0; }
  .business-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-detail-grid article:nth-child(4n) { border-right: 1px solid var(--fec-border); }
  .business-detail-grid article:nth-child(even) { border-right: 0; }
  .operational-table-tools { grid-template-columns: 1fr 1fr; }
  .admin-filters.compact { grid-template-columns: 1fr 1fr; }
  .shipping-audit .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .content { padding-inline: 14px; }
  .executive-header h1, .page-header h1 { font-size: 25px; }
  .executive-kpis, .performance-grid { grid-template-columns: 1fr; }
  .performance-grid article { border-right: 0; border-bottom: 1px solid var(--fec-border); }
  .performance-grid article:last-child { border-bottom: 0; }
  .dashboard-grid { gap: 14px; }
  .fec-chart-card, .distribution-card { min-height: 0; padding: 16px; }
  .chart-surface { height: 215px; }
  .section-heading { align-items: start; }
  .text-link { white-space: nowrap; }
  .executive-context { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; }
  .filter-bar label, .filter-bar input, .filter-bar select { width: 100%; }
  .color-grid, .design-kpis { grid-template-columns: 1fr; }
  .receiving-dashboard-header h1 { font-size: 25px; }
  .receiving-header-context { grid-template-columns: 1fr; }
  .receiving-filter-panel summary small { display: none; }
  .active-filter-summary { align-items: flex-start; }
  .receiving-filter-panel form { grid-template-columns: 1fr; }
  .shipping-filter-panel form { grid-template-columns: 1fr; }
  .filter-actions, .filter-actions .primary-button, .filter-actions .neutral-button { width: 100%; }
  .receiving-kpis { grid-template-columns: 1fr; }
  .analytic-chart-card, .customer-ranking-card, .customer-participation-card { padding: 16px; }
  .analytic-chart-card > header, .customer-ranking-card > header, .customer-participation-card > header { align-items: flex-start; }
  .analytic-chart-card header .fec-badge { max-width: 126px; font-size: 8px; line-height: 1.3; text-align: right; }
  .analytic-chart-surface { height: 230px; }
  .participation-layout { grid-template-columns: 1fr; gap: 14px; }
  .participation-chart { height: 190px; }
  .productivity-panel, .receiving-attention-grid { grid-template-columns: 1fr; }
  .productivity-panel article, .receiving-attention-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--fec-border);
  }
  .productivity-panel article:last-child, .receiving-attention-grid article:last-child { border-bottom: 0; }
  .operational-table-tools { grid-template-columns: 1fr; }
  .shipping-chart-grid { grid-template-columns: 1fr; }
  .shipping-dashboard-header .receiving-header-context { grid-template-columns: 1fr; }
  .shipping-kpis { grid-template-columns: 1fr; }
  .financial-composition { grid-template-columns: 1fr; }
  .financial-step.profit { grid-column: auto; }
  .shipping-productivity { grid-template-columns: 1fr; }
  .business-detail-grid { grid-template-columns: 1fr; }
  .business-detail-grid article,
  .business-detail-grid article:nth-child(4n),
  .business-detail-grid article:nth-child(even) {
    border-right: 0;
  }
  .operational-table-tools .secondary-button { width: 100%; }
  .technical-context dl { grid-template-columns: 1fr; }
  .admin-navigation, .admin-filters, .admin-filters.compact, .admin-form { grid-template-columns: 1fr; }
  .admin-form label:has(textarea), .admin-form .actions, .admin-form .message { grid-column: auto; }
  .shipping-audit .detail-list div { display: grid; gap: 5px; }
  .shipping-audit .detail-list dd,
  .shipping-audit .technical-value { max-width: none; text-align: left; }
  .evidence-filter, .evidence-form-grid { grid-template-columns: 1fr; }
  .evidence-form-grid .wide { grid-column: auto; }
  .evidence-workspace .page-actions,
  .evidence-workspace .page-actions a { width: 100%; }
  .scheduling-kpis, .scheduling-filter, .scheduling-form-grid { grid-template-columns: 1fr; }
  .scheduling-form-grid .wide { grid-column: auto; }
  .scheduling-dashboard .page-actions, .scheduling-dashboard .page-actions a { width: 100%; }
  .table-tools, .table-tools input, .table-tools select { width: 100%; }
}
