/* Scoped presentation only. Tablet/mobile retain their existing controls. */
.entry-action>.icon{display:none}
.expense-list-tools{display:contents}
@media(min-width:1001px){
 body.expenses-desktop .page-context{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center}
 body.expenses-desktop .page-title-group{display:contents}
 body.expenses-desktop #breadcrumbGroup{grid-column:1/-1;grid-row:1}
 body.expenses-desktop #breadcrumb{grid-column:1;grid-row:2;font-size:22px}
 body.expenses-desktop .page-header-logo{grid-column:2;grid-row:2;width:64px;max-height:27px;margin:0}
 body.expenses-desktop main{padding-top:16px}
 body.expenses-desktop #content{gap:10px}
 body.expenses-desktop .content-heading{margin:0;gap:12px}
 body.expenses-desktop .content-heading h1{font-size:24px;margin:2px 0}
 body.expenses-desktop .content-heading p{margin:2px 0;font-size:13px}
 body.expenses-desktop #content>.metric-grid .metric{min-height:90px;padding:10px 14px}
 body.expenses-desktop #content>.ledger-panel{padding:10px 0 0}
 body.expenses-desktop .metric-grid .metric strong{font-size:24px}
 body.expenses-desktop #content>.metric-grid .metric{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-content:center;min-height:90px}
 body.expenses-desktop .metric .metric-top{margin:0;gap:8px}
 body.expenses-desktop .metric .metric-icon{width:24px;height:24px;margin:0}
 body.expenses-desktop .metric>strong,body.expenses-desktop .metric>small{grid-column:1/-1;margin:0}
 body.expenses-desktop .ledger-panel>.panel-head{padding:10px 16px 0;margin-bottom:2px}
 body.expenses-desktop .ledger-panel>.panel-head p{display:none}
 body.expenses-desktop .filters{gap:8px;padding:8px 16px;grid-template-columns:minmax(180px,1.5fr) minmax(130px,.8fr) minmax(160px,1fr) minmax(150px,.9fr) auto}
 body.expenses-desktop .ledger-panel .filters input,body.expenses-desktop .ledger-panel .filters select,body.expenses-desktop .ledger-panel .due-date-control button{height:36px;min-height:36px;padding-top:5px;padding-bottom:5px;font-size:13px}
 body.expenses-desktop .ledger-panel .due-date-control{height:36px;min-height:36px}
 body.expenses-desktop .filters .filter-clear{height:36px;min-height:36px;padding:6px 8px;border-color:transparent;background:transparent;box-shadow:none;color:var(--muted);font-size:12px}
 body.expenses-desktop .filter-panel:not(:has(summary i)) .filter-clear{opacity:.65}
 body.expenses-desktop .bulk-actions{min-height:36px;padding:3px 16px;gap:8px;flex-wrap:wrap}
 body.expenses-desktop .bulk-actions.is-idle{background:transparent;border-color:transparent;color:var(--muted)}
 body.expenses-desktop .bulk-actions button{min-height:28px;padding:4px 10px;font-size:11px}
 body.expenses-desktop .expense-list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 16px 8px}
 body.expenses-desktop .expense-list-tools .filter-count{display:flex;align-items:center;gap:5px;margin:0;padding:0;font-size:12px}
 body.expenses-desktop .expense-list-tools .filter-count strong:before{content:'·';margin:0 8px;color:var(--muted)}
 body.expenses-desktop .expense-list-tools .table-view-control{padding:0;margin:0;gap:4px}
 body.expenses-desktop .table-view-control>span{display:none}
 body.expenses-desktop .table-view-control button{min-height:28px;padding:4px 10px;font-size:11px}
 body.expenses-desktop .ledger-panel .table-wrap{max-height:calc(100dvh - 360px);min-height:180px}
 body.expenses-desktop .ledger-panel .table-mode-table table{min-width:0;width:100%;table-layout:fixed}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(1){width:54px}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(2){width:112px}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(3){width:clamp(210px,calc(100vw - 1154px),320px)}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(4){width:144px}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(5){width:76px}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(6){width:auto}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(7){width:auto}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(8){width:100px}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(9){width:112px}
 body.expenses-desktop .ledger-panel .table-mode-table th,body.expenses-desktop .ledger-panel .table-mode-table td{padding:5px 8px;text-align:left!important;vertical-align:middle}
 body.expenses-desktop .ledger-panel .table-mode-table td{height:50px;box-sizing:border-box}
 body.expenses-desktop .ledger-panel .table-mode-table th:nth-child(4),body.expenses-desktop .ledger-panel .table-mode-table td:nth-child(4){text-align:right!important;font-variant-numeric:tabular-nums}
 body.expenses-desktop .ledger-panel .sort-button{justify-content:flex-start;gap:5px}
 body.expenses-desktop .ledger-panel th:nth-child(4) .sort-button{justify-content:flex-end}
 body.expenses-desktop .ledger-panel .category-cell,body.expenses-desktop .ledger-panel .account-cell{justify-content:flex-start;text-align:left}
 body.expenses-desktop .ledger-panel .entry-check{width:24px;height:32px;min-height:0}
 body.expenses-desktop .ledger-panel .entry-check input{width:18px;height:18px}
 body.expenses-desktop .ledger-panel .table-mode-table td[data-label="Descrição"] strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left!important}
 body.expenses-desktop .ledger-panel .table-mode-table .sort-button{width:auto;text-align:inherit;white-space:nowrap}
 body.expenses-desktop .ledger-panel .table-mode-table td.actions{display:table-cell;min-width:0;white-space:nowrap;text-align:left!important}
 body.expenses-desktop .ledger-panel .actions .entry-action{display:inline-flex!important;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;min-width:32px;margin:0;padding:7px;border:0;border-radius:8px;vertical-align:middle;background:transparent;color:var(--muted);cursor:pointer;box-shadow:none}
 body.expenses-desktop .ledger-panel .actions .entry-action+.entry-action{margin-left:2px}
 body.expenses-desktop .entry-action>.icon{display:block;width:18px;height:18px;flex:none}
 body.expenses-desktop .entry-action-label{display:none}
 body.expenses-desktop .ledger-panel .actions .entry-action:hover,body.expenses-desktop .ledger-panel .actions .entry-action:focus-visible{background:#e8f5ee;color:#087f55!important;outline:2px solid #a6d9c2;outline-offset:0}
 body.expenses-desktop .ledger-panel .actions .entry-action.danger:hover,body.expenses-desktop .ledger-panel .actions .entry-action.danger:focus-visible{background:#fff0ee;color:#be3434!important;outline-color:#efb8b8}
 body.expenses-desktop .ledger-panel .table-mode-table :is(th,td).select-cell{padding-left:22px;padding-right:8px}
 body.expenses-desktop .ledger-panel .entry-check{display:flex;align-items:center;justify-content:flex-start;margin:0}
 body.expenses-desktop .ledger-panel .entry-check input{margin:0;flex:none}
 body.expenses-desktop .ledger-panel :is(.filters,.bulk-actions,.expense-list-tools){padding-left:22px;padding-right:22px}
 body.expenses-desktop .ledger-panel .table-mode-table :is(.category-cell,.account-cell){display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden;white-space:nowrap}
 body.expenses-desktop .ledger-panel .category-cell>.category-mark{width:20px;height:20px;min-width:20px;flex:none;display:grid;place-items:center}
 body.expenses-desktop .ledger-panel .account-cell .bank-logo{width:28px;height:28px;min-width:28px;flex:none;display:grid;place-items:center}
 body.expenses-desktop .ledger-panel .account-cell small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
