.expense-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.expense-tab{background:#fff;border:1px solid #dae4e7;border-radius:14px;text-align:left;padding:20px;color:#203c4d;box-shadow:0 5px 18px #162e3c05}.expense-tab span{display:block;font-size:17px;font-weight:750;margin-bottom:8px}.expense-tab small{color:#607582;line-height:1.6;font-weight:400;display:block}.expense-tab.selected{border-color:#347965;background:#eef8f1;box-shadow:inset 0 3px #347965}/* Cost summaries are buttons: keep their contents vertical rather than inheriting the global button row. */
.cost-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(260px,calc((100% - 28px) / 3))),1fr));gap:14px;margin:22px 0}
.cost-totals>.cost-total{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;min-width:0;width:100%;height:100%;padding:22px;text-align:left;white-space:normal;background:#fff;border:1px solid #dce6e9;border-radius:14px}
.cost-total small{display:block;min-width:0;color:#546c7b;font-size:12px;font-weight:500;line-height:1.5}
.cost-total small:first-child{min-height:36px}
.cost-total strong{display:block;min-width:0;font-size:26px;line-height:1.3;color:#193e48;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cost-total small:last-child{margin-top:auto;padding-top:4px;color:#326d5c;font-weight:650}
.cost-total:hover{border-color:#80b19f;background:#f9fcfa}
.cost-total:focus-visible{outline:3px solid #80b19f;outline-offset:3px}
#cost-history .register-panel-head{align-items:baseline;flex-wrap:wrap;gap:8px}
#cost-history .register-panel-head>span{font-size:12px;color:#607582}
#cost-history>.register-note{margin:0;padding:0 27px 20px}
#cost-history th:nth-child(n+4):nth-child(-n+6),#cost-history td:nth-child(n+4):nth-child(-n+6){text-align:right;font-variant-numeric:tabular-nums}
#cost-history td:nth-child(2){white-space:normal;min-width:180px;max-width:340px;overflow-wrap:anywhere}
#cost-history td:last-child button+button{margin-left:6px}
.lookup-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.lookup-option{border:1px solid #dae6e7;background:#fff;border-radius:12px;padding:16px;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:14px;color:#233d4c}.lookup-option:hover,.lookup-option:focus-visible{background:#f0f8f4;border-color:#418577}.lookup-option strong,.lookup-option small{display:block}.lookup-option small{font-weight:400;color:#617783;margin-top:6px;line-height:1.5}.lookup-option>span:last-child{font-size:12px;white-space:nowrap}.lookup-pages{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:10px 0 20px}.lookup-pages>span{margin-right:auto;color:#647a87;font-size:13px}.expense-editor h2{font-size:21px}.expense-vehicle{padding-bottom:20px;border-bottom:1px solid #dce5e8;margin-bottom:28px}.cost-selected{background:#eef7f0;border:1px solid #b4d8c4;border-radius:12px;padding:18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.cost-selected button{margin-left:auto}.cost-preview{margin:20px 0;border:1px solid #bcd6c9;background:#eff8f2;border-radius:14px;padding:20px;display:flex;gap:32px;flex-wrap:wrap}.cost-preview span{font-size:13px;color:#567169}.cost-preview strong{display:block;font-size:23px;color:#193e36;margin-top:6px}.cost-report-link{display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:4px solid #397861}.expense-editor #expense-error{color:#a82e29;margin:14px 0}.register-panel table small{display:block;color:#687e8a;margin-top:5px}.register-header .actions{position:relative;z-index:1}.lookup-results[aria-busy=true]{opacity:.65}@media(max-width:700px){.expense-tabs,.lookup-results{grid-template-columns:1fr}.expense-tab{padding:16px}.cost-report-link{display:block}.cost-totals{gap:8px}.cost-totals>.cost-total{padding:18px}.cost-total strong{font-size:24px}#cost-history>.register-note{padding:0 20px 18px}.cost-preview{gap:18px}.lookup-pages{flex-wrap:wrap}}
.expense-tab{display:block}.sale-selected a.secondary{display:inline-flex;align-items:center;justify-content:center;font:600 13px Inter,Segoe UI,sans-serif;text-decoration:none;min-height:42px;padding:11px 16px;border:1px solid #dbe5e8;border-radius:8px;color:#263f4b;background:#fff}.sale-selected a.secondary:focus-visible{outline:3px solid #90beba;outline-offset:2px}
