/* Section */

        /* Section */
        #update-student-data-page .header {
            margin-bottom: 4px !important;
            padding: 2px 0 !important;
        }

        /* Section */
        .teacher-section-tabs {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
            max-width: 1300px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 0.25rem;
        }

        .teacher-section-tab {
            flex: 1;
            padding: 0.7rem 1rem;
            border: 1px solid rgba(30, 58, 138, 0.2);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.6);
            color: #1e3a8a;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
        }

        body.dark-mode .teacher-section-tab {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            color: #e0e0e0;
        }

        .teacher-section-tab:hover {
            background: rgba(30, 58, 138, 0.1);
            transform: translateY(-1px);
        }

        .teacher-section-tab.active {
            background: linear-gradient(135deg, #1e3a8a, #1e40af);
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
        }

        .teacher-section-tab.active i {
            color: #ffffff;
        }

        @media (max-width: 640px) {
            .teacher-section-tabs {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        #update-student-data-page .header h1 {
            font-size: 1.25rem !important;
            margin-bottom: 0 !important;
            letter-spacing: 0.5px !important;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }

        /* Section */
        #update-student-data-page > .update-top-actions,
        #update-student-data-page > .header,
        #update-student-data-page > .filters-card,
        #update-student-data-page > #update-students-data-container {
            max-width: 1300px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Section */
        .filters-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            padding: 1px;
            margin-bottom: 1px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        body:not(.dark-mode) .filters-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
        }

        .filters-row, .filters-body {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: flex-end;
            justify-content: flex-start;
        }

        .filter-item, .filter-group {
            min-width: 160px;
            flex: 0 0 auto;
        }

        .filter-label, .filter-group label {
            display: flex;
            align-items: center;
            gap: 3px;
            color: #ffffff;
            font-weight: 600;
            margin-bottom: 1px;
            font-size: 0.7rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
            line-height: 1;
        }

        body:not(.dark-mode) .filter-label, 
        body:not(.dark-mode) .filter-group label {
            color: #1e293b;
            text-shadow: none;
        }

        .filter-label i, .filter-group label i {
            font-size: 0.75rem !important;
            color: inherit;
        }

        .input-shell {
            position: relative;
        }

        .input-shell .left-icon {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            pointer-events: none;
            font-size: 0.7rem;
        }

        /* Section */
        .compact-filter-select {
            width: 100%;
            height: 28px;
            padding: 0 24px 0 6px;
            border-radius: 5px;
            border: 1px solid rgba(209, 213, 219, 1);
            background: #ffffff;
            color: #111827;
            font-size: 0.75rem;
            transition: all 0.2s;
            appearance: none;
            position: relative;
            line-height: 1.2;
        }

        .compact-filter-select:hover {
            border-color: #1e3a8a;
            box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
        }

        .compact-filter-select:focus {
            outline: none;
            border-color: #1e3a8a;
            box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
            transform: translateY(-1px);
        }

        /* Section */
        .input-shell::after {
            content: "";
            position: absolute;
            inset: -1px;
            border-radius: 6px;
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.3));
            z-index: -1;
            opacity: 0;
            transition: opacity .2s;
        }

        .input-shell:has(.compact-filter-select:hover)::after,
        .input-shell:has(.compact-filter-select:focus)::after {
            opacity: 1;
        }

        /* label input */
        .filter-item .input-shell {
            margin-top: 0;
        }

        /* Section */
        #update-students-table-container {
            max-height: calc(100vh - 120px) !important;
            overflow: auto;
            margin-top: 2px;
        }

        #update-students-table-container .table-responsive {
            background: #ffffff;
            border-radius: 12px;
            overflow: visible !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        #update-students-table-container table {
            font-size: 0.85rem !important;
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            table-layout: auto;
        }

        /* Section */
        #update-students-table-container table th:last-child,
        #update-students-table-container table td:last-child {
            min-width: 180px !important;
            width: 180px !important;
            max-width: 180px !important;
            overflow: visible !important;
        }

        #update-students-table-container table td:last-child {
            background: inherit !important;
        }

        #update-students-table-container thead {
            position: sticky;
            top: 0;
            z-index: 100;
        }

        #update-students-table-container thead th {
            padding: 8px 10px !important;
            font-size: 0.85rem !important;
            font-weight: 600;
            white-space: nowrap;
            position: sticky;
            top: 0;
            z-index: 100;
            background: #1e3a8a !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            position: relative;
            user-select: none;
        }

        /* Section */
        #update-students-table-container thead th .resizer {
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            cursor: col-resize;
            background: transparent;
            z-index: 101;
            user-select: none;
        }

        #update-students-table-container thead th .resizer:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        #update-students-table-container thead th .resizer.active {
            background: rgba(255, 255, 255, 0.5);
        }

        #update-students-table-container thead th.resizing {
            background: #1e40af !important;
        }

        #update-students-table-container tbody td {
            padding: 6px 8px !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.82rem !important;
        }

        #update-students-table-container .date-cell {
            font-size: 0.78rem !important;
            padding: 5px 6px !important;
            white-space: nowrap !important;
            max-width: 140px !important;
            text-align: center !important;
        }

        #update-students-table-container tbody tr {
            height: auto;
            transition: background-color 0.2s;
        }

        #update-students-table-container tbody tr:hover {
            background-color: #f1f5f9 !important;
        }

        /* highlighted row */
        #update-students-table-container tbody tr.highlighted-row {
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%) !important;
            border: 2px solid rgba(245, 158, 11, 0.4) !important;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
        }

        #update-students-table-container tbody tr.highlighted-row:hover {
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%) !important;
        }

        #update-students-table-container select {
            height: 36px !important;
            padding: 6px 10px !important;
            font-size: 0.85rem !important;
        }

        /* IndexHead */

        /* Section */
        #update-column-manager-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        #update-column-manager-modal.active {
            display: flex;
        }

        #update-column-manager-content {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 2rem;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.3);
            direction: rtl;
        }

        #update-column-manager-content h3 {
            color: #1e293b;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 0 1.5rem 0;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        #update-column-manager-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 1.5rem;
        }

        .update-column-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            border: 2px solid rgba(99, 102, 241, 0.2);
            transition: all 0.3s ease;
        }

        .update-column-item:hover {
            border-color: #1e3a8a;
            background: rgba(99, 102, 241, 0.05);
            transform: translateX(-5px);
        }

        .update-column-item input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #1e3a8a;
        }

        .update-column-item label {
            flex: 1;
            cursor: pointer;
            font-size: 1rem;
            color: #374151;
            font-weight: 500;
            user-select: none;
        }

        #update-column-manager-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        #update-column-manager-buttons button {
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        #update-column-manager-save {
            background: linear-gradient(135deg, #1e3a8a, #1e40af);
            color: white;
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

        #update-column-manager-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
        }

        #update-column-manager-cancel {
            background: linear-gradient(135deg, #64748b, #475569);
            color: white;
            box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
        }

        #update-column-manager-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
        }

        /* Documentation Modal Styles */
        .update-doc-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 10001;
            justify-content: center;
            align-items: center;
            overflow-y: auto;
            padding: 20px;
        }

        .update-doc-modal.active {
            display: flex;
        }

        .update-doc-content {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 0;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.3);
            direction: rtl;
            display: flex;
            flex-direction: column;
        }

        .update-doc-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 20px 20px 0 0;
        }

        .update-doc-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .update-doc-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .update-doc-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .update-doc-student-info {
            background: rgba(102, 126, 234, 0.1);
            padding: 15px 30px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.2);
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .update-doc-student-info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #374151;
            font-weight: 500;
        }

        .update-doc-student-info-item i {
            color: #667eea;
        }

        .update-doc-tabs {
            display: flex;
            background: #f3f4f6;
            border-bottom: 2px solid #e5e7eb;
            padding: 0 30px;
            gap: 5px;
        }

        .update-doc-tab {
            background: transparent;
            border: none;
            padding: 15px 25px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            color: #6b7280;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .update-doc-tab:hover {
            color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }

        .update-doc-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
            background: white;
        }

        .update-doc-tab-content {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
        }

        .update-doc-tab-panel {
            display: none;
        }

        .update-doc-tab-panel.active {
            display: block;
        }

        .update-doc-form-group {
            margin-bottom: 20px;
        }

        .update-doc-form-group label {
            display: block;
            margin-bottom: 8px;
            color: #374151;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .update-doc-form-group label i {
            color: #667eea;
        }

        .update-doc-form-group input[type="text"],
        .update-doc-form-group input[type="file"],
        .update-doc-form-group select,
        .update-doc-form-group input[type="range"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s;
            background: white;
        }

        .update-doc-form-group input[type="text"]:focus,
        .update-doc-form-group select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .update-doc-form-group input[type="file"] {
            padding: 10px;
            cursor: pointer;
        }

        .update-doc-form-group input[type="range"] {
            padding: 0;
            height: 8px;
            cursor: pointer;
        }

        .update-doc-form-group small {
            display: block;
            margin-top: 5px;
            color: #6b7280;
            font-size: 0.85rem;
        }

        .update-doc-range-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 0.85rem;
            color: #6b7280;
        }

        .update-doc-survey-section {
            background: #f9fafb;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid #e5e7eb;
        }

        .update-doc-survey-section h3 {
            margin: 0 0 15px 0;
            color: #667eea;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .update-doc-submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 20px auto 0;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .update-doc-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .update-doc-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .update-docs-list {
            padding: 30px;
            max-height: 60vh;
            overflow-y: auto;
        }
        .update-doc-tab-panel .update-docs-list {
            padding: 0;
            max-height: 50vh;
        }

        .update-doc-item {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .update-doc-item:hover {
            border-color: #667eea;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
        }

        .update-doc-item-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .update-doc-item-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }

        .update-doc-item-icon.image {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        .update-doc-item-icon.audio {
            background: linear-gradient(135deg, #f093fb, #f5576c);
        }

        .update-doc-item-icon.video {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
        }

        .update-doc-item-icon.survey {
            background: linear-gradient(135deg, #43e97b, #38f9d7);
        }

        .update-doc-item-details h4 {
            margin: 0 0 5px 0;
            color: #374151;
            font-size: 1rem;
        }

        .update-doc-item-details p {
            margin: 0;
            color: #6b7280;
            font-size: 0.85rem;
        }

        .update-doc-item-actions {
            display: flex;
            gap: 10px;
        }

        .update-doc-item-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .update-doc-item-btn:hover {
            background: #5568d3;
            transform: translateY(-2px);
        }
      /* =========================================
     CARD VIEW STYLES (Mobile Responsive)
     ========================================= */

  #update-students-cards-container {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
  }

  .student-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
  }

  .student-card.highlighted {
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 25px rgba(251, 191, 36, 0.2);
  }

  .card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.25rem;
    position: relative;
  }

  .card-serial {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .card-title-row {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .card-student-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
  }

  .card-actions-top {
    display: flex;
    gap: 8px;
  }

  .card-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }

  .card-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .card-body {
    padding: 1rem;
  }

  .card-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .info-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .info-value {
    font-size: 0.95rem;
    color: #1e293b;
    width: 100%;
  }

  /* Section */
  .info-value input,
  .info-value select {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    background: #fdfdfd !important;
  }

  .info-value input:focus,
  .info-value select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
  }

  .card-footer {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }

  .card-footer button {
    flex: 1;
    justify-content: center;
  }

  /* View Toggle Button */
  .view-toggle-container {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    margin: 0 10px;
  }

  .toggle-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }

  .toggle-btn.active {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    #update-students-table-container {
      display: none;
    }

    #update-students-cards-container {
      display: flex;
    }

    .view-toggle-container {
      display: none; /* Hide toggle on small mobile if we want to force cards */
    }

    /* Fixed Header for Mobile */
    .update-header-section {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: white;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
  }

  /* Fixed Header for Table View Horizontal Sync */
  .table-responsive {
    position: relative;
  }

  .update-students-table thead th {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  /* =========================================
     ADVANCED FILTERS STYLES
     ========================================= */

  .filters-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
  }

  .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .filters-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .advanced-filters-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0 8px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .advanced-filters-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
  }

  .advanced-filters-btn i.fa-chevron-up {
    transition: transform 0.3s;
  }

  .advanced-filters-btn.collapsed i.fa-chevron-up {
    transform: rotate(180deg);
  }

  /* Section */
  .filters-inline-control {
    display: inline-flex;
    align-items: center;
  }
  .filters-inline-control .filter-action-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0 8px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .filters-inline-control .filter-action-btn:hover {
    background: #059669;
  }
  /* Update-section advanced filters: premium card */
  .update-filters-card {
    border: 1px solid #e0e7ff;
    border-top: 4px solid #4f46e5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.10);
    padding: 14px 20px 12px;
  }
  .update-filters-card .filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2ff;
  }
  .update-filters-card .filters-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .update-filters-card .filters-panel-actions .filter-action-btn {
    padding: 7px 20px;
    border-radius: 9px;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  }
  .update-filters-card .filters-panel-actions .filter-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .update-filters-card .filters-panel-actions .btn-search {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .update-filters-card .filters-panel-actions .btn-reset {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .update-filters-card .filters-panel-actions .btn-reset:hover {
    background: #d97706;
  }
  .update-filters-card .filters-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #312e81;
  }
  .update-filters-card .filters-panel-title i {
    color: #4f46e5;
  }
  .update-filters-card .filters-panel-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
  }
  .update-filters-card .filter-grid-label {
    color: #4338ca;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .update-filters-card .filter-grid-label i {
    color: #7c3aed;
    font-size: 0.72rem;
  }
  .update-filters-card .filter-grid-input,
  .update-filters-card .filter-grid-select {
    height: 35px;
    border-radius: 9px;
    border: 1px solid #c7d2fe;
    background: #fbfbff;
    font-size: 0.82rem;
  }
  .update-filters-card .filter-grid-input:focus,
  .update-filters-card .filter-grid-select:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  }
  .update-filters-card .filter-date-input {
    direction: ltr;
  }
  .view-toggle-container {
    display: inline-flex;
    background: #e2e8f0;
    padding: 2px;
    border-radius: 8px;
    margin: 0;
  }
  .view-toggle-container .toggle-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
  }
  .view-toggle-container .toggle-btn i {
    font-size: 0.7rem;
  }

  .filter-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-chip {
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bfdbfe;
    animation: fadeIn 0.3s ease;
  }

  .filter-chip i {
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .filter-chip i:hover {
    opacity: 1;
  }

  .filters-body {
    padding: 1px 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    transition: all 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: visible;
  }

  .filters-body.collapsed {
    max-height: 0;
    padding: 0 2px;
    opacity: 0;
    pointer-events: none;
  }

  .filter-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .filter-group.date-range-group {
    flex: 2;
    min-width: 300px;
  }

  .filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
  }

  .date-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
  }

  .date-input-wrapper {
    position: relative;
    flex: 1;
  }

  .date-input-wrapper input {
    width: 100%;
    padding: 4px 8px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 0.75rem;
    color: #334155;
    background: white;
  }

  .date-separator {
    color: #94a3b8;
    font-weight: 600;
  }

  /* Section */
    .filters-panel-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 2px 4px;
        margin: 0;
        box-shadow: none;
    }
    body.dark-mode .filters-panel-card {
        background: #1e293b;
        border-color: #334155;
    }
    .filters-grid-row {
        display: grid;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 2px;
        margin-bottom: 0;
        align-items: end;
    }
    .filters-grid-row:last-of-type {
        margin-bottom: 0;
    }
    .filter-grid-cell {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }
    .filter-grid-label {
        font-size: 0.6rem;
        font-weight: 600;
        color: #64748b;
        text-align: center;
        white-space: nowrap;
        margin-bottom: 0;
        line-height: 1;
        padding: 1px 0;
    }
    body.dark-mode .filter-grid-label {
        color: #94a3b8;
    }
    .filter-grid-input,
    .filter-grid-select {
        width: 100%;
        height: 26px;
        padding: 0 4px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        background: #ffffff;
        color: #374151;
        font-size: 0.7rem;
        transition: border-color 0.15s, box-shadow 0.15s;
        outline: none;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.dark-mode .filter-grid-input,
    body.dark-mode .filter-grid-select {
        background: #0f172a;
        border-color: #475569;
        color: #e2e8f0;
    }
    .filter-grid-input:focus,
    .filter-grid-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }
    .filter-grid-input::placeholder {
        color: #9ca3af;
        font-size: 0.65rem;
    }
    .filters-actions-row {
        display: flex;
        justify-content: flex-end;
        gap: 4px;
        margin-top: 2px;
        padding-top: 2px;
        border-top: none;
    }
    body.dark-mode .filters-actions-row {
        border-top-color: transparent;
    }
    .filter-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 0 8px;
        border-radius: 4px;
        border: none;
        font-size: 0.65rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        height: 22px;
    }
    .filter-action-btn i {
        font-size: 0.65rem;
    }
    .filter-action-btn.btn-search {
        background: #3b82f6;
        color: #ffffff;
    }
    .filter-action-btn.btn-search:hover {
        background: #2563eb;
    }
    .filter-action-btn.btn-reset {
        background: #10b981;
        color: #ffffff;
    }
    .filter-action-btn.btn-reset:hover {
        background: #059669;
    }
    /* responsive grid */
    @media (max-width: 1200px) {
        .filters-grid-row {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }
    }
    @media (max-width: 768px) {
        .filters-grid-row {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    @media (max-width: 480px) {
        .filters-grid-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

/* ========== Table Tooltip Styles ========== */
.update-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.update-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.update-tooltip::after {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.update-tooltip:hover::before,
.update-tooltip:hover::after {
  opacity: 1;
}

/* ========== Icon Buttons in Table ========== */
.update-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
  margin: 0 2px;
  text-decoration: none;
}
.update-icon-btn:hover {
  background: rgba(30, 58, 138, 0.2);
  transform: scale(1.1);
}

/* Level popup styles */
.level-popup {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 200;
  min-width: 190px;
  direction: rtl;
  text-align: right;
}
#update-students-table-container .level-popup {
  display: none;
}

/* Section */
#update-groups-screen {
    display: none;
    margin-top: 8px;
}
#update-groups-screen.active {
    display: block;
}
.groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
    gap: 8px;
}
body:not(.dark-mode) .groups-header {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.groups-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}
body:not(.dark-mode) .groups-header h2 {
    color: #1e293b;
}
.groups-header h2 i {
    color: #3b82f6;
}
.groups-header .groups-count-badge {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(59,130,246,0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}
body:not(.dark-mode) .groups-header .groups-count-badge {
    background: rgba(59,130,246,0.08);
}

/* ===== Groups Per-Page Selector ===== */
.groups-page-size-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px 8px;
}
body:not(.dark-mode) .groups-page-size-control {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.groups-page-size-control label {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}
body:not(.dark-mode) .groups-page-size-control label {
    color: #64748b;
}
.groups-page-size-control select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 2px 0;
    min-width: 40px;
}
body:not(.dark-mode) .groups-page-size-control select {
    color: #1e293b;
}
.groups-page-size-control select option {
    color: #1e293b;
    background: #ffffff;
}

