@font-face {
  font-family: 'Prompt-Regular';
  src: url('../font/Prompt-Regular.eot?#iefix') format('embedded-opentype'), url('../font/Prompt-Regular.ttf') format('truetype'), url('../font/Prompt-Regular.svg#Prompt-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Prompt-Light';
  src: url('../font/Prompt-Light.eot?#iefix') format('embedded-opentype'), url('../font/Prompt-Light.ttf') format('truetype'), url('../font/Prompt-Light.svg#Prompt-Light') format('svg');
}
@font-face {
  font-family: "Prompt-Bold";
  src: url('../font/Prompt-Bold.eot?#iefix') format('embedded-opentype'), url('../font/Prompt-Bold.ttf') format('truetype'), url('../font/Prompt-Bold.svg#Prompt-Bold') format('svg');
  font-weight: bold;
}
@font-face {
  font-family: 'Prompt-SemiBold';
  src: url('../font/Prompt-SemiBold.eot');
  src: url('../font/Prompt-SemiBold.eot?#iefix') format('embedded-opentype'), url('../font/Prompt-SemiBold.ttf') format('truetype'), url('../font/Prompt-SemiBold.svg#Prompt-SemiBold') format('svg');
  font-weight: 600;
  font-style: normal;
}
body {
  font-family: Prompt-Regular !important;
}
.cbs {
  color: #333333;
}
.cbgr {
  color: #333333;
}
.clear {
  clear: both;
}
.relative {
  position: relative;
}
.light {
  font-family: Prompt-Light !important;
}
.regular {
  font-family: Prompt-Regular !important;
}
.semiBold {
  font-family: Prompt-SemiBold !important;
}
.bold {
  font-family: Prompt-Bold !important;
}
.tsmall {
  font-size: 9px;
}
.tssm {
  font-size: 12px;
}
.tsmg {
  font-size: 14px;
  color: #9c9c9c;
}
.tsmr {
  font-size: 14px;
  color: #ff0000;
}
.tmdgd {
  font-size: 16px;
  color: #5e5e5e;
}
.tmdbs {
  font-size: 16px;
  color: #243a7f;
}
.tlgb {
  font-size: 18px;
}
.tlgbs {
  font-size: 18px;
  color: #243a7f;
}
.txlb {
  font-size: 22px;
}
.mmdt {
  margin-top: 15px;
}
.mmdb {
  margin-bottom: 15px;
}
.mmdl {
  margin-left: 15px;
}
.mmdr {
  margin-right: 15px;
}
.mt-3 {
  margin-top: 15px;
}
.mb-3 {
  margin-bottom: 15px;
}
.ml-3 {
  margin-left: 15px;
}
.mr-3 {
  margin-right: 15px;
}
.success {
  color: #198754;
}
.warning {
  color: #ffc107;
}
.danger {
  color: #dc3545;
}
.line {
  border-bottom: 1px solid #000000;
}
.link {
  cursor: pointer;
  color: #ffffff !important;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.block {
  display: block !important;
}
.page-link {
  cursor: pointer;
}
.cursor {
  cursor: pointer;
}
.card .overlay {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.dropdown-menu .card {
  margin-bottom: 0px !important;
}
.btn-shopee {
  background-color: #EE4D2D;
  color: #FFFFFF;
}
.btn-shopee:hover {
  background-color: #d73211;
  color: #FFFFFF;
}
.btn-outline-shopee {
  border-color: #EE4D2D;
  color: #EE4D2D;
}
.btn-outline-shopee .fa {
  color: #EE4D2D;
}
.btn-outline-shopee:hover {
  background-color: #EE4D2D;
  color: #FFFFFF;
}
.btn-outline-shopee:hover .fa {
  color: #FFFFFF;
}
.btn-tiktok {
  background-color: #000000;
  color: #FFFFFF;
}
.btn-tiktok:hover {
  background-color: #333333;
  color: #FFFFFF;
}
.btn-outline-tiktok {
  border-color: #000000;
  color: #000000;
}
.btn-outline-tiktok .fa {
  color: #000000;
}
.btn-outline-tiktok:hover {
  background-color: #000000;
  color: #FFFFFF;
}
.btn-outline-tiktok:hover .fa {
  color: #FFFFFF;
}
.btn-line {
  background-color: #3ace01;
  color: #FFFFFF;
}
.btn-line:hover {
  background-color: #2c9b01;
  color: #FFFFFF;
}
.btn-outline-line {
  border-color: #3ace01;
  color: #3ace01;
}
.btn-outline-line .fa {
  color: #3ace01;
}
.btn-outline-line:hover {
  background-color: #3ace01;
  color: #FFFFFF;
}
.btn-outline-line:hover .fa {
  color: #FFFFFF;
}
.btn-outline-lazada {
  border-color: #007bff;
  background-color: #007bff;
  color: #FFFFFF;
}
.btn-outline-lazada .fa {
  color: #FFFFFF;
}
.btn-outline-lazada:hover {
  background-color: #004fa3;
  color: #FFFFFF;
}
.btn-outline-lazada:hover .fa {
  color: #FFFFFF;
}
#picture_control {
  position: relative;
  overflow: hidden;
}
#picture_control .file-thumbnail {
  height: 50px;
  overflow: hidden;
  position: relative;
}
#picture_control .product-thumbnail-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  border: 1px solid #243a7f;
  background-color: #ffffff;
}
#picture_control .product-thumbnail-image img {
  height: 100%;
  margin: 0 auto;
  display: block;
}
#picture_control .product-upload {
  background-color: #243a7f;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}
