#finance.finance-overview-mode > .department-detail, #finance.finance-overview-mode > .stats { display: none; }
body:has(#finance.finance-overview-mode.active) .nav { align-content: start; }
.pf-workspace[hidden] { display: none; }
.pf-workspace { padding: 20px; background: #fff; min-width: 0; }
.pf-workspace *, .pf-dialog * { box-sizing: border-box; letter-spacing: 0; }
.pf-heading, .pf-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pf-heading h3, .pf-dialog h3 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.pf-workspace a, .pf-dialog a { color: #176353; text-decoration: none; }
.pf-export { position: relative; z-index: 2; flex-shrink: 0; font-size: 14px; }
.pf-export[inert] { opacity: .5; }
.pf-export summary { cursor: pointer; padding: 9px 12px; border: 1px solid #d6e3dc; border-radius: 4px; }
.pf-export nav { position: absolute; right: 0; top: 100%; min-width: 260px; padding: 8px; background: #fff; border: 1px solid #d6e3dc; box-shadow: 0 8px 24px #183b2920; }
.pf-export a { display: block; padding: 12px 8px; }
.pf-export a:hover { background: #edf5f0; }
.pf-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.pf-filters label { display: grid; gap: 7px; min-width: 0; font-size: 13px; }
.pf-filters input, .pf-filters select { width: 100%; min-width: 0; max-width: 100%; padding: 10px; border: 1px solid #d6e3dc; border-radius: 4px; font: inherit; background: #fff; }
.pf-filters input::placeholder { color: #97a59e; }
.pf-filter-actions { display: flex; gap: 8px; align-items: end; grid-column: 1/-1; justify-content: flex-end; }
.pf-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 24px; border-block: 1px solid #d8e3dc; padding: 18px 0; margin: 20px 0; }
.pf-summary span, .pf-summary small { display: block; color: #6e7f76; font-size: 12px; margin-bottom: 6px; }
.pf-summary strong { font-size: 21px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-summary div:nth-child(4) strong { color: #aa5744; }
.pf-summary div:nth-child(5) strong { color: #167456; }
.pf-table-wrap { overflow: auto; max-width: 100%; }
.pf-table { width: 100%; min-width: 800px; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.pf-project-table .pf-table { min-width: 1060px; }
.pf-table th { background: #f3f7f5; color: #5d7266; padding: 12px 8px; text-align: left; font-weight: 500; }
.pf-table th:first-child { width: 22%; }
.pf-project-table .pf-table th:first-child { width: 20%; }
.pf-project-table .pf-table th:last-child { width: 68px; }
.pf-project-table .pf-table th:last-child, .pf-project-table .pf-table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -3px 0 6px #20352a0d; }
.pf-project-table .pf-table th:last-child { background: #f3f7f5; }
.pf-project-table .pf-table th:nth-child(2) { width: 16%; }
.pf-table td { padding: 14px 8px; border-bottom: 1px solid #e1e9e4; line-height: 1.55; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pf-table small { display: block; color: #7f8f85; margin-top: 5px; }
.pf-table button, .pf-table a { padding: 8px; font-size: 12px; white-space: nowrap; }
.pf-table .pf-negative, .pf-negative { color: #b13e37; }
.pf-status { display: inline-block; font-size: 12px; color: #526c5f; background: #edf3ef; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.pf-status.pf-warning { color: #9c5423; background: #fff1d8; }
.pf-pagination { display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding-top: 18px; font-size: 13px; }
.pf-pagination > span:first-child { margin-right: auto; color: #708578; }
.pf-workspace .pf-icon, .pf-dialog .pf-icon { padding: 0; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 4px; font-size: 20px; }
.pf-results[aria-busy=true] { opacity: .5; pointer-events: none; }
.pf-workspace button:disabled { opacity: .4; }
.pf-empty { color: #788d80; font-size: 14px; text-align: center; padding: 24px 0; }
.pf-error { color: #b44237; overflow-wrap: anywhere; font-size: 14px; }
.pf-mobile-list { display: none; }
.pf-dialog { width: min(1160px,calc(100% - 32px)); max-width: calc(100% - 32px); max-height: 92vh; border: 1px solid #dbe5df; border-radius: 8px; padding: 0; font-family: inherit; color: #243d31; }
.pf-dialog::backdrop { background: #102f2366; }
.pf-dialog-heading { position: sticky; top: 0; background: #fff; z-index: 1; padding: 20px 24px; border-bottom: 1px solid #dbe5df; }
.pf-dialog-heading small { color: #7a8a80; display: block; margin-bottom: 6px; }
.pf-dialog-body { padding: 20px 24px; min-width: 0; }
.pf-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; }
.pf-facts > div { min-width: 0; }
.pf-facts dt { color: #798c7d; font-size: 12px; margin-bottom: 7px; }
.pf-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.pf-detail-balance { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; padding-bottom: 20px; }
.pf-tabs { display: flex; gap: 8px; border-bottom: 1px solid #d6e3dc; overflow-x: auto; }
.pf-tabs button { flex-shrink: 0; white-space: nowrap; background: transparent; color: #65786b; border-radius: 0; border-bottom: 3px solid transparent; padding: 12px 8px; }
.pf-tabs [aria-selected=true] { color: #166849; border-bottom-color: #166849; }
.pf-tabs small { color: #89988f; }
.pf-tab-content { padding-top: 16px; }
.pf-dialog-body > section { padding: 20px 0; border-top: 1px solid #e1e9e4; margin-top: 20px; }
.pf-dialog h4 { font-size: 16px; margin: 0 0 14px; }
.pf-files { margin: 0; padding: 0; list-style: none; }
.pf-files li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e5ece7; }
.pf-files li > span { min-width: 0; overflow-wrap: anywhere; }
.pf-files small { display: block; color: #86968b; margin-top: 6px; }
.pf-files a { flex-shrink: 0; }
.pf-wide { grid-column: 1/-1; }
#pfApprovalDialog { width: min(980px,calc(100% - 32px)); }
#pfApprovalDialog .pf-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width:1500px) { .pf-summary { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width:1100px) { .pf-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .pf-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) {
  .pf-workspace { padding: 14px; }
  .pf-heading h3, .pf-dialog h3 { font-size: 17px; }
  .pf-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .pf-summary strong { font-size: 17px; }
  .pf-search { grid-column: 1/-1; }
  .pf-project-table { display: none; }
  .pf-mobile-list { display: grid; gap: 14px; }
  .pf-mobile-list article { border: 1px solid #dce6e0; border-radius: 6px; padding: 14px; min-width: 0; }
  .pf-mobile-list header, .pf-mobile-list footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .pf-mobile-list header { align-items: flex-start; }
  .pf-mobile-list strong { font-size: 15px; overflow-wrap: anywhere; }
  .pf-mobile-list p, .pf-mobile-list footer { font-size: 12px; color: #728475; overflow-wrap: anywhere; }
  .pf-mobile-list dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; font-size: 12px; }
  .pf-mobile-list dt { color: #869386; }
  .pf-mobile-list dd { margin: 6px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .pf-dialog-heading, .pf-dialog-body { padding: 16px; }
  .pf-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pf-export nav { min-width: 230px; }
}
