:root {
  --sidebar-width-open: 270px;
  --icon-size: 24px;
  --status-font-size: 12px;
  --header-height: 40px;
  --sidebar-width-closed: 70px;
  --order-received-color: #4169e1;
  --stock-allocated-color: #20b2aa;
  --pick-in-progress-color: #40e0d0;
  --picked-color: #ff8c00;
  --delivered-color: #32cd32;
  --order-received-bg: rgba(65, 105, 225, 0.3);
  --stock-allocated-bg: rgba(32, 178, 170, 0.3);
  --pick-in-progress-bg: rgba(64, 224, 208, 0.3);
  --picked-bg: rgba(255, 140, 0, 0.3);
  --delivered-bg: rgba(50, 205, 50, 0.3);
}
.vdh-red {
  --vdh-background-color: #e02024;
  --vdh-background-color-hover: #b61d22;
}

.select2 {
  min-width: 80%;
  max-width: 100%;
}

.vdh-orange {
  --vdh-background-color: #f4811f;
  --vdh-background-color-hover: #db5325e2;
}

.vdh-blue {
  --vdh-background-color: #00aeef;
  --vdh-background-color-hover: #0072b5;
}

.vdh-red,
.vdh-orange,
.vdh-blue {
  background-color: var(--vdh-background-color);
  color: white;
}

.vdh-red:hover,
.vdh-orange:hover,
.vdh-blue:hover {
  background-color: var(--vdh-background-color-hover);
  color: white;
}
td {
  vertical-align: middle !important;
}
/* Custom colors for statuses */
td.status button {
  color: #4169e1;
  background-color: rgb(230, 230, 250, 0.3);
  font-size: var(--status-font-size);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}
td.status button.order-received,
button.waiting-booking,
button.planned {
  color: var(--order-received-color) !important;
  background-color: var(--order-received-bg) !important;
}
td.status button.stock-allocated {
  color: var(--stock-allocated-color);
  background-color: var(--stock-allocated-bg);
}
td.status button.pick-in-progress,
button.expected,
button.open {
  color: var(--pick-in-progress-color) !important;
  background-color: var(--pick-in-progress-bg) !important;
}
td.status button.picked,
button.departured,
button.closed {
  color: var(--picked-color) !important;
  background-color: var(--picked-bg) !important;
}
td.status button.delivered,
button.arrived,
button.executed {
  color: var(--delivered-color) !important;
  background-color: var(--delivered-bg) !important;
}
button.canceled {
  color: #ff4d47 !important;
  background-color: #ffe4e1 !important;
}
.order-received,
.waiting-booking,
.pending,
.planned {
  color: var(--order-received-color);
}
.stock-allocated {
  color: var(--stock-allocated-color);
}
.pick-in-progress,
.expected,
.open {
  color: var(--pick-in-progress-color);
}
.picked,
.departured,
.closed {
  color: var(--picked-color);
}
.delivered,
.arrived,
.resolved,
.executed {
  color: var(--delivered-color);
}
.order-received-bg {
  background-color: var(--order-received-color);
}
.stock-allocated-bg {
  background-color: var(--stock-allocated-color);
}
.pick-in-progress-bg {
  background-color: var(--pick-in-progress-color);
}
.picked-bg {
  background-color: var(--picked-color);
}
.delivered-bg {
  background-color: var(--delivered-color);
}
/* Open sidebar styles */
.sidebar-open {
  height: calc(100vh - 32px);
  width: var(--sidebar-width-open);
}
.sidebar-open .nav-link-collapsed {
  display: none;
}
.sidebar-open .nav-link-l1 {
  display: block;
}
.sidebar-open .off-canvas-button {
  z-index: 9999;
  left: calc(var(--sidebar-width-open) - 12px);
  bottom: 175px;
  width: 25px;
}

.sidebar-open .logo-image-collapsed {
  display: none;
}
.sidebar-open .portal-icon {
  display: none;
}
.nav-link.nav-link-l1.d-flex {
  padding-right: 16px;
}
.nav-item.hasmenu.active .ph-caret-down {
  display: none !important;
}
.nav-item.hasmenu.active .ph-caret-up {
  display: inline !important;
}
.nav-item.hasmenu .ph-caret-up {
  display: none !important;
}
.nav-link.nav-link-l1 i {
  font-size: 18px;
}

/* Closed sidebar styles */
.sidebar-closed {
  height: calc(100vh - 32px);
  width: var(--sidebar-width-closed);
}
.sidebar-closed .logo-image-collapsed {
  display: inline;
  margin-bottom: 2rem;
  margin-top: 1rem;
}
.sidebar-closed .portal-dropdown {
  width: calc(var(--sidebar-width-closed)-24px);
  padding-right: 6px;
}
.sidebar-closed .dropdown-menu {
  width: calc(var(--sidebar-width-closed)-24px) !important;
  padding-right: 6px;
  min-width: 0 !important;
}
.sidebar-closed .btn {
  padding-left: 6px;
}
.sidebar-closed .ph-caret-down {
  font-size: 12px !important;
}
.sidebar-closed .portal-name {
  display: none;
}
.sidebar-closed .portal-icon {
  display: inline;
  font-size: 20px;
}
.sidebar-closed .nav-link-collapsed {
  display: inline-block;
  padding-left: 0.5rem !important;
}
.sidebar-closed .nav-link-l1 {
  display: none !important;
}