#picture_control .product-upload .fa {
  font-size: 20px;
  margin-right: 10px;
}
#picture_control .progress {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: 0px;
}
.data-gallery #fileupload_gallery {
  width: 100%;
  height: 40px;
  top: -5px;
}
.data-gallery .delete,
.data-gallery .delete-gallery {
  color: #FFFFFF;
  font-size: 20px;
  border-radius: 25px;
  background-color: #000000;
  cursor: pointer;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 40px;
  width: 40px;
}
.data-gallery .delete .fa-trash-alt,
.data-gallery .delete-gallery .fa-trash-alt {
  margin-top: 9px;
  color: #FFFFFF;
}
.data-gallery .list-gallery {
  margin-bottom: 10px;
  text-align: center;
}
.data-gallery .list-gallery .pic {
  background-color: #ffffff;
  border: 1px solid #243a7f;
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
}
.data-gallery .list-gallery .pic img {
  height: 100%;
}
.data-gallery .list-gallery .fa {
  font-size: 22px;
  cursor: pointer;
}
.data-gallery .list-gallery .fa-file {
  font-size: 60px;
  padding: 20px;
}
.data-gallery .list-gallery .progress {
  position: absolute;
  width: 50%;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
#upload_control .delete,
#upload_control .delete-gallery {
  color: #243a7f;
}
#upload_control .list-gallery {
  margin-bottom: 10px;
  text-align: right;
}
#upload_control .list-gallery .pic {
  background-color: #ffffff;
  border: 1px solid #243a7f;
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
}
#upload_control .list-gallery .pic img {
  height: 100%;
}
#upload_control .list-gallery .fa {
  font-size: 22px;
}
#upload_control .list-gallery .progress {
  position: absolute;
  width: 50%;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
