/*------------------------------------------VIEW2 (Advanced Search Screen)-------------------------------------------*/

#view2_flex1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

#view2_flex2 {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

#Filter_Panel {
    margin: 0 0 10px 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.aspinputfield {
    box-sizing: border-box;
    width: 100%;
    margin: 10px;
    height: 20px;
    max-width: 330px;
}

.SearchResultText {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: gray;
    margin: 5px;
    margin-top: 25px;
    /* font-style: italic; */
}

.SearchButton {
    /*Main Search Button*/
    width: 45%;
    height: 50px;
    /* color: white;
    background-color: #860909; */
    font-size: 17pt;
}

#SearchResults_Lab>a {
    padding: 0 5px;
    color: black;
}

#SearchResults_Lab>a:hover {
    color: firebrick;
}

#SearchResults_Lab>a::after {
    content: "\00d7";
    vertical-align: super;
    display: inline;
    font-weight: bold;
    margin-right: 5px;
    margin-left: 2px;
}


/* .SearchButton:hover {
    background-color: #6F0606;
    cursor: pointer;
} */

.ResetButton {
    width: 25%;
    height: 50px;
    color: #860909;
    background-color: white;
    border-style: none;
    font-size: 17pt;
}

.ResetButton:hover {
    text-decoration: underline;
    cursor: pointer;
}

#searchhelplist ul li {
    margin: 5px;
    padding: 5px;
}


/* ------------------------------------------Main Inventory View----------------------------------------------------*/


/* MAIL FILTER PANEL */

.ShowLab {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ShowLab::before {
    /* content: "+"; */
    border-radius: 5px;
    /* border: 1px solid red; */
    font-size: 14px;
    margin: 2px;
    color: #860909;
    width: 20px;
    /* height: 16px; */
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    font-size: 15pt;
}

.ShowLab[data-min="true"]::before {
    content: "+";
}

.ShowLab[data-min="false"]::before {
    content: "-";
}

.MainFilterHeaderCont {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 7px 15px;
    background-color: #7c0909;
    cursor: pointer;
}

.MainFilterHeaderCont:first-child {
    cursor: unset;
}

.MainFilterHeaderCont>span {
    color: white;
    font-weight: bold;
}

.MainFilterItems {
    max-height: 230px;
    overflow: hidden;
}

.MainFilterItems[data-show="true"] {
    max-height: unset;
}

.MainFilterItem {
    display: flex;
    flex-direction: row;
    /* padding: 5px; */
    flex-basis: 19vw;
}

div.MainFilterItem>span[data-plet] {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.MainFilterItem>span[data-plet]>input,
div.MainFilterItem>input[type=radio] {
    margin: 4px;
}

div.MainFilterCont-ShowMany .MainFilterItem {
    flex-basis: 17vw;
    margin: 0 1vw;
}

.MainFilterItem>input {
    margin-left: 8px;
}

.MainFilterItem>label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    padding: 5px;
}

.MainFilterItem>label>span.FilterCount {
    font-size: 85%;
    color: gray;
}

div.MainFilterCont-ShowMany div.MainFilterItem>input~label {
    border-bottom: 2px solid transparent;
}

div.MainFilterCont-ShowMany div.MainFilterItem>input:checked~label {
    border-bottom: 2px solid #7c0909;
}

.PowerFilterItem {
    display: flex;
    flex-direction: row;
    padding: 5px;
    justify-content: space-around;
    align-items: center;
}

.PowerFilterItem>span {
    flex-grow: 1;
    text-align: center;
}

.ShowMoreCont {
    padding: 15px;
    display: flex;
    cursor: pointer;
}

.ShowMoreCont>svg {
    width: 20px;
    height: 20px;
}

.MainFilterButtonCont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.MainFilterButtonCont > input,
.MainFilterButtonCont > button {
    padding: 6px .85em;
    border-radius: 3px;
    outline: none;
    border-color: #440606;
    background: firebrick;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin: auto 5px;
    /* margin-right: 5px; */
    transition: background-color 0.3s;
}

.MainFilterButtonCont>input:hover {
    background-color: #440606;
}

.MainFilterButtonCont>* {
    flex-grow: 1;
}

.MainFilterCont-ShowMany {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 80vw;
    max-height: 80vh;
    z-index: 9999;
    background-color: white;
    /* top: 10vh;
    left: 10vw; */
    top: 50%;
    left: 50%;
    border: 5px solid darkgray;
    transform: translate(-50%, -50%);
}

.MainFilterCont-ShowMany>div.MainFilterItems {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: scroll;
    max-height: unset;
}

div.MainFilterCont>label.MainFilterHeaderCont::after {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    transition: transform 0.2s;
}

div.MainFilterCont>input.hidden:checked~.MainFilterHeaderCont::after {
    /* border-bottom: 0;
    border-top: 10px solid white; */
    transform: rotate(180deg)
}

div.MainFilterCont-ShowMany>.MainFilterHeaderCont::after {
    display: block;
    content: "X";
    width: 10px;
    height: 50%;
    color: white;
    font-weight: bold;
}

.MainFilterCont>input.hidden:checked~label.MainFilterHeaderCont~div.MainFilterItems,
.MainFilterCont>input.hidden:checked~label.MainFilterHeaderCont~div.MainFilterItems~div.MainFilterButtonCont {
    display: none;
    visibility: visible;
}

div.MainFilterCont-ShowMany>div.MainFilterItems>div.MainFilterItem:hover {
    background-color: #cfcfcf;
}


/* .MainFilterCont-ShowMany>div.MainFilterItems>div.MainFilterItem {
    flex-basis: 19vw;
} */


/* END MAIN FILTER PANEL */

#ItemCont {
    display: flex;
    flex-direction: row;
}

