.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 15px;
}

.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 27px;
}

.stat {
  padding: 21px 22px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--calendar-today-head);
  color: var(--blue);
}

.stat-value {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 13px 0 10px;
}

.stat-value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.stat-note {
  font-size: 10px;
  color: var(--muted);
}

.stat-note span {
  color: var(--success);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
}

.section-head {
  padding: 23px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.section-head .text-link {
  font-size: 11px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 500;
  padding: 12px 24px;
}

td {
  font-size: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.shift-title {
  font-size: 12px;
  font-weight: 550;
}

.note-list {
  padding: 0 23px 10px;
}

.note-item {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.note-item:last-child {
  border: 0;
}

.note-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--calendar-today-head);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.note-item h3 {
  font-size: 11px;
  font-weight: 550;
  margin: 1px 0 6px;
}

.note-item p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.quick-actions {
  padding: 0 20px 20px;
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 12px;
  text-align: left;
  font-size: 12px;
}

.quick-action > span:nth-child(2) {
  flex: 1;
}

.quick-action .icon {
  color: var(--text-soft);
}

.shift-employees {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.shift-employee-avatar {
  position: relative;
  width: 35px;
  height: 35px;
  margin-left: -9px;
  border: 2px solid var(--surface);
  box-sizing: border-box;
}

.shift-employee-avatar:first-child {
  margin-left: 0;
}

.shift-employee-avatar:hover {
  z-index: 2;
}

/* Home: today */

.home-today-list {
  display: grid;
  gap: 8px;
}

.home-today-shift {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.home-today-shift:hover {
  background: var(--surface-hover);
  border-color: var(--field-border);
}

.home-today-time {
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.home-today-time strong {
  font-size: 14px;
}

.home-today-time span,
.home-today-info span {
  color: var(--muted);
  font-size: 12px;
}

.home-today-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-today-info strong,
.home-today-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .home-today-shift {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .home-today-shift > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Home: upcoming shifts */

.home-upcoming-list {
  display: grid;
  gap: 8px;
}

.home-upcoming-shift {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.home-upcoming-shift:hover {
  background: var(--surface-hover);
  border-color: var(--field-border);
}

.home-upcoming-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 48px;
  border-radius: 10px;
  background: var(--surface-hover);
  font-variant-numeric: tabular-nums;
}

.home-upcoming-date strong {
  font-size: 17px;
  line-height: 1;
}

.home-upcoming-date span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.home-upcoming-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-upcoming-info strong,
.home-upcoming-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-upcoming-info span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .home-upcoming-shift {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .home-upcoming-shift > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Home: quick actions */

.quick-action > span {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.quick-action > span strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.quick-action > span small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}