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;
}

.btn-print-all {
  background-color: #d9534f;
  border-color: #d43f3a;
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  font-weight: 600;
}

.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 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 .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-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: 108px;
  max-width: 108px;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.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-table .moving-col-received,
  .moving-table .moving-col-route,
  .moving-table .moving-col-notes {
    width: auto;
    min-width: 80px;
  }

  .moving-table .moving-col-assign {
    width: 100px;
    max-width: 100px;
  }

  .moving-table .moving-col-status {
    width: 84px;
    max-width: 84px;
  }

  .moving-table .moving-col-created,
  .moving-table .moving-col-delivery {
    width: 104px;
    max-width: 104px;
  }

  .moving-table .moving-col-action {
    width: 64px;
    max-width: 64px;
  }
}
