/* EduSaarthi Dashboard Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(180deg, #f8fbfd 0%, #faf6f1 100%);
    overflow: hidden;
    scrollbar-width: none;
    -ms-scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0c4a6e 0%, #0f546e 50%, #1a9d87 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .app-title,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .logout-btn.nav-item span {
    display: none;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 15px 10px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(135deg, #27ae60 0%, #ffa43a 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(38, 184, 145, 0.3);
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Logout button inside nav (moved from footer) */
.logout-btn.nav-item {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.logout-btn.nav-item:hover {
    background: #25a18e;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    background: rgba(255,255,255,0.96);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 10px 30px rgba(15, 69, 94, 0.05);
    z-index: 50;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #f0f0f0;
}

.header-title h1 {
    font-size: 1.55rem;
    color: #0f3d5b;
    font-weight: 700;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #4b6071;
    margin-top: 4px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #25a18e 0%, #17a2b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(248,251,253,0.5) 0%, rgba(250,246,241,0.5) 100%);
    padding-bottom: 80px;
}

/* ============================================
   UNIFIED COMPONENT STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.5rem;
    color: #0f3d5b;
    font-weight: 700;
}

/* Buttons - Primary Action (Add/Submit) */
.add-btn, .btn-submit, .save-btn, .add-course-btn {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-btn:hover, .btn-submit:hover, .save-btn:hover, .add-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* Buttons - Secondary/Cancel */
.btn-cancel, .cancel-btn {
    padding: 12px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover, .cancel-btn:hover {
    background: #f5f5f5;
}

/* Buttons - Action (Edit/View/Delete) */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn.edit, .action-btn.view {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.edit:hover, .action-btn.view:hover {
    background: #bbdefb;
}

.action-btn.delete, .action-btn.reject {
    background: #ffebee;
    color: #c62828;
}

.action-btn.delete:hover, .action-btn.reject:hover {
    background: #ffcdd2;
}

.action-btn.approve, .action-btn.pay {
    background: #d4edda;
    color: #155724;
}

.action-btn.approve:hover, .action-btn.pay:hover {
    background: #c3e6cb;
}

.action-btn.fees {
    background: #e8f5e9;
    color: #2e7d32;
}

.action-btn.fees:hover {
    background: #c8e6c9;
}

/* Table Card */
.table-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
}

.table-header h2 {
    font-size: 1.15rem;
    color: #0a3d56;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-header h2 i {
    color: #ff9f3a;
    font-size: 1.2rem;
}

/* Search & Filter */
.search-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #ff9f3a;
}

.search-input {
    width: 250px;
}

.filter-select {
    min-width: 150px;
    cursor: pointer;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 10px;
    font-size: 0.77rem;
    color: #7a8a99;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(240, 240, 240, 0.8);
    background: rgba(248, 251, 253, 0.5);
}

.data-table td {
    padding: 14px 10px;
    font-size: 0.92rem;
    color: #4a5a69;
    border-bottom: 1px solid rgba(240, 240, 240, 0.6);
}

.data-table tr:hover {
    background: rgba(248, 251, 253, 0.8);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-badge.active, .status-badge.approved, .status-badge.paid, .status-badge.completed {
    background: rgba(52, 211, 153, 0.15);
    color: #059669;
}

.status-badge.inactive, .status-badge.rejected, .status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.status-badge.pending, .status-badge.draft, .status-badge.partial, .status-badge.verified {
    background: rgba(255, 193, 7, 0.15);
    color: #f57f17;
}

.status-badge.submitted {
    background: #d1ecf1;
    color: #0c5460;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 18px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: #0a3d56;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #4a5a69;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9f3a;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card h3 {
    font-size: 0.85rem;
    color: #7a8a99;
    margin-bottom: 0;
    font-weight: 500;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a3d56;
}

.stat-card .value.positive {
    color: #27ae60;
}

.stat-card .value.negative {
    color: #e74c3c;
}

.stat-card .value.pending {
    color: #f57f17;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: #999;
}

/* Back Button */
.back-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Vendor Info Card (for vendor_fees.html) */
.vendor-info-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.vendor-info-header {
    background: linear-gradient(135deg, #0a3d56 0%, #1a5a7a 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vendor-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vendor-details h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 4px;
}

.vendor-details p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.vendor-info-stats {
    display: flex;
    padding: 16px 24px;
    gap: 16px;
    background: #fff;
}

.vendor-info-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vendor-info-stats .stat-item span {
    display: block;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vendor-info-stats .stat-item strong {
    font-size: 1.1rem;
    color: #0a3d56;
}

/* Institution Tabs */
.institution-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.institution-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.institution-tab:hover {
    border-color: #ff9f3a;
    color: #ff9f3a;
}

.institution-tab.active {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-color: transparent;
    color: #fff;
}

/* Fees Grid & Cards */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.course-fee-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.course-fee-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #ff9f3a;
}

.card-header {
    background: linear-gradient(135deg, #0a3d56 0%, #1a5a7a 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-left h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-header .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.card-header .badge.active {
    background: #4caf50;
    color: #fff;
}

.card-header .badge.inactive {
    background: #f44336;
    color: #fff;
}

.card-body {
    padding: 16px 16px 10px 16px;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.7rem;
}

.fee-item label {
    color: #666;
}

.fee-item .fee-value {
    font-weight: 600;
    color: #0a3d56;
    font-size: 0.7rem;
}

.fee-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid #ff9f3a;
}

.fee-total label {
    font-weight: 700;
    color: #0a3d56;
    font-size: 0.8rem;
}

.fee-total .total-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff6b35;
}

.action-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: flex-end;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.edit-btn:hover {
    background: #bbdefb;
}

.save-btn {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.save-btn.visible {
    display: inline-block;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
}

.cancel-btn.visible {
    display: inline-block;
}

.delete-btn {
    background: #ffebee;
    color: #c62828;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ffcdd2;
}

/* Institution Badge */
.institution-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: #ff9f3a;
}

/* Amount Colors */
.amount.positive, .amount-neutral {
    color: #27ae60;
    font-weight: 600;
}

.amount.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Student/Item List */
.student-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.student-item:last-child {
    border-bottom: none;
}

.student-item .student-info {
    flex: 1;
}

.student-item .student-info strong {
    display: block;
    color: #0a3d56;
}

.student-item .student-info span {
    font-size: 0.85rem;
    color: #666;
}

.student-item .fee-info {
    text-align: right;
}

.student-item .fee-info .total,
.student-item .fee-info .paid,
.student-item .fee-info .due {
    display: block;
    font-size: 0.85rem;
}

.student-item .fee-info .total {
    font-weight: 600;
    color: #0a3d56;
}

.student-item .fee-info .paid {
    color: #27ae60;
}

.student-item .fee-info .due {
    color: #e74c3c;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.payment-summary .summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Document Verification */
.doc-verification-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.doc-verification-section h3 {
    color: #0a3d56;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.document-item {
    background: white;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-item .doc-info strong {
    display: block;
    color: #0a3d56;
    margin-bottom: 4px;
}

.document-item .doc-info span {
    font-size: 0.85rem;
    color: #666;
}

.document-item .doc-actions {
    display: flex;
    gap: 8px;
}

.doc-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.doc-approve {
    background: #d4edda;
    color: #155724;
}

.doc-reject {
    background: #f8d7da;
    color: #721c24;
}

.doc-view {
    background: #e3f2fd;
    color: #1976d2;
}

.doc-verification-note {
    margin-top: 12px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

/* Discount Section */
.discount-section {
    background: #fff8e1;
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #ffc107;
    margin-top: 16px;
}

.discount-section h3 {
    color: #f57c00;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.discount-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.discount-input-group input:focus {
    outline: none;
    border-color: #ff9f3a;
}

.discount-note {
    font-size: 0.8rem;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Fee Details Popup Styles */
.fee-details-section {
    margin-bottom: 16px;
}

.fee-details-section:last-child {
    margin-bottom: 0;
}

.fee-details-label {
    font-weight: 600;
    color: #0a3d56;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-details-label i {
    color: #ff9f3a;
}

.fee-breakdown-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(240, 240, 240, 0.8);
}

.fee-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.6);
}

.fee-breakdown-row:last-child {
    border-bottom: none;
}

.fee-breakdown-row.total-row {
    border-top: 2px solid #ff9f3a;
    margin-top: 8px;
    padding-top: 12px;
}

.fee-breakdown-label {
    font-size: 0.9rem;
    color: #666;
}

.fee-breakdown-value {
    font-weight: 600;
    color: #0a3d56;
    font-size: 0.95rem;
}

.fee-breakdown-value.highlight {
    font-size: 1.1rem;
    color: #ff9f3a;
}

.fee-breakdown-value.positive {
    color: #27ae60;
}

.fee-breakdown-value.negative {
    color: #e74c3c;
}

/* Wizard/Step Styles */
.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 4px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.wizard-step .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.wizard-step.active .step-circle {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

.wizard-step.completed .step-circle {
    background: #4caf50;
    color: #fff;
}

.wizard-step .step-title {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.wizard-step.active .step-title {
    color: #0a3d56;
    font-weight: 700;
}

.wizard-step.completed .step-title {
    color: #4caf50;
}

.wizard-connector {
    height: 3px;
    background: #e0e0e0;
    flex: 1;
    margin-bottom: 20px;
    min-width: 20px;
}

.wizard-connector.completed {
    background: #4caf50;
}

/* Form Section */
.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1rem;
    color: #0a3d56;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: #ff9f3a;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.step-navigation button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
}

.btn-next:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

/* Fees Preview Box */
.fees-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.fees-preview h3 {
    font-size: 1rem;
    color: #0a3d56;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fees-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fees-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff9f3a;
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px;
    border-radius: 5px;
    z-index: 9999;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #4CAF50;
    color: #fff;
}

.toast.error {
    background: #f44336;
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-filter {
        flex-direction: column;
    }
    
    .search-input,
    .filter-select {
        width: 100%;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .action-btns {
        flex-wrap: wrap;
    }
    
    .action-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fees-grid {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .modal {
        width: 95%;
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
}

/* ============================================
   VENDOR & ADDITIONAL COMPONENT STYLES
   ============================================ */

/* Add Course Button (Green) */
.add-course-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.35);
}

/* Vendor Card (Orange gradient header) */
.vendor-card {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-radius: 18px;
    padding: 24px;
    color: #fff;
    margin-bottom: 24px;
}

.vendor-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.vendor-card .company {
    opacity: 0.9;
    margin-bottom: 16px;
}

/* Balance Grid */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.balance-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.balance-item span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.balance-item strong {
    font-size: 1.5rem;
}

/* Type Badge (Credit/Debit) */
.type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge.credit {
    background: #d4edda;
    color: #155724;
}

.type-badge.debit {
    background: #f8d7da;
    color: #721c24;
}

/* Institution Tabs */
.institution-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.institution-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.institution-tab:hover {
    border-color: #ff9f3a;
    color: #ff9f3a;
}

.institution-tab.active {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-color: transparent;
    color: #fff;
}

/* Course Fee Card */
.course-fee-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.course-fee-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #ff9f3a;
}

/* Fee Grid inside Course Fee Card */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fee-grid .fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.7rem;
}

.fee-grid .fee-item label {
    color: #666;
}

.fee-grid .fee-item .fee-value {
    font-weight: 600;
    color: #0a3d56;
    font-size: 0.7rem;
}

.fee-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid #ff9f3a;
}

.fee-total label {
    font-weight: 700;
    color: #0a3d56;
    font-size: 0.8rem;
}

.fee-total .total-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff6b35;
}

/* Inline Edit Buttons */
.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.edit-btn:hover {
    background: #bbdefb;
}

.save-btn {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.save-btn.visible {
    display: inline-block;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
}

.cancel-btn.visible {
    display: inline-block;
}

.delete-btn {
    background: #ffebee;
    color: #c62828;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ffcdd2;
}

/* Back Button (for sub-pages) */
.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats Row - 4 columns (for admin_payment, vendor_payments) */
.stats-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Amount Colors (vendor_payments style) */
.amount.positive {
    color: #27ae60;
    font-weight: 600;
}

.amount.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Payment Input */
.payment-input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: right;
}

/* Student List (for payment modals) */
.student-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.student-item:last-child {
    border-bottom: none;
}

.student-item .student-info {
    flex: 1;
}

.student-item .student-info strong {
    display: block;
    color: #0a3d56;
}

.student-item .student-info span {
    font-size: 0.85rem;
    color: #666;
}

.student-item .fee-info {
    text-align: right;
}

.student-item .fee-info .total {
    font-weight: 600;
    color: #0a3d56;
}

.student-item .fee-info .paid {
    font-size: 0.85rem;
    color: #27ae60;
}

.student-item .fee-info .due {
    font-size: 0.85rem;
    color: #e74c3c;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.payment-summary .summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Approve / Reject Buttons (admin) */
.btn-approve {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn-reject {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Filter Bar (admin_payment style) */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: #ff9f3a;
}

/* Vendor Info (admin_payment) */
.vendor-info {
    font-size: 0.85rem;
    color: #666;
}

.vendor-info strong {
    color: #0a3d56;
}

/* Discount Badge */
.discount-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
}

.discount-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.discount-badge.approved {
    background: #d4edda;
    color: #155724;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    gap: 8px;
}

.step-indicator .step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.step-indicator .step-dot.active {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    box-shadow: 0 0 0 3px rgba(255, 159, 58, 0.2);
    transform: scale(1.2);
}

.step-indicator .step-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

.step-indicator .step-dot.active + .step-label {
    color: #0a3d56;
    font-weight: 600;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 4px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.wizard-step .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.wizard-step.active .step-circle {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

.wizard-step.completed .step-circle {
    background: #4caf50;
    color: #fff;
}

.wizard-step .step-title {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.wizard-step.active .step-title {
    color: #0a3d56;
    font-weight: 700;
}

.wizard-step.completed .step-title {
    color: #4caf50;
}

.wizard-connector {
    height: 3px;
    background: #e0e0e0;
    flex: 1;
    margin-bottom: 20px;
    min-width: 20px;
}

.wizard-connector.completed {
    background: #4caf50;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.step-navigation button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
}

.btn-next:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

/* Discount Section */
.discount-section {
    background: #fff8e1;
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #ffc107;
    margin-top: 16px;
}

.discount-section h3 {
    color: #f57c00;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.discount-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.discount-input-group input:focus {
    outline: none;
    border-color: #ff9f3a;
}

.discount-note {
    font-size: 0.8rem;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Document Verification Section */
.doc-verification-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.doc-verification-section h3 {
    color: #0a3d56;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.document-item {
    background: white;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-item .doc-info strong {
    display: block;
    color: #0a3d56;
    margin-bottom: 4px;
}

.document-item .doc-info span {
    font-size: 0.85rem;
    color: #666;
}

.document-item .doc-actions {
    display: flex;
    gap: 8px;
}

.doc-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.doc-approve {
    background: #d4edda;
    color: #155724;
}

.doc-reject {
    background: #f8d7da;
    color: #721c24;
}

.doc-view {
    background: #e3f2fd;
    color: #1976d2;
}

.doc-verification-note {
    margin-top: 12px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

/* Status Description */
.status-description {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Course Item (institutions.html) */
.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
}

.course-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.course-info {
    flex: 1;
}

.course-info strong {
    display: block;
    color: #0a3d56;
    font-size: 0.95rem;
}

 .course-info span {
    font-size: 0.8rem;
    color: #666;
}

.course-item.inactive {
    background: #fafafa;
    opacity: 0.7;
}

.course-item.inactive .course-info strong {
    text-decoration: line-through;
    color: #999;
}

.course-actions {
    display: flex;
    gap: 6px;
}

/* Action button variants */
.action-btn.courses {
    background: #e8f5e9;
    color: #2e7d32;
}

.action-btn.courses:hover {
    background: #c8e6c9;
}

/* Text danger / success helpers */
.text-danger {
    color: #e74c3c;
    font-weight: 600;
}

.text-success {
    color: #27ae60;
    font-weight: 600;
}

/* Amount neutral helper */
.amount-neutral {
    color: #0a3d56;
    font-weight: 600;
}

/* Fee Details Section (fees_management, students) */
.fee-details-section {
    margin-bottom: 16px;
}

.fee-details-section:last-child {
    margin-bottom: 0;
}

.fee-details-label {
    font-weight: 600;
    color: #0a3d56;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-details-label i {
    color: #ff9f3a;
}

.fee-breakdown-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(240, 240, 240, 0.8);
}

.fee-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.6);
}

.fee-breakdown-row:last-child {
    border-bottom: none;
}

.fee-breakdown-row.total-row {
    border-top: 2px solid #ff9f3a;
    margin-top: 8px;
    padding-top: 12px;
}

.fee-breakdown-label {
    font-size: 0.9rem;
    color: #666;
}

.fee-breakdown-value {
    font-weight: 600;
    color: #0a3d56;
    font-size: 0.95rem;
}

.fee-breakdown-value.highlight {
    font-size: 1.1rem;
    color: #ff9f3a;
}

/* Vendor-specific components */
.vendor-card {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-radius: 18px;
    padding: 24px;
    color: #fff;
    margin-bottom: 24px;
}

.vendor-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.vendor-card .company {
    opacity: 0.9;
    margin-bottom: 16px;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.balance-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.balance-item span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.balance-item strong {
    font-size: 1.5rem;
}

.vendor-info-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.vendor-info-header {
    background: linear-gradient(135deg, #0a3d56 0%, #1a5a7a 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vendor-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vendor-details h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 4px;
}

.vendor-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.vendor-details .institution-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vendor-info-stats {
    display: flex;
    padding: 16px 24px;
    gap: 16px;
    background: #fff;
}

.vendor-info-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vendor-info-stats .stat-item span {
    display: block;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vendor-info-stats .stat-item strong {
    font-size: 1.1rem;
    color: #0a3d56;
}

/* Institution Tabs */
.institution-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.institution-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.institution-tab:hover {
    border-color: #ff9f3a;
    color: #ff9f3a;
}

.institution-tab.active {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-color: transparent;
    color: #fff;
}

/* Fees grid (vendor fees cards) */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.course-fee-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.course-fee-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #ff9f3a;
}

.card-header {
    background: linear-gradient(135deg, #0a3d56 0%, #1a5a7a 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-left h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-header-left .institution-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.card-header .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.card-header .badge.active {
    background: #4caf50;
    color: #fff;
}

.card-header .badge.inactive {
    background: #f44336;
    color: #fff;
}

.card-body {
    padding: 16px;
}

.fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fee-grid .fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.7rem;
}

.fee-grid .fee-item label {
    color: #666;
}

.fee-grid .fee-item .fee-value {
    font-weight: 600;
    color: #0a3d56;
    font-size: 0.7rem;
}

.fee-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid #ff9f3a;
}

.fee-total label {
    font-weight: 700;
    color: #0a3d56;
    font-size: 0.8rem;
}

.fee-total .total-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff6b35;
}

.action-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: flex-end;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.edit-btn:hover {
    background: #bbdefb;
}

.save-btn {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.save-btn.visible {
    display: inline-block;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
}

.cancel-btn.visible {
    display: inline-block;
}

.delete-btn {
    background: #ffebee;
    color: #c62828;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.7rem;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ffcdd2;
}

.add-course-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.35);
}

.back-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* Fee input (hidden by default, shown on edit) */
.fee-input {
    display: none;
    width: 90px;
}

.fee-input.editable {
    display: block !important;
    background: #fff;
    border-color: #ff9f3a;
    width: 90px;
}

.fee-input.readonly {
    border: none;
    background: transparent;
    padding: 4px 0;
    text-align: right;
    font-weight: 600;
    color: #0a3d56;
}

/* Payment summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.payment-summary .summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Student list (in payment modal) */
.student-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.student-item:last-child {
    border-bottom: none;
}

.student-item input[type="checkbox"] {
    margin-right: 12px;
}

.student-item .student-info {
    flex: 1;
}

.student-item .student-info strong {
    display: block;
    color: #0a3d56;
}

.student-item .student-info span {
    font-size: 0.85rem;
    color: #666;
}

.student-item .fee-info {
    text-align: right;
}

.student-item .fee-info .total {
    font-weight: 600;
}

.student-item .fee-info .paid {
    font-size: 0.85rem;
    color: #27ae60;
}

.student-item .fee-info .due {
    font-size: 0.85rem;
    color: #e74c3c;
}

.payment-input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: right;
}

/* Amount helpers for ledger/payments */
.amount {
    font-weight: 600;
    color: #0a3d56;
}

.amount.positive {
    color: #27ae60;
}

.amount.negative {
    color: #e74c3c;
}

.type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge.credit {
    background: #d4edda;
    color: #155724;
}

.type-badge.debit {
    background: #f8d7da;
    color: #721c24;
}

/* Modal max-width variants */
.modal {
    background: #fff;
    border-radius: 18px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-sm {
    max-width: 500px;
}

.modal-lg {
    max-width: 800px;
}

/* Form display (read-only view in modals) */
.form-display-group {
    margin-bottom: 16px;
}

.form-display-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.form-display-group p {
    font-size: 1rem;
    color: #0a3d56;
    font-weight: 500;
    margin: 0;
}

/* Empty state table cell */
.empty-table-cell {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Section heading inside modals */
.section-heading {
    color: #0a3d56;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Remarks textarea in confirm modal */
.remarks-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.remarks-textarea:focus {
    outline: none;
    border-color: #ff9f3a;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Select multiple height */
.select-multi {
    height: 120px;
}

/* Form hint text */
.form-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Modal body section spacing */
.modal-body-section {
    margin-top: 16px;
}

/* Vendor info in payment details */
.vendor-info {
    font-size: 0.85rem;
    color: #666;
}

.vendor-info strong {
    color: #0a3d56;
}

.fee-breakdown-value.positive {
    color: #27ae60;
}

.fee-breakdown-value.negative {
    color: #e74c3c;
}

/* Form Section (students view modal) */
.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1rem;
    color: #0a3d56;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: #ff9f3a;
}
/* Modal size variants */
.modal-lg {
    max-width: 800px;
}

.modal-sm {
    max-width: 500px;
}

/* Text helpers */
.text-bold {
    font-weight: 600;
}

.text-bold-lg {
    font-weight: 600;
    font-size: 1.1rem;
}

.text-accent {
    font-weight: 700;
    color: #ff9f3a;
}

.text-muted {
    color: #999;
}

.text-muted-sm {
    color: #666;
    font-size: 0.8rem;
}

/* Payable amount box (admissions) */
.payable-box {
    background: #fff3e0;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff9f3a;
    margin-top: 10px;
}

.payable-label {
    color: #e65100;
    font-weight: 700;
    font-size: 0.9rem;
}

.payable-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff9f3a;
    margin: 5px 0 0 0;
}

/* Documents section */
.documents-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Uploaded document item */
.uploaded-doc-item {
    padding: 8px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-remove-btn {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
}

/* View document item */
.view-doc-item {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Modal footer actions row */
.modal-actions-row {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

/* Full-width button */
.btn-full-width {
    width: 100%;
}

/* Wizard step button visibility */
.step-btn-hidden {
    display: none;
}

.step-btn-visible {
    display: inline-block;
}
/* Bold text helper */
.text-bold {
    font-weight: 600;
}

/* Section heading (documents, etc.) */
.section-heading {
    color: #0a3d56;
    margin-bottom: 12px;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Uploaded documents list heading */
.uploaded-docs-heading {
    margin-bottom: 8px;
    color: #0a3d56;
}

/* Uploaded doc item */
.uploaded-doc-item {
    padding: 8px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uploaded-doc-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uploaded-doc-type {
    font-size: 0.8rem;
    color: #666;
    margin-left: 8px;
}

.doc-remove-btn {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
}

/* View doc item */
.view-doc-item {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.view-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-doc-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

/* Payable box (submit verify modal) */
.payable-box {
    background: #fff3e0;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff9f3a;
    margin-top: 10px;
}

.payable-label {
    color: #e65100;
    font-weight: 700;
    font-size: 0.9rem;
}

.payable-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff9f3a;
    margin: 5px 0 0 0;
}

/* Table cell helpers */
.cell-bold {
    font-weight: 600;
}

.cell-accent {
    font-weight: 700;
    color: #ff9f3a;
}
/* Flex center helper */
.flex-center {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
/* Fees item total with accent border */
.fees-item-total-accent {
    border-top: 2px solid #ff9f3a;
}
/* Margin bottom helper */
.mb-16 {
    margin-bottom: 16px;
}
/* Margin horizontal helper */
.mx-8 {
    margin: 0 8px;
}
/* Margin top helper */
.mt-10 {
    margin-top: 10px;
}
/* Margin bottom helper */
.mb-12 {
    margin-bottom: 12px;
}
/* Submit success button variant */
.btn-submit-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   VENDOR PORTAL SHARED STYLES
   (extracted from vendor/ inline styles)
   ============================================ */

/* Stat card value (vendor index/fees style) */
.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a3d56;
}

.stat-card .value.positive {
    color: #27ae60;
}

.stat-card .value.negative {
    color: #e74c3c;
}

/* Action button large variant (vendor index quick actions) */
.action-btn-large {
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.action-btn-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.action-btn-large i {
    font-size: 2rem;
    margin-bottom: 12px;
}

.action-btn-large.add i { color: #4caf50; }
.action-btn-large.fees i { color: #ff9800; }
.action-btn-large.documents i { color: #2196f3; }
.action-btn-large.report i { color: #9c27b0; }

.action-btn-large span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a3d56;
}

/* Form card (vendor admissions) */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

/* Step indicator line (vendor admissions wizard) */
.step-indicator .step-line {
    width: 30px;
    height: 2px;
    background: #ddd;
    align-self: center;
    transition: all 0.3s ease;
}

/* Step content (vendor admissions wizard) */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #0a3d56;
}

.step-title i {
    color: #ff9f3a;
}

/* Discount status badge (vendor admissions) */
.discount-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.discount-status.pending { background: #fff3cd; color: #856404; }
.discount-status.approved { background: #d4edda; color: #155724; }
.discount-status.rejected { background: #f8d7da; color: #721c24; }
.discount-status.not_applied { background: #e2e3e5; color: #383d41; }

/* Payment details (vendor fees modal) */
.payment-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.payment-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Action button collect variant (vendor fees) */
.action-btn.collect {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
}

/* Disabled collect button (pending status) */
.action-btn.collect.disabled,
.action-btn.collect:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* Info card (vendor documents) */
.info-card {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card i {
    color: #1976d2;
    font-size: 1.3rem;
}

.info-card p {
    color: #0a3d56;
    margin: 0;
}

/* Document badges (vendor documents) */
.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-badge.photo { background: #e8f5e9; color: #2e7d32; }
.doc-badge.aadhar { background: #fff3e0; color: #f57c00; }
.doc-badge.marksheet { background: #e3f2fd; color: #1976d2; }
.doc-badge.transfer_certificate { background: #fce4ec; color: #c2185b; }
.doc-badge.income_certificate { background: #fff8e1; color: #f57f17; }
.doc-badge.caste_certificate { background: #f3e5f5; color: #7b1fa2; }
.doc-badge.domicile { background: #e0f7fa; color: #0097a7; }
.doc-badge.other { background: #f3e5f5; color: #7b1fa2; }

/* Action button upload variant (vendor documents) */
.action-btn.upload {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
}

/* Document upload rows (vendor documents) */
.document-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.doc-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.doc-row .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a3d56;
    display: block;
}

.doc-row .form-group select,
.doc-row .form-group input[type="file"] {
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.doc-row .form-group select:focus,
.doc-row .form-group input:focus {
    outline: none;
    border-color: #ff9f3a;
    box-shadow: 0 0 0 3px rgba(255, 159, 58, 0.1);
}

.doc-row .remove-btn {
    padding: 12px;
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 28px;
    transition: all 0.2s;
}

.doc-row .remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

.add-more-btn {
    padding: 14px 24px;
    background: #fff;
    color: #ff9f3a;
    border: 2px dashed #ff9f3a;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    transition: all 0.2s;
}

.add-more-btn:hover {
    background: #fff5e6;
    border-style: solid;
}

.doc-row-number {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 24px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.doc-count {
    font-size: 0.85rem;
    color: #666;
}

/* Tabs (vendor documents) */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab.active {
    color: #ff9f3a;
    border-bottom-color: #ff9f3a;
}

/* Student info bar (vendor documents) */
.student-info-bar {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.student-info-bar h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.student-info-bar p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Existing documents (vendor documents) */
.existing-docs {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.existing-docs h4 {
    margin: 0 0 12px 0;
    color: #0a3d56;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.existing-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.existing-doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    width: 110px;
    transition: all 0.2s;
}

.existing-doc-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.existing-doc-item .doc-preview {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
}

.existing-doc-item .doc-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.existing-doc-item .doc-preview i {
    font-size: 1.5rem;
    color: #999;
}

.existing-doc-item .doc-type-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a3d56;
    text-align: center;
    word-break: break-word;
}

.existing-doc-item .doc-file-name {
    font-size: 0.65rem;
    color: #999;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.existing-doc-item .view-btn {
    margin-top: 6px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.existing-doc-item .view-btn:hover {
    background: #1976d2;
    color: white;
}

.no-docs {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Date filter (vendor fees_history) */
.date-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-filter input {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 150px;
}

/* Action button slip variant (vendor fees_history) */
.action-btn.slip {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.slip:hover {
    background: #bbdefb;
}

/* Fees slip styles (vendor fees_history) */
.slip-header {
    text-align: center;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.slip-header h3 {
    margin: 0 0 8px 0;
    color: #0a3d56;
    font-size: 1.2rem;
}

.slip-header p {
    margin: 4px 0;
    color: #666;
    font-size: 0.9rem;
}

.slip-section {
    margin-bottom: 20px;
}

.slip-section h4 {
    margin: 0 0 12px 0;
    color: #0a3d56;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.slip-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.slip-row:last-child {
    border-bottom: none;
}

.slip-row label {
    color: #666;
    font-weight: 500;
}

.slip-row span {
    color: #0a3d56;
    font-weight: 600;
}

.slip-total {
    border-top: 2px solid #ddd;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 1.1rem;
}

.slip-total span {
    color: #ff9f3a;
    font-size: 1.2rem;
}

/* Payment mode badge (vendor fees_history) */
.payment-mode-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.payment-mode-badge.cash { background: #e3f2fd; color: #1976d2; }
.payment-mode-badge.online { background: #e8f5e9; color: #2e7d32; }
.payment-mode-badge.bank_transfer { background: #fff3e0; color: #e65100; }
.payment-mode-badge.upi { background: #f3e5f5; color: #7b1fa2; }
.payment-mode-badge.cheque { background: #fce4ec; color: #c2185b; }

.btn-print {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn-whatsapp {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Report cards (vendor reports) */
.report-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.report-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.report-card h3 {
    font-size: 1.1rem;
    color: #0a3d56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-card h3 i {
    color: #ff9f3a;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.summary-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a3d56;
}

.summary-stat .label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* Action section (vendor vendor_payments) */
.action-section {
    background: linear-gradient(135deg, #0f3d5b 0%, #1a5a7a 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(15, 61, 91, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.action-section h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
}

.action-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 24px;
    position: relative;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.btn-primary i {
    font-size: 1.3rem;
}

/* Stat card enhancements (vendor vendor_payments) */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f3d5b, #1a5a7a);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.collected {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.stat-icon.paid {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a3d56;
    margin: 0;
    line-height: 1;
}

.stat-value.positive {
    color: #27ae60;
}

.stat-value.warning {
    color: #f39c12;
}

.stat-description {
    font-size: 0.8rem;
    color: #999;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table section (vendor vendor_payments) */
.table-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a3d56;
    margin: 0;
}

.table-title i {
    color: #0f3d5b;
    font-size: 1.2rem;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status badge completed variant */
.status-badge.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* Modal animations (vendor vendor_payments) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal title area (vendor vendor_payments) */
.modal-title-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.modal-date-picker {
    margin-left: auto;
}

.modal-date-picker input {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0a3d56;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-date-picker input:focus {
    outline: none;
    border-color: #ff9f3a;
    box-shadow: 0 0 0 3px rgba(255, 159, 58, 0.1);
}

.modal-close:hover {
    background: #f1f3f4;
    color: #333;
    transform: rotate(90deg);
}

/* Form placeholder */
.form-group input::placeholder {
    color: #adb5bd;
}

/* Student item variants (vendor vendor_payments) */
.student-item:last-child {
    border-bottom: none;
}

.student-item:hover {
    background: #f8f9fa;
}

#student-checkbox {
    width: auto;
    height: 20px;
    cursor: pointer;
    accent-color: #ff9f3a;
    flex-shrink: 0;
}

.student-info {
    min-width: 0;
}

.student-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a3d56;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-details {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.student-breakdown {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 12px;
}

.student-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.payment-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.payment-input:focus {
    outline: none;
    border-color: #ff9f3a;
    box-shadow: 0 0 0 4px rgba(255, 159, 58, 0.1);
}

.payment-max {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

/* Payment summary (vendor vendor_payments style) */
.payment-summary {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid #e9ecef;
    margin-top: 12px;
    padding-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a3d56;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: #0a3d56;
}

.summary-value.highlight {
    font-size: 1.3rem;
    color: #ff6b35;
}

/* Modal footer (vendor vendor_payments style) */
.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #fff;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.btn-submit {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form row (vendor vendor_payments) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Print styles (vendor fees_history) */
@media print {
    .modal-overlay {
        position: static;
        background: white;
    }
    .modal {
        box-shadow: none;
        max-width: 100%;
    }
    .modal-footer {
        display: none;
    }
}

/* Vendor welcome card (vendor index) */
.vendor-welcome {
    background: linear-gradient(135deg, #ff9f3a 0%, #ff6b35 100%);
    border-radius: 18px;
    padding: 24px;
    color: #fff;
    margin-bottom: 24px;
}

.vendor-welcome h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.vendor-welcome p {
    margin: 0;
    opacity: 0.9;
}

.vendor-welcome .institution-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 12px;
}

/* Stats grid (vendor index) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Quick actions (vendor index) */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Scrollbar hide utility */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

/* Modal body scrollbar hide (vendor documents) */
.modal-body::-webkit-scrollbar {
    display: none;
}
.modal-body {
    scrollbar-width: none;
    -ms-scrollbar-width: none;
}

/* Form group no-margin variant (for read-only display in modals) */
.form-group.no-margin { margin-bottom: 0; }

/* Status badge gray variant (documents not-required) */
.status-badge.gray {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Logo image (vendor login) */
.login-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    margin-bottom: 10px;
}

/* Form grid gap variant */
.form-grid-gap { gap: 16px; }

/* ============================================
   UTILITY CLASSES (replaces inline styles)
   ============================================ */

/* Margin helpers */
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-8  { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.mt-10 { margin-top: 10px; }
.mt-8  { margin-top: 8px; }
.mx-8  { margin: 0 8px; }

/* Padding helpers */
.p-16  { padding: 16px; }
.p-20  { padding: 20px; }
.p-24  { padding: 24px; }

/* Grid helpers */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.grid-auto-fit-400 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Flex helpers */
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-12 { display: flex; gap: 12px; }
.flex-gap-16 { display: flex; gap: 16px; }

/* Overflow helpers */
.overflow-x-auto { overflow-x: auto; }

/* Make tables inside cards horizontally scrollable when content is wider than the viewport */
.table-card {
    overflow-x: auto;
}
.table-card .data-table {
    min-width: 760px;
}
.table-card .data-table th,
.table-card .data-table td {
    white-space: nowrap;
}

/* Text helpers */
.text-center { text-align: center; }
.text-muted { color: #999; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

/* Color helpers */
.text-primary { color: #0a3d56; }
.text-success { color: #27ae60; }
.text-danger  { color: #e74c3c; }

/* Font weight helpers */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

/* Width helpers */
.w-100 { width: 100%; }

/* Vendor item (dashboard index vendor list) */
.vendor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}
.vendor-item .vendor-name {
    font-weight: 600;
    color: #0a3d56;
}
.vendor-item .vendor-company {
    font-size: 0.85rem;
    color: #666;
}
.vendor-item .vendor-students {
    text-align: right;
}
.vendor-item .vendor-students .count {
    font-weight: 600;
    color: #0a3d56;
}
.vendor-item .vendor-students .label {
    font-size: 0.75rem;
    color: #666;
}

/* Fee status bar (dashboard index) */
.fee-status-bar { margin-bottom: 16px; }
.fee-status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.fee-status-name {
    font-weight: 500;
    color: #0a3d56;
}
.fee-status-amount {
    font-weight: 600;
    color: #0a3d56;
}
.fee-status-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fee-status-track {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.fee-status-fill {
    height: 100%;
    width: var(--fill-width, 0%);
    border-radius: 4px;
    transition: width 0.3s;
}
.fee-status-fill.complete { background: #4caf50; }
.fee-status-fill.partial { background: #ff9f3a; }
.fee-status-fill.none    { background: #e0e0e0; }
.fee-status-percent {
    font-size: 0.85rem;
    color: #666;
    min-width: 45px;
    text-align: right;
}
.fee-status-discount {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #666;
}
.fee-status-discount .payable {
    color: #4caf50;
    font-weight: 600;
}

/* Section heading (replaces inline h3 with color/margin) */
.section-heading {
    color: #0a3d56;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty table cell (centered) */
.empty-table-cell {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Modal size variants */
.modal-sm { max-width: 500px; }
.modal-lg { max-width: 800px; }

/* Form display group (read-only in modals) */
.form-display-group { margin-bottom: 16px; }
.form-display-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}
.form-display-group p {
    font-size: 1rem;
    color: #0a3d56;
    font-weight: 500;
    margin: 0;
}

/* Action buttons row */
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Confirm dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.confirm-dialog {
    background: white;
    border-radius: 18px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.confirm-dialog-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.confirm-dialog-message {
    font-size: 1.1rem;
    color: #0a3d56;
    margin-bottom: 24px;
}
.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}