/* General */
.category-products img {
    margin: auto;
    width: auto;
    height: 150px;
}

.category-products .card-title {
    height: 4.5rem;
}

.hiddenRow td {
    padding: 0 !important;
}

.category-products .card-title small.text-danger {
    display: block;
}

.category-products .card-body {
    padding: 0.75rem 1rem;
}

.category-products .card-footer {
    padding: 0.75rem 1rem;
}

.green-link {
    color: #1e7e34 !important;
}

.sku {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 2px 7px;
    color: #212529;
}

table#id_invoices td {
    cursor: pointer;
}

.match {
    position: relative;
}

.match::after {
    content: '\2713';
    color: #28a745;
    font-size: 2rem;
    position: absolute;
    top: 0;
    margin-right: 1rem;
}

.id-th {
    width: 120px;
}

.qty-th {
    width: 200px;
}

.show-all {
    cursor: pointer;
    color: #007bff;
    text-decoration: none;
}

.show-all:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alertify-notifier .ajs-message.ajs-warning {
    background: rgba(0, 123, 255, 0.95) !important;
}

input[name="discount"] {
    max-width: 50px;
}

.input-group-append .add-discount {
    border: 1px solid #ced4da;
}

.table th {
    background-color: #f4f4f4;
}

.btn-outline-secondary.gift-btn:not(:disabled):not(.disabled):active,
.btn-outline-secondary.gift-btn:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.gift-btn.dropdown-toggle {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.ajs-message.ajs-warning,
.ajs-message.ajs-error,
.ajs-message.ajs-success {
    color: #fff;
}

.categories .nav-item {
    width: 20%;
    text-align: center;
    outline: 1px solid #efefef;
}

.categories .dropdown-menu {
    min-width: 100%;
    text-align: center;
}

span.bonus {
    background-color: #007bff;
    color: #fff;
    display: inline-block;
    padding: 0.25rem 1rem;
    line-height: 1;
    float: left;
}

.nav-pills.categories .nav-link.active,
.nav-pills.categories .show > .nav-link {
    color: #fff !important;
    background-color: #343a40 !important;
}

.categories .dropdown-item.active,
.categories .dropdown-item:active {
    background-color: #343a40;
}

.bonus-td {
    background-color: #f4f4f4;
}

#id_invoices {
    list-style-type: none;
    padding: 0;
}

.form-group.input3 {
    max-width: 4rem;
    margin-bottom: 0;
}

.form-group.input3 input {
    text-align: center;
    padding: 0.175rem 0.75rem;
}

.form-group.input4 {
    width: 5rem;
    margin-bottom: 0;
}

.form-group.input4 select {
    padding: 0.175rem 0.75rem;
    height: auto !important;
}

.gift-ribbon, .cart-ribbon {
    display: none;
}

.gift-ribbon.show, .cart-ribbon.show {
    display: block;
}

.gift-ribbon .ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.gift-ribbon .ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    background: linear-gradient(#0069D9 0%, #004A99 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    right: -21px;
}

.gift-ribbon .ribbon span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #004A99;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #004A99;
}

.gift-ribbon .ribbon span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #004A99;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #004A99;
}

.cart-ribbon .ribbon {
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.cart-ribbon .ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    background: linear-gradient(#28A745 0%, #165C26 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    left: -21px;
}

.cart-ribbon .ribbon span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #165C26;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #165C26;
}

.cart-ribbon .ribbon span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #165C26;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #165C26;
}

.relative {
    position: relative;
}

.onsale {
    position: absolute;
    bottom: 0;
    left: 15px;
    color: #fff;
    background-color: red;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 35px;
    font-size: 12px;
    text-align: center;
}

.new {
    position: absolute;
    bottom: 0;
    right: 15px;
    color: #fff;
    background-color: #40a0a0;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 35px;
    font-size: 12px;
    text-align: center;
}

#return-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #343a40;
    width: 30px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.obligo-info {
    display: none;
}

.obligo-info.show {
    display: block;
}

#return-to-top svg {
    color: #fff;
    margin: 0;
    position: relative;
    top: 4px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (min-width: 576px) {
    .card-columns {
        column-count: 1;
    }

    .card-deck .card {
        -ms-flex: 1 0 100%;
        flex: 1 0 100%;
    }
}

@media (min-width: 720px) {
    .card-columns {
        column-count: 2;
    }

    .card-deck .card {
        -ms-flex: 1 0 33%;
        flex: 1 0 33%;
    }

}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 3;
    }

    .card-deck .card {
        -ms-flex: 1 0 25%;
        flex: 1 0 25%;
    }
}
