.nav-list {
  gap: 4px;
  margin-top: 30px;
}

.nav-item {
  min-height: 42px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-icon.violet {
  background: #f0ebff;
  color: #7858c9;
}

.icon-button .notification-count {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid white;
  border-radius: 99px;
  background: #ef6354;
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.team-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.staff-panel,
.task-panel,
.timetable-panel {
  padding: 24px;
  scroll-margin-top: 24px;
}

.section-heading {
  align-items: flex-start;
}

.section-heading > div > p:last-child {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.staff-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(150deg, #ffffff, #f7fbff);
}

.staff-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-avatar {
  width: 40px;
  height: 40px;
  font-size: 11px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 99px;
  background: #f1f4f6;
  color: #728697;
  font-size: 8px;
  font-weight: 800;
}

.availability::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93a3af;
}

.availability.available {
  background: var(--mint);
  color: var(--green);
}

.availability.available::before {
  background: #1da27c;
}

.staff-card h3 {
  margin: 12px 0 2px;
  color: var(--navy);
  font-size: 13px;
}

.staff-card > p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.staff-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e8f0f5;
  font-size: 8px;
}

.staff-meta span {
  color: #7a91a3;
}

.staff-meta b {
  color: var(--blue);
  text-align: right;
}

.simulation-note {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid #cfe5f5;
  border-radius: 12px;
  background: #f0f8fe;
  color: var(--blue);
}

.simulation-note p {
  margin: 0;
  color: #647f95;
  font-size: 9px;
}

.simulation-note strong {
  color: var(--blue);
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.task-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.task-copy {
  min-width: 0;
}

.task-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.task-title-line h3 {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
}

.task-status {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 99px;
  background: #f2f4f6;
  color: #748898;
  font-size: 7px;
  font-weight: 800;
}

.task-copy > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.task-meta > span {
  padding: 4px 6px;
  border-radius: 7px;
  background: #f5f8fa;
  color: #71889a;
  font-size: 7px;
  font-weight: 700;
}

.notify-chip.app {
  background: #eaf4ff;
  color: #2570b9;
}

.notify-chip.whatsapp {
  background: #e9f8ef;
  color: #17825e;
}

.timetable-panel {
  margin-top: 18px;
}

.sheet-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 99px;
  background: #eaf7ee;
  color: #237c49;
  font-size: 9px;
  font-weight: 800;
}

.sheet-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ca55e;
}

.sheet-frame {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #cfd9d3;
  border-radius: 14px;
  background: white;
}

.sheet-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 13px;
  border-bottom: 1px solid #d6ded8;
  background: #f8fbf8;
}

.sheet-logo {
  display: grid;
  width: 32px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
  background: #23a566;
  color: white;
  font-size: 18px;
}

.sheet-toolbar strong,
.sheet-toolbar small {
  display: block;
}

.sheet-toolbar strong {
  color: #263b30;
  font-size: 11px;
}

.sheet-toolbar small {
  margin-top: 2px;
  color: #7e8e83;
  font-size: 8px;
}

.sheet-view {
  padding: 6px 9px;
  border: 1px solid #bdd1c3;
  border-radius: 7px;
  color: #477057;
  font-size: 8px;
  font-weight: 700;
}

.sheet-scroll {
  overflow-x: auto;
}

.sheet-scroll:focus-visible {
  outline: 3px solid rgba(35, 165, 102, 0.25);
  outline-offset: -3px;
}

.sheet-scroll table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sheet-scroll th,
.sheet-scroll td {
  height: 55px;
  padding: 7px 9px;
  border-right: 1px solid #dce3de;
  border-bottom: 1px solid #dce3de;
  background: white;
  color: #52645a;
  font-size: 8px;
  text-align: left;
  vertical-align: top;
}

.sheet-scroll thead th {
  height: 32px;
  background: #f2f5f3;
  color: #5f7166;
  font-weight: 800;
  text-align: center;
}

.sheet-scroll .row-number {
  width: 38px;
  background: #f2f5f3;
  color: #819087;
  text-align: center;
}

.sheet-scroll .time-cell {
  width: 78px;
  background: #f9fbfa;
  color: #3c5045;
}

.sheet-scroll td strong,
.sheet-scroll td small {
  display: block;
}

.sheet-scroll td strong {
  color: #2d4939;
  font-size: 9px;
}

.sheet-scroll td small {
  margin-top: 3px;
  color: #84958b;
  font-size: 7px;
}

.sheet-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 0 14px;
  background: #f5f8f6;
  color: #708078;
  font-size: 8px;
}

.sheet-tabs b {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #24a566;
  color: #267649;
}

.task-modal label {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: #587087;
  font-size: 11px;
  font-weight: 700;
}

.task-modal input,
.task-modal select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbfd;
  color: var(--ink);
}

.task-modal form,
.notification-modal-inner {
  padding: 28px;
}

.notify-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.notify-preview span {
  padding: 10px;
  border-radius: 10px;
  background: #eef6fd;
  color: #276ba8;
  font-size: 9px;
  font-weight: 800;
}

.notify-preview span:last-child {
  background: #eaf8f0;
  color: #197b5b;
}

.notification-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.notification-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.notification-channel {
  padding: 6px;
  border-radius: 8px;
  background: #eaf4ff;
  color: #2470b8;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.notification-channel.whatsapp {
  background: #e7f8ef;
  color: #197c5c;
}

.notification-row strong,
.notification-row small {
  display: block;
}

.notification-row strong {
  font-size: 9px;
}

.notification-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-task-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notify-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .staff-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .staff-panel,
  .task-panel,
  .timetable-panel {
    padding: 18px;
  }

  .section-heading {
    display: grid;
  }

  .section-heading .button,
  .sheet-status {
    width: fit-content;
  }
}
