body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", "Segoe UI", helvetica, verdana, sans-serif;
}

#content {
  height: calc(100vh - 85px);
}

.title {
  font-family: "Helvetica Neue", "Segoe UI", helvetica, verdana, sans-serif;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 23px;
  text-transform: uppercase;
  color: #707070;
}

.logo {
  display: flex;
  margin-right: 30px;
  flex-direction: column;
  justify-content: center;
}

.logo img {
  height: 80px;
}

#menu {
  height: 60px;
  background-color: #ff960c;
  color: white;
  padding: 0 20px 0 25px;
  display: flex;
  flex-direction: row;
}

#user-menu {
  margin-left: auto !important;
}

#menu > div {
  display: flex;
  align-items: center;
  height: 100%;
}

#menu .dx-menu-item {
  color: #fff;
}

#menu .dx-menu-horizontal {
  display: flex;
  height: 100%;
  margin-left: 100px;
}

#menu .dx-item-content.dx-menu-item-content {
  display: flex;
  align-items: center;
  padding: 0px 25px;
}

.dx-menu .dx-menu-item-has-text .dx-menu-item-text {
  padding: 0;
}

.menuSelected,
.menuSelected:hover {
  background: #fff;
  color: #232323 !important;
  height: 100%;
}

.dx-icon-edit {
  color: #2130bb !important;
}

.user-info {
  width: 100%;
}

.user-info-avatar {
  height: 36px;
  width: 36px;
  background-color: #ebebeb;
  border-radius: 50%;
}

.user-info-name {
  font-family: sans-serif;
  margin-right: 10px;
}

.content {
  padding: 25px 25px 0 25px;
}

.menu_upper {
  text-transform: uppercase;
}

.dx-menu-items-container {
  display: flex;
}

.dx-menu-item-wrapper {
  height: 100%;
}

.dx-menu-item {
  height: 100%;
}

#menu .dx-item-content.dx-menu-item-content {
  display: flex;
  align-items: center;
  padding: 0px 25px;
}

.dx-menu .dx-menu-item-has-text .dx-menu-item-text {
  padding: 0;
}

.popupButtonContainer {
  width: 100%;
  display: inline-flex;
  place-content: flex-start;
  margin-top: 25px;
}

.adminconfig {
  padding: 10px;
  float: left;
}

.adminconfigbutton {
  margin-top: 19px;
}

.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-alt)>td {
  background-color: #ffffff !important;
  color: #232323 !important;
}

.dx-datagrid-table .dx-data-row.dx-state-hover:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row)>td:not(.dx-focused) {
  background-color: #ffffff !important;
  color: #333 !important;
}

.dx-header-row {
  background: #999;
  color: white;
  font-weight: bold;
}

.dx-row .dx-data-row .dx-column-lines .dx-row-alt .dx-selection>td {
  background-color: #f5f5f5 !important;
}

.dx-datagrid .dx-link {
  color: #425563 !important;
}

.dx-datagrid .dx-link:hover {
  color: #6f6f6f !important;
}

.dx-datagrid-rowsview .dx-selection.dx-row:hover:not(.dx-row-alt)>td,
.dx-data-row:hover {
  background: #fdf3e8 !important;
}

.dx-data-row:hover .dx-selection>td,
.dx-data-row:hover>td {
  background: #fdf3e8 !important;
}

.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused)>td,
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused)>tr>td,
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover>td,
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover>tr>td {
  background: #f5f5f5;
}

.custom-dropdown .dx-item.dx-menu-item.dx-menu-item-has-text.dx-menu-item-has-submenu.dx-menu-item-expanded {
  background: #4b4b4b;
}

.custom-dropdown .dx-context-menu-container-border {
  border: none;
  box-shadow: none;
}

.dx-menu.custom-dropdown .dx-menu-item-has-text.dx-menu-item-has-submenu .dx-menu-item-text {
  padding-bottom: 0;
}

#dashboard-section-lookup {
  width: 300px;
  margin: 0 40px 40px 40px;
}

#dashboard-section-graph {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 40px 40px 0 40px;
}

#dashboard-section-graph .dashboard-graph {
  display: flex;
  flex-direction: column;
  min-width: 800px;
  margin: 0 20px 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fafafa;
}

#dashboard-section-graph .dashboard-graph>div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px 0;
  padding: 10px 15px;
  background-color: #ebebeb;
  border-radius: 5px;
  font-size: 18px;
}

