.daily-agenda {
  margin-bottom: 16px;
}
.daily-agenda-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.daily-agenda-toolbar .desc {
  margin-bottom: 0;
}
.daily-date-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  gap: 6px;
  width: min(100%, 320px);
}
.daily-date-actions > * {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.daily-date-actions .btn,
.daily-date-actions .field {
  padding: 7px 9px;
}
.daily-date-actions input[type="date"] {
  text-align: start;
}
.daily-date-actions input[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  text-align: start;
}
.daily-professionals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.daily-professionals:empty {
  display: none;
}
.daily-professional {
  max-width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  overflow-wrap: anywhere;
}
.daily-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.daily-slot {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}
.daily-slot-time {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.daily-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  text-align: left;
  overflow-wrap: anywhere;
}
button.daily-slot-card {
  width: 100%;
}
.daily-slot-card.free {
  border-style: dashed;
  color: var(--green);
  background: #132219;
}
.daily-slot-card.free:hover {
  border-color: var(--green);
}
.daily-slot-card.blocked {
  color: var(--muted);
  background: var(--panel);
}
.daily-slot-card.pending {
  border-color: #8c6b31;
  background: #2a2113;
}
.daily-slot-card.confirmed {
  border-color: #315b42;
  background: #14251b;
}
.daily-slot-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.daily-slot-card .btn {
  min-height: 44px;
  padding: 7px 10px;
}
html[data-theme="light"] .daily-slot-card.free {
  background: #edf8f1;
}
html[data-theme="light"] .daily-slot-card.pending {
  background: #fff5df;
  border-color: #c8a05d;
}
html[data-theme="light"] .daily-slot-card.confirmed {
  background: #eaf6ee;
  border-color: #83af94;
}
html[data-theme="light"] .daily-slot-card.blocked {
  background: #f0ece5;
}
.filters.period-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.period-filters > .field,
.period-date-range .field {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.period-date-range {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
}
.period-date-range label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.period-date-range .field {
  font-size: 15px;
}
.period-filters [hidden],
#commissionSummary[hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  .daily-slot {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }
  .daily-slot-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 350px) {
  .daily-date-actions {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  #dailyAgendaToday {
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
  }
}
