.dash header.top .wrap { height: 64px; }
.period { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.period button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.period button.on { background: var(--lime); color: #07080a; }
.dash-main { padding-top: 28px; padding-bottom: 60px; }
.demo-banner { border: 1px dashed rgba(200,255,61,0.5); background: var(--lime-dim); color: #e3e6ea; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 22px; }
.demo-banner b { background: var(--lime); color: #07080a; border-radius: 999px; padding: 2px 10px; margin-right: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 4px; }
.dash-head .range { margin: 0; font-size: 15px; }
.live { display: inline-flex; align-items: center; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; }
.dash-error { border: 1px solid #ff6b6b; color: #ffb3b3; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; padding: 0; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k { font-size: 14px; color: var(--muted); }
.kpi .v { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.kpi .v.lime { color: var(--lime); }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.hero-kpi { background: linear-gradient(160deg, rgba(200,255,61,0.14), var(--card) 60%); border-color: rgba(200,255,61,0.35); }

.charts { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 14px; margin-bottom: 14px; padding: 0; }
@media (max-width: 1000px) { .charts { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 18px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--lime), rgba(200,255,61,0.55)); min-height: 3px; position: relative; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.bars .b i::after { content: attr(data-v); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.bars .b span { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.bars.hours .b i { background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.35)); }
.bars.hours .b.peak i { background: linear-gradient(180deg, var(--lime), rgba(200,255,61,0.55)); }
.bars.many .b i::after { display: none; }
.bars.many .b span { font-size: 10px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--line) 0 100%); }
.donut > div { width: 98px; height: 98px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut b { font-family: "Manrope", sans-serif; font-size: 28px; line-height: 1; }
.donut span { font-size: 12px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 140px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; color: #dfe3e8; }
.legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend li b { margin-left: auto; font-weight: 700; }

.calls .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.calls input, .calls select { background: var(--bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; }
.calls input:focus, .calls select:focus { outline: none; border-color: var(--lime); }
.list { display: flex; flex-direction: column; }
.call-row { display: grid; grid-template-columns: 110px 120px 1fr auto; gap: 16px; align-items: start; padding: 14px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.call-row:hover { background: rgba(255,255,255,0.02); }
.call-row .when { font-size: 13px; color: var(--muted); line-height: 1.4; }
.call-row .when b { display: block; color: var(--text); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tag.reservation { background: rgba(120,170,255,0.15); color: #9ec0ff; }
.tag.commande { background: var(--lime-dim); color: var(--lime); }
.tag.message { background: rgba(245,196,81,0.15); color: #f5c451; }
.tag.question { background: rgba(255,255,255,0.08); color: #cfd4da; }
.tag.autre { background: rgba(255,255,255,0.06); color: var(--muted); }
.call-row .what b { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.call-row .what p { margin: 0; font-size: 14px; color: var(--muted); }
.call-row .what .detail { display: none; margin-top: 10px; font-size: 14px; color: #dfe3e8; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.call-row.open .what .detail { display: block; }
.call-row .flag { font-size: 12px; color: #f5c451; white-space: nowrap; }
.call-row .dur { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.empty { text-align: center; padding: 24px 0; }
.dash-foot { text-align: center; font-size: 13px; margin-top: 26px; }
.dash-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .dash header.top .logo small { display: none; }
  .dash-main { padding-top: 18px; }
  .kpi { padding: 16px; }
  .kpi .v { font-size: 32px; }
  .kpi .k { font-size: 13px; }
  .bars { height: 150px; gap: 4px; }
  .donut { width: 130px; height: 130px; }
  .donut > div { width: 84px; height: 84px; }
  .call-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .call-row .when { grid-column: 1; }
  .call-row .tagc { grid-column: 2; justify-self: end; }
  .call-row .what { grid-column: 1 / -1; }
  .call-row .dur { display: none; }
  .calls .tools { width: 100%; }
  .calls input { flex: 1; min-width: 0; }
}

.more { display: flex; margin: 16px auto 0; }
.more[hidden] { display: none; }
