/* Sample dashboards (kitchen + profit). These are styled as a customer's own app,
   so they use a light scheme of their own instead of the MyTechSupport brand tokens. */
.cust {
  --bg: #f4f1ea; --surface: #ffffff; --surface-alt: #ece8de;
  --rule: #ddd7c8; --rule-strong: #c4bdab;
  --text: #16231f; --text-dim: #44514b; --text-muted: #5f6a63;
  --accent: #d6452d; --accent-hi: #b3321c; --accent-tint: #fbe6e1; --accent-text: #fff;
  --ok: #1d7a4d; --ok-tint: #dcefe4;
  --brand: #0f5c55; --brand-2: #7fb8ae; --risk: #94650a; --bar: #b9b2a0;
  background: var(--bg); color: var(--text); border-top: 0 !important;
}
.cust a { color: var(--brand); }
.cust .badge { background: var(--brand); color: #fff; }
.cust .badge::before { background: #fff; }
.kd-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule-strong); }
.kd-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; margin-right: 10px; }
.kd-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.kd-tabs a { padding: 9px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text-dim); min-height: 40px; display: inline-flex; align-items: center; }
.kd-tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
.kd-tabs a:not([aria-current]):hover { background: var(--surface-alt); color: var(--text); }
.kd { --ch: 200px; padding-top: 36px; }
.kd-hero { padding-bottom: 40px; }
.kd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.kd-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kd-title b { font-family: var(--serif); font-size: 1.25rem; }
.kd-seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; max-width: 100%; }
.kd-seg button { background: transparent; color: var(--text-dim); border: 0; padding: 0 14px; min-height: 44px; font: 600 .88rem/1 var(--sans); cursor: pointer; }
.kd-seg button + button { border-left: 1px solid var(--rule-strong); }
.kd-seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.kd-seg button:not([aria-pressed="true"]):hover { color: var(--text); background: var(--surface-alt); }

.kd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kd-kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.kd-kpi span { display: block; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.kd-kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; margin: 4px 0 2px; }
.kd-kpi em { font-style: normal; font-size: .82rem; color: var(--text-dim); }
.kd-kpi.good em { color: var(--ok); }
.kd-kpi.warn em { color: var(--accent-hi); }
.kd-kpi.warn { border-color: var(--accent); }

.kd-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kd-grid { grid-template-columns: repeat(2, 1fr); } .kd-wide { grid-column: span 1; } }
@media (min-width: 1100px) { .kd-grid { grid-template-columns: 1.4fr 1fr; } }
.kd-grid .card { min-width: 0; }
.kd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.kd-head h3, .kd-grid h3 { margin: 0 0 .3em; }
.kd-sub { margin-top: 1.4em !important; font-size: 1.1rem; }

.kd-chart { position: relative; display: flex; gap: 4px; align-items: flex-end; height: calc(var(--ch) + 22px); margin-top: 18px; }
.kd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.kd-bar-wrap { position: relative; height: var(--ch); display: flex; align-items: flex-end; }
.kd-bar-wrap i { display: block; width: 100%; background: var(--bar); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.kd-bar-wrap i.hot { background: var(--accent); }
.kd-val { position: absolute; left: -4px; right: -4px; padding-bottom: 2px; text-align: center; font-style: normal; font-size: .7rem; color: var(--text-dim); display: none; }
@media (min-width: 640px) { .kd-val { display: block; } }
.kd-x { height: 22px; line-height: 22px; text-align: center; font-size: .72rem; color: var(--text-muted); }
.kd-col.off { opacity: .35; }
.kd-target { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--text-dim); pointer-events: none; }
.kd-target span { position: absolute; right: 0; bottom: 2px; font-size: .7rem; color: var(--text); background: var(--surface); padding: 0 4px; }

.kd-insights ul { list-style: none; margin: 0; padding: 0; }
.kd-insights li { padding: 12px 0 12px 14px; border-top: 1px solid var(--rule); border-left: 3px solid var(--ok); margin-left: 0; }
.kd-insights li:first-child { border-top: 0; }
.kd-insights li.warn { border-left-color: var(--accent); }
.kd-insights b { display: block; }
.kd-insights span { font-size: .92rem; color: var(--text-dim); }

