html {
    scroll-behavior: smooth;
  }

.td-no-wrap {
	white-space: nowrap;
}

#header .row {
    padding: 2.25rem 1.75rem;
}
@media screen and (max-width: 768px) {
    #header .sixteen.wide.mobile.eleven.wide {
        text-align: center;
    }
}
@media screen and (min-width: 768.01px) {
    #header .sixteen.wide.mobile.eleven.wide {
        text-align: right;
    }
}

.header a {
    display: block;
}

#logout_link {
    cursor: pointer;
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    border-right: rgba(34, 36, 38, 0.15);
}

#logout_link input {
    cursor: pointer;
    padding: 1.15em 1.14285714em;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
}

.main-content {
    padding: 1.5rem;
    min-height: 20rem;
}
@media screen and (max-width: 400px) {
    .main-content {
        padding: 1.5rem 0.5rem;
        min-height: 20rem;
    }
}

#footer {
    display: grid;
    justify-items: right;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 15px 25px;
}
#footer div:first-of-type {
    grid-column: 1 / span 3;
    justify-self: start;
}

form.djangoRendered {
    display:-webkit-box;
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column !important;
}

.djangoRendered label {
    width: 10rem !important;
    text-align: right !important;
    margin-right:0.5rem !important;
    overflow: visible !important;
}

.djangoRendered input {
    width: 10rem !important;
}

.djangoRendered input[type="email"] { /* Must come after unqualified input */
    width: 20rem !important;
}

.djangoRendered input[type="submit"]{ /* Must come after other inputs */
    width: auto !important;
    margin: 1rem 0 0 0 !important;
}

.djangoRendered .helpText {
    margin-left: 10.75rem !important;
    font-style:italic;
    color: rgb(24,167,175);
}

.djangoRendered .errorItem {
    margin-left: 10.75rem !important;
    margin-bottom:6px !important;
}

.djangoRendered .errorItemNoFieldLabel {
    margin-bottom:6px !important;
}

.djangoRendered .segment {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-self: center;
    -ms-flex-item-align: center;
    align-self: center;
}

/* Cards maintain a minimal width and can be easily centered, so the following allows a card to be rendered without a border */
.ui.basic.card {
    box-shadow: none;
}

.ui.menu .shop.icon ~ .label { /* This rule works when placed in-line but not from the style sheet */
    margin-left: -0.5rem !important;
}

/* **** END MEDIA QUERY GROUPING ***** */

.address.card .checkbox {
    margin-right:1rem;
}

#payment_method_div {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}    
#payment_method_div .ui.horizontal.divider {
    margin: 0 1rem;
}
#payment_method_div > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 290px;
}    
#payment_method_div input {
    text-align: center;
}
#stored_payment_sources img {
    display: inline-block;
}

#address_wrapper .ui.horizontal.divider {
    margin: 2rem 0;
}

@media screen and (max-width:600px) {
    #address_wrapper .ui.horizontal.divider {
        white-space: normal !important;
    }
}

input[type="number"][step="0"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"][step="0"] {
    -moz-appearance:textfield;
}

/* Product Listing */
.product.card img {
    max-height: 100px;
    max-width: 90%;
    height: auto !important;
    width: auto !important;
}
img.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.product.card .extra.content {
    height: 3.5rem;
}
.product.card .extra.content:has(span:empty) {
    display: none;
}

/* Individual product page */
.product.image {
    width: auto !important;
    max-height: 450px;
}

/* Product option name is in first column and product option choices are in second column */
.productOption.row {
    align-items: center !important;
}
.productOption.row:not(:last-child) {
    padding-bottom: 0.1rem !important;
}
.productOption.row .column:first-of-type {
    font-weight: 700;
    padding-right: 0.5rem !important;
}
.productOption.row .column:last-of-type {
    padding-left: 0.5rem !important;
}
/* Display all Fomantic UI elements found in the product option choices column as block */
.productOption.row .column:nth-of-type(2) .ui {
    display: block;
}
/* Override above for SUI multiple dropdown selected items */
.productOption.row a {
    display: inline-block !important;
}
/* Checkboxes are too close together... */
.productOption.row .column:nth-of-type(2) .ui.checkbox {
    margin-bottom: 0.25rem;
}
/* SUI widget wasn't behaving properly */
#add_to_cart_form .multiple.dropdown a img {
    margin-bottom: 0;
}

