/* @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 'components/context-switcher.css';
@import './_dialog.component.css' layer(dialog);
@import './_carton-lines.component.css?v=1';
@import './_container-line.component.css?v=1';
@import "./components/p-header.css" layer(top-header);
@import "./components/p-config-modal.css" layer(config-modal);

@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;
}

/* #region p-config-modal style*/

p-config-modal .search-wrapper {
  display: none;
}

p-config-modal[data-cell-options] {
    --config-modal-width: var(--config-min-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;
}

/* #endregion p-config-modal style*/

/* #region config-modal style*/

.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: 350px;
  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;
}

.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;
    }

/* #endregion config-modal style*/

/* #region p-select Component style*/

p-select {
    display: contents;
}

p-select[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.p-select-wrapper {
    position: relative;
    width: 100%;
    height: 2.5em;
    &:focus-within, &:has(.options-list.show)

{
    /* outline: 1px solid red; */
    z-index: 9999;
}

&:not(:has(.options-list.show)) {
    z-index: 0;
}

}

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;
}

.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;
    border: none;
    outline: none;
    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;
}

.options-list:empty {
    display: none !important;
}

.p-select-wrapper .options-list.show {
    display: flex;
    flex-direction: column;
}

.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);
}

/* #endregion p-select Component style*/

/* 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;
        z-index: 10;
    }

.banner-container + .right {
    grid-row: -1 / 1;
}

    .left {
        grid-column-start: left;
        justify-content: flex-start;
        justify-self: flex-start;
    }

    .center {
        grid-column-start: center;
        place-content: center;
        width: 100%;
    }

    .right {
        grid-column-start: 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: 600px;
    }

    }
}

.product-navigation {
  overflow-y: auto;
  padding-top: 16px;
}

.form-footer .card {
  height: auto;
}

.product-navigation {
  overflow-y: auto;
  padding-top: 16px;
}

.form-footer .card {
  height: auto;
}

.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;
}

label {}

/* #region Sidebar style*/

.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%;
}

/* #endregion Sidebar style*/

.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;
}

input[type='file'] {
  background: var(--dashboard-bg);
}

input[type='color'] {
  padding: 2px !important;
  height: 3em;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.tab-header {
  padding: 0.5em 1em;
  height: max-content;
  display: inline-flex;
}

form .widget-body {
  width: 100%;
}

.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;
}

form button[class^="p-"]::before {
    font-family: "prompt-icons" !important;
}

#ParameterList {
  display: grid;
  gap: 4px;
}

.group-header {
  display: flex;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-bottom: 0.5em;
}

.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;
}

.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%;
}

: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 label {
    display: block;
    font-size: 12px !important;
    margin-bottom: 0.5em;
}

.form-group :is(.select2-container,
  input[type='text'],
  input[type='number'],
  input[type='date'],
  input[type='email'],
  input[type='password'],

  input[type='datetime'],
  input[type='datetime-local']) {
  --_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: var(--color-grey-200) !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;
}

.form-group .form-group {
    display: content;
    margin: 0;
}

.input-group-sm input.form-control {
    border: none !important;
}

.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;
}

.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%;
}

#OrganizationLookupFilters .form-group {
    min-width: 200px;
}

@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;
}

.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: 1100px;
  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);

  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);
}

.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;
}

.input-group:has(.input-group-prepend) input:last-of-type {
  display: none !important;
}

.input-group-prepend .fa-search::before {
  content: '\e02b';
  font-family: 'prompt-icons';
}

.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;
}

.dataTables_processing {
  display: none !important;
}

/* #region Modal Related Styling*/

.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%;
}

.modal-header {
    display: flex;
    align-items: center;
}

.modal-content {
    p-grid

    {
        --_height: 445px;
        --_height: max-content;
    }
}

.modal-body {
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.custom-modal-size {
    max-width: 80%;
}

/* #endregion Modal Related Styling*/

.lookup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  background: var(--neutrals-white, #fff) !important;
}

.lookup-footer .btn {
  padding: 0.75em 1.5em;
  --_padding: 0.75em 1.5em;
  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);
}

input.form-control[type='number'] {
  border: var(--_border, none);
  margin: 0 !important;
}

