body { font-size: 0.7em; }
thead {
    position: sticky;
    top: 0;
    background-color: var(--bs-body-bg);
}

.wrapper-table { margin: 10px 15px; }
.wrapper-row { 
    margin: 10px auto;
    max-width: 500px;
}
.short-text { display: none; }
.collapsible-toggle { display: none; }
.hide-col { display: none; }
#filter-consumed { min-width: 85px; }
#controls-container { color: var(--bs-navbar-brand-color); }
#little-case-button { font-size: 0.6em; }
#inventory-wrapper { display: none; }
#login-wrapper {
    min-width: 350px;
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#see-password:hover,
#big-case-button,
#little-case-button { cursor: pointer; }
#search-term-container { margin: 5px 0; }
#search-term-container span,
#inventory-count-container span { padding: 5px 10px; }
#inventory-count-container {
    margin: 5px 0;
    display: flex;
    justify-content: flex-end;
}
#search-term-container div {
    padding-left: 0 !important;
    margin-right: 5px;
    display: inline-block;
}
#show-entry-form-modal {
    position: fixed;
    bottom: 10px;
    left: 12px;
}
#big-case-button,
#little-case-button {
    padding: 10px 15px;
}
.red-wine {
    background: linear-gradient(
        150deg,
        white,
        92%,
        rgb(88, 1, 1, 0.9)
    )
}
.white-wine {
    background: linear-gradient(
        150deg,
        white,
        92%,
        rgb(248, 248, 192, 0.9)
    )
}
.orange-wine {
    background: linear-gradient(
        150deg,
        white,
        92%,
        rgb(248, 190, 81, 0.9)
    )
}
.rose-wine {
    background: linear-gradient(
        150deg,
        white,
        92%,
        rgb(254, 217, 223, 0.9)
    )
}

#logged-in-user-email {
    color: white;
    padding: 10px;
    overflow-x: scroll;
}

/* OVERLAY STYLES */
.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.85);
    overflow-y: scroll;
    transition: 0.5s;
}

#overlay-content,
#overlay-content-entry-form {
    position: relative;
    top: 20%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding: 30px;
}
#overlay-content-entry-form {
    top: 7%;
}
#overlay-content .card {
    max-width: 700px;
    margin: auto;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

.query-term-pill-container,
.closebtn {
    cursor: pointer;
}
#mobile-view-container {
    display: none;
}

.mobile-list-view-item {
    display: flex;
    overflow: auto;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}
.mobile-list-view-item::-webkit-scrollbar {
    display: none;
}
.swipe-element {
    scroll-snap-align: start;
    /* list-group-item is from bootstrap and adds a 16px padding that messes things up, this fixes the mess up */
    margin-left: 16px; 
}
.mobile-list-view-item,
.action-swipe,
.swipe-element {
    min-width: 100%;
}
.action-swipe {
    display: flex;
    align-items: center;
}
/* icon should remain sticky */
.action-swipe > span {
    font-weight: bolder;
    color: #0d6efd;
    position: sticky;
    left: 16px;
    right: 16px;
}

@media screen and (max-height: 450px) {
    .overlay a { font-size: 20px; }
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

@media only screen and (max-width: 700px) {
    .collapsible {
        display: none;
    }
    .short-text {
        display: inline-block;
    }
    .full-text {
        display: none;
    }
    .collapsible-toggle {
        display: block;
    }
    .wrapper-table {
        margin: 10px 5px;
    }
    #mobile-view-container {
        display: block;
    }
    #data-table {
        display: none;
    }
}

/* THIS IS A BOOTSTRAP OVERRIDE */
.btn {
    font-size: 0.9em;
}

/* CUSTOM NAV STYLES */
.nav-custom {
    width: 100%;
    background-color: #212529;
    position: relative;
    display: flex;
    z-index: 5;
    padding: 5px 10px;
}

.nav-custom > .nav-custom-header,
.nav-navigation-links,
.nav-controls-container {
    display: flex;
}

.nav-custom > .nav-custom-header {
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #fff;
    margin-right: 25px;
}

.nav-custom > .nav-custom-btn {
    display: none;
}

.nav-custom > .nav-custom-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-custom > .nav-custom-links > div > a {
    display: inline-block;
    padding: 13px 10px 13px 10px;
    text-decoration: none;
    color: #efefef;
}
.nav-custom > .nav-custom-links > button {
    margin: 0 7px;
}

.nav-custom > .nav-custom-links > a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.nav-custom > #nav-check {
    display: none;
}

.active-nav-link {
    border-bottom: solid 2px #fff;
}

@media (max-width:700px) {
    .nav-custom { justify-content: space-between; }
    .nav-custom > .nav-custom-btn {
        display: flex;
    }
    .nav-custom > .nav-custom-btn > label {
        display: inline-block;
        width: 50px;
        height: 50px;
        padding: 13px;
    }
    .nav-custom > .nav-custom-btn > label:hover,.nav-custom  #nav-check:checked ~ .nav-custom-btn > label {
        background-color: rgba(0, 0, 0, 0.3);
    }
    .nav-custom > .nav-custom-btn > label > span {
        display: block;
        width: 25px;
        height: 10px;
        border-top: 2px solid #eee;
    }
    .nav-custom > .nav-custom-links {
        position: absolute;
        display: block;
        width: 100%;
        background-color:#212529;
        height: 0px;
        transition: all 0.3s ease-in;
        overflow-y: hidden;
        top: 50px;
        left: 0px;
        margin: 0 auto;
    }
    .nav-custom > .nav-custom-links > div,
    .nav-custom > .nav-custom-links > div > a,
    .nav-custom > .nav-custom-links > div > button {
        display: block;
        width: 100%;
    }
    .nav-custom > .nav-custom-links > .nav-navigation-link {
        padding: 40px 80px;
    }
    .nav-custom > .nav-custom-links > .nav-controls-container {
        padding: 0 80px;
    }
    .nav-custom > #nav-check:not(:checked) ~ .nav-custom-links {
        height: 0px;
    }
    .nav-custom > #nav-check:checked ~ .nav-custom-links {
        height: calc(100vh - 50px);
        overflow-y: auto;
    }
}