/* ******** MEDIA QUERY GROUPING ********* */
@media screen and (min-width: 768px) {
    #btn_show_missing { display: none; }
    #header { display: block; }
}
@media screen and (max-width: 767px) {
    #btn_show_missing { display: inline; }
}
/* ******** MEDIA QUERY GROUPING ******** */
@media screen and (min-width: 660px) {
    #checkout-btn { margin-top: 0 !important; }
}
@media screen and (max-width: 659px) {
    #checkout-btn { margin-top: 0.5rem !important; }
}

.items-filter .column:not(.grid) {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.ui.form input[readonly] {
    border: none;
}
/* NOTE!  The portion of the following rule for ".ui.selection.dropdown" was added because of a bug/"feature" in Fomantic UI where the "required" attribute is removed from the underlying <select> element when the dropdown is initialized:  https://github.com/fomantic/Fomantic-UI/issues/2940#issuecomment-1819782608 */
.ui.form:not(.no-required-highlight) input:required:not([readonly]), .ui.form:not(.no-required-highlight) .ui.selection.dropdown[required] {
    border-left: 3px solid lightblue !important;
}

.order-item-option-wrapper {
    min-width: 300px
}
.order-item-option-wrapper:first-of-type {
    margin-block-start: 0.25rem;
}
.order-item-option-wrapper:not(:last-of-type) {
    margin-block-end: 0.5rem;
}
.order-item-option-wrapper .ui.horizontal.card > .image {
    width: auto;
}
.order-item-option-wrapper .ui.horizontal.card .header {
    font-size: 1em;
}

.card .delete_file.button {
    margin-bottom: 10px;
}

/* ****************** NAVIGATION / MENUs ***************** */
#nav_wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
li.search-form {
    margin-right: none !important;
}
#nav_wrapper > form.search {
    margin-right: 1rem;
}

#nav_wrapper .ui.selection.dropdown {
    margin: 0.25rem 1rem !important;
}
.has-sub-menu {
    flex-direction: column;
    align-items: flex-start !important;
}
.has-sub-menu > ul {
    width: 100%;
    padding: 0 calc(1rem + 0.35vw)
}
#toggle_menu {
    cursor: pointer;
}

/* Breakpoints */
@media screen and (min-width: 768px) {
    .main-menu a {
        min-height: 3.7rem;
        align-items: center;
    }
    #nav_wrapper > form.search {
        display: block;
    }
    /* Have to apply styling to the list item */
    .main-menu > li.search-form {
        display:  none !important;
    }
    #nav_wrapper nav li {
        min-height: 3.6rem;
    }
    #logout_link {
        min-height: 3.6rem;
    }
}
@media screen and (max-width: 767.98px) {
    #nav_wrapper nav {
        width: 100%;
    }
    .main-menu > li:not(:last-of-type) {
        border-bottom: 1px solid #d4d4d5 !important;
    }
    .main-menu > li:first-of-type {
        border-top: 1px solid #d4d4d5 !important;
    }
    .main-menu li a {
        padding: 0.65rem 0.75rem !important;
    }
    .main-menu .has-sub-menu > ul > li > a {
        padding: 0.65rem 1.5rem !important;
    }
    #nav_wrapper > form.search {
        display: none !important;
    }
    .main-menu > li.search-form {
        display:  flex;
        justify-content: center;
    }
    #nav_wrapper nav li {
        min-height: 2.8rem;
    }
    #logout_link {
        min-height: 2.8rem;
    }
    li.search-form {
        padding-top: 0.33rem;
        padding-bottom: 0.33rem;
        border-bottom: none !important;
    }
}
  
#nav_wrapper nav a:hover {
    text-decoration: none;
}

.has-sub-menu > a {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    cursor: pointer
}

.drop-icon {
    margin-left: 5px;
}

#nav_wrapper nav a {
    cursor: auto;
}
.drop-icon, #nav_wrapper nav a:not([href="#"]) {
  cursor: pointer;
}

#nav_wrapper nav ul {
    margin: 0;
    padding: 0;
}

#nav_wrapper nav .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
}

#nav_wrapper nav input[type="checkbox"], 
#nav_wrapper nav ul span.drop-icon {
  display: none;
}

#nav_wrapper nav li, 
#toggle_menu, 
#nav_wrapper nav .has-sub-menu > ul {
  border-style: solid;
}

#nav_wrapper nav li, 
#toggle_menu {
  border-width: 0 0 1px;
}

