/* Ask David sections (ATLAS-3503): styles that belong to one section, not to the shared pieces
 * in david-workspace.css. */

/* The controls that close a section ("Open the full ..."). */
.dw-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* --- Marketing ---------------------------------------------------------------------------- */
/* The week: seven days across at any width, so the strip reads as one week and never wraps. */
.dw-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dw-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 2px;
  border: 1px solid #1f2a3d;
  border-radius: 12px;
  background: #121a28;
  text-align: center;
}
/* Today carries a bar as well as the accent, so it is not marked by colour alone. */
.dw-week-day.is-today {
  border-color: var(--dw-cyan);
  background: #31d7ff14;
  box-shadow: inset 0 3px 0 var(--dw-cyan);
}
.dw-week-label {
  color: #93a1b5;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dw-week-date {
  color: #f4f7fb;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.dw-week-posts {
  color: #c9d3e2;
  font-size: 11.5px;
  line-height: 1.25;
}
/* The times line up down the list. */
.dw-posts .dw-row-lead {
  min-width: 84px;
}

/* --- Costs -------------------------------------------------------------------------------- */
.dw-month-pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: #93a1b5;
  font-size: 12px;
}
.dw-month {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #2a3650;
  border-radius: 8px;
  background: #0d1420;
  color: #e6ecf5;
  color-scheme: dark;
}
/* In "All" the section's heading already names it, so the card does not say it again. */
.dw[data-mode='all'] .dw-widget[data-widget='widget-costs'] > header > h2 {
  display: none;
}
/* The agency's month, in the card's heading: as wide as the month's name and its calendar
 * control ask for at the size the text is drawn. A fixed width cut into "November 2026" on a
 * phone, where the text is larger. */
.dw .client-cost-header input[type='month'] {
  max-width: none;
}

/* --- Money -------------------------------------------------------------------------------- */
/* A titled part around a panel the page already had. */
.dw-part > h3 {
  margin: 0 0 12px;
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 650;
}
.dw-part .business-dashboard {
  margin-top: 0;
}
.dw-part .business-kpi {
  padding: 12px;
  border: 1px solid #1f2a3d;
  border-radius: 10px;
  background: #0d1420;
}
.dw-money-spending > p {
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .dw-week {
    gap: 4px;
  }
  .dw-week-day {
    padding: 8px 1px;
    border-radius: 10px;
  }
  .dw-week-date {
    font-size: 16px;
  }
  .dw-week-posts {
    font-size: 10.5px;
  }
}

/* --- Calls, Calendar, Reviews, Prospects, Jobs and Clients (ATLAS-3504) -------------------- */

/* What a data section adds under a list: a call recording, or one control. */
.dw-list-foot,
.dw-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 11px 14px;
}
.dw-player {
  border-top: 1px solid var(--line);
}
.dw-player-label {
  color: var(--muted);
  font-size: 12px;
}
.dw-player audio {
  flex: 1 1 240px;
  min-width: 0;
  height: 44px;
}
/* A clock time or a weekday and a time leads these rows: one width, so the titles line up. */
[data-section='calls'] .dw-row-lead {
  min-width: 68px;
}
[data-section='calendar'] .dw-row-lead {
  min-width: 92px;
}
[data-section='jobs'] .dw-row-lead {
  min-width: 60px;
}
/* A client's own picture fills the row's round slot, as it does in the business switcher. */
.dw-row img.dw-row-avatar.business-icon {
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
/* A rating reads as one: gold stars, as everywhere else a review is shown. */
[data-section='reviews'] .dw-row-lead {
  min-width: 76px;
  color: var(--dw-gold);
  letter-spacing: 1px;
}
