@charset "UTF-8";
body {
  overscroll-behavior: contain;
}

.modal-dialog {
  overflow-y: initial !important;
}

.modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.valid {
  color: green;
}

.invalid {
  color: red;
}

.fa-spin {
  -webkit-animation: fa-spin 2s linear infinite;
  animation: fa-spin 2s linear infinite;
}

.faster-spin {
  animation: fa-spin 0.75s infinite linear;
}

.fade {
  transition: opacity 0.15s linear !important;
}

.sidebar {
  overflow-x: hidden;
}

.hide {
  display: none !important;
}

.nav-sidebar .nav-treeview {
  margin-left: 1.5rem;
}

.require-star::after,
label:has(~ input:required)::after,
label:has(~ select:required)::after {
  content: " *";
  color: #ff0000;
}

span.select2-selection__clear {
  font-size: 20px;
  color: #ffffff !important;
  background-color: #a1a1a1 !important;
  margin: 0.5rem -0.3rem 0.5rem 0.5rem !important;
}

.viewPlanogram .col-header {
  font-size: 16px;
}
.viewPlanogram .progress.vertical {
  position: absolute;
  width: 25px;
  right: 0px;
  height: 100%;
  margin: 0;
}
@media (min-width: 768px) {
  .viewPlanogram .column-9 {
    max-width: 11.1111111111% !important;
  }
  .viewPlanogram .column-8 {
    max-width: 12.5% !important;
  }
  .viewPlanogram .column-7 {
    max-width: 14.2857142857% !important;
  }
  .viewPlanogram .column-6 {
    max-width: 16.6666666667% !important;
  }
  .viewPlanogram .column-5 {
    max-width: 20% !important;
  }
  .viewPlanogram .column-4 {
    max-width: 25% !important;
  }
  .viewPlanogram .column-3 {
    max-width: 33.3333333333% !important;
  }
}
.viewPlanogram .col-capacity-label {
  position: absolute;
  opacity: 0.3;
  top: -5px;
  left: 0;
  font-size: 12px;
  display: flex;
  justify-content: center;
  margin-top: 0.3rem;
  font-weight: 900;
}
.viewPlanogram .price-label,
.viewPlanogram .sku-label {
  font-size: 14px;
  font-weight: 900;
}
.viewPlanogram .sku-label {
  color: #007bff;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
}
.viewPlanogram .price-label {
  color: red;
}
.viewPlanogram .col-capacity-value {
  font-size: 24px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 0.5rem;
}
.viewPlanogram .planogram-process {
  position: absolute;
  height: 20px;
  width: 100%;
  left: 0px;
}
.viewPlanogram .planogram-process span {
  width: 100%;
  position: absolute;
  font-size: 16px;
}

.sidebar-collapse .nav-sidebar .nav-treeview {
  margin-left: unset;
}

html {
  font-size: 13px;
}

body {
  overflow-x: hidden;
}

li:hover {
  cursor: pointer;
}

.disabled {
  cursor: not-allowed !important;
}
.disabled a {
  pointer-events: none;
}
.disabled {
  opacity: 0.3;
}

.sku-avatar {
  width: 40px;
  height: 60px;
}

.sph-avatar {
  width: 60px;
  height: 90px;
}

#vmsPageLoading {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0px !important;
  left: 0px !important;
  width: 100% !important;
  height: 100% !important;
}

.overlay span {
  /* position: absolute; */
  /* margin: 0 auto; */
  /* padding-left: 1rem; */
  padding-top: 0.75rem;
  margin-left: 1rem;
  /* margin: 5rem 2rem 3rem 1rem; */
}

.modal-body {
  overflow-y: auto;
}

.machine-event-log {
  display: inline-block;
  background-color: #eee;
  width: 100%;
  height: 60px;
  /* margin-right: 20px; */
  box-shadow: 0px 0px 2px green;
}

.dataTables_length label {
  font-weight: bold !important;
}

#machineListContainer td {
  white-space: nowrap;
}

.sku-list .td-sector-name {
  opacity: 0.5;
}
.sku-list .td-sector-name .sector-name {
  opacity: 1;
}
.sku-list #skuImageClear {
  min-width: 70px;
}
.sku-list #ingredientImageClear {
  min-width: 70px;
}
.sku-list #skuImage {
  max-width: 200px;
  cursor: pointer;
}
.sku-list #ingredientImage {
  max-width: 200px;
  cursor: pointer;
}
.sku-list .upload-sku-img {
  cursor: pointer;
}

.can-pointer {
  cursor: pointer;
}

.cutload-page .addMachine,
.sku-list .addMachine,
.machineList .addMachine {
  font-size: 1rem;
}
.cutload-page #calcGMapModal,
.sku-list #calcGMapModal,
.machineList #calcGMapModal {
  text-align: center;
}
.cutload-page #calcGMapModal .modal-content,
.sku-list #calcGMapModal .modal-content,
.machineList #calcGMapModal .modal-content {
  min-width: 800px;
}
.cutload-page #calcGMapTimeTable,
.sku-list #calcGMapTimeTable,
.machineList #calcGMapTimeTable {
  position: sticky;
  max-width: 400px;
  left: 100%;
}
.cutload-page td,
.sku-list td,
.machineList td {
  vertical-align: middle;
}

.menu-active a {
  background-color: #ffffff !important;
  color: #000000 !important;
}
.menu-active a.active {
  background-color: #007bff !important;
  color: #fff !important;
}

.nav-tabs .nav-link {
  justify-content: center;
  justify-content: safe center;
  text-align: center;
}

.subAccountList .menu-active a {
  background-color: #ffffff !important;
  color: #000000 !important;
}
.subAccountList .menu-active a.active {
  background-color: #007bff !important;
  color: #fff !important;
}
.subAccountList td {
  vertical-align: middle;
}

#editAllPredictionModal .buffer,
#editPredictionModal .buffer {
  background: blanchedalmond;
}
#editAllPredictionModal #machineStockThresholdAll,
#editAllPredictionModal #machineRevenueThresholdAll,
#editAllPredictionModal #machineVisitFrequency,
#editAllPredictionModal #machineVisitFrequencyAll,
#editAllPredictionModal #machineStockThreshold,
#editAllPredictionModal #machineRevenueThreshold,
#editPredictionModal #machineStockThresholdAll,
#editPredictionModal #machineRevenueThresholdAll,
#editPredictionModal #machineVisitFrequency,
#editPredictionModal #machineVisitFrequencyAll,
#editPredictionModal #machineStockThreshold,
#editPredictionModal #machineRevenueThreshold {
  width: 100px;
  text-align: center;
}
#editAllPredictionModal .modal-content,
#editPredictionModal .modal-content {
  width: 800px;
}
#editAllPredictionModal .table-container,
#editPredictionModal .table-container {
  height: 500px;
  overflow-y: auto;
}
#editAllPredictionModal .topup-adjust-checkbox,
#editPredictionModal .topup-adjust-checkbox {
  width: 1.3rem;
  height: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
}

.product-adjust-section #editProductChangeModal .modal-body {
  height: 85vh;
}
.product-adjust-section #editChangeSettingModal .modal-content {
  width: 800px;
  left: -35%;
}

.topup-record-adjust-section .modal-content {
  width: 800px;
}
.topup-record-adjust-section .buffer {
  background: blanchedalmond;
}
.topup-record-adjust-section #editTopupReportColModal input {
  width: 120px;
}
.topup-record-adjust-section #adjustQtyDescription {
  font-size: 14px;
  font-weight: 900;
}
.topup-record-adjust-section #adjustQtyContainerInnerLeft {
  right: 50%;
  position: sticky;
}
.topup-record-adjust-section #updateCapacity {
  position: sticky;
  left: 85%;
}
.topup-record-adjust-section #adjustCheckboxLabel {
  font-size: 16px;
  font-weight: 900;
}
.topup-record-adjust-section .topup-adjust-checkbox {
  width: 1.3rem;
  height: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
}
.topup-record-adjust-section #clearColExipryDateBtn {
  position: sticky;
  left: 70%;
}
.topup-record-adjust-section #adjustAmountContainer input {
  width: 100px;
}
.topup-record-adjust-section #adjustQtyContainerBottom {
  position: sticky;
  left: 100%;
}

.shipment-report-section #backToShipmentList {
  position: absolute;
  right: 2rem;
}
.topup-section .no-shipment-msg-label {
  font-size: 1.3rem;
}
.topup-section #backToTopupListByTopupTab,
.topup-section #backToTopupListByLoadInfo,
.topup-section #backToTopupList {
  position: sticky;
  left: 100%;
}
.topup-section #topupMachineBtn {
  position: sticky;
  left: 90%;
}
.topup-section #editChangeSettingModal .modal-content {
  width: 800px;
  left: -25%;
}
.topup-section #selectColNewDetail {
  border-left: 1px solid #b1b1b1;
  height: 500px;
  overflow-y: auto;
}

.topup-record-section .vms_id,
.report-section .vms_id {
  max-width: 500px;
}
.topup-record-section select,
.topup-record-section .report-date_range button,
.report-section select,
.report-section .report-date_range button {
  width: 200px;
}
.topup-record-section .set-with-search-all,
.topup-record-section .backTopupRecordsList,
.report-section .set-with-search-all,
.report-section .backTopupRecordsList {
  position: absolute;
  right: 2rem;
}
.topup-record-section .dt-buttons button,
.report-section .dt-buttons button {
  padding: 0.5rem 0.75rem;
}

.routeList .dt-buttons.btn-group.flex-wrap,
.subAccountList .dt-buttons.btn-group.flex-wrap,
.transaction-status .dt-buttons.btn-group.flex-wrap,
.sku-list .dt-buttons.btn-group.flex-wrap,
.machineList .dt-buttons.btn-group.flex-wrap,
.vending .dt-buttons.btn-group.flex-wrap,
.suspicious-tran-section .dt-buttons.btn-group.flex-wrap,
.report-section .dt-buttons.btn-group.flex-wrap {
  float: right;
}

.force-dt-buttons-right .dt-buttons.btn-group.flex-wrap {
  float: right;
}

.dashboard-wrapper .loading {
  position: fixed;
  z-index: 3000;
  background-color: #c1c1c1;
  opacity: 0.4;
}

.toasts-top-right {
  z-index: 1051;
}

.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected=true] {
  background-color: #a2a2a2 !important;
}

.resetFilter {
  margin: 0 1.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 900;
}

.dashboard .dashbaord-top-info .overlay {
  height: 95%;
  left: 5%;
  position: absolute;
  top: 2.5%;
  width: 90%;
}
.dashboard .noDataLabel {
  position: absolute;
  margin: 0 auto;
  left: 50%;
  top: 25%;
  font-size: 2rem;
  color: #ff0000;
}

.view-heartrate {
  cursor: pointer;
}

.modal-content {
  height: 100%;
}

.modal-size-90 {
  min-width: 90% !important;
  margin: 0 auto !important;
}

.modal.show .modal-dialog {
  margin: 0 auto !important;
}

.modal-full {
  min-width: 100% !important;
  margin: 0 !important;
}

.table:where(:not(.v2-settlement-table, .ui-v2 .v2-scroll-table)) {
  width: 100% !important;
}

.sub_password_group .input-group-addon {
  display: flex;
  align-items: center;
}

.trMap td,
.emailMap td {
  text-align: center;
}

.soldOutDetailModal .modal-dialog {
  height: 100%;
}

.soldOutDetail {
  cursor: pointer;
  font-size: 1rem;
}

.card-img-top {
  max-width: 120px;
  margin: 0 auto;
}

#restockMachineModal {
  z-index: 1051;
}

.modal-backdrop {
  display: none;
}

.modal {
  background: rgba(0, 0, 0, 0.5);
}

.stockTable.trMap.bg-secondary {
  opacity: 0.5;
}

.td_oos {
  text-align: center !important;
}

.importFromExistMachine {
  position: absolute;
  right: 0;
  top: 0;
}

.total_desc {
  position: absolute;
  left: 30%;
  width: 60%;
  display: flex;
  font-size: 1.1rem;
}

.report-section .report-vms_id {
  max-width: 500px;
}
.report-section .max-150 {
  max-width: 150px;
}

#google_translate_element {
  float: right;
}

.translated-ltr .modal.show .modal-content {
  margin-top: 3rem;
}

.none-element {
  pointer-events: none;
}

.login-nav {
  position: fixed;
  right: 0;
  top: 0;
  border-radius: 0.5rem;
}

.tdSKUInput {
  width: 100%;
  text-align: center;
}

.force-left {
  text-align: left !important;
}

.checkbox-lg {
  width: 1.3rem;
  height: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
}

.cutload-page #cutloadSchduleTabcontent th,
.cutload-page #cutloadSchduleTabcontent td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cutload-page #updateSKUAllocateCarton {
  width: 100px;
  display: inline;
}
.cutload-page .cutload-schdule-tabs {
  cursor: pointer;
}
.cutload-page .cutload-schedule-checkbox,
.cutload-page .cutload-td-checkbox,
.cutload-page .cutload-th-checkbox {
  width: 1.3rem;
  height: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
}
.cutload-page .warehouse-container {
  position: absolute;
  right: 1rem;
  max-width: 300px;
  width: 100%;
}
.cutload-page .cutload-calendar {
  background-color: #ffffff;
}
.cutload-page .cutload-topup-type-radio {
  max-width: 200px;
}
.cutload-page .cutload-topup-type-radio label {
  width: 100%;
  cursor: pointer;
}
.cutload-page .fc-daygrid-day-events {
  pointer-events: none;
}
.cutload-page .tabs-scheduleCutload {
  font-size: 0.9rem;
}
.cutload-page .cutload-info {
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.cutload-page .cutload-info .router-id-tab-list {
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dee2e6 !important;
}
.cutload-page .cutload-info .bootstrap-datetimepicker-widget {
  width: 100%;
}
.cutload-page .cutload-info .cutload-info-footer {
  bottom: 0;
}
.cutload-page .shipment-info-header span {
  font-weight: 700;
}
.cutload-page .shipment-info-header .shipment-info-body {
  overflow-y: auto;
  height: 100%;
  padding-bottom: 10rem;
}
.cutload-page .cutload-toolbar {
  position: absolute;
  float: right;
  right: 0.75rem;
  justify-content: center;
}

.modal-70 {
  min-width: 70% !important;
}

.searchTranGroup {
  position: static;
  bottom: 80%;
  padding-top: 1.5rem !important;
}

.machine-select2-group {
  max-width: 400px;
}

.select2-container--open .select2-container--bootstrap4,
.select2-container--open .select2-selection--multiple,
.select2-container--open .select2-selection__rendered {
  height: unset !important;
  max-height: 120px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  height: 26px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
  float: right !important;
}

.schedule_upload_group .custom-file-label::after {
  display: none;
}

.pulse-font {
  font-size: 1.3rem;
}

.editPlanogramList #editPlanogramTable td {
  vertical-align: middle;
  text-align: center;
}