#upload_control .add-list-gallery {
  background-color: #ffffff;
  border: 3px dotted #243a7f;
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
}
#upload_control .add-list-gallery .fileinput-button {
  color: #243a7f;
  width: 50%;
  height: 25px;
  overflow: auto;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  text-align: center;
}
#upload_control .add-list-gallery .fa {
  font-size: 25px;
}
.product-upload .glyphicon {
  margin-right: 10px;
  color: #243a7f;
}
.pic-contain {
  position: relative;
}
.pic-contain .progress {
  position: absolute;
  width: 100%;
  height: 3px;
  top: 0px;
  z-index: 999;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.areaList {
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
}
.areaList:hover {
  border: 1px solid #007BFF;
  background-color: #f9f9f9;
}
.areaListFirst .iradio_square-blue {
  margin-bottom: 15px !important;
}
.full {
  width: 100%;
}
.fileinput-button {
  width: 100%;
  border: 0px;
  position: relative;
  overflow: hidden;
}
.fileinput-button input {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  -ms-filter: 'alpha(opacity=0)';
  font-size: 20px;
  direction: ltr;
  cursor: pointer;
}
.hide {
  display: none !important;
}
.modal-dialog .overlay {
  display: flex;
  background-color: #EAEAEA;
}
.remark-box {
  max-height: 85px !important;
}
.remark-box .barcode {
  height: 80px;
}
#modal_product .close,
#modal_xs .close,
#modal_driver .close {
  position: absolute;
  right: 25px;
  top: 20px;
  z-index: 9999;
}
#modal_product .modal-body,
#modal_xs .modal-body,
#modal_driver .modal-body {
  min-height: 150px;
}
.product-small {
  width: 80px;
  height: 80px;
}
.iconStatusDelivery {
  font-size: 30px;
}
.bDash {
  border-bottom: 1px dashed #9c9c9c;
}
.block {
  width: 100%;
  display: flex;
}
#place_first_scan {
  border: 2px dashed #243a7f;
  width: 100%;
  text-align: center;
  padding: 15px;
}
#place_first_scan .far {
  font-size: 40px;
  margin-bottom: 13px;
}
.thumbnail {
  width: 50px;
  height: 50px;
}
.bg-red {
  background-color: #f97c7c;
  color: #FFFFFF;
}
.bg-green {
  background-color: #35dc87;
  color: #FFFFFF;
}
.invoice {
  font-size: 14px;
}
.table-billing-description {
  width: 100%;
  border-spacing: 0;
  text-align: center;
  border-collapse: collapse;
}
.table-billing-description .billing-remark {
  font-size: 10px;
  text-align: left;
}
.table-billing-description .billing-remark-small {
  font-size: 9px;
  text-align: left;
  vertical-align: bottom!important;
}
.table-billing-description th,
.table-billing-description td {
  border: 1px solid #666;
  vertical-align: top;
}
.table-billing-description td {
  border: 1px solid #666;
  vertical-align: top;
}
.table-billing-description td.no-border {
  border: 0;
}
.table-billing-description td.no-borderb {
  border-bottom: 0;
  border-top: 0;
}
.no-borderl {
  border-left: 0 !important;
}
.no-borderr {
  border-right: 0 !important;
}
.table-billing-description th,
.table-billing-description td.text-head {
  background: #ccc;
}
.table-extend {
  min-height: 750px;
  border: 1px solid;
  border-bottom: 0;
  border-top: 0;
}
.page {
  position: relative;
}
.banner-comany {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  width: 96%;
  margin: 0 auto;
  background: #243a7f;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.banner-comany .list {
  display: flex;
  color: #ffffff;
}
.list-group-item {
  cursor: pointer;
}
.list-group-item:hover {
  background-color: #EAEAEA;
}
.label-cod {
  position: absolute;
  right: -100px;
  top: 50px;
  font-size: 50px;
}
.login-page {
  background-image: url(../images/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.login-logo .logo {
  width: 100px;
}
.img-prd-thumb {
  width: 50px;
}
.sidebar .header {
  color: #FFFFFF;
}
.sidebar .border-dash-top {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #FFFFFF;
}
#modal_popup_shopee tbody {
  font-size: 14px;
}
#tableSignContainer {
  display: flex;
}
#tableSignContainer .space {
  width: 50%;
  border-right: 1px solid;
  height: 80px;
}
#tableSignContainer .sign {
  width: 25%;
  border-right: 1px solid;
  text-align: center;
  padding: 3px;
}
#tableSignContainer .sign:last-child {
  border-right: 0px solid;
}
#notificationContain {
  position: relative;
}
#btnHideNotification {
  position: absolute;
  right: 10px;
  top: 10px;
  text-decoration: underline;
}
.select2-container .select2-selection--single {
  height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 5px !important;
  right: 5px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  color: #333333;
}
/* ----------------- Print ------------------ */
@page {
  size: auto;
  margin: 0mm;
}
/* ----------------- Mobile size ------------------ */


