html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.marginLeft10 {
    margin-left: 10px;
}

.marginTop5 {
    margin-top: 5px;
}



#pageGridControllerSecondRow div span {
    margin-right: 20px; /* Space between each color square + label set */
    display: flex;
    align-items: center; /* Vertically center align the text with the squares */
}

.search-panel {
    width: 600px;
    position: absolute;
    right: 23px;
    top: 0; /* Initially assume the grid starts at the top */
    display: none; /* Hidden by default */
    background-color: #f4f4f4;
    box-shadow: -1px 0 1px rgba(0,0,0,0.5);
    z-index: 13001; /* Ensure it's above other content */
}

    /* Adjust the top property based on your grid's actual position */
    .search-panel.active {
        display: block; /* Show panel */
    }

.panel-buttons {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
}

#searchPanelFilters .filter-div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#searchPanelFilters {
    max-height: calc( 100% - 110px); /* Ensures it doesn't grow beyond the parent container */
    overflow-y: scroll; /* Adds a vertical scrollbar when content exceeds max-height */
    position: absolute; /* Optional, depending on your layout needs */
    width: calc( 100% - 15px); /* Adjust as needed */
}

    #searchPanelFilters input[type="text"] {
        flex-grow: 1;
        margin-left: 10px;
    }

.fixed-width-label {
    display: inline-block;
    width: 100px; /* Adjust based on your longest label */
    margin-left: 5px;
}


#searchPanel {
    padding: 10px;
}

.filter-div select {
    margin-left: 10px;
}




#searchPanelGeneralFilters .filter-div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#searchPanelGeneralFilters {
    max-height: calc( 100% - 110px); /* Ensures it doesn't grow beyond the parent container */
    overflow-y: scroll; /* Adds a vertical scrollbar when content exceeds max-height */
    position: absolute; /* Optional, depending on your layout needs */
    width: calc( 100% - 15px); /* Adjust as needed */
}

    #searchPanelGeneralFilters input[type="text"] {
        flex-grow: 1;
        margin-left: 10px;
    }


#searchPanelCustomers {
    padding: 10px;
}


.halfSizeInputFilter {
    width: 100px;
    display: flex;
}

.halfSizeInputFilterInv {
    display: none;
}

.high-zindex {
    z-index: 99999 !important;
}

.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    margin-left: 10px !important;
    width: 440px !important;
    position: relative;
    vertical-align: middle
}


.large-checkbox {
    width: 1.4em;
    height: 1.4em
}


.scroll-container {
    overflow-x: auto; /* Allows horizontal scrolling */
    max-height: calc(30vh - 10px);
}

.container {
    max-width: calc(100% - 20px);
}

.buttonGreen {
    background-color: #157347;
    padding: 3px;
    color: white;
    cursor:unset;
}

.buttonGreen:hover {
    background-color: darkolivegreen;
    padding: 4px;
    color: white;
    cursor:pointer;
}

.buttonBlue {
    background-color: #0b5ed7;
    padding: 3px;
    color: white;
    cursor: unset;
}

    .buttonBlue:hover {
        background-color: #0a5dc7;
        padding: 4px;
        color: white;
        cursor: pointer;
    }

    .buttonGreen:focus {
        background-color: darkolivegreen;
        padding: 2px;
        color: white;
        cursor: pointer;
    }


/* Modal overlay styling */
.calevent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content styling */
.calevent-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    /* Input and label styling */
    .calevent-content label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

.calevent-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Button styling */
.calevent-buttons {
    display: flex;
    justify-content: space-between;
}

.calevent-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.calevent-cancel {
    background-color: #ccc;
}

.calevent-save {
    background-color: #28a745;
    color: white;
}

.calevent-button:hover {
    opacity: 0.9;
}


.event-normal {
    background-color: #FFFFFF;
    color: black;
}

.event-other {
    background-color: #d385ee;
    color: black;
}

.calendar_default_alldayevent_inner, .calendar_default_event_inner {
    background: unset !important;
}

