body,
.main-content,
.main-content table,
.main-content th,
.main-content td,
.main-content .form-select,
.main-content .btn {
  font-family: "Nunito", sans-serif;
}

.summary-table {
  margin: 0;
  font-size: 12px;
}

.summary-table th,
.summary-table td {
  text-align: center;
  vertical-align: middle;
  padding: 6px 4px;
  border-color: #dee2e6 !important;
}

.summary-table .time-col {
  text-align: left;
  font-weight: 600;
  background: #f8f9fa;
  white-space: nowrap;
  padding-left: 12px !important;
}

.summary-table .region-header,
.summary-table .sub-header,
.summary-table .main-region {
  font-size: 11px;
  font-weight: 600;
  background: #f8f9fa;
}

.summary-table .main-region {
  font-weight: 700;
}

.text-order-highlight {
  color: #e67e00;
  font-weight: 700;
}

.text-box-highlight {
  color: #dc3545;
  font-weight: 700;
}

.summary-header-row {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0;
}

.summary-header-row .summary-tabs {
  border-bottom: 0;
}

.date-toolbar {
  padding-bottom: 8px;
}

.date-toolbar .date-input {
  width: 160px;
  font-size: 13px;
  background-color: #f3f6ff;
  border-top: 1px solid #ced4da;
  border-left: 1px solid #ced4da;
  border-right: 1px solid #ced4da;
  border-bottom: 2px solid #93a5ff;
  border-radius: 0;
  cursor: pointer;
}

.logistic-panel .toolbar-title {
  font-weight: 700;
}

.purple-border:focus {
  border-color: #93a5ff !important;
  border-bottom-color: #6782e5 !important;
  box-shadow: none;
}

.btn-success,
.btn-go {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
  font-size: 13px;
  padding: 4px 16px;
  font-weight: 600;
  min-width: 72px;
}

.btn-success:hover,
.btn-success:focus,
.btn-go:hover,
.btn-go:focus {
  background-color: #157347;
  border-color: #146c43;
  color: #fff;
}

.order-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
}

.order-tabs .nav-link {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-weight: 700;
  padding: 6px 14px;
}

.order-tabs .nav-link.active {
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 4px rgba(55, 72, 140, 0.12);
}