.typed-form .field .value {
  font-size: 14px;
  color: var(--typo-text-color, #2c2c2c);
}

/* MOVE TO INPUTS, ALSO TAKE ICON OVERRIDE ON OVERRIDE FILE */

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: var(--color-brand-accent);
}

.group-toggle {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  cursor: pointer;
  color: var(--color-brand-accent);

  border-radius: 4px;
  --light-accent-mix: color-mix(in oklab, var(--light-accent), var(--color-surface-1) var(--_surface-opacity, 60%)) !important;
  background: var(--light-accent-mix, #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 var(--color-brand-accent);
}

[data-parent-id] {
  /* animation: fadeDown 0.15s ease-out forwards; */
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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;
}

.controlled-table:not(:last-of-type) {
  margin-bottom: 1em;
}

.only-sibling-empty {
  display: none;
}

*:empty+.only-sibling-empty {
  display: var(--display, block);
}

: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;
}

.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;
}

[data-template-name] {
  display: none;
}

:is(select,
  input[type='text'],
  input[type='date'],
  input[type='time'],
  input[type='datetime'],
  input[type='number'],
  input[type='datetime-local']) {
  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);
}

#statusMessage {
  position: absolute;
  z-index: 999;
}

/* 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;
}

/* #region p-drawer style*/

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;
}

/* #endregion p-drawer style*/

.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;
}

.side-drawer--minimized .route-context-table-wrapper {
  display: none;
}

.side-drawer--maximized .route-context-table-wrapper {
  display: block;
}

.side-drawer__padding {
  height: 20vh;
}

.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;
}

:is(input, select, button):focus, :is(label):focus-within {
  --_border: 1px solid var(--outline-color) !important;
  outline: var(--_border);
  filter: brightness(.97);
}

.tight-group:has(.dimension-field:focus):not(:has(.invalid-dim)) {
    --_border: 1px solid var(--color-brand-accent) !important;
    outline: var(--_border) !important;
    background-color: var(--color-brand-accent);
}

.iti__country-list {
    z-index: 9999;
}

div > #details {
    overflow-y: auto;
    overflow-x: auto;
}

.btn-grid-control.btn-danger {
.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 (min-width: 1366px) and (max-width: 1650px) {
    .rules-container {
        gap: min(6em, 4.4vmin) !important;
    }

    .copilot-wrapper .input-group {
        grid-template-columns: 80px 1fr 65px;

    }

    .copilot-wrapper .input-group .select-wrapper {
        min-width: 170px;
    }

    .incoterm-wrapper .select-wrapper {
        min-width: 200px;
    }
}

@media (max-width: 1377px) {
    .qrs-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(169px, 1fr));
    }
}

@media (max-width: 1366px) {
    .qrs-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    }
}

@media (max-width: 1334px) {
    .incoterm-wrapper {
        .trim-options {
            margin-top: 2.2em;
        }
    }
}

@media (max-width: 1006px) {
    .qrs-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@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: 806px) {
    .qrs-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1334px) {
    .form-section label {
        overflow: clip;
    }
}

#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 {
}*/

.card-tabs .tab-content {
    display: block !important;
}

.pom-split-wrapper {
    margin-top: 10px;
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 5px;
}

.pom-split-wrapper a {
    display: inline-block;
    width: 8em;
}

.pom-split-btn-wrapper {
}

.pom-split-btn-wrapper > button {
    display: block;
    text-align: center;
    width:8em;
}

.split-amount {
    border: 1px solid #eaeaea;
    padding: 3px;
    cursor: pointer;

}
.purchase-order-line .form-group input:not([readonly]):not(:disabled):focus {
    background-color: #e9ecef !important;
}

#carrierChipContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1em;
    cursor: pointer;
}

.preferred-carrier-group {
    margin-bottom: 1em;
}

#preferredCarrierSummary {
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    min-height: 36px;
    font-size: 12px;
}

.preferred-carrier-btn {
    border: 2px solid transparent;
    transition: border-color 0.15s ease-in-out;
}

#preferredCarrierSummary:focus {
    border-color: var(--color-brand-accent)
}

.carrier-chip {
    background: lch(from var(--color-brand-accent) calc(l + 60) c h);
    /*    border: 1px solid var(--color-green);*/
    border-radius: 1.4em;
    border: 1px solid transparent;
    padding: 4px 10px 4px 12px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    gap: 1.5em;
    position: relative;
}

