/* ==========================================================================
   css/iba-1702-glass.css — 17.0.2 patch 6
   1) Batch Entry cards, the Set All panel and the Invoice Records list in
      the same clear glass as the pop-ups and the assistant: the background
      photo shows softly through, text and fields stay readable.
   2) The "Reception" tag and the +Del (original PO in file) button on
      Batch Entry cards drawn like the card's own small buttons.
   Only the panels are glass; the page behind is never blurred.
   ========================================================================== */
@layer iba-ui {
  /* ---- Batch Entry: cards ---- */
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card[data-ui-skin] {
    background: linear-gradient(160deg, rgba(24, 52, 80, 0.46) 0%, rgba(9, 20, 33, 0.58) 100%) !important;
    background-color: transparent !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 3px 0 0 var(--ui-teal), inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 14px 34px rgba(0, 0, 0, 0.28) !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card[data-ui-skin]:hover,
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card[data-ui-skin]:focus-within {
    border-color: rgba(227, 201, 138, 0.42) !important;
    box-shadow: inset 3px 0 0 var(--ui-gold), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 38px rgba(0, 0, 0, 0.32) !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card[data-ui-skin] .batch-card-header {
    background: rgba(255, 255, 255, 0.035) !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card[data-ui-skin] :is(input.batch-input, select.batch-input, .batch-attention-btn) {
    background-color: rgba(6, 14, 24, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
  }
  /* Set All panel and the count box */
  html body.iba-shell-on #im-batch-entry#im-batch-entry #im-batch-global-controls {
    background: linear-gradient(160deg, rgba(24, 52, 80, 0.42) 0%, rgba(9, 20, 33, 0.55) 100%) !important;
    background-color: transparent !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 14px 34px rgba(0, 0, 0, 0.25) !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry #im-batch-global-controls :is(input, select, .choices__inner) {
    background-color: rgba(6, 14, 24, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
  }

  /* ---- Batch Entry: Reception tag and +Del ---- */
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card .iba-rb-tag {
    display: inline-flex !important;
    align-items: center !important;
    height: 18px !important;
    margin: 0 0 0 6px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(227, 201, 138, 0.55) !important;
    background: var(--ui-gold-soft) !important;
    color: var(--ui-gold) !important;
    -webkit-text-fill-color: var(--ui-gold) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    vertical-align: middle !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card button.iba-rb-del {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 20px !important;
    min-height: 0 !important;
    max-height: 20px !important;
    margin: 0 0 0 6px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(239, 138, 122, 0.55) !important;
    background: var(--ui-red-soft) !important;
    background-color: var(--ui-red-soft) !important;
    background-image: none !important;
    color: var(--ui-red) !important;
    -webkit-text-fill-color: var(--ui-red) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    letter-spacing: 0.02em !important;
    box-shadow: none !important;
    transform: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card button.iba-rb-del i {
    margin: 0 !important;
    font-size: 10px !important;
    color: #FACC15 !important;
    -webkit-text-fill-color: #FACC15 !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card button.iba-rb-del:hover { filter: brightness(1.15) !important; }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card button.iba-rb-del.is-added {
    border-color: rgba(95, 211, 160, 0.6) !important;
    background: rgba(95, 211, 160, 0.16) !important;
    background-color: rgba(95, 211, 160, 0.16) !important;
    color: var(--ui-green) !important;
    -webkit-text-fill-color: var(--ui-green) !important;
  }
  html body.iba-shell-on #im-batch-entry#im-batch-entry .batch-invoice-card button.iba-rb-del.is-added i {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  /* ---- Invoice Records ---- */
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting :is(#im-reporting-form, .summary-wrapper, .im-records-summary) {
    background: linear-gradient(160deg, rgba(24, 52, 80, 0.42) 0%, rgba(9, 20, 33, 0.55) 100%) !important;
    background-color: transparent !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 14px 34px rgba(0, 0, 0, 0.25) !important;
  }
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .iba-records-sheet {
    background: linear-gradient(170deg, rgba(24, 52, 80, 0.46) 0%, rgba(9, 20, 33, 0.60) 100%) !important;
    background-color: transparent !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 42px rgba(0, 0, 0, 0.30) !important;
  }
  /* the column header stays readable when it sticks while scrolling */
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .iba-records-sheet .grid-header {
    background: rgba(16, 36, 56, 0.78) !important;
    background-color: rgba(16, 36, 56, 0.78) !important;
    backdrop-filter: blur(14px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
    border-bottom-color: rgba(227, 201, 138, 0.22) !important;
  }
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .iba-records-sheet .invoice-card:nth-child(even) > .master-grid-row {
    background: rgba(255, 255, 255, 0.035) !important;
    background-color: rgba(255, 255, 255, 0.035) !important;
  }
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .iba-records-sheet .invoice-card.expanded {
    background: rgba(4, 11, 19, 0.30) !important;
    background-color: rgba(4, 11, 19, 0.30) !important;
  }
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table {
    background: transparent !important;
    background-color: transparent !important;
  }
  html body.iba-shell-on #im-reporting#im-reporting#im-reporting .im-nested-invoice-table :is(thead th, thead td) {
    background: rgba(16, 36, 56, 0.6) !important;
    background-color: rgba(16, 36, 56, 0.6) !important;
  }
}
