#view-attendance {
  color: #293a2e;
}
.att-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 6px 0 26px;
}
.att-heading h1 {
  font-size: 28px;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}
.att-heading p:last-child {
  color: #80907b;
  font-size: 13px;
}
.att-tabs {
  display: flex;
  max-width: 360px;
}
.att-tabs button {
  flex: 1;
  border: 0;
  border-radius: 16px 16px 0 0;
  padding: 18px 12px;
  background: transparent;
  font: inherit;
  color: #83907c;
  cursor: pointer;
}
.att-tabs button.selected {
  color: #2b6948;
  background: white;
  font-weight: 600;
}
#attPending {
  font-size: 11px;
  color: #c24a3d;
  margin-left: 6px;
}
.att-panel {
  background: #fff;
  border-radius: 0 20px 20px 20px;
  padding: 26px;
  border: 1px solid #e7ece2;
  box-shadow: 0 12px 32px #32492d05;
}
.att-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.att-filters label,
.att-form-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #77866c;
  font-size: 12px;
}
.att-filters label[hidden],
.att-form-fields label[hidden] {
  display: none;
}
.att-filters input,
.att-filters select,
.att-form-fields input,
.att-form-fields select,
.att-form-fields textarea {
  border: 1px solid #dfe7d7;
  border-radius: 9px;
  padding: 10px 12px;
  color: #30452c;
  background: #fbfcf8;
  font: inherit;
  min-height: 40px;
}
#attMessage {
  font-size: 12px;
  color: #8a967f;
  margin: 18px 0;
}
.att-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}
.att-summary:empty {
  display: none;
}
.att-summary article {
  padding: 22px 14px;
  background: linear-gradient(120deg, #f0f6e9, #f7f9f3);
  border-radius: 14px;
}
.att-summary strong {
  display: block;
  font-size: 27px;
  color: #346144;
  margin-bottom: 8px;
}
.att-summary span {
  font-size: 12px;
  color: #89977d;
}
.att-table-scroll {
  overflow-x: auto;
}
.att-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 740px;
}
.att-table th {
  padding: 14px 12px;
  background: #f7f9f3;
  font-size: 12px;
  color: #89977b;
  font-weight: 500;
}
.att-table td {
  padding: 20px 12px;
  border-bottom: 1px solid #edf1e7;
  font-size: 13px;
  white-space: pre-line;
  line-height: 1.6;
}
.att-table small {
  display: block;
  color: #929d86;
  font-size: 11px;
  margin-top: 5px;
}
.att-warning {
  color: #ba5944;
}
.att-row-actions {
  min-width: 150px;
}
.att-text-button,
.att-approve {
  border: 0;
  color: #3c7151;
  font: inherit;
  background: transparent;
  cursor: pointer;
  margin-right: 12px;
  padding: 8px 0;
  white-space: nowrap;
}
.att-approve {
  padding: 6px 12px;
  background: #edf5e8;
  border-radius: 8px;
}
.att-table .att-empty {
  padding: 48px;
  text-align: center;
  color: #929d86;
}
.att-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.att-pagination span {
  margin-right: auto;
  font-size: 12px;
  color: #89977b;
}
.att-dialog {
  width: min(600px, calc(100vw - 32px));
  border: 1px solid #e5ebdc;
  border-radius: 22px;
  padding: 0;
  color: #31432c;
  box-shadow: 0 26px 100px #1f382540;
  max-height: 85vh;
}
.att-dialog::backdrop {
  background: #1f342763;
  backdrop-filter: blur(3px);
}
.att-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: #f7f9f2;
  border-bottom: 1px solid #eaf0e0;
}
.att-dialog h2 {
  font-size: 19px;
  margin: 0;
}
.att-close {
  border: 0;
  background: transparent;
  color: #88977b;
  cursor: pointer;
  font-size: 27px;
}
.att-dialog form {
  padding: 0;
}
.att-form-fields {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.att-form-fields textarea {
  min-height: 96px;
  resize: vertical;
}
.att-dialog-note {
  font-size: 13px;
  color: #839373;
  line-height: 1.8;
  white-space: pre-wrap;
  margin: 0;
}
.att-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 26px;
  background: #fff;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #eaf0e0;
}
.att-form-error {
  color: #b75440;
  padding: 0 26px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .att-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .att-panel {
    padding: 18px;
  }
  .att-heading h1 {
    font-size: 24px;
  }
  .att-filters label {
    flex: 1;
    min-width: 130px;
  }
  .att-filters input,
  .att-filters select {
    width: 100%;
  }
}

#attendanceBadge,
#attPending:not(:empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 12px;
  color: #fff;
  background: #c85948;
  font-size: 10px;
}
#attendanceBadge[hidden],
#attPending[hidden] {
  display: none;
}