.carrier-chip:hover {
    border: 1px solid lch(from var(--color-brand-accent) calc(l + 20) c h);
}

.remove-chip {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5em;
    width: 1.5em;
    height: 1.5em;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s;
}

#preferredCarriersModal .modal-body {
    overflow: visible !important;
}

#carrierChipContainer .tooltip-inner {
    background-color: #000;
    color: #fff;
    font-size: 0.9rem;
    font-family: Roboto;
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
}

.remove-chip:hover {
    color: #c00;
    background: rgba(0,0,0,0.05);
}

tr.disabled-lookup-row {
    cursor: not-allowed !important;
    opacity: 0.6;
}

tr.disabled-lookup-row td {
    background-color: #a3a3a3 !important;
    color: #666 !important;
}

    .no-transparent {
        margin-right: 0.7em;
    }

.no-transparent:hover {
    background-color: #5a6268 !important;
}

/* Edit Org 'Feel' styles */

.section-group {
    margin-bottom: 2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5em;
}

.section-group:last-of-type {
    border-bottom: none;
}

.section-title {
    margin-bottom: 1em;
}

.color-input-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.color-picker {
    --_height: 3.5em !important;
    width: 3.7em;
    cursor: pointer;
}

.hex-input {
    flex: 1;
}

#feel small,
#Feel small {
    font-size: 0.95em;
    margin-top: 1em;
}

.grid-2-cols {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1.5em;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

#feel input[type="file"],
#Feel input[type="file"] {
    padding: 0.5em 0.75em;
    cursor: pointer;
}

#feel input[type="file"]::-webkit-file-upload-button,
#Feel input[type="file"]::-webkit-file-upload-button{
    padding: 0.5em 1em;
    cursor: pointer;
}

#feel input[type="file"]::file-selector-button,
#Feel input[type="file"]::file-selector-button{
    padding: 0.5em 1em;
    cursor: pointer;
}

input.hex-input.invalid-hex {
    --_border-color: #f39c12;
    border: 1px solid var(--_border-color) !important;
}

select.editable-cell.invalid-field,
input.editable-cell.invalid-field {
    --_border-color: #f39c12;
    border: 2px solid var(--_border-color) !important;
    /*    background-color: #fff9e6;*/
}




/* Carton Scan styling */

/*.carton-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin-bottom: 1.5em;
}*/

.carton-list {
    max-height: 90rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--grey-100);
    border-radius: 4px;
}

.container-page form {
    max-width: 50%;
    margin: 0 auto;
}

.carton-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--grey-100);
    border-radius: 6px;
    background: var(--color-white);
}

.carton-key {
    font-weight: 500;
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
}

.status-success {
    background: var(--color-green);
}

.status-danger {
    background: var(--color-red);
}

.status-warning {
    background: var(--color-warn);
    --color-text: var(--color-warning-text, #212529);
    color: var(--color-text);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-reupload {
    --btn-bg: var(--color-warn, #ffc107);
    --color-text: var(--color-warning-text, #212529);
}
.lookup-width .input-group {
    display: grid !important;
    grid-template-columns: 1fr auto;
}

.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;
    pointer-events: none;
}

.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;
}

.rules-wrapper .markup-rule {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 0.5rem;
}

.rules-wrapper .markup-rule label {
    justify-self: start;
}

.rules-wrapper .markup-rule-controls {
    display: contents;
}

.rules-wrapper .markup-rule-controls p-select {
    width: 100%;
}

.rules-wrapper .markup-rule-controls input[type="number"] {
    width: 100%;
}

.rules-wrapper .markup-rule-controls input[type="number"] {
    padding: 1.3em 0 !important;

}

.option-context .quoted-free-time-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.50rem;
    align-items: baseline;
    margin-bottom: 1em;
}

.quoted-free-time-wrapper input[type="number"] {
    width: 10rem;
}

.cost-sell-row {
    margin-bottom: 1em;
}

.quoted-free-time-wrapper .form-control {
    background-color: #f0f0f0;
    border: 1px solid var(--color-grey-200) !important;
}

.quoted-free-time-wrapper .form-control:focus {
    background-color: #ffffff;
    border: 1px solid var(--color-brand-accent) !important;
    outline: none;
}

#additionalOptionsForm .card:has(input.form-check-input:checked) .quoted-free-time-wrapper .form-control {
    background-color: #ffffff;
    border: 1px solid var(--color-grey-200) !important;
}

