/* Ventas particulares, seguimiento y cierre guiado. */
.daily-focus-card { grid-column: 1 / -1; display: grid; gap: 9px; padding: 15px; }
.daily-focus-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.daily-focus-head h3,
.daily-focus-head .eyebrow { margin: 0; }
.weekly-sales-goal { display: grid; min-width: 110px; text-align: right; }
.weekly-sales-goal strong { color: var(--brand-dark); font-size: 22px; line-height: 1; }
.weekly-sales-goal span { color: var(--muted); font-size: 10px; }
.weekly-sales-track { height: 7px; overflow: hidden; border-radius: 99px; background: #ddd9d0; }
.weekly-sales-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #76a16b); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.daily-action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.daily-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 11px;
  border-color: rgba(39, 125, 128, .16);
  background: rgba(239, 247, 244, .93);
  text-align: left;
}
.daily-action:hover { border-color: rgba(39, 125, 128, .4); background: #f5fbf8; }
.daily-action > span:nth-child(2) { display: grid; min-width: 0; }
.daily-action strong,
.daily-action small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-action small { color: var(--muted); font-size: 10px; }
.daily-action b { color: var(--brand-dark); font-size: 10px; white-space: nowrap; }
.daily-action-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: white; font-size: 16px; }
.daily-empty { display: grid; grid-column: 1 / -1; gap: 2px; padding: 12px; border-radius: 10px; background: #edf4e8; }
.daily-empty span { color: var(--muted); font-size: 11px; }

.customer-followup-card,
.sales-performance-card {
  margin-bottom: 12px;
  padding: 0;
  overflow: clip;
  border-top: 3px solid rgba(183, 102, 39, .55);
  background: rgba(255, 250, 240, .97);
}

.customer-followup-card > summary,
.sales-performance-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.customer-followup-card > summary::-webkit-details-marker,
.sales-performance-card > summary::-webkit-details-marker { display: none; }

.customer-followup-card > summary::after,
.sales-performance-card > summary::after {
  content: "⌄";
  color: var(--brand-dark);
  font-size: 22px;
  transition: transform .2s ease;
}

.customer-followup-card[open] > summary::after,
.sales-performance-card[open] > summary::after { transform: rotate(180deg); }

.customer-followup-card h3,
.customer-followup-card .eyebrow,
.sales-performance-card h3,
.sales-performance-card .eyebrow { margin: 0; }

.customer-followup-card h3,
.sales-performance-card h3 { font-size: 19px; }

.customer-followup-card summary span,
.sales-performance-card summary span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.customer-followup-list,
.sales-suggestion-list,
.sales-performance-list {
  display: grid;
  gap: 6px;
}

.customer-followup-list { padding: 0 12px 12px; }

.customer-followup-row {
  display: grid;
  grid-template-columns: minmax(235px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(61, 54, 44, .1);
  border-left: 4px solid #9bb58d;
  border-radius: 4px 13px 4px 13px;
  background: rgba(255, 253, 248, .92);
}

.customer-followup-row.soon { border-left-color: #d2a64d; }
.customer-followup-row.due { border-left-color: var(--accent); background: #fff8e9; }
.customer-followup-row.scheduled { border-left-color: var(--brand); background: #eff6f4; }

.customer-followup-person { display: grid; min-width: 0; gap: 1px; }
.customer-followup-person span,
.customer-followup-person small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-followup-metrics,
.customer-followup-actions,
.customer-followup-control,
.sales-suggestion-actions { display: flex; align-items: center; gap: 6px; }

.customer-followup-metrics > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.customer-followup-actions button,
.sales-suggestion-actions button { min-height: 32px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }

.customer-followup-control {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 5px;
  border-top: 1px dashed rgba(61, 54, 44, .12);
}

.customer-followup-control select,
.customer-followup-control input { min-height: 31px; padding: 5px 7px; font-size: 11px; }
.customer-followup-control label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }

.sales-suggestions-card { margin-bottom: 12px; border-left: 4px solid var(--brand); }
.sales-suggestion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 4px 12px 4px 12px;
  background: #eef6f3;
}
.sales-suggestion-row > div:first-child { display: grid; gap: 1px; }
.sales-suggestion-row span,
.sales-suggestion-row small { color: var(--muted); font-size: 11px; }

.sales-performance-card { border-top-color: rgba(25, 125, 130, .48); }
.sales-performance-head,
.sales-performance-row,
.sales-performance-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(86px, .7fr));
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
}
.sales-performance-head { color: var(--muted); background: #eeebe4; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.sales-performance-list { padding: 6px 0 10px; }
.sales-performance-row { border-bottom: 1px solid rgba(61, 54, 44, .08); font-size: 11px; }
.sales-performance-row small { color: var(--muted); }

.cash-reconciliation-guide { display: grid; gap: 7px; }
.cash-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.cash-guide-steps span { display: flex; align-items: center; gap: 5px; padding: 7px; border-radius: 8px; background: #eeebe4; color: var(--muted); font-size: 10px; }
.cash-guide-steps b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #d7d2c8; color: #514a40; }
.cash-guide-steps .done { background: #e7f1ed; color: var(--brand-dark); }
.cash-guide-steps .done b { background: var(--brand); color: white; }
.cash-guide-steps .active { box-shadow: inset 0 0 0 1px rgba(183, 102, 39, .35); }
.cash-guide-message { display: grid; gap: 1px; padding: 9px 11px; border-left: 4px solid var(--brand); background: #eef6f3; }
.cash-guide-message.explain { border-left-color: var(--accent); background: #fff4df; }
.cash-guide-message.difference { border-left-color: #d2a64d; background: #fff8e9; }
.cash-guide-message.exact { border-left-color: var(--green); background: #edf4e8; }
.cash-guide-message span { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .daily-action-list { grid-template-columns: 1fr; }
  .customer-followup-row { grid-template-columns: 1fr auto; }
  .customer-followup-person { grid-column: 1 / -1; }
  .sales-performance-head { display: none; }
  .sales-performance-row { grid-template-columns: 1fr 1fr; }
  .sales-performance-row strong { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .daily-focus-head { align-items: flex-start; }
  .daily-action { grid-template-columns: auto minmax(0, 1fr); }
  .daily-action b { grid-column: 2; }
  .customer-followup-row { grid-template-columns: 1fr; }
  .customer-followup-actions,
  .sales-suggestion-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .customer-followup-control { justify-content: stretch; flex-wrap: wrap; }
  .sales-suggestion-row { align-items: stretch; flex-direction: column; }
  .cash-guide-steps { grid-template-columns: 1fr 1fr; }
}