#nav_wrapper nav .has-sub-menu > ul {
  border-width: 1px 1px 0;
}

#nav_wrapper nav .has-sub-menu > ul li:last-child {
  border-width: 0;
}

#toggle_menu {
    font-weight: 900;
}

#nav_wrapper nav li, #toggle_menu, #nav_wrapper nav a {
  position: relative;
  display: inline-flex;
  text-transform: uppercase;
}

#toggle_menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 0.75rem 0.75rem;
}
#nav_wrapper nav li {
    display: flex;
    align-items: center;
}
#nav_wrapper nav a {
    width: 100%;
    padding: 1rem calc(0.75rem + 0.35vw);
    transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
}
/* #nav_wrapper nav .selection {
  margin: 0.25rem calc(0.75rem + 0.35vw);
} */

#nav_wrapper nav .has-sub-menu > ul {
  display: none;
}

#nav_wrapper nav input[type="checkbox"]:checked + ul {
  display: block;
}

.drop-icon {
    font-size: 20px;
}
#toggle_menu .drop-icon {
margin: calc(0px - 0.75rem) calc(-1px + -0.725rem) calc(-1px - 0.75rem) calc(-1px - 0.75rem);
}
#nav_wrapper nav li label.drop-icon {
    margin: calc(1px - 0.75rem) calc(0px + -0.75rem) calc(0px - 0.75rem) calc(0px - 0.75rem)
}

#nav_wrapper nav label.drop-icon, #toggle_menu span.drop-icon {
    font-size: 1.25rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, .75);
    text-shadow: 0 0 0 transparent;
}

#nav_wrapper nav label.drop-icon {
    padding: inherit;
}
#toggle_menu span.drop-icon {
    padding: inherit;
}

@media only screen and (min-width: 768px) {
  #nav_wrapper nav .main-menu {
    display: block;
  }

  #toggle_menu, 
  #nav_wrapper nav label.drop-icon {
    display: none;
  }

  #nav_wrapper nav ul span.drop-icon {
    display: inline-block;
  }

  #nav_wrapper nav li {
    float: left;
    border-width: 0 1px 0 0;
  }

  #nav_wrapper nav .has-sub-menu > ul li {
    float: none;
  }

  #nav_wrapper nav .has-sub-menu > ul {
    border-width: 0;
    margin: 0;
    width: 14rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 3000;
  }

  #nav_wrapper nav .has-sub-menu > ul, 
  #nav_wrapper nav input[type="checkbox"]:checked + ul {
    display: none;
  }

  #nav_wrapper nav .has-sub-menu > ul li {
    border-width: 0 0 1px;
  }

  #nav_wrapper nav .has-sub-menu > ul .has-sub-menu > ul {
    top: 0;
    left: 100%;
  }

  #nav_wrapper nav li:hover > input[type="checkbox"] + ul {
    display: block;
  }
}

.table-responsive {
    overflow-x: auto;
    padding: 3px !important;
}

.proof-table-data .unapproved-proof-label.ui.button {
	cursor: default;
	background-color: #00b5ad;
}

.proof-table-data .approved-proof-label.ui.button, .proof-table-data .approved-proof-btn.ui.button {
	cursor: default;
	background-color: #21ba45;
}

table.search-results.table tbody tr td:nth-last-child(-n + 1), table.search-results.table tbody tr td:nth-last-child(-n + 3) {
	white-space: nowrap;
}

.approve-proof-container {
	white-space: nowrap;
}

select {
    cursor: pointer;
}

/* Specifically here to handle the case of editing a record that has a FileField, e.g., SalesTaxExemption */
.ui.form .field a {
    overflow-wrap: anywhere;
}
.ui.form .field a ~ input[type="file"]{
    margin-top: 0.25rem;
}

/* SUI overrides */
.ui.form .field input:not(:placeholder-shown):invalid {
    color: unset !important;
    background: unset !important;
    border: 1px solid rgba(34,36,38,.15) !important;
}

.ui.form .ui.file.input[type=file]:required:invalid {
    color: unset !important;
    background: unset !important;
    border: 1px solid rgba(34,36,38,.15) !important;
}

.secondary.vertical.menu .item {
    line-height: 1.15 !important;
    padding-top: 0.275em !important;
    padding-bottom: 0.275em !important;
}

.errorlist, [id^="error"] {
    display: block;
    color: red;
    font-weight: 700;
}