/**
* NOTICE OF LICENSE
*
* This source file is subject to a commercial license from SOLEDIS
* Use, copy, modification or distribution of this source file without written
* license agreement from the SOLEDIS GROUP is strictly forbidden.
*    ___  ___  _    ___ ___ ___ ___
*   / __|/ _ \| |  | __|   \_ _/ __|
*   \__ \ (_) | |__| _|| |) | |\__ \
*   |___/\___/|____|___|___/___|___/
*
*  @author    SOLEDIS <prestashop@groupe-soledis.com>
*  @copyright 2017 SOLEDIS
*  @license   All Rights Reserved
*  @coder     Grégory Le Vaguerèse
*/

#quickorderform-table td { display:table-cell; overflow: initial !important; }
#quickorderform-table .center,
#quickorderform-summary .center { text-align:center; }
#quickorderform-table .bold,
#quickorderform-summary .bold { font-weight:bold; }
#quickorderform-table .product-price { color:#000; /* display:block; */ }
#quickorderform-table .product-quantity .input-group { width: 6.5rem; }
#quickorderform-table .product-quantity .input-group .btn { height: 21px; }
#quickorderform-table .product-quantity .qty {
  /* display:inline-block;
  float:none; */
  margin: 0;
  min-width: 60%;
  width: 5rem;
}
#quickorderform-table .quantity-input { text-align:center; }
#quickorderform-table thead th {
  border-bottom:none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
}
#quickorderform-table select.form-control { height: auto !important; }
#quickorderform-table button,
#quickorderform-summary button {
  /* min-width:200px; */
  text-overflow:ellipsis;
  overflow:hidden;
}
#quickorderform-table #slqof_choice_container {
  position:relative;
}
#quickorderform-table #slqof_choice {
  z-index: 90;
  position:absolute;
  left:0;
  top:0;
  overflow-y:auto;
  max-height:280px;
  background:#fff;
  border:1px solid #ccc;
  margin-top:2px;
  box-shadow:0 0 5px rgba(0,0,0,.3);
}
#quickorderform-table a.sldqof_list {
  display:block;
  white-space:nowrap;
  padding:5px 10px;
  border-bottom:1px solid #ccc;
}
#quickorderform-table a.sldqof_list:hover {
  background:#000;
  color:#fff;
}
#sldqof_loading {
  z-index:666999;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  /* background:rgba(255,255,255,.5) url(/img/loadingAnimation.gif) center center no-repeat; */
  background:rgba(255,255,255,.5) url(../img/loadingAnimation.gif) center center no-repeat;
}
#sldqof_loading_text {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #000;
  font-size: 20px;
}
#quickorderform-table div.uploader span.filename { width:100%; }

/* Cap the quick order product list so it scrolls internally instead of stretching the page.
   The header (thead, sticky above) and the summary/upload block below are outside this
   container, so only the product rows themselves scroll. */
._table-responsive {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Summary/upload block below the scrollable table: a 2-column grid so the CSV info (left)
   stays aligned with the upload form below it, and TOTAL (right) stays aligned with the
   action buttons below it - independent of how much text either side contains. */
#quickorderform-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
  padding: 15px 0;
}
#quickorderform-summary .import-download-mobile {
  display: none;
}
#quickorderform-summary .qofs-right {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}
#quickorderform-summary #sldqof_file_sending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Custom file input */
#quickorderform-summary .sldqof-custom-file-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  width: auto;
  overflow: hidden;
}
#quickorderform-summary .sldqof-custom-file-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
#quickorderform-summary .sldqof-file-label {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
  width: 100%;
}
#quickorderform-summary .sldqof-file-name {
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quickorderform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#quickorderform-clear-cart {
  background: transparent;
  border: 1px solid transparent;
  color: #c0392b;
}
#quickorderform-clear-cart:hover,
#quickorderform-clear-cart:focus {
  background: transparent;
  border-color: #c0392b;
  color: #c0392b;
}

#_desktop_quickorder {
  place-self: flex-end;
  margin-left: 10px;
  /* padding: .9375rem; */ }
  #_desktop_quickorder a {
    white-space: nowrap; }
#_desktop_quickorder.ps16 {
  float: right;
  border-left: 1px solid #515151;
  position: relative; }
  #_desktop_quickorder.ps16 a {
    color: #fff; }

#_desktop_top_quickform {
  float: right;
  margin-right: .9375rem; }

@media (max-width: 768px) {

  #quickorderform-table .col-stock,
  #quickorderform-table .col-image,
  #quickorderform-table .col-price {
    display: none !important;
  }

  #quickorderform-table td,
  #quickorderform-table th {
    font-size: 12px;
    padding: 6px;
  }

  #quickorderform-summary {
    grid-template-columns: 1fr;
  }
  #quickorderform-summary .qofs-right {
    justify-content: flex-start;
  }
  #quickorderform-summary .qofs-left.import-download {
	  display:none;
  }
  #quickorderform-summary .import-download-mobile {
	  display:block !important;
  }

  #quickorderform-table .form-control,
  #quickorderform-summary .form-control {
	  padding: .5rem .2rem;
	  font-size: .8rem;
  }
}
