/* ==========================================================================
   css/iba-ui.css  —  14.0.0 patch 3 : design foundation
   (patch 4: pages themed; patch 6: Invoice Records list, Active Task panel,
    Add New Job, searchable-dropdown fix, hidden scrollbars - sections 1b, 1c, 22;
    patch 8: Batch Entry spacing, lighter blur - section 23;
    patch 10: phone login, Batch note search, PO Close Out search, lit
    Dashboard area, glass board and notes - section 25; patch 11: board
    about 60% see-through)
   --------------------------------------------------------------------------
   One set of design rules for the 14.0.0 glass UI.
   - Everything sits in the cascade layer "iba-ui". Important declarations in
     a layer outrank the older un-layered !important rules, so this file wins
     cleanly without specificity tricks.
   - Because it wins over everything, rules here NEVER set display/visibility
     on anything the system shows/hides (only on page frames guarded with
     :not(.hidden)).
   - Screen only: printing keeps its own print styles.
   - No logic. Removing this file (and its <link>) restores the 14.0.0 look.
   ========================================================================== */

@layer iba-ui {

  /* ---------------------------------------------------------------------
     0. Design tokens
     --------------------------------------------------------------------- */
  :root {
    --ui-night: #0F1C2B;                       /* panel base */
    --ui-panel: rgba(15, 28, 43, 0.9);         /* panel behind content (patch 6: was 0.66 - too see-through over bright photos) */
    --ui-panel-strong: rgba(13, 25, 39, 0.95);
    --ui-head: #142A3E;                        /* table header (solid for sticky) */
    --ui-field: rgba(14, 27, 42, 0.82);         /* field: readable over any photo (patch 6: was 0.62) */
    --ui-field-hover: rgba(24, 42, 62, 0.88);
    --ui-line: rgba(255, 255, 255, 0.14);
    --ui-line-soft: rgba(255, 255, 255, 0.07);
    --ui-text: #EEF3F8;                        /* haze */
    --ui-text-2: #A7B6C6;                      /* slate */
    --ui-text-3: #7F90A3;
    --ui-teal: #138A97;                        /* IBA teal: actions */
    --ui-teal-hover: #17A0AE;
    --ui-teal-soft: rgba(19, 138, 151, 0.18);
    --ui-gold: #E3C98A;                        /* survey gold: "you are here" */
    --ui-gold-soft: rgba(227, 201, 138, 0.14);
    --ui-red: #EF8A7A;
    --ui-red-soft: rgba(239, 138, 122, 0.14);
    --ui-amber: #F2C14E;
    --ui-green: #5FD3A0;
    --ui-violet: #B9A4F5;
    --ui-blue: #7DB7F0;
    --ui-radius-s: 8px;
    --ui-radius-m: 12px;
    --ui-radius-l: 16px;
    --ui-blur: blur(18px) saturate(1.15);
    --ui-row-hover: rgba(255, 255, 255, 0.075);  /* row under the mouse */
    --ui-row-open: rgba(227, 201, 138, 0.10);    /* expanded / open row */
  }

  /* ---------------------------------------------------------------------
     1. Table alignment fix (all screens)
     The 14.0.0 "glass sheet per row" effect (css/iba-shell.css) makes Chrome
     reserve an extra column at the start of every data row, so each value
     sat one column right of its header. Removing it aligns all tables.
     --------------------------------------------------------------------- */
  html body #wd-activetask table tbody tr::before,
  html body #inv-active-job table tbody tr::before,
  html body #wd-reporting table tbody tr::before,
  html body #wd-dashboard .wd-payment-pocket-table tbody tr::before {
    content: none !important;
    display: none !important;
  }

  /* Dashboard section titles are wrapped in <strong> since patch 4 (the "|"
     separator was removed); on every screen they keep the heading colour */
  body #wd-dashboard .wd-dashboard-card-section-head .wd-section-title {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font: inherit !important;
    font-weight: 700 !important;
    margin-right: 6px !important;
  }

  /* ---------------------------------------------------------------------
     1b. Searchable dropdowns (14.0.0 patch 6) - all screens
     Choices keeps the original <select> inside the field and makes it
     invisible. An older rule forced it visible again, so its own text and
     arrow showed through ("Search by Note..." looked doubled). Keep it
     invisible. The Add New Job page shows its own plain selects on purpose.
     --------------------------------------------------------------------- */
  html body .choices > .choices__inner > select.choices__input[hidden]:not(#job-site):not(#job-attention) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* the small x that clears a picked value: a quiet round icon */
  html body .choices[data-type*="select-one"] .choices__button:not(#iba-none) {
    position: absolute !important;
    top: 50% !important;
    right: 32px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: -11px 0 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='%23C9D4E0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px 9px no-repeat !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 0.7 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }
  html body .choices[data-type*="select-one"] .choices__button:not(#iba-none):hover,
  html body .choices[data-type*="select-one"] .choices__button:not(#iba-none):focus-visible {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
  html body .choices[data-type*="select-one"] .choices__inner:has(.choices__button):not(#iba-none) { padding-right: 62px !important; }

  /* ---------------------------------------------------------------------
     1c. Scrollbars hidden everywhere (14.0.0 patch 6) - all screens
     Lists and pages still scroll with the wheel, trackpad, touch and
     keyboard; on a desktop a wide table can also be dragged sideways with
     the mouse (js/iba-ui-skin.js).
     --------------------------------------------------------------------- */
  html, body, body * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  body *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  body.iba-drag-scrolling,
  body.iba-drag-scrolling * { cursor: grabbing !important; user-select: none !important; }
}

@media screen and (min-width: 901px) {
@layer iba-ui {

  /* ---------------------------------------------------------------------
     2. Shared components — applied per page through the page scopes below.
     Pages in this patch preview: Job Records (WorkDesk) and Material Stock.
     --------------------------------------------------------------------- */

  /* 2a. Typography reset inside the scoped pages: no italics, steady sizes */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] :is(td, th, input, select, button, p, span, strong, small, div),
  body.iba-shell-on #wd-material-stock :is(td, th, input, select, button, p, span, strong, small, div, h4) {
    font-style: normal !important;
  }

  /* 2b. Search fields */
  body.iba-shell-on :is(#wd-activetask, #wd-reporting, #wd-material-stock) .search-bar-local {
    position: relative !important;
    height: 40px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-activetask, #wd-reporting, #wd-material-stock) .search-bar-local > i {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--ui-text-2) !important;
    font-size: 14px !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  /* Active Task and Work History share these two search fields with the
     preview pages, so they get the same field (the shell no longer paints
     them white inline). */
  body.iba-shell-on #wd-activetask #active-task-search,
  body.iba-shell-on #wd-reporting #reporting-search,
  body.iba-shell-on #wd-material-stock #ms-search-input,
  body.iba-shell-on #wd-material-stock #ms-site-filter {
    height: 40px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 14px 0 38px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
  }
  body.iba-shell-on #wd-material-stock #ms-site-filter {
    padding: 0 12px !important;
    width: 210px !important;
    min-width: 0 !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #wd-material-stock #ms-site-filter option {
    background: var(--ui-night) !important;
    color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-activetask #active-task-search::placeholder,
  body.iba-shell-on #wd-reporting #reporting-search::placeholder,
  body.iba-shell-on #wd-material-stock #ms-search-input::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-style: normal !important;
    font-weight: 400 !important;
  }
  body.iba-shell-on #wd-activetask #active-task-search:hover,
  body.iba-shell-on #wd-reporting #reporting-search:hover,
  body.iba-shell-on #wd-material-stock #ms-search-input:hover,
  body.iba-shell-on #wd-material-stock #ms-site-filter:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
  }
  body.iba-shell-on #wd-activetask #active-task-search:focus,
  body.iba-shell-on #wd-reporting #reporting-search:focus,
  body.iba-shell-on #wd-material-stock #ms-search-input:focus,
  body.iba-shell-on #wd-material-stock #ms-site-filter:focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }

  /* 2c. Buttons: one main action, quiet secondary, red outline for delete */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] :is(#reporting-clear-button, #print-report-button),
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar button,
  body.iba-shell-on #wd-material-stock #ms-search-clear-btn,
  body.iba-shell-on #wd-material-stock .ms-stock-action-btn {
    height: 38px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    gap: 7px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] :is(#reporting-clear-button, #print-report-button):hover:not(:disabled),
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar button:hover:not(:disabled),
  body.iba-shell-on #wd-material-stock #ms-search-clear-btn:hover,
  body.iba-shell-on #wd-material-stock .ms-stock-action-btn:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #print-report-button:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] :is(#reporting-clear-button, #print-report-button) i,
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar button i,
  body.iba-shell-on #wd-material-stock .ms-stock-action-btn i {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
  }
  /* main action */
  body.iba-shell-on #wd-material-stock #ms-add-new-btn {
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    border-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #wd-material-stock #ms-add-new-btn:hover {
    background: var(--ui-teal-hover) !important;
    background-color: var(--ui-teal-hover) !important;
    border-color: var(--ui-teal-hover) !important;
  }
  body.iba-shell-on #wd-material-stock #ms-add-new-btn i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  /* stock movements: teal-tinted secondary (they open the Transfer/Restock/Usage forms) */
  body.iba-shell-on #wd-material-stock .ms-stock-action-btn {
    background: var(--ui-teal-soft) !important;
    background-color: var(--ui-teal-soft) !important;
    border-color: rgba(23, 160, 174, 0.55) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-stock-action-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  /* delete: red outline */
  body.iba-shell-on #wd-material-stock #ms-bulk-delete-btn {
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    border-color: rgba(239, 138, 122, 0.6) !important;
    color: #FFD9D2 !important;
    -webkit-text-fill-color: #FFD9D2 !important;
  }
  body.iba-shell-on #wd-material-stock #ms-bulk-delete-btn i { color: var(--ui-red) !important; -webkit-text-fill-color: var(--ui-red) !important; }
  body.iba-shell-on #wd-material-stock #ms-stock-check-btn i { color: var(--ui-amber) !important; -webkit-text-fill-color: var(--ui-amber) !important; }
  body.iba-shell-on #wd-material-stock #ms-merge-selected-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }

  /* 2d. Tables: one glass panel, header stays visible, quiet rows */
  body.iba-shell-on #wd-reporting #reporting-printable-area > .table-wrapper,
  body.iba-shell-on #wd-activetask > .table-wrapper,
  body.iba-shell-on #inv-active-job > .table-wrapper,
  body.iba-shell-on #wd-material-stock .ms-premium-tablewrap {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 290px) !important;
    overflow: auto !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.28) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-premium-tablewrap { max-height: calc(100vh - 330px) !important; }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table),
  body.iba-shell-on #wd-material-stock #ms-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) thead th,
  body.iba-shell-on #wd-material-stock #ms-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    padding: 12px 14px !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) thead tr,
  body.iba-shell-on #wd-material-stock #ms-table thead tr {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) tbody tr,
  body.iba-shell-on #wd-material-stock #ms-table tbody tr.ms-parent-row {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) tbody td,
  body.iba-shell-on #wd-material-stock #ms-table tbody tr.ms-parent-row > td {
    padding: 11px 14px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) tbody tr:hover td,
  body.iba-shell-on #wd-material-stock #ms-table tbody tr.ms-parent-row:hover > td {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }
  body.iba-shell-on :is(#wd-reporting #job-records-table, #wd-activetask table.wd-active-modern-table, #inv-active-job table.wd-inventory-modern-table) tbody tr:last-child td,
  body.iba-shell-on #wd-material-stock #ms-table tbody tr:last-child > td {
    border-bottom: 0 !important;
  }

  /* 2e. Status badges (soft fill, readable on dark glass) */
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(238, 243, 248, 0.22) !important;
    background: rgba(238, 243, 248, 0.10) !important;
    background-color: rgba(238, 243, 248, 0.10) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge:is(.tone-srv, .tone-pending) {
    background: rgba(242, 193, 78, 0.16) !important; border-color: rgba(242, 193, 78, 0.45) !important;
    color: #F8DC97 !important; -webkit-text-fill-color: #F8DC97 !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge.tone-approval {
    background: rgba(185, 164, 245, 0.16) !important; border-color: rgba(185, 164, 245, 0.45) !important;
    color: #D8CCFB !important; -webkit-text-fill-color: #D8CCFB !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge:is(.tone-ipc, .tone-report) {
    background: rgba(125, 183, 240, 0.16) !important; border-color: rgba(125, 183, 240, 0.45) !important;
    color: #C3DDF8 !important; -webkit-text-fill-color: #C3DDF8 !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge.tone-danger {
    background: var(--ui-red-soft) !important; border-color: rgba(239, 138, 122, 0.5) !important;
    color: #FFD0C8 !important; -webkit-text-fill-color: #FFD0C8 !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"], #wd-activetask) .wd-status-badge.tone-hold {
    background: rgba(167, 182, 198, 0.14) !important; border-color: rgba(167, 182, 198, 0.4) !important;
    color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important;
  }

  /* ---------------------------------------------------------------------
     3. Page: WorkDesk > Job Records
     Search + Print on one row, tabs under them, then the table panel.
     --------------------------------------------------------------------- */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"]:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "search actions" "tabs tabs" "table table" !important;
    column-gap: 16px !important;
    row-gap: 14px !important;
    align-items: center !important;
    align-content: start !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > * { grid-column: 1 / -1 !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .search-and-filter-group { grid-area: search !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .report-controls { grid-area: actions !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > #wd-jr-folder { grid-area: tabs !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > #reporting-printable-area { grid-area: table !important; }

  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .search-and-filter-group {
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 640px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .search-and-filter-group .search-bar-local {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .report-controls {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] > .report-controls .report-tabs-container {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* tabs: quiet labels, the open one marked with the survey-gold rule */
  /* the tabs are a folder tab sitting on the table panel: the script sizes
     the folder to the tabs, so the edge is drawn with inset shadows (no width) */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder {
    justify-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: var(--ui-radius-l) var(--ui-radius-l) 0 0 !important;
    box-shadow: inset 1px 1px 0 var(--ui-line), inset -1px 0 0 var(--ui-line) !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder:not(.hidden) ~ #reporting-printable-area {
    margin-top: -14px !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder:not(.hidden) ~ #reporting-printable-area > .table-wrapper {
    border-top-left-radius: 0 !important;
  }
  /* no tabs yet (records not loaded, or no access): plain panel, no folder tab */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder:has(> #report-tabs:empty) {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder:has(> #report-tabs:empty) ~ #reporting-printable-area {
    margin-top: 0 !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder:has(> #report-tabs:empty) ~ #reporting-printable-area > .table-wrapper {
    border-top-left-radius: var(--ui-radius-l) !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder::before,
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #wd-jr-folder::after,
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs button::before,
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs button::after {
    content: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs {
    gap: 0 !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs button {
    height: 46px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    cursor: pointer !important;
    transition: color .15s ease, border-color .15s ease !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs button:hover {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #report-tabs button.active {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    border-bottom-color: var(--ui-gold) !important;
  }

  /* cells: plain text instead of chips; numbers right-aligned */
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) :is(.wd-table-kicker, .wd-ref-chip, .wd-site-badge, .wd-po-code, .wd-user-chip, .wd-date-chip, .wd-attention-chip, .wd-vendor-name) {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) :is(.wd-ref-chip, .wd-po-code) {
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-table-kicker {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-vendor-name {
    display: inline-block !important;
    max-width: 230px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-site-badge {
    display: inline-flex !important;
    align-items: center !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-site-badge i {
    margin-right: 5px !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 11px !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) :is(.wd-date-chip, .wd-user-chip, .wd-attention-chip) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] #job-records-table th:nth-child(6),
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) td.wd-amount-cell {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) td.wd-amount-cell {
    font-weight: 700 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-record-note-cell {
    max-width: 260px !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
    background: transparent !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-record-status-cell {
    gap: 8px !important;
    background: transparent !important;
    justify-content: flex-start !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-history-icon-only {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-history-icon-only:hover {
    background: var(--ui-field-hover) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) .wd-history-icon-only i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 12px !important;
  }
  body.iba-shell-on :is(#wd-reporting[data-iba-surface="workdesk"] #job-records-table, #wd-activetask table.wd-active-modern-table) td :is(.wd-fade-left, .wd-fade-right) { -webkit-mask-image: none !important; mask-image: none !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] .wd-modern-empty-row {
    padding: 40px 16px !important;
    background: transparent !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }

  /* ---------------------------------------------------------------------
     4. Page: Inventory > Material Stock
     Toolbar grouped: create/import, views, admin tools on the right.
     --------------------------------------------------------------------- */
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar {
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar > div {
    width: 100% !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  /* toolbar buttons a little tighter so a full admin toolbar fits one row on a 1440px screen */
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar button {
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 12.5px !important;
  }
  /* order: create + file tools | lists and reports | admin tools (pushed right) */
  body.iba-shell-on #wd-material-stock #ms-add-new-btn { order: 1 !important; }
  body.iba-shell-on #wd-material-stock #ms-upload-csv-btn { order: 2 !important; }
  body.iba-shell-on #wd-material-stock #ms-upload-titles-btn { order: 3 !important; }
  body.iba-shell-on #wd-material-stock #ms-download-titles-btn { order: 4 !important; }
  body.iba-shell-on #wd-material-stock #ms-template-btn { order: 5 !important; }
  body.iba-shell-on #wd-material-stock #ms-open-requestlist-btn { order: 6 !important; }
  body.iba-shell-on #wd-material-stock #ms-open-report-modal-btn { order: 7 !important; }
  body.iba-shell-on #wd-material-stock #ms-refresh-btn { order: 8 !important; width: 38px !important; padding: 0 !important; justify-content: center !important; }
  body.iba-shell-on #wd-material-stock #ms-stock-check-btn { order: 9 !important; }
  body.iba-shell-on #wd-material-stock #ms-merge-selected-btn { order: 10 !important; }
  body.iba-shell-on #wd-material-stock #ms-bulk-delete-btn { order: 11 !important; }
  /* the first admin button that is showing starts the right-hand group */
  body.iba-shell-on #wd-material-stock #ms-stock-check-btn:not(.hidden),
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar > div:has(> #ms-stock-check-btn.hidden) > #ms-merge-selected-btn:not(.hidden),
  body.iba-shell-on #wd-material-stock .ms-premium-toolbar > div:has(> #ms-stock-check-btn.hidden):has(> #ms-merge-selected-btn.hidden) > #ms-bulk-delete-btn:not(.hidden) {
    margin-left: auto !important;
  }

  body.iba-shell-on #wd-material-stock #ms-search-container {
    margin: 0 0 14px !important;
    padding: 0 !important;
    width: 100% !important;
    gap: 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock #ms-search-container > div {
    gap: 8px !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-material-stock #ms-search-container > div:first-child {
    max-width: 640px !important;
  }

  /* family chips + site filter */
  body.iba-shell-on #wd-material-stock #ms-family-row {
    margin: 0 0 14px !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-material-stock #ms-category-tabs {
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-family-chip {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    gap: 6px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #wd-material-stock .ms-family-chip:hover { background: var(--ui-field-hover) !important; color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; }
  body.iba-shell-on #wd-material-stock .ms-family-chip.active {
    border-color: var(--ui-gold) !important;
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-family-chip :is(.ms-family-code, .ms-family-name) {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 13px !important;
    line-height: 1 !important;
    position: static !important;
    transform: none !important;
    vertical-align: middle !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-family-chip .ms-family-name:empty { display: none !important; }
  body.iba-shell-on #wd-material-stock .ms-family-chip .ms-family-code { font-weight: 700 !important; }
  body.iba-shell-on #wd-material-stock .ms-family-chip .ms-family-name { font-weight: 500 !important; }

  /* table cells */
  body.iba-shell-on #wd-material-stock #ms-table .ms-product-code {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-product-title strong {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table :is(.ms-family-badge, .ms-relation-text) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table th:nth-child(6),
  body.iba-shell-on #wd-material-stock #ms-table td.ms-cell-stock {
    text-align: right !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-stock-pill {
    padding: 0 !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-row-actions { gap: 6px !important; justify-content: flex-end !important; }
  body.iba-shell-on #wd-material-stock #ms-table th:last-child { text-align: right !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-row-action-btn {
    height: 30px !important;
    min-height: 0 !important;
    padding: 0 10px !important;
    gap: 5px !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-row-action-btn:hover { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-row-action-btn i { font-size: 11px !important; color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-add-to-required-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-delete-btn {
    border-color: rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: #FFD9D2 !important;
    -webkit-text-fill-color: #FFD9D2 !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-delete-btn i { color: var(--ui-red) !important; -webkit-text-fill-color: var(--ui-red) !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-view-only-note { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; font-size: 12px !important; }
  body.iba-shell-on #wd-material-stock #ms-table .ms-expand-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock #ms-table .ms-expand-btn:hover { background: var(--ui-field-hover) !important; }
  body.iba-shell-on #wd-material-stock #ms-table input[type="checkbox"] { accent-color: var(--ui-teal) !important; width: 15px !important; height: 15px !important; }
  /* hovered / open row: survey-gold marker */
  body.iba-shell-on #wd-material-stock .ms-row-frost {
    background: linear-gradient(90deg, rgba(227, 201, 138, 0.16), rgba(227, 201, 138, 0.03) 60%, transparent) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* expanded row: three glass panels */
  body.iba-shell-on #wd-material-stock #ms-table tr.stock-child-row > td.ms-glass-detail {
    padding: 14px 16px 18px !important;
    background: rgba(5, 14, 24, 0.28) !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-detail-grid { gap: 12px !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel {
    padding: 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel > h4 {
    margin: 0 0 10px !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel > h4 i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; margin-right: 4px !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .stock-detail-table thead th {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .stock-detail-table tbody td {
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .stock-detail-table tbody td.ms-bd-qty,
  body.iba-shell-on #wd-material-stock .ms-glass-panel .stock-detail-table tbody td.ms-hist-qty {
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  /* restated from iba-14-patch.css so the layer keeps their colours */
  body.iba-shell-on #wd-material-stock .ms-glass-panel span.ms-route-add { color: #86EFAC !important; -webkit-text-fill-color: #86EFAC !important; font-weight: 600 !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel span.ms-route-return { color: #FCA5A5 !important; -webkit-text-fill-color: #FCA5A5 !important; font-weight: 600 !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel span.ms-route-usage { color: #C4B5FD !important; -webkit-text-fill-color: #C4B5FD !important; font-weight: 600 !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel span.ms-site-delete { color: #FCA5A5 !important; -webkit-text-fill-color: #FCA5A5 !important; }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .ms-bd-gap,
  body.iba-shell-on #wd-material-stock .ms-glass-panel .ms-bd-gap i {
    color: #F8DC97 !important;
    -webkit-text-fill-color: #F8DC97 !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .ms-bd-gap {
    background: rgba(242, 193, 78, 0.12) !important;
    border: 1px solid rgba(242, 193, 78, 0.35) !important;
    border-radius: var(--ui-radius-s) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel button.ms-align-site-btn {
    height: 26px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel button.ms-hist-return-btn {
    height: 26px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--ui-amber) !important;
    background-color: var(--ui-amber) !important;
    color: #2A1E00 !important;
    -webkit-text-fill-color: #2A1E00 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #wd-material-stock .ms-glass-panel .ms-open-photo-picker-btn,
  body.iba-shell-on #wd-material-stock .ms-glass-panel .ms-clear-photo-btn {
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  body.iba-shell-on #wd-material-stock .ms-photo-placeholder > div {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #wd-material-stock .ms-photo-placeholder > div:first-of-type {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #wd-material-stock .ms-photo-placeholder > i {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
  }

  /* =====================================================================
     5. Shared controls on the other list pages
     (Active Task, Active Job, Work History, Invoice Records, Dashboard,
     PO Close Out). Same field / button / tab look as the two preview pages.
     ===================================================================== */

  /* 5a. Search fields and filter selects */
  body.iba-shell-on #inv-active-job #inv-active-job-search,
  body.iba-shell-on #wd-dashboard #wd-active-dashboard-search,
  body.iba-shell-on #im-reporting #im-reporting-search,
  body.iba-shell-on #im-po-closeout #im-po-closeout-search,
  body.iba-shell-on #wd-reporting #wd-inventory-intransit-contact-filter,
  body.iba-shell-on #im-reporting .iba-records-filters select,
  body.iba-shell-on #im-po-closeout #im-po-closeout-site-sort {
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    box-shadow: none !important;
    outline: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
  }
  body.iba-shell-on #wd-reporting #wd-inventory-intransit-contact-filter,
  body.iba-shell-on #im-reporting .iba-records-filters select,
  body.iba-shell-on #im-po-closeout #im-po-closeout-site-sort {
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }
  body.iba-shell-on :is(#wd-reporting, #im-reporting, #im-po-closeout) select option {
    background: var(--ui-night) !important;
    color: var(--ui-text) !important;
  }
  body.iba-shell-on #inv-active-job #inv-active-job-search { width: 340px !important; max-width: none !important; flex: 0 0 340px !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-search { width: 100% !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-form > .search-box { width: 260px !important; flex: 0 0 260px !important; }
  /* the search icon already sits inside these wrappers */
  body.iba-shell-on #im-reporting #im-reporting-search { padding-left: 40px !important; }
  body.iba-shell-on #wd-dashboard #wd-active-dashboard-search { padding-left: 40px !important; }
  body.iba-shell-on :is(#inv-active-job-search, #wd-active-dashboard-search, #im-reporting-search, #im-po-closeout-search)::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-style: normal !important;
    font-weight: 400 !important;
  }
  body.iba-shell-on :is(#inv-active-job-search, #wd-active-dashboard-search, #im-reporting-search, #im-po-closeout-search, #wd-inventory-intransit-contact-filter, #im-po-closeout-site-sort):hover,
  body.iba-shell-on #im-reporting .iba-records-filters select:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
  }
  body.iba-shell-on :is(#inv-active-job-search, #wd-active-dashboard-search, #im-reporting-search, #im-po-closeout-search, #wd-inventory-intransit-contact-filter, #im-po-closeout-site-sort):focus,
  body.iba-shell-on #im-reporting .iba-records-filters select:focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-search-wrap,
  body.iba-shell-on #im-reporting .search-box.iba-narrow-search,
  body.iba-shell-on #im-po-closeout .search-box {
    position: relative !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-search-wrap > i,
  body.iba-shell-on #im-reporting .search-box.iba-narrow-search > i:first-child {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    pointer-events: none !important;
  }
  body.iba-shell-on #im-reporting .search-box.iba-narrow-search #im-reporting-search { width: 100% !important; }

  /* 5b. Buttons next to the fields: quiet secondary, one teal main action */
  body.iba-shell-on #wd-activetask #active-task-clear-button,
  body.iba-shell-on #inv-active-job #inv-active-job-clear-button,
  body.iba-shell-on #wd-reporting #reporting-clear-button,
  body.iba-shell-on #wd-reporting #wd-inventory-intransit-report-btn,
  body.iba-shell-on #wd-dashboard #wd-active-dashboard-clear,
  body.iba-shell-on #wd-dashboard #wd-active-dashboard-refresh,
  body.iba-shell-on #im-reporting #im-reporting-search-btn,
  body.iba-shell-on #im-reporting #im-reporting-clear-button,
  body.iba-shell-on #im-reporting .iba-im-records-actions > button,
  body.iba-shell-on #im-po-closeout #im-po-closeout-search-btn,
  body.iba-shell-on #im-po-closeout #im-po-closeout-clear-btn,
  body.iba-shell-on #im-po-closeout #im-po-closeout-print-btn,
  body.iba-shell-on #im-po-closeout #im-po-closeout-excel-btn,
  body.iba-shell-on #im-po-closeout #im-po-closeout-excel-both-btn {
    height: 38px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color .15s ease, border-color .15s ease !important;
  }
  body.iba-shell-on :is(#active-task-clear-button, #inv-active-job-clear-button, #reporting-clear-button, #wd-inventory-intransit-report-btn, #wd-active-dashboard-clear, #wd-active-dashboard-refresh, #im-reporting-clear-button, #im-po-closeout-clear-btn, #im-po-closeout-print-btn, #im-po-closeout-excel-btn, #im-po-closeout-excel-both-btn):hover:not(:disabled),
  body.iba-shell-on #im-reporting .iba-im-records-actions > button:hover:not(:disabled) {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
  }
  body.iba-shell-on :is(#active-task-clear-button, #inv-active-job-clear-button, #reporting-clear-button, #wd-inventory-intransit-report-btn, #wd-active-dashboard-clear, #wd-active-dashboard-refresh, #im-reporting-clear-button, #im-po-closeout-clear-btn, #im-po-closeout-print-btn, #im-po-closeout-excel-btn, #im-po-closeout-excel-both-btn) :is(i, svg, img),
  body.iba-shell-on #im-reporting .iba-im-records-actions > button :is(i, svg) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
  }
  body.iba-shell-on #im-reporting .iba-im-records-actions > button span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #im-reporting .iba-im-records-actions > button:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }
  body.iba-shell-on #im-reporting .iba-im-records-actions { gap: 6px !important; }
  /* main action: Search */
  body.iba-shell-on #im-reporting #im-reporting-search-btn,
  body.iba-shell-on #im-po-closeout #im-po-closeout-search-btn {
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    border-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on :is(#im-reporting-search-btn, #im-po-closeout-search-btn):hover {
    background: var(--ui-teal-hover) !important;
    background-color: var(--ui-teal-hover) !important;
    border-color: var(--ui-teal-hover) !important;
  }
  body.iba-shell-on :is(#im-reporting-search-btn, #im-po-closeout-search-btn) i { color: #fff !important; -webkit-text-fill-color: #fff !important; }

  /* 5c. Underline tabs (Active Task status tabs, Active Job and Work History
     job types, PO Close Out lists) */
  body.iba-shell-on #wd-activetask #active-task-filters,
  body.iba-shell-on #inv-active-job #iba-aj-tabs,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs,
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs {
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters {
    width: 100% !important;
    flex-wrap: wrap !important;
    border-bottom: 1px solid var(--ui-line) !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters > button,
  body.iba-shell-on #inv-active-job #iba-aj-tabs > .iba-aj-tab,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button,
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs > :is(#im-po-closeout-tab-waiting, #im-po-closeout-tab-ready) {
    position: relative !important;
    height: 42px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    gap: 8px !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    animation: none !important;
    cursor: pointer !important;
    transition: color .15s ease, border-color .15s ease !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters > button:hover,
  body.iba-shell-on #inv-active-job #iba-aj-tabs > .iba-aj-tab:hover,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button:hover,
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs > :is(#im-po-closeout-tab-waiting, #im-po-closeout-tab-ready):hover {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters > button.active,
  body.iba-shell-on #inv-active-job #iba-aj-tabs > .iba-aj-tab.is-on,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button.active,
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs > .primary-btn:is(#im-po-closeout-tab-waiting, #im-po-closeout-tab-ready) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    border-bottom-color: var(--ui-gold) !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters > button::after,
  body.iba-shell-on #inv-active-job #iba-aj-tabs > .iba-aj-tab::before,
  body.iba-shell-on #inv-active-job #iba-aj-tabs > .iba-aj-tab::after,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button::before,
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button::after {
    content: none !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters,
  body.iba-shell-on #inv-active-job #iba-aj-folder,
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-radius: var(--ui-radius-m) var(--ui-radius-m) 0 0 !important;
    background: rgba(14, 27, 42, 0.45) !important;
    background-color: rgba(14, 27, 42, 0.45) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  /* a status that has work addressed to you keeps its colour as a small pulsing dot */
  body.iba-shell-on #wd-activetask #active-task-filters > button::before {
    content: none !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters > button.blink-tab::before {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--tab-color, var(--ui-gold)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tab-color, #E3C98A) 28%, transparent) !important;
    animation: iba-ui-dot 1.6s ease-in-out infinite !important;
    opacity: 1 !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters .wd-at-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--ui-gold) !important;
    background-color: var(--ui-gold) !important;
    color: #2A1E00 !important;
    -webkit-text-fill-color: #2A1E00 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    position: static !important;
    transform: none !important;
  }

  /* 5d. Segmented switches (Active Job single/multi, Work History stage) */
  body.iba-shell-on #inv-active-job #iba-aj-stage,
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch {
    padding: 3px !important;
    gap: 2px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-stage .iba-aj-stage-btn {
    height: 32px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    border: 0 !important;
    border-radius: var(--ui-radius-s) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-stage .iba-aj-stage-btn.is-on {
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    box-shadow: inset 0 0 0 1px rgba(227, 201, 138, 0.55) !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-stage .iba-aj-stage-btn b,
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch .inv-wh-txn-btn b {
    font-variant-numeric: tabular-nums !important;
    text-decoration: none !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-stage :is(.iba-aj-stage-line, span[aria-hidden]),
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch .inv-wh-txn-line {
    background: var(--ui-line) !important;
  }
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch .inv-wh-txn-btn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    opacity: 0.72 !important;
    text-decoration: none !important;
  }
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch .inv-wh-txn-btn.active { opacity: 1 !important; }
  body.iba-shell-on #wd-reporting #inv-wh-txn-switch .inv-wh-txn-btn.active b { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }

  /* =====================================================================
     6. Page: WorkDesk > Active Task
     ===================================================================== */
  body.iba-shell-on #wd-activetask > .search-and-filter-group {
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    max-width: 640px !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-activetask > .search-and-filter-group .search-bar-local {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  body.iba-shell-on #wd-activetask #active-task-filters { margin: 0 0 14px !important; }
  body.iba-shell-on #wd-activetask #active-task-date-tabs { margin: 0 0 14px !important; padding: 0 !important; }
  body.iba-shell-on #wd-activetask .wd-at-queue {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-activetask .wd-at-queue-kicker {
    margin: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #wd-activetask .wd-at-date-pill {
    height: 38px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 190px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #wd-activetask .wd-at-date-pill i { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-size: 14px !important; }
  body.iba-shell-on #wd-activetask .wd-at-date-pill select {
    height: 36px !important;
    padding: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #wd-activetask .wd-at-date-pill select option { background: var(--ui-night) !important; color: var(--ui-text) !important; }
  body.iba-shell-on #wd-activetask .wd-at-queue-note {
    margin: 0 !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 12.5px !important;
    font-style: normal !important;
    font-weight: 500 !important;
  }
  body.iba-shell-on #wd-activetask > .table-wrapper { max-height: calc(100vh - 360px) !important; }
  body.iba-shell-on #wd-activetask :is(td, th, p, span, div, strong, em, small, button, label, select, input) { font-style: normal !important; }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table th:nth-child(5),
  body.iba-shell-on #wd-activetask table.wd-active-modern-table td.wd-amount-cell {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table td.wd-amount-cell {
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-note-cell {
    max-width: 260px !important;
    white-space: normal !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask table.wd-active-modern-table tr.wd-row-urgent > td:first-child {
    box-shadow: inset 3px 0 0 var(--ui-red) !important;
  }

  /* row actions: same size everywhere, colour says what the action does */
  body.iba-shell-on #wd-activetask table.wd-active-modern-table td:last-child { white-space: nowrap !important; }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-row-action,
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-action-btn {
    height: 30px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    margin: 0 6px 0 0 !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-row-action:last-child { margin-right: 0 !important; }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-row-action:hover,
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-action-btn:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table :is(.wd-action-srv, .wd-action-gold),
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-action-btn {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table :is(.wd-action-srv, .wd-action-gold):hover,
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-action-btn:hover {
    border-color: var(--ui-teal-hover) !important;
    background: var(--ui-teal-hover) !important;
    background-color: var(--ui-teal-hover) !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-action-approve {
    width: 30px !important;
    padding: 0 !important;
    border-color: rgba(95, 211, 160, 0.6) !important;
    background: rgba(95, 211, 160, 0.16) !important;
    background-color: rgba(95, 211, 160, 0.16) !important;
    color: var(--ui-green) !important;
    -webkit-text-fill-color: var(--ui-green) !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-action-reject {
    width: 30px !important;
    padding: 0 !important;
    border-color: rgba(239, 138, 122, 0.6) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
  }
  body.iba-shell-on #wd-activetask table.wd-active-modern-table .wd-row-action i { color: inherit !important; -webkit-text-fill-color: inherit !important; font-size: 12px !important; }

  /* =====================================================================
     7. Page: Inventory > Active Job
     ===================================================================== */
  body.iba-shell-on #inv-active-job .inv-job-searchbar {
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-folder {
    margin: 0 0 14px !important;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    align-items: flex-end !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #inv-active-job #iba-aj-folder #iba-aj-stage { margin: 0 0 6px auto !important; }
  body.iba-shell-on #inv-active-job > .table-wrapper { max-height: calc(100vh - 250px) !important; }
  body.iba-shell-on #inv-active-job :is(td, th, p, span, div, strong, em, small, button) { font-style: normal !important; }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-single-badge {
    display: block !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table :is(.wd-inventory-control-id, .wd-inventory-product-name) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table :is(.wd-inventory-detail-text, .wd-inventory-movement) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-movement i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; margin-right: 4px !important; }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table td:nth-child(5) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #inv-active-job table.wd-inventory-modern-table .wd-inventory-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--inventory-status-color, #A7B6C6) 55%, transparent) !important;
    background: color-mix(in srgb, var(--inventory-status-color, #A7B6C6) 18%, transparent) !important;
    background-color: color-mix(in srgb, var(--inventory-status-color, #A7B6C6) 18%, transparent) !important;
    color: color-mix(in srgb, var(--inventory-status-color, #A7B6C6) 35%, #ffffff) !important;
    -webkit-text-fill-color: color-mix(in srgb, var(--inventory-status-color, #A7B6C6) 35%, #ffffff) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* =====================================================================
     8. Page: Inventory > Work History (shares the Job Records section;
     only rules marked inventory apply here)
     ===================================================================== */
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] :is(td, th, p, span, div, strong, em, small, button, input, select) { font-style: normal !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] > .search-and-filter-group {
    gap: 8px !important;
    align-items: center !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] .report-controls { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] .report-controls > div { gap: 8px !important; align-items: center !important; }
  body.iba-shell-on #wd-reporting #wd-inventory-intransit-contact-filter { width: 190px !important; }
  /* folder: job-type tabs on top, Active Jobs / Completed underneath */
  body.iba-shell-on #wd-reporting #inv-wh-folder {
    padding: 0 !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-l) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs {
    border-bottom: 1px solid var(--ui-line) !important;
    flex-wrap: nowrap !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #report-tabs > button { height: 40px !important; justify-content: center !important; }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    align-items: center !important;
    gap: 6px !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-btn {
    height: 32px !important;
    min-height: 0 !important;
    padding: 0 6px 0 10px !important;
    gap: 8px !important;
    border-radius: var(--ui-radius-s) !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-btn.active {
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(227, 201, 138, 0.55) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-main {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-count {
    min-width: 26px !important;
    width: auto !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.10) !important;
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-btn.active .inv-stage-count {
    background: var(--ui-gold) !important;
    background-color: var(--ui-gold) !important;
    color: #2A1E00 !important;
    -webkit-text-fill-color: #2A1E00 !important;
  }
  body.iba-shell-on #wd-reporting #inventory-job-records-stage-switch .inv-stage-divider { background: var(--ui-line) !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #reporting-printable-area > .table-wrapper { max-height: calc(100vh - 360px) !important; }
  /* cells */
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-control-cell { white-space: nowrap !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-control-id-text {
    display: inline !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-type-pill {
    margin-left: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-product-cell { font-weight: 600 !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table :is(.inv-route-cell, td:nth-child(6), td:nth-child(7), td:nth-child(8)) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table :is(th:nth-child(4), th:nth-child(5), td.inv-qty-cell) {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table td.inv-qty-cell { font-weight: 700 !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-row-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-row-actions > button {
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-row-actions > button:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-row-actions > .transfer-delete-btn {
    border-color: rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: #FFD9D2 !important;
    -webkit-text-fill-color: #FFD9D2 !important;
  }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] #job-records-table .inv-row-actions i { color: inherit !important; -webkit-text-fill-color: inherit !important; font-size: 12px !important; }
  body.iba-shell-on #wd-reporting[data-iba-surface="inventory"] .wd-modern-empty-row {
    padding: 40px 16px !important;
    background: transparent !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }

  /* =====================================================================
     9. Page: Invoice Management > Invoice Records
     ===================================================================== */
  body.iba-shell-on #im-reporting :is(.grid-cell, .grid-header, th, td, span, strong, em, small, label, button, select, input) { font-style: normal !important; }
  body.iba-shell-on #im-reporting #im-reporting-form {
    padding: 14px 16px !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-reporting .iba-records-row { gap: 8px !important; align-items: center !important; }
  body.iba-shell-on #im-reporting .iba-records-filters { gap: 8px !important; }
  body.iba-shell-on #im-reporting .reporting-legend {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
  }
  body.iba-shell-on #im-reporting .reporting-legend .legend-item { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  /* list header: sentence case, same as the other tables */
  body.iba-shell-on #im-reporting .grid-header {
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-reporting .grid-header .grid-cell {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-shadow: none !important;
    border: 0 !important;
  }
  body.iba-shell-on #im-reporting .master-grid-row .grid-cell {
    font-family: inherit !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-reporting .im-entries-title-strip :is(.im-entries-title-label, .im-entries-title-po) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    text-shadow: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #im-reporting .im-entries-title-strip .im-entries-title-po {
    margin-left: 8px !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting .im-nested-invoice-table td {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
  }
  /* totals sit right under the numbers they add up */
  body.iba-shell-on #im-reporting #im-reporting-content .im-entries-total-value {
    padding: 4px 5px !important;
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-reporting #im-reporting-content .im-entries-total-value::before { content: none !important; }
  body.iba-shell-on #im-reporting #im-reporting-content .im-entries-total-value strong {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #im-reporting #im-reporting-content .im-entries-total-label {
    padding: 4px 5px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #im-reporting #im-reporting-content .im-nested-invoice-table tfoot .im-entries-total-row td {
    border-top: 1px solid var(--ui-line) !important;
  }
  /* summary figures in the same type as the table, not a code font */
  body.iba-shell-on #im-reporting :is(.im-records-summary-value, .im-records-summary-label, .summary-stat-item span) {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #im-reporting :is(.im-records-summary-label, .summary-stat-item span:first-child) {
    text-transform: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* summary boxes (inside an open PO and under the list) */
  body.iba-shell-on #im-reporting :is(.im-records-summary, .summary-wrapper) {
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-m) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-reporting .summary-wrapper { border-radius: var(--ui-radius-l) !important; }
  body.iba-shell-on #im-reporting .im-summary-icon-fallback {
    border: 1px solid rgba(227, 201, 138, 0.55) !important;
    background: var(--ui-gold-soft) !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting .summary-title-group span:not(.im-summary-icon-fallback) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #im-reporting .summary-stat-item span:last-child,
  body.iba-shell-on #im-reporting .im-records-summary-value {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #im-reporting .summary-stat-item:not(:last-child)::after { background: var(--ui-line) !important; color: var(--ui-line) !important; }

  /* =====================================================================
     10. Page: WorkDesk > Dashboard (search bar only in this patch)
     ===================================================================== */
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-search-row { gap: 8px !important; align-items: center !important; }
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-search-wrap { width: 340px !important; }
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-search-wrap #wd-active-dashboard-search { width: 100% !important; }

  /* =====================================================================
     11. Page: Invoice Management > PO Close Out (controls in this patch)
     ===================================================================== */
  body.iba-shell-on #im-po-closeout #im-po-closeout-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs {
    display: flex !important;
    gap: 6px !important;
    align-items: flex-end !important;
    border-bottom: 1px solid var(--ui-line) !important;
    margin: 0 0 14px !important;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-tabs > :is(#im-po-closeout-print-btn, #im-po-closeout-excel-btn, #im-po-closeout-excel-both-btn) {
    margin-bottom: 6px !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-print-btn { margin-left: auto !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-form > .search-box::before,
  body.iba-shell-on #im-po-closeout #im-po-closeout-form > .search-box::after { content: none !important; display: none !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > p {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
  }

  /* =====================================================================
     12. One row hover for every list (patch 4)
     Hover = soft light wash + gold edge on the left. An open / expanded row
     keeps a warmer wash and the same gold edge. Text stays light (the old
     white frost bar with dark text is switched off).
     ===================================================================== */
  body.iba-shell-on :is(#workdesk-content-area#workdesk-content-area#workdesk-content-area, #im-content-area#im-content-area#im-content-area) table tbody tr:not(.stock-child-row):is(:hover, :focus-within) > td:not(td[colspan]) {
    background: var(--ui-row-hover) !important;
    background-color: var(--ui-row-hover) !important;
    background-image: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  body.iba-shell-on :is(#workdesk-content-area#workdesk-content-area#workdesk-content-area, #im-content-area#im-content-area#im-content-area) table tbody tr:not(.stock-child-row):is(:hover, :focus-within) > td:not(td[colspan]):first-child {
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  /* open / expanded rows */
  body.iba-shell-on :is(#workdesk-content-area#workdesk-content-area#workdesk-content-area) :is(
      #ms-table tbody tr.ms-parent-row.ms-open,
      #job-records-table tbody tr.inv-job-group-row.is-open,
      #inv-active-job-table-body tr.controlid-group-header.open) > td {
    background: var(--ui-row-open) !important;
    background-color: var(--ui-row-open) !important;
    background-image: none !important;
  }
  body.iba-shell-on :is(#workdesk-content-area#workdesk-content-area#workdesk-content-area) :is(
      #ms-table tbody tr.ms-parent-row.ms-open,
      #job-records-table tbody tr.inv-job-group-row.is-open,
      #inv-active-job-table-body tr.controlid-group-header.open) > td:first-child {
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  /* text keeps its colour on hover (beats the old dark-text hover rules) */
  body.iba-shell-on tbody tr:hover > td {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-shadow: none !important;
  }
  body.iba-shell-on tbody tr:hover > td :where(span, strong, em, a, small, b, div, p, i) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-shadow: none !important;
  }
  /* the scripted frost bars are not used any more */
  body.iba-shell-on :is(.iba-row-frost, .iba-aj-row-frost, .ms-row-frost) {
    display: none !important;
  }
  /* Invoice Records list rows (built from boxes, not a table) */
  body.iba-shell-on #im-reporting#im-reporting .master-grid-row {
    position: relative !important;
    border-radius: var(--ui-radius-s) !important;
    transition: background-color .12s ease !important;
  }
  body.iba-shell-on #im-reporting#im-reporting :is(.master-grid-row, .im-nested-invoice-table tbody tr)::before {
    opacity: 0 !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .master-grid-row:hover {
    background: var(--ui-row-hover) !important;
    background-color: var(--ui-row-hover) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .invoice-card.expanded > .master-grid-row {
    background: var(--ui-row-open) !important;
    background-color: var(--ui-row-open) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting .master-grid-row:hover .grid-cell,
  body.iba-shell-on #im-reporting .master-grid-row:hover .grid-cell * {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table tbody tr:hover > td {
    background: var(--ui-row-hover) !important;
    background-color: var(--ui-row-hover) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table tbody tr:hover > td:first-child {
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  /* clickable rows say so */
  body.iba-shell-on :is(tr.clickable-pdf, tr[title^="Click"], .master-grid-row, .nested-invoice-row) { cursor: pointer !important; }

  /* Invoice Management pages line up with WorkDesk / Inventory pages
     (same left and right margin; before, they sat 24px further right) */
  body.iba-shell-on #invoice-management-view #im-content-area {
    padding: 0 0 32px !important;
    box-sizing: border-box !important;
  }

  /* =====================================================================
     13. Page: WorkDesk > Dashboard
     Status cards become dark glass with their status colour on the left
     edge, in the icon and in a soft corner wash. Same click behaviour.
     ===================================================================== */
  body.iba-shell-on #wd-dashboard :is(p, span, em, small, strong, b, div, button) { font-style: normal !important; }
  body.iba-shell-on #wd-dashboard .wd-active-dashboard-toolbar {
    margin: 0 0 18px !important;
    padding: 0 !important;
    min-height: 0 !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-dashboard #wd-active-dashboard-summary {
    margin: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section { margin: 0 0 22px !important; }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section-head {
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section-head > span {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section-head .wd-section-title {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section-head em {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-section-head > span > i {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 14px !important;
    margin: 0 !important;
  }
  /* the numbers mark the order work moves in: preliminary, approval, finance */
  body.iba-shell-on #wd-dashboard .wd-process-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(227, 201, 138, 0.55) !important;
    background: var(--ui-gold-soft) !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-card-grid > .wd-dashboard-mini-empty { grid-column: 1 / -1 !important; }
  body.iba-shell-on #wd-dashboard .wd-dashboard-mini-empty {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 16px 18px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px dashed var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #wd-dashboard .wd-dashboard-mini-empty i { color: var(--ui-green) !important; -webkit-text-fill-color: var(--ui-green) !important; }

  body.iba-shell-on #wd-dashboard .wd-active-status-card {
    --c: var(--card-c, #7DB7F0);
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 16px 16px 16px 18px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ui-line) !important;
    background: radial-gradient(130% 150% at 100% 0%, color-mix(in srgb, var(--c) 38%, transparent) 0%, transparent 58%), rgba(14, 27, 42, 0.72) !important;
    background-color: rgba(14, 27, 42, 0.70) !important;
    box-shadow: inset 3px 0 0 var(--c) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-align: left !important;
    text-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card:hover {
    border-color: color-mix(in srgb, var(--c) 70%, transparent) !important;
    transform: translateY(-2px) !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card.active {
    border-color: var(--c) !important;
    background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent) 0%, transparent 60%), color-mix(in srgb, var(--c) 14%, rgba(14, 27, 42, 0.82)) !important;
    box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--c) !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card::before,
  body.iba-shell-on #wd-dashboard .wd-active-status-card::after { content: none !important; }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-card-glow { opacity: 0 !important; }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent) !important;
    background: color-mix(in srgb, var(--c) 22%, transparent) !important;
    background-color: color-mix(in srgb, var(--c) 22%, transparent) !important;
    box-shadow: none !important;
    position: static !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-icon i {
    color: color-mix(in srgb, var(--c) 35%, #ffffff) !important;
    -webkit-text-fill-color: color-mix(in srgb, var(--c) 35%, #ffffff) !important;
    font-size: 16px !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    position: static !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-meta strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0 !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-meta em {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-meta small {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.3 !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-arrow {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 13px !important;
    opacity: 1 !important;
    transition: transform .15s ease, color .15s ease !important;
  }
  body.iba-shell-on #wd-dashboard .wd-active-status-card .wd-status-arrow i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  body.iba-shell-on #wd-dashboard .wd-active-status-card:hover .wd-status-arrow {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    transform: translateX(3px) !important;
  }

  /* =====================================================================
     14. Page: Invoice Management > Batch Entry
     The big title banner is gone (the top bar already names the page);
     the "Total in Batch" count stays, top right. Cards use the dark theme
     (js/iba-ui-skin.js removes their fixed inline colours).
     ===================================================================== */
  body.iba-shell-on #im-batch-entry:not(.hidden) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "tools count" "global global" "list list" !important;
    column-gap: 16px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }
  body.iba-shell-on #im-batch-entry > * { grid-column: 1 / -1 !important; margin: 0 !important; }
  body.iba-shell-on #im-batch-entry > .iba-batch-header { grid-area: count !important; }
  body.iba-shell-on #im-batch-entry > .iba-batch-search-row { grid-area: tools !important; }
  body.iba-shell-on #im-batch-entry > #im-batch-global-controls { grid-area: global !important; }
  body.iba-shell-on #im-batch-entry > #im-batch-table-body { grid-area: list !important; }
  body.iba-shell-on #im-batch-entry :is(h1, h2, h3, h4, p, span, label, small, em, strong, div, button, input, select) { font-style: normal !important; }
  body.iba-shell-on #im-batch-entry > .iba-batch-header {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }
  body.iba-shell-on #im-batch-entry > .iba-batch-header::before,
  body.iba-shell-on #im-batch-entry > .iba-batch-header::after { content: none !important; }
  body.iba-shell-on #im-batch-entry > .iba-batch-header .header-title { margin: 0 !important; padding: 0 !important; }
  body.iba-shell-on #im-batch-entry > .iba-batch-header .header-title > div:has(> h1) { display: none !important; }
  body.iba-shell-on #im-batch-entry #batch-count-display {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
  }
  /* toolbar */
  body.iba-shell-on #im-batch-entry .iba-batch-search-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > * { margin: 0 !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > div:not(.search-bar-local) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > .search-bar-local { order: 1 !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > div:has(#im-batch-add-po-button) { order: 2 !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > #im-refresh-batch-button { order: 3 !important; margin-left: auto !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > #im-batch-save-button { order: 4 !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row > div:has(#im-batch-search-by-note-button) { order: 5 !important; flex: 1 1 100% !important; }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row .search-bar-local {
    position: relative !important;
    width: 300px !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-batch-entry .iba-batch-search-row .search-bar-local > i {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    pointer-events: none !important;
  }
  body.iba-shell-on #im-batch-entry :is(#im-batch-po-input, #im-batch-global-status, #im-batch-global-note),
  body.iba-shell-on #im-batch-entry .batch-note-search-wrapper .choices__inner,
  body.iba-shell-on #im-batch-entry #im-batch-global-controls .choices__inner {
    height: 40px !important;
    min-height: 40px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-po-input { padding-left: 38px !important; }
  body.iba-shell-on #im-batch-entry :is(#im-batch-po-input, #im-batch-global-note)::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-weight: 400 !important;
    font-style: normal !important;
  }
  body.iba-shell-on #im-batch-entry :is(#im-batch-po-input, #im-batch-global-status, #im-batch-global-note):focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on #im-batch-entry select option { background: var(--ui-night) !important; color: var(--ui-text) !important; }
  body.iba-shell-on #im-batch-entry .batch-note-search-wrapper {
    width: 520px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-batch-entry :is(#im-refresh-batch-button, #im-batch-save-button, #im-batch-add-po-button, #im-batch-search-existing-button, #im-batch-search-by-status-button, #im-batch-search-by-note-button, #im-batch-clear-button) {
    height: 38px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-clear-button { width: 38px !important; padding: 0 !important; }
  body.iba-shell-on #im-batch-entry :is(#im-refresh-batch-button, #im-batch-add-po-button, #im-batch-search-existing-button, #im-batch-search-by-status-button, #im-batch-search-by-note-button, #im-batch-clear-button):hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
  }
  body.iba-shell-on #im-batch-entry :is(#im-refresh-batch-button, #im-batch-add-po-button, #im-batch-search-existing-button, #im-batch-search-by-status-button, #im-batch-search-by-note-button, #im-batch-clear-button) i {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-save-button {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-save-button:hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; border-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on #im-batch-entry #im-batch-save-button i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  /* "apply to every card" panel */
  body.iba-shell-on #im-batch-entry #im-batch-global-controls {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px 14px !important;
    align-items: end !important;
    padding: 14px 16px 16px !important;
    min-height: 0 !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls > div:first-child {
    grid-column: 1 / -1 !important;
    margin: 0 0 4px !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls > div:first-child * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls > div:first-child i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls label,
  body.iba-shell-on #im-batch-entry .batch-invoice-card label {
    margin: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
  }

  /* batch cards */
  body.iba-shell-on #im-batch-entry #im-batch-table-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: inset 3px 0 0 var(--ui-teal) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    transform: none !important;
    transition: border-color .15s ease !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin]:hover,
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin]:focus-within {
    border-color: rgba(227, 201, 138, 0.45) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-card-header {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 34px !important;
    gap: 10px 12px !important;
    align-items: end !important;
    margin: 0 !important;
    padding: 14px 16px 12px !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    background: transparent !important;
    background-image: none !important;
    border-radius: var(--ui-radius-l) var(--ui-radius-l) 0 0 !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-card-header > * { min-width: 0 !important; margin: 0 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-po { grid-column: 1 !important; grid-row: 1 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-site { grid-column: 2 !important; grid-row: 1 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-vendor { grid-column: 3 / span 2 !important; grid-row: 1 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-remove { grid-column: 5 !important; grid-row: 1 !important; justify-self: end !important; align-self: center !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-inv { grid-column: 1 !important; grid-row: 2 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-att { grid-column: 2 !important; grid-row: 2 !important; position: relative !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-status { grid-column: 3 !important; grid-row: 2 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-note { grid-column: 4 / span 2 !important; grid-row: 2 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(.bc-po, .bc-site, .bc-vendor) {
    align-self: center !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-po { font-size: 15px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(.bc-po, .bc-site, .bc-vendor) i {
    margin-right: 6px !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 12px !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-po span {
    margin-left: 6px !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-field > label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 22px !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-field > label > span:first-child {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font: inherit !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-field > label > span:last-child:not(:first-child) {
    display: inline-flex !important;
    gap: 4px !important;
    align-items: center !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(input.batch-input, select.batch-input, .batch-attention-btn) {
    width: 100% !important;
    height: 36px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(8, 18, 30, 0.55) !important;
    background-color: rgba(8, 18, 30, 0.55) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    color-scheme: dark !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-attention-btn {
    display: block !important;
    padding-right: 28px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    position: relative !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .bc-att::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    bottom: 15px !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid var(--ui-text-2) !important;
    border-bottom: 1.5px solid var(--ui-text-2) !important;
    transform: rotate(45deg) !important;
    pointer-events: none !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(input.batch-input, select.batch-input, .batch-attention-btn):hover { border-color: rgba(255, 255, 255, 0.26) !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(input.batch-input, select.batch-input, .batch-attention-btn):focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85) !important; cursor: pointer !important; }
  /* quick-fill buttons: small chips, each keeps its own colour */
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(.btn-quick-ipc, .btn-quick-f, .btn-quick-five, .btn-quick-status-report, .btn-quick-status-srv, .btn-quick-status-sum) {
    height: 20px !important;
    min-height: 0 !important;
    max-height: 20px !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border-radius: 6px !important;
    border: 1px solid var(--ui-line) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    letter-spacing: 0.02em !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-ipc { background: var(--ui-teal) !important; border-color: var(--ui-teal) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-f { background: transparent !important; border-color: rgba(23, 160, 174, 0.8) !important; color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-five { background: var(--ui-gold-soft) !important; border-color: rgba(227, 201, 138, 0.6) !important; color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-status-report { background: rgba(125, 183, 240, 0.16) !important; border-color: rgba(125, 183, 240, 0.55) !important; color: #C3DDF8 !important; -webkit-text-fill-color: #C3DDF8 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-status-srv { background: rgba(242, 193, 78, 0.16) !important; border-color: rgba(242, 193, 78, 0.55) !important; color: #F8DC97 !important; -webkit-text-fill-color: #F8DC97 !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .btn-quick-status-sum { background: rgba(185, 164, 245, 0.16) !important; border-color: rgba(185, 164, 245, 0.55) !important; color: #D8CCFB !important; -webkit-text-fill-color: #D8CCFB !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] :is(.btn-quick-ipc, .btn-quick-f, .btn-quick-five, .btn-quick-status-report, .btn-quick-status-srv, .btn-quick-status-sum):hover { filter: brightness(1.15) !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-remove-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-remove-btn i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-card-body {
    margin: 0 !important;
    padding: 12px 16px 16px !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 0 var(--ui-radius-l) var(--ui-radius-l) !important;
  }
  body.iba-shell-on #im-batch-entry .batch-invoice-card[data-ui-skin] .batch-input-grid {
    display: grid !important;
    grid-template-columns: 1.4fr 1.4fr 1.2fr 1fr 1fr 1fr 1fr !important;
    gap: 10px 12px !important;
    overflow: visible !important;
  }

  /* =====================================================================
     15. Page: Invoice Management > Summary Note
     The title banner is gone. Left: the note form on dark glass with its
     buttons; right: the summary paper stays white (it is what gets printed).
     ===================================================================== */
  body.iba-shell-on #im-summary-note { height: calc(100vh - 150px) !important; padding-top: 0 !important; gap: 0 !important; }
  body.iba-shell-on #im-summary-note :is(h1, h3, p, span, label, small, em, strong, div, button, input, select, textarea):not(#summary-note-printable-area *) { font-style: normal !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    justify-content: flex-end !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head::before,
  body.iba-shell-on #im-summary-note > .iba-summary-page-head::after { content: none !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head > div:first-child { display: none !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head:has(#summary-note-count-display:empty) { display: none !important; }
  body.iba-shell-on #im-summary-note #summary-note-count-display {
    margin: 0 0 12px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div { gap: 16px !important; min-height: 0 !important; }
  /* left: note form */
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child {
    flex: 0 0 360px !important;
    padding: 16px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-l) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child > div:first-child {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div h3 {
    margin: 0 0 14px !important;
    padding: 0 0 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div h3 i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; margin-right: 4px !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child .form-group { margin: 0 0 12px !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child label {
    display: block !important;
    margin: 0 0 6px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child label span { color: var(--ui-red) !important; -webkit-text-fill-color: var(--ui-red) !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child small {
    display: block !important;
    margin-top: 6px !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 11.5px !important;
  }
  body.iba-shell-on #im-summary-note :is(#summary-note-previous-input, #summary-note-current-input, #summary-note-status-input, #summary-note-srv-input, #summary-note-custom-notes-input) {
    width: 100% !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(8, 18, 30, 0.55) !important;
    background-color: rgba(8, 18, 30, 0.55) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
  }
  body.iba-shell-on #im-summary-note :is(#summary-note-previous-input, #summary-note-current-input) { padding-left: 34px !important; }
  body.iba-shell-on #im-summary-note #summary-note-current-input { border-color: rgba(227, 201, 138, 0.55) !important; font-weight: 600 !important; }
  body.iba-shell-on #im-summary-note #summary-note-custom-notes-input { height: 64px !important; padding: 10px 12px !important; resize: vertical !important; }
  body.iba-shell-on #im-summary-note :is(#summary-note-previous-input, #summary-note-current-input, #summary-note-srv-input, #summary-note-custom-notes-input)::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-weight: 400 !important;
  }
  body.iba-shell-on #im-summary-note :is(#summary-note-previous-input, #summary-note-current-input, #summary-note-status-input, #summary-note-srv-input, #summary-note-custom-notes-input):focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on #im-summary-note #summary-note-status-input option { background: var(--ui-night) !important; color: var(--ui-text) !important; }
  body.iba-shell-on #im-summary-note .form-group > div[style*="relative"] > i {
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 13px !important;
  }
  body.iba-shell-on #im-summary-note .form-group > div[style*="relative"] > i.fa-pen { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }
  /* action bar at the bottom of the form */
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 -16px -16px !important;
    padding: 12px 16px 16px !important;
    border-top: 1px solid var(--ui-line-soft) !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
    border-radius: 0 0 var(--ui-radius-l) var(--ui-radius-l) !important;
  }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child > div:last-child > * { margin: 0 !important; }
  body.iba-shell-on #im-summary-note #summary-note-generate-btn { grid-column: 1 / -1 !important; }
  body.iba-shell-on #im-summary-note > .iba-summary-page-head + div > div:first-child > div:last-child > div:last-child { grid-column: 1 / -1 !important; display: flex !important; }
  body.iba-shell-on #im-summary-note :is(#summary-note-generate-btn, #summary-note-clear-btn, #summary-note-update-btn, #im-refresh-summary-button, #summary-note-prev-pdf-btn, #summary-note-print-btn) {
    width: 100% !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-summary-note :is(#summary-note-generate-btn, #summary-note-clear-btn, #summary-note-update-btn, #im-refresh-summary-button, #summary-note-prev-pdf-btn, #summary-note-print-btn) i {
    font-size: 13px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #im-summary-note :is(#summary-note-clear-btn, #summary-note-update-btn, #im-refresh-summary-button, #summary-note-prev-pdf-btn, #summary-note-print-btn):hover:not(:disabled) {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
  }
  body.iba-shell-on #im-summary-note #summary-note-generate-btn {
    height: 44px !important;
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px !important;
  }
  body.iba-shell-on #im-summary-note #summary-note-generate-btn:hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; border-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on #im-summary-note #summary-note-generate-btn i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  body.iba-shell-on #im-summary-note #summary-note-update-btn { border-color: rgba(23, 160, 174, 0.7) !important; background: var(--ui-teal-soft) !important; background-color: var(--ui-teal-soft) !important; }
  body.iba-shell-on #im-summary-note #summary-note-update-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  body.iba-shell-on #im-summary-note #summary-note-update-btn:disabled { opacity: 0.55 !important; cursor: wait !important; }
  /* right: the paper */
  body.iba-shell-on #im-summary-note .iba-summary-pdf-pane {
    padding: 14px 20px 24px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-l) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-summary-note .iba-summary-pdf-tools {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-summary-note .iba-summary-pdf-tools > :is(#summary-note-prev-pdf-btn, #summary-note-print-btn) { width: auto !important; }
  body.iba-shell-on #im-summary-note #summary-placeholder-msg { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-family: inherit !important; margin-top: 80px !important; }
  body.iba-shell-on #im-summary-note #summary-placeholder-msg h3 {
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #im-summary-note #summary-placeholder-msg p { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-size: 13px !important; }
  body.iba-shell-on #im-summary-note #summary-placeholder-msg i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; }
  body.iba-shell-on #im-summary-note #summary-note-printable-area { border-radius: 4px !important; box-shadow: 0 18px 40px rgba(3, 10, 18, 0.45) !important; }

  /* =====================================================================
     16. Page: Invoice Management > Invoice Entry
     (the invoice form itself is a popup: themed with the other popups)
     ===================================================================== */
  body.iba-shell-on #im-invoice-entry :is(h2, h3, p, span, label, small, em, strong, div, button, input, a, td, th):not(.modal-overlay *) { font-style: normal !important; }
  body.iba-shell-on #im-invoice-entry #im-po-search-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-po-search-container .search-bar-local {
    position: relative !important;
    width: 340px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-po-search-container .search-bar-local > i {
    position: absolute !important;
    left: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    pointer-events: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-po-search-input,
  body.iba-shell-on #im-entry-sidebar #im-sidebar-search {
    width: 100% !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px 0 38px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    box-shadow: none !important;
    outline: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-entry-sidebar #im-sidebar-search { padding-left: 14px !important; }
  body.iba-shell-on :is(#im-po-search-input, #im-sidebar-search)::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-style: normal !important;
    font-weight: 400 !important;
  }
  body.iba-shell-on :is(#im-po-search-input, #im-sidebar-search):focus {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on #im-invoice-entry :is(#im-po-search-button, #im-refresh-entry-button, #im-po-clear-button, #im-open-invoice-form-btn) {
    height: 38px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-invoice-entry #im-refresh-entry-button { width: 38px !important; padding: 0 !important; }
  body.iba-shell-on #im-invoice-entry :is(#im-refresh-entry-button, #im-po-clear-button):hover { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; border-color: rgba(255, 255, 255, 0.26) !important; }
  body.iba-shell-on #im-invoice-entry :is(#im-refresh-entry-button, #im-po-clear-button) i { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-invoice-entry :is(#im-po-search-button, #im-open-invoice-form-btn) {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #im-invoice-entry :is(#im-po-search-button, #im-open-invoice-form-btn):hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; border-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on #im-invoice-entry :is(#im-po-search-button, #im-open-invoice-form-btn) i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  /* PO strip */
  body.iba-shell-on #im-invoice-entry #im-modal-po-details {
    margin: 12px 0 0 !important;
    padding: 10px 16px !important;
    min-height: 0 !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-invoice-entry #im-modal-po-details .po-compact-grid { gap: 8px 22px !important; align-items: center !important; }
  body.iba-shell-on #im-invoice-entry #im-modal-po-details .po-compact-grid > div > span:first-child {
    margin-right: 6px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #im-invoice-entry #im-modal-po-details :is(.im-po-no, .im-po-site, .im-po-value, .im-po-vendor) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
  }
  /* existing invoices */
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container { margin-top: 18px !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .section-divider { display: none !important; }
  body.iba-shell-on #im-invoice-entry #existing-invoices-count-display {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  body.iba-shell-on #im-invoice-entry #existing-invoices-count-display::before,
  body.iba-shell-on #im-invoice-entry #existing-invoices-count-display::after { content: none !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container > .table-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.28) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container thead th {
    padding: 12px 14px !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container thead tr { background: transparent !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container :is(tbody, tfoot) td {
    padding: 11px 14px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container tbody td:nth-child(1) { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container tbody td:nth-child(2) { font-weight: 600 !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container :is(th:nth-child(4), th:nth-child(5), tbody td:nth-child(4), tbody td:nth-child(5), #im-invoices-total-value, #im-invoices-total-paid) {
    text-align: right !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container :is(tbody td:nth-child(4), tbody td:nth-child(5)) { font-weight: 600 !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container tfoot { background: transparent !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container tfoot td {
    border-bottom: 0 !important;
    border-top: 1px solid var(--ui-line) !important;
    font-weight: 700 !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container tfoot td:first-child { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group { display: inline-flex !important; gap: 6px !important; align-items: center !important; flex-wrap: wrap !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group > :is(a, button) {
    height: 28px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 28px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group > :is(a, button):hover { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group > :is(.invoice-pdf-btn, .srv-pdf-btn, .report-pdf-btn) { border-color: rgba(23, 160, 174, 0.6) !important; background: var(--ui-teal-soft) !important; background-color: var(--ui-teal-soft) !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group > .history-btn { padding: 0 !important; width: 28px !important; color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group > .delete-btn {
    border-color: rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: #FFD9D2 !important;
    -webkit-text-fill-color: #FFD9D2 !important;
  }
  body.iba-shell-on #im-invoice-entry #im-existing-invoices-container .action-btn-group i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  /* Active Jobs side list */
  body.iba-shell-on #invoice-management-view #im-entry-sidebar#im-entry-sidebar {
    background: rgba(10, 21, 34, 0.80) !important;
    background-color: rgba(10, 21, 34, 0.80) !important;
    background-image: none !important;
    border: 0 !important;
    border-left: 1px solid var(--ui-line) !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-title {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: 0 !important;
  }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-title::after { content: none !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item {
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    border-left: 3px solid var(--ui-text-3) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .12s ease, border-color .12s ease !important;
  }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item:hover {
    background: var(--ui-field-hover) !important;
    background-color: var(--ui-field-hover) !important;
    border-top-color: rgba(227, 201, 138, 0.45) !important;
    border-right-color: rgba(227, 201, 138, 0.45) !important;
    border-bottom-color: rgba(227, 201, 138, 0.45) !important;
  }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item :is(.im-compact-po, .im-compact-amount) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item .im-compact-vendor { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-size: 12.5px !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item .im-compact-status { font-size: 12px !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item .im-compact-category {
    background: rgba(95, 211, 160, 0.14) !important;
    border-color: rgba(95, 211, 160, 0.45) !important;
    color: #A8EBCB !important;
    -webkit-text-fill-color: #A8EBCB !important;
  }
  /* the left edge keeps the job's colour: red = new entry, orange = pending */
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item[style*="220, 53, 69"] { border-left-color: #EF8A7A !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item[style*="253, 126, 20"] { border-left-color: #F2B36B !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item[style*="220, 53, 69"] .im-compact-status { color: #F5A99C !important; -webkit-text-fill-color: #F5A99C !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item[style*="253, 126, 20"] .im-compact-status { color: #F7C58A !important; -webkit-text-fill-color: #F7C58A !important; }
  body.iba-shell-on #im-entry-sidebar .im-sidebar-no-jobs { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }

  /* =====================================================================
     17. Page: Invoice Management > Payments
     ===================================================================== */
  body.iba-shell-on #im-payments :is(h1, p, span, strong, small, em, div, button, input, td, th) { font-style: normal !important; }
  body.iba-shell-on #im-payments .im-payment-empty-state {
    margin: 0 0 14px !important;
    padding: 34px 20px !important;
    min-height: 0 !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px dashed var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #im-payments .im-payment-empty-state > i {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 12px !important;
    background: var(--ui-teal-soft) !important;
    color: #7FD6DE !important;
    -webkit-text-fill-color: #7FD6DE !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments .im-payment-empty-state strong { color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; font-size: 16px !important; }
  body.iba-shell-on #im-payments .im-payment-empty-state span { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-size: 13px !important; }
  body.iba-shell-on #im-payments .im-payment-cart-table-wrap {
    margin: 0 0 14px !important;
    padding: 0 !important;
    overflow: auto !important;
    max-height: calc(100vh - 300px) !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.28) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-payments #im-payments-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments #im-payments-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    padding: 12px 14px !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
    background-image: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments #im-payments-table thead th:nth-child(4) { text-align: right !important; }
  body.iba-shell-on #im-payments #im-payments-table tbody tr { background: transparent !important; box-shadow: none !important; border: 0 !important; }
  body.iba-shell-on #im-payments #im-payments-table tbody td {
    padding: 10px 14px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments #im-payments-table tbody tr:not(.im-payment-vendor-group-row) td:first-child { font-weight: 600 !important; }
  /* company sub-heading rows */
  body.iba-shell-on #im-payments #im-payments-table tbody tr.im-payment-vendor-group-row > td {
    padding: 9px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
  }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
  }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading > div:first-child { display: flex !important; align-items: center !important; gap: 10px !important; }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading strong { color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; font-size: 13.5px !important; font-weight: 700 !important; }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading span { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; }
  body.iba-shell-on #im-payments .im-payment-vendor-group-heading > div:last-child strong { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; font-variant-numeric: tabular-nums !important; }
  body.iba-shell-on #im-payments #im-payments-table :is(.im-payment-amount-input, .im-payment-paid-date-input) {
    height: 34px !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 170px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(8, 18, 30, 0.55) !important;
    background-color: rgba(8, 18, 30, 0.55) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
    box-shadow: none !important;
    outline: none !important;
    color-scheme: dark !important;
  }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-amount-input { text-align: right !important; margin-left: auto !important; display: block !important; }
  body.iba-shell-on #im-payments #im-payments-table :is(.im-payment-amount-input, .im-payment-paid-date-input):focus { border-color: var(--ui-gold) !important; box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important; }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-paid-date-input:disabled { opacity: 0.7 !important; }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-with-accounts-date {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-with-accounts-date i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; margin-right: 4px !important; }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-with-accounts-date.is-missing { color: var(--ui-amber) !important; -webkit-text-fill-color: var(--ui-amber) !important; }
  body.iba-shell-on #im-payments #im-payments-table .im-payment-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(23, 160, 174, 0.55) !important;
    background: var(--ui-teal-soft) !important;
    background-color: var(--ui-teal-soft) !important;
    color: #9FE3EA !important;
    -webkit-text-fill-color: #9FE3EA !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments #im-payments-table .payment-remove-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--ui-radius-s) !important;
    border: 1px solid rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-payments #im-payments-table .payment-remove-btn i { color: inherit !important; -webkit-text-fill-color: inherit !important; font-size: 13px !important; }
  /* total + actions bar */
  body.iba-shell-on #im-payments .im-payment-checkout-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    min-height: 0 !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #im-payments .im-payment-cart-total span {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #im-payments .im-payment-cart-total strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-payments .im-payment-checkout-actions { display: flex !important; gap: 8px !important; align-items: center !important; }
  body.iba-shell-on #im-payments :is(#im-clear-payments-button, #im-add-payment-button, #im-save-payments-button) {
    height: 40px !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-payments :is(#im-clear-payments-button, #im-add-payment-button):hover:not(:disabled) { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; border-color: rgba(255, 255, 255, 0.26) !important; }
  body.iba-shell-on #im-payments :is(#im-clear-payments-button, #im-add-payment-button) i { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #im-payments #im-clear-payments-button i { color: var(--ui-red) !important; -webkit-text-fill-color: var(--ui-red) !important; }
  body.iba-shell-on #im-payments #im-save-payments-button {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #im-payments #im-save-payments-button:hover:not(:disabled) { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; border-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on #im-payments #im-save-payments-button i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  body.iba-shell-on #im-payments :is(#im-clear-payments-button, #im-save-payments-button):disabled { opacity: 0.45 !important; cursor: not-allowed !important; }
  body.iba-shell-on #im-payments .im-payment-status-message { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }

  /* =====================================================================
     18. Page: Settings
     No white boxes: every field uses the same dark field as the other pages.
     The big "Account Settings" banner goes, like the other page banners.
     ===================================================================== */
  body.iba-shell-on #wd-settings :is(h1, h2, h3, p, span, label, small, em, strong, div, button, input, select, textarea) { font-style: normal !important; }
  body.iba-shell-on #wd-settings .settings-hero { display: none !important; }
  body.iba-shell-on #wd-settings .settings-grid { gap: 16px !important; }
  body.iba-shell-on #wd-settings .settings-card {
    padding: 18px 20px !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
  }
  body.iba-shell-on #wd-settings .settings-card::before,
  body.iba-shell-on #wd-settings .settings-card::after { content: none !important; }
  body.iba-shell-on #wd-settings .settings-card-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    background: transparent !important;
  }
  body.iba-shell-on #wd-settings .settings-card-icon {
    flex: 0 0 auto !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    border: 1px solid rgba(227, 201, 138, 0.45) !important;
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-settings .settings-card-icon i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; font-size: 15px !important; }
  body.iba-shell-on #wd-settings .settings-card-header h2 {
    margin: 0 0 3px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-settings .settings-card-header h2::after { content: none !important; }
  body.iba-shell-on #wd-settings .settings-card-header p,
  body.iba-shell-on #wd-settings :is(.input-note, .small-muted) {
    margin: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
  }
  body.iba-shell-on #wd-settings .settings-card-eyebrow,
  body.iba-shell-on #wd-settings .im-admin-mini-label {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #wd-settings .form-group > label,
  body.iba-shell-on #wd-settings .settings-fields-grid label:not(.im-admin-switch) {
    margin: 0 0 6px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #wd-settings :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="number"], input:not([type]), select, textarea) {
    width: 100% !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(8, 18, 30, 0.55) !important;
    background-color: rgba(8, 18, 30, 0.55) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    color-scheme: dark !important;
  }
  body.iba-shell-on #wd-settings textarea { height: auto !important; min-height: 92px !important; padding: 10px 12px !important; resize: vertical !important; }
  body.iba-shell-on #wd-settings :is(input, select, textarea)[readonly] {
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    border-style: dashed !important;
  }
  body.iba-shell-on #wd-settings :is(input, select, textarea)::placeholder { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; font-weight: 400 !important; }
  body.iba-shell-on #wd-settings :is(input, select, textarea):not([readonly]):focus { border-color: var(--ui-gold) !important; box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important; }
  body.iba-shell-on #wd-settings select option { background: var(--ui-night) !important; color: var(--ui-text) !important; }
  body.iba-shell-on #wd-settings input[type="checkbox"] { width: 17px !important; height: 17px !important; accent-color: var(--ui-teal) !important; }
  body.iba-shell-on #wd-settings .checkbox-group.settings-toggle {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  body.iba-shell-on #wd-settings .checkbox-group.settings-toggle label { margin: 0 !important; }
  body.iba-shell-on #wd-settings .checkbox-group.settings-toggle label span { display: block !important; color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; }
  body.iba-shell-on #wd-settings .checkbox-group.settings-toggle label small { display: block !important; color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; font-size: 12px !important; font-weight: 500 !important; }
  body.iba-shell-on #wd-settings .settings-vacation-panel {
    padding: 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line-soft) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }
  /* buttons */
  body.iba-shell-on #wd-settings :is(button, .secondary-btn, .primary-btn, .danger-btn):not(.iba-open-choice):not(.im-admin-switch) {
    height: 38px !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #wd-settings :is(button, .secondary-btn):not(.iba-open-choice):not(.im-admin-switch):hover { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; border-color: rgba(255, 255, 255, 0.26) !important; }
  body.iba-shell-on #wd-settings :is(button, .secondary-btn, .primary-btn, .danger-btn):not(.iba-open-choice) i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  body.iba-shell-on #wd-settings :is(#update-settings-button, #celebration-save-btn, #general-announcement-save-btn, #iba-open-save, .iba-bg-save) {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #wd-settings :is(#update-settings-button, #celebration-save-btn, #general-announcement-save-btn, #iba-open-save, .iba-bg-save):hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; border-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on #wd-settings :is(.danger-btn, #celebration-disable-btn, #general-announcement-disable-btn) {
    border-color: rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    color: #FFD9D2 !important;
    -webkit-text-fill-color: #FFD9D2 !important;
  }
  body.iba-shell-on #wd-settings .settings-action-row { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 14px !important; }
  body.iba-shell-on #wd-settings .main-settings-actions { justify-content: flex-end !important; }
  body.iba-shell-on #wd-settings #update-settings-button { height: 42px !important; padding: 0 22px !important; }
  body.iba-shell-on #wd-settings .settings-message-line:empty { display: none !important; }
  /* manual PO mode panel */
  body.iba-shell-on #wd-settings :is(.im-admin-mode-panel, .im-admin-toggle-row, .im-admin-rule) {
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  body.iba-shell-on #wd-settings :is(.im-admin-mode-panel, .im-admin-toggle-row, .im-admin-rule) :is(strong, b) { color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; }
  body.iba-shell-on #wd-settings :is(.im-admin-mode-panel, .im-admin-toggle-row, .im-admin-rule) :is(p, span:not(.im-admin-status-pill):not(.im-admin-switch-track):not(.im-admin-switch-knob), small) { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #wd-settings .im-admin-mode-icon,
  body.iba-shell-on #wd-settings .im-admin-mode-icon i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; background: transparent !important; }
  body.iba-shell-on #wd-settings .im-admin-rule i { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #wd-settings .im-admin-status-pill {
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-settings .im-admin-status-pill.is-on {
    border-color: rgba(95, 211, 160, 0.55) !important;
    background: rgba(95, 211, 160, 0.14) !important;
    background-color: rgba(95, 211, 160, 0.14) !important;
    color: #A8EBCB !important;
    -webkit-text-fill-color: #A8EBCB !important;
  }
  body.iba-shell-on #wd-settings .im-admin-switch-track {
    background: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid var(--ui-line) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-settings .im-admin-switch input:checked + .im-admin-switch-track {
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    border-color: var(--ui-teal) !important;
  }
  /* background pickers */
  body.iba-shell-on #wd-settings .iba-bg-row {
    padding: 10px 12px !important;
    margin: 0 0 8px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line-soft) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }
  body.iba-shell-on #wd-settings .iba-bg-row .iba-bg-preview { border-radius: 8px !important; border: 1px solid var(--ui-line) !important; }
  body.iba-shell-on #wd-settings .iba-bg-meta h3 {
    margin: 0 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on #wd-settings .iba-bg-filename { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; font-size: 12px !important; }
  body.iba-shell-on #wd-settings .iba-bg-row :is(.iba-bg-browse, .iba-bg-save) { height: 34px !important; padding: 0 14px !important; }
  /* opening picker: five cards, each with a small picture of its opening */
  body.iba-shell-on #wd-settings .iba-open-choices {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
  }
  body.iba-shell-on #wd-settings .iba-open-choice {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 10px 12px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: border-color .15s ease, background-color .15s ease !important;
  }
  body.iba-shell-on #wd-settings .iba-open-choice:hover { border-color: rgba(227, 201, 138, 0.45) !important; background: rgba(255, 255, 255, 0.05) !important; }
  body.iba-shell-on #wd-settings .iba-open-choice.is-selected {
    border-color: var(--ui-gold) !important;
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    box-shadow: 0 0 0 1px var(--ui-gold) !important;
  }
  body.iba-shell-on #wd-settings .iba-open-choice strong { margin: 4px 0 0 !important; font-size: 13px !important; font-weight: 700 !important; color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; }
  body.iba-shell-on #wd-settings .iba-open-choice small { font-size: 12px !important; line-height: 1.35 !important; color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  body.iba-shell-on #wd-settings .iba-open-sample {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 96px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-settings .iba-open-sample .iba-open-mini {
    position: relative !important;
    z-index: 2 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3em !important;
    padding-left: 0.3em !important;
    color: #E8D9B6 !important;
    -webkit-text-fill-color: #E8D9B6 !important;
  }
  body.iba-shell-on #wd-settings .iba-open-sample.is-a { background: radial-gradient(60% 70% at 50% 50%, rgba(227, 201, 138, 0.22), transparent 70%), #0A131E !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-a::after { content: "" !important; position: absolute !important; left: 30% !important; right: 30% !important; top: 66% !important; height: 1px !important; background: linear-gradient(90deg, transparent, #E3C98A, transparent) !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-b { background: radial-gradient(circle at 50% 50%, #17404A, #0A1519 72%) !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-b::before { content: "" !important; position: absolute !important; width: 72px !important; height: 72px !important; border-radius: 50% !important; border: 1.5px solid #E3C98A !important; box-shadow: 0 0 0 6px rgba(227, 201, 138, 0.10) !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-b .iba-open-mini { font-size: 15px !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-c { background: linear-gradient(180deg, rgba(8, 14, 24, 0.5), rgba(8, 14, 24, 0.7)), var(--iba-login-bg) center / cover, #0B1220 !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-c::before { content: "" !important; position: absolute !important; top: -20% !important; bottom: -20% !important; left: 56% !important; width: 18% !important; background: linear-gradient(90deg, transparent, rgba(255, 244, 220, 0.5), transparent) !important; transform: skewX(-14deg) !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-c .iba-open-mini { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-d {
    background:
      linear-gradient(rgba(95, 199, 209, 0.18) 1px, transparent 1px) 0 0 / 16px 16px,
      linear-gradient(90deg, rgba(95, 199, 209, 0.18) 1px, transparent 1px) 0 0 / 16px 16px,
      #0A1A29 !important;
  }
  body.iba-shell-on #wd-settings .iba-open-sample.is-d::before { content: "" !important; position: absolute !important; left: 28% !important; right: 28% !important; top: 18% !important; bottom: 20% !important; border: 1.2px solid #6FD0DA !important; border-top-color: transparent !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-d::after { content: "" !important; position: absolute !important; left: 18% !important; right: 18% !important; bottom: 20% !important; height: 1.5px !important; background: #E3C98A !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-d .iba-open-mini { font-size: 16px !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-e { background: linear-gradient(180deg, #0B1622 0%, #10243A 55%, #1B3550 100%) !important; align-items: flex-start !important; padding-top: 18px !important; }
  body.iba-shell-on #wd-settings .iba-open-sample.is-e::after {
    content: "" !important;
    position: absolute !important;
    left: 8% !important;
    right: 8% !important;
    bottom: 0 !important;
    height: 46% !important;
    background:
      linear-gradient(0deg, #13304A 0 40%, transparent 40%) 0 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #183858 0 70%, transparent 70%) 14% 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #13304A 0 52%, transparent 52%) 28% 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #1D3D5A 0 92%, transparent 92%) 43% 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #13304A 0 62%, transparent 62%) 58% 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #183858 0 80%, transparent 80%) 73% 100% / 12% 100% no-repeat,
      linear-gradient(0deg, #13304A 0 45%, transparent 45%) 88% 100% / 12% 100% no-repeat !important;
  }

  /* =====================================================================
     19. Page: Invoice Management > PO Close Out list
     The white cards become dark rows; the state badge and the action stay
     on the right.
     ===================================================================== */
  body.iba-shell-on #im-po-closeout #im-po-closeout-list { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div {
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: var(--ui-radius-l) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel) !important;
    background-color: var(--ui-panel) !important;
    background-image: none !important;
    box-shadow: inset 3px 0 0 var(--ui-text-3) !important;
    backdrop-filter: var(--ui-blur) !important;
    -webkit-backdrop-filter: var(--ui-blur) !important;
    transition: border-color .15s ease !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div.iba-pco-ready { box-shadow: inset 3px 0 0 var(--ui-amber) !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div:hover { border-color: rgba(227, 201, 138, 0.45) !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div { align-items: center !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:first-child > div:nth-child(1) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:first-child > div:nth-child(2) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:first-child > div:nth-child(3) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:first-child > div:nth-child(4) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12.5px !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:last-child > span {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(167, 182, 198, 0.4) !important;
    background: rgba(167, 182, 198, 0.12) !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list > div > div > div:last-child > span[style*="fff7ed"] {
    border-color: rgba(242, 193, 78, 0.5) !important;
    background: rgba(242, 193, 78, 0.15) !important;
    color: #F8DC97 !important;
    -webkit-text-fill-color: #F8DC97 !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list button {
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list button:hover { background: var(--ui-field-hover) !important; background-color: var(--ui-field-hover) !important; }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list button.primary-btn {
    border-color: var(--ui-teal) !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-list button.primary-btn:hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; }

  /* =====================================================================
     20. Searchable dropdowns (Choices) on the pages
     Same dark field as every other input; list opens on a dark panel.
     ===================================================================== */
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices { margin: 0 !important; }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__inner {
    min-height: 40px !important;
    height: auto !important;
    padding: 4px 34px 4px 12px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-field) !important;
    background-color: var(--ui-field) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices.is-focused .choices__inner,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices.is-open .choices__inner {
    border-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.22) !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--single { padding: 0 !important; }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--single .choices__item {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) :is(.choices__placeholder, .choices__list--single .choices__item.choices__placeholder) { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; opacity: 1 !important; font-weight: 400 !important; }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices[data-type*="select-one"]::after {
    border-color: var(--ui-text-2) transparent transparent !important;
    right: 14px !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices[data-type*="select-one"].is-open::after { border-color: transparent transparent var(--ui-text-2) !important; }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list[aria-expanded] {
    margin-top: 6px !important;
    border-radius: var(--ui-radius-m) !important;
    border: 1px solid var(--ui-line) !important;
    background: #0F1C2B !important;
    background-color: #0F1C2B !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.45) !important;
    color: var(--ui-text) !important;
    z-index: 50 !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown .choices__input,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list[aria-expanded] .choices__input {
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line-soft) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13.5px !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown .choices__item,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list[aria-expanded] .choices__item {
    padding: 9px 12px !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 13.5px !important;
    background: transparent !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown .choices__item.is-highlighted,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list[aria-expanded] .choices__item.is-highlighted {
    background: var(--ui-gold-soft) !important;
    background-color: var(--ui-gold-soft) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown .choices__item.choices__item--disabled,
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices__list--dropdown .choices__heading {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    border-bottom-color: var(--ui-line-soft) !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) .choices:not([data-type*="select-one"]) .choices__button { filter: invert(1) !important; opacity: .6 !important; }

  /* keyboard focus visible on every control in these pages */
  body.iba-shell-on #wd-reporting[data-iba-surface="workdesk"] :is(button, a, input, select):focus-visible,
  body.iba-shell-on #wd-material-stock :is(button, a, input, select):focus-visible {
    outline: 2px solid var(--ui-gold) !important;
    outline-offset: 2px !important;
  }

  /* =====================================================================
     22. Patch 6: page polish (desktop)
     ===================================================================== */

  /* 22a. Invoice Records - one solid list, a line under every PO, steady
          columns, money on the right, a coloured dot that matches the legend */
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet {
    padding: 0 !important;
    overflow: clip !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: var(--ui-radius-l) !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
    background-image: none !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .grid-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 0 !important;
    background: var(--ui-head) !important;
    background-color: var(--ui-head) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .grid-header .grid-cell {
    padding: 12px 14px !important;
    border: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .grid-body {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card:last-child { border-bottom: 0 !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card > .master-grid-row {
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    align-items: center !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card:nth-child(even) > .master-grid-row {
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card > .master-grid-row:hover {
    background: var(--ui-row-hover) !important;
    background-color: var(--ui-row-hover) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card.expanded {
    background: rgba(4, 11, 19, 0.38) !important;
    background-color: rgba(4, 11, 19, 0.38) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
    border-bottom-color: rgba(227, 201, 138, 0.28) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card.expanded > .master-grid-row {
    background: var(--ui-row-open) !important;
    background-color: var(--ui-row-open) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card > .detail-grid-row { padding: 6px 16px 14px 18px !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card > .master-grid-row .grid-cell {
    min-width: 0 !important;
    padding: 12px 14px !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-shadow: none !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }
  /* column widths: header and rows use the same shares, so they line up */
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet :is(.grid-header, .master-grid-row) > .grid-cell:nth-child(2) { flex: 0.95 1 0 !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet :is(.grid-header, .master-grid-row) > .grid-cell:nth-child(3) { flex: 0.8 1 0 !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet :is(.grid-header, .master-grid-row) > .grid-cell:nth-child(4) { flex: 1.9 1 0 !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet :is(.grid-header, .master-grid-row) > .grid-cell:nth-child(n+5) {
    flex: 1.1 1 0 !important;
    text-align: right !important;
    justify-content: flex-end !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .master-grid-row > .grid-cell:nth-child(2) {
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: nowrap !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .master-grid-row > .grid-cell:nth-child(3) {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .master-grid-row > .grid-cell:nth-child(n+5) { font-weight: 600 !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .master-grid-row > .grid-cell:nth-child(7) { font-weight: 700 !important; }
  /* a PO that went over its value: balance in red */
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .iba-records-sheet .invoice-card.highlight-negative-balance > .master-grid-row > .grid-cell:nth-child(7) {
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
  }
  /* status dot in front of the PO number (same colours as the legend) */
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .master-grid-row > .grid-cell:nth-child(2)::before {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 9px 1px 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    vertical-align: middle !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card.highlight-fully-paid > .master-grid-row > .grid-cell:nth-child(2)::before { background: #37D67A !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card.highlight-partial > .master-grid-row > .grid-cell:nth-child(2)::before { background: #E4C36A !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .invoice-card.highlight-negative-balance > .master-grid-row > .grid-cell:nth-child(2)::before { background: var(--ui-red) !important; }
  body.iba-shell-on #im-reporting#im-reporting .iba-records-sheet .grid-header > .grid-cell:nth-child(2)::before {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    margin-right: 9px !important;
  }
  body.iba-shell-on #im-reporting#im-reporting .reporting-legend .legend-negative { background: var(--ui-red) !important; }
  /* an open PO's invoice table (patch 7): the columns always add up to the
     width of the list, and the row buttons wrap onto a second line when
     there are many (they were cut off at the right edge) */
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-entry { width: 8% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-no { width: 12% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-date { width: 9% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table :is(col.im-col-value, col.im-col-paid) { width: 10% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-release { width: 9% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-status { width: 10% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-note { width: 13% !important; }
  body.iba-shell-on #im-reporting#im-reporting .im-nested-invoice-table col.im-col-action { width: 19% !important; }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table :is(th:last-child, td.actions) {
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table td.actions .im-record-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table td.actions .im-record-actions > * { flex: 0 0 auto !important; margin: 0 !important; }
  body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table td.actions > span { white-space: nowrap !important; }

  /* empty and loading messages: readable, centred in the list */
  body.iba-shell-on #im-reporting#im-reporting #im-reporting-content > :is(p, .loading-state) {
    margin: 0 !important;
    padding: 38px 20px 40px !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #im-reporting#im-reporting #im-reporting-content > :is(p, .loading-state) * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-style: normal !important;
  }
  body.iba-shell-on #im-reporting#im-reporting #im-reporting-content > p::before,
  body.iba-shell-on #im-reporting#im-reporting #im-reporting-content > .loading-state:not(:has(i))::before {
    content: "\f002" !important;
    display: block !important;
    margin: 0 auto 10px !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 7 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
  }
  body.iba-shell-on #im-reporting#im-reporting #im-reporting-content > .loading-state i { margin-right: 8px !important; color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }
  /* the search box: typed text stops before the grid icon */
  body.iba-shell-on #im-reporting#im-reporting .iba-narrow-search input#im-reporting-search { padding-right: 40px !important; text-overflow: ellipsis !important; }

  /* 22b. Active Task - status tabs and the queue date sit on one solid
          panel; the date hint is readable */
  body.iba-shell-on #wd-activetask#wd-activetask #active-task-filters {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 14px !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask #active-task-filters:has(+ #active-task-date-tabs .wd-at-queue) {
    margin-bottom: 0 !important;
    border-bottom-color: var(--ui-line-soft) !important;
    border-radius: 14px 14px 0 0 !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask #active-task-date-tabs:has(.wd-at-queue) {
    box-sizing: border-box !important;
    margin: 0 0 14px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--ui-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: rgba(10, 21, 33, 0.95) !important;
    background-color: rgba(10, 21, 33, 0.95) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-queue { gap: 8px 14px !important; }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-queue-kicker {
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-date-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-date-pill:hover { border-color: rgba(255, 255, 255, 0.26) !important; }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-date-pill i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-queue-note {
    margin-left: auto !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask .wd-at-queue-note::before {
    content: "\f05a" !important;
    margin-right: 7px !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 7 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
  }
  body.iba-shell-on #wd-activetask#wd-activetask > .table-wrapper {
    border: 1px solid var(--ui-line) !important;
    background: var(--ui-panel-strong) !important;
    background-color: var(--ui-panel-strong) !important;
  }

  /* tick boxes in page lists: same dark square as in the popups */
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) :is(table, .table-wrapper) input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex: 0 0 auto !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.04) center / 11px 11px no-repeat !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
  }
  body.iba-shell-on :is(#workdesk-content-area, #im-content-area) :is(table, .table-wrapper) input[type="checkbox"]:checked {
    border-color: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") !important;
  }

  /* 22d. Add New Job page - same solid panel, fields and buttons as the
          popups; labels and the attachment line readable */
  body.iba-shell-on.iba-add-job-page #standard-job-modal > .modal-container {
    border: 1px solid var(--ui-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #17324C 0%, #0F2235 100%) !important;
    background-color: #12283D !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    max-height: calc(100vh - 100px) !important;
    overflow: hidden !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal > .modal-container::before,
  body.iba-shell-on.iba-add-job-page #standard-job-modal > .modal-container::after,
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header::before,
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header::after,
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header h2::before,
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header h2::after {
    content: none !important;
    display: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header {
    padding: 18px 24px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ui-line) !important;
    border-radius: 18px 18px 0 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header h2 {
    margin: 0 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header .modal-close-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 10px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-header .modal-close-btn:hover { background: rgba(255, 255, 255, 0.07) !important; color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 16px 24px 0 !important;
    background: transparent !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .transfer-2col-grid { gap: 0 22px !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #jobentry-form { position: relative !important; z-index: 1 !important; isolation: isolate !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .transfer-col {
    padding: 2px 0 6px !important;
    gap: 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .transfer-col > * { flex-shrink: 0 !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .form-group { height: auto !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-invoice-fields .form-group { margin: 0 0 12px !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-invoice-fields .form-group:last-of-type { margin-bottom: 0 !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .form-group > label,
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-invoice-fields label {
    display: block;
    margin: 0 0 5px !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    box-sizing: border-box !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal#standard-job-modal select:not([multiple]) {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 36px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B6C6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 15px !important;
    cursor: pointer !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal select option { background: #13293F !important; color: var(--ui-text) !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-other-specify { margin-top: 8px !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal textarea { min-height: 84px !important; line-height: 1.45 !important; resize: vertical !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal :is(input, textarea)::placeholder {
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal :is(input, select, textarea):focus {
    border-color: var(--ui-teal) !important;
    box-shadow: 0 0 0 3px var(--ui-teal-soft) !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal input::-webkit-calendar-picker-indicator { filter: invert(0.8) !important; cursor: pointer !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .wd-field-helper {
    display: block;
    margin-top: 5px !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 12px !important;
    font-style: normal !important;
  }
  /* attachment line and the invoice-only box: soft dashed panels */
  body.iba-shell-on.iba-add-job-page #standard-job-modal .form-group:has(#job-attachment),
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-invoice-fields {
    padding: 12px 14px !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-attachment-label {
    margin-bottom: 8px !important;
    color: #7FD3DC !important;
    -webkit-text-fill-color: #7FD3DC !important;
    font-size: 11.5px !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-attachment-label:hover { color: #A9E6EC !important; -webkit-text-fill-color: #A9E6EC !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-attachment-label span {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-attachment-view-btn {
    flex: 0 0 auto !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    box-shadow: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-attachment-view-btn:hover { background: rgba(255, 255, 255, 0.12) !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal #job-invoice-fields > div:last-child {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
  }
  /* footer: Add / Update teal, Delete red outline, Clear and Cancel quiet */
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    margin: 10px -24px 0 !important;
    padding: 14px 24px !important;
    border: 0 !important;
    border-top: 1px solid var(--ui-line) !important;
    border-radius: 0 0 18px 18px !important;
    background: #0F2235 !important;
    box-shadow: 0 -10px 24px rgba(15, 34, 53, 0.85) !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer button {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 88px !important;
    padding: 0 18px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer button:hover { background: rgba(255, 255, 255, 0.1) !important; background-color: rgba(255, 255, 255, 0.1) !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer :is(#add-job-button, #update-job-button) {
    border-color: transparent !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer :is(#add-job-button, #update-job-button):hover { background: var(--ui-teal-hover) !important; background-color: var(--ui-teal-hover) !important; }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer #delete-job-button {
    border-color: rgba(239, 138, 122, 0.55) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
  }
  body.iba-shell-on.iba-add-job-page #standard-job-modal .modal-footer #delete-job-button:hover { background: var(--ui-red-soft) !important; background-color: var(--ui-red-soft) !important; }
  /* vendor suggestions under "Vendor Name" (invoice jobs) */
  body.iba-shell-on .vendor-suggest-box {
    border: 1px solid var(--ui-line) !important;
    border-radius: 10px !important;
    background: #13293F !important;
    background-color: #13293F !important;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.5) !important;
  }
  body.iba-shell-on .vendor-suggest-box .vendor-suggest-item { color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; border-color: var(--ui-line-soft) !important; background: transparent !important; }
  body.iba-shell-on .vendor-suggest-box .vendor-suggest-item:hover { background: var(--ui-gold-soft) !important; }
  body.iba-shell-on .vendor-suggest-box .vendor-suggest-muted { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; }

  /* Settings > Shell Backgrounds: "Plain dark" preview and the save note (patch 7) */
  body.iba-shell-on #iba-shell-bg-settings .iba-bg-preview.is-none { background: linear-gradient(135deg, #0B1724 0%, #17324C 100%) !important; }
  body.iba-shell-on #iba-shell-bg-settings .iba-bg-note:empty { display: none !important; }
  body.iba-shell-on #iba-shell-bg-settings .iba-bg-note {
    margin: 2px 0 0 !important;
    color: var(--ui-green) !important;
    -webkit-text-fill-color: var(--ui-green) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* 22c. Batch Entry - "Global Overrides" labels readable on their panel */
  body.iba-shell-on #im-batch-entry #im-batch-global-controls label {
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls > div:first-child {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    text-shadow: none !important;
  }
  body.iba-shell-on #im-batch-entry #im-batch-global-controls > div:first-child i { color: var(--ui-gold) !important; -webkit-text-fill-color: var(--ui-gold) !important; }

  /* =====================================================================
     23. Patch 8
     ===================================================================== */
  /* 23a. Batch Entry: the rows pack at the top. The page frame is as tall as
     the window and its rows used to share the spare height, which pushed
     "Global Overrides" far below the Search Note line. Now the list row takes
     the spare height and the controls sit together. */
  body.iba-shell-on #im-batch-entry:not(.hidden) {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-content: start !important;
  }

  /* 23b. Speed: no live blur behind small controls (search boxes, buttons,
     chips, tabs). Each blurred control is redrawn by the graphics card on
     every scroll and hover; on these small, nearly solid parts the blur did
     not show anyway. The big glass panels, cards, side panel and top bar
     keep their blur. */
  html body.iba-shell-on:not(#iba-p8-a):not(#iba-p8-b):not(#iba-p8-c) :is(input, select, textarea, button, .choices__inner, .search-bar-local, .ms-family-chip, .wd-at-date-pill, .blink-tab, .wd-dashboard-mini-empty, .im-payment-empty-state) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 23c. Live counts: Active Task / Active Job (js/iba-live-counts.js).
     A pill in the top bar for each, only while there is something waiting:
     it breathes (soft glow), its dot blinks, and the number counts when it
     changes. The same number sits on the side-menu items. Only opacity and
     size are animated, so the graphics card does the work, not the page. */
  body.iba-shell-on #iba-live-counts { display: flex !important; align-items: center !important; gap: 8px !important; margin-right: 4px !important; }
  body.iba-shell-on #iba-live-counts .iba-live-pill {
    --live-c: #E3C98A;
    --live-glow: rgba(227, 201, 138, 0.55);
    position: relative !important;
    isolation: isolate !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 6px 0 12px !important;
    border: 1px solid var(--live-c) !important;
    border-radius: 999px !important;
    background: rgba(12, 24, 37, 0.88) !important;
    background-image: none !important;
    color: #F4EFE3 !important;
    -webkit-text-fill-color: #F4EFE3 !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .15s ease !important;
  }
  body.iba-shell-on #iba-live-counts .iba-live-pill[hidden] { display: none !important; }
  body.iba-shell-on #iba-live-counts .iba-live-pill[data-live="job"] { --live-c: #7FD6DE; --live-glow: rgba(127, 214, 222, 0.5); }
  body.iba-shell-on #iba-live-counts .iba-live-pill:hover { background: rgba(24, 42, 62, 0.95) !important; }
  body.iba-shell-on #iba-live-counts .iba-live-pill:focus-visible { outline: 2px solid var(--live-c) !important; outline-offset: 2px !important; }
  body.iba-shell-on #iba-live-counts .iba-live-pill > i { color: var(--live-c) !important; -webkit-text-fill-color: var(--live-c) !important; font-size: 12.5px !important; }
  body.iba-shell-on #iba-live-counts .iba-live-glow {
    position: absolute !important;
    inset: -4px !important;
    z-index: -1 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: 0 0 16px 3px var(--live-glow), inset 0 0 10px 1px var(--live-glow) !important;
    pointer-events: none !important;
    opacity: 0.35;
    will-change: opacity, transform;
    animation: iba-live-breath 2.6s ease-in-out infinite !important;
  }
  body.iba-shell-on #iba-live-counts .iba-live-dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 50% !important;
    background: var(--live-c) !important;
    box-shadow: 0 0 6px 1px var(--live-glow) !important;
    will-change: opacity;
    animation: iba-live-blink 1.2s ease-in-out infinite !important;
  }
  body.iba-shell-on #iba-live-counts .iba-live-num {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: var(--live-c) !important;
    color: #13202E !important;
    -webkit-text-fill-color: #13202E !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    line-height: 1 !important;
  }
  body.iba-shell-on #iba-live-counts .iba-live-pill.is-bump .iba-live-num { animation: iba-live-bump .6s cubic-bezier(.2, 1.6, .4, 1) !important; }
  /* room for the pills: the middle title column takes only the width it
     needs (the two sides stay equal, so the title stays centred) */
  body.iba-shell-on #iba-app-shell .iba-shell-header { grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr) !important; column-gap: 16px !important; }
  body.iba-shell-on #iba-app-shell .iba-shell-right > * { flex-shrink: 0 !important; }
  body.iba-shell-on #iba-app-shell .iba-shell-right #iba-shell-username { flex-shrink: 1 !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

  @media (max-width: 1399px) {
    body.iba-shell-on #iba-live-counts .iba-live-label { display: none !important; }
    body.iba-shell-on #iba-live-counts .iba-live-pill { padding-left: 10px !important; }
  }

  /* side menu: the number on Active Task / Active Job, a blinking dot on the
     WorkDesk / Inventory headings */
  body.iba-shell-on #iba-app-shell :is([data-iba-nav="wd-active-task"], [data-iba-nav="inv-active-job"], [data-iba-dash-park]) { position: relative !important; }
  body.iba-shell-on #iba-app-shell .iba-live-badge {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 20px !important;
    height: 19px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #E3C98A !important;
    color: #13202E !important;
    -webkit-text-fill-color: #13202E !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-variant-numeric: tabular-nums !important;
    line-height: 1 !important;
    transform: translateY(-50%);
    will-change: opacity, transform;
    animation: iba-live-badge 2.6s ease-in-out infinite !important;
  }
  body.iba-shell-on #iba-app-shell .iba-live-badge[hidden] { display: none !important; }
  body.iba-shell-on #iba-app-shell .iba-live-badge[data-live="job"] { background: #7FD6DE !important; }
  body.iba-shell-on #iba-app-shell [data-iba-dash-park] .iba-live-badge { right: 26px !important; }
  body.iba-shell-on #iba-app-shell [data-iba-group-toggle].iba-live-has { position: relative !important; }
  body.iba-shell-on #iba-app-shell [data-iba-group-toggle].iba-live-has::before {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    width: 7px !important;
    height: 7px !important;
    margin-top: -3.5px !important;
    border-radius: 50% !important;
    background: #E3C98A !important;
    box-shadow: 0 0 6px 1px rgba(227, 201, 138, 0.6) !important;
    animation: iba-live-blink 1.2s ease-in-out infinite !important;
  }
  body.iba-shell-on #iba-app-shell [data-iba-group-toggle][data-iba-sys="inv"].iba-live-has::before { background: #7FD6DE !important; box-shadow: 0 0 6px 1px rgba(127, 214, 222, 0.6) !important; }
  /* the left edge that opens the side menu glows while something waits */
  body.iba-shell-on.iba-live-on:not(.iba-sidebar-pinned) #iba-sidebar-hotspot::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 18% !important;
    bottom: 18% !important;
    width: 3px !important;
    border-radius: 0 3px 3px 0 !important;
    background: linear-gradient(180deg, transparent, #E3C98A 30%, #7FD6DE 70%, transparent) !important;
    pointer-events: none !important;
    animation: iba-live-breath 2.6s ease-in-out infinite !important;
  }
}
}

@keyframes iba-live-breath {
  0%, 100% { opacity: 0.25; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes iba-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
@keyframes iba-live-badge {
  0%, 100% { opacity: 0.78; transform: translateY(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}
@keyframes iba-live-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.iba-shell-on #iba-live-counts .iba-live-glow,
  body.iba-shell-on #iba-live-counts .iba-live-dot,
  body.iba-shell-on #iba-live-counts .iba-live-num,
  body.iba-shell-on #iba-app-shell .iba-live-badge,
  body.iba-shell-on #iba-app-shell [data-iba-group-toggle].iba-live-has::before,
  body.iba-shell-on #iba-sidebar-hotspot::after { animation: none !important; }
  body.iba-shell-on #iba-live-counts .iba-live-glow { opacity: 0.7 !important; }
}

@media (prefers-reduced-motion: reduce) {
  @layer iba-ui {
    body.iba-shell-on :is(#wd-reporting, #wd-material-stock, #wd-activetask, #inv-active-job, #im-reporting, #im-po-closeout, #wd-dashboard) * { transition: none !important; }
    body.iba-shell-on #wd-activetask #active-task-filters > button.blink-tab::before { animation: none !important; }
  }
}

@keyframes iba-ui-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* =============================================================================
   Opening animation after login (14.0.0 patch 4) - all screens
   Chosen in Settings > Opening (Super Admin). Five kinds:
     A Logo bloom   B Gold seal   C Light wipe   D Blueprint   E Skyline
   Each plays for about 2.9 s, then lifts off the page underneath.
   With "reduce motion" switched on in the device, it simply fades.
   ============================================================================= */
#iba-login-opening.iba-op {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: #0B1622;
  color: #EEF3F8;
  font-family: inherit;
  opacity: 1;
}
#iba-login-opening.iba-op.is-play { animation: ibaOpLift 2.9s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes ibaOpLift {
  0%, 74% { opacity: 1; transform: none; filter: none; }
  100% { opacity: 0; transform: scale(1.035); filter: blur(6px); }
}
#iba-login-opening.iba-op .iba-op-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#iba-login-opening.iba-op .iba-op-mark {
  display: flex;
  gap: 0.34em;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8.5vw, 108px);
  font-weight: 600;
  line-height: 1;
  color: #E8D9B6;
  letter-spacing: 0;
}
#iba-login-opening.iba-op .iba-op-l {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}
#iba-login-opening.iba-op.is-play .iba-op-l { animation: ibaOpLetter .9s cubic-bezier(.2, .7, .2, 1) forwards; }
#iba-login-opening.iba-op.is-play .iba-op-l:nth-child(1) { animation-delay: .25s; }
#iba-login-opening.iba-op.is-play .iba-op-l:nth-child(2) { animation-delay: .40s; }
#iba-login-opening.iba-op.is-play .iba-op-l:nth-child(3) { animation-delay: .55s; }
@keyframes ibaOpLetter { to { opacity: 1; transform: none; filter: none; } }
#iba-login-opening.iba-op .iba-op-hello {
  opacity: 0;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #A7B6C6;
}
#iba-login-opening.iba-op.is-play .iba-op-hello { animation: ibaOpFadeUp .7s ease 1.15s forwards; }
@keyframes ibaOpFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* A - Logo bloom: soft gold bloom behind, a hairline draws under the letters */
#iba-login-opening.iba-op-a { background: radial-gradient(70% 55% at 50% 46%, #13263A 0%, #0A131E 70%); }
#iba-login-opening.iba-op-a .iba-op-glow {
  position: absolute;
  width: min(70vmin, 620px);
  height: min(70vmin, 620px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 201, 138, 0.26) 0%, rgba(227, 201, 138, 0.08) 38%, transparent 68%);
  opacity: 0;
  transform: scale(.6);
}
#iba-login-opening.iba-op-a.is-play .iba-op-glow { animation: ibaOpBloom 2.2s cubic-bezier(.2, .7, .2, 1) .1s forwards; }
@keyframes ibaOpBloom { 0% { opacity: 0; transform: scale(.6); } 55% { opacity: 1; transform: scale(1); } 100% { opacity: .75; transform: scale(1.06); } }
#iba-login-opening.iba-op-a .iba-op-mark { text-shadow: 0 0 28px rgba(227, 201, 138, 0.35); }
#iba-login-opening.iba-op-a .iba-op-line {
  width: min(320px, 60vw);
  height: 1.5px;
  margin-top: -4px;
  background: linear-gradient(90deg, transparent, #E3C98A 30%, #E3C98A 70%, transparent);
  transform: scaleX(0);
}
#iba-login-opening.iba-op-a.is-play .iba-op-line { animation: ibaOpDraw .9s cubic-bezier(.6, 0, .2, 1) .75s forwards; }
@keyframes ibaOpDraw { to { transform: scaleX(1); } }

/* B - Gold seal: a survey-dial ring draws around the mark */
#iba-login-opening.iba-op-b { background: radial-gradient(circle at 50% 46%, #17404A 0%, #0A1519 68%); }
#iba-login-opening.iba-op-b .iba-op-center { display: grid; grid-template-rows: auto auto; justify-items: center; gap: 18px; }
#iba-login-opening.iba-op-b .iba-op-seal,
#iba-login-opening.iba-op-b .iba-op-mark { grid-area: 1 / 1; }
#iba-login-opening.iba-op-b .iba-op-hello { grid-area: 2 / 1; }
#iba-login-opening.iba-op-b .iba-op-seal { width: min(46vmin, 300px); height: min(46vmin, 300px); overflow: visible; }
#iba-login-opening.iba-op-b .iba-op-mark { align-self: center; font-size: clamp(36px, 5.4vw, 64px); gap: 0.28em; }
#iba-login-opening.iba-op-b .iba-op-seal circle { fill: none; stroke: #E3C98A; transform-origin: 100px 100px; }
#iba-login-opening.iba-op-b .iba-op-ticks { stroke-width: 6; stroke-dasharray: 1 7.03; opacity: 0; transform: rotate(-40deg); }
#iba-login-opening.iba-op-b .iba-op-ring { stroke-width: 1.6; stroke-dasharray: 528; stroke-dashoffset: 528; transform: rotate(-90deg); }
#iba-login-opening.iba-op-b .iba-op-ring-in { stroke-width: .8; opacity: 0; stroke: rgba(227, 201, 138, 0.55); }
#iba-login-opening.iba-op-b.is-play .iba-op-ring { animation: ibaOpRing 1.5s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
#iba-login-opening.iba-op-b.is-play .iba-op-ticks { animation: ibaOpTicks 1.6s cubic-bezier(.2, .7, .2, 1) .35s forwards; }
#iba-login-opening.iba-op-b.is-play .iba-op-ring-in { animation: ibaOpFade .8s ease 1s forwards; }
@keyframes ibaOpRing { to { stroke-dashoffset: 0; } }
@keyframes ibaOpTicks { to { opacity: .45; transform: rotate(0deg); } }
@keyframes ibaOpFade { to { opacity: 1; } }

/* C - Light wipe: a beam crosses the login photo and lights the mark */
#iba-login-opening.iba-op-c { background: #0B1220; }
#iba-login-opening.iba-op-c .iba-op-photo {
  position: absolute;
  inset: -4%;
  background-color: #0B1220;
  background-image: linear-gradient(180deg, rgba(8, 14, 24, 0.55), rgba(8, 14, 24, 0.75)), var(--iba-login-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
#iba-login-opening.iba-op-c.is-play .iba-op-photo { animation: ibaOpSettle 2.9s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes ibaOpSettle { to { transform: scale(1); } }
#iba-login-opening.iba-op-c .iba-op-beam {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 22%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10) 35%, rgba(255, 244, 220, 0.45) 50%, rgba(255, 255, 255, 0.10) 65%, transparent);
  transform: skewX(-14deg);
  mix-blend-mode: screen;
}
#iba-login-opening.iba-op-c.is-play .iba-op-beam { animation: ibaOpBeam 1.5s cubic-bezier(.5, 0, .3, 1) .2s forwards; }
@keyframes ibaOpBeam { to { left: 112%; } }
#iba-login-opening.iba-op-c .iba-op-mark { color: #FFFFFF; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
#iba-login-opening.iba-op-c .iba-op-hello { color: #DCE4EC; }

/* D - Blueprint: grid lines, a building frame draws, then the mark is stamped */
#iba-login-opening.iba-op-d { background: #0A1A29; }
#iba-login-opening.iba-op-d .iba-op-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgba(95, 199, 209, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 199, 209, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(95, 199, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 199, 209, 0.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
#iba-login-opening.iba-op-d.is-play .iba-op-grid { animation: ibaOpFade .6s ease forwards; }
#iba-login-opening.iba-op-d .iba-op-frame {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(620px, 82vw);
  transform: translate(-50%, -50%);
  overflow: visible;
}
#iba-login-opening.iba-op-d .iba-op-frame path {
  fill: none;
  stroke: #6FD0DA;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
#iba-login-opening.iba-op-d .iba-op-frame path.iba-op-ground { stroke: #E3C98A; stroke-width: 1.8; }
#iba-login-opening.iba-op-d.is-play .iba-op-frame path { animation: ibaOpPath 1.3s cubic-bezier(.6, 0, .2, 1) .25s forwards; }
#iba-login-opening.iba-op-d.is-play .iba-op-frame path:nth-child(2) { animation-delay: .55s; }
#iba-login-opening.iba-op-d.is-play .iba-op-frame path.iba-op-ground { animation-delay: .1s; animation-duration: .9s; }
@keyframes ibaOpPath { to { stroke-dashoffset: 0; } }
#iba-login-opening.iba-op-d .iba-op-low {
  position: absolute;
  left: 50%;
  top: calc(42% + min(620px, 82vw) * 0.3 + 14px);
  transform: translateX(-50%);
}
#iba-login-opening.iba-op-d .iba-op-mark { font-size: clamp(40px, 6vw, 76px); }
#iba-login-opening.iba-op-d .iba-op-l { filter: none; transform: scale(1.35); }
#iba-login-opening.iba-op-d.is-play .iba-op-l { animation: ibaOpStamp .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
#iba-login-opening.iba-op-d.is-play .iba-op-l:nth-child(1) { animation-delay: 1.15s; }
#iba-login-opening.iba-op-d.is-play .iba-op-l:nth-child(2) { animation-delay: 1.25s; }
#iba-login-opening.iba-op-d.is-play .iba-op-l:nth-child(3) { animation-delay: 1.35s; }
#iba-login-opening.iba-op-d.is-play .iba-op-hello { animation-delay: 1.6s; }
@keyframes ibaOpStamp { to { opacity: 1; transform: none; } }

/* E - Skyline: towers rise at dusk, the mark appears above them */
#iba-login-opening.iba-op-e { background: linear-gradient(180deg, #0B1622 0%, #10243A 55%, #1B3550 100%); }
#iba-login-opening.iba-op-e .iba-op-sky {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(90vmin, 760px);
  height: min(50vmin, 420px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 201, 138, 0.30), rgba(227, 201, 138, 0.06) 60%, transparent);
  opacity: 0;
}
#iba-login-opening.iba-op-e.is-play .iba-op-sky { animation: ibaOpFade 1.4s ease .2s forwards; }
#iba-login-opening.iba-op-e .iba-op-skyline {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(980px, 94vw);
  height: 44vh;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 1.1%;
}
#iba-login-opening.iba-op-e .iba-op-tower {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(227, 201, 138, 0.16) 14px 16px),
    linear-gradient(180deg, #1D3D58, #0E2133);
  box-shadow: inset 0 2px 0 rgba(227, 201, 138, 0.55);
  transform: scaleY(0);
  transform-origin: bottom center;
}
#iba-login-opening.iba-op-e.is-play .iba-op-tower { animation: ibaOpRise .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 55ms + .1s) forwards; }
@keyframes ibaOpRise { to { transform: scaleY(1); } }
#iba-login-opening.iba-op-e .iba-op-high { margin-bottom: min(30vh, 260px); }
#iba-login-opening.iba-op-e.is-play .iba-op-l:nth-child(1) { animation-delay: .75s; }
#iba-login-opening.iba-op-e.is-play .iba-op-l:nth-child(2) { animation-delay: .90s; }
#iba-login-opening.iba-op-e.is-play .iba-op-l:nth-child(3) { animation-delay: 1.05s; }

/* reduced motion: no movement, just a short fade */
#iba-login-opening.iba-op.iba-op-reduced *,
#iba-login-opening.iba-op.iba-op-reduced *::before,
#iba-login-opening.iba-op.iba-op-reduced *::after { animation: none !important; transition: none !important; }
#iba-login-opening.iba-op.iba-op-reduced .iba-op-l,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-hello,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-grid,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-sky,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-glow,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-ring-in { opacity: 1; transform: none; filter: none; }
#iba-login-opening.iba-op.iba-op-reduced .iba-op-ring,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-frame path { stroke-dashoffset: 0; }
#iba-login-opening.iba-op.iba-op-reduced .iba-op-tower,
#iba-login-opening.iba-op.iba-op-reduced .iba-op-line { transform: none; }
#iba-login-opening.iba-op.iba-op-reduced .iba-op-beam { display: none; }
#iba-login-opening.iba-op.iba-op-reduced.is-play { animation: ibaOpQuick 1.1s ease forwards; }
@keyframes ibaOpQuick { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* =============================================================================
   24. "Use the previous version" (14.0.0 patch 8) - all screens
   A quiet link under the login box (desktop and phone) and a card in
   Settings. It opens port.iba.com.qa/invoice-v1 in the same tab.
   ============================================================================= */
@layer iba-ui {
  #login-view a.iba-old-version-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: fit-content !important;
    margin: 20px auto 0 !important;
    padding: 6px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.86) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background-color .15s ease, border-color .15s ease !important;
  }
  #login-view a.iba-old-version-link:hover { background: rgba(255, 255, 255, 0.16) !important; border-color: rgba(255, 255, 255, 0.4) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  #login-view a.iba-old-version-link i { font-size: 12px !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  #login-view .mobile-login-form-wrapper a.iba-old-version-link { margin: 12px auto 6px !important; font-size: 13px !important; }
  #wd-settings .iba-old-version-card {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 16px !important;
  }
  #wd-settings .iba-old-version-card > .settings-card-header { flex: 1 1 420px !important; margin-bottom: 0 !important; }
  #wd-settings .iba-old-version-card a.iba-old-version-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: fit-content !important;
    text-decoration: none !important;
  }
}

/* =============================================================================
   25  14.0.0 patch 10
   ============================================================================= */
@layer iba-ui {

  /* ---------------------------------------------------------------------
     25.1 Phone login, same look as the phone workspace
     The phone login still had the old teal gradient, white pill fields and
     a terracotta button. It now uses the login photo under a dark navy
     shade, the gold IBA mark from the phone header, a dark glass card,
     dark fields with icons and the teal button. Same fields, same IDs,
     same form; only the look changes.
     --------------------------------------------------------------------- */
  @media (max-width: 768px) {
    #login-view .mobile-login-container {
      justify-content: center !important;
      gap: 0 !important;
      padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)) !important;
      background:
        radial-gradient(120% 55% at 100% 0%, rgba(19, 138, 151, 0.22), transparent 60%),
        radial-gradient(90% 45% at 0% 100%, rgba(227, 201, 138, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(8, 16, 26, 0.62) 0%, rgba(8, 16, 26, 0.78) 50%, rgba(8, 16, 26, 0.92) 100%),
        var(--iba-login-bg, none) center / cover no-repeat,
        #0B1724 !important;
      color: #EEF3F8 !important;
    }
    #login-view .mobile-login-container .iba-logo-anim {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.09em !important;
      width: 76px !important;
      height: 76px !important;
      margin: 0 auto 22px !important;
      border: 1.5px solid rgba(227, 201, 138, 0.7) !important;
      border-radius: 22px !important;
      background: rgba(227, 201, 138, 0.07) !important;
      box-shadow: 0 0 0 6px rgba(227, 201, 138, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35) !important;
      font-family: inherit !important;
      font-size: 22px !important;
      font-weight: 800 !important;
      letter-spacing: 0 !important;
      line-height: 1 !important;
      color: #E3C98A !important;
      -webkit-text-fill-color: #E3C98A !important;
      text-shadow: none !important;
    }
    #login-view .mobile-login-container .mobile-login-form-wrapper {
      width: 100% !important;
      max-width: 400px !important;
      padding: 26px 20px 20px !important;
      border: 1px solid rgba(255, 255, 255, 0.10) !important;
      border-radius: 22px !important;
      background: linear-gradient(180deg, rgba(23, 42, 62, 0.86) 0%, rgba(14, 28, 43, 0.9) 100%) !important;
      backdrop-filter: blur(14px) saturate(1.1) !important;
      -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 28px 64px rgba(0, 0, 0, 0.5) !important;
      text-align: left !important;
    }
    #login-view .mobile-login-container .mobile-login-form-wrapper::before,
    #login-view .mobile-login-container .mobile-login-form-wrapper::after { content: none !important; display: none !important; }
    #login-view .mobile-login-container .mobile-login-form-wrapper h2 {
      margin: 0 0 4px !important;
      color: #EEF3F8 !important;
      -webkit-text-fill-color: #EEF3F8 !important;
      font-size: 24px !important;
      font-weight: 700 !important;
      letter-spacing: 0 !important;
      text-align: left !important;
      text-shadow: none !important;
    }
    #login-view .mobile-login-container .iba-mlogin-sub {
      margin: 0 0 22px !important;
      color: #A7B6C6 !important;
      -webkit-text-fill-color: #A7B6C6 !important;
      font-size: 14px !important;
      line-height: 1.4 !important;
    }
    #login-view .mobile-login-container .input-icon-wrap { position: relative !important; margin: 0 0 14px !important; }
    #login-view .mobile-login-container .input-icon-wrap i {
      position: absolute !important;
      left: 16px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      z-index: 1 !important;
      width: 18px !important;
      text-align: center !important;
      color: #7F90A3 !important;
      -webkit-text-fill-color: #7F90A3 !important;
      font-size: 16px !important;
      pointer-events: none !important;
      transition: color .15s ease !important;
    }
    #login-view .mobile-login-container .input-icon-wrap:focus-within i { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
    #login-view .mobile-login-container .mobile-login-form-wrapper input {
      display: block !important;
      width: 100% !important;
      height: 52px !important;
      margin: 0 !important;
      padding: 0 16px 0 46px !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      border-radius: 14px !important;
      background: rgba(255, 255, 255, 0.06) !important;
      color: #EEF3F8 !important;
      -webkit-text-fill-color: #EEF3F8 !important;
      caret-color: #E3C98A !important;
      font-size: 16px !important;
      font-weight: 500 !important;
      box-shadow: none !important;
      outline: none !important;
      transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
    }
    #login-view .mobile-login-container .mobile-login-form-wrapper input::placeholder { color: #7F90A3 !important; -webkit-text-fill-color: #7F90A3 !important; opacity: 1 !important; }
    #login-view .mobile-login-container .mobile-login-form-wrapper input:focus {
      border-color: rgba(19, 138, 151, 0.9) !important;
      background: rgba(255, 255, 255, 0.08) !important;
      box-shadow: 0 0 0 3px rgba(19, 138, 151, 0.28) !important;
    }
    /* phone autofill keeps the dark field */
    #login-view .mobile-login-container .mobile-login-form-wrapper input:-webkit-autofill {
      -webkit-box-shadow: 0 0 0 40px #1A3046 inset !important;
      -webkit-text-fill-color: #EEF3F8 !important;
    }
    #login-view .mobile-login-container .mobile-login-btn {
      display: block !important;
      width: 100% !important;
      height: 52px !important;
      margin: 8px 0 0 !important;
      padding: 0 16px !important;
      border: 0 !important;
      border-radius: 14px !important;
      background: linear-gradient(180deg, #179BA9 0%, #138A97 100%) !important;
      color: #FFFFFF !important;
      -webkit-text-fill-color: #FFFFFF !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: .01em !important;
      box-shadow: 0 12px 26px rgba(19, 138, 151, 0.35) !important;
      transition: transform .12s ease, filter .12s ease !important;
    }
    #login-view .mobile-login-container .mobile-login-btn:active { transform: scale(0.985) !important; filter: brightness(0.95) !important; }
    #login-view .mobile-login-container #mobile-login-error {
      margin: 12px 0 0 !important;
      color: #F5A99C !important;
      -webkit-text-fill-color: #F5A99C !important;
      font-size: 13.5px !important;
      text-align: center !important;
    }
    #login-view .mobile-login-container #mobile-login-error:empty { display: none !important; }
    #login-view .mobile-login-container .version-display {
      margin: 18px 0 0 !important;
      color: #7F90A3 !important;
      -webkit-text-fill-color: #7F90A3 !important;
      font-size: 12.5px !important;
      text-align: center !important;
    }
    #login-view .mobile-login-container .mobile-login-form-wrapper a.iba-old-version-link {
      display: flex !important;
      width: fit-content !important;
      margin: 12px auto 0 !important;
      border-color: rgba(255, 255, 255, 0.16) !important;
      background: rgba(255, 255, 255, 0.05) !important;
      color: #A7B6C6 !important;
      -webkit-text-fill-color: #A7B6C6 !important;
    }
    #login-view .mobile-login-container .iba-web-link {
      display: block !important;
      margin: 14px 0 0 !important;
      color: #7F90A3 !important;
      -webkit-text-fill-color: #7F90A3 !important;
      font-size: 13px !important;
      text-align: center !important;
      text-decoration: none !important;
    }
  }

  /* ---------------------------------------------------------------------
     25.2 Invoice Entry: the job whose PO matches the typed PO stands out
     (js/iba-entry-po-mirror.js copies the typed PO into the side search)
     --------------------------------------------------------------------- */
  body.iba-shell-on #im-entry-sidebar .im-sidebar-item.iba-po-hit {
    border-color: rgba(227, 201, 138, 0.6) !important;
    border-left-color: #E3C98A !important;
    background: rgba(227, 201, 138, 0.10) !important;
    background-color: rgba(227, 201, 138, 0.10) !important;
    box-shadow: 0 0 0 1px rgba(227, 201, 138, 0.25) !important;
  }

  /* ---------------------------------------------------------------------
     25.3 Batch Entry: the summary-note search is a short, labelled line
     The note box grew to the full page width (an old rule lets it grow), so
     the whole second line looked like one long bar. It is now one compact
     line: a "Summary note" label, a 460px note box, Search Note and Clear,
     all kept to the left. The open list stays under 320px and scrolls.
     --------------------------------------------------------------------- */
  @media screen and (min-width: 901px) {
    body.iba-shell-on #im-batch-entry .iba-batch-search-row > div:has(#im-batch-search-by-note-button) {
      flex: 1 1 100% !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
      gap: 8px !important;
    }
    body.iba-shell-on #im-batch-entry .iba-batch-search-row > div:has(#im-batch-search-by-note-button)::before {
      content: "Summary note" !important;
      flex: 0 0 auto !important;
      display: inline-flex !important;
      align-items: center !important;
      height: 38px !important;
      padding: 0 12px 0 2px !important;
      color: var(--ui-text-2) !important;
      -webkit-text-fill-color: var(--ui-text-2) !important;
      font-weight: 700 !important;
      font-size: 12px !important;
      letter-spacing: .06em !important;
      text-transform: uppercase !important;
      white-space: pre !important;
    }
    body.iba-shell-on #im-batch-entry .batch-note-search-wrapper {
      flex: 0 1 460px !important;
      width: 460px !important;
      min-width: 260px !important;
      max-width: 460px !important;
    }
    body.iba-shell-on #im-batch-entry .batch-note-search-wrapper .choices { width: 100% !important; min-height: 0 !important; margin: 0 !important; }
    body.iba-shell-on #im-batch-entry .batch-note-search-wrapper .choices__list--dropdown .choices__list,
    body.iba-shell-on #im-batch-entry .batch-note-search-wrapper .choices__list[aria-expanded] .choices__list { max-height: 320px !important; overflow-y: auto !important; }
    body.iba-shell-on #im-batch-entry .batch-note-search-wrapper .choices__list--dropdown .choices__item {
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      line-height: 1.35 !important;
    }
    body.iba-shell-on #im-batch-entry #im-batch-clear-button { width: auto !important; padding: 0 14px !important; }
    body.iba-shell-on #im-batch-entry #im-batch-clear-button::after {
      content: "Clear" !important;
      font-family: inherit !important;
      font-weight: 600 !important;
    }
  }

  /* ---------------------------------------------------------------------
     25.4 PO Close Out: the search field gets the same magnifying glass as
     every other search (it showed a keyboard icon over the text)
     --------------------------------------------------------------------- */
  body.iba-shell-on #im-po-closeout #im-po-closeout-form .search-box > i.search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    margin: 0 !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 14px !important;
    pointer-events: none !important;
  }
  body.iba-shell-on #im-po-closeout #im-po-closeout-search { padding-left: 40px !important; }

  /* ---------------------------------------------------------------------
     25.5 Dashboard: the area you picked stays lit in the side panel
     After a card is picked, its area (My Personal, Preliminary, Approval
     or Finance) moves down as the big card in the side panel. It used to
     glow once and then go dim like the others; now it stays lit in the
     area's own colour, with an "Active" tag, so it is always clear which
     page is open. The other areas stay as plain bars above it.
     --------------------------------------------------------------------- */
  html body.iba-shell-on .iba-dash-hero[data-section] {
    --iba-hero-c: 227, 201, 138;
    position: relative !important;
    border: 1px solid rgba(var(--iba-hero-c), 0.9) !important;
    background:
      linear-gradient(135deg, rgba(var(--iba-hero-c), 0.46) 0%, rgba(var(--iba-hero-c), 0.20) 55%, rgba(var(--iba-hero-c), 0.10) 100%),
      rgba(12, 22, 34, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(var(--iba-hero-c), 0.30), 0 0 24px rgba(var(--iba-hero-c), 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  }
  html body.iba-shell-on .iba-dash-hero[data-section="01"] { --iba-hero-c: 108, 160, 228; }
  html body.iba-shell-on .iba-dash-hero[data-section="02"] { --iba-hero-c: 52, 182, 192; }
  html body.iba-shell-on .iba-dash-hero[data-section="03"] { --iba-hero-c: 214, 148, 80; }
  html body.iba-shell-on .iba-dash-hero[data-section]::before {
    content: "" !important;
    position: absolute !important;
    left: -1px !important;
    top: 10px !important;
    bottom: 10px !important;
    width: 3px !important;
    border-radius: 0 3px 3px 0 !important;
    background: rgb(var(--iba-hero-c)) !important;
    box-shadow: 0 0 10px rgba(var(--iba-hero-c), 0.8) !important;
  }
  html body.iba-shell-on .iba-dash-hero[data-section]::after {
    content: "Active" !important;
    position: absolute !important;
    right: 9px !important;
    top: 8px !important;
    padding: 2px 7px 2px 15px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(var(--iba-hero-c), 0.55) !important;
    background:
      radial-gradient(circle at 8px 50%, rgb(var(--iba-hero-c)) 0 3px, transparent 3.5px),
      rgba(var(--iba-hero-c), 0.16) !important;
    color: rgb(var(--iba-hero-c)) !important;
    -webkit-text-fill-color: rgb(var(--iba-hero-c)) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
  }
  html body.iba-shell-on .iba-dash-hero[data-section] .iba-dash-hero-ico {
    background: rgba(var(--iba-hero-c), 0.22) !important;
    border: 1px solid rgba(var(--iba-hero-c), 0.7) !important;
    color: rgb(var(--iba-hero-c)) !important;
    -webkit-text-fill-color: rgb(var(--iba-hero-c)) !important;
    box-shadow: 0 0 12px rgba(var(--iba-hero-c), 0.35) !important;
  }
  html body.iba-shell-on .iba-dash-hero[data-section] .iba-dash-hero-copy small { color: rgba(var(--iba-hero-c), 0.95) !important; -webkit-text-fill-color: rgba(var(--iba-hero-c), 0.95) !important; }
  html body.iba-shell-on .iba-dash-hero[data-section] .iba-dash-hero-copy { flex: 1 1 auto !important; min-width: 0 !important; }
  html body.iba-shell-on .iba-dash-hero[data-section] .iba-dash-hero-copy strong { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body.iba-shell-on .iba-dash-hero[data-section] .iba-dash-hero-copy em { color: rgba(244, 241, 234, 0.7) !important; -webkit-text-fill-color: rgba(244, 241, 234, 0.7) !important; }
  /* the one-time glow when you pick keeps working, in the area's colour */
  html body.iba-shell-on .iba-dash-hero[data-section].iba-dash-hero-glow { animation: ibaHeroLit 1.15s ease-out 1 !important; }
  @keyframes ibaHeroLit {
    0% { box-shadow: 0 0 0 2px rgba(var(--iba-hero-c), 1), 0 0 30px rgba(var(--iba-hero-c), 0.85); }
    100% { box-shadow: 0 0 0 1px rgba(var(--iba-hero-c), 0.30), 0 0 24px rgba(var(--iba-hero-c), 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
  }

  /* 25.6 Dashboard search: no "No record found" note beside the search bar */
  #iba-dash-search-miss,
  .iba-dash-search-miss { display: none !important; }

  /* ---------------------------------------------------------------------
     25.7 Dashboard board: glass instead of cork
     The brown cork board with its wooden frame becomes the same dark glass
     panel as the rest of the app, with a faint dot grid. Notes keep their
     colour as a strip on top and a small pin, and read light on dark.
     Same notes, same buttons, same order; only the look changes.
     --------------------------------------------------------------------- */
  html body.iba-shell-on #wd-dashboard :is(.wd-cork-board, .wd-cork-notes-board, .wd-personal-cork-board) {
    padding: 16px !important;
    border: 1px solid var(--ui-line) !important;
    outline: none !important;
    border-radius: var(--ui-radius-l, 18px) !important;
    background:
      radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1.6px) 0 0 / 22px 22px,
      linear-gradient(180deg, rgba(22, 40, 60, 0.58) 0%, rgba(12, 24, 38, 0.62) 100%) !important;
    background-color: transparent !important; /* patch 11: about 60% instead of nearly solid */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    /* no backdrop blur here: the board scrolls, and a blurred scroller
       made scrolling the notes about twice as slow */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html body.iba-shell-on #wd-dashboard :is(.wd-cork-board, .wd-cork-notes-board, .wd-personal-cork-board)::before,
  html body.iba-shell-on #wd-dashboard :is(.wd-cork-board, .wd-cork-notes-board, .wd-personal-cork-board)::after { content: none !important; display: none !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    align-items: start !important;
    justify-content: start !important;
    gap: 14px !important;
    padding: 0 !important;
    background: transparent !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note-grid:empty::before { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note-grid:empty::after { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; }

  /* the note */
  html body.iba-shell-on #wd-dashboard .wd-cork-note {
    --note-c: 227, 201, 138;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 14px 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(var(--note-c), 0.10) 0%, rgba(var(--note-c), 0) 38%),
      linear-gradient(180deg, #1C3550 0%, #152A40 100%) !important;
    background-color: #172E45 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transform: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note:hover {
    transform: none !important;
    border-color: rgba(var(--note-c), 0.45) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(var(--note-c), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-pending { --note-c: 242, 193, 78; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-srv { --note-c: 240, 140, 172; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-hold { --note-c: 167, 182, 198; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-approval { --note-c: 185, 164, 245; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-ipc { --note-c: 125, 183, 240; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note.tone-report { --note-c: 94, 205, 190; }
  /* colour strip on top */
  html body.iba-shell-on #wd-dashboard .wd-cork-note::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: rgb(var(--note-c)) !important;
    opacity: 1 !important;
    box-shadow: 0 0 14px rgba(var(--note-c), 0.55) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note::before { content: none !important; display: none !important; }
  /* small pin */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-pin {
    position: absolute !important;
    top: 11px !important;
    left: 50% !important;
    right: auto !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    transform: translateX(-50%) !important;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 18%, rgb(var(--note-c)) 46%, rgba(var(--note-c), 0.75) 100%) !important;
    box-shadow: 0 0 0 3px rgba(var(--note-c), 0.18), 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    z-index: 2 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-pin::before,
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-pin::after { content: none !important; display: none !important; }
  /* every text inside: light on dark (the old note forced dark brown) */
  html body.iba-shell-on #wd-dashboard .wd-cork-note :is(h3, h4, p, span, small, strong, em, a, i, div) {
    text-shadow: none !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note :is(h3, h4, p, span, strong, em, div) {
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note small {
    display: block !important;
    margin: 0 0 3px !important;
    color: var(--ui-text-3) !important;
    -webkit-text-fill-color: var(--ui-text-3) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
  }
  /* head: PO number and the status pill */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-kicker { display: block !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-head h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    line-height: 1.15 !important;
    font-variant-numeric: tabular-nums !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    max-width: 58% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid rgba(var(--note-c), 0.5) !important;
    border-radius: 999px !important;
    background: rgba(var(--note-c), 0.16) !important;
    background-color: rgba(var(--note-c), 0.16) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: rgb(var(--note-c)) !important;
    -webkit-text-fill-color: rgb(var(--note-c)) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-status-pill i { color: inherit !important; -webkit-text-fill-color: currentColor !important; font-size: 11px !important; }
  /* vendor */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-vendor {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-vendor i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; font-size: 13px !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-vendor span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }
  /* label / value grid */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  /* "Pending for" sits on its own line, coloured by how long it waited */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age {
    --age-c: 167, 182, 198;
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 6px 10px !important;
    border-color: rgba(var(--age-c), 0.35) !important;
    background: rgba(var(--age-c), 0.10) !important;
    background-color: rgba(var(--age-c), 0.10) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age.wd-note-age-fresh { --age-c: 95, 211, 160; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age.wd-note-age-watch { --age-c: 242, 193, 78; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age.wd-note-age-alert { --age-c: 242, 160, 90; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age.wd-note-age-critical { --age-c: 239, 128, 112; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-age small { margin: 0 !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-detail-grid > span.wd-note-age strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: rgb(var(--age-c)) !important;
    -webkit-text-fill-color: rgb(var(--age-c)) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-age strong::before {
    content: "" !important;
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgb(var(--age-c)) !important;
    box-shadow: 0 0 8px rgba(var(--age-c), 0.8) !important;
    position: static !important;
    margin: 0 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-age::before,
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-age::after { content: none !important; display: none !important; }
  /* current note (keeps a touch of the yellow note) and current status */
  html body.iba-shell-on #wd-dashboard .wd-cork-note :is(.wd-note-current-note, .wd-note-current-status) {
    margin: 0 !important;
    padding: 8px 10px 8px 12px !important;
    border: 0 !important;
    border-left: 3px solid rgba(227, 201, 138, 0.8) !important;
    border-radius: 8px !important;
    background: rgba(227, 201, 138, 0.08) !important;
    background-color: rgba(227, 201, 138, 0.08) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-current-status {
    border-left-color: rgb(var(--note-c)) !important;
    background: rgba(var(--note-c), 0.08) !important;
    background-color: rgba(var(--note-c), 0.08) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note :is(.wd-note-current-note, .wd-note-current-status) p {
    margin: 0 !important;
    max-height: 2.8em !important;
    overflow: hidden !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-current-status p i { color: rgb(var(--note-c)) !important; -webkit-text-fill-color: rgb(var(--note-c)) !important; margin-right: 4px !important; }
  /* who / site / type chips */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-responsible {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-responsible > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-responsible > span :is(strong, i) { color: inherit !important; -webkit-text-fill-color: currentColor !important; font-weight: inherit !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-responsible > span i { color: var(--ui-text-3) !important; -webkit-text-fill-color: var(--ui-text-3) !important; font-size: 11px !important; }
  /* buttons in one tidy row */
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 0 0 !important;
    padding: 10px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: transparent !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions :is(a.wd-dashboard-pdf-btn, .wd-forward-task-btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 32px !important;
    min-height: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transform: none !important;
    cursor: pointer !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions a.wd-dashboard-pdf-btn i { color: #F5A99C !important; -webkit-text-fill-color: #F5A99C !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions a.wd-dashboard-pdf-btn:hover { background: rgba(255, 255, 255, 0.11) !important; border-color: rgba(255, 255, 255, 0.24) !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions button.wd-forward-task-btn {
    border-color: transparent !important;
    background: var(--ui-teal) !important;
    background-color: var(--ui-teal) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions button.wd-forward-task-btn i { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions button.wd-forward-task-btn:hover { filter: brightness(1.08) !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-note .wd-note-actions .wd-pdf-empty { display: none !important; }

  /* ---------------------------------------------------------------------
     25.8 Dashboard date tabs and site cards in the same glass style
     --------------------------------------------------------------------- */
  html body.iba-shell-on #wd-dashboard .wd-date-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--ui-line) !important;
    border-radius: 999px !important;
    background: rgba(16, 30, 46, 0.72) !important;
    background-color: rgba(16, 30, 46, 0.72) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text-2) !important;
    -webkit-text-fill-color: var(--ui-text-2) !important;
    transform: none !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-date-tab :is(span, small, strong) { color: inherit !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
  html body.iba-shell-on #wd-dashboard .wd-date-tab .wd-date-tab-day { display: block !important; margin: 0 !important; padding: 0 !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1 !important; }
  html body.iba-shell-on #wd-dashboard .wd-date-tab:hover { background: rgba(30, 52, 76, 0.85) !important; color: var(--ui-text) !important; -webkit-text-fill-color: var(--ui-text) !important; }
  html body.iba-shell-on #wd-dashboard .wd-date-tab.active {
    border-color: rgba(227, 201, 138, 0.8) !important;
    background: rgba(227, 201, 138, 0.16) !important;
    background-color: rgba(227, 201, 138, 0.16) !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
    box-shadow: 0 0 0 1px rgba(227, 201, 138, 0.2), 0 0 14px rgba(227, 201, 138, 0.22) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card {
    border: 1px solid var(--ui-line) !important;
    border-radius: 12px !important;
    background: rgba(16, 30, 46, 0.78) !important;
    background-color: rgba(16, 30, 46, 0.78) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    transform: none !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card :is(span, small, strong, i) { color: inherit !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card .wd-site-card-name { color: var(--ui-text-2) !important; -webkit-text-fill-color: var(--ui-text-2) !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card:hover { background: rgba(30, 52, 76, 0.9) !important; border-color: rgba(255, 255, 255, 0.22) !important; }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card.active {
    border-color: rgba(227, 201, 138, 0.85) !important;
    background: rgba(227, 201, 138, 0.15) !important;
    background-color: rgba(227, 201, 138, 0.15) !important;
    box-shadow: 0 0 0 1px rgba(227, 201, 138, 0.2), 0 0 14px rgba(227, 201, 138, 0.22) !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
  }
  html body.iba-shell-on #wd-dashboard .wd-cork-site-card.active::after {
    background: var(--ui-gold) !important;
    color: #1B2A3A !important;
    -webkit-text-fill-color: #1B2A3A !important;
  }
}

/* ==========================================================================
   14.0.0 patch 18 - background dimming you can set (js/iba-bg-dim.js)
   The see-through dark layer over the background photo now follows the
   Settings sliders. Defaults: desktop 20%, phone 35% (before: 36% / 72%).
   ========================================================================== */
@layer iba-ui {
  body.iba-shell-on::before {
    background: linear-gradient(180deg, rgba(8, 12, 22, var(--iba-dim-top, 0.154)), rgba(8, 12, 22, var(--iba-dim-bot, 0.246))) !important;
  }
  body.iba-phone #iba-phone.has-photo {
    background:
      linear-gradient(180deg, rgba(8, 16, 26, var(--iba-ph-dim-top, 0.28)) 0%, rgba(8, 16, 26, var(--iba-ph-dim-mid, 0.35)) 45%, rgba(8, 16, 26, var(--iba-ph-dim-bot, 0.42)) 100%),
      var(--ph-photo) center / cover no-repeat,
      var(--ph-bg) !important;
  }

  /* Settings > Shell Backgrounds > Background dimming */
  #iba-shell-bg-settings .iba-dim-box {
    margin: 14px 0 0 !important;
    padding: 12px !important;
    border-radius: var(--ui-radius-m, 12px) !important;
    border: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.1)) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }
  #iba-shell-bg-settings .iba-dim-head { display: flex !important; gap: 10px !important; align-items: flex-start !important; margin: 0 0 10px !important; }
  #iba-shell-bg-settings .iba-dim-head > i { margin-top: 2px !important; color: var(--ui-gold, #E8C46A) !important; font-size: 16px !important; }
  #iba-shell-bg-settings .iba-dim-head h3,
  #iba-shell-bg-settings .iba-dim-top h3 {
    margin: 0 !important; color: var(--ui-text, #EEF3F8) !important; -webkit-text-fill-color: var(--ui-text, #EEF3F8) !important;
    font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important;
  }
  #iba-shell-bg-settings .iba-dim-head p,
  #iba-shell-bg-settings .iba-dim-help {
    margin: 2px 0 0 !important; color: var(--ui-text-3, #8FA1B4) !important; -webkit-text-fill-color: var(--ui-text-3, #8FA1B4) !important; font-size: 12px !important; line-height: 1.4 !important;
  }
  #iba-shell-bg-settings .iba-dim-row { display: flex !important; gap: 12px !important; align-items: center !important; padding: 8px 0 !important; border-top: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.08)) !important; }
  #iba-shell-bg-settings .iba-dim-prev {
    flex: 0 0 auto !important; display: flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 8px !important; border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.16)) !important; overflow: hidden !important;
  }
  #iba-shell-bg-settings .iba-dim-prev.is-desktop { width: 112px !important; height: 64px !important; }
  #iba-shell-bg-settings .iba-dim-prev.is-phone { width: 40px !important; height: 72px !important; margin: 0 36px !important; }
  #iba-shell-bg-settings .iba-dim-prev span { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 700 !important; font-size: 15px !important; }
  #iba-shell-bg-settings .iba-dim-main { flex: 1 1 auto !important; min-width: 0 !important; }
  #iba-shell-bg-settings .iba-dim-top { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: 8px !important; }
  #iba-shell-bg-settings .iba-dim-val { color: var(--ui-gold, #E8C46A) !important; -webkit-text-fill-color: var(--ui-gold, #E8C46A) !important; font-size: 14px !important; font-variant-numeric: tabular-nums !important; }
  #iba-shell-bg-settings .iba-dim-row input[type=range] { width: 100% !important; margin: 6px 0 2px !important; accent-color: var(--ui-teal, #1FA4A8) !important; cursor: pointer !important; }
  #iba-shell-bg-settings .iba-dim-row input[type=range]:disabled { cursor: not-allowed !important; opacity: 0.5 !important; }
  #iba-shell-bg-settings .iba-dim-acts { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; padding-top: 10px !important; border-top: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.08)) !important; }
  #iba-shell-bg-settings .iba-dim-acts button { height: 34px !important; padding: 0 14px !important; }
  #iba-shell-bg-settings .iba-dim-note { margin-right: auto !important; color: var(--ui-green, #5BD49B) !important; -webkit-text-fill-color: var(--ui-green, #5BD49B) !important; font-size: 12px !important; font-weight: 600 !important; }
  #iba-shell-bg-settings .iba-dim-box.is-dirty .iba-dim-note { color: var(--ui-gold, #E8C46A) !important; -webkit-text-fill-color: var(--ui-gold, #E8C46A) !important; }
  #iba-shell-bg-settings .iba-dim-note.is-bad { color: var(--ui-red, #F07070) !important; -webkit-text-fill-color: var(--ui-red, #F07070) !important; }
}

/* 15.0.0 patch 26: the Invoice Entry "Active Jobs" side panel uses the same
   see-through glass as the left menu (it was 80% solid). */
@layer iba-ui {
  html body.iba-shell-on #invoice-management-view #im-entry-sidebar#im-entry-sidebar {
    background: rgba(8, 12, 22, 0.25) !important;
    background-color: rgba(8, 12, 22, 0.25) !important;
    background-image: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-left: 1px solid rgba(232, 217, 182, 0.28) !important;
  }
  html body.iba-shell-on #im-entry-sidebar .im-sidebar-item {
    background: rgba(8, 12, 22, 0.35) !important;
    background-color: rgba(8, 12, 22, 0.35) !important;
  }
  html body.iba-shell-on #im-entry-sidebar .im-sidebar-item:hover {
    background: rgba(8, 12, 22, 0.55) !important;
    background-color: rgba(8, 12, 22, 0.55) !important;
  }
}

/* 15.0.0 patch 36: Dashboard opened on a card - the search row sits in the
   small space next to the date chips. Check all, Weekly report and Refresh
   belong to the main Dashboard only; the search and Clear get proper room. */
@layer iba-ui {
  html body #wd-dashboard .wd-dash-search-slot :is(#iba-task-check-btn, #iba-wr-btn, #wd-active-dashboard-refresh) { display: none !important; }
  html body #wd-dashboard .wd-dash-search-slot .wd-active-dashboard-search-row { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-end !important; align-items: center !important; gap: 8px !important; width: auto !important; max-width: 100% !important; }
  html body #wd-dashboard .wd-dash-search-slot .wd-active-dashboard-search-wrap { flex: 0 1 290px !important; width: 290px !important; max-width: 290px !important; min-width: 200px !important; }
  html body #wd-dashboard .wd-dash-search-slot #wd-active-dashboard-clear { flex: 0 0 auto !important; width: auto !important; min-width: 96px !important; white-space: nowrap !important; overflow: visible !important; }
}
@layer iba-ui {
  html body.iba-shell-on #wd-dashboard :is(#iba-task-check-btn, #iba-wr-btn) { height: 38px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: var(--ui-radius-m, 10px) !important; box-shadow: none !important; }
}
