.schedule-body { background: #fff; }
.status-banner {
  margin: 0 20px 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-banner.published {
  background: #e8f7ee;
  color: #1e7a3a;
  border: 1px solid #cfe9d8;
}
.status-banner.unpublished {
  background: #fff5e0;
  color: #a05c00;
  border: 1px solid #f0dcb0;
}
.status-banner.empty {
  background: #f4f6f8;
  color: #666;
  text-align: center;
  padding: 28px;
  border: 1px dashed #cfd4da;
  font-size: 14px;
}
.week-status-bar {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 14px 0 4px;
}
.week-status-bar.pub { background: #e8f7ee; color: #1e7a3a; border: 1px solid #cfe9d8; }
.week-status-bar.unpub { background: #fffaf0; color: #a05c00; border: 1px solid #f0dcb0; }
.unpub-placeholder {
  background: #fafafa;
  border: 1px dashed #ddd;
  text-align: center;
  padding: 18px;
  color: #999;
  font-size: 13px;
  margin-bottom: 14px;
}
@media print {
  .week-status-bar { display: none; }
  .unpub-placeholder { display: none; }
}
#schedule-tables { padding: 0 20px 30px; }
.week-table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 14px; table-layout: fixed;
}
.week-table th, .week-table td {
  border: 1px solid #d8dbe0; padding: 6px 4px;
  text-align: center; vertical-align: middle;
  font-size: 13px; height: 34px;
}
.week-table th { font-weight: 600; }
.col-no { width: 36px; }
.col-name { width: 80px; }
.dow-mon, .dow-wed, .dow-fri, .dow-sun { background: #fff200; }
.dow-sat { background: #cfe2f3; }
.date-sat { color: #1f4e78; font-weight: 700; }
.date-sun { color: #c00; font-weight: 700; }
.name-cell { text-align: left; padding-left: 10px; font-weight: 500; }
.name-cell.me { background: #fff7e0; font-weight: 700; }
.shift-cell-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 100%; min-height: 28px;
  min-width: 0;
}
.shift-time {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; padding: 4px 2px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}
.shift-time:first-child { border-right: 1px solid #d8dbe0; }
.shift-time.last { color: #c00; }
.no-day { background: #f7f7f7; }
.print-only { display: none; }

/* Mobile: stack start/end vertically, tighten columns so cells don't shift/overflow.
   Stronger borders to visually group start/end as one shift. */
@media (max-width: 720px) {
  #schedule-tables { padding: 0 4px 24px; }
  .week-table { border: 1.5px solid #8a929c; }
  .week-table th, .week-table td {
    font-size: 11px; padding: 3px 1px; height: auto;
    border: 1.5px solid #8a929c;
  }
  .col-no { width: 22px; }
  .col-name { width: 54px; }
  .name-cell { padding-left: 4px; font-size: 11px; }
  .shift-cell-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 36px;
  }
  .shift-time {
    font-size: 10.5px; padding: 2px 1px;
  }
  .shift-time:first-child {
    border-right: none;
    border-bottom: 1px dashed #b0b6bd;
  }
  .no-day { background: #f3f3f5 !important; }
  .status-banner { margin: 0 8px 10px; padding: 8px 10px; font-size: 12px; }
}

@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print { display: none !important; }
  .print-only { display: block; }
  #schedule-tables { padding: 0; }
  .week-table { page-break-inside: avoid; }
  .week-table th, .week-table td {
    font-size: 11px; padding: 3px 2px; height: auto;
  }
  .print-title-only {
    text-align: center; margin: 0 0 14px;
  }
  .print-title-only h1 {
    margin: 8px 0; font-size: 16px; font-weight: 600;
  }
  @page { size: A4 landscape; margin: 10mm; }
}