.groups-btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
body:not(.dark-mode) .groups-btn-back {
    border-color: #d1d5db;
    color: #374151;
}
.groups-btn-back:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
body:not(.dark-mode) .groups-btn-back:hover {
    background: #f1f5f9;
}
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 4px 0;
}
.group-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
body:not(.dark-mode) .group-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    opacity: 0;
    transition: opacity 0.25s;
}
.group-card:hover::before {
    opacity: 1;
}
.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}
body:not(.dark-mode) .group-card:hover {
    box-shadow: 0 8px 25px rgba(59,130,246,0.12);
    border-color: #3b82f6;
}
.group-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
}
/* Section */
.group-card-avatar-name {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
    letter-spacing: -0.2px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: block;
}
.group-card:hover .group-card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.group-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    word-break: break-word;
}
body:not(.dark-mode) .group-card-name {
    color: #1e293b;
}
.group-card-count {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}
.group-card-count span {
    font-weight: 700;
    color: #3b82f6;
}
body:not(.dark-mode) .group-card-count span {
    color: #2563eb;
}

/* Section */
.group-card-ungrouped {
    border-style: dashed !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
    background: rgba(148, 163, 184, 0.08) !important;
}
.group-card-ungrouped::before {
    background: linear-gradient(90deg, #94a3b8, #64748b) !important;
    opacity: 0.6;
}
.group-card-ungrouped:hover {
    border-color: #94a3b8 !important;
}
body:not(.dark-mode) .group-card-ungrouped {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.groups-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.groups-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}
.groups-empty p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.groups-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}
.groups-loading .loader-circle-outer,
.groups-loading .loader-circle-inner {
    margin: 0 auto;
}

