/* Cuadrante semanal de siete días. */
#content .wbar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 5px;
  min-width: 0;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
#content .wbar-days > .wbar-day {
  min-width: 0;
  scroll-snap-align: start;
}
#content .wbar-day-header {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  align-items: start;
  min-height: 72px;
  gap: 4px;
  padding: 7px 5px;
}
#content .wbar-day-header > div,
#content .wbar-day-header > div > b,
#content .wbar-day-header > div > small {
  min-width: 0;
  max-width: 100%;
}
#content .wbar-day-header b {
  font-size: 11px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#content .wbar-day-header small {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
#content .wbar-openlabel {
  font-size: 9px;
  line-height: 1.1;
  max-width: 100%;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#content .wbar-headers {
  padding-left: 30px;
  min-height: 86px;
}
#content .wbar-chart {
  grid-template-columns: 30px minmax(0, 1fr);
}
#content .wbar-axis-title {
  left: 2px;
  top: 36px;
  font-size: 8px;
}
#content .wbar-hour {
  right: 2px;
  font-size: 8px;
  white-space: nowrap;
  overflow: visible;
}
#content .wbar-header-person {
  box-sizing: border-box;
  min-width: 0;
  height: 86px;
  min-height: 86px;
  padding: 5px 0 3px;
  justify-content: flex-start;
  gap: 4px;
  font-size: 10px;
  line-height: 1;
}
#content .wbar-header-person i {
  width: 9px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 3px;
}
#content .wbar-person-vertical {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 69px;
  max-width: 100%;
  font-size: 10px;
  font-weight: 780;
}
#content .wbar-end {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 6px 5px;
  font-size: 9px;
}
#content .wbar-end b {font-size: 9px}
#content .wbar-end > span {overflow-wrap: anywhere}
#content .wbar-day-unassigned .wbar-empty-state {
  min-height: 112px;
  padding: 10px 6px;
  gap: 5px;
}
#content .wbar-day-unassigned .wbar-empty-state strong {font-size: 11px}
#content .wbar-day-unassigned .wbar-empty-state small {font-size: 9px}
@media (max-width: 800px) {
  #content .wbar-days {
    grid-template-columns: repeat(7, minmax(164px, 1fr));
    gap: 6px;
  }
  #content .wbar-day-header {min-height: 76px}
  #content .wbar-openlabel {font-size: 10px}
  #content .wbar-header-person {height: 94px;min-height: 94px}
  #content .wbar-headers {min-height: 94px;padding-left: 32px}
  #content .wbar-chart {grid-template-columns: 32px minmax(0, 1fr)}
  #content .wbar-person-vertical {max-height: 77px}
}
@media print {
  #content .wbar-days {
    overflow: visible;
    gap: 2px;
    grid-template-columns: repeat(7,minmax(0,1fr));
  }
  #content .wbar-day {break-inside: avoid}
}


/* Week-wide common hourly scale: empty days retain the same chart height
   and gridline coordinates, with a centered state instead of collapsing. */
/* Fixed chart-header height avoids one-pixel drift on empty Sundays. */
#content .wbar-headers { height:87px; min-height:87px; }
@media (max-width:800px) {
  #content .wbar-headers { height:95px; min-height:95px; }
}
#content .wbar-day-unassigned .wbar-lanes > .wbar-empty-state {
  height:100%;
  min-height:0;
  align-self:stretch;
  justify-self:stretch;
  padding:12px 7px;
  background:transparent;
}