.truck-view-mode .truck-hide {
  display: none !important;
}
.truck-view-mode .td-outlet-name {
  max-width: 100px !important;
}

/* Chiller Use - Start */
.card-img-absolute {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}

.font-weight-normal {
  font-family: "ubuntu-regular", sans-serif;
}

.chillerMonitorDiv {
  cursor: pointer;
}

#addProductTable, #viewProductTable, #editProductTable {
  border-collapse: collapse;
}

#addProductTable td, #viewProductTable td, #editProductTable td, #resultTbody td {
  text-align: center;
  vertical-align: middle;
}

.productTableTitle {
  background-color: lightgrey !important;
}

.product-video-container {
  max-width: 200px;
  max-height: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.productImage {
  cursor: pointer !important;
  border-radius: 0% !important;
  width: 100px !important;
  height: auto !important;
}

/* 設定容器樣式 */
.video-container {
  position: relative;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
}

/* 設定四個圖標樣式 */
.video-container .icon {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #888;
  border-radius: 50%;
}

.video-container .top-left {
  top: 1%;
  left: 1%;
}

.video-container .top-right {
  top: 1%;
  right: 1%;
}

.video-container .bottom-left {
  bottom: 1%;
  left: 1%;
}

.video-container .bottom-right {
  bottom: 1%;
  right: 1%;
}

/* 設定 iframe 樣式並置中 */
.video-container .centered-iframe {
  width: 90%; /* iframe 寬度，視需要調整 */
  height: 90%; /* iframe 高度，視需要調整 */
  border: none; /* 去除邊框 */
}

/* 補貨modal */
#topupInfoModal .modal-body {
  background-color: white;
  padding: 0.9375rem;
}

#topupInfoModal .card-body {
  padding: 1rem 1rem;
}

/* 機器資訊 */
#topupMachineInfo .row {
  --bs-gutter-y: 2.5px;
  position: relative;
}

#topupMachineInfo .topupSubmitBtn {
  padding: 0.5rem 0.81rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  position: absolute;
  top: -5px;
  right: 15px;
  background-color: #007bff;
}

/* 補貨Container */
#topupInfoContainer {
  display: flex;
  flex-direction: column;
  margin: 10px;
}

#topupInfoContainer .row {
  --bs-gutter-x: 0px;
}

#topupInfoContainer .row .level {
  font-weight: bold;
  background-color: #b9b9b9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 100%;
}

#topupInfoContainer .row .cell {
  border: 1px solid #ddd;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 33.3%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 10px;
  justify-content: space-between;
}

#topupInfoContainer .row .prodContainer.active {
  background-color: #FFF0AC;
}

/* 商品Container */
#topupInfoContainer .prodContainer {
  display: flex;
  align-items: flex-start;
  border: 1px solid #000;
  position: relative;
  max-width: 100%;
}

#topupInfoContainer .prodContainer .image-wrapper {
  position: relative;
  width: 67px;
  height: 117px;
}

#topupInfoContainer .prodContainer .image-wrapper img {
  width: 100%;
  height: 100%;
}

#topupInfoContainer .prodContainer .badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: red;
  color: white;
  width: 27px;
  height: 27px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#topupInfoContainer .prodContainer .content {
  margin-left: 1px;
  flex: 1;
  height: 117px;
  position: relative;
  overflow: hidden; /* 隱藏超過容器的內容 */
  white-space: nowrap; /* 防止文字換行 */
}

#topupInfoContainer .prodContainer .content .title {
  font-weight: bold;
  font-size: 12px;
}

#topupInfoContainer .prodContainer .content .subtitle {
  color: #999;
  font-size: 10px;
}

#topupInfoContainer .prodContainer .content .stats {
  display: flex;
  justify-content: space-around;
  position: absolute;
  margin-left: 5px;
  bottom: 5px;
  width: calc(100% - 10px);
  gap: 2px;
}

#topupInfoContainer .prodContainer .stat {
  background-color: rgb(238, 238, 238);
  border-radius: 5px;
  text-align: center;
  position: relative;
  width: 100px;
  height: 57px;
}

#topupInfoContainer .prodContainer .stat .badgeBottom {
  font-size: 26px;
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
}

#topupInfoContainer .prodContainer .stat .badgeBottomName {
  font-size: 12px;
  color: #555;
  margin-top: 0.2rem;
}

#topupInfoContainer .prodContainer .stat .badgeBottomRight {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #555;
  padding: 5px;
  font-weight: bold;
  display: none;
}

#topupInfoContainer .prodContainer .statTopup {
  position: relative;
  width: auto;
}

#topupInfoContainer .prodContainer .badgeTopupLeft {
  position: absolute;
  top: 0;
  left: 10px;
}

#topupInfoContainer .prodContainer .badgeTopupRight {
  position: absolute;
  top: 0;
  right: 0;
}

/* 小螢幕level選單 */
#topupInfoModal .menu-container {
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 10px;
  display: none;
}

#topupInfoModal .menu_level {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex-grow: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#topupInfoModal .menu_level::-webkit-scrollbar {
  display: none;
}

#topupInfoModal .menu_level ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

#topupInfoModal .menu_level li {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  text-align: center;
}

#topupInfoModal .menu_level span {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #333;
  background-color: #f9f9f9;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#topupInfoModal .scroll-button {
  background-color: #f9f9f9;
  color: #000;
  width: 44px;
  height: 48px;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#topupInfoModal .all-button {
  background-color: #f9f9f9;
  color: #333;
  border: none;
  font-size: 14px;
  margin-left: 2px;
  width: 46px;
  height: 48px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 數量調整modal */
#modalAdjustQty {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#modalAdjustQty .adjustInfoDiv {
  margin-top: 10px;
  margin-bottom: 10px;
}

#modalAdjustQty .modal-body, #modalAdjustQty .modal-footer {
  background: #f2edf3;
}

#modalAdjustQty .card-header-text {
  font-size: 12px;
}

#modalAdjustQty .controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

#modalAdjustQty .controls button {
  width: 40px;
  height: 40px;
  font-size: 24px;
  background-color: #f2edf3;
  border: none;
}

#modalAdjustQty .controls input {
  width: 60px;
  text-align: center;
  font-size: 24px;
}

#modalAdjustQty .modal-content {
  width: 247px;
  height: 181px;
}

#modalAdjustQty .modal-dialog {
  left: 10%;
}

#modalAdjustQty .modal-footer {
  display: flex;
  justify-content: space-between;
}

#modalAdjustQty #counterQty {
  width: 88px;
  height: 52px;
}

#modalAdjustQty .modalAdjustFooterBtn {
  width: 64px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

#modalAdjustQty #submitQty {
  background-color: #ffd358;
  border-color: #ffd358;
}

@media (max-width: 1573px) {
  #topupInfoContainer .row .cell {
    flex-basis: 50%;
  }
  #topupInfoContainer .row .nodataCell {
    display: none;
  }
}
@media (max-width: 1199px) {
  #topupInfoContainer .row .cell {
    flex-basis: 50%;
  }
  #topupInfoModal .menu_level li.needtopup span {
    background-color: #ffc4b9;
  }
  #topupInfoModal .menu_level li.active span {
    border-bottom: 3px solid #000;
  }
  #topupInfoModal .all-button.active {
    border-bottom: 3px solid #000;
  }
  #topupMachineInfo .topupSubmitBtn {
    width: 80px;
    height: 60px;
    top: 0;
  }
}
@media (max-width: 991px) {
  #topupInfoModal .modal-body {
    padding: 0.2rem;
  }
  #topupInfoModal .card-body {
    padding: 1rem 0;
  }
  #topupInfoContainer {
    margin: 0;
  }
  #topupInfoContainer .prodContainer {
    border: none;
  }
  #topupInfoContainer .row .level {
    display: none;
  }
  #topupInfoContainer .row .cell {
    display: none;
    padding: 0;
  }
  #topupInfoContainer .row.active .cell {
    display: flex;
    width: 100%;
  }
  #topupInfoContainer .row.active {
    flex-direction: column;
    align-items: stretch;
  }
  #topupInfoModal .menu-container {
    display: flex;
  }
}
@media (max-width: 576px) {
  #topupInfoModal .modal-body {
    padding: 0;
  }
  #topupInfoModal .modal-dialog {
    margin: 0;
  }
  #topupInfoModal .card-body {
    padding: 0;
  }
  #topupInfoContainer .prodContainer .stat {
    width: 100px;
    height: 57px;
  }
  #modalAdjustQty .modal-dialog {
    left: 18.3%;
  }
}
/* Chiller Use - End */
.searchTranGroup.coke-export-all-tran {
  position: sticky;
  left: 100%;
  min-width: 250px;
  padding-left: 5rem;
  bottom: 0;
}

.upload-cost {
  position: absolute;
  right: 10%;
}

.cutload-page-TWCC .gmap-labels {
  margin-top: 100px;
  background: #000;
  color: #ffff00;
  border-radius: 5px;
  border: #818181 3px;
}
.cutload-page-TWCC .gmap-labels.w100 {
  width: 70px;
  margin-left: 3rem;
}
.cutload-page-TWCC .gmap-labels.w70 {
  margin-left: 4.5rem;
  width: 70px;
}
.cutload-page-TWCC .F-Machine-unschedule {
  background-color: #ff0000;
  filter: opacity(0.5);
}
.cutload-page-TWCC .route-checkbox {
  width: 18px;
  height: 18px;
  padding: 10px;
}
.cutload-page-TWCC .topupGMapTab {
  overflow-y: auto;
  padding-bottom: 15rem;
}
.cutload-page-TWCC .route-checkbox-label {
  font-size: 1.5rem;
}
.cutload-page-TWCC #topupMapContainer {
  height: 100%;
}
.cutload-page-TWCC #topupGMapModal .modal-body {
  overflow: hidden;
}

