.treasury-page { display: grid; gap: 16px; min-width: 0; }
.treasury-page h2 { font-size: 17px; }
.treasury-period { display: grid; grid-template-columns: 92px 130px auto minmax(140px,1fr) minmax(140px,1fr) auto; gap: 12px; align-items: end; padding-block: 8px 16px; border-bottom: 1px solid #30404b; }
.treasury-page .form-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.treasury-page .form-field > span { font-size: 12px; color: #aebec5; }
.treasury-page input:not([type=checkbox]), .treasury-page select { min-width: 0; width: 100%; min-height: 42px; }
.treasury-page button { min-height: 38px; white-space: normal; border: 1px solid #42505e; border-radius: 6px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #dbe5ed; background: #172831; cursor: pointer; font: inherit; font-size: 13px; }
.treasury-page button:hover:not(:disabled) { border-color: #30b8b2; background: #183c40; }
.treasury-page button:disabled { opacity: .5; cursor: default; }
.treasury-tabs button.active { border-color: #35bfb2; background: #12413d; color: #e1fff7; }
.treasury-page > .modal-backdrop { padding: 10px; }
.treasury-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.treasury-section { display: grid; gap: 16px; min-width: 0; }
.treasury-actions, .treasury-classify-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.treasury-actions > .form-field, .treasury-classify-toolbar > .form-field { flex: 1 1 190px; max-width: 340px; }
.treasury-classify-toolbar { border-block: 1px solid #30404b; padding-block: 14px; }
.treasury-page table { width: 100%; font-size: 13px; }
.treasury-page th, .treasury-page td { padding: 12px 10px; overflow-wrap: anywhere; }
.treasury-page .table-wrap { min-width: 0; overflow-x: auto; }
.treasury-page .treasury-section > .table-wrap table { min-width: 760px; }
.treasury-page .row-actions { flex-wrap: nowrap; }
.treasury-identifiers { display: grid; gap: 4px; font-family: monospace; font-size: 12px; direction: ltr; unicode-bidi: isolate; }
.treasury-negative { color: #ff778d; }
.treasury-legacy { border-top: 1px solid #30404b; padding-top: 14px; }
.treasury-legacy summary { cursor: pointer; padding-bottom: 14px; color: #b4c2cb; }
.treasury-report-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.treasury-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; }
.treasury-modal { width: min(880px,100%); min-width: 0; box-sizing: border-box; max-height: calc(100dvh - 20px); overflow: auto; display: grid; gap: 16px; border-radius: 8px; }
.treasury-modal .panel-head { margin: 0; }
.treasury-form { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; }
.treasury-form input[type=checkbox], .treasury-page td input[type=checkbox] { width: 18px; height: 18px; }
.treasury-form .lov-select { width: 100%; min-width: 0; }
.treasury-form .lov-select summary { min-height: 42px; }
.treasury-form .lov-select summary span { overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 1000px) { .treasury-period { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .treasury-period { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .treasury-form { grid-template-columns: minmax(0,1fr); }
  .treasury-tabs > button { flex: 1 1 40%; }
  .treasury-page .treasury-actions > .form-field { max-width: none; }
  .treasury-modal { padding: 16px; }
}
