/* ==========================================================================
   iba-1705-fit.css — 17.0.5 patch 3
   Fit to the screen (js/iba-1705-fit.js marks what does not fit):
   - .iba-fit-keep   button squeezed by its row keeps its size, row wraps
   - .iba-fit-tight  button text a bit smaller, less padding
   - .iba-fit-icon   still too long: icon only (the words stay as tooltip)
   - .iba-fit-cut    no icon: one line with "…" (the words stay as tooltip)
   - .iba-fit-note   long help text folded to 2 lines, "more" opens it
   Batch Entry search (patch 4): invoices already in the batch greyed out.
   Cancel job button + pop-up (patch 5, js/iba-1705-cancel.js).
   "Where is my invoice?" simple view (patch 6, js/iba-assistant.js).
   Assistant: Track button in colour (A), app icons (B), phone bottom bar (C) - patch 9.
   "Where is my invoice?" list + one-invoice receipt - patch 14.
   Assistant "Waiting for approval": Files column (INV / SRV) stays inside
   the card, and the full table only shows when it really fits.
   ========================================================================== */
@layer iba-ui {
  html body .iba-fit-keep:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) { flex-shrink: 0 !important; min-width: max-content !important; }
  html body .iba-fit-wrap:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) { flex-wrap: wrap !important; row-gap: 8px !important; }
  html body .iba-fit-tight:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) { padding-left: 8px !important; padding-right: 8px !important; gap: 4px !important; letter-spacing: 0 !important; font-size: 0.9em !important; }
  html body .iba-fit-icon:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) { font-size: 0 !important; gap: 0 !important; padding-left: 8px !important; padding-right: 8px !important; min-width: 34px !important; justify-content: center !important; }
  html body .iba-fit-icon:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) > :is(i, svg, img, .fa, .fa-solid, .fa-regular) { font-size: 14px !important; margin: 0 !important; }
  html body .iba-fit-icon:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) > :is(span, b, small, em):not(:has(i, svg, img)) { display: none !important; }
  html body .iba-fit-cut:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) { display: inline-block !important; max-width: 100% !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; vertical-align: middle !important; }

  html body .iba-fit-note:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z):not(.is-fit-open) {
    display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important;
    overflow: hidden !important; position: relative !important; padding-right: 52px !important; cursor: pointer !important;
  }
  html body .iba-fit-note:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z).is-fit-open { position: relative !important; padding-right: 52px !important; }
  html body .iba-fit-note:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) > .iba-fit-more {
    position: absolute !important; right: 0 !important; bottom: 0 !important; display: inline-block !important;
    padding: 0 7px !important; border-radius: 999px !important; font: 700 11px/18px system-ui, sans-serif !important; font-style: normal !important;
    border: 1px solid rgba(127, 227, 214, .45) !important; background: rgba(8, 18, 30, .8) !important;
    color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; cursor: pointer !important; -webkit-line-clamp: none !important;
  }

  /* ---- assistant approvals table: Files column ------------------------- */
  #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li .c-act.iba-ai-apv-files { flex-wrap: wrap !important; gap: 3px !important; min-width: 0 !important; overflow: hidden !important; }
  #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li .iba-ai-apv-files > .iba-ai-mini {
    padding: 0 7px !important; min-width: 0 !important; height: 24px !important; line-height: 22px !important; font-size: 11.5px !important; gap: 0 !important; flex: 0 0 auto !important;
  }
  #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li .iba-ai-apv-files > .iba-ai-mini > i { display: none !important; }
  /* the full table needs ~1080 px; below that Remarks goes first, Files stays */
  @container (min-width: 980px) and (max-width: 1079px) {
    #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li,
    #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li:not(.iba-ai-ttab-head) { gap: 8px !important; grid-template-columns: 74px 88px minmax(100px, 1fr) 84px 84px 118px 92px 44px 84px !important; }
    #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li .c-rem { display: none !important; }
  }
  @container (min-width: 1080px) {
    #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li,
    #iba-ai-panel .iba-ai-ttab.is-co.is-co2 li:not(.iba-ai-ttab-head) { grid-template-columns: 74px 88px minmax(110px, 1.4fr) 84px 88px 118px 100px minmax(80px, 1fr) 46px 84px !important; }
  }

  /* ---- 17.0.5 patch 4: Batch Entry search, invoices already in the batch -- */
  #im-batch-modal-results .batch-modal-result-row.is-in-batch,
  #im-batch-modal-results .batch-modal-result-row.is-in-batch:hover { opacity: .45 !important; cursor: not-allowed !important; background: rgba(255, 255, 255, .03) !important; }
  #im-batch-modal-results .batch-modal-result-row.is-in-batch td { text-decoration: none !important; }
  #im-batch-modal-results .batch-modal-result-row.is-in-batch .modal-inv-checkbox { pointer-events: none !important; }
  #im-batch-modal-results .iba-inbatch-tag {
    display: inline-flex !important; align-items: center !important; gap: 4px !important; margin-left: 6px !important; padding: 1px 8px !important; border-radius: 999px !important;
    font-size: 11px !important; font-weight: 800 !important; white-space: nowrap !important;
    border: 1px solid rgba(90, 209, 143, .6) !important; background: rgba(90, 209, 143, .16) !important; color: #7EE2A8 !important; -webkit-text-fill-color: #7EE2A8 !important;
  }
  #im-batch-modal-results .iba-inbatch-line { color: #7EE2A8 !important; -webkit-text-fill-color: #7EE2A8 !important; font-weight: 700 !important; }

  /* ---- 17.0.5 patch 5: Cancel job (js/iba-1705-cancel.js) ----------------- */
  html body :is(#active-task-table-body, #reporting-table-body, #wd-activetask, #wd-reporting) .iba-job-cancel-btn.iba-job-cancel-btn:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) {
    display: inline-flex !important; align-items: center !important; gap: 5px !important; height: 30px !important; padding: 0 10px !important; margin: 0 0 0 5px !important;
    border-radius: 8px !important; border: 1px solid rgba(255, 107, 107, .6) !important; background: rgba(220, 53, 69, .16) !important; background-image: none !important;
    color: #FF9B9B !important; -webkit-text-fill-color: #FF9B9B !important; font-size: 12px !important; font-weight: 700 !important; white-space: nowrap !important; cursor: pointer !important; box-shadow: none !important;
  }
  html body :is(#active-task-table-body, #reporting-table-body, #wd-activetask, #wd-reporting) .iba-job-cancel-btn.iba-job-cancel-btn:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z):hover { background: rgba(220, 53, 69, .3) !important; }
  html body :is(#active-task-table-body, #reporting-table-body, #wd-activetask, #wd-reporting) .iba-job-cancel-btn.iba-job-cancel-btn:not(#iba-fit-x):not(#iba-fit-y):not(#iba-fit-z) i { color: inherit !important; -webkit-text-fill-color: currentColor !important; font-size: 12px !important; }
  #iba-job-cancel-pop { position: fixed !important; inset: 0 !important; z-index: 2147482800 !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 16px !important; background: rgba(4, 10, 18, .35) !important; }
  #iba-job-cancel-pop .iba-jc-box {
    width: min(440px, 100%) !important; padding: 18px 18px 16px !important; border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important; background: rgba(12, 26, 40, .72) !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .45) !important;
    color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; font-size: 14px !important;
  }
  #iba-job-cancel-pop h3 { margin: 0 0 6px !important; font-size: 17px !important; color: #FF9B9B !important; -webkit-text-fill-color: #FF9B9B !important; }
  #iba-job-cancel-pop .iba-jc-what { margin: 0 0 6px !important; font-weight: 700 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-job-cancel-pop .iba-jc-sub { margin: 0 0 12px !important; font-size: 12.5px !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  #iba-job-cancel-pop label { display: block !important; margin: 0 0 4px !important; font-size: 12px !important; font-weight: 700 !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  #iba-job-cancel-pop textarea {
    width: 100% !important; box-sizing: border-box !important; padding: 8px 10px !important; border-radius: 10px !important; resize: vertical !important;
    border: 1px solid rgba(255, 255, 255, .25) !important; background: rgba(6, 14, 24, .55) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font: inherit !important;
  }
  #iba-job-cancel-pop .iba-jc-acts { display: flex !important; justify-content: flex-end !important; gap: 8px !important; margin-top: 12px !important; }
  #iba-job-cancel-pop .iba-jc-acts button { height: 38px !important; padding: 0 16px !important; border-radius: 10px !important; font-weight: 700 !important; cursor: pointer !important; font-size: 13px !important; }
  #iba-job-cancel-pop .iba-jc-back { border: 1px solid rgba(255, 255, 255, .3) !important; background: rgba(255, 255, 255, .08) !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; }
  #iba-job-cancel-pop .iba-jc-go { border: 1px solid rgba(255, 107, 107, .7) !important; background: rgba(220, 53, 69, .35) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

  /* ---- 17.0.5 patch 6: "Where is my invoice?" simple view (iba-assistant.js) */
  #iba-ai-panel .iba-trk-switch { display: flex !important; justify-content: flex-end !important; margin: 0 0 4px !important; }
  #iba-ai-panel .iba-trk-simple[hidden], #iba-ai-panel .iba-trk-full[hidden] { display: none !important; }
  #iba-ai-panel .iba-trk-s-po { margin: 8px 0 12px !important; }
  #iba-ai-panel .iba-trk-s-pohead { display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 4px 10px !important; }
  #iba-ai-panel .iba-trk-s-pohead b { font-size: 17px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-trk-s-pohead span { font-size: 13px !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  #iba-ai-panel .iba-trk-s-sum { margin: 4px 0 8px !important; font-size: 14px !important; font-weight: 700 !important; color: #A9CBFF !important; -webkit-text-fill-color: #A9CBFF !important; }
  #iba-ai-panel .iba-trk-s-sum.is-paid { color: #7EE2A8 !important; -webkit-text-fill-color: #7EE2A8 !important; }
  #iba-ai-panel .iba-trk-s-it {
    --c: #7FB2FF; margin: 0 0 8px !important; padding: 10px 12px !important; border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important; border-left: 4px solid var(--c) !important; background: rgba(8, 18, 30, .45) !important;
  }
  #iba-ai-panel .iba-trk-s-it.is-acc { --c: #F5B851; }
  #iba-ai-panel .iba-trk-s-it.is-late { --c: #FF9B5B; }
  #iba-ai-panel .iba-trk-s-it.is-stop { --c: #FF6B6B; }
  #iba-ai-panel .iba-trk-s-top { display: flex !important; justify-content: space-between !important; align-items: baseline !important; gap: 8px !important; }
  #iba-ai-panel .iba-trk-s-no { font-weight: 800 !important; font-size: 14px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-trk-s-val { font-weight: 700 !important; font-variant-numeric: tabular-nums !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; white-space: nowrap !important; }
  #iba-ai-panel .iba-trk-s-now { display: flex !important; gap: 10px !important; align-items: flex-start !important; margin-top: 6px !important; }
  #iba-ai-panel .iba-trk-s-now > i { flex: 0 0 auto !important; width: 30px !important; height: 30px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: 14px !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; background: rgba(255, 255, 255, .07) !important; border: 1px solid var(--c) !important; }
  #iba-ai-panel .iba-trk-s-now b { display: block !important; font-size: 16px !important; line-height: 1.3 !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
  #iba-ai-panel .iba-trk-s-now small { display: block !important; margin-top: 2px !important; font-size: 13px !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  #iba-ai-panel .iba-trk-s-next { margin: 6px 0 0 40px !important; font-size: 12.5px !important; color: #CFE0EE !important; -webkit-text-fill-color: #CFE0EE !important; }
  #iba-ai-panel .iba-trk-s-next span { font-weight: 700 !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  #iba-ai-panel .iba-trk-s-acts { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin: 8px 0 0 40px !important; }
  #iba-ai-panel .iba-trk-s-acts:empty { display: none !important; }
  #iba-ai-panel .iba-trk-s-paid { margin: 4px 0 0 !important; padding: 8px 12px !important; border-radius: 12px !important; border: 1px solid rgba(90, 209, 143, .45) !important; background: rgba(20, 70, 45, .3) !important; }
  #iba-ai-panel .iba-trk-s-paid summary { cursor: pointer !important; font-weight: 800 !important; color: #7EE2A8 !important; -webkit-text-fill-color: #7EE2A8 !important; }
  #iba-ai-panel .iba-trk-s-paid > div { display: flex !important; gap: 10px !important; align-items: baseline !important; padding: 5px 0 !important; border-top: 1px dashed rgba(255, 255, 255, .12) !important; font-size: 13px !important; }
  #iba-ai-panel .iba-trk-s-paid > div span:not(.iba-trk-s-val) { flex: 1 1 auto !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  body.iba-phone #iba-ai-panel .iba-trk-s-now b { font-size: 18px !important; }
  body.iba-phone #iba-ai-panel .iba-trk-s-acts .iba-ai-mini { min-height: 44px !important; padding: 0 14px !important; font-size: 14px !important; }

  /* ---- 17.0.5 patch 9: assistant header Track button stands out ---------- */
  #iba-ai-panel :is(.iba-ai-head, .iba-ai-wide-bar) .iba-ai-icon.iba-ai-track-btn {
    width: auto !important; min-width: 0 !important; padding: 0 12px 0 10px !important; gap: 6px !important; display: inline-flex !important; align-items: center !important;
    border: 1px solid #5FB0FF !important; background: linear-gradient(135deg, rgba(42, 120, 214, .85), rgba(19, 138, 151, .85)) !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 800 !important; font-size: 13px !important; white-space: nowrap !important;
    box-shadow: 0 0 0 0 rgba(95, 176, 255, .6) !important; animation: iba-trk-glow 2.4s ease-out 0.6s 4 !important; height: 32px !important;
  }
  #iba-ai-panel :is(.iba-ai-head, .iba-ai-wide-bar) .iba-ai-icon.iba-ai-track-btn i { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-size: 14px !important; }
  #iba-ai-panel :is(.iba-ai-head, .iba-ai-wide-bar) .iba-ai-icon.iba-ai-track-btn:hover { filter: brightness(1.12) !important; }
  #iba-ai-panel :is(.iba-ai-head, .iba-ai-wide-bar) .iba-ai-icon.iba-ai-track-btn.is-on { border-color: #E3C98A !important; box-shadow: 0 0 0 2px rgba(227, 201, 138, .45) !important; animation: none !important; }
  @keyframes iba-trk-glow { 0% { box-shadow: 0 0 0 0 rgba(95, 176, 255, .65); } 70% { box-shadow: 0 0 0 9px rgba(95, 176, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 176, 255, 0); } }
  @media (prefers-reduced-motion: reduce) { #iba-ai-panel :is(.iba-ai-head, .iba-ai-wide-bar) .iba-ai-icon.iba-ai-track-btn { animation: none !important; } }
  /* side panel head is narrow: drop the small wand mark so the name has room next to the Track pill */
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head > .iba-ai-mark { display: none !important; }
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head { gap: 4px !important; }
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head .iba-ai-icon:not(.iba-ai-track-btn) { width: 29px !important; min-width: 29px !important; }
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head .iba-ai-title { flex: 1 1 auto !important; min-width: 102px !important; }
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head .iba-ai-title > strong { white-space: nowrap !important; }
  body:not(.iba-phone) #iba-ai-panel:not(.is-wide) .iba-ai-head .iba-ai-title > small { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: block !important; }

  /* B: app icons under the greeting */
  #iba-ai-panel .iba-ai-apps { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; margin: 4px 0 12px !important; padding: 0 !important; }
  #iba-ai-panel .iba-ai-apps > button {
    display: grid !important; justify-items: center !important; align-content: start !important; gap: 6px !important; padding: 4px 2px !important; min-width: 0 !important; height: auto !important;
    border: 0 !important; background: none !important; box-shadow: none !important; cursor: pointer !important;
    color: #DFE8F0 !important; -webkit-text-fill-color: #DFE8F0 !important; font-size: 11.5px !important; font-weight: 700 !important; line-height: 1.2 !important; text-align: center !important; white-space: normal !important;
  }
  #iba-ai-panel .iba-ai-apps > button > i {
    width: 50px !important; height: 50px !important; border-radius: 15px !important; display: grid !important; place-items: center !important; font-style: normal !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-size: 21px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important; transition: transform .15s ease !important;
  }
  #iba-ai-panel .iba-ai-apps > button > i > span { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  #iba-ai-panel .iba-ai-apps > button:hover > i, #iba-ai-panel .iba-ai-apps > button:focus-visible > i { transform: translateY(-2px) !important; }
  #iba-ai-panel .iba-ai-apps > button > b { font-weight: 700 !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  #iba-ai-panel .iba-ai-apps > .is-hero { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 800 !important; }
  #iba-ai-panel .iba-ai-apps > .is-hero > i { width: 58px !important; height: 58px !important; font-size: 25px !important; background: linear-gradient(145deg, #4DA3FF, #1F5FB8) !important; outline: 3px solid rgba(95, 176, 255, .35) !important; outline-offset: 2px !important; }
  #iba-ai-panel .iba-ai-apps > .is-c1 > i { background: linear-gradient(145deg, #F5B851, #C9831C) !important; }
  #iba-ai-panel .iba-ai-apps > .is-c3 > i { background: linear-gradient(145deg, #3FD0C9, #138A97) !important; }
  #iba-ai-panel .iba-ai-apps > .is-c4 > i { background: linear-gradient(145deg, #9B7BE0, #6040B0) !important; }

  /* expanded window: the same shortcuts in its top bar */
  #iba-ai-panel .iba-ai-wide-apps { display: inline-flex !important; align-items: center !important; gap: 6px !important; margin-left: auto !important; margin-right: 8px !important; flex-wrap: wrap !important; }
  #iba-ai-panel .iba-ai-wide-apps .iba-ai-mini.is-c1 i { color: #F5B851 !important; -webkit-text-fill-color: #F5B851 !important; }
  #iba-ai-panel .iba-ai-wide-apps .iba-ai-mini.is-c3 i { color: #3FD0C9 !important; -webkit-text-fill-color: #3FD0C9 !important; }
  #iba-ai-panel .iba-ai-wide-apps .iba-ai-mini.is-c4 i { color: #B9A0F0 !important; -webkit-text-fill-color: #B9A0F0 !important; }

  /* C: phone bottom bar, Track = big round button in the middle */
  #iba-ai-panel .iba-aph-tabs { display: none !important; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs {
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; align-items: end !important; flex: 0 0 auto !important; order: 99 !important;
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)) !important; background: rgba(6, 14, 24, .92) !important; border-top: 1px solid rgba(255, 255, 255, .12) !important; position: relative !important; z-index: 2 !important;
  }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button {
    display: grid !important; justify-items: center !important; gap: 3px !important; padding: 4px 0 !important; min-height: 50px !important; height: auto !important; border: 0 !important; background: none !important; box-shadow: none !important;
    color: #A9B9C7 !important; -webkit-text-fill-color: #A9B9C7 !important; font-size: 11px !important; font-weight: 700 !important; cursor: pointer !important;
  }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button[hidden] { display: none !important; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button > i { font-size: 20px !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-on { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-mid { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 800 !important; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-mid > b {
    width: 60px !important; height: 60px !important; margin-top: -30px !important; border-radius: 50% !important; display: grid !important; place-items: center !important;
    background: linear-gradient(145deg, #4DA3FF, #1F5FB8) !important; border: 4px solid #0b1724 !important; box-shadow: 0 8px 18px rgba(31, 95, 184, .55) !important;
  }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-mid > b > i { font-size: 25px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  /* Z Flip cover screen: too small for a bar */
  @media (max-width: 480px) and (max-height: 560px) { body.iba-phone #iba-ai-panel .iba-aph-tabs { display: none !important; } }

  /* ------------------------------------------------------------------
     17.0.5 patch 10 — no printing or Excel on the phone
     A phone has no printer and cannot open an Excel file, so the report,
     print and Excel buttons are hidden there. The inventory QR item
     label keeps its buttons: that one is made for the phone.
     ------------------------------------------------------------------ */
  body:is(.iba-mobile-ui, .iba-phone) :is(
    #print-report-button,
    #summary-note-print-btn,
    #printSummaryBtn, #printDetailedBtn,
    #im-po-closeout-print-btn, #im-po-closeout-excel-btn, #im-po-closeout-excel-both-btn,
    #im-reporting-download-btn, #im-download-excel-custom-btn,
    #im-download-daily-report-button, #im-download-with-accounts-report-button,
    #im-finance-print-report-btn,
    #ms-download-titles-btn, #ms-open-report-modal-btn,
    #ms-modal-print-btn, #ms-modal-excel-btn, #ms-requestlist-print-btn
  ) { display: none !important; }
  /* 17.0.5 patch 12: only the 3 most used skills in the chip row */
  #iba-ai-panel #iba-ai-chips > .is-chip-off { display: none !important; }
  #iba-ai-panel #iba-ai-chips > .iba-chip-all { border-style: dashed !important; opacity: .85 !important; }
  /* 17.0.5 patch 13: the Dashboard Refresh icon turns while the cards are counted again */
  body.iba-dash-updating #wd-active-dashboard-refresh i { animation: fa-spin 1.2s linear infinite !important; }
  /* 17.0.5 patch 11: the assistant on the phone too (Print / Excel under
     result cards, brief Print, Print list) */
  body:is(.iba-mobile-ui, .iba-phone) #iba-ai-panel :is(.iba-ai-cardacts, [data-rep], [data-brief-print], [data-brief-apv-print]) { display: none !important; }
  /* 17.0.5 patch 15: no "Open in Invoice Records" on the phone (a desktop page) */
  body:is(.iba-mobile-ui, .iba-phone) #iba-ai-panel [data-ai-records] { display: none !important; }
  /* ---- 17.0.5 patch 14: "Where is my invoice?" list + one-invoice receipt (iba-assistant.js) */
  #iba-ai-panel :is(.iba-trk-po, .iba-trk-rcpt) {
    --t-card: #13263A; --t-row: #0F2033; --t-line: #22384D; --t-text: #E8EEF4; --t-muted: #A9B9C7; --t-gold: #E3C98A;
    --t-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body) { --c: #4DA3FF; --cb: rgba(77, 163, 255, .16); }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body).is-apv { --c: #F2B84B; --cb: rgba(242, 184, 75, .16); }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body).is-acc { --c: #4FD1C5; --cb: rgba(79, 209, 197, .15); }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body).is-ipc { --c: #C9B8FF; --cb: rgba(180, 156, 255, .16); }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body).is-paid { --c: #5BD38A; --cb: rgba(91, 211, 138, .15); }
  #iba-ai-panel :is(.iba-trk-row, .iba-trk-r-body).is-stop { --c: #FF8A8A; --cb: rgba(255, 107, 107, .16); }
  #iba-ai-panel .iba-trk-hint { margin: 2px 0 8px !important; font-size: 13px !important; color: #A9B9C7 !important; -webkit-text-fill-color: #A9B9C7 !important; }
  #iba-ai-panel .iba-trk-po { display: flex !important; flex-direction: column !important; gap: 8px !important; margin: 0 0 14px !important; }
  #iba-ai-panel :is(.iba-trk-pohead, .iba-trk-r-po) {
    display: flex !important; flex-direction: column !important; gap: 4px !important; padding: 14px !important; border-radius: 16px !important;
    background: var(--t-card) !important; border: 1px solid var(--t-line) !important;
  }
  #iba-ai-panel .iba-trk-lbl { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-pono { font-family: var(--t-mono) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: .02em !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-vendor { font-size: 15px !important; font-weight: 700 !important; color: var(--t-gold) !important; -webkit-text-fill-color: var(--t-gold) !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-chips { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 8px !important; margin-top: 4px !important; }
  #iba-ai-panel .iba-trk-chips > span { padding: 3px 10px !important; border-radius: 99px !important; background: #1A2D40 !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; font-size: 12.5px !important; font-weight: 600 !important; white-space: nowrap !important; }
  #iba-ai-panel .iba-trk-chips > span.is-site { background: #1C3A57 !important; color: #CFE6FF !important; -webkit-text-fill-color: #CFE6FF !important; font-weight: 700 !important; }
  #iba-ai-panel .iba-trk-chips > span.iba-trk-poval { margin-left: auto !important; background: transparent !important; padding: 3px 0 !important; }
  #iba-ai-panel .iba-trk-chips b { color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; }
  #iba-ai-panel .iba-trk-grp { padding: 6px 4px 0 !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-none { margin: 0 !important; padding: 10px 12px !important; border-radius: 12px !important; background: var(--t-row) !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; font-size: 13px !important; }
  #iba-ai-panel .iba-trk-row, #iba-ai-panel .iba-trk-paid > summary {
    display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important; min-height: 64px !important; box-sizing: border-box !important;
    padding: 10px 12px !important; border-radius: 14px !important; border: 1px solid var(--t-line) !important; background: var(--t-card) !important;
    color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; font: inherit !important; text-align: left !important; cursor: pointer !important;
    box-shadow: none !important; transform: none !important; height: auto !important; margin: 0 !important;
  }
  #iba-ai-panel .iba-trk-row:hover { border-color: var(--c) !important; background: #16304A !important; }
  #iba-ai-panel .iba-trk-row:focus-visible { outline: 2px solid var(--c) !important; outline-offset: 2px !important; }
  #iba-ai-panel .iba-trk-ic { flex: 0 0 auto !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; display: grid !important; place-items: center !important; background: var(--cb) !important; }
  #iba-ai-panel .iba-trk-ic i { font-size: 17px !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
  #iba-ai-panel .iba-trk-mid { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
  #iba-ai-panel .iba-trk-mid > b { font-size: 15px !important; font-weight: 700 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-now { font-size: 14px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
  #iba-ai-panel .iba-trk-mid small { font-size: 12.5px !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-row.is-long .iba-trk-mid small { color: #FFB27A !important; -webkit-text-fill-color: #FFB27A !important; }
  #iba-ai-panel .iba-trk-end { flex: 0 0 auto !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 4px !important; }
  #iba-ai-panel .iba-trk-end b { font-size: 14.5px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-trk-go { flex: 0 0 auto !important; font-size: 13px !important; color: #6F859A !important; -webkit-text-fill-color: #6F859A !important; }
  #iba-ai-panel .iba-trk-paid { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  #iba-ai-panel .iba-trk-paid > summary { list-style: none !important; min-height: 56px !important; background: #10261E !important; border-color: #1E4A36 !important; --c: #5BD38A; --cb: #154030; }
  #iba-ai-panel .iba-trk-paid > summary::-webkit-details-marker { display: none !important; }
  #iba-ai-panel .iba-trk-paid > summary .iba-trk-mid > b { color: #5BD38A !important; -webkit-text-fill-color: #5BD38A !important; }
  #iba-ai-panel .iba-trk-paid[open] > summary small { visibility: hidden !important; }
  /* 17.0.5 patch 16: paid rows sit in the same newest-first list */
  #iba-ai-panel .iba-trk-row.is-paid { background: #10261E !important; border-color: #1E4A36 !important; }
  #iba-ai-panel .iba-trk-more { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  #iba-ai-panel .iba-trk-more > summary { list-style: none !important; cursor: pointer !important; padding: 8px 12px !important; border-radius: 12px !important; border: 1px dashed #2E4A63 !important;
    font-size: 13px !important; font-weight: 700 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; text-align: center !important; }
  #iba-ai-panel .iba-trk-more > summary::-webkit-details-marker { display: none !important; }
  #iba-ai-panel .iba-trk-more[open] > summary { display: none !important; }
  #iba-ai-panel .iba-trk-poacts { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
  #iba-ai-panel .iba-ai-urg-badge { white-space: nowrap !important; }

  /* the receipt: one invoice over the whole assistant */
  #iba-ai-panel .iba-trk-rcpt {
    position: absolute !important; inset: 0 !important; z-index: 60 !important; display: flex !important; flex-direction: column !important;
    background: #0B1724 !important; color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; border-radius: inherit !important; overflow: hidden !important;
  }
  #iba-ai-panel .iba-trk-r-top { flex: 0 0 auto !important; display: flex !important; align-items: center !important; gap: 12px !important; padding: 12px 14px !important; border-bottom: 1px solid #1B2D40 !important; }
  #iba-ai-panel .iba-trk-r-top > span { font-size: 15px !important; font-weight: 600 !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-r-x {
    width: 44px !important; height: 44px !important; min-width: 44px !important; padding: 0 !important; border-radius: 12px !important; border: 1px solid var(--t-line) !important;
    background: var(--t-card) !important; display: grid !important; place-items: center !important; cursor: pointer !important; box-shadow: none !important;
  }
  #iba-ai-panel .iba-trk-r-x i { font-size: 18px !important; color: var(--t-gold) !important; -webkit-text-fill-color: var(--t-gold) !important; }
  #iba-ai-panel .iba-trk-r-body { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; padding: 14px 16px 18px !important; display: flex !important; flex-direction: column !important; gap: 16px !important; }
  #iba-ai-panel :is(.iba-trk-r-left, .iba-trk-r-right) { display: flex !important; flex-direction: column !important; gap: 16px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-trk-r-hero { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; text-align: center !important; padding: 6px 0 2px !important; }
  #iba-ai-panel .iba-trk-r-hero .iba-trk-ic { width: 58px !important; height: 58px !important; }
  #iba-ai-panel .iba-trk-r-hero .iba-trk-ic i { font-size: 26px !important; }
  #iba-ai-panel .iba-trk-r-title { font-size: 21px !important; font-weight: 800 !important; line-height: 1.25 !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; text-wrap: balance !important; }
  #iba-ai-panel .iba-trk-r-sub { font-size: 13.5px !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-r-sub b { color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; }
  #iba-ai-panel .iba-trk-r-amt { margin-top: 4px !important; font-size: 30px !important; font-weight: 800 !important; letter-spacing: -.01em !important; font-variant-numeric: tabular-nums !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-r-inv { display: flex !important; gap: 8px !important; align-items: center !important; flex-wrap: wrap !important; justify-content: center !important; }
  #iba-ai-panel .iba-trk-r-inv > b { font-size: 15px !important; font-weight: 700 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-trk-r-sec { display: flex !important; flex-direction: column !important; gap: 8px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-trk-r-steps { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 4px !important; }
  #iba-ai-panel .iba-trk-r-steps li { display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; min-width: 0 !important; }
  #iba-ai-panel .iba-trk-r-steps li > i { display: block !important; height: 6px !important; border-radius: 3px !important; background: #24394E !important; }
  #iba-ai-panel .iba-trk-r-steps li.is-done > i { background: #5BD38A !important; }
  #iba-ai-panel .iba-trk-r-steps li.is-now > i { background: var(--c) !important; }
  #iba-ai-panel .iba-trk-r-steps li.is-skip > i { background: repeating-linear-gradient(90deg, #3A5068 0 4px, transparent 4px 7px) !important; }
  #iba-ai-panel .iba-trk-r-steps li > span { font-size: 10.5px !important; font-weight: 700 !important; text-align: center !important; line-height: 1.25 !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-r-steps li.is-now > span { color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
  #iba-ai-panel .iba-trk-r-steps li > span small { display: block !important; font-weight: 500 !important; }
  #iba-ai-panel .iba-trk-r-next { margin: 0 !important; font-size: 13.5px !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-r-next b { color: #4FD1C5 !important; -webkit-text-fill-color: #4FD1C5 !important; }
  #iba-ai-panel .iba-trk-r-cols { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  #iba-ai-panel .iba-trk-r-dl { margin: 0 !important; padding: 2px 14px !important; border-radius: 16px !important; background: var(--t-card) !important; border: 1px solid var(--t-line) !important; }
  #iba-ai-panel .iba-trk-r-dl > div { display: flex !important; justify-content: space-between !important; gap: 12px !important; padding: 10px 0 !important; border-bottom: 1px dashed #2A4058 !important; font-size: 14px !important; }
  #iba-ai-panel .iba-trk-r-dl > div:last-child { border-bottom: 0 !important; }
  #iba-ai-panel .iba-trk-r-dl dt { color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; font-weight: 400 !important; margin: 0 !important; }
  #iba-ai-panel .iba-trk-r-dl dd { margin: 0 !important; font-weight: 700 !important; text-align: right !important; color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-r-hist { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
  #iba-ai-panel .iba-trk-r-hist li { margin: 0 !important; padding: 0 !important; font-size: 13.5px !important; line-height: 1.4 !important; color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; }
  #iba-ai-panel .iba-trk-r-hist li b { font-weight: 600 !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-r-acts { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  #iba-ai-panel .iba-trk-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; height: 44px !important; padding: 0 16px !important;
    border-radius: 12px !important; border: 1px solid #2E4A63 !important; background: var(--t-card) !important; color: var(--t-gold) !important; -webkit-text-fill-color: var(--t-gold) !important;
    font: inherit !important; font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important; cursor: pointer !important; box-shadow: none !important; white-space: nowrap !important;
  }
  #iba-ai-panel .iba-trk-btn i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  #iba-ai-panel .iba-trk-btn.is-main { border-color: #2F7FE0 !important; background: #2F7FE0 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-trk-btn.is-danger { border-color: rgba(255, 107, 107, .6) !important; color: #FFB4B4 !important; -webkit-text-fill-color: #FFB4B4 !important; }
  #iba-ai-panel .iba-trk-btn:hover { filter: brightness(1.12) !important; }
  #iba-ai-panel .iba-trk-rcpt .iba-ai-remind, #iba-ai-panel .iba-trk-rcpt .iba-ai-urg-mini { margin: 0 !important; }
  /* big window: two columns, like a receipt beside its details */
  #iba-ai-panel.is-wide .iba-trk-r-body { display: grid !important; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) !important; align-items: start !important; gap: 24px !important; padding: 22px 24px !important; }
  #iba-ai-panel.is-wide .iba-trk-r-hero { padding: 22px 16px !important; border-radius: 20px !important; background: var(--t-card) !important; border: 1px solid var(--t-line) !important; }
  #iba-ai-panel.is-wide .iba-trk-r-title { font-size: 23px !important; }
  #iba-ai-panel.is-wide .iba-trk-r-amt { font-size: 34px !important; }
  #iba-ai-panel.is-wide .iba-trk-r-steps li > i { height: 8px !important; }
  #iba-ai-panel.is-wide .iba-trk-r-steps li > span { font-size: 12.5px !important; text-align: left !important; }
  #iba-ai-panel.is-wide .iba-trk-r-cols { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; gap: 20px !important; align-items: start !important; }
  /* phone: bigger touch rows */
  body.iba-phone #iba-ai-panel .iba-trk-pono { font-size: 27px !important; }
  body.iba-phone #iba-ai-panel .iba-trk-mid > b { font-size: 16px !important; }
  body.iba-phone #iba-ai-panel .iba-trk-r-acts .iba-trk-btn { flex: 1 1 auto !important; height: 48px !important; }

  /* 17.0.5 patch 21: Notify me (js/iba-1705-watch.js) */
  #iba-ai-panel .iba-trk-btn.iba-watch-btn { border-color: rgba(127, 227, 214, .7) !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; background: rgba(127, 227, 214, .14) !important; }
  #iba-ai-panel .iba-trk-btn.iba-watch-btn.is-on { border-color: rgba(139, 227, 181, .7) !important; color: #8BE3B5 !important; -webkit-text-fill-color: #8BE3B5 !important; background: rgba(80, 200, 140, .16) !important; }
  body.iba-shell-on #iba-live-counts .iba-live-pill.iba-watch-pill { --live-c: #7FE3D6; --live-glow: rgba(127, 227, 214, .5); }
  body.iba-shell-on #iba-live-counts .iba-live-pill.iba-watch-pill .iba-live-num { background: #E5484D !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  #iba-watch-pop .iba-watch-box { width: min(560px, 100%); }
  #iba-watch-pop .iba-pb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  #iba-watch-pop .iba-watch-x { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: transparent !important; color: #EEF3F8 !important; cursor: pointer !important; }
  #iba-watch-pop .iba-watch-item { margin: 12px 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
  #iba-watch-pop .iba-watch-item:last-child { border-bottom: 0; }
  #iba-watch-pop .iba-watch-po { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
  #iba-watch-pop .iba-watch-po .is-no { font: 700 20px/1.1 ui-monospace, 'JetBrains Mono', Consolas, monospace; color: #fff; }
  #iba-watch-pop .iba-watch-po .is-vend { color: #E3C98A; font-weight: 700; }
  #iba-watch-pop .iba-watch-po .is-site { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(127, 227, 214, .15); color: #7FE3D6; }
  #iba-watch-pop .iba-watch-line { color: #EBD8A8; }
  #iba-watch-pop .iba-watch-msg { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); line-height: 1.5; color: #D6E0EA; }
  #iba-watch-pop .iba-watch-msg span { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #EBD8A8; }
  #iba-watch-pop .iba-watch-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  #iba-watch-pop .iba-trk-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 12px !important; border: 1px solid rgba(159, 179, 194, .4) !important; background: transparent !important; color: #EEF3F8 !important; font: inherit !important; font-weight: 700 !important; cursor: pointer !important; }
  #iba-watch-pop .iba-trk-btn.is-main { border-color: rgba(127, 227, 214, .75) !important; background: rgba(127, 227, 214, .18) !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; }
  #iba-watch-pop .iba-trk-btn.is-wa { border-color: rgba(139, 227, 181, .7) !important; background: rgba(80, 200, 140, .18) !important; color: #8BE3B5 !important; -webkit-text-fill-color: #8BE3B5 !important; }
  #iba-watch-pop .iba-trk-btn:hover, #iba-watch-pop .iba-trk-btn:focus-visible { filter: brightness(1.15) !important; outline: none !important; }
  #iba-watch-pop .iba-watch-item.is-paid .iba-watch-line { color: #8BE3B5; font-weight: 700; }
  #iba-ai-panel .iba-watch-list li.is-acc { background: rgba(127, 227, 214, .08) !important; }
  #iba-ai-panel .iba-watch-pono { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; }
  #iba-ai-panel .iba-watch-st { display: inline-block; width: max-content !important; max-width: 100%; align-self: flex-start; margin-top: 3px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(255, 201, 112, .16); color: #FFC970; -webkit-text-fill-color: #FFC970; }
  #iba-ai-panel .iba-watch-st.is-acc { background: rgba(127, 227, 214, .2); color: #7FE3D6; -webkit-text-fill-color: #7FE3D6; font-weight: 700; }
  #iba-ai-panel .iba-watch-st.is-paid { background: rgba(80, 200, 140, .2); color: #8BE3B5; -webkit-text-fill-color: #8BE3B5; font-weight: 700; }
  #iba-ai-panel .iba-watch-list .c-act { display: flex !important; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
  body.iba-phone #iba-ai-panel .iba-aph-tabs > button { position: relative !important; }
  #iba-ai-panel .iba-watch-tabn { position: absolute; top: 2px; right: 18%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; -webkit-text-fill-color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  #iba-ai-panel .iba-watch-tabn[hidden] { display: none !important; }
  /* phone: no top-bar bell; the number sits on the assistant button and Brief tab */
  body:not(.iba-shell-on) #iba-watch-pill, body:is(.iba-mobile-ui, .iba-phone) #iba-watch-pill { display: none !important; }
  .iba-ph-ai { position: relative; }
  .iba-ph-ai .iba-watch-phn { position: absolute; top: 2px; left: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #0F8A7E; color: #fff; -webkit-text-fill-color: #fff; font: 700 10px/16px Arial, sans-serif; text-align: center; pointer-events: none; }
  .iba-ph-ai .iba-watch-phn[hidden] { display: none !important; }

  /* 17.0.5 patch 24: "Add all approved to print" = a chip like Clear, gold touch (inside the layer: layered !important wins) */
  html body #wd-activetask #iba-pb-all.iba-pb-all-btn { display: inline-flex !important; align-items: center; gap: 8px; flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; height: 38px !important; margin: 0 0 0 auto !important; padding: 0 14px !important; border-radius: 12px !important; background: rgba(14, 27, 42, 0.82) !important; background-image: none !important; box-shadow: none !important; border: 1px solid rgba(227, 201, 138, 0.45) !important; color: #EEF3F8 !important; font-size: 13px !important; font-weight: 800 !important; cursor: pointer; }
  html body #wd-activetask #iba-pb-all.iba-pb-all-btn:hover { border-color: #E3C98A !important; background: rgba(227, 201, 138, 0.12) !important; }
  #iba-pb-all.iba-pb-all-btn i { color: #E3C98A !important; }
  #iba-pb-all.iba-pb-all-btn b { min-width: 20px; padding: 2px 7px; border-radius: 999px; background: #E3C98A !important; color: #14293f !important; -webkit-text-fill-color: #14293f; font-size: 12px; text-align: center; }
  body:is(.iba-mobile-ui, .iba-phone) #wd-activetask #iba-pb-all.iba-pb-all-btn { display: none !important; }

  /* 17.0.5 patch 27: Settings > System Version */
  #iba-ver-card .iba-ver-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  #iba-ver-card .iba-ver-now { font-size: 16px; color: #E3C98A; }
  #iba-ver-card .iba-ver-body small { color: #EBD8A8; }
  #iba-ver-card .iba-ver-msg { margin: 2px 0 4px; min-height: 1em; color: #EBD8A8; font-size: 13px; }
  #iba-ver-card .iba-ver-msg.is-ok { color: #7FE3D6; }
  #iba-ver-card .iba-ver-msg.is-new { color: #F2C46D; }
  #iba-ver-card .iba-ver-msg button { margin-left: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(227, 201, 138, 0.5); background: rgba(227, 201, 138, 0.12); color: #fff; cursor: pointer; }

  /* 17.0.5 patch 28: Select Person for SRV */
  #iba-srv-picker .iba-srvp { width: min(520px, 100%); }
  #iba-srv-picker .iba-srvp-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 4px; overflow: auto; }
  #iba-srv-picker .iba-srvp-row { display: flex !important; align-items: center; gap: 12px; width: 100%; padding: 10px 12px !important; border-radius: 12px !important; text-align: left; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.14) !important; background: rgba(255, 255, 255, 0.05) !important; color: #EEF3F8 !important; font: inherit; }
  #iba-srv-picker .iba-srvp-row > i { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(127, 227, 214, 0.14); color: #7FE3D6; }
  #iba-srv-picker .iba-srvp-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  #iba-srv-picker .iba-srvp-row b { color: #fff; font-size: 14px; }
  #iba-srv-picker .iba-srvp-row small { color: #EBD8A8; font-size: 12px; }
  #iba-srv-picker .iba-srvp-row em { font-style: normal; color: #F2C46D; font-size: 12px; }
  #iba-srv-picker .iba-srvp-row:not([disabled]):hover, #iba-srv-picker .iba-srvp-row:not([disabled]):focus-visible { border-color: rgba(227, 201, 138, 0.7) !important; background: rgba(227, 201, 138, 0.1) !important; outline: none; }
  #iba-srv-picker .iba-srvp-row.is-away { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }
  #iba-srv-picker .iba-srvp-row.is-away > i { background: rgba(255, 255, 255, 0.08); color: #EBD8A8; }

  /* 17.0.5 patch 31: Reply window (typed-status tasks) */
  #iba-reply-pop .iba-reply { width: min(560px, 100%); }
  #iba-reply-pop .iba-reply-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 6px; overflow: auto; }
  #iba-reply-pop .iba-reply-q { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(227, 201, 138, 0.35); background: rgba(227, 201, 138, 0.08); color: #EEF3F8; }
  #iba-reply-pop .iba-reply-q small { display: block; color: #EBD8A8; font-size: 12px; }
  #iba-reply-pop .iba-reply-q p { color: #FFFFFF !important; opacity: 1 !important; margin: 6px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
  #iba-reply-pop .iba-reply-st { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: rgba(127, 227, 214, 0.16); color: #7FE3D6; font-weight: 600; }
  #iba-reply-pop .iba-reply-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  #iba-reply-pop .iba-reply-docs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(127, 227, 214, 0.45); color: #7FE3D6 !important; font-size: 13px; text-decoration: none; }
  #iba-reply-pop .iba-reply-docs a:hover { background: rgba(127, 227, 214, 0.12); }
  #iba-reply-pop label { margin-top: 4px; color: #EEF3F8 !important; opacity: 1 !important; font-size: 13px; font-weight: 600; }
  #iba-reply-pop label em { font-style: normal; font-weight: 400; color: #EBD8A8; font-size: 11px; margin-left: 4px; }
  #iba-reply-pop textarea, #iba-reply-pop input { width: 100%; box-sizing: border-box; padding: 9px 11px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; background: rgba(8, 18, 30, 0.55) !important; color: #fff !important; font: inherit; font-size: 14px; }
  #iba-reply-pop textarea { resize: vertical; min-height: 90px; }
  #iba-reply-pop textarea:focus, #iba-reply-pop input:focus { outline: none; border-color: rgba(227, 201, 138, 0.8) !important; }
  #iba-reply-pop .iba-reply-msg { margin: 2px 0 0; color: #F2C46D; font-size: 13px; }
  #iba-reply-pop [data-send][disabled] { opacity: 0.5; cursor: not-allowed; }
  #active-task-mobile-view .iba-reply-row { display: flex; margin-top: 8px; }
  #active-task-mobile-view .iba-reply-row .iba-reply-btn { flex: 1 1 auto; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background-color: #1f6f8b !important; }

  /* 17.0.5 patch 35: pop-ups that do not fit (js/iba-1705-modalfit.js adds
     .iba-fit only then): the box sits in the free area beside the pinned side
     menu / assistant side panel, never wider or taller than it, the body
     scrolls inside with the title and Save/Close always showing, wide grids
     drop to 2 / 1 columns. Pop-ups that fit are not touched. */
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2):not(.hidden), .iba-pb-layer.iba-fit:not(#iba-no1):not(#iba-no2) {
    box-sizing: border-box !important;
    padding: var(--iba-free-t, 12px) calc(var(--iba-free-r, 0px) + 12px) 12px calc(var(--iba-free-l, 0px) + 12px) !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container:not(.im-user-positioned),
  .iba-pb-layer.iba-fit:not(#iba-no1):not(#iba-no2) > .iba-pb-box {
    box-sizing: border-box !important;
    width: min(var(--iba-fit-w, 100%), 100%) !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    left: auto !important;
    transform: none !important;
  }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    container-type: inline-size;
    container-name: iba-fit;
  }
  /* Invoice Entry moved by its title bar: kept where it was put, but not under the menu and not past the edge */
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container.im-user-positioned {
    left: max(var(--im-modal-left, 24px), calc(var(--iba-free-l, 0px) + 12px)) !important;
    max-width: calc(100vw - var(--iba-free-l, 0px) - var(--iba-free-r, 0px) - 24px) !important;
    max-height: calc(100vh - var(--iba-free-t, 12px) - 12px) !important;
  }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container > :is(.modal-header, .modal-footer) { flex: 0 0 auto !important; }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container > :not(.modal-header):not(.modal-footer) {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
  }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container .modal-footer { flex-wrap: wrap !important; row-gap: 8px !important; }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container :is(input, select, textarea) { max-width: 100% !important; min-width: 0 !important; }
  .modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2) > .modal-container .form-group { min-width: 0 !important; }
  @container iba-fit (max-width: 980px) {
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-pocket-transfer-stats, #ms-report-stats) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.ms-reg-board, .tf-board) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  }
  @container iba-fit (max-width: 820px) {
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-entry-body-shell) { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; grid-auto-rows: max-content !important; align-content: start !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-entry-body-shell > *) { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-entry-body-shell > .im-entry-quick-panel) { max-height: none !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) .im-quick-status-buttons { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 8px !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) .im-quick-status-buttons > .im-quick-status-btn { width: auto !important; min-width: 0 !important; margin: 0 !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-toolbar-row, .im-toolbar-buttons) { flex-wrap: wrap !important; row-gap: 8px !important; }
    :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.ms-reg-board, .tf-board) { grid-template-columns: minmax(0, 1fr) !important; }
  }
  @container iba-fit (max-width: 600px) {
    .form-grid-compact, .transfer-2col-grid, :is(.modal-overlay.iba-fit:not(#iba-no1):not(#iba-no2)) :is(.im-pocket-transfer-stats, #ms-report-stats) { grid-template-columns: minmax(0, 1fr) !important; }
  }
  /* 17.0.5 patch 36: Invoice Entry in a narrow window (<= 900 px, the app's
     own one-column layout): the rows were squeezed to the box height, so
     Quick Access was drawn on top of the form. Rows now follow their
     content and the body scrolls. */
  @media (max-width: 900px) {
    #im-invoice-entry-modal:not(#iba-no1) .im-entry-body-shell { grid-template-rows: none !important; grid-auto-rows: max-content !important; align-content: start !important; }
    #im-invoice-entry-modal:not(#iba-no1) .im-entry-body-shell > * { height: auto !important; min-height: 0 !important; max-height: none !important; }
    #im-invoice-entry-modal:not(#iba-no1) .im-quick-status-buttons { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 8px !important; }
  }

  /* 17.0.5 patch 37: the corner assistant robot (PC) is see-through while
     nobody uses it; clear again when the mouse is on it, it has keyboard
     focus, or a message bubble is showing. Phones / touch screens unchanged. */
  @media (hover: hover) and (pointer: fine) {
    body:not(.iba-phone) #iba-ai-fab.iba-ai-fab:not(.is-open) { transition: transform .15s ease, opacity .4s ease !important; }
    body:not(.iba-phone):not(:has(#iba-ai-bubble:not([hidden]))) #iba-ai-fab.iba-ai-fab:not(.is-open):not(:hover):not(:focus-visible):not(:active) { opacity: 0.3 !important; }
  }

  /* 17.0.5 patch 38: PO pull-out list (js/iba-1705-release.js, uses the ESN window look) */
  html body #iba-esn.iba-pull .iba-esn-box { width: min(900px, 100%); }
  html body #iba-esn.iba-pull td.iba-pull-acts { white-space: nowrap; text-align: right; }
  html body #iba-esn.iba-pull td.iba-pull-acts .iba-esn-btn + .iba-esn-btn { margin-left: 6px; }
  html body #iba-esn.iba-pull tr.is-pulled td:not(.iba-pull-acts) { opacity: .5; text-decoration: line-through; }

  /* 17.0.5 patch 40: Site stock window (js/iba-1705-sitestock.js) */
  html body #iba-esn.iba-sitestock .iba-esn-box { width: min(1120px, 100%); }
  html body #iba-esn.iba-sitestock .iba-ss-form { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
  html body #iba-esn.iba-sitestock .iba-ss-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  html body #iba-esn.iba-sitestock .iba-ss-form .iba-esn-btn { height: 38px; }
  html body #iba-esn.iba-sitestock tfoot td { border-top: 1px solid rgba(127, 227, 214, 0.35); color: #fff; }
  html body #iba-esn.iba-sitestock .iba-esn-picked { white-space: normal; }

  /* 17.0.5 patch 44: Inventory permissions (js/iba-1705-invperm.js) */
  html body #iba-esn.iba-invperm .iba-esn-box { width: min(760px, 100%); }
  html body #iba-esn.iba-invperm td small { display: block; font-size: 11.5px; color: #EBD8A8; font-weight: 400; }
  html body #iba-esn.iba-invperm td.c input { width: 18px; height: 18px; accent-color: #40C4CE; cursor: pointer; }
  html body #iba-esn.iba-invperm tr.is-changed td { background: rgba(227, 201, 138, 0.10) !important; }
  html body #iba-esn.iba-invperm .iba-esn-picked { white-space: normal; }
  html body.iba-inv-off-download:not(#iba-no1):not(#iba-no2):not(#iba-no3) :is(#ms-download-titles-btn, #ms-template-btn),
  html body.iba-inv-off-report:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-open-report-modal-btn,
  html body.iba-inv-off-required:not(#iba-no1):not(#iba-no2):not(#iba-no3) :is(#ms-open-requestlist-btn, .ms-add-to-required-btn),
  html body.iba-inv-off-register:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-add-new-btn,
  html body.iba-inv-off-upload:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-upload-csv-btn,
  html body.iba-inv-off-titles:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-upload-titles-btn { display: none !important; }

  /* 17.0.5 patch 46: Material Stock "More tools" menu (js/iba-1705-msmenu.js) + Movement History Trans no. */
  html body #wd-material-stock .ms-premium-toolbar.iba-msm-empty { display: none !important; }
  html body .iba-msm { position: relative; display: flex; }
  html body .iba-msm[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .iba-msm-more {
    height: 40px !important; padding: 0 14px !important; border-radius: 12px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important;
    border: 1px solid rgba(227, 201, 138, 0.75) !important; background: rgba(227, 201, 138, 0.12) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important;
    font-weight: 700 !important; font-size: 13.5px !important; white-space: nowrap !important; cursor: pointer !important; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .iba-msm-more i { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .iba-msm-more:hover, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .iba-msm.is-open .iba-msm-more { background: rgba(227, 201, 138, 0.22) !important; }
  html body .iba-msm-chev { font-size: 11px; transition: transform .15s ease; }
  html body .iba-msm.is-open .iba-msm-chev { transform: rotate(180deg); }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .iba-msm-refresh { width: 40px !important; height: 40px !important; padding: 0 !important; justify-content: center !important; border-radius: 12px !important; order: 0 !important; margin: 0 !important; }
  html body .iba-msm-panel { box-sizing: border-box; position: fixed; z-index: 100050; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px;
    background: rgba(16, 32, 48, 0.97); border: 1px solid rgba(127, 227, 214, 0.30); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
  html body .iba-msm-panel[hidden], html body .iba-msm-group[hidden] { display: none !important; }
  html body .iba-msm-panel:not([hidden]) { display: flex !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel { background: #102030 !important; background-image: none !important; opacity: 1 !important; }
  html body .iba-msm-group + .iba-msm-group:not([hidden]) { border-top: 1px solid rgba(255, 255, 255, 0.10); margin-top: 4px; padding-top: 4px; }
  html body .iba-msm-gname { padding: 6px 10px 2px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9fb3c2; font-weight: 700; }
  html body .iba-msm-items { display: flex; flex-direction: column; gap: 2px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button {
    order: 0 !important; margin: 0 !important; width: 100% !important; min-height: 44px !important; height: auto !important; padding: 7px 10px !important;
    display: grid !important; grid-template-columns: 22px minmax(0, 1fr) !important; grid-auto-rows: auto !important; align-content: center !important; row-gap: 1px !important; column-gap: 8px !important; align-items: center !important; justify-items: start !important; text-align: left !important;
    background: transparent !important; background-image: none !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 13.5px !important; font-weight: 600 !important; line-height: 1.25 !important; white-space: normal !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button.iba-msm-no, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button.hidden, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button:hover, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button:focus-visible { background: rgba(64, 196, 206, 0.16) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button i { grid-row: 1 / span 2; justify-self: center; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button::after { content: attr(data-msm-hint); grid-column: 2; font-size: 11.5px; font-weight: 400; color: #EBD8A8; -webkit-text-fill-color: #EBD8A8; }

  html body #iba-esn.iba-sitestock td.iba-ss-from { font-size: 12px; color: #EBD8A8; line-height: 1.45; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .ms-hist-trn { box-sizing: border-box !important; text-decoration: none !important; vertical-align: middle !important; height: 22px !important; min-height: 0 !important; min-width: 0 !important; width: auto !important; line-height: 1 !important; margin: 0 !important; padding: 0 6px !important; display: inline-flex !important; align-items: center !important; gap: 4px !important; border-radius: 5px !important; border: 1px solid rgba(127, 227, 214, 0.45) !important;
    background: rgba(64, 196, 206, 0.12) !important; background-image: none !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; font-family: Consolas, Monaco, monospace !important; font-weight: 700 !important; font-size: 11.5px !important; font-weight: 600 !important; white-space: nowrap !important; cursor: pointer !important; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .ms-hist-trn:hover { background: rgba(64, 196, 206, 0.26) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) #wd-material-stock .ms-hist-trn i { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; font-size: 10px !important; }
  html body #wd-material-stock .ms-hist-trn-txt { font-family: Consolas, Monaco, monospace; font-weight: 700; font-size: 12px; white-space: nowrap; }
  html body:is(.iba-mobile-ui, .iba-phone) #wd-material-stock .ms-hist-trn { pointer-events: none !important; }
  html body:is(.iba-mobile-ui, .iba-phone) #wd-material-stock .ms-hist-trn i { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button#ms-bulk-delete-btn, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .iba-msm-panel .iba-msm-items > button#ms-bulk-delete-btn i { color: #ff9b9b !important; -webkit-text-fill-color: #ff9b9b !important; }
  /* 17.0.5 patch 49: Add new PO (PO file) window */
  html body #iba-esn.iba-addpo .iba-esn-box { width: min(620px, 100%); }
  html body #iba-esn.iba-addpo .iba-ap-q { margin: 4px 0 14px; font-size: 15px; line-height: 1.5; color: #fff; }
  html body #iba-esn.iba-addpo .iba-ap-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
  html body #iba-esn.iba-addpo .iba-ap-form:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; }
  html body #iba-esn.iba-addpo .iba-ap-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  html body #iba-esn.iba-addpo .iba-ap-form .is-wide { grid-column: 1 / -1; }
  html body #iba-esn.iba-addpo .iba-ap-form input:disabled { opacity: .7; color: #EBD8A8; }
  @media (max-width: 560px) { html body #iba-esn.iba-addpo .iba-ap-form:not([hidden]) { grid-template-columns: 1fr; } }
  /* 17.0.5 patch 52: tracking sections (in progress / With Accounts) + folded paid / no-invoice POs */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-sec { display: flex !important; align-items: center !important; gap: 8px !important; margin: 6px 2px 0 !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-sec.is-g1 { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-fold { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-fold > summary, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-more.is-paidfold > summary { display: block !important; list-style: none !important; cursor: pointer !important; padding: 9px 12px !important; border-radius: 12px !important; border: 1px dashed #2E4A63 !important; background: rgba(16, 38, 30, .55) !important;
    font-size: 13px !important; font-weight: 700 !important; color: #5BD38A !important; -webkit-text-fill-color: #5BD38A !important; text-align: center !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-fold > summary::-webkit-details-marker { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-fold[open] > summary i, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-more.is-paidfold[open] > summary i { transform: rotate(180deg) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel details[open] > summary .iba-tap { display: none !important; }
  /* 17.0.5 patch 52: a PO is one folder: header on top, its invoices hang under it on a line */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-po { gap: 0 !important; margin: 0 0 18px !important; border: 1px solid #2E4A63 !important; border-radius: 18px !important; background: rgba(8, 18, 30, .55) !important; overflow: hidden !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-po > .iba-trk-pohead { border: 0 !important; border-radius: 0 !important; border-bottom: 1px solid #2E4A63 !important; border-left: 4px solid #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids { position: relative !important; display: flex !important; flex-direction: column !important; gap: 8px !important; margin: 0 !important; padding: 8px 10px 12px 34px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids::before { content: "" !important; position: absolute !important; left: 17px !important; top: 0 !important; bottom: 22px !important; width: 2px !important; background: rgba(227, 201, 138, .45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-row, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-none { position: relative !important; overflow: visible !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-row::before, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-none::before { content: "" !important; position: absolute !important; left: -17px !important; top: 50% !important; width: 16px !important; height: 2px !important; background: rgba(227, 201, 138, .45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-row { min-height: 56px !important; background: #132538 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-grp { padding: 4px 0 0 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-kids .iba-trk-poacts { margin-top: 2px !important; }
  /* 17.0.5 patch 54: With Accounts fold in teal */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-fold.is-accfold > summary, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-trk-more.is-accfold > summary { color: #4FD1C5 !important; -webkit-text-fill-color: #4FD1C5 !important; background: rgba(15, 40, 44, .55) !important; }
  /* 17.0.5 patch 56: Batch Entry "copy to Paid" on the Invoice Value label */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .batch-invoice-card label.iba-bv-lab { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .batch-invoice-card button.iba-bv-copy { display: inline-flex !important; align-items: center !important; gap: 3px !important; height: 18px !important; min-height: 0 !important; min-width: 0 !important; width: auto !important; margin: 0 !important; padding: 0 6px !important;
    border-radius: 4px !important; border: 1px solid #0d7e85 !important; background: #ffffff !important; color: #0d7e85 !important; -webkit-text-fill-color: #0d7e85 !important; font-size: 9px !important; font-weight: 800 !important; line-height: 1 !important; cursor: pointer !important; box-shadow: none !important; transform: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .batch-invoice-card button.iba-bv-copy i { font-size: 9px !important; color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .batch-invoice-card button.iba-bv-copy:hover { background: #0d7e85 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7) .batch-invoice-card button.iba-bv-copy.is-done { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  /* 17.0.5 patch 57: PO value taken from the PO file (progress-po) */
  html body .iba-pofile-upd { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .03em; vertical-align: middle; background: rgba(227, 201, 138, .18); color: #E3C98A; -webkit-text-fill-color: #E3C98A; border: 1px solid rgba(227, 201, 138, .5); }
  /* 17.0.5 patch 58: Sort for CEO card */
  html body #iba-ai-panel .iba-cs-sec { margin: 12px 0 6px; padding: 6px 10px; border-radius: 8px; font-size: 12px; letter-spacing: .02em; border-left: 3px solid #E3C98A; background: rgba(227, 201, 138, .10); }
  html body #iba-ai-panel .iba-cs-sec.is-single { border-left-color: #22c55e; background: rgba(34, 197, 94, .10); }
  html body #iba-ai-panel .iba-cs-sec.is-sum { border-left-color: #E3C98A; }
  html body #iba-ai-panel .iba-cs-sec.is-none { border-left-color: #94a3b8; background: rgba(148, 163, 184, .10); }
  html body #iba-ai-panel .iba-cs-wrap { overflow-x: auto; max-width: 100%; }
  html body #iba-ai-panel table.iba-cs-t { width: 100%; border-collapse: collapse; font-size: 12px; }
  html body #iba-ai-panel table.iba-cs-t th { text-align: left; padding: 5px 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; border-bottom: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
  html body #iba-ai-panel table.iba-cs-t td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }
  html body #iba-ai-panel table.iba-cs-t td:first-child { font-family: ui-monospace, Consolas, monospace; font-weight: 800; white-space: nowrap; }
  html body #iba-ai-panel table.iba-cs-t td small { display: block; opacity: .7; font-size: 11px; }
  html body #iba-ai-panel .iba-cs-msg:empty { display: none; }
  html body #iba-ai-panel .iba-cs-msg { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(34, 197, 94, .12); font-size: 12px; }
  /* 17.0.5 patch 59: Sort for CEO move buttons */
  html body #iba-ai-panel table.iba-cs-t thead th { background: transparent !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body #iba-ai-panel .iba-cs-mvw { display: block; margin-top: 6px; }
  html body #iba-ai-panel table.iba-cs-t .iba-cs-mv { padding: 3px 9px; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; min-height: 0; white-space: nowrap; }
  html body #iba-ai-panel .iba-cs-urg { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; font-family: inherit; font-size: 10px; font-weight: 800; background: rgba(239, 68, 68, .18); color: #fca5a5; -webkit-text-fill-color: #fca5a5; border: 1px solid rgba(239, 68, 68, .5); }
  /* 17.0.5 patch 61: Sort for CEO invoice lines */
  html body #iba-ai-panel .iba-cs-inv { white-space: nowrap; line-height: 1.5; }
  html body #iba-ai-panel .iba-cs-inv + .iba-cs-inv { margin-top: 3px; }
  html body #iba-ai-panel .iba-cs-po2 { font-family: ui-monospace, Consolas, monospace; opacity: .8; }
  html body #iba-ai-panel .iba-cs-st { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: rgba(127, 227, 214, .14); color: #7FE3D6; -webkit-text-fill-color: #7FE3D6; border: 1px solid rgba(127, 227, 214, .4); }
  /* 17.0.5 patch 63: invoice history corrections */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #history-table-body button.iba-hf-del { display: inline-flex !important; align-items: center; justify-content: center; width: 26px !important; height: 24px !important; min-height: 0 !important; flex: 0 0 auto !important; padding: 0 !important; margin-left: 6px; border-radius: 7px; background: rgba(220, 53, 69, .14) !important; border: 1px solid rgba(255, 107, 107, .55) !important; color: #ff8a8a !important; -webkit-text-fill-color: #ff8a8a !important; font-size: 12px; cursor: pointer; vertical-align: middle; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #history-table-body button.iba-hf-del:hover { background: rgba(220, 53, 69, .6) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body #iba-hf-pop .iba-hf-list { margin: 6px 0 10px 18px; padding: 0; line-height: 1.7; }
  html body #iba-hf-pop .iba-hf-list s { opacity: .7; }
  /* 17.0.5 patch 68: pull-out list "add PO" box (cart) */
  html body #iba-esn.iba-pull form.iba-pull-add { display: flex; gap: 8px; margin: 10px 0 6px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull form.iba-pull-add input { flex: 1 1 auto; min-width: 0; height: 40px !important; padding: 0 12px !important; border-radius: 10px !important; background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(227, 201, 138, .45) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 14px !important; }
  html body #iba-esn.iba-pull form.iba-pull-add input::placeholder { color: rgba(255, 255, 255, .45); -webkit-text-fill-color: rgba(255, 255, 255, .45); }
  html body #iba-esn.iba-pull .iba-pull-res { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  html body #iba-esn.iba-pull .iba-pull-res:empty { display: none; }
  html body #iba-esn.iba-pull .iba-pull-chip { padding: 3px 10px; border-radius: 99px; font-size: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
  html body #iba-esn.iba-pull .iba-pull-chip.is-ok { border-color: rgba(34, 197, 94, .6); background: rgba(34, 197, 94, .14); }
  html body #iba-esn.iba-pull .iba-pull-chip.is-same { border-color: rgba(227, 201, 138, .6); background: rgba(227, 201, 138, .12); }
  html body #iba-esn.iba-pull .iba-pull-chip.is-bad { border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .14); }
  /* 17.0.5 patch 69: still with Procurement + WhatsApp request */
  html body #iba-esn.iba-pull .iba-pull-chip.is-proc { border-color: rgba(127, 227, 214, .6); background: rgba(127, 227, 214, .12); display: inline-flex; align-items: center; gap: 6px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull button.iba-pull-req { display: inline-flex !important; align-items: center; gap: 5px; min-height: 0 !important; height: 24px !important; padding: 0 9px !important; border-radius: 99px !important; font-size: 11.5px !important; font-weight: 700; background: #1f9d55 !important; border: 1px solid #25d366 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; cursor: pointer; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull button.iba-pull-req.is-all { height: 28px !important; }
  /* 17.0.5 patch 72: Summary Note sheet (white paper): row hover kept readable (dark text, light blue-grey row) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #summary-note-printable-area tbody tr:hover > td { color: #14293f !important; -webkit-text-fill-color: #14293f !important; background: #e6eef5 !important; background-color: #e6eef5 !important; }
  /* 17.0.5 patch 74: Material update preview (iba-1705-msmigrate.js) + "was <old ID>" under the Product ID */
  html body:not(#iba-no1):not(#iba-no2) #iba-msm .iba-pb-box.iba-msm-box { width: min(1120px, 96vw) !important; max-width: 96vw !important; }
  html body #iba-msm .iba-pb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  html body:not(#iba-no1):not(#iba-no2) #iba-msm .iba-msm-x { background: transparent !important; border: 0 !important; color: inherit !important; font-size: 18px; cursor: pointer; box-shadow: none !important; }
  html body #iba-msm .iba-msm-scroll { max-height: 58vh; overflow: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; margin-top: 8px; }
  html body #iba-msm .iba-msm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  html body #iba-msm .iba-msm-table th { position: sticky; top: 0; background: rgba(12, 24, 40, .96); color: #E3C98A; text-align: left; padding: 7px 8px; font-weight: 700; z-index: 1; }
  html body #iba-msm .iba-msm-table td { padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, .08); vertical-align: top; color: #eef3f8; }
  html body #iba-msm .iba-msm-table td s { opacity: .55; }
  html body #iba-msm .iba-msm-table td small { opacity: .7; }
  html body #iba-msm .iba-msm-table tr.is-bad td { background: rgba(220, 53, 69, .12); }
  html body #iba-msm .iba-msm-table tr.is-same td { opacity: .55; }
  html body #iba-msm .iba-msm-id { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
  html body #iba-msm .iba-msm-bad { color: #ff9b9b; }
  html body #iba-msm .iba-msm-ok { color: #7FE3D6; white-space: nowrap; }
  html body #iba-msm .iba-msm-same { color: #b9c4cf; }
  html body #iba-msm .iba-msm-msg { margin-top: 8px; min-height: 1em; }
  html body .ms-old-id { display: block; font-size: 10.5px; opacity: .7; font-style: italic; margin-top: 2px; }
  /* 17.0.5 patch 76: Material Stock page bar (Showing 1-25 of 200 · Previous / Next) */
  html body #ms-page-bar.ms-page-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 10px 0 4px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(227, 201, 138, .35); background: rgba(12, 24, 40, .55); color: #eef3f8; font-size: 13px; }
  html body #ms-page-bar[hidden] { display: none !important; }
  html body #ms-page-bar .ms-page-info b { color: #E3C98A; }
  html body #ms-page-bar .ms-page-nav { display: inline-flex; align-items: center; gap: 10px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-page-bar .ms-page-nav button { min-height: 0 !important; height: 32px !important; padding: 0 14px !important; border-radius: 99px !important; font-size: 12.5px !important; display: inline-flex !important; align-items: center; gap: 6px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-page-bar .ms-page-nav button:disabled { opacity: .4 !important; cursor: default; }
  html body:not(#iba-no1):not(#iba-no2) #ms-page-bar .ms-page-size { display: inline-flex; align-items: center; gap: 6px; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-size: 12.5px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-page-bar .ms-page-size select { height: 28px !important; min-height: 0 !important; padding: 0 6px !important; width: auto !important; border-radius: 8px !important; }
  /* 17.0.5 patch 77: Material Stock table only: visible scrollbar + "more rows below" pill */
  html body #wd-material-stock .ms-premium-tablewrap:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) { scrollbar-width: auto !important; scrollbar-color: rgba(227, 201, 138, .75) rgba(255, 255, 255, .06) !important; position: relative; }
  html body #wd-material-stock .ms-premium-tablewrap:not(#iba-no1)::-webkit-scrollbar { width: 12px !important; height: 12px !important; display: block !important; background: rgba(255, 255, 255, .06) !important; }
  html body #wd-material-stock .ms-premium-tablewrap:not(#iba-no1)::-webkit-scrollbar-thumb { background: rgba(227, 201, 138, .75) !important; border-radius: 99px; border: 2px solid rgba(12, 24, 40, .8); }
  /* 17.0.5 patch 78: hint lives in the page bar (not over the rows); bar keeps clear of the assistant bot (bottom right) */
  html body #ms-page-bar.ms-page-bar { justify-content: flex-start; padding-right: 96px; }
  html body #ms-page-bar .ms-page-more { color: #7FE3D6; font-weight: 700; }
  html body #ms-page-bar .ms-page-more[hidden] { display: none !important; }
  html body #ms-page-bar .ms-page-nav { margin-left: auto; }
  html body #ms-page-bar .ms-page-size { order: 5; }
  /* 17.0.5 patch 79: same visible scrollbar on the other Inventory tables: Active Job and Work History (inventory mode only) */
  html body #inv-active-job .table-wrapper:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4),
  html body.inventory-mode #wd-reporting .table-wrapper:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) { scrollbar-width: auto !important; scrollbar-color: rgba(227, 201, 138, .75) rgba(255, 255, 255, .06) !important; }
  html body #inv-active-job .table-wrapper:not(#iba-no1)::-webkit-scrollbar,
  html body.inventory-mode #wd-reporting .table-wrapper:not(#iba-no1)::-webkit-scrollbar { width: 12px !important; height: 12px !important; display: block !important; background: rgba(255, 255, 255, .06) !important; }
  html body #inv-active-job .table-wrapper:not(#iba-no1)::-webkit-scrollbar-thumb,
  html body.inventory-mode #wd-reporting .table-wrapper:not(#iba-no1)::-webkit-scrollbar-thumb { background: rgba(227, 201, 138, .75) !important; border-radius: 99px; border: 2px solid rgba(12, 24, 40, .8); }
  /* 17.0.5 patch 81: a search box Chrome auto-filled stays dark with white text (Chrome paints it light blue) */
  html body input:is([type="search"], [id*="search" i], [placeholder*="search" i]):is(:-webkit-autofill, :autofill),
  html body input:is([type="search"], [id*="search" i], [placeholder*="search" i]):is(:-webkit-autofill, :autofill):is(:hover, :focus) {
    -webkit-box-shadow: 0 0 0 1000px #13233a inset !important;
    box-shadow: 0 0 0 1000px #13233a inset !important;
    -webkit-text-fill-color: #eef3f8 !important;
    caret-color: #eef3f8 !important;
    transition: background-color 99999s ease 0s !important;
  }
  /* 17.0.5 patch 81: expanded Material Stock item uses the room: all sites (no 240px box), Set beside the qty,
     Movement History latest 10 + "Show all", the table box stretches while an item is open */
  html body #wd-material-stock .ms-glass-scroll.ms-bd-scroll,
  html body #wd-material-stock .ms-glass-scroll.ms-hist-scroll { max-height: none !important; overflow: visible !important; }
  html body #wd-material-stock .ms-bd-qtyline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
  html body #wd-material-stock .ms-bd-qtyline .ms-set-qty-btn { margin: 0 !important; }
  html body #wd-material-stock .ms-glass-panel:not(.ms-hist-showall) tr.ms-hist-old { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #wd-material-stock .ms-hist-all { margin-top: 8px !important; height: 30px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: 99px !important; font-size: 12.5px !important; }
  html body #wd-material-stock .ms-premium-tablewrap.ms-has-open { max-height: none !important; overflow-y: visible !important; }
  html body #wd-material-stock tr.ms-parent-row { scroll-margin-top: 96px; }
  /* 17.0.5 patch 81: Watching table, one fact per column (wide); stacked on a narrow panel / phone */
  #iba-ai-panel .iba-ai-ttab.is-watch2 li > span { min-width: 0; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) .c-vend { font-weight: 700; color: #fff; -webkit-text-fill-color: #fff; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li .c-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li .c-act { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li .c-act .iba-ai-mini { margin: 0 !important; white-space: nowrap; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li.iba-ai-ttab-head { display: none !important; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 10px !important; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) .c-vend { flex: 1 1 45%; }
  #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) .c-act { flex: 1 1 100%; justify-content: flex-start; }
  @container (min-width: 640px) {
    #iba-ai-panel .iba-ai-ttab.is-watch2 li,
    #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) { display: grid !important; flex-wrap: nowrap !important; gap: 10px !important; align-items: center !important; grid-template-columns: 70px minmax(140px, 1.5fr) 80px minmax(100px, 1fr) 100px 130px 230px !important; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li :is(.c-vend, .c-no) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li .c-site { text-align: left !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li .c-st { justify-self: start; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li:not(.iba-ai-ttab-head) .c-act { justify-content: flex-end; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li.iba-ai-ttab-head .c-val { text-align: right; }
    #iba-ai-panel .iba-ai-ttab.is-watch2 li.iba-ai-ttab-head { display: grid !important; }
  }
  /* 17.0.5 patch 81: Undo a merge window */
  html body:not(#iba-no1):not(#iba-no2) #iba-unmerge .iba-pb-box.iba-um-box { width: min(980px, 96vw) !important; max-width: 96vw !important; }
  html body #iba-unmerge .iba-pb-head { display: flex; align-items: center; justify-content: space-between; }
  html body:not(#iba-no1):not(#iba-no2) #iba-unmerge .iba-um-x { background: transparent !important; border: 0 !important; color: inherit !important; font-size: 18px; box-shadow: none !important; cursor: pointer; }
  html body #iba-unmerge .iba-um-scroll { max-height: 60vh; overflow: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; margin-top: 8px; }
  html body #iba-unmerge .iba-um-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  html body #iba-unmerge .iba-um-table th { position: sticky; top: 0; background: rgba(12, 24, 40, .96); color: #E3C98A; text-align: left; padding: 7px 8px; }
  html body #iba-unmerge .iba-um-table td { padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, .08); vertical-align: top; color: #eef3f8; }
  html body #iba-unmerge .iba-um-table tr.is-done td { opacity: .5; }
  html body:not(#iba-no1):not(#iba-no2) #iba-unmerge .iba-um-btn { height: 30px !important; min-height: 0 !important; padding: 0 12px !important; border-radius: 99px !important; border: 1px solid rgba(255, 155, 155, .7) !important; background: rgba(220, 53, 69, .25) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12px !important; white-space: nowrap; cursor: pointer; display: inline-flex !important; align-items: center; gap: 6px; }
  html body #iba-unmerge .iba-um-done { color: #7FE3D6; font-size: 11.5px; white-space: nowrap; }
  html body #iba-unmerge .iba-um-bad { color: #ff9b9b; }
  html body #iba-unmerge .iba-um-ok { color: #7FE3D6; }
  html body #iba-unmerge .iba-um-msg { margin-top: 8px; min-height: 1em; }

  /* 17.0.5 patch 81: phone assistant home - search first, 4 square tiles (2 a row), big sound button */
  html body #iba-ai-panel .iba-aph-hero { position: relative !important; }
  html body #iba-ai-panel .iba-aph-hero .iba-aph-hi { flex: 1 1 auto !important; min-width: 0 !important; padding-right: 50px !important; }
  html body #iba-ai-panel .iba-aph-sound { position: absolute !important; top: 12px !important; right: 12px !important; width: 48px !important; height: 48px !important; border-radius: 14px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; font-size: 20px !important; padding: 0 !important;
    background: rgba(255, 255, 255, 0.10) !important; border: 1px solid rgba(227, 201, 138, 0.35) !important; color: #E3C98A !important; }
  html body #iba-ai-panel .iba-aph-sound.is-muted { color: #ff9b9b !important; border-color: rgba(255, 120, 120, 0.45) !important; background: rgba(255, 90, 90, 0.10) !important; }
  html body #iba-ai-panel .iba-aph-sound:active { transform: scale(.94) !important; }
  @media (min-height: 701px), (max-aspect-ratio: 7/10) {
  html body.iba-phone:not(.iba-phone-cover) #iba-ai-panel .iba-aph-search { padding: 6px 6px 6px 16px !important; min-height: 60px !important; }
  html body.iba-phone:not(.iba-phone-cover) #iba-ai-panel .iba-aph-search > i { font-size: 18px !important; }
  html body.iba-phone:not(.iba-phone-cover) #iba-ai-panel .iba-aph-search input { font-size: 17px !important; padding: 12px 0 !important; }
  html body.iba-phone:not(.iba-phone-cover) #iba-ai-panel .iba-aph-go { flex: 0 0 48px !important; width: 48px !important; height: 48px !important; font-size: 18px !important; background: linear-gradient(135deg, #E3C98A, #B8913F) !important; color: #13233a !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button,
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button[data-aph-mode="inv"] { grid-column: auto !important; aspect-ratio: 1 / 0.86 !important; min-height: 132px !important; width: 100% !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; gap: 6px !important; padding: 14px 10px !important;
    border-radius: 20px !important; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important; color: #EEF3F8 !important; font: inherit !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button > i { width: 54px !important; height: 54px !important; border-radius: 16px !important; font-size: 23px !important; margin: 0 0 4px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; background: var(--c) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28) !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button > b { font-size: 15.5px !important; line-height: 1.2 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button > small { font-size: 12px !important; line-height: 1.25 !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button:active { transform: scale(.96) !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button.is-on { border-color: var(--c) !important; box-shadow: inset 0 0 0 2px var(--c), 0 8px 20px rgba(0, 0, 0, 0.22) !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4 > button.is-on::after { top: 10px !important; right: 12px !important; font-size: 16px !important; }
  /* the phone app header: bigger sound / refresh buttons for fingers */
  html body.iba-phone #iba-phone .iba-ph-head .iba-ph-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; font-size: 18px !important; }
  }

  /* 17.0.5 patch 81: phone brief - the whole row is one big button that opens the details */
  html body #iba-ai-panel button.iba-aph-trow { width: 100% !important; margin: 0 !important; padding: 10px 6px 10px 2px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
    display: flex !important; align-items: center !important; gap: 10px !important; text-align: left !important; font: inherit !important; color: inherit !important; cursor: pointer !important; min-height: 56px !important; border-radius: 12px !important; }
  html body #iba-ai-panel button.iba-aph-trow:active { background: rgba(255, 255, 255, 0.07) !important; }
  html body #iba-ai-panel button.iba-aph-trow .iba-ai-po { flex: 0 0 auto !important; pointer-events: none !important; }
  html body #iba-ai-panel button.iba-aph-trow .iba-ai-grow { flex: 1 1 auto !important; min-width: 0 !important; }
  html body #iba-ai-panel .iba-aph-tgo { flex: 0 0 auto !important; color: #E3C98A !important; font-size: 14px !important; opacity: .85 !important; }
  html body #iba-ai-panel .iba-trk-rcpt.is-aph-detail .iba-ai-typing { margin: 0 16px 12px !important; }
  html body #iba-ai-panel .iba-aph-dt-acts { flex: 0 0 auto !important; margin: 0 !important; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important; border-top: 1px solid #1B2D40 !important; background: #0E1D2D !important; list-style: none !important; }
  html body #iba-ai-panel .iba-aph-dt-acts > li { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  html body #iba-ai-panel .iba-aph-dt-acts .iba-ai-acts { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; width: 100% !important; }
  html body #iba-ai-panel .iba-aph-dt-acts .iba-ai-act { min-height: 48px !important; font-size: 15px !important; justify-content: center !important; width: 100% !important; margin: 0 !important; }

  /* 17.0.5 patch 81: phone Invoice / Inventory pages - bigger search, gold search buttons, bigger cards (PC untouched) */
  @media (min-height: 701px), (max-aspect-ratio: 7/10) {
    html body.iba-phone #iba-phone #iba-ph-rec-term { font-size: 17px !important; min-height: 56px !important; height: 56px !important; }
    html body.iba-phone #iba-phone #inv-mobile-material-search-input { font-size: 17px !important; }
    html body.iba-phone #iba-phone .iba-ph-search-row { min-height: 58px !important; border-radius: 16px !important; }
    html body.iba-phone #iba-phone .iba-ph-search-row > i { font-size: 18px !important; color: #E3C98A !important; }
    html body.iba-phone #iba-phone #iba-ph-rec-status { min-height: 52px !important; height: 52px !important; font-size: 16px !important; border-radius: 14px !important; }
    html body.iba-phone #iba-phone #iba-ph-rec-form .iba-ph-btn.is-primary,
    html body.iba-phone #iba-phone #inv-mobile-material-scan {
      min-height: 52px !important; height: 52px !important; font-size: 16px !important; font-weight: 800 !important; border-radius: 14px !important; border: 1px solid rgba(255, 236, 190, 0.55) !important;
      background: linear-gradient(135deg, #E9CF8F 0%, #C89B45 100%) !important; color: #13233a !important; -webkit-text-fill-color: #13233a !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.30) !important; }
    html body.iba-phone #iba-phone #iba-ph-rec-form .iba-ph-btn.is-primary::before { content: "\f002"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; }
    html body.iba-phone #iba-phone :is(#iba-ph-rec-form .iba-ph-btn.is-primary, #inv-mobile-material-scan) i { color: #13233a !important; -webkit-text-fill-color: #13233a !important; }
    /* 17.0.5 patch 82: border + glow on the box, never on the input itself (its glow showed as 2 lines) */
    html body.iba-phone #iba-phone #wd-inv-mobile-material-finder .inv-mobile-search-box { height: 58px !important; min-height: 58px !important; border-radius: 16px !important; border-color: rgba(227, 201, 138, 0.45) !important; }
    html body.iba-phone #iba-phone #wd-inv-mobile-material-finder .inv-mobile-search-box:focus-within { border-color: #E3C98A !important; box-shadow: 0 0 0 3px rgba(227, 201, 138, 0.18) !important; }
    html body.iba-phone #iba-phone #wd-inv-mobile-material-finder .inv-mobile-search-box i { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-size: 18px !important; }
    html body.iba-phone #iba-phone #inv-mobile-material-search-input,
    html body.iba-phone #iba-phone #inv-mobile-material-search-input:is(:focus, :active, :focus-visible) { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; height: 100% !important; min-height: 0 !important; }
    html body.iba-phone #iba-phone #inv-mobile-material-search-clear { min-height: 52px !important; height: 52px !important; font-size: 16px !important; border-radius: 14px !important; }
    /* item finder suggestions + preview */
    html body.iba-phone #iba-phone .inv-mobile-material-suggestion-item { min-height: 76px !important; padding: 12px !important; gap: 12px !important; border-radius: 16px !important; }
    html body.iba-phone #iba-phone .inv-mobile-material-suggestion-photo { flex: 0 0 52px !important; width: 52px !important; height: 52px !important; }
    html body.iba-phone #iba-phone .inv-mobile-material-suggestion-text strong { font-size: 16.5px !important; line-height: 1.25 !important; }
    html body.iba-phone #iba-phone .inv-mobile-material-suggestion-text small { font-size: 13.5px !important; }
    html body.iba-phone #iba-phone .inv-mobile-material-suggestion-qty { font-size: 16px !important; min-width: 44px !important; padding: 6px 10px !important; text-align: center !important; }
    html body.iba-phone #iba-phone #inv-mobile-material-status { font-size: 14px !important; }
    html body.iba-phone #iba-phone #inv-mobile-material-results strong { font-size: 17px; }
    html body.iba-phone #iba-phone #inv-mobile-material-results :is(p, span, small, td, li) { font-size: 14.5px; }
    /* invoice record cards */
    html body.iba-phone #iba-phone .iba-mob-v2-po-number { font-size: 30px !important; }
    html body.iba-phone #iba-phone .iba-mob-v2-vendor { font-size: 19px !important; }
    html body.iba-phone #iba-phone .iba-mob-v2-metrics :is(strong, b, span:not(.iba-mob-v2-label)) { font-size: 15.5px !important; }
    html body.iba-phone #iba-phone .iba-mob-invoice-number { font-size: 18px !important; }
    html body.iba-phone #iba-phone .iba-mob-invoice-meta, html body.iba-phone #iba-phone .iba-mob-invoice-attention { font-size: 15px !important; }
    html body.iba-phone #iba-phone .iba-mob-status { font-size: 13.5px !important; padding: 5px 11px !important; }
    html body.iba-phone #iba-phone .iba-mob-invoice-item { padding: 14px !important; }
  }

  /* 17.0.5 patch 83: phone assistant = big app icons with one word, no card around them */
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons { gap: 18px 12px !important; padding: 6px 4px !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button,
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button[data-aph-mode="inv"] { aspect-ratio: auto !important; min-height: 0 !important; padding: 4px 0 !important; gap: 8px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button > i { position: relative !important; width: 92px !important; height: 92px !important; border-radius: 26px !important; font-size: 40px !important; margin: 0 !important;
    background: linear-gradient(150deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button > b { font-size: 17px !important; font-weight: 800 !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button > small { display: none !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button:active > i { transform: scale(.92) !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button.is-on { box-shadow: none !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button.is-on > i { outline: 3px solid #fff !important; outline-offset: 3px !important; }
  html body #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button.is-on::after { display: none !important; }
  html body #iba-ai-panel .iba-aph-badge { position: absolute !important; top: -6px !important; right: -6px !important; min-width: 28px !important; height: 28px !important; padding: 0 7px !important; border-radius: 999px !important;
    background: #e5383b !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font: 800 14px/28px system-ui, sans-serif !important; font-style: normal !important; text-align: center !important; border: 2px solid #0B1724 !important; }
  html body #iba-ai-panel .iba-aph-badge[hidden] { display: none !important; }

  /* 17.0.5 patch 83: desktop assistant = big app icons with one short word */
  html body #iba-ai-panel .iba-ai-apps { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; margin: 6px 0 14px !important; }
  html body #iba-ai-panel .iba-ai-apps > button { font-size: 13px !important; gap: 8px !important; }
  html body #iba-ai-panel .iba-ai-apps > button > i,
  html body #iba-ai-panel .iba-ai-apps > .is-hero > i { width: 62px !important; height: 62px !important; border-radius: 18px !important; font-size: 27px !important; outline: 0 !important; }
  html body #iba-ai-panel .iba-ai-apps > .is-c5 > i { background: linear-gradient(145deg, #7C8DA6, #40516B) !important; }
  html body #iba-ai-panel .iba-ai-apps > button:active > i { transform: scale(.93) !important; }

  /* All skills = a grid of app icons; the long description shows on hover (title) */
  html body #iba-ai-skills.is-apps .iba-ai-tiles { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)) !important; gap: 14px 6px !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile-wrap { position: relative !important; min-width: 0 !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile { width: 100% !important; min-height: 0 !important; height: auto !important; padding: 4px 2px !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; gap: 7px !important; text-align: center !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; cursor: pointer !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile > i { width: 58px !important; height: 58px !important; border-radius: 17px !important; margin: 0 !important; font-size: 25px !important;
    display: grid !important; place-items: center !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
    background: linear-gradient(150deg, color-mix(in srgb, var(--c) 75%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 72%, #000) 100%) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important; transition: transform .15s ease !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile:hover > i, html body #iba-ai-skills.is-apps .iba-ai-tile:focus-visible > i { transform: translateY(-2px) !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile:active > i { transform: scale(.93) !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile > b { font-size: 12.5px !important; line-height: 1.2 !important; font-weight: 700 !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important;
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; max-width: 100% !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile > small { display: none !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile-admin { position: absolute !important; top: 0 !important; left: calc(50% + 20px) !important; right: auto !important; width: 20px !important; height: 20px !important; border-radius: 50% !important;
    display: grid !important; place-items: center !important; font-size: 10px !important; background: #0B1724 !important; color: #E3C98A !important; border: 1px solid rgba(227, 201, 138, .5) !important; pointer-events: none !important; }
  html body #iba-ai-skills.is-apps .iba-ai-tile-del { position: absolute !important; top: -2px !important; left: calc(50% + 18px) !important; right: auto !important; width: 22px !important; height: 22px !important; border-radius: 50% !important; padding: 0 !important; }
  html body #iba-ai-skills.is-apps .iba-ai-skill-group { margin-bottom: 10px !important; }
  html body #iba-ai-panel .iba-aph-hero .iba-aph-hi small { display: none !important; }

  /* 17.0.5 patch 86: undo a merge - name / unit for a card deleted after an old merge */
  html body #iba-unmerge .iba-um-names { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(227, 201, 138, .08); border: 1px solid rgba(227, 201, 138, .35); }
  html body #iba-unmerge .iba-um-names p { margin: 0 0 8px; color: #EBD8A8; }
  html body #iba-unmerge .iba-um-namerow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 8px; align-items: center; margin-top: 6px; }
  html body #iba-unmerge .iba-um-namerow input { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: #0E1D2D; color: #EEF3F8; -webkit-text-fill-color: #EEF3F8; font-size: 14px; min-width: 0; }
  html body #iba-unmerge .iba-um-namerow input:focus { outline: 0; border-color: #E3C98A; }
  /* 17.0.5 patch 87 */
  html body #wd-material-stock td.ms-hist-qty small.ms-hist-qnote, html body td.ms-hist-qty small.ms-hist-qnote { display: block !important; font-size: 10.5px !important; font-weight: 700 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; opacity: 1 !important; white-space: nowrap !important; }
  /* 17.0.5 patch 88: Material Stock = At sites | In transit | Total (9 columns) */
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(1), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(1) { width: 4% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(2), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(2) { width: 11% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(3), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(3) { width: 22% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(4), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(4) { width: 12% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(5), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(5) { width: 14% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(6), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(6) { width: 7% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(7), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(7) { width: 7% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(8), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(8) { width: 7% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(9), html body #wd-material-stock #ms-table > tbody > tr.ms-parent-row > td:nth-child(9) { width: 16% !important; }
  html body #wd-material-stock #ms-table > thead > tr > th:nth-child(n+6):nth-child(-n+8) { text-align: right !important; white-space: nowrap !important; }
  html body #wd-material-stock #ms-table td:is(.ms-cell-transit, .ms-cell-total) { text-align: right !important; white-space: nowrap !important; font-variant-numeric: tabular-nums; }
  html body #wd-material-stock #ms-table td.ms-cell-stock { text-align: right !important; }
  html body #wd-material-stock #ms-table .ms-transit-pill { display: inline-flex !important; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: 13px;
    background: rgba(227, 201, 138, .14) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; border: 1px solid rgba(227, 201, 138, .45); cursor: help; }
  html body #wd-material-stock #ms-table .ms-transit-pill i { font-size: 11px; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  html body #wd-material-stock #ms-table .ms-transit-none { color: #6E8296 !important; -webkit-text-fill-color: #6E8296 !important; }
  html body #wd-material-stock #ms-table .ms-total-num { font-weight: 800; font-size: 15px; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

  /* 17.0.5 patch 93: Returned bell (js/iba-1705-ret.js) */
  body.iba-shell-on #iba-live-counts .iba-live-pill.iba-ret-pill { --live-c: #FFC970; --live-glow: rgba(255, 201, 112, .5); }
  body.iba-shell-on #iba-live-counts .iba-live-pill.iba-ret-pill .iba-live-num { background: #E5484D !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  #iba-live-counts .iba-ret-pill .iba-ret-ico { position: relative; display: inline-flex; }
  #iba-live-counts .iba-ret-pill .iba-ret-ico .fa-reply { position: absolute; right: -7px; bottom: -4px; font-size: 9px; }
  body:not(.iba-shell-on) #iba-ret-pill, body:is(.iba-mobile-ui, .iba-phone) #iba-ret-pill { display: none !important; }
  #iba-ret-pop .iba-watch-box { width: min(600px, 100%); }
  #iba-ret-pop .iba-pb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  #iba-ret-pop .iba-ret-head-acts { display: inline-flex; align-items: center; gap: 8px; }
  #iba-ret-pop .iba-watch-x { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: transparent !important; color: #EEF3F8 !important; cursor: pointer !important; }
  #iba-ret-pop .iba-watch-item { margin: 12px 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
  #iba-ret-pop .iba-watch-item:last-child { border-bottom: 0; }
  #iba-ret-pop .iba-watch-po { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
  #iba-ret-pop .iba-watch-po .is-no { font: 700 20px/1.1 ui-monospace, 'JetBrains Mono', Consolas, monospace; color: #fff; }
  #iba-ret-pop .iba-watch-po .is-vend { color: #E3C98A; font-weight: 700; }
  #iba-ret-pop .iba-watch-po .is-site { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(127, 227, 214, .15); color: #7FE3D6; }
  #iba-ret-pop .iba-watch-line { color: #EBD8A8; }
  #iba-ret-pop .iba-ret-move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #D6E0EA; }
  #iba-ret-pop .iba-ret-move .is-from { opacity: .75; }
  #iba-ret-pop .iba-ret-move .is-now { padding: 2px 10px; border-radius: 999px; background: rgba(255, 201, 112, .18); color: #FFC970; }
  #iba-ret-pop .is-ok .iba-ret-move .is-now { background: rgba(80, 200, 140, .2); color: #8BE3B5; }
  #iba-ret-pop .is-bad .iba-ret-move .is-now { background: rgba(229, 72, 77, .2); color: #FF9EA1; }
  #iba-ret-pop .iba-ret-move .is-by { font-weight: 700; color: #fff; }
  #iba-ret-pop .iba-ret-move .is-ago { font-size: 12px; opacity: .7; }
  #iba-ret-pop .iba-watch-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  #iba-ret-pop .iba-trk-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; min-height: 44px !important; padding: 0 16px !important; border-radius: 12px !important; border: 1px solid rgba(159, 179, 194, .4) !important; background: transparent !important; color: #EEF3F8 !important; font: inherit !important; font-weight: 700 !important; cursor: pointer !important; }
  #iba-ret-pop .iba-trk-btn.is-main { border-color: rgba(127, 227, 214, .75) !important; background: rgba(127, 227, 214, .18) !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; }
  #iba-ret-pop .iba-trk-btn:hover, #iba-ret-pop .iba-trk-btn:focus-visible { filter: brightness(1.15) !important; outline: none !important; }
  label.iba-ret-tick { display: flex !important; align-items: center; gap: 6px; margin: 6px 0 0 !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
  label.iba-ret-tick[hidden] { display: none !important; }
  label.iba-ret-tick input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: #0d7e85; }
  .batch-invoice-card button.iba-ret-card { height: 20px !important; min-width: 24px !important; padding: 0 6px !important; font-size: 10px !important; line-height: 20px !important; border-radius: 4px !important; border: 1px solid rgba(255, 255, 255, .6) !important; background: transparent !important; color: #fff !important; -webkit-text-fill-color: #fff !important; cursor: pointer !important; }
  .batch-invoice-card button.iba-ret-card.is-on { background: #FFC970 !important; border-color: #FFC970 !important; color: #14293f !important; -webkit-text-fill-color: #14293f !important; }
  /* 17.0.5 patch 150: ⚡ Urgent tick */
  label.iba-urg-tick input { accent-color: #E5484D !important; }
  .batch-invoice-card button.iba-urg-card { height: 20px !important; min-width: 24px !important; padding: 0 5px !important; margin-left: 4px !important; font-size: 11px !important; line-height: 18px !important; border-radius: 4px !important; border: 1px solid rgba(255, 255, 255, .6) !important; background: transparent !important; color: #fff !important; -webkit-text-fill-color: #fff !important; cursor: pointer !important; filter: grayscale(1) brightness(1.4); }
  .batch-invoice-card button.iba-urg-card.is-on { background: #E5484D !important; border-color: #E5484D !important; filter: none; }
  .batch-invoice-card button.iba-urg-card[hidden] { display: none !important; }

  /* 17.0.5 p95: tracking PO card - PO + PO value left, SITE big coloured number + name right, vendor below */
  #iba-ai-panel .iba-trk-pc { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 10px 16px !important; align-items: start !important; }
  #iba-ai-panel :is(.iba-trk-pc-l, .iba-trk-pc-r) { display: flex !important; flex-direction: column !important; gap: 3px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-trk-pc-r { align-items: flex-end !important; text-align: right !important; max-width: 220px !important; }
  #iba-ai-panel .iba-trk-pc-site { font-family: var(--t-mono) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  body.iba-phone #iba-ai-panel .iba-trk-pc-site { font-size: 27px !important; }
  #iba-ai-panel .iba-trk-pc-sname { font-size: 12px !important; line-height: 1.3 !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-pc-val { font-size: 13px !important; font-weight: 600 !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-pc-val b { font-size: 15px !important; color: var(--t-text) !important; -webkit-text-fill-color: var(--t-text) !important; }
  #iba-ai-panel .iba-trk-pc-ven { display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 4px 10px !important; margin-top: 6px !important; }
  #iba-ai-panel .iba-trk-pc-yr { font-size: 12px !important; color: var(--t-muted) !important; -webkit-text-fill-color: var(--t-muted) !important; }
  #iba-ai-panel .iba-trk-to { font-weight: 700 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

  /* 17.0.5 p97: phone brief + Watching = colour cards; tap = detail in the agreed order */
  #iba-ai-panel .iba-aph-tcard { --tc-bg: #16213A; --tc-line: #34466F; --tc-c: #9DB8FF; --tc-sub: #C9D6F5; }
  #iba-ai-panel .iba-aph-tcard.is-apv, #iba-ai-panel .iba-aph-d.is-apv { --tc-bg: #2A2213; --tc-line: #6B5524; --tc-c: #FFC970; --tc-sub: #EBD8A8; }
  #iba-ai-panel .iba-aph-tcard.is-srv, #iba-ai-panel .iba-aph-d.is-srv { --tc-bg: #0F2A2C; --tc-line: #1F5F60; --tc-c: #7FE3D6; --tc-sub: #B5F0E8; }
  #iba-ai-panel .iba-aph-tcard.is-acc, #iba-ai-panel .iba-aph-d.is-acc { --tc-bg: #142A44; --tc-line: #3A5F8C; --tc-c: #9DC4FF; --tc-sub: #C9D6F5; }
  #iba-ai-panel .iba-aph-tcard.is-paid, #iba-ai-panel .iba-aph-d.is-paid { --tc-bg: #12291C; --tc-line: #2F6B48; --tc-c: #8BE3B5; --tc-sub: #BFEFD3; }
  #iba-ai-panel .iba-aph-d { --tc-bg: #16213A; --tc-line: #34466F; --tc-c: #9DB8FF; --tc-sub: #C9D6F5; }
  #iba-ai-panel .iba-aph-tasks.is-cards { display: flex !important; flex-direction: column !important; gap: 12px !important; padding: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel ul.iba-aph-tasks.is-cards > li { display: block !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel ul.iba-aph-tasks.is-cards > li.is-urgent > .iba-aph-tcard { border-left: 4px solid #ef4444 !important; }
  #iba-ai-panel .iba-aph-tasks.is-cards > li[hidden] { display: none !important; }
  #iba-ai-panel .iba-aph-tcard { display: flex !important; flex-direction: column !important; gap: 10px !important; width: 100% !important; box-sizing: border-box !important; padding: 16px 18px !important; border-radius: 18px !important;
    background: var(--tc-bg) !important; border: 1px solid var(--tc-line) !important; box-shadow: 0 8px 20px rgba(0,0,0,.3) !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; text-align: left !important; font: inherit !important; cursor: pointer; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-ai-panel .iba-aph-tc-open { all: unset; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; gap: 10px !important; cursor: pointer; }
  #iba-ai-panel :is(.iba-aph-tc-head, .iba-aph-tc-mid, .iba-aph-tc-foot) { display: flex !important; justify-content: space-between !important; gap: 10px !important; width: 100% !important; }
  #iba-ai-panel .iba-aph-tc-head { align-items: center !important; }
  #iba-ai-panel .iba-aph-tc-st { font-size: 12px !important; font-weight: 800 !important; letter-spacing: .08em !important; color: var(--tc-c) !important; -webkit-text-fill-color: var(--tc-c) !important; }
  #iba-ai-panel .iba-aph-tc-age { font-size: 12px !important; color: var(--tc-sub) !important; -webkit-text-fill-color: var(--tc-sub) !important; white-space: nowrap !important; }
  #iba-ai-panel .iba-aph-tc-age.is-late { color: #FF9EA1 !important; -webkit-text-fill-color: #FF9EA1 !important; font-weight: 700 !important; }
  #iba-ai-panel .iba-aph-tc-mid { align-items: flex-end !important; }
  #iba-ai-panel .iba-aph-tc-l { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-aph-tc-po { font-family: var(--t-mono, monospace) !important; font-size: 28px !important; font-weight: 800 !important; line-height: 1.1 !important; letter-spacing: .02em !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-aph-tc-ven { font-size: 15px !important; font-weight: 700 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-aph-tc-amt { display: flex !important; flex-direction: column !important; align-items: flex-end !important; flex: 0 0 auto !important; }
  #iba-ai-panel .iba-aph-tc-amt small { font-size: 11px !important; color: var(--tc-sub) !important; -webkit-text-fill-color: var(--tc-sub) !important; }
  #iba-ai-panel .iba-aph-tc-amt b { font-size: 22px !important; font-weight: 800 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-aph-tc-foot { font-size: 12px !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  #iba-ai-panel .iba-aph-tc-btns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #iba-ai-panel .iba-aph-tc-btns.is-one { grid-template-columns: 1fr !important; }
  #iba-ai-panel .iba-aph-tc-btns > button { min-height: 46px !important; border-radius: 12px !important; justify-content: center !important; font-weight: 800 !important; font-size: 14px !important; }
  #iba-ai-panel .iba-aph-tc-btns > button.is-main { border-color: #7FE3D6 !important; background: rgba(127,227,214,.16) !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; }

  #iba-ai-panel .iba-aph-d { --c: var(--tc-c); display: flex !important; flex-direction: column !important; gap: 16px !important; padding: 4px 2px 24px !important; }
  #iba-ai-panel .iba-aph-d .iba-trk-pc-site { font-size: 30px !important; }
  #iba-ai-panel .iba-aph-d .iba-trk-pono { font-size: 30px !important; }
  #iba-ai-panel .iba-aph-now { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 16px !important; padding: 18px !important; border-radius: 20px !important; background: var(--tc-bg) !important; border: 1px solid var(--tc-line) !important; }
  #iba-ai-panel .iba-aph-f { display: flex !important; flex-direction: column !important; gap: 3px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-aph-f.is-full { grid-column: 1 / -1 !important; }
  #iba-ai-panel .iba-aph-f > span { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  #iba-ai-panel .iba-aph-f > b { font-size: 15px !important; font-weight: 700 !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-aph-f.is-title > span { color: var(--tc-c) !important; -webkit-text-fill-color: var(--tc-c) !important; font-weight: 800 !important; }
  #iba-ai-panel .iba-aph-f.is-title > b { font-size: 24px !important; line-height: 1.15 !important; }
  #iba-ai-panel .iba-aph-f.is-amt > b { font-size: 38px !important; line-height: 1 !important; font-weight: 800 !important; }
  #iba-ai-panel .iba-aph-next { display: flex !important; gap: 12px !important; align-items: flex-start !important; padding: 14px 16px !important; border-radius: 14px !important; background: #10283A !important; border: 1px solid #2C5878 !important; }
  #iba-ai-panel .iba-aph-next-ic { flex: 0 0 auto !important; width: 28px !important; height: 28px !important; border-radius: 50% !important; background: #7FE3D6 !important; color: #0B1622 !important; -webkit-text-fill-color: #0B1622 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-weight: 800 !important; }
  #iba-ai-panel .iba-aph-next > div { display: flex !important; flex-direction: column !important; gap: 2px !important; }
  #iba-ai-panel .iba-aph-next b { font-size: 15px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  #iba-ai-panel .iba-aph-next span { font-size: 14px !important; line-height: 1.45 !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts { padding: 0 !important; margin: 0 !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts > li { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts .iba-ai-acts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; width: 100% !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts .iba-ai-act { min-height: 48px !important; border-radius: 12px !important; justify-content: center !important; font-size: 14px !important; font-weight: 700 !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts .iba-ai-act:is(.is-approve, .is-reject) { min-height: 56px !important; border-radius: 14px !important; font-size: 18px !important; font-weight: 800 !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts .iba-ai-act.is-approve { background: #3FAE7A !important; border-color: #3FAE7A !important; color: #06180F !important; -webkit-text-fill-color: #06180F !important; }
  #iba-ai-panel .iba-aph-d .iba-aph-dt-acts .iba-ai-act.is-reject { background: transparent !important; border: 1px solid #E5484D !important; color: #FF9EA1 !important; -webkit-text-fill-color: #FF9EA1 !important; }
  #iba-ai-panel .iba-aph-links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #iba-ai-panel .iba-aph-links > a { min-height: 48px !important; justify-content: center !important; }
  #iba-ai-panel .iba-aph-small { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 16px !important; padding: 4px !important; }
  #iba-ai-panel .iba-aph-small .iba-aph-f > b { font-size: 14px !important; }
  #iba-ai-panel .iba-aph-hist { padding: 16px !important; border-radius: 16px !important; background: #111E2B !important; }
  #iba-ai-panel .iba-aph-hist .iba-trk-r-hist > li { display: flex !important; gap: 10px !important; font-size: 13px !important; }
  #iba-ai-panel .iba-aph-hist .iba-trk-r-hist > li > b { flex: 0 0 auto !important; min-width: 64px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

  /* 17.0.5 p98: phone PO card 2 x 2 (PO | SITE / VENDOR | PO VALUE) */
  #iba-ai-panel .iba-trk-pm { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 14px 16px !important; align-items: start !important; }
  #iba-ai-panel .iba-trk-pm-c { display: flex !important; flex-direction: column !important; gap: 3px !important; min-width: 0 !important; }
  #iba-ai-panel .iba-trk-pm-c.is-r { align-items: flex-end !important; text-align: right !important; }
  #iba-ai-panel .iba-trk-pm-c > b { font-size: 16px !important; font-weight: 800 !important; line-height: 1.25 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; overflow-wrap: anywhere !important; }
  #iba-ai-panel .iba-trk-pm-c.is-po > b { font-family: var(--t-mono, monospace) !important; font-size: 28px !important; line-height: 1.1 !important; letter-spacing: .02em !important; color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; white-space: nowrap !important; }
  #iba-ai-panel .iba-trk-pm-c.is-site > b { font-family: var(--t-mono, monospace) !important; font-size: 28px !important; line-height: 1.1 !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  #iba-ai-panel .iba-trk-pm-c.is-site > small { font-size: 12px !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; }
  #iba-ai-panel .iba-trk-pm-c.is-val > b { font-size: 18px !important; }
  #iba-ai-panel .iba-trk-pm-c.is-ven > b { font-size: 15px !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }

  /* 17.0.5 p99: Month to Payments pop-up */
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-box { width: min(880px, 100%) !important; display: flex !important; flex-direction: column !important; max-height: min(86vh, 900px) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pb-head { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-watch-x { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: transparent !important; color: #EEF3F8 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-hint { margin: 10px 18px 0 !important; font-size: 13px !important; line-height: 1.45 !important; color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-pick { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; margin: 12px 18px 0 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-pick label { display: flex !important; flex-direction: column !important; gap: 4px !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: #9FB3C2 !important; text-transform: uppercase !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-pick select { min-width: 130px !important; height: 40px !important; padding: 0 10px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .18) !important; background: #0F1D2B !important; color: #EEF3F8 !important; font: inherit !important; font-size: 15px !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-out { margin: 12px 18px 0 !important; min-height: 60px !important; overflow: auto !important; flex: 1 1 auto !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-sum { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; margin-bottom: 10px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-sum > div { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 10px 12px !important; border-radius: 12px !important; background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .1) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-sum b { font-size: 22px !important; color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-sum .is-amt b { color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-sum span { font-size: 12px !important; color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-list table { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-list th { position: sticky !important; top: 0 !important; background: #12263A !important; text-align: left !important; font-size: 11px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #9FB3C2 !important; padding: 7px 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-list td { padding: 7px 8px !important; border-top: 1px solid rgba(255, 255, 255, .07) !important; color: #EEF3F8 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-list td:nth-child(4) { color: #E3C98A !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-list :is(th, td).is-n { text-align: right !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-note { margin: 8px 0 0 !important; font-size: 12.5px !important; color: #EBD8A8 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-empty { margin: 10px 0 !important; font-size: 14px !important; color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-acts { display: flex !important; justify-content: flex-end !important; gap: 10px !important; padding: 14px 18px 16px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-acts button[disabled] { opacity: .5 !important; cursor: not-allowed !important; }

  /* 17.0.5 p101: Finance payments hint (receipt / phone detail / Month to Payments) */
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-box { display: flex !important; flex-direction: column !important; gap: 8px !important; padding: 14px 16px !important; border-radius: 14px !important; background: rgba(79, 209, 197, .08) !important; border: 1px solid rgba(79, 209, 197, .35) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-box p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.4 !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-box .iba-fin-hit { color: #8BE3B5 !important; -webkit-text-fill-color: #8BE3B5 !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-box .iba-fin-hit b { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-list li { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; gap: 10px !important; font-size: 12.5px !important; padding: 5px 0 !important; border-top: 1px solid rgba(255, 255, 255, .07) !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-list li b { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; text-align: right !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-list li em { font-style: normal !important; color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-box .iba-fin-foot { font-size: 11.5px !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-fin { white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-fin .is-hit { color: #8BE3B5 !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-fin small { display: block !important; font-size: 11px !important; color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-pd.is-fin { color: #8BE3B5 !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-finbar { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 0 10px !important; font-size: 13px !important; color: #EEF3F8 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-pm-pop .iba-pm-finbar input { width: 18px !important; height: 18px !important; accent-color: #4FD1C5 !important; }

  /* 17.0.5 p102: PO-level Finance sheet */
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-trk-pc-fin { display: flex !important; justify-content: flex-end !important; margin-top: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; min-height: 34px !important; padding: 0 14px !important; border-radius: 99px !important; border: 1px solid rgba(79, 209, 197, .45) !important; background: rgba(79, 209, 197, .12) !important; color: #B5F0E8 !important; -webkit-text-fill-color: #B5F0E8 !important; font: inherit !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-btn[aria-expanded="true"] { background: rgba(79, 209, 197, .28) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-sheet { display: flex !important; flex-direction: column !important; gap: 10px !important; margin: 8px 0 12px !important; padding: 14px !important; border-radius: 14px !important; background: rgba(79, 209, 197, .07) !important; border: 1px solid rgba(79, 209, 197, .3) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-sheet[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-sheet p { margin: 0 !important; font-size: 13.5px !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel.is-wide .iba-fin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles > div { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 8px 10px !important; border-radius: 10px !important; background: rgba(255, 255, 255, .05) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles span { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles b { font-size: 15px !important; font-weight: 800 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles .is-ok b { color: #8BE3B5 !important; -webkit-text-fill-color: #8BE3B5 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tiles .is-warn b { color: #FFC970 !important; -webkit-text-fill-color: #FFC970 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl { overflow-x: auto !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl table { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl th { text-align: left !important; font-size: 10.5px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; padding: 5px 6px !important; background: transparent !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl td { padding: 6px !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl td em { font-style: normal !important; color: #FFC970 !important; -webkit-text-fill-color: #FFC970 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-tbl .is-n { text-align: right !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-fin-sheet .iba-fin-foot { font-size: 11.5px !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel:not(.is-wide) .iba-fin-tbl table { font-size: 11.5px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel:not(.is-wide) .iba-fin-tbl :is(th, td) { padding: 5px 3px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel:not(.is-wide) .iba-fin-tbl th { font-size: 9.5px !important; letter-spacing: .03em !important; }

  /* 17.0.5 p108: Sort for CEO signal cards */
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles { display: flex !important; gap: 8px !important; margin: 4px 0 10px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles > div { flex: 1 1 0 !important; padding: 8px 10px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.12) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles b { display: block !important; font-size: 22px !important; line-height: 1.1 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles span { font-size: 11px !important; letter-spacing: .05em !important; text-transform: uppercase !important; opacity: .85 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-go { background: rgba(34,197,94,.14) !important; border-color: rgba(34,197,94,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-go b { color: #4ade80 !important; -webkit-text-fill-color: #4ade80 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-stop { background: rgba(239,68,68,.14) !important; border-color: rgba(239,68,68,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-stop b { color: #f87171 !important; -webkit-text-fill-color: #f87171 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-none b { color: #cbd5e1 !important; -webkit-text-fill-color: #cbd5e1 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-list { display: grid !important; gap: 8px !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c { padding: 10px 12px !important; border-radius: 12px !important; border: 1px solid rgba(255,255,255,.12) !important; border-left-width: 5px !important; background: rgba(255,255,255,.04) !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-go { border-left-color: #22c55e !important; background: rgba(34,197,94,.08) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-stop { border-left-color: #ef4444 !important; background: rgba(239,68,68,.09) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-sig { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 3px 10px !important; border-radius: 99px !important; font-size: 11.5px !important; font-weight: 800 !important; letter-spacing: .02em !important; margin-bottom: 6px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-go .iba-cs-sig { background: #16a34a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-stop .iba-cs-sig { background: #dc2626 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-top { display: flex !important; align-items: baseline !important; gap: 8px !important; flex-wrap: wrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-po { font-family: ui-monospace, Consolas, monospace !important; font-weight: 800 !important; font-size: 15px !important; color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-site { font-size: 11.5px !important; font-weight: 700 !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-ven { font-weight: 700 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; margin: 2px 0 6px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-why { font-size: 12px !important; font-weight: 700 !important; color: #fca5a5 !important; -webkit-text-fill-color: #fca5a5 !important; margin: 0 0 6px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-lbl { font-size: 10.5px !important; letter-spacing: .06em !important; text-transform: uppercase !important; opacity: .7 !important; margin: 6px 0 2px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c .iba-cs-inv { white-space: normal !important; font-size: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c-acts { margin-top: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c .iba-cs-mv { padding: 4px 10px !important; font-size: 11.5px !important; min-height: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-ai-cardacts .iba-ai-btn.iba-cs-send:not(:disabled) { background-image: none !important; box-shadow: none !important;  background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }

  /* 17.0.5 p109: traffic light on each Sort for CEO card (top = red, middle = amber, bottom = green) */
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c { position: relative !important; padding-right: 48px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl { position: absolute !important; top: 10px !important; right: 10px !important; display: flex !important; flex-direction: column !important; gap: 4px !important; padding: 5px 4px !important; border-radius: 9px !important; background: #0b0f14 !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl i { display: block !important; width: 16px !important; height: 16px !important; border-radius: 50% !important; background: #2a2f36 !important; opacity: .55 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-stop i:nth-child(1) { background: #ef4444 !important; opacity: 1 !important; box-shadow: 0 0 10px 3px rgba(239,68,68,.75) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-go i:nth-child(3) { background: #22c55e !important; opacity: 1 !important; box-shadow: 0 0 10px 3px rgba(34,197,94,.75) !important; }

  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-urg { border-left-color: #f59e0b !important; background: rgba(245,158,11,.09) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-urg .iba-cs-sig { background: #d97706 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-urg .iba-cs-c-why { color: #fcd34d !important; -webkit-text-fill-color: #fcd34d !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-urg i:nth-child(2) { background: #f59e0b !important; opacity: 1 !important; box-shadow: 0 0 10px 3px rgba(245,158,11,.75) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-urg { background: rgba(245,158,11,.14) !important; border-color: rgba(245,158,11,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tiles .is-urg b { color: #fbbf24 !important; -webkit-text-fill-color: #fbbf24 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-c.is-urg .iba-cs-urg { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2) label.iba-ret-tick.is-in-note { margin: 0 !important; }

  /* 17.0.5 p111: Sort for CEO slim rows + folding groups */
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-list { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g { border-radius: 12px !important; border: 1px solid rgba(255,255,255,.12) !important; border-left-width: 5px !important; overflow: hidden !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-stop { border-left-color: #ef4444 !important; background: rgba(239,68,68,.07) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-urg { border-left-color: #f59e0b !important; background: rgba(245,158,11,.07) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-go { border-left-color: #22c55e !important; background: rgba(34,197,94,.06) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g > summary { display: flex !important; align-items: center !important; gap: 8px !important; padding: 8px 12px !important; cursor: pointer !important; list-style: none !important; font-size: 13px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g > summary::-webkit-details-marker { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g > summary::after { content: "\25B8" !important; margin-left: auto !important; opacity: .7 !important; transition: transform .15s !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g[open] > summary::after { transform: rotate(90deg) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-stop > summary b { color: #fca5a5 !important; -webkit-text-fill-color: #fca5a5 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-urg > summary b { color: #fcd34d !important; -webkit-text-fill-color: #fcd34d !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g.is-go > summary b { color: #86efac !important; -webkit-text-fill-color: #86efac !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-g-n { padding: 0 8px !important; border-radius: 99px !important; font-size: 11px !important; font-weight: 800 !important; background: rgba(255,255,255,.12) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r { padding: 7px 12px !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-main { display: flex !important; align-items: center !important; gap: 6px 12px !important; flex-wrap: wrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-id { display: flex !important; align-items: baseline !important; gap: 6px !important; min-width: 120px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-ven { font-weight: 700 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; min-width: 140px !important; flex: 1 1 160px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-inv { flex: 2 1 240px !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-inv .iba-cs-inv { white-space: normal !important; font-size: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-act { margin-left: auto !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r .iba-cs-mv { padding: 3px 10px !important; font-size: 11.5px !important; min-height: 0 !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-sub { display: flex !important; align-items: flex-start !important; gap: 4px 12px !important; flex-wrap: wrap !important; margin: 4px 0 0 30px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r-sub .iba-cs-c-why { margin: 0 !important; font-size: 11.5px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r.is-stop .iba-cs-c-why { color: #fca5a5 !important; -webkit-text-fill-color: #fca5a5 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-r.is-urg .iba-cs-c-why { color: #fcd34d !important; -webkit-text-fill-color: #fcd34d !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-more { flex-basis: 100% !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-more > summary { cursor: pointer !important; font-size: 11.5px !important; font-weight: 700 !important; color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-more[open] > summary { margin-bottom: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-more .iba-cs-inv { white-space: normal !important; font-size: 12px !important; padding-left: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-row { position: static !important; flex-direction: row !important; gap: 3px !important; padding: 3px 4px !important; border-radius: 99px !important; flex: none !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-row i { width: 9px !important; height: 9px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-ai-panel .iba-cs-tl.is-urg i:nth-child(2) { background: #f59e0b !important; opacity: 1 !important; box-shadow: 0 0 8px 2px rgba(245,158,11,.75) !important; }
  /* 17.0.5 patch 115: Job Records Original PO "Put back in file" */
  html body:not(#iba-no1):not(#iba-no2) #job-records-table .iba-opo-file { display: inline-flex !important; align-items: center !important; gap: 5px !important; margin: 0 0 0 6px !important; padding: 2px 9px !important; min-height: 0 !important; height: auto !important; width: auto !important; border-radius: 999px !important; border: 1px solid rgba(127,227,214,.6) !important; background: rgba(13,126,133,.22) !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; font-size: 11px !important; font-weight: 700 !important; white-space: nowrap !important; vertical-align: middle !important; cursor: pointer !important; box-shadow: none !important; }
  html body:not(#iba-no1):not(#iba-no2) #job-records-table .iba-opo-file:hover { background: rgba(13,126,133,.4) !important; }
  html body:not(#iba-no1):not(#iba-no2) #job-records-table .iba-opo-file i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body:not(#iba-no1):not(#iba-no2) #job-records-table .iba-opo-file:disabled { opacity: .5 !important; cursor: wait !important; }
  /* 17.0.5 patch 116: pull-out list "Given to" */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull input.iba-pull-to { width: 130px !important; height: 30px !important; padding: 0 8px !important; border-radius: 8px !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.22) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull input.iba-pull-to::placeholder { color: rgba(255,255,255,.4) !important; -webkit-text-fill-color: rgba(255,255,255,.4) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-pull input.iba-pull-to.is-bad { border-color: #F87171 !important; }
  /* 17.0.5 patch 116: Invoice Entry top (search group + PO strip) and Active jobs list (js/iba-1705-ieui.js) */
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp { display: inline-flex !important; align-items: stretch !important; gap: 0 !important; height: 40px !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; overflow: hidden !important; background: rgba(19,32,54,.55) !important; flex: none !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp > button { display: inline-flex !important; align-items: center !important; gap: 7px !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 15px !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.12) !important; border-radius: 0 !important; background: transparent !important; background-image: none !important; box-shadow: none !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 13.5px !important; font-weight: 700 !important; width: auto !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp > button:last-child { border-right: 0 !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp > #im-po-search-button { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp > button:hover { background: rgba(255,255,255,.08) !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-po-search-container .iba-ie-grp > button i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details { padding: 10px 6px !important; border-radius: 14px !important; background: rgba(14,23,40,.5) !important; border: 1px solid rgba(255,255,255,.16) !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-fact { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; padding: 0 18px !important; border-right: 1px solid rgba(255,255,255,.1) !important; min-width: 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-fact:nth-child(4) { border-right: 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid .iba-ie-lab { font-size: 10px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #8FA3B8 !important; -webkit-text-fill-color: #8FA3B8 !important; line-height: 1.2 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details :is(.im-po-no, .im-po-site, .im-po-value, .im-po-vendor) { font-size: 15px !important; font-weight: 800 !important; line-height: 1.25 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .im-po-no { color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; font-family: ui-monospace, Consolas, monospace !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .im-po-site { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .im-po-vendor { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-rec { margin-left: auto !important; padding: 0 12px !important; display: inline-flex !important; align-items: center !important; gap: 10px !important; border: 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-rec::before { content: none !important; display: none !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-rec .im-po-record { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 32px !important; padding: 0 12px !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.16) !important; background: rgba(19,32,54,.55) !important; font-size: 13px !important; font-weight: 700 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-rec .im-po-record-status-found { color: #86EFAC !important; -webkit-text-fill-color: #86EFAC !important; border-color: rgba(134,239,172,.45) !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-modal-po-details .po-compact-grid > .iba-ie-rec #im-po-collect-btn#im-po-collect-btn { height: 32px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.16) !important; background: rgba(19,32,54,.55) !important; font-size: 13px !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.im-sidebar-item.iba-ie-job { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; row-gap: 3px !important; column-gap: 6px !important; align-items: center !important; padding: 8px 8px 8px 10px !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; border-left: 3px solid #F87171 !important; border-radius: 0 !important; background: transparent !important; cursor: pointer !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.im-sidebar-item.iba-ie-job[style*="display: none"] { display: none !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.im-sidebar-item.iba-ie-job:hover { background: rgba(255,255,255,.08) !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-po { display: inline-flex !important; align-items: center !important; gap: 4px !important; min-width: 0 !important; overflow: hidden !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-po b { font-family: ui-monospace, Consolas, monospace !important; font-size: 13px !important; font-weight: 800 !important; color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; text-shadow: none !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-po i { flex: none !important; font-style: normal !important; font-size: 9.5px !important; font-weight: 800 !important; line-height: 15px !important; padding: 0 4px !important; border-radius: 5px !important; background: rgba(255,255,255,.1) !important; color: #CBD5E1 !important; -webkit-text-fill-color: #CBD5E1 !important; text-shadow: none !important; border: 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-po i.is-new { background: rgba(248,113,113,.18) !important; color: #FCA5A5 !important; -webkit-text-fill-color: #FCA5A5 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-po i.iba-ie-j-gr { background: rgba(134,239,172,.16) !important; color: #86EFAC !important; -webkit-text-fill-color: #86EFAC !important; min-width: 15px !important; text-align: center !important; padding: 0 3px !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-val { text-align: right !important; font-size: 13px !important; font-weight: 800 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; white-space: nowrap !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-ven { font-size: 12px !important; font-weight: 600 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; min-width: 0 !important; }
  html body.iba-ie-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-entry-sidebar li.iba-ie-job .iba-ie-j-date { text-align: right !important; font-size: 11.5px !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; white-space: nowrap !important; }
  /* 17.0.5 patch 116: Batch Entry top panel (js/iba-1705-batchui.js) */
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry > .iba-batch-header, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry > .iba-batch-search-row { display: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel { display: flex !important; flex-direction: column !important; margin: 0 0 12px !important; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 16px !important; background: rgba(14,23,40,.55) !important; position: relative !important; z-index: 50 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel > .iba-bt-row { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 10px !important; padding: 11px 16px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel > .iba-bt-r2, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel > #im-batch-global-controls { border-top: 1px solid rgba(255,255,255,.08) !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .search-bar-local { flex: 0 1 300px !important; width: 300px !important; max-width: 300px !important; min-width: 180px !important; margin: 0 !important; height: 38px !important; display: flex !important; align-items: center !important; gap: 8px !important; padding: 0 12px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(11,19,36,.6) !important; background-image: none !important; box-shadow: none !important; position: relative !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .search-bar-local > i { position: static !important; transform: none !important; color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; margin: 0 !important; flex: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .search-bar-local > input { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; height: 100% !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; -webkit-box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 13.5px !important; outline: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp { display: inline-flex !important; align-items: stretch !important; height: 38px !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; overflow: hidden !important; background: rgba(19,32,54,.55) !important; flex: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp.is-right, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-lab.is-right { margin-left: auto !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp > :is(button, span) { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important; height: 100% !important; min-height: 0 !important; width: auto !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.12) !important; border-radius: 0 !important; background: transparent !important; background-image: none !important; box-shadow: none !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 13px !important; font-weight: 700 !important; white-space: nowrap !important; text-shadow: none !important; transform: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp > :last-child { border-right: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp > button:hover { background: rgba(255,255,255,.08) !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp > :is(button, span) i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #batch-count-display { color: #BFD6FF !important; -webkit-text-fill-color: #BFD6FF !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-save-button { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-clear-button { color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-lab { font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #8FA3B8 !important; -webkit-text-fill-color: #8FA3B8 !important; flex: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-lab.is-w { width: 120px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-lab.is-gold { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .batch-note-search-wrapper { flex: 0 1 460px !important; width: 460px !important; min-width: 240px !important; max-width: 460px !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-grp.is-quick > button { flex-direction: column !important; gap: 0 !important; line-height: 1.05 !important; padding: 0 13px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q b { font-size: 13.5px !important; font-weight: 800 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q small { font-size: 9.5px !important; font-weight: 600 !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q.is-ca b { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q.is-ip b { color: #8FB8FF !important; -webkit-text-fill-color: #8FB8FF !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q.is-wa b { color: #86EFAC !important; -webkit-text-fill-color: #86EFAC !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel .iba-bt-q:disabled { opacity: .5 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls { display: grid !important; grid-template-columns: 120px repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; align-items: end !important; padding: 10px 16px 14px !important; margin: 0 !important; border: 0 !important; border-radius: 0 0 16px 16px !important; background: rgba(227,201,138,.04) !important; box-shadow: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls > * { grid-row: 1 !important; grid-column: auto !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls > .iba-bt-all { grid-column: 1 !important;  font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #8FA3B8 !important; -webkit-text-fill-color: #8FA3B8 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; height: 40px !important; display: flex !important; align-items: center !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls > .form-group { display: flex !important; flex-direction: column !important; gap: 5px !important; margin: 0 !important; min-width: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls > .form-group > label, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls .iba-ret-note-row > label:not(.iba-ret-tick) { font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #8FA3B8 !important; -webkit-text-fill-color: #8FA3B8 !important; height: 18px !important; display: flex !important; align-items: center !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls .iba-ret-note-row { height: 18px !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #iba-bt-panel #im-batch-global-controls #iba-batch-sum-all { margin-left: auto !important; }
  /* glass batch cards */
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card { background: rgba(17,27,46,.55) !important; background-image: none !important; border: 1px solid rgba(255,255,255,.16) !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.btn-quick-ipc, .btn-quick-f, .btn-quick-five) { background: transparent !important; background-image: none !important; border: 1px solid #38BDF8 !important; color: #7DD3FC !important; -webkit-text-fill-color: #7DD3FC !important; box-shadow: none !important; }
  /* 17.0.5 patch 116: batch card fields regrouped (CSS only, no DOM change):
     row 1 PO · Site · Vendor · remove | row 2 must-fill (Inv No, Date, Value, Paid) + Status, Attention, Note | row 3 filled by system */
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card { display: grid !important; grid-template-columns: repeat(16, minmax(0, 1fr)) !important; column-gap: 10px !important; row-gap: 8px !important; align-items: end !important; padding: 10px 16px 12px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card > .batch-card-header, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card > .batch-card-body, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card > .batch-card-body > .batch-input-grid { display: contents !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-po, .bc-site, .bc-vendor, .bc-remove) { grid-row: 1 !important; align-self: center !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-po { grid-column: 1 / 5 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-site { grid-column: 5 / 7 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-vendor { grid-column: 7 / 15 !important; min-width: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-remove { grid-column: 15 / 17 !important; justify-self: end !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-inv, .bc-att, .bc-status, .bc-note, .bc-f:has([name="invoiceDate"]), .bc-f:has([name="invValue"]), .bc-f:has([name="amountPaid"])) { grid-row: 2 !important; min-width: 0 !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-inv { grid-column: 1 / 3 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="invoiceDate"]) { grid-column: 3 / 5 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="invValue"]) { grid-column: 5 / 7 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="amountPaid"]) { grid-column: 7 / 9 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-status { grid-column: 9 / 13 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-att { grid-column: 13 / 15 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note { grid-column: 15 / 17 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-f:has([name="invName"]), .bc-f:has([name="srvName"]), .bc-f:has([name="details"]), .bc-f:has([name="releaseDate"])) { grid-row: 3 !important; min-width: 0 !important; margin: 0 !important; padding-top: 8px !important; border-top: 1px dashed rgba(148,163,184,.25) !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="invName"]) { grid-column: 1 / 5 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="srvName"]) { grid-column: 5 / 9 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="details"]) { grid-column: 9 / 14 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="releaseDate"]) { grid-column: 14 / 17 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-inv, .bc-f:has([name="invoiceDate"]), .bc-f:has([name="invValue"]), .bc-f:has([name="amountPaid"])) input { border-color: rgba(245,158,11,.55) !important; font-weight: 700 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-f:has([name="invName"]), .bc-f:has([name="srvName"]), .bc-f:has([name="details"]), .bc-f:has([name="releaseDate"])) input { border-style: dashed !important; background: transparent !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-f:has([name="invName"]), .bc-f:has([name="srvName"]), .bc-f:has([name="details"]), .bc-f:has([name="releaseDate"])) label { color: #94A3B8 !important; -webkit-text-fill-color: #94A3B8 !important; }

/* 17.0.5 patch 117: phone Home (js/iba-1705-mhome.js) */
html body.iba-phone #iba-phone .iba-mh { display: flex !important; flex-direction: column !important; gap: 10px !important; padding: 2px 0 18px !important; color: #E6EDF6 !important; }
html body.iba-phone #iba-phone .iba-mh-hi { display: flex !important; flex-direction: column !important; gap: 1px !important; padding: 4px 2px 0 !important; }
html body.iba-phone #iba-phone .iba-mh-hi b { font-size: 18px !important; color: #fff !important; }
html body.iba-phone #iba-phone .iba-mh-hi span { font-size: 12px !important; color: #9FB3C2 !important; }
html body.iba-phone #iba-phone .iba-mh-apv { display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important; padding: 10px 14px !important; border-radius: 14px !important; border: 1px solid rgba(227,201,138,.45) !important; background: rgba(227,201,138,.09) !important; color: #E3C98A !important; font: inherit !important; text-align: left !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-apv b { font-size: 22px !important; }
html body.iba-phone #iba-phone .iba-mh-apv span { font-size: 13px !important; font-weight: 700 !important; flex: 1 !important; }
html body.iba-phone #iba-phone .iba-mh-apv.is-stk { border-color: rgba(143,184,255,.4) !important; background: rgba(143,184,255,.08) !important; color: #BFD6FF !important; }
html body.iba-phone #iba-phone .iba-mh-urg { font-style: normal !important; font-size: 11px !important; font-weight: 800 !important; padding: 2px 8px !important; border-radius: 99px !important; background: rgba(239,68,68,.16) !important; color: #FCA5A5 !important; }
html body.iba-phone #iba-phone .iba-mh-find { display: flex !important; align-items: center !important; gap: 10px !important; height: 46px !important; padding: 0 12px 0 14px !important; border-radius: 14px !important; border: 1px solid rgba(143,184,255,.35) !important; background: rgba(11,19,36,.75) !important; color: #8FB8FF !important; }
html body.iba-phone #iba-phone .iba-mh-find input { flex: 1 !important; min-width: 0 !important; height: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; font-size: 15px !important; outline: none !important; padding: 0 !important; }
html body.iba-phone #iba-phone .iba-mh-find input::placeholder { color: #8FA3B8 !important; }
html body.iba-phone #iba-phone .iba-mh-x { border: 0 !important; background: rgba(255,255,255,.08) !important; color: #CBD5E1 !important; width: 28px !important; height: 28px !important; border-radius: 99px !important; font-size: 18px !important; line-height: 1 !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-found:empty { display: none !important; }
html body.iba-phone #iba-phone .iba-mh-counts { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 6px !important; }
html body.iba-phone #iba-phone .iba-mh-cnt { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 1px !important; padding: 9px 2px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(19,32,54,.65) !important; font: inherit !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-cnt b { font-size: 20px !important; line-height: 1.2 !important; }
html body.iba-phone #iba-phone .iba-mh-cnt span { font-size: 10.5px !important; color: #9FB3C2 !important; white-space: nowrap !important; }
html body.iba-phone #iba-phone .iba-mh-cnt.is-task b { color: #FCD34D !important; } html body.iba-phone #iba-phone .iba-mh-cnt.is-job b { color: #8FB8FF !important; } html body.iba-phone #iba-phone .iba-mh-cnt.is-ret b { color: #FCA5A5 !important; } html body.iba-phone #iba-phone .iba-mh-cnt.is-acc b { color: #86EFAC !important; }
html body.iba-phone #iba-phone .iba-mh-head { display: flex !important; align-items: baseline !important; gap: 8px !important; padding: 6px 2px 0 !important; }
html body.iba-phone #iba-phone .iba-mh-head b { font-size: 13px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #8FA3B8 !important; }
html body.iba-phone #iba-phone .iba-mh-head.is-big b { font-size: 17px !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; }
html body.iba-phone #iba-phone .iba-mh-head span { margin-left: auto !important; font-size: 12px !important; color: #7FE3D6 !important; }
html body.iba-phone #iba-phone .iba-mh-head button { margin-left: auto !important; border: 0 !important; background: none !important; color: #7FE3D6 !important; font: inherit !important; font-size: 12px !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-cards { display: flex !important; flex-direction: column !important; gap: 8px !important; }
html body.iba-phone #iba-phone .iba-mh-card { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; row-gap: 4px !important; column-gap: 8px !important; width: 100% !important; padding: 11px 13px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(19,32,54,.65) !important; color: inherit !important; font: inherit !important; text-align: left !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-po { font-family: ui-monospace, Consolas, monospace !important; font-size: 15px !important; font-weight: 800 !important; color: #8FB8FF !important; }
html body.iba-phone #iba-phone .iba-mh-val { font-size: 14px !important; font-weight: 800 !important; color: #fff !important; text-align: right !important; }
html body.iba-phone #iba-phone .iba-mh-ven { font-size: 12.5px !important; font-weight: 600 !important; color: #E3C98A !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html body.iba-phone #iba-phone .iba-mh-age { font-size: 11px !important; color: #9FB3C2 !important; text-align: right !important; }
html body.iba-phone #iba-phone .iba-mh-foot { grid-column: 1 / -1 !important; display: flex !important; align-items: center !important; gap: 6px !important; flex-wrap: wrap !important; margin-top: 2px !important; }
html body.iba-phone #iba-phone .iba-mh-site { font-size: 11px !important; color: #7FE3D6 !important; }
html body.iba-phone #iba-phone .iba-mh-pc { margin-left: auto !important; font-size: 10.5px !important; color: #8FA3B8 !important; }
html body.iba-phone #iba-phone .iba-mh-chip { font-size: 11px !important; font-weight: 800 !important; padding: 2px 8px !important; border-radius: 99px !important; background: rgba(148,163,184,.16) !important; color: #CBD5E1 !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-srv { background: rgba(245,158,11,.16) !important; color: #FCD34D !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-new { background: rgba(56,189,248,.16) !important; color: #7DD3FC !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-apv { background: rgba(227,201,138,.16) !important; color: #E3C98A !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-acc { background: rgba(34,197,94,.16) !important; color: #86EFAC !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-paid { background: rgba(34,197,94,.26) !important; color: #BBF7D0 !important; }
html body.iba-phone #iba-phone .iba-mh-chip.is-stop { background: rgba(239,68,68,.16) !important; color: #FCA5A5 !important; }
html body.iba-phone #iba-phone .iba-mh-note { margin: 0 !important; padding: 10px 12px !important; border-radius: 12px !important; background: rgba(127,227,214,.08) !important; color: #9FB3C2 !important; font-size: 11.5px !important; line-height: 1.4 !important; }
html body.iba-phone #iba-phone .iba-mh-note.is-top { margin-top: -4px !important; }
html body.iba-phone #iba-phone .iba-mh-back { align-self: flex-start !important; border: 0 !important; background: none !important; color: #9FB3C2 !important; font: inherit !important; font-size: 14px !important; font-weight: 700 !important; padding: 4px 2px !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-pobox { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 12px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(19,32,54,.65) !important; margin-bottom: 8px !important; }
html body.iba-phone #iba-phone .iba-mh-pohead { display: flex !important; justify-content: space-between !important; align-items: baseline !important; }
html body.iba-phone #iba-phone .iba-mh-pohead b { font-family: ui-monospace, Consolas, monospace !important; font-size: 16px !important; color: #8FB8FF !important; }
html body.iba-phone #iba-phone .iba-mh-pohead span { font-weight: 800 !important; color: #7FE3D6 !important; }
html body.iba-phone #iba-phone .iba-mh-poven { font-size: 14px !important; font-weight: 700 !important; color: #E3C98A !important; }
html body.iba-phone #iba-phone .iba-mh-row { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; row-gap: 3px !important; width: 100% !important; padding: 9px 10px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.08) !important; background: rgba(255,255,255,.03) !important; color: inherit !important; font: inherit !important; text-align: left !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-rno { font-weight: 700 !important; color: #fff !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.iba-phone #iba-phone .iba-mh-rval { font-weight: 800 !important; text-align: right !important; }
html body.iba-phone #iba-phone .iba-mh-rdt { font-size: 11px !important; color: #9FB3C2 !important; text-align: right !important; }
html body.iba-phone #iba-phone .iba-mh-sugg { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
html body.iba-phone #iba-phone .iba-mh-sugg p { width: 100% !important; margin: 0 !important; color: #9FB3C2 !important; font-size: 12.5px !important; }
html body.iba-phone #iba-phone .iba-mh-sugg button { border: 1px solid rgba(143,184,255,.35) !important; background: rgba(19,32,54,.65) !important; color: #BFD6FF !important; border-radius: 99px !important; padding: 6px 12px !important; font: inherit !important; font-size: 12.5px !important; }
html body.iba-phone #iba-phone .iba-mh-inv { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 14px !important; border-radius: 16px !important; border: 1px solid rgba(255,255,255,.14) !important; background: rgba(19,32,54,.7) !important; }
html body.iba-phone #iba-phone .iba-mh-ivtop { display: flex !important; justify-content: space-between !important; align-items: baseline !important; gap: 8px !important; }
html body.iba-phone #iba-phone .iba-mh-ivtop b { font-family: ui-monospace, Consolas, monospace !important; font-size: 19px !important; font-weight: 900 !important; color: #8FB8FF !important; }
html body.iba-phone #iba-phone .iba-mh-ivtop span { font-size: 15px !important; font-weight: 800 !important; color: #7FE3D6 !important; }
html body.iba-phone #iba-phone .iba-mh-ivven { font-size: 17px !important; font-weight: 700 !important; color: #E3C98A !important; }
html body.iba-phone #iba-phone .iba-mh-facts { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: 6px !important; }
html body.iba-phone #iba-phone .iba-mh-fact { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
html body.iba-phone #iba-phone .iba-mh-fact.is-r { align-items: flex-end !important; text-align: right !important; }
html body.iba-phone #iba-phone .iba-mh-fact span { font-size: 10.5px !important; color: #8FA3B8 !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
html body.iba-phone #iba-phone .iba-mh-fact b { font-size: 14px !important; color: #fff !important; overflow-wrap: anywhere !important; }
html body.iba-phone #iba-phone .iba-mh-fact b.is-gold { color: #FCD34D !important; font-size: 13px !important; }
html body.iba-phone #iba-phone .iba-mh-files { display: flex !important; gap: 8px !important; }
html body.iba-phone #iba-phone .iba-mh-files > * { flex: 1 !important; height: 42px !important; border-radius: 12px !important; border: 1px solid rgba(143,184,255,.4) !important; background: rgba(19,32,54,.65) !important; color: #BFD6FF !important; font-weight: 800 !important; font-size: 13px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; text-decoration: none !important; }
html body.iba-phone #iba-phone .iba-mh-files > .is-off { border-color: rgba(255,255,255,.14) !important; color: #8FA3B8 !important; }
html body.iba-phone #iba-phone .iba-mh-steps { list-style: none !important; margin: 0 !important; padding: 0 4px !important; }
html body.iba-phone #iba-phone .iba-mh-steps li { position: relative !important; padding: 0 0 14px 24px !important; display: flex !important; flex-direction: column !important; }
html body.iba-phone #iba-phone .iba-mh-steps li::before { content: "" !important; position: absolute !important; left: 0 !important; top: 3px !important; width: 12px !important; height: 12px !important; border-radius: 99px !important; background: rgba(255,255,255,.25) !important; }
html body.iba-phone #iba-phone .iba-mh-steps li::after { content: "" !important; position: absolute !important; left: 5px !important; top: 17px !important; bottom: 0 !important; width: 2px !important; background: rgba(255,255,255,.18) !important; }
html body.iba-phone #iba-phone .iba-mh-steps li:last-child::after { display: none !important; }
html body.iba-phone #iba-phone .iba-mh-steps li b { font-size: 13px !important; color: #8FA3B8 !important; }
html body.iba-phone #iba-phone .iba-mh-steps li span { font-size: 11.5px !important; color: #9FB3C2 !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-done::before, html body.iba-phone #iba-phone .iba-mh-steps li.is-done::after { background: #7FE3D6 !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-done b { color: #fff !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-now::before { background: #FCD34D !important; box-shadow: 0 0 0 4px rgba(252,211,77,.2) !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-now b { color: #FCD34D !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-now.is-stop::before { background: #FCA5A5 !important; box-shadow: 0 0 0 4px rgba(239,68,68,.2) !important; }
html body.iba-phone #iba-phone .iba-mh-steps li.is-now.is-stop b { color: #FCA5A5 !important; }
html body.iba-phone #iba-phone .iba-mh-hist { font-size: 12px !important; color: #9FB3C2 !important; }
html body.iba-phone #iba-phone .iba-mh-hist summary { cursor: pointer !important; color: #7FE3D6 !important; padding: 2px !important; }
html body.iba-phone #iba-phone .iba-mh-hist ul { list-style: none !important; margin: 6px 0 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
html body.iba-phone #iba-phone .iba-mh-hist li { display: flex !important; justify-content: space-between !important; gap: 8px !important; }
html body.iba-phone #iba-phone .iba-mh-hist li b { color: #E6EDF6 !important; }
html body.iba-phone #iba-phone .iba-mh-yours { margin: 0 !important; padding: 10px 12px !important; border-radius: 12px !important; background: rgba(245,158,11,.1) !important; color: #FCD34D !important; font-size: 12px !important; }
html body.iba-phone #iba-phone .iba-mh-ask { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: 100% !important; height: 46px !important; border-radius: 14px !important; border: 1px solid rgba(127,227,214,.5) !important; background: rgba(13,126,133,.28) !important; color: #7FE3D6 !important; font: inherit !important; font-size: 14px !important; font-weight: 800 !important; cursor: pointer !important; }
html body.iba-phone #iba-phone .iba-mh-ask small { font-weight: 600 !important; color: #9FB3C2 !important; }

/* 17.0.5 patch 117: tracking rows = invoice no. | value / status | date */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-row.is-v2 { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; column-gap: 12px !important; row-gap: 3px !important; align-items: baseline !important; min-height: 0 !important; padding: 11px 14px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-row.is-v2 .iba-trk-v2no { font-size: 15px !important; font-weight: 800 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; overflow-wrap: anywhere !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-row.is-v2 .iba-trk-v2val { display: flex !important; align-items: center !important; gap: 6px !important; justify-content: flex-end !important; font-size: 15px !important; font-weight: 800 !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-row.is-v2 .iba-trk-v2st { font-size: 13px !important; font-weight: 700 !important; color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-row.is-v2 .iba-trk-v2dt { font-size: 12.5px !important; text-align: right !important; white-space: nowrap !important; color: var(--t-muted, #9FB3C2) !important; -webkit-text-fill-color: var(--t-muted, #9FB3C2) !important; }

/* 17.0.5 patch 117: New invoice window (js/iba-1705-newinv.js) */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .modal-container { max-width: min(980px, 96vw) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #jobentry-form > .transfer-2col-grid { display: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #standard-modal-title::after { content: "Reception" !important; margin-left: 10px !important; font-size: 11px !important; font-weight: 800 !important; padding: 3px 10px !important; border-radius: 99px !important; background: rgba(227,201,138,.16) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; vertical-align: middle !important; letter-spacing: .02em !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni { display: flex !important; flex-direction: column !important; gap: 0 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-kick { display: flex !important; align-items: center !important; gap: 14px !important; flex-wrap: wrap !important; padding: 10px 14px !important; margin: 0 0 14px !important; border-radius: 12px !important; background: rgba(127,227,214,.08) !important; border: 1px solid rgba(127,227,214,.22) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-kick > b { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; font-size: 14px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-kick > span#iba-ni-help { color: #C9D6E2 !important; -webkit-text-fill-color: #C9D6E2 !important; font-size: 12.5px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-bar { display: flex !important; gap: 6px !important; margin-left: auto !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-bar i { display: block !important; width: 40px !important; height: 6px !important; border-radius: 99px !important; background: rgba(255,255,255,.16) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-bar i.is-on { background: #7FE3D6 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-bar i.is-now { background: #FCD34D !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-other { border: 0 !important; background: none !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; font-size: 11.5px !important; text-decoration: underline !important; cursor: pointer !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-steps { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
@media (max-width: 760px) { html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-steps { grid-template-columns: 1fr !important; } }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st { display: flex !important; flex-direction: column !important; gap: 8px !important; min-width: 0 !important; padding: 14px !important; border-radius: 16px !important; border: 1px solid rgba(255,255,255,.14) !important; background: rgba(8,18,32,.45) !important; transition: border-color .2s, opacity .2s !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-done { border-color: rgba(127,227,214,.38) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-now { border-color: rgba(252,211,77,.6) !important; box-shadow: 0 0 0 3px rgba(252,211,77,.08) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-wait { opacity: .62 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-wait:focus-within, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-wait:hover { opacity: 1 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-sh { display: flex !important; align-items: center !important; gap: 10px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-sh b { font-size: 14.5px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-sh small { margin-left: auto !important; font-size: 11.5px !important; font-weight: 700 !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-now .iba-ni-sh small { color: #FCD34D !important; -webkit-text-fill-color: #FCD34D !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-num { width: 26px !important; height: 26px !important; border-radius: 99px !important; display: grid !important; place-items: center !important; font-weight: 900 !important; font-size: 13px !important; background: rgba(255,255,255,.12) !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; flex: 0 0 auto !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-done .iba-ni-num { background: #7FE3D6 !important; color: #05211F !important; -webkit-text-fill-color: #05211F !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-st.is-now .iba-ni-num { background: #FCD34D !important; color: #2A1E00 !important; -webkit-text-fill-color: #2A1E00 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-body { display: flex !important; flex-direction: column !important; gap: 8px !important; min-width: 0 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-body .form-group { margin: 0 !important; min-width: 0 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-body .form-group.hidden { display: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-body .wd-field-helper { display: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: start !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-ro { min-height: 40px !important; display: flex !important; align-items: center !important; padding: 0 12px !important; border-radius: 10px !important; background: rgba(127,227,214,.07) !important; border: 1px solid rgba(127,227,214,.3) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 700 !important; font-variant-numeric: tabular-nums !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-hint { font-size: 12px !important; line-height: 1.4 !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-hint:empty { display: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-hint.is-good { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-hint.is-bad { color: #FCA5A5 !important; -webkit-text-fill-color: #FCA5A5 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-addpo { margin-left: 6px !important; height: 28px !important; min-height: 0 !important; padding: 0 10px !important; border-radius: 8px !important; border: 1px solid rgba(227,201,138,.5) !important; background: rgba(227,201,138,.14) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-weight: 800 !important; font-size: 12px !important; cursor: pointer !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-glow, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .choices.iba-ni-glow .choices__inner { border-color: #FCD34D !important; box-shadow: 0 0 0 3px rgba(252,211,77,.22) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-job-po-hint { display: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni-next { margin-left: auto !important; margin-right: 12px !important; font-size: 12.5px !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni-next b { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni-next.is-shake { animation: iba-ni-shake .35s 1 !important; color: #FCD34D !important; -webkit-text-fill-color: #FCD34D !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on:not(.iba-ni-ready) #add-job-button { opacity: .55 !important; filter: grayscale(.6) !important; }
@keyframes iba-ni-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
html body:not(#iba-no1):not(#iba-no2) .iba-nav-sub .iba-newinv-nav { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-weight: 700 !important; }

/* 17.0.5 patch 120: New invoice boxes stay dark with white text when typing (focus / browser autofill turned them light) */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni :is(input, textarea, select):is(:focus, :hover, :active, :not(:placeholder-shown)) { background-color: rgba(8,16,28,.85) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; caret-color: #FFFFFF !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni :is(input, textarea):focus { border-color: #7FE3D6 !important; box-shadow: 0 0 0 3px rgba(127,227,214,.18) !important; outline: none !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni input:-webkit-autofill, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni input:-webkit-autofill:hover, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #iba-ni input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #0E1B2B inset !important; box-shadow: 0 0 0 1000px #0E1B2B inset !important; -webkit-text-fill-color: #FFFFFF !important; caret-color: #FFFFFF !important; transition: background-color 9999s ease-out 0s !important; }

/* 17.0.5 patch 124: New requisition (Procurement) */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-hint.is-warn { color: #F5C26B !important; -webkit-text-fill-color: #F5C26B !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on.iba-ni-req #standard-modal-title::after { content: "Procurement" !important; background: rgba(159,216,255,.16) !important; color: #9FD8FF !important; -webkit-text-fill-color: #9FD8FF !important; }
html body:not(#iba-no1):not(#iba-no2) .iba-nav-sub .iba-newreq-nav { color: #9FD8FF !important; -webkit-text-fill-color: #9FD8FF !important; font-weight: 700 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #standard-modal-title .iba-ni-pill { display: inline-block !important; margin-left: 10px !important; font-size: 11px !important; font-weight: 800 !important; padding: 3px 10px !important; border-radius: 99px !important; background: rgba(227,201,138,.16) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; vertical-align: middle !important; letter-spacing: .02em !important; line-height: 1.3 !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on #standard-modal-title .iba-ni-pill.is-req { background: rgba(159,216,255,.16) !important; color: #9FD8FF !important; -webkit-text-fill-color: #9FD8FF !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #standard-job-modal.iba-ni-on .iba-ni-trackpo { display: inline-flex !important; align-items: center !important; gap: 6px !important; margin-top: 6px !important; padding: 5px 12px !important; border-radius: 99px !important; border: 1px solid rgba(159,216,255,.5) !important; background: rgba(159,216,255,.14) !important; color: #9FD8FF !important; -webkit-text-fill-color: #9FD8FF !important; font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important; min-height: 0 !important; height: auto !important; width: auto !important; box-shadow: none !important; }

/* 17.0.5 patch 130: Print summary notes window */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t { width: 100% !important; border-collapse: collapse !important; font-size: 13.5px !important; color: #F3EAD3 !important; background: transparent !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t th { text-align: left !important; padding: 6px 8px !important; font-size: 11px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #7FE3D6 !important; background: transparent !important; border-bottom: 1px solid rgba(127,227,214,.25) !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t td { padding: 7px 8px !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; background: transparent !important; color: #F3EAD3 !important; vertical-align: middle !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t td b { color: #fff !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t th:first-child, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t td:first-child { width: 32px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t select.iba-snb-prev { width: 100% !important; min-width: 220px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-esn.iba-snb .iba-snb-t input[type=checkbox] { width: 16px !important; height: 16px !important; accent-color: #7FE3D6; }
/* 17.0.5 patch 138: Remind me card */
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme .iba-ai-remme-when { font-size: 15px !important; font-weight: 700 !important; color: #f6c453 !important; margin: 4px 0 6px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme .iba-ai-remme-text { font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 6px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme .iba-ai-remme-sub, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme-sub { display: block !important; opacity: .75 !important; font-size: 12px !important; }
html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme.is-cancelled .iba-ai-remme-when, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) .iba-ai-remme.is-cancelled .iba-ai-remme-text { text-decoration: line-through !important; opacity: .55 !important; }
  /* 17.0.5 patch 139: Material Stock pager removed (scrollbar is enough) + the scrollbar no longer pokes out of the
     rounded top-right corner (Chrome draws the bar square; clip the whole box to the same 16px round) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #ms-page-bar { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #wd-material-stock .ms-premium-tablewrap { clip-path: inset(0 round 16px) !important; }
  html body #wd-material-stock .ms-premium-tablewrap:not(#iba-no1)::-webkit-scrollbar-corner { background: transparent !important; }

  /* ------------------------------------------------------------------
     17.0.5 patch 151 — phone: bigger, app-like (PC untouched: everything
     below needs body.iba-phone)
     ------------------------------------------------------------------ */
  /* assistant: no top bar on the phone (greeting first; Settings / Exit are apps) */
  html body.iba-phone #iba-ai-panel > .iba-ai-head { display: none !important; }
  html body.iba-phone #iba-ai-panel .iba-ai-view[data-view="phone"] > .iba-ai-pane { min-height: 100% !important; box-sizing: border-box !important; padding-bottom: 6px !important; }
  @media (min-height: 701px), (min-width: 601px) and (min-height: 501px), (max-aspect-ratio: 74/100) and (min-height: 501px) {
    html body.iba-phone #iba-ai-panel .iba-aph-tiles.is-4.is-icons { gap: 20px 12px !important; padding: 8px 4px 4px !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button > i { width: 110px !important; height: 110px !important; border-radius: 30px !important; font-size: 46px !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tiles.is-4.is-icons > button > b { font-size: 17px !important; }
  }
  /* the 3 smaller apps, kept low above the bottom bar */
  html body #iba-ai-panel .iba-aph-more { display: none !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-tiles.iba-aph-more { display: flex !important; justify-content: space-evenly !important; gap: 8px !important;
    margin-top: auto !important; padding: 14px 0 26px !important; border-top: 1px solid rgba(255, 255, 255, .12) !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button { flex: 0 1 33.3% !important; grid-column: auto !important; align-items: center !important; justify-content: flex-start !important; gap: 7px !important; min-height: 0 !important; padding: 2px 0 !important; text-align: center !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button[hidden] { display: none !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button > i { width: 64px !important; height: 64px !important; border-radius: 18px !important; font-size: 26px !important; margin: 0 !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
    background: linear-gradient(150deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button > b { font-size: 14px !important; font-weight: 800 !important; line-height: 1.2 !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button:active > i { transform: scale(.92) !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-more > button.is-on::after { display: none !important; }
  /* assistant bottom bar about 25% bigger */
  @media (min-height: 701px), (min-width: 601px) and (min-height: 501px), (max-aspect-ratio: 74/100) and (min-height: 501px) {
    html body.iba-phone #iba-ai-panel .iba-aph-tabs { padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tabs > button { min-height: 60px !important; font-size: 13px !important; gap: 4px !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tabs > button > i { font-size: 25px !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-mid > b { width: 64px !important; height: 64px !important; margin-top: -32px !important; }
    html body.iba-phone #iba-ai-panel .iba-aph-tabs > button.is-mid > b > i { font-size: 28px !important; }
  }
  /* Z Flip cover screen: keep it small */
  @media (max-width: 480px) and (max-height: 560px) {
    html body.iba-phone #iba-ai-panel .iba-aph-tiles.iba-aph-more { margin-top: 10px !important; padding-bottom: 10px !important; }
  }

  /* phone pages (Home / Approve): app-like bottom bar, big round Home in the middle */
  @media (min-height: 701px), (min-width: 601px) and (min-height: 501px), (max-aspect-ratio: 74/100) and (min-height: 501px) {
    html body.iba-phone #iba-phone .iba-ph-tabs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; align-items: end !important; gap: 2px !important;
      padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)) !important; position: relative !important; z-index: 3 !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button { min-height: 58px !important; padding: 4px 0 !important; gap: 4px !important; background: transparent !important; border-radius: 12px !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button.is-on:not(.is-mid) { color: #fff !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button.is-on:not(.is-mid) .iba-ph-tab-ic { color: #E3C98A !important; }
    html body.iba-phone #iba-phone .iba-ph-tab-ic { font-size: 24px !important; }
    html body.iba-phone #iba-phone .iba-ph-tab-label { font-size: 12.5px !important; font-weight: 700 !important; white-space: nowrap !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button.is-mid { color: #fff !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button.is-mid .iba-ph-tab-ic { width: 62px !important; height: 62px !important; margin-top: -32px !important; border-radius: 50% !important; display: grid !important; place-items: center !important;
      font-size: 28px !important; color: #fff !important; background: linear-gradient(180deg, #E1B44E, #B88A2C) !important; border: 4px solid #0b1724 !important; box-shadow: 0 8px 18px rgba(184, 138, 44, .45) !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button.is-mid:not(.is-on) .iba-ph-tab-ic { filter: saturate(.75) brightness(.9) !important; }
    html body.iba-phone #iba-phone .iba-ph-tabs > button .iba-ph-badge:not(.dm-unread-badge) { min-width: 22px !important; height: 22px !important; line-height: 22px !important; font-size: 12.5px !important; }
  }
  /* bigger text and tap targets on phone pages (not the Z Flip cover screen, not landscape) */
  @media (min-height: 701px), (min-width: 601px) and (min-height: 501px), (max-aspect-ratio: 74/100) and (min-height: 501px) {
    html body.iba-phone #iba-phone .iba-ph-mark { width: 46px !important; height: 46px !important; font-size: 13px !important; }
    html body.iba-phone #iba-phone .iba-ph-who strong { font-size: 17px !important; }
    html body.iba-phone #iba-phone .iba-ph-who small { font-size: 13px !important; }
    html body.iba-phone #iba-phone .iba-ph-icon { width: 46px !important; height: 46px !important; font-size: 18px !important; }
    html body.iba-phone #iba-phone .iba-ph-switch button { min-height: 48px !important; font-size: 15.5px !important; }
    /* Home */
    html body.iba-phone #iba-phone .iba-mh { gap: 12px !important; }
    html body.iba-phone #iba-phone .iba-mh-hi b { font-size: 22px !important; }
    html body.iba-phone #iba-phone .iba-mh-hi span { font-size: 13.5px !important; color: #E3C98A !important; }
    html body.iba-phone #iba-phone .iba-mh-apv { min-height: 56px !important; }
    html body.iba-phone #iba-phone .iba-mh-apv b { font-size: 24px !important; }
    html body.iba-phone #iba-phone .iba-mh-apv span { font-size: 15.5px !important; }
    html body.iba-phone #iba-phone .iba-mh-find { height: 54px !important; }
    html body.iba-phone #iba-phone .iba-mh-find input { font-size: 16px !important; }
    html body.iba-phone #iba-phone .iba-mh-counts { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    html body.iba-phone #iba-phone .iba-mh-cnt { flex-direction: row !important; justify-content: flex-start !important; gap: 10px !important; min-height: 64px !important; padding: 0 14px !important; }
    html body.iba-phone #iba-phone .iba-mh-cnt b { font-size: 26px !important; }
    html body.iba-phone #iba-phone .iba-mh-cnt span { font-size: 14px !important; font-weight: 700 !important; }
    html body.iba-phone #iba-phone .iba-mh-head b { font-size: 14px !important; color: #E3C98A !important; }
    html body.iba-phone #iba-phone .iba-mh-head.is-big b { font-size: 19px !important; }
    html body.iba-phone #iba-phone .iba-mh-head :is(span, button) { font-size: 14px !important; }
    html body.iba-phone #iba-phone .iba-mh-card { padding: 14px !important; row-gap: 5px !important; border-radius: 16px !important; }
    html body.iba-phone #iba-phone .iba-mh-po { font-size: 18px !important; }
    html body.iba-phone #iba-phone .iba-mh-val { font-size: 18px !important; }
    html body.iba-phone #iba-phone .iba-mh-ven { font-size: 15.5px !important; font-weight: 700 !important; }
    html body.iba-phone #iba-phone .iba-mh-age { font-size: 13px !important; }
    html body.iba-phone #iba-phone .iba-mh-chip { font-size: 13px !important; padding: 4px 10px !important; }
    html body.iba-phone #iba-phone .iba-mh-site, html body.iba-phone #iba-phone .iba-mh-pc { font-size: 13.5px !important; }
    html body.iba-phone #iba-phone .iba-mh-note { font-size: 14px !important; }
    html body.iba-phone #iba-phone .iba-mh-back { min-height: 46px !important; font-size: 15.5px !important; }
    /* Approve lists */
    html body.iba-phone #iba-phone .iba-ph-title h2 { font-size: 20px !important; }
    html body.iba-phone #iba-phone .iba-ph-title span { font-size: 14px !important; }
    html body.iba-phone #iba-phone .iba-ph-urg button { min-height: 50px !important; font-size: 15.5px !important; }
    html body.iba-phone #iba-phone .iba-ph-urg button b { font-size: 13.5px !important; min-width: 24px !important; }
    html body.iba-phone #iba-phone .iba-ph-bulk { min-height: 58px !important; padding: 6px 8px 6px 14px !important; gap: 12px !important; }
    html body.iba-phone #iba-phone .iba-ph-bulk-text { font-size: 16px !important; font-weight: 700 !important; }
    html body.iba-phone #iba-phone .iba-ph-bulk .iba-ph-btn { min-height: 44px !important; font-size: 14.5px !important; }
    html body.iba-phone #iba-phone .iba-ph-tick, html body.iba-phone #iba-phone .iba-ph-tick span { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
    html body.iba-phone #iba-phone .iba-ph-card.is-apv { padding: 14px !important; display: flex !important; flex-direction: column !important; gap: 12px !important; }
    html body.iba-phone #iba-phone .iba-ph-card.is-apv .iba-ph-chip { font-size: 13px !important; padding: 5px 11px !important; }
    html body.iba-phone #iba-phone .iba-ph-card.is-apv .iba-ph-note { margin: 0 !important; padding: 10px 12px !important; font-size: 15px !important; }
    html body.iba-phone #iba-phone .iba-ph-acts .iba-ph-btn { min-height: 50px !important; font-size: 16px !important; font-weight: 800 !important; }
  }
  /* room under the last card so the assistant button never sits on Approve */
  html body.iba-phone #iba-phone .iba-ph-pane.is-on { padding-bottom: 92px !important; }
  /* invoice card: tick + status, amount right, vendor / PO + INV / site below */
  html body.iba-phone #iba-phone .iba-ph-top2 { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: 12px !important; row-gap: 4px !important; align-items: center !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-card-kicker { margin: 0 !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-amount { grid-column: 3 !important; grid-row: 1 / span 2 !important; align-self: center !important; text-align: right !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-amount strong { font-size: 21px !important; font-weight: 900 !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-amount small { display: block !important; font-size: 12.5px !important; color: #E3C98A !important; font-weight: 700 !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 h3 { grid-column: 1 / 3 !important; margin: 4px 0 0 !important; font-size: 20px !important; line-height: 1.25 !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-ln { grid-column: 1 / -1 !important; font-size: 15px !important; color: #B9C6D3 !important; }
  html body.iba-phone #iba-phone .iba-ph-top2 .iba-ph-ln i { color: #7FE3D6 !important; margin-right: 2px !important; }
  html body.iba-phone #iba-phone .iba-ph-acts { display: grid !important; grid-template-columns: 1fr 1fr 1.3fr !important; gap: 8px !important; }
  html body.iba-phone #iba-phone .iba-ph-acts.is-2 { grid-template-columns: 1fr 1.4fr !important; }
  html body.iba-phone #iba-phone .iba-ph-acts .iba-ph-btn { width: 100% !important; justify-content: center !important; padding: 0 8px !important; text-decoration: none !important; }
  html body.iba-phone #iba-phone .iba-ph-btn.is-pdf { border: 1px solid rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .08) !important; color: #E6EDF6 !important; gap: 6px !important; }
  html body.iba-phone #iba-phone .iba-ph-btn.is-pdf.is-off { opacity: .45 !important; }
  /* inventory card: requestor + type + big TRF, item, road FROM -> TO, Requested vs Approve */
  html body.iba-phone #iba-phone .iba-ph-card.is-stk.is-apv { border-color: rgba(227, 201, 138, .45) !important; }
  html body.iba-phone #iba-phone .iba-ph-top3 { display: flex !important; align-items: center !important; gap: 10px !important; }
  html body.iba-phone #iba-phone .iba-ph-who2 { display: inline-flex !important; align-items: center !important; gap: 7px !important; min-width: 0 !important; font-size: 16px !important; white-space: nowrap !important; color: #fff !important; }
  html body.iba-phone #iba-phone .iba-ph-who2 > i { color: #E3C98A !important; }
  html body.iba-phone #iba-phone .iba-ph-who2 > b { overflow: hidden !important; text-overflow: ellipsis !important; font-weight: 800 !important; }
  html body.iba-phone #iba-phone .iba-ph-trf { margin-left: auto !important; font: 900 20px ui-monospace, Consolas, monospace !important; color: #9CC7FF !important; white-space: nowrap !important; }
  html body.iba-phone #iba-phone .iba-ph-item { display: flex !important; align-items: center !important; gap: 12px !important; padding: 10px 12px !important; border-radius: 12px !important; background: rgba(255, 255, 255, .06) !important; }
  html body.iba-phone #iba-phone .iba-ph-ith { width: 48px !important; height: 48px !important; flex: none !important; border-radius: 10px !important; display: grid !important; place-items: center !important; font-size: 22px !important; color: #E3C98A !important; background: rgba(0, 0, 0, .3) !important; }
  html body.iba-phone #iba-phone .iba-ph-item > div { display: grid !important; gap: 2px !important; min-width: 0 !important; }
  html body.iba-phone #iba-phone .iba-ph-item b { font-size: 18px !important; line-height: 1.25 !important; color: #fff !important; }
  html body.iba-phone #iba-phone .iba-ph-item small { font-size: 14.5px !important; color: #E3C98A !important; font-weight: 600 !important; }
  html body.iba-phone #iba-phone .iba-ph-route { display: grid !important; grid-template-columns: auto 1fr auto !important; align-items: start !important; gap: 6px !important; padding: 4px 4px 0 !important; }
  html body.iba-phone #iba-phone .iba-ph-route.is-one { grid-template-columns: auto !important; justify-content: start !important; }
  html body.iba-phone #iba-phone .iba-ph-end { display: grid !important; justify-items: center !important; gap: 1px !important; min-width: 58px !important; }
  html body.iba-phone #iba-phone .iba-ph-end > i { width: 14px !important; height: 14px !important; border-radius: 99px !important; background: #E3C98A !important; box-shadow: 0 0 0 4px rgba(227, 201, 138, .2) !important; }
  html body.iba-phone #iba-phone .iba-ph-end.is-to > i { background: #7FE3D6 !important; box-shadow: 0 0 0 4px rgba(127, 227, 214, .2) !important; }
  html body.iba-phone #iba-phone .iba-ph-end > small { margin-top: 4px !important; font-size: 11.5px !important; color: #9FB3C2 !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
  html body.iba-phone #iba-phone .iba-ph-end > b { font-size: 22px !important; color: #fff !important; }
  html body.iba-phone #iba-phone .iba-ph-road { position: relative !important; height: 0 !important; margin-top: 6px !important; border-top: 3px dashed rgba(127, 227, 214, .55) !important; }
  html body.iba-phone #iba-phone .iba-ph-road::after { content: "" !important; position: absolute !important; right: -2px !important; top: -9px !important; border: 7px solid transparent !important; border-left: 10px solid rgba(127, 227, 214, .85) !important; }
  html body.iba-phone #iba-phone .iba-ph-road > span { position: absolute !important; left: 50% !important; top: -15px !important; transform: translateX(-50%) !important; padding: 0 6px !important; background: #13202F !important; border-radius: 6px !important; }
  html body.iba-phone #iba-phone .iba-ph-road > span > i { font-size: 20px !important; color: #7FE3D6 !important; }
  /* 17.0.5 patch 153: Requested | Approve as two even halves, labels on one line, numbers on one line */
  html body.iba-phone #iba-phone .iba-ph-qty3 { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: start !important; column-gap: 12px !important; padding: 12px 12px 12px 14px !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .12) !important; background: rgba(255, 255, 255, .05) !important; }
  html body.iba-phone #iba-phone .iba-ph-qty3 :is(small, label) { display: block !important; margin: 0 0 6px !important; font-size: 12px !important; line-height: 16px !important; color: #E3C98A !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .06em !important; text-align: left !important; }
  html body.iba-phone #iba-phone .iba-ph-req b { display: block !important; font-size: 28px !important; line-height: 44px !important; color: #fff !important; }
  html body.iba-phone #iba-phone .iba-ph-step { text-align: left !important; }
  html body.iba-phone #iba-phone .iba-ph-step > div { display: flex !important; align-items: center !important; gap: 6px !important; margin: 0 !important; }
  html body.iba-phone #iba-phone .iba-ph-sb { width: 44px !important; height: 44px !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .08) !important; color: #fff !important; font-size: 24px !important; font-weight: 800 !important; line-height: 1 !important; padding: 0 !important; touch-action: manipulation !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-in { width: 72px !important; height: 44px !important; padding: 0 4px !important; border-radius: 12px !important; text-align: center !important; font-size: 21px !important; font-weight: 900 !important;
    border: 1px solid rgba(127, 227, 214, .55) !important; background: rgba(19, 138, 151, .2) !important; color: #fff !important; -moz-appearance: textfield !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-in::-webkit-inner-spin-button, html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-in::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-in.is-bad { border-color: #EF8A7A !important; background: rgba(239, 138, 122, .15) !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-in.is-lower { border-color: #E3C98A !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-hint { display: block !important; margin-top: 6px !important; font-size: 13px !important; color: #E3C98A !important; text-align: center !important; }
  html body.iba-phone #iba-phone .iba-ph-step .iba-ph-qty-hint:empty { display: none !important; }
  html body.iba-phone #iba-ai-panel .iba-aph-back { display: inline-flex !important; align-items: center !important; gap: 8px !important; align-self: flex-start !important; min-height: 46px !important; margin: 0 0 10px !important; padding: 0 16px !important; border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important; background: rgba(255, 255, 255, .08) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 16px !important; font-weight: 800 !important; cursor: pointer !important; }
  html body:not(.iba-phone) #iba-ai-panel .iba-aph-back { display: none !important; }

  /* 17.0.5 patch 155: Notes to Accounts window (js/iba-1705-n2a.js), same look as Month to Payments */
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-box { width: min(1040px, 100%) !important; display: flex !important; flex-direction: column !important; max-height: min(86vh, 900px) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-pb-head { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-watch-x { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: transparent !important; color: #EEF3F8 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-hint { margin: 10px 18px 0 !important; font-size: 13px !important; line-height: 1.45 !important; color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-pick { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; margin: 12px 18px 0 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-pick label { display: flex !important; flex-direction: column !important; gap: 4px !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: #9FB3C2 !important; text-transform: uppercase !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-pick select { min-width: 130px !important; height: 40px !important; padding: 0 10px !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .18) !important; background: #0F1D2B !important; color: #EEF3F8 !important; font: inherit !important; font-size: 15px !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-out { margin: 12px 18px 0 !important; min-height: 60px !important; overflow: auto !important; flex: 1 1 auto !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; margin-bottom: 10px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum > div { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 10px 12px !important; border-radius: 12px !important; background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .1) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum b { font-size: 22px !important; color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum .is-amt b { color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum span { font-size: 12px !important; color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list table { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list th { position: sticky !important; top: 0 !important; background: #12263A !important; text-align: left !important; font-size: 11px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #9FB3C2 !important; padding: 7px 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list td { padding: 7px 8px !important; border-top: 1px solid rgba(255, 255, 255, .07) !important; color: #EEF3F8 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list td:nth-child(4) { color: #E3C98A !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list :is(th, td).is-n { text-align: right !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-note { margin: 8px 0 0 !important; font-size: 12.5px !important; color: #EBD8A8 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-empty { margin: 10px 0 !important; font-size: 14px !important; color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-acts { display: flex !important; justify-content: flex-end !important; gap: 10px !important; padding: 14px 18px 16px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-acts button[disabled] { opacity: .5 !important; cursor: not-allowed !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-find { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 0 10px !important; padding: 0 6px 0 12px !important; height: 44px !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: rgba(6, 14, 24, .5) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-find > i { color: #9FB3C2 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-find input { flex: 1 !important; min-width: 0 !important; height: 100% !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; font-size: 14px !important; outline: none !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sel { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; margin: 0 0 6px !important; font-size: 13px !important; color: #EBD8A8 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sel label { display: inline-flex !important; align-items: center !important; gap: 8px !important; color: #fff !important; font-weight: 700 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) table { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) th { position: sticky !important; top: 0 !important; background: #12263A !important; text-align: left !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .05em !important; color: #E3C98A !important; padding: 7px 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) td { padding: 7px 8px !important; border-top: 1px solid rgba(255, 255, 255, .07) !important; color: #EEF3F8 !important; vertical-align: middle !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) :is(th, td).is-n { text-align: right !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) input[type="checkbox"], .iba-n2a-sel input { width: 18px !important; height: 18px !important; accent-color: #4FD1C5 !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list td.is-note { font-weight: 700 !important; color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-list td.is-ven { color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop :is(.iba-n2a-list, .iba-n2a-g) em { font-style: normal !important; font-size: 11px !important; font-weight: 800 !important; padding: 2px 7px !important; border-radius: 99px !important; background: rgba(227, 201, 138, .16) !important; color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum .is-warn b { color: #F5B851 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-sum { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-g { margin: 0 0 12px !important; padding: 12px !important; border-radius: 14px !important; border: 1px solid rgba(255, 255, 255, .12) !important; background: rgba(255, 255, 255, .04) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-g.is-warn { border-color: rgba(245, 184, 81, .55) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-gh { display: flex !important; flex-wrap: wrap !important; align-items: flex-end !important; justify-content: space-between !important; gap: 10px !important; margin: 0 0 8px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-gh b { display: block !important; font-size: 15px !important; color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-gh small { font-size: 12.5px !important; color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-srv { display: flex !important; flex-direction: column !important; gap: 3px !important; min-width: min(340px, 100%) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-srv span { font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .05em !important; color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-srv input { height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; border: 1px solid rgba(127, 227, 214, .5) !important; background: rgba(19, 138, 151, .15) !important; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; font-family: ui-monospace, Consolas, monospace !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-warn { margin: 0 0 8px !important; padding: 8px 10px 8px 26px !important; border-radius: 10px !important; background: rgba(245, 184, 81, .12) !important; color: #F5D08A !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-g tr.is-old td { background: rgba(245, 184, 81, .10) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-g tr.is-bad td { background: rgba(239, 68, 68, .12) !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-g tr.is-bad em { background: rgba(239, 68, 68, .2) !important; color: #FCA5A5 !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-acts { align-items: center !important; flex-wrap: wrap !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-grow { flex: 1 1 auto !important; }
  html body:not(#iba-no1):not(#iba-no2) #iba-n2a-pop .iba-n2a-said:empty { display: none !important; }
  html body .batch-invoice-card.iba-n2a-card { box-shadow: inset 4px 0 0 #b45309 !important; }

  /* 17.0.5 patch 158: phone readable on ANY background photo (martin). One
     see-through dark glass (light frost, 55% tint) behind every panel, card,
     title and button group, plus a soft text shadow. Phone shell only. */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone { --g-bg: rgba(9,18,30,.55); --g-line: rgba(255,255,255,.15); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-head, .iba-ph-switch, .iba-ph-title, .iba-ph-urg, .iba-ph-bulk, .iba-ph-card, .iba-ph-empty, .iba-ph-search,
      .iba-mh-hi, .iba-mh-apv, .iba-mh-find, .iba-mh-cnt, .iba-mh-head, .iba-mh-grp, .iba-mh-cards > .iba-mh-card, .iba-mh-note, .iba-mh-back,
      .iba-mh-pobox, .iba-mh-sugg, .iba-mh-inv, .iba-mh-steps, .iba-mh-hist, .iba-mh-facts) {
    background: var(--g-bg) !important; border: 1px solid var(--g-line) !important;
    -webkit-backdrop-filter: blur(4px) saturate(1.2) !important; backdrop-filter: blur(4px) saturate(1.2) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.22) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-main, .iba-ph-head, .iba-ph-switch) { text-shadow: 0 1px 3px rgba(0,0,0,.7); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(input, .iba-ph-sb, .iba-ph-acts button, .iba-ph-chip, .iba-mh-chip, .iba-ph-count) { text-shadow: none; }
  /* top: name bar + Invoice/Inventory switch = one glass panel */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head { margin: 8px 10px 0 !important; padding: 10px 12px !important; border-radius: 20px 20px 0 0 !important; border-bottom: 0 !important; box-shadow: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head:has(+ .iba-ph-switch.hidden) { border-radius: 20px !important; border-bottom: 1px solid var(--g-line) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head :is(.iba-ph-who, .iba-ph-who *) { color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head :is(#iba-ph-pos, .iba-ph-who small) { color: #E3C98A !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head .iba-ph-icon { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch { margin: 0 10px !important; padding: 2px 10px 10px !important; border-radius: 0 0 20px 20px !important; border-top: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch::before { content: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch button { min-height: 50px !important; border-radius: 13px !important; background: rgba(0,0,0,.32) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; font-weight: 800 !important; opacity: 1 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch button.is-on { background: linear-gradient(180deg, #1BA3B0, #0E7C88) !important; border-color: rgba(127,227,214,.6) !important; box-shadow: 0 4px 14px rgba(14,124,136,.45), inset 0 1px 0 rgba(255,255,255,.25) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch .iba-ph-count { background: #E3C98A !important; color: #2A1E00 !important; }
  /* titles on the photo become glass bars */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-title { padding: 10px 14px !important; border-radius: 16px !important; margin-bottom: 4px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-title h2, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-hi b { color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-title span, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-hi span { color: #E3C98A !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-hi { padding: 10px 14px !important; border-radius: 16px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head { padding: 9px 14px !important; border-radius: 14px !important; align-items: center !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head b { color: #E3C98A !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-note { padding: 8px 12px !important; border-radius: 12px !important; color: #DCE6F0 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-back { border-radius: 12px !important; color: #fff !important; padding: 8px 12px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-apv { border-color: rgba(227,201,138,.5) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-apv span { color: #E3C98A !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-cnt span, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-find input::placeholder { color: #E6EDF6 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-urg { padding: 5px !important; border-radius: 16px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-urg button { color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-card .iba-ph-ln, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-card .iba-ph-note { color: #DCE6F0 !important; }
  /* My tasks grouped by status */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-groups { display: grid !important; gap: 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp { border-radius: 18px !important; overflow: hidden !important; display: grid !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp > .iba-mh-card { background: transparent !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.09) !important; border-radius: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gh { display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important; padding: 12px 14px !important; border: 0 !important; background: none !important; color: #fff !important; font: inherit !important; font-weight: 800 !important; font-size: 15.5px !important; text-align: left !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gh b { font-weight: 800 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-dot { width: 10px !important; height: 10px !important; border-radius: 99px !important; background: #94A3B8; flex: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-new .iba-mh-dot { background: #7DD3FC; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-srv .iba-mh-dot { background: #FCD34D; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-apv .iba-mh-dot { background: #E3C98A; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp:is(.is-acc, .is-paid) .iba-mh-dot { background: #86EFAC; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-stop .iba-mh-dot { background: #FCA5A5; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gn { margin-left: auto !important; min-width: 28px !important; height: 28px !important; padding: 0 8px !important; border-radius: 99px !important; display: inline-grid !important; place-items: center !important; font-size: 14px !important; background: rgba(255,255,255,.14) !important; text-shadow: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gh .fa-chevron-right { color: #B9C6D3 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-more { border: 0 !important; border-top: 1px solid rgba(255,255,255,.09) !important; background: none !important; color: #7FE3D6 !important; font: inherit !important; font-weight: 700 !important; font-size: 14px !important; text-align: left !important; padding: 11px 14px !important; }
  /* records empty state + Item Finder on the photo */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(#iba-ph-rec-host div:has(> h3), .inv-mobile-finder-head, .inv-mobile-finder-search, .inv-mobile-material-status:not(:empty)) {
    background: var(--g-bg) !important; border: 1px solid var(--g-line) !important; border-radius: 16px !important;
    -webkit-backdrop-filter: blur(4px) saturate(1.2) !important; backdrop-filter: blur(4px) saturate(1.2) !important; box-shadow: 0 8px 22px rgba(0,0,0,.22) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone #iba-ph-rec-host div:has(> h3) { padding: 18px 14px !important; margin-top: 4px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone #iba-ph-rec-host div:has(> h3) :is(h3, p) { color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-finder-head { padding: 10px 14px !important; margin-bottom: 8px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-finder-head :is(h1, h1 i) { color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-finder-head p { color: #E3C98A !important; margin: 2px 0 0 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-finder-search { padding: 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-material-status { padding: 8px 12px !important; margin-top: 8px !important; color: #E6EDF6 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .inv-mobile-finder-actions .secondary-btn { background: rgba(255,255,255,.14) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.22) !important; }
  /* main phone buttons in Claude's clay orange (martin's thank-you). Phone only. */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch button.is-on, .iba-ph-btn.is-primary) {
    background: linear-gradient(180deg, #E08B69, #C8623F) !important; border-color: rgba(255,214,196,.55) !important; color: #fff !important;
    box-shadow: 0 4px 14px rgba(200,98,63,.45), inset 0 1px 0 rgba(255,255,255,.25) !important; text-shadow: 0 1px 2px rgba(80,25,8,.45) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-btn.is-primary:disabled { opacity: .55 !important; }
  /* bold yellow text -> light clay orange to match (martin) */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-mh-ven, .iba-mh-ivven, .iba-mh-poven, .iba-mh-apv span, .iba-mh-apv b, .iba-mh-head b, .iba-ph-title span, .iba-mh-hi span, #iba-ph-pos, .iba-ph-mark, .iba-ph-item small, .iba-ph-item em, .iba-ph-item span, .inv-mobile-finder-head p) { color: #F4A584 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-mark { border-color: rgba(244,165,132,.55) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-apv { border-color: rgba(244,165,132,.5) !important; }

  /* 17.0.5 patch 159: phone approve redesign (martin, sample https://claude.ai/artifact/WCDTmY1JfkFiKpYETjTUGE).
     Side colour family on #iba-phone[data-side]: invoice yellow, inventory pink; pill switches;
     open top bar; tracker road; compact Requested / Approve with up/down; smaller faded robot;
     Claude-orange bottom bar; red outline Reject. Phone shell only. */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-ai-fab { transform: scale(.8) !important; transform-origin: bottom right !important; opacity: .4 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-qty3 { grid-template-columns: 1fr 1fr !important; align-items: end !important; padding: 8px 12px !important; column-gap: 12px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-qty3 :is(small, label) { margin: 0 0 3px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-req b { font-size: 46px !important; line-height: 74px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-step > div { display: grid !important; grid-template-columns: 1fr 44px !important; grid-template-rows: 32px 32px !important; gap: 10px 8px !important; align-items: center !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-step .iba-ph-qty-in { grid-column: 1 !important; grid-row: 1 / span 2 !important; width: 100% !important; height: 74px !important; font-size: 46px !important; font-weight: 900 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left !important; padding: 0 !important; color: #FF4FB8 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-step .iba-ph-sb { grid-column: 2 !important; width: 44px !important; height: 32px !important; border-radius: 9px !important; font-size: 14px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-step .iba-ph-sb[data-act=stk-plus] { grid-row: 1 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-step .iba-ph-sb[data-act=stk-minus] { grid-row: 2 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is([data-pane=invoice-approve], [data-pane=inventory-approve]) .iba-ph-title { display: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-bulk { padding: 6px 8px 6px 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-bulk .iba-ph-btn.is-small { min-height: 36px !important; height: 36px !important; padding: 0 12px !important; font-size: 13.5px !important; border-radius: 10px !important; width: auto !important; flex: none !important; margin-left: auto !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-bulk .iba-ph-bcnt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 8px; border-radius: 99px; background: #F4A584; color: #3A1405; font-size: 13.5px; font-weight: 800; text-shadow: none; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-item { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-route:not(.is-one) .iba-ph-end small { display: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-route:not(.is-one) .iba-ph-end b::before { content: "Site "; font-size: 13px; font-weight: 700; color: #B9C6D3; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk { display: grid; gap: 8px; padding: 6px 4px 2px; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-line { display: flex; align-items: center; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-dot { width: 18px; height: 18px; border-radius: 99px; flex: none; display: grid; place-items: center; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-dot.is-a { background: #E08B69; box-shadow: 0 0 0 4px rgba(224,139,105,.25); color: #fff; font-size: 9px; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-dot.is-b { border: 2px solid rgba(255,255,255,.55); background: rgba(9,18,30,.6); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-dash { flex: 1; height: 0; border-top: 2px dashed #E08B69; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-dash.is-b { border-top-color: rgba(255,255,255,.35); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-truck { width: 40px; height: 40px; border-radius: 99px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg,#E08B69,#C8623F); color: #fff; font-size: 17px; box-shadow: 0 4px 12px rgba(200,98,63,.45); margin: 0 4px; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-ends { display: flex; justify-content: space-between; gap: 12px; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-ends div { display: grid; gap: 1px; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-ends div:last-child { text-align: right; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-ends small { font-size: 12.5px; color: #B9C6D3; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-trk-ends b { font-size: 17px; color: #fff; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch, .iba-ph-urg) { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4px !important; padding: 5px !important; border-radius: 999px !important; background: rgba(8,12,18,.78) !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: inset 0 1px 3px rgba(0,0,0,.5) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch { margin: 0 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch, .iba-ph-urg) button { min-height: 46px !important; border-radius: 999px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #AEB8C4 !important; font-weight: 800 !important; text-shadow: none !important; transition: background .2s, color .2s !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch, .iba-ph-urg) button.is-on { color: #1A1206 !important; box-shadow: 0 4px 14px rgba(0,0,0,.35) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch button[data-side=invoice].is-on, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-urg button[data-urg=normal].is-on { background: #F5A524 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch button[data-side=inventory].is-on, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-urg button[data-urg=urgent].is-on { background: #FF6F8E !important; color: #2A0610 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch, .iba-ph-urg) button.is-on :is(i, b, .iba-ph-count) { color: inherit !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-switch, .iba-ph-urg) button.is-on :is(b, .iba-ph-count) { background: rgba(0,0,0,.18) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone { --acc: #F7BE45; --acc-line: rgba(247,190,69,.5); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone[data-side=inventory] { --acc: #FF86A3; --acc-line: rgba(255,134,163,.5); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-mh-ven, .iba-mh-ivven, .iba-mh-poven, .iba-mh-apv span, .iba-mh-apv b, .iba-mh-head b, .iba-ph-title span, .iba-mh-hi span, #iba-ph-pos, .iba-ph-mark, .iba-ph-item small, .iba-ph-item em, .iba-ph-item span, .inv-mobile-finder-head p, .iba-ph-qty3 small, .iba-ph-qty3 label, .iba-ph-bulk-text, .iba-ph-trk-ends small, .iba-ph-amount small) { color: var(--acc) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-item span.iba-ph-ith { color: var(--acc) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-mark, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-apv { border-color: var(--acc-line) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-bulk .iba-ph-bcnt { background: var(--acc) !important; color: #1A1206 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button .iba-ph-tab-ic, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button .iba-ph-tab-ic i { color: #E8916D !important; -webkit-text-fill-color: #E8916D !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button.is-on:not(.is-mid) .iba-ph-tab-ic, html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button.is-on:not(.is-mid) .iba-ph-tab-ic i { color: #FFB59A !important; -webkit-text-fill-color: #FFB59A !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button.is-mid .iba-ph-tab-ic { background: linear-gradient(180deg, #E08B69, #C8623F) !important; box-shadow: 0 8px 18px rgba(200,98,63,.5) !important; filter: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs > button.is-mid .iba-ph-tab-ic i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone { --btn: linear-gradient(180deg, #F9C15A, #EE9F1C); --btn-fg: #1A1206; --btn-glow: rgba(238,159,28,.45); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone[data-side=inventory] { --btn: linear-gradient(180deg, #FF8AA6, #F05A7E); --btn-fg: #2A0610; --btn-glow: rgba(240,90,126,.45); }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone button.iba-ph-btn.is-primary.iba-ph-btn { background: var(--btn) !important; color: var(--btn-fg) !important; border-color: rgba(255,255,255,.35) !important; box-shadow: 0 4px 14px var(--btn-glow), inset 0 1px 0 rgba(255,255,255,.35) !important; text-shadow: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-btn.is-primary i { color: inherit !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone :is(.iba-ph-btn.is-ghost-danger, .iba-ph-btn[data-act=stk-reject]) { background: transparent !important; color: #FF5A5A !important; border: 1.5px solid #FF5A5A !important; box-shadow: none !important; text-shadow: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head .iba-ph-icon { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone header.iba-ph-head.iba-ph-head { background: transparent !important; border: 0 !important; border-bottom: 2px solid rgba(255,255,255,.55) !important; border-radius: 0 !important; box-shadow: 0 1px 0 rgba(0,0,0,.25) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; margin: 6px 14px 10px !important; padding: 6px 2px 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head :is(.iba-ph-who strong, .iba-ph-icon) { text-shadow: 0 1px 4px rgba(0,0,0,.85) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head #iba-ph-pos { text-shadow: 0 1px 4px rgba(0,0,0,.85) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-mark { border: 0 !important; background: transparent !important; box-shadow: none !important; width: auto !important; padding: 0 12px 0 0 !important; margin-right: 2px !important; border-right: 3px solid var(--acc) !important; border-radius: 0 !important; height: 36px !important; font-size: 17px !important; letter-spacing: .04em !important; text-shadow: 0 1px 4px rgba(0,0,0,.85) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch { border-radius: 999px !important; margin: 0 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone header.iba-ph-head.iba-ph-head { background: linear-gradient(180deg, rgba(5,10,18,.72) 0%, rgba(5,10,18,.45) 70%, rgba(5,10,18,0) 100%) !important; margin: 0 !important; padding: 12px 16px 12px !important; border-bottom: 0 !important; box-shadow: none !important; position: relative !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone header.iba-ph-head.iba-ph-head::after { content: "" !important; position: absolute !important; left: 14px !important; right: 14px !important; bottom: 0 !important; height: 2px !important; background: rgba(255,255,255,.75) !important; box-shadow: 0 1px 3px rgba(0,0,0,.45) !important; border-radius: 2px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-switch { margin-top: 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-head #iba-ph-pos { font-weight: 700 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-ai-fab { transition: opacity .25s, transform .25s !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-ai-fab:is(:hover, :active, :focus-visible, .is-open), html body.iba-phone:not(#iba-g1):not(#iba-g2):has(#iba-ai-bubble:not([hidden])) #iba-ai-fab { opacity: 1 !important; }
  /* 17.0.5 patch 160: the qty hint never pushes the numbers out of line (only errors show, small and red, on the APPROVE label line) */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-qty3 .iba-ph-step { position: relative !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-qty3 .iba-ph-step .iba-ph-qty-hint.iba-ph-qty-hint { position: absolute !important; top: 0 !important; left: auto !important; right: 0 !important; bottom: auto !important; margin: 0 !important; font-size: 12px !important; line-height: 16px !important; font-weight: 700 !important; color: #FF8A8A !important; text-align: right !important; }
  /* 17.0.5 patch 162: date in the top bar, right of the name after a thin divider */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-brand { display: flex !important; align-items: center !important; min-width: 0 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-date { margin-left: 10px !important; padding-left: 10px !important; border-left: 1px solid rgba(255,255,255,.45) !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.85) !important; white-space: nowrap !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-date:empty { display: none !important; }
  /* 17.0.5 patch 163: list note inside the title bar, small + italic */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head.is-big { align-items: center !important; flex-wrap: nowrap !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head.is-big b { flex: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head .iba-mh-hnote { flex: 1 1 auto !important; min-width: 0 !important; margin-left: 2px !important; padding-left: 10px !important; border-left: 1px solid rgba(255,255,255,.35) !important; font-size: 12px !important; font-style: italic !important; font-weight: 500 !important; line-height: 1.25 !important; color: #DCE6F0 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-head.is-big > span { flex: none !important; }
  /* p164: invoice facts sit straight on the invoice card (no inner box) */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-inv .iba-mh-facts.iba-mh-facts { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; margin-top: 10px !important; border-radius: 0 !important; }
  /* p170: For Approval task cards open Approve; the card found there flashes */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-pc.is-apv { color: #F7BE45 !important; font-weight: 700 !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-card.is-flash { outline: 2px solid #F7BE45 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px rgba(247,190,69,.25), 0 8px 22px rgba(0,0,0,.22) !important; transition: outline-color .3s, box-shadow .3s !important; }
  /* p172: Active task / Active job groups open in place */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-acc { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gh { cursor: pointer !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gh .iba-mh-gch { margin-left: 4px !important; color: #B9C7D6 !important; transition: transform .2s !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-open .iba-mh-gch { transform: rotate(90deg) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-grp.is-open > .iba-mh-gh { border-bottom: 1px solid rgba(255,255,255,.14) !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gcards { display: grid !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gcards > .iba-mh-card { background: transparent !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.09) !important; border-radius: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-mh-gcards > .iba-mh-card:first-child { border-top: 0 !important; }

  /* 17.0.5 patch 175: Receive a delivery by scan (js/iba-1705-receive.js) - pink inventory glass */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone .iba-ph-tabs.is-six { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  html body:not(#iba-g1) #iba-rcv { position: fixed !important; inset: 0 !important; z-index: 2147482000 !important; display: none !important; flex-direction: column !important; color: #fff !important; font-family: inherit !important;
    background: linear-gradient(180deg, rgba(5,10,18,.45), rgba(5,10,18,.62)), var(--ph-photo, none) center / cover no-repeat, #1b2836 !important; text-shadow: 0 1px 3px rgba(0,0,0,.6) !important; }
  html body:not(#iba-g1) #iba-rcv.is-on { display: flex !important; }
  html body:not(#iba-g1) #iba-rcv * { box-sizing: border-box !important; }
  html body:not(#iba-g1) #iba-rcv button { font: inherit !important; cursor: pointer !important; -webkit-tap-highlight-color: transparent; }
  html body:not(#iba-g1) #iba-rcv .rcv-top { display: flex !important; align-items: center !important; gap: 12px !important; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px !important; background: linear-gradient(180deg, rgba(5,10,18,.78), rgba(5,10,18,.3)) !important; border-bottom: 2px solid rgba(255,134,163,.7) !important; font-size: 16px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-x { background: rgba(9,18,30,.55) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.25) !important; border-radius: 999px !important; padding: 8px 14px !important; font-weight: 700 !important; font-size: 14px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-body { flex: 1 !important; overflow: auto !important; padding: 12px 12px 16px !important; display: flex !important; flex-direction: column !important; gap: 10px !important; max-width: 640px !important; width: 100% !important; margin: 0 auto !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-foot { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important; background: linear-gradient(0deg, rgba(5,10,18,.92), rgba(5,10,18,.6)) !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-foot > * { max-width: 616px; width: 100%; margin: 0 auto; }
  html body:not(#iba-g1) #iba-rcv .rcv-foot[hidden] { display: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-glass { background: rgba(9,18,30,.55) !important; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 18px !important; -webkit-backdrop-filter: blur(4px) !important; backdrop-filter: blur(4px) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-cam { position: relative !important; height: min(52vh, 380px) !important; border-radius: 18px !important; overflow: hidden !important; background: #0d1622 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-cam video { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-frame { position: absolute !important; inset: 22% 14% !important; border: 3px solid #FF86A3 !important; border-radius: 16px !important; box-shadow: 0 0 0 999px rgba(0,0,0,.35) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-laser { position: absolute !important; left: 16% !important; right: 16% !important; top: 50% !important; height: 2px !important; background: #FF86A3 !important; box-shadow: 0 0 12px #FF86A3 !important; animation: rcvLaser 1.6s ease-in-out infinite alternate !important; }
  @keyframes rcvLaser { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
  html body:not(#iba-g1) #iba-rcv .rcv-camtip { position: absolute !important; bottom: 10px !important; left: 0 !important; right: 0 !important; text-align: center !important; font-size: 12px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nocam { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; padding: 20px 16px !important; text-align: center !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nocam i { font-size: 34px !important; color: #FF86A3 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nocam span, html body:not(#iba-g1) #iba-rcv .rcv-small { color: #E3C98A !important; font-size: 12px !important; text-align: center !important; margin: 0 !important; line-height: 1.4 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-msg { padding: 10px 12px !important; border-radius: 14px !important; background: rgba(255,92,108,.18) !important; border: 1px solid rgba(255,92,108,.6) !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-type { display: flex !important; gap: 8px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-type input { flex: 1 !important; min-width: 0 !important; height: 48px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.35) !important; background: rgba(9,18,30,.55) !important; color: #fff !important; padding: 0 14px !important; font-size: 16px !important; font-family: ui-monospace, Consolas, monospace !important; text-transform: uppercase !important; outline: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-type input:focus { border-color: #FF86A3 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-btn, html body:not(#iba-g1) #iba-rcv .rcv-big { background: #FF86A3 !important; color: #2a0d14 !important; border: 0 !important; border-radius: 14px !important; font-weight: 800 !important; padding: 0 18px !important; min-height: 48px !important; text-shadow: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-big { width: 100% !important; font-size: 15px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-wide { width: 100% !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-ghost { width: 100% !important; min-height: 44px !important; border-radius: 14px !important; background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.5) !important; font-weight: 700 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-row { display: flex !important; gap: 8px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-pill { flex: 1 !important; min-height: 42px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(9,18,30,.55) !important; color: #fff !important; font-weight: 700 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-pill[hidden] { display: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-pill.is-on { background: #F7BE45 !important; color: #2a1d00 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-wait { padding: 18px !important; text-align: center !important; font-weight: 700 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-stop { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; padding: 22px 16px !important; text-align: center !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-stop span { color: #E3C98A !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-ic { width: 54px !important; height: 54px !important; border-radius: 50% !important; border: 2px solid #F7BE45 !important; display: grid !important; place-items: center !important; font-size: 26px !important; color: #F7BE45 !important; font-weight: 900 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-c { font-family: ui-monospace, Consolas, monospace !important; color: #FF86A3 !important; font-size: 15px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-head { padding: 10px 12px !important; display: flex !important; flex-direction: column !important; gap: 6px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-r { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 8px !important; font-size: 12px !important; color: #E3C98A !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-r b:not(.rcv-c) { color: #fff !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-all { font-size: 12px !important; font-weight: 800 !important; color: #FF86A3 !important; background: transparent !important; border: 1px solid #FF86A3 !important; border-radius: 999px !important; padding: 6px 12px !important; min-height: 32px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-bar { height: 6px !important; border-radius: 9px !important; background: rgba(255,255,255,.15) !important; overflow: hidden !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-bar i { display: block !important; height: 100% !important; background: #3DDC97 !important; border-radius: 9px !important; transition: width .2s !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-list { overflow: hidden !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw { position: relative !important; overflow: hidden !important; border-top: 1px solid rgba(255,255,255,.09) !important; touch-action: pan-y !important; user-select: none !important; -webkit-user-select: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-list > :first-child { border-top: 0 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-bg { position: absolute !important; inset: 0 !important; display: none !important; align-items: center !important; padding: 0 16px !important; font-weight: 800 !important; font-size: 13px !important; text-shadow: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-bg-ok { background: #3DDC97 !important; color: #06281a !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-bg-no { background: #FF5C6C !important; color: #2b0508 !important; justify-content: flex-end !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.to-ok .rcv-bg-ok, html body:not(#iba-g1) #iba-rcv .rcv-sw.to-no .rcv-bg-no { display: flex !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-fg { position: relative !important; display: flex !important; align-items: center !important; gap: 10px !important; padding: 11px 12px !important; min-height: 46px !important; font-size: 14px !important; border-left: 4px solid transparent !important; background: transparent !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.to-ok .rcv-fg, html body:not(#iba-g1) #iba-rcv .rcv-sw.to-no .rcv-fg { background: rgba(9,18,30,.88) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-static { border-top: 1px solid rgba(255,255,255,.09) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-ok .rcv-fg { border-left-color: #3DDC97 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-part .rcv-fg { border-left-color: #F7BE45 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-part .rcv-q { color: #F7BE45 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-no .rcv-fg { border-left-color: #FF5C6C !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-no .rcv-nm { text-decoration: line-through !important; opacity: .65 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sw.is-no .rcv-q { color: #FF5C6C !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sn { min-width: 22px !important; height: 22px !important; border-radius: 6px !important; background: rgba(255,255,255,.14) !important; display: grid !important; place-items: center !important; font-size: 11px !important; font-weight: 800 !important; color: #E3C98A !important; flex: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nm { flex: 1 !important; min-width: 0 !important; font-weight: 600 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nm small { display: block !important; font-size: 11px !important; font-weight: 500 !important; color: #E3C98A !important; white-space: normal !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nm em { color: #F7BE45 !important; font-style: normal !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-nm em.rcv-red { color: #FF5C6C !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-q { font-family: ui-monospace, Consolas, monospace !important; font-weight: 800 !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-q.rcv-plus { color: #3DDC97 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-qbox { padding: 10px 12px 12px 16px !important; background: rgba(247,190,69,.12) !important; border-left: 4px solid #F7BE45 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; font-size: 12px !important; color: #E3C98A !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-qr { display: flex !important; align-items: center !important; gap: 10px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-qr input { flex: 1 !important; min-width: 0 !important; height: 46px !important; border-radius: 12px !important; border: 2px solid #F7BE45 !important; background: rgba(0,0,0,.35) !important; color: #fff !important; padding: 0 12px !important; font-size: 20px !important; font-weight: 800 !important; font-family: ui-monospace, Consolas, monospace !important; outline: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-of { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-chips { display: flex !important; gap: 6px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-chips button { flex: 1 !important; min-height: 40px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.35) !important; background: transparent !important; color: #fff !important; font-weight: 700 !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-chips button.is-ok { background: #F7BE45 !important; color: #2a1d00 !important; border-color: #F7BE45 !important; text-shadow: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-qerr { color: #FF8A95 !important; font-weight: 700 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-qerr:empty { display: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sum { display: flex !important; justify-content: space-between !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sum b { color: #FF86A3 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sheet { position: absolute !important; inset: 0 !important; display: flex !important; align-items: flex-end !important; justify-content: center !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sheet[hidden] { display: none !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-dim { position: absolute !important; inset: 0 !important; background: rgba(0,0,0,.4) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sbox { position: relative !important; width: calc(100% - 16px) !important; max-width: 560px !important; margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; padding: 16px !important; border-radius: 22px !important; display: flex !important; flex-direction: column !important; gap: 10px !important; background: rgba(9,18,30,.9) !important; border: 1px solid rgba(255,255,255,.18) !important; max-height: 86vh !important; overflow: auto !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sbox h3 { margin: 0 !important; font-size: 17px !important; color: #fff !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-mis { display: flex !important; justify-content: space-between !important; gap: 10px !important; font-size: 13px !important; padding: 8px 10px !important; border-radius: 12px !important; background: rgba(255,255,255,.07) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-mis b { color: #F7BE45 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-opt { display: flex !important; gap: 10px !important; align-items: flex-start !important; text-align: left !important; padding: 10px 12px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.28) !important; background: transparent !important; color: #fff !important; font-size: 13px !important; line-height: 1.35 !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-opt.is-on { border-color: #FF86A3 !important; background: rgba(255,134,163,.13) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-opt small { display: block !important; color: #E3C98A !important; font-size: 11px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-rd { width: 18px !important; height: 18px !important; border-radius: 50% !important; border: 2px solid #fff !important; flex: none !important; margin-top: 1px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-opt.is-on .rcv-rd { border-color: #FF86A3 !important; background: radial-gradient(#FF86A3 45%, transparent 50%) !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-done { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; padding: 18px !important; text-align: center !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-done span { color: #E3C98A !important; font-size: 13px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-dt { font-size: 17px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-tick { width: 56px !important; height: 56px !important; border-radius: 50% !important; background: #3DDC97 !important; display: grid !important; place-items: center !important; color: #06281a !important; font-size: 28px !important; font-weight: 900 !important; text-shadow: none !important; }
  html body.iba-rcv-open #iba-ai-panel, html body.iba-rcv-open .iba-ai-fab { visibility: hidden !important; }
  #iba-ai-panel .iba-ai-apps > .is-c2 > i { background: linear-gradient(145deg, #FF9DB4, #D9567A) !important; }
  /* 17.0.5 patch 177: tablet - Invoice/Inventory switch centred like the Home counters (it had max-width 720 but a 10px left margin) */
  html body.iba-phone:not(#iba-g1):not(#iba-g2) #iba-phone #iba-ph-switch { margin-left: max(10px, calc((100% - 720px) / 2)) !important; margin-right: max(10px, calc((100% - 720px) / 2)) !important; }

  /* 17.0.5 patch 180: Photo names window (js/iba-1705-photonames.js) */
  html body:not(#iba-g1) #iba-pn { position: fixed !important; inset: 0 !important; z-index: 2147482100 !important; display: none !important; align-items: center !important; justify-content: center !important; padding: 16px !important; }
  html body:not(#iba-g1) #iba-pn.is-on { display: flex !important; }
  html body:not(#iba-g1) #iba-pn .pn-dim { position: absolute !important; inset: 0 !important; background: rgba(0,0,0,.4) !important; }
  html body:not(#iba-g1) #iba-pn .pn-win { position: relative !important; width: min(460px, 100%) !important; max-height: calc(100vh - 32px) !important; overflow: auto !important; display: flex !important; flex-direction: column !important; gap: 10px !important; padding: 14px !important; border-radius: 18px !important;
    background: rgba(9,18,30,.82) !important; border: 1px solid rgba(255,255,255,.16) !important; -webkit-backdrop-filter: blur(4px) !important; backdrop-filter: blur(4px) !important; color: #fff !important; font-size: 14px !important; box-shadow: 0 20px 50px rgba(0,0,0,.45) !important; }
  html body:not(#iba-g1) #iba-pn * { box-sizing: border-box !important; }
  html body:not(#iba-g1) #iba-pn .pn-head { display: flex !important; align-items: center !important; gap: 10px !important; }
  html body:not(#iba-g1) #iba-pn .pn-head b { font-size: 16px !important; }
  html body:not(#iba-g1) #iba-pn .pn-cnt { font-size: 12px !important; font-weight: 800 !important; padding: 2px 9px !important; border-radius: 999px !important; background: rgba(247,190,69,.18) !important; color: #F7BE45 !important; max-width: 220px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-pn .pn-x { margin-left: auto !important; width: 32px !important; height: 32px !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.2) !important; background: transparent !important; color: #fff !important; cursor: pointer !important; padding: 0 !important; }
  html body:not(#iba-g1) #iba-pn .pn-add, html body:not(#iba-g1) #iba-pn .pn-srch { display: flex !important; gap: 8px !important; align-items: center !important; }
  html body:not(#iba-g1) #iba-pn input[type="text"], html body:not(#iba-g1) #iba-pn input[type="search"] { flex: 1 !important; min-width: 0 !important; height: 40px !important; border-radius: 11px !important; border: 1px solid rgba(255,255,255,.3) !important; background: rgba(0,0,0,.28) !important; color: #fff !important; padding: 0 12px !important; font-size: 14px !important; font-family: inherit !important; outline: none !important; }
  html body:not(#iba-g1) #iba-pn input:focus { border-color: #F7BE45 !important; }
  html body:not(#iba-g1) #iba-pn .pn-go { height: 40px !important; padding: 0 16px !important; border-radius: 11px !important; border: 0 !important; background: #F7BE45 !important; color: #2a1d00 !important; font-weight: 800 !important; font-size: 14px !important; cursor: pointer !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-pn .pn-go[disabled] { opacity: .5 !important; cursor: default !important; }
  html body:not(#iba-g1) #iba-pn .pn-wide { width: 100% !important; min-height: 44px !important; }
  html body:not(#iba-g1) #iba-pn .pn-up { display: flex !important; align-items: center !important; justify-content: center !important; height: 36px !important; border-radius: 10px !important; border: 1px dashed rgba(247,190,69,.7) !important; color: #F7BE45 !important; font-weight: 700 !important; font-size: 13px !important; cursor: pointer !important; }
  html body:not(#iba-g1) #iba-pn .pn-srch { border-top: 1px solid rgba(255,255,255,.14) !important; padding-top: 10px !important; }
  html body:not(#iba-g1) #iba-pn .pn-srch span { color: #E3C98A !important; font-size: 18px !important; }
  html body:not(#iba-g1) #iba-pn .pn-msg { font-size: 13px !important; padding: 8px 12px !important; border-radius: 10px !important; line-height: 1.4 !important; }
  html body:not(#iba-g1) #iba-pn .pn-msg.is-ok { background: rgba(61,220,151,.12) !important; border: 1px solid rgba(61,220,151,.5) !important; color: #bff5dc !important; }
  html body:not(#iba-g1) #iba-pn .pn-msg.is-warn, html body:not(#iba-g1) #iba-pn .pn-msg.is-wait { background: rgba(247,190,69,.1) !important; border: 1px solid rgba(247,190,69,.5) !important; color: #F3DFA8 !important; }
  html body:not(#iba-g1) #iba-pn .pn-msg.is-err { background: rgba(255,92,108,.12) !important; border: 1px solid rgba(255,92,108,.55) !important; color: #FFB3BA !important; }
  html body:not(#iba-g1) #iba-pn .pn-pick { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin-top: 6px !important; }
  html body:not(#iba-g1) #iba-pn .pn-pick button { padding: 6px 10px !important; border-radius: 9px !important; border: 1px solid rgba(247,190,69,.6) !important; background: transparent !important; color: #F7BE45 !important; font-weight: 700 !important; font-size: 12.5px !important; cursor: pointer !important; font-family: ui-monospace, Consolas, monospace !important; }
  html body:not(#iba-g1) #iba-pn .pn-list { list-style: none !important; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 12px !important; overflow: hidden !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li { display: flex !important; align-items: center !important; gap: 10px !important; padding: 7px 10px !important; font-size: 13px !important; border-top: 1px solid rgba(255,255,255,.07) !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li:first-child { border-top: 0 !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li span { flex: 1 !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-family: ui-monospace, Consolas, monospace !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li em { font-size: 11px !important; color: #3DDC97 !important; font-style: normal !important; font-weight: 700 !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li em.pn-ext { color: #E3C98A !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li.is-new { background: rgba(61,220,151,.1) !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li.pn-empty { color: #E3C98A !important; justify-content: center !important; }
  html body:not(#iba-g1) #iba-pn .pn-list li button { width: 26px !important; height: 26px !important; flex: none !important; border-radius: 7px !important; border: 1px solid rgba(255,92,108,.45) !important; background: transparent !important; color: #FF8A95 !important; font-size: 12px !important; cursor: pointer !important; padding: 0 !important; }
  html body:not(#iba-g1) #iba-pn .pn-more { font-size: 12px !important; color: #E3C98A !important; text-align: center !important; }
  html body:not(#iba-g1) #iba-pn .pn-sum { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; }
  html body:not(#iba-g1) #iba-pn .pn-tag { font-size: 11px !important; font-weight: 800 !important; padding: 2px 8px !important; border-radius: 999px !important; white-space: nowrap !important; }
  html body:not(#iba-g1) #iba-pn .t-new { background: rgba(61,220,151,.15) !important; color: #3DDC97 !important; }
  html body:not(#iba-g1) #iba-pn .t-dup, html body:not(#iba-g1) #iba-pn .t-wait { background: rgba(255,255,255,.1) !important; color: #c9d4df !important; }
  html body:not(#iba-g1) #iba-pn .t-ask { background: rgba(247,190,69,.15) !important; color: #F7BE45 !important; }
}

/* 17.0.5 patch 181: taller Receive-a-delivery rows (phone 60px, tablet 74px) */
@layer iba-ui {
html body:not(#iba-g1) #iba-rcv .rcv-fg { min-height: 60px !important; padding: 14px 14px !important; font-size: 15.5px !important; gap: 12px !important; }
html body:not(#iba-g1) #iba-rcv .rcv-sn { min-width: 26px !important; height: 26px !important; font-size: 12.5px !important; border-radius: 8px !important; }
html body:not(#iba-g1) #iba-rcv .rcv-q { font-size: 15.5px !important; }
html body:not(#iba-g1) #iba-rcv .rcv-bg { font-size: 14px !important; }
@media (min-width: 700px) {
  html body:not(#iba-g1) #iba-rcv .rcv-body { max-width: 760px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-fg { min-height: 74px !important; padding: 18px 20px !important; font-size: 18px !important; gap: 16px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-sn { min-width: 32px !important; height: 32px !important; font-size: 14px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-q { font-size: 18px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-head { padding: 14px 18px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-r { font-size: 14px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-c { font-size: 18px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-all { font-size: 14px !important; padding: 8px 16px !important; min-height: 38px !important; }
  html body:not(#iba-g1) #iba-rcv .rcv-small { font-size: 13.5px !important; }
}
}

/* 17.0.5 patch 183 (martin): ONE PO card everywhere (js/iba-1705-pocard.js) */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po { display: flex !important; flex-direction: column !important; gap: 12px !important; padding: 16px !important; margin: 0 !important; border-radius: 16px !important; background: #162636 !important; border: 1px solid rgba(255,255,255,.14) !important; box-shadow: none !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; text-align: left !important; min-width: 0 !important; font-family: inherit !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po * { box-sizing: border-box !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-lbl { display: block !important; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .6px !important; text-transform: uppercase !important; color: #D6E0EA !important; -webkit-text-fill-color: #D6E0EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-top { display: flex !important; align-items: flex-start !important; gap: 10px !important; padding: 0 0 12px !important; border-bottom: 1px solid rgba(255,255,255,.14) !important; cursor: default !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-top[data-u-toggle] { cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pono-w { display: flex !important; flex-direction: column !important; flex: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pono { font-size: 30px !important; line-height: 1.1 !important; font-weight: 800 !important; letter-spacing: .5px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pills { flex: 1 1 auto !important; min-width: 0 !important; margin-left: auto !important; display: flex !important; flex-wrap: wrap !important; justify-content: flex-end !important; gap: 6px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pills :is(.iba-u-cnt, .iba-fin-btn) { display: inline-flex !important; align-items: center !important; gap: 8px !important; min-height: 36px !important; padding: 0 14px !important; border-radius: 999px !important; border: 0 !important; background: rgba(255,255,255,.1) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font: inherit !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer !important; white-space: nowrap !important; box-shadow: none !important; width: auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pills .iba-fin-btn { background: rgba(94,214,196,.14) !important; color: #5ED6C4 !important; -webkit-text-fill-color: #5ED6C4 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pills .iba-fin-btn[aria-expanded="true"] { background: rgba(94,214,196,.28) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-cnt i { font-size: 11px !important; transition: transform .2s !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po.is-open .iba-u-cnt i { transform: rotate(180deg) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-ven-w { display: flex !important; flex-direction: column !important; gap: 2px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-ven { font-size: 19px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; overflow-wrap: anywhere !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-site { padding-top: 12px !important; border-top: 1px solid rgba(255,255,255,.14) !important; font-size: 15px !important; font-weight: 800 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-site i { color: #FF6B8A !important; -webkit-text-fill-color: #FF6B8A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-site span { font-weight: 600 !important; font-size: 12.5px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; padding-top: 12px !important; border-top: 1px solid rgba(255,255,255,.14) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig > div { padding: 0 10px !important; border-left: 1px solid rgba(255,255,255,.14) !important; min-width: 0 !important; background: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig > div:first-child { padding-left: 0 !important; border-left: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig b { display: block !important; margin-top: 4px !important; font-size: min(16px, 4.4cqi) !important; font-weight: 800 !important; font-variant-numeric: tabular-nums !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po { container-type: inline-size !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig > div { padding: 0 6px 0 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig .is-bal :is(.iba-u-lbl, b) { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-fig .is-ok :is(.iba-u-lbl, b) { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-list { display: flex !important; flex-direction: column !important; padding-top: 6px !important; border-top: 1px solid rgba(255,255,255,.14) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po:not(.is-open) > .iba-u-list { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-lh { display: flex !important; justify-content: space-between !important; padding: 4px 2px 8px !important; font-size: 11.5px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-inv { display: grid !important; grid-template-columns: 30px minmax(0, 1fr) auto !important; gap: 4px 10px !important; align-items: center !important; padding: 11px 4px 11px 0 !important; margin: 0 !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important; background: none !important; text-align: left !important; width: 100% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-inv[data-trk-open] { cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-inv[data-trk-open]:hover { background: rgba(255,255,255,.04) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-lh + .iba-u-inv { border-top: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-n { grid-row: 1 / span 3 !important; align-self: start !important; width: 26px !important; height: 26px !important; border-radius: 8px !important; background: rgba(255,255,255,.1) !important; display: grid !important; place-items: center !important; font-size: 12px !important; font-weight: 800 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-no { font-family: ui-monospace, Consolas, monospace !important; font-weight: 700 !important; font-size: 14px !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-amt { font-weight: 800 !important; font-size: 15px !important; text-align: right !important; font-variant-numeric: tabular-nums !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-d { font-size: 12.5px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-d.is-r { text-align: right !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-d b { font-weight: 600 !important; color: #E8EEF4 !important; -webkit-text-fill-color: #E8EEF4 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-links { display: flex !important; gap: 6px !important; justify-content: flex-end !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-lk { display: inline-block !important; padding: 3px 9px !important; border-radius: 7px !important; border: 1px solid rgba(111,179,255,.5) !important; font-size: 11px !important; font-weight: 800 !important; text-decoration: none !important; color: #6FB3FF !important; -webkit-text-fill-color: #6FB3FF !important; background: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stl { grid-column: 2 / span 2 !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 8px !important; font-size: 12.5px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot { width: 9px !important; height: 9px !important; border-radius: 50% !important; flex: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn { font-weight: 800 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-who { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot.is-proc { background: #6FB3FF !important; } html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn.is-proc { color: #6FB3FF !important; -webkit-text-fill-color: #6FB3FF !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot.is-apv { background: #F7A531 !important; } html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn.is-apv { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot.is-acc { background: #FF8FB1 !important; } html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn.is-acc { color: #FF8FB1 !important; -webkit-text-fill-color: #FF8FB1 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot.is-paid { background: #3DDC97 !important; } html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn.is-paid { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-dot.is-stop { background: #FF6B6B !important; } html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-stn.is-stop { color: #FF6B6B !important; -webkit-text-fill-color: #FF6B6B !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po .iba-trk-none { margin: 0 !important; font-size: 13px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po .iba-trk-poacts { display: flex !important; justify-content: flex-end !important; margin: 0 !important; padding: 0 !important; }
  /* Finance inside the card */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po .iba-fin-sheet.is-u { display: flex !important; flex-direction: column !important; gap: 12px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po .iba-fin-sheet.is-u[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-po .iba-fin-sheet.is-u .iba-fin-none { margin: 0 !important; font-size: 13px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-note { display: flex !important; gap: 8px !important; align-items: flex-start !important; padding: 8px 11px !important; border-radius: 10px !important; background: rgba(247,190,69,.08) !important; border: 1px solid rgba(247,190,69,.35) !important; font-size: 12px !important; line-height: 1.45 !important; color: #E9D9AE !important; -webkit-text-fill-color: #E9D9AE !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-note i { margin-top: 2px !important; color: #F7BE45 !important; -webkit-text-fill-color: #F7BE45 !important; }
  /* the PO card inside the invoice detail: no second box around it */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) :is(.iba-trk-r-po, .iba-trk-pohead, .iba-trk-po.is-u):has(> .iba-u-po) { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #iba-ai-panel .iba-trk-po.is-u { margin: 0 0 14px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-trk-r-hero.is-u .iba-trk-r-amtl { margin-top: 2px !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: .6px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-trk-r-hero.is-u .iba-trk-r-amt { margin-top: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-trk-r-hero.is-u .iba-trk-r-inv:not(:has(.iba-ai-urg-badge)) { display: none !important; }
  @media (max-width: 380px) { html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-pono { font-size: 26px !important; } }
}
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-mob-v2-po.is-u { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
}
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-inv[data-rec-open] { cursor: pointer !important; }
}
/* 17.0.5 patch 187: invoice remarks (the Note) until With Accounts */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-remark { display: flex !important; flex-direction: column !important; gap: 6px !important; padding: 12px 14px !important; border-radius: 14px !important; background: rgba(247,190,69,.08) !important; border: 1px solid rgba(247,190,69,.4) !important; text-align: left !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-remark .iba-u-lbl { color: #F7BE45 !important; -webkit-text-fill-color: #F7BE45 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-remark p { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; color: #F3E7C6 !important; -webkit-text-fill-color: #F3E7C6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-u-notei { margin-left: 2px !important; font-size: 12.5px !important; color: #F7BE45 !important; -webkit-text-fill-color: #F7BE45 !important; }
}
/* 17.0.5 patch 189: Super Admin "Delete & undo" (js/iba-1705-txundo.js) */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-btn { display: inline-flex !important; align-items: center !important; gap: 5px !important; margin: 2px 0 2px 5px !important; padding: 3px 8px !important; border-radius: 6px !important; border: 1px solid rgba(255,107,107,.6) !important; background: rgba(255,107,107,.12) !important; color: #FF8A8A !important; -webkit-text-fill-color: #FF8A8A !important; font: inherit !important; font-size: 11.5px !important; font-weight: 700 !important; cursor: pointer !important; white-space: nowrap !important; width: auto !important; min-height: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-ov { position: fixed !important; inset: 0 !important; z-index: 2147482900 !important; display: grid !important; place-items: center !important; padding: 16px !important; background: rgba(5,10,18,.55) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-box { width: min(520px, 100%) !important; max-height: 90vh !important; overflow: auto !important; display: flex !important; flex-direction: column !important; gap: 10px !important; padding: 18px !important; border-radius: 18px !important; background: rgba(22,38,54,.96) !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: 0 20px 60px rgba(0,0,0,.45) !important; color: #E8EEF4 !important; -webkit-text-fill-color: #E8EEF4 !important; font-size: 14px !important; text-align: left !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-box h3 { margin: 0 !important; font-size: 18px !important; color: #FF8A8A !important; -webkit-text-fill-color: #FF8A8A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-box p { margin: 0 !important; line-height: 1.45 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-muted { color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-tbl { width: 100% !important; border-collapse: collapse !important; font-size: 14px !important; background: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-tbl :is(th, td) { padding: 7px 6px !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; text-align: left !important; background: none !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-tbl th { font-size: 11px !important; letter-spacing: .5px !important; text-transform: uppercase !important; color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-tbl td.is-neg b { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-warn { padding: 9px 11px !important; border-radius: 10px !important; background: rgba(247,165,49,.1) !important; border: 1px solid rgba(247,165,49,.45) !important; color: #F7C77A !important; -webkit-text-fill-color: #F7C77A !important; font-size: 13px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-lbl { display: flex !important; flex-direction: column !important; gap: 5px !important; font-size: 12.5px !important; color: #B9C7D6 !important; -webkit-text-fill-color: #B9C7D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-lbl input { padding: 9px 10px !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(0,0,0,.25) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font: inherit !important; font-size: 14px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-acts { display: flex !important; justify-content: flex-end !important; gap: 8px !important; margin-top: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-acts button { padding: 9px 16px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(255,255,255,.08) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font: inherit !important; font-weight: 700 !important; cursor: pointer !important; width: auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) .iba-txundo-acts button.is-danger { background: #D9434A !important; border-color: #D9434A !important; }
}
/* 17.0.5 patch 191: rain setting (js/iba-1705-rain.js) */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-opts { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin: 10px 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-opts [data-rain].is-on { background: rgba(94,214,196,.22) !important; border-color: rgba(94,214,196,.7) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  /* 17.0.5 patch 218: thunder buttons (gold when on, faded when the page has no rain) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-thunder-opts [data-thunder].is-on { background: rgba(232,197,71,.20) !important; border-color: rgba(232,197,71,.75) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-thunder-opts [data-thunder] i { color: #e8c547 !important; -webkit-text-fill-color: #e8c547 !important; margin-right: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-thunder-opts [data-thunder]:disabled { opacity: .4 !important; cursor: not-allowed !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings [data-thunder-test] { margin-right: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings [data-thunder-test][hidden] { display: none !important; }
}
/* 17.0.5 patch 192: rain per page rows */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 14px !important; padding: 6px 0 !important; border-top: 1px solid rgba(255,255,255,.10) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row .iba-rain-pg { flex: 0 0 190px !important; font-weight: 600 !important; color: #F4F1EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row .iba-rain-pg i { width: 18px !important; opacity: .75 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row .iba-rain-opts { margin: 0 !important; }
}
/* 17.0.5 patch 193: video picker per page */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row .iba-rain-vid { display: inline-flex !important; align-items: center !important; gap: 6px !important; margin-left: auto !important; color: #F4F1EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-shell-bg-settings .iba-rain-row .iba-rain-vid select { min-width: 170px !important; height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; background: rgba(255,255,255,.92) !important; color: #13202C !important; -webkit-text-fill-color: #13202C !important; border: 1px solid rgba(255,255,255,.4) !important; font-weight: 600 !important; }
}
/* 17.0.5 patch 195: Material Stock buttons darker; Transfer its own blue (sites clicked Restock by mistake);
   More tools purple = admin tools */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-stock-action-btn,
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-refresh-btn {
    background: #0A2229 !important; background-color: #0A2229 !important; border: 1px solid rgba(23, 160, 174, 0.55) !important;
    color: #E6F4F6 !important; -webkit-text-fill-color: #E6F4F6 !important; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-stock-action-btn:hover,
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-refresh-btn:hover { background: #0F3440 !important; background-color: #0F3440 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-refresh-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  /* Transfer: solid blue, stands apart from Restock / Usage */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-transfer-action-btn {
    background: linear-gradient(180deg, #2563EB, #1D4ED8) !important; background-color: #1D4ED8 !important; border: 1px solid #93C5FD !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; box-shadow: 0 6px 16px rgba(29, 78, 216, 0.45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-transfer-action-btn:hover { background: linear-gradient(180deg, #3B82F6, #2563EB) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-transfer-action-btn i { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
  /* a little gap so the three are not one block */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock #ms-transfer-action-btn { margin-right: 10px !important; }
  /* More tools: purple = admin */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .iba-msm-more {
    background: #24163A !important; border: 1px solid rgba(167, 139, 250, 0.75) !important; color: #DDD6FE !important; -webkit-text-fill-color: #DDD6FE !important; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .iba-msm-more i { color: #C4B5FD !important; -webkit-text-fill-color: #C4B5FD !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .iba-msm-more:hover,
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .iba-msm.is-open .iba-msm-more { background: #33205A !important; }
}
/* 17.0.5 patch 197: copy icon (js/iba-1705-copyinv.js) + Material Stock photo buttons all one style */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 22px !important; height: 22px !important; min-width: 0 !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 0 0 6px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important;
    color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; font-size: 12px !important; cursor: pointer !important; vertical-align: middle !important; opacity: .75 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy:hover { opacity: 1 !important; background: rgba(127, 214, 222, 0.16) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy.is-done { opacity: 1 !important; color: #4ADE80 !important; -webkit-text-fill-color: #4ADE80 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body .iba-cpy-wrap { position: relative; display: block; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy-wrap > input { padding-right: 34px !important; width: 100% !important; box-sizing: border-box !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) .iba-cpy-wrap > .iba-cpy.is-field { position: absolute !important; right: 6px !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important; width: 26px !important; height: 26px !important; font-size: 13px !important; }

  /* Material Stock photo card: Open / Browse / Remove look like one set (Open Photo was a big solid teal link) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-photo-actions > :is(a, button).secondary-btn {
    display: inline-flex !important; align-items: center !important; gap: 7px !important; height: 34px !important; padding: 0 12px !important; border-radius: 10px !important;
    font-size: 12.5px !important; font-weight: 700 !important; line-height: 1 !important; text-decoration: none !important; white-space: nowrap !important;
    background: #0A2229 !important; background-color: #0A2229 !important; border: 1px solid rgba(23, 160, 174, 0.45) !important; box-shadow: none !important;
    color: #E6F4F6 !important; -webkit-text-fill-color: #E6F4F6 !important; transform: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-photo-actions > :is(a, button).secondary-btn:hover { background: #0F3440 !important; background-color: #0F3440 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-photo-actions > :is(a, button).secondary-btn i { color: #7FD6DE !important; -webkit-text-fill-color: #7FD6DE !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-photo-actions > .ms-clear-photo-btn.secondary-btn { border-color: rgba(239, 68, 68, 0.5) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock .ms-photo-actions > .ms-clear-photo-btn.secondary-btn i { color: #F87171 !important; -webkit-text-fill-color: #F87171 !important; }
}

/* 17.0.5 patch 198: hide empty areas until there is something to show (js/iba-1705-empty.js, PC only) */
@layer iba-ui {
  /* patch 207: Job Records / Work History "Pick a category" line on its own row under the tabs */
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-reporting.iba-empty > .iba-empty-hint.iba-eh-jobs { order: 3 !important; flex: 1 1 100% !important; width: 100% !important; max-width: none !important; box-sizing: border-box !important; }
  /* patch 208: Work History status column */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #wd-reporting td.inv-status-cell { white-space: normal !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #wd-reporting td.inv-status-cell .iba-wh-st { display: inline-block; margin: 1px 2px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #EBD8A8 !important; -webkit-text-fill-color: #EBD8A8 !important; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
  /* patch 209: Fix transfer (Super Admin) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-pb-box.iba-tx-box { width: min(920px, 96vw) !important; max-width: 96vw !important; max-height: 90vh; overflow: auto; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-pb-head { display: flex; align-items: center; justify-content: space-between; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-x { background: transparent !important; border: 0 !important; color: inherit !important; font-size: 18px; box-shadow: none !important; cursor: pointer; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-pb-sub > p { color: #DCE7EE !important; -webkit-text-fill-color: #DCE7EE !important; margin: 4px 0 10px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-find { display: flex; gap: 8px; margin-bottom: 12px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-find input, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(9,11,14,.75) !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; font-size: 13.5px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-find input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix select { width: 100% !important; min-width: 0; height: 38px !important; min-height: 0 !important; padding: 0 30px 0 10px !important; margin: 0 !important; line-height: normal !important; box-sizing: border-box !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix select:disabled { opacity: .55; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix select option { background: #111418; color: #EEF3F8; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-btn { height: 36px !important; min-height: 0 !important; padding: 0 14px !important; border-radius: 99px !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(255,255,255,.07) !important; color: #EEF3F8 !important; -webkit-text-fill-color: #EEF3F8 !important; font-weight: 700; cursor: pointer; box-shadow: none !important; display: inline-flex !important; align-items: center; gap: 6px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-btn.is-go { background: #0f766e !important; border-color: #14b8a6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-btn:disabled { opacity: .5; cursor: default; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-top small, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines small { color: #A9B6C2; display: block; font-size: 11.5px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-cid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; color: #fff; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); font-size: 11.5px; font-weight: 700; color: #DCE7EE; margin-left: 4px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-pill.is-step { color: #EBD8A8; border-color: rgba(227,201,138,.45); }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-note { margin: 8px 0 10px; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; font-size: 12.5px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-bad { color: #ff9b9b !important; -webkit-text-fill-color: #ff9b9b !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-ok { color: #7FE3D6; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-f label { -webkit-text-fill-color: #E3C98A !important; opacity: 1 !important; display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #E3C98A !important; margin-bottom: 4px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-f label em { text-transform: none; letter-spacing: 0; font-weight: 500; -webkit-text-fill-color: #A9B6C2 !important; color: #A9B6C2; font-style: normal; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines { margin-top: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; overflow: auto; max-height: 40vh; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines th { position: sticky; top: 0; background: #0E1013 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; text-align: left; padding: 7px 8px; z-index: 1; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines td { padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.08); vertical-align: middle; color: #EEF3F8; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines .r { text-align: right; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-lines select { height: 34px !important; min-width: 170px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-msg { font-size: 12.5px; color: #EBD8A8; flex: 1 1 260px; }
  @media (max-width: 640px) { html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-trfix .iba-tx-grid { grid-template-columns: 1fr; } }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #wd-reporting .iba-tx-rowbtn { width: 26px; height: 24px; min-height: 0 !important; padding: 0 !important; margin-right: 5px; border-radius: 6px !important; border: 1px solid rgba(227,201,138,.45) !important; background: rgba(227,201,138,.1) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-size: 11px; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important; vertical-align: middle; }
  .iba-empty-hint { display: none; }
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(#wd-activetask, #inv-active-job).iba-empty > .iba-empty-hint.iba-eh-tasks,
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-reporting.iba-empty > .iba-empty-hint.iba-eh-jobs,
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock.iba-empty .iba-empty-hint.iba-eh-stock {
    display: flex !important; align-items: center; gap: 10px; margin: 14px 0 0; padding: 14px 18px; border-radius: 12px;
    background: rgba(8, 12, 22, .42) !important; border: 1px solid rgba(255,255,255,.10); color: #CFE3EA !important; -webkit-text-fill-color: #CFE3EA !important; font-size: 14px; }
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-empty-hint i { color: #5EEAD4 !important; -webkit-text-fill-color: #5EEAD4 !important; }
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-activetask.iba-empty > :is(.wd-premium-searchbar, #active-task-filters, #active-task-date-tabs, #active-task-summary-strip, .form-buttons-container, #financeBatchControls, .table-wrapper),
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #inv-active-job.iba-empty > :is(.inv-job-searchbar, #inv-active-job-filters, #inv-active-job-date-tabs, #inv-active-job-summary-strip, .table-wrapper),
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting.iba-empty :is(.iba-records-sheet, #im-reporting-grand-total-container),
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry.iba-empty #im-modal-po-details,
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-reporting.iba-empty :is(#job-records-summary-strip, #reporting-printable-area),
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #wd-material-stock.iba-empty .ms-premium-tablewrap,
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-summary-note.iba-sn-empty .iba-summary-pdf-pane { display: none !important; }
  /* Summary Note left panel: Prev Summary + Print above Full refresh */
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-summary-note .iba-sn-tools { grid-column: 1 / -1 !important; display: flex; gap: 8px; margin: 0 0 8px; }
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-summary-note .iba-sn-tools > button { flex: 1 1 0; min-width: 0; justify-content: center; display: inline-flex !important; align-items: center; gap: 8px; padding: 9px 10px !important; font-size: .85rem !important; border-radius: 10px !important; }
  html body.iba-empty-on:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-summary-note .iba-sn-tools > button.iba-sn-off { opacity: .42 !important; cursor: not-allowed !important; filter: grayscale(.6); }
}

/* 17.0.5 patch 201: Empty merged items window (same look as Undo a merge) */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2) #iba-mclean .iba-pb-box.iba-um-box { width: min(980px, 96vw) !important; max-width: 96vw !important; }
  html body #iba-mclean .iba-pb-head { display: flex; align-items: center; justify-content: space-between; }
  html body:not(#iba-no1):not(#iba-no2) #iba-mclean .iba-um-x { background: transparent !important; border: 0 !important; color: inherit !important; font-size: 18px; box-shadow: none !important; cursor: pointer; }
  html body #iba-mclean .iba-um-scroll { max-height: 60vh; overflow: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; margin-top: 8px; }
  html body #iba-mclean .iba-um-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  html body #iba-mclean .iba-um-table th { position: sticky; top: 0; background: rgba(12, 24, 40, .96); color: #E3C98A; text-align: left; padding: 7px 8px; }
  html body #iba-mclean .iba-um-table td { padding: 7px 8px; border-top: 1px solid rgba(255, 255, 255, .08); vertical-align: top; color: #eef3f8; }
  html body #iba-mclean .iba-um-table tr.is-done td { opacity: .5; }
  html body:not(#iba-no1):not(#iba-no2) #iba-mclean .iba-um-btn { height: 30px !important; min-height: 0 !important; padding: 0 12px !important; border-radius: 99px !important; border: 1px solid rgba(255, 155, 155, .7) !important; background: rgba(220, 53, 69, .25) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12px !important; white-space: nowrap; cursor: pointer; display: inline-flex !important; align-items: center; gap: 6px; }
  html body #iba-mclean .iba-um-done { color: #7FE3D6; font-size: 11.5px; white-space: nowrap; }
  html body #iba-mclean .iba-um-bad { color: #ff9b9b; }
  html body #iba-mclean .iba-um-ok { color: #7FE3D6; }
  html body #iba-mclean .iba-um-msg { margin-top: 8px; min-height: 1em; }
  html body #iba-mclean .iba-um-names { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(227, 201, 138, .08); border: 1px solid rgba(227, 201, 138, .35); }
  html body #iba-mclean .iba-um-names p { margin: 0 0 8px; color: #EBD8A8; }
  html body #iba-mclean .iba-um-namerow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 8px; align-items: center; margin-top: 6px; }
  html body #iba-mclean .iba-um-namerow input { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: #0E1D2D; color: #EEF3F8; -webkit-text-fill-color: #EEF3F8; font-size: 14px; min-width: 0; }
  html body #iba-mclean .iba-um-namerow input:focus { outline: 0; border-color: #E3C98A; }
  html body #iba-mclean .iba-um-table td.r, html body #iba-mclean .iba-um-table th.r { text-align: right; }
  html body #iba-mclean .iba-mc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-mclean .iba-pb-sub > p, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-mclean .iba-mc-all { color: #DCE7EE !important; -webkit-text-fill-color: #DCE7EE !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-mclean .iba-pb-sub > p b { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) #iba-mclean .iba-um-table thead th { background: #0E1013 !important; background-color: #0E1013 !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body #iba-mclean .iba-mc-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  html body:not(#iba-no1):not(#iba-no2) #iba-mclean .iba-um-btn:disabled { opacity: .45; cursor: default; }
}
/* 17.0.5 patch 202/203: Batch Entry Search PO - "Not in records yet - add as new invoice" (same look as the other buttons) */
@layer iba-ui {
  html body #im-batch-search-modal .iba-bn-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 4px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #im-batch-search-modal .iba-bn-btn {
    height: 40px !important; padding: 0 16px !important; border-radius: 11px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; width: auto !important;
    font-weight: 700 !important; background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .16) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; box-shadow: none !important; cursor: pointer; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #im-batch-search-modal .iba-bn-btn:hover { background: rgba(255, 255, 255, .10) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #im-batch-search-modal .iba-bn-btn i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #im-batch-search-modal .iba-bn-wrap small { color: #A3B1BC !important; -webkit-text-fill-color: #A3B1BC !important; font-size: 12px; }
}

/* 17.0.5 patch 203: Dashboard tools in Settings, Weekly report button gone (skill does it), screensaver */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-wr-btn { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-dash-tools .iba-dt-btns { display: flex; flex-wrap: wrap; gap: 10px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-dash-tools .iba-dt-btns > button { height: 40px !important; padding: 0 16px !important; border-radius: 11px !important; width: auto !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-dash-tools .iba-dt-btns > :is(button.hidden, #iba-wr-btn) { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-dash-tools .iba-dt-note { margin: 10px 0 0 !important; font-size: 12.5px; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-toggle { height: 40px !important; padding: 0 16px !important; border-radius: 11px !important; width: auto !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-toggle.is-on { border-color: rgba(94, 214, 196, .7) !important; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-toggle.is-on i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-admin { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .10); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-admin[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-admin-t { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-admin label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #A3B1BC !important; -webkit-text-fill-color: #A3B1BC !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-admin select { height: 38px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-acts > button { height: 38px !important; padding: 0 16px !important; width: auto !important; margin: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-note { font-size: 12.5px; color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6) #iba-ss-settings .iba-ss-note.is-bad { color: #F87171 !important; -webkit-text-fill-color: #F87171 !important; }
}
/* screensaver layer (outside the layer so nothing in the app can sit above it) */
#iba-ss { position: fixed; inset: 0; z-index: 2147483600; background: #000; opacity: 0; transition: opacity .25s ease; cursor: none; overflow: hidden; }
#iba-ss.is-in { opacity: 1; }
#iba-ss video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
#iba-ss video.is-on { opacity: 1; }
#iba-ss .iba-ss-clock { position: absolute; left: 6vw; bottom: 9vh; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); font-family: inherit; }
#iba-ss .iba-ss-time { font-size: clamp(64px, 9vw, 150px); font-weight: 200; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#iba-ss .iba-ss-time small { font-size: .28em; font-weight: 400; margin-left: .25em; letter-spacing: .04em; }
#iba-ss .iba-ss-date { margin-top: 10px; font-size: clamp(16px, 1.6vw, 24px); font-weight: 400; opacity: .9; }
#iba-ss .iba-ss-hint { position: absolute; right: 4vw; bottom: 5vh; color: rgba(255, 255, 255, .55); font-size: 13px; }


/* 17.0.5 patch 211: pinned side panel hid the Actions column (10) of inventory Work History (old iba-shell.css rule), so the Fix transfer wrench was invisible. Keep Actions for inventory records. */
html body.iba-sidebar-pinned #wd-reporting #reporting-printable-area table.inv-job-records-table:is(table) th:nth-child(10),
html body.iba-sidebar-pinned #wd-reporting #reporting-printable-area table.inv-job-records-table:is(table) td:nth-child(10),
html body.iba-sidebar-pinned #wd-reporting #job-records-table.inv-job-records-table:is(table) th:nth-child(10),
html body.iba-sidebar-pinned #wd-reporting #job-records-table.inv-job-records-table:is(table) td:nth-child(10) { display: table-cell !important; }

/* 18.0.0 patch 5: All skills sorted - gold group title, count and line, thin divider between groups */
@layer iba-ui {
  html body #iba-ai-panel #iba-ai-skills .iba-ai-skill-group.is-sorted + .iba-ai-skill-group.is-sorted { border-top: 1px solid rgba(255, 255, 255, .09) !important; padding-top: 12px !important; margin-top: 6px !important; }
  html body #iba-ai-panel #iba-ai-skills .iba-ai-sub.iba-ai-gh { display: flex !important; align-items: center !important; gap: 8px !important; margin: 4px 0 10px !important; }
  html body #iba-ai-panel #iba-ai-skills .iba-ai-gh > b { font-size: 11.5px !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: #e8c547 !important; white-space: nowrap !important; font-weight: 800 !important; }
  html body #iba-ai-panel #iba-ai-skills .iba-ai-gh > em { font-style: normal !important; font-size: 11px !important; font-weight: 800 !important; color: #0b0f14 !important; background: #e8c547 !important; border-radius: 999px !important; padding: 0 7px !important; line-height: 18px !important; letter-spacing: 0 !important; }
  html body #iba-ai-panel #iba-ai-skills .iba-ai-gh > i { flex: 1 !important; height: 1px !important; background: linear-gradient(90deg, rgba(232, 197, 71, .65), rgba(232, 197, 71, 0)) !important; }
  /* 18.0.0 patch 5: smart search - PO count on suggested vendors, status pill, spelling count */
  html body #iba-ai-panel .iba-ai-chip .iba-ai-sugg-n { opacity: .75 !important; font-weight: 600 !important; margin-left: 4px !important; font-size: 11px !important; }
  html body #iba-ai-panel .iba-ai-any-st { display: inline-block !important; margin-left: 6px !important; padding: 0 7px !important; border-radius: 999px !important; font-size: 11px !important; line-height: 18px !important; background: rgba(127, 227, 214, .14) !important; color: #7FE3D6 !important; border: 1px solid rgba(127, 227, 214, .35) !important; }
  html body #iba-vendor-po-menu .iba-vpo-also { opacity: .7; font-weight: 600; font-size: 11px; margin-left: 6px; }
}

@layer iba-ui {
  /* 18.0.0 patch 10 (martin): an empty table shows only its icon + message, no column header row
     (Active Task, Inventory Active Job, Job Records, Inventory records - any table whose only row is the empty note) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3) table:has(> tbody > tr:only-child .wd-modern-empty-row) > thead { display: none !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 10: new Dashboard (js/iba-1800-dash.js). Glass panel, no blur. Old cards hidden while the chart is on. */
  html body.iba-dash2-on #wd-dashboard > :is(.wd-active-dashboard-toolbar, #wd-active-dashboard-cards, #wd-active-dashboard-list) { display: none !important; }
  html body #iba-d2.iba-d2 { --d2-line: rgba(255,255,255,.10); --d2-fg: #e9edf3; --d2-mute: #9aa6b8; --d2-soft: #c4ccd8; --d2-gold: #c9a44c;
    display: grid !important; gap: 18px !important; margin: 14px 0 22px !important; padding: 20px 22px !important; border-radius: 14px !important;
    background: linear-gradient(160deg, rgba(18,28,43,.62), rgba(10,15,24,.50)) !important; border: 1px solid var(--d2-line) !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06) !important; color: var(--d2-fg) !important; backdrop-filter: none !important; }
  html body #iba-d2 .iba-d2-head { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: flex-end !important; gap: 10px !important; border-bottom: 1px solid var(--d2-line) !important; padding-bottom: 12px !important; }
  html body #iba-d2 .iba-d2-head h2 { margin: 0 !important; font-size: 19px !important; font-weight: 700 !important; color: var(--d2-fg) !important; -webkit-text-fill-color: currentColor !important; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; text-decoration: none !important; }
  html body #iba-d2 .iba-d2-head h2::after, html body #iba-d2 .iba-d2-head h2::before { content: none !important; display: none !important; }
  html body #iba-d2 .iba-d2-head p { margin: 3px 0 0 !important; font-size: 12.5px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-head .bad { color: #ff8a80 !important; }
  html body #iba-d2 .iba-d2-hb { display: flex !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; }
  html body #iba-d2 .iba-d2-paidn { font-size: 13px !important; color: var(--d2-mute) !important; padding: 5px 12px !important; border: 1px solid rgba(63,174,122,.35) !important; border-radius: 999px !important; background: rgba(63,174,122,.10) !important; }
  html body #iba-d2 .iba-d2-paidn b { color: #6fd3a3 !important; }
  html body #iba-d2 .iba-d2-body { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; gap: 22px !important; align-items: center !important; }
  @media (max-width: 1100px) { html body #iba-d2 .iba-d2-body { grid-template-columns: 1fr !important; } }
  html body #iba-d2 .iba-d2-chart { min-width: 0 !important; text-align: center !important; }
  html body #iba-d2 .iba-d2-svg { width: 100% !important; max-width: 620px !important; height: auto !important; display: block !important; margin: 0 auto !important; overflow: visible !important; }
  html body #iba-d2 .iba-d2-slice { cursor: pointer !important; transition: opacity .15s, stroke-width .15s !important; }
  html body #iba-d2 .iba-d2-slice:hover { opacity: .85 !important; }
  html body #iba-d2 svg:has(.iba-d2-slice.is-sel) .iba-d2-slice:not(.is-sel) { opacity: .35 !important; }
  html body #iba-d2 svg text { font-family: inherit !important; }
  html body #iba-d2 .iba-d2-tl { fill: #e9edf3 !important; font-size: 14px !important; font-weight: 700 !important; }
  html body #iba-d2 .iba-d2-ts { font-size: 12.5px !important; font-weight: 600 !important; }
  html body #iba-d2 .iba-d2-ty { fill: #f0d27a !important; font-size: 12px !important; font-weight: 600 !important; }
  html body #iba-d2 .iba-d2-c1 { fill: #ffffff !important; font-size: 30px !important; font-weight: 700 !important; }
  html body #iba-d2 .iba-d2-c2 { fill: #9aa6b8 !important; font-size: 12px !important; letter-spacing: .06em !important; text-transform: uppercase !important; }
  html body #iba-d2 .iba-d2-hint { margin: 2px 0 0 !important; font-size: 12px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-empty { padding: 60px 10px !important; color: var(--d2-mute) !important; font-size: 14px !important; }
  html body #iba-d2 .iba-d2-legend { display: grid !important; gap: 10px !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-lg { all: unset; box-sizing: border-box !important; cursor: pointer !important; display: grid !important; grid-template-columns: 12px minmax(0,1fr) auto !important; gap: 12px !important; align-items: center !important;
    padding: 12px 14px !important; border-radius: 10px !important; border: 1px solid var(--d2-line) !important; background: rgba(255,255,255,.03) !important; color: var(--d2-fg) !important; transition: background .15s, border-color .15s !important; }
  html body #iba-d2 .iba-d2-lg:hover { background: rgba(255,255,255,.07) !important; }
  html body #iba-d2 .iba-d2-lg.is-sel { border-color: rgba(201,164,76,.6) !important; background: rgba(201,164,76,.10) !important; }
  html body #iba-d2 .iba-d2-lg > i { width: 12px !important; height: 12px !important; border-radius: 3px !important; }
  html body #iba-d2 .iba-d2-lg span { display: grid !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-lg span b { font-size: 14px !important; font-weight: 600 !important; }
  html body #iba-d2 .iba-d2-lg span small { font-size: 12px !important; color: var(--d2-mute) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body #iba-d2 .iba-d2-lg em { font-style: normal !important; text-align: right !important; font-weight: 700 !important; font-size: 14px !important; display: grid !important; }
  html body #iba-d2 .iba-d2-lg em small { font-size: 11.5px !important; color: #f0d27a !important; font-weight: 600 !important; }
  html body #iba-d2 .iba-d2-list, html body #iba-d2 .iba-d2-old { display: grid !important; gap: 10px !important; padding: 16px !important; border-radius: 12px !important; border: 1px solid var(--d2-line) !important; background: rgba(0,0,0,.18) !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-lh, html body #iba-d2 .iba-d2-oh { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; gap: 8px 14px !important; }
  html body #iba-d2 .iba-d2-lh b { font-size: 15px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; }
  html body #iba-d2 .iba-d2-lh b i { width: 10px !important; height: 10px !important; border-radius: 3px !important; display: inline-block !important; }
  html body #iba-d2 .iba-d2-lh em { font-style: normal !important; color: #f0d27a !important; font-weight: 600 !important; }
  html body #iba-d2 .iba-d2-lh > span { display: flex !important; gap: 14px !important; align-items: center !important; }
  html body #iba-d2 .iba-d2-lh label { display: inline-flex !important; gap: 6px !important; align-items: center !important; font-size: 13px !important; cursor: pointer !important; color: var(--d2-soft) !important; }
  html body #iba-d2 .iba-d2-lh button { all: unset; cursor: pointer !important; font-size: 12.5px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-oh b { font-size: 14.5px !important; color: #ffb4a8 !important; display: block !important; }
  html body #iba-d2 .iba-d2-oh span { font-size: 12px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-old { border-color: rgba(217,83,79,.35) !important; }
  html body #iba-d2 .iba-d2-tw { overflow-x: auto !important; max-height: 460px !important; overflow-y: auto !important; }
  html body #iba-d2 table.iba-d2-t { width: 100% !important; border-collapse: collapse !important; font-size: 13px !important; background: transparent !important; }
  html body #iba-d2 .iba-d2-t th, html body #iba-d2 .iba-d2-t td { padding: 8px 9px !important; border-bottom: 1px solid var(--d2-line) !important; text-align: left !important; white-space: nowrap !important; background: transparent !important; color: var(--d2-fg) !important; }
  html body #iba-d2 .iba-d2-t th { position: sticky !important; top: 0 !important; background: #111a28 !important; color: var(--d2-mute) !important; font-weight: 600 !important; font-size: 11.5px !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
  html body #iba-d2 .iba-d2-t :is(td, th).n { text-align: right !important; font-variant-numeric: tabular-nums !important; }
  html body #iba-d2 .iba-d2-t td.old { color: #ff8a80 !important; font-weight: 700 !important; }
  html body #iba-d2 .iba-d2-t td.v { max-width: 240px !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body #iba-d2 .iba-d2-t tr.is-mine td { background: rgba(201,164,76,.08) !important; }
  html body #iba-d2 .iba-d2-t tbody tr:hover td { background: rgba(255,255,255,.05) !important; }
  html body #iba-d2 .iba-d2-yours { font-size: 11px !important; font-weight: 700 !important; color: #f0d27a !important; margin-left: 4px !important; }
  html body #iba-d2 .iba-d2-tag { display: inline-block !important; font-size: 11.5px !important; padding: 2px 8px !important; border-radius: 4px !important; background: rgba(255,255,255,.07) !important; color: var(--d2-soft) !important; }
  html body #iba-d2 :is(.iba-d2-note, .iba-d2-lock) { margin: 0 !important; font-size: 12.5px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-lock { display: inline-flex !important; gap: 6px !important; align-items: center !important; }
  html body #iba-d2 .iba-d2-acts { display: flex !important; gap: 10px !important; }
  html body #iba-d2 .iba-d2-paid { cursor: pointer !important; font-size: 12px !important; font-weight: 600 !important; padding: 4px 10px !important; border-radius: 6px !important; border: 1px solid rgba(63,174,122,.45) !important; background: rgba(63,174,122,.12) !important; color: #6fd3a3 !important; }
  html body #iba-d2 .iba-d2-paid.is-sure { border-color: #e0b54a !important; background: rgba(224,181,74,.18) !important; color: #f0d27a !important; }
  html body #iba-d2-settings-card .iba-d2-sw { display: flex !important; gap: 8px !important; align-items: center !important; margin: 10px 0 !important; cursor: pointer !important; }
  html body #iba-d2-settings-card .iba-d2-msg { font-size: 12.5px !important; margin-left: 10px !important; opacity: .8 !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 11: With Accounts over 7 days - tick boxes + Mark Paid (N) */
  html body #iba-d2 .iba-d2-ob { display: flex !important; gap: 10px !important; align-items: center !important; flex-wrap: wrap !important; }
  html body #iba-d2 .iba-d2-t :is(th, td).ck { width: 30px !important; padding-right: 0 !important; }
  html body #iba-d2 .iba-d2-t input[type=checkbox] { width: 16px !important; height: 16px !important; accent-color: #3fae7a !important; cursor: pointer !important; margin: 0 !important; }
  html body #iba-d2 .iba-d2-t tr.is-pick td { background: rgba(63,174,122,.10) !important; }
  html body #iba-d2 .iba-d2-paid.iba-d2-paidall { font-size: 13px !important; padding: 7px 14px !important; }
  html body #iba-d2 .iba-d2-paid:disabled { opacity: .45 !important; cursor: default !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 14: monthly received vs paid (money people only) */
  html body #iba-d2 .iba-d2-trend { display: grid !important; gap: 10px !important; padding: 16px !important; border-radius: 12px !important; border: 1px solid var(--d2-line) !important; background: rgba(0,0,0,.18) !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-trh { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: flex-end !important; gap: 8px 16px !important; }
  html body #iba-d2 .iba-d2-trh b { display: block !important; font-size: 15px !important; }
  html body #iba-d2 .iba-d2-trh span { font-size: 12px !important; color: var(--d2-mute) !important; }
  html body #iba-d2 .iba-d2-trk { display: inline-flex !important; gap: 8px !important; align-items: center !important; font-size: 12.5px !important; color: var(--d2-soft) !important; }
  html body #iba-d2 .iba-d2-trk i { display: inline-block !important; width: 12px !important; height: 10px !important; border-radius: 2px !important; margin-left: 6px !important; }
  html body #iba-d2 .iba-d2-trk i.b { background: #4a5668 !important; }
  html body #iba-d2 .iba-d2-trk i.l { background: #c9a44c !important; height: 3px !important; }
  html body #iba-d2 .iba-d2-trsvg { width: 100% !important; min-width: 520px !important; height: auto !important; display: block !important; }
  html body #iba-d2 .iba-d2-trsvg .gl { stroke: rgba(255,255,255,.08) !important; stroke-width: 1 !important; }
  html body #iba-d2 .iba-d2-trsvg .ax { fill: #8592a6 !important; font-size: 11.5px !important; }
  html body #iba-d2 .iba-d2-trsvg .bar { fill: #4a5668 !important; }
  html body #iba-d2 .iba-d2-trsvg .bar:hover { fill: #5d6b80 !important; }
  html body #iba-d2 .iba-d2-trsvg .ln { fill: none !important; stroke: #c9a44c !important; stroke-width: 2.5 !important; stroke-linejoin: round !important; }
  html body #iba-d2 .iba-d2-trsvg .dot { fill: #c9a44c !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 14: 3 bars per month (martin picked B) with value + name on each bar */
  html body #iba-d2 .iba-d2-trsvg .wa { fill: #2fa7a0 !important; }
  html body #iba-d2 .iba-d2-trsvg .pd { fill: #c9a44c !important; }
  html body #iba-d2 .iba-d2-trsvg rect:hover { opacity: .85 !important; }
  html body #iba-d2 .iba-d2-trsvg .vl { font-size: 11px !important; font-weight: 700 !important; fill: #c4ccd8 !important; }
  html body #iba-d2 .iba-d2-trsvg .vl.wa { fill: #6fd6cb !important; }
  html body #iba-d2 .iba-d2-trsvg .vl.pd { fill: #f0d27a !important; }
  html body #iba-d2 .iba-d2-trsvg .bn { font-size: 10.5px !important; font-weight: 600 !important; fill: rgba(255,255,255,.88) !important; letter-spacing: .02em !important; }
  html body #iba-d2 .iba-d2-trk i.w { background: #2fa7a0 !important; }
  html body #iba-d2 .iba-d2-trk i.l { height: 10px !important; }
  html body #iba-d2 .iba-d2-trsvg { min-width: 760px !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 15 (martin): no big outer card around the Dashboard, the pieces sit on the background */
  html body #iba-d2.iba-d2 { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
  html body #iba-d2 .iba-d2-head { border-bottom: 0 !important; padding-bottom: 0 !important; }
  html body #iba-d2 .iba-d2-head h2, html body #iba-d2 svg text { text-shadow: 0 1px 3px rgba(0,0,0,.55) !important; }
  html body #iba-d2 .iba-d2-head p, html body #iba-d2 .iba-d2-hint { text-shadow: 0 1px 2px rgba(0,0,0,.6) !important; }
  html body #iba-d2 .iba-d2-lg { background: rgba(10,15,24,.55) !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 16 (martin): the Dashboard pieces were too see-through to read on bright videos ->
     frosted glass like the side panel + stronger text */
  html body #iba-d2 :is(.iba-d2-head, .iba-d2-chart, .iba-d2-lg, .iba-d2-list, .iba-d2-old, .iba-d2-trend) {
    background: rgba(8,12,20,.62) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 14px !important;
    backdrop-filter: blur(14px) saturate(1.15) !important; -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
    box-shadow: 0 8px 26px rgba(0,0,0,.28) !important; }
  html body #iba-d2 .iba-d2-head { padding: 14px 18px !important; }
  html body #iba-d2 .iba-d2-chart { padding: 10px 12px 12px !important; }
  html body #iba-d2 .iba-d2-lg:hover { background: rgba(20,28,42,.75) !important; }
  html body #iba-d2 .iba-d2-lg.is-sel { background: rgba(60,48,18,.72) !important; border-color: rgba(201,164,76,.7) !important; }
  html body #iba-d2 .iba-d2-lg span b { font-size: 15px !important; color: #ffffff !important; }
  html body #iba-d2 .iba-d2-lg span small, html body #iba-d2 .iba-d2-head p, html body #iba-d2 .iba-d2-hint, html body #iba-d2 :is(.iba-d2-note, .iba-d2-lock), html body #iba-d2 .iba-d2-oh span { color: #d3dae5 !important; }
  html body #iba-d2 .iba-d2-lg em { font-size: 16px !important; color: #ffffff !important; }
  html body #iba-d2 .iba-d2-t td { color: #f2f5f9 !important; }
  html body #iba-d2 .iba-d2-t th { background: rgba(14,21,33,.96) !important; color: #c9d2de !important; }
  html body #iba-d2 svg text { paint-order: stroke !important; stroke: rgba(5,8,14,.75) !important; stroke-width: 3.5px !important; stroke-linejoin: round !important; }
  html body #iba-d2 .iba-d2-tl { font-size: 15px !important; }
  html body #iba-d2 .iba-d2-ts { font-size: 13.5px !important; font-weight: 700 !important; }
  html body #iba-d2 .iba-d2-ty { font-size: 13px !important; }
  html body #iba-d2 .iba-d2-c1 { font-size: 34px !important; }
  html body #iba-d2 .iba-d2-c2 { fill: #d3dae5 !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 17 (martin): Dashboard lighter. Title has no box, only a line under it;
     pie chart sits on the background; Paid count = dark side-panel glass; cards + tables lighter glass */
  html body #iba-d2 :is(.iba-d2-head, .iba-d2-chart) { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html body #iba-d2 .iba-d2-head { padding: 0 2px 12px !important; border-bottom: 1px solid rgba(255,255,255,.38) !important; }
  html body #iba-d2 .iba-d2-chart { padding: 0 !important; }
  html body #iba-d2 .iba-d2-paidn { background: rgba(8,12,20,.6) !important; border: 1px solid rgba(255,255,255,.16) !important; color: #e6ecf3 !important;
    backdrop-filter: blur(14px) saturate(1.15) !important; -webkit-backdrop-filter: blur(14px) saturate(1.15) !important; box-shadow: 0 6px 18px rgba(0,0,0,.25) !important; padding: 7px 14px !important; }
  html body #iba-d2 :is(.iba-d2-list, .iba-d2-old, .iba-d2-trend) { background: rgba(8,12,20,.40) !important; }
  /* the 3 steps (Preliminary / Approval / Finance): no card, a line under each */
  html body #iba-d2 .iba-d2-lg { background: none !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.30) !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html body #iba-d2 .iba-d2-lg:hover { background: rgba(255,255,255,.06) !important; }
  html body #iba-d2 .iba-d2-lg.is-sel { background: none !important; border-bottom: 2px solid rgba(224,181,74,.95) !important; }
  html body #iba-d2 .iba-d2-lg span b, html body #iba-d2 .iba-d2-lg em { text-shadow: 0 1px 3px rgba(0,0,0,.7) !important; }
  html body #iba-d2 .iba-d2-lg span small { text-shadow: 0 1px 2px rgba(0,0,0,.75) !important; }
  html body:not(#iba-at1):not(#iba-at2):not(#iba-at3):not(#iba-at4):not(#iba-at5):not(#iba-at6) #iba-d2 table:not(td table) > thead > tr > th { background: rgba(255,255,255,.07) !important; background-image: none !important; box-shadow: none !important; color: #ffffff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html body:not(#iba-at1):not(#iba-at2):not(#iba-at3):not(#iba-at4):not(#iba-at5):not(#iba-at6) #iba-d2 table:not(td table) > thead > tr { background: transparent !important; background-image: none !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 17 (martin): Active Task top card (dates / filters) and the result table header were too dark -> lighter glass */
  html body:not(#iba-at1):not(#iba-at2):not(#iba-at3):not(#iba-at4) #wd-activetask :is(#active-task-filters, #active-task-date-tabs) {
    background-color: rgba(8,12,20,.30) !important; background-image: none !important; border-color: rgba(255,255,255,.16) !important;
    backdrop-filter: blur(14px) saturate(1.15) !important; -webkit-backdrop-filter: blur(14px) saturate(1.15) !important; }
  html body:not(#iba-at1):not(#iba-at2):not(#iba-at3):not(#iba-at4) #wd-activetask table thead tr { background: transparent !important; background-image: none !important; }
  html body:not(#iba-at1):not(#iba-at2):not(#iba-at3):not(#iba-at4):not(#iba-at5):not(#iba-at6) #wd-activetask table:not(td table) > thead > tr > th {
    background-color: rgba(8,12,20,.34) !important; background-image: none !important; box-shadow: none !important; color: #ffffff !important; text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
    backdrop-filter: blur(14px) saturate(1.15) !important; -webkit-backdrop-filter: blur(14px) saturate(1.15) !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 17: thinner dark outline on the Dashboard chart text */
  html body #iba-d2 svg text { stroke: rgba(5,8,14,.6) !important; stroke-width: 2.2px !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 18 (martin): thicker separation lines under the Dashboard title and the 3 steps */
  html body #iba-d2 .iba-d2-head { border-bottom: 2px solid rgba(255,255,255,.55) !important; }
  html body #iba-d2 .iba-d2-lg { border-bottom: 2px solid rgba(255,255,255,.45) !important; }
  html body #iba-d2 .iba-d2-lg.is-sel { border-bottom: 3px solid rgba(224,181,74,1) !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 19 (martin): one row - chart with the 3 steps under it on the left, monthly bars on the right */
  html body #iba-d2 .iba-d2-body.has-tr { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr) !important; align-items: start !important; }
  html body #iba-d2 .iba-d2-left, html body #iba-d2 .iba-d2-right { display: grid !important; gap: 10px !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-left .iba-d2-legend { gap: 2px !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trend { margin: 0 !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg { min-width: 600px !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trend { overflow-x: auto !important; }
  @media (max-width: 1100px) { html body #iba-d2 .iba-d2-body.has-tr { grid-template-columns: 1fr !important; } }
}
@layer iba-ui {
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg .ax { font-size: 14px !important; fill: #dfe6ef !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg .vl { font-size: 13px !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg .bn { font-size: 12px !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 19 (martin): glass bars, bar names without the dark outline */
  html body #iba-d2 .iba-d2-trsvg .bn { stroke: none !important; stroke-width: 0 !important; fill: rgba(255,255,255,.92) !important; }
  html body #iba-d2 .iba-d2-trsvg rect.bar { fill: rgba(150,165,190,.30) !important; stroke: rgba(200,212,230,.75) !important; stroke-width: 1.2px !important; }
  html body #iba-d2 .iba-d2-trsvg rect.wa { fill: rgba(47,167,160,.38) !important; stroke: rgba(111,214,203,.9) !important; stroke-width: 1.2px !important; }
  html body #iba-d2 .iba-d2-trsvg rect.pd { fill: rgba(201,164,76,.38) !important; stroke: rgba(240,210,122,.9) !important; stroke-width: 1.2px !important; }
  html body #iba-d2 .iba-d2-trsvg rect:hover { opacity: 1 !important; fill-opacity: .8 !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 19 (martin): the 3 steps show only their name; the status list shows on mouse-over (tooltip) */
  html body #iba-d2 .iba-d2-lg > span > small { display: none !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 19 (martin): full pie with % inside, total under it */
  html body #iba-d2 .iba-d2-slice { stroke: rgba(10,14,22,.55) !important; stroke-width: 1.5px !important; fill-opacity: .88 !important; cursor: pointer !important; transition: transform .15s !important; }
  html body #iba-d2 .iba-d2-slice:hover, html body #iba-d2 .iba-d2-slice.is-sel { fill-opacity: 1 !important; }
  html body #iba-d2 .iba-d2-pin { fill: #ffffff !important; font-size: 21px !important; font-weight: 800 !important; pointer-events: none !important; }
  html body #iba-d2 .iba-d2-c1 { font-size: 26px !important; }
  html body #iba-d2 .iba-d2-c1 .iba-d2-c2 { font-size: 13px !important; font-weight: 600 !important; }
}
@layer iba-ui {
  html body #iba-d2 .iba-d2-pis { fill: #ffffff !important; font-size: 13px !important; font-weight: 700 !important; pointer-events: none !important; }
  html body #iba-d2 .iba-d2-pin, html body #iba-d2 .iba-d2-pis { stroke: rgba(5,8,14,.45) !important; stroke-width: 2px !important; }
}
@layer iba-ui {
  html body #iba-d2 .iba-d2-trsvg rect[data-d2-wam] { cursor: pointer !important; }
  html body #iba-d2 .iba-d2-trsvg rect.wa.is-on { fill: rgba(47,167,160,.85) !important; stroke: #ffffff !important; stroke-width: 2px !important; }
}
@layer iba-ui {
  /* patch 19: the bar chart lines up with the bottom of the 3 steps */
  html body #iba-d2 .iba-d2-body.has-tr { align-items: end !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 20 (martin): Dashboard without the title row (title, line, Paid in 2026) and without the blue line above it */
  html body #iba-d2 .iba-d2-head { display: none !important; }
  html body #workdesk-content-area:has(> #wd-dashboard:not(.hidden))::before { display: none !important; content: none !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 21 (martin): no "Click a piece" hint, no card behind the bar chart, a divider line between pie and bars */
  html body #iba-d2 .iba-d2-hint { display: none !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trend { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 0 0 0 24px !important; border-left: 2px solid rgba(255,255,255,.45) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trh b, html body #iba-d2 .iba-d2-right .iba-d2-trk { text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trk { color: #ffffff !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg :is(.ax, .vl) { paint-order: stroke !important; stroke: rgba(5,8,14,.6) !important; stroke-width: 2.2px !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg .gl { stroke: rgba(255,255,255,.18) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-note { text-shadow: 0 1px 2px rgba(0,0,0,.7) !important; }
  /* side panel pinned (less room): the 3 steps stay on one line, a bit smaller */
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-lg span b { font-size: 13.5px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-lg span { min-width: 0 !important; }
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-lg em { font-size: 14px !important; white-space: nowrap !important; }
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-body.has-tr { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) !important; gap: 18px !important; }
}
@layer iba-ui {
  /* bars sit straight on the background now: a little more fill so they stay readable */
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg rect.bar { fill: rgba(170,185,210,.48) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg rect.wa { fill: rgba(47,167,160,.62) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg rect.pd { fill: rgba(201,164,76,.62) !important; }
  html body #iba-d2 .iba-d2-right .iba-d2-trsvg .bn { paint-order: stroke !important; stroke: rgba(5,8,14,.35) !important; stroke-width: 1.5px !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 21 (martin): Preliminary / Approval / Finance as one row of figures (label, big number, small line), thin dividers */
  html body #iba-d2 .iba-d2-legend { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; border-top: 2px solid rgba(255,255,255,.45) !important; border-bottom: 2px solid rgba(255,255,255,.45) !important; padding: 10px 0 !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 3px !important; padding: 4px 16px !important; min-width: 0 !important;
    border: 0 !important; border-left: 1px solid rgba(255,255,255,.28) !important; border-radius: 0 !important; background: none !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg:first-child { border-left: 0 !important; padding-left: 4px !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg:hover { background: rgba(255,255,255,.06) !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg.is-sel { background: rgba(224,181,74,.12) !important; box-shadow: inset 0 -3px 0 rgba(224,181,74,1) !important; }
  html body #iba-d2 .iba-d2-legend .lb { font-size: 11.5px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase !important; filter: brightness(1.35) !important; text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg em { font-size: 21px !important; font-weight: 800 !important; color: #ffffff !important; display: block !important; text-align: left !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; font-variant-numeric: tabular-nums !important; text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg > small { display: block !important; font-size: 11.5px !important; color: #d3dae5 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; text-shadow: 0 1px 2px rgba(0,0,0,.75) !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-lg > small b { color: #f0d27a !important; font-weight: 600 !important; }
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-legend .iba-d2-lg em { font-size: 18px !important; }
}
@layer iba-ui {
  /* Show QAR switch (money people only), off by default */
  html body #iba-d2 .iba-d2-qsw { justify-self: end !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; font-size: 12.5px !important; font-weight: 600 !important; color: #ffffff !important; cursor: pointer !important; text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; user-select: none !important; }
  html body #iba-d2 .iba-d2-qsw input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none !important; }
  html body #iba-d2 .iba-d2-qsw span { position: relative !important; width: 34px !important; height: 18px !important; border-radius: 999px !important; background: rgba(255,255,255,.22) !important; border: 1px solid rgba(255,255,255,.35) !important; transition: background .15s !important; }
  html body #iba-d2 .iba-d2-qsw span::after { content: "" !important; position: absolute !important; top: 2px !important; left: 2px !important; width: 12px !important; height: 12px !important; border-radius: 50% !important; background: #ffffff !important; transition: transform .15s !important; }
  html body #iba-d2 .iba-d2-qsw input:checked + span { background: rgba(224,181,74,.9) !important; border-color: rgba(240,210,122,1) !important; }
  html body #iba-d2 .iba-d2-qsw input:checked + span::after { transform: translateX(16px) !important; }
  html body #iba-d2 .iba-d2-qsw input:focus-visible + span { outline: 2px solid #f0d27a !important; outline-offset: 2px !important; }
}
@layer iba-ui {
  html body #iba-d2 .iba-d2-legend .iba-d2-lg span.lb { color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }
}
@layer iba-ui {
  /* pie "cut": the chosen piece lifts out, the others fade away (and come back when it is closed) */
  html body #iba-d2 .iba-d2-pc { transform-box: view-box !important; }
  html body #iba-d2 .iba-d2-pc.is-sel { transform: translate(var(--tx), var(--ty)) !important; }
  html body #iba-d2 .iba-d2-pc.is-sel .iba-d2-slice { fill-opacity: 1 !important; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)) !important; }
  html body #iba-d2 .iba-d2-pc.gone { opacity: 0 !important; pointer-events: none !important; }
  html body #iba-d2 .iba-d2-pc.lift { animation: iba-d2-lift .55s cubic-bezier(.2,.8,.2,1) both !important; }
  html body #iba-d2 .iba-d2-pc.out { animation: iba-d2-out .5s ease both !important; }
  html body #iba-d2 .iba-d2-pc.back { animation: iba-d2-back .5s ease both !important; }
  html body #iba-d2 .iba-d2-pc.drop { animation: iba-d2-drop .45s ease both !important; }
  @keyframes iba-d2-lift { from { transform: translate(0, 0); } to { transform: translate(var(--tx), var(--ty)); } }
  @keyframes iba-d2-drop { from { transform: translate(var(--tx), var(--ty)); } to { transform: translate(0, 0); } }
  @keyframes iba-d2-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.94); } }
  @keyframes iba-d2-back { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
  html body #iba-d2 .iba-d2-pc.out, html body #iba-d2 .iba-d2-pc.back { transform-origin: 220px 150px !important; }
  @media (prefers-reduced-motion: reduce) { html body #iba-d2 .iba-d2-pc { animation: none !important; } }
  /* Show QAR switch sits at the top right, above the bar chart legend */
  html body #iba-d2 .iba-d2-right > .iba-d2-qsw { justify-self: end !important; margin-bottom: -4px !important; }
}
@layer iba-ui {
  /* 18.0.0 patch 21 (martin): no blue line at the top of any page (old style, took space) */
  html body #workdesk-content-area::before, html body #im-content-area::before { display: none !important; content: none !important; }
}

/* 18.0.0 patch 22 (martin): Settings > Moving background > Preview = the chosen background full screen, nothing on top */
@layer iba-ui {
  html body.iba-bgpv-on #iba-bg-layer { z-index: 2147483600 !important; display: block !important; position: fixed !important; inset: 0 !important; background-size: cover !important; background-position: center !important; cursor: none !important; }
  html body.iba-bgpv-on, html body.iba-bgpv-on * { cursor: none !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 23 (martin): Total open under Preliminary / Approval / Finance; pie name lines brighter so they show on photos */
  html body #iba-d2 .iba-d2-legend .iba-d2-tot { grid-column: 1 / -1 !important; display: flex !important; align-items: baseline !important; gap: 10px !important; margin-top: 8px !important; padding: 9px 4px 0 !important; border-top: 1px solid rgba(255,255,255,.28) !important; min-width: 0 !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-tot .lb { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; filter: none !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-tot em { font-size: 21px !important; font-weight: 800 !important; font-style: normal !important; color: #ffffff !important; font-variant-numeric: tabular-nums !important; text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; }
  html body #iba-d2 .iba-d2-legend .iba-d2-tot small { font-size: 11.5px !important; color: #d3dae5 !important; text-shadow: 0 1px 2px rgba(0,0,0,.75) !important; }
  html body.iba-sidebar-pinned #iba-d2 .iba-d2-legend .iba-d2-tot em { font-size: 18px !important; }
  html body #iba-d2 .iba-d2-svg .iba-d2-ld { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.8)) !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 25 (martin): Batch Entry "Refresh Data" hidden (it emptied the whole batch; POVALUE2 already reloads by itself when a PO is not found) */
  html body #im-refresh-batch-button { display: none !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 25 (martin approved mock-up): Batch Entry top = 2 thin rows (js/iba-1800-batchbar.js) */
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 > .iba-bt-row.iba-bt-r1 { flex-wrap: nowrap !important; gap: 8px !important; padding: 9px 12px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 > .iba-bt-r2 { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bt-grp { height: 36px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bt-grp > :is(button, span) { padding: 0 12px !important; font-size: 13px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-seg { display: inline-flex !important; flex: none !important; height: 36px !important; padding: 2px !important; gap: 2px !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; background: rgba(11,19,36,.6) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-seg > button { all: unset !important; box-sizing: border-box !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; padding: 0 11px !important; border-radius: 8px !important; font-size: 12.5px !important; font-weight: 700 !important; color: #9FB3C2 !important; -webkit-text-fill-color: #9FB3C2 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-seg > button.is-on { background: rgba(232,197,71,.18) !important; color: #E8C547 !important; -webkit-text-fill-color: #E8C547 !important; box-shadow: inset 0 0 0 1px rgba(232,197,71,.55) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .search-bar-local { height: 36px !important; flex: 0 1 280px !important; width: 280px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .batch-note-search-wrapper { flex: 0 1 380px !important; width: 380px !important; min-width: 220px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3[data-mode="po"] :is(.batch-note-search-wrapper, #im-batch-search-by-status-button, #im-batch-search-by-note-button),
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3[data-mode="status"] :is(.batch-note-search-wrapper, #im-batch-search-existing-button, #im-batch-search-by-note-button),
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3[data-mode="note"] :is(.search-bar-local, #im-batch-search-existing-button, #im-batch-search-by-status-button) { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-right { margin-left: auto !important; display: flex !important; align-items: center !important; gap: 8px !important; flex: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-clear-button { width: auto !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save { border-color: transparent !important; background: linear-gradient(180deg, #2fbf71, #1f9a58) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save > #im-batch-save-button { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-weight: 700 !important; padding: 0 16px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-more { position: relative !important; flex: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #iba-bb-more-btn { height: 36px !important; margin: 0 !important; padding: 0 12px !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(19,32,54,.55) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #iba-bb-badge { min-width: 18px !important; height: 18px !important; padding: 0 5px !important; border-radius: 999px !important; background: #e5484d !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 11px !important; font-weight: 700 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #iba-bb-badge[hidden] { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu { position: absolute !important; right: 0 !important; top: 42px !important; z-index: 80 !important; width: 300px !important; padding: 6px !important; display: grid !important; gap: 2px !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 12px !important; background: rgba(14,23,40,.96) !important; box-shadow: 0 12px 30px rgba(0,0,0,.45) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu[hidden] { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu > button { all: unset !important; box-sizing: border-box !important; cursor: pointer !important; display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important; padding: 9px 10px !important; border-radius: 8px !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 13px !important; font-weight: 500 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu > button[hidden] { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu > button:hover { background: rgba(255,255,255,.08) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-menu > button i { width: 16px !important; color: #E8C547 !important; -webkit-text-fill-color: #E8C547 !important; }
  /* row 2 */
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 8px !important; padding: 8px 12px 10px !important; border-top: 1px solid rgba(255,255,255,.1) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .iba-bt-all { flex: none !important; padding: 0 !important; margin: 0 4px 0 0 !important; color: #E8C547 !important; -webkit-text-fill-color: #E8C547 !important; white-space: nowrap !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group { flex-direction: row !important; align-items: center !important; gap: 0 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group:has(#im-batch-global-status) { order: 1 !important; flex: 0 1 200px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group:has(#im-batch-global-attention) { order: 2 !important; flex: 0 1 210px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group:has(#im-batch-global-note) { order: 3 !important; flex: 1 1 200px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .iba-bt-grp.is-quick { order: 4 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .iba-bb-ticks { order: 5 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group > label, html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-ret-note-row { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls :is(#im-batch-global-status, #im-batch-global-note) { height: 36px !important; min-height: 36px !important; padding: 0 10px !important; margin: 0 !important; font-size: 13px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .choices { margin: 0 !important; width: 100% !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .choices__inner { min-height: 36px !important; height: 36px !important; padding: 4px 8px !important; overflow: hidden !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bt-grp.is-quick > button { flex-direction: row !important; padding: 0 12px !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bt-grp.is-quick small { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bt-q.is-sum b { color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bb-ticks { display: inline-flex !important; align-items: center !important; gap: 6px !important; flex: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bb-ticks > label { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 36px !important; padding: 0 11px !important; margin: 0 !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(11,19,36,.45) !important; font-size: 12.5px !important; font-weight: 600 !important; white-space: nowrap !important; cursor: pointer !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .iba-bt-all { width: auto !important; flex: none !important; grid-column: auto !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls > .form-group { width: auto !important; min-width: 120px !important; display: flex !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bt-grp.is-quick > button#iba-batch-sum-all.iba-bt-q { height: 100% !important; min-height: 0 !important; max-height: none !important; padding: 0 12px !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; background: transparent !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-right > .iba-bt-grp { overflow: visible !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-right #batch-count-display { white-space: nowrap !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-right > .iba-bt-grp { width: auto !important; max-width: none !important; flex: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-right > .iba-bt-grp > * { flex: none !important; max-width: none !important; overflow: visible !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 #im-batch-global-controls .iba-bb-ticks > label { text-transform: none !important; letter-spacing: 0 !important; }
  /* return bell on each card: same height as REPORT / FOR SRV / APP / SUM */
  html body #im-batch-table-body .batch-invoice-card button.iba-ret-card { height: 20px !important; min-height: 20px !important; max-height: 20px !important; min-width: 24px !important; padding: 0 6px !important; line-height: 18px !important; font-size: 10px !important; align-self: center !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 26: Save = one green button (no box around it); Notes to Accounts never in row 1 */
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save { border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save > #im-batch-save-button { height: 36px !important; border: 0 !important; border-radius: 10px !important; background: linear-gradient(180deg, #2fbf71, #1f9a58) !important; box-shadow: 0 4px 12px rgba(47,191,113,.28) !important; outline: 0 !important; transform: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save > #im-batch-save-button::before, html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-save > #im-batch-save-button::after { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bt-r1 > #iba-n2a-btn, html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-find > #iba-n2a-btn { display: none !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-find > button, html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bt-r1 #im-batch-add-po-button { background: rgba(255,255,255,.07) !important; }
  html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bb-find > button:hover, html body.iba-bt-v2.iba-bb3:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #iba-bt-panel.iba-bt3 .iba-bt-r1 #im-batch-add-po-button:hover { background: rgba(255,255,255,.14) !important; }
}

@layer iba-ui {
  /* 18.0.0 patch 28 (martin): Dashboard charts hidden by default per person; Hide charts button */
  html body #iba-d2 .iba-d2-hid { display: flex !important; align-items: center !important; gap: 10px !important; justify-content: space-between !important; padding: 10px 4px !important; color: #c9d3e0 !important; -webkit-text-fill-color: #c9d3e0 !important; font-size: 13.5px !important; }
  html body #iba-d2 .iba-d2-hid button, html body #iba-d2 .iba-d2-hidebtn { height: 30px !important; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.28) !important; background: rgba(255,255,255,.06) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 12.5px !important; font-weight: 600 !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; box-shadow: none !important; }
  html body #iba-d2 .iba-d2-tools { display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 10px !important; }
  /* switches always top right, same spot whether charts are on or off */
  html body #iba-d2 { position: relative !important; }
  html body #iba-d2 .iba-d2-right > .iba-d2-tools, html body #iba-d2 .iba-d2-hid .iba-d2-tools { position: absolute !important; top: 10px !important; right: 12px !important; z-index: 2 !important; margin: 0 !important; }
  html body #iba-d2 .iba-d2-hid { min-height: 40px !important; }
}
/* 18.0.0 patch 29: Talk mode (IRIS) - headset button next to the mic + status bar above the text box */
@layer iba-ui {
  html body #iba-ai-panel .iba-ai-input button#iba-ai-talk { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.16) !important; }
  html body #iba-ai-panel .iba-ai-input button#iba-ai-talk.is-on { background: #138A97 !important; border-color: #5fd3c7 !important; box-shadow: 0 0 0 3px rgba(54,194,180,.25) !important; }
  html body #iba-talk-bar { display: flex !important; align-items: center !important; gap: 10px !important; margin: 6px 10px 0 !important; padding: 7px 10px !important; border-radius: 12px !important; background: rgba(19,138,151,.16) !important; border: 1px solid rgba(95,211,199,.38) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 12.5px !important; }
  html body #iba-talk-bar[hidden] { display: none !important; }
  html body #iba-talk-bar .iba-talk-txt { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body #iba-talk-bar .iba-talk-txt b { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; letter-spacing: .08em !important; margin-right: 4px !important; }
  html body #iba-talk-bar button { height: 26px !important; padding: 0 9px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(255,255,255,.07) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 11.5px !important; font-weight: 600 !important; display: inline-flex !important; align-items: center !important; gap: 5px !important; cursor: pointer !important; box-shadow: none !important; }
  html body #iba-talk-bar .iba-talk-orb { display: inline-flex !important; align-items: center !important; gap: 2px !important; height: 16px !important; width: 18px !important; }
  html body #iba-talk-bar .iba-talk-orb i { width: 3px !important; height: 5px !important; border-radius: 2px !important; background: #5fd3c7 !important; }
  html body #iba-talk-bar.is-listen .iba-talk-orb i, html body #iba-talk-bar.is-speak .iba-talk-orb i { animation: ibaTalkBar 1s ease-in-out infinite !important; }
  html body #iba-talk-bar .iba-talk-orb i:nth-child(2) { animation-delay: .15s !important; } html body #iba-talk-bar .iba-talk-orb i:nth-child(3) { animation-delay: .3s !important; } html body #iba-talk-bar .iba-talk-orb i:nth-child(4) { animation-delay: .45s !important; }
  html body #iba-talk-bar.is-speak .iba-talk-orb i { background: #8fb6ff !important; }
  html body #iba-talk-bar.is-think .iba-talk-orb i, html body #iba-talk-bar.is-ask .iba-talk-orb i { background: #e8c547 !important; }
  html body #iba-talk-bar.is-muted { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.18) !important; }
  html body #iba-talk-bar.is-muted .iba-talk-orb i { background: #8a8f98 !important; }
  html body:is(.iba-mobile-ui, .iba-phone) #iba-ai-talk, html body:is(.iba-mobile-ui, .iba-phone) #iba-talk-bar { display: none !important; }
}
@keyframes ibaTalkBar { 0%, 100% { height: 4px; } 50% { height: 15px; } }
/* 18.0.0 patch 31: Kokoro natural voice settings row (Assistant > Settings > Look and voice) */
@layer iba-ui {
  html body #iba-kokoro-set { margin-top: 10px !important; display: grid !important; gap: 6px !important; }
  html body #iba-kokoro-set .iba-kok-row { display: flex !important; flex-wrap: wrap !important; align-items: flex-end !important; gap: 10px !important; }
  html body #iba-kokoro-set .iba-kok-row .iba-ai-field { margin: 0 !important; flex: 1 1 150px !important; min-width: 0 !important; }
  html body #iba-kokoro-set .iba-kok-row .iba-ai-btn { flex: 0 0 auto !important; }
}
/* 18.0.0 patch 31: IRIS pill above every window while Talk mode is on and the assistant is closed */
@layer iba-ui {
  html body #iba-talk-pill { position: fixed !important; right: 20px !important; bottom: 96px !important; z-index: 2147483200 !important; display: inline-flex !important; align-items: center !important; gap: 7px !important; padding: 6px 8px 6px 11px !important; border-radius: 999px !important; background: rgba(12,28,34,.92) !important; border: 1px solid rgba(95,211,199,.55) !important; box-shadow: 0 6px 18px rgba(0,0,0,.45) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; font-size: 12px !important; }
  html body #iba-talk-pill[hidden] { display: none !important; }
  html body #iba-talk-pill b { color: #7FE3D6 !important; -webkit-text-fill-color: #7FE3D6 !important; letter-spacing: .08em !important; }
  html body #iba-talk-pill button { width: 24px !important; height: 24px !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.25) !important; background: rgba(255,255,255,.08) !important; color: #E6EDF6 !important; -webkit-text-fill-color: #E6EDF6 !important; display: inline-grid !important; place-items: center !important; font-size: 11px !important; cursor: pointer !important; box-shadow: none !important; }
  html body #iba-talk-pill .iba-talk-orb { display: inline-flex !important; align-items: center !important; gap: 2px !important; height: 14px !important; }
  html body #iba-talk-pill .iba-talk-orb i { width: 3px !important; height: 5px !important; border-radius: 2px !important; background: #5fd3c7 !important; }
  html body #iba-talk-pill:is(.is-listen, .is-speak) .iba-talk-orb i { animation: ibaTalkBar 1s ease-in-out infinite !important; }
  html body #iba-talk-pill .iba-talk-orb i:nth-child(2) { animation-delay: .15s !important; } html body #iba-talk-pill .iba-talk-orb i:nth-child(3) { animation-delay: .3s !important; } html body #iba-talk-pill .iba-talk-orb i:nth-child(4) { animation-delay: .45s !important; }
  html body #iba-talk-pill.is-speak .iba-talk-orb i { background: #8fb6ff !important; }
  html body #iba-talk-pill:is(.is-think, .is-ask) .iba-talk-orb i { background: #e8c547 !important; }
  html body #iba-talk-pill.is-muted { border-color: rgba(255,255,255,.25) !important; } html body #iba-talk-pill.is-muted .iba-talk-orb i { background: #8a8f98 !important; }
  html body:is(.iba-mobile-ui, .iba-phone) #iba-talk-pill { display: none !important; }
}

/* 18.0.0 patch 32: My background switch (On = moving, Off = still photo) */
@layer iba-ui {
  html body #iba-still-card .iba-still-sw { display: inline-flex !important; align-items: center !important; gap: 10px !important; margin-top: 12px !important; font-size: 13.5px !important; cursor: pointer !important; user-select: none !important; position: relative !important; }
  html body #iba-still-card .iba-still-sw input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none !important; }
  html body #iba-still-card .iba-still-sw span { position: relative !important; flex: 0 0 auto !important; width: 44px !important; height: 24px !important; border-radius: 999px !important; background: rgba(255,255,255,.22) !important; border: 1px solid rgba(255,255,255,.35) !important; transition: background .15s !important; }
  html body #iba-still-card .iba-still-sw span::after { content: "" !important; position: absolute !important; top: 3px !important; left: 3px !important; width: 16px !important; height: 16px !important; border-radius: 50% !important; background: #ffffff !important; transition: transform .15s !important; }
  html body #iba-still-card .iba-still-sw input:checked + span { background: rgba(224,181,74,.9) !important; border-color: rgba(240,210,122,1) !important; }
  html body #iba-still-card .iba-still-sw input:checked + span::after { transform: translateX(20px) !important; }
  html body #iba-still-card .iba-still-sw input:focus-visible + span { outline: 2px solid #f0d27a !important; outline-offset: 2px !important; }
  html body #iba-still-card .iba-still-lbl { font-weight: 600 !important; }
  html body #iba-still-card .iba-still-lbl i { margin-right: 4px !important; opacity: .85 !important; }
}

/* 18.0.0 patch 34: IRIS orb (design D) - liquid orb in an electric ring + screen edge glow while active */
@property --iba-orb-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ibaOrbSpin { to { --iba-orb-a: 360deg; } }
@layer iba-ui {
  html body #iba-talk-pill.has-orb { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 8px !important; flex-direction: row !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html body #iba-talk-pill.has-orb button { order: 0 !important; } html body #iba-talk-pill.has-orb b { order: 1 !important; } html body #iba-talk-pill.has-orb [data-pill-st] { order: 2 !important; } html body #iba-talk-pill.has-orb .iba-orb-cv { order: 3 !important; }
  html body #iba-talk-pill.has-orb .iba-orb-cv { width: 66px !important; height: 66px !important; display: block !important; cursor: default !important; flex: 0 0 auto !important; }
  html body #iba-talk-pill.has-orb b { font-size: 11px !important; letter-spacing: .18em !important; color: #f3d77a !important; -webkit-text-fill-color: #f3d77a !important; text-shadow: 0 1px 4px #000 !important; }
  html body #iba-talk-pill.has-orb [data-pill-st] { font-size: 12.5px !important; color: #dfe7ee !important; text-shadow: 0 1px 4px #000 !important; }
  html body #iba-talk-pill.has-orb button { opacity: 0 !important; transition: opacity .15s !important; background: rgba(10,13,17,.75) !important; }
  html body #iba-talk-pill.has-orb:hover button, html body #iba-talk-pill.has-orb:focus-within button { opacity: 1 !important; }
  html body #iba-orb-edge { position: fixed !important; inset: 0 !important; pointer-events: none !important; z-index: 2147483100 !important; opacity: 0; transition: opacity .5s ease !important; }
  html body #iba-orb-edge i { position: absolute !important; inset: 0 !important; padding: var(--w, 2px) !important;
    background: conic-gradient(from var(--iba-orb-a), var(--c1, #2fd3c2), var(--c2, #3a7bd5), var(--c3, #7be3ff), var(--c4, #2fd3c2), var(--c1, #2fd3c2)) !important;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important; -webkit-mask-composite: xor !important; mask-composite: exclude !important;
    animation: ibaOrbSpin var(--sp, 8s) linear infinite !important; }
  html body #iba-orb-edge i.is-blur { filter: blur(10px) !important; padding: calc(var(--w, 2px) * 2.2) !important; opacity: .8 !important; }
  html body:is(.iba-mobile-ui, .iba-phone) #iba-orb-edge { display: none !important; }
  @media (prefers-reduced-motion: reduce) { html body #iba-orb-edge i { animation: none !important; } }
}

/* 18.0.0 patch 35: the IRIS orb takes the robot's place while Talk mode is on (robot hidden, orb clickable) */
@layer iba-ui {
  html body.iba-orb-on #iba-ai-fab { visibility: hidden !important; pointer-events: none !important; }
  html body #iba-talk-pill.has-orb .iba-orb-cv, html body #iba-talk-pill.has-orb b, html body #iba-talk-pill.has-orb [data-pill-st] { cursor: pointer !important; }
}

/* 18.0.0 patch 41: IRIS phone page (Super Admin, phone only) - js/iba-1800-iris-phone.js */
@layer iba-ui {
  html body #iba-irisph-fab { position: fixed !important; left: max(14px, env(safe-area-inset-left, 0px)) !important; bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; z-index: 2147482000 !important;
    display: flex !important; align-items: center !important; gap: 6px !important; padding: 6px 12px 6px 6px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.45) !important;
    background: rgba(8,14,20,.82) !important; color: #eef3f8 !important; font: 600 12px/1 system-ui, sans-serif !important; letter-spacing: .12em !important; box-shadow: 0 0 18px rgba(47,211,194,.35) !important; }
  html body #iba-irisph-fab[hidden] { display: none !important; }
  html body #iba-irisph-fab span { width: 26px !important; height: 26px !important; border-radius: 50% !important; background: radial-gradient(circle at 35% 30%, #7be3ff, #2fd3c2 45%, #a77bff) !important; box-shadow: 0 0 10px #2fd3c2 !important; }
  html body #iba-irisph { position: fixed !important; inset: 0 !important; z-index: 2147482600 !important; display: grid !important; grid-template-rows: auto auto 1fr auto auto !important;
    background: radial-gradient(120% 60% at 50% 0, #10202a, #07090c 70%) !important; color: #eef3f8 !important; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif !important;
    padding: env(safe-area-inset-top, 0px) max(0px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(0px, env(safe-area-inset-left, 0px)) !important; }
  html body #iba-irisph[hidden] { display: none !important; }
  html body #iba-irisph .iph-top { display: flex !important; align-items: center !important; gap: 10px !important; padding: 12px 16px 0 !important; }
  html body #iba-irisph .iph-top b { letter-spacing: .14em !important; font-size: 15px !important; }
  html body #iba-irisph .iph-chip { border: 1px solid rgba(255,255,255,.12) !important; border-radius: 999px !important; padding: 2px 9px !important; font-size: 11px !important; color: #e3c98a !important; }
  html body #iba-irisph .iph-x { margin-left: auto !important; width: 38px !important; height: 38px !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.12) !important; background: #0e1318 !important; color: #eef3f8 !important; display: grid !important; place-items: center !important; }
  html body #iba-irisph .iph-orb { display: grid !important; justify-items: center !important; }
  html body #iba-irisph .iph-orb canvas { width: min(170px, 42vw) !important; height: min(170px, 42vw) !important; }
  html body #iba-irisph .iph-st { margin-top: -4px !important; min-height: 20px !important; font-size: 13px !important; color: #2fd3c2 !important; padding: 0 16px !important; text-align: center !important; }
  html body #iba-irisph .iph-log { overflow: auto !important; min-height: 0 !important; padding: 8px 14px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; scrollbar-width: none !important; }
  html body #iba-irisph .iph-log::-webkit-scrollbar { display: none !important; }
  html body #iba-irisph .iph-m { max-width: 88% !important; padding: 9px 12px !important; border-radius: 16px !important; font-size: 14.5px !important; word-wrap: break-word !important; }
  html body #iba-irisph .iph-me { align-self: flex-end !important; background: #1d2a33 !important; border-bottom-right-radius: 5px !important; }
  html body #iba-irisph .iph-ir { align-self: flex-start !important; background: linear-gradient(135deg, rgba(47,211,194,.16), rgba(224,181,74,.12)) !important; border: 1px solid rgba(224,181,74,.25) !important; border-bottom-left-radius: 5px !important; }
  html body #iba-irisph .iph-ir small { display: block !important; color: #e0b54a !important; font-size: 11px !important; letter-spacing: .08em !important; margin-bottom: 2px !important; }
  html body #iba-irisph .iph-card { margin-top: 7px !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 12px !important; padding: 8px 10px !important; background: rgba(0,0,0,.25) !important; font-size: 13px !important; display: grid !important; gap: 4px !important; }
  html body #iba-irisph .iph-po { font: 700 17px ui-monospace, Menlo, Consolas, monospace !important; }
  html body #iba-irisph .iph-v { color: #e0b54a !important; }
  html body #iba-irisph .iph-row { display: grid !important; grid-template-columns: 1fr auto auto !important; gap: 8px !important; align-items: center !important; }
  html body #iba-irisph .iph-row b { font-variant-numeric: tabular-nums !important; }
  html body #iba-irisph .iph-s { font-style: normal !important; font-size: 11.5px !important; padding: 1px 8px !important; border-radius: 999px !important; background: rgba(47,211,194,.15) !important; color: #7be3ff !important; }
  html body #iba-irisph .iph-s.is-done { background: rgba(255,255,255,.08) !important; color: #b9a978 !important; }
  html body #iba-irisph .iph-opts { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; margin-top: 8px !important; }
  html body #iba-irisph .iph-opts button { display: inline-flex !important; align-items: center !important; gap: 6px !important; border: 1px solid #2fd3c2 !important; color: #2fd3c2 !important; background: transparent !important; border-radius: 999px !important; padding: 5px 13px !important; font: inherit !important; font-size: 13.5px !important; min-height: 34px !important; }
  html body #iba-irisph .iph-opts button.is-wa { border-color: #25d366 !important; color: #25d366 !important; }
  html body #iba-irisph .iph-type { display: flex !important; gap: 8px !important; padding: 6px 14px 0 !important; }
  html body #iba-irisph .iph-type[hidden] { display: none !important; }
  html body #iba-irisph .iph-type input { flex: 1 !important; min-width: 0 !important; height: 46px !important; border-radius: 23px !important; border: 1px solid rgba(255,255,255,.14) !important; background: #0e1318 !important; color: #eef3f8 !important; padding: 0 16px !important; font-size: 16px !important; }
  html body #iba-irisph .iph-type button { width: 46px !important; height: 46px !important; border-radius: 50% !important; border: 0 !important; background: #2fd3c2 !important; color: #05202a !important; }
  html body #iba-irisph .iph-bar { display: flex !important; align-items: center !important; justify-content: center !important; gap: 22px !important; padding: 12px 0 18px !important; }
  html body #iba-irisph .iph-mic { width: 74px !important; height: 74px !important; border-radius: 50% !important; border: 0 !important; background: radial-gradient(circle at 35% 30%, #7be3ff, #2fd3c2 45%, #1b6f8a) !important; color: #05202a !important; font-size: 28px !important; box-shadow: 0 0 0 6px rgba(47,211,194,.15), 0 0 30px rgba(47,211,194,.45) !important; }
  html body #iba-irisph .iph-mic.is-on { background: radial-gradient(circle at 35% 30%, #ffd98a, #e0b54a 45%, #8a5a12) !important; box-shadow: 0 0 0 12px rgba(224,181,74,.12), 0 0 40px rgba(224,181,74,.55) !important; }
  html body #iba-irisph .iph-sm { width: 46px !important; height: 46px !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.12) !important; background: #0e1318 !important; color: #eef3f8 !important; font-size: 17px !important; display: grid !important; place-items: center !important; }
}

/* 18.0.0 patch 43: "What can IRIS do?" guide + About IRIS - js/iba-1800-iris-guide.js */
@layer iba-ui {
  html body #iba-igd { position: fixed !important; inset: 0 !important; z-index: 2147482700 !important; display: grid !important; place-items: center !important; background: rgba(3,6,10,.45) !important; padding: 16px !important; }
  html body #iba-igd[hidden] { display: none !important; }
  html body #iba-igd .igd-box { width: min(760px, 100%) !important; max-height: min(86vh, 900px) !important; display: grid !important; grid-template-rows: auto 1fr !important; overflow: hidden !important;
    border-radius: 20px !important; border: 1px solid rgba(255,255,255,.12) !important; background: linear-gradient(160deg, rgba(16,32,42,.92), rgba(7,9,12,.94)) !important; color: #eef3f8 !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(47,211,194,.12) inset !important; font: 14.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif !important; }
  html body #iba-igd .igd-head { display: flex !important; align-items: center !important; gap: 6px !important; padding: 10px 10px 0 12px !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; flex-wrap: wrap !important; }
  html body #iba-igd .igd-tab { display: inline-flex !important; align-items: center !important; gap: 7px !important; border: 0 !important; background: transparent !important; color: #b9a978 !important; font: 600 14px system-ui, sans-serif !important;
    padding: 10px 12px !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; cursor: pointer !important; }
  html body #iba-igd .igd-tab.is-on { color: #eef3f8 !important; border-bottom-color: #2fd3c2 !important; }
  html body #iba-igd .igd-x { margin-left: auto !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(0,0,0,.25) !important; color: #eef3f8 !important; display: grid !important; place-items: center !important; cursor: pointer !important; }
  html body #iba-igd .igd-body { overflow: auto !important; padding: 14px 18px 20px !important; display: grid !important; gap: 14px !important; scrollbar-width: none !important; }
  html body #iba-igd .igd-body::-webkit-scrollbar { display: none !important; }
  html body #iba-igd .igd-sec h3 { margin: 0 0 2px !important; font-size: 15px !important; color: #e0b54a !important; display: flex !important; gap: 8px !important; align-items: center !important; }
  html body #iba-igd .igd-sec p { margin: 0 0 7px !important; color: #EBD8A8 !important; font-size: 13.5px !important; }
  html body #iba-igd .igd-ex { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
  html body #iba-igd .igd-ex button { display: inline-flex !important; border: 1px solid rgba(47,211,194,.45) !important; background: rgba(47,211,194,.08) !important; color: #bff4ee !important; border-radius: 999px !important; padding: 5px 12px !important; font: 13px system-ui, sans-serif !important; cursor: pointer !important; text-align: left !important; }
  html body #iba-igd .igd-ex button:hover { background: rgba(47,211,194,.2) !important; }
  html body #iba-igd .igd-tip { font-size: 13px !important; color: #cfd8e0 !important; padding: 4px 10px !important; border-left: 2px solid #e0b54a !important; background: rgba(224,181,74,.06) !important; border-radius: 4px !important; }
  html body #iba-igd .igd-about { display: grid !important; justify-items: center !important; gap: 10px !important; text-align: center !important; padding: 6px 0 4px !important; }
  html body #iba-igd .igd-logo { width: 96px !important; height: 96px !important; border-radius: 50% !important; display: grid !important; place-items: center !important; border: 2px solid rgba(123,227,255,.7) !important; box-shadow: 0 0 22px rgba(47,211,194,.55), inset 0 0 18px rgba(47,211,194,.35) !important; }
  html body #iba-igd .igd-logo span { width: 58px !important; height: 58px !important; border-radius: 50% !important; background: radial-gradient(circle at 35% 30%, #fff8, #7be3ff 25%, #2fd3c2 50%, #a77bff 85%) !important; box-shadow: 0 0 20px #2fd3c2 !important; }
  html body #iba-igd .igd-name { font: 800 30px/1 system-ui, sans-serif !important; letter-spacing: .32em !important; padding-left: .32em !important; }
  html body #iba-igd .igd-full { color: #e0b54a !important; font-size: 14px !important; }
  html body #iba-igd .igd-letters { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 8px !important; width: 100% !important; margin-top: 6px !important; }
  html body #iba-igd .igd-letters > div { display: flex !important; gap: 10px !important; align-items: flex-start !important; text-align: left !important; padding: 10px !important; border-radius: 12px !important; border: 1px solid rgba(255,255,255,.1) !important; background: rgba(0,0,0,.22) !important; }
  html body #iba-igd .igd-letters b { font: 800 26px/1 system-ui, sans-serif !important; color: #2fd3c2 !important; min-width: 22px !important; }
  html body #iba-igd .igd-letters strong { display: block !important; font-size: 14px !important; }
  html body #iba-igd .igd-letters span { display: block !important; font-size: 12.5px !important; color: #EBD8A8 !important; }
  html body #iba-igd .igd-brief { max-width: 60ch !important; color: #dfe7ee !important; font-size: 14px !important; margin: 4px 0 !important; }
  html body #iba-igd .igd-meta { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; gap: 6px 14px !important; width: 100% !important; text-align: left !important; border-top: 1px solid rgba(255,255,255,.08) !important; padding-top: 10px !important; }
  html body #iba-igd .igd-meta span { display: block !important; font-size: 11.5px !important; color: #b9a978 !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
  html body #iba-igd .igd-meta b { font-size: 13px !important; font-weight: 600 !important; }
  html body #iba-talk-pill [data-iris-guide] { font-size: 11px !important; }
  html body #iba-irisph .iph-i { margin-left: auto !important; }
  html body #iba-irisph .iph-i + .iph-x { margin-left: 0 !important; }
}

/* 18.0.0 patch 44: phone IRIS hands-free switch (own row under the mic) */
@layer iba-ui {
  html body #iba-irisph .iph-bar { flex-wrap: wrap !important; row-gap: 10px !important; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important; }
  html body #iba-irisph .iph-sm.iph-hf { order: 9 !important; flex-basis: 100% !important; width: auto !important; height: 34px !important; max-width: 190px !important; margin: 0 calc(50% - 95px) !important; border-radius: 999px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; font-size: 13px !important; color: #b9c6d0 !important; }
  html body #iba-irisph .iph-sm.iph-hf.is-on { border-color: rgba(47,211,194,.7) !important; color: #2fd3c2 !important; background: rgba(47,211,194,.1) !important; box-shadow: 0 0 14px rgba(47,211,194,.25) !important; }
  html body #iba-irisph .iph-mic.is-hf { box-shadow: 0 0 0 4px rgba(47,211,194,.35), 0 0 22px rgba(47,211,194,.35) !important; }
}

/* 18.0.0 patch 45: Job Records Invoice tab - "N already converted are not shown" */
@layer iba-ui {
  html body #wd-jr-conv-note { margin: 6px 2px 8px !important; font-size: 12.5px !important; color: var(--ui-text-3, #E3C98A) !important; font-style: italic !important; opacity: .85 !important; }
}

/* 18.0.0 patch 46: Work History - a completed job (only seen in a search) gets a grey status tag */
@layer iba-ui {
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4) #wd-reporting td.inv-status-cell .iba-wh-st.is-done { color: #9aa6b0 !important; -webkit-text-fill-color: #9aa6b0 !important; border-color: rgba(154,166,176,.35) !important; background: rgba(154,166,176,.08) !important; font-weight: 600 !important; }
}

/* 18.0.0 patch 48: IRIS as her own app (?app=iris): no ✕, wide windows keep the talk column centred */
@layer iba-ui {
  html body.iba-iris-app #iba-irisph [data-iph-x] { display: none !important; }
  html body.iba-iris-app #iba-irisph .iph-log, html body.iba-iris-app #iba-irisph .iph-type { width: min(720px, 100%) !important; justify-self: center !important; }
  html body.iba-iris-app #iba-irisph-fab { display: none !important; }
  html body.iba-iris-app #iba-irisapp-no { position: fixed !important; inset: 0 !important; z-index: 2147482650 !important; display: grid !important; place-items: center !important; background: radial-gradient(120% 60% at 50% 0, #10202a, #07090c 70%) !important; color: #eef3f8 !important; text-align: center !important; padding: 24px !important; }
  html body.iba-iris-app #iba-irisapp-no[hidden] { display: none !important; }
  html body.iba-iris-app #iba-irisapp-no b { font-size: 22px !important; letter-spacing: .18em !important; }
  html body.iba-iris-app #iba-irisapp-no p { color: #b9a978 !important; max-width: 320px !important; margin: 10px auto 0 !important; }
}

/* 18.0.0 patch 50: IRIS page ⚙ voice settings (Kokoro natural voice / phone voice) */
@layer iba-ui {
  html body #iba-irisph .iph-g { margin-left: auto !important; }
  html body #iba-irisph .iph-g ~ .iph-i { margin-left: 0 !important; }
  html body #iba-irisph .iph-set { position: absolute !important; inset: 0 !important; z-index: 5 !important; display: grid !important; place-items: center !important; background: rgba(4,7,10,.72) !important; padding: 16px !important; }
  html body #iba-irisph .iph-set[hidden] { display: none !important; }
  html body #iba-irisph .iph-set-box { width: min(420px, 100%) !important; max-height: 100% !important; overflow: auto !important; background: #0e1318 !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 18px !important; padding: 14px 16px 16px !important; display: grid !important; gap: 10px !important; box-shadow: 0 20px 60px rgba(0,0,0,.6) !important; }
  html body #iba-irisph .iph-set-head { display: flex !important; align-items: center !important; justify-content: space-between !important; }
  html body #iba-irisph .iph-set-head b { letter-spacing: .1em !important; }
  html body #iba-irisph .iph-set-check { display: flex !important; align-items: center !important; gap: 10px !important; font-weight: 600 !important; color: #eef3f8 !important; font-size: 15px !important; opacity: 1 !important; }
  html body #iba-irisph .iph-set-check input { width: 20px !important; height: 20px !important; accent-color: #2fd3c2 !important; }
  html body #iba-irisph .iph-set-note { margin: 0 !important; font-size: 12.5px !important; color: #b9a978 !important; }
  html body #iba-irisph .iph-set-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html body #iba-irisph .iph-set-row label, html body #iba-irisph .iph-set-lab { display: grid !important; gap: 4px !important; font-size: 12.5px !important; color: #cfd8df !important; }
  html body #iba-irisph .iph-set select { width: 100% !important; min-width: 0 !important; height: 40px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.15) !important; background: #121a21 !important; color: #eef3f8 !important; padding: 0 8px !important; font-size: 14px !important; }
  html body #iba-irisph .iph-set-btn { justify-self: start !important; height: 38px !important; padding: 0 16px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.1) !important; color: #2fd3c2 !important; font-weight: 600 !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; }
  html body #iba-irisph .iph-set hr { border: 0 !important; border-top: 1px solid rgba(255,255,255,.1) !important; margin: 4px 0 !important; width: 100% !important; }
  /* 18.0.0 patch 52: "Natural voice warming up…" line under the status */
  html body #iba-irisph .iph-warm { display: inline-flex !important; align-items: center !important; gap: 6px !important; margin-top: 4px !important; font-size: 11.5px !important; color: #b9a978 !important; }
  html body #iba-irisph .iph-warm[hidden] { display: none !important; }
  /* 18.0.0 patch 56: Tidy old jobs pop-up */
  html body #iba-tidy-pop .iba-tidy-box { width: min(1040px, 100%) !important; max-height: calc(100vh - 40px) !important; overflow: auto !important; }
  html body #iba-tidy-pop .iba-tidy-pick input[type=date] { height: 32px !important; border-radius: 8px !important; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(0,0,0,.25) !important; color: #eef3f8 !important; padding: 0 8px !important; color-scheme: dark !important; }
  html body #iba-tidy-pop .iba-tidy-pick button, html body #iba-tidy-pop [data-tall] { height: 32px !important; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.12) !important; color: #2fd3c2 !important; font-weight: 600 !important; cursor: pointer !important; }
  html body #iba-tidy-pop [data-tall] { height: 26px !important; padding: 0 10px !important; font-size: 12px !important; }
  html body #iba-tidy-pop .iba-tidy-ok { color: #6ee7a8 !important; }
  html body #iba-tidy-pop .iba-tidy-warn { color: #f5c26b !important; }
  html body #iba-tidy-pop .iba-tidy-tblwrap { max-height: 46vh !important; overflow: auto !important; margin: 6px 0 !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 10px !important; }
  html body #iba-tidy-pop .iba-tidy-tbl { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
  html body #iba-tidy-pop .iba-tidy-tbl th { position: sticky !important; top: 0 !important; background: #12324a !important; color: #eef3f8 !important; text-align: left !important; padding: 6px 8px !important; font-weight: 600 !important; }
  html body #iba-tidy-pop .iba-tidy-tbl td { padding: 5px 8px !important; border-top: 1px solid rgba(255,255,255,.07) !important; color: #e8eef3 !important; vertical-align: middle !important; }
  html body #iba-tidy-pop .iba-tidy-tbl .r { text-align: right !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; }
  html body #iba-tidy-pop .iba-tidy-tbl .m { font-family: ui-monospace, Menlo, Consolas, monospace !important; }
  html body #iba-tidy-pop .iba-tidy-tbl select { height: 30px !important; min-width: 110px !important; width: auto !important; padding: 0 8px !important; font-size: 13px !important; line-height: normal !important; border-radius: 8px !important; background: #121a21 !important; color: #eef3f8 !important; border: 1px solid rgba(255,255,255,.15) !important; }
  html body #iba-tidy-pop select option { background: #121a21 !important; color: #eef3f8 !important; }
  html body #iba-tidy-pop .iba-tidy-pick input[type=date] { width: auto !important; display: inline-block !important; min-width: 150px !important; margin: 0 6px !important; font-size: 14px !important; }
  html body #iba-tidy-pop .iba-pb-head { display: flex !important; align-items: center !important; justify-content: space-between !important; }
  html body #iba-tidy-pop .iba-pb-head button { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.15) !important; color: #eef3f8 !important; }
  /* 18.0.0 patch 57: Recycle Bin (same look as Tidy) */
  html body #iba-bin-pop .iba-tidy-box { width: min(1180px, 100%) !important; max-height: calc(100vh - 40px) !important; overflow: auto !important; }
  html body #iba-bin-pop .iba-pb-head { display: flex !important; align-items: center !important; justify-content: space-between !important; }
  html body #iba-bin-pop .iba-pb-head button { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.15) !important; color: #eef3f8 !important; }
  html body #iba-bin-pop .iba-bin-tabs { display: flex !important; gap: 6px !important; padding: 8px 18px 0 !important; flex-wrap: wrap !important; }
  html body #iba-bin-pop .iba-bin-tabs button { height: 30px !important; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.15) !important; background: rgba(255,255,255,.05) !important; color: #cfd8df !important; font-size: 12.5px !important; }
  html body #iba-bin-pop .iba-bin-tabs button.is-on { background: rgba(47,211,194,.15) !important; border-color: rgba(47,211,194,.6) !important; color: #2fd3c2 !important; font-weight: 600 !important; }
  html body #iba-bin-pop .iba-bin-tabs button[disabled] { opacity: .5 !important; cursor: default !important; }
  html body #iba-bin-pop .iba-tidy-tblwrap { max-height: 60vh !important; overflow: auto !important; margin: 8px 18px !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 10px !important; }
  html body #iba-bin-pop .iba-tidy-tbl { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
  html body #iba-bin-pop .iba-tidy-tbl th { position: sticky !important; top: 0 !important; background: #12324a !important; color: #eef3f8 !important; text-align: left !important; padding: 6px 8px !important; font-weight: 600 !important; }
  html body #iba-bin-pop .iba-tidy-tbl td { padding: 5px 8px !important; border-top: 1px solid rgba(255,255,255,.07) !important; color: #e8eef3 !important; vertical-align: middle !important; }
  html body #iba-bin-pop .iba-tidy-tbl .r { text-align: right !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; }
  html body #iba-bin-pop .iba-tidy-tbl .m { font-family: ui-monospace, Menlo, Consolas, monospace !important; }
  html body #iba-bin-pop .iba-bin-act { white-space: nowrap !important; text-align: right !important; }
  html body #iba-bin-pop .iba-bin-act button { height: 28px !important; padding: 0 10px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.1) !important; color: #2fd3c2 !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer !important; }
  html body #iba-bin-pop .iba-bin-act button.is-danger { border-color: rgba(255,107,107,.7) !important; background: rgba(220,53,69,.15) !important; color: #ff9a9a !important; }
  html body #iba-bin-pop .iba-tidy-warn { color: #f5c26b !important; }
  html body #iba-bin-pop .iba-tidy-msg { margin: 8px 18px 0 !important; }
  html body #iba-tidy-pop .iba-tidy-found summary { cursor: pointer !important; color: #2fd3c2 !important; margin: 6px 0 !important; }
  html body #iba-irisph .iph-warm i { width: 7px !important; height: 7px !important; border-radius: 50% !important; background: #e3c98a !important; animation: iph-warm-blink 1.2s ease-in-out infinite !important; }
}
@keyframes iph-warm-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* 18.0.0 patch 59: Find LPO pop-up (js/iba-1800-lpo.js) - same dark see-through glass as the side panel, no blur */
@layer iba-ui {
  html body #iba-lpo-pop { position: fixed !important; inset: 0 !important; z-index: 2147482600 !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; padding: 40px 16px !important; background: rgba(0,0,0,.35) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-sizing: border-box !important; }
  html body #iba-lpo-pop .iba-lpo-box { width: min(900px, 100%) !important; max-height: calc(100vh - 80px) !important; display: flex !important; flex-direction: column !important; border-radius: 18px !important; border: 1px solid rgba(255,255,255,.14) !important; background: radial-gradient(circle at right top, rgba(245,200,76,.14), transparent 30%), rgba(7,9,12,.44) !important; box-shadow: 0 24px 60px rgba(0,0,0,.45) !important; color: #eef3f8 !important; overflow: hidden !important; font-family: inherit !important; }
  html body #iba-lpo-pop .iba-lpo-head { display: flex !important; align-items: center !important; gap: 12px !important; padding: 18px 22px 12px !important; }
  html body #iba-lpo-pop .iba-lpo-head > i { font-size: 22px !important; color: #2fd3c2 !important; }
  html body #iba-lpo-pop .iba-lpo-title { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
  html body #iba-lpo-pop .iba-lpo-title h3 { margin: 0 !important; font-size: 19px !important; font-weight: 700 !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; letter-spacing: .02em !important; }
  html body #iba-lpo-pop .iba-lpo-title small { font-size: 12.5px !important; color: #E3C98A !important; }
  html body #iba-lpo-pop .iba-lpo-ghost { height: 34px !important; padding: 0 14px !important; border-radius: 10px !important; border: 1px solid rgba(47,211,194,.5) !important; background: transparent !important; color: #2fd3c2 !important; font-weight: 600 !important; font-size: 13px !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; }
  html body #iba-lpo-pop .iba-lpo-ghost[hidden] { display: none !important; }
  html body #iba-lpo-pop .iba-lpo-x { width: 34px !important; height: 34px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(255,255,255,.06) !important; color: #eef3f8 !important; font-size: 15px !important; cursor: pointer !important; }
  html body #iba-lpo-pop .iba-lpo-search { display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 22px 10px !important; height: 50px !important; padding: 0 16px !important; border-radius: 12px !important; border: 1px solid rgba(47,211,194,.55) !important; background: rgba(0,0,0,.28) !important; }
  html body #iba-lpo-pop .iba-lpo-search i { color: #9fb3c2 !important; }
  html body #iba-lpo-pop .iba-lpo-search input { flex: 1 1 auto !important; min-width: 0 !important; height: 40px !important; line-height: 40px !important; margin: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #eef3f8 !important; font-size: 16px !important; padding: 0 !important; }
  html body #iba-lpo-pop .iba-lpo-msg { margin: 0 22px 8px !important; color: #fca5a5 !important; font-size: 13px !important; }
  html body #iba-lpo-pop .iba-lpo-msg[hidden] { display: none !important; }
  html body #iba-lpo-pop .iba-lpo-body { flex: 1 1 auto !important; overflow: auto !important; padding: 0 22px 20px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body #iba-lpo-pop .iba-lpo-note { margin: 14px 0 !important; color: #cfd8df !important; font-size: 13.5px !important; }
  html body #iba-lpo-pop .iba-lpo-count { font-size: 12px !important; color: #9fb3c2 !important; margin: 2px 0 2px !important; }
  html body #iba-lpo-pop .iba-lpo-first { padding: 14px 0 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; align-items: flex-start !important; }
  html body #iba-lpo-pop .iba-lpo-first p { margin: 0 !important; color: #eef3f8 !important; font-size: 14px !important; line-height: 1.6 !important; }
  html body #iba-lpo-pop .iba-lpo-first code, html body #iba-lpo-pop .iba-lpo-mid code { font-family: Consolas, 'JetBrains Mono', monospace !important; color: #8aa0b0 !important; background: none !important; font-size: 11.5px !important; }
  html body #iba-lpo-pop .iba-lpo-main { height: 40px !important; padding: 0 18px !important; border-radius: 999px !important; border: 0 !important; background: #2fd3c2 !important; color: #06201d !important; font-weight: 700 !important; cursor: pointer !important; }
  html body #iba-lpo-pop .iba-lpo-row { display: flex !important; align-items: center !important; gap: 16px !important; padding: 12px 14px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.1) !important; background: rgba(255,255,255,.03) !important; }
  html body #iba-lpo-pop .iba-lpo-row.is-top { border-color: rgba(47,211,194,.45) !important; background: rgba(47,211,194,.06) !important; }
  html body #iba-lpo-pop .iba-lpo-po { font-family: Consolas, 'JetBrains Mono', monospace !important; font-weight: 700 !important; font-size: 22px !important; color: #eef3f8 !important; flex: none !important; }
  html body #iba-lpo-pop .iba-lpo-mid { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
  html body #iba-lpo-pop .iba-lpo-mid b { font-size: 15px !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body #iba-lpo-pop .iba-lpo-mid span { font-size: 12.5px !important; color: #cfd8df !important; }
  html body #iba-lpo-pop .iba-lpo-mid code { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body #iba-lpo-pop mark { background: rgba(227,201,138,.25) !important; color: inherit !important; -webkit-text-fill-color: inherit !important; border-radius: 3px !important; padding: 0 1px !important; }
  html body #iba-lpo-pop .iba-lpo-acts { display: flex !important; gap: 8px !important; flex: none !important; }
  html body #iba-lpo-pop .iba-lpo-acts button { height: 38px !important; padding: 0 14px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(255,255,255,.06) !important; color: #eef3f8 !important; font-weight: 600 !important; font-size: 13px !important; cursor: pointer !important; }
  html body #iba-lpo-pop .iba-lpo-acts button.is-mail { background: #2b6cb0 !important; border-color: #2b6cb0 !important; color: #fff !important; }
  html body #iba-lpo-pop .iba-lpo-acts button.is-wa { background: #1f8a5b !important; border-color: #1f8a5b !important; color: #fff !important; }
  html body #iba-lpo-pop .iba-lpo-acts button.is-copy { width: 38px !important; padding: 0 !important; }
}
/* 18.0.0 patch 60: Job Records "More tools" menu (Tidy old jobs, Recycle Bin) */
@layer iba-ui {
  html body #iba-jr-tools { position: relative !important; display: inline-flex !important; }
  html body #iba-jr-tools .iba-jr-caret { font-size: 10px !important; margin-left: 4px !important; opacity: .8 !important; }
  html body #iba-jr-tools .iba-jr-tools-menu { position: absolute !important; top: calc(100% + 6px) !important; left: 0 !important; z-index: 9000 !important; min-width: 280px !important; display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 6px !important; border-radius: 12px !important; border: 1px solid rgba(255,255,255,.14) !important; background: radial-gradient(circle at right top, rgba(245,200,76,.14), transparent 40%), rgba(7,9,12,.92) !important; box-shadow: 0 14px 34px rgba(0,0,0,.45) !important; }
  html body #iba-jr-tools .iba-jr-tools-menu[hidden] { display: none !important; }
  html body #iba-jr-tools .iba-jr-tools-menu button { display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important; padding: 10px 12px !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: #eef3f8 !important; text-align: left !important; cursor: pointer !important; box-shadow: none !important; }
  html body #iba-jr-tools .iba-jr-tools-menu button:hover { background: rgba(255,255,255,.08) !important; }
  html body #iba-jr-tools .iba-jr-tools-menu button > i { width: 18px !important; color: #2fd3c2 !important; font-size: 15px !important; }
  html body #iba-jr-tools .iba-jr-tools-menu button span { display: flex !important; flex-direction: column !important; gap: 1px !important; }
  html body #iba-jr-tools .iba-jr-tools-menu b { font-size: 13.5px !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; }
  html body #iba-jr-tools .iba-jr-tools-menu small { font-size: 11.5px !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }

  /* 18.0.0 patch 61: Batch Entry PO search - Reception New Entries block */
  html body #iba-brv { margin: 14px 0 4px !important; padding: 12px !important; border-radius: 14px !important; border: 1px solid rgba(47,211,194,.28) !important; background: radial-gradient(circle at right top, rgba(245,200,76,.14), transparent 30%), rgba(7,9,12,.44) !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body #iba-brv .iba-brv-head { display: flex !important; align-items: center !important; gap: 8px !important; font-weight: 700 !important; font-size: 13.5px !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; }
  html body #iba-brv .iba-brv-head i { color: #2fd3c2 !important; }
  html body #iba-brv .iba-brv-head em { font-style: normal !important; margin-left: auto !important; padding: 1px 9px !important; border-radius: 999px !important; background: rgba(47,211,194,.18) !important; color: #2fd3c2 !important; -webkit-text-fill-color: #2fd3c2 !important; font-size: 12px !important; }
  html body #iba-brv .iba-brv-row { display: flex !important; align-items: center !important; gap: 10px !important; padding: 8px 10px !important; border-radius: 10px !important; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.08) !important; }
  html body #iba-brv .iba-brv-row.is-in, html body #iba-brv .iba-brv-row.is-dup { opacity: .62 !important; }
  html body #iba-brv .iba-brv-main { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
  html body #iba-brv .iba-brv-main b { font-size: 13.5px !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; }
  html body #iba-brv .iba-brv-main span { font-size: 12px !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body #iba-brv .iba-brv-tag { flex: 0 0 auto !important; font-size: 12px !important; padding: 4px 10px !important; border-radius: 999px !important; background: rgba(255,255,255,.08) !important; color: #c9d3dd !important; -webkit-text-fill-color: #c9d3dd !important; }
  html body #iba-brv .iba-brv-tag.is-dup { background: rgba(245,200,76,.14) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body #iba-brv button[data-brv-add] { flex: 0 0 auto !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 6px 12px !important; border-radius: 9px !important; border: 1px solid rgba(47,211,194,.5) !important; background: rgba(47,211,194,.16) !important; color: #2fd3c2 !important; -webkit-text-fill-color: #2fd3c2 !important; font-weight: 700 !important; font-size: 12.5px !important; cursor: pointer !important; }
  html body #iba-brv button[data-brv-add]:hover { background: rgba(47,211,194,.28) !important; }

  /* ===== 18.0.0 patch 62: tracker style for Invoice Entry / Invoice Records, Summary Note Per PO box, New entries card ===== */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs > div { padding: 0 14px !important; border-left: 1px solid rgba(255,255,255,.14) !important; min-width: 0 !important; background: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs > div:first-child { padding-left: 0 !important; border-left: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2 .l, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs .l, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-top .l { display: block !important; margin: 0 0 3px !important; font-size: 10.5px !important; letter-spacing: .08em !important; text-transform: uppercase !important; font-weight: 600 !important; color: #9fb0c2 !important; -webkit-text-fill-color: #9fb0c2 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs b { display: block !important; font-size: 17px !important; font-weight: 800 !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; color: #F4F1EA !important; -webkit-text-fill-color: #F4F1EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs .is-ok :is(.l, b) { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs .is-bal :is(.l, b) { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-figs .is-bal.is-neg :is(.l, b) { color: #F87171 !important; -webkit-text-fill-color: #F87171 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-bar { display: flex !important; height: 6px !important; border-radius: 9px !important; overflow: hidden !important; background: rgba(255,255,255,.08) !important; margin-top: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-bar i { display: block !important; height: 100% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-bar .p, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-leg i.p { background: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-bar .a, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-leg i.a { background: #FF7EB6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-bar .o, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-leg i.o { background: #5AA9FF !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-leg { display: flex !important; flex-wrap: wrap !important; gap: 4px 16px !important; margin-top: 8px !important; font-size: 12px !important; color: #c9d3dd !important; -webkit-text-fill-color: #c9d3dd !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-leg i { display: inline-block !important; width: 9px !important; height: 9px !important; border-radius: 50% !important; margin-right: 6px !important; vertical-align: -1px !important; background: rgba(255,255,255,.25) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-top { display: flex !important; align-items: center !important; flex-wrap: wrap !important; row-gap: 6px !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-top > div { display: flex !important; flex-direction: column !important; padding: 0 16px !important; border-left: 1px solid rgba(255,255,255,.14) !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-top > div:first-child { padding-left: 0 !important; border-left: 0 !important; }
  /* page: figures under the PO strip */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-ie2-page { margin: 10px 0 4px !important; padding: 14px 16px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(255,255,255,.03) !important; }
  /* page: Existing Invoices table */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) table.iba-ie2-tbl td.iba-ie2-no { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) table.iba-ie2-tbl :is(td, th) + :is(td, th) { border-left: 1px solid rgba(255,255,255,.07) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) table.iba-ie2-tbl td.iba-ie2-n { font-variant-numeric: tabular-nums !important; font-weight: 700 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-st, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rc-st { display: inline-flex !important; align-items: center !important; gap: 7px !important; background: none !important; padding: 0 !important; border: 0 !important; font-size: 13px !important; font-weight: 600 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie2-st > i { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: currentColor !important; flex: 0 0 auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rc-st::before { content: "" !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: currentColor !important; flex: 0 0 auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(.iba-ie2-st, .iba-rc-st).is-paid { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(.iba-ie2-st, .iba-rc-st).is-acc { color: #FF7EB6 !important; -webkit-text-fill-color: #FF7EB6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(.iba-ie2-st, .iba-rc-st).is-apv { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(.iba-ie2-st, .iba-rc-st).is-proc { color: #5AA9FF !important; -webkit-text-fill-color: #5AA9FF !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) :is(.iba-ie2-st, .iba-rc-st).is-stop { color: #F87171 !important; -webkit-text-fill-color: #F87171 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) tfoot.iba-ie2-foot td { border-top: 1px solid rgba(255,255,255,.18) !important; font-weight: 800 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) tfoot.iba-ie2-foot #im-invoices-total-paid { color: #F5C84C !important; -webkit-text-fill-color: #F5C84C !important; }
  /* pop-up PO strip */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie-po.iba-ie2-po { display: flex !important; flex-direction: column !important; gap: 12px !important; align-items: stretch !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-site .im-po-site { font-weight: 700 !important; font-size: 15px !important; color: #F4F1EA !important; -webkit-text-fill-color: #F4F1EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-figs { border-top: 1px solid rgba(255,255,255,.12) !important; padding-top: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-figs .iba-ie-fig b { font-size: 17px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-figs .is-bal b { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-figs .is-bal.is-neg b { color: #F87171 !important; -webkit-text-fill-color: #F87171 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-figs .is-ok b { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-barw:empty { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal.iba-ie-a .iba-ie2-po .iba-ie2-barw .iba-ie2-bar { margin-top: 0 !important; }
  /* Invoice Records cards */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-records-sheet.iba-rc-on > .grid-header { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc { border: 1px solid rgba(255,255,255,.14) !important; border-radius: 14px !important; background: rgba(9,18,30,.42) !important; margin: 0 0 12px !important; padding: 0 !important; overflow: hidden !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc > .master-grid-row { display: none !important; }
  /* p63: Records cards see-through glass (martin), no blur */
  /* p106 (martin): Batch hides SRV name + description, Invoice name has a NIL chip, summary note on row 3; IE keeps name boxes, Nil ticks for Invoice + SRV, Notes box = Remarks / Summary note / Details rows */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .batch-input-grid > div:has(> input[name="srvName"]), html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .batch-input-grid > div:has(> input[name="details"]) { display: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-po.bc-head { grid-column: 1 / 15 !important; display: flex !important; align-items: center !important; gap: 10px !important; min-width: 0 !important; white-space: nowrap !important; overflow: hidden !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > div:not(:has(.po-closeout-ready-dot)), html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > .bc-site, html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > .bc-vendor { margin: 0 !important; font-weight: 800 !important; font-size: 1.05rem !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > .bc-vendor { min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; flex: 0 1 auto !important; max-width: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > div span { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-style: italic !important; font-weight: 500 !important; font-size: .8rem !important; margin-left: 4px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head > .bc-bar { color: rgba(227,201,138,.55) !important; -webkit-text-fill-color: rgba(227,201,138,.55) !important; font-weight: 300 !important; font-size: 1.1rem !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-head i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-status { grid-column: 9 / 13 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-att { grid-column: 13 / 17 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="invName"]) { grid-column: 1 / 5 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note { grid-row: 3 !important; grid-column: 5 / 13 !important; padding-top: 8px !important; border-top: 1px dashed rgba(148,163,184,.25) !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note input[name="note"] { height: 40px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > label { height: 20px !important; min-height: 20px !important; overflow: visible !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > label .iba-bt-rmk { height: 20px !important; min-height: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 4px 10px !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > label { grid-column: 1 / 3 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-f:has([name="releaseDate"]) { grid-column: 13 / 17 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > label .iba-bt-rmk { display: none !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > label::after { content: "Remark" !important; width: calc(50% - 5px) !important; text-align: left !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > input[name="note"] { grid-column: 1 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .bc-note > input[name="remark"] { grid-column: 2 !important; grid-row: 2 !important; display: block !important; height: 40px !important; width: 100% !important; box-sizing: border-box !important; margin: 0 !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card :is(.bc-note, .bc-f:has([name="invName"]), .bc-f:has([name="releaseDate"])) { align-self: start !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nrow { display: grid !important; grid-template-columns: 118px minmax(0, 1fr) !important; align-items: center !important; column-gap: 10px !important; margin: 0 0 10px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nrow > label { grid-column: 1 !important; margin: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nrow > :not(label) { grid-column: 2 !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-sec.is-files > h4 { display: flex !important; align-items: center !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nils { margin-left: auto !important; display: inline-flex !important; gap: 16px !important; align-items: center !important; flex-wrap: wrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nil { display: inline-flex !important; align-items: center !important; align-self: center !important; gap: 6px !important; margin: 0 !important; white-space: nowrap !important; text-transform: none !important; letter-spacing: 0 !important; flex: 0 0 auto !important; font-size: .78rem !important; font-weight: 500 !important; cursor: pointer !important; color: var(--ui-text-2, #EBD8A8) !important; -webkit-text-fill-color: var(--ui-text-2, #EBD8A8) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-invoice-entry-modal .iba-ie-nil input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: #E3C98A !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .iba-bt-nil, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-bt-nil { width: auto !important; min-width: 0 !important; min-height: 0 !important; max-height: 20px !important; box-shadow: none !important; height: 20px !important; line-height: 18px !important; padding: 0 9px !important; font-size: 9px !important; font-weight: 800 !important; letter-spacing: .04em !important; border-radius: 999px !important; background: transparent !important; border: 1px solid #E3C98A !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; cursor: pointer !important; }
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-batch-entry #im-batch-table-body .batch-invoice-card .iba-bt-nil.is-on, html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-bt-nil.is-on { background: #E3C98A !important; border-color: #E3C98A !important; color: #10202e !important; -webkit-text-fill-color: #10202e !important; }
  /* p105: Summary note field - Invoice Entry box + SUM, Batch Entry 💬 remark, tracker Summary Yes / No */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie-sum-row { display: flex !important; gap: 6px !important; align-items: stretch !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie-sum-row input { flex: 1 1 auto !important; min-width: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-ie-sum-btn { flex: 0 0 auto !important; padding: 0 12px !important; border-radius: 8px !important; border: 1px solid #6B4F9A !important; background: #6B4F9A !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 800 !important; font-size: 11px !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-bt-rmk { background: transparent !important; border: 0 !important; padding: 0 2px !important; color: rgba(255,255,255,.55) !important; -webkit-text-fill-color: rgba(255,255,255,.55) !important; cursor: pointer !important; font-size: 13px !important; line-height: 1 !important; height: auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-bt-rmk.is-on { color: #F7C948 !important; -webkit-text-fill-color: #F7C948 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) input.iba-bt-rmk-in { margin-top: 4px !important; height: 28px !important; font-weight: 500 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) input.iba-bt-rmk-in[hidden] { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-trk-sumyn { display: flex !important; align-items: center !important; gap: 8px !important; margin-top: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-trk-sumyn b { font-weight: 800 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-trk-sumyn b.is-yes { color: #34D399 !important; -webkit-text-fill-color: #34D399 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-trk-sumyn b.is-no { color: #9CA3AF !important; -webkit-text-fill-color: #9CA3AF !important; }
  /* p103: Summary Note - warning when the invoices have different vendors (screen only, never printed) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-sn-vwarn { display: block !important; margin-top: 6px !important; padding: 6px 10px !important; border-radius: 8px !important; background: #FEF3C7 !important; color: #92400E !important; -webkit-text-fill-color: #92400E !important; font-size: 12.5px !important; font-weight: 600 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-sn-vwarn[hidden] { display: none !important; }
  @media print { html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-sn-vwarn { display: none !important; } }
  /* p97: IRIS WhatsApp approval reminder card */
  html body .iba-apvwa .iba-apvwa-row { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; flex-wrap: wrap !important; padding: 6px 0 !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
  html body .iba-apvwa .iba-apvwa-row.is-off span { color: #f5c26b !important; -webkit-text-fill-color: #f5c26b !important; }
  html body .iba-apvwa .iba-apvwa-row [data-apvwa] { background: #1f9d55 !important; border-color: #25D366 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body .iba-apvwa .iba-apvwa-text summary { cursor: pointer !important; margin-top: 6px !important; }
  html body .iba-apvwa .iba-apvwa-text pre { white-space: pre-wrap !important; word-break: break-word !important; font-size: 12px !important; margin: 6px 0 0 !important; padding: 8px 10px !important; border-radius: 8px !important; background: rgba(0,0,0,.25) !important; }
  /* p94: "Stuck too long" window (Super Admin): same look as the Recycle Bin */
  html body #iba-stuck-pop .iba-tidy-box { width: min(1180px, 100%) !important; max-height: calc(100vh - 40px) !important; overflow: auto !important; }
  html body #iba-stuck-pop .iba-pb-head { display: flex !important; align-items: center !important; justify-content: space-between !important; }
  html body #iba-stuck-pop .iba-pb-head button { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.15) !important; color: #eef3f8 !important; }
  html body #iba-stuck-pop .iba-bin-tabs { display: flex !important; gap: 6px !important; padding: 8px 18px 0 !important; flex-wrap: wrap !important; }
  html body #iba-stuck-pop .iba-bin-tabs button { height: 30px !important; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.15) !important; background: rgba(255,255,255,.05) !important; color: #cfd8df !important; font-size: 12.5px !important; }
  html body #iba-stuck-pop .iba-bin-tabs button.is-on { background: rgba(47,211,194,.15) !important; border-color: rgba(47,211,194,.6) !important; color: #2fd3c2 !important; font-weight: 600 !important; }
  html body #iba-stuck-pop .iba-bin-tabs button[disabled] { opacity: .5 !important; cursor: default !important; }
  html body #iba-stuck-pop .iba-tidy-tblwrap { max-height: 60vh !important; overflow: auto !important; margin: 8px 18px !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 10px !important; }
  html body #iba-stuck-pop .iba-tidy-tbl { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
  html body #iba-stuck-pop .iba-tidy-tbl th { position: sticky !important; top: 0 !important; background: #12324a !important; color: #eef3f8 !important; text-align: left !important; padding: 6px 8px !important; font-weight: 600 !important; }
  html body #iba-stuck-pop .iba-tidy-tbl td { padding: 5px 8px !important; border-top: 1px solid rgba(255,255,255,.07) !important; color: #e8eef3 !important; vertical-align: middle !important; }
  html body #iba-stuck-pop .iba-tidy-tbl .r { text-align: right !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; }
  html body #iba-stuck-pop .iba-tidy-tbl .m { font-family: ui-monospace, Menlo, Consolas, monospace !important; }
  html body #iba-stuck-pop .iba-bin-act { white-space: nowrap !important; text-align: right !important; }
  html body #iba-stuck-pop .iba-bin-act button { height: 28px !important; padding: 0 10px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.1) !important; color: #2fd3c2 !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer !important; }
  html body #iba-stuck-pop .iba-bin-act button.is-danger { border-color: rgba(255,107,107,.7) !important; background: rgba(220,53,69,.15) !important; color: #ff9a9a !important; }
  html body #iba-stuck-pop .iba-tidy-warn { color: #f5c26b !important; }
  html body #iba-stuck-pop .iba-tidy-msg { margin: 8px 18px 0 !important; }
  html body #iba-stuck-pop .iba-bin-act button.is-plain, html body #iba-stuck-pop .iba-stk-remacts button.is-plain { border-color: rgba(255,255,255,.2) !important; background: transparent !important; color: #cfd8df !important; }
  html body #iba-stuck-pop .iba-bin-act button[disabled], html body #iba-stuck-pop .iba-stk-remacts button[disabled] { opacity: .5 !important; cursor: default !important; }
  html body #iba-stuck-pop .iba-bin-tabs .iba-stk-setbtn { margin-left: auto !important; color: #E3C98A !important; border-color: rgba(227,201,138,.45) !important; }
  html body #iba-stuck-pop .iba-stk-age { display: inline-block !important; padding: 2px 9px !important; border-radius: 999px !important; font-weight: 700 !important; font-size: 12px !important; white-space: nowrap !important; }
  html body #iba-stuck-pop .iba-stk-age.is-watch { background: rgba(245,194,107,.16) !important; color: #f5c26b !important; }
  html body #iba-stuck-pop .iba-stk-age.is-alert { background: rgba(255,140,90,.18) !important; color: #ffa27a !important; }
  html body #iba-stuck-pop .iba-stk-age.is-critical { background: rgba(255,90,95,.2) !important; color: #ff9a9a !important; }
  html body #iba-stuck-pop .iba-stk-set, html body #iba-stuck-pop .iba-stk-rembox { margin: 8px 18px !important; padding: 10px 12px !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 10px !important; background: rgba(0,0,0,.18) !important; color: #e8eef3 !important; display: grid !important; gap: 8px !important; }
  html body #iba-stuck-pop .iba-stk-rembox { margin: 4px 0 !important; }
  html body #iba-stuck-pop .iba-stk-setgrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 6px 12px !important; }
  html body #iba-stuck-pop .iba-stk-setgrid label, html body #iba-stuck-pop .iba-stk-rembox label { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; font-size: 12.5px !important; }
  html body #iba-stuck-pop input[type=number] { width: 70px !important; height: 30px !important; }
  html body #iba-stuck-pop input, html body #iba-stuck-pop textarea { border-radius: 8px !important; border: 1px solid rgba(255,255,255,.2) !important; background: rgba(0,0,0,.25) !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; padding: 4px 8px !important; font-size: 13px !important; }
  html body #iba-stuck-pop .iba-stk-rembox label input { flex: 1 !important; height: 30px !important; }
  html body #iba-stuck-pop .iba-stk-rembox textarea { width: 100% !important; resize: vertical !important; }
  html body #iba-stuck-pop .iba-stk-remacts { display: flex !important; gap: 8px !important; justify-content: flex-end !important; }
  html body #iba-stuck-pop .iba-stk-remacts button { height: 30px !important; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.1) !important; color: #2fd3c2 !important; cursor: pointer !important; }
  html body #iba-stuck-pop tr.iba-stk-rem td { border-top: 0 !important; }
  /* p93: Batch Entry row left in the batch because something is missing (red until you type in it) */
  html body .batch-invoice-card.iba-bt-bad { outline: 2px solid #ff5a5f !important; outline-offset: 2px !important; box-shadow: 0 0 0 4px rgba(255,90,95,.18) !important; }
  html body .batch-invoice-card.iba-bt-bad::after { content: attr(data-bt-bad) !important; display: block !important; grid-column: 1 / -1 !important; margin-top: 6px !important; padding: 6px 10px !important; border-radius: 8px !important; background: rgba(255,90,95,.14) !important; color: #ffb3b5 !important; -webkit-text-fill-color: #ffb3b5 !important; font-size: 12px !important; font-weight: 600 !important; }
  /* p92: Invoice Entry "Save as new" next to Update (edit mode only) */
  html body #iba-save-as-new-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; background: #0e6f8a !important; background-image: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important; }
  html body #iba-save-as-new-btn:hover { background: #12819f !important; }
  html body #iba-save-as-new-btn.hidden { display: none !important; }
  html body #iba-save-as-new-btn[disabled] { opacity: .55 !important; cursor: progress !important; }
  /* p91: "More tools" (Job Records) looks like the other buttons in that row (Clear / Print): same dark field, line, text */
  html body #iba-jr-tools > button[data-jr-tools] { height: 38px !important; min-height: 0 !important; padding: 0 14px !important; margin: 0 !important; gap: 7px !important; display: inline-flex !important; align-items: center !important; border-radius: var(--ui-radius-m, 10px) !important; border: 1px solid var(--ui-line, rgba(255,255,255,.14)) !important; background: var(--ui-field, rgba(255,255,255,.05)) !important; background-image: none !important; color: var(--ui-text, #eef3f8) !important; -webkit-text-fill-color: var(--ui-text, #eef3f8) !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; white-space: nowrap !important; cursor: pointer !important; }
  html body #iba-jr-tools > button[data-jr-tools]:hover { background: var(--ui-field-hover, rgba(255,255,255,.1)) !important; border-color: rgba(255,255,255,.26) !important; }
  html body #iba-jr-tools > button[data-jr-tools] i { color: var(--ui-text-2, #EBD8A8) !important; -webkit-text-fill-color: var(--ui-text-2, #EBD8A8) !important; font-size: 13px !important; }
  /* p91: Material Stock "Recycle Bin" button (Super Admin) = same style */
  html body #iba-ms-bin-btn { height: 38px !important; min-height: 0 !important; padding: 0 14px !important; margin: 0 !important; gap: 7px !important; display: inline-flex !important; align-items: center !important; border-radius: var(--ui-radius-m, 10px) !important; border: 1px solid var(--ui-line, rgba(255,255,255,.14)) !important; background: var(--ui-field, rgba(255,255,255,.05)) !important; background-image: none !important; color: var(--ui-text, #eef3f8) !important; -webkit-text-fill-color: var(--ui-text, #eef3f8) !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; white-space: nowrap !important; cursor: pointer !important; }
  html body #iba-ms-bin-btn:hover { background: var(--ui-field-hover, rgba(255,255,255,.1)) !important; }
  html body #iba-ms-bin-btn i { color: var(--ui-text-2, #EBD8A8) !important; -webkit-text-fill-color: var(--ui-text-2, #EBD8A8) !important; }
  /* p91: Recycle Bin tick boxes + bulk bar */
  html body #iba-bin-pop .iba-bin-ck { width: 34px !important; text-align: center !important; padding-left: 10px !important; padding-right: 4px !important; }
  html body #iba-bin-pop .iba-bin-ck input { width: 17px !important; height: 17px !important; margin: 0 !important; accent-color: #2fd3c2 !important; cursor: pointer !important; }
  html body #iba-bin-pop .iba-bin-bulk { display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 8px !important; margin: 8px 18px 0 !important; min-height: 32px !important; color: #e8eef3 !important; font-size: 13px !important; }
  html body #iba-bin-pop .iba-bin-bulk small { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body #iba-bin-pop .iba-bin-bulk button { height: 30px !important; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid rgba(47,211,194,.6) !important; background: rgba(47,211,194,.1) !important; color: #2fd3c2 !important; font-size: 12.5px !important; font-weight: 600 !important; cursor: pointer !important; }
  html body #iba-bin-pop .iba-bin-bulk button.is-danger { border-color: rgba(255,107,107,.7) !important; background: rgba(220,53,69,.15) !important; color: #ff9a9a !important; }
  html body #iba-bin-pop .iba-bin-bulk button.is-plain { border-color: rgba(255,255,255,.2) !important; background: transparent !important; color: #cfd8df !important; }
  html body #iba-bin-pop .iba-bin-bulk button[disabled] { opacity: .5 !important; cursor: default !important; }
  /* p89: Batch card "Reception wrote ... using ..." note spans the whole card (was squeezed into 1 of the 16 grid columns) */
  html body.iba-bt-v2:not(.iba-mobile-ui):not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5) #im-batch-entry #im-batch-table-body .batch-invoice-card > .iba-rb-fix { grid-column: 1 / -1 !important; grid-row: auto !important; width: auto !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px !important; white-space: normal !important; padding: 6px 12px !important; border-radius: 8px !important; background: rgba(245,200,76,.12) !important; border: 1px solid rgba(245,200,76,.35) !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-size: 13px !important; }
  html body .batch-invoice-card > .iba-rb-fix b { color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: ui-monospace, Consolas, monospace !important; }
  html body .batch-invoice-card > .iba-rb-fix i { color: #F5C84C !important; -webkit-text-fill-color: #F5C84C !important; }
  html body .batch-invoice-card .iba-rb-fix button[data-rb-undo] { all: unset !important; margin-left: auto !important; cursor: pointer !important; padding: 2px 12px !important; border-radius: 999px !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12px !important; font-weight: 700 !important; }
  /* p88: Summary Note move rows by hand (Super Admin): small up/down buttons in the Inv S/N cell + Reset bar */
  html body #sn-table-body td .iba-sno-mv { display: inline-flex !important; flex-direction: column !important; gap: 2px !important; margin-left: 8px !important; vertical-align: middle !important; }
  html body #sn-table-body td .iba-sno-mv button { all: unset !important; box-sizing: border-box !important; width: 22px !important; height: 15px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 4px !important; background: #0e4d7a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12px !important; cursor: pointer !important; }
  html body #sn-table-body td .iba-sno-mv button:hover { background: #1677b8 !important; }
  html body #sn-table-body tr:first-child .iba-sno-mv [data-sno="up"], html body #sn-table-body tr:last-child .iba-sno-mv [data-sno="down"] { opacity: .25 !important; pointer-events: none !important; }
  html body #sn-table-body tr.iba-sno-moved > td { background: #fff3c4 !important; transition: background .5s !important; }
  html body #iba-sno-bar { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; margin: 0 0 6px !important; padding: 6px 10px !important; border-radius: 8px !important; background: #fff3c4 !important; color: #6b4e00 !important; -webkit-text-fill-color: #6b4e00 !important; font-size: 12px !important; font-weight: 700 !important; }
  html body #iba-sno-bar button { all: unset !important; cursor: pointer !important; padding: 4px 10px !important; border-radius: 6px !important; background: #0e4d7a !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12px !important; font-weight: 700 !important; }
  @media print { html body .iba-sno-mv, html body #iba-sno-bar { display: none !important; } }
  /* p86: Summary Note Per PO: a PO paid off by this note is faded on screen and left out of the print */
  html body tr.is-done.iba-snpo-fin > td { opacity: .5 !important; }
  html body .iba-snpo-done { display: block !important; color: #16a34a !important; -webkit-text-fill-color: #16a34a !important; font-weight: 700 !important; font-size: 11px !important; }
  /* p83: Find LPO: title bar drags the window; two pick buttons side by side */
  html body #iba-lpo-pop .iba-lpo-head { cursor: move !important; user-select: none !important; }
  html body #iba-lpo-pop .iba-lpo-picks { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: center !important; }
  /* p81: Invoice Records: the "Results kept from … Refresh" line is HIDDEN (martin: not needed; Search refreshes). Remove this rule to bring it back */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #iba-keep-note { display: none !important; }
  /* p81: Action buttons in Invoice Records + Invoice Entry table = dark buttons with a coloured icon and a word (like the Add / Edit buttons) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) { display: inline-flex !important; flex-wrap: wrap !important; gap: 6px !important; align-items: center !important; justify-content: flex-end !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) :is(.action-btn, .history-btn, .delete-btn) { display: inline-flex !important; align-items: center !important; gap: 6px !important; width: auto !important; min-width: 0 !important; height: 30px !important; padding: 0 11px !important; margin: 0 !important; border-radius: 9px !important; border: 1px solid rgba(255,255,255,.10) !important; background: #12171d !important; background-image: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .01em !important; line-height: 1 !important; text-decoration: none !important; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 10px rgba(0,0,0,.25) !important; white-space: nowrap !important; cursor: pointer !important; transition: background .15s, border-color .15s !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) :is(.action-btn, .history-btn, .delete-btn):hover { background: #1b232b !important; border-color: rgba(227,201,138,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) :is(.action-btn, .history-btn, .delete-btn) i { font-size: 12.5px !important; margin: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) :is(.action-btn, .history-btn, .delete-btn)::before { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .invoice-pdf-btn::before { content: "\f15c" !important; color: #2fd3c2 !important; -webkit-text-fill-color: #2fd3c2 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .srv-pdf-btn::before { content: "\f46c" !important; color: #4ade80 !important; -webkit-text-fill-color: #4ade80 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) :is(.report-pdf-btn, a.action-btn[title="View Report PDF"])::before { content: "\f1c1" !important; color: #b794f6 !important; -webkit-text-fill-color: #b794f6 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .im-enter-inv-btn i { color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .im-enter-inv-btn::after { content: "Edit" !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .history-btn i { color: #7cc4ff !important; -webkit-text-fill-color: #7cc4ff !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .history-btn::after { content: "History" !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .delete-btn::before { content: "\f2ed" !important; color: #f87171 !important; -webkit-text-fill-color: #f87171 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) :is(#im-reporting-content .im-record-actions, #im-invoices-table-body .action-btn-group) .po-closeout-send-btn::before { content: "\f0d1" !important; color: #f59e0b !important; -webkit-text-fill-color: #f59e0b !important; }
  /* p81: the Action column is wider so Edit / INV / SRV / History sit on one line (Inv No. and Note give a little room) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-entry { width: 8% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-no { width: 10% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-date { width: 8% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-value { width: 9% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-paid { width: 9% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-release { width: 8% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-status { width: 9% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-note { width: 10% !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10):not(#iba-no11) #im-reporting #im-reporting-content .im-nested-invoice-table col.im-col-action { width: 29% !important; }
  /* p79: robot dragged to the LEFT half -> its laptop scene, bubble tail and the IRIS window open toward the right (screen edge is on the left);
     TOP half -> bubble tail on top (the bubble sits under the robot) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-fab .iba-desk-scene.is-fab { left: 0 !important; right: auto !important; }
  /* p79: and the little scenes are mirrored, so walking / driving / the road now go left to right; numbers and z's are turned back so they read normally */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-fab .iba-desk-scene.is-fab svg { transform: scaleX(-1) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-fab .iba-desk-scene.is-fab svg text { transform-box: fill-box !important; transform-origin: center !important; scale: -1 1 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-tip.iba-ai-tip { border-radius: 14px 14px 14px 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-tip.iba-ai-tip::after { left: 18px !important; right: auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-T #iba-ai-tip.iba-ai-tip { border-radius: 4px 14px 14px 14px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-T:not(.iba-fab-L) #iba-ai-tip.iba-ai-tip { border-radius: 14px 4px 14px 14px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-T #iba-ai-tip.iba-ai-tip::after { top: -9px !important; bottom: auto !important; border-top: 0 !important; border-bottom: 8px solid #FACC15 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-L #iba-ai-panel.iba-ai-panel:not(.is-wide):not(.is-moved) { left: var(--iba-fab-pl, 16px) !important; right: auto !important; }
  /* p76: a dragged IRIS robot (and its speech bubbles) sits IN FRONT of the side menu (layer 99990), but drops back under any open pop-up (9999) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-is-moved :is(#iba-ai-fab.iba-fab-moved, #iba-ai-tip, #iba-ai-bubble) { z-index: 99996 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8).iba-fab-is-moved.iba-fab-under-modal :is(#iba-ai-fab.iba-fab-moved, #iba-ai-tip, #iba-ai-bubble) { z-index: 9990 !important; }
  /* p76: open PO details + column header nearly SOLID (martin: scrolled rows showing through the frosted head were confusing). Still a slight glass tint */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9):not(#iba-no10) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc.expanded :is(.iba-rc-head, .im-nested-invoice-table thead) { background-color: rgba(12, 22, 35, .95) !important; background: rgba(12, 22, 35, .95) !important; }
  /* p75: clean round corners on every Records card (martin saw broken-looking corners): everything inside is clipped to the
     same 14px round shape (clip-path, keeps the fixed PO details working) and the edge line is a bit clearer */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc { border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 14px !important; clip-path: inset(0 round 14px) !important; isolation: isolate !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc :is(.iba-rc-head, .detail-grid-row, .im-nested-invoice-table) { border-left: 0 !important; border-right: 0 !important; outline: 0 !important; }
  /* p73: fixed PO details + column header = FROSTED glass (martin: not solid). Light mode (no blur) keeps them dark so rows stay readable */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc.expanded .im-nested-invoice-table thead th { box-shadow: none !important; background: transparent !important; position: static !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc.expanded .im-nested-invoice-table thead { position: sticky !important; top: var(--rch, 0px) !important; z-index: 3 !important; background: rgba(11, 21, 34, .5) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2) !important; backdrop-filter: blur(14px) saturate(1.2) !important; }
  html.iba-lite body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8):not(#iba-no9) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc.expanded :is(.iba-rc-head, .im-nested-invoice-table thead) { background: rgba(11, 21, 34, .93) !important; }
  /* p72: Invoice Records: Search Results Summary HIDDEN (martin: nobody needs it, give the list the room). Not deleted: remove this rule to bring it back */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting:has(.iba-records-sheet.iba-rc-on) #im-reporting-grand-total-container { display: none !important; }
  /* p71: Invoice Records: Search Results Summary sits at the bottom like a footer (the empty band under it is given to the list) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .workdesk-main:has(#im-reporting:not(.hidden) .iba-records-sheet.iba-rc-on) { padding-bottom: 6px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-content-area:has(#im-reporting:not(.hidden) .iba-records-sheet.iba-rc-on) { padding-bottom: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container:not(#iba-no9) { margin-top: 6px !important; margin-bottom: 0 !important; }
  /* p69: (1) the per-PO totals line (Total Invoice | Confirmed Paid | Unconfirmed | Not Paid | Epicore Value) is HIDDEN, not removed
     (martin may want it back: delete this one rule). (2) the PO details part of a card stays fixed at the top of the list while
     its invoice rows scroll under it (overflow clip instead of hidden, so sticky works inside the scrolling list). */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc tr.im-records-summary-row { display: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc { overflow: clip !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc .iba-rc-head { position: sticky !important; top: 0 !important; z-index: 4 !important; background-color: rgba(11, 21, 34, .5) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2) !important; backdrop-filter: blur(14px) saturate(1.2) !important; border-bottom: 1px solid rgba(255,255,255,.10) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc.expanded .im-nested-invoice-table thead th { position: sticky !important; top: var(--rch, 0px) !important; z-index: 3 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc:not(.expanded) .iba-rc-head { position: static !important; background-color: transparent !important; border-bottom: 0 !important; }
  /* p67: Records list = visible gold scrollbar (like Material Stock) + slimmer Search Results Summary bar so the list gets more room */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-content { scrollbar-width: auto !important; scrollbar-color: rgba(227, 201, 138, .75) rgba(255, 255, 255, .06) !important; padding-right: 4px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-content::-webkit-scrollbar { width: 12px !important; height: 12px !important; display: block !important; background: rgba(255, 255, 255, .06) !important; border-radius: 99px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-content::-webkit-scrollbar-thumb { background: rgba(227, 201, 138, .75) !important; border-radius: 99px !important; border: 2px solid rgba(12, 24, 40, .8) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-content::-webkit-scrollbar-corner { background: transparent !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container { margin-top: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-wrapper { padding: 7px 18px !important; min-height: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-title-group { font-size: 13px !important; gap: 8px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-title-group .im-summary-icon-fallback { transform: scale(.8) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-stat-item { padding-top: 0 !important; padding-bottom: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-stat-item > span:first-child { font-size: 11px !important; line-height: 1.2 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting #im-reporting-grand-total-container .summary-stat-item > span:last-child { font-size: 15px !important; line-height: 1.25 !important; }
  /* p66: a card with many invoices must not shrink to the scroll box height (it was cut at ~6 rows) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc { flex-shrink: 0 !important; height: auto !important; max-height: none !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting .iba-records-sheet.iba-rc-on { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-image: none !important; background-color: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; outline: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc :is(.detail-grid-row, .im-nested-invoice-table, .im-nested-invoice-table thead, .im-nested-invoice-table tbody, .im-nested-invoice-table tfoot, .im-nested-invoice-table tr, .im-nested-invoice-table td, .im-nested-invoice-table th, .iba-rc-head) { background-color: transparent !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #invoice-management-view#invoice-management-view#invoice-management-view#invoice-management-view#invoice-management-view#invoice-management-view #im-reporting#im-reporting #im-reporting-content .invoice-card.iba-rc .im-nested-invoice-table thead th { background: rgba(255,255,255,.07) !important; background-color: rgba(255,255,255,.07) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc .im-nested-invoice-table tbody tr:hover td { background-color: rgba(255,255,255,.05) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-head { display: flex !important; flex-direction: column !important; gap: 12px !important; padding: 14px 16px !important; cursor: pointer !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-head:hover { background: rgba(255,255,255,.03) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-top { display: flex !important; align-items: flex-start !important; gap: 10px !important; justify-content: space-between !important; flex-wrap: wrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-top > .iba-ie2-top { flex: 1 1 300px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-pono { font: 800 22px/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-site { font-weight: 700 !important; font-size: 15px !important; color: #F4F1EA !important; -webkit-text-fill-color: #F4F1EA !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-ven { font-weight: 700 !important; font-size: 15px !important; color: #F5C84C !important; -webkit-text-fill-color: #F5C84C !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-chip { display: inline-flex !important; align-items: center !important; gap: 6px !important; border-radius: 999px !important; padding: 3px 11px !important; font-size: 12px !important; font-weight: 700 !important; border: 1px solid rgba(255,255,255,.18) !important; color: #c9d3dd !important; -webkit-text-fill-color: #c9d3dd !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-chip.is-open { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; border-color: rgba(247,165,49,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-chip.is-open i { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-chip.is-done { color: #3DDC97 !important; -webkit-text-fill-color: #3DDC97 !important; border-color: rgba(61,220,151,.45) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-chev { color: #9fb0c2 !important; transition: transform .2s !important; align-self: center !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.expanded .iba-rc-chev { transform: rotate(180deg) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-head .iba-ie2-figs { border-top: 1px solid rgba(255,255,255,.12) !important; padding-top: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .iba-rc-head .iba-ie2-bar { margin-top: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc .detail-grid-row { padding: 0 16px 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc .im-nested-invoice-table :is(td, th) + :is(td, th) { border-left: 1px solid rgba(255,255,255,.07) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc .im-nested-invoice-table td.iba-rc-no { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #im-reporting-content .invoice-card.iba-rc .im-entries-title-strip { display: none !important; }
  /* Summary Note: Per PO box (screen; the print copy is inside #sn-c) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo { margin: 26px auto 0 0 !important; width: min(100%, 150mm) !important; border: 1px solid #9fb3c2 !important; border-radius: 8px !important; overflow: hidden !important; background: #fff !important; color: #14212d !important; -webkit-text-fill-color: #14212d !important; font-family: "Segoe UI", Inter, Arial, sans-serif !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-hd { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; padding: 7px 10px !important; background: #e9f2f8 !important; color: #0e4d7a !important; -webkit-text-fill-color: #0e4d7a !important; font-size: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-hd b { color: #0e4d7a !important; -webkit-text-fill-color: #0e4d7a !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-sw { display: inline-flex !important; align-items: center !important; gap: 6px !important; cursor: pointer !important; font-weight: 600 !important; color: #0e4d7a !important; -webkit-text-fill-color: #0e4d7a !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-sw input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: #0e4d7a !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-sw span { display: none !important; }
  /* p68: whole box off = only the tick line, faded (not printed) */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo.is-off { border-style: dashed !important; opacity: .75 !important; width: auto !important; display: inline-block !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo.is-off .iba-snpo-hd { border-bottom: 0 !important; gap: 14px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo.is-off .iba-snpo-hd small { color: #617180 !important; -webkit-text-fill-color: #617180 !important; font-size: 11.5px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo table { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; margin: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo th { background: #fff !important; color: #617180 !important; -webkit-text-fill-color: #617180 !important; font-size: 10.5px !important; letter-spacing: .06em !important; text-transform: uppercase !important; padding: 6px 10px !important; text-align: left !important; border-bottom: 1px solid #cfe0ec !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo td { padding: 6px 10px !important; border-bottom: 1px solid #e2e8ee !important; color: #14212d !important; -webkit-text-fill-color: #14212d !important; vertical-align: top !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo tr:last-child td { border-bottom: 0 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .r { text-align: right !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo td small { display: block !important; font-size: 10.5px !important; color: #617180 !important; -webkit-text-fill-color: #617180 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo td.t { font-weight: 800 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo input[data-snpo-prev] { width: 110px !important; text-align: right !important; padding: 2px 6px !important; border: 1px dashed #9fb3c2 !important; border-radius: 5px !important; background: #f7fafc !important; color: #14212d !important; -webkit-text-fill-color: #14212d !important; font: inherit !important; font-variant-numeric: tabular-nums !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) #iba-snpo .iba-snpo-ed { display: block !important; margin: 2px 0 0 auto !important; border: 0 !important; background: #fff3cd !important; color: #8a5a00 !important; -webkit-text-fill-color: #8a5a00 !important; border-radius: 999px !important; padding: 0 8px !important; font-size: 10.5px !important; cursor: pointer !important; }
  /* assistant: New entries to Batch result */
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-sum { margin: 4px 0 8px !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-sum b.u { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-tw { overflow-x: auto !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t { width: 100% !important; border-collapse: collapse !important; font-size: 12.5px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t th { font-size: 10.5px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #9fb0c2 !important; -webkit-text-fill-color: #9fb0c2 !important; text-align: left !important; padding: 4px 8px !important; border-bottom: 1px solid rgba(255,255,255,.14) !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t td { padding: 6px 8px !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; color: #eef3f8 !important; -webkit-text-fill-color: #eef3f8 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t td.m { font-family: ui-monospace, Consolas, monospace !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t td small { display: block !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-family: inherit !important; font-size: 11px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t :is(td, th).n { text-align: right !important; font-variant-numeric: tabular-nums !important; white-space: nowrap !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-t td.why { color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-h { margin: 12px 0 4px !important; font-weight: 700 !important; color: #F7A531 !important; -webkit-text-fill-color: #F7A531 !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-acts { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 12px !important; }
  html body:not(#iba-no1):not(#iba-no2):not(#iba-no3):not(#iba-no4):not(#iba-no5):not(#iba-no6):not(#iba-no7):not(#iba-no8) .iba-rb-card .iba-rb-note { display: block !important; margin-top: 6px !important; color: #E3C98A !important; -webkit-text-fill-color: #E3C98A !important; font-size: 11.5px !important; }
}
