/* Настольный интерфейс: отдельный файл для независимой работы над мобильной CRM. */
.slot-icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; }

@media (min-width: 768px) {
  .crm-header { box-shadow: none; }
  .crm-header .header-brand > div:first-child { background: #087f8c; box-shadow: none; }
  #nav-tabs .tab-btn { font-size: 13px; padding: 10px 14px; }
  #nav-tabs .tab-btn.active { background: #e7f3f4; color: #12394a; }
  #tab-daily .day-journal { box-shadow: none; border-color: #dde7eb; }
  #tab-daily .day-toolbar { background: #fff; padding: 18px 20px 14px; flex-shrink: 0; }
  #selected-date-title { font-size: 22px; color: #12394a; letter-spacing: -.4px; }
  .day-date-navigation p { color: #64748b; font-size: 12px; margin-top: 4px; }
  #tab-daily .day-metrics { gap: 8px 16px; border-top: 0; padding-top: 2px; }
  .day-metrics > span:not(:first-child) { background: transparent; border: 0; padding: 0; color: #526573; }
  .day-metrics strong { font-size: 14px; }
  .day-settings-content > div { box-shadow: none; border-color: #dde7eb; }
  #big-pool-column, #small-pool-column { background: #fff; padding: 0; border: 0; min-width: 0; }
  .pool-heading { background: #fff; padding: 12px 4px; margin-bottom: 12px; gap: 8px; }
  .pool-heading > div { min-width: 0; }
  .pool-heading > div > span { display: none; }
  .pool-heading h3 { font-size: 16px; color: #12394a; }
  .pool-heading p { font-size: 12px; color: #64748b; }
  #big-pool-occupancy, #small-pool-occupancy { flex-shrink: 0; font-size: 12px; padding: 4px 8px; }
  #big-pool-slots-container > * + *, #small-pool-slots-container > * + * { margin-top: 5px; }
  #tab-daily .yc-card { border-radius: 8px; padding: 12px; box-shadow: none; background: #fff; }
  #tab-daily .yc-card:hover { transform: none; border-color: #aac2cb; background: #f8fbfc; }
  #tab-daily .yc-status-empty { min-height: 32px; padding: 3px 10px; border: 0; border-left: 3px solid #e6edf1; background: #f6f8fa; border-radius: 4px; }
  #tab-daily .yc-status-empty:hover { border-left-color: #087f8c; background: #edf6f7; }
  .yc-status-empty > div > span:first-child { font-size: 12px; color: #526573; }
  .yc-status-empty > div > span:last-child { font-size: 12px; color: #758692; }
  .yc-status-empty > button { padding: 3px 8px; font-size: 12px; }
  #tab-daily .slot-content { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
  #tab-daily .slot-details { min-width: 0; overflow: visible; align-items: flex-start; }
  .slot-details > span:first-child { font-size: 13px; padding-top: 2px; flex-shrink: 0; }
  #tab-daily .slot-person { min-width: 0; flex: 1; overflow: visible; white-space: normal; }
  .slot-name-line { flex-wrap: wrap; gap: 3px 6px; }
  #tab-daily .slot-child-name { font-size: 14px; line-height: 1.45; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .slot-name-line > span:last-child { font-size: 12px; color: #64748b; margin-left: 0; }
  #tab-daily .slot-badges { flex-wrap: wrap; gap: 5px; margin-top: 5px; }
  .slot-badges > span { margin-left: 0 !important; font-size: 11px; line-height: 1.5; padding: 2px 6px; }
  #tab-daily .slot-trainer { max-width: none; background: #f1f5f9 !important; color: #526573; white-space: normal; border-left: 3px solid var(--trainer-color, #087f8c); }
  .slot-actions { align-self: flex-end; margin-left: 0; }
  .slot-actions > button { min-height: 30px; border-radius: 6px; }
  .slot-actions .slot-icon-btn { color: #64748b; }
  .slot-actions > span { font-size: 12px; }
  #tab-daily .shift-divider { margin-block: 14px 8px; background: transparent; box-shadow: none; color: #64748b; text-align: left; border-bottom: 1px solid #e2e8f0; padding: 0 0 6px 4px; font-size: 11px; }
}

@media (min-width: 1024px) {
  #tab-daily { height: calc(100dvh - var(--crm-header-height, 112px) - 48px); min-height: 440px; flex: none; align-items: stretch; gap: 20px; }
  #day-settings { width: 264px; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
  #day-settings .day-settings-content { gap: 16px; }
  #day-settings .day-settings-content > div { padding: 14px 12px; }
  #day-settings h3 { font-size: 12px; }
  #day-settings button[onclick="autoFillTodayShifts()"] { font-size: 10px; padding-inline: 6px; white-space: nowrap; }
  #day-settings .cal-day { aspect-ratio: auto; height: 30px; }
  #day-settings .day-settings-content > div:first-child > div:first-child { flex-wrap: wrap; gap: 10px; }
  #day-settings .day-settings-content > div:first-child > div:first-child > div { margin-left: auto; }
  #tab-daily .day-journal { min-height: 0; }
  #tab-daily .journal-scroll { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: 0 18px 18px; }
  #tab-daily .journal-scroll > .grid { align-items: start; gap: 24px; }
  #tab-daily .pool-heading { position: sticky; top: 0; z-index: 25; min-height: 68px; }
}
