﻿@media (min-width: 1200px){
    .container{
        max-width: 1250px !important;
    }
}

/*header*/
.newNav {
    display: unset !important;
    padding: 8px !important;
}

.logout-icon{
    padding-top: 7px;
}
.time-username{
    padding-top: 10px;
}
.logo-header{
    padding-top: 5px;
}

.forgot-password-container {
    background: #ffebeb;
    text-align: center;
    padding: 100px;
}

.btnFP {
    width: 15%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #161448;
    color: #fff;
    cursor: pointer;
}

.btnFP:hover {
    opacity: 0.8;
}

.input-with-icon-forget {
    position: relative;
    margin-bottom: 20px;
}

.input-with-icon-forget input[type="text"] {
    padding-left: 30px; /* Adjust padding to accommodate the icon */
    font-size: small;
}

.forgot-password-container h2 {
    font-size: xx-large;
}

.input-with-icon-forget .icon {
    position: absolute;
    top: 38.5%;
    left: 25px;
    transform: translateY(-50%);
    color: #777;
    opacity: 50%;
}

/*location-selection-page*/
.container-location {
    margin-bottom: 10px;
    text-align: center;
    padding: 20px;
    min-width: 200px;
    //max-width: 400px;
    //margin: 50px auto;
    //background-color: #fff;
    //padding: 20px;
    //border-radius: 5px;
    //box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group-location {
    margin-bottom: 20px;
    text-align: center;
}

.form-group-location label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group-location select {
    width: 100%;
    /*padding: 10px;*/
    padding-left: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.btn-location-confirm {
    width: 100%;
    padding: 10px;
    background-color: #1F6B22;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-location-urgent {
    width: 100%;
    padding: 10px;
    background-color: #6B1F28;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-location-register {
    width: 20%;
    padding: 10px;
    background-color: #161448;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none; /* Added for hyperlink button */
    display: block; /* Added for hyperlink button */
    text-align: center; /* Added for hyperlink button */
}

.btn-location-confirm:hover,
.btn-location-urgent:hover,
.btn-location-register:hover {
    opacity: 0.8;
}

.dropdown-location-box {
    min-width: 200px;
    font-size: large;
    height: 40px;
    border-radius: 7px;
    box-shadow: 10px;
}

/*register-page*/
.register-body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    height: 120%;
}

.container-register {
    max-width: 500px;
    font-size: 13px;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
}

.form-group-register {
    margin-bottom: 10px;
    display: block;
}

.form-group-register label {
    display: block;
    margin-bottom: 3px;
    color: #666;
}

.form-group-register select{
    font-size: 13px;
}

.form-group-register input[type="text"],
.form-group-register input[type="password"],
.form-group-register select {
    width: 100%;
    /*padding: 5px;*/
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    margin: 10px 20px;
    }

.btn-register {
    width: 100%;
    padding: 10px;
    background-color: #161448;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 20px;
}

.btn-register:hover {
    opacity: 0.8;
}

.register-error-message{
    color: red;
}

.form-control-horizontal {
    display: flex !important; /* Use flexbox to align items in a line */
    flex-wrap: wrap; /* Optional: Wrap to a new line if there are too many items */
    gap: 6px; /* Add spacing between checkboxes */
    align-items: flex-start;
}

    .form-control-horizontal input[type="checkbox"] {
        margin: 2px; /* Adjust the space between the checkbox and its label */
    }

/*homepage tab have register n location*/
/* Tab styles */

.page-wrapper {
    min-height: 75vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}

/* Style for the vertical menu bar */
.tab {
    display: flex;
    flex-direction: column;
    width: 200px;
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #f1f1f1;
    position: fixed;
    top: 50px;
    height: calc(100% - 50px); /* Adjust height to account for the header */
    left: 0;
    height: 100%;
}

/* Style for individual links in the menu bar */
.tablinks {
    display: block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: background-color 0.3s;
    white-space: nowrap;
}

    .tablinks:hover {
        background-color: #ddd;
        text-decoration: none;
        color: black;
    }

    .tablinks.active {
        background-color: #b2b3db;
        color: black;
        text-decoration: none;
    }

/* Style for the content area to be next to the menu bar */
.tabcontent {
    display: none;
    padding: 10px;
    flex-grow: 1;
    margin-left: 150px; /* This margin gives space for the menu bar */
}

.tabcontentHistory {
    margin-left: 120px; /* This margin gives space for the menu bar */
}

    /* Default active content display */
    .tabcontent.active {
        display: block;
    }

