/* Tela: resumo */

/* Período */
.res-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px; }
.res-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.res-range .ico { width: 15px; height: 15px; }

/* Números */
.res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.res-stat { gap: 4px; }
.res-cmp { font-size: 13px; color: var(--ink-3); }
.res-cmp--up { color: #15803D; font-weight: 500; }
.res-cmp--down { color: #B45309; font-weight: 500; }

.res-paybar {
  display: flex; gap: 2px; height: 8px; margin: 4px 0 2px;
  border-radius: 99px; overflow: hidden; background: #EDEEF2;
}
.res-paybar i { display: block; height: 100%; }
.res-pay--pix { background: var(--brand); }
.res-pay--card { background: #9A8FE6; }
.res-pay--cash { background: #CFC9F5; }
.res-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--ink-3); }
.res-legend li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.res-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.res-legend strong { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Blocos */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.res-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.res-card--gone { margin-top: 16px; }
.res-card .card-head { justify-content: flex-start; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.res-card-body { padding: 0 18px 18px; }
.res-empty { margin: 0; font-size: 14px; color: var(--ink-3); }

/* Serviços mais feitos */
.res-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.res-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; font-size: 14px; }
.res-bar-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-bar-nums { flex: none; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.res-bar-nums strong { color: var(--ink); font-weight: 600; }
.res-bar { display: block; height: 6px; border-radius: 99px; background: #F0F1F4; overflow: hidden; }
.res-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

/* Por profissional */
.res-pros { list-style: none; margin: 0; padding: 0; }
.res-pros li { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14px; }
.res-pros li + li { border-top: 1px solid var(--line); }
.res-pro-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.res-pro-name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-pro-n { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.res-pro-v { min-width: 76px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Dias mais movimentados */
.res-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 150px; }
.res-wcol { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.res-wnum { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.res-wbar { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; }
.res-wbar i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--brand); opacity: .55; }
.res-wcol.is-top .res-wbar i { opacity: 1; }
.res-wcol.is-top .res-wnum { color: var(--brand-strong); }
.res-wday { font-size: 12.5px; color: var(--ink-3); }

/* Clientes que sumiram */
.res-gone-list { list-style: none; margin: 0; padding: 0; }
.res-gone { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.res-gone + .res-gone { border-top: 1px solid var(--line); }
.res-gone-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.res-gone-info strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-gone-info span { font-size: 13px; color: var(--ink-3); }
.res-gone-btns { display: flex; gap: 8px; flex: none; }
.res-more {
  margin-top: 6px; height: 34px; padding: 0 2px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-strong);
}
.res-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.res-allgood { display: flex; align-items: flex-start; gap: 10px; }
.res-allgood > .ico {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%;
  background: #EAF6EE; color: #15803D;
}
.res-allgood p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Janela de compartilhar */
.res-share {
  margin: 0 0 12px; padding: 14px; border-radius: var(--radius);
  background: #F6F7F9; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--ink);
}

/* Tablet */
@media (max-width: 1100px) {
  .res-gone { flex-wrap: wrap; }
}

/* Celular */
@media (max-width: 820px) {
  .res-top { margin-bottom: 12px; }
  .res-top .seg { display: flex; width: 100%; }
  .res-top .seg button { flex: 1; padding: 0 8px; }

  .res-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .res-stat { padding: 12px; }
  .res-stat--money { grid-column: 1 / -1; order: -1; }
  .res-stat .stat-value { font-size: 21px; }
  .res-cmp { font-size: 12.5px; line-height: 1.35; }

  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .res-col { gap: 12px; }
  .res-card--gone { margin-top: 12px; }
  .res-card .card-head { padding: 14px 14px 10px; }
  .res-card-body { padding: 0 14px 14px; }
  .res-week { gap: 5px; height: 130px; }

  .res-gone { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }
  .res-gone-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .res-gone-btns .btn { padding: 0 8px; }

  .res-share-btn { height: 34px; padding: 0 12px; font-size: 13.5px; }
}