.event-blue {
    background-color: #33C3FF;
    color: white;
}

.event-green {
    background-color: #28A745;
    color: white;
}

.popup-menu {
    position: absolute;
    display: none; /* Initially hidden */
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    z-index: 1000;
}

    .popup-menu ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .popup-menu li {
        padding: 5px 10px;
        cursor: pointer;
    }

        .popup-menu li:hover {
            background-color: #eee;
        }


.eventsubmenu {
    display: none; /* Initially hidden */
    position: absolute;
    top: 65px;
    left: 98%;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    list-style-type: none;
}

#subMenuPopup:hover .eventsubmenu {
    display: block; /* Show submenu on hover */
    top: 65px;
}

#subMenuPopupRemove:hover .eventsubmenu {
    display: block; /* Show submenu on hover */
    top: 95px;
}


.event-color1 {
    background-color: #d385ee; /* Light purple */
    color: black;
}

.event-color2 {
    background-color: #a8e6cf; /* Light mint green */
    color: black;
}

.event-color3 {
    background-color: #ffab91; /* Light coral */
    color: black;
}

.event-color4 {
    background-color: #ffecb3; /* Light yellow */
    color: black;
}

.event-color5 {
    background-color: #81deea; /* Light teal */
    color: black;
}

.event-color6 {
    background-color: #c5cae9; /* Light lavender */
    color: black;
}

.event-color7 {
    background-color: #f48fb1; /* Light pink */
    color: black;
}

.event-color8 {
    background-color: #ffe082; /* Light amber */
    color: black;
}

.event-color9 {
    background-color: #b2ebf2; /* Light cyan */
    color: black;
}

.event-color10 {
    background-color: #bcaaa4; /* Light mocha */
    color: black;
}

.event-color11 {
    background-color: #d4e157; /* Light lime green */
    color: black;
}

.event-color12 {
    background-color: #ffd180; /* Light peach */
    color: black;
}

.event-color13 {
    background-color: #f8bbd0; /* Light rose */
    color: black;
}

.event-color14 {
    background-color: #d7ccc8; /* Light beige */
    color: black;
}

.event-color15 {
    background-color: #cfd8dc; /* Light slate gray */
    color: black;
}

.event-color16 {
    background-color: #e6ee9c; /* Light olive green */
    color: black;
}

.event-color17 {
    background-color: #ffccbc; /* Light salmon */
    color: black;
}

.event-color18 {
    background-color: #f5f5f5; /* Light gray */
    color: black;
}

.event-color19 {
    background-color: #d1c4e9; /* Light violet */
    color: black;
}

.event-color20 {
    background-color: #c8e6c9; /* Light green */
    color: black;
}

.calendar_default_event_inner {
    overflow: auto !important;
}

.ppopup-menu {
    display: none; /* Initially hidden */
    position: absolute;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
}

    .ppopup-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ppopup-menu li {
        padding: 10px 15px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
    }

        .ppopup-menu li:last-child {
            border-bottom: none;
        }

        .ppopup-menu li:hover {
            background-color: #f0f0f0;
        }

.addbtn {
    border: 1px;
    background-color: Background;
    padding: 6px 6px 4px 6px;
    margin: 0px 0px 0px 0px;
}

.gridHeader {
    height: 30px;
    text-align: left;
    float: left;
    vertical-align: middle;
    display: flex;
    align-content: center;
    align-items: center;
}

.custom-button-container {
    justify-content: center;
    display: flex;
}

#scannerContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
    text-align: center;
    color: white;
}

.scannervideo {
    width: 100%;
    max-width: 400px;
    border: 2px solid white;
    border-radius: 5px;
}

.scannerbutton {
    margin-top: 10px;
    padding: 10px;
    border: none;
    cursor: pointer;
}

#startScan {
    background: green;
    color: white;
}

#stopScan {
    background: red;
    color: white;
}

#closeScanner {
    background: gray;
    color: white;
}