﻿
/* #region Believed to be unused */

.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;
}

.options-count-wrapper .input-group-sm input:last-of-type {
    display: none;
}

.options-count-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    width: max-content;
    width: 100%;
    gap: var(--gap-small, 8px);
}

.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; */
}

}

.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%;
}

.is-direct-line .routes-wrapper {
  filter: grayscale(1);
  cursor: not-allowed;
  opacity: .76;
}

.is-direct-line .routes-wrapper>* {
  pointer-events: none;
}

.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;
}

.hidden-checkbox {
    display: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.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);
}

.mode-select {
    transform: none !important;
}

.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: var(--translate-y, translateY(18px));
  width: 100%;
  height: 50px;
  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;
    }
  }
}


/* #endregion Believed to be unused */


.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;
}


.btn-dropdown-toggle {
    display: inline-block;
    margin-left: 0.5em;
    position: absolute;
    right: 8px;
    top: 50%;
    translate: 0 -50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--button-bg-hover) !important;
    cursor: pointer;
    z-index: 999;
}

.toggle-customer-lookup {
    position: absolute;
    inset: 0;
    width: 108%;
    left: -4%;
    border-radius: var(--border-radius, 4px);
    z-index: 10;
}

.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-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 input[data-target-type="Name"] {
    width: 100%;
    min-width: 35ch;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5em;
}

.customer-details .btn-dropdown-toggle {
    grid-column: 2;
}

.customer-details .icon {
    margin-left: 4px;
}


.floating-tooltip.customer-tooltip {
    width: 335px;
    margin-left: 0.6em;
}

.floating-tooltip {
    position: fixed;
    background: var(--color-brand-accent);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: normal;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    max-width: 600px;
    max-height: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    line-height: 2.5;
}

#requestorDetails {
    transition: max-height 0.4s ease;
}

.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;
}

.toggle-header .icon {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(180deg) !important;
}

.toggle-header .icon.rotate {
    transform: rotate(0deg) !important;
}

.iti input {
    padding-left: 50px !important;
}

.iti {
    display: flex;
    z-index: 10;
}















.field[data-field="rateTypeField"] {
    position: relative;
    left: -5em;
}

.field[data-field="incotermField"] {
    position: relative;
    left: -8.7em;
}

.field[data-field="rateTypeField"] #searchInput {
    width: 100%;
    background: #fff;
}

.field[data-field="incotermField"] #searchInput {
    width: 210% !important;
    background: #fff;
}

.field[data-field="incotermField"] .p-select-wrapper {
    position: relative;
}

.field[data-field="incotermField"] .btn-dropdown-toggle {
    right: -10.2em;
    transform: translateY(1%);
    z-index: 1;
}

.field[data-field="incotermField"] #searchInput {
    padding-right: 3em !important;
}

.field[data-field="rateTypeField"] p-select .searchInput,
.field[data-field="incotermField"] p-select .searchInput {
    width: 100%;
    min-height: 40px !important;
    border: 1px solid var(--lines-color, #eaeaea) !important;
    border-radius: 4px !important;
    text-indent: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.incoterm-wrapper p-select .btn-dropdown-toggle {
    right: 0.5em;
    z-index: 1;
    top: 1.2em;
    height: 1.9em;
    width: 2.1em;
}

.incoterm-wrapper p-select #searchInput {
    padding-right: 3.6em !important;
    height: 2.7em !important;
    text-overflow: ellipsis;
}

.markup-rules p-select .btn-dropdown-toggle {
    right: 0.5em;
    z-index: 1;
    top: 1.2em;
    height: 1.9em;
    width: 2.1em;
}

.markup-rules p-select #searchInput {
    padding-right: 3.6em !important;
    height: 2.7em !important;
    text-overflow: ellipsis;
}

.customer-details input[data-target-type="Name"] {
    padding-right: 3em !important;
    margin-top: 0.1em !important;
}

