/* @import './_resets.css';
@import './globals.css';
@import './_typography.css';
@import './_buttons.css';
@import './_card.css';
@import './_accordion.css';
@import './_table.css';
@import './_shipment-card.css';
@import './_sidebar.css';
@import './table-configure-modal.css'; */
@import './_inputs.css';
@import './_dialog.component.css' layer(dialog);
@import './_carton-lines.component.css?v=1';
@import "./components/p-header.css" layer(top-header);
@import "./components/p-config-modal.css" layer(config-modal);
@import "./components/transfer-list.css" layer(transfer-list);

@import "./animations/animations.generic.css" layer(animations);
@import "./components/file-uploader.css";

@view-transition {
  navigation: auto;
}

body {
  background: var(--navigation-colors-dashboard-bg, #f8f8f8);
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
  cursor: not-allowed;
}

.app {
  display: flex;
  background: transparent;
  height: 100dvh;
  overflow: hidden;
}

.content {
  outline: none !important;
  padding: 16px;
  max-height: calc(100vh - var(--top-nav-height));
  overflow-y: auto;
}

.content-wrapper {
  display: contents;
  padding: 16px;
  margin: 0 !important;
  width: 100%;
  z-index: 1;
}

.content-wrapper .grid {
  padding: 0;
}

p-config-modal {
  isolation: isolate;
  z-index: var(--z-context-menu);
}

p-config-modal .backdrop {
  position: fixed;
  width: 100vw;
  height: 100vh;
  inset: 0;
  z-index: 0;
}


/* TOP NAVIGATION */

p-header {
  --header-padding: 20px;
  --header-bg: #eaeaea;

  position: relative;
  display: grid;
  height: var(--top-nav-height);
  width: 100%;

  height: var(--top-nav-height);
  max-height: var(--top-nav-height, 46px);
  overflow: hidden;

  background: var(--header-bg) !important;

  grid-template-columns: var(--header-padding) [left] 1fr [center] 1fr [right] 1fr var(--header-padding);
  
  align-items: center;
  align-self: stretch;

  &:has(.banner-container) {
    --top-nav-height: calc(var(--banner-height) + var(--default-top-nav-height));
    grid-auto-flow: column;
    grid-template-rows: auto 1fr;
  }


  /* !!NOTE: If header doesn't have the left slot, pageTitle is hidden or left is empty then we use the banner as pseudo background image */
  &:has(#pageTitle[hidden], .left:empty), &:not(:has(.left)) {
    /* --top-nav-height: var(--default-top-nav-height);
    --banner-height: var(--default-top-nav-height); */

    &:has(.banner-container) {
      --top-nav-height: var(--banner-height);
    }

    .banner-container {
      position: absolute;
      inset: 0;
      z-index: 0;

      img {
        scale: 1;
        z-index: 2;
      }

      &::after {
        content: '';
        position: absolute;
        inset: 0;

        background-image: linear-gradient(to right, transparent 50%, var(--header-bg));
        z-index: 2;
      }
    }
  }

  .banner-container {
    position: relative;
    grid-column: -1 / 1;
    height: var(--banner-height);
    overflow: hidden;

    img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  :is(.left, .center, .right) {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: calc(var(--gap-small));
    width: max-content;
    grid-row: 2;
    z-index: 10;
  }

  .left {
    grid-column: left;
    justify-content: flex-start;
    justify-self: flex-start;
  }

  .center {
    grid-column: center;
    place-content: center;
    width: 100%;
  }

  .right {
    grid-column: right;
    justify-content: flex-end;
    justify-self: flex-end;
  }

  p-select {
    display: block;
    background-color: var(--color-white, #fff);
    overflow: hidden;
    border-radius: 6px;

    &:focus-within {
      outline: 1px solid var(--color-brand-accent);
      box-shadow: 0 2px 8px rgba( 0 0 0 / .025);
    }
    
    & input#searchInput {
      width: 300px;
    }
  }
  
}


.btn {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
}

.product-navigation {
  overflow-y: auto;
  padding-top: 16px;
}

.form-footer .card {
  height: auto;
}

.config-modal {
  --config-x: 200px;
  --config-y: 200px;
  width: var(--config-modal-width, 300px);
  position: fixed;
  display: block;
  top: var(--config-y);
  left: calc(var(--config-x));
  /*  transform: var(--transform, translate(-50%, 1.2em));*/
  /*    transform: translateX(-50%);*/
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: none;
}

.config-modal--active {
  display: block;
}

.config-modal--filter {
  width: max-content;
  max-height: 60vh;
}

.config-modal--filter i {
  display: none;
}

.config-modal--filter select {
  width: 100%;
}

.config-modal {
  width: var(--config-modal-width, 260px);
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
  border-radius: 2px;
  border: 1px solid var(--grey-100, #eaeaea);
  background: #fff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.config-modal:empty {
  display: none;
}

.config-modal>*:not(.toggle-list) {
  padding: 0px var(--padding-modal-right-left-padding, 16px);
}

.config-modal--filter .config-modal {
  --config-modal-width: 500px;
  overflow: hidden;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
}

.config-modal form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: column;
  gap: var(--gap-small);
  padding: 0 !important;
  margin: 0;
}

.config-modal--filter :is(.list-item) {
  padding: 0 !important;
  grid-column: span 2;
  background: transparent !important;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}

.config-modal--filter :is(input, select) {
  width: 100%;
  background: var(--dashboard-bg);
  border: 1px solid rgb(0 0 0 / 0.1);
  grid-column: span 5;
  height: 2.5em;
  padding: 2px;
}

.config-modal--filter button {
  flex-basis: 40%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-content: center;
}

.config-modal--filter .icon-button {
  grid-column: span 1;
  height: 100%;
  width: 100%;
  margin: auto !important;
  justify-content: center;
  color: var(--color-grey-400);
  opacity: 0;
  pointer-events: none;
}

.config-modal--filter :is(label, label + *) {
  grid-column: span 5;
  width: 100%;
  background: var(--dashboard-bg);
  border: 1px solid rgb(0 0 0 / 0.1);
  height: 2.5em;
  padding: 6px;
  border-radius: 2px;
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dynamic-config-modal {
  display: block;
  opacity: 1;
  pointer-events: all;
  /*  translate: 0 1em;*/
  z-index: 12 !important;
  isolation: isolate;
}

p-config-modal .search-wrapper {
  display: none;
}

p-config-modal[data-cell-options] {
  --config-modal-width: max-content;
  padding: 0.5em;
  position: fixed;
}

/* p-config-modal[data-cell-options] .icon {
  display: none;
} */
p-config-modal[data-cell-options] .search-wrapper {
  display: block;
  border-radius: 4px;
  min-width: 120px;
  width: -webkit-fill-available;
  width: -moz-available;
}

p-config-modal[data-cell-options] .dynamic-config-modal {
  padding: 0.25em;
}

p-config-modal[data-cell-options] .search-wrapper::before {
  display: none !important;
}

p-config-modal[data-cell-options] .search-input {
  width: 100%;
  margin-left: 0;
  transform: none;
  left: 0;
}

p-config-modal[data-cell-options] .search-wrapper::after {
  content: '\E089';
  font-family: 'prompt-icons';
  position: absolute;
  right: 1em;
  font-size: 16px;
  color: var(--gray-600);
  z-index: 1;
  pointer-events: none;
}

.app:has([data-config-target]) .dynamic-config-modal {
  opacity: 1;
  pointer-events: all;
  translate: 0 0;
}

.config-modal-form-footer {
  padding: 0 3em;
  display: flex;
  width: 100%;
  grid-column: -1 / 1;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: rgb(255 255 255 / 0.2);
}

.config-modal-form-footer>* {
  display: flex;
  flex: 1;
  width: 100%;
  margin: 0;
}


.product-navigation {
  overflow-y: auto;
  padding-top: 16px;
}

.form-footer .card {
  height: auto;
}

section {
  padding-bottom: 0;
}

.grid {
  --spacing: var(--gap-small, calc(var(--gap-small) * 2));
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing);
  padding: var(--spacing);
}

.grid-col-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-small);
  grid-column: span 12;
}

