.erp-std-dialog-backdrop {
--erp-density-scale: .9;
--erp-density-mode: 90;
--erp-primary: #3f6fb5;
--erp-primary-hover: #365f9b;
--erp-primary-light: #f1f5fb;
--erp-green: #0f9f6e;
--erp-green-hover: #0b8159;
--erp-schedule-event-sales: #245ac7;
--erp-schedule-event-activity: #07845b;
--erp-schedule-event-order: #c0800a;
--erp-schedule-event-memo: #8056b7;
--erp-text: #0f1b3d;
--erp-muted: #667085;
--erp-placeholder: #c4cbd4;
--erp-header-divider: var(--erp-border);
--erp-border: #dfe6f2;
--erp-border-strong: #cfd8e8;
--erp-panel: #ffffff;
--erp-panel-soft: #f8fafc;
--erp-hover: #f3f3f3;
--erp-selected: #e9e9e9;
--erp-font-size: 11px;
--erp-font-size-base: var(--erp-font-size);
--erp-font-size-sm: 10px;
--erp-font-size-lg: 12px;
--erp-typo-page-title-size: 14px;
--erp-typo-page-title-weight: 700;
--erp-typo-page-title-line-height: 20px;
--erp-typo-card-title-size: 13px;
--erp-typo-card-title-weight: 700;
--erp-typo-card-title-line-height: 16px;
--erp-typo-modal-title-size: 14px;
--erp-typo-modal-title-weight: 700;
--erp-typo-modal-title-line-height: 20px;
--erp-typo-field-key-size: 11px;
--erp-typo-field-key-weight: 600;
--erp-typo-field-key-line-height: 15px;
--erp-typo-field-key-color: #253052;
--erp-typo-form-label-size: var(--erp-typo-field-key-size);
--erp-typo-form-label-weight: var(--erp-typo-field-key-weight);
--erp-typo-form-label-line-height: var(--erp-typo-field-key-line-height);
--erp-typo-form-label-color: var(--erp-typo-field-key-color);
--erp-typo-grid-header-size: var(--erp-typo-field-key-size);
--erp-typo-grid-header-weight: var(--erp-typo-field-key-weight);
--erp-typo-grid-header-line-height: var(--erp-typo-field-key-line-height);
--erp-typo-grid-header-color: var(--erp-typo-field-key-color);
--erp-typo-form-value-size: 11px;
--erp-typo-form-value-weight: 400;
--erp-typo-form-value-line-height: 15px;
--erp-typo-grid-cell-size: 11px;
--erp-typo-grid-cell-weight: 400;
--erp-typo-badge-size: 11px;
--erp-typo-badge-weight: 600;
--erp-typo-empty-size: 12px;
--erp-typo-empty-weight: 500;
--erp-typo-empty-line-height: 20px;
--erp-control-height: 28px;
--erp-button-height: var(--erp-control-height);
--erp-icon-button-size: 22px;
--erp-inline-refresh-button-size: 24px;
--erp-button-min-width: 37px;
--erp-popup-button-min-width: 40px;
--erp-button-padding-x: 8px;
--erp-grid-action-button-height: 20px;
--erp-grid-action-button-width: 46px;
--erp-grid-action-button-min-width: 35px;
--erp-grid-action-button-padding-x: 7px;
--erp-select-chip-height: 18px;
--erp-select-chip-remove-size: 12px;
--erp-select-chip-padding-x: 7px;
--erp-input-height: var(--erp-control-height);
--erp-select-height: var(--erp-control-height);
--erp-grid-row-height: 28px;
--erp-grid-media-row-height: 74px;
--erp-grid-header-height: 28px;
--erp-grid-footer-height: 30px;
--erp-grid-scroll-thumb-thickness: 3px;
--erp-detail-card-grid-height: 300px;
--erp-grid-cell-padding-x: 5px;
--erp-gap-xs: 3px;
--erp-gap-sm: 4px;
--erp-gap-md: 6px;
--erp-gap-lg: 8px;
--erp-padding-xs: 3px;
--erp-padding-sm: 5px;
--erp-padding-md: 6px;
--erp-padding-lg: 8px;
--erp-card-padding: 6px;
--erp-popup-padding: 8px;
--erp-modal-padding: 8px;
--erp-modal-card-stack-gap: var(--erp-popup-padding);
--erp-toolbar-height: var(--erp-control-height);
--erp-search-row-height: var(--erp-control-height);
--erp-toolbar-gap: 4px;
--erp-button-gap: 4px;
--erp-field-gap: 5px;
--erp-field-card-control-radius: 0px;
--erp-field-card-control-border-width: 0 1px 1px 0;
--erp-card-radius: 6px;
--erp-control-radius: var(--input-radius);
--erp-pill-radius: 999px;
--erp-select-dropdown-bg: #ffffff;
--erp-select-dropdown-border: #d6e0ee;
--erp-select-dropdown-radius: 6px;
--erp-select-dropdown-shadow: none;
--erp-select-dropdown-option-height: 34px;
--erp-select-dropdown-option-padding-x: 14px;
--erp-select-dropdown-option-bg-hover: #f1f5fb;
--erp-select-dropdown-option-bg-selected: #ffffff;
--erp-select-dropdown-option-color: #1f2a44;
--erp-select-dropdown-scroll-track: rgba(245, 248, 252, .82);
--erp-select-dropdown-scroll-thumb: #a9bad2;
--erp-grid-cell-radius: 0;
--erp-radius-md: var(--erp-card-radius);
--erp-card-gap: 10px;
--erp-page-gutter-x: var(--erp-card-gap);
--erp-section-gap-y: var(--erp-gap-sm);
--erp-section-pad-x: var(--erp-padding-lg);
--erp-section-pad-y: var(--erp-card-padding);
--erp-company-pad-y: var(--erp-section-pad-x);
--erp-workspace-header-height: 40px;
--erp-workspace-header-sticky-top: var(--header-height);
--erp-workspace-header-z-index: 118;
--erp-workspace-header-gap: var(--erp-gap-md);
--erp-workspace-content-gap: var(--erp-card-gap);
--erp-workspace-card-gap: var(--erp-card-gap);
--erp-workspace-card-pad: var(--erp-section-pad-x);
--erp-workspace-title-offset: calc(var(--erp-button-min-width) + var(--erp-button-gap) + 1px);
--erp-icon-size: 14px;
--erp-toolbar-icon-size: 14px;
--erp-action-icon-size: 13px;
--erp-dropdown-arrow-size: 11px;
--z-dialog: 30100;
}
@scope (.erp-std-dialog) {
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--erp-button-height);
    min-height: var(--erp-button-height);
    min-width: var(--erp-button-min-width);
    padding: 0 var(--erp-button-padding-x);
    font-size: var(--erp-font-size);
    font-weight: 700;
    line-height: 1.25;
    border-radius: var(--erp-control-radius);
    box-shadow: none;
}

