/* Albaraka Statement Pro — v0.14.25-server-alpha26 */
#statementsPage{--st-navy:#0b2f63;--st-blue:#1768e8;--st-gold:#d9aa48;--st-ink:#0f2341;--st-muted:#71829a;--st-line:#dbe6f3;--st-soft:#f5f9ff;--st-green:#0a9b6c;--st-red:#c63f50;padding-bottom:24px}
#statementsPage .statement-pro-head{position:relative;overflow:hidden;border-radius:28px;padding:24px 26px;margin-bottom:16px;background:linear-gradient(135deg,#0a2a58 0%,#103d7d 58%,#1768e8 135%);color:#fff;box-shadow:0 22px 55px rgba(10,48,101,.18);border:1px solid rgba(255,255,255,.12)}
#statementsPage .statement-pro-head:before{content:"";position:absolute;width:380px;height:380px;border-radius:50%;left:-110px;top:-240px;border:1px solid rgba(255,255,255,.11);box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 95px rgba(255,255,255,.018)}
#statementsPage .statement-pro-head:after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,var(--st-gold),#f2d486 38%,#4d95ff 80%)}
#statementsPage .statement-pro-head .eyebrow{color:#bcd4f4!important;margin:0 0 4px}.statement-pro-title{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px}.statement-pro-title h2{color:#fff!important;font-size:30px!important;margin:0}.statement-pro-title p{color:#d7e6f8;margin:6px 0 0;font-size:12px}.statement-ledger-badge{position:relative;z-index:1;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);font-size:11px;font-weight:800;white-space:nowrap}
.statement-pro-toolbar{position:relative;z-index:2;margin-top:20px;display:grid;grid-template-columns:160px minmax(190px,1fr) 145px 145px 160px minmax(180px,1fr);gap:9px;align-items:end}.st-field{display:grid;gap:5px;min-width:0}.st-field>span{font-size:9px;font-weight:800;color:#c4d9f3}.st-field input,.st-field select{width:100%;min-height:45px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.10)!important;color:#fff!important;padding:0 12px!important;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.st-field select option{color:#172033;background:#fff}.st-field input::placeholder{color:#bfd2e9}.st-field input:focus,.st-field select:focus{border-color:rgba(242,207,128,.72)!important;box-shadow:0 0 0 3px rgba(217,170,72,.12)}
.statement-quickbar{position:relative;z-index:2;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.statement-quick-ranges,.statement-export-actions{display:flex;gap:7px;flex-wrap:wrap}.statement-quickbar button{min-height:38px;border-radius:11px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#fff;padding:0 12px;font-weight:800;cursor:pointer}.statement-quickbar button:hover{background:rgba(255,255,255,.14)}.statement-quickbar .st-action-gold{background:linear-gradient(135deg,#d5a648,#f0cf7b);color:#1e2a3a;border-color:#e6c36d;box-shadow:0 8px 18px rgba(217,170,72,.18)}
.statement-account-strip{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(145px,1fr));gap:10px;margin:0 0 12px}.statement-account-card{background:rgba(255,255,255,.96);border:1px solid var(--st-line);border-radius:19px;padding:14px 16px;box-shadow:0 10px 25px rgba(15,55,103,.055);min-width:0}.statement-account-card small{display:block;color:var(--st-muted);font-size:10px}.statement-account-card strong{display:block;color:var(--st-ink);font-size:18px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.statement-account-card.account-main{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#fff,#f2f7ff)}.statement-account-avatar{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#0b3b7c,#1768e8);color:#fff;font-size:18px;font-weight:900;box-shadow:0 9px 20px rgba(23,104,232,.18)}.statement-account-card .account-state{display:inline-flex!important;width:max-content;margin-top:5px;padding:4px 8px;border-radius:999px;background:#eaf9f3;color:#0a885f;font-size:9px!important;font-weight:900}.statement-account-card .account-state.debt{background:#fff2e2;color:#976200}
.statement-pro-kpis{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:10px;margin-bottom:12px}.st-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--st-line);border-radius:18px;padding:14px 15px;min-height:90px;box-shadow:0 9px 22px rgba(15,55,103,.05)}.st-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#b8c8dc}.st-kpi.debit:before{background:#d49b2f}.st-kpi.credit:before{background:#21a77a}.st-kpi.balance:before{background:#1768e8}.st-kpi small{color:var(--st-muted);font-size:10px}.st-kpi strong{display:block;margin-top:7px;color:var(--st-ink);font-size:19px}.st-kpi em{display:block;font-style:normal;color:#8b9ab0;font-size:9px;margin-top:4px}
.statement-pro-panel{background:rgba(255,255,255,.96)!important;border:1px solid #dbe6f2!important;border-radius:24px!important;padding:0!important;overflow:hidden;box-shadow:0 18px 45px rgba(15,55,103,.09)!important}.statement-table-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #e4ecf5;background:linear-gradient(180deg,#fff,#f8fbff)}.statement-table-meta>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.statement-table-meta strong{color:var(--st-ink)}.statement-table-meta span{font-size:10px;color:var(--st-muted);background:#eef4fb;border-radius:999px;padding:6px 9px}.statement-table-meta .st-filter-note{background:#fff8e7;color:#876119;border:1px solid #f3e2b7}
.statement-pro-table-wrap{overflow:auto;max-height:calc(100vh - 445px);min-height:270px}.statement-pro-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1160px}.statement-pro-table thead th{position:sticky;top:0;z-index:3;background:#f1f6fc;color:#5d708b;font-size:10px;padding:12px 11px;border-bottom:1px solid #dce6f2;white-space:nowrap;text-align:right}.statement-pro-table tbody td{padding:12px 11px;border-bottom:1px solid #edf2f7;color:#1b2e49;font-size:12px;vertical-align:middle}.statement-pro-table tbody tr{transition:.15s}.statement-pro-table tbody tr:hover{background:#f8fbff}.statement-pro-table .st-row-no{color:#9aa8ba;font-size:10px}.statement-pro-table .st-desc b{display:block;font-size:12px}.statement-pro-table .st-desc small{display:block;margin-top:3px;color:#8b9aae;font-size:9px}.statement-pro-table .st-money{font-weight:800;direction:ltr;text-align:right;white-space:nowrap}.statement-pro-table .st-debit{color:#9a6810}.statement-pro-table .st-credit{color:#07825a}.statement-pro-table .st-balance{font-weight:900;color:#0b4eaa}.statement-pro-table .st-balance.zero{color:#75859b}.statement-pro-table .st-payment{font-size:9px;font-weight:800;padding:5px 7px;border-radius:999px;background:#eef4fb;color:#526984;white-space:nowrap}.statement-pro-table .st-type{font-size:9px;font-weight:900;padding:5px 8px;border-radius:999px;white-space:nowrap;display:inline-block}.statement-pro-table .type-invoice{background:#eaf2ff;color:#1459b4}.statement-pro-table .type-payment{background:#e9f9f2;color:#087b59}.statement-pro-table .type-return{background:#fff2ea;color:#a35220}.statement-pro-table .type-opening{background:#f1f0fb;color:#66569a}.statement-ref-link{border:0!important;background:#eef5ff!important;color:#145dbf!important;padding:7px 9px!important;border-radius:9px!important;font-weight:900!important;cursor:pointer!important;border:1px solid #d8e7fb!important}.statement-ref-link:hover{background:#1768e8!important;color:#fff!important}.statement-empty{padding:55px 20px!important;text-align:center!important;color:#7f8fa6!important}.statement-empty strong{display:block;color:#3e536f;font-size:16px;margin-bottom:4px}
.statement-footnote{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:11px 17px;background:#f8fbff;border-top:1px solid #e4ecf5;color:#798aa2;font-size:9px}.statement-footnote b{color:#415b7c}
/* Invoice detail opened from statement */
.modal-card:has(.invoice-detail-shell){width:min(980px,96vw)!important;max-height:92vh!important;border-radius:26px!important}.modal-card:has(.invoice-detail-shell) #modalTitle{font-size:22px!important;color:#0d2d59!important}.invoice-detail-shell{display:grid;gap:13px}.invoice-detail-head{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:9px!important}.invoice-detail-head>div{padding:13px!important;border-radius:14px!important;background:linear-gradient(145deg,#f5f9ff,#fff)!important;border:1px solid #dce7f3!important}.invoice-detail-head small,.invoice-totals small{display:block;color:#71849d;font-size:9px}.invoice-detail-head strong,.invoice-totals strong{display:block;color:#112c50;font-size:15px;margin-top:5px}.invoice-items-table{border:1px solid #dce7f3;border-radius:15px;overflow:auto}.invoice-items-table table{width:100%;border-collapse:collapse}.invoice-items-table th{background:#eef4fb;color:#657995;font-size:10px;padding:10px}.invoice-items-table td{padding:11px;border-top:1px solid #edf2f7;font-size:12px}.invoice-totals{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:9px!important}.invoice-totals>div{padding:12px!important;border:1px solid #dfe8f3!important;border-radius:14px!important;background:#fff!important}.invoice-totals .grand{background:linear-gradient(135deg,#0b3a78,#1768e8)!important;border-color:#1768e8!important}.invoice-totals .grand small,.invoice-totals .grand strong{color:#fff!important}.invoice-detail-actions{display:flex;justify-content:flex-start}.invoice-detail-actions button{border-radius:12px!important}
@media(max-width:1350px){.statement-pro-toolbar{grid-template-columns:140px minmax(180px,1fr) 135px 135px 145px minmax(160px,1fr)}.statement-pro-kpis{grid-template-columns:repeat(3,1fr)}.statement-account-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:950px){.statement-pro-head{padding:18px!important}.statement-pro-title{align-items:flex-start;flex-direction:column}.statement-pro-toolbar{grid-template-columns:1fr 1fr}.statement-account-strip,.statement-pro-kpis{grid-template-columns:1fr 1fr}.statement-pro-table-wrap{max-height:none}.statement-ledger-badge{display:none}}
@media(max-width:560px){.statement-pro-toolbar,.statement-account-strip,.statement-pro-kpis{grid-template-columns:1fr}.statement-export-actions,.statement-quick-ranges{width:100%}.statement-quickbar button{flex:1}.invoice-detail-head,.invoice-totals{grid-template-columns:1fr 1fr!important}}
