/* Plataforma V03 - Premium Dark Theme with Cyan Headers & Zebra Striping */
:root {
  --bg-app: #0b1120;
  --bg-sidebar: #0f172a;
  --border-color: #1e293b;
  --border-light: #243046;
  
  /* Table Dark Colors */
  --table-header-bg: #090e1a;
  --table-header-cyan: #38bdf8; /* Cyan accent */
  --row-odd: #0f172a;
  --row-even: #151f33;
  --row-hover: #1e2c47;
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Accents */
  --primary-cyan: #38bdf8;
  --primary-hover: #0284c7;

  /* Agreement & Compliance (Green) */
  --agree-bg: rgba(16, 185, 129, 0.18);
  --agree-text: #34d399;
  --agree-border: rgba(16, 185, 129, 0.45);

  /* Partially Compliant (Amarelo Claro / Light Yellow) */
  --partially-bg: rgba(234, 179, 8, 0.22);
  --partially-text: #fde047;
  --partially-border: rgba(250, 204, 21, 0.55);

  /* Disagreement & Gaps (Rose / Pink) */
  --disagree-bg: rgba(244, 63, 94, 0.18);
  --disagree-text: #fb7185;
  --disagree-border: rgba(244, 63, 94, 0.45);

  /* Neutral NA */
  --na-bg: rgba(100, 116, 139, 0.2);
  --na-text: #94a3b8;
  --na-border: rgba(100, 116, 139, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0b1120;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0b1120;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
  border: 2px solid #0b1120;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* App Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left Sidebar Menu (Excel Tabs) */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
}

.sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #0b1120;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.excel-icon {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14.6px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.sidebar-title h2 {
  font-size: 16.8px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sidebar-title p {
  font-size: 12.4px;
  color: var(--primary-cyan);
  font-weight: 600;
}

/* Sidebar Navigation (Tabs List) */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section-title {
  padding: 12px 20px 4px 20px;
  font-size: 12.4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

.tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14.6px;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.tab-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.tab-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.02) 100%);
  border-left-color: var(--primary-cyan);
  color: #ffffff;
  font-weight: 700;
}

.tab-badge {
  font-size: 12.4px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #1e293b;
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.tab-item.active .tab-badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Ocultação de abas com botão direito */
.tab-item.is-hidden {
  display: none !important;
}

/* Banner de reexibição no menu lateral */
.unhide-all-banner {
  margin: 8px 12px 6px 12px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px dashed var(--primary-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: #38bdf8;
  font-size: 12.4px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
}

.unhide-all-banner:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.38);
  transform: translateY(-1px);
}

.unhide-all-banner .unhide-icon {
  font-size: 14.6px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 10px 16px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #080d1a;
}

.btn-reset-v03 {
  width: 100%;
  padding: 6px 10px;
  font-size: 12.4px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  opacity: 0.75;
}
.btn-reset-v03:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
  opacity: 1;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app);
}

/* Excel Sheet Header Bar */
.sheet-header-bar {
  padding: 14px 28px;
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.sheet-title h1 {
  font-size: 21.3px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sheet-title p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sheet-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 14.6px;
  color: #64748b;
  pointer-events: none;
}

.search-input {
  padding: 8px 36px 8px 34px;
  font-size: 14.1px;
  background: #0b1120;
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 6px;
  outline: none;
  width: 320px;
  transition: all 0.15s ease;
}

.search-input::placeholder {
  color: #64748b;
}

.search-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  width: 380px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15.7px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}