/* ICON kind uses the same size token as existing icon actions. */
.btn.erp-icon-button,
.btn[data-erp-button-kind="ICON"] {
    --erp-button-height: var(--erp-icon-button-size);
    --erp-button-min-width: var(--erp-icon-button-size);
    --erp-button-padding-x: 0px;
    width: var(--erp-icon-button-size);
    min-width: var(--erp-icon-button-size);
    max-width: var(--erp-icon-button-size);
    height: var(--erp-icon-button-size);
    min-height: var(--erp-icon-button-size);
    max-height: var(--erp-icon-button-size);
    padding: 0;
    flex: 0 0 var(--erp-icon-button-size);
    gap: 0;
}

.btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: var(--erp-action-icon-size);
    line-height: 1;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--erp-primary);
    border-color: var(--erp-primary);
}

.btn-primary:hover {
    background-color: var(--erp-primary-hover);
    border-color: var(--erp-primary-hover);
}

.btn-light-primary,
.btn-basic,
.btn-reset2,
.btn-download,
.btn-excel {
    color: var(--erp-text);
    background: #ffffff;
    border: 1px solid var(--erp-border-strong);
}

.btn-check,
.btn-search,
.btn-save,
.btn-plus,
.btn-primary,
.btn-navy {
    color: #ffffff;
    background: var(--erp-primary);
    border-color: var(--erp-primary);
}

