/**
 * ====================================================================
 * MEERUT ONLINE LIBRARY - MANAGEMENT MODULES & MENUS STYLESHEET
 * Management Hub, System Masters, CRUD Tables, Forms & Modals
 * ====================================================================
 */

/* ====================================================================
   1. MANAGEMENT HUB & MENU PAGE (/admin/management)
   ==================================================================== */
.management-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px 16px;
}

/* Page Header */
.mgmt-header-card {
    background: #ffffff;
    border-radius: var(--card-radius, 16px);
    padding: 20px 24px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.mgmt-header-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mgmt-header-subtitle {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
    font-weight: 500;
}

/* Control Toolbar: Live Search, Category Filters & Sort Controls */
.mgmt-control-toolbar {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mgmt-search-wrap {
    position: relative;
    flex-grow: 1;
    max-width: 440px;
    min-width: 260px;
}
.mgmt-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}
.mgmt-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.15s ease-in-out;
}
.mgmt-search-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Category Filter Pills */
.filter-pills-wrap,
.mgmt-category-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-category-pill,
.cat-pill {
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.btn-category-pill:hover,
.cat-pill:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.btn-category-pill.active,
.cat-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Sorting Dropdown */
.btn-sort-selector,
.btn-sort-opt {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    cursor: pointer;
}
.btn-sort-selector:hover,
.btn-sort-selector:focus,
.btn-sort-opt:hover,
.btn-sort-opt.active {
    background: #f8fafc;
    border-color: #94a3b8;
}
    gap: 5px;
}
.btn-sort-opt:hover,
.btn-sort-opt.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Master Cards Grid */
.mgmt-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}
.mgmt-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.mgmt-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.mgmt-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.mgmt-card:hover .mgmt-card-icon {
    transform: scale(1.06);
}
.mgmt-card-title-box {
    flex-grow: 1;
    overflow: hidden;
}
.mgmt-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}
.mgmt-card-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 2px 0 0 0;
    line-height: 1.3;
}
.mgmt-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 14px 0;
    min-height: 36px;
}
.mgmt-card-bottom {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.mgmt-count-pill {
    font-size: 11.5px;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mgmt-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-mgmt-manage {
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-mgmt-manage:hover {
    background: #1d4ed8;
}
.btn-mgmt-add {
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-mgmt-add:hover {
    background: #eff6ff;
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
}

/* Icon Presets */
.icon-blue    { background: #eff6ff; color: #2563eb; }
.icon-indigo  { background: #e0e7ff; color: #4338ca; }
.icon-cyan    { background: #ecfeff; color: #0891b2; }
.icon-teal    { background: #f0fdfa; color: #0d9488; }
.icon-amber   { background: #fffbeb; color: #d97706; }
.icon-green   { background: #ecfdf5; color: #059669; }
.icon-rose    { background: #fff1f2; color: #e11d48; }
.icon-slate   { background: #f1f5f9; color: #475569; }

#noMenuMatches {
    display: none;
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
}


/* ====================================================================
   2. MANAGEMENT MODULES LISTING PAGES (Subjects, Classes, etc.)
   ==================================================================== */
.management-page-container,
.books-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 18px 36px 18px;
}
.management-header-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.management-header-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.2px;
}
.management-header-subtitle {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0;
    font-weight: 500;
}
.management-table-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

/* Optimized SaaS Listing Table */
.table-management {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}
.table-management thead th {
    background: #edf2f7;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    padding: 12px 14px;
    border-bottom: 2px solid #cbd5e1;
    border-top: none;
    white-space: nowrap;
    vertical-align: middle;
}
.table-management tbody tr {
    transition: background-color 0.15s ease;
}
.table-management tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}
.table-management tbody tr:nth-child(even) td {
    background-color: #edf2f7;
}
.table-management tbody tr:hover td {
    background-color: #dbeafe !important;
}
.table-management tbody td {
    padding: 11px 14px;
    font-size: 13px;
    vertical-align: middle !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
    color: #0f172a;
}

/* Table Sorting UI */
th.sorting,
th.sorting_asc,
th.sorting_desc {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.15s ease;
}
th.sorting:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a;
}
th.sorting .sort-icon,
th.sorting_asc .sort-icon,
th.sorting_desc .sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 11px;
    color: #94a3b8;
    transition: all 0.15s ease;
}
th.sorting:hover .sort-icon {
    color: #475569;
}
th.sorting_asc {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}
th.sorting_asc .sort-icon {
    color: #2563eb !important;
}
th.sorting_desc {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}
th.sorting_desc .sort-icon {
    color: #2563eb !important;
}

/* Action Buttons & Action Cell Styling (Right Aligned, Compact, Never Wrap Vertically) */
th.action-cell,
td.action-cell {
    white-space: nowrap !important;
    text-align: right !important;
    vertical-align: middle !important;
}
.action-btn-group,
.table-actions-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    white-space: nowrap !important;
}
.action-btn-group form,
.table-actions-wrapper form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}
.btn-action-edit {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    height: 29px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.btn-action-edit:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-action-delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    height: 29px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease-in-out;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.btn-action-delete:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.entity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    flex-shrink: 0;
}
.entity-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    display: block;
}
.entity-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Compact Toolbar Elements */
.mgmt-toolbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.mgmt-search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    max-width: 380px;
}
.mgmt-search-group .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    transition: all 0.15s ease;
}
.mgmt-search-group .input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.mgmt-search-group .form-control {
    height: 34px;
    font-size: 12.5px;
    border: none;
    box-shadow: none !important;
    background: transparent;
    padding-left: 0;
}
.mgmt-search-group .input-group-text {
    height: 34px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    padding: 0 10px;
}
.btn-mgmt-search {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-mgmt-search:hover {
    background: #1e293b;
    color: #ffffff;
}
.btn-mgmt-sort {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-mgmt-sort:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.mgmt-stat-pill {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ====================================================================
   3. UNIFIED SAAS FORM DESIGN SYSTEM (Add & Edit Views)
   ==================================================================== */
.mgmt-form-container,
.mgmt-form-container-wide,
.book-form-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 18px 40px 18px;
}
.mgmt-form-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}
.mgmt-form-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mgmt-form-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mgmt-form-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    letter-spacing: -0.2px;
}
.mgmt-form-subtitle {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    margin: 0;
    font-weight: 500;
}
.mgmt-form-body {
    padding: 28px 26px;
}
.mgmt-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}
.mgmt-input,
.mgmt-select,
.form-control-saas,
.form-select-saas {
    height: 42px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13.5px !important;
    padding: 8px 14px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: all 0.15s ease-in-out !important;
    width: 100% !important;
}
.mgmt-input:focus,
.mgmt-select:focus,
.form-control-saas:focus,
.form-select-saas:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}
.mgmt-filter-select {
    height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    outline: none;
    transition: all 0.15s ease;
}
.mgmt-filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.mgmt-form-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 22px;
    margin-top: 24px;
}
.mgmt-form-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.mgmt-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.mgmt-section-icon {
    font-size: 13px;
    color: #2563eb;
}
.mgmt-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.1px;
}
.mgmt-section-subtitle {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}
.mgmt-help-text {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mgmt-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.mgmt-meta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}


