.accounting-workspace{--ac-ink:#14211d;--ac-muted:#64736c;--ac-line:#dfe5df;--ac-paper:#fff;--ac-soft:#f1f5f1;--ac-green:#0c6b4f;--ac-green-deep:#084d3a;--ac-gold:#a66b16;position:relative;max-width:1380px;margin:0 auto;color:var(--ac-ink);font-family:'Noto Sans Arabic','Manrope',sans-serif;text-align:right}
.accounting-workspace ::selection{background:#bce7d5;color:#063e2f}
.accounting-workspace :focus-visible{outline:3px solid rgba(12,107,79,.25);outline-offset:2px}
.accounting-workspace button,.accounting-workspace input,.accounting-workspace select{font:inherit}
.ac-icon{display:inline-flex;width:18px;height:18px;flex:0 0 auto}
.ac-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ac-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;padding:10px 2px 24px;border-bottom:1px solid var(--ac-line)}
.ac-hero__copy{max-width:70ch}
.ac-hero h1{margin:0 0 9px;font-size:clamp(28px,3vw,44px);font-weight:800;letter-spacing:-.025em;line-height:1.08;text-wrap:balance}
.ac-hero p{margin:0;color:var(--ac-muted);font-size:14px;line-height:1.8}
.ac-hero__trust{display:flex;align-items:center;gap:11px;min-width:max-content;color:var(--ac-green);direction:ltr;text-align:left}
.ac-hero__trust .ac-icon{width:26px;height:26px}
.ac-hero__trust span{display:flex;flex-direction:column}
.ac-hero__trust strong{font-size:12px;letter-spacing:.02em}
.ac-hero__trust small{color:var(--ac-muted);font-size:10px;font-family:'JetBrains Mono',monospace}
.ac-setup{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0 26px;background:#e9eeea;border-radius:14px;overflow:hidden}
.ac-setup__step{display:flex;align-items:center;gap:11px;padding:13px 16px;color:#596760;background:#f4f6f3;position:relative}
.ac-setup__step:not(:last-child)::after{content:"";position:absolute;inset-block:12px;left:0;width:1px;background:#d7ded8}
.ac-setup__step.is-done{color:var(--ac-green);background:#edf6f1}
.ac-setup__number{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;font:700 11px 'JetBrains Mono',monospace;box-shadow:0 2px 7px rgba(20,33,29,.1)}
.ac-setup__copy{display:flex;flex-direction:column;gap:2px}
.ac-setup__copy strong{font-size:12px}
.ac-setup__copy small{color:inherit;opacity:1;font-size:10px}
.ac-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px 0 18px;padding:11px 14px;border-radius:12px;font-size:12.5px;font-weight:650}
.ac-notice--error{background:#fff0ee;color:#9e3329}
.ac-notice--success{background:#eaf6f0;color:#096047}
.ac-command{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
.ac-tabs{display:flex;gap:3px;padding:4px;border-radius:12px;background:#e9eeea}
.ac-tabs button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#596760;padding:8px 13px;border-radius:9px;cursor:pointer;font-size:12.5px;font-weight:700}
.ac-tabs button:hover{color:var(--ac-ink)}
.ac-tabs button.is-active{background:#fff;color:var(--ac-green-deep);box-shadow:0 2px 8px rgba(20,33,29,.1)}
.ac-tabs small{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:rgba(12,107,79,.08);font:650 10px 'JetBrains Mono',monospace}
.ac-command__actions{display:flex;align-items:center;gap:8px}
.ac-button,.ac-icon-button{border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.ac-button{min-height:38px;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:750}
.ac-button:hover:not(:disabled){transform:translateY(-1px)}
.ac-button--primary{background:var(--ac-green);color:#fff;box-shadow:0 5px 14px rgba(12,107,79,.2)}
.ac-button--primary:hover:not(:disabled){background:var(--ac-green-deep);box-shadow:0 7px 18px rgba(12,107,79,.25)}
.ac-button--quiet{background:#e9eeea;color:#30453c}
.ac-button--quiet:hover:not(:disabled){background:#dce5de}
.ac-button--danger{background:#fff0ee;color:#a3382d}
.ac-button--danger:hover:not(:disabled){background:#f9ded9}
.ac-button:disabled,.ac-icon-button:disabled{cursor:not-allowed;opacity:.45;transform:none;box-shadow:none}
.ac-icon-button{width:36px;height:36px;padding:0;border-radius:9px;background:#eef2ee;color:#52635b}
.ac-icon-button:hover:not(:disabled){background:#dfe7e0;color:var(--ac-ink)}
.ac-content{min-height:310px;background:var(--ac-paper);border-radius:14px;box-shadow:0 9px 30px rgba(20,33,29,.07);overflow:hidden}
.ac-table-wrap{overflow:auto;max-height:calc(100vh - 350px)}
.ac-table{width:100%;border-collapse:collapse;text-align:right;font-size:12.5px}
.ac-table th{position:sticky;top:0;z-index:1;padding:12px 16px;background:#f5f7f4;color:#5f6b65;border-bottom:1px solid var(--ac-line);font-size:10.5px;font-weight:800;white-space:nowrap}
.ac-table td{padding:13px 16px;border-bottom:1px solid #edf0ed;color:#3e4d46;vertical-align:middle}
.ac-table tbody tr:hover{background:#f7faf7}
.ac-table tbody tr:last-child td{border-bottom:0}
.ac-paged{display:flex;flex-direction:column}
.ac-page-more{display:flex;justify-content:center;padding:13px;border-top:1px solid #edf0ed;background:#fafbfa}
.ac-primary-cell{display:flex;flex-direction:column;gap:3px;min-width:180px}
.ac-primary-cell strong{color:var(--ac-ink);font-size:12.5px}
.ac-primary-cell small{direction:ltr;text-align:right;color:#596760;font:9.5px 'JetBrains Mono',monospace}
.ac-tabular{direction:ltr;font-family:'JetBrains Mono',monospace;font-variant-numeric:tabular-nums}
.ac-code{color:var(--ac-green)!important;font-weight:700}
.ac-status,.ac-availability{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:8px;font-size:10.5px;font-weight:800;white-space:nowrap}
.ac-status::before,.ac-availability::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ac-status--posted,.ac-status--open,.ac-availability.is-active{background:#e8f5ef;color:#0b6a4e}
.ac-status--reversed{background:#fff0ee;color:#a2382e}
.ac-status--closed{background:#fff5e3;color:#8b5c17}
.ac-status--locked,.ac-availability{background:#edf0ed;color:#596760}
.ac-empty{min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:42px 24px}
.ac-empty__mark{display:grid;place-items:center;width:48px;height:48px;margin-bottom:14px;border-radius:13px;background:#edf5f0;color:var(--ac-green)}
.ac-empty__mark .ac-icon{width:24px;height:24px}
.ac-empty h3{margin:0 0 7px;font-size:17px;letter-spacing:-.015em}
.ac-empty p{max-width:58ch;margin:0 0 18px;color:var(--ac-muted);font-size:12.5px;line-height:1.75}
.ac-editor{margin-bottom:14px;padding:18px;background:#fff;border-radius:14px;box-shadow:0 9px 30px rgba(20,33,29,.07)}
.ac-editor__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.ac-editor h3{margin:0 0 4px;font-size:16px}
.ac-editor p{margin:0;color:var(--ac-muted);font-size:11.5px}
.ac-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.ac-check{align-self:end;min-height:39px;display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;padding:0 10px;border-radius:9px;background:#f5f7f4}
.ac-check input{width:16px!important;height:16px!important;accent-color:var(--ac-green)}
.ac-editor label{display:flex;flex-direction:column;gap:6px;color:#56645d;font-size:10.5px;font-weight:800}
.ac-editor input,.ac-editor select{width:100%;height:39px;border:1px solid #d9e0da;border-radius:9px;background:#fafbfa;color:var(--ac-ink);padding:0 10px;font-size:12px}
.ac-editor input::placeholder{color:#596760}
.ac-editor input:hover,.ac-editor select:hover{border-color:#aebbb2}
.ac-editor input:focus,.ac-editor select:focus{border-color:var(--ac-green);background:#fff;outline:none;box-shadow:0 0 0 3px rgba(12,107,79,.12)}
.ac-journal-meta{display:grid;grid-template-columns:150px 110px 1fr;gap:12px;margin-bottom:14px}
.ac-lines{display:flex;flex-direction:column;gap:7px}
.ac-line{display:grid;grid-template-columns:28px minmax(190px,1.35fr) 100px minmax(110px,.65fr) minmax(150px,1fr) 36px;align-items:end;gap:8px;padding:9px;border-radius:11px;background:#f5f7f4}
.ac-line__number{align-self:center;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e1e8e2;color:#53635b;font:700 10px 'JetBrains Mono',monospace}
.ac-journal-footer{display:flex;align-items:center;gap:12px;margin-top:14px}
.ac-review-facts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}
.ac-review-facts>span{display:flex;flex-direction:column;gap:5px;padding:11px;border-radius:10px;background:#f5f7f4;color:#596760;font-size:10px}
.ac-review-facts strong{color:var(--ac-ink);font-size:12px}
.ac-review-lines{display:flex;flex-direction:column;border-block:1px solid var(--ac-line)}
.ac-review-lines>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 4px;border-bottom:1px solid #edf0ed;font-size:11px}
.ac-review-lines>div:last-child{border-bottom:0}
.ac-review-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}
.ac-ambiguous{margin:13px 0 0;padding:11px;border-radius:10px;background:#fff5e3;color:#715018;font-size:11px;line-height:1.7}
.ac-balance{margin-inline-start:auto;display:flex;align-items:center;gap:12px;padding:8px 11px;border-radius:10px;background:#fff0ee;color:#8e3a31;font:10.5px 'JetBrains Mono',monospace}
.ac-balance strong{font-family:'Manrope',sans-serif}
.ac-balance.is-balanced{background:#e8f5ef;color:#0b6a4e}
.ac-period-list{display:flex;flex-direction:column}
.ac-period{display:grid;grid-template-columns:minmax(240px,1fr) 1fr auto;align-items:center;gap:20px;padding:17px 20px;border-bottom:1px solid #edf0ed}
.ac-period:last-child{border-bottom:0}
.ac-period__range{display:flex;align-items:center;gap:10px;direction:ltr;justify-content:flex-end;font:12px 'JetBrains Mono',monospace}
.ac-period__range span{color:#9aa49f}
.ac-period__meta{display:flex;align-items:center;gap:12px}
.ac-period__meta small{color:var(--ac-muted);font-size:10.5px}
.ac-period__actions{display:flex;gap:8px}
.ac-loading{display:flex;flex-direction:column;gap:12px;padding:34px}
.ac-loading span{height:44px;border-radius:9px;background:linear-gradient(100deg,#eef1ee 25%,#f8faf8 45%,#eef1ee 65%);background-size:200% 100%;animation:ac-shimmer 1.25s ease-in-out infinite}
.ac-loading span:nth-child(2){width:83%}.ac-loading span:nth-child(3){width:68%}
@keyframes ac-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
.ac-detail{position:fixed;z-index:30;inset-block:0;left:0;width:min(520px,100vw);padding:24px;background:#fff;box-shadow:16px 0 55px rgba(20,33,29,.2);overflow:auto;animation:ac-drawer .32s cubic-bezier(.16,1,.3,1)}
@keyframes ac-drawer{from{transform:translateX(-24px);clip-path:inset(0 100% 0 0)}to{transform:translateX(0);clip-path:inset(0)}}
.ac-detail__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--ac-line)}
.ac-detail__head h2{margin:0 0 5px;font-size:20px;letter-spacing:-.02em}
.ac-detail__head p{margin:0;color:#596760;font-size:9.5px}
.ac-detail__facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:18px 0}
.ac-detail__facts>span{display:flex;flex-direction:column;gap:5px;color:#596760;font-size:10px}
.ac-detail__facts strong{color:var(--ac-ink);font-size:11px}
.ac-detail__lines{border-top:1px solid var(--ac-line)}
.ac-detail-line{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #edf0ed}
.ac-detail-line__direction{font-size:10px;font-weight:800;color:var(--ac-green)}
.ac-detail-line__account{display:flex;flex-direction:column;gap:2px}
.ac-detail-line__account strong{font-size:12px}.ac-detail-line__account small{color:#596760;font:10px 'JetBrains Mono',monospace}
.ac-detail-line__account .ac-detail-line__context{margin-top:3px;direction:rtl;font-family:'Noto Sans Arabic','Manrope',sans-serif;line-height:1.55}
.ac-detail-line>strong{font-size:11px}
.ac-audit-link{border:0;background:transparent;color:var(--ac-green);padding:0;text-align:right;font-size:9.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}
.ac-detail__reverse{width:100%;margin-top:22px}
.ac-reversal{margin-top:22px;padding:15px;border-radius:12px;background:#fff5f3}
.ac-reversal label{display:flex;flex-direction:column;gap:7px;color:#81362f;font-size:11px;font-weight:800}
.ac-reversal textarea{min-height:86px;resize:vertical;border:1px solid #e8c6c1;border-radius:9px;background:#fff;padding:10px;color:var(--ac-ink);font:12px/1.6 'Manrope',sans-serif}
.ac-reversal textarea:focus{border-color:#a3382d;outline:none;box-shadow:0 0 0 3px rgba(163,56,45,.12)}
.ac-reversal textarea::placeholder{color:#66504c}
.ac-reversal p{margin:10px 0 14px;color:#825c57;font-size:10.5px;line-height:1.65}
.ac-reversal__actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:1000px){.ac-form-grid{grid-template-columns:repeat(2,1fr)}.ac-line{grid-template-columns:28px 1fr 100px 1fr}.ac-line label:nth-of-type(4){grid-column:2/5}.ac-line>.ac-icon-button{grid-column:5;grid-row:1}.ac-period{grid-template-columns:1fr auto}.ac-period__meta{grid-row:2}.ac-period__actions{grid-row:2}.ac-review-facts{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.accounting-workspace{min-width:0}.ac-hero{align-items:flex-start;flex-direction:column;gap:14px}.ac-hero__trust{min-width:0}.ac-setup{grid-template-columns:1fr}.ac-setup__step:not(:last-child)::after{inset:auto 14px 0;width:auto;height:1px}.ac-command{align-items:stretch;flex-direction:column}.ac-tabs{overflow:auto}.ac-tabs button{flex:1;justify-content:center;white-space:nowrap}.ac-command__actions{justify-content:flex-end}.ac-button{min-height:44px}.ac-icon-button{width:44px;height:44px}.ac-editor input,.ac-editor select{height:44px}.ac-form-grid,.ac-journal-meta,.ac-review-facts{grid-template-columns:1fr}.ac-line{grid-template-columns:28px 1fr 1fr}.ac-line label:first-of-type{grid-column:2/4}.ac-line label:nth-of-type(4){grid-column:2/4}.ac-line>.ac-icon-button{grid-column:3;grid-row:1}.ac-journal-footer,.ac-review-actions{align-items:stretch;flex-direction:column}.ac-balance{width:100%;margin:0;flex-wrap:wrap;justify-content:space-between}.ac-period{grid-template-columns:1fr;gap:10px}.ac-period__range{justify-content:flex-start}.ac-period__meta,.ac-period__actions{grid-row:auto}.ac-table{min-width:760px}.ac-table th:first-child,.ac-table td:first-child{position:sticky;right:0;z-index:2;background:inherit}.ac-table th:last-child,.ac-table td:last-child{position:sticky;left:0;z-index:2;background:inherit}.ac-table th:first-child,.ac-table th:last-child{background:#f5f7f4}.ac-table td:first-child,.ac-table td:last-child{background:#fff}.ac-detail__facts{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.ac-detail{animation:none}.ac-loading span{animation:none}.ac-button,.ac-icon-button{transition:none}}