.search-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.search-count-badge {
  font-size: 12.4px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

/* Empty Search Banner with Cross-Tab Suggestions */
.search-empty-cell {
  text-align: center !important;
  padding: 50px 20px !important;
  background-color: #0b1120 !important;
}

.empty-search-box {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-search-icon {
  font-size: 38.1px;
  opacity: 0.6;
}

.empty-search-title {
  font-size: 16.8px;
  font-weight: 700;
  color: #f1f5f9;
}

.empty-search-subtitle {
  font-size: 14.6px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.search-tab-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.btn-suggest-tab {
  background: #1e293b;
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-suggest-tab:hover {
  background: var(--primary-cyan);
  color: #0b1120;
  transform: translateY(-1px);
}

.btn-clear-search-action {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.btn-clear-search-action:hover {
  color: #ffffff;
  border-color: #cbd5e1;
}

/* Search Term Highlight in cells */
mark.search-highlight {
  background-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 700;
}

/* Sidebar tab badge with search matches */
.tab-badge.has-matches {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  font-weight: 800 !important;
}

.tab-badge.zero-matches {
  opacity: 0.35;
}

/* Excel Table Container */
.excel-table-container {
  flex: 1;
  overflow: auto;
  background: var(--bg-app);
}

.excel-grid-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14.6px;
  table-layout: auto;
}

/* Header Cells (Dark Slate Background + Vibrant Cyan Text!) */
.excel-grid-table th {
  background-color: var(--table-header-bg);
  border-bottom: 2px solid var(--primary-cyan);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  color: var(--table-header-cyan); /* CYAN! */
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle !important;
  position: sticky;
  top: 0;
  z-index: 10;
  line-height: 1.3;
}

.excel-grid-table th.center {
  text-align: center;
}

/* Alternating Row Colors (Dark Zebra Striping) */
.excel-grid-table tr:nth-child(odd) td {
  background-color: var(--row-odd);
}
.excel-grid-table tr:nth-child(even) td {
  background-color: var(--row-even);
}
.excel-grid-table tr:hover td {
  background-color: var(--row-hover) !important;
}

/* Data Cells - Strict Centering Vertically */
.excel-grid-table tr {
  vertical-align: middle !important;
}

.excel-grid-table td {
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14.6px;
  line-height: 1.5;
  vertical-align: middle !important;
  transition: background-color 0.1s ease;
}

.excel-grid-table td.center {
  text-align: center;
}

/* AB InBev Requirement Badges */
.badge-abinbev {
  display: inline-block;
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 700;
  font-size: 12.4px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-optional {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-weight: 700;
  font-size: 12.4px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Vendor Badges (INCLUDED / NOT INCLUDED / OPTIONAL) */
.badge-vendor {
  display: inline-block;
  font-weight: 700;
  font-size: 12.4px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-vendor.included {
  background: var(--agree-bg);
  color: var(--agree-text);
  border: 1px solid var(--agree-border);
}
.badge-vendor.not-included {
  background: var(--disagree-bg);
  color: var(--disagree-text);
  border: 1px solid var(--disagree-border);
}
.badge-vendor.optional {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

/* Specific Cells: Interface */
.td-interface-name {
  font-weight: 700;
  color: #ffffff;
  min-width: 200px;
  max-width: 240px;
  vertical-align: middle !important;
}

.td-scope-text {
  min-width: 260px;
  max-width: 320px;
  color: #cbd5e1;
  vertical-align: middle !important;
}

.td-rationale-text {
  min-width: 280px;
  max-width: 380px;
  color: #cbd5e1;
  vertical-align: middle !important;
}

/* Status Cells (Green for Compliant, Rose for Partially/Non-Compliant) */
.td-status-cell {
  width: 160px;
  min-width: 150px;
  text-align: center;
  font-weight: 800;
  font-size: 12.9px;
  vertical-align: middle !important;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 8px 10px !important;
}

.td-status-cell:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

.td-status-cell.compliant {
  background-color: var(--agree-bg) !important;
  color: var(--agree-text) !important;
  border: 1px solid var(--agree-border) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.12);
}

.td-status-cell.partially {
  background-color: var(--partially-bg) !important;
  color: var(--partially-text) !important;
  border: 1px solid var(--partially-border) !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
}

.td-status-cell.not-compliant {
  background-color: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

.td-status-cell.not-applicable {
  background-color: var(--na-bg) !important;
  color: var(--na-text) !important;
  border: 1px solid var(--na-border) !important;
}

/* Inline Keyword Highlighting (Green for Agree, Light Yellow for Partially, Rose for Disagree) */
.hl-agree {
  display: inline-block;
  background-color: var(--agree-bg);
  color: var(--agree-text);
  border: 1px solid var(--agree-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 12.9px;
  line-height: 1.25;
  margin: 0 1px;
}

.hl-partially {
  display: inline-block;
  background-color: var(--partially-bg);
  color: var(--partially-text);
  border: 1px solid var(--partially-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 12.9px;
  line-height: 1.25;
  margin: 0 1px;
}

.hl-disagree {
  display: inline-block;
  background-color: var(--disagree-bg);
  color: var(--disagree-text);
  border: 1px solid var(--disagree-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 12.9px;
  line-height: 1.25;
  margin: 0 1px;
}

/* Score Cells in Technical Sheets */
.score-badge-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14.6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.score-badge-dark.score-high {
  background: var(--agree-bg);
  color: var(--agree-text);
  border: 1px solid var(--agree-border);
}
.score-badge-dark.score-mid {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.score-badge-dark.score-low {
  background: var(--disagree-bg);
  color: var(--disagree-text);
  border: 1px solid var(--disagree-border);
}
.score-badge-dark.score-na {
  background: var(--na-bg);
  color: var(--na-text);
  border: 1px solid var(--na-border);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--primary-cyan);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.1px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(6, 182, 212, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-toast-unhide {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12.4px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
}

.btn-toast-unhide:hover {
  background: #38bdf8;
  color: #0b1120;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: scale(1.03);
}

/* ==========================================================================
   EXECUTIVE DASHBOARD (KPI CARDS & 8 PILLARS COMPARISON)
   ========================================================================== */
.dashboard-container {
  padding: 24px 32px 40px 32px;
  overflow-y: auto;
  height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top 3 Executive KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kpi-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.kpi-card.kpi-wh {
  border-left: 5px solid #38bdf8;
}

.kpi-card.kpi-bobst {
  border-left: 5px solid #f97316;
}

.kpi-card.kpi-diff {
  border-left: 5px solid #34d399;
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kpi-card-label {
  font-size: 12.4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.kpi-card-brand {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.kpi-card-brand.brand-wh {
  color: #38bdf8;
}

.kpi-card-brand.brand-bobst {
  color: #f97316;
}

.kpi-tag-status {
  font-size: 12.4px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.03em;
}

.kpi-card-body {
  margin: 6px 0 14px 0;
}

.kpi-main-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-score-val {
  font-size: 42.6px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.kpi-score-val.color-green {
  color: #34d399;
}

.kpi-score-val.color-orange {
  color: #fb923c;
}

.kpi-score-val.color-cyan {
  color: #38bdf8;
}

.kpi-score-max {
  font-size: 18.0px;
  color: #64748b;
  font-weight: 600;
}

.kpi-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-footer-left {
  color: #64748b;
  font-weight: 500;
}

.kpi-footer-left.color-green {
  color: #34d399;
  font-weight: 700;
}

.kpi-footer-left.color-orange {
  color: #fb923c;
  font-weight: 700;
}

.kpi-footer-left.color-cyan {
  color: #38bdf8;
  font-weight: 700;
}

.kpi-footer-right {
  font-weight: 600;
  color: #64748b;
}

.kpi-footer-right.color-wh {
  color: #38bdf8;
}

.kpi-footer-right.color-bobst {
  color: #fb923c;
}

/* Dashboard Section Divider & Header */
.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-section-title h3 {
  font-size: 16.8px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.dashboard-section-title p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dashboard-legend {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.dot-wh {
  background: #38bdf8;
}

.legend-dot.dot-bobst {
  background: #f97316;
}

/* 8 Technical Pillar Comparison Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
  background: #131d33;
}

.pillar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.pillar-name {
  font-size: 15.2px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.pillar-count-badge {
  font-size: 12.4px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.pillar-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.pillar-bar-row.row-clickable {
  cursor: pointer;
}

.pillar-bar-row.row-clickable:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pillar-bar-row.row-clickable.active-supplier-wh {
  background: rgba(56, 189, 248, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.pillar-bar-row.row-clickable.active-supplier-bobst {
  background: rgba(249, 115, 22, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}

.pillar-supplier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 142px;
  flex-shrink: 0;
}

.pillar-supplier-label {
  font-size: 12.4px;
  font-weight: 800;
  width: 38px;
  cursor: pointer;
  user-select: none;
}

.pillar-supplier-label.label-wh {
  color: #38bdf8;
}

.pillar-supplier-label.label-bobst {
  color: #fb923c;
}

.pillar-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-filter-pill {
  font-size: 10.7px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

/* GAP button style */
.btn-filter-pill.pill-gap.has-items {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
}
.btn-filter-pill.pill-gap.has-items:hover {
  background: rgba(244, 63, 94, 0.28);
  color: #ffffff;
  border-color: #f43f5e;
}
.btn-filter-pill.pill-gap.zero-items {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.06);
}
.btn-filter-pill.pill-gap.active-filter-gap {
  background: #f43f5e !important;
  color: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.55);
}

/* OP (Opportunity) button style */
.btn-filter-pill.pill-op.has-items {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}
.btn-filter-pill.pill-op.has-items:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #ffffff;
  border-color: #f59e0b;
}
.btn-filter-pill.pill-op.zero-items {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.06);
}
.btn-filter-pill.pill-op.active-filter-op {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}

.pillar-progress-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.pillar-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.pillar-progress-fill.fill-wh {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

.pillar-progress-fill.fill-bobst {
  background: linear-gradient(90deg, #ea580c 0%, #fb923c 100%);
}

.pillar-score-num {
  font-size: 14.6px;
  font-weight: 700;
  width: 32px;
  text-align: right;
  font-family: 'Inter', monospace;
  flex-shrink: 0;
}

.pillar-score-num.num-wh {
  color: #38bdf8;
}

.pillar-score-num.num-bobst {
  color: #fb923c;
}

.pillar-card.has-active-gaps {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.pillar-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-edge {
  font-weight: 700;
  font-size: 12.4px;
  padding: 1px 6px;
  border-radius: 4px;
}

.pillar-edge.edge-wh {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pillar-edge.edge-bobst {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.pillar-edge.edge-tie {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.pillar-link-hint {
  color: #64748b;
  font-size: 12.4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pillar-link-hint:hover {
  color: #38bdf8;
}

.badge-kpi {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(14, 165, 233, 0.2) 100%) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   DRILL-DOWN PANEL: PONTOS NÃO ADERENTES (INLINE NA MESMA PÁGINA)
   ========================================================================== */
.gaps-drilldown-panel {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
  animation: gapsSlideDown 0.22s ease-out;
}

@keyframes gapsSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gaps-drilldown-panel.panel-wh {
  border-left: 6px solid #38bdf8;
}

.gaps-drilldown-panel.panel-bobst {
  border-left: 6px solid #f97316;
}

.gaps-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.gaps-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gaps-supplier-badge {
  font-size: 12.4px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.gaps-supplier-badge.badge-wh {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.gaps-supplier-badge.badge-bobst {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.gaps-pillar-badge {
  font-size: 12.4px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gaps-type-badge {
  font-size: 12.4px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.gaps-type-badge.badge-gap-type {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.45);
}
.gaps-type-badge.badge-op-type {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gaps-count-badge {
  font-size: 12.4px;
  font-weight: 700;
  color: #fb7185;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.gaps-count-badge.badge-zero {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.gaps-panel-title {
  font-size: 19.1px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.gaps-panel-title .highlight-supplier.wh {
  color: #38bdf8;
}

.gaps-panel-title .highlight-supplier.bobst {
  color: #fb923c;
}

.gaps-panel-subtitle {
  font-size: 14.1px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.45;
}

.gaps-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gaps-panel-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.btn-switch-type {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 10px;
  font-size: 12.9px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-switch-type:hover {
  color: #ffffff;
}
.btn-switch-type.active-switch-gap {
  background: rgba(244, 63, 94, 0.25);
  color: #fca5a5;
  font-weight: 700;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.btn-switch-type.active-switch-op {
  background: rgba(245, 158, 11, 0.25);
  color: #fde047;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.esc-hint {
  font-size: 12.9px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.esc-hint kbd {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11.8px;
  font-family: monospace;
  color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn-gaps-action {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view-excel {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-view-excel:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-close-panel {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close-panel:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #ffffff;
}

/* Table of Non-Compliant Points */
.gaps-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #090e1a;
}

.gaps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.1px;
}

.gaps-table th {
  background: #070c18;
  color: var(--primary-cyan);
  font-size: 12.4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.gaps-table th.center {
  text-align: center;
}

.gaps-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
  color: #cbd5e1;
}

.gaps-table tr:nth-child(odd) {
  background-color: #0b1120;
}

.gaps-table tr:nth-child(even) {
  background-color: #0e1628;
}

.gaps-table tr:hover {
  background-color: #152238;
}

.gaps-req-subarea {
  font-size: 12.4px;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.gaps-req-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 14.6px;
  line-height: 1.35;
}

.gaps-empty-compliant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  text-align: center;
  gap: 10px;
}

.gaps-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26.9px;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.gaps-empty-title {
  font-size: 19.1px;
  font-weight: 700;
  color: #34d399;
  margin-top: 4px;
}

.gaps-empty-desc {
  font-size: 14.6px;
  color: #94a3b8;
  max-width: 540px;
  line-height: 1.5;
}

@media (max-width: 1400px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-container {
    padding: 16px;
  }
  .gaps-panel-header {
    flex-direction: column;
  }
}


/* Layout responsivo para tablets e celulares */
@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-header {
    padding: 12px 16px;
  }

  .sidebar-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .sidebar-nav .nav-section-title {
    display: none;
  }

  .tab-item {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    white-space: nowrap;
  }

  .tab-item.active {
    border-color: var(--primary-cyan);
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .sheet-header-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .sheet-title h1 {
    font-size: clamp(17px, 4vw, 19px);
    overflow-wrap: anywhere;
  }

  .sheet-toolbar,
  .search-wrapper {
    width: 100%;
    min-width: 0;
  }

  .search-input,
  .search-input:focus {
    width: 100%;
    min-height: 42px;
    font-size: 18.0px;
  }

  .dashboard-container {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 16px;
    overflow: visible;
    gap: 16px;
  }

  .excel-table-container {
    width: 100%;
    max-width: 100vw;
    min-height: 60vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .excel-grid-table {
    min-width: 760px;
  }

  .excel-grid-table th,
  .excel-grid-table td {
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .kpi-grid,
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-container {
    padding: 12px;
    gap: 12px;
  }

  .kpi-card,
  .pillar-card {
    min-width: 0;
    padding: 16px;
  }

  .gaps-panel-header {
    align-items: stretch;
    gap: 10px;
  }

  .gaps-table-wrapper {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sheet-header-bar {
    padding: 14px 12px;
  }

  .sidebar-title h2 {
    font-size: 15.7px;
  }

  .excel-grid-table {
    min-width: 680px;
    font-size: 13.5px;
  }

  .excel-grid-table th,
  .excel-grid-table td {
    padding: 9px 8px;
    font-size: 13.5px;
  }
}

/* 4 BID V2 — icon rail with expandable tab labels */
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
body { width:100%; height:100vh; height:100dvh; overflow:hidden; }
.app-layout { display:flex; width:100%; height:100vh; height:100dvh; overflow:hidden; }
.sidebar { display:flex; flex:0 0 auto; flex-direction:row; width:auto; height:100%; border-right:0; background:#0e1727; }
.icon-rail { display:flex; flex:0 0 70px; flex-direction:column; align-items:center; gap:9px; width:70px; min-height:0; padding:14px 9px 10px; background:#0b1422; border-right:1px solid var(--border-color); }
.rail-brand { display:grid; flex:0 0 42px; place-items:center; width:42px; height:42px; border-radius:11px; text-decoration:none; }
.brand-mark { display:block; width:40px; height:40px; filter:drop-shadow(0 5px 12px rgba(8,145,178,.18)); }
.rail-toggle { display:grid; flex:0 0 42px; place-items:center; width:42px; height:42px; border:1px solid transparent; border-radius:10px; background:transparent; color:#9fb0c4; cursor:pointer; transition:background .16s ease,color .16s ease,border-color .16s ease; }
.rail-toggle:hover { color:#eaf8ff; background:#142239; border-color:#24354b; }
.ui-icon { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.panel-chevron { transition:transform .2s ease; }
.panel-collapsed .panel-chevron { transform:rotate(180deg); }
.icon-nav { display:flex; flex:1 1 auto; flex-direction:column; align-items:center; gap:5px; width:100%; min-height:0; overflow-x:hidden; overflow-y:auto; padding:5px 0; scrollbar-width:thin; }
.rail-item { display:grid; flex:0 0 44px; place-items:center; width:44px; height:44px; padding:0; border:1px solid transparent; border-radius:11px; background:transparent; color:#91a2b7; cursor:pointer; transition:background .15s ease,color .15s ease,border-color .15s ease; }
.rail-item:hover { color:#eef8ff; background:#142239; }
.rail-item.active { color:#73d7ff; background:rgba(14,116,160,.2); border-color:rgba(56,189,248,.18); box-shadow:inset 2px 0 #38bdf8; }
.rail-item.is-hidden { display:none !important; }
.rail-version { padding:5px 7px; border:1px solid #26354b; border-radius:7px; color:#8294aa; font-size: 10.1px; font-weight:700; letter-spacing:.08em; }
.sidebar-panel { display:flex; flex:0 0 auto; flex-direction:column; width:266px; min-width:0; height:100%; overflow:hidden; background:var(--bg-sidebar); border-right:1px solid var(--border-color); transition:width .2s ease,opacity .16s ease; }
.panel-collapsed .sidebar-panel { width:0; border-right:0; opacity:0; }
.sidebar-panel .sidebar-header { display:flex; flex:0 0 76px; align-items:center; justify-content:space-between; padding:14px 16px; background:#0b1120; border-bottom:1px solid var(--border-color); }
.sidebar-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.sidebar-title h2 { color:#f8fafc; font-size: 21.3px; font-weight:750; letter-spacing:-.04em; white-space:nowrap; }
.brand-four { color:#70d7f8; }
.sidebar-title p { margin-top:3px; color:#8ca2b7; font-size: 11.3px; font-weight:650; letter-spacing:.12em; }
.portal-version { padding:4px 7px; border:1px solid rgba(56,189,248,.28); border-radius:7px; background:rgba(56,189,248,.08); color:#85dcfa; font-size: 11.3px; font-weight:700; letter-spacing:.08em; }
.sidebar-panel .sidebar-nav { display:block; flex:1 1 auto; min-height:0; overflow-x:hidden; overflow-y:auto; padding:10px 9px; }
.sidebar-panel .nav-section-title { padding:13px 10px 5px; color:#6d8098; font-size: 10.1px; letter-spacing:.13em; }
.sidebar-panel .tab-item { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:38px; padding:8px 10px; border:1px solid transparent; border-left:2px solid transparent; border-radius:8px; background:transparent; color:#afbed0; font-size: 12.4px; font-weight:500; text-align:left; white-space:normal; cursor:pointer; transition:background .14s ease,color .14s ease,border-color .14s ease; }
.sidebar-panel .tab-item:hover { color:#f2f8fc; background:#152238; }
.sidebar-panel .tab-item.active { color:#a9eaff; background:linear-gradient(90deg,rgba(14,116,160,.23),rgba(14,116,160,.05)); border-color:rgba(56,189,248,.1); border-left-color:#38bdf8; font-weight:650; }
.sidebar-panel .tab-label { min-width:0; overflow-wrap:anywhere; }
.sidebar-panel .tab-badge { flex:0 0 auto; padding:2px 6px; color:#9baec2; font-size: 10.1px; }
.sidebar-panel .tab-item.active .tab-badge { color:#76d8ff; }
.sidebar-panel .tab-item.is-hidden { display:none !important; }
.sidebar-panel .unhide-all-banner { margin:8px 5px; min-height:40px; }
.sidebar-panel .sidebar-footer { flex:0 0 auto; margin-top:0; padding:10px 12px 12px; border-top:1px solid rgba(255,255,255,.07); background:#0b1120; }
.sidebar-panel .btn-reset-v03 { min-height:38px; color:#9aabbe; font-size: 11.3px; }
.sidebar-panel .btn-reset-v03:hover { color:#fb7185; }
.main-content { flex:1 1 auto; min-width:0; height:100vh; height:100dvh; overflow:hidden; }
.sheet-header-bar { min-height:76px; }
.rail-toggle:focus-visible,.rail-item:focus-visible,.sidebar-panel .tab-item:focus-visible { outline:2px solid var(--primary-cyan); outline-offset:2px; }

@media (max-width:900px) {
  body { height:auto; min-height:100vh; min-height:100dvh; overflow-x:hidden; overflow-y:auto; }
  .app-layout { display:flex; flex-direction:column; width:100%; height:auto; min-height:100vh; min-height:100dvh; overflow:visible; }
  .sidebar { display:flex; flex:0 0 auto; flex-direction:column; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--border-color); }
  .icon-rail { display:flex; flex:0 0 66px; flex-direction:row; gap:7px; width:100%; height:66px; min-height:66px; padding:8px 10px; border-right:0; border-bottom:1px solid var(--border-color); }
  .rail-brand { flex:0 0 40px; width:40px; height:40px; }
  .brand-mark { width:38px; height:38px; }
  .rail-toggle { flex:0 0 40px; width:40px; height:40px; }
  .icon-nav { display:flex; flex:1 1 auto; flex-direction:row; align-items:center; gap:4px; width:auto; height:48px; min-width:0; min-height:0; overflow-x:auto; overflow-y:hidden; padding:2px 0; -webkit-overflow-scrolling:touch; }
  .rail-item { flex:0 0 42px; width:42px; height:42px; }
  .rail-version { display:none; }
  .sidebar-panel { display:none; width:100%; height:auto; max-height:55vh; border-right:0; border-bottom:1px solid var(--border-color); opacity:1; }
  .sidebar.mobile-open .sidebar-panel { display:flex; width:100%; }
  .sidebar.mobile-open .panel-chevron { transform:rotate(180deg); }
  .sidebar-panel .sidebar-header { flex:0 0 60px; padding:10px 16px; }
  .sidebar-panel .sidebar-nav { display:block; flex:1 1 auto; max-height:calc(55vh - 112px); overflow-y:auto; padding:8px 12px; }
  .sidebar-panel .nav-section-title { display:block; }
  .sidebar-panel .tab-item { display:flex; flex:0 0 auto; width:100%; min-height:42px; padding:10px; font-size: 13.5px; }
  .sidebar-panel .sidebar-footer { display:block; padding:8px 12px; }
  .main-content { width:100%; min-width:0; height:auto; min-height:0; overflow:visible; }
  .sheet-header-bar { align-items:stretch; flex-direction:column; gap:12px; padding:16px; }
  .sheet-toolbar,.search-wrapper { width:100%; min-width:0; }
  .search-input,.search-input:focus { width:100%; min-height:42px; font-size: 18.0px; }
  .dashboard-container { width:100%; height:auto; min-height:0; padding:16px; overflow:visible; }
  .excel-table-container { width:100%; max-width:100vw; min-height:60vh; overflow:auto; -webkit-overflow-scrolling:touch; }
}

@media (max-width:600px) {
  .sidebar-title h2 { font-size: 19.1px; }
  .icon-rail { padding-inline:7px; gap:4px; }
  .rail-item { flex-basis:40px; width:40px; height:40px; }
  .rail-toggle { flex-basis:38px; width:38px; height:38px; }
  .sidebar-panel .sidebar-header { min-height:58px; }
  .sheet-header-bar { padding:14px 12px; }
  .dashboard-container { padding:12px; gap:12px; }
  .kpi-grid,.pillars-grid { grid-template-columns:minmax(0,1fr); }
  .excel-grid-table { min-width:680px; font-size: 13.5px; }
}

/* 4 BID V3 — grafite/cinza, sem rolagem horizontal da página */
:root {
  --bg-app:#e9ebee; --bg-sidebar:#f8f9fa; --border-color:#d5d8dc; --border-light:#e1e4e8;
  --table-header-bg:#343a40; --table-header-cyan:#f3f4f6; --row-odd:#ffffff; --row-even:#f3f4f6; --row-hover:#e9ecef;
  --text-main:#20252b; --text-muted:#626b75; --text-dim:#818a94;
  --primary-cyan:#6b737c; --primary-hover:#454c54;
  --agree-bg:rgba(22,163,74,.12); --agree-text:#15803d; --agree-border:rgba(22,163,74,.32);
  --partially-bg:rgba(107,114,128,.12); --partially-text:#4b5563; --partially-border:rgba(107,114,128,.28);
  --disagree-bg:rgba(220,38,38,.11); --disagree-text:#b91c1c; --disagree-border:rgba(220,38,38,.3);
  --na-bg:rgba(107,114,128,.1); --na-text:#626b75; --na-border:rgba(107,114,128,.22);
}
html { width:100%; max-width:100%; overflow-x:clip; }
body { width:100%; max-width:100%; color:var(--text-main); background:var(--bg-app); overflow:hidden; }
.app-layout { width:100%; max-width:100%; min-width:0; overflow:hidden; }
.sidebar { background:#343a40; }
.icon-rail { background:#252a30; border-color:#454c54; }
.sidebar-panel,.sidebar-panel .sidebar-header,.sidebar-panel .sidebar-footer { background:#343a40; border-color:#454c54; }
.sidebar-panel .nav-section-title { color:#aeb4bb; }
.sidebar-panel .tab-item { color:#e1e4e8; }
.sidebar-panel .tab-item:hover { color:#fff; background:#454c54; }
.sidebar-panel .tab-item.active { color:#fff; background:#454c54; border-color:#565e67; border-left-color:#f3f4f6; }
.sidebar-panel .tab-item.active .tab-badge,.sidebar-panel .tab-badge { color:#d1d5db; background:#454c54; border-color:#565e67; }
.sidebar-title h2 { color:#fff; }
.brand-four { color:#d1d5db; }
.sidebar-title p,.portal-version { color:#d1d5db; border-color:#565e67; background:#454c54; }
.rail-toggle,.rail-item { color:#c5cbd1; }
.rail-toggle:hover,.rail-item:hover { color:#fff; background:#454c54; border-color:#565e67; }
.rail-item.active { color:#fff; background:#454c54; border-color:#69717a; box-shadow:inset 3px 0 #f3f4f6; }
.rail-toggle:focus-visible,.rail-item:focus-visible,.sidebar-panel .tab-item:focus-visible { outline-color:#9ca3af; }
.main-content { min-width:0; width:0; background:#e9ebee; }
.sheet-header-bar { min-width:0; background:#f8f9fa; border-color:#d5d8dc; }
.sheet-title h1 { color:#20252b; }
.search-input { max-width:100%; color:#20252b; background:#fff; border-color:#d5d8dc; }
.search-input::placeholder { color:#818a94; }
.search-input:focus { border-color:#6b737c; box-shadow:0 0 0 2px rgba(107,115,124,.15); }
.search-count-badge,.btn-suggest-tab { color:#343a40; background:#e9ebee; border-color:#9ca3af; }
.btn-suggest-tab:hover { color:#fff; background:#454c54; }
.excel-table-container { flex:1 1 auto; min-width:0; min-height:0; overflow-x:hidden; overflow-y:auto; background:#e9ebee; }
.excel-grid-table { width:100% !important; min-width:0 !important; max-width:100% !important; table-layout:fixed !important; color:#20252b; }
.excel-grid-table th,.excel-grid-table td { width:auto !important; min-width:0 !important; max-width:none !important; padding:10px 9px; overflow-wrap:anywhere; word-break:normal; white-space:normal; }
.excel-grid-table th { color:#f3f4f6; background:#343a40; border-color:#565e67; }
.excel-grid-table td { color:#20252b; border-color:#d5d8dc; }
.excel-grid-table tr:nth-child(odd) td { background:#fff; }
.excel-grid-table tr:nth-child(even) td { background:#f3f4f6; }
.excel-grid-table tr:hover td { background:#e9ecef !important; }
.td-interface-name,.excel-grid-table td[style*="font-weight: 700"] { color:#20252b !important; }
.td-scope-text,.td-rationale-text { color:#454c54; }
.badge-abinbev,.badge-optional,.badge-vendor.optional { color:#454c54; background:#e9ecef; border-color:#c5cbd1; }
.td-status-cell.partially,.hl-partially,.score-badge-dark.score-mid { color:#4b5563 !important; background:#e9ecef !important; border-color:#c5cbd1 !important; box-shadow:none; }
.td-status-cell.compliant,.hl-agree,.score-badge-dark.score-high { color:#15803d !important; background:rgba(22,163,74,.12) !important; border-color:rgba(22,163,74,.32) !important; box-shadow:none; }
.td-status-cell.not-compliant,.hl-disagree,.score-badge-dark.score-low { color:#b91c1c !important; background:rgba(220,38,38,.11) !important; border-color:rgba(220,38,38,.3) !important; box-shadow:none; }
.score-badge-dark.score-na { color:#626b75; background:#e9ecef; border-color:#c5cbd1; }
.dashboard-container { flex:1 1 auto; width:100%; min-width:0; min-height:0; height:auto; padding:22px clamp(14px,2vw,30px) 36px; overflow-x:hidden; overflow-y:auto; background:#e9ebee; }
.kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.kpi-card,.pillar-card,.gaps-drilldown-panel { min-width:0; color:#20252b; background:#f8f9fa; border-color:#d5d8dc; box-shadow:0 3px 12px rgba(31,37,43,.07); }
.kpi-card.kpi-wh,.kpi-card.kpi-bobst { border-left-color:#6b737c; }
.kpi-card.kpi-diff { border-left-color:#9ca3af; }
.kpi-card-label,.kpi-footer-left,.kpi-footer-right,.kpi-score-max,.pillar-count-badge { color:#626b75; }
.kpi-card-brand.brand-wh,.kpi-card-brand.brand-bobst,.kpi-footer-right.color-wh,.kpi-footer-right.color-bobst { color:#454c54; }
.kpi-score-val { color:#20252b; }
.kpi-score-val.color-green,.kpi-footer-left.color-green,.pillar-edge.edge-wh { color:#15803d; }
.kpi-score-val.color-orange,.kpi-footer-left.color-orange,.pillar-edge.edge-bobst { color:#b91c1c; }
.kpi-score-val.color-cyan,.kpi-footer-left.color-cyan,.pillar-edge.edge-tie { color:#626b75; }
.pillar-name,.dashboard-section-title h3 { color:#20252b; }
.pillar-card:hover { border-color:#9ca3af; background:#fff; box-shadow:0 6px 18px rgba(31,37,43,.1); }
.pillar-card.has-active-gaps { border-color:#9ca3af; box-shadow:0 0 0 1px rgba(107,115,124,.2),0 6px 18px rgba(31,37,43,.08); }
.pillar-supplier-label.label-wh,.pillar-supplier-label.label-bobst,.pillar-score-num.num-wh,.pillar-score-num.num-bobst { color:#454c54; }
.pillar-progress-track { background:#e1e4e8; }
.pillar-progress-fill.fill-wh,.pillar-progress-fill.fill-bobst { background:#737b84; }
.pillar-edge.edge-wh { background:rgba(22,163,74,.1); border-color:rgba(22,163,74,.25); }
.pillar-edge.edge-bobst { background:rgba(220,38,38,.09); border-color:rgba(220,38,38,.22); }
.pillar-edge.edge-tie { background:#e9ecef; border-color:#d5d8dc; }
.pillar-link-hint { color:#626b75; }
.pillar-link-hint:hover { color:#20252b; }
.pillar-actions-group { flex-wrap:wrap; }
.btn-filter-pill.pill-gap.has-items,.btn-filter-pill.pill-gap.active-filter-gap { color:#b91c1c; background:rgba(220,38,38,.1); border-color:rgba(220,38,38,.28); box-shadow:none; }
.btn-filter-pill.pill-op.has-items,.btn-filter-pill.pill-op.active-filter-op { color:#15803d; background:rgba(22,163,74,.1); border-color:rgba(22,163,74,.28); box-shadow:none; }
.btn-filter-pill.pill-gap.zero-items,.btn-filter-pill.pill-op.zero-items { color:#626b75; background:#f3f4f6; border-color:#d5d8dc; }
.legend-dot.dot-wh,.legend-dot.dot-bobst { background:#737b84; }
.gaps-drilldown-panel.panel-wh,.gaps-drilldown-panel.panel-bobst { border-left-color:#737b84; }
.gaps-table-wrapper { width:100%; max-width:100%; overflow-x:hidden; }
.gaps-table { width:100%; table-layout:fixed; }
.gaps-table th,.gaps-table td { min-width:0; max-width:none; overflow-wrap:anywhere; word-break:normal; }
.toast-notice { color:#20252b; background:#f8f9fa; border-color:#9ca3af; box-shadow:0 10px 25px rgba(31,37,43,.16); }
.btn-toast-unhide { color:#fff; background:#454c54; box-shadow:none; }
.btn-toast-unhide:hover { color:#fff; background:#343a40; box-shadow:none; }
.search-empty-cell { background:#f8f9fa !important; }
.empty-search-title { color:#20252b; }
mark.search-highlight { color:#20252b; background:rgba(107,115,124,.2); }
@media (max-width:1400px) and (min-width:901px) {
  .sidebar-panel { width:230px; }
  .dashboard-container { padding-inline:18px; }
  .kpi-grid { gap:12px; }
  .kpi-card { padding:17px; }
  .kpi-card-brand { max-width:55%; text-align:right; overflow-wrap:anywhere; }
  .pillar-card { padding:14px; }
  .pillar-supplier-info { width:126px; }
}
@media (max-width:900px) {
  body { height:auto; min-height:100vh; min-height:100dvh; overflow-x:clip; overflow-y:auto; }
  .app-layout { height:auto; min-height:100vh; min-height:100dvh; overflow:clip; }
  .main-content { width:100%; height:auto; min-height:0; overflow:visible; }
  .dashboard-container { height:auto; overflow:visible; padding:16px; }
  .excel-table-container { min-height:60vh; overflow-x:hidden; overflow-y:visible; }
  .excel-grid-table { min-width:0 !important; width:100% !important; table-layout:fixed !important; font-size: 12.4px; }
  .excel-grid-table th,.excel-grid-table td { padding:8px 5px; font-size: 12.4px; }
  .gaps-table-wrapper { overflow-x:hidden; }
  .dashboard-section-header { align-items:flex-start; flex-direction:column; gap:10px; }
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .kpi-grid,.pillars-grid { grid-template-columns:minmax(0,1fr); }
  .dashboard-container { padding:12px; gap:12px; }
  .kpi-card,.pillar-card { padding:15px; }
  .kpi-card-header { align-items:flex-start; gap:8px; }
  .kpi-card-brand { text-align:right; }
  .sheet-header-bar { padding:14px 12px; }
}

/* 4 BID V4 — comparação analítica por escopo */
.kpi-main-score { flex-wrap:wrap; }
.kpi-score-meter,.scope-score-meter { display:block; width:100%; height:9px; overflow:hidden; border-radius:999px; background:#e1e4e8; }
.kpi-score-meter { flex:0 0 100%; margin-top:10px; }
.kpi-score-meter span,.scope-score-meter span { display:block; height:100%; border-radius:inherit; background:#7b828a; }
.scope-analysis-section { min-width:0; padding:18px; border:1px solid #d5d8dc; border-radius:13px; background:#f8f9fa; box-shadow:0 3px 12px rgba(31,37,43,.06); }
.scope-analysis-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.scope-analysis-heading h3 { color:#20252b; font-size: 18.0px; font-weight:750; }
.scope-analysis-heading p { margin-top:4px; color:#626b75; font-size: 13.5px; line-height:1.5; }
.scope-legend { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 14px; color:#454c54; font-size: 12.4px; }
.scope-legend span { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.legend-swatch { display:inline-block; width:10px; height:10px; border-radius:50%; }
.gap-swatch { background:#dc2626; }
.op-swatch { background:#f0b429; }
.score-swatch { background:#7b828a; }
.scope-table-wrap { width:100%; max-width:100%; overflow-x:hidden; }
.scope-comparison-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; color:#20252b; font-size: 13.5px; }
.scope-comparison-table th,.scope-comparison-table td { min-width:0; padding:10px 11px; border-right:1px solid #e1e4e8; border-bottom:1px solid #e1e4e8; overflow-wrap:anywhere; vertical-align:middle; }
.scope-comparison-table thead th { color:#343a40; background:#eceff2; text-align:left; font-size: 12.4px; font-weight:750; }
.scope-comparison-table thead tr:first-child th:first-child { border-top-left-radius:8px; }
.scope-comparison-table thead tr:first-child th:last-child { border-top-right-radius:8px; }
.scope-comparison-table th:first-child,.scope-comparison-table td:first-child { border-left:1px solid #e1e4e8; }
.scope-comparison-table tbody tr:nth-child(even) { background:#f3f4f6; }
.scope-comparison-row.scope-row-active { background:#e9ecef; }
.scope-name-cell { width:31%; }
.scope-name-cell strong { display:block; color:#20252b; font-size: 13.5px; line-height:1.4; }
.scope-name-cell > span { display:block; margin-top:3px; color:#626b75; font-size: 12.4px; }
.scope-source-link { display:inline-flex; align-items:center; gap:5px; margin-top:7px; padding:0; border:0; background:transparent; color:#454c54; font-size: 12.4px; font-weight:650; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.scope-source-link:hover { color:#111827; }
.scope-supplier-cell { width:27%; }
.supplier-mobile-label { display:none; }
.scope-score-line { display:flex; align-items:baseline; gap:5px; }
.scope-score-line strong { color:#20252b; font-size: 16.8px; font-variant-numeric:tabular-nums; }
.scope-score-line > span { color:#818a94; font-size: 11.3px; }
.scope-score-meter { height:8px; margin:6px 0 9px; }
.scope-filter-chips { display:flex; flex-wrap:wrap; gap:6px; }
.scope-filter-chip { min-height:28px; padding:4px 9px; border:1px solid transparent; border-radius:7px; font-size: 12.4px; font-weight:750; line-height:1; cursor:pointer; transition:filter .15s ease,outline-color .15s ease,transform .15s ease; }
.scope-filter-chip:hover { filter:brightness(.96); transform:translateY(-1px); }
.scope-filter-chip:focus-visible { outline:2px solid #343a40; outline-offset:2px; }
.scope-filter-chip.gap-chip.count-present { color:#b91c1c; background:rgba(220,38,38,.11); border-color:rgba(220,38,38,.3); }
.scope-filter-chip.gap-chip.count-zero { color:#626b75; background:#e9ecef; border-color:#d5d8dc; }
.scope-filter-chip.op-chip.count-present { color:#925f00; background:#fff2c2; border-color:#f2d16f; }
.scope-filter-chip.op-chip.count-zero { color:#626b75; background:#e9ecef; border-color:#d5d8dc; }
.scope-filter-chip.is-active { outline:2px solid #343a40; outline-offset:1px; }
.scope-supplier-cell.supplier-filter-active { background:rgba(52,58,64,.04); }
.scope-result-cell { width:15%; text-align:center; }
.scope-result-badge { display:inline-flex; align-items:center; justify-content:center; min-width:64px; padding:5px 9px; border:1px solid #d5d8dc; border-radius:7px; background:#e9ecef; color:#626b75; font-size: 12.4px; font-weight:800; }
.scope-result-badge.edge-wh { color:#15803d; background:rgba(22,163,74,.1); border-color:rgba(22,163,74,.27); }
.scope-result-badge.edge-bobst { color:#b91c1c; background:rgba(220,38,38,.09); border-color:rgba(220,38,38,.24); }
.scope-result-detail { display:block; margin-top:5px; color:#626b75; font-size: 11.3px; line-height:1.35; }
.btn-switch-type.active-switch-op { color:#925f00; background:#fff2c2; border-color:#f2d16f; }
.btn-switch-type.active-switch-gap { color:#fff; background:#b91c1c; border-color:#b91c1c; }
@media (max-width:1100px) and (min-width:901px) {
  .scope-analysis-section { padding:13px; }
  .scope-comparison-table th,.scope-comparison-table td { padding:8px 7px; }
  .scope-filter-chip { min-height:26px; padding:4px 7px; font-size: 11.3px; }
}
@media (max-width:900px) {
  .scope-analysis-heading { align-items:flex-start; flex-direction:column; }
  .scope-legend { justify-content:flex-start; }
  .scope-table-wrap { overflow-x:hidden; }
  .scope-comparison-table,.scope-comparison-table tbody { display:block; width:100%; }
  .scope-comparison-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .scope-comparison-table tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .scope-comparison-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; min-width:0; overflow:hidden; border:1px solid #d5d8dc; border-radius:10px; background:#fff; }
  .scope-comparison-table tbody tr:nth-child(even),.scope-comparison-row.scope-row-active { background:#fff; }
  .scope-comparison-table tbody td { display:block; width:auto; border:0; padding:9px; }
  .scope-comparison-table tbody .scope-name-cell,.scope-comparison-table tbody .scope-result-cell { grid-column:1/-1; }
  .scope-comparison-table tbody .scope-name-cell { border-bottom:1px solid #e1e4e8; }
  .scope-comparison-table tbody .scope-supplier-cell { border-bottom:1px solid #e1e4e8; }
  .scope-comparison-table tbody .scope-supplier-cell:nth-of-type(3) { border-left:1px solid #e1e4e8; }
  .scope-comparison-table tbody .scope-result-cell { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:left; }
  .scope-result-detail { margin-top:0; text-align:right; }
  .supplier-mobile-label { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px; margin-bottom:7px; color:#343a40; font-size: 12.4px; font-weight:800; }
  .supplier-mobile-label span { color:#818a94; font-size: 10.1px; font-weight:500; }
  .scope-supplier-cell.supplier-filter-active { background:#f3f4f6; }
}
@media (max-width:560px) {
  .scope-analysis-section { padding:11px; }
  .scope-comparison-table tbody { grid-template-columns:minmax(0,1fr); }
  .scope-filter-chip { min-height:30px; }
  .scope-name-cell strong { font-size: 14.6px; }
}

/* V4 — legibilidade e cores semânticas no filtro de detalhes */
.gaps-panel-header { border-bottom-color:#e1e4e8; }
.gaps-panel-title { color:#20252b; }
.gaps-panel-title .highlight-supplier.wh,.gaps-panel-title .highlight-supplier.bobst { color:#454c54; }
.gaps-panel-subtitle { color:#626b75; }
.gaps-supplier-badge.badge-wh,.gaps-supplier-badge.badge-bobst { color:#454c54; background:#e9ecef; border-color:#d5d8dc; }
.gaps-pillar-badge { color:#454c54; background:#f3f4f6; border-color:#d5d8dc; }
.gaps-type-badge.badge-gap-type,.gaps-count-badge { color:#b91c1c; background:rgba(220,38,38,.1); border-color:rgba(220,38,38,.28); }
.gaps-type-badge.badge-op-type { color:#925f00; background:#fff2c2; border-color:#f2d16f; }
.gaps-count-badge.badge-zero { color:#626b75; background:#e9ecef; border-color:#d5d8dc; }
.gaps-panel-switch { background:#f3f4f6; border-color:#d5d8dc; }
.btn-switch-type { color:#626b75; }
.btn-switch-type:hover { color:#20252b; }
.esc-hint { color:#626b75; }
.esc-hint kbd { color:#454c54; background:#e9ecef; border-color:#d5d8dc; box-shadow:none; }
.btn-view-excel { color:#fff; background:#343a40; border-color:#343a40; }
.btn-view-excel:hover { color:#fff; background:#454c54; border-color:#454c54; }
.btn-close-panel { color:#454c54; background:#f3f4f6; border-color:#d5d8dc; }
.btn-close-panel:hover { color:#b91c1c; background:rgba(220,38,38,.08); border-color:rgba(220,38,38,.25); }
.gaps-table-wrapper { width:100%; max-width:100%; overflow-x:hidden; background:#fff; border-color:#d5d8dc; }
.gaps-table { width:100%; table-layout:fixed; color:#20252b; }
.gaps-table th { color:#f3f4f6; background:#343a40; border-color:#565e67; white-space:normal; overflow-wrap:anywhere; }
.gaps-table td { color:#343a40; border-bottom-color:#e1e4e8; overflow-wrap:anywhere; word-break:normal; }
.gaps-table tr:nth-child(odd) { background:#fff; }
.gaps-table tr:nth-child(even) { background:#f3f4f6; }
.gaps-table tr:hover { background:#e9ecef; }
.gaps-req-subarea { color:#626b75; }
.gaps-req-title { color:#20252b; }
.gaps-empty-title,.gaps-empty-icon { color:#15803d; }
.gaps-empty-desc { color:#626b75; }
.gaps-panel-actions { min-width:0; }
@media (max-width:900px) {
  .gaps-panel-header { align-items:stretch; }
  .gaps-panel-actions { justify-content:flex-start; }
  .gaps-table-wrapper { overflow-x:hidden; }
  .gaps-table th,.gaps-table td { padding:8px 6px; font-size: 11.3px; }
}

/* Seletor do mecanismo local de idiomas */
.language-label { display:flex; align-items:center; color:var(--text-muted); font-size:13.5px; white-space:nowrap; }
.language-picker { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size: 13.5px; white-space:nowrap; }
.language-picker select { min-height:38px; max-width:180px; padding:7px 10px; color:var(--text-main); background:var(--bg-sidebar); border:1px solid var(--border-color); border-radius:8px; }
.translation-status { color:var(--text-muted); font-size: 12.4px; max-width:190px; }
@media (max-width: 700px) { .language-picker { width:100%; } .language-picker select { flex:1; max-width:none; } .translation-status { width:100%; } }

/* Login and administrator screens */
.app-layout[hidden], .auth-screen[hidden] { display:none !important; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 20% 20%,#16243a 0,#0b1120 48%,#070b13 100%); color:#e8edf5; }
.auth-card { width:min(440px,100%); padding:36px; border:1px solid #263246; border-radius:20px; background:#111a2a; box-shadow:0 24px 80px #0007; }
.auth-brand { display:inline-flex; align-items:center; gap:8px; color:#f8fafc; font-size: 26.9px; font-weight:800; letter-spacing:-1px; text-decoration:none; }
.auth-brand span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#202a34; color:#4ade80; }
.auth-eyebrow { margin:19px 0 7px; color:#4ade80; font-size: 11.3px; font-weight:800; letter-spacing:1.7px; }
.auth-card h1,.admin-card h1 { margin:0; color:#f8fafc; font-size: 28.1px; letter-spacing:-.7px; }
.auth-intro { margin:9px 0 24px; color:#a7b1c1; font-size: 14.6px; line-height:1.65; }
.auth-card form { display:grid; gap:9px; }
.auth-card form[hidden] { display:none; }
.auth-card label,.admin-card label { color:#d7deea; font-size: 13.5px; font-weight:700; }
.auth-card input,.admin-card input[type=email],.admin-card input[type=number] { width:100%; min-height:44px; padding:11px 13px; border:1px solid #344258; border-radius:9px; outline:none; background:#0b1220; color:#f8fafc; font:inherit; }
.auth-card input:focus,.admin-card input:focus { border-color:#4ade80; box-shadow:0 0 0 3px #4ade8022; }
.auth-submit { min-height:43px; padding:10px 15px; border:1px solid #22c55e; border-radius:9px; background:#22c55e; color:#06200f; font-family:inherit; font-size: 14.6px; font-weight:700; cursor:pointer; }
.auth-submit:hover { filter:brightness(1.08); }
.auth-secondary { min-height:36px; border:0; background:transparent; color:#a7b1c1; font-family:inherit; font-size: 13.5px; font-weight:600; cursor:pointer; }
.auth-status,.admin-status { min-height:20px; margin:13px 0 0; color:#86efac; font-size: 13.5px; line-height:1.5; }
.auth-status.is-error,.admin-status.is-error { color:#fca5a5; }
.auth-footnote { margin:18px 0 0; color:#8290a4; font-size: 12.4px; line-height:1.5; }
.session-tools { display:flex; align-items:center; gap:10px; margin-left:6px; color:var(--text-muted); font-size: 12.4px; }
.session-tools a,.session-tools button { padding:7px 9px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-sidebar); color:var(--text-main); text-decoration:none; font-family:inherit; font-size: 12.4px; font-weight:600; cursor:pointer; }
.session-tools [hidden] { display:none; }
.admin-page { min-height:100vh; margin:0; background:#0b1120; color:#e8edf5; font-family:system-ui,sans-serif; }
.admin-wrap { width:min(860px,100%); margin:0 auto; padding:25px 20px 60px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.admin-back { color:#4ade80; font-size: 13.5px; font-weight:700; text-decoration:none; }
.admin-card { padding:32px; border:1px solid #263246; border-radius:18px; background:#111a2a; box-shadow:0 24px 80px #0005; }
.admin-card .auth-intro { margin-bottom:23px; }
.admin-ttl-form { padding:18px; border:1px solid #2b394e; border-radius:12px; background:#0d1523; }
.admin-inline { display:flex; align-items:center; gap:12px; margin-top:9px; }
.admin-inline input { max-width:130px; }
.admin-inline span,.admin-ttl-form small,.admin-section-head p { color:#94a3b8; font-size: 12.4px; }
.admin-ttl-form small { display:block; margin-top:9px; }
.admin-section-head { display:flex; justify-content:space-between; margin:28px 0 14px; }
.admin-section-head h2 { margin:0; color:#f8fafc; font-size: 18.0px; }
.admin-section-head p { margin:5px 0 0; }
.admin-email-form { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:end; gap:10px; }
.admin-email-form>label:first-child { grid-column:1/-1; }
.admin-check { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.admin-check input { accent-color:#22c55e; }
.trusted-email-list { display:grid; gap:8px; margin-top:12px; }
.trusted-email-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid #2b394e; border-radius:10px; background:#0d1523; }
.trusted-email-row strong,.trusted-email-row small { display:block; overflow-wrap:anywhere; }
.trusted-email-row strong { color:#e8edf5; font-size: 13.5px; }
.trusted-email-row small { margin-top:4px; color:#94a3b8; font-size: 11.3px; }
.trusted-email-row button { padding:7px 10px; border:1px solid #563943; border-radius:7px; background:#2c1b24; color:#fca5a5; font-size: 12.4px; cursor:pointer; }
.trusted-email-row button:disabled { opacity:.45; cursor:not-allowed; }
.trusted-email-actions { display:flex; align-items:center; gap:7px; }
.trusted-email-row .issue-key-button { border-color:#294b3c; background:#14291f; color:#86efac; }
.generated-key-panel { margin-top:14px; padding:18px; border:1px solid #287049; border-radius:12px; background:#10251c; }
.generated-key-panel h3 { margin:0; color:#bbf7d0; font-size: 15.7px; }
.generated-key-panel p { margin:5px 0 12px; color:#a8c7b1; font-size: 13.5px; }
.generated-key-panel code { display:block; overflow-wrap:anywhere; padding:14px; border:1px dashed #46785b; border-radius:9px; background:#09160f; color:#86efac; font-size: 19.1px; font-weight:800; letter-spacing:1px; text-align:center; }
.generated-key-panel .generated-key-expiry { margin:9px 0; }
.generated-key-panel small { display:block; margin-top:9px; color:#a8c7b1; font-size: 12.4px; }
@media(max-width:650px) { .auth-card,.admin-card { padding:24px 20px; } .admin-inline,.admin-email-form { display:grid; grid-template-columns:1fr; } .admin-inline input { max-width:none; } .admin-email-form>label:first-child { grid-column:auto; } .session-tools #auth-current-email { display:none; } }

/* Executive dashboard and performance page, approved local design */
.exec-dashboard{display:flex;flex-direction:column;gap:16px;width:100%;min-width:0}.exec-scope-counts{display:flex;gap:10px;color:#737b84;font-size: 11.3px}.exec-scope-counts b{color:#454c54}
.kpi-card-brand.brand-wh,.exec-supplier:first-of-type>strong:first-child{color:#d63384!important}
.kpi-card-brand.brand-bobst,.exec-supplier:nth-of-type(2)>strong:first-child{color:#e87516!important}
.exec-result.wh{color:#d63384;background:rgba(214,51,132,.10);border-color:rgba(214,51,132,.28)}
.exec-result.bobst{color:#e87516;background:rgba(232,117,22,.11);border-color:rgba(232,117,22,.30)}
.exec-scope-card footer .exec-result.wh{color:#d63384;background:rgba(214,51,132,.10);border-color:rgba(214,51,132,.28)}
.exec-scope-card footer .exec-result.bobst{color:#e87516;background:rgba(232,117,22,.11);border-color:rgba(232,117,22,.30)}
.exec-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.exec-kpi,.exec-section{min-width:0;background:#f8f9fa;border:1px solid #d5d8dc;border-radius:13px;box-shadow:0 3px 12px rgba(31,37,43,.06)}.exec-kpi{padding:17px 19px;border-left:4px solid #737b84}.exec-label,.exec-caption{color:#626b75;font-size: 12.4px}.exec-label{font-weight:800;letter-spacing:.07em;text-transform:uppercase}.exec-value{margin:8px 0 6px;color:#20252b;font-size: 34.8px;line-height:1;font-weight:800;letter-spacing:-.04em}.exec-value small{color:#818a94;font-size: 14.6px;font-weight:600;letter-spacing:0}.exec-meter,.exec-bar{height:8px;background:#e1e4e8;border-radius:999px;overflow:hidden}.exec-meter span,.exec-bar i{display:block;height:100%;background:#7b828a;border-radius:inherit}.exec-caption{margin-top:7px}.exec-value.edge-wh,.exec-caption.edge-wh{color:#15803d}.exec-value.edge-bobst,.exec-caption.edge-bobst{color:#b91c1c}.exec-value.edge-tie,.exec-caption.edge-tie{color:#626b75}.exec-section{padding:17px}.exec-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:13px}.exec-section-heading h2,.perf-cylinder h2{margin:0;color:#20252b;font-size: 18.0px;font-weight:800;letter-spacing:-.01em}.exec-section-heading p,.perf-cylinder p{margin:4px 0 0;color:#626b75;font-size: 13.5px;line-height:1.5}.exec-meta,.perf-source-tag{color:#626b75;font-size: 12.4px;white-space:nowrap}.exec-scope-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.exec-scope-card{min-width:0;padding:14px;background:#fff;border:1px solid #dfe2e6;border-radius:11px}.exec-scope-card>header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.exec-scope-card h3{margin:0;color:#20252b;font-size: 13.5px;line-height:1.35}.exec-scope-card>header span{color:#737b84;font-size: 11.3px;white-space:nowrap}.exec-supplier{display:grid;grid-template-columns:35px minmax(35px,1fr) 34px;align-items:center;gap:7px;margin-top:11px;color:#454c54;font-size: 11.3px}.exec-supplier>strong:last-child{text-align:right;color:#343a40;font-size: 12.4px;font-variant-numeric:tabular-nums}.exec-scope-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #eef0f2}.exec-result{padding:3px 7px;border:1px solid #d5d8dc;border-radius:6px;background:#e9ecef;color:#626b75;font-size: 11.3px;font-weight:800}.exec-result.wh{color:#15803d;background:rgba(22,163,74,.1);border-color:rgba(22,163,74,.25)}.exec-result.bobst{color:#b91c1c;background:rgba(220,38,38,.09);border-color:rgba(220,38,38,.23)}.exec-details{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border:1px solid #d5d8dc;border-radius:7px;background:#fff;color:#343a40;font-size: 12.4px;font-weight:750;cursor:pointer;white-space:nowrap}.exec-details:hover{background:#eef0f2}.exec-details:focus-visible{outline:2px solid #343a40;outline-offset:2px}.exec-performance-link{background:#343a40;color:#fff;border-color:#343a40}.exec-performance-link:hover{background:#20252b}.exec-performance-summary,.perf-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}.exec-performance-summary article,.perf-kpi-strip article{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:8px;background:#eef0f2}.exec-performance-summary article span,.perf-kpi-strip article span{color:#626b75;font-size: 11.3px}.exec-performance-summary article strong,.perf-kpi-strip article strong{color:#20252b;font-size: 13.5px}.exec-matrix-wrap,.exec-table-wrap{width:100%;max-width:100%;overflow-x:auto}.exec-matrix,.exec-data-table{width:100%;border-collapse:collapse;color:#20252b;font-size: 12.4px}.exec-matrix th,.exec-matrix td,.exec-data-table th,.exec-data-table td{padding:9px 10px;border-bottom:1px solid #e1e4e8;text-align:left;vertical-align:top;line-height:1.4}.exec-matrix thead th,.exec-data-table thead th{background:#eceff2;color:#454c54;font-size: 11.3px;font-weight:800}.exec-matrix tbody th,.exec-data-table tbody th{font-weight:700}.exec-matrix tbody tr:nth-child(even),.exec-data-table tbody tr:nth-child(even){background:#f3f4f6}.exec-matrix td small,.exec-data-table td small{display:block;margin-top:4px;color:#737b84;font-size: 11.3px;white-space:normal}.perf-condition{color:#956600!important}.perf-negative{color:#b91c1c!important}.perf-warning{color:#956600!important}.exec-footnotes{display:grid;gap:5px;margin-top:10px;color:#626b75;font-size: 11.3px;line-height:1.45}.perf-eyebrow{display:block;margin-bottom:4px;color:#626b75;font-size: 11.3px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.perf-kpi-strip{margin:0}.perf-kpi-strip article strong{font-size: 15.7px}.perf-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.perf-alert{display:grid;gap:4px;padding:11px 12px;border:1px solid #f0dfa9;border-radius:8px;background:#fff8e6;color:#685014;font-size: 12.4px;line-height:1.45}.perf-alert b{font-size: 12.4px}.perf-status{display:inline-block;padding:3px 7px;border-radius:6px;background:#eaf5ed;color:#15803d;font-size: 11.3px;font-weight:800;white-space:nowrap}.perf-status.attention{background:#fff2c2;color:#875d00}.perf-jobs-table{min-width:900px}.perf-jobs-table td:last-child{min-width:250px}.perf-note,.perf-disclaimer{margin:10px 0 0;color:#626b75;font-size: 11.3px;line-height:1.5}.perf-cylinder{border-left:4px solid #737b84}.perf-cylinder p{margin-top:7px}.perf-disclaimer{padding:0 3px 10px}.exec-scope-section{min-width:0}@media(max-width:1250px) and (min-width:901px){.exec-scope-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.exec-section{padding:14px}}@media(max-width:900px){.exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-kpi:last-child{grid-column:1/-1}.exec-scope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-performance-summary,.perf-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-section-heading{align-items:flex-start;flex-direction:column}.exec-meta{white-space:normal}}@media(max-width:560px){.exec-kpis,.exec-scope-grid,.exec-performance-summary,.perf-kpi-strip,.perf-alert-grid{grid-template-columns:minmax(0,1fr)}.exec-kpi:last-child{grid-column:auto}.exec-section{padding:12px}.exec-matrix{min-width:580px}.exec-performance-link{white-space:normal}}
.pdf-report-page{width:min(100%,920px);margin:8px auto 28px;padding:clamp(22px,4vw,42px);background:#fff;border:1px solid #e1e4e8;border-radius:16px;box-shadow:0 8px 28px rgba(31,37,43,.07);color:#303640}.pdf-report-mark{display:flex;align-items:center;gap:8px;margin-bottom:27px;font-size: 22.5px;font-weight:850;color:#303640}.pdf-report-mark>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fce7f1;color:#d63384}.pdf-report-mark small{margin-left:7px;color:#737b84;font-size: 11.3px;letter-spacing:.12em}.pdf-report-page h2{margin:5px 0 10px;font-size:clamp(22px,3vw,32px);letter-spacing:-.03em}.pdf-report-page>p:not(.perf-eyebrow){max-width:670px;color:#626b75;line-height:1.6}.pdf-download-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:15px 0 5px;padding:12px 19px;border:0;border-radius:9px;background:#303640;color:#fff;font:inherit;font-size: 15.7px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(31,37,43,.13)}.pdf-download-button:hover{background:#20252b}.pdf-download-button:disabled{opacity:.65;cursor:wait}.pdf-download-button .ui-icon{width:19px;height:19px}.pdf-download-status{min-height:20px;font-size: 13.5px}.pdf-report-contents{margin-top:25px;padding:20px 22px;border:1px solid #e1e4e8;border-radius:11px;background:#f8f9fa}.pdf-report-contents h3{margin:0 0 12px;font-size: 16.8px}.pdf-report-contents ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 30px;margin:0;padding-left:22px;color:#454c54;font-size: 14.6px}.pdf-report-note{margin-top:17px!important;font-size: 12.4px}@media(max-width:600px){.pdf-report-page{padding:22px 17px}.pdf-report-contents ol{grid-template-columns:minmax(0,1fr)}}


/* Director decision scorecard: put industrial value and approval evidence beside the technical averages. */
.director-scorecard{display:grid;gap:10px;min-width:0}
.director-decision-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-radius:11px;background:#29343d;color:#fff}
.director-eyebrow{font-size: 10.1px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#c3cbd0}
.director-decision-banner h2{margin:4px 0;color:#fff;font-size: 20.2px;line-height:1.2}
.director-decision-banner p{max-width:800px;margin:0;color:#d1d7db;font-size: 12.4px;line-height:1.5}
.director-decision-tag{flex:0 0 auto;padding:7px 9px;border:1px solid #d9b85b;border-radius:7px;color:#ffdb75;background:#554923;font-size: 10.1px;font-weight:800;letter-spacing:.04em}
.director-value-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.director-value-strip article{min-width:0;padding:10px 12px;border:1px solid #dfe2e6;border-radius:8px;background:#fff}
.director-value-strip span,.director-value-strip small{display:block;color:#626b75;font-size: 10.1px}
.director-value-strip strong{display:block;margin:3px 0;color:#343a40;font-size: 15.7px}
.director-value-strip small{font-size: 9.0px;line-height:1.4}
.director-scorecard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;align-items:start}
.director-scorecard-table{min-width:0;padding:13px;border:1px solid #dfe2e6;border-radius:10px;background:#fff}
.director-section-title{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:8px}
.director-section-title h3{margin:0;color:#20252b;font-size: 14.6px}
.director-section-title p{margin:3px 0 0;color:#626b75;font-size: 10.1px}
.director-neutral{flex:0 0 auto;padding:4px 7px;border-radius:6px;background:#eceff2;color:#59636d;font-size: 9.0px;font-weight:750}
.director-table-wrap{width:100%;min-width:0}
.director-table-wrap table{width:100%;table-layout:fixed;border-collapse:collapse;color:#343a40;font-size: 10.1px;line-height:1.38;overflow-wrap:anywhere}
.director-table-wrap th,.director-table-wrap td{padding:7px 6px;border-bottom:1px solid #e6e9ec;text-align:left;vertical-align:top}
.director-table-wrap thead th{background:#303a44;color:#fff;font-size: 9.0px;letter-spacing:.03em}
.director-table-wrap tbody tr:nth-child(even){background:#f5f6f7}
.director-table-wrap tbody th{color:#343a40;font-size: 10.1px;font-weight:750}
.director-table-wrap td small{display:block;margin-top:3px;color:#737b84;font-size: 9.0px}
.director-table-wrap .vendor-wh{color:#c83c7c}.director-table-wrap .vendor-bobst{color:#d66b20}
@media(max-width:1100px){.director-scorecard-grid{grid-template-columns:1fr}.director-neutral{white-space:normal}}
@media(max-width:680px){.director-value-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.director-decision-banner{align-items:flex-start;flex-direction:column}.director-table-wrap table{font-size: 9.0px}.director-table-wrap th,.director-table-wrap td{padding:5px 4px}}

.director-score-note{padding:9px 10px;border:1px solid #eedb9b;border-radius:7px;background:#fff8e5;color:#665319;font-size: 10.1px;line-height:1.45}
.director-score-note b{color:#513f0b}

/* User-managed dashboard cards */
.dashboard-user-grid{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%}
.dashboard-user-card{position:relative;min-width:0;padding-top:32px}
.dashboard-card-remove{position:absolute;z-index:1;top:0;right:4px;display:grid;place-items:center;width:27px;height:27px;border:1px solid #d5d8dc;border-radius:8px;background:#fff;color:#737b84;font-size: 22.5px;line-height:1;cursor:pointer}
.dashboard-card-remove:hover{border-color:#b91c1c;background:#fff1f2;color:#b91c1c}
.dashboard-add-card{display:flex;align-self:flex-start;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:142px;min-height:142px;border:1px dashed #adb5bd;border-radius:13px;background:#fff;color:#59616a;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.dashboard-add-card:hover{transform:translateY(-2px);border-color:#454c54;background:#f8f9fa}
.dashboard-add-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eef0f2;color:#454c54;font-size: 35.9px;font-weight:400;line-height:1}
.dashboard-add-card strong{font-size: 13.5px;font-weight:750}
.dashboard-card-dialog{width:min(560px,calc(100vw - 28px));max-height:min(80vh,720px);padding:0;border:1px solid #d5d8dc;border-radius:16px;background:#fff;color:#20252b;box-shadow:0 24px 70px rgba(20,25,31,.24)}
.dashboard-card-dialog::backdrop{background:rgba(20,25,31,.48);backdrop-filter:blur(2px)}
.dashboard-card-dialog-head{display:flex;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid #e6e8eb}
.dashboard-card-dialog-head h2{margin:0;font-size: 23.6px}
.dashboard-card-dialog-head p{margin:6px 0 0;color:#626b75;font-size: 14.6px}
.dashboard-dialog-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #d5d8dc;border-radius:9px;background:#fff;color:#626b75;font-size: 25.8px;line-height:1;cursor:pointer}
.dashboard-card-options{display:grid;gap:9px;max-height:calc(80vh - 120px);overflow-y:auto;padding:17px 24px 23px}
.dashboard-card-option{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid #e1e4e8;border-radius:10px;background:#fff}
.dashboard-card-option h3{margin:0;color:#303640;font-size: 14.6px}
.dashboard-card-option p{margin:4px 0 0;color:#737b84;font-size: 12.4px;line-height:1.45}
.dashboard-card-option button{flex:0 0 auto;min-width:90px;min-height:34px;border:1px solid #343a40;border-radius:8px;background:#343a40;color:#fff;font-size: 12.4px;font-weight:750;cursor:pointer}
.dashboard-card-option button:disabled{border-color:#e1e4e8;background:#f1f3f5;color:#737b84;cursor:default}
.dashboard-add-card:focus-visible,.dashboard-card-remove:focus-visible,.dashboard-dialog-close:focus-visible,.dashboard-card-option button:focus-visible{outline:2px solid #343a40;outline-offset:3px}
@media(max-width:600px){.dashboard-add-card{width:100%;min-height:112px}.dashboard-card-dialog-head{padding:18px 17px 14px}.dashboard-card-options{padding:14px 17px 18px}.dashboard-card-option{align-items:flex-start;flex-direction:column;gap:10px}.dashboard-card-option button{width:100%}}
.dashboard-insight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.dashboard-insight-grid article{display:flex;flex-direction:column;gap:6px;padding:13px 14px;border:1px solid #e1e4e8;border-radius:9px;background:#f8f9fa}
.dashboard-insight-grid article span{color:#626b75;font-size: 12.4px;font-weight:650}
.dashboard-insight-grid article strong{color:#303640;font-size: 28.1px;line-height:1;font-variant-numeric:tabular-nums}
.dashboard-insight-grid .insight-negative{color:#b91c1c}
.dashboard-insight-grid .insight-opportunity{color:#9a6700}
@media(max-width:700px){.dashboard-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Four grouped executive score cards */
.score-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.score-group-card{min-width:0;padding:17px;background:#f8f9fa;border:1px solid #d5d8dc;border-radius:13px;box-shadow:0 3px 12px rgba(31,37,43,.06)}
.score-group-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.score-group-card h3{margin:0;color:#20252b;font-size:18px;line-height:1.25}
.score-group-card header p{margin:5px 0 0;color:#626b75;font-size:13px;line-height:1.4}
.score-group-result{flex:0 0 auto;padding:5px 9px;border-radius:7px;background:#e9ecef;color:#626b75;font-size:12px;font-weight:800}
.score-group-result.wh{background:#f8e6ef;color:#a72d66}.score-group-result.bobst{background:#fff0e4;color:#b65313}
.score-group-suppliers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:17px}
.score-group-line{display:flex;justify-content:space-between;gap:8px;color:#343a40;font-size:14px}
.score-group-line b{font-variant-numeric:tabular-nums}.score-group-line small{color:#818a94;font-size:11px;font-weight:600}
.score-group-supplier.wh .score-group-line>strong{color:#a72d66}.score-group-supplier.bobst .score-group-line>strong{color:#b65313}
.score-group-meter{height:9px;margin-top:7px;background:#e1e4e8;border-radius:999px;overflow:hidden}
.score-group-meter i{display:block;height:100%;border-radius:inherit;background:#737b84}
.score-group-supplier>span{display:block;margin-top:5px;color:#737b84;font-size:11px}
.score-group-card footer{margin-top:15px;padding-top:11px;border-top:1px solid #e1e4e8;color:#454c54;font-size:12px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:720px){.score-group-grid{grid-template-columns:minmax(0,1fr)}.score-group-card{padding:14px}}
@media(max-width:460px){.score-group-card>header{flex-direction:column}.score-group-suppliers{gap:10px}.score-group-line{font-size:12px}.score-group-card footer{white-space:normal}}

/* Improved readability for the executive dashboard only */
.exec-dashboard:not(.performance-dashboard) .exec-section-heading h2{font-size:22px}
.exec-dashboard:not(.performance-dashboard) .exec-section-heading p{font-size:16px}
.exec-dashboard:not(.performance-dashboard) .exec-meta,.exec-dashboard:not(.performance-dashboard) .exec-scope-counts{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-scope-card h3{font-size:16px}
.exec-dashboard:not(.performance-dashboard) .exec-scope-card>header span{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .exec-supplier{grid-template-columns:48px minmax(40px,1fr) 48px;gap:10px;font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-supplier>strong:last-child{font-size:15px}
.exec-dashboard:not(.performance-dashboard) .exec-scope-card{padding:17px}
.exec-dashboard:not(.performance-dashboard) .exec-scope-card footer{margin-top:14px;padding-top:12px}
.exec-dashboard:not(.performance-dashboard) .exec-result{font-size:13px;padding:4px 9px}
.exec-dashboard:not(.performance-dashboard) .exec-details{min-height:36px;padding:7px 13px;font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-kpi{padding:20px 22px}
.exec-dashboard:not(.performance-dashboard) .exec-label{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-value{font-size:40px}
.exec-dashboard:not(.performance-dashboard) .exec-caption{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-performance-summary article span{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .exec-performance-summary article strong{font-size:15px}
.exec-dashboard:not(.performance-dashboard) .exec-matrix,.exec-dashboard:not(.performance-dashboard) .exec-data-table{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .exec-matrix th,.exec-dashboard:not(.performance-dashboard) .exec-matrix td,.exec-dashboard:not(.performance-dashboard) .exec-data-table th,.exec-dashboard:not(.performance-dashboard) .exec-data-table td{padding:11px 12px}
.exec-dashboard:not(.performance-dashboard) .exec-matrix thead th,.exec-dashboard:not(.performance-dashboard) .exec-data-table thead th{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .exec-matrix td small,.exec-dashboard:not(.performance-dashboard) .exec-data-table td small{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .score-group-card h3{font-size:20px}
.exec-dashboard:not(.performance-dashboard) .score-group-card header p{font-size:15px}
.exec-dashboard:not(.performance-dashboard) .score-group-result{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .score-group-line{font-size:16px}
.exec-dashboard:not(.performance-dashboard) .score-group-supplier>span{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .score-group-card footer{font-size:14px}
@media(max-width:600px){
  .exec-dashboard:not(.performance-dashboard) .exec-scope-grid{grid-template-columns:minmax(0,1fr)}
  .exec-dashboard:not(.performance-dashboard) .exec-scope-card h3{font-size:17px}
  .exec-dashboard:not(.performance-dashboard) .exec-supplier{grid-template-columns:54px minmax(40px,1fr) 52px;font-size:15px}
  .exec-dashboard:not(.performance-dashboard) .exec-supplier>strong:last-child{font-size:16px}
  .exec-dashboard:not(.performance-dashboard) .exec-details{font-size:15px}
}
/* Larger, readable typography for the Evidence Scorecard on the dashboard */
.exec-dashboard:not(.performance-dashboard) .director-value-strip span{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .director-value-strip strong{font-size:19px}
.exec-dashboard:not(.performance-dashboard) .director-value-strip small{font-size:13px;line-height:1.45}
.exec-dashboard:not(.performance-dashboard) .director-scorecard-table{padding:18px}
.exec-dashboard:not(.performance-dashboard) .director-section-title{align-items:flex-start;gap:14px;margin-bottom:13px}
.exec-dashboard:not(.performance-dashboard) .director-section-title h3{font-size:20px}
.exec-dashboard:not(.performance-dashboard) .director-section-title p{font-size:14px;line-height:1.45}
.exec-dashboard:not(.performance-dashboard) .director-neutral{font-size:13px;padding:6px 9px}
.exec-dashboard:not(.performance-dashboard) .director-table-wrap table{font-size:14px;line-height:1.5}
.exec-dashboard:not(.performance-dashboard) .director-table-wrap th,.exec-dashboard:not(.performance-dashboard) .director-table-wrap td{padding:10px 9px}
.exec-dashboard:not(.performance-dashboard) .director-table-wrap thead th{font-size:13px}
.exec-dashboard:not(.performance-dashboard) .director-table-wrap tbody th{font-size:14px}
.exec-dashboard:not(.performance-dashboard) .director-table-wrap td small{font-size:13px;line-height:1.4}
.exec-dashboard:not(.performance-dashboard) .director-score-note{font-size:14px;line-height:1.55;padding:12px 14px}
@media(max-width:680px){
  .exec-dashboard:not(.performance-dashboard) .director-table-wrap{overflow-x:auto}
  .exec-dashboard:not(.performance-dashboard) .director-table-wrap table{min-width:760px;font-size:14px}
  .exec-dashboard:not(.performance-dashboard) .director-table-wrap thead th{font-size:13px}
  .exec-dashboard:not(.performance-dashboard) .director-table-wrap th,.exec-dashboard:not(.performance-dashboard) .director-table-wrap td{padding:9px 8px}
  .exec-dashboard:not(.performance-dashboard) .director-section-title{flex-direction:column}
}
/* Clear vertical separation between score averages and grouped score cards */
.exec-dashboard:not(.performance-dashboard) .exec-kpis:has(+ .score-group-grid){margin-bottom:24px}
/* Slide-out findings and reviewer notes on executive scorecards */
.score-group-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0fr);gap:0;min-width:0;align-items:stretch;transition:gap .24s ease}
.score-group-shell.is-open{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.score-group-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.score-group-expand{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d8dce1;border-radius:9px;background:#fff;color:#515a64;cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease}
.score-group-expand:hover,.score-group-shell.is-open .score-group-expand{border-color:#68727d;background:#eef0f2;color:#20252b}
.score-group-expand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .24s ease}
.score-group-shell.is-open .score-group-expand svg{transform:rotate(180deg)}
.score-group-expand:focus-visible,.score-drawer-close:focus-visible{outline:2px solid #343a40;outline-offset:2px}
.score-group-drawer{min-width:0;max-height:min(74vh,760px);overflow:auto;padding:0;border:0 solid transparent;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(31,37,43,.06);opacity:0;visibility:hidden;transform:translateX(-20px);pointer-events:none;transition:grid-template-columns .28s ease,opacity .2s ease,transform .28s ease,padding .28s ease,border-width .28s ease,visibility 0s linear .28s}
.score-group-shell.is-open .score-group-drawer{padding:16px;border:1px solid #d5d8dc;opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto;transition:grid-template-columns .28s ease,opacity .24s ease,transform .28s ease,padding .28s ease,border-width .28s ease,visibility 0s}
.score-drawer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.score-drawer-heading span{color:#737b84;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.score-drawer-heading h3{margin:4px 0 0;color:#20252b;font-size:18px;line-height:1.25}
.score-drawer-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #d5d8dc;border-radius:9px;background:#fff;color:#626b75;font-size:24px;line-height:1;cursor:pointer}
.score-findings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.score-findings-supplier{display:grid;align-content:start;gap:8px;min-width:0;padding:11px;border:1px solid #e1e4e8;border-radius:10px;background:#f8f9fa}
.score-findings-supplier h4{margin:0 0 1px;font-size:15px}
.score-findings-supplier.wh h4{color:#a72d66}
.score-findings-supplier.bobst h4{color:#b65313}
.score-finding{min-width:0;padding:10px;border:1px solid #e1e4e8;border-radius:8px;background:#fff}
.score-finding.strength{border-left:3px solid #4a7655}
.score-finding.weakness{border-left:3px solid #d09545}
.score-finding-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px;color:#505963;font-size:11px}
.score-finding-heading strong{font-size:11px}
.score-finding-heading span{flex:0 0 auto;color:#303640;font-weight:800;font-variant-numeric:tabular-nums}
.score-finding>b{display:block;margin:0 0 4px;color:#454c54;font-size:11px}
.score-finding>p{margin:0;color:#626b75;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.score-reviewer-label{display:block;margin:14px 0 6px;color:#343a40;font-size:12px;font-weight:750}
.score-group-comment{display:block;width:100%;min-height:92px;max-height:190px;resize:vertical;padding:10px 11px;border:1px solid #d8dce1;border-radius:8px;background:#fff;color:#303640;font:inherit;font-size:12px;line-height:1.45}
.score-group-comment:focus{outline:2px solid #9aa2ab;outline-offset:1px;border-color:#737b84}
.score-comment-note{margin:5px 0 0;color:#818a94;font-size:10px;line-height:1.4}
@media(max-width:720px){
  .score-group-shell.is-open{grid-column:1/-1;grid-template-columns:minmax(0,1fr);gap:10px}
  .score-group-shell.is-open .score-group-drawer{max-height:none}
  .score-findings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .score-group-shell,.score-group-expand,.score-group-expand svg,.score-group-drawer{transition:none}
}

/* Multi-process BID workspace */
.bid-process-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px;background:#111a2a;border-bottom:1px solid #263246;flex:0 0 auto}
.bid-process-picker,.bid-process-actions,.bid-status-picker{display:flex;align-items:center;gap:9px;color:#b7c2d0;font-size:12px}
.bid-process-picker label,.bid-status-picker{font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.bid-process-picker select,.bid-status-picker select{min-width:250px;max-width:min(48vw,520px);min-height:38px;padding:7px 34px 7px 10px;border:1px solid #36445a;border-radius:8px;background:#0b1120;color:#f4f7fb;font:inherit;font-size:13px;text-transform:none;letter-spacing:normal}
.bid-status-picker select{min-width:145px;max-width:190px}
.bid-create-button,.bid-archive-button{min-height:38px;padding:8px 13px;border-radius:8px;border:1px solid #40536b;background:#23334a;color:#f4f7fb;font-weight:700;cursor:pointer}
.bid-create-button{background:#386c54;border-color:#4b8b69}.bid-create-button:hover{background:#478361}
.bid-archive-button{background:transparent;color:#d1d8e2}.bid-archive-button:hover:not(:disabled){border-color:#c75d65;color:#ff9ba0}
.bid-create-button:disabled,.bid-archive-button:disabled,.bid-process-picker select:disabled,.bid-status-picker select:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.bid-process-bar{align-items:stretch;flex-direction:column;padding:12px 16px}.bid-process-picker select{min-width:0;max-width:none;flex:1}.bid-process-actions{flex-wrap:wrap}.bid-status-picker{flex:1;justify-content:space-between}.bid-status-picker select{flex:1}}
@media(max-width:520px){.bid-process-actions{display:grid;grid-template-columns:1fr 1fr}.bid-status-picker{grid-column:1/-1}.bid-create-button,.bid-archive-button{width:100%}}

.new-bid-dialog{width:min(680px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:1px solid #d5d8dc;border-radius:16px;color:#20252b;box-shadow:0 24px 70px rgba(20,28,36,.25)}
.new-bid-dialog::backdrop{background:rgba(20,28,36,.45);backdrop-filter:blur(2px)}
.new-bid-form{display:grid;gap:14px;padding:24px}
.new-bid-form>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:2px}
.new-bid-form>header h2{margin:2px 0 6px;font-size:24px}.new-bid-form>header p{margin:0;color:#626b75;line-height:1.5}
.new-bid-close{width:36px;height:36px;border:1px solid #d5d8dc;border-radius:9px;background:#fff;color:#454c54;font-size:24px;cursor:pointer}
.new-bid-form label{display:grid;gap:6px;color:#454c54;font-size:13px;font-weight:700}
.new-bid-form input,.new-bid-form select{min-width:0;width:100%;height:42px;padding:8px 11px;border:1px solid #d5d8dc;border-radius:8px;background:#fff;color:#20252b;font:inherit;font-weight:500}
.new-bid-fields{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:12px}.new-bid-fields:last-of-type{grid-template-columns:1fr 1fr}
.new-bid-form>footer{display:flex;justify-content:flex-end;gap:9px;padding-top:5px}
.new-bid-cancel{min-height:38px;padding:8px 14px;border:1px solid #d5d8dc;border-radius:8px;background:#fff;color:#454c54;font-weight:700;cursor:pointer}
.new-bid-form [hidden],.tab-item[hidden],.nav-section-title[hidden]{display:none!important}
@media(max-width:600px){.new-bid-form{padding:19px}.new-bid-fields,.new-bid-fields:last-of-type{grid-template-columns:1fr}.new-bid-form>header h2{font-size:21px}}
.generic-scope-actions{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:12px 15px;border:1px solid #d5d8dc;border-radius:10px;background:#f8f9fa;color:#626b75;font-size:13px}
.add-bid-requirement{min-height:36px;padding:7px 12px;border:1px solid #40536b;border-radius:8px;background:#386c54;color:#fff;font-weight:750;cursor:pointer}
.bid-edit-requirement{min-height:30px;padding:5px 9px;border:1px solid #d5d8dc;border-radius:6px;background:#fff;color:#303640;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.bid-edit-requirement:hover{background:#f0f2f4}.bid-remove-requirement{min-height:30px;padding:5px 9px;border:1px solid #e6b8b8;border-radius:6px;background:#fff7f7;color:#a83232;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.bid-remove-requirement:hover{background:#fdeaea;border-color:#d88}
.bid-response-select,.bid-score-select{max-width:190px;min-height:34px;padding:5px 7px;border:1px solid #d5d8dc;border-radius:6px;background:#fff;color:#303640;font:inherit;font-size:12px}
.bid-clarification-input{width:100%;min-width:190px;min-height:60px;padding:7px 8px;border:1px solid #d5d8dc;border-radius:6px;background:#fff;color:#303640;font:inherit;font-size:12px;resize:vertical}
.score-group-result.unscored{background:#e9ecef;color:#626b75}
.bid-workspace-button{min-height:38px;padding:8px 12px;border:1px solid #d5d8dc;border-radius:8px;background:#fff;color:#303640;font-weight:700;cursor:pointer}
.bid-admin-panel{display:grid;gap:16px;max-height:calc(100vh - 28px);overflow:auto;padding:24px}
.bid-admin-panel>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.bid-admin-panel>header h2{margin:2px 0 6px;font-size:23px}.bid-admin-panel>header p{margin:0;color:#626b75}
.bid-admin-panel>section{padding-top:12px;border-top:1px solid #e1e4e8}.bid-admin-panel>section h3{margin:0 0 10px;font-size:16px}
.bid-supplier-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bid-supplier-form label{display:grid;gap:5px;color:#454c54;font-size:12px;font-weight:700}.bid-supplier-form input,.bid-member-add-form input,.bid-member-add-form select,.bid-admin-row select{min-width:0;min-height:38px;padding:7px 9px;border:1px solid #d5d8dc;border-radius:7px;background:#fff;color:#303640;font:inherit}
.bid-supplier-form>button{justify-self:start}.bid-member-add-form{display:grid;grid-template-columns:minmax(150px,1fr) 140px auto;gap:8px;margin-top:10px}.bid-admin-list{display:grid;gap:7px}.bid-admin-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #e1e4e8;border-radius:8px;background:#fff}.bid-admin-row>div:first-child{display:grid;min-width:0;gap:3px}.bid-admin-row strong{overflow:hidden;text-overflow:ellipsis}.bid-admin-row small,.bid-activity-row small{color:#737b84;font-size:11px}.bid-admin-remove{border:0;background:transparent;color:#a82929;font-weight:700;cursor:pointer}.bid-admin-note,.bid-admin-empty{margin:8px 0 0;color:#737b84;font-size:12px}.bid-approval-actions{display:flex;flex-wrap:wrap;gap:5px}.bid-approval-actions button{padding:6px 8px;border:1px solid #d5d8dc;border-radius:6px;background:#f8f9fa;color:#303640;font-size:11px;font-weight:700;cursor:pointer}.bid-activity-list{max-height:300px;overflow:auto}.bid-activity-row{display:grid;gap:3px;padding:8px 9px;border-bottom:1px solid #eef0f2}.bid-activity-row p{margin:0;color:#626b75;font-size:11px;overflow-wrap:anywhere}
.bid-invitation-url-field{display:grid;gap:5px;margin-top:10px;color:#454c54;font-size:12px;font-weight:700}.bid-invitation-url-field input{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d5d8dc;border-radius:7px;background:#fff;color:#303640;font:inherit}.bid-invitation-send{padding:7px 10px;border:1px solid #cdd7cf;border-radius:7px;background:#eef4ef;color:#355e40;font-size:12px;font-weight:700;cursor:pointer}.bid-invitation-send:disabled{opacity:.48;cursor:not-allowed}.bid-admin-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.supplier-portal-comment{display:block;margin-top:6px;color:#f9d9e5;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.bid-admin-panel [hidden]{display:none!important}
.bid-supplier-editor{display:grid;gap:9px;margin-top:12px}.bid-supplier-editor h3{margin:0!important}.bid-supplier-editor>p{margin:0;color:#737b84;font-size:12px}.bid-supplier-editor-list{display:grid;gap:8px}.bid-supplier-editor-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;gap:9px;padding:10px;border:1px solid #e1e4e8;border-radius:8px;background:#fff}.bid-supplier-editor-row label{display:grid;gap:5px;color:#454c54;font-size:12px;font-weight:700}.bid-supplier-editor-row input{min-width:0;min-height:38px;padding:7px 9px;border:1px solid #d5d8dc;border-radius:7px;background:#fff;color:#303640;font:inherit}.multi-bid-leader{margin:14px 0 0;padding:12px 14px;border:1px solid #d5d8dc;border-radius:9px;background:#fff;color:#343a40;font-weight:750}.multi-bid-scope-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier{grid-template-columns:minmax(64px,1fr) minmax(22px,.6fr) 42px minmax(102px,1.5fr);gap:6px}.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier small{color:#737b84;font-size:10.5px;text-align:right;white-space:nowrap}
@media(max-width:600px){.bid-admin-panel{padding:18px}.bid-supplier-form,.bid-member-add-form,.bid-supplier-editor-row{grid-template-columns:1fr}.bid-approval-row{align-items:flex-start;flex-direction:column}.bid-process-actions{display:flex;flex-wrap:wrap}.bid-workspace-button{width:100%}.multi-bid-scope-grid{grid-template-columns:minmax(0,1fr)}.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier{grid-template-columns:minmax(64px,1fr) minmax(22px,.6fr) 42px minmax(102px,1.5fr);gap:6px}}

/* A collapsed drawer must not contribute its long text to the grid row height. */
.score-group-drawer{height:0;min-height:0;max-height:0;overflow:hidden}
.score-group-shell.is-open .score-group-drawer{height:auto;max-height:min(74vh,760px);overflow:auto}
.multi-bid-scorecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.multi-bid-scorecards>.exec-section{background:#fff}.multi-bid-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.multi-bid-group-head h3{margin:0;color:#20252b;font-size:16px}.multi-bid-group-head span{display:block;margin-top:4px;color:#737b84;font-size:12px}.multi-bid-group-head>strong{color:#454c54;font-size:12px;text-align:right}.multi-bid-reviewer-comment{display:grid;gap:6px;margin-top:13px;padding-top:11px;border-top:1px solid #e1e4e8;color:#454c54;font-size:12px;font-weight:700}.multi-bid-reviewer-comment textarea{width:100%;min-height:68px;padding:8px 9px;border:1px solid #d5d8dc;border-radius:7px;background:#fff;color:#303640;font:inherit;font-size:12px;resize:vertical}
/* Supplier response portal */
.supplier-portal-page{background:#f3f4f6;color:#20252b;min-height:100vh}
.supplier-portal-shell{min-height:100vh;background:#f3f4f6}
.supplier-portal-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,72px);background:#fff;border-bottom:1px solid #e2e5e8;position:sticky;top:0;z-index:5}
.supplier-portal-header>div{display:flex;align-items:center;gap:18px;color:#66717c;font-size:14px}
.supplier-portal-header a{color:#414a54;text-decoration:none;font-weight:700}
.supplier-portal-brand{font-size:21px!important;letter-spacing:.02em}
.supplier-portal-brand span{font-size:13px;color:#7a838c;font-weight:500;margin-left:10px}
.supplier-portal-header button,.supplier-back-button{border:1px solid #dfe3e7;border-radius:9px;background:#fff;color:#414a54;padding:9px 13px;font:inherit;cursor:pointer}
.supplier-portal-main{width:min(1100px,calc(100% - 36px));margin:42px auto 80px}
.supplier-portal-heading{margin-bottom:25px}
.supplier-portal-heading h1{font-size:30px;margin:8px 0;color:#20252b}
.supplier-portal-heading>p:last-child,.supplier-response-header p{color:#6e7780;line-height:1.55}
.supplier-bid-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.supplier-bid-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:20px;border:1px solid #dfe3e7;border-radius:14px;background:#fff;text-align:left;cursor:pointer;color:#252a30;box-shadow:0 5px 18px #1b27330a}
.supplier-bid-card:hover,.supplier-bid-card:focus-visible{border-color:#788d7f;box-shadow:0 8px 24px #1b273315}
.supplier-bid-card strong{font-size:18px}
.supplier-bid-card small,.supplier-bid-card>span:last-child{color:#747d86}
.supplier-bid-ref,.supplier-criterion-heading{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#69737d}
.supplier-portal-empty,.supplier-portal-notice{padding:17px 20px;border:1px solid #e0e3e6;border-radius:12px;background:#fff;color:#606a74}
.supplier-portal-notice{margin:18px 0}.supplier-portal-notice.is-success{background:#eff8f1;border-color:#cee8d3;color:#28683a}
.supplier-response-view{margin-top:25px;padding:clamp(18px,3vw,32px);border:1px solid #dfe3e7;border-radius:16px;background:#fff}
.supplier-response-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid #e8eaed;padding-bottom:20px;margin-bottom:22px}
.supplier-response-header h2{font-size:25px;margin:7px 0}
.supplier-response-status{white-space:nowrap;background:#f2f3f4;border-radius:999px;padding:8px 12px;color:#5c6670;font-size:13px;font-weight:700}
.supplier-response-status.is-submitted{background:#eaf5ed;color:#317748}
.supplier-back-button{margin-bottom:16px;padding:7px 10px;font-size:13px}
.supplier-scope{margin:25px 0}.supplier-scope h3{font-size:18px;margin:0 0 12px}
.supplier-criterion{padding:18px;margin:10px 0;border:1px solid #e4e7ea;border-radius:12px;background:#fbfcfd}
.supplier-criterion-heading{display:flex;justify-content:space-between;gap:15px}
.supplier-criterion h4{font-size:15px;line-height:1.5;margin:11px 0 17px;color:#2d3339}
.supplier-criterion label{display:block;font-size:13px;font-weight:650;color:#58616b;margin-top:12px}
.supplier-criterion select,.supplier-criterion textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #d9dee3;border-radius:8px;background:#fff;color:#242a30;font:inherit}
.supplier-criterion textarea{resize:vertical;min-height:76px}
.supplier-response-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #e8eaed;padding-top:20px;color:#6f7881;font-size:13px}
.supplier-response-actions>div{display:flex;gap:10px}
.supplier-save-button,.supplier-submit-button{border:0;border-radius:9px;padding:11px 16px;font:inherit;font-weight:700;cursor:pointer}
.supplier-save-button{background:#eff1f3;color:#3e4650}.supplier-submit-button{background:#365d45;color:#fff}
.supplier-portal-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(92vw,720px);padding:10px 18px;border-radius:10px;background:#252b31;color:#fff;z-index:10}
.supplier-portal-status:empty{display:none}.supplier-portal-status.is-error{background:#9b3030}
.supplier-response-readonly{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:130px}
.supplier-response-readonly strong{font-size:12px;color:#334b3a}
.supplier-response-readonly small{color:#59646e;white-space:normal;line-height:1.45}
@media(max-width:680px){.supplier-portal-header{padding:0 14px}.supplier-portal-header>div{gap:8px;font-size:12px}.supplier-portal-brand span{display:none}.supplier-portal-main{width:calc(100% - 24px);margin:24px auto 55px}.supplier-response-header,.supplier-response-actions{flex-direction:column;align-items:stretch}.supplier-response-actions>div{display:grid;grid-template-columns:1fr 1fr}.supplier-criterion-heading{flex-direction:column;gap:6px}}
/* Reusable BID model library and designer */
.bid-template-manage-trigger{border:1px solid #dce1e5;border-radius:8px;background:#fff;padding:8px 11px;color:#3c5945;font:inherit;font-size:12px;font-weight:700;cursor:pointer;margin-right:8px}
.bid-template-manager-dialog,.bid-template-editor-dialog{width:min(880px,calc(100% - 28px));max-height:min(90vh,940px);overflow:auto}
.bid-template-manager-dialog .bid-admin-panel{max-height:none}
.bid-template-list{display:grid;gap:9px;margin:12px 0 18px}
.bid-template-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #e0e4e7;border-radius:10px;background:#fff}
.bid-template-row>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.bid-template-row small{color:#717b84;line-height:1.4}
.bid-template-actions{display:flex;gap:7px;flex-wrap:wrap}
.bid-template-actions button{border:1px solid #dce1e5;border-radius:8px;background:#fff;padding:7px 10px;color:#39434c;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.bid-template-form{max-height:none}
.bid-template-group-fields,.bid-template-categories{margin:16px 0;padding:16px;border:1px solid #e2e6e9;border-radius:12px;background:#fafbfc}
.new-bid-dialog:has(.bid-process-scope-builder){width:min(1180px,calc(100vw - 28px));overflow:auto}
.bid-process-scope-builder,.bid-process-metrics{margin:2px 0}
.bid-scope-builder-tabs{display:flex;gap:7px;overflow:auto;padding:3px 1px 10px}
.bid-scope-builder-tab{flex:0 0 auto;border:1px solid #dce1e5;border-radius:999px;background:#fff;padding:8px 12px;color:#424b54;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.bid-scope-builder-tab.active{background:#eaf2eb;border-color:#9fb9a4;color:#315c3b}.bid-scope-builder-tab span{margin-left:5px;color:#7a838b;font-weight:600}
.bid-scope-sheet-scroll{overflow:auto;border:1px solid #dce1e5;border-radius:9px;background:#fff}
.bid-scope-builder-table{width:100%;min-width:900px;border-collapse:collapse;font-size:12px}
.bid-scope-builder-table th{padding:9px 8px;background:#f0f2f3;color:#4f5962;text-align:left;white-space:nowrap;border-bottom:1px solid #dce1e5}
.bid-scope-builder-table td{padding:6px;border-bottom:1px solid #edf0f2;vertical-align:top}
.bid-scope-builder-table textarea,.bid-scope-builder-table input,.bid-scope-builder-table select{box-sizing:border-box;width:100%;min-height:36px;height:auto;padding:7px 8px;border:1px solid #dce1e5;border-radius:6px;background:#fff;font:inherit;font-size:12px}
.bid-scope-builder-table textarea{min-height:54px;resize:vertical}.bid-scope-builder-table td:nth-child(1){min-width:230px}.bid-scope-builder-table td:nth-child(3),.bid-scope-builder-table td:nth-child(4){min-width:190px}.bid-scope-builder-sheet>#new-bid-add-criterion{margin-top:9px}
.bid-builder-empty{padding:15px!important;color:#737b84;text-align:center}
.bid-decision-metrics-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
.bid-decision-metric{display:grid!important;grid-template-columns:20px minmax(130px,1fr) minmax(100px,150px);align-items:center;gap:8px!important;padding:9px 10px;border:1px solid #e0e4e7;border-radius:8px;background:#fff}
.new-bid-form .bid-decision-metric input[type="checkbox"]{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#386c54}
.new-bid-form .bid-decision-metric input[data-metric-target]{height:34px;min-height:34px;padding:6px 8px;font-size:12px}
.bid-decision-metric small{grid-column:2/-1;color:#737b84;font-size:11px;font-weight:500}
.bid-dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px;margin-top:12px}
.bid-dashboard-metrics article{display:grid;gap:5px;padding:13px;border:1px solid #e0e4e7;border-radius:9px;background:#fff}.bid-dashboard-metrics span{color:#606a73;font-size:12px;font-weight:700}.bid-dashboard-metrics strong{font-size:16px;color:#27312b}.bid-dashboard-metrics small{color:#737b84}
.dashboard-executive-brief{display:grid;gap:13px;margin-bottom:14px;padding:19px;border:1px solid #d5d8dc;border-left:5px solid #454c54;border-radius:13px;background:linear-gradient(135deg,#fff 0%,#f5f6f7 100%);box-shadow:0 4px 18px rgba(31,37,43,.06)}
.dashboard-executive-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dashboard-executive-heading h2{margin:3px 0 5px;color:#20252b;font-size:21px;letter-spacing:-.025em}.dashboard-executive-heading p{margin:0;color:#626b75;font-size:13px;line-height:1.5}
.dashboard-evidence-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.dashboard-evidence-strip article{display:grid;gap:5px;min-width:0;padding:12px;border:1px solid #e1e4e8;border-radius:9px;background:#fff}.dashboard-evidence-strip article>span{color:#606a73;font-size:11px;font-weight:750}.dashboard-evidence-strip article>strong{color:#30363d;font-size:22px;line-height:1}.dashboard-evidence-strip article>small{color:#737b84;font-size:11px;line-height:1.4}.dashboard-evidence-strip article.attention{border-color:#eddaa5;background:#fffaf0}.dashboard-evidence-strip article.attention>strong{color:#9a6900}.dashboard-brief-note{margin:0;padding:10px 12px;border-radius:8px;background:#eef0f2;color:#626b75;font-size:11px;line-height:1.5}
@media(max-width:650px){.dashboard-executive-heading{flex-direction:column}.dashboard-evidence-strip{grid-template-columns:1fr}.dashboard-evidence-strip article{grid-template-columns:minmax(0,1fr) auto;align-items:center}.dashboard-evidence-strip article>small{grid-column:1/-1}}
.bid-template-group-fields h3,.bid-template-categories h3{margin:0 0 8px;font-size:15px}
.bid-template-group-fields>p{font-size:12px;color:#717b84;line-height:1.45;margin:0 0 12px}
.bid-template-group-fields>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-category-field{margin:12px 0;padding:14px;border:1px solid #e2e6e9;border-radius:10px;background:#fff}
.template-category-field legend{font-size:13px;font-weight:750;color:#34404a;padding:0 5px}
.template-category-field label{display:block;margin:7px 0 12px;font-size:12px;font-weight:650;color:#58616a}
.template-category-field label small{display:block;color:#818991;font-weight:400;margin:3px 0}
.template-category-field input,.template-category-field textarea,.bid-template-group-fields input{box-sizing:border-box;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #dce1e5;border-radius:8px;background:#fff;color:#252b31;font:inherit;font-size:13px}
.template-category-field textarea{resize:vertical;line-height:1.5}
.bid-template-group-fields>#template-group-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px}.template-group-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid #e2e6e9;border-radius:9px;background:#fff}.template-group-row label{display:block;margin:0;font-size:12px;font-weight:650;color:#58616a}.template-group-row input{min-height:38px}.template-scope-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr) auto;align-items:end;gap:9px}.template-scope-controls select{width:100%;min-height:39px;margin-top:5px;padding:8px;border:1px solid #dce1e5;border-radius:8px;background:#fff;color:#252b31;font:inherit;font-size:13px}.template-scope-controls button,.template-group-row button{min-height:38px}
@media(max-width:650px){.bid-template-row{align-items:flex-start;flex-direction:column}.bid-template-group-fields>div{grid-template-columns:1fr}.template-scope-controls{grid-template-columns:1fr}.bid-template-manage-trigger{margin:0 0 6px}}

/* Full-page BID creation workspace inspired by the approved Spreadsheet concept. */
.bid-creator-dialog{position:fixed;inset:10px;width:auto;height:auto;max-width:none;max-height:calc(100vh - 20px);margin:auto;padding:0;overflow:hidden;border:1px solid #d9dfe0;border-radius:24px;background:#f1f3f3;color:#26313b;box-shadow:0 28px 90px rgba(0,0,0,.35)}
.bid-creator-dialog::backdrop{background:rgba(18,20,21,.94);backdrop-filter:blur(2px)}
.bid-creator-form{display:grid;grid-template-columns:268px minmax(0,1fr);gap:0;width:100%;height:100%;max-height:calc(100vh - 20px);padding:0;overflow:hidden}
.creator-sidebar{display:flex;flex-direction:column;min-width:0;background:#fff;border-right:1px solid #dce1e1}
.creator-brand{display:flex;align-items:center;gap:11px;height:86px;padding:0 27px;color:#26313b;text-decoration:none;font-size:20px;font-weight:650}
.creator-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#292d32;color:#fff;font-size:14px;font-weight:750;letter-spacing:-.04em}
.creator-side-nav{display:flex;flex:1;flex-direction:column;gap:4px;padding:20px 18px}
.creator-side-nav p{margin:8px 10px 9px;color:#83909a;font-size:11px;font-weight:700;letter-spacing:.11em}
.creator-side-nav .creator-nav-governance{margin-top:25px}
.creator-side-nav button{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#596773;text-align:left;font:inherit;font-size:15px;cursor:pointer}
.creator-side-nav button:hover{background:#f3f5f3;color:#355d46}
.creator-side-nav button.active{background:#eaf0eb;color:#466b54;font-weight:700}
.creator-nav-icon{display:grid;place-items:center;width:24px;height:24px;color:#65727d;font-size:21px;line-height:1}
.creator-side-footer{display:flex;align-items:center;gap:8px;padding:17px 22px;border-top:1px solid #edf0f0;color:#7e8990;font-size:11px}
.creator-status-dot{width:7px;height:7px;border-radius:50%;background:#66846e}
.creator-main{display:grid;grid-template-rows:64px minmax(0,1fr) auto;min-width:0;min-height:0;background:#f1f3f3}
.creator-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 30px;background:#fff;border-bottom:1px solid #e1e5e5;color:#63717d;font-size:14px}
.creator-topbar>div:first-child,.creator-top-actions{display:flex;align-items:center;gap:10px}
.creator-topbar strong{color:#39444e;font-weight:650}.creator-breadcrumb-sep{color:#a3acb2}
.creator-step-status{padding:8px 13px;border:1px solid #e0e5e7;border-radius:24px;background:#f7f8f8;color:#61707d;white-space:nowrap}
.creator-topbar .new-bid-close{width:34px;height:34px;font-size:21px}
.creator-content{min-height:0;overflow:auto;padding:32px 34px 24px}
.creator-intro{margin-bottom:19px}.creator-eyebrow{margin:0 0 8px;color:#4f755f;font-size:12px;font-weight:750;letter-spacing:.13em}
.creator-intro h1{margin:0 0 6px;color:#202b34;font-size:34px;line-height:1.14;letter-spacing:-.035em}
.creator-intro>p:last-child{margin:0;color:#77838c;font-size:16px;line-height:1.5}
.creator-stepper{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto;padding:4px 0 14px;border-bottom:1px solid #dce2e2}
.creator-stepper button{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:7px 8px;border:0;border-radius:20px;background:transparent;color:#7a8790;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.creator-stepper button:hover{background:#e7ece8;color:#355d46}.creator-stepper button.active{color:#283840;font-weight:700}
.creator-step-number{display:grid;place-items:center;width:29px;height:29px;border:1px solid #d9e0e1;border-radius:50%;background:#fff;color:#79868f;font-size:12px}
.creator-stepper button.active .creator-step-number{border-color:#567460;background:#567460;color:#fff}.creator-stepper button.complete .creator-step-number{border-color:#e1ebe3;background:#e8f0e9;color:#52715b}
.creator-step{padding:22px 0 12px}.creator-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:19px}
.creator-section-heading h2{margin:0 0 5px;color:#26323c;font-size:21px;letter-spacing:-.02em}.creator-section-heading p:not(.creator-eyebrow){margin:0;color:#76828b;font-size:14px;line-height:1.5}
.creator-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.creator-field{display:grid;gap:7px;color:#54616b;font-size:13px;font-weight:700}.creator-field-wide{grid-column:1/-1}
.creator-form-grid input,.creator-form-grid select{height:44px;padding:9px 12px;border:1px solid #d6dcde;border-radius:9px;background:#fff;color:#2e3942;font:inherit;font-size:14px;font-weight:450;box-shadow:0 1px 2px #1d29330a}
.creator-info-card{display:flex;flex-direction:column;gap:5px;margin-top:18px;padding:14px 15px;border:1px solid #e4e8e7;border-radius:10px;background:#f8f9f8;color:#71808a;font-size:13px;line-height:1.5}
.creator-info-card strong{color:#46545e;font-size:13px}.creator-approval-card{position:relative;padding-right:100px}.creator-approval-badge{position:absolute;top:14px;right:14px;padding:5px 9px;border-radius:18px;background:#e9f1eb;color:#557360;font-size:11px;font-weight:700}
.creator-metric-strip{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:13px 0;border-bottom:1px solid #dce2e2;color:#72808a;font-size:12px}.creator-metric-strip>span:first-child{margin-right:4px}
.creator-metric-chips{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:6px}.creator-metric-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d9e0e1;border-radius:8px;background:#fff;color:#4f6170;font-size:12px}.creator-metric-chip b{color:#58745f}
.creator-edit-metrics{padding:5px 8px;border:0;background:transparent;color:#557360;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.creator-scope-tabs-wrap{overflow-x:auto;border-bottom:1px solid #dce2e2}.bid-scope-builder-tabs{display:flex;align-items:center;gap:4px;min-width:max-content;padding-top:13px}
.bid-scope-builder-tab{min-height:39px;padding:8px 13px;border:0;border-bottom:3px solid transparent;background:transparent;color:#71808b;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}.bid-scope-builder-tab.active{border-bottom-color:#567460;color:#3f6950;font-weight:700}.bid-scope-builder-tab span{margin-left:4px;color:#7f8a91}.creator-add-scope-tab{color:#567460}
.creator-scope-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px;color:#394651;font-size:13px}.creator-scope-heading strong{color:#2c3943;font-size:14px}.creator-scope-heading>div:first-child>span{color:#7c8790}.creator-scope-actions{display:flex;align-items:center;gap:8px}
.creator-scope-actions .bid-create-button{min-height:38px}.creator-import-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #d7dfe0;border-radius:9px;background:#fff;color:#37434c;font-size:12px;font-weight:650;cursor:pointer}.creator-import-button:hover{background:#f8faf9;border-color:#b8c5bd}
.bid-scope-builder-sheet{min-width:0}.bid-scope-sheet-scroll{width:100%;overflow-x:auto;border:1px solid #e1e5e6;border-radius:8px;background:#fff}
.bid-scope-builder-table{width:100%;min-width:920px;border-collapse:collapse;table-layout:fixed;background:#fff;color:#44515b;font-size:12px}
.bid-scope-builder-table th{padding:10px 9px;border-bottom:1px solid #dce2e2;background:#f8f9f8;color:#60707a;text-align:left;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.bid-scope-builder-table td{padding:8px 7px;border-bottom:1px solid #e4e8e9;vertical-align:top}.bid-scope-builder-table tr:last-child td{border-bottom:0}
.bid-scope-builder-table th:nth-child(1){width:12%}.bid-scope-builder-table th:nth-child(2){width:26%}.bid-scope-builder-table th:nth-child(3){width:10%}.bid-scope-builder-table th:nth-child(4){width:17%}.bid-scope-builder-table th:nth-child(5){width:20%}.bid-scope-builder-table th:nth-child(6){width:8%}.bid-scope-builder-table th:nth-child(7){width:38px}
.bid-scope-builder-table input,.bid-scope-builder-table textarea,.bid-scope-builder-table select{width:100%;min-width:0;min-height:35px;padding:7px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#45535e;font:inherit;font-size:12px;line-height:1.35}
.bid-scope-builder-table input:focus,.bid-scope-builder-table textarea:focus,.bid-scope-builder-table select:focus{outline:2px solid #78948055;border-color:#93ab99;background:#fff}.bid-scope-builder-table textarea{min-height:46px;resize:vertical}.bid-scope-builder-table input:hover,.bid-scope-builder-table textarea:hover,.bid-scope-builder-table select:hover{background:#f9faf9}
.creator-sheet-footer{display:flex;align-items:center;gap:12px;margin-top:9px}.creator-sheet-footer>span,.creator-footnote{color:#7b8790;font-size:12px}.creator-footnote{margin:11px 2px;line-height:1.45}
.creator-metrics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creator-metrics-grid .bid-decision-metric{min-height:80px;padding:12px;border:1px solid #e0e5e5;border-radius:9px;background:#fff}
.creator-evaluation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.creator-evaluation-grid article,.creator-review-grid article{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #e0e5e5;border-radius:10px;background:#fff}.creator-evaluation-grid article span,.creator-review-grid article span{color:#7b8790;font-size:12px}.creator-evaluation-grid article strong{color:#35454f;font-size:20px}.creator-evaluation-grid article p{margin:0;color:#7b8790;font-size:12px;line-height:1.45}.creator-score-groups{margin-top:20px}.creator-score-groups h3{color:#394751;font-size:14px}.creator-score-group-list{display:grid;gap:8px}.creator-score-group-list article{display:flex;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid #e0e5e5;border-radius:9px;background:#fff}.creator-score-group-list article strong{color:#45545e;font-size:13px}.creator-score-group-list article span{color:#7b8790;font-size:12px;text-align:right}
.creator-document-presets{display:flex;flex-wrap:wrap;gap:9px}.creator-document-presets button{min-height:40px;padding:9px 12px;border:1px solid #dbe2df;border-radius:9px;background:#fff;color:#486451;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.creator-document-presets button:hover{border-color:#91a696;background:#f7faf8}
.creator-review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.creator-review-grid article strong{overflow-wrap:anywhere;color:#34424c;font-size:14px}.creator-review-suppliers{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid #e0e5e5;border-radius:10px;background:#fff}.creator-review-suppliers span{color:#7b8790;font-size:12px}.creator-review-suppliers strong{color:#34424c;font-size:14px}
.creator-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 30px 17px;border-top:1px solid #dce2e2;background:#f1f3f3}.creator-footer-actions{display:flex;align-items:center;gap:9px}.creator-footer .bid-create-button{min-width:176px;min-height:42px;border-color:#55735f;background:#55735f}.creator-footer .bid-create-button:hover{background:#486551}
@media(max-width:1100px){.bid-creator-form{grid-template-columns:220px minmax(0,1fr)}.creator-content{padding:26px 24px 20px}.creator-stepper{min-width:700px}.creator-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bid-creator-dialog{inset:0;max-height:100vh;border-radius:0}.bid-creator-form{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);max-height:100vh}.creator-sidebar{display:block;border-right:0;border-bottom:1px solid #dce1e1}.creator-brand{height:56px;padding:0 16px}.creator-brand-mark{width:34px;height:34px}.creator-side-nav{flex-direction:row;overflow-x:auto;gap:3px;padding:3px 10px 9px}.creator-side-nav p,.creator-side-footer{display:none}.creator-side-nav button{flex:0 0 auto;min-height:38px;padding:7px 10px;font-size:12px}.creator-nav-icon{font-size:16px}.creator-main{grid-template-rows:54px minmax(0,1fr) auto}.creator-topbar{padding:0 13px;font-size:12px}.creator-top-actions{gap:6px}.creator-step-status{padding:6px 8px;font-size:11px}.creator-content{padding:20px 15px}.creator-intro h1{font-size:26px}.creator-intro>p:last-child{font-size:14px}.creator-stepper{min-width:0}.creator-scope-heading{align-items:flex-start;flex-direction:column}.creator-scope-actions{width:100%;flex-wrap:wrap}.creator-metrics-grid,.creator-evaluation-grid{grid-template-columns:1fr}.creator-footer{padding:10px 13px;gap:7px}.creator-footer-actions{gap:6px}.creator-footer .bid-create-button{min-width:0}.creator-footer .new-bid-cancel,.creator-footer .bid-create-button{padding:8px 10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.bid-creator-dialog,.creator-side-nav button,.creator-stepper button{scroll-behavior:auto;transition:none}}

/* New BID layout recovery: constrain wizard internals to the viewport and keep horizontal scrolling inside the stepper/table only. */
.bid-creator-form,.creator-main,.creator-content{min-width:0}.creator-stepper{scrollbar-width:thin}.bid-scope-sheet-scroll{max-width:100%;overflow:auto}
@media(max-width:1100px){.creator-stepper{min-width:0}.creator-stepper button{flex:0 0 auto}}

/* Consistent supplier score bars across the executive dashboard */
.executive-supplier-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}
.executive-supplier-score{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;padding:13px 14px;border:1px solid #dfe2e6;border-radius:10px;background:#fff}
.executive-supplier-score-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.executive-supplier-score-heading span{min-width:0;color:#626b75;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.executive-supplier-score-heading strong{flex:0 0 auto;color:#303640;font-size:18px;font-variant-numeric:tabular-nums}
.executive-supplier-score .exec-bar{width:100%;height:8px}
.executive-supplier-score small{color:#737b84;font-size:11px;line-height:1.4}
.score-group-meter{height:8px}
.score-group-meter i{background:#7b828a}
@media(max-width:560px){.executive-supplier-score-grid{grid-template-columns:minmax(0,1fr)}}


/* Executive supplier comparison chart: grouped columns per decision dimension. */
.grouped-score-chart-title{margin:18px 0 3px;color:#303640;font-size:15px;font-weight:750}
.grouped-score-chart-wrap{width:100%;overflow-x:auto;margin:4px 0 8px;border:1px solid #e1e4e8;border-radius:10px;background:#fff}
.grouped-score-chart{display:block;width:100%;height:auto;min-width:680px}
.grouped-chart-comment{margin-top:14px}
.grouped-chart-comment textarea{min-height:78px}
@media(max-width:650px){.grouped-score-chart{min-width:760px}}


.grouped-score-chart-wrap{padding:10px 13px 8px}
.grouped-score-legend{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:14px;margin:0 2px 2px;color:#424954;font-size:12px}
.grouped-score-legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.grouped-score-legend-item i{display:inline-block;width:11px;height:11px;border-radius:2px}
.source-coverage-note{margin:4px 0 10px;color:#737b84;font-size:12px;line-height:1.45}
.exec-data-table .technical-operation-status{display:inline-block;margin-top:6px;font-size:16px!important;font-weight:800;line-height:1.25}.exec-data-table .technical-operation-status.is-compliant{color:#15803d}.exec-data-table .technical-operation-status.is-non-compliant{color:#b91c1c}.exec-data-table .technical-operation-status.is-partially-compliant{color:#956600}
@media(max-width:620px){.grouped-score-legend{justify-content:flex-start;gap:9px;font-size:11px}}

/* Use the legacy Gaia scorecard treatment for all four rev05 suppliers. */
.multi-bid-scorecards .score-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.multi-bid-scorecards .score-group-suppliers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.multi-bid-scorecards .score-findings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.score-group-result.furnax{background:#e9eaec;color:#42464b}
.score-group-result.chengbao{background:#eef0f3;color:#66707a}
.score-group-supplier.furnax .score-group-line>strong,.score-findings-supplier.furnax h4{color:#484b50}
.score-group-supplier.chengbao .score-group-line>strong,.score-findings-supplier.chengbao h4{color:#858b94}
.score-findings-supplier.furnax h4,.score-findings-supplier.chengbao h4{font-weight:800}
@media(max-width:720px){.multi-bid-scorecards .score-group-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.multi-bid-scorecards .score-findings-grid{grid-template-columns:minmax(0,1fr)}}

/* Four-supplier overall average cards: highlight the top score only. */
.multi-average-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.multi-average-card{min-width:0;padding:16px 17px;border:1px solid #d5d8dc;border-left:4px solid #737b84;border-radius:11px;background:#f8f9fa;box-shadow:0 3px 12px rgba(31,37,43,.06)}
.multi-average-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#626b75;font-size:12px;font-weight:800;letter-spacing:.05em}
.multi-average-card>header span{line-height:1.4}
.multi-average-card>header small{flex:none;color:#737b84;font-size:11px;letter-spacing:0}
.multi-average-score{margin:9px 0 5px;color:#20252b;font-size:35px;line-height:1;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.multi-average-score small{color:#818a94;font-size:14px;font-weight:600;letter-spacing:0}
.multi-average-score.is-leading{color:#15803d}
.multi-average-card>p{margin:0;color:#737b84;font-size:12px}
@media(max-width:900px){.multi-average-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.multi-average-grid{grid-template-columns:minmax(0,1fr)}}

@media(max-width:1100px){.multi-bid-scope-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.multi-bid-scope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:600px){.multi-bid-scope-grid{grid-template-columns:minmax(0,1fr)}}

.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px;margin-top:10px}
.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier-head>strong:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier-head .exec-supplier-score{flex:none;color:#343a40;font-size:12.4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier .exec-bar{grid-column:1;min-width:40px;height:10px;background:#e1e4e8}
.exec-dashboard:not(.performance-dashboard) .multi-bid-scope-grid .exec-supplier>small{grid-column:2;align-self:center;color:#626b75;font-size:10.5px;text-align:right;white-space:nowrap}