/* Session 狀態顯示樣式 */
.session-timer {
  position: relative;
  margin-right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.session-timer.normal {
  background-color: #28a745;
  color: white;
}

.session-timer.warning {
  background-color: #ffc107;
  color: #212529;
  animation: session-pulse-warning 2s infinite;
}

.session-timer.danger {
  background-color: #dc3545;
  color: white;
  animation: session-pulse-danger 1s infinite;
}

.session-timer.expired {
  background-color: #6c757d;
  color: white;
}

/* 閃爍動畫 */
@keyframes session-pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes session-pulse-danger {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* 刷新按鈕樣式 */
.refresh-btn {
  background: none;
  border: none;
  color: inherit;
  margin-left: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.refresh-btn:hover {
  transform: rotate(180deg);
}

.refresh-btn.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Modal 自訂樣式 */
.modal-warning .modal-header {
  background-color: #ffc107;
  color: #212529;
}

.modal-expired .modal-header {
  background-color: #dc3545;
  color: white;
}

.countdown-display {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffc107;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
}

.tip-box {
  background-color: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.stlm-ovw {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  font-size: 14px;
}
.stlm-ovw p {
  margin: 0;
}
.stlm-ovw .card {
  margin-bottom: 0;
}
.stlm-ovw .btn,
.stlm-ovw .btn-group-sm > .btn,
.stlm-ovw .form-control,
.stlm-ovw .badge,
.stlm-ovw .page-link,
.stlm-ovw .dropdown-menu,
.stlm-ovw .dropdown-item {
  font-size: 14px;
}
.stlm-ovw .btn-outline-primary {
  color: #0056b3;
  border-color: #0056b3;
}
.stlm-ovw .btn-outline-primary:hover, .stlm-ovw .btn-outline-primary:not(:disabled):not(.disabled).active, .stlm-ovw .btn-outline-primary:not(:disabled):not(.disabled):active {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}
.stlm-ovw .btn-outline-primary:disabled {
  color: #0056b3;
  background-color: transparent;
}
.stlm-ovw.is-loading .stlm-ovw-body {
  opacity: 0.55;
  transition: opacity 0.15s ease-in;
}

.stlm-ovw-body,
.stlm-ovw-view {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.stlm-ovw-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.stlm-ovw-controls label {
  margin: 0;
  font-weight: 600;
}
.stlm-ovw-controls .form-control {
  width: auto;
  min-width: 7rem;
  height: auto;
}

.stlm-ovw-ctl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stlm-ovw-ctl-label {
  font-weight: 600;
}

.stlm-ovw-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  font-size: 14px;
  color: #6c757d;
}
.stlm-ovw-times b {
  color: #212529;
  font-variant-numeric: tabular-nums;
}

.stlm-ovw-times-main {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px dotted #6c757d;
  cursor: help;
}
.stlm-ovw-times-main:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.stlm-ovw-time-failed {
  color: #dc3545;
  font-weight: 600;
}

.stlm-ovw-refresh {
  margin-left: auto;
}

.stlm-ovw-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.75rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dee2e6;
  border-left: 4px solid #fd7e14;
  border-radius: 0.25rem;
  cursor: pointer;
}
.stlm-ovw-alert.is-critical {
  border-left-color: #dc3545;
}
.stlm-ovw-alert:hover {
  background: #f8f9fa;
}
.stlm-ovw-alert:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}

.stlm-ovw-alert-icon {
  flex: 0 0 auto;
  color: #fd7e14;
}
.is-critical > .stlm-ovw-alert-icon {
  color: #dc3545;
}

.stlm-ovw-alert-text {
  display: flex;
  flex: 1 1 auto;
  gap: 0.75rem;
  min-width: 0;
}

.stlm-ovw-alert-missing {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stlm-ovw-alert-tid {
  flex: 0 0 auto;
}
.stlm-ovw-alert-missing + .stlm-ovw-alert-tid {
  padding-left: 0.75rem;
  border-left: 1px solid #ced4da;
}

.stlm-ovw-alert-go {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 400;
  color: #495057;
}

.stlm-ovw-main {
  padding: 0.25rem 1.25rem 0.5rem;
}

.stlm-ovw-main-cols {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1.25rem;
  overflow: hidden;
}

.stlm-ovw-side {
  display: grid;
  flex: 1 1 30rem;
  grid-template-columns: minmax(0, max-content) max-content max-content max-content minmax(0, 1fr);
  align-content: start;
  align-items: baseline;
  gap: 0.2rem 1rem;
  min-width: 0;
  margin: -1px 0 0 -1px;
  padding: 0.5rem 1.25rem;
  border-top: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
}

.stlm-ovw-main-head {
  display: flex;
  grid-row: 1;
  grid-column: 1/-1;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
}

.stlm-ovw-main-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.stlm-ovw-basis-tag {
  flex: 0 0 auto;
  padding: 0 0.4rem;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  white-space: nowrap;
  border: 1px solid #ced4da;
  border-radius: 3px;
}

.stlm-ovw-help {
  flex: 0 0 auto;
  padding: 0 0.15rem;
  font-size: 16px;
  line-height: 1;
  color: #6c757d;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: help;
}
.stlm-ovw-help:hover, .stlm-ovw-help:focus {
  color: #212529;
}
.stlm-ovw-help:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}

.stlm-ovw-pay-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #0056b3;
  white-space: nowrap;
}

.stlm-ovw-main-line,
.stlm-ovw-main-sizer {
  display: contents;
  color: #212529;
}

.stlm-ovw-main-sizer > * {
  grid-row: 1;
  align-self: start;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.stlm-ovw-main-label {
  grid-column: 1;
  font-size: 15px;
  line-height: 1.35;
}

.stlm-ovw-main-icon {
  display: inline-block;
  width: 1.1em;
  margin-right: 0.35rem;
  text-align: center;
  color: #6c757d;
}
.is-done > .stlm-ovw-main-label > .stlm-ovw-main-icon, .is-zero > .stlm-ovw-main-label > .stlm-ovw-main-icon {
  color: #28a745;
}
.is-follow:not(.is-zero) > .stlm-ovw-main-label > .stlm-ovw-main-icon {
  color: #fd7e14;
}

.stlm-ovw-main-count,
.stlm-ovw-main-amount,
.stlm-ovw-main-rate {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stlm-ovw-main-count {
  grid-column: 2;
}
.stlm-ovw-main-count small {
  margin-left: 0.25rem;
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
}

.stlm-ovw-main-amount {
  grid-column: 3;
}

.stlm-ovw-main-rate {
  grid-column: 4;
  font-size: 16px;
}

.stlm-ovw-main-line.is-follow > .stlm-ovw-main-label,
.stlm-ovw-main-sizer.is-follow > .stlm-ovw-main-label {
  font-size: 16px;
  font-weight: 700;
}
.stlm-ovw-main-line.is-follow .stlm-ovw-main-count,
.stlm-ovw-main-line.is-follow .stlm-ovw-main-amount,
.stlm-ovw-main-sizer.is-follow .stlm-ovw-main-count,
.stlm-ovw-main-sizer.is-follow .stlm-ovw-main-amount {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.stlm-ovw-main-line.is-follow:not(.is-zero):not(.is-na) > *,
.stlm-ovw-main-sizer.is-follow:not(.is-zero):not(.is-na) > * {
  color: #b54708;
}
.stlm-ovw-main-line.is-follow:not(.is-zero):not(.is-na) .stlm-ovw-main-count small,
.stlm-ovw-main-sizer.is-follow:not(.is-zero):not(.is-na) .stlm-ovw-main-count small {
  color: inherit;
}

.stlm-ovw-main-line.is-follow > .stlm-ovw-main-label::before {
  content: "\200b";
  content: "\200b" / "";
  font-size: 30px;
  line-height: 1.2;
}

.stlm-ovw-main-go {
  display: flex;
  grid-column: 2/4;
  align-self: start;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 1rem;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
@supports (grid-template-columns: subgrid) {
  .stlm-ovw-main-go {
    display: grid;
    grid-template-columns: subgrid;
    justify-content: normal;
  }
}
.stlm-ovw-main-go > .stlm-ovw-main-count {
  grid-column: 1;
}
.stlm-ovw-main-go > .stlm-ovw-main-amount {
  grid-column: 2;
}
.stlm-ovw-main-go:hover {
  text-decoration: underline;
}
.stlm-ovw-main-go:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.stlm-ovw-main-line.is-wait > * {
  color: #495057;
}

.stlm-ovw-main-line.is-na > * {
  color: #6c757d;
}

.stlm-ovw-main-note {
  grid-column: 1/-1;
  font-size: 14px;
  color: #495057;
}

.stlm-ovw-main-foot {
  padding-top: 0.35rem;
  font-size: 13px;
  color: #6c757d;
  border-top: 1px dashed #dee2e6;
}

.stlm-ovw-file-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.stlm-ovw-kpi-group-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #495057;
}
.stlm-ovw-kpi-group-title::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: #6f42c1;
}

.stlm-ovw-kpi-tag {
  font-weight: 400;
}
.stlm-ovw-kpi-tag.is-fixed {
  flex: 0 0 auto;
  padding: 0 0.4rem;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  white-space: nowrap;
  border: 1px solid #3c8dbc;
  border-radius: 3px;
}

.stlm-ovw-kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.stlm-ovw-kpi {
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: 3px solid #dee2e6;
  border-radius: 0.25rem;
}
.stlm-ovw-kpi.is-warn {
  border-top-color: #fd7e14;
}
.stlm-ovw-kpi.is-crit {
  border-top-color: #dc3545;
}

.stlm-ovw-kpi-label {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
}

.stlm-ovw-kpi-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stlm-ovw-kpi-value small {
  margin-left: 0.25rem;
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
}

.stlm-ovw-kpi-sub {
  font-size: 14px;
  line-height: 1.4;
  color: #6c757d;
}

.stlm-ovw-chip {
  display: inline-block;
  margin-right: 0.5rem;
  white-space: nowrap;
}
.stlm-ovw-chip.is-crit {
  color: #dc3545;
  font-weight: 600;
}
.stlm-ovw-chip.is-good {
  color: #1e7e34;
}

.stlm-ovw-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.stlm-ovw-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.stlm-ovw-card-desc {
  font-size: 14px;
  color: #6c757d;
}

.stlm-ovw-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.stlm-ovw-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  font-size: 13px;
  color: #495057;
}
.stlm-ovw-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stlm-ovw-legend-note {
  font-weight: 400;
}

.stlm-ovw-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
}
.stlm-ovw-swatch.is-aged {
  background: #fd7e14;
}
.stlm-ovw-swatch.is-recent {
  border: 1px solid #fd7e14;
  background: repeating-linear-gradient(135deg, #fd7e14 0, #fd7e14 2px, #fff 2px, #fff 4px);
}
.stlm-ovw-swatch.is-line {
  height: 3px;
  background: #28a745;
}
.stlm-ovw-swatch.is-missing {
  background: rgba(220, 53, 69, 0.25);
}
.stlm-ovw-swatch.is-bank {
  background: #fd7e14;
}
.stlm-ovw-swatch.is-vms {
  background: #3c8dbc;
}
.stlm-ovw-swatch.is-waitband {
  border: 1px dashed #6c757d;
  background: rgba(108, 117, 125, 0.12);
}
.stlm-ovw-swatch.is-selected {
  border: 1px solid #007bff;
  background: rgba(0, 123, 255, 0.15);
}
.stlm-ovw-swatch.is-inactive {
  background: rgba(108, 117, 125, 0.2);
}

.stlm-ovw-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  color: #6c757d;
}

.stlm-ovw-status-icon {
  width: 1rem;
  text-align: center;
}
.stlm-ovw-status-icon.is-ok {
  color: #28a745;
}
.stlm-ovw-status-icon.is-empty, .stlm-ovw-status-icon.is-pending, .stlm-ovw-status-icon.is-unknown {
  color: #6c757d;
}
.stlm-ovw-status-icon.is-missing {
  color: #dc3545;
}

.stlm-ovw-strip-wrap {
  padding: 0.6rem 0.75rem 0.75rem;
}

.stlm-ovw-strip {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.stlm-ovw-strip.is-days-28 {
  grid-template-columns: repeat(28, minmax(0, 1fr));
}
.stlm-ovw-strip.is-days-29 {
  grid-template-columns: repeat(29, minmax(0, 1fr));
}
.stlm-ovw-strip.is-days-30 {
  grid-template-columns: repeat(30, minmax(0, 1fr));
}
.stlm-ovw-strip.is-days-31 {
  grid-template-columns: repeat(31, minmax(0, 1fr));
}

.stlm-ovw-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 3rem;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.2;
  color: #212529;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  cursor: default;
}
.stlm-ovw-cell:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}
.stlm-ovw-cell.is-ok {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.35);
}
.stlm-ovw-cell.is-missing {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.45);
}
.stlm-ovw-cell.is-pending {
  background: #fff;
  border-color: #6c757d;
  border-style: dashed;
}
.stlm-ovw-cell.is-unknown {
  background: #fff;
}
.stlm-ovw-cell .stlm-ovw-status-icon {
  width: auto;
  font-size: 13px;
}
.stlm-ovw-cell.is-legend {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  padding: 0;
}

.stlm-ovw-cell-day {
  font-weight: 600;
}

.stlm-ovw-daily-scroll {
  overflow-x: auto;
}

.stlm-ovw-daily-inner {
  min-width: 720px;
  padding: 0.4rem 0.75rem 0.5rem 0;
}

.stlm-ovw-plot-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  margin-left: 56px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.stlm-ovw-plot {
  position: relative;
}
.stlm-ovw-plot canvas.is-clickable {
  cursor: pointer;
}
.stlm-ovw-plot.is-u {
  height: 220px;
}
.stlm-ovw-plot.is-r {
  height: 150px;
}
.stlm-ovw-plot.is-trend {
  height: 180px;
}

.stlm-ovw-tip {
  font-size: 13px;
  text-align: left;
}
.stlm-ovw-tip small {
  font-size: 12px;
}

.stlm-ovw-eq-table {
  margin: 0;
  font-size: 14px;
}
.stlm-ovw-eq-table th,
.stlm-ovw-eq-table td {
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
  vertical-align: middle;
}
.stlm-ovw-eq-table small {
  font-size: inherit;
}

.stlm-ovw-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stlm-ovw-eq-table td.is-wait,
.stlm-ovw-eq-table td.stlm-ovw-settled {
  color: #495057;
}
.stlm-ovw-eq-table td.is-follow {
  font-weight: 700;
  color: #b54708;
}
.stlm-ovw-eq-table .stlm-ovw-total td {
  font-weight: 700;
}

.stlm-ovw-follow {
  font-weight: 700;
  color: #b54708;
}

.stlm-ovw th.stlm-ovw-th-bank {
  border-top: 3px solid #fd7e14;
}
.stlm-ovw th.stlm-ovw-th-vms {
  border-top: 3px solid #3c8dbc;
}
.stlm-ovw th.stlm-ovw-th-vms small {
  font-size: inherit;
  font-weight: 400;
}

.stlm-ovw-pay-table {
  width: auto;
  min-width: 60%;
}

.stlm-ovw-pay-table .stlm-ovw-pay-sub {
  color: #495057;
}

.stlm-ovw-pay-note {
  padding-top: 0.35rem;
  font-size: 13px;
  color: #6c757d;
}

.stlm-ovw-machines,
.stlm-ovw-tids {
  min-width: 0;
  scroll-margin-top: 4rem;
}

.stlm-ovw-list-body {
  padding: 0.5rem 0.75rem;
}

.stlm-ovw-list-hint {
  margin-bottom: 0.4rem;
  font-size: 14px;
  color: #6c757d;
}

.stlm-ovw-tid-link {
  padding: 0;
  font-family: monospace;
  color: #0056b3;
  vertical-align: baseline;
}
.stlm-ovw-tid-link:hover, .stlm-ovw-tid-link:focus {
  color: #0056b3;
  text-decoration: underline;
}

.stlm-ovw-excluded {
  margin-top: 0.5rem;
  font-size: 14px;
}
.stlm-ovw-excluded summary {
  color: #6c757d;
  cursor: pointer;
}

.stlm-ovw-trend-body {
  padding: 0.4rem 0.75rem 0.6rem;
}

.stlm-ovw-trend-cap {
  font-size: 14px;
  font-weight: 600;
}
.stlm-ovw-trend-cap small {
  margin-left: 0.4rem;
  font-size: 13px;
  font-weight: 400;
  color: #6c757d;
}

.stlm-ovw-panel {
  padding: 0.75rem;
  font-size: 14px;
}
.stlm-ovw-panel .badge {
  font-size: 14px;
}
.stlm-ovw-panel dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  margin: 0.5rem 0;
}
.stlm-ovw-panel dt {
  font-weight: 600;
  color: #6c757d;
}
.stlm-ovw-panel dd {
  margin: 0;
}

.stlm-ovw-drill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-left: 4px solid #007bff;
  border-radius: 0.25rem;
}
.stlm-ovw-drill dl {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
}
.stlm-ovw-drill dl > div {
  display: flex;
  gap: 0.3rem;
}
.stlm-ovw-drill dt {
  font-weight: 600;
  color: #6c757d;
}
.stlm-ovw-drill dd {
  margin: 0;
}

