/* T-0197 styles apply only to the expense workspace. */
#content.expense-workspace .toolbar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--sp-12) var(--sp-16); align-items:end; padding:var(--sp-16) var(--sp-16); }
#content.expense-workspace .toolbar label { display:flex; flex-direction:column; gap:var(--sp-4); min-width:0; margin:0; font-size:var(--fs-body); }
#content.expense-workspace .toolbar input,#content.expense-workspace .toolbar select { width:100%; min-width:0; height:28px; box-sizing:border-box; }
#content.expense-workspace .toolbar button { width:auto; min-width:84px; height:28px; white-space:nowrap; padding:var(--sp-4) var(--sp-12); margin:0; justify-self:end; }
#content.expense-workspace .expense-technical { display:none !important; }
#content.expense-workspace table { width:100%; min-width:0; table-layout:fixed; }
#content.expense-workspace th { height:36px; background:var(--brand-soft); color:var(--text); font-weight:700; position:sticky; top:0; }
#content.expense-workspace td,#content.expense-workspace th { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:var(--sp-4) var(--sp-8);  }
#content.expense-workspace td.num,#content.expense-workspace th.num { text-align:right; }
#content.expense-workspace button { white-space:nowrap; }
#content.expense-workspace .panel-header p { margin:var(--sp-4) 0 0; line-height:var(--lh); }
#content.expense-workspace #expense-analysis-policy { padding:var(--sp-8) var(--sp-16); margin:0; font-size:var(--fs-body); }
#content.expense-workspace #expense-analysis-summary { padding:var(--sp-8) var(--sp-16); }
#content.expense-workspace #expense-summary,#content.expense-workspace #ec-message { margin:var(--sp-12) var(--sp-16); }
#content.expense-workspace .table-wrap { max-height:420px; overflow:auto; }
@media (max-width:950px) { #content.expense-workspace .toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); } }
#expense-editor { width:min(1100px,92vw); max-height:88vh; overflow:auto; padding:var(--sp-16); box-sizing:border-box; }
#expense-editor form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--sp-12) var(--sp-16); }
#expense-editor h2,#expense-editor fieldset,#expense-entry-lines,#expense-editor-error { grid-column:1/-1; }
#expense-editor label { display:flex; flex-direction:column; min-width:0; gap:var(--sp-4); }
#expense-editor input,#expense-editor select { min-width:0; width:100%; box-sizing:border-box; height:28px; }
#expense-editor .expense-entry { display:grid; grid-template-columns:2fr 3fr 1fr 2fr auto; gap:var(--sp-12); align-items:end; }
#expense-editor fieldset { display:grid; grid-template-columns:1fr 1fr 1fr; gap:var(--sp-12); }
#expense-editor button { min-height:28px; white-space:nowrap; }
#content.expense-workspace #expense-list th:nth-child(3),#content.expense-workspace #expense-list td:nth-child(3),
#content.expense-workspace #expense-analysis-groups th:nth-child(n+2),#content.expense-workspace #expense-analysis-groups td:nth-child(n+2),
#content.expense-workspace #expense-analysis-list th:nth-child(n+4):nth-child(-n+6),#content.expense-workspace #expense-analysis-list td:nth-child(n+4):nth-child(-n+6) { text-align:right; }
#content.expense-workspace .toolbar input,#content.expense-workspace .toolbar select,
#expense-editor input,#expense-editor select { padding:0 var(--sp-8); line-height:var(--lh); font-size:var(--fs-body); }