#InventoryViewFlex {
    flex-grow: 1;
}

#ItemFilterCont {
    /* width: 200px; */
    /* flex-basis: 30%; */
    margin-right: 10px;
    width: 15vw;
    min-width: 15vw;
    max-width: 15vw;
}

.MainFilterCont:first-child {
    margin-top: 5px;
}

.MainFilterCont {
    margin-top: 20px;
}

#ItemFilterCont>div.MainFilterCont {
    /* left, right box shadow */
    box-shadow: -6px 2px 8px -4px rgba(0, 0, 0, 0.12), 8px 2px 8px -4px rgba(0, 0, 0, 0.12);
}

.SpinContShow {
    position: fixed;
    top: 60%;
    left: 50%;
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #860909;
    box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    transform: translate(-50%, -50%);
}

.PageIndexNumbers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.PageIndexNumbers>a {
    margin: 0 3px;
}

.rptIVCommandBar {
    /* border: 2px solid hotpink; */
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    -moz-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    margin: 0 5px;
    margin-bottom: 15px;
    /* height: 40px; */
}

.rptIVCommandBar_Row {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: space-around;
    justify-content: space-around;
    flex-basis: 20%;
}

.rptIVCommandBar_Row>div {
    flex-basis: 20%;
    text-align: center;
    padding: 6px 0;
}

#BotBar {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: space-around;
    justify-content: space-around;
    height: 40px;
    -webkit-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    -moz-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.20);
    margin: 20px 5px;
    /* margin-bottom: 20px; */
}

#BotBar div {
    height: 100%;
}

#BotBar>a {
    display: flex;
    flex-direction: column;
    flex-basis: 35%;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.IVBut {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.00);
    outline: 0;
    text-decoration: line-through;
}

#NextIVBut.IVBut {
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(0, 0, 0, 0.2)
}

#BackIVBut.IVBut {
    border-top: none;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: none;
    border-left: none;
}

.IVBut-Enabled {
    font-weight: bold;
    text-decoration: none;
}

.IVBut-Enabled:hover {
    cursor: pointer;
}

.pages {
    display: flex;
    flex-direction: column;
}