.stlm-ovw-drill-lead {
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .stlm-ovw-kpi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stlm-ovw-strip[class*=is-days-] {
    grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  }
}
@media (max-width: 575.98px) {
  .stlm-ovw-kpi-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .stlm-ovw-main {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  .stlm-ovw-main-cols {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
  }
  .stlm-ovw-side {
    grid-template-columns: max-content max-content max-content minmax(0, 1fr);
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  .stlm-ovw-main-head {
    flex-wrap: wrap;
  }
  .stlm-ovw-main-label {
    grid-column: 1/-1;
  }
  .stlm-ovw-main-sizer > .stlm-ovw-main-label {
    display: none;
  }
  .stlm-ovw-main-line.is-follow > .stlm-ovw-main-label::before {
    content: none;
  }
  .stlm-ovw-main-count {
    grid-column: 1;
  }
  .stlm-ovw-main-amount {
    grid-column: 2;
  }
  .stlm-ovw-main-rate {
    grid-column: 3;
  }
  .stlm-ovw-main-go {
    grid-column: 1/3;
    justify-content: flex-start;
  }
  .stlm-ovw-main-count,
  .stlm-ovw-main-amount,
  .stlm-ovw-main-rate {
    text-align: left;
  }
  .stlm-ovw-alert-go > span {
    display: none;
  }
  .stlm-ovw-pay-table {
    min-width: 100%;
  }
  .stlm-ovw-refresh {
    margin-left: 0;
  }
}
.stlm2-side {
  display: inline-block;
  min-width: 3.1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.3;
  vertical-align: middle;
}

.stlm2 .card-header.d-flex::after,
.stlm2-modal .card-header.d-flex::after {
  display: none;
}

.stlm2-side-bank {
  background: #e3f0fb;
  color: #0b5394;
}

.stlm2-side-vms {
  background: #e6f6ee;
  color: #146c43;
}

.stlm2 {
  font-size: 1rem;
}
.stlm2 .mono {
  font-variant-numeric: tabular-nums;
}
.stlm2 .text-xs {
  font-size: 0.92rem;
}
.stlm2 .badge {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3em 0.5em;
}
.stlm2 .card-title {
  font-size: 1.05rem;
}
.stlm2 .stlm2-row-eq > [class*=col-] {
  display: flex;
  flex-direction: column;
}
.stlm2 .stlm2-row-eq > [class*=col-] > .card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.stlm2 .stlm2-row-eq > [class*=col-] > .card > .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.stlm2 .stlm2-row-eq .stlm2-chart {
  flex: 1 1 auto;
}
.stlm2 .stlm2-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}
.stlm2 .stlm2-ctl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stlm2 .stlm2-ctl label,
.stlm2 .stlm2-ctl .stlm2-ctl-label {
  margin-bottom: 0;
  font-weight: 600;
  white-space: nowrap;
}
.stlm2 .stlm2-ctl select.form-control {
  min-width: 10rem;
}
.stlm2 .stlm2-ctl #stlm2OvSource {
  min-width: 16rem;
}
.stlm2 .stlm2-pipe {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.stlm2 .stlm2-pipe-step {
  flex: 1 1 200px;
  min-width: 0;
  background: #fff;
  border: 0;
  border-left: 4px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0.7rem 0.9rem;
  text-align: left;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stlm2 .stlm2-pipe-step:hover, .stlm2 .stlm2-pipe-step:focus {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 0 0 1px #007bff;
  outline: none;
}
.stlm2 .stlm2-pipe-step .stlm2-pipe-title {
  font-size: 1.05rem;
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  min-height: 1.6rem;
}
.stlm2 .stlm2-pipe-step .stlm2-pipe-lines {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  align-items: baseline;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
}
.stlm2 .stlm2-pipe-step .stlm2-pipe-line {
  display: contents;
}
.stlm2 .stlm2-pipe-step .stlm2-big {
  text-align: right;
}
.stlm2 .stlm2-pipe-step .stlm2-big {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stlm2 .stlm2-pipe-step .stlm2-pipe-amt {
  font-size: 1rem;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}
.stlm2 .stlm2-pipe-arrow {
  align-self: center;
  color: #adb5bd;
}
.stlm2 .stlm2-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.stlm2 .stlm2-kpi > * {
  flex: 1 1 150px;
  min-width: 0;
}
@media (min-width: 992px) {
  .stlm2 .stlm2-kpi {
    flex-wrap: nowrap;
  }
  .stlm2 .stlm2-kpi > * {
    flex: 1 1 0;
  }
}
.stlm2 .stlm2-kpi-note {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
.stlm2 .stlm2-kpi-btn,
.stlm2 .stlm2-stat {
  background: #fff;
  border: 0;
  border-left: 4px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
  text-align: left;
  width: 100%;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stlm2 .stlm2-kpi-btn:hover, .stlm2 .stlm2-kpi-btn:focus,
.stlm2 .stlm2-stat:hover,
.stlm2 .stlm2-stat:focus {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 3px 8px rgba(0, 0, 0, 0.18);
  outline: none;
}
.stlm2 .stlm2-kpi-btn.active,
.stlm2 .stlm2-stat.active {
  background: #f3f8ff;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 0 0 2px #007bff;
}
.stlm2 .stlm2-kpi-btn.st-matched,
.stlm2 .stlm2-stat.st-matched,
.stlm2 .stlm2-pipe-step.st-matched {
  border-left-color: #28a745;
}
.stlm2 .stlm2-kpi-btn.st-waiting,
.stlm2 .stlm2-stat.st-waiting,
.stlm2 .stlm2-pipe-step.st-waiting {
  border-left-color: #ffc107;
}
.stlm2 .stlm2-kpi-btn.st-followup,
.stlm2 .stlm2-stat.st-followup,
.stlm2 .stlm2-pipe-step.st-followup {
  border-left-color: #dc3545;
}
.stlm2 .stlm2-kpi-btn.st-reversed,
.stlm2 .stlm2-stat.st-reversed,
.stlm2 .stlm2-pipe-step.st-reversed {
  border-left-color: #6c757d;
}
.stlm2 .stlm2-kpi-btn.st-noteligible,
.stlm2 .stlm2-stat.st-noteligible,
.stlm2 .stlm2-pipe-step.st-noteligible {
  border-left-color: #adb5bd;
}
.stlm2 .stlm2-kpi-btn.st-all,
.stlm2 .stlm2-stat.st-all,
.stlm2 .stlm2-pipe-step.st-all {
  border-left-color: #007bff;
}
.stlm2 .stlm2-kpi-btn.st-neutral,
.stlm2 .stlm2-stat.st-neutral,
.stlm2 .stlm2-pipe-step.st-neutral {
  border-left-color: #ced4da;
}
.stlm2 .stlm2-kpi-lbl {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #495057;
  height: 1.6rem;
}
.stlm2 .stlm2-kpi-val {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.stlm2 .stlm2-kpi-amt {
  font-size: 1rem;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}
.stlm2 .stlm2-chart {
  position: relative;
  min-height: 260px;
}
.stlm2 .stlm2-chart-sm {
  min-height: 200px;
}
.stlm2 .stlm2-donut-center {
  position: absolute;
  inset: 0 0 2.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.stlm2 .stlm2-donut-center .stlm2-rate {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
}
.stlm2 .stlm2-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.stlm2 .stlm2-cal-wd {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  font-weight: 600;
}
.stlm2 .stlm2-cal-day {
  border: 0;
  border-radius: 4px;
  height: 44px;
  font-size: 0.95rem;
  padding: 3px;
  color: #495057;
  background: #f1f3f5;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stlm2 .stlm2-cal-day b {
  font-size: 1rem;
}
.stlm2 .stlm2-cal-day:disabled {
  opacity: 0.45;
  cursor: default;
}
.stlm2 .stlm2-cal-day:not(:disabled):hover, .stlm2 .stlm2-cal-day:not(:disabled):focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}
.stlm2 .stlm2-cal-day.l1 {
  background: #fde2b5;
}
.stlm2 .stlm2-cal-day.l2 {
  background: #f7b267;
}
.stlm2 .stlm2-cal-day.l3 {
  background: #e8590c;
  color: #fff;
}
.stlm2 .stlm2-cal-day.ok {
  background: #d4edda;
}
.stlm2 .stlm2-cal-day.empty {
  background: #e2e3e5;
}
.stlm2 .stlm2-cal-day.missing {
  background: #f8d7da;
}
.stlm2 .stlm2-cal-day.pending {
  background: #fff;
  border: 1px dashed #ced4da;
}
.stlm2 .stlm2-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.stlm2 .stlm2-cal-legend .stlm2-cal-day {
  height: auto;
  padding: 2px 8px;
}
.stlm2 .stlm2-table th {
  font-size: 1rem;
  vertical-align: middle;
}
.stlm2 .stlm2-table td {
  vertical-align: middle;
  font-size: 1rem;
}
.stlm2 .stlm2-table td:first-child,
.stlm2 .stlm2-table th:first-child {
  padding-left: 0.7rem;
}
.stlm2 .stlm2-col-center {
  text-align: center;
}
.stlm2 .stlm2-sub {
  display: block;
  font-size: 0.92rem;
  color: #6c757d;
}
.stlm2 .stlm2-amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stlm2 tr.stlm2-row-followup td:first-child {
  box-shadow: inset 4px 0 #dc3545;
}
.stlm2 tr.stlm2-row-waiting td:first-child {
  box-shadow: inset 4px 0 #ffc107;
}
.stlm2 .stlm2-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}
.stlm2 .stlm2-applied-title,
.stlm2 .stlm2-applied-from {
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}
.stlm2 .stlm2-applied-from {
  color: #007bff;
}
.stlm2 .stlm2-applied-sep {
  width: 1px;
  align-self: stretch;
  background: #dee2e6;
  margin: 0 0.25rem;
}
.stlm2 .stlm2-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #b8daff;
  border-radius: 1rem;
  background: #f3f8ff;
  color: #004085;
  white-space: nowrap;
}
.stlm2 .stlm2-chip-label {
  color: #6c757d;
  font-size: 0.92rem;
}

.stlm2-modal {
  font-size: 1rem;
}
.stlm2-modal .stlm2-detail-dl dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: #6c757d;
}
.stlm2-modal .stlm2-detail-dl dd {
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}
.stlm2-modal .stlm2-detail-diff {
  border-top: 1px solid #dee2e6;
  padding-top: 0.6rem;
}
.stlm2-modal .badge {
  font-size: 0.9rem;
}

.monitor-page #signDiffRate {
  position: absolute;
  right: 7%;
  top: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.topup-page .colSelected,
.one-topup-page .colSelected {
  background-color: #ffc107 !important;
}
.topup-page #oneTopupBarTab li,
.one-topup-page #oneTopupBarTab li {
  min-width: 55px;
}
.topup-page .valid-tab,
.one-topup-page .valid-tab {
  min-width: 100px;
  max-width: 150px;
}

.topup-page .topup-col-card {
  min-width: 250px;
  border: 1px solid #9E9E9E;
}
.topup-page .topup-col-card .col-process-text {
  position: absolute;
  left: 75%;
  top: 46%;
  font-size: 1.2rem;
  font-weight: lighter;
}
.topup-page .topup-sku-load-info {
  margin-left: -3rem;
  margin-right: 2rem;
  background-color: #f23651 !important;
  color: #ffffff !important;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 14px !important;
}
.topup-page .colNo {
  color: #000000;
}
.topup-page .loadDone {
  background-color: #28a745 !important;
  color: #ffffff !important;
}
.topup-page #loadInfoTab.loadDone {
  background-color: #28a745 !important;
  color: #ffffff !important;
}
.topup-page .colPrice {
  font-size: 125% !important;
}
.topup-page .force-active {
  color: #007bff !important;
  opacity: 0.9;
  font-size: 1.33rem;
  line-height: 0.75em;
  vertical-align: -0.0667em;
}
.topup-page .qty {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.topup-page .qty label {
  flex: 1 0 100%;
}
.topup-page .qty input {
  width: 7rem;
  height: 3rem;
  font-size: 1.3rem;
  text-align: center;
  border: 1px solid #575757;
}
.topup-page .qty button {
  width: 3rem;
  height: 3rem;
  color: #fff;
  font-size: 1.5rem;
}
.topup-page .qty button.qtyminus {
  margin-right: 0.3rem;
}
.topup-page .qty button.qtyplus {
  margin-left: 0.3rem;
}

#addRouteModal .validation-status {
  position: absolute;
  left: 100%;
  top: 50%;
}

.g_css .modal-body {
  height: 80vh;
  overflow-y: auto;
}

#editChangeSettingModal .skuChangeInput {
  max-width: 100px;
  width: 100px;
}
#editChangeSettingModal .change-table .price-input,
#editChangeSettingModal .change-table .capacity-input,
#editChangeSettingModal .change-table .select2-search,
#editChangeSettingModal .change-table .select2-selection,
#editChangeSettingModal .change-table .select2-search input,
#editChangeSettingModal .change-table .select2-results,
#editChangeSettingModal #batchNewCapacity,
#editChangeSettingModal #batchNewPrice {
  background-color: blanchedalmond !important;
  color: #000000 !important;
  font-weight: 500;
}

.highlight-normal-input {
  background-color: blanchedalmond !important;
  color: #000000 !important;
  font-weight: 500;
}

.confirmChange {
  background-color: #000000 !important;
  color: yellow !important;
}

.vms-input {
  max-width: 300px;
}

.topupMainPage #topupListTable_filter {
  float: right;
  text-align: right;
}

#finishReplenishmentListContainer #endTopupTable_filter {
  float: right;
  text-align: right;
}

.vms-event-item-row .product-img {
  display: flex;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.vms-chartjs .maximized-card .vms-chart-row {
  width: 90%;
  height: 90%;
}
.vms-chartjs .maximized-card .vms-chart-container {
  height: 90% !important;
}

.ingredientSoldOutDetail {
  cursor: pointer;
}

.ingredientInit {
  cursor: pointer;
}

#onlineMachineGroup {
  cursor: pointer;
  font-size: 1rem;
}

.view-dashboard-mid {
  cursor: pointer;
}

.sphBtn {
  margin: 25% 1% 0;
}

.dt-left th {
  float: none;
}
.dt-left td {
  float: left;
  border: 0;
  text-align: left;
}

.dt-center {
  text-align: center;
}

.cutload-v2 .cutload-page #cutloadSchduleTabcontent th,
.cutload-v2 .cutload-page #cutloadSchduleTabcontent td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cutload-v2 .cutload-page #updateSKUAllocateCarton {
  width: 100px;
  display: inline;
}
.cutload-v2 .cutload-page .cutload-schdule-tabs {
  cursor: pointer;
}
.cutload-v2 .cutload-page .cutload-schedule-checkbox,
.cutload-v2 .cutload-page .cutload-td-checkbox,
.cutload-v2 .cutload-page .cutload-th-checkbox {
  width: 1.3rem;
  height: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
}
.cutload-v2 .cutload-page .warehouse-container {
  position: absolute;
  right: 1rem;
  max-width: 300px;
  width: 100%;
}
.cutload-v2 .cutload-page .cutload-calendar {
  background-color: #ffffff;
}
.cutload-v2 .cutload-page .cutload-topup-type-radio {
  max-width: 200px;
}
.cutload-v2 .cutload-page .cutload-topup-type-radio label {
  width: 100%;
  cursor: pointer;
}
.cutload-v2 .cutload-page .fc-daygrid-day-events {
  pointer-events: none;
}
.cutload-v2 .cutload-page .tabs-scheduleCutload {
  font-size: 0.9rem;
}
.cutload-v2 .cutload-page .shipment-info-header span {
  font-weight: 700;
}
.cutload-v2 .cutload-page .shipment-info-header .shipment-info-body {
  overflow-y: auto;
  height: 100%;
  padding-bottom: 10rem;
}
.cutload-v2 .cutload-page .cutload-toolbar {
  position: absolute;
  float: right;
  right: 0.75rem;
  justify-content: center;
}
.cutload-v2 .cutloadInfoV2Modal .cutload-info {
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.cutload-v2 .cutloadInfoV2Modal .cutload-info .router-id-tab-list {
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dee2e6 !important;
}
.cutload-v2 .cutloadInfoV2Modal .cutload-info .bootstrap-datetimepicker-widget {
  width: 100%;
}
.cutload-v2 .cutloadInfoV2Modal .cutload-info .cutload-info-footer {
  bottom: 0;
}

.telemetry-settlement .total_desc {
  position: absolute;
  left: 47%;
  width: 60%;
  display: flex;
  font-size: 1.25rem;
}

.productChangeModal-2025 {
  /* 內容面板 */
}
.productChangeModal-2025 .tab-content {
  display: none;
}
.productChangeModal-2025 .tab-content.active {
  display: block;
}
.productChangeModal-2025 {
  /* 批次選擇表格的特別樣式 */
}
.productChangeModal-2025 .batch-select-section table tr {
  cursor: pointer;
}
.productChangeModal-2025 .batch-select-section table tr:hover {
  background-color: #f9f9f9;
}
.productChangeModal-2025 {
  /* 按鈕區固定在底部 */
}
.productChangeModal-2025 .sticky-buttons {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 15px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#exchangeModal {
  /* Make the tabs stick to the top of the modal body */
}
#exchangeModal .modal-body {
  /* Remove any padding at the top of the modal body */
  padding-top: 0;
  max-height: calc(100vh - 300px) !important;
  overflow-y: auto;
  padding-bottom: 100px;
  /* Add extra padding at bottom */
}
#exchangeModal {
  /* Style for the tabs container */
}
#exchangeModal .modal-tabs-container {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1030;
  padding-top: 1rem;
  margin-bottom: 1rem;
  /* Add shadow effect to make it visually distinct when scrolling */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#exchangeModal {
  /* Add space between tabs and content */
}
#exchangeModal .tab-content {
  padding-top: 1rem;
}
#exchangeModal {
  /* Custom styling for active tab */
}
#exchangeModal .nav-tabs .nav-link.active {
  font-weight: 500;
}
#exchangeModal {
  /* Ensure proper spacing in modal content */
}
#exchangeModal #exchangeTabsContent {
  margin-top: 0 !important;
  /* Override the mt-5 class */
}
#exchangeModal a {
  background-color: #ffffff !important;
  color: #000000 !important;
}
#exchangeModal a.active {
  background-color: #007bff !important;
  color: #fff !important;
}
#exchangeModal {
  /* 產品資訊區塊 */
}
#exchangeModal .product-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 2%;
}
#exchangeModal .product-info-item {
  background-color: #f9f9f9;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 5px;
  width: 100%;
  padding-left: 0.5rem;
}
#exchangeModal .product-info-key {
  color: #666;
  font-size: 12px;
}
#exchangeModal .product-info-value {
  font-weight: bold;
  color: #000000;
  padding-left: 3rem;
}
#exchangeModal {
  /* 頁面標題 */
}
#exchangeModal .header {
  text-align: center;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border-radius: 6px 6px 0 0;
  margin-bottom: 10px;
  position: relative;
}
#exchangeModal .header .close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1.5em;
  cursor: pointer;
}
#exchangeModal {
  /* 內容容器 */
}
#exchangeModal .container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
#exchangeModal {
  /* 卡片樣式 */
}
#exchangeModal .card {
  background-color: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#exchangeModal .card-title {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