#additionalOptionsForm .card:has(input.form-check-input:checked) .quoted-free-time-wrapper .form-control:focus {
    border: 1px solid var(--color-brand-accent) !important;
}

.extra-info {
    color: #888;
    font-size: 0.85em;
}

.customer-details .btn-dropdown-toggle.p-search {
    pointer-events: none;
}

#purchaseOrderCargowiseMappings {
    --_context-height: max-content;
}

#reviseModal [class^="p-"],
#reviseModal [class*=" p-"],
#reviseModal [class="p"] {
    font-family: inherit !important;
    font-weight: normal !important;
}

#reviseModal textarea:focus {
    --_border: 1px solid var(--outline-color) !important;
    border: var(--_border) !important;
    filter: brightness(.97);
}

#reviseModal textarea.is-invalid,
#reviseModal textarea:invalid {
    --_border-color: #f39c12;
    border: 1px solid var(--_border-color) !important;
}

#reviseModal .form-control.is-invalid {
    background-image: none !important;
}

#reviseModal textarea.is-invalid:focus {
    box-shadow: none !important;
}

.percentage-input {
    gap: 0.50rem;
}

.percentage-input span {
    font-weight: 600;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.8rem 1.2rem;
    font-size: 13px;
}

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;
}
.note-color {
    color: var(--color-red);
}

.inline-lookup-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 2.3em !important;
    border-radius: 6px !important;
}

.inline-lookup-wrapper input.text-field {
    flex: 1;
    border: none;
    background: transparent;
    height: 100%;
    font-size: 14px;
    outline: none;
    border-radius: 25px;
}

.inline-lookup-wrapper:focus-within {
    --_border: 1px solid var(--outline-color) !important;
    outline: var(--_border);
    filter: brightness(.97);
}

.inline-lookup-wrapper button.lookup-trigger {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 6px;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-lookup-wrapper button.lookup-trigger:hover {
    color: var(--btn-primary-bg);
}

.note-color {
    color: var(--color-red);
}

.btn-ok.btn-danger {
    --btn-bg: var(--color-red) !important;
    --btn-text-color: var(--color-brand-accent-text, #fff);
    border: none;
}

.btn-grid-control.btn-danger:hover {
    filter: brightness(0.87) !important;
}

#btnDeleteEvent.btn-danger {
    --btn-bg: var(--color-red) !important;
    --btn-text-color: var(--color-brand-accent-text, #fff);
    border: none;
}

#btnDeleteEvent.btn-danger:hover {
    filter: brightness(0.87) !important;
}

.btn-ok.btn-danger {
    --btn-bg: var(--color-red) !important;
    --btn-text-color: var(--color-brand-accent-text, #fff);
    border: none;
}

.btn-ok.btn-danger:hover {
    filter: brightness(0.87) !important;
}

.box-footer-action {
    display: flex;
    justify-content: flex-start;
    padding: 4px;
    gap: 10px;
    font-size: 12px;
}

.box-footer-action .btn {
    padding: 10px 20px;
}

.btn-back {
    display: inline-flex;
    width: auto;
}

#importModal input[type="file"] {
    padding: 0.5em 0.75em;
    cursor: pointer;
}

#importModal input[type="file"]::file-selector-button {
  padding: 0.5em 0.75em;
  cursor: pointer;
}

#importModal .modal-footer {
    justify-content: flex-end !important;
}
/* Purchase Order Management & Package Management Grid System & Styling */

.form-grid {
    display: grid;
    gap: 25px;
    padding: 0px 10px;
}

.form-grid.cols-1 {
    grid-template-columns: 1fr;
}

.form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: 15px;
}

.col-block {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    background: var(--button-bg-hover);
}

.form-group label {
    margin-bottom: 3px;
}

.form-action-btn {
    margin-left: 0.7em;
    margin-top: 1.2em;
}

.form-action-btn #btn-save,
.form-action-btn button{
    padding: 0.6em 2em;
}

.section-line {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 14px;
}

.tab-content > form {
    margin-top: 10px;
}

.form-group input.form-control {
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/* Purchase Order Management & Package Management Styling */