.grid-col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-small);
  grid-column: span 12;
}

.grid-col-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--gap-small);
  grid-column: span 12;
}

.span-1 {
  grid-column: span 1 !important;
}

.span-2 {
  grid-column: span 2;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.cards-wrapper {
  display: flex;
  gap: var(--gap-small);
  width: 100%;
  grid-column: span 12;
}

main {
  display: none;
  will-change: width, contents;
}

main.active {
  display: block;
}

#globe {
  width: 100%;
  height: 700dvh;
  border-radius: 4px;
  background: var(--grey-100);
  overflow: hidden;
  margin-bottom: 10vh;
}

.list-item {
  display: flex;
  padding: 6px var(--padding-modal-right-left-padding, 16px) !important;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: var(--gap-small);
  width: 100%;
  cursor: pointer;
  transition: background 0.145s ease-in-out;

  .state-label {
    font-size: 12px;
  }

  .secondary-action-button {
    margin-left: auto !important;
    justify-self: flex-end;
  }

}


.list-item:hover {
  background: var(--button-bg-hover);
}

.list-item:not(:has(.left)) {
  justify-content: flex-start;
}

.list-item :where(.right, .left) {
  display: flex;
  gap: var(--gap-small);
  align-items: center;
}

hr {
  border: 0;
  border-top: 1px solid var(--grey-100, #eaeaea);
  width: 100%;
  margin: 8px 0;
  grid-column: -1 / 1;
}

label {}

.toggle-list {
  width: 100%;
}

.list-summary {
  color: var(--grey-600, #808080);
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.danger {
  color: var(--navigation-delete-text-icon, #bb2a2a);
}

#colorPicker {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  right: -50px;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.blurred::before {
  content: '';
  position: absolute;
  width: calc(100% - var(--sidebar-width));
  height: 100%;
  z-index: 999;
  pointer-events: none;
  backdrop-filter: none;
  will-change: backdrop-filter;
  animation: 0.215s ease-out fade;
  cursor: default;
}

.blurred::before {
  pointer-events: all;
  cursor: zoom-out;
  background: #00000062;
  backdrop-filter: blur(2px);
}

.danger {
  color: var(--navigation-delete-text-icon, #bb2a2a);
}

.wrapper-link {
  flex: 1;
}

.flex-header {
  display: flex;
  justify-content: space-between;
  padding: var(--gap-small);
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  grid-column: span 12;
}

.flex-header>* {
  display: flex;
  gap: var(--gap-small);
}

.view-toggler-wrapper {
  display: flex;
}

.active-sort-badge,
.active-filter-badge {
  border-radius: 100px;
  background: var(--active-field-color, #6094ff);
  padding: 2px 4px;
  font-size: 12px;
  align-items: center;
  padding-left: 12px;
  white-space: nowrap;
}

.active-filter-badge::before {
  content: '\e0d7';
  font-family: 'prompt-icons';
}

.active-sort-badge::before {
  content: '\e080';
  font-family: 'prompt-icons';
}

/*FORM STYLES*/
.form-footer {
  display: flex;
  justify-content: space-between;
}

.form-footer .btn {
  width: 120px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.form-footer :is(.left, .right) {
  display: flex;
  gap: var(--gap-small);
}

form>fieldset.group-box {
  background: var(--dashboard-bg);
  margin-bottom: calc(var(--gap-small) * 2) !important;
  border-radius: 6px !important;
}

input {
  border-radius: 6px !important;
  border: 1px solid var(--dashboard-bg);
  font-family: Roboto;
}

.box-footer {
  display: flex;
  justify-content: flex-start;
  gap: var(--gap-small);
}

.box-footer .btn {
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

label {
  font-family: Roboto;
}

input[type='file'] {
  background: var(--dashboard-bg);
}

input[type='color'] {
  padding: 2px !important;
  height: 3em;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

a {
  font-family: Roboto, sans-serif !important;
}

.tab-header {
  padding: 0.5em 1em;
  height: max-content;
  display: inline-flex;
}

form .widget-body {
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 12px !important;
  margin-bottom: 0.5em;
}

.form-footer .jarviswidget .widget-body {
  border: none !important;
  border-radius: 6px !important;
  padding: 0 !important;
}

.dataTables_info {
  font-family: Roboto;
}

form .jarviswidget {
  border: 1px solid var(--dashboard-bg) !important;
  border-radius: 6px !important;
  background: var(--dashboard-bg);
}

form .row {
  padding: 1em !important;
}

/*FORM STYLES*/

/*THROW AWAY CODE*/
.loader {
  height: 8px;
  width: 36px;
}

.loader-box {
  display: inline-block;
  height: 8px;
  width: 8px;
  margin: 0px 2px;
  background-color: rgb(255, 255, 255);
  animation-name: fadeOutIn;
  animation-duration: 500ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.loader-box:nth-child(1) {
  animation-delay: 250ms;
}

.loader-box:nth-child(2) {
  animation-delay: 500ms;
}

.loader-box:nth-child(3) {
  animation-delay: 750ms;
}

/*GRID OVERRIDES*/

.dragable-container {
  background: red;
}

.dashboard-viewer :is(.card, .wrapper-link, figure) {
  height: 100%;
  width: 100%;
}

/* OVERRIDE */

form :is([class*='p-'], [class='p'], [class^='p-']):not(.icon, .icon-button) {
  font-family: Roboto, sans-serif !important;
  font-size: 14px;
}

#ParameterList {
  display: grid;
  gap: 4px;
}

.group-header {
  display: flex;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-bottom: 0.5em;
}

.gap-0 {
  gap: 0 !important;
}

.parameter-fieldset .select-wrapper {
  display: flex;
  min-width: 115px;
  height: 100%;
}

.parameter-fieldset .select-wrapper::after {
  display: none !important;
}

.parameter-item {
  display: flex;
  gap: var(--gap-small);
  align-items: center;
}

.parameter-item input {
  height: 2.5em;
  padding: 6px;
  border: 1px solid var(--grey-400);
  border-radius: 2px !important;
}

.parameter-item .tag {
  height: max-content;
}

.overflow-padding {
  height: 6em;
}

.max-screen {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 1%;
  isolation: isolate;
}

.page-context {
  position: fixed;
  translate: 20px calc(-120%);
  z-index: 999;
}

.page-title {
  display: flex;
  gap: var(--gap-small);
  align-items: center;
}

.page-title .title {
  margin: 0;
}

.content {
  min-height: max-content !important;
  height: max-content !important;
}

.content-wrapper:has(.max-screen) {
  overflow: hidden;
  padding: 0 !important;
}

.content-wrapper:has(.max-screen) .grid {
  overflow: auto;
}

.content-wrapper:has(.max-screen) .content {
  overflow: auto;
}

.content .content {
  display: contents;
}

/* QUOTE SCREEN */
/* *:is(button, td):has([title]){
  outline: 1px solid;
}
#frmQuoteBreakdown *  {
  outline: 1px solid;
}
 */

/* LOGIC FOR SLIDE SWITCH */

:has(.slide-switch :nth-child(1):has(:checked)) .page-view:not(:nth-child(1)) {
  display: none;
}

:has(.slide-switch :nth-child(2):has(:checked)) .page-view:not(:nth-child(2)) {
  display: none;
}

.details-header {
  display: flex;
  border-radius: 8px;
  background: var(--neutrals-white, #fff);
  /* max-width: calc(100vw - var(--computed-sidebar-width) - var(--padding, 1em) * 5); */
  gap: 1em;
  margin-bottom: 1em;
}

.details-header .detail-group {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0 32px;
  gap: 0.5em;
}

.details-header .field {
  margin: 0;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field .select-wrapper {
    width: 100%;
    max-width: 12em;
}

.detail-group:focus-within,
.detail-group:has(.show) {
  position: relative;
  z-index: 999;
}

:is(.details-header, .typed-form) .field .value {
  font-weight: 700;
}

.details-header .detail-group:not(:last-child) {
  border-right: 1px solid var(--lines-color, #eaeaea);
}

.details-header .base-info-group {
  width: var(--config-modal-width, min-content);
  padding: 0 16px;
}

.align-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.adjust-items {
    align-items: normal !important; 
}

.spacing {
    max-width: 130px;
}

.hide-dropdown-arrow {
    padding-right: 2em !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
}

.hide-dropdown-arrow:hover {
    background-color: var(--dashboard-bg);
}

.select-wrapper :is(select, input) {
    background: transparent;
}

[data-markup-rule="Incoterms"] select,
[data-markup-rule="PaymentTerms"] select {
    font-weight: 700;
}

[data-markup-rule="Incoterms"] .select-wrapper,
[data-markup-rule="PaymentTerms"] .select-wrapper {
    max-width: 10em;
}


#incotermsSelect {
    padding-right: 2em !important;
}

.select-wrapper:has(.hide-dropdown-arrow)::after {
    top: 65%;
}

.customer {
    display: flex;
    align-items: center;
    height: 6em;
    gap: var(--gap-small);
    position: relative;
}

.customer[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 80%;
    left: 55%;
    transform: translateX(-51%);
    background-color: #5bbd8a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
    font-size: 11px;
    pointer-events: none;
}

.customer[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.customer-details-wrapper {
    display: inline-flex;
    border-radius: 8px;
}

.customer-details-wrapper > * {
    cursor: pointer;
}

.customer-details-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.03);
    --button-bg-hover: transparent;
}

.toggle-customer-lookup {
    background: transparent !important;
}

.customer-details {
  position:relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px; 
  width: 100%;
  align-items: center;
}

/*.customer-details::after {
    content: '\e02b';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-family: 'prompt-icons';
}*/

.toggle-customer-lookup {
  position: absolute;
  inset: 0;
  width: 108%;
  left: -4%;
  border-radius: var(--border-radius, 4px);
  z-index: 10;
}
.customer-logo {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: var(--neutrals-white, #fff);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.customer-name {
    color: var(--navigation-button-text-button-text-color, #2c2c2c);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    min-width: 20ch;
    max-width: 25ch;
    width: max-content;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.customer-details .icon {
    margin-left: 4px;
}

.customer-branch {
  color: var(--grey-600, #808080);

  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  width: 100%;

  margin: 0;
  padding: 0;
}

:is(.details-header, .typed-form) button:is(.history-toggle) {
  padding: 8px var(--padding-modal-right-left-padding, 16px) !important;

  border-radius: 4px;
  /* border: 1px solid var(--typo-text-color, #2c2c2c) !important; */
  outline: none;

  color: var(--navigation-button-text-button-text-color, #2c2c2c);
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;

  white-space: nowrap;
  width: max-content;
  height: max-content;

  justify-self: flex-end;
  margin-left: 40px;
}

.form-group :is(.select2-container,
  input[type='text'],
  input[type='number'],
  input[type='date'],
  input[type='email'],

  input[type='datetime']) {
  --_border: 1px solid var(--lines-color, #eaeaea);
  --_radius: 4px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  padding: 0 !important;
  min-height: 40px;
  width: 100%;

  border-radius: var(--_radius) !important;
  border: var(--_border) !important;
  background: var(--neutrals-white, #fff) !important;
  text-indent: 8px;
}

.form-group input[readonly],
.form-group input:disabled {
    background-color: #e9ecef !important;
}

.form-control[readonly] {
    transition: none !important;
}

.form-group .selection {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;

  display: flex;
  align-items: center;
}

.form-group :has(.select2-container) :is(.selection) {
  border: none;
  width: 100% !important;
  height: 100% !important;
  /* padding: 8px var(--padding-modal-right-left-padding, 16px) !important; */
}

.form-group [role='combobox'] {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  border: none;
}

:is(.select2-selection__arrow) {
  top: 50% !important;
  right: 4px !important;
  transform: translateY(-50%);
  --_size: 20px !important;
  width: var(--_size);
  height: var(--_size);
}

.form-group .input-group {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group .input-group>* {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  display: flex;
  flex-grow: 1;
  grid-column: span 1;

  background: transparent;
  border: none;
}

.route-group {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  grid-auto-flow: column dense;
  gap: 8px;
  align-items: start;
  grid-column: -1 / 1;
  margin-bottom: 0;
}

.cargoDetailsDirectLineWrapper {
    grid-column: -1 / 1;
    padding: .5em calc(var(--gap-small) * 2.5);
    margin-left: calc(var(--padding-left) / -2);
    width: calc(100% + var(--padding-left));
    justify-content: space-between;

    align-items: center;
    gap: 1em;

    form {
      width: 100%;
    }

    label {
      display: flex;
      gap: .5em;
      cursor: pointer;
      user-select: none;
    }

    .gap {
      gap: 1em;
      display: flex;

      & > * {
        width: 100% !important;
      }
    }

    .form-group {
      margin-bottom: 0;

      .row:last-of-type {
        padding-bottom: 0 !important;
      }

    }
}

.value:is(.toggle-value) {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 2px;
  width: max-content !important;
  min-width: 0 !important;
  max-width: max-content !important;
  flex-direction: row;
  cursor: pointer;
}

.toggle-value:hover {
  background: var(--button-bg-hover);
}

.typed-form {
  max-width: 850px;
  gap: 8px;

  margin: 0 auto;
  animation: fadeIn 250ms ease-in-out;
}

.advanced-view {
  animation: fadeIn 250ms ease-in-out;
}

.typed-form .detail-group {
  width: 100%;

  --display: grid;
  display: var(--display);
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
  padding: 8px;
  background: var(--neutrals-white, #fff);

  display: flex;
  padding: 8px var(--padding-modal-right-left-padding, 16px);

  justify-content: space-between;
  align-items: center;
  align-self: stretch;

  border-radius: 4px;

  margin-bottom: 1em;

  .field {
    margin-bottom: 0;
  }

  [data-field="customerDueDate"] .label {
    text-align: left;
  }
}

.typed-form .detail-group:first-of-child {
  border-bottom: 1px solid var(--lines-color, #eaeaea);
}

.typed-form .detail-group .grid-col-2:nth-of-type(even) {
  background: green;
  text-align: right;
  justify-self: end;
}

.typed-form .detail-group>div:nth-of-type(even) {
  text-align: right;
  justify-self: start;
}

.typed-form .detail-group>.align-right * {
  text-align: right;
  justify-self: start;
}

.typed-form .base-info-group {
  margin: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;

  border-bottom: 1px solid var(--lines-color, #eaeaea);
}

.group-title {
  grid-column: span 2;

  color: var(--navigation-button-text-button-text-color, #2c2c2c);
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  margin-top: 0.5em;
  margin-bottom: var(--gap-small);
}

.group-title::after {
  /* content: '\e056';
  font-family: 'prompt-icons';
  display: inline-block;
  margin-left: 0.5em; */
}

.typed-form .form-section {
    display: block !important;
    /*  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;*/
}

.form-section .form-group {
  width: 100%;
  text-align: left !important;
}

.form-section label {
  overflow: hidden;
  color: var(--neutrals-grey-600, #808080);
  text-overflow: ellipsis;
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

.date-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.requestor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}
.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

#requestorDetails {
    transition: max-height 0.4s ease;
}

.toggle-header .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.toggle-header .icon.rotate {
    transform: rotate(180deg);
}

.wide {
  grid-column: -1 / 1;
}

.input-group:has(.input-group-prepend) input:last-of-type {
  display: none !important;
}

.options-count-wrapper .input-group-sm input:last-of-type {
  display: none;
}

.input-group-prepend .fa-search::before {
  content: '\e02b';
  font-family: 'prompt-icons';
}

.options-count-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  width: max-content;
  width: 100%;

  gap: var(--gap-small, 8px);
}

.form-group .form-group {
  display: content;
  margin: 0;
}

.input-group-sm {
  grid-template-columns: 1fr auto !important;
  border: 1px solid var(--lines-color, #eaeaea) !important;
  border-radius: 4px;
}

.input-group-sm input.form-control {
  border: none !important;
}

.options-count {
  color: var(--neutrals-grey-600, #808080);
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 0 !important;
  transform: none;
  width: 46px;
  text-align: center;
}

.select2-selection__arrow b {
  display: none;
}

.select2-selection__arrow::before {
  content: '\e02b';
  font-family: 'prompt-icons';
  display: inline-block;
  translate: -1.5em 0.25em;
}

.typed-form footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.wide {
  width: 100%;
}

.btn-outline {
  width: max-content;
  height: max-content;
  border: 1px solid var(--color-brand-accent) !important;
}

.typed-form .group-header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-bottom: 1em;

  &::before {
    content: '';
    position: absolute;
    left: -1em; 
    right: 0;
    bottom: 0;
    width: calc(100% + 3em);
    border-bottom: 1px solid #F5F5F5;

  }
}

.quote-line {
  grid-column: -1 / 1;
}

.dataTables_processing {
  display: none !important;
}

.modal-dialog {
  border-radius: 4px;
  overflow: hidden;
}

.modal-dialog:not(:has(.modal-content)) {
  min-height: 60vh;
  background: #fff;
  padding: 1em;
  pointer-events: all;
}

.jarvis-modal-content {
  height: 100%;
}

.lookup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  background: var(--neutrals-white, #fff) !important;
}

.lookup-footer .btn {
  padding: 0 1em;
  pointer-events: all;
}

.accordion__header {
  cursor: pointer;
}

.accordion__header:hover {
  background: var(--button-bg-hover);
}

.right fieldset {
  display: flex;
  height: 80%;
  gap: var(--gap-small);
}

.typed-form .route-group select {
  width: 100%;
}

.typed-form .route-group .p-arrow-right {
  translate: 0 50%;
}

.tight-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--lines-color, #eaeaea);
  border-radius: 4px;
  background: var(--lines-color, #eaeaea);
  overflow: hidden;
  gap: 1px;
}

.form-group .tight-group :is(input.form-control[type='text'],
  input.form-control[type='number'],
  select.form-control) {
  --_border: none !important;
  --_radius: 0;
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  text-indent: 0 !important;
}

input.form-control[type='number'] {
  border: var(--_border, none);
  margin: 0 !important;
}

.line-accord-header {
  display: flex;
  height: 50px;
  padding: 8px var(--padding-modal-right-left-padding, 16px);
  justify-content: space-between;
  align-items: center;
  align-self: stretch;

  border-radius: 4px;
  background: var(--prompt-colors-primary, #5bbd8a);

  margin-bottom: 1em;
  cursor: pointer;
}

.line-accord-header :is(label, .icon-button) {
  color: var(--neutrals-white, #fff);
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  line-height: 150%;
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.line-accord-header label::before {
  content: '\e02b';
  font-family: 'prompt-icons';
  display: inline-block;
  margin-left: 0.5em;
}


.quote-line {
  max-height: max-content;
  /* overflow: hidden; */
  transition: max-height 0.5s ease-out;
}

.quote-line--active {
  max-height: 999000px;
}

.quote-line>*:not(.line-accord-header) {
  display: none !important;
}

.quote-line--active>*:not(.line-accord-header) {
  display: var(--display, block) !important;
  /* animation: fadeIn 0.25s ease-out; */
}

.quote-line:only-child>*:not(.line-accord-header) {
  display: var(--display, block) !important;
}

.quote-line--active label::before {
  rotate: -180deg;
  translate: 0 -15%;
}
.quote-line:has(.single-line-action-button) {
  position: relative;
}

.line-actions-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1em;

  input[type="checkbox"] {
    margin-right: var(--gap-small);
  }
}
.single-line-action-button {
  position: absolute;
  right: -1.45em;
  transform: translateX(100%);
  height: 3em;
  background-color: #fff !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border:  1px solid var(--lines-color, #eaeaea);
  border-left: none;
}

.modal-header {
  display: flex;
  align-items: center;
}

.form-group :has(label + input[type='checkbox'], input[type='checkbox'] + label) {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
}

.form-group :has(label + input[type='checkbox'], input[type='checkbox'] + label) label {
  margin: 0;
}

.routes-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
  padding: 16px 0;
  grid-column: -1 / 1;
  width: 100%;
}

.is-direct-line .routes-wrapper {
  filter: grayscale(1);
  cursor: not-allowed;
  opacity: .76;
}

.is-direct-line .routes-wrapper>* {
  pointer-events: none;
}

.routes-wrapper:empty {
  display: none !important;
}

.typed-form .field .value {
  font-size: 14px;
  color: var(--typo-text-color, #2c2c2c);
}

/* MOVE TO INPUTS, ALSO TAKE ICON OVERRIDE ON OVERRIDE FILE */
.form-group:has(input[type='date'], input[type='datetime']) {
  position: relative;
  font-size: 14px;
  color: var(--typo-text-color, #2c2c2c);
}

.date-input-wrapper {
  position: relative;
}

.form-group:has(input[type='date'], input[type='datetime'])::after, .date-input-wrapper::after {
    content: '\e03a';
    font-family: 'prompt-icons';
    position: absolute;
    right: 1.25em;
    bottom: 50%;
    translate: 0 85%;
    font-size: 16px;
    color: var(--color-subtext, #808080);
    pointer-events: none;
}

.date-input-wrapper::after {
  top: 50%;
  bottom: unset;
  translate: 0 -50%;
}

@supports not selector(::-webkit-calendar-picker-indicator) {
    .form-group:has(input[type='date'], input[type='datetime'])::after, .date-input-wrapper::after {
        display: none;
    }
}

input[type="date"]::-webkit-inner-spin-button {
  display: none;
}

.form-group:has(.date-input-wrapper)::after {
  display: none;
}

select.unit-selection {
  padding: 2px;
  height: max-content !important;
  min-width: max-content;
  background: transparent;
  color: var(--typo-sub-text, #808080) !important;
  font-size: 12px;
  cursor: pointer;
  field-sizing: content;
}

select.unit-selection option {
  color: var(--typo-sub-text, #808080) !important;
  padding: 8px;
}

.debug-window {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: #fff;
  border: 1px solid var(--grey-100, #eaeaea);
  border-radius: 6px;
  overflow: auto;
  padding: 1em;
}

.action-footer .add-new-line {
  background-color: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.debug-window .string {
  color: green;
}

.debug-window .number {
  color: darkorange;
}

.debug-window .boolean {
  color: blue;
}

.debug-window .null {
  color: magenta;
}

.debug-window .key {
  color: red;
}

span[data-toggle-rows] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #49976e;
}

.group-toggle {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  cursor: pointer;
  color: #49976e;

  border-radius: 4px;
  background: var(--prompt-colors-primary-light, #def2e8);

  display: flex;
  padding: 2px 4px;
  align-items: center;
  gap: 4px;
}

span[data-toggle-rows] .triangle-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #49976e;
}

.rules-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 2fr 2.2fr !important;
    gap: 6em !important;
    background-color: var(--color-white, #fff);
    /* display: contents !important; */

    @media screen and (max-width: 1080px) {
      grid-template-columns: 1fr 1fr !important;
      max-height: 100%;
      row-gap: 1em !important;
      padding-bottom: 2em;
    }
}

.incoterm-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;

  .select-wrapper {
    width: 100%;
    min-height: 32px;

    border: 1px solid var(--lines-color);
    select {
      appearance: none;
      height: 100%;
    }
  }

  .trim-options {
    margin-top: auto;
  }

  .check-options {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 1.2em;
  }

  .check-option {
    width: 100%;
    padding: 4px 12px;
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;

    background-color: var(--neutrals-grey-50, #f4f4f4);
  }
}

.selection-rules,
.markup-rules {
  width: 100%;
  height: 100%;
}

.markup-rules {
  /* display: grid;
  grid-template: repeat(3, min-content) / auto; */
}

.rules-container .btn-primary {
/*  margin-left: auto;*/
  margin-top: auto;
  grid-column-end: -1;
  height: max-content;
  padding-inline: 1em !important;
}

.rules-wrapper {
    grid-column: -1 / 1;
    width: 100%;
    display: grid;
    /*    grid-template: repeat(3, min-content) / auto auto;*/
    grid-template: repeat(3, min-content) / minmax(100%, 327px);
    column-gap: 40px;
    row-gap: 8px;
}

.copilot-wrapper h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.preference-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  counter-reset: preferences;
  min-width: 215px;
}

.preference-list li {
  counter-increment: preferences;

  display: flex;
  padding: 6px 4px;
  justify-content: flex-start;
  align-items: center;
  align-self: stretch;
  gap: 0;

  border-radius: 4px;
  /*background: linear-gradient(0deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.5) 100%),
    var(--neutrals-grey-50, #f4f4f4);*/
  background: var(--neutrals-grey-50, #f4f4f4);
}

.preference-list li::after {
  /*  content: ""counter(preferences)"";
  color: #666;
  font-weight: bold;
  margin-left: auto;

  border-radius: 50%;*/
}

.preference-list li span:first-child {
  cursor: move;
  border-radius: 4px;
  background: linear-gradient(0deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.5) 100%),
    var(--neutrals-grey-50, #f4f4f4);
}

.copilot-wrapper .input-group {
    display: grid;
    /*    grid-template-columns: 1fr 2fr 2fr;*/
    grid-template-columns: 80px 1fr 75px;
    grid-gap: 10px;
    align-items: center;
    /*    margin-bottom: 10px;*/
    height: 2.20em;

    * {
      height: 100%;
      display: flex;
      align-items: center;
    }
}

.copilot-wrapper .input-group .select-wrapper {
  width: 100%;
}

.copilot-wrapper .input-group select,
.copilot-wrapper .input-group input {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.copilot-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.copilot-wrapper .input-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.copilot-wrapper .input-group input::placeholder {
  color: #ccc;
}

.copilot-header {
    display: grid;
    background: var(--color-white, #fff);
    justify-content: space-between;
    padding: var(--padding-modal-right-left-padding, 16px) 50px;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: 1fr auto;
}

.margin-summary {
    display: flex;
/*    padding: var(--padding-modal-right-left-padding, 16px);*/
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
/*    gap: 8px;*/
    align-self: stretch;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #fff;
    padding-bottom: 1.2em;
/*    margin-bottom: 20px;*/
}

.copilot-header .column-reorder-list-ul {
    gap: 8px;
}

.btn-apply-rules {
    width: 122px;
}

.copilot-wrapper .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.copilot-wrapper .title .group-title {
  margin-top: 0;
  margin-bottom: 0 !important;
}

.toggle-button {
  margin-left: 0.5em;
}

.toggle-button::before {
  display: none;
  border: none;
  outline: none;
}

.qrs-stats-container {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    background: #fff;
    width: 100%;
    gap: var(--gap-small);
    height: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 0;
}

.qrs-stat-box {
    display: flex;
    padding: 8px;
    padding-left: 2em;
    padding-right: 5em;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    gap: 12px;
    border-radius: 4px;
    background: var(--neutrals-grey-50, #f4f4f4);
    border: none !important;
    box-shadow: none !important;
}

.qrs-stat-box:first-child {
  margin-left: 0;
}

.qrs-stat-box:last-child {
  margin-right: 0;
}

.stat-label {
  color: #666;
  font-size: 14px;

  overflow: hidden;
  color: var(--typo-text-color, #2c2c2c);
  text-overflow: ellipsis;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.stat-value {
  color: var(--prompt-colors-primary, #5bbd8a);
  font-family: Roboto;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  margin: 0;
  white-space: nowrap;
}

.copilot-wrapper .btn-primary {
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copilot-wrapper :is(select, input) {
  min-height: 2.5em !important;
  height: 2.5em !important;
  padding: 0 1em !important;
  background: transparent;
  font-size: 12px !important;
  border-radius: 4px !important;
}

.copilot-wrapper .filters-container {
  display: flex;
  width: 70%;
  gap: 0.5em;
  grid-column: -1 / 1;
  align-items: center;
  margin-top: 1em;
}

.copilot-wrapper .filters-container .group-title {
  width: max-content;
  white-space: nowrap;
  margin: 0;
  margin-right: 1em;
  padding-left: 3em;
}

.copilot-wrapper .filters-container select,
.filter-facade {
  position: relative;
  width: 100%;
  border: 1px solid var(--lines-color, #eaeaea);
  text-align: center;
  cursor: pointer;

  color: var(--typo-text-color, #2c2c2c);
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.filter-facade {
  padding: 0.5em 1em;
  border-radius: 4px;
  text-align: left;
}

.filter-facade::after {
  font-family: prompt-icons;
  content: '\e02b';
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 1em;
}

.micro-fields-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  margin-top: 0.5em;
}

.micro-select {
  position: relative;
  padding: 2px !important;
  border-radius: 4px;
  font-size: 12px !important;
  background-color: color-mix(in srgb, var(--button-bg-hover), #fff 30%);
  color: var(--text-color, #2c2c2c);
  width: 76px;
  height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

.micro-select:hover {
  background-color: var(--button-bg-hover);
}

.micro-select:empty::before {
    content: attr(data-field);
    opacity: .56;
}

.micro-select::after {
  content: '\e02b';
  font-family: prompt-icons;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 1em;
}

.micro-select:has(select)::after {
    display: none;
}

.micro-select:has(select)::after {
    display: none;
}

.foe-select.foe-select {
  --_border-color: var(--grey-100);
  transform: translateY(18px);
  width: 107px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--_border-color);
  overflow: hidden;
  border-radius: 4px;

  #searchInput {
    --_border: none !important;
    height: 100% !important;
  }

  .btn-dropdown-toggle {
    --button-bg-hover: transparent;
    z-index: 999;
    right:  1em;
  }

  &:has([data-valid="false"]) {
    --_border-color: #f39c12;
    
    .p-select-wrapper {
      border: none !important;
    }
  }
}

input[type="date"].invalid {
  --_border-color: #f39c12;
  border: 1px solid var(--_border-color) !important;
}

.input-group-sm>.custom-select,
.input-group-sm>.form-control:not(textarea),
.skin-helios .form-control:not(textarea),
#QuoteHeader_ContainerType {
  --_height: 3.3em;
  min-height: var(--_height) !important;
  height: var(--_height) !important;
}

.copilot-wrapper .flex:has(img) {
  grid-column: -1 / 1;
  margin-top: 1em;
}

.copilot-wrapper .flex img {
  width: 60%;
  display: none;
  object-fit: contain;
}

footer.action-footer.add-new-line {
  background-color: #fff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

footer.action-footer.add-new-line:not(:last-of-type) {
  display: none;
}

.controlled-table:not(:last-of-type) {
  margin-bottom: 1em;
}

.only-sibling-empty {
  display: none;
}

*:empty+.only-sibling-empty {
  display: var(--display, block);
}

.customer-name {
  appearance: none !important;
  background: none !important;
}

.customer-name,
.false-input {
  appearance: none !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: max-content !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-color) !important;

  margin-right: 0.5em;
  align-items: center;
  vertical-align: middle;
  display: flex;
}

.false-input::placeholder {
  color: var(--text-color) !important;
}

.false-input:hover {
  background: var(--button-bg-hover) !important;
}

.false-input:empty::before {
  display: none;
}

:is(.details-header, .typed-form, .advanced-view) .field label:is(.toggle-value) {
  position: relative;
  width: 100% !important;
  min-width: 4em !important;
  max-width: 9em !important;
  min-height: 2.5em !important;
  cursor: pointer;
}

:is(.details-header, .typed-form, .advanced-view) .field label:is(.toggle-value) select {
  position: absolute;
  inset: 0;
  background: none;
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;

  font-size: 14px !important;
  font-weight: 700 !important;
}

.value.toggle-value {
  margin: 0 !important;
}

.value.toggle-value>.icon {
  z-index: 1;
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
  transition: transform 0.25s ease-in-out;
}

/*.value.toggle-value:hover>.icon {
  transform: rotateY(1turn);
}*/

.field:has(.toggle-value) {
  width: 60%;
}

.customer-details .false-input {
  width: 60% !important;
  background: red;
}

.false-input {
  display: flex !important;
  border-radius: 4px;
  overflow: hidden;
/*  min-width: max-content !important;*/
  padding: 0px !important;
}

.value:has(.false-input) {
  overflow: visible;
  padding-inline: 2px;
  width: max-content !important;
  min-width: 8em !important;
}

.line-tables-wrapper .detail-group {
  background: #fff;
  padding: 1em;
  margin-bottom: 1em;
  grid-template-columns: repeat(3, 1fr);
}

.line-tables-wrapper .form-group {
  grid-column: span 1 !important;
  margin: 0;
  padding: 0;
}

.line-tables-wrapper hr {
  display: none;
}

.line-tables-wrapper .grid-col-2 {
  grid-template-columns: repeat(3, 1fr);
}

.line-tables-wrapper .form-group {
  height: max-content;
  margin: 0;
}

.line-tables-wrapper .form-group input {
  height: 100%;
}

.line-tables-wrapper .group-title {
  grid-column: span 3;
}

.line-tables-wrapper .detail-group.form-section:not(:nth-of-type(1), :nth-of-type(2)) {
  display: none !important;
}

.detail-group:has(p-select) {
  position: sticky;
  isolation: isolate;
  z-index: 1;
}

/* * {
  outline: 1px solid rgba(0 0 0 / .1);
  background:  rgba(0 0 0 / .012);
} */
.visibility-false,
.no-see {
  opacity: 0 !important;
  pointer-events: none !important;
}

p-clone {
  display: contents;
}

p-select {
  display: contents;
}

p-select[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.p-select-wrapper {
  position: relative;
  width: 100%;
  height: 2.5em;
}

p-select[data-valid="false"] .p-select-wrapper {
    border: 1px solid #f39c12 !important;
    border-radius: 4px;
}

.detail-group .p-select-wrapper {
    height: 40px;
    input {
    height: 100% !important;
  }
}

p-select .p-select-wrapper:nth-of-type(2) {
  display: none;
}

[data-template-name] {
  display: none;
}

.btn-dropdown-toggle {
  display: inline-block;
  margin-left: 0.5em;
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: var(--button-bg-hover) !important;
  cursor: pointer;
  z-index: 999;
}

:is(select,
  input[type='text'],
  input[type='date'],
  input[type='time'],
  input[type='datetime']) {
  min-height: 2.5em !important;
}

.calc-table {
  margin-top: 1em;
  flex-direction: column;
}

.nested-tables {
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.nested-tables .flex {
  gap: 0.5em;
}

.nested-tables svg {
  height: max-content;
  background-color: #fff;
  padding: 0.5em;
  border-radius: 4px;
}

.nested-tables svg * {
  pointer-events: none;
}

.nested-tables svg rect {
  cursor: pointer;
  pointer-events: all;
}

.nested-tables svg>rect:hover {
  background-color: var(--button-bg-hover);
  filter: brightness(0.5) grayscale(1);
}

.options-list {
  position: fixed;
  top: var(--top, 200px);
  left: var(--left, 200px);
  width: var(--width, 200px);
  display: none;
  flex-direction: column;
  height: max-content;
  max-height: 12em;
  overflow: auto;
  background-color: var(--color-white);
  border-radius: 4px;

  box-shadow: 0 4px 8px rgba(0 0 0 / 0.03);
  animation: fade 125ms ease-in-out;
  isolation: isolate;
  z-index: 9999;
}

.options-list:not(:empty) {
  /*min-height: max-content;*/
}

.options-list:empty {
  min-height: 6em;
}

.options-list:empty::before {
  font-family: 'Roboto', sans-serif !important;
  content: 'No results found';
  margin: auto;
  font-size: 12px;
}

.p-select-wrapper .options-list.show {
  display: flex;
  flex-direction: column;
}

#statusMessage {
  position: absolute;
  z-index: 999;
}

.options-list li.option {
  --_height: 3em;
  --_padding: 0.5em;

  display: flex !important;
  width: 100%;
  height: var(--_height) !important;
  max-height: var(--_height) !important;
  padding-block: 8px;
  padding-inline: 16px;
  cursor: pointer;
  transition: background-color 125ms ease-in-out;
  align-items: center;

  &[data-is-match] {
    /* order: -1; */
    background-color: #def5e9;
    /* outline: 1px dashed var(--color-brand-accent); */
  }
}

.options-list label {
  overflow: hidden;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.options-list li:hover {
  background-color: var(--button-bg-hover);
}

/* COPILOT PAGE */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop, 997);
  background-color: rgba(0 0 0 / 0);
  transition: background-color 450ms ease-in-out;
}

:has(p-drawer:hover) .backdrop {
  pointer-events: none;
}

:has(p-drawer:hover) .backdrop {
  background-color: rgba(0 0 0 / 0.2);
  pointer-events: all;
}

p-drawer {
  display: flex;
  flex-direction: column;
  gap: 1em;
  height: calc(100vh - var(--top-nav-height));
  width: var(--_width, 60vw);

  position: fixed;
  right: 0;
  bottom: 0;

  background-color: var(--color-white);

  border: 1px solid var(--lines-color, #eaeaea);

  animation: slideInFromRight 450ms ease-in-out;

  will-change: transform, opacity, width;
  transition: 450ms ease-in-out;

  z-index: var(--z-floating-content, 998);
}

p-drawer .side-drawer>* {
  padding-inline: 1em;
}

.side-drawer__header {
  padding: 1em;
}

p-drawer.side-drawer--maximized {
  --_width: calc(100vw - var(--computed-sidebar-width, var(--sidebar-width)));
  width: var(--_width);
}

p-drawer.side-drawer--minimized {
  --_width: 60vw;
  width: var(--_width);
}

p-drawer.side-drawer--maximized .btn-maximize {
  display: none;
}

p-drawer.side-drawer--minimized .btn-minimize {
  display: none;
}

p-drawer .line-accord-header {
  margin-top: 0.5em;
  padding: 8px 10px !important;
  border-radius: 0;
}

p-drawer .line-accord-header label {
  display: flex;
}

p-drawer .line-accord-header label::before {
  order: 2;
  margin: 0;
}

p-drawer .table-wrapper {
  border: 1px solid var(--lines-color, #eaeaea) !important;
}

p-drawer table {
  border: none !important;
}

p-drawer .grid-actions {
  display: none;
}

.side-drawer__content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--top-nav-height) - 4em);
  overflow: auto;
}

/* 
.side-drawer__content h3 {
  margin: 0;
  margin-top: 1em ;
  font-size: 18px;
}
.side-drawer__content h3 + .accordion__header {
  margin: 0;
} */

.side-drawer__header-actions {
  display: flex;
}

.filters-container select {
  text-align: left !important;
}

.line-accord-header+.quotings-wrapper-grid {
  display: none;
  max-height: 0;
  transition: max-height 0.5s ease-out;
}

.line-accord-header.active+.quotings-wrapper-grid {
  display: var(--display, grid);
  max-height: 100%;
}

p-drawer .line-accord-header.active label::before {
  transform: rotate(-180deg);
}

tr:has(.footer-cell-content) {
  background-color: transparent !important;
}

.footer-cell-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 4px;
  background-color: transparent !important;
}

.footer-cell-content button {
  color: var(--prompt-colors-primary, hsl(149, 43%, 46%)) !important;
}

.additional-content img {
  width: 100%;
  height: 60vh;
  display: none;
}

.route-context-table-wrapper {
  margin-bottom: 0.5em;
  animation: fadeIn 250ms ease-in-out;
}

.route-title {
  color: var(--prompt-colors-primary, hsl(149, 43%, 46%));
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  margin: 0;
  margin: 0.124em 0;
}

.leg-title {
  font-size: 14px;
  margin-top: 0.125em !important;
  opacity: 0.86;
  height: 100%;
}

.side-drawer--minimized .route-context-table-wrapper {
  display: none;
}

.side-drawer--maximized .route-context-table-wrapper {
  display: block;
}

.align-center {
  align-items: center;
}

#OrganizationLookupFilters .form-group {
  min-width: 200px;
}

.side-drawer__padding {
  height: 20vh;
}

/* AUTH PAGES */
.auth-page-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #1c575d;

  .auth-page-content {
    position: relative;
    width: 480px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    padding: 32px;
    z-index: 1;

    .auth-page-header {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .left,
      .right {
        width: min-content;
      }

      .logo {
        width: 120px;
      }
    }

    .auth-main-content {
      height: max-content;

      .auth-page-title {
        font-size: 36px;
        width: 100%;
        text-align: center;
        margin-bottom: 32px;
      }

      .form-group {
        position: relative;
        border-radius: 6px;
        --text-indent: 4em;

        .icon {
          position: absolute;
          top: 50%;
          left: 16px;
          transform: translateY(-50%);
          color: #808080;
        }

        label {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          left: var(--text-indent);
          display: none;
        }

        &:focus-within {
          box-shadow: 0 0 0 0 #fff,
            0 0 4px 2px color-mix(in oklab, #fff 50%, var(--prompt-colors-accent-1));

          .icon {
            color: var(--prompt-colors-accent-1) !important;
          }
        }


        input.form-control {
          height: 45px;
          width: 100%;
          border-radius: 8px;
          text-indent: var(--text-indent);
          padding-left: 0;

        }

      }



      .btn-forgot-password {
        color: #808080;
        font-size: 12px;
        padding: 4px;
        border-radius: 4px;

        &:hover {
          background-color: var(--button-bg-hover);
        }
      }

      .btn-primary {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center !important;
        height: 45px;
        padding: 8px 16px;
        margin-top: 32px;
      }
    }

    .auth-page-footer {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      width: 100%;
      gap: 8px;

      .btn {
        padding: 8px;
        width: max-content;
      }
    }
  }

  .auth-page-background {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    inset: 0;
    z-index: 0;
  }
}

.shipment-filters {
  padding: 4px;
  border: 1px solid var(--lines-color, #eaeaea);
  border-radius: 4px;
  width: max-content;
  display: flex;
  align-items: center;

  .active-filter-badge::before {
    display: none;
  }
}

.shipment-filters, .filter-chips-wrapper {
  display: flex;
  gap: 4px;
}

.container-page {
  --p-grid-height: 80vh;
}

.container-page.purchase-order {
    margin-top: 18px;
}

.search-container-form {
  position: relative;
  border-radius: 4px;
  height: 3.5em;
  --search-bar-width: clamp(16em, 25vw, 600px);
  margin: 0 auto;
  margin-bottom: 2em;
}

.search-container-form {
  border: 1px solid var(--border-lines, rgba(0 0 0 / .1));
  box-shadow: 0 4px 8px rgba(0 0 0 / .02);
}

.disabled .empty-state {
  display: none;
}

.search-container-form .search-button {
  position: absolute;
  right: 1em;
  top: 50%;
  translate: 0 -50%;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff;
}

.validation-summary-errors ul {
  display: grid
}

.shipment-filters {
  padding: 4px;
  border: 1px solid var(--lines-color, #eaeaea);
  border-radius: 4px;
  width: max-content;
  display: flex;
  align-items: center;

  .active-filter-badge::before {
    display: none;
  }
}

.shipment-filters, .filter-chips-wrapper {
  display: flex;
  gap: 4px;
}

#additionalOptionsForm {
  --active-color: var(--grey-100);

  h6 {
    margin-top: 1em;
  }

  .charge-card-header {
    font-weight: 700;
    color: #1A6250;
    font-size: 17px;
  }

.charge-card-body {
    width: 100%;
}

  .option-context {
    display: flex;
    gap: .5em;

    span {
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .minor {
    padding: 0;
    margin: 0;
  }

  .line-charge-list {
    /* background-color: #f1f1f179; */
    list-style: none;
    padding: .5em;
    color: rgba(0 0 0 / .76);
    width: 58vw;
    border-radius: 4px;
    margin-top: 0.5em;
    border-top: 1px solid #ccccccd5;
    border-radius: 0;
    /* display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto 1fr;

    h6 {
      grid-column: -1 / 1;
      margin: 0;
    } */

    .line-charge-item {
      /* white-space: preserve-breaks;
      display: flex;
      flex-direction: column;
      align-items: flex-start; */
    }



  }


.card:has(input.form-check-input:checked) {
    --active-color: var(--color-brand-accent);
    background: rgba(0 0 0 / .05);
    border: 1px solid var(--active-color);
}

  .charges-table {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    outline: 1px solid var(--lines-color, #eaeaea) !important;
    border: none !important;
    border-radius: 8px !important;
    margin-top: 1em;
    overflow-x: auto;
    /* filter: drop-shadow(0 0 1px 0px var(--lines-color, #eaeaea)); */

    td, th {
      padding: 8px 14px;
      max-width: 200px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;

      .cell-check {
        width: 1.2em;
        height: 1.2em;
      }
    }
  }

}

.modal-content {
  p-grid {
    --_height: 435px;
  }
}


.modal-body {
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.custom-modal-size {
    max-width: 80%;
}


#additionalOptionsForm .card::before {
    --size: 8px;
    content: '';
    position: absolute;
    right: 2em;
    top: 2em;
    /* transform: translate(-50%, -50%); */
    width: var(--size);
    height: var(--size);
    aspect-ratio: 1 / 1;
    background-color: var(--active-color);
    border-radius: 50%;
}

#additionalOptionsForm .card::before {
  --size: 3em;

  content: '';
  position: absolute;
  right: 0;
  top: 2em;
  /* transform: translate(-50%, -50%); */
  width: 4px;
  height: var(--size);
  /* aspect-ratio: 1 / 1; */
  background-color: var(--active-color);
  border-radius: 0;

}

:is(input, select, button):focus, :is(label):focus-within {
  --_border: 1px solid var(--outline-color) !important;
  outline: var(--_border);
  filter: brightness(.97);
}

:is(.tight-group):focus-within {
  --_border: 1px solid var(--color-brand-accent) !important;
  outline: var(--_border) !important;
  background-color: var(--color-brand-accent);
}

/* Selector Styling*/


.hidden-checkbox {
    display: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.hideCollection {
    display: none;
    outline: 1px solid;
}

.markup-row {
    display: grid;
    grid-template-columns: 6rem 19rem 8rem;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 1rem;
}

.markup-row label {
    display: contents;
}

.no-mb {
    margin-bottom: 0 !important;
}


/* Selector Styling*/

.iti input {
    padding-left: 50px !important;
}

.iti {
    display: flex;
    z-index: 10;
}

/*#requestorContactNo {
    padding-left: 40px !important;
}*/

.iti__country-list {
    z-index: 9999;
}

div > #details {
    overflow-y: auto;
    overflow-x: auto;
    padding: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 0.8rem;
    column-gap: 2.5rem;
    overflow-y: auto;
    overflow-x: auto;
}

@media (max-width: 1060px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

#idSecret {
    flex: 1;
}

.input-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 63%;
}

.secret-copy-btn {
    border: none;
    font-size: 24px;
    padding: 0.3em 0.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.secret-key-message {
}*/
