script {
    display: none;
}

body {
    body {
            font-family: Arial, sans-serif;
            text-align: center;
            background: linear-gradient(to bottom, lightblue, lightgreen);
            background-attachment: fixed;
            height: 100vh;
            margin: 0;
        }
}
h1 {
            text-align: center;
            color: #3498db;
        }
        h2 {
            text-align: center;
            color: #3498db;
            font-size: 14;
        }
        .main-container {
    display: flex;
    flex-direction: row; /* Set to row for side-by-side alignment */
    gap: 5px;
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-container-column {
    flex: 1; /* Distribute space evenly among columns */
    background-color: #f0f0f0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 200px; /* Optional: Prevent columns from shrinking too much */
}

.main-container-sub {
    display: flex;
    flex-direction: row; /* Ensure this sub-container also uses row layout */
    gap: 5px;
    margin: 10px auto;
    padding: 5px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 1200px;
    height:600px;
}




input[type="text"],
input[type="date"],
input[type="time"],
select {
    width: 200px; /* Adjust the width as needed */
    height: 30px; /* Adjust the height as needed */
    font-size: 16px; /* Adjust the font size as needed */
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 2px;
}
input[type="checkbox"] {
     margin-left: 0.5em;
     align-items: flex-start;
}
checkbox-label {
            display: flex;
            align-items: left;
        }

        #2mansite, #dsw {
            margin-right: 5px;
        }

.checkbox-container {
    display:flex;
    flex-direction: column;
    margin-bottom: 2px;
        }
textarea {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.license-container {
            display: flex;
            flex-direction: row; /* Stack elements vertically */
            justify-content: center; /* Center vertically */
            align-items: center; /* Center horizontally */
            text-align: center; /* Ensures text is centered */
            gap: 10px; /* Adds space between left and right sections */
            max-width: 800px;
            margin: 10px auto;
            padding: 10px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
.site-form {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.professional-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.button-container {
            display: flex; /* Enables horizontal layout */
            flex-direction: row; /* Ensures children are side-by-side */
            gap: 10px; /* Adds space between left and right sections */
            max-width: 900px;
            margin: 10px auto;
            padding: 10px;
            justify-content: space-evenly;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .bleft-side, .bmiddle, .bright-side {
            display: flex;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            justify-content: space-evenly;
            width: auto;
            
            }
            .bbutton{
                text-align: center;
                padding: 15px;
                background-color: #3498db;
                color: #ffffff;
                text-decoration: none;
                display: inline-block;
                border-radius: 5px;
                transition: background-color 0.3s ease;
            }
           
.faulty-container {
            display: flex; /* Enables horizontal layout */
            flex-direction: row; /* Ensures children are side-by-side */
            gap: 10px; /* Adds space between left and right sections */
            max-width: 800px;
            margin: 10px auto;
            padding: 10px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .left-side, .right-side {
            flex: 1; /* Makes both divs equal width */
            background-color: #f0f0f0;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Includes padding and border in width calculation */
        }
        .files {
            flex: 1;
            align-items: center;
            text-align: center;
            background-color: #f0f0f0;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Includes padding and border in width calculation */
        }
        .filesbtn {
            text-align: center;
            padding: 15px;
            background-color: #3498db;
            color: #ffffff;
            text-decoration: none;
            display: inline-block;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        
.item-maint {
            display: flex; /* Enables horizontal layout */
            flex-direction: row; /* Ensures children are side-by-side */
            gap: 10px; /* Adds space between left and right sections */
            max-width: 1000px;
            margin: 10px auto;
            padding: 10px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        
        #itemSKU{
            width:50%;
        }
        #itemDescription{
            width:90%;
        }
        #itemDescription2{
            width:90%;
        }
        #shortCode{
            width:40%;
        }
        #uom{
            width:20%;
        }
        #customer{
            width:30%;
        }
        #alertQty{
            width:30%;
        }
        #customer_code{
            width:30%;
        }
        #customer_name{
            width:90%;
        }
        #customer_contact{
            width:90%;
        }
        #customer_email{
            width:90%;
        }
        #customer_telephone{
            width:90%;
        }
        #address1, #address2, #address3, #address4{
            width:90%
        }
        #postCode{
            width:30%;
        }
        #subwarehouse{
            width:90%;
        }
        #imageContainer {
        width: 400px; /* Set the width of the container */
        height: 400px; /* Set the height of the container */
        border: 2px solid #ccc; /* Optional: Add a border for visibility */
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Prevents image overflow */
        background-color: #f0f0f0; /* Optional: Background color */
    }

    #imagePlaceholder {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image fills the placeholder while maintaining aspect ratio */
    }
        .itmem-1{
            flex: 1; /* Makes both divs equal width */
            background-color: #f0f0f0;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Includes padding and border in width calculation */
        }
        .item-2{
            flex: 5; /* Makes both divs equal width */
            background-color: #f0f0f0;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Includes padding and border in width calculation */
        }
        .item-pic{
            flex: 5; /* Makes both divs equal width */
            background-color: #f0f0f0;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Includes padding and border in width calculation */
        }
        
