/* Admin daily attendance — aligned with legacy Attendance Management UI */
.att-mgmt-page {
  max-width: 1400px;
  margin: 0 auto;
}

.att-mgmt-hero-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e3a5f;
  letter-spacing: 0.02em;
}

.att-mgmt-filter-bar {
  background: #f4f7fb;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.att-mgmt-filter-bar .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.25rem;
}

.att-btn-apply {
  background: #3d5a80;
  border-color: #3d5a80;
  color: #fff;
  min-width: 5rem;
}

.att-btn-apply:hover {
  background: #2f4763;
  border-color: #2f4763;
  color: #fff;
}

.att-search-wrap .input-group-text {
  background: #fff;
  font-weight: 600;
  color: #475569;
  border-color: #ced4da;
}

.att-btn-analysis {
  border-width: 2px;
  font-weight: 600;
  padding: 0.45rem 1.5rem;
}

.att-grade-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  background: #e8edf3;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
}

.att-grade-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  background: #d3dce6;
  color: #334155;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.att-grade-tab:hover {
  background: #c5d0dc;
}

.att-grade-tab.active {
  background: #fff;
  border-color: #c5ced8;
  border-top: 3px solid #dc3545;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.att-grade-tab .att-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  flex-shrink: 0;
}

.att-grade-tab .att-count {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #94a3b8;
  color: #fff;
}

.att-section-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.att-section-pills .btn {
  font-size: 0.85rem;
  border-radius: 6px;
}

.att-section-heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e3a5f;
}

.att-date-range {
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.att-date-nav {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.att-table-toolbar {
  font-size: 0.875rem;
  color: #475569;
}

.att-mgmt-table {
  font-size: 0.875rem;
  border-color: #c5ced8 !important;
}

.att-mgmt-table thead.att-mgmt-thead th {
  background: linear-gradient(180deg, #e8f0fa 0%, #d9e7f5 100%);
  color: #1e3a5f;
  font-weight: 600;
  border-color: #c5ced8 !important;
  white-space: nowrap;
  vertical-align: middle;
}

.att-mgmt-table tbody td {
  border-color: #d8e0ea !important;
  vertical-align: middle;
}

.att-mgmt-table .school-id-col {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.att-mgmt-table .student-name-col {
  min-width: 8rem;
}

.att-mgmt-table .date-col {
  min-width: 7.5rem;
}

.att-cell-select {
  min-width: 7.25rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border-width: 1px;
}

.att-cell-select.att-sel-present {
  background: #157347;
  color: #fff;
  border-color: #0f5132;
}

.att-cell-select.att-sel-absent {
  background: #bb2d3b;
  color: #fff;
  border-color: #842029;
}

.att-cell-select.att-sel-absent-reported {
  background: #dc3545;
  color: #fff;
  border-color: #842029;
  font-weight: 500;
}

.att-cell-select.att-sel-late {
  background: #ffca2c;
  color: #111;
  border-color: #997404;
}

.att-cell-select.att-sel-late-reported {
  background: #ffc107;
  color: #111;
  border-color: #856404;
  font-weight: 500;
}

.att-cell-select.att-sel-empty {
  background: #fff;
  color: #212529;
  border-color: #adb5bd;
}

.att-cell-select:disabled {
  opacity: 0.65;
}

.att-summary-col {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  background: #f8fafc;
}