#exchangeModal {
  /* 選項卡設計 */
}
#exchangeModal .tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}
#exchangeModal .tab {
  padding: 10px 15px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 14px;
}
#exchangeModal .tab.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
  font-weight: bold;
}
#exchangeModal {
  /* 表單元素 */
}
#exchangeModal .form-group {
  margin-bottom: 15px;
}
#exchangeModal .form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}
#exchangeModal .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
#exchangeModal .form-control:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
#exchangeModal select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825l-3.9-3.9c-.2-.2-.2-.5 0-.7s.5-.2.7 0l3.2 3.2 3.2-3.2c.2-.2.5-.2.7 0s.2.5 0 .7l-3.9 3.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
#exchangeModal {
  /* 表格樣式 */
}
#exchangeModal .table-container {
  overflow-y: auto;
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
}
#exchangeModal table {
  width: 100%;
  border-collapse: collapse;
}
#exchangeModal table th {
  background-color: #f5f5f5;
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
#exchangeModal table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: middle;
}
#exchangeModal table tr:last-child td {
  border-bottom: none;
}
#exchangeModal .table-checkbox {
  width: 18px;
  height: 18px;
}
#exchangeModal {
  /* 按鈕樣式 */
}
#exchangeModal .btn-group {
  display: flex;
  gap: 10px;
}
#exchangeModal .btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  flex: 1;
  transition: background-color 0.3s;
}
#exchangeModal .btn:hover {
  background-color: #0069d9;
}
#exchangeModal .btn-secondary {
  background-color: #6c757d;
}
#exchangeModal .btn-secondary:hover {
  background-color: #5a6268;
}
#exchangeModal {
  /* 當前選擇項顯示 */
}
#exchangeModal .selected-summary {
  background-color: #f0f8ff;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 3px solid #007bff;
}
#exchangeModal .selected-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}
#exchangeModal .selected-detail {
  color: #666;
  font-size: 13px;
}
#exchangeModal .tab-content.active {
  display: block;
}
#exchangeModal {
  /* 批次選擇表格的特別樣式 */
}
#exchangeModal .batch-select-section table tr {
  cursor: pointer;
}
#exchangeModal .batch-select-section table tr:hover {
  background-color: #f9f9f9;
}
#exchangeModal {
  /* 按鈕區固定在底部 */
}
#exchangeModal .sticky-buttons {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 15px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
#exchangeModal {
  /* 下拉選單中禁用選項的基本樣式 */
}
#exchangeModal .disabled-option,
#exchangeModal .select2-results__option[aria-disabled=true] {
  background-color: #f0f0f0 !important;
  color: #999 !important;
  text-decoration: line-through;
  position: relative;
}
#exchangeModal .select2-container--bootstrap4 .select2-results__option[aria-disabled=true] {
  color: #999;
}
#exchangeModal {
  /* 媒體查詢 - 針對平板 */
}
@media (min-width: 768px) {
  #exchangeModal .container {
    max-width: 90%;
    margin: 0 auto;
  }
  #exchangeModal .form-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }
  #exchangeModal .form-group {
    flex: 1;
  }
}
#exchangeModal {
  /* 媒體查詢 - 針對桌面 */
}
@media (min-width: 992px) {
  #exchangeModal .container {
    max-width: 960px;
  }
}
#exchangeModal .modal-footer {
  position: sticky;
  bottom: 0;
  background-color: white;
  /* Match your modal background */
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  /* Optional shadow for visual separation */
  z-index: 1050;
  /* Ensure it's above other content */
}

.one-topup-page-2501 {
  /* Custom styles */
}
.one-topup-page-2501 body {
  padding-bottom: 70px;
  /* Space for fixed footer navigation */
}
.one-topup-page-2501 .modal-body {
  overflow-y: auto;
  padding-bottom: 5rem;
  max-height: calc(100vh - 100px);
}
.one-topup-page-2501 .machine-info {
  font-size: 0.9rem;
}
.one-topup-page-2501 .tab-content {
  min-height: calc(100vh - 180px);
  /* Adjust height to fit content between header and footer */
}
.one-topup-page-2501 .footer-nav {
  background-color: #f8f9fa;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1099;
}
.one-topup-page-2501 .footer-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
}
.one-topup-page-2501 .footer-nav .nav-link i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.one-topup-page-2501 .footer-nav .nav-link.active {
  background-color: #007bff;
  color: white;
  border-top: 3px solid #007bff;
  border: 1px solid #66a2df !important;
  border-radius: 1.2rem;
}
.one-topup-page-2501 #workflowTabs {
  border: 1px solid #66a2df !important;
  border-radius: 1.2rem;
}
.one-topup-page-2501 .quick-filter {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 0;
}
.one-topup-page-2501 .quick-filter .btn {
  margin-right: 0.5rem;
  border-radius: 20px;
}
.one-topup-page-2501 .stock-item {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}
.one-topup-page-2501 .stock-item .progress {
  height: 8px;
}
.one-topup-page-2501 .stock-text.low-stock {
  color: #ff4d4f;
  font-weight: 500;
}
.one-topup-page-2501 #stockContainer {
  justify-content: center;
}
.one-topup-page-2501 {
  /* 媒體查詢 - 針對桌面 */
}
@media (min-width: 992px) {
  .one-topup-page-2501 #stockContainer {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -7.5px;
    margin-left: -7.5px;
    justify-content: space-around !important;
  }
  .one-topup-page-2501 .stock-item {
    margin: 1rem !important;
  }
}
.one-topup-page-2501 {
  /* 響應式調整 */
}
@media (max-width: 768px) {
  .one-topup-page-2501 .product-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
  }
  .one-topup-page-2501 .product-code {
    flex: 0 0 auto;
    margin-right: 10px;
  }
  .one-topup-page-2501 .product-details {
    display: none;
    /* 隱藏次要信息 */
  }
  .one-topup-page-2501 .product-stock {
    margin-left: auto;
    min-width: 80px;
  }
  .one-topup-page-2501 .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  .one-topup-page-2501 .action-buttons {
    bottom: 70px;
    /* Position above the footer nav */
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    border-radius: 0.3rem;
    border: 0.3px solid #009688;
  }
  .one-topup-page-2501 .confirm-btn {
    background-color: #007bff;
    color: white;
    border: none;
  }
  .one-topup-page-2501 .cancel-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
  }
  .one-topup-page-2501 {
    /* 給底部固定導航留出空間 */
  }
  .one-topup-page-2501 .filter-container {
    padding-bottom: 70px;
  }
  .one-topup-page-2501 .dt-width-type-qty {
    width: 50px;
  }
  .one-topup-page-2501 .dt-width-type-time {
    width: 50px;
  }
}
.one-topup-page-2501 .filter-tab,
.one-topup-page-2501 .product-item,
.one-topup-page-2501 .product-card {
  /* min-height: 44px; */
  /* 蘋果推薦的最小觸控區域 */
  padding: 12px;
  /* 增加內邊距 */
}
.one-topup-page-2501 .filter-tag-remove {
  padding: 8px;
  /* 擴大刪除按鈕的可點擊區域 */
  margin: -8px;
  /* 使實際視覺大小維持不變 */
}
.one-topup-page-2501 .mobile-action-bar {
  display: none;
}
.one-topup-page-2501 .colSelected {
  background-color: #ffc107 !important;
}
.one-topup-page-2501 #oneTopupBarTab li {
  min-width: 55px;
}
.one-topup-page-2501 .valid-tab {
  min-width: 100px;
  max-width: 150px;
}
.one-topup-page-2501 .action-buttons-container {
  border: 1px solid #4e898f;
  border-radius: 0.5rem;
}
.one-topup-page-2501 .action-buttons-container .action-left span {
  display: none;
}
.one-topup-page-2501 .datatable th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  /* Adjust as needed */
}
.one-topup-page-2501 {
  /* Make the DataTables search input wider */
}
.one-topup-page-2501 .dataTables_filter {
  width: 100%;
  text-align: left !important;
}
.one-topup-page-2501 .dataTables_filter label {
  width: 100%;
}
.one-topup-page-2501 .dataTables_filter input {
  width: 80% !important;
  /* Adjust percentage as needed */
  display: inline-block;
}
.one-topup-page-2501 #workflowTabContent .tab-pane > .alert-info {
  height: 130px;
  padding-bottom: 2rem;
}
.one-topup-page-2501 #workflowTabContent .tab-pane > .alert-info .fa-lg.localize {
  line-height: 1.5;
}
.one-topup-page-2501 .stock-item.is-locked .card-body,
.one-topup-page-2501 .stock-item.is-locked .card-header {
  opacity: 0.5;
}
.one-topup-page-2501 .btn,
.one-topup-page-2501 button,
.one-topup-page-2501 .input-group-prepend button,
.one-topup-page-2501 .input-group-append button {
  touch-action: manipulation;
}
.one-topup-page-2501 .refill-tab-tool button,
.one-topup-page-2501 .refill-tab-tool .custom-control-input,
.one-topup-page-2501 .refill-tab-tool .custom-control-label,
.one-topup-page-2501 .refill-tab-tool .custom-control {
  cursor: pointer;
}
.one-topup-page-2501 .refill-tab-tool .highlight-active {
  background-color: #ffc107 !important;
  border-radius: 0.5rem;
}
.one-topup-page-2501 .col-refill-toolbar {
  border-radius: 0.3rem;
  outline: 1px solid #c1c1c1;
}
.one-topup-page-2501 {
  /* 隱藏 input[type="date"] 的預設日曆圖標 */
}
.one-topup-page-2501 input[type=date]::-webkit-calendar-picker-indicator {
  display: none;
}
.one-topup-page-2501 {
  /* 確保移除後的空白區域也被隱藏 */
}
.one-topup-page-2501 input[type=date] {
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}
.one-topup-page-2501 #upload-tab {
  /* 確保可滾動容器有正確的觸控行為 */
}
.one-topup-page-2501 #upload-tab .container,
.one-topup-page-2501 #upload-tab .card-body,
.one-topup-page-2501 #upload-tab .accordion {
  -webkit-overflow-scrolling: touch;
}
.one-topup-page-2501 #upload-tab {
  /* 防止折疊標題捕獲所有觸控事件 */
}
.one-topup-page-2501 #upload-tab .card-header {
  touch-action: manipulation;
  /* 這允許點擊但不干擾滾動 */
}
.one-topup-page-2501 #upload-tab {
  /* 確保內容區域可被滾動 */
}
.one-topup-page-2501 #upload-tab #columnAccordion {
  position: relative;
  z-index: 1;
  /* 提高堆疊順序，確保觸控事件能被捕獲 */
}
.one-topup-page-2501 #upload-tab {
  /* 增加表格響應性 */
}
.one-topup-page-2501 #upload-tab .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* 提升iOS滾動體驗 */
}
.one-topup-page-2501 #upload-tab {
  /* 改善觸控裝置上的卡頓 */
}
.one-topup-page-2501 #upload-tab .card-header,
.one-topup-page-2501 #upload-tab .accordion .btn {
  touch-action: manipulation;
  /* 改善觸控回應 */
}
.one-topup-page-2501 #upload-tab {
  /* 優化摺疊動畫 */
}
.one-topup-page-2501 #upload-tab .collapse {
  transition: height 0.2s ease-out;
  /* 簡化轉場動畫 */
}
.one-topup-page-2501 #upload-tab {
  /* 減少在小螢幕上的卡頓 */
}
@media (max-width: 768px) {
  .one-topup-page-2501 #upload-tab .table th,
  .one-topup-page-2501 #upload-tab .table td {
    white-space: nowrap;
    /* 防止文字換行 */
  }
  .one-topup-page-2501 #upload-tab {
    /* 優化卡片渲染 */
  }
  .one-topup-page-2501 #upload-tab .card {
    will-change: transform;
    /* 提示瀏覽器提前準備渲染 */
    transform: translateZ(0);
    /* 啟用硬體加速 */
  }
  .one-topup-page-2501 #upload-tab {
    /* 減少不必要的文字換行和複雜布局 */
  }
  .one-topup-page-2501 #upload-tab .card-body p {
    margin-bottom: 0.5rem;
  }
}
.one-topup-page-2501 #upload-tab {
  /* 對齊靠右的CSS */
}
.one-topup-page-2501 #upload-tab .column-info {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}
.one-topup-page-2501 #upload-tab .qty-container {
  display: inline-flex;
  margin-left: 8px;
}
.one-topup-page-2501 #upload-tab {
  /* 為了確保在小屏幕上也能保持對齊 */
}
@media (max-width: 576px) {
  .one-topup-page-2501 #upload-tab .column-info {
    flex-direction: column;
    align-items: flex-end;
  }
  .one-topup-page-2501 #upload-tab .qty-container {
    margin-left: 0;
    margin-bottom: 4px;
    width: 100%;
    justify-content: flex-end;
  }
}
.one-topup-page-2501 #upload-tab {
  /* 數量標籤樣式 */
}
.one-topup-page-2501 #upload-tab .qty-badge {
  min-width: 30px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.one-topup-page-2501 #upload-tab {
  /* 各類型數量的顏色 */
}
.one-topup-page-2501 #upload-tab .topup-qty {
  background-color: #17a2b8;
  color: white;
}
.one-topup-page-2501 #upload-tab .removed-qty {
  background-color: #dc3545;
  color: white;
}
.one-topup-page-2501 #upload-tab .closing-qty {
  background-color: #ffc107;
  color: black;
}
.one-topup-page-2501 #exchangeSingleModal .btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  flex: 1;
  transition: background-color 0.3s;
}
.one-topup-page-2501 #exchangeSingleModal .btn:hover {
  background-color: #0069d9;
}
.one-topup-page-2501 #exchangeSingleModal .btn-secondary {
  background-color: #6c757d;
}
.one-topup-page-2501 #exchangeSingleModal .btn-secondary:hover {
  background-color: #5a6268;
}

