/* ─────────── iiko BACK-OFFICE REPORTS ─────────── */
.bo-section { padding: 90px 32px; }

.bo-feats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 40px 0 32px;
}
.bo-feat {
  background: var(--bg-elev); border: 1px solid var(--hair);
  border-radius: 14px; padding: 20px;
}
.bo-feat-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--acc-soft); color: var(--acc);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.bo-feat-ic svg { width: 22px; height: 22px; }
.bo-feat h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 5px; }
.bo-feat p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* the report window */
.bo-window {
  background: #eceef1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 12.5px; color: #1e2226;
}
.bo-winbar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; background: #d8dce1; border-bottom: 1px solid #c2c7cd;
}
.bo-winbar .traffic { display: flex; gap: 7px; }
.bo-winbar .win-title { font-size: 12px; color: #5c636b; font-weight: 600; }

/* report tab strip */
.bo-tabs { display: flex; background: #dfe3e7; border-bottom: 1px solid #c2c7cd; overflow-x: auto; scrollbar-width: none; }
.bo-tabs::-webkit-scrollbar { display: none; }
.bo-tab {
  flex: 0 0 auto; border: none; background: none; cursor: pointer; font-family: inherit;
  padding: 11px 18px; font-size: 12.5px; font-weight: 600; color: #5c636b;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  border-bottom: 2.5px solid transparent; border-right: 1px solid #cfd4d9;
  transition: background .15s, color .15s;
}
.bo-tab svg { width: 15px; height: 15px; }
.bo-tab:hover { background: #e9ecef; color: #1e2226; }
.bo-tab.on { background: #f5f6f8; color: var(--acc); border-bottom-color: var(--acc); }

.bo-panel { display: none; }
.bo-panel.on { display: block; }

/* report header (title + toolbar) */
.bo-rhead {
  background: #f5f6f8; padding: 14px 18px 12px; border-bottom: 1px solid #d5dade;
}
.bo-rtitle {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; color: #2a3138; letter-spacing: -0.01em; margin-bottom: 12px;
}
.bo-rtitle .q { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9c0c7; color: #8b939b; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

.bo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bo-fld { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5c636b; }
.bo-input {
  background: #fff; border: 1px solid #c2c7cd; border-radius: 4px;
  padding: 5px 9px; font-size: 12px; color: #2a3138; font-family: inherit;
  display: flex; align-items: center; gap: 8px; min-height: 27px;
}
.bo-input.sel::after { content: "▾"; color: #8b939b; font-size: 10px; }
.bo-btn {
  border: 1px solid #c2c7cd; background: #fff; cursor: pointer; font-family: inherit;
  border-radius: 4px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: #2a3138;
  transition: background .15s;
}
.bo-btn:hover { background: #eef0f2; }
.bo-btn.excel { display: flex; align-items: center; gap: 6px; color: #1f7a44; border-color: #b6d6c1; }
.bo-btn.excel svg { width: 14px; height: 14px; }
.bo-btn.primary { background: var(--acc); color: #fff; border-color: var(--acc); }
.bo-btn.primary:hover { filter: brightness(1.06); }
.bo-spacer { flex: 1; }
.bo-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5c636b; cursor: default; }
.bo-check .bx { width: 14px; height: 14px; border: 1.5px solid var(--acc); border-radius: 3px; background: var(--acc); display: flex; align-items: center; justify-content: center; }
.bo-check .bx svg { width: 9px; height: 9px; color: #fff; }

/* OLAP dimension chips */
.bo-dims { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 18px; background: #eceef1; border-bottom: 1px solid #d5dade; }
.bo-dim {
  border: 1px solid #c2c7cd; background: #f7f8f9; cursor: pointer; font-family: inherit;
  border-radius: 4px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; color: #464d55;
  transition: all .12s;
}
.bo-dim:hover { background: #fff; border-color: var(--acc); color: var(--acc); }
.bo-dim.on { background: var(--acc); color: #fff; border-color: var(--acc); }

/* OLAP measure toggles */
.bo-measures { display: flex; gap: 4px; padding: 10px 18px 0; }
.bo-measure {
  border: 1px solid #c2c7cd; background: #f7f8f9; cursor: pointer; font-family: inherit;
  border-radius: 4px 4px 0 0; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #5c636b;
  border-bottom: none; transition: all .12s;
}
.bo-measure.on { background: #fff; color: var(--acc); box-shadow: inset 0 2px 0 var(--acc); }

/* generic report table */
.bo-tablewrap { background: #fff; overflow-x: auto; max-height: 460px; overflow-y: auto; }
table.bo-table { border-collapse: collapse; width: 100%; font-size: 12px; min-width: 720px; }
.bo-table th {
  position: sticky; top: 0; z-index: 2;
  background: #eceef1; color: #464d55; font-weight: 700; text-align: left;
  padding: 8px 10px; border: 1px solid #d5dade; white-space: nowrap;
}
.bo-table th .sortcol { display: inline-flex; align-items: center; gap: 5px; }
.bo-table th .arw { color: #9aa1a9; font-size: 9px; }
.bo-table td { padding: 7px 10px; border: 1px solid #e4e7ea; color: #2a3138; white-space: nowrap; }
.bo-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bo-table tr:hover td { background: #f4f9ff; }
.bo-table .grp td { background: #f5f6f8; font-weight: 700; }
.bo-table .grp .tri { color: #8b939b; margin-right: 5px; font-size: 9px; }
.bo-table .sub td { background: #fafbfc; font-style: italic; color: #6b727a; }
.bo-table tr.total td { background: #e7eb0; background: #eef1f4; font-weight: 800; border-top: 2px solid #b9c0c7; position: sticky; bottom: 0; }
.bo-table .ind1 { padding-left: 26px; }
.bo-table .ind2 { padding-left: 42px; }
.bo-table .mtri { color: #8b939b; font-size: 9px; margin-right: 6px; }
.bo-colhdr-note { background: #f5f6f8; color: #9aa1a9; font-style: italic; font-weight: 500; text-align: center; }

/* deviation coloring (purchases) */
.dev-pos { color: #c0392b; font-weight: 700; }
.dev-neg { color: #1f8a4c; font-weight: 700; }
.cell-red { background: #fdecec !important; }
.cell-green { background: #eafaf0 !important; }

/* ABC/XYZ letter cells */
.abc { text-align: center; font-weight: 800; }
.abc.a { background: #b7e2c1; color: #17663a; }
.abc.b { background: #ffe6a8; color: #8a6100; }
.abc.c { background: #f7bcbc; color: #932020; }
.abc.x { background: #b7e2c1; color: #17663a; }
.abc.y { background: #ffe6a8; color: #8a6100; }
.abc.z { background: #f7bcbc; color: #932020; }

/* abc legend */
.bo-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 18px; background: #f5f6f8; border-bottom: 1px solid #d5dade; font-size: 11.5px; }
.bo-legend .lg { display: flex; align-items: center; gap: 8px; }
.bo-legend .lg b { color: #464d55; }
.bo-legend .sw { display: inline-flex; gap: 3px; }
.bo-legend .sw span { padding: 2px 7px; border-radius: 3px; font-weight: 800; font-size: 10.5px; }

@media (max-width: 860px) {
  .bo-section { padding: 60px 14px; }
  .bo-feats { grid-template-columns: 1fr 1fr; }
  .bo-toolbar { gap: 6px; }
}

/* ─────────── CAPABILITIES MARQUEE (full-bleed) ─────────── */
.cap-band { padding: 56px 0 64px; overflow: hidden; }
.cap-head {
  max-width: 1200px; margin: 0 auto 28px; padding: 0 32px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cap-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.cap-head h2 em { font-style: normal; color: var(--acc); }
.cap-head p { font-size: 14.5px; color: var(--ink-3); max-width: 420px; line-height: 1.55; }

.cap-viewport { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.cap-track {
  display: flex; gap: 18px; width: max-content;
  animation: capScroll 90s linear infinite;
}
.cap-viewport:hover .cap-track { animation-play-state: paused; }
@keyframes capScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cap-track { animation: none; } }

.cap-card {
  flex: 0 0 auto; width: 258px; height: 320px;
  background: var(--bg-soft); border: 1px solid var(--hair);
  border-radius: 20px; padding: 22px 22px 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc); }
.cap-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.cap-title svg { width: 13px; height: 13px; color: var(--ink-4); flex-shrink: 0; }
.cap-sub { margin-top: 8px; font-size: 13px; color: var(--acc); font-weight: 600; line-height: 1.4; }
.cap-vis {
  margin-top: auto; margin-bottom: 0; height: 150px;
  margin-left: -22px; margin-right: -22px;
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cap-vis svg { width: 62px; height: 62px; }
.cap-vis::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.04)); }
.cap-v1 { background: linear-gradient(150deg, #fbe6dd, #f3cdbe); color: #b8481f; }
.cap-v2 { background: linear-gradient(150deg, #e7edf6, #d3ddec); color: #3a5c8a; }
.cap-v3 { background: linear-gradient(150deg, #eaf3e6, #d3e6cb); color: #47772f; }
.cap-v4 { background: linear-gradient(150deg, #f6ecdb, #ecd9b8); color: #9a7420; }
.cap-v5 { background: linear-gradient(150deg, #f1e7f3, #e0cfe4); color: #7a4a86; }
.cap-v6 { background: linear-gradient(150deg, #e2f0f0, #c9e3e2); color: #2f7d78; }

@media (max-width: 640px) {
  .cap-card { width: 210px; height: 286px; }
  .cap-vis { height: 128px; }
}
