﻿/*.dropdown, .dropdownProduct {
    position: relative;
    display: inline-block;
}*/

.dropdown-content, .dropdown-content-product, .dropdown-content-batch, .dropdown-content-order-voucher {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 250px;
    border: 1px solid #ddd;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
}

    .dropdown-content table, .dropdown-content-product table, .dropdown-content-batch table, .dropdown-content-order-voucher table {
        width: 100%;
        border-collapse: collapse;
    }

        .dropdown-content table th,
        .dropdown-content table td,
        .dropdown-content-product table th,
        .dropdown-content-product table td,
        .dropdown-content-batch table th,
        .dropdown-content-batch table td,
        .dropdown-content-order-voucher th,
        .dropdown-content-order-voucher td{
            padding: 8px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        .dropdown-content table tr:hover, .dropdown-content-product table tr:hover, .dropdown-content-batch table tr:hover, dropdown-content-order-voucher table tr:hover {
            background-color: #ddd;
            cursor: pointer;
        }

.show {
    display: block;
}




.disabled {
    pointer-events: none !important; 
    text-decoration: none !important; 
    cursor:pointer !important
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #8df6c1;
    color: black;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

    #snackbar.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }






/*  for shimmer ui  */


.dashboard-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
/*    background-color: #2c3e50;*/
    color: #ecf0f1;
    padding: 20px;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Menu shimmer placeholder */
.menu-placeholder {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-placeholder div {
    height: 20px;
    border-radius: 4px;
    background-color: #3b4a5a;
    width: 80%;
}

/*.main-content {
    flex-grow: 1;
    padding: 20px;
}*/

/*.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    color: #2c3e50;
}

.header p {
    color: #7f8c8d;
}*/

.profile-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
}

/* Shimmer effect styles */
.shimmer-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to right, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100% );
    background-size: 200% auto;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.kpi-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    flex: 1;
    height: 100px;
}

.analytics-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.analytics-chart, .analytics-table {
    height: 200px;
}



/*loader*/
#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none; /* hidden by default */
}

/* Spinner */
.spinner {
    border: 6px solid #ccc;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

