.heading-actions,
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
}
.toolbar-group .button {
  font-size: 0.875rem;
}
.toolbar-group .selected {
  background: #edf2ff;
  color: #254fd1;
  border-color: #b8c8f6;
}
.icon-button {
  min-width: 44px;
  padding: 8px;
}
.period-label {
  font-size: 0.875rem;
  font-weight: 650;
  padding: 0 6px;
  text-align: center;
}
.relative-week-label {
  display: block;
  margin-bottom: 3px;
  color: #254fd1;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.2;
}
.week-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 2px;
  font-size: 0.875rem;
}
.week-metrics strong {
  color: #18283b;
  font-weight: 750;
}
.week-metrics > .muted {
  margin-left: auto;
  font-size: 0.8rem;
}
.week-table {
  min-width: 1160px;
  table-layout: fixed;
}
.week-table th,
.week-table td {
  border-right: 1px solid #e7ebf2;
  padding: 10px;
  vertical-align: top;
}
.week-table thead th {
  height: 87px;
  font-size: 0.8rem;
}
.employee-column {
  width: 190px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.week-table thead .employee-column {
  background: #f8faff;
  vertical-align: middle;
}
.total-column {
  width: 76px;
  background: #f8faff;
  text-align: right;
}
.week-table td.total-column {
  vertical-align: middle;
}
.employee-name {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  overflow-wrap: anywhere;
}
.employee-name small {
  display: block;
  font-size: 0.75rem;
  color: #607087;
  font-weight: 400;
  margin-top: 4px;
}
.avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}
.tone-0 { --tone: #1764D9; --tint: #ccddf7; }
.tone-1 { --tone: #F07800; --tint: #fce1c7; }
.tone-2 { --tone: #228B22; --tint: #cee5ce; }
.tone-3 { --tone: #8A2BE2; --tint: #e5d0f9; }
.tone-4 { --tone: #D62828; --tint: #f6d0d0; }
.tone-5 { --tone: #00A6B2; --tint: #c7ebee; }
.tone-6 { --tone: #D9AD00; --tint: #f7edc7; }
.tone-7 { --tone: #F28CB8; --tint: #fce6ef; }
.tone-8 { --tone: #172554; --tint: #cccfd9; }
.tone-9 { --tone: #87502E; --tint: #e5d8d1; }
.tone-10 { --tone: #A3BE32; --tint: #ebf1d2; }
.tone-11 { --tone: #444444; --tint: #d6d6d6; }
.avatar {
  background: var(--tint);
  color: var(--tone);
}
.shift-card {
  display: block;
  margin-bottom: 6px;
  padding: 9px 8px;
  background: var(--tint);
  color: #233047;
  border-left: 3px solid var(--tone);
  border-radius: 5px;
  text-decoration: none;
  transition: filter 0.1s;
}
.shift-card:hover {
  filter: brightness(0.96);
}
.shift-card strong {
  display: block;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shift-card span {
  display: block;
  font-size: 0.8rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.shift-card small {
  font-size: 0.75rem;
  color: #52617a;
}
.add-cell {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px dashed transparent;
  border-radius: 5px;
  color: #7b8ba4;
  text-decoration: none;
  font-size: 1.1rem;
}
.add-cell:hover,
.add-cell:focus {
  background: #edf2ff;
  border-color: #b8c8f6;
  color: #254fd1;
}
.day-number {
  font-size: 1.25rem;
  display: inline-grid;
  place-items: center;
  margin-top: 5px;
  width: 30px;
  height: 30px;
  margin-left: -5px;
  color: #18283b;
}
.week-table thead th > span:first-child {
  display: block;
}
.today-number {
  background: #254fd1;
  color: white;
  border-radius: 50%;
}
.today-label {
  font-size: 0.75rem;
  color: #254fd1;
  margin-left: 5px;
}
.closed-label {
  display: block;
  margin-top: 3px;
  color: #a12720;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}
.week-table .closed-day {
  background: #fff5f4;
}
.week-table thead .closed-day {
  box-shadow: inset 0 3px 0 #d94841;
}
.week-table .focused-day {
  background: #f5f8ff;
}
.hours-section {
  margin-top: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.hours-table th:first-child {
  width: 30%;
}
.hours-table td {
  font-variant-numeric: tabular-nums;
}
.hours-table td:last-child {
  font-weight: 750;
  background: #f8faff;
}
.delete-form {
  margin-top: 24px;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}
.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
}
.danger {
  color: #a02825;
  border-color: #e4b9b9;
  background: #fff8f7;
}
@media (max-width: 900px) {
  .schedule-toolbar {
    flex-wrap: wrap;
  }
  .week-metrics {
    gap: 10px 20px;
  }
  .week-metrics > .muted {
    margin: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .period-label {
    font-size: 0.8rem;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
  }
  .section-heading p {
    margin: 0;
  }
  .hours-table {
    min-width: 580px;
  }
  .delete-form {
    align-items: flex-start;
    flex-direction: column;
  }
}
