/* ==========================================================================
   css/iba-lpo-mail.css — 17.0.4 patch 3
   "LPO emails" window (js/iba-lpo-mail.js). Uses the Print ESN window's
   glass box (#iba-esn); these are the extra parts.
   ========================================================================== */
@layer iba-ui {
  html body #iba-esn .iba-esn-box.iba-lpo, html body #iba-esn.iba-lpo .iba-esn-box { width: min(980px, 100%); }
  html body #iba-esn .iba-lpo-top { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; }
  html body #iba-esn .iba-lpo-top .iba-esn-q { flex: 1 1 auto; height: 40px; font-size: 15px; }
  html body #iba-esn .iba-lpo-top .iba-esn-btn { height: 40px; }
  html body #iba-esn .iba-lpo-tplbox { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px dashed rgba(127, 227, 214, 0.4); background: rgba(6, 14, 24, 0.3); }
  html body #iba-esn .iba-lpo-tplbox[hidden] { display: none; }
  html body #iba-esn :is(.iba-lpo-ta, .iba-lpo-grid input, .iba-lpo-grid textarea) {
    width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(6,14,24,0.45) !important; color: #F3EAD3 !important; -webkit-text-fill-color: #F3EAD3 !important; font: inherit; font-size: 13.5px; line-height: 1.45; resize: vertical;
  }
  html body #iba-esn :is(.iba-lpo-grid input, .iba-lpo-grid textarea, .iba-lpo-ta):focus { outline: none; border-color: #7FE3D6 !important; box-shadow: 0 0 0 3px rgba(127, 227, 214, 0.18) !important; }
  html body #iba-esn .iba-lpo-list { display: flex; flex-direction: column; gap: 12px; }
  html body #iba-esn .iba-lpo-card { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(232, 217, 182, 0.28); background: rgba(8, 18, 30, 0.42); }
  html body #iba-esn .iba-lpo-card.is-bad { border-color: rgba(245, 184, 81, 0.6); }
  html body #iba-esn .iba-lpo-card.is-done { border-color: rgba(90, 209, 143, 0.55); background: rgba(20, 70, 45, 0.25); }
  html body #iba-esn .iba-lpo-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
  html body #iba-esn .iba-lpo-head b { font-size: 15px; color: #fff; }
  html body #iba-esn .iba-lpo-head span { color: #EBD8A8; font-size: 13px; }
  html body #iba-esn .iba-lpo-tag.is-ok { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #7EE2A8 !important; border: 1px solid rgba(90, 209, 143, .5); background: rgba(90, 209, 143, .14); }
  html body #iba-esn .iba-lpo-warn { margin: 0 0 8px; color: #F8CD7E; font-size: 12.5px; }
  html body #iba-esn .iba-lpo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
  html body #iba-esn .iba-lpo-grid label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  html body #iba-esn .iba-lpo-grid label.is-wide { grid-column: 1 / -1; }
  html body #iba-esn .iba-lpo-grid label > span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #E3C98A; }
  html body #iba-esn .iba-lpo-miss { color: #F8CD7E; font-size: 11.5px; }
  html body #iba-esn .iba-lpo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  html body #iba-esn .iba-lpo-count { color: #7FE3D6; font-size: 13px; font-weight: 700; }
  @media (max-width: 760px) { html body #iba-esn .iba-lpo-grid { grid-template-columns: 1fr; } html body #iba-esn .iba-lpo-top { flex-wrap: wrap; } }
}
/* 17.0.4 patch 4: guessed mobile = yellow until it is looked at */
@layer iba-ui {
  html body #iba-esn .iba-lpo-grid label.is-check > span { color: #F8CD7E; }
  html body #iba-esn .iba-lpo-grid label.is-check input { border-color: rgba(245, 184, 81, 0.85) !important; background: rgba(245, 184, 81, 0.16) !important; box-shadow: 0 0 0 3px rgba(245, 184, 81, 0.18) !important; }
}
/* 17.0.4 patch 9: "Open emails in" This browser / Microsoft Edge */
@layer iba-ui {
  html body #iba-esn .iba-lpo-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -2px 0 10px; font-size: 13.5px; }
  html body #iba-esn .iba-lpo-where > span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #E3C98A; }
  html body #iba-esn .iba-lpo-where label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #F3EAD3 !important; -webkit-text-fill-color: #F3EAD3 !important; opacity: 1 !important; font-weight: 600; }
  html body #iba-esn .iba-lpo-where input { width: 16px; height: 16px; accent-color: #7FE3D6; }
  html body #iba-esn .iba-lpo-where small { flex-basis: 100%; color: #EBD8A8; font-size: 12px; opacity: .85; }
}
/* 17.0.4 patch 11: Scope select + Work over two columns */
@layer iba-ui {
  html body #iba-esn .iba-lpo-grid label.is-two { grid-column: span 2; }
  html body #iba-esn .iba-lpo-grid select { width: 100%; box-sizing: border-box; height: 48px !important; min-height: 48px; padding: 0 10px !important; line-height: 1.2 !important; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18) !important; background: rgba(6,14,24,0.6) !important; color: #F3EAD3 !important; font: inherit; font-size: 13.5px; }
  html body #iba-esn .iba-lpo-grid select option { background: #0b1724; color: #F3EAD3; }
  @media (max-width: 760px) { html body #iba-esn .iba-lpo-grid label.is-two { grid-column: auto; } }
}
/* 17.0.4 patch 12: the "not in POVALUE2" note must be readable */
@layer iba-ui {
  html body #iba-esn .iba-lpo-card p.iba-lpo-warn { color: #F8CD7E !important; -webkit-text-fill-color: #F8CD7E !important; opacity: 1 !important; font-size: 13px; font-weight: 600; }
}
