/* Scoped to ELOG public interfaces: desktop tables are not changed. */
.elogr-app, .eri-public, .elog-lih-wrap, .elog-lih-front { min-width:0; max-width:100%; }
.elogr-app *, .eri-public *, .elog-lih-wrap * { box-sizing:border-box; }
.elogr-app img, .eri-public img, .elog-lih-wrap img { max-width:100%;height:auto; }
@media(max-width:767px){
  .elogr-app, .eri-public, .elog-lih-wrap { width:100%; overflow-wrap:anywhere; }
  .elogr-app .elogr-nav, .eri-public .eri-tabs, .elog-lih-wrap .elog-lih-tabs {
    display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto; max-width:100%;
    -webkit-overflow-scrolling:touch; padding-bottom:8px;
  }
  .elogr-app .elogr-nav > *, .eri-public .eri-tabs > *, .elog-lih-wrap .elog-lih-tabs > * { flex:0 0 auto; }
  .elogr-app .elogr-grid, .elogr-app .elogr-kpis, .elogr-app .elogr-area-grid,
  .eri-public .eri-area-grid, .elog-lih-wrap .elog-lih-grid, .elog-lih-wrap .elog-lih-kpis {
    grid-template-columns:minmax(0,1fr)!important;
  }
  .elogr-app .elogr-filters, .elog-lih-wrap .elog-lih-toolbar {display:flex;flex-wrap:wrap;gap:10px}
  .elogr-app input, .elogr-app select, .elog-lih-wrap input, .elog-lih-wrap select {
    max-width:100%; min-width:0;
  }
  /* Only enhanced simple tables become stacked cards; complex tables retain horizontal scrolling. */
  .elogr-app table.elog-mobile-cards, .eri-public table.elog-mobile-cards,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards {display:block;width:100%;border:0;background:transparent}
  .elogr-app table.elog-mobile-cards thead, .eri-public table.elog-mobile-cards thead,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards thead {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .elogr-app table.elog-mobile-cards tbody, .eri-public table.elog-mobile-cards tbody,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards tbody {display:block;width:100%}
  .elogr-app table.elog-mobile-cards tbody tr, .eri-public table.elog-mobile-cards tbody tr,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards tbody tr {
    display:block!important;width:100%;margin:0 0 14px;padding:12px 14px;
    background:#fff;color:#123c52;border:1px solid #d8e2e8;border-radius:12px;
    box-shadow:0 2px 6px rgba(18,60,82,.05);height:auto;
  }
  .elogr-app table.elog-mobile-cards tbody td, .eri-public table.elog-mobile-cards tbody td,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards tbody td {
    display:block!important;width:100%!important;max-width:100%!important;
    padding:8px 0!important;border:0!important;white-space:normal!important;
    overflow-wrap:anywhere;word-break:normal;text-align:left!important;height:auto;
  }
  .elogr-app table.elog-mobile-cards tbody td+td, .eri-public table.elog-mobile-cards tbody td+td,
  .elog-lih-wrap table.elog-mobile-cards, .elog-lih-front table.elog-mobile-cards tbody td+td {border-top:1px solid #edf1f4!important}
  table.elog-mobile-cards tbody tr.elog-mobile-header-row {display:none!important}
  table.elog-mobile-cards tbody td::before {
    content:attr(data-elog-label);display:block;font-size:.75rem;font-weight:700;
    color:#486477;letter-spacing:.015em;margin-bottom:4px;
  }
  table.elog-mobile-cards tbody td:first-child {font-weight:650}
  .elogr-app .elogr-table-wrap, .eri-public .eri-table-wrap, .elog-lih-wrap .elog-lih-table-wrap {
    max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  }
  .elogr-app button, .eri-public button, .elog-lih-wrap button,
  .elogr-app a, .eri-public a, .elog-lih-wrap a {touch-action:manipulation}
  .elogr-app :focus-visible, .eri-public :focus-visible, .elog-lih-wrap :focus-visible {
    outline:3px solid #14806b;outline-offset:3px;
  }
}
@media(prefers-reduced-motion:reduce){.elogr-app *, .eri-public *, .elog-lih-wrap *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:767px){
 .elog-lih-front, .elog-lih-wrap {overflow-x:clip;max-width:100%}
 .elog-lih-front .elog-lih-grid, .elog-lih-front .elog-lih-kpis,
 .elog-lih-front .elog-lih-risk-grid {grid-template-columns:minmax(0,1fr)!important}
 .elog-lih-front .elog-lih-table {max-width:100%}
 .elog-lih-front table.elog-mobile-cards tbody tr {display:block!important;width:100%;margin:0 0 14px;padding:12px 14px;background:#fff;color:#123c52;border:1px solid #d8e2e8;border-radius:12px}
 .elog-lih-front table.elog-mobile-cards tbody td {display:block!important;width:100%!important;white-space:normal!important;padding:8px 0!important;border:0!important;text-align:left!important;overflow-wrap:anywhere}
 .elog-lih-front table.elog-mobile-cards tbody td+td {border-top:1px solid #edf1f4!important}
 .elog-lih-front table.elog-mobile-cards thead {position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
}