.flex_between{
  display: flex;
  justify-content: space-between;
}

.flex_center{
  display: flex;
  justify-content: center;
}

/* ----------------- Lot Selection Responsive Styles ------------------ */
.lot-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
}

.lot-panel-add-btn {
  margin-top: 10px;
}

.lot-validation {
  margin-top: 5px;
}

.lot-panel-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lot-display {
  margin-top: 10px;
}

.lot-selection-row {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lot-selection-row .lot-select {
  flex: 2;
  min-width: 200px;
}

.lot-selection-row .lot-qty-input {
  flex: 1;
  min-width: 100px;
}

.lot-selection-row .btnRemoveLotSelection {
  flex-shrink: 0;
}

/* Mobile responsive for lot selection */
@media (max-width: 768px) {
  /* Make table scrollable and card-like on mobile */
  .table-striped.projects {
    font-size: 0.85rem;
  }
  
  .table-striped.projects thead {
    display: none;
  }
  
  .table-striped.projects tbody,
  .table-striped.projects tr,
  .table-striped.projects td {
    display: block;
  }
  
  .table-striped.projects tr {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .table-striped.projects td {
    text-align: left !important;
    padding: 8px 5px;
    border: none;
    position: relative;
    padding-left: 45%;
  }
  
  .table-striped.projects td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
  }
  
  /* Product image */
  .table-striped.projects .img-prd-thumb {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .table-striped.projects td[data-label="รูป"]:before {
    display: none;
  }
  
  .table-striped.projects td[data-label="รูป"] {
    padding-left: 5px;
    text-align: center !important;
  }
  
  /* Lot selection responsive */
  .lot-selection-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .lot-selection-row .lot-select,
  .lot-selection-row .lot-qty-input {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
  }
  
  .lot-selection-row .btnRemoveLotSelection {
    width: 100%;
  }
  
  /* Lot panel on mobile */
  [id^="lot_panel_"] {
    padding: 8px !important;
    margin-top: 8px !important;
  }
  
  /* Button groups in lot panel */
  [id^="lot_panel_"] > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  [id^="lot_panel_"] .btn {
    width: 100%;
    margin: 0 !important;
  }
  
  /* Lot display on mobile */
  [id^="lot_display_"] {
    font-size: 0.85rem;
  }
  
  .lot-summary {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 8px;
  }
  
  /* Select lot button */
  .btnSelectLot {
    width: 100%;
    font-size: 0.9rem;
  }
  
  /* Product image in table */
  .img-prd-thumb {
    max-width: 60px;
    height: auto;
  }
  
  /* Validation message */
  [id^="lot_validation_"] {
    font-size: 0.85rem;
    margin-top: 8px !important;
  }
  
  /* Product actions buttons */
  .table-striped.projects .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
  }
  
  .table-striped.projects td[data-label="จัดการ"] {
    text-align: center !important;
    padding-left: 5px;
  }
  
  .table-striped.projects td[data-label="จัดการ"]:before {
    display: none;
  }
  
  /* Input fields in table */
  .table-striped.projects input[type="number"] {
    max-width: 100px;
  }
  
  /* Small text in table */
  .table-striped.projects small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
  }
}

/* Tablet responsive (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .lot-selection-row .lot-select {
    min-width: 180px;
  }
  
  .lot-selection-row .lot-qty-input {
    min-width: 80px;
  }
}