/* T411: a continuous operation ledger in the existing middle-bottom card. */
.liquidity-alert-section .la-grid { grid-template-columns: minmax(0,1fr); min-height:0; }
.liquidity-alert-section .la-block { min-width:0; max-height:none; height:100%; padding:10px; }
.liquidity-alert-section .la-tab-title { flex-wrap:wrap; gap:10px; margin-bottom:6px; }
.liquidity-alert-section .la-tab-panel { min-height:0; overflow:hidden; flex:1; }
.liquidity-alert-section .la-tab-panel.is-hidden { display:none; }
.official-ledger-toolbar { display:flex; gap:12px; align-items:center; padding:2px 0 8px; font-size:11px; }
.official-ledger-toolbar button { background:none; border:0; color:var(--muted); cursor:pointer; padding:4px 0; }
.official-ledger-toolbar button.active { color:var(--text); border-bottom:1px solid var(--cyan); }
.official-ledger-toolbar .ledger-enlarge { margin-left:auto; color:var(--cyan); }
.official-ledger-shell { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.official-ledger-scroll { overflow:auto; flex:1; min-height:0; overscroll-behavior:contain; }
.official-ledger-scroll.is-hidden { display:none; }
.official-ledger-table { width:100%; min-width:700px; border-collapse:separate; border-spacing:0; font-size:11px; font-variant-numeric:tabular-nums; }
body.theme-deep-sea-glass .official-ledger-table { table-layout:auto; }
.official-ledger-table th { position:sticky; top:0; z-index:2; background:var(--panel-strong); color:var(--muted); text-align:left; font-weight:400; padding:7px 6px; border-bottom:1px solid var(--border); white-space:nowrap; }
.official-ledger-table td { padding:6px; border-bottom:1px solid color-mix(in srgb,var(--text) 6%,transparent); vertical-align:top; white-space:nowrap; line-height:1.5; }
.official-ledger-table .ledger-time { color:var(--muted); width:1%; }
.official-ledger-table .ledger-action { width:1%; }
.official-ledger-table .ledger-price { font-family:var(--font-mono); }
.official-ledger-table .ledger-position { font-family:var(--font-mono); color:var(--text); }
.official-ledger-table .ledger-operator { width:1%; font-family:var(--font-mono); }
.official-ledger-table .ledger-funds,.official-ledger-table .ledger-fees { white-space:normal; }
.ledger-operator a,.ledger-proof a { color:var(--muted); text-decoration:none; }
.ledger-operator a:hover,.ledger-proof a:hover { color:var(--cyan); }
.official-ledger-table .add .ledger-action,.official-ledger-table .add .ledger-funds { color:var(--mint); }
.official-ledger-table .remove .ledger-action,.official-ledger-table .remove .ledger-funds { color:var(--coral); }
.official-ledger-table .fees .ledger-action,.official-ledger-table .collect .ledger-action { color:var(--cyan); }
.ledger-amount { font-family:var(--font-mono); white-space:nowrap; }
.ledger-proof-toggle { border:0; background:none; color:var(--muted); cursor:pointer; font:inherit; padding:0; margin-left:5px; }
.official-ledger-table .ledger-proof td { white-space:normal; background:color-mix(in srgb,var(--cyan) 3%,transparent); }
.ledger-proof pre { margin:8px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:10px; line-height:1.6; }
.ledger-proof code { overflow-wrap:anywhere; white-space:normal; user-select:text; }
.ledger-status { padding:18px 8px; font-size:12px; color:var(--muted); }
.ledger-tail { padding:8px; color:var(--muted); font-size:10px; text-align:center; }
.official-ledger-dialog { margin:auto; padding:14px; background:var(--panel-strong); color:var(--text); border:1px solid var(--border); border-radius:8px; width:min(1760px,calc(100vw - 32px)); max-width:calc(100vw - 32px); height:min(900px,calc(100vh - 64px)); max-height:calc(100vh - 32px); }
.official-ledger-dialog[open] { display:flex; flex-direction:column; }
.official-ledger-dialog::backdrop { background:#0009; }
.official-ledger-dialog .ledger-dialog-head { display:flex; align-items:center; justify-content:space-between; font-size:14px; padding-bottom:12px; }
.ledger-dialog-head button { background:none; border:0; color:var(--text); font-size:22px; cursor:pointer; }
.official-ledger-dialog .official-ledger-table { min-width:1150px; font-size:12px; }
.official-ledger-dialog .official-ledger-shell { height:100%; }
.official-ledger-dialog .ledger-enlarge { display:none; }
.official-ledger-dialog .band-history-list { max-height:none; flex:1; }
.official-ledger-snapshot .band-history-header,.official-ledger-snapshot .band-intent-overview { display:none; }
.official-ledger-snapshot .band-history-list { height:100%; overflow:auto; }
#smartAlertsPanel { display:flex; flex-direction:column; }
#smartAlertsPanel.is-hidden { display:none; }
@media(max-width:600px) {
  body.theme-deep-sea-glass.theme-analytics .main-container { grid-template-rows:none; grid-auto-rows:420px; overflow:auto; align-content:start; }
  .liquidity-alert-section .la-tab-title { gap:8px; }
  .official-ledger-dialog { width:calc(100vw - 20px); max-width:calc(100vw - 20px); padding:10px; }
}
