/* Financial page presentation, confined to the fictional preview. */
html body.ui-refresh .refresh-finance .finance-section {background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px 24px;margin:22px 0}
html body.ui-refresh .refresh-finance h2 {font-size:18px;line-height:1.7;margin:0 0 10px}
html body.ui-refresh .refresh-finance h3 {font-size:16px;line-height:1.7}
html body.ui-refresh .refresh-finance p {font-size:13px;line-height:1.85}
html body.ui-refresh .refresh-finance .business-metrics:has(>div:nth-child(2):last-child) {grid-template-columns:repeat(2,minmax(0,1fr))}
html body.ui-refresh .refresh-finance .business-metrics:has(>div:nth-child(4):last-child) {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
html body.ui-refresh .refresh-finance .business-metrics:has(>div:nth-child(6):last-child) {row-gap:20px}
html body.ui-refresh .refresh-finance .business-metrics>div:nth-child(3n) {border-right:0}
html body.ui-refresh .refresh-finance .finance-section>.business-metrics {background:#f8fafd;border-color:var(--line-soft)}
html body.ui-refresh .refresh-finance .finance-period {font-size:12px;color:var(--flow-muted);padding:10px 0}
html body.ui-refresh .refresh-finance .finance-details {border-top:1px solid var(--line-soft);margin-top:18px}
html body.ui-refresh .refresh-finance .finance-details ul {padding-left:20px;line-height:2;font-size:13px}
html body.ui-refresh .refresh-finance .expense-record-heading {display:flex;justify-content:space-between;align-items:baseline;gap:20px}
html body.ui-refresh .refresh-finance .expense-record-heading>a {font-size:16px;font-weight:600;min-height:44px;display:flex;align-items:center}
html body.ui-refresh .expense-page .expense-correction-confirm {
  display:flex; align-items:center; gap:10px; min-height:44px;
  padding:8px 0; cursor:pointer;
}
html body.ui-refresh .expense-page .expense-correction-confirm input {flex:none; margin:0}
html body.ui-refresh .refresh-finance .expense-record-heading>.amount {font-size:24px;white-space:nowrap;font-weight:650;color:var(--ink)}
html body.ui-refresh .refresh-finance .record-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:20px 0;margin:20px 0}
html body.ui-refresh .refresh-finance .record-summary>span {border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;padding:0 22px;min-width:0}
html body.ui-refresh .refresh-finance .record-summary>span:last-child {border-right:0}
html body.ui-refresh .refresh-finance .expense-records>li {display:block;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:16px 0}
html body.ui-refresh .refresh-finance .expense-records .record-code {font-size:12px;color:var(--flow-muted);margin:8px 0}
html body.ui-refresh .refresh-finance .expense-records>li>a {display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:6px;font-size:13px;text-decoration:none}
html body.ui-refresh .refresh-finance .expense-records .project-actions {display:inline-flex;margin:12px 8px 0 0}
html body.ui-refresh .refresh-finance .expense-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
html body.ui-refresh .refresh-finance .expense-facts dd.fact-text {font-size:16px;font-weight:550;letter-spacing:0}
html body.ui-refresh .refresh-finance .budget-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
html body.ui-refresh .refresh-finance .budget-groups>.business-record {margin:0;padding:18px}
html body.ui-refresh .refresh-finance .supplier-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:18px 0}
html body.ui-refresh .refresh-finance .supplier-metrics>div {min-width:0;padding:0 18px;border-right:1px solid var(--line)}
html body.ui-refresh .refresh-finance .supplier-metrics>div:last-child {border-right:0}
html body.ui-refresh .refresh-finance .supplier-metrics dt {font-size:12px;color:var(--flow-muted)}
html body.ui-refresh .refresh-finance .supplier-metrics dd {font-size:18px;color:var(--ink);font-weight:600;margin:8px 0 0;font-variant-numeric:tabular-nums}
html body.ui-refresh .refresh-finance .budget-groups>section {min-width:0;border:1px solid var(--line);border-radius:8px;padding:18px;background:#fff}
html body.ui-refresh .refresh-finance .source-row {display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line-soft)}
html body.ui-refresh .refresh-finance .source-row>a {min-height:44px;display:inline-flex;align-items:center}
html body.ui-refresh .refresh-finance .compare-row {gap:16px;padding:18px 0;border-top:1px solid var(--line-soft)}
html body.ui-refresh .refresh-finance .compare-row .amount {font-size:19px;font-weight:600}
html body.ui-refresh .refresh-finance .approval-panel {background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:none;margin:20px 0;padding:22px 24px}
html body.ui-refresh .refresh-finance .catalog-item {min-width:0;border:1px solid var(--line);border-radius:6px;background:#f8fafd;padding:18px;margin:16px 0}
html body.ui-refresh .refresh-finance .catalog-item legend {font-size:14px;font-weight:600;padding:0 8px}
html body.ui-refresh .refresh-finance .catalog-item label:has(input[type=checkbox]) {min-height:44px;display:flex;align-items:center;gap:10px}
html body.ui-refresh .workspace.refresh-finance .project-form>.project-actions {position:static;bottom:auto;box-shadow:none}
html body.ui-refresh .refresh-finance .reconciliation-summary>.business-metrics {background:#fff}
@media(max-width:760px) {
 html body.ui-refresh .refresh-finance .finance-section,html body.ui-refresh .refresh-finance .approval-panel {padding:18px 16px;margin:18px 0}
 html body.ui-refresh .refresh-finance .business-metrics:has(>div:nth-child(n):last-child) {grid-template-columns:1fr;row-gap:0}
 html body.ui-refresh .refresh-finance .expense-record-heading {flex-direction:column;gap:0;align-items:flex-start}
 html body.ui-refresh .refresh-finance .expense-record-heading>.amount {font-size:24px}
 html body.ui-refresh .refresh-finance .record-summary {grid-template-columns:1fr;padding:0}
 html body.ui-refresh .refresh-finance .record-summary>span {padding:14px 16px;border:0;border-bottom:1px solid var(--line-soft)}
 html body.ui-refresh .refresh-finance .record-summary>span:last-child {border-bottom:0}
 html body.ui-refresh .refresh-finance .expense-records>li {padding:18px 16px}
 html body.ui-refresh .refresh-finance .budget-groups {grid-template-columns:1fr}
 html body.ui-refresh .refresh-finance .supplier-metrics {grid-template-columns:1fr;padding:0}
 html body.ui-refresh .refresh-finance .supplier-metrics>div {border:0;border-bottom:1px solid var(--line-soft);padding:14px 16px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
 html body.ui-refresh .refresh-finance .supplier-metrics>div:last-child {border-bottom:0}
 html body.ui-refresh .refresh-finance .supplier-metrics dd {margin:0;font-size:18px}
 html body.ui-refresh .refresh-finance .source-row {align-items:flex-start;flex-direction:column;gap:8px}
 html body.ui-refresh .refresh-finance .catalog-item {padding:16px 12px}
 html body.ui-refresh .refresh-finance .compare-row {grid-template-columns:1fr;gap:12px}
 html body.ui-refresh .refresh-finance .expense-facts dd.fact-text {font-size:14px;max-width:65%}
 html body.ui-refresh .refresh-finance .reconciliation-contracts .heading-row {flex-wrap:wrap}
}
/* Expense entry: one daily task, with accounting detail disclosed on demand. */
.expense-entry { max-width: 760px; margin-inline: auto; }
.expense-entry .expense-entry-main { padding: 20px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; }
.expense-entry .expense-entry-amount { margin-bottom: 18px; }
.expense-entry .expense-entry-amount input { width: 100%; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.expense-entry .expense-entry-voucher,.expense-entry .expense-entry-note { grid-column: 1 / -1; }
.expense-entry input,.expense-entry select,.expense-entry textarea { font-size: 16px; min-height: 44px; }
.expense-entry input[type="file"] { padding: 8px; max-width: 100%; }
.expense-entry .field-hint { font-size: 12px; color: #687383; margin: 6px 0 0; line-height: 1.5; }
.expense-entry .expense-entry-more { margin-top: 12px; }
.expense-entry .expense-entry-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.expense-entry .form-confirm label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.expense-entry input[type="checkbox"] { min-height: auto; width: 18px; height: 18px; }
.expense-vouchers .records a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.expense-entry .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .refresh-finance.registration-page:has(.expense-entry) .heading-row h1 { font-size: 18px; }
  .expense-entry .expense-entry-main { padding: 14px; border-radius: 10px; }
  .expense-entry .project-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .expense-entry .expense-entry-amount { margin-bottom: 14px; }
  .expense-entry .expense-entry-amount input { font-size: 24px; }
  .expense-entry label { font-size: 13px; }
  .expense-entry .version-footer { margin-top: 12px; }
  .expense-page .expense-record-heading .expense-record-amount { font-size: 18px; }
}

/* Expense detail puts evidence before secondary accounting records. */
html body.ui-refresh .expense-entry-more>summary {display:flex;align-items:center;min-height:44px;cursor:pointer}
html body.ui-refresh .expense-entry-more>summary::after {content:"›";margin-left:auto;font-size:20px;color:var(--flow-muted)}
html body.ui-refresh .expense-entry-more[open]>summary::after {transform:rotate(90deg)}
html body.ui-refresh .expense-detail {max-width:900px}
html body.ui-refresh .expense-detail .expense-valid {font-size:12px;color:var(--flow-muted);margin:8px 0}
html body.ui-refresh .expense-detail .expense-facts {grid-template-columns:repeat(2,minmax(0,1fr))}
html body.ui-refresh .expense-detail>.business-help {margin:0;border:0;border-top:1px solid var(--line-soft);padding:0}
html body.ui-refresh .expense-detail>.business-help>summary {font-size:14px;min-height:48px;display:flex;align-items:center;cursor:pointer}
@media(max-width:760px){
 html body.ui-refresh .refresh-flow.expense-detail .refresh-business-heading h1 {font-size:18px}
 html body.ui-refresh .refresh-flow.expense-detail>h2 {font-size:18px;margin:8px 0 12px}
 html body.ui-refresh .refresh-flow.expense-detail .expense-facts dd {font-size:20px}
 html body.ui-refresh .refresh-flow.expense-detail .expense-facts dd.fact-text {font-size:14px}
 html body.ui-refresh .refresh-flow.expense-detail>.project-actions {margin:4px 0;gap:12px}
 html body.ui-refresh .refresh-flow.expense-detail>.project-actions a {font-size:13px}
 html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers {padding:12px 14px;margin:12px 0}
 html body.ui-refresh .refresh-flow.expense-detail .expense-vouchers h2 {font-size:14px;margin:0 0 4px}
}