.customer .label {
    color: var(--grey-600, #808080);
    font-size: 12px;
}

input.quantity-field.invalid-qty {
    --_border-color: #f39c12;
    border: 1px solid var(--_border-color) !important;
}

/*input.dimension-field.invalid-dim {
    --_border-color: #f39c12;
    border: 1px solid var(--_border-color) !important;
}

.form-group .tight-group
input.form-control.invalid-dim {
    border: 1px solid #f39c12 !important;
    border-radius: 4px !important;
}

.tight-group:has(.invalid-dim) {
    --_border: none !important;
    background-color: var(--lines-color, #eaeaea) !important;
    outline: none !important;
}

.tight-group:has(.invalid-dim):focus-within {
    --_border: none !important;
    background-color: var(--lines-color, #eaeaea) !important;
    outline: none !important;
}

.tight-group:not(:focus-within) {
    --_border: none !important;
    outline: none !important;
    background-color: var(--lines-color, #eaeaea) !important;
}*/

.cargoDetailsDirectLineWrapper {
    grid-column: -1 / 1;
    padding: 1.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: var(--_row-padding-bottom, 0) !important;
}

}
}

.group-title {
    grid-column: span 2;
    color: lch(from var(--color-brand-accent-dark, #2c2c2c) calc(l - 60) c h / .76);
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-top: 0.5em;
    margin-bottom: var(--gap-small);
    text-align: left;
}

    .group-title::after {
        /* content: '\e056';
  font-family: 'prompt-icons';
  display: inline-block;
  margin-left: 0.5em; */
}

.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;
    padding-top: 3em;
    justify-content: end;
    input [type="checkbox"]

    {
        margin-right: var(--gap-small);
    }

}

.single-line-action-button {
    position: absolute;
    right: -1.45em;
    transform: translateX(100%) translateY(-50%);
    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;
}

.routes-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
  padding: 16px 0;
  grid-column: -1 / 1;
  width: 100%;
}

.routes-wrapper:empty {
  display: none !important;
}

.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;
}

select[name="ServiceLevel"], button.mode-select {
    /*        filter: brightness(.97) !important;*/
    background: lch(from var(--color-grey-25) calc(l + 1) c h) !important;
}

address-input {
    --width: 400px;
    width: 100%;
}

.service-level-wrapper {
    width: 100%;
    select

    {
        max-width: 100%;
        margin: 0;
        translate: 0 !important;
        transform: 0;
        height: 50px;
        outline: var(--lines-color) solid 1px;
        background: var(--neutrals-white, #fff);
    }
}

.customer {
    /*    display: flex;*/
    /*    align-items: center;*/
    height: 6em;
    gap: var(--gap-small);
    position: relative;
}

.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;
}

/*.customer-details::after {
    content: '\e02b';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-family: 'prompt-icons';
}*/

.route-group {
    display: grid;
    gap: 8px;
    align-items: start;
    grid-template-columns: repeat(5, 1fr);
    grid-column: -1 / 1;
    margin-bottom: 0;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column dense;
    margin-bottom: 2em;
    
    .service-level-wrapper
    {
        grid-row-start: 1;
        grid-column-start: -2;
    }

.mode-field {
    grid-row-start: 1;
    grid-column-start: 1;
}

hr {
    grid-column: -1 / 1;
    border-top: 1px solid #eaeaea96;
}

.location-field-wrapper, .icon.p-arrow-right {
    grid-row-start: -1;
}

.icon.p-arrow-right {
    margin-block: auto;
    padding-inline: 0;
    opacity: 0;
}

.p-select-wrapper {
    height: 50px !important;
}

.location-field {
    --translate-y: 0;
    margin-top: .5em;
}
}

.typed-form .group-header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-bottom: 1em;
    padding-top: 0em;
    &::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;
}

.typed-form .route-group select {
    width: 100%;
}

.typed-form .route-group .p-arrow-right {
    translate: 0 50%;
}

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;
}

.customer-details > .btn-dropdown-toggle.p-search {
    pointer-events: none;
}