#dashboard-section-graph .dashboard-graph-title {
  font-weight: bold;
}

.dx-list .dx-empty-message,
.dx-list-item {
  border-top: 1px solid transparent;
}

.dx-list .dx-empty-message,
.dx-list-item-content {
  padding: 10px;
}

custom-icon {
  display: inline-block;
  width: auto;
  height: 1em;
  width: 1em;
  margin: 0 0 0 8px;
}

custom-icon>img {
  width: 100%;
  height: 100%;
}

.dashboard-tooltip {
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.dashboard-tooltip>* {
  display: flex;
}

.dashboard-tooltip>*:first-child {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  margin: 0 10px 5px;
  justify-content: center;
}

.dashboard-tooltip custom-icon {
  margin: 0 5px 0 0;
  width: 15px;
  height: 15px;
}

.dashboard-graph-count {
  display: flex;
}

#datagrid {
  padding-top: 12px;
  padding-bottom: 12px;
}

#button-container {
  display: flex;
  justify-content: end;
}

.btn-case {
  padding-top: 10px;
  padding-right: 10px;
  padding-left: 10px;
}

.btn-main {
  display: flex;
  justify-content: end;
  padding-right: 10px;
  padding-left: 10px;
}

.w-100 {
  width: 100% !important;
}

.dx-command-select {
  width: 40px!important;
  min-width: 40px!important;
}

/* Administration view utility classes */
.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.p-10 {
  padding: 10px;
}

.font-bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

.text-read,
.text-red {
  color: #d9534f;
}

.card-5 {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.etk-btnmarginright {
  margin-right: 10px;
}

/* Loading View Styles */
.ongoingload-cardcontainer {
  display: flex;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}

.ongoingload-card {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  position: relative;
}

.ongoingload-cardtitle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff960c;
}

.ongoingload-cardtitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.ongoingload-cardnumbers {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.custom-card-pausedloading {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b6b;
  color: white;
  padding: 5px 15px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 12px;
  z-index: 10;
}

.loading-job-title-line {
  background-color: #f0f0f0 !important;
  font-weight: bold;
  cursor: pointer;
}

.loading-job-title-line:hover {
  background-color: #e0e0e0 !important;
}

.custom-highlight-title {
  background-color: #fff3cd !important;
  border-left: 4px solid #ff960c;
}

.custom-highlight-line {
  background-color: #fffaeb !important;
}

.loading-anomaly-line {
  background-color: #ffe6e6 !important;
}

.loading-anomaly-line td {
  background-color: #ffe6e6 !important;
}

.dx-row.loading-anomaly-line {
  background-color: #ffe6e6 !important;
}

.dx-row.loading-anomaly-line > td {
  background-color: #ffe6e6 !important;
}

.dx-data-row.loading-anomaly-line {
  background-color: #ffe6e6 !important;
}

.dx-data-row.loading-anomaly-line > td {
  background-color: #ffe6e6 !important;
}

.dx-datagrid-rowsview .dx-datagrid-content .custom-centeralign {
  text-align: center !important;
}

.custom-loadinglist-waspending {
  color: #6c757d;
  margin-right: 5px;
}

.custom-loadinglist-accessory {
  background-color: #17a2b8;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

.custom-loadinglist-manualload {
  color: #28a745;
  margin-right: 5px;
}

.custom-closejobicon {
  font-size: 18px;
}

.d-flex {
  display: flex;
}

.ctl-valign-center {
  align-items: center;
}

.h-100 {
  height: 100%;
}

.w-100 {
  width: 100%;
}

/* Loading View - Simplified Layout */
#verification-view-container {
  width: 100%;
  height: calc(100vh - 100px);
  padding: 20px;
}

.verification-selector-container {
  margin-bottom: 20px;
}

#verification-transaction-selector {
  max-width: 500px;
}

