/* Presentation inspired by 4Sales. Deliberately scoped away from the sidebar. */
.shell, #detail {
  --ink: #123f58;
  --muted: #617985;
  --teal: #159d9a;
  --teal-dark: #087b7a;
  --line: #d7e8eb;
  --orange: #f29b48;
  color: var(--ink);
}
.shell { background: #f5fafc; min-height: 100vh; }
.shell header {
  background: #fff;
  padding: 30px 40px 26px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px #123f5804;
  gap: 20px;
}
.shell .eyebrow, #detail .eyebrow { color: var(--teal-dark); font-weight: 700; letter-spacing: 1.7px; }
.shell h1 { font-size: 36px; letter-spacing: -1px; line-height: 1.15; position: relative; padding-left: 17px; }
.shell h1::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 3px; width: 5px; background: var(--orange); border-radius: 2px; }
.shell h2, #detail h2 { color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.4px; }
.shell h3, #detail h3 { color: var(--ink); font-size: 16px; }
.shell small, #detail small, .shell p.note, #detail p.note { color: var(--muted); }
.shell .intro { gap: 20px; }
.shell .intro p { color: var(--muted); }
.shell .intro strong { color: var(--ink); font-size: 20px; margin-bottom: 4px; }
.shell .period-bar { border-color: var(--line); border-radius: 4px; box-shadow: 0 4px 16px #123f5803; padding: 18px 22px; }
.shell .period-bar strong { color: var(--ink); font-size: 13px; }
.shell .period-bar label { color: var(--muted); }
.shell button, .shell .button, #detail button, #detail .button {
  color: var(--ink); border-color: #c8dfe4; border-radius: 6px; font-weight: 600;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.shell button:hover, .shell .button:hover, #detail button:hover { background: #f0fafb; border-color: var(--teal); }
.shell button.primary, .shell .button.primary, #detail button.primary { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.shell button.primary:hover, .shell .button.primary:hover, #detail button.primary:hover { background: #066a69; }
.shell input, .shell select, #detail input, #detail select { color: var(--ink); border-color: #c8dfe4; border-radius: 5px; min-height: 40px; }
.shell input[type=checkbox], #detail input[type=checkbox] { min-height: auto; accent-color: var(--teal-dark); }
.shell :is(button, a, input, select, summary):focus-visible,
#detail :is(button, a, input, select, summary):focus-visible { outline: 3px solid #159d9a; outline-offset: 3px; }
.shell .pill, #detail .pill { background: #e7f5f6; border: 1px solid #cde8eb; color: var(--teal-dark); font-weight: 700; letter-spacing: .25px; }
.shell .metrics, #detail .metrics { gap: 18px; }
.shell .metric, #detail .metric {
  position: relative; padding: 24px 22px; background: linear-gradient(130deg, #fff 45%, #f0fafa);
  border: 1px solid #cde4e7; border-radius: 4px; box-shadow: 0 6px 20px #123f5804;
  min-width: 0;
}
.shell .metric::before, #detail .metric::before { content: ''; position: absolute; top: -1px; left: 22px; width: 34px; height: 3px; background: var(--teal); }
.shell .metric:nth-child(2)::before { background: var(--orange); }
.shell .metric label, #detail .metric label { color: var(--teal-dark); font-size: 10px; font-weight: 750; letter-spacing: .7px; }
.shell .metric b { color: var(--ink); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; margin: 16px 0 10px; overflow-wrap: anywhere; }
.shell .metric small, #detail .metric small { line-height: 1.6; font-size: 11px; }
.shell .card, #detail .card { border: 1px solid var(--line); border-radius: 4px; padding: 26px; box-shadow: 0 5px 22px #123f5803; }
.shell .grid > .card { margin-bottom: 0; }
.shell .bars { border-bottom-color: var(--line); gap: 11px; margin-bottom: 32px; }
.shell .bar { background: var(--teal); border-radius: 3px 3px 0 0; }
.shell .bar:nth-child(odd) { background: #75c7c8; }
.shell .category-row { color: var(--ink); line-height: 1.5; }
.shell .category-row span, .shell .rank-track, #detail .rank-track { background: #e4f2f4; border-radius: 10px; }
.shell .category-row i, .shell .rank-track i, #detail .rank-track i { background: var(--teal); border-radius: 10px; }
.shell .table-wrap, #detail .table-wrap { border: 1px solid var(--line); border-radius: 5px; }
.shell th, #detail th { background: #f0f7fa; color: #4c6a7b; border-bottom-color: var(--line); font-weight: 700; padding: 16px 14px; }
.shell td, #detail td { padding: 16px 14px; border-bottom-color: #e7f0f3; }
.shell tbody tr:last-child td, #detail tbody tr:last-child td { border-bottom: 0; }
.shell tr:hover td, #detail tr:hover td { background: #f4fbfc; }
.shell td strong, #detail td strong { color: var(--ink); }
.shell .badge, #detail .badge { background: #fff2e3; color: #86511a; border-radius: 4px; }
.shell .toolbar { gap: 12px; }
.shell .upload { background: #f4fbfc; border-color: #83c8cc; border-radius: 6px; }
.shell .upload strong { color: var(--ink); }
.shell .steps div { background: #eef7f9; border: 1px solid var(--line); border-radius: 5px; line-height: 1.6; }
.shell .steps b { color: var(--teal-dark); }
.shell .banner {
  position: relative; background: linear-gradient(120deg, #fff, #edf8fa); color: var(--ink);
  border: 1px solid #bddde2; border-left: 4px solid var(--teal); border-radius: 4px; padding: 30px;
}
.shell .banner::after { content: ''; position: absolute; right: 24px; bottom: 18px; width: 110px; height: 4px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.shell .banner b { color: var(--ink); font-size: 40px; }
.shell .banner small { color: var(--muted); max-width: calc(100% - 130px); line-height: 1.7; }
.shell .chat { background: #f0f8fa; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 5px; color: var(--ink); }
.shell .busy, #detail .busy { background: #eaf7f8; color: var(--teal-dark); border: 1px solid #cde8eb; border-radius: 5px; }
.shell .error, #detail .error { background: #fff1e8; color: #943e23; }
.shell .empty { color: var(--muted); }
.shell .product-link, #detail .product-link, #detail .supplier-history-toggle { color: var(--teal-dark); }
.shell .category-management { border-color: var(--line); border-radius: 5px; background: #fff; }
.shell .category-management[open] summary { border-bottom-color: var(--line); }
.shell .category-management summary span { color: var(--muted); }
.shell .logo-preview { border-color: var(--line); background: #f5fafc; }
#detail { border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
#detail::backdrop { background: #123f5870; }
#detail .score-track { background: #e1f1f3; border-radius: 8px; overflow: hidden; }
#detail .score-track i { background: var(--teal); }
#detail .supplier-history, #supplierPerformance tr[id^=supplier-history] > td { background: #f0f8fa; border-color: var(--line); }
.shell #toast { background: #123f58; }
@media (max-width: 1100px) {
  .shell header { padding: 22px; }
  .shell .metric b { font-size: 28px; }
}
@media (max-width: 700px) {
  .shell h1 { font-size: 30px; }
  .shell .intro .primary { margin-top: 16px; }
  .shell .metric { padding: 20px 16px; }
  .shell .metric b { font-size: 23px; }
  .shell .card, #detail .card { padding: 18px; }
  .shell .banner { padding: 24px; }
  .shell .banner b { font-size: 32px; }
  .shell .banner small { max-width: 100%; }
  .shell .banner::after { display: none; }
  .shell .period-bar label { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .shell .metrics, #detail .metrics { grid-template-columns: 1fr; }
  .shell .metric b { font-size: 28px; overflow-wrap: normal; }
}

.shell .saving-tabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}
.shell .saving-tabs button{padding:12px 20px}
.shell .saving-tabs button[aria-pressed="true"]{background:var(--ink);color:white;border-color:var(--ink);box-shadow:inset 0 -3px var(--orange)}
.shell .benchmark-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.shell #benchmarkResults table{min-width:980px}
.shell #benchmarkResults td{vertical-align:top}
.shell .benchmark-supplier{border-left:3px solid var(--teal);padding-left:12px;min-width:145px}
.shell .benchmark-supplier.maximum{border-color:var(--orange)}
.shell .benchmark-supplier.nearest{border-color:#123f58}
.shell .benchmark-supplier b{display:block;margin-top:8px;font-size:16px;color:var(--ink)}
.shell .benchmark-supplier small{line-height:1.6;margin-top:8px}
.shell .benchmark-unavailable{color:var(--muted);font-size:11px}
