.account-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.account-summary > div { display:flex; align-items:center; gap:11px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px; }
.account-head-icon { width:34px; height:34px; border-radius:8px; display:grid; place-items:center; background:#eef2ff; color:var(--blue); font-weight:700; }
.account-summary span:last-child { display:grid; }
.account-summary strong { font-size:.85rem; }
.account-summary small { color:var(--muted); font-size:.72rem; }
.account-tree .head-account { background:#fbfcff; }
.tree-account { display:flex; align-items:center; gap:8px; padding-left:calc(var(--tree-level) * 27px); }
.tree-connector { width:16px; color:#8b97aa; text-align:center; }
.head-account .tree-account strong { color:#24365f; }
.system-note { display:flex; flex-direction:column; padding:14px 16px; border:1px solid #dce3f7; background:#f7f9ff; border-radius:8px; }
.system-note strong { font-size:.85rem; color:#304a9d; }
.system-note span { font-size:.77rem; color:var(--muted); margin-top:3px; }
.generated-code-wrap { position:relative; }
.generated-code-wrap .form-control[readonly] { background:#f5f7fb; padding-right:55px; color:#304a9d; font-weight:700; }
.generated-label { position:absolute; right:10px; top:50%; transform:translateY(-50%); padding:3px 6px; border-radius:5px; background:#e8edff; color:#3157d5; font-size:.62rem; font-weight:700; text-transform:uppercase; }
@media (max-width:900px) { .account-summary { grid-template-columns:repeat(2,1fr); } }

.receipt-workspace .form-panel { max-width:none; }
.receipt-page-heading { margin-bottom:8px; }
.receipt-page-heading p { display:none; }
.receipt-entry-panel { padding:10px 12px 0; }
.receipt-entry-panel .validation-summary-valid { display:none; }
.receipt-entry-panel .alert { margin-bottom:7px; padding:6px 9px; font-size:.72rem; }
.receipt-entry-panel .form-actions { margin:8px -12px 0; padding:8px 12px; gap:6px; }
.receipt-entry-panel .form-actions .btn { min-height:33px; padding:.35rem .58rem; font-size:.7rem; }
.receipt-entry-grid { --bs-gutter-y:.36rem; --bs-gutter-x:.55rem; }
.receipt-entry-grid .form-label { margin-bottom:2px; font-size:.69rem; line-height:1.1; }
.receipt-entry-grid .form-control,.receipt-entry-grid .form-select { min-height:33px; padding:.3rem .5rem; font-size:.76rem; }
.receipt-entry-grid .input-group .btn { min-height:33px; padding:.32rem .58rem; font-size:.7rem; }
.receipt-entry-grid .form-text { margin-top:2px; font-size:.64rem; line-height:1.15; }
.receipt-entry-grid .form-text:empty { display:none; }
.receipt-entry-grid .text-danger:empty { display:none; }
.receipt-entry-grid textarea { min-height:34px; height:34px; resize:vertical; }
.receipt-account-lookup { padding:7px 8px; border:1px solid #cbd5e1; border-radius:8px; background:#f8fafc; }
.receipt-lookup-divider { display:flex; align-items:center; gap:7px; margin:6px 0 5px; color:#64748b; font-size:.56rem; font-weight:700; letter-spacing:.05em; }
.receipt-lookup-divider::before,.receipt-lookup-divider::after { content:""; flex:1; height:1px; background:#cbd5e1; }
.selected-receipt-account { display:flex; align-items:center; gap:7px; margin-top:5px; padding:5px 7px; border:1px solid #a7d7c5; border-radius:7px; background:#eefbf5; }
.selected-receipt-account span { color:#177052; font-size:.62rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.selected-receipt-account strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#174f3e; font-size:.72rem; line-height:1.2; }
.receipt-account-panel { position:sticky; top:86px; padding:11px 12px; }
.receipt-account-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:7px; }
.receipt-account-heading h2 { margin:1px 0 0; font-size:1rem; }
.receipt-details-empty { min-height:82px; display:grid; place-items:center; padding:14px; text-align:center; color:var(--muted); border:1px dashed #cdd7e7; border-radius:8px; background:#f8faff; }
.receipt-item-name { display:flex; flex-direction:column; padding:6px 8px; margin-bottom:6px; border-radius:7px; background:linear-gradient(135deg,#eef3ff,#f8faff); border:1px solid #d7e1fa; }
.receipt-item-name small,.receipt-metric-grid small { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; }
.receipt-item-name strong { margin-top:1px; color:#24365f; font-size:.86rem; }
.receipt-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.receipt-metric-grid > div { display:flex; flex-direction:column; min-height:46px; padding:5px 7px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.receipt-metric-grid strong { margin-top:1px; font-size:.78rem; color:#25324b; }
.receipt-metric-grid .received { background:#f0fbf6; border-color:#cdeede; }
.receipt-metric-grid .received strong { color:#15805c; }
.receipt-metric-grid .balance { background:#fff8ed; border-color:#f4dfb9; }
.receipt-metric-grid .balance strong { color:#a25e0b; }
.receipt-lines-heading { display:flex; align-items:center; justify-content:space-between; margin:8px 0 4px; }
.receipt-lines-heading h3 { margin:0; font-size:.88rem; }
.receipt-lines-wrap { max-height:190px; border:1px solid var(--line); border-radius:7px; }
.receipt-lines-wrap thead { position:sticky; top:0; z-index:1; }
.receipt-lines-wrap th,.receipt-lines-wrap td { white-space:nowrap; }
.receipt-lines-wrap td:last-child { min-width:150px; white-space:normal; }
@media (max-width:1199px) { .receipt-account-panel { position:static; } }
@media (max-width:700px) { .receipt-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
