/*! Corbel — sales dashboard for an online and in-store shop — © 2026 Hasib (OVERSHOOT). All rights reserved. Licensed to sjouglard@laboratorioena.com (order INS-2F63AC79), not sold: see LICENSE.md. */
/* ── revenue bars ── */
.db-an__sum { color: var(--faint); font-size: var(--fs-sm); }
.db-chart { position: relative; padding-bottom: 28px; }
.db-plot { position: relative; height: 238px; }
.db-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.db-gl { position: relative; height: 0; padding-left: 44px; }
.db-gl i { display: block; border-top: 1px dashed var(--line-2); }
.db-gl span { position: absolute; left: 0; top: -8px; width: 36px; text-align: right; font-size: var(--fs-2xs); color: var(--faint); }
.db-avg { position: absolute; left: 44px; right: 0; top: 0; height: 0; border-top: 1.5px dashed var(--c4); z-index: 2; pointer-events: none; }
.db-avg span { position: absolute; right: 0; top: -21px; padding: 1px 7px; border-radius: 6px; background: var(--sea-soft); color: var(--sea); font-size: var(--fs-2xs); font-weight: 600; }

.db-cols { position: absolute; inset: 0 0 0 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.db-col { position: relative; height: 100%; display: flex; justify-content: center; border-radius: 10px; }
.db-col:focus-visible { outline-offset: -2px; }
.db-col__track { position: relative; width: min(30px, 66%); height: 100%; border-radius: 999px; overflow: hidden; }
.db-col__fill {
  position: absolute; inset: 0; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--hatch) 0 2px, transparent 2px 7px), var(--hatch-bg);
  transition: background-color .25s;
}
.db-col:hover .db-col__fill { background-color: color-mix(in srgb, var(--primary) 12%, transparent); }
.db-col.is-fc .db-col__fill { border: 1.5px dashed color-mix(in srgb, var(--primary) 50%, transparent); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--hatch) 55%, transparent) 0 2px, transparent 2px 7px); }
.db-col__x { position: absolute; bottom: -25px; font-size: var(--fs-2xs); color: var(--faint); transition: color .2s; }
.db-col.is-on .db-col__x { color: var(--text); font-weight: 600; }

.db-hl { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; border-radius: 999px; overflow: hidden; pointer-events: none; z-index: 1; }
.db-hl__fill {
  position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary) 40%, var(--primary-ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.db-hl.is-fc .db-hl__fill { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 2px, transparent 2px 7px), linear-gradient(180deg, var(--primary-2), var(--primary)); }
.db-hl__cap { position: absolute; left: 50%; top: 7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }

.db-tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  min-width: 164px; padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink-btn); color: var(--on-ink-btn);
  box-shadow: var(--shadow-pop);
  font-size: var(--fs-xs); pointer-events: none;
}
.db-tip__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; font-weight: 600; }
.db-tip__h em { font-style: normal; font-size: var(--fs-2xs); padding: 1px 6px; border-radius: 5px; background: rgba(142, 195, 234, .25); }
.db-tip dl { margin: 0; display: grid; gap: 4px; }
.db-tip dl div { display: flex; justify-content: space-between; gap: 18px; }
.db-tip dt { opacity: .68; }
.db-tip dd { margin: 0; font-weight: 600; }
.db-tip .up { color: #5ee6b4; } .db-tip .down { color: #ff9ea2; }
:root[data-theme="dark"] .db-tip .up { color: #08775a; }
:root[data-theme="dark"] .db-tip .down { color: #c22d34; }