/* Section */
.update-top-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: nowrap !important;
}
.update-top-actions .btn-back,
.update-top-actions #update-back-to-groups-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
}
/* Section */
#update-back-to-groups-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #25D366;
    border: none;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
body:not(.dark-mode) #update-back-to-groups-btn {
    background: #128C7E;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}
#update-back-to-groups-btn:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
body:not(.dark-mode) #update-back-to-groups-btn:hover {
    background: #0E7669;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
}
#update-back-to-groups-btn.active {
    display: inline-flex !important;
}

/* Responsive */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .group-card {
        padding: 12px 10px;
    }
    .group-card-icon {
        width: 58px;
        height: 58px;
    }
    .group-card-avatar-name {
        font-size: 0.6rem;
    }
    .group-card-name {
        font-size: 0.85rem;
    }
}
  @media (max-width: 480px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .group-card {
        padding: 10px 8px;
    }
    .group-card-icon {
        width: 50px;
        height: 50px;
    }
    .group-card-avatar-name {
        font-size: 0.54rem;
    }
  }

/* ===== Pagination Bar (Update Students) ===== */
.update-pagination-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.8rem;
}
body:not(.dark-mode) .update-pagination-bar {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.update-pagination-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 600;
}
body:not(.dark-mode) .update-pagination-info { color: #475569; }
.update-pagination-info i { color: #3b82f6; }

.update-pagination-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.update-pg-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 30px;
    height: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.update-pg-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}
.update-pg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
body:not(.dark-mode) .update-pg-btn {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
body:not(.dark-mode) .update-pg-btn:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}
.update-pg-edge { font-size: 0.8rem; }

.update-pg-pages {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 4px;
}
.update-pg-page {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 30px;
    height: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.update-pg-page:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
}
.update-pg-page.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    cursor: default;
}
.update-pg-ellipsis {
    color: #94a3b8;
    padding: 0 4px;
    font-weight: 700;
}
body:not(.dark-mode) .update-pg-page {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
body:not(.dark-mode) .update-pg-page:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}
body:not(.dark-mode) .update-pg-ellipsis { color: #94a3b8; }

.update-pagination-pagesize {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 8px;
}
body:not(.dark-mode) .update-pagination-pagesize {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.update-pagination-pagesize label {
    color: #94a3b8;
    font-size: 0.8rem;
}
body:not(.dark-mode) .update-pagination-pagesize label { color: #64748b; }
.update-pagination-pagesize select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    padding: 2px 0;
}
body:not(.dark-mode) .update-pagination-pagesize select { color: #1e293b; }
.update-pagination-pagesize select option {
    color: #1e293b;
    background: #ffffff;
}

@media (max-width: 640px) {
    .update-pagination-bar { font-size: 0.7rem; }
    .update-pg-btn, .update-pg-page {
        padding: 3px 8px;
        min-width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}

