/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under the GNU Affero General Public License version 3
 * For full copyright and license information, please see LICENSE
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop 3.1.0
 * @license       https://opensource.org/licenses/AGPL-3.0
 * @author        Mario Rothauer <office@foodcoopshop.com>
 * @copyright     Copyright (c) Mario Rothauer, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */
.modal {
    z-index: 100000;
}
.modal-title {
    line-height: 1.3;
    width: 94%;
}
.modal-header {
    color: #fff;
    min-height: 55px;
    border-bottom: none;
}
.modal-header .btn-close {
    background-image: none;
    position: absolute;
    top: 14px;
    right: 25px;
    opacity: 1;
}
.modal-header .btn-close i {
    color: #fff;
}
.modal-header .btn-close:hover {
    opacity: .7;
}
.modal-backdrop {
    opacity: .5 ! important;
    z-index: 99991;
}
.modal-dialog .btn:not(.dropdown-toggle) {
    font-size: 15px ! important;
    padding: 6px 10px ! important;
}
.modal-dialog .modal-body {
    font-size: 14px;
}
.modal-header {
    cursor: move;
}
.modal #flashMessage {
    opacity: 1;;
    left: 0;
    right: 0;
    top: 42px ! important;
    margin-right: auto;
    margin-left: auto;
}
#order-for-different-customer-add .modal-dialog {
    max-width: 95vw;
    height: 90vh;
}
#modal-elfinder .modal-dialog {
    width: 75vw;
    max-width: 1150px;
    height: 70vh;
}
#elfinder {
    height: 100% ! important;
}
#modal-elfinder .modal-content {
    height: 70vh;
}
#order-for-different-customer-add .modal-content {
    height: 100%;
}
#order-for-different-customer-add .modal-body {
    padding: 0;
}
#order-for-different-customer-add .modal-footer,
#modal-image .modal-footer {
    display: none;
}
#order-for-different-customer-add .bootstrap-select {
    width: 300px ! important;
}
#order-for-different-customer-add .modal-header .start span.title {
    float: left;
    line-height: 30px;
    margin-right: 5px;
}
#order-for-different-customer-add .bootstrap-select div.filter-option-inner-inner i.fas {
    top: 10px;
}
#order-for-different-customer-add .message-container select#customersDropdown {
    width: 400px;
}
#order-for-different-customer-add .modal-header .close {
    padding: 10px;
    padding-left: 0;
}
body.iframe_instant_order,
body.iframe_self_service_order {
    margin: 0;
}
.iframe_instant_order #content,
.iframe_self_service_order #content {
    width: 100%;
    height: 1000px;
    text-align: center;
    padding-top: 40px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    margin-top: 0 ! important;
    border: none;
}
#order-detail-customer-edit-form .bootstrap-select,
#payment-deposit-add .bootstrap-select,
#modal-product-attribute-add .bootstrap-select,
#payment-deposit-add .input.select {
    width: 100% ! important;
}
#payment-deposit-add .bootstrap-select {
    margin-bottom: 10px;
}
.modal .categories-checkboxes {
    display: block;
}
.modal .tax-dropdown-wrapper,
.modal .purchase-price-tax-dropdown-wrapper {
    display: block;
}
.modal .tax-dropdown-wrapper select,
.modal .purchase-price-tax-dropdown-wrapper select {
    width: 240px;
    float: left;
}
#product-tax-edit-form label {
    width: 100px;
    float: left;
    margin-top: 4px;
}
.modal .jodit-container {
    width: 100% ! important;
    float: none;
}
#modal-product-add .modal-dialog,
#modal-product-name-edit .modal-dialog {
    max-width: 900px;
}
.modal-dialog .block {
    width: 49%;
    float: left;
}
.modal-dialog .block-a {
    margin-right: 2%;
}
.modal-dialog .block hr:last-of-type {
    display: none;
}

