.ov-dashboard {
  --ov-border: #dce2ed;
  --ov-ink: #0f1d3a;
  --ov-muted: #586780;
  --ov-blue: #0056ff;
  display: grid;
  gap: 22px;
  min-width: 0;
  color: var(--ov-ink);
  font-family: var(--pz-font-body, Inter, Arial, sans-serif);
}

.ov-dashboard *, .ov-dashboard *::before, .ov-dashboard *::after { box-sizing: border-box; }
.ov-dashboard h2, .ov-dashboard p { margin: 0; }
.ov-dashboard button, .ov-dashboard a { -webkit-tap-highlight-color: transparent; }
.ov-dashboard button:focus-visible, .ov-dashboard a:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 3px; }

.ov-metrics { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.ov-metric, .ov-panel { min-width: 0; border: 1px solid var(--ov-border); border-radius: 16px; background: #fff; }
.ov-metric { position: relative; padding: 19px 23px 21px; overflow: hidden; }
.ov-metric > * { position: relative; }
.ov-metric--primary { isolation: isolate; color: #fff; background: var(--ov-blue); border-color: var(--ov-blue); }
.ov-metric--primary::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 56%;
  content: "";
  background: url("./design-kit/assets/loyalme/loyalme-fundo-destaque.webp") right top / auto 92% no-repeat;
}
.ov-metric-label { display: flex; gap: 10px; align-items: center; }
.ov-metric-label h2 { color: var(--ov-muted); font: 550 14px/1.3 var(--pz-font-body, Inter, Arial, sans-serif); }
.ov-metric--primary .ov-metric-label h2 { color: #fff; }
.ov-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 9px; color: #0051d7; background: #ecf2ff; }
.ov-icon svg { width: 18px; height: 18px; }
.ov-metric--primary .ov-icon { color: #fff; background: rgb(255 255 255 / 16%); }
.ov-metric--active .ov-icon { color: #16745b; background: #eaf6f0; }
.ov-metric--onboarding .ov-icon { color: #996315; background: #fff4dc; }
.ov-dashboard .ov-value {
  margin: 10px 0 4px;
  font: 600 clamp(34px, 3vw, 43px)/1 var(--pz-font-heading, Poppins, Arial, sans-serif);
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.ov-metric-note { color: var(--ov-muted); font-size: 12px; line-height: 1.4; }
.ov-metric--primary .ov-metric-note { color: #f1f5ff; }
.ov-insights { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(225px, 1fr); gap: 16px; align-items: stretch; }
.ov-panel { padding: 23px 24px; }
.ov-panel-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ov-panel-head h2 { color: var(--ov-ink); font: 600 19px/1.4 var(--pz-font-heading, Poppins, Arial, sans-serif); letter-spacing: -.04em; }
.ov-panel-head p { color: var(--ov-muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.ov-periods { display: inline-flex; flex: none; gap: 2px; border: 1px solid #e6eaf2; background: #f3f5f9; border-radius: 9px; padding: 3px; }
.ov-periods button {
  color: var(--ov-muted);
  background: transparent;
  font: 550 12px/1.25 var(--pz-font-body, Inter, Arial, sans-serif);
  border: 1px solid transparent;
  padding: 5px 7px;
  border-radius: 6px;
  cursor: pointer;
}
.ov-periods button[aria-pressed="true"] { border-color: #dce2ed; color: #064fc4; background: #fff; box-shadow: 0 1px 2px rgb(25 47 87 / 5%); }
.ov-periods button:hover { color: #003fa8; }
.ov-plot { width: 100%; min-width: 0; height: 186px; margin: 12px 0 9px; }
.ov-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.ov-chart text { fill: #5e6c82; font: 12px var(--pz-font-body, Inter, Arial, sans-serif); }
.ov-gridline { stroke: #e4e9f1; stroke-width: 1; stroke-dasharray: 3 4; }
.ov-series { fill: none; stroke: var(--ov-blue); stroke-linejoin: round; stroke-linecap: round; stroke-width: 2.8px; }
.ov-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ov-muted); font-size: 12px; line-height: 1.5; }
.ov-legend { display: inline-flex; align-items: center; gap: 7px; }
.ov-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--ov-blue); }
.ov-range { font-variant-numeric: tabular-nums; }

.ov-activity-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ov-activity-list li { position: relative; }
.ov-activity-list li:not(:last-child)::before { content: ""; position: absolute; top: 14px; bottom: -12px; left: 6px; width: 1px; background: #dbe5fa; }
.ov-event { display: grid; grid-template-columns: 13px minmax(0, 1fr) 12px; align-items: start; gap: 11px; width: 100%; padding: 8px 0; border: 0; border-radius: 5px; text-align: left; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.ov-event-dot { position: relative; width: 9px; height: 9px; margin: 4px 2px 0; border-radius: 100%; background: #8daef7; outline: 3px solid white; }
.ov-activity-list li:first-child .ov-event-dot { background: var(--ov-blue); }
.ov-event-text { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.ov-event strong { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ov-ink); font-weight: 650; font-size: 14px; line-height: 1.4; }
.ov-event-action { color: #44536b; font-size: 14px; line-height: 1.45; }
.ov-event time { color: var(--ov-muted); margin-top: 2px; font-size: 12px; line-height: 1.35; }
.ov-event-chevron { align-self: center; display: grid; color: #60708c; }
.ov-event-chevron svg { height: 12px; width: 12px; }
.ov-event:hover strong, .ov-event:hover .ov-event-chevron { color: #004bdc; }
.ov-empty { color: var(--ov-muted); font-size: 13px; padding: 20px 0 0; }

.ov-recent { padding: 0; overflow: hidden; }
.ov-recent > .ov-panel-head { padding: 20px 24px 18px; }
.ov-directory-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; color: #004dcc; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.ov-directory-link svg { width: 15px; height: 15px; }
.ov-directory-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ov-table { max-width: 100%; min-width: 0; }

@media (max-width: 1050px) {
  .ov-metric { padding: 17px; }
  .ov-panel:not(.ov-recent) { padding: 19px; }
  .ov-insights { grid-template-columns: minmax(0,1.5fr) minmax(207px,1fr); }
}
@media (max-width: 790px) {
  .ov-insights { grid-template-columns: minmax(0, 1fr); }
  .ov-activity-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 13px; }
  .ov-activity-list li:not(:last-child)::before { display: none; }
  .ov-event { grid-template-columns: 9px minmax(0,1fr); gap: 7px; }
  .ov-event-dot { width: 7px; height: 7px; margin: 5px 1px 0; }
  .ov-event-chevron { display: none; }
}
@media (max-width: 590px) {
  .ov-dashboard { gap: 14px; }
  .ov-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ov-metric--primary { grid-column: 1/-1; }
  .ov-metric { padding: 15px; }
  .ov-metric--primary { padding: 17px 20px; }
  .ov-dashboard .ov-value { margin-top: 10px; }
  .ov-metric-label { gap: 7px; }
  .ov-metric-label h2 { font-size: 12px; }
  .ov-icon { width: 25px; height: 25px; border-radius: 7px; }
  .ov-icon svg { width: 15px; height: 15px; }
  .ov-metric-note { font-size: 12px; }
  .ov-recent > .ov-panel-head, .ov-panel:not(.ov-recent) { padding: 17px; }
  .ov-panel-head h2 { font-size: 16px; }
  .ov-insights { gap: 14px; }
  .ov-activity-list { display: block; margin-top: 10px; }
  .ov-activity-list li:not(:last-child)::before { display: block; left: 4px; }
  .ov-event { grid-template-columns: 9px minmax(0,1fr) 12px; gap: 12px; }
  .ov-event-chevron { display: grid; }
}
@media (max-width: 380px) {
  .ov-chart-panel .ov-panel-head { flex-wrap: wrap; align-items: start; }
  .ov-panel-head h2 { font-size: 15px; }
  .ov-metric-label { flex-wrap: wrap; }
}