#inventoryModal {
  /* 基本樣式 */
}
#inventoryModal .product-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
#inventoryModal .product-cell {
  display: flex;
  align-items: center;
}
#inventoryModal .product-name {
  text-align: left;
}
#inventoryModal {
  /* 狀態徽章 */
}
#inventoryModal .status-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}
#inventoryModal {
  /* 摘要卡片 - 基本樣式 */
}
#inventoryModal .summary-card {
  border-left: 4px solid #eee;
  padding: 10px;
  padding-left: 12px;
  margin-bottom: 10px;
  border-radius: 3px;
}
#inventoryModal {
  /* 缺貨摘要卡片 */
}
#inventoryModal .summary-card.border-danger {
  background-color: rgba(220, 53, 69, 0.05);
  border-left-color: #dc3545;
}
#inventoryModal {
  /* 異常摘要卡片 - 改進版 */
}
#inventoryModal .summary-card.border-warning {
  background-color: #FFF8E1;
  /* 非常淺的黃色背景 */
  border-left-color: #FFC107;
  /* 黃色左側邊框 */
}
#inventoryModal .summary-card.border-warning h6 {
  color: #F57C00;
  /* 深橙色標題 */
}
#inventoryModal .summary-card.border-warning i {
  color: #FF9800;
  /* 橙色圖標 */
}
#inventoryModal {
  /* 信息摘要卡片 */
}
#inventoryModal .summary-card.border-info {
  background-color: rgba(23, 162, 184, 0.05);
  border-left-color: #17a2b8;
}
#inventoryModal {
  /* 搜尋容器 */
}
#inventoryModal .search-container {
  position: relative;
}
#inventoryModal .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}
#inventoryModal .search-input {
  padding-left: 30px;
}
#inventoryModal {
  /* 確保模態內容可滾動 */
}
#inventoryModal .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
#inventoryModal {
  /* DataTables自訂樣式 */
}
#inventoryModal .dataTables_wrapper .dataTables_length,
#inventoryModal .dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}
#inventoryModal table.dataTable tbody tr.table-warning {
  background-color: rgba(255, 193, 7, 0.2);
}
#inventoryModal table.dataTable tbody tr.table-danger {
  background-color: rgba(220, 53, 69, 0.2);
}
#inventoryModal {
  /* 響應式調整 */
}
@media (max-width: 768px) {
  #inventoryModal .product-img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }
  #inventoryModal .summary-card {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  #inventoryModal .status-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
  #inventoryModal {
    /* 調整DataTables在小螢幕的顯示 */
  }
  #inventoryModal .dataTables_length,
  #inventoryModal .dataTables_filter,
  #inventoryModal .dataTables_info,
  #inventoryModal .dataTables_paginate {
    text-align: left !important;
    float: none !important;
    margin-bottom: 0.5rem;
  }
}
#inventoryModal .th-sensorStatus {
  min-width: 50px;
}

.vms-clickable {
  animation: heart-pulse 2s infinite;
  cursor: pointer;
  /* 顯示手型游標 */
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes heart-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* ==========================================
   v3-dashboard 專用 stockContainer 排版
   獨立於 .one-topup-page-2501，僅用於 DEMO
   ========================================== */
.v3-stock-container-layout .stock-item {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}
.v3-stock-container-layout .stock-item .progress {
  height: 8px;
}
.v3-stock-container-layout .stock-text.low-stock {
  color: #ff4d4f;
  font-weight: 500;
}
.v3-stock-container-layout #stockContainer {
  justify-content: center;
}
@media (min-width: 992px) {
  .v3-stock-container-layout #stockContainer {
    display: flex;
    flex-wrap: wrap;
    margin-right: -7.5px;
    margin-left: -7.5px;
    justify-content: space-around !important;
  }
  .v3-stock-container-layout .stock-item {
    margin: 1rem !important;
  }
}

:root {
  --vms-ui-primary: #007bff;
  --vms-ui-primary-hover: #0069d9;
  --vms-ui-on-primary: #ffffff;
  --vms-ui-text: #212529;
  --vms-ui-muted: #6c757d;
  --vms-ui-surface: #ffffff;
  --vms-ui-subtle: #f8f9fa;
  --vms-ui-line: #ced4da;
  --vms-ui-line-soft: #dee2e6;
  --vms-ui-clear: transparent;
  --vms-ui-header-bg: #007bff;
  --vms-ui-header-fg: #ffffff;
  --vms-ui-info-bg: #17a2b8;
  --vms-ui-info-fg: #ffffff;
  --vms-ui-warning-bg: #ffc107;
  --vms-ui-warning-fg: #212529;
  --vms-ui-done-bg: #28a745;
  --vms-ui-done-fg: #ffffff;
  --vms-ui-danger: #dc3545;
  --vms-ui-focus: rgba(0, 123, 255, 0.25);
  --vms-ui-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  --vms-ui-table-head-bg: #343a40;
  --vms-ui-table-head-fg: #ffffff;
  --vms-ui-task-accent: #ffc107;
  --vms-ui-complete-accent: #28a745;
  --vms-ui-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  --vms-ui-count-bg: #e9ecef;
  --vms-ui-count-fg: #495057;
  --vms-ui-count-selected-bg: rgba(255, 255, 255, 0.22);
  --vms-ui-warning-soft-bg: #fff8e1;
  --vms-ui-warning-soft-line: #ffe082;
  --vms-ui-warning-soft-fg: #856404;
  --vms-ui-success-strong: #1e7e34;
  --vms-ui-info-strong: #117a8b;
  --vms-ui-row-stripe-bg: #f2f2f2;
  --vms-ui-row-active-bg: #ececec;
  --vms-ui-sticky-edge: rgba(0, 0, 0, 0.08);
  --vms-ui-contrast-on-light: #1f2d3d;
}

.vms-wizard {
  color: var(--vms-ui-text);
  padding: 1.5rem 0.75rem;
}
.vms-wizard .modal-dialog {
  width: 100%;
  max-width: 1080px;
}
.vms-wizard .modal-content {
  height: auto;
  max-height: calc(100vh - 3rem);
  border: 1px solid var(--vms-ui-line);
  border-radius: 0.5rem;
  background: var(--vms-ui-surface);
  box-shadow: var(--vms-ui-shadow);
}
.vms-wizard .modal-header {
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--vms-ui-line-soft);
}
.vms-wizard .modal-header .modal-title {
  font-size: 1.35rem;
  font-weight: 600;
}
.vms-wizard .modal-body {
  min-height: 0;
  max-height: none;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}
.vms-wizard .tab-pane {
  min-width: 0;
}
.vms-wizard .form-control {
  min-width: 0;
  border-color: var(--vms-ui-line);
  border-radius: 0.25rem;
  color: var(--vms-ui-text);
  background-color: var(--vms-ui-surface);
}
.vms-wizard .form-control:focus {
  border-color: var(--vms-ui-primary);
  box-shadow: 0 0 0 0.2rem var(--vms-ui-focus);
}
.vms-wizard .form-control.is-invalid {
  border-color: var(--vms-ui-danger);
}
.vms-wizard .form-control-plaintext {
  overflow-wrap: anywhere;
}
.vms-wizard .btn-primary {
  color: var(--vms-ui-on-primary);
  background-color: var(--vms-ui-primary);
  border-color: var(--vms-ui-primary);
}
.vms-wizard .btn-primary:hover {
  background-color: var(--vms-ui-primary-hover);
  border-color: var(--vms-ui-primary-hover);
}

.vms-stepper {
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.vms-stepper .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  background: var(--vms-ui-subtle);
  color: var(--vms-ui-muted);
}
.vms-stepper .nav-link.active {
  background: var(--vms-ui-primary);
  color: var(--vms-ui-on-primary);
}
.vms-stepper .nav-link.is-pending {
  background: var(--vms-ui-subtle);
  color: var(--vms-ui-muted);
}
.vms-stepper .nav-link.is-done {
  background: var(--vms-ui-done-bg);
  color: var(--vms-ui-done-fg);
}

.vms-stepper-import.nav-pills .nav-link.is-pending {
  background: var(--vms-ui-subtle);
  color: var(--vms-ui-contrast-on-light);
}
.vms-stepper-import.nav-pills .nav-link.is-done {
  background: var(--vms-ui-done-bg);
  color: var(--vms-ui-done-fg);
}

.nav-tabs.vms-subtabs {
  gap: 0.25rem;
  border-bottom: 1px solid var(--vms-ui-line);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.nav-tabs.vms-subtabs .nav-link {
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 2px solid var(--vms-ui-clear);
  border-radius: 0;
  color: var(--vms-ui-muted);
  background: var(--vms-ui-clear);
  white-space: normal;
}
.nav-tabs.vms-subtabs .nav-link b {
  font-weight: 400;
}
.nav-tabs.vms-subtabs .nav-link:hover {
  color: var(--vms-ui-primary);
}
.nav-tabs.vms-subtabs .nav-link.active {
  color: var(--vms-ui-primary);
  border-bottom-color: var(--vms-ui-primary);
  background: var(--vms-ui-clear);
}
.nav-tabs.vms-subtabs .nav-link.active b {
  font-weight: 600;
}
.nav-tabs.vms-subtabs .nav-link:focus-visible {
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: -2px;
}

.vms-form-section {
  min-width: 0;
}
.vms-form-section > .card-body {
  padding: 0;
}

.vms-form-grid {
  row-gap: 0.5rem;
}
.vms-form-grid > * {
  min-width: 0;
}
.vms-form-grid .form-group {
  margin-bottom: 1rem;
}
.vms-form-grid label {
  margin-bottom: 0.4rem;
}

.card.vms-panel {
  box-shadow: none;
  border: 1px solid var(--vms-ui-line);
  border-radius: 0.375rem;
  background: var(--vms-ui-surface);
}
.card.vms-panel > .card-header {
  padding: 0.75rem 1rem;
  background: var(--vms-ui-header-bg);
  color: var(--vms-ui-header-fg);
  border-bottom: 1px solid var(--vms-ui-line-soft);
}
.card.vms-panel > .card-header .btn-tool {
  color: var(--vms-ui-header-fg);
}
.card.vms-panel > .card-header .card-title {
  font-size: 1rem;
  font-weight: 600;
}
.card.vms-panel > .card-body {
  padding: 1rem;
}

.badge.vms-mode-badge {
  padding: 0.35rem 0.6rem;
  border-radius: 2rem;
}
.badge.vms-mode-badge.badge-info {
  background: var(--vms-ui-info-bg);
  color: var(--vms-ui-info-fg);
}
.badge.vms-mode-badge.badge-warning {
  background: var(--vms-ui-warning-bg);
  color: var(--vms-ui-warning-fg);
}

.vms-form-footer {
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--vms-ui-line-soft);
}
.vms-form-footer > * {
  margin: 0;
}
.vms-form-footer > .d-flex {
  gap: 0.75rem;
}

.vms-form-footer-check {
  margin-right: 1rem;
}

@media (max-width: 575.98px) {
  .vms-wizard {
    padding: 0.5rem;
  }
  .vms-wizard .modal-content {
    max-height: calc(100vh - 1rem);
  }
  .vms-wizard .modal-header,
  .vms-wizard .modal-body,
  .vms-wizard .modal-footer {
    padding: 1rem;
  }
  .vms-wizard .modal-header .modal-title {
    font-size: 1.2rem;
  }
  .vms-wizard .btn-group {
    flex-wrap: wrap;
  }
  .nav-tabs.vms-subtabs {
    gap: 0;
    margin-bottom: 1rem;
  }
  .nav-tabs.vms-subtabs .nav-item {
    flex: 0 0 25%;
    min-width: 0;
  }
  .nav-tabs.vms-subtabs .nav-link {
    padding: 0.65rem 0.2rem;
    text-align: center;
    font-size: 0.9rem;
  }
  .vms-form-footer > .d-flex {
    flex: 1 1 100%;
  }
  .vms-form-footer > .d-flex .vms-form-footer-check {
    margin-right: auto;
  }
}
.vms-taskbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--vms-ui-line-soft);
  border-left: 4px solid var(--vms-ui-task-accent);
  border-radius: 0.375rem;
  color: var(--vms-ui-text);
  background: var(--vms-ui-surface);
  box-shadow: var(--vms-ui-card-shadow);
}
.vms-taskbar.is-complete {
  border-left-color: var(--vms-ui-complete-accent);
}
.vms-taskbar.is-archived {
  border-left-color: var(--vms-ui-line);
}

.vms-taskbar-prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 360px;
  min-width: 0;
}

.vms-taskbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--vms-ui-warning-bg);
  color: var(--vms-ui-warning-fg);
}
.is-complete .vms-taskbar-icon {
  background: var(--vms-ui-done-bg);
  color: var(--vms-ui-done-fg);
}

.vms-taskbar-copy,
.vms-card-copy {
  min-width: 0;
}

.vms-taskbar-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.vms-taskbar-hint,
.vms-card-description {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--vms-ui-muted);
  overflow-wrap: anywhere;
}

.vms-taskbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn.vms-button-primary {
  background: var(--vms-ui-primary);
  border-color: var(--vms-ui-primary);
  color: var(--vms-ui-on-primary);
}
.btn.vms-button-primary:hover {
  background: var(--vms-ui-primary-hover);
  border-color: var(--vms-ui-primary-hover);
}

