.team-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.team-calendar-toolbar label,
.team-time-fields label {
  min-width: 0;
}
.team-calendar-toolbar input,
.team-day-form input,
.team-day-form select,
.team-day-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.team-calendar-toolbar input {
  margin: 0;
}
.team-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.team-calendar-actions > .secondary-btn {
  width: auto;
  margin: 0;
  padding: 10px 12px;
}
.team-view-switch {
  display: flex;
  background: #e8ede7;
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
}
.team-view-switch button {
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 9px 12px;
  color: #63746a;
  cursor: pointer;
  font-weight: 700;
}
.team-view-switch button.selected {
  background: white;
  color: #1f4b3f;
  box-shadow: 0 2px 7px #163b2710;
}
.team-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.team-weekday {
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: #718077;
  font-weight: 700;
}
.team-day-cell {
  min-width: 0;
  min-height: 116px;
  padding: 7px 5px;
  border: 1px solid #e0e7df;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  color: #25392e;
  overflow: hidden;
}
.team-day-cell.my-shift {
  background: #e0efdc;
  border-color: #9cc69a;
  box-shadow: inset 0 3px 0 #397a49;
}
.team-list-day.my-shift {
  background: #e0efdc;
  border-color: #9cc69a;
  border-left: 5px solid #397a49;
}
.team-day-cell.today,
.team-list-day.today {
  background: #e8f0ff;
  border: 2px solid #6689c6;
  box-shadow: inset 0 3px 0 #416cb3;
}
.team-list-day.today.my-shift {
  border-left: 5px solid #397a49;
}
.team-day-cell.today .team-day-number {
  align-self: flex-start;
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #416cb3;
  color: white;
  text-align: center;
  box-sizing: border-box;
}
.team-today-label {
  display: block;
  color: #274b81;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
}
.team-mine-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #326441;
  margin: 5px 0;
}
.team-day-cell:focus-visible {
  outline: 3px solid #b2d6c0;
  outline-offset: 2px;
}
.team-day-number {
  font-weight: 850;
  font-size: 14px;
}
.team-shift-chip {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 5px;
  background: #e8eee6;
  color: #36553d;
}
.team-shift-chip b {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-shift-chip small {
  font-size: 8px;
  white-space: nowrap;
}
.team-shift-chip.runner,
.team-role.runner {
  background: #f2e8d7;
  color: #82602a;
}
.team-shift-chip.absent {
  opacity: 0.5;
  text-decoration: line-through;
}
.team-no-shift {
  color: #bcc6bc;
  font-size: 12px;
}
.team-calendar-list {
  display: grid;
  gap: 9px;
}
.team-list-day {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e7df;
  border-radius: 14px;
  background: white;
  text-align: left;
  color: #25392e;
  cursor: pointer;
}
.team-list-day > strong {
  font-size: 12px;
}
.team-list-day > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.team-list-day span {
  display: block;
  min-width: 0;
}
.team-list-day b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.team-list-day small {
  display: block;
  color: #708073;
  font-size: 11px;
  margin-top: 4px;
}
.team-list-day i {
  font-style: normal;
  color: #708073;
}
.team-schedule-rules {
  padding: 18px;
  border: 1px dashed #d5dfd1;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #63746a;
  margin-top: 20px;
}
.team-demo-note {
  padding: 12px 15px;
  margin: 10px 0;
  background: #fff4dc;
  border: 1px solid #edd7a7;
  border-radius: 12px;
  color: #725623;
  font-size: 12px;
  line-height: 1.5;
}
.team-day-people,
.team-payroll-people {
  display: grid;
  gap: 16px;
}
.team-day-person {
  background: white;
  border: 1px solid #e0e7df;
  border-radius: 18px;
  padding: 18px;
}
.team-day-person > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-day-person h2 {
  font-size: 18px;
  margin: 0;
}
.team-day-person p {
  font-size: 13px;
  color: #63746a;
}
.team-role {
  font-size: 11px;
  background: #e8eee6;
  color: #36553d;
  padding: 5px 9px;
  border-radius: 7px;
  font-weight: 750;
}
.team-day-person .team-day-earned {
  padding-top: 13px;
  border-top: 1px solid #e0e7df;
  color: #1f4b3f;
  margin-bottom: 0;
}
.team-day-admin {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}
.team-day-admin button {
  margin: 0;
}
.team-day-form {
  margin-top: 24px;
}
.team-day-form h2 {
  font-size: 19px;
}
.team-day-form > label {
  display: block;
  font-size: 12px;
  color: #63746a;
  margin-top: 15px;
}
.team-plan-row,
.team-fact-row {
  min-width: 0;
  padding: 14px;
  margin: 15px 0;
  border: 1px solid #dce5d7;
  border-radius: 15px;
  background: #fbfcfa;
}
.team-plan-row legend,
.team-fact-row legend {
  font-size: 13px;
  font-weight: 750;
  color: #375d49;
  padding: 0 6px;
}
.team-plan-row > label,
.team-fact-row > label {
  display: block;
  font-size: 12px;
  color: #63746a;
  margin-top: 8px;
}
.team-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 5px;
}
.team-time-fields label {
  font-size: 11px;
  color: #63746a;
}
.team-time-fields .field {
  padding: 10px;
  margin-top: 5px;
}
.team-day-form input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: #1f4b3f;
  vertical-align: middle;
  margin-right: 5px;
}
.team-fact-row > small {
  color: #63746a;
  font-size: 11px;
}
.team-fact-row .team-absent-label {
  margin: 12px 0;
}
.team-payroll-summary {
  background: #1f4b3f;
  color: white;
  padding: 20px;
  border-radius: 18px;
  margin: 12px 0;
}
.team-payroll-summary > span {
  font-size: 12px;
  color: #cfdfd1;
}
.team-payroll-summary > strong {
  display: block;
  font-size: 29px;
  line-height: 1.3;
  margin: 8px 0 17px;
  overflow-wrap: anywhere;
}
.team-payroll-summary > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #ffffff22;
  padding-top: 13px;
}
.team-payroll-summary p {
  margin: 0;
}
.team-payroll-summary small {
  display: block;
  color: #cfdfd1;
  font-size: 11px;
  line-height: 1.5;
}
.team-payroll-summary b {
  display: block;
  font-size: 16px;
  margin: 5px 0 12px;
}
.team-payroll-summary .team-payroll-pending {
  padding-top: 12px;
  color: #dae5d9;
  font-size: 11px;
  line-height: 1.5;
  border-top: 1px solid #ffffff22;
  margin-top: 12px;
}
.team-total-payroll {
  padding: 17px;
  border-radius: 12px;
  background: #e8eee6;
  font-size: 14px;
  margin: 16px 0;
}
.team-total-payroll b {
  white-space: nowrap;
}
.team-payroll-people h2 {
  font-size: 18px;
  margin: 20px 0 8px;
}
.team-payroll-details > summary {
  cursor: pointer;
  padding: 13px 0;
  color: #1f4b3f;
  font-size: 13px;
  font-weight: 750;
}
.team-payroll-section {
  min-width: 0;
  margin: 8px 0 24px;
}
.team-payroll-section h3 {
  font-size: 15px;
  color: #1f4b3f;
  margin: 14px 0 10px;
}
.team-payroll-section h3 > span {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: #e8eee6;
  color: #63746a;
}
.team-payroll-day {
  padding: 17px;
  margin: 9px 0;
  border: 1px solid #e0e7df;
  border-radius: 16px;
  background: white;
}
.team-payroll-day.today {
  background: #e8f0ff;
  border-color: #6689c6;
}
.team-payroll-day > div > strong {
  display: block;
  font-size: 14px;
}
.team-payroll-day > div > small {
  display: block;
  color: #708073;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}
.team-payroll-state {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f5edda;
  color: #81652e;
  font-size: 10px;
  margin: 12px 0 4px;
}
.team-payroll-state.calculated {
  background: #e4efe2;
  color: #36603c;
}
.team-payroll-day dl {
  margin: 10px 0;
}
.team-payroll-day dl > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin: 9px 0;
  font-size: 12px;
}
.team-payroll-day dt {
  color: #63746a;
}
.team-payroll-day dd {
  text-align: right;
  margin: 0;
  font-weight: 700;
  flex-shrink: 0;
}
.team-payroll-day .team-payroll-total {
  border-top: 1px solid #e0e7df;
  padding-top: 12px;
  margin-top: 13px;
  font-size: 14px;
}
.team-payroll-total dt {
  color: #1f4b3f;
  font-weight: 750;
}
.team-payroll-correction,
.team-payroll-warning {
  font-size: 11px;
  padding: 10px;
  border-radius: 8px;
  background: #f2f5ef;
  color: #63746a;
  line-height: 1.5;
}
.team-payroll-warning {
  background: #fff0df;
  color: #865329;
}
.team-profile-payroll {
  margin-top: 24px;
}
.team-profile-payroll > .secondary-btn {
  margin-top: 10px;
}
.team-payroll-bonus-editor {
  margin: 18px 0 24px;
}
.team-payroll-bonus-editor h2 {
  margin: 0 0 5px;
  font-size: 18px;
}
.team-payroll-bonus-editor .form-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.team-payroll-bonus-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 750;
}
.team-payroll-bonus-editor .field {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}
.team-payroll-bonus-editor textarea {
  min-height: 76px;
  resize: vertical;
}
.team-payroll-bonus-editor .primary-btn {
  margin: 0;
}
.team-manual-bonuses {
  margin: 12px 0 18px;
}
.team-manual-bonuses h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f4b3f;
}
.team-manual-bonuses article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  margin: 7px 0;
  border: 1px solid #d6e1d4;
  border-radius: 12px;
  background: #f4f8f1;
}
.team-manual-bonuses article > div {
  min-width: 0;
}
.team-manual-bonuses strong {
  display: block;
  color: #28644a;
  font-size: 16px;
}
.team-manual-bonuses p {
  margin: 4px 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.team-manual-bonuses small {
  color: #65776a;
  font-size: 11px;
}
.team-manual-bonuses button {
  flex: 0 0 auto;
}
.team-payroll-summary > div p:last-child:nth-child(3) {
  grid-column: 1/-1;
}
@media (max-width: 420px) {
  .team-month-grid {
    gap: 3px;
  }
  .team-day-cell {
    padding: 6px 3px;
    min-height: 106px;
    border-radius: 9px;
  }
  .team-day-cell.today {
    padding: 6px 2px;
  }
  .team-shift-chip {
    padding: 3px 2px;
  }
  .team-shift-chip small {
    display: none;
  }
  .team-list-day {
    grid-template-columns: 90px minmax(0, 1fr) 14px;
    padding: 12px;
    gap: 8px;
  }
  .team-payroll-day dl > div {
    gap: 8px;
  }
  .team-payroll-day dd {
    max-width: 50%;
    overflow-wrap: anywhere;
    flex-shrink: 1;
  }
}
@media (max-width: 420px) {
  .team-day-cell .team-today-label {
    display: none;
  }
}
