/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
@import "root.css";
#ndkaq-main label {
  font-weight: bold;
}

.ndkaq-quote-block input[type="number"]::-webkit-inner-spin-button,
.ndkaq-quote-block input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: auto;
}

.btn i {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.btn.btn-default {
  vertical-align: middle;
  display: flex;
  align-items: center;
}

button.submit-ndkaq-item {
  background: none;
  border: none;
  color: var(--ndkaq-valid-color);
}

.ndkaq-delete-item {
  background: none;
  border: none;
  color: var(--ndkaq-refuse-color);
  display: inline-block;
}

.ndkaq-delete-item .material-icons[data-icon="delete"]::before {
  background: var(--ndkaq-refuse-color);
}

.ndkaq-quote-block {
  padding: 1rem;
  border: 1px solid var(--ndkaq-border-color);
  margin-bottom: 1rem;
  overflow-x: scroll;
  overflow-y: visible;
}

.ndkaq-quote-header.ndkaq-quote-block {
  overflow: unset;
}

.ndkaq-quote-row.action-row {
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.ndkaq-quote-header .ndkaq-quote-row {
  padding: 1rem 0;
}
.ndkaq-quote-block .ndkaq-quote-row:first-child {
  border: none;
}
.ndkaq-quote-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ndkaq-border-color);
  position: relative;
}

.ndkadvancedquotation-item .ndkaq-quote-row,
.header-row.ndkaq-quote-row {
  flex-wrap: nowrap;
  flex-wrap: nowrap;
  display: inline-flex;
  min-width: 100%;
}

.ndkaq-quote-footer .ndkaq-quote-row {
  justify-content: end;
  border: none;
}
.header-row {
  background: var(--ndkaq-border-color);
  font-weight: bold;
  position: sticky;
  top: 0;

  /* left: 0; */
  /* right: 0; */
}
.ndkaq-quote-row .item-cell {
  padding: 0.5rem;
  min-width: 4rem;
}
.ndkaq-quote-row input,
.ndkaq-quote-row select,
.ndkaq-quote-row textarea {
  max-width: 100%;
}

.ndkaq-quote-row input[type="text"],
.ndkaq-quote-row input[type="number"],
.ndkaq-quote-row input[type="datetime-local"],
.ndkaq-quote-row textarea {
  border: 1px solid var(--ndkaq-border-color);
}

.ndkaq-quote-row .qty-cell {
  width: 4rem;
}
.ndkaq-quote-row .price-cell {
  width: 5rem;
}

.ndkaq-quote-row.quote-total-row .price-cell {
  width: 8rem;
  text-align: right;
  min-width: 150px;
}
.ndkaq-quote-row.quote-total-row .price-cell label {
  width: 100%;
}

.ndkaq-quote-row .name-cell,
.ndkaq-quote-row .desc-cell {
  min-width: 10rem;
  width: 10rem;
}
.item-cell.image-cell {
  width: 6rem;
  text-align: center;
}
.image-cell img {
  max-width: 100%;
  height: auto;
}

.ndkaq-quote-notes .ndkaq-quote-row {
  padding: 1rem 0;
}

.ndkaq-quote-row .note-cell {
  min-width: 200px;
  width: 33%;
}
.ndkaq-quote-row .note-cell label,
.ndkaq-quote-row .note-cell textarea {
  width: 100%;
  text-align: left;
}

.ndkaq-quote-row .action-cell {
  min-width: 6rem;
  width: 6rem;
  display: flex;
}

.ndkaq-delete-item {
  cursor: pointer;
}

.item-description {
  max-height: 4rem;
  overflow: scroll;
}
.item-description:hover {
  position: absolute;
  background: #fff;
  padding: 1rem;
  border: 1px solid var(--ndkaq-border-color);
  z-index: 99;
  max-height: unset;
  top: 0;
}

span.ndkaq-add-row,
.createCustomer {
  background: #000;
  color: #fff;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: inline-block;
  text-align: center;
  line-height: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.total-quote-te,
.total-quote-ti {
  font-size: 1.2rem;
  font-weight: bold;
}

.buttons-row {
  gap: 2rem;
  justify-content: space-between !important;
}

.item-cell.customization-cell {
  width: 100%;
  flex: 100%;
  flex-shrink: 0;
  background: var(--ndkaq-soft-bg);
  position: relative;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: 5px;
}
.item-cell.customization-cell label {
  width: 100%;
  flex: 100%;
  flex-shrink: 0;
  text-align: left;
  margin: 0;
}
.item-cell.customization-cell::before {
  content: "";
  width: 0px;
  height: 0px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid var(--ndkaq-soft-bg);
  position: absolute;
  top: -15px;
  left: 2.5rem;
}
/* product search  */
.ajax-product-search,
.ajax-customer-create,
.ndkaq-popup {
  border: 1px solid var(--ndkaq-border-color);
  padding: 1rem;
  position: fixed;
  top: 10vh;
  background: #fff;
  left: 10vh;
  right: 10vh;
  bottom: 10vh;
  z-index: 9999;
  overflow: scroll;
  box-shadow: 0px 0px 10000px #999;
  display: none;
}

span.search-product-button {
  position: absolute;
  cursor: pointer;
}

.result-list {
  position: absolute;
  z-index: 9999;
  background: #fff;
  display: none;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1rem;
}
.result-list .product-result-item {
  padding: 0.5rem;
  border: 1px solid var(--ndkaq-border-color);
  cursor: pointer;
}

.result-list .product-result-item:hover {
  background: var(--ndkaq-border-color);
}
/* end product search  */
#ndkaq-create-customer {
  max-width: 600px;
  margin: auto;
}
#ndkaq-create-customer .ndkaq-quote-row {
  padding: 1rem;
}
@media (max-width: 991px) {
  .ndkaq-quote-row .note-cell {
    min-width: 100%;
    width: 100%;
  }
}
