.wf .wf-table-scroll {scrollbar-width:thin; scrollbar-color:var(--line) transparent}
.wf .wf-table-scroll th {font-weight:650; background:var(--secondary); color:var(--ink)}
.wf .wf-table-scroll tbody tr:nth-child(even) td {background:color-mix(in srgb,var(--bg) 43%,var(--surface))}
.wf .wf-table-scroll tbody tr:hover td {background:var(--soft)}
.record-tools {display:flex; align-items:end; flex-wrap:wrap; gap:8px 11px; margin:12px 0 9px; padding:10px 12px; background:var(--secondary); border:1px solid var(--line); border-radius:8px}
.record-tools label {display:grid; gap:3px; color:var(--muted); font-size:.76rem; font-weight:600; min-width:0}
.record-tools label:first-child {flex:1 1 155px}
.record-tools :is(input,select) {min-height:34px; border:1px solid var(--line); padding:3px 8px; border-radius:5px; color:var(--ink); background:var(--surface); font:inherit; font-size:.85rem}
.record-tools input[type=date] {max-width:147px}
.record-tools .clear-records {font-size:.79rem; background:transparent; color:var(--primary); border:1px solid var(--line); border-radius:5px; padding:5px 9px; min-height:34px}
.record-tools .clear-records:disabled {opacity:.5; cursor:default}
.record-count {flex-basis:100%; color:var(--muted); font-size:.76rem}
.record-register {min-width:0; overflow:auto}
.record-register table {width:100%; border-collapse:collapse; font-size:.86rem}
.record-register :is(td,th) {text-align:start; padding:9px 11px; border-block-end:1px solid var(--line)}
.record-register th {background:var(--secondary); white-space:nowrap; color:var(--muted)}
.record-register td bdi {white-space:nowrap}
.record-register tbody tr:last-child td {border-bottom:none}
.record-register .text-link {white-space:normal}
.recent-register td small {display:block; color:var(--muted); font-size:.7rem}
.recent-register td bdi {font-variant-numeric:tabular-nums}
.recent-register td .recent-in {color:var(--available)}
.recent-register td .recent-out {color:var(--sold)}
.dash-empty {padding:10px 18px 22px; color:var(--muted)}
.chart-totals {display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 18px 12px; padding-block:9px 14px; border-block:1px solid var(--line)}
.chart-totals>div+div {border-inline-start:1px solid var(--line); padding-inline-start:14px}
.chart-totals span,.chart-totals small {font-size:.77rem; color:var(--muted)}
.chart-totals strong {display:block; font-size:clamp(.95rem,1.6vw,1.4rem); font-variant-numeric:tabular-nums}
.project-views {gap:6px}
.project-views .wf-tab {padding:7px 11px}
.showcase-control, .dash-project-choice {display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.showcase-control {justify-content:space-between; margin:0 0 16px; padding:10px 15px; background:var(--soft); color:var(--ink); border:1px solid var(--line); border-radius:10px}
.showcase-control strong {margin-inline-end:9px; font-size:.95rem}
.showcase-control small {color:var(--muted); font-size:.82rem}
.showcase-control button, .dash-project-choice button {border:1px solid var(--line); background:var(--surface); color:var(--primary); font:inherit; font-weight:650; font-size:.88rem; border-radius:7px; padding:5px 11px}
.dash-project-choice {padding:0 16px 12px; font-size:.88rem}
.dash-project-choice select {flex:1; min-width:6em; padding:5px; border-radius:6px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font:inherit}
@media print {.showcase-control, .dash-project-choice {display:none!important}}
@media(max-width:650px) {
    .themes button:not([aria-pressed="true"]) span {display:none}
    .themes button svg {display:block}
    .themes button {min-height:32px; min-width:32px; justify-content:center}
    .record-tools {padding:8px; gap:6px}
    .record-tools input[type=date] {min-width:0; width:100%}
    .record-tools label {flex:1 1 110px}
    .record-tools label:first-child {flex:1 1 100%}
    .record-count {font-size:.72rem}
}
@media print {
    .record-tools {display:none!important}
    .record-register,.wf .wf-table-scroll {overflow:visible}
    .record-register thead,.wf table thead {display:table-header-group}
    .wf .wf-table-scroll tbody tr td {background:transparent!important}
    .record-register tr {break-inside:avoid}
}
