/* Hallmark · existing VASANA system · modern-minimal report workbench.
 * Local presentation only; report, PIN, settlement and navigation logic unchanged.
 * Keep every selector inside this page; never restyle market or resultcheck. */
html body .app-shell-liveboard-report.liveboard-ledger {
    --ledger-page: #f5f7fa;
    --ledger-surface: #ffffff;
    --ledger-heading: #f3f6fa;
    --ledger-line: #dde5ed;
    --ledger-ink: #162d45;
    --ledger-muted: #64748b;
    --ledger-winner: #f0faf5;
    --ledger-winner-hover: #e4f5ec;
    --ledger-hover: #f7f9fc;
    --ledger-link: #075bc8;
    --ledger-sales: #233e56;
    --ledger-discount: #64748b;
    --ledger-net: #153c61;
    --ledger-pending: #80570d;
    --ledger-focus: #075bc8;
    --ledger-positive: #087443;
    --ledger-negative: #b42332;
    --ledger-negative-soft: #fff3f4;
    --ledger-pending-soft: #fff4d9;
    --ledger-button: #f0f6ff;
    --ledger-button-line: #c9dbf2;
    --ledger-accent: #075bc8;
    --ledger-accent-ink: #ffffff;
    --ledger-gap: 24px;
    --ledger-pad: 20px;
    background: var(--ledger-page) !important;
    color: var(--ledger-ink);
    font-family: var(--font-body);
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-report-topbar {
    background: var(--ledger-surface) !important;
    border-bottom: 1px solid var(--ledger-line) !important;
    box-shadow: none !important;
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-report-topbar h1 { font-size: 20px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-report-content {
    max-width: 1280px !important;
    padding: var(--ledger-gap) !important;
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-report-content > * + * { margin-top: var(--ledger-gap) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-filter-card {
    background: var(--ledger-surface) !important;
    border: 1px solid var(--ledger-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
html body .app-shell-liveboard-report.liveboard-ledger :is(.liveboard-section-header,.liveboard-list-header) {
    padding: 16px var(--ledger-pad) !important;
    background: var(--ledger-surface) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ledger-line) !important;
    color: var(--ledger-ink) !important;
}
html body .app-shell-liveboard-report.liveboard-ledger :is(.liveboard-section-header,.liveboard-list-header) h2 { color: var(--ledger-ink) !important; font-size: 15px; font-weight: 600; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-filter-body { padding: 16px var(--ledger-pad) !important; background: var(--ledger-surface) !important; }
html body .app-shell-liveboard-report.liveboard-ledger :is(.liveboard-filter-chip,.liveboard-status-chip) {
    min-height: 40px;
    padding: 8px 16px !important;
    border: 1px solid var(--ledger-line) !important;
    border-radius: 6px !important;
    background: var(--ledger-surface) !important;
    color: var(--ledger-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    white-space: nowrap;
}
html body .app-shell-liveboard-report.liveboard-ledger :is(.liveboard-filter-chip,.liveboard-status-chip).is-active {
    color: var(--ledger-accent-ink) !important;
    border-color: var(--ledger-accent) !important;
    background: var(--ledger-accent) !important;
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-panel {
    padding: 16px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--ledger-line) !important;
    background: transparent !important;
    border-radius: 0 !important;
    gap: 12px !important;
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-field { min-width: 0; color: var(--ledger-muted) !important; font-weight: 500; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-input {
    min-width: 0 !important;
    width: 180px;
    min-height: 44px;
    border: 1px solid var(--ledger-button-line) !important;
    border-radius: 6px !important;
    background: var(--ledger-surface) !important;
    color: var(--ledger-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
html body .app-shell-liveboard-report.liveboard-ledger :is(.liveboard-search-action,.liveboard-reset-action) { border-radius: 6px !important; font-size: 13px; font-weight: 500; box-shadow: none !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-search-action { background: var(--ledger-accent) !important; color: var(--ledger-accent-ink) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-reset-action { background: var(--ledger-surface) !important; color: var(--ledger-muted) !important; border-color: var(--ledger-line) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 12px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card {
    min-width: 0;
    padding: var(--ledger-pad) !important;
    border: 1px solid var(--ledger-line) !important;
    border-radius: 10px !important;
    background: var(--ledger-surface) !important;
    box-shadow: none !important;
}
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card > div:first-child { font-size: 12px; font-weight: 500 !important; color: var(--ledger-muted) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card > div:nth-child(2) { margin-top: 8px; font-size: 26px !important; line-height: 1.3; font-weight: 600 !important; color: var(--ledger-ink) !important; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card.is-outcome.is-profit { background: var(--ledger-winner) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card.is-outcome.is-loss { background: var(--ledger-negative-soft) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card.is-outcome.is-profit > div:nth-child(2) { color: var(--ledger-positive) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card.is-outcome.is-loss > div:nth-child(2) { color: var(--ledger-negative) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-outcome-caption { margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--ledger-muted) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-list-header { padding: 0 0 16px !important; background: transparent !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-count-badge { background: var(--ledger-button) !important; color: var(--ledger-link) !important; border: 0 !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-status-tabs { padding: 16px 0 !important; gap: 8px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-list { gap: var(--ledger-gap); }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-card { border: 1px solid var(--ledger-line); border-radius: 12px; overflow: hidden; background: var(--ledger-surface); }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-header { padding: 16px var(--ledger-pad); margin: 0; border-bottom: 1px solid var(--ledger-line); }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-header h3 { font-size: 16px; font-weight: 600; color: var(--ledger-ink); }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-market-flag { width: 24px !important; height: 16px !important; flex: 0 0 24px; object-fit: cover; border-radius: 3px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-ledger-table { min-width: 800px !important; font-size: 13px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-date { width: 14%; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-round { width: 12%; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-money { width: 10%; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-outcome { width: 14%; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-customer { width: 15%; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-col-actions { width: 15%; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-ledger-table :is(th,td) { padding: 12px 10px !important; border: 0 !important; border-bottom: 1px solid var(--ledger-line) !important; line-height: 1.6; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-ledger-table thead th { background: var(--ledger-heading) !important; font-size: 12px; color: var(--ledger-muted); font-weight: 500; }
html body .app-shell-liveboard-report.liveboard-ledger :is(.ledger-date,.ledger-round) { font-size: 11px; color: var(--ledger-muted); white-space: normal !important; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-net { font-weight: 600 !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-ledger-table tfoot :is(th,td) { padding-block: 16px !important; border-bottom: 0 !important; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-status.is-won { color: var(--ledger-positive); }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-status.is-lost { color: var(--ledger-muted); }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-status.is-waiting { display: inline-block; padding: 4px 8px; border-radius: 5px; color: var(--ledger-pending); background: var(--ledger-pending-soft); font-size: 12px; }
html body .app-shell-liveboard-report.liveboard-ledger .ledger-actions { gap: 6px; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-row-action { min-height: 32px; padding: 6px 10px !important; font-size: 11px !important; border-radius: 5px; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-row-action.is-primary { background: var(--ledger-button) !important; border-color: var(--ledger-button-line) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-row-action.is-danger { color: var(--ledger-negative) !important; border-color: var(--ledger-negative) !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-summary { padding: var(--ledger-pad) !important; border: 1px solid var(--ledger-line); border-radius: 10px; background: var(--ledger-surface) !important; gap: 24px !important; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-summary > div > span:first-child { color: var(--ledger-muted) !important; font-weight: 400; }
html body .app-shell-liveboard-report.liveboard-ledger .liveboard-empty-state { padding: 48px 16px; border: 1px dashed var(--ledger-line); border-radius: 10px; background: var(--ledger-surface); }
html body .app-shell-liveboard-report.liveboard-ledger :is(button,input,.liveboard-table-wrap):focus-visible { outline: 2px solid var(--ledger-focus) !important; outline-offset: 3px; }
html body .app-shell-liveboard-report.liveboard-ledger button:disabled { opacity: .55; cursor: not-allowed; }
html body .app-shell-liveboard-report.liveboard-ledger [aria-busy="true"] { cursor: progress; }
html body .app-shell-liveboard-report.liveboard-ledger [role="alert"] { border-radius: 8px; }
html body:not(.light-theme) .app-shell-liveboard-report.liveboard-ledger { --ledger-page: #101d2b; --ledger-positive: #86dfa0; --ledger-negative: #ffabb7; --ledger-negative-soft: #432833; --ledger-winner: #173e32; --ledger-winner-hover: #1d4b3d; --ledger-button: #253e5a; --ledger-button-line: #5788bb; --ledger-pending-soft: #493b20; }
@media (max-width: 1024px) {
    html body .app-shell-liveboard-report.liveboard-ledger { --ledger-gap: 16px; --ledger-pad: 16px; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-ledger-table :is(th,td) { padding: 10px 8px !important; }
}
@media (max-width: 600px) {
    html body .app-shell-liveboard-report.liveboard-ledger { --ledger-gap: 12px; --ledger-pad: 12px; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-stat-card > div:nth-child(2) { font-size: 22px !important; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-field { flex: 1 1 120px; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-input { width: 100% !important; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-date-panel { display: flex !important; flex-wrap: wrap; }
    html body .app-shell-liveboard-report.liveboard-ledger .liveboard-status-tabs { display: flex !important; flex-wrap: wrap !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body .app-shell-liveboard-report.liveboard-ledger * { transition: none !important; animation: none !important; }
}
