/**
 *
 * You can write your CSS code here, DO NOT touch the default JavaScript file
 * because it will make it harder for you to update.
 * 
 */

/* Bootstrap Table Custom Styles */
.card-body {
    padding: 0;
}

.bootstrap-table {
    margin-bottom: 0;
}

.bootstrap-table .fixed-table-toolbar,
div.fixed-table-toolbar {
    padding: 0.5rem !important;
    background-color: #001f5f !important;
    margin: 0 !important;
    border: none !important;
}

.bootstrap-table .fixed-table-toolbar .bs-bars,
.bootstrap-table .fixed-table-toolbar .search,
.bootstrap-table .fixed-table-toolbar .columns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

.bootstrap-table .fixed-table-toolbar .search input {
    height: 31px !important;
    font-size: 0.875rem;
    border-radius: 0;
    padding: 0.25rem 0.5rem;
}

.bootstrap-table .fixed-table-toolbar .btn {
    height: 31px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: white !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
}

.bootstrap-table .fixed-table-toolbar .btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.bootstrap-table .fixed-table-toolbar .search .btn {
    border-color: #ced4da !important;
}

.bootstrap-table .fixed-table-toolbar .columns-right {
    margin-right: 0 !important;
}

.bootstrap-table .fixed-table-toolbar .fas {
    color: white !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-size: 0.875rem !important;
    margin-top: 0 !important;
}

.dropdown-item {
    padding: 10px 20px !important;
}

.dropdown-item:hover {
    background-color: #001f5f !important;
    color: white !important;
}

/* Table header styling */
.bootstrap-table .table thead th {
    padding: 0.5rem !important;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #001f5f !important;
}

/* Pagination styling */
.fixed-table-pagination {
    padding: 0.5rem !important;
    background-color: #f8f9fa !important;
}

.fixed-table-pagination .pagination-detail {
    font-size: 0.875rem !important;
    margin-top: 0 !important;
}

.pagination {
    margin-top: 0 !important;
}

.page-link {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.page-item.active .page-link {
    background-color: #001f5f !important;
    border-color: #001f5f !important;
    color: white !important;
}

/* Remove card padding */
.card > .card-body {
    padding: 0 !important;
}

/* Keep toolbar buttons aligned */
.bs-bars {
    margin-left: 0 !important;
}

#toolbar {
    margin: 0 !important;
    float: left !important;
}

/* Ensure consistent button heights */
#toolbar .btn {
    height: 31px !important;
    line-height: 1.5 !important;
}

/* Status badge styling */
.bootstrap-table .badge {
    border-radius: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.bootstrap-table .badge.bg-success {
    background-color: #198754 !important;
}

.bootstrap-table .badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Responsive sidebar fixes */
@media (max-width: 1024px) {
    body.sidebar-gone .main-content {
        padding-left: 30px !important;
        margin-left: 0 !important;
    }

    body.sidebar-gone .navbar {
        left: 0 !important;
    }

    body.sidebar-gone .main-sidebar {
        left: -250px !important;
    }

    .main-content {
        padding-left: 30px !important;
        padding-right: 30px !important;
        width: 100% !important;
    }

    .main-sidebar {
        left: 0 !important;
    }
}

/* Fix for mobile sidebar toggle transition */
.main-sidebar,
.main-content,
.navbar {
    transition: all 0.3s ease-in-out;
}

/* Responsive table styles */
@media (max-width: 767px) {
    /* Enable horizontal scrolling for tables */
    .bootstrap-table .fixed-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust table header and cell padding */
    .bootstrap-table .table thead th,
    .bootstrap-table .table tbody td {
        padding: 8px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Make toolbar elements stack vertically */
    .bootstrap-table .fixed-table-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .bootstrap-table .fixed-table-toolbar .search,
    .bootstrap-table .fixed-table-toolbar .columns {
        width: 100% !important;
        margin: 0 !important;
    }

    .bootstrap-table .fixed-table-toolbar .search input {
        width: 100% !important;
    }

    /* Adjust pagination for mobile */
    .fixed-table-pagination {
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .fixed-table-pagination .pagination,
    .fixed-table-pagination .pagination-detail {
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .fixed-table-pagination .pagination-info {
        margin: 0 !important;
    }

    /* Improve dropdown menu usability on mobile */
    .bootstrap-table .dropdown-menu {
        width: 100% !important;
        max-height: 200px !important;
        overflow-y: auto !important;
    }

    .bootstrap-table .dropdown-item {
        padding: 8px 16px !important;
    }
}

/* Bootstrap Table Mobile Enhancements */
@media (max-width: 767px) {
    /* Card view enhancements */
    .bootstrap-table .card-view {
        margin: 8px 0;
    }

    .bootstrap-table .card-view .card-view-title {
        font-weight: 600;
        color: #001f5f;
        min-width: 30%;
    }

    .bootstrap-table .card-view .card-view-value {
        word-break: break-word;
    }

    /* Toolbar adjustments */
    .bootstrap-table .fixed-table-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px !important;
    }

    .bootstrap-table .fixed-table-toolbar .search,
    .bootstrap-table .fixed-table-toolbar .columns {
        flex: 1 1 100%;
    }

    .bootstrap-table .fixed-table-toolbar .search input {
        width: 100%;
    }

    /* Pagination adjustments */
    .fixed-table-pagination {
        padding: 8px !important;
    }

    .fixed-table-pagination .pagination-detail {
        text-align: center;
        margin-bottom: 8px;
    }

    .fixed-table-pagination .pagination {
        justify-content: center;
    }
}

/* Maintain consistent styling */
.bootstrap-table .table {
    margin-bottom: 0;
}

.bootstrap-table .fixed-table-container {
    border: none;
}

/* Add horizontal scroll indicator */
/* .bootstrap-table .fixed-table-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
} */

/* .bootstrap-table .fixed-table-container.table-has-scroll::after {
    opacity: 1;
} */

/*# sourceMappingURL=custom.css.map */
