.month-overview {
  margin: 0 0 15px;
  padding: 17px 19px;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff 60%, #eef5ff);
  box-shadow: 0 3px 12px #16284408;
}
.month-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.month-title span:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.month-title h2 {
  font-size: 15px;
  margin: 0;
}
.month-title small {
  color: var(--muted);
}
.live-sync,
.socket-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #30715c;
  font-size: 10px;
  font-weight: 700;
}
.live-sync i,
.socket-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1bb57b;
  box-shadow: 0 0 0 4px #1bb57b18;
}
.month-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #dfe7f1;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  overflow: hidden;
}
.month-metrics p {
  margin: 0;
  padding: 13px 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.month-metrics small {
  color: var(--muted);
  font-size: 10px;
}
.month-metrics b {
  font-size: 19px;
  margin: 5px 0;
}
.month-metrics em {
  font-size: 10px;
  color: #8290a0;
  font-style: normal;
}
.month-metrics .rate {
  background: #edf8f4;
}
.month-metrics .rate b {
  color: var(--green);
}
.help {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e9eef5;
  color: #68778a;
  font-size: 9px;
}
.task-table {
  min-width: 1320px;
}
.reply-rate {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reply-rate b {
  font-size: 14px;
}
.reply-rate small {
  color: var(--muted);
  font-size: 9px;
}
.good-rate b {
  color: var(--green);
}
.realtime-bar {
  justify-content: initial;
}
.realtime-bar > span:first-child {
  flex: 1;
}
.realtime-bar .secondary {
  padding: 6px 10px;
  font-size: 10px;
}
.socket-live {
  white-space: nowrap;
}
.new-message {
  animation: newMessage 1.5s ease;
  background: #eef7ff !important;
}
@keyframes newMessage {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  30% {
    transform: none;
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 5px #246bfd18;
  }
}
.seat-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 20px 22px;
  border-radius: 12px;
  background: linear-gradient(110deg, #172a47, #24517a);
  color: #fff;
}
.seat-hero small {
  color: #8fb7de;
  font-size: 10px;
  font-weight: 700;
}
.seat-hero h2 {
  font-size: 20px;
  margin: 5px 0;
}
.seat-hero p {
  margin: 0;
  color: #b8c9da;
  font-size: 11px;
}
.seat-hero > div:last-child {
  display: flex;
  gap: 8px;
}
.seat-hero .secondary {
  background: #ffffff0d;
  border-color: #ffffff2e;
  color: #fff;
}
.seat-metrics {
  margin-bottom: 14px;
}
.seat-account {
  display: flex;
  align-items: center;
  gap: 9px;
}
.seat-account .avatar {
  flex: 0 0 auto;
}
.seat-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.seat-state:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa6b4;
}
.seat-state.online {
  color: var(--green);
}
.seat-state.online:before {
  background: var(--green);
}
.seat-state.disabled {
  color: var(--red);
}
.seat-state.disabled:before {
  background: var(--red);
}
.seat-actions {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}
.seat-actions button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #405067;
  font-size: 10px;
}
.seat-actions button:hover {
  border-color: #9fb3cc;
  background: #f7faff;
}
.seat-actions button.red {
  color: var(--red);
}
.allocation-card {
  margin-bottom: 13px;
  padding: 14px;
  border: 1px solid #d8e3f0;
  border-radius: 10px;
  background: #f8fbff;
}
.allocation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.allocation-head > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.allocation-head small,
.assignment-preview > small {
  color: var(--muted);
  font-size: 10px;
}
.allocation-modes {
  display: flex;
  padding: 3px;
  border-radius: 7px;
  background: #e8eef6;
}
.allocation-modes button {
  border: 0;
  border-radius: 5px;
  padding: 6px 10px;
  background: transparent;
  color: #66758a;
  font-size: 10px;
  font-weight: 700;
}
.allocation-modes button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 7px #20365319;
}
.allocation-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
}
.allocation-toolbar button {
  padding: 6px 9px;
  font-size: 10px;
}
.allocation-toolbar span {
  margin-left: auto;
  color: #48627e;
  font-size: 10px;
  font-weight: 700;
}
.allocation-seats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.allocation-seat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.allocation-seat:has(input:checked) {
  border-color: #7da5ff;
  background: #f2f6ff;
}
.allocation-seat:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.allocation-seat span {
  display: flex;
  flex-direction: column;
}
.allocation-seat small {
  color: var(--muted);
  font-size: 9px;
}
.allocation-seat input {
  accent-color: var(--blue);
}
.allocation-seat .quota {
  width: 58px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
}
.assignment-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.assignment-preview > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 7px;
}
.assignment-preview p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
}
.assignment-preview p b {
  font-size: 10px;
}
@media (max-width: 1100px) {
  .month-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .allocation-seats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .month-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .seat-hero {
    align-items: flex-start;
    gap: 15px;
  }
  .seat-hero > div:last-child {
    flex-direction: column;
  }
  .allocation-head {
    flex-direction: column;
  }
  .allocation-seats {
    grid-template-columns: 1fr 1fr;
  }
  .allocation-toolbar {
    flex-wrap: wrap;
  }
  .allocation-toolbar span {
    width: 100%;
    margin-left: 0;
  }
  .realtime-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .assignment-preview > div {
    grid-template-columns: 1fr;
  }
}
