/* MunimIQ 2.1 big-company lists + drawer (public/lists.js). Uses the app's theme tokens (app.css). */
.ml-head { align-items: flex-end; }
.ml-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-sum { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 20px; }
.ml-note { color: var(--t3); font-size: 12px; font-weight: 400; }
.ml-skel-t { display: inline-block; width: 220px; height: 12px; border-radius: 6px; background: rgba(var(--ov), .08); animation: mlp 1.2s ease-in-out infinite; }
.ml-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.ml-bar .inp { height: 38px; min-width: 0; }
.ml-bar select.inp { max-width: 220px; }
.ml-search { position: relative; flex: 1 1 240px; min-width: 200px; max-width: 360px; }
.ml-search .inp { width: 100%; padding-left: 34px; }
.ml-si { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--t3); display: flex; pointer-events: none; }
.ml-dates { display: none; gap: 6px; align-items: center; }
.ml-dates.on { display: inline-flex; }
.ml-dates .inp { width: 150px; }
.ml-amtf { display: inline-flex; gap: 6px; }
.ml-amtf .inp { width: 110px; }
.ml-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--t2); cursor: pointer; }
.ml-ac { position: relative; display: inline-flex; align-items: center; }
.ml-ac .inp { width: 190px; padding-right: 28px; }
.ml-acx { position: absolute; right: 6px; border: 0; background: transparent; color: var(--t3); cursor: pointer; display: flex; padding: 4px; }
.ml-acl { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: max(100%, 280px); max-height: 300px; overflow: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow, 0 12px 32px rgba(0,0,0,.25)); padding: 4px; }
.ml-acl button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-acl button:hover, .ml-acl button.on { background: rgba(var(--ov), .07); }
.ml-acn { padding: 10px; color: var(--t3); font-size: 12.5px; }
.ml-card { padding: 0; overflow: hidden; }
.ml-scroll { overflow: auto; position: relative; overscroll-behavior: contain; outline: none; }
.ml-tbl { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.ml-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--card); }
.ml-tbl td { height: 44px; padding-top: 0; padding-bottom: 0; overflow: hidden; text-overflow: ellipsis; }
.ml-tbl tr.ml-r { cursor: pointer; }
.ml-tbl tr.ml-r:hover td, .ml-tbl tr.ml-r:focus td { background: rgba(var(--ov), .045); }
.ml-tbl tr.ml-r:focus { outline: none; }
.ml-tbl tr.ml-r:focus td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.ml-tbl tr.ml-canc td { opacity: .55; text-decoration: line-through; }
.ml-tbl tr.ml-pad td { padding: 0; border: 0; height: auto; }
.ml-tbl .neg, .ml-dw .neg { color: var(--coral, #ff6b6b); }
.ml-tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.ml-tag.red { background: rgba(var(--red-rgb), .14); color: var(--red); }
.ml-sk td span { display: block; height: 11px; border-radius: 6px; background: rgba(var(--ov), .08); animation: mlp 1.2s ease-in-out infinite; }
.ml-sk td.r span { margin-left: auto; width: 60%; }
.ml-sk1, .ml-sk2 { height: 11px; border-radius: 6px; background: rgba(var(--ov), .08); animation: mlp 1.2s ease-in-out infinite; }
.ml-sk1 { width: 70%; margin-bottom: 8px; } .ml-sk2 { width: 45%; }
@keyframes mlp { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.ml-empty { padding: 36px 16px; text-align: center; }
.ml-foot { border-top: 1px solid var(--line); }
.ml-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; font-size: 12.5px; color: var(--t2); }
.ml-pg { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ml-pg select.inp, .ml-pno .inp { height: 30px; width: 64px; padding: 0 6px; }
.ml-pno { display: inline-flex; gap: 6px; align-items: center; }
.ml-ms { color: var(--t4); }
.ml-more { padding: 12px; text-align: center; color: var(--t3); font-size: 12px; }
/* mobile rows: two lines, fixed height (virtualised) */
.ml-tbl.ml-mob td { height: 62px; padding: 8px 14px; white-space: normal; }
.ml-m1 { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ml-m1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 600; }
.ml-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ml-m2 { color: var(--t3); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tbl td.r { font-variant-numeric: tabular-nums; }
.ml { container-type: inline-size; }
@container (max-width: 1050px) { .ml-tbl .hide-md { display: none; } }
.ml-dw-b[hidden], .ml-acx[hidden], .ml-lm[hidden], .ml-acl[hidden] { display: none !important; }
.ml-ftog.on { background: var(--inv); color: var(--on-inv); }
.ml-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lime); color: var(--on-lime); font-size: 11px; font-weight: 700; }
.ml-fmore { display: contents; }
@media (max-width: 760px) {
  .ml-bar { gap: 6px; }
  .ml-search { flex: 1 1 auto !important; min-width: 0; }
  .ml-ftog { flex: 0 0 auto !important; }
  .ml-fmore { display: none; flex-basis: 100% !important; flex-wrap: wrap; gap: 6px; }
  .ml-fmore.on { display: flex; }
  .ml-fmore > * { flex: 1 1 calc(50% - 6px); max-width: none !important; }
  .ml-head #ml-csv { display: none; }
  .ml-bar > * { flex: 1 1 calc(50% - 6px); max-width: none !important; }
  .ml-ac .inp, .ml-amtf .inp, .ml-dates .inp { width: 100%; }
  .ml-ac, .ml-amtf, .ml-dates.on { display: flex; }
  .ml-head { flex-direction: column; align-items: stretch; }
}
/* drawer */
.ml-dw-wrap { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.ml-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .2s; pointer-events: auto; }
.ml-dw { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg2, var(--card)); border-left: 1px solid var(--line2); box-shadow: -18px 0 48px rgba(0, 0, 0, .28);
  transform: translateX(104%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; pointer-events: auto; }
.ml-dw-wrap.on .ml-scrim { opacity: 1; }
.ml-dw-wrap.on .ml-dw { transform: none; }
.ml-grab { display: none; }
.ml-dw-h { display: flex; gap: 10px; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.ml-dw-tt { flex: 1; min-width: 0; }
.ml-dw-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-dw-body { flex: 1; overflow: auto; padding: 14px 18px 28px; overscroll-behavior: contain; }
.ml-dw-body h4 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); display: flex; gap: 8px; align-items: baseline; }
.ml-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ml-kv > div { background: rgba(var(--ov), .035); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.ml-kv span { display: block; font-size: 11px; color: var(--t3); margin-bottom: 3px; }
.ml-kv b { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ml-kv a, .ml-dt a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--ov), .3); text-underline-offset: 3px; }
.ml-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(var(--lime-rgb), .1); border: 1px solid rgba(var(--lime-rgb), .25); }
.ml-big span { font-size: 12px; color: var(--t2); }
.ml-big b { font-size: 22px; font-family: 'Bricolage Grotesque', sans-serif; font-variant-numeric: tabular-nums; }
.ml-dt td, .ml-dt th { padding: 8px 8px; }
.ml-dt td { white-space: normal; }
.ml-dt tr[data-g] { cursor: pointer; }
.ml-dt tr[data-g]:hover td { background: rgba(var(--ov), .045); }
.ml-dt tfoot td { font-weight: 700; border-top: 1px solid var(--line2); }
.ml-sub { font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.ml-narr { white-space: pre-wrap; color: var(--t2); font-size: 13px; margin: 0; }
.ml-lm { margin-top: 10px; }
.ml-dw-act { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.ml-dw .dr { color: var(--coral, #ff6b6b); } .ml-dw .cr { color: var(--mint); }
.ml-dsk div { height: 14px; border-radius: 7px; background: rgba(var(--ov), .08); margin: 12px 0; animation: mlp 1.2s ease-in-out infinite; }
.ml-dsk div:nth-child(2) { width: 70%; } .ml-dsk div:nth-child(3) { width: 50%; } .ml-dsk .tall { height: 220px; border-radius: 14px; }
/* mobile: bottom sheet */
.ml-dw-wrap.sheet .ml-dw { top: auto; left: 0; width: 100vw; max-height: 88vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 20px 20px 0 0; transform: translateY(104%); box-shadow: 0 -18px 48px rgba(0, 0, 0, .3); }
.ml-dw-wrap.sheet.on .ml-dw { transform: none; }
.ml-dw-wrap.sheet .ml-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(var(--ov), .2); margin: 8px auto 0; cursor: pointer; }
.ml-dw-wrap.sheet .ml-dw-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .ml-dw, .ml-scrim { transition: none; } .ml-sk td span, .ml-skel-t, .ml-dsk div { animation: none; } }
@media print { .ml-bar, .ml-foot, .ml-actions { display: none; } .ml-scroll { height: auto !important; overflow: visible; } }