.professional-table th,
.professional-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.professional-table th {
    background-color: #f2f2f2;
}

/* Site Container */
.site-container {
    margin-top: 20px;
    text-align: center;
}
.form-row {
    padding: 0px;
    margin-bottom: 1px;
    display: flex;
    flex-wrap: wrap;
}

.site-label {
    flex: 1;
    width: 150px; /* Adjust the width as needed */
    margin-right: 10px;
    margin-bottom: 5px; /* Adjust the margin as needed */
    color: #555;
    font-weight: bold;
}

.site-input {
    flex: 1;
    padding: 0px;
    margin-bottom: 5px; /* Adjust the margin as needed */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.main-dashboard-button {
    text-align: center;
    padding: 15px;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}


 .dialog-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }

        /* Style for the dialog box */
        .dialog-box {
            background: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            width: 80%;
            text-align: center;
        }
        #csrNumber {
            width: 60%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #username {
            width: 60%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #password {
            width: 60%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
            height: 30px;
        }
        #sitename {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #siteid {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #sitecellid {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #addr1 {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #addr2 {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #addr3 {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #addr4 {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #postcode {
            width: 80%; /* Set the width of the CSR input to 60% of the dialog box */
            margin: 10px 0; /* Add some margin for spacing */
        }
        #enAlert {
            margin-left: 0px;
            align-self: flex-start;
        }
        .wh-management-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 20px;
        max-width: 800px; /* Set a maximum width for the container */
        margin: 0 auto;
        }

        .wh-management-button {
        flex-basis: calc(50% - 20px); /* Three columns on desktop */
        text-align: center;
        padding: 15px;
        background-color: #3498db;
        color: #ffffff;
        text-decoration: none;
        display: inline-block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        }

        .wh-management-button:hover {
            background-color: #2980b9;
        }
        
        .update {
        flex-basis: calc(50% - 20px); /* Three columns on desktop */
        text-align: center;
        padding: 15px;
        background-color: #3498db;
        color: #ffffff;
        text-decoration: none;
        display: inline-block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        }

        .update:hover {
            background-color: #2980b9;
        }
        
        .main-dashboard-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 20px;
        max-width: 1000px; /* Set a maximum width for the container */
        margin: 0 auto;
        }
        
        .kpi-dashboard-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 20px;
        max-width: 1800px; /* Set a maximum width for the container */
        margin: 0 auto;
        }

        .main-dashboard-button {
        flex-basis: calc(40% - 20px); /* Three columns on desktop */
        text-align: center;
        padding: 15px;
        background-color: #3498db;
        color: #ffffff;
        text-decoration: none;
        display: inline-block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        }

        .main-dashboard-button:hover {
            background-color: #2980b9;
        }

.dashboard-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
        max-width: 800px; /* Set a maximum width for the container */
        margin: 0 auto;
    }

    .dashboard-button {
        flex-basis: calc(50% - 20px); /* Three columns on desktop */
        text-align: center;
        padding: 15px;
        background-color: #3498db;
        color: #ffffff;
        text-decoration: none;
        display: inline-block;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .dashboard-button:hover {
        background-color: #2980b9;
    }
.center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 50%;
    height: auto;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}
.kpi-dashboard-container canvas {
        width: 350px;
        height: 350px;
    }
/* Common button styles */
.button {
    display: inline-block;
            padding: 10px 20px;
            margin: 10px;
            font-size: 16px;
            text-decoration: none;
            color: #fff;
            background-color: #3498db;
            border-radius: 5px;
            white-space: normal;
}

.button-link {
    display: inline-block;
            padding: 10px 20px;
            margin: 10px;
            font-size: 16px;
            text-decoration: none;
            color: #fff;
            background-color: #3498db;
            border-radius: 5px;
            white-space: normal;
}

.button-link:hover {
    background-color: #2980b9;
}

.view-documents-button {
    display: inline-block;
            padding: 10px 20px;
            margin: 10px;
            font-size: 16px;
            text-decoration: none;
            color: #fff;
            background-color: #3498db;
            border-radius: 5px;
            white-space: normal;
}

.view-documents-button:hover {
    background-color: #2980b9;
}


form {
    margin-top: 20px;
    width:auto;
}

/* Dashboard Styles */


p {
    margin: 10px 0;
}

.jobs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 400px;
}

.job-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    width:400px;
}

.job-card p {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
@media screen and (max-width: 767px) {
    .dashboard-button,
    .wh-management-button,
    .main-dashboard-button,
    .dashboard-container {
        flex-basis: calc(100% - 20px); /* One column on mobile */
    }
}