/* Additional styling to the container */
.container-location{
    margin-top: 50px;
}
.container-history,
.container-register {
    margin-top: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar {
    background-color: #161448;
    color: white;
    width: 200px;
    box-sizing: border-box;
    position: fixed;
    /*top: 0;*/
    left: 0;
    height: 100%;
    overflow-y: auto;
    transition: width 0.3s;
    font-weight: 700;
}

.sidebar-item {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: background-color 0.3s;
    text-decoration: none;
}

    .sidebar-item:hover {
        background-color: #575757;
        text-decoration: none;
    }

.tab.sidebar {
    background-color: #161448;
    color: white;
    width: 200px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 50px; /* Adjust for header */
    height: calc(100vh - 50px); /* Adjust height for header */
    overflow-y: auto;
    transition: width 0.3s;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.logout-tab {
    background-color: #1f1f3a;
    border-top: 1px solid #444;
    box-sizing: border-box;
    margin-top: auto; /* Pushes the logout tab to the bottom */
}

.content {

    padding: 20px;
    flex: 1;
}

/* Menu Icon Styles */
.menu-icon {
    display: none;
    background-color: #161448;
    color: white;
    padding: 10px;
    position: fixed;
    top: 50px; /* Adjust for header */
    left: 0;
    z-index: 1001; /* Ensure it's above other content */
}

@media screen and (max-width: 1024px) {
    .sidebar {
        width: 200px; /* Set desired width for screens between 1024px and 768px */
        left: -200px; /* Initially hidden off-screen */
        position: fixed;
        transition: left 0.3s ease; /* Smooth transition */
        top: 90px;
    }

    .menu-icon {
        display: none; /* Show menu icon for small screens */
    }

    .tablinks span {
        display: none; /* Hide text for icons only view */
    }
}

/* Styles for screen widths between 768px and 999px */
@media screen and (max-width: 768px) {
    .body-content .container {
        max-width: fit-content !important;
    }

    .sidebar {
        width: 200px; /* Expanded width for small screens */
        height: 100%;
        position: fixed;
        left: -200px; /* Initially hidden */
        transition: left 0.3s ease; /* Smooth transition */
    }

    .menu-icon {
        display: block;
    }

    .tabcontent {
        margin-left: 0px;
    }

    .tablinks {
        padding: 10px;
        text-align: center;
        font-size: 18px; /* Adjust icon size */
    }

        .tablinks span {
            display: none; /* Hide text */
        }

        .tablinks .bx {
            display: block; /* Show icons */
        }
}

/* Styles for screen widths 480px and below */
@media screen and (max-width: 320px) {
    .body-content .container {
        max-width: fit-content !important;
    }

    .sidebar {
        width: 200px; /* Adjust as needed */
        left: -200px; /* Initially hidden */
    }

    .menu-icon {
        font-size: 18px; /* Adjust menu icon size */
    }

    .tabcontent{
        margin-left: 0px;
    }
}

.search-icon i{
    position: absolute;
    left: 30px;
    /*right: 10px;*/ /* Position the icon inside the right side of the input */
    cursor: pointer; /* Make the icon clickable */
    font-size: 24px; /* Set the icon size */
    color: black;
    top: 16px;
    font-size: large;
}

    .search-box input[type="text"] {
        padding-left: 40px;
        width: 90% !important;
    }

.search-box .bx {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Prevents clicking on the icon */
}

.footerr hr{
    width: 90%;
    padding-top: 10px;
}

.highlight {
    background-color: yellow;
}

.itemdetailsavebtn {
    width: 100%;
    padding: 10px;
    background-color: #161448;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 20px;
}

.itemdetailcancelbtn {
    width: 100%;
    padding: 10px;
    background-color: #d94d73;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 20px;
}

.itemdetailsavebtn:hover {
    opacity: 0.8;
}

.itemdetailcancelbtn:hover {
    opacity: 0.8;
}

.item-details input[type=text] {
    width: 250px !important;
    padding: 12px 20px;
    margin: 10px 20px;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: left;
}
.update-quantity {
    background-color: aliceblue;
    padding: 20px;
    margin: 10px;
    min-width: max-content;
}

.notification {
    position: relative;
    display: inline;
}

.notification .badge {
    position: absolute;
    top: -20px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background: red;
    color: white;
}

    .notification .badgeRT {
        position: absolute;
        top: -13px;
        right: -10px;
        padding: 5px 10px;
        border-radius: 50%;
        background: red;
        color: white;
    }

    .notification .badgeVSO {
        position: absolute;
        top: 13px;
        right: 10px;
        padding: 1px 8px;
        border-radius: 50%;
        background: red;
        color: white;
    }


.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #217346; /* Excel green color */
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-add-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #a06cca; 
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}
    .btn-add-new i {
        margin-right: 8px;
        font-size: 20px; /* Adjust icon size */
    }

    .btn-add-new:hover {
        background-color: #6b4d83; 
    }


    .btn-with-icon i {
        margin-right: 8px;
        font-size: 20px; /* Adjust icon size */
    }

    .btn-with-icon:hover {
        background-color: #185c37; /* Darker Excel green */
    }

.sort-arrow {
    font-size: 12px;
    margin-left: 5px;
}

.detail-gridview-header a {
    text-decoration: none;
    color: inherit;
}

.detail-gridview-header a:hover {
    text-decoration: none;
}

.detailLabel{
    font-weight: bold;
    padding: 15px;
}

.exportButtonExcel {
    /*position: fixed;*/
    top: 80px; /* Distance from the top */
    right: 50px; /* Distance from the right */
    /*display: flex;*/ /* Arrange buttons in a row */
    gap: 10px; /* Space between buttons */
}

.backtotop{
    float: right;
    margin-top: 10px;
}

.backtoprevious i{
    color: #161448;
}

.backtoprevious:hover i {
    color: #cfcfd0;
}

.newBody{
    min-width: 100% !important;
}

/*==================== Click Top ====================*/
.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.fixed-div {
    position: fixed;
    top: 50px; /* Adjust this value as needed */
    left: 0px;
    right: 0px; /* Adjust this value as needed */
    z-index: 1000;
    padding: 10px;
    background-color: aliceblue;
    /* Add other styling as needed */
}

#myBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: none; /* This ensures the button is initially hidden */
    /* Add your styling here */
}

