/* The same dashboard and calendar markup is used while data is loading. */
.appointment-calendar-caption{height:18px;line-height:18px;box-sizing:border-box}
.appointment-calendar-scroll{height:330px;max-height:330px;box-sizing:border-box}
.appointment-calendar.is-loading .appointment-calendar-empty{height:16px;width:65%;margin:12px auto 0;border-radius:4px;background:var(--ui-skeleton-fill,#dce8f6);color:transparent}
html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:stretch}
html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations>section{min-width:0;margin:0!important;height:auto!important;align-self:stretch}
html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations>[data-weekly-summary]{display:flex!important;flex-direction:column!important;gap:0!important;width:100%!important;max-width:none!important}
html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations [data-weekly-header]{width:100%!important;max-width:none!important;align-self:stretch!important;box-sizing:border-box}
html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations .dashboard-summary-body{width:100%!important;max-width:none!important;align-self:stretch!important;box-sizing:border-box;flex:1;min-height:220px;max-height:420px;overflow:auto}
html[data-crm-ui][data-workspace-quality] #root [data-schedule-block]{width:100%;box-sizing:border-box}
html[data-crm-ui][data-workspace-quality] #root [data-schedule-block] [data-schedule-metric]{position:relative;padding-right:52px!important}
html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-workspace-section-body="dashboard"] [data-schedule-block] [data-schedule-metric] img.dashboard-schedule-art{display:block!important;position:absolute!important;right:8px!important;left:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;margin:0!important;object-fit:contain;opacity:1}
@media(max-width:767px){.appointment-calendar-scroll{height:310px;max-height:310px}html[data-crm-ui][data-workspace-quality] #root .dashboard-skeleton-operations{grid-template-columns:minmax(0,1fr);gap:16px}}
/* Weekly AI reports can vary from a status line to a long report with metrics.
   Keep one reading viewport while its content changes, with native scrolling. */
html[data-crm-ui][data-workspace-quality] #root [data-weekly-insight] .commission-insight-body{height:160px;max-height:160px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box;align-content:start}
@media(max-width:767px){html[data-crm-ui][data-workspace-quality] #root [data-weekly-insight] .commission-insight-body{height:240px;max-height:240px}}
/* Full-width home workspace, including the inner desktop grid. */
@media(min-width:768px){
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-workspace-section-body="dashboard"]>[data-desktop-dashboard]{width:100%;max-width:none!important;margin-inline:0!important;box-sizing:border-box}
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] [data-weekly-header]{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap;gap:12px}
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] [data-weekly-header]>div:first-child{min-width:0;flex:1 1 210px}
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] [data-weekly-header]>div:last-child{display:flex;justify-content:flex-end;flex:0 0 auto;margin-inline-start:auto;max-width:100%}
}
/* Match the larger calendar viewport in loaded and skeleton states. */
html[data-crm-ui][data-workspace-quality] #root [data-workspace-section-body="dashboard"] [data-schedule-block] .appointment-calendar-scroll{height:520px;max-height:520px}
html[data-crm-ui][data-workspace-quality] #root [data-workspace-section-body="dashboard"] [data-schedule-block] .appointment-calendar-week{min-height:100%}
@media(max-width:767px){html[data-crm-ui][data-workspace-quality] #root [data-workspace-section-body="dashboard"] [data-schedule-block] .appointment-calendar-scroll{height:380px;max-height:380px}}

/* Let the summary well fill its card, including while the same layout is loading. */
html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] .dashboard-summary-body{
 display:flex;flex-direction:column
}
html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] .dashboard-summary-body>[data-weekly-empty]{
 flex:1 0 auto;align-items:center;justify-content:center;text-align:center
}
html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-weekly-summary] .dashboard-summary-body:has(>[data-weekly-empty]){
 scrollbar-gutter:auto
}
@media(min-width:768px){
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-desktop-dashboard] [data-weekly-summary] .dashboard-summary-body{
  flex:1 1 0px;min-height:220px;max-height:none
 }
 html[data-crm-ui][data-crm-home-rebuild][data-workspace-quality] #root [data-desktop-dashboard] [data-weekly-summary] .dashboard-summary-body>[data-weekly-empty]{
  min-height:0
 }
}