.pages div a {
    color: #860909;
    /* margin: 0 2px; */
}

.pageselected {
    text-decoration: none;
    color: black;
}

.ProductLink {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

#InventoryViewFlex {
    display: flex;
    flex-direction: column;
    /* border: 2px solid fuchsia; */
    margin: 5px;
    /* margin-bottom: 15px; */
    flex-grow: 1;
}

.InventoryItemFlex {
    position: relative;
    display: flex;
    align-content: space-around;
    justify-content: space-around;
    margin-top: 3px;
    min-height: 85px;
    /*border: 2px solid grey;*/
    -webkit-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 1px 8px 2px rgba(0, 0, 0, 0.12);
}

.Inventory {
    /* border: 2px solid blue; */
    text-align: center;
    margin-top: 10px;
}

.Inventory span {
    margin-bottom: 5px;
}

.InventoryDesc {
    flex-basis: 35%;
    display: flex;
    flex-direction: column;
}

.InvDescFlex {
    display: flex;
    justify-content: space-around;
    align-content: space-around;
    flex-grow: 1;
    /* height: 100%; */
}

.InventoryPicDiv {
    flex-basis: 9%;
    max-width: 9%;
    max-height: 80px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: space-around;
}

.InventoryPicDiv a {
    height: 100%;
    max-height: 100%;
}

.PicImg {
    position: relative;
    max-height: 100%;
    /* max-height: 100%; */
    max-width: 100%;
    vertical-align: middle;
}

.ScalePicDiv {
    min-width: 50px;
    width: 50px;
    max-height: 70px;
    vertical-align: middle;
    margin-right: 0;
}

.ScalePic {
    width: 100%;
    max-height: 70px;
}

.InvDescText {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    margin-right: 13px;
}

.InventoryManu {
    font-weight: bold;
}

.InventoryProd {
    font-size: 14px;
}

.InventoryManuProd {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-basis: 14%
}

.InventoryPrices {
    flex-basis: 12%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.InventorySaleName {
    font-weight: bold;
}

.InventoryComments {
    flex-basis: 14%;
    display: flex;
    flex-direction: column;
}

.InventoryButtons {
    flex-basis: 12%;
}

.InvAddToCartButton {
    display: block;
    border: 0;
    padding: 4px;
    margin-bottom: 5px;
    font-weight: bold;
    width: 100%;
    border-radius: 2px;
}

.InventoryTagsFlexCont input {
    visibility: hidden;
    display: none;
}

.InventoryTagsFlexCont {
    /* padding-bottom: 5px; */
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    flex-direction: row;
    margin-top: 10px;
}

.FilterCont,
.TagFilterCont {
    background-color: #eaf1fa;
    border: 1px solid #ded9e1;
    margin: 0 5px;
    padding: 4px 4px 6px 4px;
}

.FilterContText {
    margin-right: 3px;
}

.FilterLabel,
.TagButLabel_Cls {
    font-style: italic;
    padding-bottom: 5px;
    cursor: pointer;
    display: inline-block;
}

.FilterLabel:hover,
.TagButLabel_Cls:hover {
    color: firebrick;
}

.FilterLabel::after,
.TagButLabel_Cls::after {
    content: "\00d7";
    vertical-align: super;
    display: inline;
    font-weight: bold;
    margin-right: 5px;
    margin-left: 2px;
}

.FilterLabel:active,
.TagButLabel_Cls:active {
    color: pink;
    transform: translateY(1px);
}

.TagCont {
    display: flex;
    flex-direction: column;
    position: relative;
}

.TagFilterLinksCont {
    position: absolute;
    right: 105%;
    bottom: 0;
    width: max-content;
    z-index: 995;
    background-color: white;
    border: 1px solid gray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.TagButArrow {
    position: absolute;
    height: 0;
    width: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid black;
    left: 100%;
    top: 30%;
    display: inherit;
}

.TagFilterLinksCont input {
    display: block;
}

.TagFilterLinks {
    margin: 4px;
    padding: 3px 20px;
    /* width: 92%; */
}

.ResetButtonCont {
    align-self: stretch;
    display: flex;
}

.ResetBut_Cls {
    background-color: #F4F5F7;
    font-weight: bold;
    border: 1px solid #d9d9d9;
}

.ResetBut_Cls:hover {
    color: red;
    cursor: pointer;
}

.PageNumsCont {
    position: relative;
}

.PageSearch_Cls {
    position: fixed;
    /* top: 115%; */
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    background-color: white;
    border: 1px solid gray;
    padding: 8px;
    width: max-content;
    z-index: 995;
}

.PageSearch_Cls>div {
    margin: 2px;
}

#PageSearch_TB {
    width: 100%;
}

#PageGoto_But {
    width: 100%;
    padding: 3px;
}