.sidebar-closed .sub-menu .nav-link {
  display: none !important;
}
.sidebar-closed .logo {
  display: none;
}
.content-full {
  width: calc(100% - var(--sidebar-width-closed));
}
.content-collapsed {
  width: calc(100% - var(--sidebar-width-open));
}
/* Icon box modification for fontawesome migrations */
.main .page-header {
  height: var(--header-height);
  vertical-align: middle !important;
}
.main .page-header .icon-box {
  padding-top: 6px;
  color: #33ace4;
  text-align: center;
  padding-left: 0px;
}
.btn-toolbar {
  height: var(--header-height);
}
.sidebar-closed .off-canvas-button {
  z-index: 9999;
  left: calc(var(--sidebar-width-closed) - 12px);
  bottom: 175px;
  width: 25px;
}

.card-bell {
  width: 40px;
  height: 40px;
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  letter-spacing: 0.14px;
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  -webkit-box-ordinal-group: 1;
  -ms-flex-order: 0;
  order: 0;
  -ms-flex-item-align: stretch;
  align-self: stretch;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  border-radius: 64px;
}
.card-bell i {
  font-size: 25px;
}
.card-bell button {
  padding-top: 2px;
  border: none;
}
.card-bell .bell-counter {
  position: absolute;
  top: 2px;
  left: 15px;
  font-size: 10px;
}
.card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #33ace4;
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  letter-spacing: 0.14px;
  color: #fff;
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  -webkit-box-ordinal-group: 1;
  -ms-flex-order: 0;
  order: 0;
  -ms-flex-item-align: stretch;
  align-self: stretch;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  border-radius: 64px;
}
.card-icon:hover {
  background-color: #33ace4;
}
.htmx-settling {
  opacity: 0;
}
.htmx-indicator.htmx-request {
  display: block !important;
  z-index: 1 !important;
}
.htmx-indicator {
  display: none;
  z-index: -1;
  transition: opacity 400ms ease-in;
}

.page-content {
  min-height: calc(100vh - 102px);
}
.table-content {
  max-height: calc(100vh - 102px - 200px);
}
.table-content-full {
  max-height: calc(100vh - 202px);
}
.ph-fill {
  font-size: var(--icon-size);
}
.page-search-header {
  padding-bottom: 16px;
}
.summary-card {
  padding: 16px 24px 16px 24px;
  border-radius: 16px;
  margin: 8px 0px 8px 0px;
}

.summary-card:hover {
  cursor: pointer;
}

.summary-card.active {
  border-color: rgb(31, 167, 226);
  border-width: 1px;
}

.summary-status {
  font-size: 16px;
}
.summary-status .fa-circle {
  padding-right: 5px;
}
.summary-numbers {
  font-size: 20px;
}
.summary-numbers span {
  padding-right: 8px;
}

.sorters .active {
  color: #009de1;
}
.sorters .inactive {
  color: #bdc2c8;
}
.pagination {
  padding: 16px 0px 0px 0px;
}
.back-button {
  padding: 0px;
  font-size: 24px;
}
.back-button i {
  padding-right: 16px;
}
legend {
  font-size: 20px;
}
fieldset {
  padding: 12px 0px 12px 0px;
}
.order-items-summary th {
  border-bottom: none;
  font-size: 16px;
}
.orders-without-summary {
  min-height: calc(100vh - 216px);
}
.notification-card {
  border-radius: 16px;
  padding: 12px;
}
.notification-card .relation-code {
  margin: 0px;
  font-size: 16px;
}
.notification-card .relation-name {
  margin: 0px;
  opacity: 60%;
  font-size: 14px;
}
.notification-card .notification-time {
  margin: 0px;
  opacity: 25%;
  font-size: 12px;
}
.table-notifications tr {
  margin: 12px 0px 12px 0px !important;
}

.portal-dropdown {
  width: 90%;
  padding-top: 24px;
  padding-bottom: 24px;
}

.sidebar .sub-menu {
  padding-left: 0px !important;
}

.ec-event {
  border-radius: 5px !important;
  border: 3px solid !important;
}

.outline-load {
  border: 2px solid #33ace4 !important;
  border-radius: 5px;
}
.outline-unload {
  border: 2px solid #ff6347 !important;
  border-radius: 5px;
}
.outline-load.selected {
  border: 5px solid #33ace4;
  background-color: #f0f8ff;
}
.outline-unload.selected {
  border: 5px solid #ff6347;
  background-color: #ffe4e1;
}

.ec-toolbar {
  display: none !important;
}

.modal-body p {
  margin-bottom: 0.3rem;
}
/* Chrome, Safari, Edge, Opera */
input.no-arrows::-webkit-outer-spin-button,
input.no-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.no-arrows[type="number"] {
  -moz-appearance: textfield;
}

.ticket-item:hover {
  cursor: pointer;
}

.jss_worksheet > thead > tr > td {
  text-align: left !important;
}
.jss_worksheet > tbody > tr > td {
  text-align: left !important;
}
.jss_worksheet > tfoot > tr > td {
  text-align: left !important;
}

