/* Agile ERP — Gate Entry visual standard (desktop).
   Visual language only. Does not move toolbars, change button metrics on
   hover/focus/disabled, or alter form structure. Mobile rules stay in the
   stylesheets loaded before this file. */

@media (min-width: 761px) {
  :root {
    --ge-blue: #5d6872;
    --ge-blue-deep: #515c66;
    --ge-blue-btn: #1a6aad;
    --ge-blue-btn-line: #155c98;
    --ge-blue-hover: #2180c4;
    --ge-orange: #f39a22;
    --ge-orange-line: #c97310;
    --ge-orange-hover: #ffb03a;
    --ge-ink: #14283c;
    --ge-label: #1a3e5c;
    --ge-muted: #6d7f90;
    --ge-line: #c5d4e4;
    --ge-card: #f7fbfe;
    --ge-canvas: #f3f6fa;
    --ge-head: #e4eef8;
    --ge-hover: #e7f3fb;
    --ge-selected: #d4e7f7;
    --ge-font: "Segoe UI", Inter, Arial, sans-serif;
  }

  html body #appShell .main-content {
    background: var(--ge-canvas) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(.ae2-report-page):not(#agileProductionDashboard):not(#agileOwnerDashboard):not(#agileOwnerHanger):not(#agileOwnerDetails) {
    background: #f4f8fc !important;
    border-color: #c5d6e6 !important;
    color: var(--ge-ink) !important;
    font-family: var(--ge-font) !important;
  }

  /* Form title bars — color and type only. Position, height and flex stay. */
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(.ae2-report-page):not(#agileProductionDashboard):not(#agileOwnerDashboard):not(#agileOwnerHanger):not(#agileOwnerDetails) :is(
    .prime-form-title, .ai-sf__header-top, .ai-tf-header, .ai-sf-header,
    .ge42-title, .ge42-titlebar, .siv-titlebar, .siv-header, .po6-head,
    .ppm-titlebar, .pm-standard-header, .pm-standard-titlebar, .pm-party-titlebar,
    .rc-titlebar, .pe1-titlebar, .da-ge-titlebar, .da-ge-header, .co-ge-titlebar,
    .tr-final-titlebar, .prtv-titlebar, .vds29-titlebar, .ml-ge-titlebar,
    .cpcsh, .bm-titlebar, .ahl-top, .cbl-head, .agile-title, [class$="-titlebar"]
  ) {
    background: linear-gradient(90deg, var(--ge-blue-deep), var(--ge-blue)) !important;
    background-image: linear-gradient(90deg, var(--ge-blue-deep), var(--ge-blue)) !important;
    border-color: #46515a !important;
    border-bottom-color: #46515a !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: var(--ge-font) !important;
    box-shadow: none !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    .prime-form-title, .ai-sf__header-top, .ai-tf-header, .ai-sf-header,
    .ge42-title, .ge42-titlebar, .siv-titlebar, .po6-head, .ppm-titlebar,
    .pm-standard-header, .pm-standard-titlebar, .pm-party-titlebar, .rc-titlebar,
    .pe1-titlebar, .da-ge-titlebar, .co-ge-titlebar, .ahl-top, .cbl-head, .agile-title,
    [class$="-titlebar"]
  ) :is(span, b, strong, i, em, small) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page :is(
    [class*="mode-badge"], [class$="-mode"], .erp-mode-badge, .prime-global-mode-badge,
    .ge42-mode-badge, .cbl-mode, .ahl-view-mode
  ) {
    background: #6a7580 !important;
    border-color: #e6ebf0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-head-info,
  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-head-info :is(b, strong, span) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body #appShell:not(#agile-grey-lock) .ge42-config,
  html body #appShell:not(#agile-grey-lock) :is(.ai-sf-config-btn, button[class*="config"]) {
    background: transparent !important;
    background-image: none !important;
    color: #ffd27a !important;
    -webkit-text-fill-color: #ffd27a !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  /* Section bars and field cards */
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .panel-title, [class*="grid-title"], [class*="detail-heading"], .section-title
  ):not(.ge42-title):not(.ai-sf-header):not([class$="-titlebar"]) {
    background: #e7f1fa !important;
    color: #163a56 !important;
    -webkit-text-fill-color: #163a56 !important;
    border-bottom-color: #d0e0ec !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .prime-fields, .ai-sf__body, .ai-tf-fields, .form-grid, .professional-module-form,
    .advanced-challan-form, [class$="-fields"], [class*="header-card"], [class*="form-card"],
    .panel, .ge42-header-panel
  ) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(label, .field-label, .form-label) {
    color: var(--ge-label) !important;
    -webkit-text-fill-color: var(--ge-label) !important;
    font-family: var(--ge-font) !important;
    font-weight: 700 !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea
  ) {
    background: #fff !important;
    background-image: none !important;
    color: var(--ge-ink) !important;
    -webkit-text-fill-color: var(--ge-ink) !important;
    border-color: var(--ge-line) !important;
    border-radius: 2px !important;
    font-family: var(--ge-font) !important;
    box-shadow: none !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea
  ):focus {
    outline: none !important;
    border-color: #1a6eae !important;
    box-shadow: 0 0 0 2px rgba(26, 110, 174, .16) !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    input[readonly], input:disabled, select:disabled, textarea:disabled
  ) {
    background: #f3f7fb !important;
    color: #3e5164 !important;
    -webkit-text-fill-color: #3e5164 !important;
    border-color: #d5e0ea !important;
    opacity: 1 !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page input::placeholder,
  html body #appShell:not(#agile-grey-lock) .main-content > .page textarea::placeholder {
    color: #8a9aab !important;
    -webkit-text-fill-color: #8a9aab !important;
    opacity: 1 !important;
    font-weight: 500 !important;
  }

  /* Toolbars: paint only. Metrics, gap, justification and placement stay. */
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .ae50-restored-toolbar, .ae50-phase1-toolbar, .ae50-phase2-toolbar, .ae50-p4-toolbar, .ai-tf-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .bm-toolbar, .rc-toolbar, .mi-toolbar, .mrt-toolbar,
    .pe1-toolbar, .so2tb, .cdstb, .siv-owned-toolbar, .da-ge-toolbar, .co-ge-toolbar, .vds29-bar,
    .prtv-toolbar, .po6-bar, .ppm-toolbar, .pm-party-toolbar, .tr-final-toolbar, .cpcstb, .prime-toolbar,
    .av2-toolbar, .apo-desktop-toolbar-standard, .agile-toolbar, .cbl-toolbar,
    [class$="-toolbar"], [data-form-toolbar]
  ) {
    background: linear-gradient(180deg, #5d6872 0%, #515c66 100%) !important;
    background-image: linear-gradient(180deg, #5d6872 0%, #515c66 100%) !important;
    border-color: #46515a !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(12, 48, 84, .16) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .ae50-restored-toolbar, .ae50-phase1-toolbar, .ae50-phase2-toolbar, .ae50-p4-toolbar, .ai-tf-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .bm-toolbar, .rc-toolbar, .mi-toolbar, .mrt-toolbar,
    .pe1-toolbar, .so2tb, .cdstb, .siv-owned-toolbar, .da-ge-toolbar, .co-ge-toolbar, .vds29-bar,
    .prtv-toolbar, .po6-bar, .ppm-toolbar, .pm-party-toolbar, .tr-final-toolbar, .cpcstb, .prime-toolbar,
    .av2-toolbar, .apo-desktop-toolbar-standard, .agile-toolbar, .cbl-toolbar,
    [class$="-toolbar"], [data-form-toolbar]
  ) :is(.ge42-toolbar-caption, .ai-sf-toolbar-actions) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .ae50-restored-toolbar, .ae50-phase1-toolbar, .ae50-phase2-toolbar, .ae50-p4-toolbar, .ai-tf-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .bm-toolbar, .rc-toolbar, .mi-toolbar, .mrt-toolbar,
    .pe1-toolbar, .so2tb, .cdstb, .siv-owned-toolbar, .da-ge-toolbar, .co-ge-toolbar, .vds29-bar,
    .prtv-toolbar, .po6-bar, .ppm-toolbar, .pm-party-toolbar, .tr-final-toolbar, .cpcstb, .prime-toolbar,
    .av2-toolbar, .apo-desktop-toolbar-standard, .agile-toolbar, .cbl-toolbar,
    [class$="-toolbar"], [data-form-toolbar]
  ) button:not([class*="config"]):not(.ge42-config):not(.cbl-toggle):not(.cbl-del):not(.cbl-add):not(.cbl-addbar):not(.cbl-row-act),
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .prime-toolbar, .av2-toolbar, .cbl-toolbar,
    .apo-desktop-toolbar-standard, .agile-toolbar, [class$="-toolbar"], [data-form-toolbar]
  ) button:not([class*="config"]):not(.ge42-config):is(:hover, :focus, :active, :disabled) {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    border-style: solid !important;
    border-width: 1px !important;
    box-sizing: border-box !important;
    background-image: none !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .ae50-restored-toolbar, .ae50-phase1-toolbar, .ae50-phase2-toolbar, .ae50-p4-toolbar, .ai-tf-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .bm-toolbar, .rc-toolbar, .mi-toolbar, .mrt-toolbar,
    .pe1-toolbar, .so2tb, .cdstb, .siv-owned-toolbar, .da-ge-toolbar, .co-ge-toolbar, .vds29-bar,
    .prtv-toolbar, .po6-bar, .ppm-toolbar, .pm-party-toolbar, .tr-final-toolbar, .cpcstb, .prime-toolbar,
    .av2-toolbar, .apo-desktop-toolbar-standard, .agile-toolbar, .cbl-toolbar,
    [class$="-toolbar"], [data-form-toolbar]
  ) button:not([class*="config"]):not(.ge42-config):not(.cbl-toggle):not(.cbl-del):not(.cbl-add):not(.cbl-addbar):not(.cbl-row-act):not(:has(.fa-plus)):not([data-act="add"]):not([data-toolbar="Add"]):not([data-ge42="add"]):not([data-action="add"]) {
    background: var(--ge-orange) !important;
    background-color: var(--ge-orange) !important;
    border-color: var(--ge-orange-line) !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    box-shadow: 0 1px 0 rgba(8, 36, 64, .18) !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .prime-toolbar, .av2-toolbar, .cbl-toolbar,
    .apo-desktop-toolbar-standard, .agile-toolbar, [class$="-toolbar"], [data-form-toolbar]
  ) button:not([class*="config"]):not(:has(.fa-plus)):not([data-act="add"]):not([data-toolbar="Add"]):not([data-ge42="add"]):not([data-action="add"]):is(:hover, :focus-visible) {
    background: var(--ge-orange-hover) !important;
    background-color: var(--ge-orange-hover) !important;
    border-color: var(--ge-orange-line) !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    box-shadow: 0 1px 0 rgba(8, 36, 64, .18) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .ge42-toolbar, .clean-action-toolbar, .erp-action-toolbar, .safe-erp-toolbar, .final-action-toolbar,
    .module-toolbar, .action-toolbar, .form-toolbar, .prime-toolbar, .av2-toolbar, .cbl-toolbar,
    .apo-desktop-toolbar-standard, .agile-toolbar, [class$="-toolbar"], [data-form-toolbar]
  ) button:not([class*="config"]):is(:has(.fa-plus), [data-act="add"], [data-toolbar="Add"], [data-ge42="add"], [data-action="add"]) {
    background: var(--ge-orange) !important;
    background-color: var(--ge-orange) !important;
    border-color: var(--ge-orange-line) !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    box-shadow: 0 1px 0 rgba(8, 36, 64, .18) !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    [class$="-toolbar"], [data-form-toolbar], .av2-toolbar, .cbl-toolbar, .apo-desktop-toolbar-standard, .prime-toolbar, .ge42-toolbar
  ) button:is(:has(.fa-plus), [data-act="add"], [data-toolbar="Add"], [data-ge42="add"], [data-action="add"]):is(:hover, :focus-visible) {
    background: var(--ge-orange-hover) !important;
    background-color: var(--ge-orange-hover) !important;
    border-color: var(--ge-orange-line) !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
  }

  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope):not(#agile-button-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) :is(
    [class$="-toolbar"], [data-form-toolbar], .av2-toolbar, .cbl-toolbar, .ge42-toolbar, .prime-toolbar, .apo-desktop-toolbar-standard
  ) button:disabled {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    cursor: default !important;
    background: #f39a22 !important;
    background-color: #f39a22 !important;
    background-image: none !important;
    border-color: #c97310 !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
  }

  /* Grids */
  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table {
    background: #fff !important;
    color: var(--ge-ink) !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table thead th {
    background: var(--ge-head) !important;
    color: #173a56 !important;
    -webkit-text-fill-color: #173a56 !important;
    border-color: #c5d6e6 !important;
    font-family: var(--ge-font) !important;
    font-weight: 700 !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table tbody td {
    background: #fff !important;
    color: var(--ge-ink) !important;
    -webkit-text-fill-color: var(--ge-ink) !important;
    border-color: #d5e1ec !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table tbody tr:nth-child(even) > td {
    background: #f7fbfe !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table tbody tr:hover > td {
    background: #f3f8fd !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table tbody td:focus-within {
    background: #eaf4fc !important;
    box-shadow: inset 0 0 0 1px #1a6eae !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard) table :is(input[type="number"], .num, [class*="amount"], [class*="qty"], [class*="rate"]) {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
  }

  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports) table tfoot th,
  html body #appShell:not(#agile-grey-lock) .main-content > .page:not(#dashboard):not(#reports) table tfoot td {
    background: #e7f2fb !important;
    color: #14365c !important;
    -webkit-text-fill-color: #14365c !important;
    border-color: #c5d6e6 !important;
    font-weight: 800 !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-tax-summary {
    background: #e8f3fb !important;
    color: #163a56 !important;
    border: 1px solid #d0e2f0 !important;
    border-radius: 2px !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-tax-summary > span {
    background: #f4f9fd !important;
    border: 1px solid #d5e6f3 !important;
    border-radius: 2px !important;
    padding: 6px 8px !important;
    color: #1a3e5c !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-tax-summary strong {
    color: #14365c !important;
    -webkit-text-fill-color: #14365c !important;
    font-weight: 800 !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-tax-summary > span:last-child {
    background: #dceaf8 !important;
    border-color: #b9d3ea !important;
  }

  html body #appShell:not(#agile-grey-lock) #gateEntry .ge42-tax-summary > span:last-child strong {
    color: #0e4f86 !important;
    -webkit-text-fill-color: #0e4f86 !important;
  }

  /* Hanger Loading keeps Carrier Bar → Hanger → Loading. Visual family only. */
  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading {
    background: #f4f8fc !important;
    color: var(--ge-ink) !important;
    font-family: var(--ge-font) !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-carrier {
    background: #fff !important;
    border-color: #cfe0ef !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-carrier-top {
    background: #d9ebf8 !important;
    color: #12396d !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-hanger {
    border-color: #d3e2f0 !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-hanger-top {
    background: #eef6fd !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-scroll th {
    background: var(--ge-head) !important;
    color: #173a56 !important;
    -webkit-text-fill-color: #173a56 !important;
    border-color: #c5d6e6 !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-scroll td {
    border-color: #d5e1ec !important;
    background: #fff !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-addbar {
    background: var(--ge-orange) !important;
    background-image: none !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: var(--ge-orange-line) !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-add.hanger {
    background: var(--ge-blue-btn) !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--ge-blue-btn-line) !important;
    transform: none !important;
    transition: none !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-add.part {
    background: #e8f3fb !important;
    color: #1f78c4 !important;
    -webkit-text-fill-color: #1f78c4 !important;
    border-color: #b7d0e6 !important;
    transform: none !important;
    transition: none !important;
  }

  html body #appShell:not(#agile-grey-lock) #agileCarrierBarLoading .cbl-total {
    background: #e7f2fb !important;
    color: #14365c !important;
    border-top: 1px solid #d0e2f0 !important;
  }

  /* Searchable LOV — one white panel, one row treatment. No black panels. */
  html body:not(#agile-grey-lock) :is(
    .search-suggestions, .sales-part-suggestions, .co-dispatch-suggestions,
    .gate-part-below-suggestions, .gate-same-part-suggestions, .co-part-suggestions,
    .gate-row-suggestions, .gate-part-final-suggestions, .ppm-part-suggestions,
    .ge42-dd, .ge45-part-dd, .ae2-smart-suggestions, .ae2-gate-party-suggestions,
    .ae2-gate-party-absolute-box, .ae2-party-final-suggestions, .ae50-gate-dropdown,
    .ae2-gate-part-dropdown, .cbl-lov, .mi-lov, .mrt-lov, .ae50-mrn-gate-dd,
    .challan-report-suggestions, .prime-jr-dd
  ):not(.ae50-dropdown-menu):not(.report-submenu):not(.chatbot-suggestions) {
    background: #fff !important;
    background-image: none !important;
    color: var(--ge-ink) !important;
    border: 1px solid #1686c9 !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18) !important;
    max-height: 170px !important;
    font-family: var(--ge-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  html body:not(#agile-grey-lock) :is(
    .search-suggestions, .sales-part-suggestions, .co-dispatch-suggestions,
    .gate-part-below-suggestions, .gate-same-part-suggestions, .co-part-suggestions,
    .gate-row-suggestions, .ppm-part-suggestions, .ge42-dd, .ge45-part-dd,
    .ae2-smart-suggestions, .cbl-lov, .mi-lov, .mrt-lov, .ae50-mrn-gate-dd, .prime-jr-dd
  ) :is(div, li, .sales-part-option, .cbl-lov-opt, .search-suggestion) {
    background: #fff !important;
    color: var(--ge-ink) !important;
    -webkit-text-fill-color: var(--ge-ink) !important;
    border-bottom: 1px solid #e1ebf3 !important;
    font-family: var(--ge-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }

  html body:not(#agile-grey-lock) :is(.ge42-dd, .ge45-part-dd, .search-suggestions, .sales-part-suggestions, .cbl-lov) :is(small, span) {
    color: #5c7084 !important;
    -webkit-text-fill-color: #5c7084 !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 500 !important;
  }

  html body:not(#agile-grey-lock) :is(
    .search-suggestions, .sales-part-suggestions, .co-dispatch-suggestions, .ge42-dd, .ge45-part-dd,
    .cbl-lov, .ppm-part-suggestions, .mi-lov, .mrt-lov, .ae2-smart-suggestions, .prime-jr-dd
  ) :is(div, li, .sales-part-option, .cbl-lov-opt):hover,
  html body:not(#agile-grey-lock) :is(
    .search-suggestions, .sales-part-suggestions, .ge42-dd, .ge45-part-dd, .cbl-lov
  ) :is(.active, .selected, [aria-selected="true"]) {
    background: var(--ge-hover) !important;
    color: #102a44 !important;
    -webkit-text-fill-color: #102a44 !important;
  }

  html body:not(#agile-grey-lock) :is(.ge42-dd, .ge45-part-dd, .cbl-lov, .search-suggestions) :is(.active, .selected) {
    background: var(--ge-selected) !important;
  }

  html body:not(#agile-grey-lock) :is(.cbl-lov-opt.disabled, .ge42-dd .empty, .ge45-part-dd .empty, .search-suggestion.disabled) {
    background: #f6f9fc !important;
    color: var(--ge-muted) !important;
    -webkit-text-fill-color: var(--ge-muted) !important;
    cursor: default !important;
  }

  /* Find windows — same blue family, existing geometry kept. */
  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) :is(.erp-find-header, .erp-find-footer),
  html body:not(#agile-grey-lock) .agile-find.gate-find-style :is(.agile-find-head, .agile-find-footer) {
    background: linear-gradient(90deg, var(--ge-blue-deep), var(--ge-blue)) !important;
    border-bottom-color: #1868b0 !important;
    color: #fff !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) .erp-find-header h2,
  html body:not(#agile-grey-lock) .gate-find-style .agile-find-head b,
  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) .erp-find-footer > span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) .erp-find-searchbar,
  html body:not(#agile-grey-lock) .gate-find-style .agile-find-searchbar {
    background: #e7f1fa !important;
    border-bottom-color: #d0e0ec !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) .erp-find-grid th,
  html body:not(#agile-grey-lock) .gate-find-style .agile-find-grid th {
    background: var(--ge-head) !important;
    color: #173a56 !important;
    -webkit-text-fill-color: #173a56 !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) .erp-find-grid tbody tr.selected td,
  html body:not(#agile-grey-lock) .gate-find-style .agile-find-grid tbody tr.selected td {
    background: var(--ge-selected) !important;
    color: #102a44 !important;
    -webkit-text-fill-color: #102a44 !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) :is(#erpFindSearchBtn, #erpFindOkBtn, #erpFindCancelBtn, .erp-find-searchbar > button, .erp-find-footer button),
  html body:not(#agile-grey-lock) .gate-find-style :is(.agile-find-search-btn, .agile-find-ok, .agile-find-cancel) {
    background: var(--ge-orange) !important;
    background-image: none !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: var(--ge-orange-line) !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  html body:not(#agile-grey-lock) :is(#erpFindModal, #cblFindModal) :is(#erpFindCloseBtn, .erp-find-header button),
  html body:not(#agile-grey-lock) .gate-find-style .agile-find-head button {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  html body .ge42-series-popup {
    background: rgba(16, 42, 74, .28) !important;
  }

  html body .ge42-series-card {
    background: #f7fbfe !important;
    color: var(--ge-ink) !important;
    border: 1px solid #b7cbe0 !important;
    box-shadow: 0 10px 28px rgba(16, 42, 74, .18) !important;
  }

  html body .ge42-series-card :is(label, .ge42-series-title, .ge42-series-info) {
    color: var(--ge-label) !important;
  }

  html body .ge42-series-card input {
    background: #fff !important;
    color: var(--ge-ink) !important;
    -webkit-text-fill-color: var(--ge-ink) !important;
    border-color: var(--ge-line) !important;
  }

  html body #ae50DesktopStatusBar.ae50-desktop-statusbar {
    background: linear-gradient(90deg, #515c66, #5d6872) !important;
    border-top-color: #46515a !important;
    color: #fff !important;
  }

  html body #ae50StatusSQL {
    color: #8dffb0 !important;
  }

  /* Same open-list treatment for every other existing searchable LOV. */
  html body:not(#agile-grey-lock):not(#agile-lov-lock) :is(
    .prime-qc-dd, .ae2-v41-lov-list, .ii-lov-list, .ae50-v50-dd, .ae50-co-v2-lov,
    .vds29-lov, .ai2-dd, .aiq-dd, .sr-mrn-dd, .bm-lov, .jc-lov, .so2lov, .cdslov,
    .cpcslov, .prtv-lov, .po6-dd, .po6-cell-dd, .ge42-dd, .ge45-part-dd, .cbl-lov,
    .prime-jr-dd, .search-suggestions, .sales-part-suggestions, .siv-customer-list, .siv-challan-options, .mrnr-list, .sl-list
  ) {
    background: #fff !important;
    background-image: none !important;
    color: #14283c !important;
    border: 1px solid #1686c9 !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18) !important;
    max-height: 170px !important;
    font: 600 12px/1.25 "Segoe UI", Inter, Arial, sans-serif !important;
  }

  html body:not(#agile-grey-lock):not(#agile-lov-lock) :is(
    .prime-qc-dd, .ae2-v41-lov-list, .ii-lov-list, .ae50-v50-dd, .ae50-co-v2-lov,
    .vds29-lov, .ai2-dd, .aiq-dd, .sr-mrn-dd, .bm-lov, .jc-lov, .so2lov, .cdslov,
    .cpcslov, .prtv-lov, .po6-dd, .po6-cell-dd, .ge42-dd, .ge45-part-dd, .cbl-lov,
    .prime-jr-dd, .search-suggestions, .sales-part-suggestions, .siv-customer-list, .siv-challan-options, .mrnr-list, .sl-list
  ) :is(div, li, .cbl-lov-opt, .search-suggestion, .sales-part-option) {
    background: #fff !important;
    color: #17212b !important;
    -webkit-text-fill-color: #17212b !important;
    border-bottom: 1px solid #d7dde3 !important;
    font: 600 12px/1.25 "Segoe UI", Inter, Arial, sans-serif !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }

  html body:not(#agile-grey-lock):not(#agile-lov-lock) :is(
    .prime-qc-dd, .ae2-v41-lov-list, .ii-lov-list, .ae50-v50-dd, .ae50-co-v2-lov,
    .vds29-lov, .ai2-dd, .aiq-dd, .sr-mrn-dd, .bm-lov, .jc-lov, .so2lov, .cdslov,
    .cpcslov, .prtv-lov, .po6-dd, .po6-cell-dd, .ge42-dd, .ge45-part-dd, .cbl-lov,
    .prime-jr-dd, .search-suggestions, .sales-part-suggestions, .siv-customer-list, .siv-challan-options, .mrnr-list, .sl-list
  ) :is(div, li, .cbl-lov-opt, .search-suggestion, .sales-part-option):hover,
  html body:not(#agile-grey-lock):not(#agile-lov-lock) :is(
    .prime-qc-dd, .ae2-v41-lov-list, .ii-lov-list, .ae50-v50-dd, .ae50-co-v2-lov,
    .vds29-lov, .ai2-dd, .aiq-dd, .sr-mrn-dd, .bm-lov, .jc-lov, .so2lov, .cdslov,
    .cpcslov, .prtv-lov, .po6-dd, .po6-cell-dd, .ge42-dd, .ge45-part-dd, .cbl-lov,
    .prime-jr-dd
  ) :is(.active, .selected, [aria-selected="true"]) {
    background: #e7f3fb !important;
    color: #102a44 !important;
    -webkit-text-fill-color: #102a44 !important;
  }

  html body:not(#agile-grey-lock):not(#agile-lov-lock) :is(
    .ge42-dd, .ge45-part-dd, .cbl-lov, .prime-jr-dd, .po6-dd, .search-suggestions,
    .siv-customer-list, .siv-challan-options, .sales-part-suggestions, .mrnr-list, .sl-list
  ) :is(.agile-lov-hl, .active, .selected) {
    background: #e7f3fb !important;
    color: #102a44 !important;
    -webkit-text-fill-color: #102a44 !important;
  }

  /* Company/FY header gear only. Series screens opened another way stay. */
  html body #appShell .main-content > .page :is(
    .ge42-config, .ai-sf-config-btn, .so2gear, .po6-config, .bm-config-btn, .qrd-series-btn,
    button[data-ge42="seriesConfig"], button[data-act="seriesConfig"], button[data-po-act="seriesConfig"]
  ) {
    display: none !important;
  }

  /* Hanger Loading: shorter date row and hanger bar. Hierarchy unchanged. */
  html body #appShell #agileCarrierBarLoading .cbl-date {
    margin: 0 0 2px !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 16px !important;
    align-items: center !important;
  }

  html body #appShell #agileCarrierBarLoading .cbl-date label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  html body #appShell #agileCarrierBarLoading .cbl-date input {
    height: 30px !important;
    min-height: 0 !important;
  }

  html body #appShell #agileCarrierBarLoading .cbl-hanger {
    margin: 4px 6px !important;
  }

  html body #appShell #agileCarrierBarLoading .cbl-hanger-top {
    padding: 2px 8px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  html body #appShell #agileCarrierBarLoading .cbl-hanger-top .cbl-del {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 8px !important;
  }
}

/* 2026-09-26 FINAL GATE ENTRY GREY/YELLOW LOCK
   Root-cause safeguard: Gate Entry has several legacy/shared toolbar rules.
   Keep this rule last and scoped to #gateEntry so legacy blue presentation
   cannot win. Geometry and behavior are intentionally untouched. */
@media (min-width: 761px) {
  html body #appShell #gateEntry .ge42-title,
  html body #appShell #gateEntry .ge42-title.ai-sf-header {
    background: #5d6872 !important;
    background-image: none !important;
    border-color: #46515a !important;
    border-bottom-color: #46515a !important;
    color: #fff !important;
  }

  html body #appShell #gateEntry .ge42-toolbar,
  html body #appShell #gateEntry .ge42-toolbar.ai-sf-toolbar {
    background: #5d6872 !important;
    background-image: none !important;
    border-color: #46515a !important;
    color: #fff !important;
  }

  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn,
  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn:hover,
  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn:focus,
  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn:focus-visible,
  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn:active,
  html body #appShell #gateEntry .ge42-toolbar button.ai-sf-btn:disabled {
    background: #f39a22 !important;
    background-color: #f39a22 !important;
    background-image: none !important;
    border-color: #c97310 !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
    animation: none !important;
  }

  html body #appShell #gateEntry .ge42-config,
  html body #appShell #gateEntry .ai-sf-config-btn,
  html body #appShell #gateEntry button[data-ge42="seriesConfig"] {
    display: none !important;
  }

  /* Outer form frame only. Previous page border. Inner boxes stay off. */
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(.ae2-report-page):not(#agileProductionDashboard):not(#agileOwnerDashboard):not(#agileOwnerHanger):not(#agileOwnerDetails) {
    border: 1px solid #c5d6e6 !important;
    border-radius: 9px !important;
    box-shadow: 0 5px 18px rgba(31,95,139,.16) !important;
    background: transparent !important;
  }
  html body #appShell:not(#agile-grey-lock):not(#agile-toolbar-scope) .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
    .panel, .professional-module-form, .part-master-form, .form-grid, .advanced-items-panel,
    .advanced-challan-form, .erpplus-ui-card, .co-ge-grid-card, .gate-v60-items-panel,
    .gate-v60-header-panel, [class*="grid-card"], [class*="items-panel"], [class*="header-panel"]
  ) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