.kd-stations { display: grid; gap: 14px; margin-top: 12px; }
.kd-st-top { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.kd-st-top b { font-variant-numeric: tabular-nums; color: var(--ok); font-size: .88rem; }
.kd-st-top b.over { color: var(--accent-hi); }
.kd-track { position: relative; height: 12px; background: var(--surface-alt); border-radius: 6px; margin: 6px 0 4px; }
.kd-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.kd-track .p90 { background: var(--bar); }
.kd-track .p50 { background: var(--brand); }
.kd-track .p50.hot { background: var(--accent); }
.kd-track u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); text-decoration: none; }
.kd-st-sub { font-size: .78rem; color: var(--text-muted); }
.kd-key { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.kd-key i { display: inline-block; vertical-align: middle; margin-right: 4px; height: 10px; }
.k-p50 { width: 14px; background: var(--brand); border-radius: 3px; } .k-p90 { width: 14px; background: var(--bar); border-radius: 3px; } .k-tgt { width: 2px; height: 14px !important; background: var(--text); }

.kd-mix { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 10px 0; }
.kd-mix i { display: block; }
.kd-legend { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.kd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.kd-rows { display: grid; gap: 10px; margin-top: 8px; }
.kd-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .92rem; }
.kd-row small { color: var(--text-muted); margin-left: 6px; }
.kd-row b { font-variant-numeric: tabular-nums; }
.kd-mini { grid-column: 1 / -1; height: 6px; background: var(--surface-alt); border-radius: 3px; }
.kd-mini i { display: block; height: 100%; background: var(--brand); border-radius: 3px; opacity: .85; }

.kd-pause { background: transparent; color: var(--text); border: 1px solid var(--rule-strong); border-radius: 8px; min-height: 40px; padding: 0 14px; font: 600 .85rem/1 var(--sans); cursor: pointer; }
.kd-pause:hover { border-color: var(--text); }
.kd-tickets { display: grid; gap: 8px; margin-top: 10px; }
.kd-tk { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 10px; align-items: center; background: var(--surface-alt); border-left: 4px solid var(--ok); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.kd-tk b { font-variant-numeric: tabular-nums; }
.kd-tk small { display: block; color: var(--text-muted); font-size: .78rem; }
.kd-tk em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.kd-tk u { text-decoration: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); min-width: 54px; text-align: right; }
.kd-tk.risk { border-left-color: #e0b341; } .kd-tk.risk u { color: var(--risk); }
.kd-tk.late { border-left-color: var(--accent); background: var(--accent-tint); } .kd-tk.late u, .kd-tk.late em { color: var(--accent-hi); }
@media (max-width: 480px) { .kd-tk { grid-template-columns: 50px 1fr auto; } .kd-tk u { grid-column: 2 / -1; text-align: left; } }
.kd-foot { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .kd-bar-wrap i { animation: none; } }

/* Menu mix and profit page */
.pf-span { grid-column: 1 / -1; }
.pf-fall { display: grid; gap: 8px; margin-top: 12px; }
.pf-step { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .9rem; }
.pf-step b { font-variant-numeric: tabular-nums; }
.pf-step.tot span, .pf-step.tot b { font-weight: 700; }
.pf-track { grid-column: 1 / -1; position: relative; height: 10px; background: var(--surface-alt); border-radius: 5px; }
.pf-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--brand); }
.pf-step.neg .pf-track i { background: var(--bar); }
.pf-step.hot .pf-track i { background: var(--accent); }
.pf-step.hot b { color: var(--accent-hi); }

.pf-plotwrap { display: flex; gap: 6px; margin-top: 14px; }
.pf-ylab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .75rem; color: var(--text-muted); text-align: center; letter-spacing: .04em; }
.pf-plot { position: relative; flex: 1; height: 340px; background: var(--surface-alt); border-radius: 10px; margin: 0 14px 0 0; }
.pf-xlab { text-align: center; font-size: .75rem; color: var(--text-muted); letter-spacing: .04em; margin: 6px 0 14px; }
.pf-vl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-muted); }
.pf-hl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--text-muted); }
.pf-q { position: absolute; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 8px 10px; pointer-events: none; }
.pf-q.tl { left: 0; top: 0; } .pf-q.tr { right: 0; top: 0; } .pf-q.bl { left: 0; bottom: 0; } .pf-q.br { right: 0; bottom: 0; }
.pf-dot { position: absolute; width: 30px; height: 30px; margin: 0 -15px -15px 0; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 700 .78rem/1 var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s; }
.pf-dot:hover, .pf-dot.on { transform: scale(1.25); z-index: 2; box-shadow: 0 0 0 3px var(--text); }
.pf-dot.star, .pf-tag.star { background: var(--brand); }
.pf-dot.plow, .pf-tag.plow { background: #94650a; }
.pf-dot.puz, .pf-tag.puz { background: #2f5f9e; }
.pf-dot.dog, .pf-tag.dog { background: var(--accent-hi); }
.pf-classes { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 16px; }
.pf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.pf-table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--rule-strong); }
.pf-table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.pf-table .r { text-align: right; }
.pf-table small { color: var(--text-muted); }
.pf-table tr[data-i] { cursor: pointer; }
.pf-table tr.on td { background: var(--accent-tint); }
.pf-tag { color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pf-sliders { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 14px 0; }
.pf-sliders label { display: grid; gap: 8px; font-weight: 600; }
.pf-sliders input { width: 100%; accent-color: var(--brand); min-height: 28px; }
.pf-result { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 12px; }
.pf-what .kd-kpi { background: var(--surface-alt); }