/* ====================================================================
   4. SAAS CONFIRMATION MODAL
   ==================================================================== */
.modal-saas .modal-content {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.modal-saas .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
}
.modal-saas .modal-body {
    padding: 22px 24px;
}
.modal-saas .modal-footer {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 14px 20px;
}

/* ====================================================================
   5. BOOKS CATALOG & INVENTORY MODULE STYLES
   ==================================================================== */
.books-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 18px 40px 18px;
}
.badge-acc-no {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    display: inline-block;
    letter-spacing: 0.3px;
}
.book-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.book-title-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.book-sub-meta {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.book-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
}
.book-author-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}
.book-coauthor-text {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.book-status-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.status-available {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.status-issued {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.status-reference {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.status-other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Multi-Section Form Styling */
.form-section-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    margin-bottom: 20px;
    overflow: hidden;
}
.form-section-header {
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.form-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.1px;
}
.form-section-body {
    padding: 18px 20px;
}

/* ====================================================================
   6. GLOBAL BOOTSTRAP 5 SAAS PAGINATION STYLES
   ==================================================================== */
.pagination {
    margin-bottom: 0;
    gap: 4px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.pagination .page-item {
    margin: 0;
}
.pagination .page-item .page-link {
    border-radius: 8px !important;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.pagination .page-item.active .page-link {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    font-weight: 700;
}
.pagination .page-item .page-link:hover:not(.active) {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.pagination .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.65;
}

/* ====================================================================
   7. DATATABLES EXPORT BUTTONS & LIVE FILTER BAR
   ==================================================================== */
.dataTables_wrapper {
    position: relative;
    clear: both;
}
.dt-toolbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.dt-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    line-height: 1.4;
}
.dt-button:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.dt-button.buttons-copy:hover { color: #2563eb; border-color: #93c5fd; background-color: #eff6ff; }
.dt-button.buttons-csv:hover { color: #0284c7; border-color: #7dd3fc; background-color: #f0f9ff; }
.dt-button.buttons-excel:hover { color: #16a34a; border-color: #86efac; background-color: #f0fdf4; }
.dt-button.buttons-pdf:hover { color: #dc2626; border-color: #fca5a5; background-color: #fef2f2; }
.dt-button.buttons-print:hover { color: #7c3aed; border-color: #d8b4fe; background-color: #faf5ff; }

.dataTables_filter {
    display: inline-flex;
    align-items: center;
}
.dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0;
}
.dataTables_filter input[type="search"] {
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12.5px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease-in-out;
    min-width: 180px;
}
.dataTables_filter input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