/* Header field box: no four-side line on every entry form.
   Title bar, toolbar, inputs and detail-table cells stay. */
html body #appShell :is(
  #challanOut, #dispatchAdvice, #salesInvoice, #purchaseOrder, #salesOrder,
  #partyMaster, #partMaster, #firmMaster, #transporterMaster, #gateEntry,
  #primeCustomerRequirement, #primeProcessMaster, #primeJobReceipt, #primeFinalQc,
  #agileProductionOk, #agileHangerLoading, #agileCarrierBarLoading, #agileMainParty,
  #agileMaterialTrace, #agileCustomerDeliverySchedule, #customerPartCostSheet,
  #mrpGenerationPage, #routeCardV2, #stockAdjustmentV1, #productionEntryV1,
  #ppcProductionPlanV2, #materialIssueV2, #materialReturnV1, #purchaseReturnV1,
  #bomMaster, #mrn, #storeReceiving
) :is(
  .siv-header-box,
  [class*="header-box"],
  [class*="header-card"],
  .co-ge-header-card,
  .da-ge-header-card,
  .prime-fields,
  .pm-party-form,
  .part-master-form,
  .ai-tf-fields,
  .agile-fields,
  .agile-card,
  .ppcfields,
  .ge42-head,
  .po6-box,
  .so2card,
  .cdscard,
  .cpcscard,
  .mrp-card,
  .jc-grid,
  .bm-grid,
  .mi-grid,
  .pe1-card,
  .av2-header,
  .ahl-gate,
  .ahl-shell,
  .ae50-phase1-header,
  .ae50-phase2-header,
  .ae50-p3-header,
  .ae50-p4-header
) {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

/* Detail name bars (Customer PO Items, Challan Items, Details) off every form. */
html body #appShell .main-content > .page:not(#dashboard):not(#reports):not(#agileProductionDashboard):not(#agileOwnerDashboard) :is(
  .panel-title:not(.ai-sf-header):not(.ge42-title):not([class$="-titlebar"]),
  .prime-req-caption,
  .prime-jr-details-caption,
  .co-ge-grid-title,
  .gate-v60-items-title,
  .ai-sf-grid-title,
  .ai-standard-grid-title,
  [class*="grid-title"]:not([class$="-titlebar"]),
  [class*="items-title"],
  [class*="items-caption"],
  [class*="detail-title"],
  [class*="details-caption"],
  .ae50-p4-detail > .ae50-p4-panel-title,
  .bm-details-card > .bm-title,
  .ai-standard-grid-section > .mi-title
) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