.btn-reset,
.btn-cancel,
.btn-close,
.btn-modify {
    color: var(--erp-primary);
    background: #ffffff;
    border: 1px solid #b8caf7;
}

.btn-light-primary:hover,
.btn-basic:hover,
.btn-reset:hover,
.btn-reset2:hover,
.btn-download:hover,
.btn-excel:hover,
.btn-cancel:hover,
.btn-close:hover,
.btn-modify:hover {
    color: var(--erp-primary);
    background: var(--erp-primary-light);
    border-color: #b8caf7;
}

.btn-check:hover,
.btn-search:hover,
.btn-save:hover,
.btn-plus:hover,
.btn-primary:hover,
.btn-navy:hover {
    color: #ffffff;
    background: var(--erp-primary-hover);
    border-color: var(--erp-primary-hover);
}

.btn-delete {
    color: #e03131;
    background: #fff5f5;
    border-color: #ffc9c9;
}


}
/* Standard lightweight alert/confirm dialog */
/* MINI_INFO_MODAL_SET: natural content height, with one viewport safety scroll boundary. */
.erp-common-open-action-modal.erp-modal-frame-layout.erp-mini-info-modal > .modal-dialog {
  margin: 24px auto;
  height: auto;
  max-height: calc(100dvh - 48px);
}
.erp-common-open-action-modal.erp-modal-frame-layout.erp-mini-info-modal .modal-content {
  height: auto;
  max-height: calc(100dvh - 48px);
}
.erp-common-open-action-modal.erp-modal-frame-layout.erp-mini-info-modal .erp-common-modal-body {
  flex: 0 1 auto;
  background: var(--erp-card-bg, #fff);
}
.erp-common-open-action-modal.erp-modal-frame-layout.erp-mini-info-modal .erp-common-modal-content-host {
  height: auto;
  min-height: 0;
  padding: 16px;
  overflow: visible;
  background: var(--erp-card-bg, #fff);
}
.erp-mini-info-content { color: var(--erp-text); font-size: var(--erp-typo-body-size, 13px); }
.erp-mini-info-content > :last-child { margin-bottom: 0; }

.erp-std-dialog-backdrop {
    position: fixed;
    inset: 0;
    width: var(--erp-scaled-viewport-width, 100vw);
    height: var(--erp-scaled-viewport-height, 100vh);
    z-index: var(--z-dialog);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .28);
}

.erp-std-dialog-backdrop.is-open {
    display: flex;
}

.erp-std-dialog-backdrop.erp-std-dialog-transparent-backdrop {
    background: transparent;
}

.erp-std-dialog {
    width: min(520px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
    border: 1px solid #cfdcf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.erp-std-dialog-backdrop.erp-delivery-action-preflight-dialog .erp-std-dialog:not(.erp-std-dialog-roomy):not(.erp-std-dialog-wide) {
    width: min(624px, calc(100vw - 40px));
}

.erp-std-dialog-backdrop.erp-delivery-action-preflight-dialog .erp-std-dialog-body {
    max-height: calc(100dvh - 180px);
    overflow: auto;
}

.erp-std-dialog-backdrop.erp-delivery-action-preflight-dialog
    .erp-std-dialog-item:not(:has(.erp-grid-state-badge)) {
    padding-left: 16px;
    font-weight: 700;
}

.erp-std-dialog-head {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-bottom: 1px solid #e4ebf5;
    color: #001b4d;
    font-size: 13px;
}

.erp-std-dialog-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px;
    color: #001b4d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: pre-line;
}

.erp-std-dialog-head,
.erp-std-dialog-actions {
    flex-shrink: 0;
}

.erp-std-dialog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.erp-std-dialog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.erp-std-dialog-item-text {
    flex: 1 1 auto;
    min-width: 0;
}

.erp-lookup-row-disabled {
    color: var(--erp-text-muted, #94a3b8) !important;
    opacity: .55;
}

.erp-lookup-row-disabled.erp-lookup-row-disabled-soft {
    opacity: .78;
}

.erp-grid-row-disabled {
    color: var(--erp-text-muted, #94a3b8) !important;
    opacity: .55;
}

.erp-grid-row-disabled .aui-grid-row-check-column {
    visibility: hidden !important;
    pointer-events: none !important;
}

.erp-std-dialog-item .erp-grid-state-badge {
    flex: 0 0 auto;
}

.erp-field-group-note {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-secondary-color, #64748b);
}

.erp-std-dialog-description {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e4ebf5;
}

.erp-std-dialog.erp-std-dialog-has-table { width: min(720px, calc(100vw - 40px)); }
.erp-std-dialog.erp-std-dialog-compact { width: min(432px, calc(100vw - 40px)); }
.erp-std-dialog.erp-std-dialog-wide { width: calc(100vw - 40px); }
.erp-std-dialog.erp-std-dialog-roomy { width: min(936px, calc(100vw - 40px)); }
.erp-std-dialog-has-table .erp-std-dialog-body { max-height: calc(100dvh - 180px); overflow: auto; }
.erp-std-dialog-table-scroll { overflow-x: auto; }
.erp-std-dialog-grid { height: var(--erp-detail-card-grid-height, 300px); min-width: 0; }
.erp-std-dialog-has-table .erp-std-dialog-body { padding-top: 0; }
.erp-std-dialog-grid-caption { display: flex; align-items: center; min-height: 38px; margin: 0; font-weight: 600; }
.erp-std-dialog-grid-total { background: #fff4a3 !important; color: #654800 !important; font-weight: 700; }
.erp-std-dialog-total-right, .erp-std-dialog-total-right .aui-grid-footer-renderer { text-align: right !important; }
.erp-std-dialog-total-center, .erp-std-dialog-total-center .aui-grid-footer-renderer { text-align: center !important; }
.erp-std-dialog-total-right .aui-grid-footer-renderer { justify-content: flex-end !important; }
.erp-std-dialog-total-center .aui-grid-footer-renderer { justify-content: center !important; }
.erp-std-dialog-grid .erp-std-dialog-negative { color: #dc2626 !important; }
.erp-std-dialog-grid-fit .aui-grid-table tr:last-child .aui-grid-default-column,
.erp-std-dialog-grid-fit .aui-grid-table tr:last-child .aui-grid-row-num-column { border-bottom-width: 0; }
.erp-std-dialog-grid:has(.erp-std-dialog-grid-total) .aui-grid-default-footer { background: #fff4a3 !important; }
.erp-std-dialog-grid:has(.erp-std-dialog-grid-total) .aui-grid-footer-panel { background: #fff4a3 !important; }
html[data-mode="dark"] .erp-std-dialog-grid:has(.erp-std-dialog-grid-total) .aui-grid-default-footer { background: #564916 !important; }
html[data-mode="dark"] .erp-std-dialog-grid:has(.erp-std-dialog-grid-total) .aui-grid-footer-panel { background: #564916 !important; }
html[data-mode="dark"] .erp-std-dialog-grid-total { background: #564916 !important; color: #ffe08a !important; }
.erp-std-dialog-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-weight: 400; }
.erp-std-dialog-table caption { caption-side: top; text-align: left; color: inherit; font-weight: 600; padding: 0 0 12px; white-space: normal; }
.erp-std-dialog-table th, .erp-std-dialog-table td { border: 1px solid #dce5f3; padding: 10px 12px; text-align: left; }
.erp-std-dialog-table thead { background: #f1f5fc; }
.erp-std-dialog-table .erp-std-dialog-table-number { text-align: right; font-variant-numeric: tabular-nums; }
.erp-std-dialog-table tfoot { background: #fff4a3; color: #654800; font-weight: 700; }
html[data-mode="dark"] .erp-std-dialog-table thead { background: #27374e; }
html[data-mode="dark"] .erp-std-dialog-table th, html[data-mode="dark"] .erp-std-dialog-table td { border-color: #42536d; }
html[data-mode="dark"] .erp-std-dialog-table tfoot { background: #564916; color: #ffe08a; }

.erp-std-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 16px 14px;
}

.erp-std-dialog-actions .btn {
    min-width: 58px;
}

/* Respect the shared dialog's optional-action visibility despite generic button display overrides. */
.erp-std-dialog-actions .btn[hidden] {
    display: none !important;
}

.erp-std-dialog-actions .erp-std-dialog-custom {
    margin-right: auto;
}

.erp-std-dialog-actions .erp-std-dialog-custom[hidden] {
    display: none !important;
}

/* Opt-in choice dialog: primary and optional choices left, cancel right. */
[data-action-layout="CHOICES_LEFT"] .erp-std-dialog-actions .erp-std-dialog-confirm { order: 1; }
[data-action-layout="CHOICES_LEFT"] .erp-std-dialog-actions .erp-std-dialog-alternate { order: 2; }
[data-action-layout="CHOICES_LEFT"] .erp-std-dialog-actions .erp-std-dialog-custom { order: 3; margin-right: 0; }
[data-action-layout="CHOICES_LEFT"] .erp-std-dialog-actions .erp-std-dialog-cancel { order: 4; margin-left: auto; }

.erp-std-copy-alert {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
}

.erp-std-copy-alert .form-control {
    flex: 1 1 auto;
    min-width: 0;
    font-family: Consolas, "Courier New", monospace;
}

.erp-std-copy-alert-btn {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

.erp-std-dialog-confirm::before,
.erp-std-dialog-confirm::after {
    content: none !important;
    display: none !important;
}

.erp-std-dialog-confirm span {
    display: inline !important;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

/* STANDARD_DIALOG_DARK_CONTRACT: alert, confirm, prompt and copy-alert. */
html[data-mode="dark"] body .erp-std-dialog-backdrop {
    background: rgba(2, 6, 23, .72) !important;
}

html[data-mode="dark"] body .erp-std-dialog {
    border-color: #334155 !important;
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #e5e7eb !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42) !important;
}

html[data-mode="dark"] body .erp-std-dialog-head {
    border-bottom-color: #334155 !important;
    background: #111827 !important;
    background-color: #111827 !important;
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
}

html[data-mode="dark"] body .erp-std-dialog-body,
html[data-mode="dark"] body .erp-std-dialog-actions {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #e5e7eb !important;
    -webkit-text-fill-color: #e5e7eb !important;
}

html[data-mode="dark"] body .erp-std-dialog :is(input.form-control, textarea.form-control, select.form-control) {
    border-color: #475569 !important;
    background: #111827 !important;
    background-color: #111827 !important;
    color: #e5e7eb !important;
    -webkit-text-fill-color: #e5e7eb !important;
    caret-color: #93c5fd !important;
}

html[data-mode="dark"] body .erp-std-dialog :is(input.form-control, textarea.form-control)::placeholder {
    color: var(--erp-placeholder) !important;
    -webkit-text-fill-color: var(--erp-placeholder) !important;
}

html[data-mode="dark"] body .erp-std-dialog-actions .erp-std-dialog-cancel,
html[data-mode="dark"] body .erp-std-dialog .erp-std-copy-alert-btn {
    border-color: #475569 !important;
    background: #172033 !important;
    background-color: #172033 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-mode="dark"] body .erp-std-dialog-actions .erp-std-dialog-confirm {
    border-color: #3f7bc4 !important;
    background: #2f6fb9 !important;
    background-color: #2f6fb9 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-mode="dark"] body .erp-std-dialog-actions :is(.erp-std-dialog-cancel, .erp-std-dialog-confirm):disabled {
    border-color: #334155 !important;
    background: #172033 !important;
    background-color: #172033 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: .72;
}

