/* Живая кухня — кастомный дашборд ресторана. Тёплые тикеты-чеки по этапам. */
.kb { padding: 2px 0 22px; }
.kb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kb-stat { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow-sm); }
.kb-stat__em { font-size: 22px; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--acc-dim); border-radius: 13px; }
.kb-stat b { display: block; font-family: var(--font-head); font-size: 23px; font-weight: 700; color: var(--text); line-height: 1.05; }
.kb-stat small { font-size: 12px; color: var(--text2); }

.kb-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1040px) { .kb-strip, .kb-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kb-strip, .kb-board { grid-template-columns: 1fr; } }

.kb-col { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 13px; }
.kb-col__h { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); padding: 4px 6px 13px; }
.kb-col__em { font-size: 17px; }
.kb-col__n { margin-left: auto; font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--acc-contrast); background: var(--kc); min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; }
.kb-col--live .kb-col__em { animation: kbLive 1.5s ease-in-out infinite; }
@keyframes kbLive { 50% { transform: scale(1.2) rotate(-6deg); } }
.kb-col__body { display: flex; flex-direction: column; gap: 11px; min-height: 44px; }

.kb-ticket { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--kc); border-radius: 12px; padding: 12px 13px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .25s; }
.kb-ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kb-ticket__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.kb-ticket__top b { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.kb-timer { font-family: var(--font-num); font-size: 11px; font-weight: 600; color: var(--text2); background: var(--surface3); padding: 2px 9px; border-radius: 20px; }
.kb-ticket__client { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.kb-ticket__items { font-size: 12px; color: var(--text2); line-height: 1.45; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-ticket__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px dashed var(--border2); }
.kb-amt { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); }
.kb-courier { font-size: 11px; color: var(--text2); }
.kb-empty { text-align: center; color: var(--text3); font-size: 12px; padding: 18px 0; }

/* ── ИИ-инженерия меню — матрица спрос×маржа ── */
.mm { padding: 2px 0 22px; }
.mm-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px 10px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.mm-chart-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.mm-chart-head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text); }
.mm-chart-head h3 .ic { color: var(--acc); }
.mm-chart-head p { font-size: 12.5px; color: var(--text3); }
.mm-svg { width: 100%; height: auto; display: block; }
.mm-axis { stroke: var(--border2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.mm-lbl { font-size: 11px; fill: var(--text3); }

.mm-insight { display: flex; gap: 13px; align-items: flex-start; background: var(--acc-dim); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.55; color: var(--text2); }
.mm-insight__ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface); border-radius: 10px; color: var(--acc); }
.mm-insight b { color: var(--text); }

.mm-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .mm-groups { grid-template-columns: 1fr; } }
.mm-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.mm-group__h { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 6px; }
.mm-group__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kc); flex-shrink: 0; }
.mm-group__h .kb-col__n { background: var(--kc); }
.mm-group__advice { font-size: 12.5px; color: var(--text3); line-height: 1.5; margin-bottom: 12px; }
.mm-group__list { display: flex; flex-direction: column; gap: 8px; }
.mm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 6px; margin: 0 -6px; border-top: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: background .12s; }
.mm-row:first-child { border-top: none; padding-top: 0; }
.mm-row:hover { background: var(--surface2); }
.mm-row__name { color: var(--text); font-weight: 500; }
.mm-row__meta { color: var(--text3); font-size: 11.5px; white-space: nowrap; font-family: var(--font-num); }
.mm-dot { cursor: pointer; transition: opacity .12s; }
.mm-dot:hover { fill-opacity: 1; stroke: var(--text); }
