.v127-attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 132px;
}

.v127-attendance-actions button {
  min-height: 34px;
  margin: 0;
  padding: 8px 11px;
  white-space: nowrap;
}

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

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

.v127-summary-toolbar .attendance-toolbar-controls {
  flex-basis: 670px;
}

.v127-summary-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v127-summary-actions button {
  width: 100%;
  min-width: 0;
}

.v127-attendance-summary {
  min-width: 1280px;
}

.v127-percentage {
  display: inline-grid;
  min-width: 58px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.v127-percentage.has-late {
  background: #fee2e2;
  color: #b91c1c;
}

.v127-card-toolbar .attendance-toolbar-controls {
  flex-basis: 300px;
}

.v127-card-total {
  display: grid;
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 13px;
  background: #f0fdf4;
  text-align: right;
}

.v127-card-total small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.v127-card-total b {
  color: #047857;
  font-size: 24px;
}

.v127-employee-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.v127-employee-card-record {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.v127-card-preview {
  position: relative;
  min-height: 205px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, #d1fae5, transparent 42%),
    #f8fafc;
}

.v127-card-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.v127-card-preview span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.9);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.v127-card-copy {
  display: grid;
  gap: 4px;
  padding: 15px 16px 8px;
}

.v127-card-copy b {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v127-card-copy span {
  color: #475569;
  font-size: 12px;
}

.v127-card-copy small {
  color: #047857;
  font-size: 10px;
  font-weight: 800;
}

.v127-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 16px 16px;
}

.v127-card-actions button {
  width: 100%;
  margin: 0;
}

@media (max-width: 950px) {
  .v127-summary-toolbar .attendance-toolbar-controls,
  .v127-card-toolbar .attendance-toolbar-controls {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }

  .v127-summary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v127-employee-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .v127-summary-actions,
  .v127-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .v127-card-total {
    width: 100%;
    text-align: left;
  }

  .v127-card-preview {
    min-height: 160px;
    padding: 8px;
  }

  .v127-card-preview span {
    right: 14px;
    bottom: 14px;
  }
}