.verification-skid-status {
  background-color: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.verification-skid-status-content {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
}

.verification-skid-label {
  font-weight: 600;
  color: #495057;
}

.verification-skid-epc {
  font-family: 'Courier New', monospace;
  font-weight: 500;
  color: #212529;
  background-color: #f8f9fa;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.verification-skid-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.verification-skid-detected {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #a3cfbb;
}

.verification-skid-undetected {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.verification-grid-container {
  display: flex;
  gap: 20px;
  width: 100%;
  height: calc(100% - 140px);
}

.verification-grid-left,
.verification-grid-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.verification-card-title {
  font-size: 18px;
  font-weight: 600;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.verification-skid-row {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
  cursor: pointer !important;
}

.verification-skid-row td {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
}

.verification-skid-row:hover {
  background-color: #e0e0e0 !important;
}

.verification-skid-row:hover td {
  background-color: #e0e0e0 !important;
}

.verification-undetected-transaction {
  background-color: #f8d7da !important;
}

.verification-undetected-transaction td {
  background-color: #f8d7da !important;
}

.verification-skid-row.verification-undetected-transaction {
  background-color: #f8d7da !important;
}

.verification-skid-row.verification-undetected-transaction td {
  background-color: #f8d7da !important;
}

.verification-skid-row.verification-undetected-transaction:hover {
  background-color: #f5c2c7 !important;
}

.verification-skid-row.verification-undetected-transaction:hover td {
  background-color: #f5c2c7 !important;
}

.verification-masterpack-row {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
}

.verification-masterpack-row td {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
}

.verification-masterpack-row:hover {
  background-color: #e0e0e0 !important;
}

.verification-masterpack-row:hover td {
  background-color: #e0e0e0 !important;
}

.verification-masterpack-row.verification-undetected-transaction {
  background-color: #f8d7da !important;
}

.verification-masterpack-row.verification-undetected-transaction td {
  background-color: #f8d7da !important;
}

.verification-masterpack-row.verification-undetected-transaction:hover {
  background-color: #f5c2c7 !important;
}

.verification-masterpack-row.verification-undetected-transaction:hover td {
  background-color: #f5c2c7 !important;
}

.verification-product-row {
  padding-left: 20px;
}

.verification-product-row td {
  padding-left: 20px;
}

.verification-product-row.verification-undetected-transaction {
  background-color: #f8d7da !important;
}

.verification-product-row.verification-undetected-transaction td {
  background-color: #f8d7da !important;
}

.verification-product-row.verification-undetected-transaction:hover {
  background-color: #f5c2c7 !important;
}

.verification-product-row.verification-undetected-transaction:hover td {
  background-color: #f5c2c7 !important;
}

/* Orphaned items - red background for items that are detected but their parent is not (or vice versa) */
.verification-orphaned-item {
  background-color: #f8d7da !important;
}

.verification-orphaned-item td {
  background-color: #f8d7da !important;
}

/* Icon display fixes for verification view */
#verification-undetected-grid .dx-treelist-text-content,
#verification-detected-grid .dx-treelist-text-content {
  line-height: normal !important;
  padding: 8px 0 !important;
}

#verification-undetected-grid td,
#verification-detected-grid td {
  vertical-align: middle !important;
  padding: 8px !important;
  line-height: 1.5 !important;
}

#verification-undetected-grid .dx-treelist-cell-expandable,
#verification-detected-grid .dx-treelist-cell-expandable {
  vertical-align: middle !important;
}

/* Icon column styling - align with text baseline */
#verification-undetected-grid tbody td:first-child,
#verification-detected-grid tbody td:first-child {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0px 0px !important;
}

#verification-undetected-grid tbody td:first-child i,
#verification-detected-grid tbody td:first-child i {
  vertical-align: middle !important;
  line-height: 1.5 !important;
  display: inline-block !important;
}

.verification-orphaned-item:hover {
  background-color: #f5c2c7 !important;
}

.verification-orphaned-item:hover td {
  background-color: #f5c2c7 !important;
}

#language-switcher:hover {
  background-color: rgba(0,0,0,.04);
  cursor: pointer;
}

#msal-button .dx-button-content {
  margin: 0;
  height: 200px;;
  width: 200px;
  background-image: url(/images/logo.png);
  background-size: 100px;
  background-repeat: no-repeat;
  background-position: center center;
  font-weight: bold;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: end;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
}

#msal-button-hint {
  font-size: 14px;
  font-family: sans-serif;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
}

#msal-button-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
}

#msal-container {
  background-color: white;
  background-image: url(/images/logo.png), linear-gradient(white, white); 
  background-size: 250px, cover;
  background-position: top 50px center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  bottom: +10;
  height: 100%;
}
.absolute { position: absolute; }
.bottom-0 { bottom: 0; }
.right-0 { right: 0; }
.z-2000 { z-index: 2000; }

.p-10 { padding: 10px; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.justify-end { justify-content: end; }
.bg-earth-light { background: #d9534f21 !important; }
.bg-blue-light { background-color: #337ab72b !important;}
.bg-green-light { background-color: #5cb85c80 !important; }
