.module-subnav,.accounting-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 14px;padding:8px;border:1px solid var(--border,#dfe5ec);border-radius:10px;background:var(--card,#fff)}
.module-subnav button,.accounting-tabs button{min-width:auto}
.module-subnav button.is-active,.accounting-tabs button.is-active{background:var(--primary,#1677ff);border-color:var(--primary,#1677ff);color:#fff;box-shadow:0 0 0 2px rgba(22,119,255,.12)}
.accounting-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.accounting-summary-card{padding:14px}.accounting-summary-card p{margin:0;color:var(--muted,#667085);font-size:12px}.accounting-summary-card strong{display:block;margin-top:5px;font-size:20px}.accounting-summary-card small{display:block;margin-top:4px;color:var(--muted,#667085)}
.accounting-filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:12px}.accounting-filters .field{min-width:145px;flex:1}.accounting-filters .field.compact{max-width:210px}.accounting-filters .accounting-filter-actions{display:flex;gap:6px}
.coa-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700}.coa-name{display:flex;align-items:center;gap:6px}.coa-level{display:inline-block;width:calc((var(--coa-level,1) - 1) * 18px)}
.accounting-positive{color:#087a3e}.accounting-negative{color:#b42318}.accounting-balanced{color:#087a3e;font-weight:700}.accounting-unbalanced{color:#b42318;font-weight:700}
.journal-lines-wrap{overflow:auto;border:1px solid var(--border,#dfe5ec);border-radius:10px}.journal-lines-table{width:100%;min-width:980px;border-collapse:collapse}.journal-lines-table th,.journal-lines-table td{padding:6px;border-bottom:1px solid var(--border,#e4e7ec);vertical-align:middle}.journal-lines-table th{font-size:12px;background:#f8fafc;white-space:nowrap}.journal-lines-table input,.journal-lines-table select{min-height:34px;width:100%}.journal-lines-table .amount-input{min-width:100px;text-align:left}.journal-lines-table .line-action{width:42px;text-align:center}
.journal-total-bar{display:flex;justify-content:flex-end;gap:18px;align-items:center;padding:10px 4px;font-weight:700}.journal-total-bar .difference{min-width:140px}
.accounting-two-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.accounting-report-block{padding:14px}.accounting-report-block h3{margin:0 0 10px}.accounting-report-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed var(--border,#e4e7ec)}.accounting-report-row:last-child{border-bottom:0}
.accounting-entry-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.accounting-entry-meta .info-box{margin:0}
.accounting-import-preview{max-height:340px;overflow:auto}.accounting-period-status{display:inline-flex;align-items:center;gap:5px}.accounting-period-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#667085}.accounting-period-status.open::before{background:#12b76a}.accounting-period-status.soft_closed::before{background:#f79009}.accounting-period-status.closed::before{background:#f04438}
@media(max-width:900px){.accounting-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-two-columns{grid-template-columns:1fr}.accounting-entry-meta{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.accounting-summary-grid{grid-template-columns:1fr}.accounting-tabs,.module-subnav{overflow-x:auto;flex-wrap:nowrap}.accounting-tabs button,.module-subnav button{white-space:nowrap}.accounting-entry-meta{grid-template-columns:1fr}.accounting-filters .field{min-width:100%}}