.btn.vms-button-secondary {
  background: var(--vms-ui-surface);
  border-color: var(--vms-ui-line);
  color: var(--vms-ui-text);
}
.btn.vms-button-secondary:hover {
  background: var(--vms-ui-subtle);
}

.vms-button-primary:focus-visible, .vms-button-primary.focus,
.vms-button-secondary:focus-visible,
.vms-button-secondary.focus,
.vms-segtab:focus-visible,
.vms-segtab.focus {
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem var(--vms-ui-focus);
}

.card.vms-list-card {
  min-width: 0;
  border: 1px solid var(--vms-ui-line-soft);
  border-top: 3px solid var(--vms-ui-primary);
  border-radius: 0.375rem;
  background: var(--vms-ui-surface);
  color: var(--vms-ui-text);
  box-shadow: var(--vms-ui-card-shadow);
}
.card.vms-list-card > .card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--vms-ui-line-soft);
}
.card.vms-list-card > .card-header::after {
  display: none;
}
.card.vms-list-card > .card-body {
  min-width: 0;
  padding: 1rem;
}

.vms-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.vms-card-copy {
  flex: 1 1 320px;
}

.vms-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

.nav-tabs.vms-view-tabs {
  border: 0;
  gap: 0.25rem;
}
.nav-tabs.vms-view-tabs .nav-link {
  border: 1px solid var(--vms-ui-clear);
  border-radius: 0.25rem;
  color: var(--vms-ui-muted);
  background: var(--vms-ui-clear);
}
.nav-tabs.vms-view-tabs .nav-link.active {
  border-color: var(--vms-ui-line);
  color: var(--vms-ui-primary);
  background: var(--vms-ui-subtle);
}

.vms-viewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.vms-view-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vms-ui-muted);
}

.vms-segtabs {
  max-width: 100%;
}

.btn.vms-segtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--vms-ui-line);
  background: var(--vms-ui-surface);
  color: var(--vms-ui-text);
  font-weight: 400;
  white-space: nowrap;
}
.btn.vms-segtab:hover {
  background: var(--vms-ui-subtle);
}
.btn.vms-segtab.is-active {
  border-color: var(--vms-ui-primary);
  background: var(--vms-ui-primary);
  color: var(--vms-ui-on-primary);
  font-weight: 600;
}

.vms-count {
  padding: 0.05rem 0.4rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  background: var(--vms-ui-count-bg);
  color: var(--vms-ui-count-fg);
}
.is-active .vms-count {
  background: var(--vms-ui-count-selected-bg);
  color: var(--vms-ui-on-primary);
}

.vms-filter-grid {
  align-items: end;
}
.vms-filter-grid > .form-group {
  flex: 1 1 150px;
  max-width: none;
  min-width: 0;
}
.vms-filter-grid label {
  font-size: 0.875rem;
  color: var(--vms-ui-muted);
}

.table > thead.vms-table-head > tr > th {
  background: var(--vms-ui-table-head-bg);
  color: var(--vms-ui-table-head-fg);
  border-color: var(--vms-ui-line-soft);
}

@media (max-width: 575.98px) {
  .vms-taskbar {
    padding: 0.875rem;
    gap: 0.75rem;
  }
  .vms-taskbar-actions {
    width: 100%;
    margin-left: 0;
  }
  .vms-taskbar-actions .btn {
    flex: 1 1 auto;
    white-space: normal;
  }
  .card.vms-list-card > .card-header,
  .card.vms-list-card > .card-body {
    padding: 0.75rem;
  }
  .vms-viewbar {
    gap: 0.5rem;
  }
  .vms-segtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.25rem;
  }
  .vms-segtabs > .btn.vms-segtab {
    margin: 0;
    border-radius: 0.25rem;
  }
  .vms-filter-grid > .form-group {
    flex-basis: 100%;
  }
  .vms-filter-grid {
    --vms-ui-touch: 3.4rem;
  }
  .vms-filter-grid .form-control,
  .vms-filter-grid .custom-select,
  .vms-filter-grid select {
    height: auto;
    min-height: var(--vms-ui-touch);
  }
  .vms-filter-grid .btn {
    min-height: var(--vms-ui-touch);
  }
  .vms-filter-grid .select2-container--bootstrap4 .select2-selection {
    height: auto !important;
    min-height: var(--vms-ui-touch) !important;
  }
  .vms-filter-grid .select2-container--bootstrap4 .select2-selection--single {
    display: flex;
    align-items: center;
  }
}
.vms-toast-above-modal {
  z-index: 1060;
}

.vms-cell-ellipsis {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.badge.vms-badge.badge-success {
  background-color: var(--vms-ui-success-strong);
}
.badge.vms-badge.badge-info {
  background-color: var(--vms-ui-info-strong);
}

.table.vms-data-table.is-clickable tbody tr {
  cursor: pointer;
}

.vms-col-action .btn:active {
  transform: translateY(1px);
}

@media (max-width: 767.98px) {
  td.vms-col-action,
  th.vms-col-action {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: -1px 0 0 var(--vms-ui-sticky-edge);
  }
  th.vms-col-action {
    z-index: 3;
  }
  tbody tr td.vms-col-action {
    background: var(--vms-ui-surface);
  }
  tbody tr:nth-of-type(odd) td.vms-col-action {
    background: var(--vms-ui-row-stripe-bg);
  }
  tbody tr.table-active td.vms-col-action {
    background: var(--vms-ui-row-active-bg);
  }
  .vms-col-action .vms-act-label {
    display: none;
  }
  .vms-col-action .btn {
    min-height: var(--vms-ui-touch);
    min-width: var(--vms-ui-touch);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .vms-col-action .btn i {
    margin: 0;
  }
}
@media (min-width: 768px) {
  .vms-data-table.is-action-pinned td.vms-col-action,
  .vms-data-table.is-action-pinned th.vms-col-action {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: -1px 0 0 var(--vms-ui-sticky-edge);
  }
  .vms-data-table.is-action-pinned th.vms-col-action {
    z-index: 3;
  }
  .vms-data-table.is-action-pinned tbody tr td.vms-col-action {
    background: var(--vms-ui-surface);
  }
  .vms-data-table.is-action-pinned tbody tr:nth-of-type(odd) td.vms-col-action {
    background: var(--vms-ui-row-stripe-bg);
  }
  .vms-data-table.is-action-pinned.table-hover tbody tr:hover td.vms-col-action {
    background: var(--vms-ui-subtle);
  }
  .vms-data-table.is-action-pinned tbody tr.table-active td.vms-col-action, .vms-data-table.is-action-pinned.table-hover tbody tr.table-active:hover td.vms-col-action {
    background: var(--vms-ui-row-active-bg);
  }
}
.universal-side-panel-content > .vms-drawer {
  min-height: 100%;
}

.vms-drawer-foot {
  position: sticky;
  bottom: 0;
}

.vms-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
}
.vms-kv dt {
  color: var(--vms-ui-muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.vms-kv dd {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.alert.vms-alert-soft {
  background: var(--vms-ui-warning-soft-bg);
  border: 1px solid var(--vms-ui-warning-soft-line);
  color: var(--vms-ui-warning-soft-fg);
}

.vms-inline-msg {
  min-height: 1.2rem;
  margin-top: 0.2rem;
}

.vms-select-touch {
  --vms-ui-touch-target: var(--vms-ui-touch);
}
@media (max-width: 767px) {
  .vms-select-touch .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch-target);
  }
  .vms-select-touch .select2-search--dropdown .select2-search__field {
    min-height: var(--vms-ui-touch-target);
  }
  .vms-select-touch .select2-results__option {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch-target);
  }
}

.vms-timeline {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--vms-ui-line-soft);
}

.vms-timeline-item {
  position: relative;
  margin-bottom: 0.5rem;
  border: 1px solid var(--vms-ui-line-soft);
  border-radius: 0.25rem;
  background: var(--vms-ui-surface);
}
.vms-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: 0.9rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--vms-ui-info-bg);
}
.vms-timeline-item.is-gap {
  background: var(--vms-ui-subtle);
  border-style: dashed;
  color: var(--vms-ui-muted);
}
.vms-timeline-item.is-gap::before {
  background: var(--vms-ui-line);
}
.vms-timeline-item.is-current-gap::before {
  background: var(--vms-ui-task-accent);
}
.vms-timeline-item[data-toggle="1"] > .vms-timeline-head {
  cursor: pointer;
}
.vms-timeline-item.is-open > .vms-timeline-body {
  display: block;
}
.vms-timeline-item.is-open .vms-timeline-caret {
  transform: rotate(180deg);
}

.vms-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  min-height: var(--vms-ui-touch);
}

.vms-timeline-body {
  display: none;
  padding: 0 0.6rem 0.6rem;
  border-top: 1px dashed var(--vms-ui-line-soft);
}

.vms-touch {
  min-height: var(--vms-ui-touch);
}

@media (max-width: 767.98px) {
  .vms-touch-narrow .form-control {
    height: auto;
    min-height: var(--vms-ui-touch);
  }
  .vms-touch-narrow .btn,
  .vms-touch-narrow .page-link,
  .vms-touch-narrow .breadcrumb a {
    min-height: var(--vms-ui-touch);
  }
  .vms-touch-narrow .page-link {
    display: flex;
    align-items: center;
  }
  .vms-touch-narrow .breadcrumb a {
    display: inline-flex;
    align-items: center;
  }
  .vms-touch-narrow .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--vms-ui-touch);
    min-height: var(--vms-ui-touch);
  }
  .vms-touch-narrow .vms-data-table.is-clickable th,
  .vms-touch-narrow .vms-data-table.is-clickable td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }
}
td.vms-col-sticky,
th.vms-col-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--vms-ui-sticky-edge);
}

th.vms-col-sticky {
  z-index: 3;
}

tbody tr td.vms-col-sticky {
  background: var(--vms-ui-surface);
}

tbody tr.table-active td.vms-col-sticky {
  background: var(--vms-ui-row-active-bg);
}

.table-hover tbody tr:hover td.vms-col-sticky {
  background: var(--vms-ui-subtle);
}

.table-hover tbody tr.table-active:hover td.vms-col-sticky {
  background: var(--vms-ui-row-active-bg);
}

.vms-task-page {
  max-width: 760px;
}
.vms-task-page .btn:not(.stretched-link):active {
  transform: scale(0.98);
}
.vms-task-page .card-title:focus {
  outline: none;
}
.vms-task-page .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: var(--vms-ui-touch);
}
.vms-task-page .select2-search--dropdown .select2-search__field {
  min-height: var(--vms-ui-touch);
}
.vms-task-page .select2-results__option:not([role=group]) {
  display: flex;
  align-items: center;
  min-height: var(--vms-ui-touch);
}

.vms-stepper-task {
  gap: 4px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}
.vms-stepper-task .nav-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}
.vms-stepper-task .nav-item .nav-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  padding: 0.5rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 80%;
  font-weight: 400;
  text-align: center;
  overflow-wrap: anywhere;
}
.vms-stepper-task .nav-item .nav-link.is-active {
  background: var(--vms-ui-primary);
  color: var(--vms-ui-on-primary);
  font-weight: 700;
}
.vms-stepper-task.is-danger .nav-link.is-active {
  background: var(--vms-ui-danger);
}

.vms-step-actions {
  margin-bottom: 12px;
}

.vms-btn-row {
  display: flex;
  gap: 8px;
}

.vms-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.vms-meta-row.is-wide {
  gap: 4px 12px;
}
.vms-meta-row .badge {
  white-space: normal;
  text-align: left;
}

.vms-meta-label {
  color: var(--vms-ui-muted);
}
.active .vms-meta-label {
  color: inherit;
}

.vms-pick-row {
  min-height: var(--vms-ui-touch);
}
.vms-pick-row.is-disabled {
  background: var(--vms-ui-subtle);
  color: var(--vms-ui-muted);
}

.vms-wrap-anywhere {
  overflow-wrap: anywhere;
}

.vms-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vms-qty-input {
  width: 88px;
}

.vms-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--vms-ui-touch);
  font-weight: normal;
  cursor: pointer;
}
.vms-check-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
}

.vms-toast-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1080;
  max-width: 560px;
  margin: 0 auto;
}

.vms-table-stack-wrap {
  overflow-x: auto;
}

.vms-choice-card:not(.is-locked) {
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.vms-choice-card:not(.is-locked):hover, .vms-choice-card:not(.is-locked):focus-within {
  box-shadow: 0 0 0 2px var(--vms-ui-primary);
}
.vms-choice-card:not(.is-locked):active {
  transform: scale(0.99);
}
.vms-choice-card.is-locked {
  opacity: 0.6;
  background: var(--vms-ui-subtle);
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .vms-table-stack-wrap {
    overflow-x: visible;
  }
  table.vms-table-stack {
    display: block;
    width: 100%;
  }
  table.vms-table-stack thead {
    display: none;
  }
  table.vms-table-stack tbody {
    display: block;
    width: 100%;
  }
  table.vms-table-stack tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 8px;
    padding: 10px 4px;
    border-top: 1px solid var(--vms-ui-line-soft);
  }
  table.vms-table-stack td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  table.vms-table-stack td.is-wide {
    grid-column: 1/-1;
  }
  table.vms-table-stack td[data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: var(--vms-ui-muted);
    font-size: 0.8rem;
    content: attr(data-label);
  }
}
@media (max-width: 480px) {
  .vms-stepper-task.is-dense .nav-link > span:not(.badge) {
    font-size: 0.7rem;
  }
  .vms-duo-grid {
    grid-template-columns: 1fr;
  }
}
:root {
  --vms-ui-selected-bg: #0069d9;
  --vms-ui-info-accent: #007bff;
  --vms-ui-chip-bg: #eaf3ff;
  --vms-ui-chip-hover-bg: #dbebff;
  --vms-ui-chip-line: #b9d6ff;
  --vms-ui-chip-fg: #0b5ed7;
  --vms-ui-empty-icon: #ced4da;
  --vms-ui-touch: 2.6rem;
  --vms-ui-font-min: 12px;
}

.btn.vms-segtab.is-active {
  border-color: var(--vms-ui-selected-bg);
  background: var(--vms-ui-selected-bg);
}

.btn.vms-segtab.focus {
  outline: 0;
  box-shadow: none;
}

.btn.vms-segtab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem var(--vms-ui-focus);
}

.btn.vms-segtab:has(input:focus-visible) {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem var(--vms-ui-focus);
}

.vms-spacer {
  flex: 1 1 auto;
}

.vms-viewbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vms-viewbar-actions-gap, 0.4rem);
}

@media (min-width: 768px) {
  .vms-segtabs.is-compact > .btn.vms-segtab {
    min-height: var(--vms-segtab-compact-height, 2.5rem);
    padding: 0.28rem 0.7rem;
    font-size: max(var(--vms-ui-font-min), 0.875rem);
  }
}
.vms-taskbar.is-info {
  border-left-color: var(--vms-ui-info-accent);
}

