.ar-ledger-workspace{--ar-blue:#2563eb;--ar-navy:#0f2748;--ar-border:#d7e0ec;--ar-soft:#f5f8fc;display:grid;gap:16px;color:var(--ar-navy);font-size:14px;min-width:0}
.ar-ledger-header,.ar-kpis article,.ar-register-card,.ar-totals{background:#fff;border:1px solid var(--ar-border);border-radius:12px;box-shadow:0 3px 12px rgba(15,39,72,.045)}
.ar-ledger-header{min-height:88px;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;gap:20px}
.ar-ledger-heading{border-left:4px solid var(--ar-blue);padding-left:15px}.ar-ledger-heading h1{font-size:27px;line-height:1.15;margin:0 0 5px;font-weight:750;letter-spacing:-.02em}.ar-ledger-heading p{margin:0;color:#536b8c;font-size:14px}
.ar-header-actions{display:flex;align-items:center;gap:10px}.ar-header-actions .btn,.ar-close{min-height:42px}.ar-close{width:44px;border:1px solid var(--ar-border);border-radius:9px;background:#fff;color:#274362;font-size:25px;cursor:pointer}.ar-close:hover{background:#f7f9fc}
.ar-export-menu{position:relative}.ar-export-menu summary{list-style:none;cursor:pointer}.ar-export-menu summary::-webkit-details-marker{display:none}.ar-export-menu>div,.ar-row-menu>div{position:absolute;z-index:20;right:0;top:calc(100% + 6px);min-width:140px;padding:6px;background:#fff;border:1px solid var(--ar-border);border-radius:9px;box-shadow:0 12px 30px rgba(15,39,72,.16)}
.ar-export-menu button,.ar-row-menu button{display:block;width:100%;border:0;background:#fff;color:var(--ar-navy);text-align:left;padding:9px 11px;border-radius:6px;cursor:pointer}.ar-export-menu button:hover,.ar-row-menu button:hover{background:#eef4ff}
.ar-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ar-kpis article{display:flex;align-items:center;gap:13px;min-height:91px;padding:15px 18px}.ar-kpis small{display:block;color:#536b8c;font-weight:600;margin-bottom:5px}.ar-kpis strong{display:block;font-size:21px;line-height:1.1;color:#071b39}.ar-kpi-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:9px;font-size:24px;font-weight:700}.ar-kpi-icon.blue{background:#e8f0ff;color:#2563eb}.ar-kpi-icon.green{background:#e1f7ed;color:#059669}.ar-kpi-icon.purple{background:#eee8ff;color:#7c3aed}.ar-kpi-icon.orange{background:#fff0df;color:#f97316}
.ar-register-card{overflow:visible}.ar-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(5,minmax(125px,.85fr)) auto;gap:10px;align-items:end;padding:16px;border-bottom:1px solid var(--ar-border)}.ar-filters.is-collapsed{display:none}.ar-filters label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#314c6c}.ar-filters input,.ar-filters select,.ar-table-footer select{height:42px;border:1px solid #cbd8e8;border-radius:7px;background:#fff;color:var(--ar-navy);padding:0 11px;font:inherit;min-width:0}.ar-search{align-self:end}.ar-search input{width:100%;padding-left:14px}.ar-clear{height:42px;border:0;background:transparent;color:var(--ar-blue);font-weight:700;white-space:nowrap;cursor:pointer}
.ar-table-wrap{overflow-x:auto}.ar-ledger-table{width:100%;border-collapse:collapse;table-layout:fixed}.ar-ledger-table th{background:#f0f5fb;border-bottom:1px solid var(--ar-border);padding:0;text-align:left;color:#29486c;font-size:12px;text-transform:none}.ar-ledger-table th:nth-child(1){width:9%}.ar-ledger-table th:nth-child(2){width:11%}.ar-ledger-table th:nth-child(3){width:15%}.ar-ledger-table th:nth-child(4){width:13%}.ar-ledger-table th:nth-child(5){width:11%}.ar-ledger-table th:nth-child(6),.ar-ledger-table th:nth-child(7),.ar-ledger-table th:nth-child(8){width:10%}.ar-ledger-table th:nth-child(9){width:8%}.ar-ledger-table th:nth-child(10){width:5%}.ar-ledger-table td{height:54px;padding:9px 11px;border-bottom:1px solid #e2e8f1;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#193554}.ar-ledger-table tbody tr:hover{background:#f8fbff}.ar-ledger-table .amount{text-align:right;font-variant-numeric:tabular-nums}.ar-sort{border:0;background:transparent;width:100%;height:45px;padding:0 11px;display:flex;align-items:center;gap:5px;color:inherit;font:inherit;font-weight:750;cursor:pointer}.ar-sort.amount{justify-content:flex-end}.ar-reference{border:0;background:transparent;color:var(--ar-blue);padding:0;font:inherit;cursor:pointer}.ar-reference:disabled{color:#64748b;cursor:default}.ar-badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ar-badge-type-sales-invoice{background:#e8f0ff;color:#0659dc}.ar-badge-type-receipt-voucher,.ar-badge-type-payment{background:#def6eb;color:#087f5b}.ar-badge-type-customer-balance-transfer{background:#eee8ff;color:#6938d3}.ar-badge-status-open{background:#fff0df;color:#c65b07}.ar-badge-status-applied,.ar-badge-status-paid{background:#def6eb;color:#087f5b}.ar-badge-status-partial{background:#e8f0ff;color:#1261d8}.ar-badge-status-reversed{background:#fee8e8;color:#c92a2a}
.ar-row-menu{position:relative;display:inline-block}.ar-row-menu summary{list-style:none;width:30px;height:34px;display:grid;place-items:center;border-radius:6px;cursor:pointer;font-size:22px}.ar-row-menu summary::-webkit-details-marker{display:none}.ar-row-menu summary:hover{background:#eef4ff}.ar-row-menu>div{top:100%;min-width:150px}.ar-empty{display:grid;place-items:center;gap:7px;min-height:180px;color:#60758f;white-space:normal}.ar-empty strong{font-size:16px;color:var(--ar-navy)}
.ar-loading,.ar-error{min-height:330px;padding:28px;background:#fff;border:1px solid var(--ar-border);border-radius:10px}.ar-loading{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-content:start}.ar-loading span{grid-column:1/-1;font-weight:700}.ar-loading i,.ar-loading b{display:block;height:94px;border-radius:9px;background:#edf2f8;animation:ar-pulse 1.3s ease-in-out infinite}.ar-loading b{grid-column:span 2;height:170px}.ar-error{display:grid;place-items:center;align-content:center;gap:9px;text-align:center}.ar-error strong{font-size:18px}.ar-error span{color:#60758f}@keyframes ar-pulse{50%{opacity:.52}}
.ar-table-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;min-height:60px;padding:10px 14px;color:#536b8c}.ar-table-footer nav{display:flex;gap:5px}.ar-table-footer button{min-width:34px;height:34px;border:1px solid var(--ar-border);border-radius:7px;background:#fff;color:#284665;cursor:pointer}.ar-table-footer button.active{background:var(--ar-blue);border-color:var(--ar-blue);color:#fff}.ar-table-footer button:disabled{opacity:.45;cursor:not-allowed}.ar-table-footer label{justify-self:end}.ar-table-footer select{height:36px}
.ar-totals{justify-self:end;display:grid;grid-template-columns:repeat(3,minmax(155px,1fr));min-width:min(100%,520px);padding:14px 18px}.ar-totals div{padding:2px 18px;border-left:1px solid var(--ar-border)}.ar-totals div:first-child{border-left:0}.ar-totals small{display:block;color:#536b8c;font-weight:650;margin-bottom:6px}.ar-totals strong{font-size:17px}.ar-totals div:last-child strong{color:var(--ar-blue);font-size:21px}.ar-powered{display:flex;justify-content:flex-end;align-items:center;gap:7px;color:#64748b;font-size:12px}.ar-powered img{width:20px;height:20px}
@media(max-width:1180px){.ar-kpis{grid-template-columns:repeat(2,1fr)}.ar-filters{grid-template-columns:repeat(3,1fr)}.ar-ledger-table{min-width:1120px}}
@media(max-width:720px){.ar-ledger-workspace{gap:12px}.ar-ledger-header{align-items:flex-start;flex-direction:column}.ar-header-actions{width:100%;flex-wrap:wrap}.ar-kpis{grid-template-columns:1fr}.ar-filters{grid-template-columns:1fr}.ar-table-footer{grid-template-columns:1fr;justify-items:center}.ar-table-footer label{justify-self:center}.ar-totals{justify-self:stretch;grid-template-columns:1fr;min-width:0}.ar-totals div,.ar-totals div:first-child{border-left:0;border-top:1px solid var(--ar-border);padding:10px 0}.ar-totals div:first-child{border-top:0}.ar-powered{justify-content:center}}
@page{size:landscape;margin:10mm}
@media print{body *{visibility:hidden!important}.ar-ledger-workspace,.ar-ledger-workspace *{visibility:visible!important}.ar-ledger-workspace{position:absolute;inset:0;display:block;width:100%;color:#000;font-size:10px}.ar-header-actions,.ar-filters,.ar-table-footer nav,.ar-table-footer label,.ar-row-menu,.ar-powered,.ar-ledger-table th:nth-child(10),.ar-ledger-table td:nth-child(10){display:none!important}.ar-ledger-header,.ar-kpis article,.ar-register-card,.ar-totals{box-shadow:none}.ar-ledger-header{min-height:0;padding:10px 12px}.ar-ledger-heading h1{font-size:20px}.ar-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:8px 0}.ar-kpis article{min-height:0;padding:8px 10px}.ar-kpi-icon{width:34px;height:34px}.ar-kpis strong{font-size:15px}.ar-table-wrap{overflow:visible!important}.ar-ledger-table{min-width:0!important;width:100%!important;table-layout:auto;font-size:8.5px}.ar-ledger-table th{font-size:8px}.ar-ledger-table th,.ar-ledger-table td{overflow:visible;text-overflow:clip}.ar-ledger-table td{height:auto;padding:4px 5px}.ar-ledger-table thead{display:table-header-group}.ar-table-footer{display:block;min-height:0;padding:7px 4px}.ar-totals{margin:8px 0 0 auto;padding:8px 10px;break-inside:avoid}.ar-totals strong{font-size:13px!important}}
