.timesheet-range-label {
  color: #64748b;
  font-size: 13px;
  margin-top: -6px;
}

.timesheet-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.timesheet-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.timesheet-head-copy h2 {
  margin: 0;
}

.timesheet-head-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.timesheet-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.timesheet-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: -2px;
  margin-bottom: 14px;
}

.timesheet-month-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
}

.timesheet-month-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.timesheet-month-picker--single {
  min-height: 42px;
  padding: 10px 14px;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.timesheet-month-picker-arrow {
  color: #64748b;
  font-size: 12px;
}

.timesheet-staff-list,
.timesheet-days-list {
  display: grid;
  gap: 12px;
}

.timesheet-staff-card,
.timesheet-day-card {
  padding: 14px 15px;
  border-radius: 16px;
}

.timesheet-staff-main,
.timesheet-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timesheet-staff-main {
  align-items: stretch;
}

.timesheet-staff-main-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.timesheet-staff-heading {
  min-width: 0;
}

.timesheet-staff-card h3,
.timesheet-day-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.timesheet-staff-meta,
.timesheet-day-meta,
.timesheet-week-summary {
  color: #64748b;
  font-size: 13px;
}

.timesheet-staff-link {
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
}

.timesheet-staff-meta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.timesheet-rate-input {
  width: 110px;
  min-height: 36px;
}

.timesheet-staff-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.timesheet-staff-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
}

.timesheet-staff-hours {
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.timesheet-staff-total {
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  text-align: right;
}

.timesheet-staff-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.timesheet-edit-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timesheet-edit-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timesheet-delete-link {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.timesheet-delete-btn {
  align-self: flex-end;
}

.timesheet-week-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.timesheet-month-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.timesheet-total-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.timesheet-total-hours {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  color: #0f172a;
}

.timesheet-total-sum {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.timesheet-day-hours {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.quick-hours-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 720px) {
  .timesheet-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .timesheet-head-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .timesheet-head-actions::-webkit-scrollbar {
    display: none;
  }

  .timesheet-staff-main-top,
  .timesheet-staff-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .timesheet-staff-value {
    gap: 14px;
    width: auto;
  }

  .timesheet-staff-hours {
    font-size: 19px;
  }

  .timesheet-staff-total {
    font-size: 23px;
  }

  .timesheet-total-hours {
    font-size: 22px;
  }

  .timesheet-total-sum {
    font-size: 30px;
  }
}
