.reporting-workspace { padding:0; overflow:hidden; border:1px solid #dfe7df; border-radius:18px; background:#fff; }
.reporting-page-heading { padding:28px 32px 24px; }
.reporting-page-heading h2 { margin:0 0 12px; font-size:25px; }
.reporting-page-heading p { margin:0 0 10px; color:#687e70; line-height:1.9; }
.reporting-page-heading small { color:#829085; font-size:11px; line-height:1.8; }
.reporting-tabs { display:flex; gap:12px; padding:0 28px; border-bottom:1px solid #e0e7df; }
.reporting-tabs button { border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; padding:14px 20px; font:inherit; color:#718373; }
.reporting-tabs button[aria-selected="true"] { color:#2d654b; border-bottom-color:#418464; }
.reporting-body { padding:26px 32px 32px; }
.reporting-type { display:grid; gap:10px; width:min(100%,400px); margin-bottom:22px; color:#4f704c; font-size:14px; }
.reporting-type select,.reporting-filters input,.reporting-filters select { width:100%; min-width:0; min-height:44px; padding:9px 12px; margin:0; border:1px solid #d4dfce; border-radius:8px; background:#fff; color:#315538; font:inherit; }
.reporting-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px 18px; margin-bottom:26px; padding:18px; background:#f6f9f3; border:1px solid #e5eadf; border-radius:12px; }
.reporting-filters label { display:grid; gap:8px; color:#60785f; font-size:12px; min-width:0; }
.reporting-filters .form-error { grid-column:1/-1; margin:0; }
.reporting-filter-actions { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.reporting-clear { background:transparent; color:#5c7854; border:0; padding:0; min-height:28px; font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.reporting-section-heading { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:18px; margin-bottom:24px; }
.reporting-section-heading h2 { margin:0; font-size:19px; }
.reporting-section-heading p { margin:9px 0 0; font-size:13px; color:#718273; line-height:1.9; }
.reporting-heading-actions,.reporting-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.reporting-tools button,.reporting-heading-actions > button,.cost-record-actions button,.cost-source-button { min-height:41px; padding:9px 14px; border:1px solid #d1deca; border-radius:8px; background:#fff; color:#457344; font:inherit; font-size:13px; line-height:1.7; }
.reporting-heading-actions > .cost-primary { background:#306e4e; border-color:#306e4e; color:#fff; }
.reporting-tools button:disabled { opacity:.5; cursor:not-allowed; }
.cost-record-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.cost-record-card { padding:22px; border:1px solid #dfe7d9; border-radius:12px; min-width:0; font-size:14px; line-height:1.9; }
.cost-record-card[data-selected-record="true"] { border-color:#87b29b; box-shadow:0 0 0 2px #e2eee5; }
.cost-record-card > header { display:flex; justify-content:space-between; align-items:start; gap:14px; }
.cost-record-card h3 { margin:0 0 7px; font-size:17px; }
.cost-record-card a,.reporting-table a,.cost-dialog a { color:#387458; text-underline-offset:4px; }
.cost-record-card p { margin:13px 0 0; color:#617560; font-size:13px; line-height:1.9; }
.cost-record-amount { display:grid; gap:3px; padding:14px 0 4px; }
.cost-record-amount strong { color:#315e41; font-size:21px; font-weight:550; overflow-wrap:anywhere; }
.cost-record-amount span { font-size:12px; color:#71866a; }
.cost-status { padding:3px 10px; font-size:11px; background:#edf3e8; border:1px solid #e0e8d8; border-radius:7px; white-space:nowrap; color:#637c53; }
.cost-source-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.cost-record-history { margin-top:18px; font-size:12px; color:#71846a; }
.cost-record-history summary,.reporting-rows summary { cursor:pointer; padding:5px 0; }
.cost-record-history ul { margin:12px 0; padding-inline-start:20px; line-height:2; }
.cost-record-actions { display:flex; flex-wrap:wrap; gap:10px; padding-top:16px; margin-top:16px; border-top:1px solid #edf0e9; }
.cost-record-actions:empty { display:none; }
.cost-record-actions button { font-size:12px; }
.reporting-empty { padding:24px; border:1px dashed #d6e2ce; border-radius:12px; color:#71866a; background:#fafcf7; line-height:2; font-size:14px; }
.reporting-hint { margin:0 0 20px; font-size:12px; color:#7b8e71; line-height:1.9; }
.reporting-subheading { margin:28px 0 12px; font-size:17px; color:#486a4d; }
.reporting-table th,.reporting-table td { padding:14px 16px; text-align:start; line-height:1.9; font-size:13px; }
.reporting-table th { background:#f8faf4; color:#66805a; font-size:12px; font-weight:500; }
.reporting-table td { color:#3d5e42; vertical-align:top; }
.cost-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:15px; }
.cost-summary article { display:grid; gap:10px; padding:20px; border:1px solid #dce7d4; border-radius:12px; background:#f8fbf4; }
.cost-summary span,.cost-summary small { color:#6b805f; font-size:12px; }
.cost-summary strong { color:#315e41; font-size:23px; font-weight:550; overflow-wrap:anywhere; }
.reporting-rows { margin:26px 0; padding:17px; border:1px solid #e0e8d9; border-radius:10px; }
.reporting-rows summary { color:#607a52; font-size:14px; }
.reporting-rows .table-scroll { margin-top:18px; }
dialog.cost-dialog { width:min(860px,calc(100vw - 32px)); padding:0; border:1px solid #dce5d7; border-radius:18px; color:#34583b; background:#fff; overflow:hidden; }
.cost-dialog form[data-action="save-cost-entry"] { display:flex; flex-direction:column; max-height:calc(100dvh - 34px); margin:0; gap:0; }
.cost-dialog header { flex:none; padding:26px 30px 24px; border-bottom:1px solid #e1e8db; background:#fafcf7; }
.cost-dialog h2 { margin:0 0 10px; font-size:23px; }
.cost-dialog header p { margin:0; font-size:14px; line-height:1.9; color:#73876a; }
.cost-dialog header small { display:block; margin-top:10px; color:#829085; font-size:11px; }
.cost-form-body { min-height:0; overflow-y:auto; overflow-x:hidden; padding:26px 30px; }
.cost-dialog .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; align-items:start; }
.cost-dialog .form-full { grid-column:1/-1; }
.cost-dialog label { display:grid; gap:9px; align-self:start; font-size:14px; color:#4f704c; min-width:0; }
.cost-dialog input,.cost-dialog select,.cost-dialog textarea { width:100%; min-width:0; min-height:46px; margin:0; padding:11px 13px; border:1px solid #cbdcc3; border-radius:9px; background:#fbfdf9; color:#315538; font:inherit; font-size:15px; line-height:1.7; }
.cost-dialog textarea { min-height:96px; resize:vertical; }
.cost-dialog label small { font-size:11px; color:#819276; }
.cost-field-group { display:grid; gap:9px; min-width:0; }
.cost-choice-hint { display:flex; flex-wrap:wrap; gap:8px; }
.cost-source-button { min-height:32px; padding:5px 9px; font-size:11px; white-space:normal; }
.cost-field-hint,.cost-source-reference { margin:0; font-size:12px; line-height:1.9; color:#7b8e71; }
.cost-fixed-field { display:grid; gap:7px; padding:13px 15px; border:1px solid #e0e8d9; border-radius:9px; background:#f8faf4; color:#74866c; font-size:12px; }
.cost-fixed-field strong { color:#36573c; font-size:14px; font-weight:550; }
.cost-total { display:grid; gap:10px; padding:18px 20px; border:1px solid #dce7d4; border-radius:11px; background:#f3f8ee; }
.cost-total > span,.cost-total > small { font-size:12px; color:#708661; }
.cost-total strong { font-size:22px; color:#315e41; font-weight:550; }
.cost-total strong small { font-size:13px; }
.cost-dialog .dialog-actions { flex:none; display:flex; justify-content:flex-start; flex-direction:row-reverse; gap:12px; padding:20px 30px; margin:0; border-top:1px solid #e0e8d9; background:#fff; }
.cost-dialog .dialog-actions button { flex:0 1 160px; min-height:46px; margin:0; border-radius:9px; font:inherit; font-size:14px; padding:10px 18px; line-height:1.75; }
.cost-dialog .dialog-actions button[type="submit"] { background:#306e4e; color:#fff; border:1px solid #306e4e; }
.cost-dialog .dialog-actions button[type="button"] { background:#fff; color:#527448; border:1px solid #cbdcc3; }
.cost-dialog .dialog-actions button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:900px) { .cost-record-list { grid-template-columns:1fr; } .reporting-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:680px) {
  .reporting-page-heading,.reporting-body { padding:22px 18px; }
  .reporting-tabs { padding:0 14px; }
  .reporting-filters { grid-template-columns:1fr; padding:15px; }
  .cost-record-card { padding:18px; }
  .reporting-heading-actions,.reporting-tools { width:100%; }
  .reporting-tools button,.reporting-heading-actions > button { flex:1; }
  .cost-dialog header,.cost-form-body { padding:22px 20px; }
  .cost-dialog .form-grid { grid-template-columns:1fr; gap:19px; }
  .cost-dialog .dialog-actions { padding:17px 20px; }
  .cost-dialog .dialog-actions button { flex:1 1 0; }
  .cost-total strong { font-size:20px; }
}
@media print { .reporting-tools,.cost-record-actions { display:none!important; } .reporting-rows > * { display:block!important; } .cost-record-card { break-inside:avoid; } }
