#accounting-view { --acc-line: rgba(36, 28, 66, 0.1); --acc-ink: var(--ink, #172033); }
.accounting-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.accounting-head h2 { margin: 3px 0 0; }
.accounting-actions { display: flex; align-items: center; gap: 12px; }
.accounting-settings { display: flex; align-items: end; gap: 12px; padding: 14px 17px; border: 1px solid var(--acc-line); border-radius: 16px; background: linear-gradient(135deg, #faf8fd, #fff); }
.accounting-settings label { margin: 0; }
.accounting-settings select { min-width: 130px; }
.accounting-settings > span { align-self: center; color: #7f7886; font-size: 12px; }
.accounting-settings .close-period { margin-left: auto; color: #8c541d; }
.accounting-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.accounting-summary article { padding: 17px 19px; border: 1px solid var(--acc-line); border-radius: 16px; background: #fff; }
.accounting-summary span { display: block; margin-bottom: 7px; color: #7d7785; font-size: 12px; }
.accounting-summary strong { color: var(--acc-ink); font-size: 21px; }
.accounting-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px; gap: 12px; margin-bottom: 12px; }
.accounting-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 15px; border: 1px solid var(--acc-line); border-radius: 14px; background: #fff; }
.accounting-search span { color: #6c47a9; font-size: 23px; }
.accounting-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.accounting-toolbar select { border: 1px solid var(--acc-line); border-radius: 14px; padding: 0 12px; background: #fff; }
.accounting-table-wrap { border: 1px solid var(--acc-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(29, 19, 49, 0.06); }
.accounting-table td strong, .accounting-table td small { display: block; }
.accounting-table td small { max-width: 420px; margin-top: 4px; color: #85808d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journal-state { display: inline-flex; min-height: 27px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.journal-state.draft { background: #fff4dc; color: #8b610a; }
.journal-state.posted { background: #e8f4ef; color: #246a51; }
.journal-state.cancelled { background: #faeaea; color: #9a3333; }
.journal-actions { display: flex; justify-content: flex-end; gap: 6px; }
.journal-actions .post { color: #246a51; }
.journal-actions .reverse { color: #9a3333; }
.accounting-empty { padding: 54px 20px; text-align: center; color: #7d7784; }
.accounting-empty strong { display: block; margin-bottom: 8px; color: var(--acc-ink); font-size: 18px; }
.accounting-dialog { width: min(700px, calc(100vw - 32px)); }
.accounting-small-dialog { width: min(540px, calc(100vw - 32px)); }
.accounting-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.accounting-form-grid .wide { grid-column: 1 / -1; }
.accounting-warning { padding: 13px 15px; border-radius: 13px; background: #fff4dc; color: #77520e; font-size: 13px; }
.accounting-note { padding: 13px 15px; border-radius: 13px; background: #f6f2fa; color: #645b6c; font-size: 13px; }
@media (max-width: 780px) {
  .accounting-head { align-items: flex-start; gap: 15px; }
  .accounting-actions { flex-direction: column; align-items: stretch; }
  .accounting-settings { flex-wrap: wrap; }
  .accounting-settings .close-period { margin-left: 0; }
  .accounting-settings > span { width: 100%; }
  .accounting-summary, .accounting-toolbar, .accounting-form-grid { grid-template-columns: 1fr; }
  .accounting-form-grid .wide { grid-column: auto; }
  .accounting-table th:nth-child(2), .accounting-table td:nth-child(2), .accounting-table th:nth-child(4), .accounting-table td:nth-child(4) { display: none; }
}