#MobileFilterLab {
    display: none;
    visibility: hidden;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 7px 15px;
    background-color: #7C0909;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 1200px) {
    #PowerFilterCont div.MainFilterItems {
        max-height: unset;
    }
    .PowerFilterItem {
        flex-direction: column;
    }
}

@media (max-width: 1000px) {
    .MainFilterItem>label {
        flex-wrap: wrap;
    }
    .MainFilterButtonCont {
        flex-direction: column;
    }
    .MainFilterHeaderCont>span {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    #ItemCont {
        flex-direction: column;
    }
    #ItemFilterCont {
        width: unset;
        max-width: unset;
        margin: 0 40px;
        margin-bottom: 15px;
    }
    #MobileFilterLab {
        display: flex;
        visibility: visible;
    }
    #MobileFilterLab::before {
        content: "Show Filters";
    }
    #ItemCont>#MobileFilterCHK:checked~#MobileFilterLab {
        background-color: #440606;
    }
    #ItemCont>#MobileFilterCHK:checked~#MobileFilterLab::before {
        content: "Hide Filters";
    }
    #ItemCont>#MobileFilterCHK~#MobileFilterLab~#ItemFilterCont {
        display: none;
        visibility: hidden;
    }
    #ItemCont>#MobileFilterCHK:checked~#MobileFilterLab~#ItemFilterCont {
        display: block;
        visibility: visible;
    }
    div.MainFilterCont-ShowMany .MainFilterItem {
        flex-basis: 42%;
    }
    #PowerFilterCont div.btext1 {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .rptIVCommandBar_Row {
        flex-wrap: wrap;
    }
}

@media (max-width: 452px) {
    .rptIVCommandBar_Row {
        flex-wrap: wrap;
    }
    /* #InventoryViewFlex {
        flex-direction: row;
        flex-wrap: wrap;
    } */
    .TagFilterLinksCont {
        top: 100%;
        right: 0;
        left: 0;
        bottom: auto;
        width: 93vw;
    }
    .InventoryItemFlex {
        flex-direction: column;
    }
    .InvDescFlex {
        flex-direction: column;
    }
    .ScalePicDiv {
        align-self: center;
    }
    .InventoryPicDiv {
        align-self: center;
    }
    .InventoryPrices {
        flex-basis: auto;
    }
    .InventoryPicDiv {
        max-width: 33%;
        max-height: none;
        flex-basis: auto;
    }
    .TagButArrow {
        display: none;
        visibility: hidden;
    }
    .ScalePicDiv {
        width: 70px;
        position: absolute;
        top: 0;
        left: 0;
    }
    .InventoryManuProd {
        flex-direction: row;
    }
    .InventoryProd {
        font-size: unset;
    }
    div.InvDescText>a {
        font-size: 18px;
    }
    div.Inventory.InventoryPrices>span {
        font-size: 16px;
    }
    div.InventoryComments>span.InventoryStock,
    div.InventoryButtons {
        font-size: 14px;
    }
    div.MainFilterCont-ShowMany .MainFilterItem {
        flex-basis: 92%;
    }
}