.content {
    margin-top: 80px; /* Add top margin to avoid overlap with the fixed div */
    /* Add other styling as needed */
}
.contentD {
    margin-top: 40px; /* Add top margin to avoid overlap with the fixed div */
    /* Add other styling as needed */
}


.detail-row:hover {
    cursor: pointer;
    background-color: #cdcff9 !important;
    color: black !important; /* Change to your desired hover color */
}
.detail-row.non-clickable:hover {
    background-color: initial; /* Remove hover effect */
}

.detail-title{
    font-weight: bold;
    font-size: medium;
}

.sorted-header {
    font-family: Arial, sans-serif; /* Use a standard font */
    font-size: 14px;
    color: black;
    font-weight: bold; /* Make header text bold to highlight */
}


.selectStockInOut {
    min-width: -webkit-fill-available;
    padding: 3px;
}

.selectStockInOutRow{
    margin-top: 5px;
    margin-bottom: 5px;
}

.reason {
    min-width: -webkit-fill-available;
}

.disabledDate{
    background-color: #f0f0f0; /* Light grey background */
    color: #a0a0a0; /* Grey text */
    cursor: not-allowed; /* Indicate that it's not clickable */
    pointer-events: none; /* Disable pointer events */
}

.btn-getHistory {
    width: unset;
    padding: 10px;
    background-color: #161448;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 20px;
}

.dropdown-history-site-box {
    min-width: 150px;
    font-size: medium;
    height: 30px;
    border-radius: 7px;
    box-shadow: 10px;
}

.hidden-column {
    display: none;
}

.no-click {
    pointer-events: none;
    color: grey; /* Change text color to indicate it's disabled */
}

.wrap-text {
    word-wrap: break-word; /* Handles long words */
    white-space: normal; /* Allows wrapping of normal text */
    max-width: 30px;
}

.history-table{
    font-size: 10px;
}

/*MK TECH KL OFFICE*/
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.box-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background-color: #75b9de;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

    .box-button:hover {
        background-color: #b4a1ef;
        transform: translateY(-5px);
        text-decoration: none;
        color: black;
    }

    .box-button i {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .box-button span {
        font-size: 1.2rem;
        font-weight: bold;
    }
/*Modal*/
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Set the width of the modal */
    max-width: 500px; /* Max width for the modal */
    max-height: 80vh; /* Max height */
    overflow-y: auto; /* Scroll if the content is too large */
    margin-top: 100px;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 30px !important;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

@media (min-width: 450px) and (max-width: 765px) {
    #imgLogo{
        width: 110px;
    }

    .time-username{
        font-size: small;
    }
}
@media (min-width: 320px) and (max-width: 450px) {
    #imgLogo{
    width: 70px;
    }

    .time-username {
        font-size: small;
    }
}

@media (min-width: 320px) and (max-width: 768px){
    .tab .sidebar{
        width: 150px !important;
    }
    .tablinks{
        font-size: 12px;
    }

    #icon svg{
        margin-top: 20px;
    }
}

.sold-row {
    background-color: lightgray !important;
    color: black; /* Adjust text color if needed */
}

.contentLaptop{
    overflow-x: scroll;
}
/* General popup styling */
#addNewPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #ecf1f1;
    padding: 20px;
    margin: 7% auto;
    width: 80%;
    max-height: 80vh; /* Limit height to 80% of the viewport */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 8px;
}


    .popup-content h2 {
        margin-bottom: 20px;
        font-size: 24px;
        color: #333;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
    }
}

