﻿.loading-placeholder {
    display: inline-block;
    height: 90%;
    width: 20%;
    background: linear-gradient(90deg, #0D4F74 25%, #0D4F74 50%, #0D4F74 75%);
    background-size: 200% 100%;
    animation: loading-animation 1.5s infinite linear;
    border-radius: 10px;
    color: white;
}

@keyframes loading-animation {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.table-product-image {
    width: 60px;
    height: auto;
    margin-right: 25px;
}

.product-name {
    font-size: 0.8rem;
    line-height: 1.5;
    display: inline-block;
    width: 12rem;
    white-space: normal;
    text-align: left;
}


.d-flex {
    align-items: center;
    text-align: center;
}

.btn-outline-secondary:not(:disabled):not(.disabled).active {
    background-color: #022F56 !important;
    color: white !important;
}

.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #022F56 !important;
    color: white !important;
}

.btn:hover {
    background-color: #022F56;
    color: white;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.btn-group {
    display: flex;
    flex-wrap: nowrap;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

body {
    background-color: #f8f9fa;
    margin: -10px;
}

.child-row {
    padding-left: 40px;
}

.action-icon {
    font-size: 0.8em;
    margin-right: 5px;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    /* margin-bottom: 20px; */
}

.date-text-for-date {
    font-size: 0.85rem;
    padding-left: 9px;
    background-color: #1671ca !important;
    font-family: Helvetica Neue, sans-serif !important;
    padding: -1px;
    padding-left: 0.5rem;
    padding-bottom: 0.9rem;
    padding-top: -7px;
    margin-bottom: -11px;
    color: white;
}

.card-header-sg {
    border-bottom: 0px !important;
    background-color: #1671ca !important;
    font-size: 0.85rem;
    font-family: Helvetica Neue, sans-serif !important;
    font-weight: 600;
    padding: 5px;
    padding-left: 8px;
    color: white;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

.card-body {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #edf8fe;
}

    .card-body > div {
        flex: 1;
        margin-right: 15px;
    }

        .card-body > div:last-child {
            margin-right: 0;
        }

.metric-title {
    font-size: 0.8rem;
    font-family: Helvetica Neue, sans-serif !important;
    color: white;
}

.metric-value {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: Helvetica Neue, sans-serif !important;
}

.metric-subtext {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

table th {
    font-weight: bold;
    text-align: center !important;
}

.icon-up {
    color: green;
}

.icon-down {
    color: red;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

    .filter-section button {
        margin-left: 10px;
    }

table tbody tr:nth-child(even) {
    background-color: #ECF8FE !important;
    border-bottom: none;
}

tfoot td {
    background-color: #cbeeff;
    text-align: right !important;
    position: sticky !important;
}

thead th {
    background-color: #ecf8fe !important;
    border: none !important;
    font-weight: bold !important;
    text-align: center !important;
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
    border-bottom: snow;
}



table thead tr {
    padding-top: 8px;
}

.dataTables_wrapper {
    margin-top: -6px;
}

    .dataTables_wrapper thead th {
        font-family: Helvetica Neue, sans-serif !important;
        /* font-weight: bold; */
    }

    .dataTables_wrapper tfoot th {
        font-family: Helvetica Neue, sans-serif !important;
        /* font-weight: bold; */
    }


.dataTables_scrollHead {
    overflow: visible !important;
    overflow-x: auto !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
}

table {
    width: 100%;
}


th, td {
    text-align: center;
    vertical-align: top;
    padding: 20px;
    font-size: 0.8rem;
    border-style: none;
    cursor: pointer;
}

.nested-header {
    background-color: #eaf8ff;
    font-weight: bold;
    white-space: nowrap;
}

.highlight-header {
    font-weight: bold;
    background-color: #d4edff;
    white-space: nowrap;
}

td img {
    width: 50px;
    margin-right: 10px;
}

.dataTables_scroll ::-webkit-scrollbar {
    height: 6px;
    width: 5px;
}

/* Track */
.dataTables_scroll ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.dataTables_scroll ::-webkit-scrollbar-thumb {
    background: #4f8ded !important;
}

    /* Handle on hover */
    .dataTables_scroll ::-webkit-scrollbar-thumb:hover {
        background: #4f8ded !important;
    }

/* Reduce the overall font size */
.daterangepicker {
    font-size: 12px; /* Adjust as needed */
}

    /* Adjust the size of calendar cells */
    .daterangepicker .calendar-table td,
    .daterangepicker .calendar-table th {
        padding: 5px; /* Reduce padding */
    }

    /* Adjust header size */
    .daterangepicker .drp-calendar .drp-calendar-table .month {
        font-size: 14px; /* Adjust the month label size */
        padding: 5px;
    }

    /* Reduce input box size (if applicable) */
    .daterangepicker input {
        font-size: 12px;
        height: 25px;
        padding: 2px 5px;
    }

    /* Adjust the buttons */
    .daterangepicker .drp-buttons .btn {
        font-size: 12px;
        padding: 3px 10px;
    }

/* Hide the top scrollbar */
.dataTables_scrollHead {
    overflow-x: hidden !important; /* Prevent scrollbar on top */
}

/* Ensure the bottom scrollbar remains visible */
.dataTables_scrollBody {
    overflow-x: auto !important;
}

/*         .dataTables_length {
            display: none;
        } */

table_paginate {
    margin-right: 0.5rem !important;
    margin-top: 1.5rem !important;
}

.spacer {
    line-height: 1.8 !important;
}

/* Style for Pagination Wrapper */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

/* Style for Page Links (Numbers and Buttons) */
.page-link {
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #cddde4;
}

    .page-link:hover {
        background-color: #022f56;
        color: white;
    }

/* Active Page Styling */
.page-item.active .page-link {
    background-color: #022f56;
    color: #ffffff;
    border: none;
}

.page-item.disabled .page-link {
    color: #c0c9d6;
    pointer-events: fill;
    cursor: pointer;
    background-color: #f3f8ff;
    border: none;
    /*border-color: #dee2e6;*/
}

/* Previous and Next Button Styling */

.paginate_button.previous .page-link {
    background-color: #cddde4;
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.paginate_button.next .page-link {
    background-color: #cddde4;
    color: #022f56;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

    .paginate_button.previous .page-link:hover,
    .paginate_button.next .page-link:hover {
        background-color: #022f56;
        color: white;
    }

/* Remove Default List Style */
ul.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
}

.data-table-wrapper {
    display: none;
}

    .data-table-wrapper.active {
        display: block;
    }

.dt-buttons {
    margin-bottom: -5px;
    top: -78px;
    left: 68%;
    position: relative !important;
    width: 0;
}

    .dt-buttons .buttons-colvis:hover {
        background-color: #022f56 !important;
        color: white !important;
    }

    .dt-buttons .buttons-colvis {
        background-color: #022f56 !important; /* Change to your desired color */
        color: white !important; /* Change text color */
        border-color: #022f56 !important;
        height: 118%;
        bottom: 15%;
    }

.btn-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

#dropdownMenuButton:hover {
    background-color: #022f56 !important;
    color: white !important;
}

/*         .btn-primary:hover {
                    background-color: #022f56 !important;
                    color: white;
                } */

/*.number {
    display: none;*/ /* Initially hidden */
/*}

.percentage {
    display: none;*/ /* Ensure it's displayed initially */
/*}*/

.selected-column {
    color: #ffffff;
    background-color: #007bff; /* Blue color */
    font-weight: bold;
}

table.dataTable > thead > tr > th:not(.sorting_disabled), table.dataTable > thead > tr > td:not(.sorting_disabled) {
    padding-right: 5px !important;
}

.custom-colvis-btn {
    top: 28px;
    left: 0%;
}

.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1;
    border-radius: 5px;
    max-height: 250px;
    overflow-y: auto;
}

    .dropdown-content label {
        display: block;
        padding: 5px;
        font-size: 14px;
        cursor: pointer;
    }

    .dropdown-content input {
        margin-right: 5px;
    }

/* Show dropdown when button is clicked */
.dropdown:hover .dropdown-content {
    display: block;
}

div.dataTables_wrapper div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: right;
    background-color: #022f56 !important;
    border-bottom-left-radius: 8px !important;
    border-top-left-radius: 8px !important;
    font-size: 0.65rem !important;
    padding-left: 10px !important;
    color: white !important;
    border-color: #022f56 !important;
    position: relative;
    bottom: 2.2rem;
    height: 40px;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: .5em;
    display: inline-block;
    width: auto;
    border-color: #cddde4 !important;
    background-color: #cddde4 !important;
    border: 1px solid #cddde4 !important;
    border-radius: 0px;
    height: 40px;
}

.form-control::placeholder {
    color: gray; /* Set your desired color */
    opacity: 1; /* Ensure full opacity */
    font-size: 0.8rem;
}

.form-control:focus {
    border-color: #cddde4;
}

.btn-group-vertical > .btn:hover, .btn-group > .btn:hover {
    z-index: 0 !important;
}

.btn-group-vertical > .btn.active, .btn-group-vertical > .btn:active, .btn-group-vertical > .btn:focus, .btn-group > .btn.active, .btn-group > .btn:active, .btn-group > .btn:focus {
    z-index: 0 !important;
}

.toggle-btn:hover {
    background-color: #a4c3d2 !important; /* Lighter shade for hover effect */
    border-color: #a4c3d2 !important;
}

.bookmark {
    position: absolute;
    top: -1px;
    right: 0px;
    width: 15px;
    height: 25px;
    background: yellow;
    clip-path: polygon(100% 0%, 100% 70%, 50% 85%, 0% 70%, 0% 0%);
    content: "";
}
#colvis-menu li strong {
    display: block;
    padding-top: 5px;
    font-size: 14px;
    border-top: 1px solid #eee;
}
