/**
 * Page-specific styles for Coaching Management SPA.
 * Restored after accidental deletion during dashboard shell patch.
 */

/* ========== Student List ========== */
#studentListSection .sl-kpi-strip {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    #studentListSection .sl-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    #studentListSection .sl-kpi-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
    #studentListSection .sl-kpi-strip { grid-template-columns: repeat(5, 1fr); }
}
#studentListSection .sl-kpi-card {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#studentListSection .sl-kpi-card.sl-kpi-clickable { cursor: pointer; transition: box-shadow 0.15s; }
#studentListSection .sl-kpi-card.sl-kpi-clickable:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
#studentListSection .sl-kpi-card .sl-kpi-icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#studentListSection .sl-kpi-card .sl-kpi-label { font-size: 0.875rem; color: #6b7280; font-weight: 500; }
#studentListSection .sl-kpi-card .sl-kpi-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.2; }
#studentListSection .sl-kpi-card .sl-kpi-sub { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
#studentListSection .sl-intel-strip { background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.75rem; padding: 1rem 1.25rem; }
#studentListSection .sl-tasks-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.75rem; padding: 1rem 1.25rem; }
#studentListSection .sl-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1rem 1.25rem;
}
#studentListSection .sl-filter-bar input,
#studentListSection .sl-filter-bar select { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
#studentListSection .sl-filter-bar input[type="text"] { flex: 1; min-width: 12rem; }
#studentListSection .sl-table-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}
#studentListSection .responsive-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
}
#studentListSection .responsive-table td { padding: 1rem; vertical-align: middle; }
.sl-actions { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.sl-actions button { padding: 0.375rem; border-radius: 0.375rem; color: #6b7280; }
.sl-actions button:hover { background: #f3f4f6; color: #4338ca; }
@media print {
    body * { visibility: hidden; }
    #slPrintArea, #slPrintArea * { visibility: visible; }
    #slPrintArea { position: absolute; left: 0; top: 0; width: 100%; padding: 1rem; }
}
@media screen and (max-width: 768px) {
    #studentListSection .responsive-table td[data-label="Actions"] .sl-actions { justify-content: flex-end; }
}

/* ========== Student Form (Add / Edit) ========== */
.student-form-page { max-width: 72rem; margin: 0 auto; }
.student-form-input { width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.875rem; }
.student-form-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.student-form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
.student-form-section { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.student-form-section-title { display: flex; align-items: center; font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f3f4f6; }
.student-form-section-title svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; color: #6366f1; flex-shrink: 0; }
.student-form-fee-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .student-form-fee-grid { grid-template-columns: repeat(3, 1fr); } }
.student-form-fee-card { background: #fff; border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center; }
.student-form-footer { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-top: 1px solid #e5e7eb; padding: 1rem 0; margin-top: 1.5rem; }
.student-form-page-wrap { padding-bottom: 5rem; }
.student-form-sidebar-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.student-form-photo-zone { border: 2px dashed #d1d5db; border-radius: 0.75rem; padding: 2rem 1rem; text-align: center; cursor: pointer; transition: border-color 0.15s; min-height: 10rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.student-form-photo-zone:hover { border-color: #6366f1; }
.student-form-total-payable { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 0.5rem; padding: 0.75rem 1rem; }
.student-form-total-payable .sf-total-value { font-size: 1.25rem; font-weight: 700; color: #059669; }
.student-form-readonly { background: #f9fafb; color: #6b7280; }
#editStudentSection .es-input { width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.875rem; }
#editStudentSection .es-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
#editStudentSection .es-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
#editStudentSection .es-section { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
#editStudentSection .es-section-title { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f3f4f6; }
#editStudentSection .es-fee-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { #editStudentSection .es-fee-grid { grid-template-columns: repeat(3, 1fr); } }
#editStudentSection .es-fee-card { background: #fff; border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center; }
#editStudentSection .es-footer { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-top: 1px solid #e5e7eb; padding: 1rem 0; margin-top: 1.5rem; }
#editStudentSection .es-page-wrap { padding-bottom: 5rem; }

/* ========== Student Detail Modal ========== */
#studentDetailModal .detail-tab-btn {
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
#studentDetailModal .detail-tab-btn.active {
    background: #eef2ff;
    color: #4338ca;
    border-bottom-color: #4338ca;
}
.student-detail-name { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.student-detail-name:hover { color: #4f46e5; }

/* ========== Batch Management ========== */
.bm-page { max-width: 80rem; margin: 0 auto; }
.bm-kpi-strip { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .bm-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bm-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .bm-kpi-strip { grid-template-columns: repeat(5, 1fr); } }
#batchManagementSection .bm-kpi-card { padding: 1.25rem 1.5rem; border-radius: 0.75rem; display: flex; align-items: flex-start; gap: 1rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
#batchManagementSection .bm-kpi-card.bm-kpi-clickable { cursor: pointer; transition: box-shadow 0.15s; }
#batchManagementSection .bm-kpi-card.bm-kpi-clickable:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
#batchManagementSection .bm-kpi-icon { width: 2.75rem; height: 2.75rem; padding: 0.5rem; border-radius: 0.625rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
#batchManagementSection .bm-kpi-label { font-size: 0.875rem; color: #6b7280; font-weight: 500; }
#batchManagementSection .bm-kpi-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.2; }
#batchManagementSection .bm-kpi-sub { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.bm-kpi-sparkline { margin-top: 0.5rem; height: 1.25rem; opacity: 0.85; }
.bm-filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.bm-filter-bar input, .bm-filter-bar select { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.bm-filter-bar input[type="text"] { flex: 1; min-width: 12rem; }
.bm-batch-cell { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.bm-batch-badge { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.bm-batch-name { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-batch-sub { font-size: 0.75rem; color: #9ca3af; }
.bm-course-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.bm-course-blue { background: #dbeafe; color: #1d4ed8; }
.bm-course-pink { background: #fce7f3; color: #be185d; }
.bm-course-indigo { background: #eef2ff; color: #4338ca; }
.bm-course-gray { background: #f3f4f6; color: #4b5563; }
.bm-teacher-cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.bm-teacher-avatar { width: 2rem; height: 2rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0; background: #6366f1; }
.bm-schedule-text { font-size: 0.8125rem; color: #6b7280; max-width: 14rem; }
.bm-seat-wrap { min-width: 5rem; }
.bm-seat-count { font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem; }
.bm-seat-bar { height: 0.375rem; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.bm-seat-fill { height: 100%; border-radius: 9999px; background: #6366f1; transition: width 0.2s; }
.bm-status-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.bm-status-active { background: #d1fae5; color: #047857; }
.bm-status-upcoming { background: #fef3c7; color: #b45309; }
.bm-status-completed { background: #f3f4f6; color: #4b5563; }
.bm-actions { display: flex; align-items: center; gap: 0.25rem; }
.bm-actions button { padding: 0.375rem; border-radius: 0.375rem; color: #6b7280; }
.bm-actions button:hover { background: #f3f4f6; color: #4338ca; }
.bm-actions button.bm-del:hover { color: #dc2626; background: #fef2f2; }
#batchManagementSection .responsive-table th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; background: #f9fafb; }
#batchManagementSection .responsive-table td { padding: 1rem; vertical-align: middle; }

/* ========== Fee Management ========== */
.fee-page { max-width: 72rem; margin: 0 auto; }
.fee-page-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.5rem; position: relative; overflow: hidden; }
.fee-page-card-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.fee-page-card-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #eef2ff; color: #6366f1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fee-page-wallet-deco { position: absolute; top: 1rem; right: 1rem; opacity: 0.85; pointer-events: none; z-index: 0; }
.fee-input-wrap { position: relative; }
.fee-input-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; z-index: 1; }
.fee-input-wrap .student-form-input { padding-left: 2.5rem; }
.fee-input-wrap select.student-form-input { padding-left: 2.5rem; appearance: auto; }
.fee-method-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: #ecfdf5; color: #059669; }
.fee-amount-positive { color: #059669; font-weight: 600; }
.fee-filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-bottom: 1rem; }
.fee-filter-bar input[type="text"] { flex: 1; min-width: 12rem; }
.fee-filter-bar input { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
#feeManagementSection .responsive-table th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; background: #f9fafb; }
#feeManagementSection .responsive-table td { padding: 1rem; vertical-align: middle; }

/* ========== Expense Management ========== */
.exp-page { max-width: 72rem; margin: 0 auto; }
.exp-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .exp-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .exp-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.exp-kpi-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem; display: flex; align-items: flex-start; gap: 0.875rem; }
.exp-kpi-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exp-kpi-value { font-size: 1.375rem; font-weight: 700; color: #111827; line-height: 1.2; }
.exp-kpi-label { font-size: 0.875rem; color: #6b7280; font-weight: 500; }
.exp-kpi-sub { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.exp-chart-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .exp-chart-grid { grid-template-columns: 2fr 1fr; } }
.exp-chart-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.exp-chart-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.exp-chart-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-chart-filters select { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.375rem 0.625rem; font-size: 0.8125rem; }
.exp-chart-wrap { position: relative; height: 16rem; }
.exp-chart-donut-wrap { position: relative; height: 12rem; max-width: 14rem; margin: 0 auto; }
.exp-category-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; max-height: 120px; overflow-y: auto; }
.exp-category-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; }
.exp-category-legend-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; flex-shrink: 0; }
.exp-table-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.exp-table-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.exp-filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-bottom: 1rem; }
.exp-filter-bar input, .exp-filter-bar select { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.exp-filter-bar input[type="text"] { flex: 1; min-width: 10rem; }
.exp-category-badge, .exp-paymethod-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.exp-cat-indigo { background: #eef2ff; color: #4338ca; }
.exp-cat-blue { background: #dbeafe; color: #1d4ed8; }
.exp-cat-emerald { background: #d1fae5; color: #047857; }
.exp-cat-amber { background: #fef3c7; color: #b45309; }
.exp-cat-rose { background: #ffe4e6; color: #be123c; }
.exp-cat-gray { background: #f3f4f6; color: #4b5563; }
.exp-pay-cash { background: #ecfdf5; color: #059669; }
.exp-pay-bank { background: #dbeafe; color: #1d4ed8; }
.exp-pay-bkash { background: #fce7f3; color: #be185d; }
.exp-pay-online { background: #eef2ff; color: #4338ca; }
#expenseManagementSection .responsive-table th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; background: #f9fafb; }
#expenseManagementSection .responsive-table td { padding: 1rem; vertical-align: middle; }
.exp-actions { display: flex; align-items: center; gap: 0.25rem; }
.exp-actions button { padding: 0.375rem; border-radius: 0.375rem; color: #6b7280; }
.exp-actions button:hover { background: #f3f4f6; color: #4338ca; }
.exp-actions button.exp-del:hover { color: #dc2626; background: #fef2f2; }

/* ========== Reports ========== */
.rpt-page { max-width: 80rem; margin: 0 auto; }
.rpt-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .rpt-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rpt-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .rpt-kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.rpt-kpi-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.rpt-kpi-card .rpt-kpi-label { font-size: 0.75rem; color: #6b7280; font-weight: 500; }
.rpt-kpi-card .rpt-kpi-value { font-size: 1.25rem; font-weight: 700; color: #111827; line-height: 1.2; }
.rpt-kpi-card .rpt-kpi-sub { font-size: 0.7rem; color: #9ca3af; }
.rpt-main-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .rpt-main-grid { grid-template-columns: 2fr 1fr; } }
.rpt-main-left { display: flex; flex-direction: column; gap: 1.5rem; }
.rpt-main-right { display: flex; flex-direction: column; gap: 1.5rem; }
.rpt-filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1rem 1.25rem; }
.rpt-filter-bar input, .rpt-filter-bar select { border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.rpt-filter-bar input[type="date"] { min-width: 9rem; }
.rpt-filter-bar select { min-width: 8rem; }
.rpt-export-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; border: 1px solid transparent; }
.rpt-export-pdf { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.rpt-export-pdf:hover { background: #fee2e2; }
.rpt-export-excel { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.rpt-export-excel:hover { background: #d1fae5; }
.rpt-charts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .rpt-charts-grid { grid-template-columns: repeat(2, 1fr); } }
.rpt-chart-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.rpt-chart-wrap { position: relative; height: 16rem; }
.rpt-section-title { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 0.75rem; }
.rpt-table-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.rpt-insight-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem 1.5rem; }
.rpt-insight-row { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
.rpt-insight-row:last-child { border-bottom: none; padding-bottom: 0; }
.rpt-insight-label { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.025em; }
.rpt-insight-value { font-size: 0.875rem; font-weight: 600; color: #111827; }
.rpt-insight-sub { font-size: 0.75rem; color: #9ca3af; }
.rpt-quick-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.625rem 0.875rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #374151; background: #f9fafb; border: 1px solid #f3f4f6; text-align: left; transition: background 0.15s; }
.rpt-quick-link:hover { background: #eef2ff; color: #4338ca; border-color: #e0e7ff; }
.rpt-cat-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.rpt-cat-finance { background: #eef2ff; color: #4338ca; }
.rpt-cat-student { background: #d1fae5; color: #047857; }
.rpt-cat-attendance { background: #fef3c7; color: #b45309; }
.rpt-cat-teacher { background: #dbeafe; color: #1d4ed8; }
.rpt-cat-batch { background: #ffe4e6; color: #be123c; }
.rpt-status-ready { background: #d1fae5; color: #047857; }
.rpt-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.rpt-donut-total { font-size: 1rem; font-weight: 700; color: #111827; }
.rpt-donut-label { font-size: 0.65rem; color: #6b7280; text-transform: uppercase; }
.rpt-actions { display: flex; align-items: center; gap: 0.25rem; }
.rpt-actions button { padding: 0.375rem; border-radius: 0.375rem; color: #6b7280; }
.rpt-actions button:hover { background: #f3f4f6; color: #4338ca; }
#reportsSection .responsive-table th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; background: #f9fafb; }
#reportsSection .responsive-table td { padding: 1rem; vertical-align: middle; }

/* ========== ID Card Generator ========== */
.idc-page { max-width: 90rem; margin: 0 auto; }
.idc-main-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .idc-main-grid { grid-template-columns: minmax(320px, 380px) 1fr; } }
.idc-panel { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.5rem; }
.idc-panel-title { font-size: 0.9375rem; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }
.idc-field { margin-bottom: 1rem; }
.idc-field label { display: block; font-size: 0.8125rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
.idc-field input[type="text"], .idc-field input[type="color"], .idc-field select { width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.idc-check-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; color: #374151; }
.idc-student-chip { display: none; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.75rem; background: #f9fafb; margin-top: 0.75rem; }
.idc-student-chip.visible { display: flex; }
.idc-student-chip-avatar, .idc-chip-avatar { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: var(--idc-primary, #6E3BEE); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.idc-status-badge { display: inline-flex; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; background: #d1fae5; color: #047857; }
.idc-theme-toggle { display: flex; gap: 0.5rem; }
.idc-theme-btn { flex: 1; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #374151; background: #fff; cursor: pointer; }
.idc-theme-btn.active { border-color: var(--idc-primary, #6E3BEE); background: #f5f3ff; color: var(--idc-primary, #6E3BEE); }
.idc-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.idc-segment { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
.idc-segment button { padding: 0.375rem 1rem; font-size: 0.8125rem; font-weight: 500; color: #6b7280; background: #fff; border: none; cursor: pointer; }
.idc-segment button.active { background: var(--idc-primary, #6E3BEE); color: #fff; }
.idc-preview-wrap { display: flex; justify-content: center; align-items: center; min-height: 420px; padding: 1.5rem; background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); border-radius: 0.75rem; }
.idc-preview-stage { display: flex; justify-content: center; align-items: flex-start; width: 100%; overflow: auto; }
.idc-preview-empty { text-align: center; color: #9ca3af; font-size: 0.875rem; }
.idc-preview-tabs { display: flex; gap: 0.5rem; background: #f3f4f6; padding: 0.25rem; border-radius: 0.5rem; }
.idc-preview-tab { padding: 0.375rem 0.875rem; border-radius: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: #6b7280; border: none; background: transparent; cursor: pointer; }
.idc-preview-tab.active { background: #fff; color: #4338ca; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.idc-options-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .idc-options-grid { grid-template-columns: repeat(2, 1fr); } }
.idc-option-label { display: block; font-size: 0.8125rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
.idc-btn { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 600; border: 1px solid #d1d5db; background: #fff; color: #374151; cursor: pointer; }
.idc-btn:hover { background: #f9fafb; }
.idc-btn-primary { background: var(--idc-primary, #6E3BEE); border-color: var(--idc-primary, #6E3BEE); color: #fff; }
.idc-btn-primary:hover { filter: brightness(1.05); }
.idc-preview-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.idc-history-actions { display: flex; gap: 0.25rem; }
.idc-history-actions button { padding: 0.375rem; border-radius: 0.375rem; color: #6b7280; border: none; background: transparent; cursor: pointer; }
.idc-history-actions button:hover { background: #f3f4f6; color: #4338ca; }
.idc-history-actions button.idc-del:hover { color: #dc2626; background: #fef2f2; }
#idCardGeneratorSection .responsive-table th { padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #6b7280; background: #f9fafb; }
#idCardGeneratorSection .responsive-table td { padding: 0.875rem 1rem; vertical-align: middle; }
.idc-print-a4 { display: flex; flex-wrap: wrap; gap: 10mm; justify-content: center; padding: 10mm; }
@media print {
    #idCardPrintArea, #idCardPrintArea * { visibility: visible; }
    #idCardPrintArea { position: absolute; left: 0; top: 0; width: 100%; }
    #idCardPrintArea .idc-card { width: 54mm; min-height: 86mm; box-shadow: none; page-break-inside: avoid; }
}

/* ID Card visual design */
.idc-card { width: 340px; min-height: 540px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(79, 38, 190, 0.18); position: relative; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; background: #fff; color: #111827; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-card.idc-theme-dark { background: #1f2937; color: #f9fafb; }
.idc-card.idc-theme-light { background: #fff; color: #111827; }
.idc-front-header { background: linear-gradient(145deg, var(--idc-primary, #6E3BEE) 0%, var(--idc-primary-dark, #4c1d95) 100%); color: #fff; padding: 0.875rem 0.875rem 0; position: relative; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-front-header-inner { display: flex; align-items: center; gap: 0.625rem; padding-bottom: 1.75rem; }
.idc-front-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.35); flex-shrink: 0; background: #fff; }
.idc-front-academy-name { font-size: 0.6875rem; font-weight: 700; line-height: 1.25; margin: 0; }
.idc-front-tagline { font-size: 0.5625rem; opacity: 0.85; margin: 0.125rem 0 0; font-weight: 400; }
.idc-wave-svg { display: block; width: 100%; height: 22px; margin-bottom: -1px; }
.idc-photo-zone { display: flex; flex-direction: column; align-items: center; margin-top: -1.75rem; position: relative; z-index: 2; padding: 0 1rem; }
.idc-photo { width: 88px; height: 88px; border-radius: 9999px; border: 3px solid var(--idc-primary, #6E3BEE); outline: 3px solid #fff; background: linear-gradient(135deg, var(--idc-primary, #6E3BEE), var(--idc-primary-dark, #4c1d95)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.625rem; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.idc-ribbon { margin-top: -0.625rem; background: linear-gradient(180deg, var(--idc-primary, #6E3BEE) 0%, var(--idc-primary-dark, #5b21b6) 100%); color: #fff; font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.14em; padding: 0.3125rem 1.125rem; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-card-name { text-align: center; font-size: 1.125rem; font-weight: 700; padding: 0.625rem 1rem 0.5rem; margin: 0; }
.idc-fields-list { padding: 0.375rem 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.4375rem; flex: 1; }
.idc-field-row { display: grid; grid-template-columns: 18px 1fr auto 1fr; align-items: center; gap: 0.25rem 0.375rem; font-size: 0.625rem; line-height: 1.3; }
.idc-field-icon { color: var(--idc-primary, #6E3BEE); display: flex; align-items: center; justify-content: center; }
.idc-field-icon svg { width: 13px; height: 13px; }
.idc-field-label { color: #6b7280; font-weight: 500; white-space: nowrap; }
.idc-field-colon { color: #9ca3af; }
.idc-field-value { font-weight: 600; color: #111827; word-break: break-word; text-align: left; }
.idc-theme-dark .idc-field-label { color: #9ca3af; }
.idc-theme-dark .idc-field-value { color: #f3f4f6; }
.idc-front-footer { margin-top: auto; position: relative; }
.idc-front-footer-wave { background: linear-gradient(145deg, var(--idc-primary, #6E3BEE) 0%, var(--idc-primary-dark, #4c1d95) 100%); padding: 1.25rem 1rem 0.875rem; position: relative; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-front-footer-wave .idc-wave-svg { position: absolute; top: -21px; left: 0; transform: rotate(180deg); }
.idc-front-footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; min-height: 4.5rem; }
.idc-signature { flex: 1; color: #fff; }
.idc-signature-scribble { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 1.125rem; opacity: 0.95; line-height: 1; margin-bottom: 0.125rem; }
.idc-signature-line { border-top: 1px solid rgba(255,255,255,0.55); width: 4.5rem; margin-bottom: 0.2rem; }
.idc-signature-label { font-size: 0.5625rem; opacity: 0.9; }
.idc-card-qr { width: 68px; height: 68px; flex-shrink: 0; background: #fff; padding: 3px; border-radius: 4px; }
.idc-card-qr img, .idc-card-qr canvas { width: 62px !important; height: 62px !important; display: block; }
.idc-back-top { display: flex; align-items: center; gap: 0.625rem; padding: 1rem 1rem 0.625rem; }
.idc-back-logo-circle { width: 36px; height: 36px; border-radius: 9999px; background: var(--idc-primary, #6E3BEE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 2px solid color-mix(in srgb, var(--idc-primary, #6E3BEE) 30%, #fff); }
.idc-back-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.idc-back-title { font-size: 0.75rem; font-weight: 700; color: var(--idc-primary, #6E3BEE); margin: 0; line-height: 1.25; }
.idc-back-content { padding: 0 1rem 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.idc-contact-list { display: flex; flex-direction: column; gap: 0.4375rem; }
.idc-contact-row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.625rem; line-height: 1.45; color: #374151; }
.idc-contact-icon { color: var(--idc-primary, #6E3BEE); flex-shrink: 0; margin-top: 1px; }
.idc-contact-icon svg { width: 13px; height: 13px; }
.idc-back-divider { border: none; border-top: 1px solid color-mix(in srgb, var(--idc-primary, #6E3BEE) 25%, #e5e7eb); margin: 0.25rem 0; }
.idc-terms-block { position: relative; padding: 0.375rem 0; }
.idc-terms-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0.07; }
.idc-terms-watermark img { width: 72px; height: 72px; object-fit: contain; }
.idc-terms-block h4 { font-size: 0.6875rem; font-weight: 700; color: var(--idc-primary, #6E3BEE); margin: 0 0 0.375rem; position: relative; }
.idc-terms-block ul { margin: 0; padding-left: 1rem; font-size: 0.5625rem; line-height: 1.45; color: #4b5563; position: relative; }
.idc-emergency-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; align-self: center; background: var(--idc-primary, #6E3BEE); color: #fff; font-size: 0.5625rem; font-weight: 600; padding: 0.4375rem 0.875rem; border-radius: 9999px; margin: 0.25rem auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-emergency-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.idc-back-footer { position: relative; margin-top: auto; padding-top: 1.5rem; }
.idc-back-footer-wave { background: linear-gradient(145deg, var(--idc-primary, #6E3BEE) 0%, var(--idc-primary-dark, #4c1d95) 100%); padding: 0 1rem 1rem; position: relative; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-back-footer-wave .idc-wave-svg { position: absolute; top: -21px; left: 0; transform: rotate(180deg); }
.idc-barcode-panel { background: #fff; border-radius: 10px; padding: 0.625rem 0.75rem 0.5rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: relative; top: -0.5rem; }
.idc-barcode-panel svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.idc-barcode-id { display: block; font-size: 0.625rem; font-weight: 700; color: #374151; margin-top: 0.375rem; letter-spacing: 0.04em; }
.idc-card.idc-theme-dark .idc-front-header, .idc-card.idc-theme-dark .idc-front-footer-wave, .idc-card.idc-theme-dark .idc-back-footer-wave { filter: brightness(0.85); }
.idc-card.idc-theme-dark .idc-back-content, .idc-card.idc-theme-dark .idc-contact-row, .idc-card.idc-theme-dark .idc-terms-block ul { color: #d1d5db; }