.is-info .vms-taskbar-icon {
  background: var(--vms-ui-info-accent);
  color: var(--vms-ui-on-primary);
}

.vms-taskbar-icon.is-count {
  flex: 0 0 auto;
  min-width: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vms-readonly-note {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--vms-ui-line-soft);
  border-radius: 0.25rem;
  background: var(--vms-ui-subtle);
  color: var(--vms-ui-muted);
  font-size: max(var(--vms-ui-font-min), 0.875rem);
}

.vms-filter-grid > .vms-filter-actions {
  flex: 0 0 auto;
}

.vms-filter-grid.is-compact > .form-group {
  margin-bottom: 0.5rem;
}
.vms-filter-grid.is-compact label {
  margin-bottom: 0.15rem;
  font-size: max(var(--vms-ui-font-min), 0.75rem);
}
.vms-filter-grid.is-compact .select2-container--bootstrap4 .select2-selection {
  min-height: calc(1.8125rem + 2px) !important;
  font-size: max(var(--vms-ui-font-min), 0.875rem);
}
.vms-filter-grid.is-compact .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  display: block;
}
.vms-filter-grid.is-compact .select2-container--bootstrap4 .select2-selection--single {
  height: calc(1.8125rem + 2px) !important;
}
.vms-filter-grid.is-compact .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  line-height: 1.8125rem;
}

.vms-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vms-chip-gap, 0.45rem);
  margin-bottom: 0.75rem;
}

.vms-filter-chips-label {
  font-size: max(var(--vms-ui-font-min), 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vms-ui-muted);
}

.vms-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--vms-chip-height, 30px);
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--vms-ui-chip-line);
  border-radius: 999px;
  background: var(--vms-ui-chip-bg);
  color: var(--vms-ui-chip-fg);
  font-size: max(var(--vms-ui-font-min), 0.85rem);
  line-height: 1.4;
  cursor: pointer;
}
.vms-chip:hover {
  background: var(--vms-ui-chip-hover-bg);
}
.vms-chip:active {
  transform: translateY(1px);
}
.vms-chip:focus-visible {
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: 2px;
}
.vms-chip b {
  font-weight: 700;
}

.vms-empty {
  padding: var(--vms-empty-pad, 3rem 1rem);
  text-align: center;
  color: var(--vms-ui-muted);
}
.vms-empty.is-compact {
  --vms-empty-pad: 1.5rem 1rem;
}

.vms-empty-icon {
  margin-bottom: 1rem;
  color: var(--vms-ui-empty-icon);
}

.vms-empty-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vms-ui-text);
}

.vms-empty-hint {
  margin: 0;
  font-size: max(var(--vms-ui-font-min), 0.9rem);
  overflow-wrap: anywhere;
}

.vms-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.table.vms-data-table.is-tidy thead th {
  white-space: nowrap;
  vertical-align: middle;
}
.table.vms-data-table.is-tidy td {
  vertical-align: middle;
}
.table.vms-data-table.is-tidy td.vms-col-action,
.table.vms-data-table.is-tidy th.vms-col-action {
  white-space: nowrap;
}
.table.vms-data-table.is-tidy .vms-col-action .btn {
  margin: 0 0.15rem 0.15rem 0;
  white-space: nowrap;
}

.vms-dt-head {
  margin-bottom: 0.5rem;
}

.vms-dt-buttons .dt-buttons {
  float: none;
  display: inline-flex;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .vms-viewbar-actions {
    width: 100%;
  }
  .vms-chip,
  .vms-filter-chips .btn {
    min-height: var(--vms-ui-touch);
  }
  .vms-filter-grid.is-compact .form-control,
  .vms-filter-grid.is-compact .custom-select,
  .vms-filter-grid.is-compact select {
    height: auto;
    min-height: var(--vms-ui-touch);
  }
  .vms-filter-grid.is-compact .select2-container--bootstrap4 .select2-selection {
    height: auto !important;
    min-height: var(--vms-ui-touch) !important;
  }
  .vms-dt-buttons {
    margin-top: 0.5rem;
  }
  .vms-dt-length select,
  .vms-dt-buttons .dt-buttons .btn {
    min-height: var(--vms-ui-touch);
  }
  .vms-dt-foot .pagination .page-link {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch);
  }
  .dt-button-collection.vms-dt-collection .dt-button {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch);
  }
}
@media (max-width: 575.98px) {
  .vms-filter-grid > .vms-filter-actions {
    flex: 1 1 100%;
  }
}
.vms-taskbar-hint,
.vms-card-description,
.vms-kv dd {
  font-size: max(var(--vms-ui-font-min), 0.9rem);
}

.vms-view-label,
.vms-filter-grid label {
  font-size: max(var(--vms-ui-font-min), 0.875rem);
}

.vms-count {
  font-size: max(var(--vms-ui-font-min), 0.75rem);
}

.vms-kv dt {
  font-size: max(var(--vms-ui-font-min), 0.8rem);
}

.vms-timeline-head {
  font-size: max(var(--vms-ui-font-min), 0.85rem);
}

.vms-stepper-task .nav-item .nav-link {
  font-size: max(var(--vms-ui-font-min), 80%);
}

.vms-list-card .badge,
.vms-task-page .badge,
.vms-taskbar .badge,
.vms-wizard .badge,
.vms-drawer .badge,
.universal-side-panel-content .badge {
  font-size: max(var(--vms-ui-font-min), 75%);
}
.vms-list-card .btn-sm,
.vms-list-card .form-control-sm,
.vms-task-page .btn-sm,
.vms-task-page .form-control-sm,
.vms-taskbar .btn-sm,
.vms-taskbar .form-control-sm,
.vms-wizard .btn-sm,
.vms-wizard .form-control-sm,
.vms-drawer .btn-sm,
.vms-drawer .form-control-sm,
.universal-side-panel-content .btn-sm,
.universal-side-panel-content .form-control-sm {
  font-size: max(var(--vms-ui-font-min), 0.875rem);
}
.vms-list-card small,
.vms-list-card .small,
.vms-task-page small,
.vms-task-page .small,
.vms-taskbar small,
.vms-taskbar .small,
.vms-wizard small,
.vms-wizard .small,
.vms-drawer small,
.vms-drawer .small,
.universal-side-panel-content small,
.universal-side-panel-content .small {
  font-size: max(var(--vms-ui-font-min), 80%);
}
.vms-list-card code,
.vms-task-page code,
.vms-taskbar code,
.vms-wizard code,
.vms-drawer code,
.universal-side-panel-content code {
  font-size: max(var(--vms-ui-font-min), 87.5%);
}

@media (max-width: 767.98px) {
  table.vms-table-stack td[data-label]::before {
    font-size: max(var(--vms-ui-font-min), 0.8rem);
  }
}
@media (max-width: 575.98px) {
  .nav-tabs.vms-subtabs .nav-link {
    font-size: max(var(--vms-ui-font-min), 0.9rem);
  }
}
@media (max-width: 480px) {
  .vms-stepper-task.is-dense .nav-link > span:not(.badge) {
    font-size: max(var(--vms-ui-font-min), 0.7rem);
  }
}
:root {
  --vms-ui-primary-strong: #0062cc;
}

.badge.vms-badge {
  font-size: max(var(--vms-ui-font-min), 75%);
}
.badge.vms-badge.badge-primary {
  background-color: var(--vms-ui-primary-strong);
}
.badge.vms-badge.is-soft {
  border: 1px solid var(--vms-ui-warning-soft-line);
  background: var(--vms-ui-warning-soft-bg);
  color: var(--vms-ui-warning-soft-fg);
}
.badge.vms-badge.is-outline {
  border: 1px solid var(--vms-ui-line);
  background: var(--vms-ui-surface);
  color: var(--vms-ui-text);
}

.vms-touch-large {
  --vms-ui-touch: 3.4rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .vms-touch-large .vms-dt-length select,
  .vms-touch-large .vms-dt-buttons .dt-buttons .btn {
    min-height: var(--vms-ui-touch);
  }
  .vms-touch-large .vms-dt-foot .pagination .page-link {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch);
  }
  .dt-button-collection.vms-dt-collection.vms-touch-large .dt-button {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch);
  }
}
.vms-backbar {
  margin: -0.25rem 0 0.25rem;
}
.vms-backbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--vms-ui-touch);
}

.vms-notice {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background: var(--vms-ui-count-bg);
  font-size: max(var(--vms-ui-font-min), 0.9rem);
}

.vms-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--vms-ui-line-soft);
  border-radius: 0.25rem;
  background: var(--vms-ui-subtle);
}

.vms-stat {
  display: inline-flex;
  flex-direction: column;
  min-width: var(--vms-stat-min, 5rem);
}
.vms-stat small {
  color: var(--vms-ui-muted);
  font-size: max(var(--vms-ui-font-min), 80%);
}
.vms-stat b {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.vms-progress-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: var(--vms-progress-min, 120px);
}
.vms-progress-inline .progress {
  flex: 1 1 auto;
  min-width: 60px;
  height: var(--vms-progress-height, 0.6rem);
  margin: 0;
}

.vms-progress-text {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.4rem;
  font-size: max(var(--vms-ui-font-min), 0.82rem);
}

.vms-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  vertical-align: -1px;
}

.vms-mobile-meta {
  display: none;
}

@media (max-width: 767.98px) {
  .vms-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    margin-top: 0.3rem;
    font-size: max(var(--vms-ui-font-min), 0.85rem);
    text-align: left;
  }
  .vms-mobile-meta.is-stack {
    flex-direction: column;
    align-items: flex-start;
  }
}
:root {
  --vms-ui-locked-bg: #e9ecef;
  --vms-ui-locked-fg: #495057;
}

.vms-card-heading.is-tabbed > .vms-card-copy {
  flex-basis: 100%;
}

.nav-tabs.vms-view-tabs.is-bar {
  flex: 1 1 auto;
  gap: 0.25rem;
  border-bottom: 1px solid var(--vms-ui-line-soft);
}
.nav-tabs.vms-view-tabs.is-bar .nav-item {
  margin-bottom: -1px;
}
.nav-tabs.vms-view-tabs.is-bar .nav-link {
  display: flex;
  align-items: center;
  min-height: var(--vms-ui-touch);
  padding: 0.45rem 1rem;
  border: 0;
  border-bottom: 3px solid var(--vms-ui-clear);
  border-radius: 0.25rem 0.25rem 0 0;
  color: var(--vms-ui-text);
  background: var(--vms-ui-clear);
  font-size: 1.05rem;
  white-space: nowrap;
}
.nav-tabs.vms-view-tabs.is-bar .nav-link b {
  font-weight: 600;
}
.nav-tabs.vms-view-tabs.is-bar .nav-link:hover {
  background: var(--vms-ui-subtle);
  border-bottom-color: var(--vms-ui-line);
}
.nav-tabs.vms-view-tabs.is-bar .nav-link.active {
  border-bottom-color: var(--vms-ui-primary);
  color: var(--vms-ui-primary);
  background: var(--vms-ui-subtle);
}
.nav-tabs.vms-view-tabs.is-bar .nav-link:focus-visible {
  outline: 2px solid var(--vms-ui-primary);
  outline-offset: -2px;
}

.form-control.vms-input-locked {
  background-color: var(--vms-ui-locked-bg);
  color: var(--vms-ui-locked-fg);
  cursor: not-allowed;
}
.form-control.vms-input-locked:focus {
  background-color: var(--vms-ui-locked-bg);
}

.table.vms-mini-table th {
  white-space: nowrap;
}
.table.vms-mini-table td.is-wide {
  min-width: var(--vms-mini-table-wide, 9rem);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .vms-select-touch.is-tablet .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch-target);
  }
  .vms-select-touch.is-tablet .select2-search--dropdown .select2-search__field {
    min-height: var(--vms-ui-touch-target);
  }
  .vms-select-touch.is-tablet .select2-results__option {
    display: flex;
    align-items: center;
    min-height: var(--vms-ui-touch-target);
  }
}
.table-striped tbody tr:nth-of-type(odd) td.vms-col-sticky {
  background: var(--vms-ui-row-stripe-bg);
}

.table-striped tbody tr.table-active td.vms-col-sticky {
  background: var(--vms-ui-row-active-bg);
}

.table-striped.table-hover tbody tr:hover td.vms-col-sticky {
  background: var(--vms-ui-subtle);
}

.table-striped.table-hover tbody tr.table-active:hover td.vms-col-sticky {
  background: var(--vms-ui-row-active-bg);
}

.vms-cell-tagged {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  max-width: 16rem;
  vertical-align: middle;
}
.vms-cell-tagged > .vms-cell-ellipsis {
  max-width: 100%;
}

.table.vms-data-table.is-child-wrap > tbody > tr.child {
  white-space: normal;
}

:root {
  --vms-ui-danger-soft-bg: #fdeaec;
  --vms-ui-danger-soft-line: #f5c2c7;
  --vms-ui-danger-soft-fg: #a71d2a;
}

.vms-taskbar.is-danger {
  border-left-color: var(--vms-ui-danger);
}

.vms-taskbar.is-danger .vms-taskbar-icon {
  background: var(--vms-ui-danger-soft-bg);
  color: var(--vms-ui-danger-soft-fg);
}

.vms-taskbar-icon.is-muted {
  background: var(--vms-ui-count-bg);
  color: var(--vms-ui-count-fg);
}

.alert.vms-alert-soft.is-danger {
  background: var(--vms-ui-danger-soft-bg);
  border-color: var(--vms-ui-danger-soft-line);
  color: var(--vms-ui-danger-soft-fg);
}

.vms-help-text {
  display: block;
  font-size: max(var(--vms-ui-font-min), 0.8rem);
  line-height: 1.35;
  color: var(--vms-ui-muted);
}
.vms-help-text:empty {
  display: none;
}

.vms-tone-success {
  color: var(--vms-ui-success-strong);
}

.vms-tone-warning {
  color: var(--vms-ui-warning-soft-fg);
}

.vms-tone-danger {
  color: var(--vms-ui-danger-soft-fg);
}

.vms-savebar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--vms-ui-line-soft);
  border-radius: 0 0 0.375rem 0.375rem;
  background: var(--vms-ui-surface);
  box-shadow: 0 -3px 10px var(--vms-ui-sticky-edge);
}

.vms-pick-list {
  max-height: var(--vms-pick-list-max, 20rem);
  overflow-y: auto;
}
.vms-pick-list > * {
  flex-shrink: 0;
}

.vms-pick-row.is-selected {
  background: var(--vms-ui-chip-bg);
  box-shadow: inset 3px 0 0 var(--vms-ui-primary);
}