.v126-attendance-stats article.has-problem {
  border-color: #fecaca;
  background: #fff1f2;
}

.v126-attendance-stats article.has-problem small,
.v126-attendance-stats article.has-problem b {
  color: #b91c1c;
}

.v126-attendance-rule {
  margin: 14px 0;
  padding: 11px 13px;
  border: 1px solid #bae6fd;
  border-radius: 13px;
  background: #f0f9ff;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.v126-attendance-table td,
.v126-attendance-summary td {
  vertical-align: top;
}

.v126-row-late td {
  background: #fff1f2 !important;
}

.v126-row-early:not(.v126-row-late) td {
  background: #fffbeb !important;
}

.v126-attendance-mark,
.v126-attendance-empty {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.v126-attendance-mark.is-on-time {
  background: #dcfce7;
  color: #047857;
}

.v126-attendance-mark.is-late {
  background: #fee2e2;
  color: #b91c1c;
}

.v126-attendance-mark.is-early {
  background: #fef3c7;
  color: #92400e;
}

.v126-attendance-empty {
  background: #f1f5f9;
  color: #64748b;
}

.v126-summary-problem {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
}

.v126-work-settings fieldset {
  margin: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.v126-work-settings legend {
  padding: 0 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.v126-work-settings label small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
}

.v126-work-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.v126-work-days label {
  position: relative;
  cursor: pointer;
}

.v126-work-days input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.v126-work-days span {
  display: block;
  padding: 9px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.v126-work-days input:checked + span {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}

.v126-settings-note {
  margin: 0;
  padding: 11px;
  border-radius: 11px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.v126-scan-status[data-type="late"] {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.v126-scan-status[data-type="early"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.v126-scan-status[data-type="on_time"],
.v126-scan-status[data-type="outside_schedule"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

@media (max-width: 720px) {
  .v126-work-days {
    grid-template-columns: repeat(2, 1fr);
  }
}
