.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.kpi strong {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
}
.kpi em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.kpi-icon {
  font-size: 22px;
  background: #eef5f5;
  border-radius: 9px;
  color: #438578;
  padding: 10px;
  line-height: 1;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px;
  flex-wrap: wrap;
}
.week-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.week-control b {
  font-size: 15px;
}
.week-control small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.segmented {
  background: #edf2f5;
  padding: 3px;
  border-radius: 7px;
  display: flex;
  gap: 2px;
}
.segmented button {
  padding: 7px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  border-radius: 5px;
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #102d3b15;
}
.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #b8dfd3;
  border-radius: 2px;
  margin-right: 5px;
}
.legend i.blue {
  background: #bdd2ed;
}
.legend i.orange {
  background: #f7deb0;
}
.board-scroll {
  overflow: auto;
}
.board {
  min-width: 880px;
}
.boardhead,
.resource-row {
  display: grid;
  grid-template-columns: 180px repeat(5, minmax(130px, 1fr));
}
.boardhead {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}
.boardhead > div {
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.boardhead strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}
.group-label {
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: var(--muted);
  background: #f4f7f9;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.resource-row {
  min-height: 92px;
}
.resource {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.resource strong {
  display: block;
  font-size: 13px;
}
.resource small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.resource .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
  background: #e8eff3;
  color: #557183;
}
.cell {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px;
  min-height: 92px;
  background: white;
  position: relative;
}
.cell.dropzone {
  background: #d6f1e7;
}
.booking {
  display: block;
  width: 100%;
  border: 0;
  border-left: 3px solid #0d8f72;
  background: #e4f3ec;
  border-radius: 5px;
  color: #27614d;
  text-align: left;
  padding: 8px 9px;
  margin-bottom: 4px;
  min-height: 70px;
  line-height: 1.3;
}
.booking b {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.booking span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.booking .time {
  font-size: 10px;
  margin: 0 0 4px;
  color: #4d7768;
}
.booking.blue {
  background: #e6effb;
  color: #3a5d89;
  border-left-color: #5e83bf;
}
.booking.orange {
  background: #fff1dc;
  color: #9a6b23;
  border-left-color: #d59d45;
}
.booking:hover {
  filter: brightness(0.97);
}
.free {
  font-size: 10px;
  color: #b1bfc7;
  display: block;
  margin: 26px 0;
  text-align: center;
}
.planning-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