.moving-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.moving-company-tabs,
.moving-delivery-tabs,
.moving-assign-tabs {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.moving-company-count {
  margin-left: 6px;
  color: #64748b;
  font-weight: 600;
}

.btn-print-all {
  background-color: #d9534f;
  border-color: #d43f3a;
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  font-weight: 600;
  border-radius: 8px;
}

.btn-print-all:hover,
.btn-print-all:focus {
  background-color: #c9302c;
  border-color: #ac2925;
  color: #fff;
}

.todo-table-wrap {
  overflow-x: auto;
}

.todo-table {
  margin: 0;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.todo-table th {
  background: #f8f9fa;
  font-weight: 700;
  padding: 8px 10px;
  border-color: #dee2e6 !important;
  vertical-align: middle;
}

.todo-table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-color: #dee2e6 !important;
}

.todo-table .nowrap-cell {
  white-space: nowrap;
}

.todo-table .col-no {
  width: 36px;
  max-width: 36px;
  text-align: center;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.todo-table th.col-print,
.todo-table td.col-print {
  width: 44px;
  max-width: 44px;
  text-align: center;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.todo-table th.col-icon,
.todo-table td.col-icon {
  width: 36px;
  max-width: 36px;
  text-align: center;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.todo-table .icon-small.icons-white {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
  border: 1px solid #dfe3e7;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.todo-table .icon-small.icons-white.icon-print,
.todo-table .icon-small.icons-white.icon-view {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.todo-table .icon-small.icons-white:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.10),
    inset 0 2px 3px rgba(0, 0, 0, 0.12);
}

.todo-table .icon-small.icons-white.icon-print:active,
.todo-table .icon-small.icons-white.icon-view:active {
  transform: none;
  box-shadow: none;
}

.todo-table .icons-bg-black,
.todo-table .icons-white-color {
  filter: invert(14%) sepia(7%) saturate(726%) hue-rotate(314deg) brightness(97%) contrast(88%);
}

.todo-table .icon-image {
  width: 20px;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

.todo-table th.col-no {
  width: 36px;
}

.todo-table .address-cell,
.todo-table .customer-cell,
.todo-table .qty-cell,
.todo-table .order-id-cell,
.todo-table .time-cell {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.35;
}

.todo-table th.customer-col {
  width: 140px;
}

.todo-table .order-id-cell {
  max-width: 90px;
  width: 90px;
}

.todo-table th.order-id-col {
  width: 90px;
}

.todo-table .time-cell {
  max-width: 85px;
  width: 85px;
}

.todo-table th.time-col {
  width: 85px;
}

.todo-table .address-cell {
  max-width: 220px;
  width: 220px;
}

.todo-table .address-set-loc {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #4f63c7;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.todo-table .address-set-loc:hover {
  color: #3730a3;
}

.todo-table .address-set-loc i {
  font-size: 0.85em;
}

.order-location-search {
  z-index: 2;
}

.pac-container {
  z-index: 2000 !important;
}

.order-location-map {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  background: #eef2ff;
}

.order-location-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 8px 0 0;
}

.order-location-coords {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 4px;
}

.todo-table th.address-col {
  width: 220px;
}

.todo-table th.qty-col {
  width: 200px;
}

.todo-table .qty-cell {
  max-width: 200px;
  width: 200px;
}

.todo-table .order-link {
  color: #0d6efd;
  text-decoration: none;
}

.todo-table .order-link:hover {
  text-decoration: underline;
}

.todo-table .form-select {
  font-size: 12px;
  min-width: 110px;
}

.todo-table th.col-assign,
.todo-table td.col-assign {
  min-width: 128px;
  white-space: normal;
  vertical-align: top;
}

.todo-table .assign-name {
  display: inline-block;
  min-height: 31px;
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.todo-table .badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  line-height: 1.2;
}

.btn-assign {
  font-size: 12px;
  padding: 3px 12px;
  border: 0;
  color: #111;
  background: #f8f9fa;
}

.btn-assign:hover {
  background: #eef1f4;
}

.btn-assign.assigned {
  background: #198754;
  color: #fff;
}

.btn-assign.assigned:hover {
  background: #157347;
}

.btn-assign.btn-assign-reco {
  background: #2563eb;
  color: #fff;
}

.btn-assign.btn-assign-reco:hover {
  background: #1d4ed8;
}

.todolist-reco-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.todolist-reco-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.todolist-reco-copy strong {
  font-size: 0.92rem;
  color: #1e3a8a;
}

.todolist-reco-copy span {
  font-size: 0.82rem;
  color: #334155;
}

.todolist-reco-hint {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.25;
}

.todolist-reco-bar .btn-reco-all {
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 12px;
}

.todolist-reco-bar .btn-reco-all:disabled {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 1;
}

.todo-table tr.is-reco td {
  background: #f8fbff;
}

.todo-table tr.is-work-focus td {
  background: #fff7ed;
}

.btn-print-row {
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  border: 0;
  background: transparent;
  line-height: 1;
  box-shadow: none;
}

.btn-print-row i {
  font-size: 18px;
  font-weight: 800;
}

.btn-print-row:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-print-row:focus,
.btn-print-row:active {
  outline: none;
  box-shadow: none;
}

.todo-table tfoot td {
  border-color: #dee2e6 !important;
  background: #fff;
  padding: 10px 16px;
}

.todo-table-footer {
  border-top: 1px solid #dee2e6 !important;
}

.todo-footer-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
}

.table.no-margin {
  margin-bottom: 0;
}

.box-body {
  padding-top: 12px;
}

/* Stock Moving table layout */
.moving-table {
  table-layout: fixed;
}

.moving-table .moving-col-received {
  width: 11%;
  min-width: 96px;
}

.moving-table .moving-col-route {
  width: 13%;
  min-width: 108px;
}

.moving-table .moving-col-product {
  width: auto;
  min-width: 120px;
}

.moving-table .moving-cell-wrap {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  line-height: 1.4;
}

.moving-table .moving-cell-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moving-table .moving-col-notes {
  width: 16%;
  min-width: 88px;
}

.moving-table .moving-col-assign {
  width: 120px;
  max-width: 132px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  white-space: normal;
  vertical-align: top;
}

.moving-table .moving-col-status {
  width: 92px;
  max-width: 92px;
  text-align: right;
  padding-left: 4px !important;
  padding-right: 8px !important;
}

.moving-table .moving-col-created {
  width: 118px;
  max-width: 118px;
  text-align: right;
  padding-left: 4px !important;
  padding-right: 8px !important;
  white-space: nowrap;
  font-size: 11px;
}

.moving-table .moving-col-delivery {
  width: 118px;
  max-width: 118px;
  text-align: right;
  padding-left: 4px !important;
  padding-right: 8px !important;
  white-space: nowrap;
  font-size: 11px;
}

.moving-table th.moving-col-created,
.moving-table th.moving-col-delivery {
  text-align: right;
}

.moving-table .moving-col-action {
  width: 68px;
  max-width: 68px;
  text-align: right;
  padding-left: 4px !important;
  padding-right: 6px !important;
}

.moving-table th.moving-col-status,
.moving-table th.moving-col-action {
  text-align: right;
}

.moving-table .moving-col-status .badge {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 10px;
  padding: 4px 6px;
}

.moving-table .moving-col-action .btn-assign {
  min-width: 0;
  padding: 3px 8px;
  font-size: 11px;
}

.moving-table .moving-assign-select {
  min-width: 0;
  width: 100%;
  padding: 2px 24px 2px 6px;
  font-size: 11px;
}

.moving-table th.col-print,
.moving-table td.col-print {
  width: 42px;
  max-width: 42px;
}

@media (max-width: 991.98px) {
  .moving-company-tabs,
  .moving-delivery-tabs,
  .moving-assign-tabs {
    width: 100%;
  }

  .moving-company-tabs .nav-item,
  .moving-delivery-tabs .nav-item,
  .moving-assign-tabs .nav-item {
    flex: 1 1 0;
  }

  .moving-company-tabs .nav-link,
  .moving-delivery-tabs .nav-link,
  .moving-assign-tabs .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .box-body:has(.moving-table) {
    max-width: 100%;
    min-width: 0;
  }

  .box-body > .table-responsive:has(.moving-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .moving-table {
    width: 1260px;
    min-width: 1260px;
    max-width: none;
    table-layout: fixed;
  }

  .moving-table .col-no {
    width: 36px;
  }

  .moving-table .moving-col-received {
    width: 130px;
    min-width: 130px;
  }

  .moving-table .moving-col-route {
    width: 160px;
    min-width: 160px;
  }

  .moving-table .moving-col-product {
    width: 240px;
    min-width: 240px;
  }

  .moving-table .moving-col-notes {
    width: 150px;
    min-width: 150px;
  }

  .moving-table .moving-col-assign {
    width: 132px;
    max-width: 132px;
  }

  .box-body:has(.todo-table-wrap) {
    max-width: 100%;
    min-width: 0;
  }

  .box-body > .todo-table-wrap {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #listPanel .todo-table {
    width: 1560px;
    min-width: 1560px;
    max-width: none;
    table-layout: fixed;
  }

  #listPanel .todo-table .col-no {
    width: 40px;
    max-width: 40px;
  }

  #listPanel .todo-table .branch-col {
    width: 150px;
  }

  #listPanel .todo-table .order-id-col,
  #listPanel .todo-table .order-id-cell {
    width: 100px;
    max-width: 100px;
  }

  #listPanel .todo-table .area-col {
    width: 120px;
  }

  #listPanel .todo-table th.customer-col,
  #listPanel .todo-table .customer-cell {
    width: 150px;
    max-width: 150px;
  }

  #listPanel .todo-table th.address-col,
  #listPanel .todo-table .address-cell {
    width: 220px;
    max-width: 220px;
  }

  #listPanel .todo-table th.qty-col,
  #listPanel .todo-table .qty-cell {
    width: 200px;
    max-width: 200px;
  }

  #listPanel .todo-table th.time-col,
  #listPanel .todo-table .time-cell {
    width: 90px;
    max-width: 90px;
  }

  #listPanel .todo-table .total-col {
    width: 100px;
  }

  #listPanel .todo-table th.col-assign,
  #listPanel .todo-table td.col-assign {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  #listPanel .todo-table .status-col {
    width: 90px;
  }

  #listPanel .todo-table .col-action {
    width: 92px;
  }

  #listPanel .todo-table th.col-print,
  #listPanel .todo-table td.col-print {
    width: 48px;
    max-width: 48px;
  }

  #listPanel .todo-table .nowrap-cell:not(.col-action):not(.col-print):not(.col-no) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #listPanel .todo-footer-summary {
    position: sticky;
    left: 12px;
    justify-content: flex-start;
    width: max-content;
    max-width: calc(100vw - 48px);
  }
}

.todolist-reco-list {
  padding: 0;
}

.todolist-reco-list a.ops-reco-action-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (min-width: 1200px) {
  .todolist-reco-list {
    grid-template-columns: 1fr 1fr;
  }

  .todolist-reco-list .ops-reco-summary {
    grid-column: 1 / -1;
  }
}
