/* 4-column grid: attendance + 3 KPI cards */
#otm-dashboard .otm-overview-grid {
  display: grid;
  grid-template-columns: 300px repeat(3, 1fr);
  gap: 1em;
  margin-bottom: 2em;
}

/* Make sure the attendance table scrolls if it’s too tall */
#otm-dashboard .attendance-card {
  max-height: 400px;
  overflow: auto;
}
.otm-dashboard section {
  margin-bottom: 2em;
}
.card-table {
  overflow-x: auto;
}
.card-table table {
  width: 100%;
  border-collapse: collapse;
}
.card-table th, .card-table td {
  padding: 8px;
  border: 1px solid #ddd;
}
.stat-grid {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}
.stat-grid .widget {
  flex: 1;
  min-width: 150px;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 6px;
}
.otm-enrollment-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.otm-enrollment-table th {
  background: #f4f4f4;
  text-align: left;
  padding: 12px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.otm-enrollment-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.otm-enrollment-table tr:nth-child(even) {
  background-color: #fafafa;
}

.otm-enrollment-table tr:hover {
  background-color: #f0f8ff;
}

.otm-enrollment-table a {
  color: #0073aa;
  text-decoration: none;
}

.otm-enrollment-table a:hover {
  text-decoration: underline;
}
/* Overdue Table Styling */
.otm-overdue-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.otm-overdue-leaderboard th,
.otm-overdue-leaderboard td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.otm-overdue-leaderboard th {
  background: #f8f8f8;
  font-weight: 600;
}
.otm-overdue-leaderboard tr:hover {
  background: #f0f8ff;
}

/* Tabs Navigation */
.otm-reports-tabs {
  margin-top: 2em;
}
.otm-reports-tabs .tabs-nav {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1em;
  list-style: none;
  padding: 0;
}
.otm-reports-tabs .tabs-nav li {
  padding: 0.75em 1.25em;
  cursor: pointer;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-bottom: none;
  margin-right: 4px;
  border-radius: 6px 6px 0 0;
}
.otm-reports-tabs .tabs-nav li.active {
  background: #fff;
  font-weight: 600;
  border-bottom: 2px solid #fff;
}
.otm-reports-tabs .tabs-content .tab-content {
  display: none;
  background: #fff;
  padding: 1em;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.otm-reports-tabs .tabs-content .tab-content.active {
  display: block;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card h4 {
  margin-top: 0;
  font-size: 1rem;
}
.card p {
  font-size: 1.5rem;
  margin: 0.5em 0 0 0;
}
.otm-payout-widget {
  background: #fdfdfd;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 20px;
}
.otm-payout-widget h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