#modal-product-add .textarea-wrapper,
#modal-product-name-edit .textarea-wrapper {
    width: 100%;
    float: left;
}
.modal.add-payment-form label {
    display: block;
    font-weight: 600;
}
.modal.add-payment-form .datepicker {
    text-align: right;
}
.modal.add-payment-form .input.number {
    text-align: center;
}
.modal.add-payment-form .radio-wrapper {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}
.modal.add-payment-form .radio-wrapper label {
    float: left;
    width: auto;
    margin-right: 5px;
}
#order-detail-product-quantity-edit-form input[type="number"],
#order-detail-product-price-edit-form input[type="number"],
.modal.add-payment-form input[type="number"] {
    margin-bottom: 5px;
    margin-right: 5px;
    font-size: 30px;
    width: 130px;
    text-align: right;
}
#order-detail-product-price-edit-form .price-per-unit-info-text {
    color:var(--not-ok-red);
    float:left;
    margin-bottom:5px;
}
#modal-text .modal-dialog,
#modal-image .modal-dialog {
    max-width: 800px;
}
#modal-text h2 {
    font-size: 20px;
}
#modal-text h3 {
    font-size: 16px;
}
#modal-image .modal-body {
    max-height: calc(100vh - 120px);
    min-height: 400px;
    overflow-y: auto;
    text-align: center;
}
#modal-image .modal-dialog img {
    width: auto;
    max-width: 766px;
    max-height: calc(100vh - 154px);
}
#modal-product-add input[type="text"],
#modal-product-name-edit input[type="text"],
#order-detail-product-name-edit-form #dialogOrderDetailProductNameName {
    width: 100%;
    margin-bottom: 5px;
}
.modal hr {
    float: left;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}
.modal .declaration-wrapper .is-declaration-ok {
  line-height: 20px;
}
.modal .declaration-wrapper label.is-declaration-ok input {
  float: left;
  margin-right: 5px;
}
.modal .declaration-wrapper a {
    float: right;
}
.modal .small {
    color: #969696;
    line-height: 16px;
}
.modal .field-wrapper {
    width: 100%;
    float: left;
}
.modal .field-wrapper:first-of-type {
    margin-top: 10px;
}
.modal .field-wrapper label:not(.checkbox) {
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 5px;
    float: left;
    margin-right: 5px;
    width: 110px;
    clear: both;
}
.modal .field-wrapper select,
.modal .field-wrapper input[type="text"],
.modal .field-wrapper input[type="number"] {
    width: 285px;
    float: right;
    margin-right: 0;
    margin-bottom: 5px;
}
.modal .field-wrapper input[type="text"]:first-of-type {
    margin-top: 3px;
}
.modal .field-wrapper input.datepicker,
.modal .field-wrapper input[type="number"] {
    text-align: right;
}
.modal .field-wrapper label.checkbox {
    width: 100%;
}
.modal .checkbox input[type="checkbox"] {
    float: right;
}
#product-categories-edit-form input[type="checkbox"],
#order-detail-product-quantity-edit-form input[type="checkbox"],
#order-detail-pickup-day-edit input[type="checkbox"],
#order-detail-product-price-edit-form input[type="checkbox"],
#order-detail-customer-edit-form input[type="checkbox"],
#modal-product-price-edit input[type="checkbox"] {
    float: left;
}
#modal-product-quantity-edit input[type="number"],
#modal-product-calculate-selling-price-with-surcharge input[type="number"] {
    width: 20%;
}
#modal-product-quantity-edit .field-wrapper label:not(.checkbox),
#modal-product-calculate-selling-price-with-surcharge .field-wrapper label:not(.checkbox) {
    width: 73%;
}
#modal-product-quantity-edit .calculator-output {
    float: left;
}
#modal-product-quantity-edit #dialogQuantityChangeReason {
    width: 100%;
}
#modal-product-quantity-edit .calculator-toggle-button {
    margin-top:3px;
    float:right;
}
#modal-product-quantity-edit .calculator-input {
    margin-left: 10px;
    width: 178px;
},
#modal-product-price-edit .deactivated {
    opacity: 0.3;
}
#modal-product-price-edit select {
    width: 60px;
    margin-left: 5px;
}
#modal-product-purchase-price-edit input[type="number"],
#modal-product-price-edit input[type="number"],
#modal-product-deposit-edit input[type="number"] {
    width: 70px;
    margin-right: 5px;
    margin-top: 5px;
    text-align: right;
}
#modal-product-price-edit label.radio input:focus {
    outline: none;
}
#modal-product-price-edit label.radio input {
    position: static;
    float: left;
    width: 20px;
    height: 20px;
}
#modal-product-price-edit label.radio input {
    margin-right: 5px;
}
#modal-product-price-edit input#dialogPriceUnitName {
    text-align: left;
}
#modal-product-price-edit label.radio {
    line-height: 20px;
    position: static;
    margin-top: 5px ! important;
    float: left;
    margin-bottom: 5px;
    font-weight: 600;
}
#modal-product-price-edit .price-per-unit-wrapper,
#modal-product-price-edit .price-wrapper {
    width: 100%;
    float: left;
    margin-top: 5px;
}
.modal-body > ul li {
    margin-left: 20px;
    margin-top: 5px;
    list-style: disc;
}
#modal-invoice-for-customer .modal-dialog {
    max-width: 520px;
}
#modal-invoice-for-customer .checkbox input[type="checkbox"] {
    float: left;
}
