/* WOLVOX report add-on: all declarations scoped, existing screens unaffected. */
.wr-intro{background:linear-gradient(140deg,#f2faf4,#fff);border:1px solid #d7e9db;border-radius:19px;padding:17px;margin-bottom:16px}
.wr-intro h3{margin:0 0 6px;font-size:1.16rem}.wr-intro p{margin:0;color:#617269;line-height:1.5;font-size:.9rem}
.wr-dashboard{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #d9e7dc;border-radius:17px;background:#fff;padding:14px 16px;margin-top:15px}
.wr-dashboard b{display:block}.wr-dashboard small{display:block;margin-top:4px;color:#69766e;line-height:1.3}
.wr-dashboard button{flex-shrink:0}
.wr-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wr-form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:650;min-width:0;color:#485c4d}
.wr-form label select,.wr-form label input{width:100%;min-width:0}
.wr-full{grid-column:1/-1}
.wr-picked{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #d9ebdf;background:#f3faf5;border-radius:12px;padding:9px 12px;min-height:42px;font-size:.85rem}
.wr-picked button{border:0;background:transparent;color:#a43a36;font-weight:700;padding:4px 7px}
.wr-search-results{max-height:185px;overflow:auto;border:1px solid #e2ebe5;border-radius:12px;background:#fff;margin-top:3px}
.wr-search-results:empty{display:none}
.wr-search-results button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;border:0;border-bottom:1px solid #edf2ee;background:#fff;padding:10px 12px;text-align:left;color:#203528}
.wr-search-results button:last-child{border:0}.wr-search-results button:active{background:#eff9f1}
.wr-search-results small{color:#728078;font-size:.73rem}
.wr-run{width:100%;margin-top:15px;min-height:47px;border-radius:12px}
.wr-status{margin:12px 0;padding:12px 14px;border:1px solid #e4eee7;border-radius:13px;color:#425448;background:#f7fbf8;font-size:.86rem;line-height:1.5}
.wr-status.error{background:#fff5f3;color:#a43b35;border-color:#ffd7d2}.wr-status.success{background:#f0faf3;border-color:#ccebd5}
.wr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
.wr-metric{min-width:0;border:1px solid #e1ebe4;border-radius:13px;padding:12px;background:#fff}
.wr-metric small{display:block;font-size:.7rem;color:#607369;margin-bottom:5px}.wr-metric strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:.9rem}
.wr-row{border:1px solid #e1eae5;border-radius:14px;padding:12px 14px;margin-top:9px;background:#fff}
.wr-row-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.wr-row-top b{font-size:.91rem}.wr-row-top strong{color:#17643b;white-space:nowrap}
.wr-row-meta{font-size:.78rem;color:#66776d;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}
.wr-row-detail{font-size:.78rem;color:#3d5646;margin-top:7px;overflow-wrap:anywhere}
.wr-footnote{font-size:.75rem;line-height:1.55;color:#6a766f;margin-top:12px}
.customer-report-card{border:1px solid #e4eae5;border-radius:16px;background:#fff;overflow:hidden}
.customer-report-card .row{border:0;box-shadow:none;border-radius:0;margin:0}
.wr-customer-more{padding:0 13px 12px}
.wr-customer-more button{font-size:.78rem;padding:9px 11px;min-height:35px}
.wr-customer-panel{padding:11px 13px 13px;border-top:1px solid #e8eee9;background:#f9fcfa;font-size:.83rem;color:#546558}
.wr-customer-panel p{margin:0 0 10px;line-height:1.5}
.wr-customer-panel button{min-height:38px}
@media(max-width:760px){.wr-form{grid-template-columns:1fr 1fr;gap:9px}.wr-form label input,.wr-form label select{font-size:16px!important}.wr-dashboard{padding:12px;gap:9px}.wr-dashboard b{font-size:.89rem}.wr-dashboard small{font-size:.73rem}.wr-dashboard button{padding:9px 12px;font-size:.78rem}.wr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wr-row-top strong{font-size:.85rem}.wr-intro{padding:13px}}

/* V0.13.36: iPhone / Android report line wrapping. Scoped to WOLVOX cards only. */
@media (max-width:760px) {
  .wr-row {width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  .wr-row-top {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:7px;}
  .wr-row-top > div {min-width:0;max-width:100%;overflow-wrap:anywhere;}
  .wr-row-top > strong {display:block;justify-self:end;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:right;line-height:1.35;}
  .wr-row-meta,.wr-row-detail {max-width:100%;min-width:0;overflow-wrap:anywhere;}
}

/* V0.13.37 on-demand invoice drilldown and PDF actions; reports only. */
.wr-export-bar{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:11px 0 3px}
.wr-export-bar .primary{min-height:46px;border-radius:12px;width:100%;font-weight:750}
.wr-export-bar small,.wr-pdf-note{color:#607369;font-size:.72rem;line-height:1.5}
.wr-invoice-row{cursor:pointer}
.wr-invoice-row:focus-visible{outline:3px solid #69ab7d;outline-offset:2px}
.wr-invoice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.wr-invoice-actions button{padding:8px 12px;min-height:36px;border:1px solid #cde0d4;background:#ecf7ef;color:#17643b;border-radius:10px;font-size:.78rem;font-weight:750;cursor:pointer}
.wr-invoice-actions .wr-card-pdf{background:#17643b;color:#fff;border-color:#17643b}
.wr-invoice-detail{border-top:1px solid #e1ece5;margin-top:12px;padding-top:13px;cursor:default}
.wr-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:10px}
.wr-detail-heading b{color:#143c2a}.wr-detail-heading small{color:#687a70;font-size:.76rem}
.wr-detail-loading{color:#5c6d61;font-size:.85rem}
.wr-line{background:#f6faf7;border:1px solid #e3eee7;border-radius:11px;padding:11px;margin-bottom:8px;min-width:0}
.wr-line>b{display:block;font-size:.88rem;overflow-wrap:anywhere}
.wr-line>small{display:block;font-size:.76rem;color:#617468;margin-top:4px;overflow-wrap:anywhere}
.wr-line-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.wr-line-fields span{font-size:.73rem;color:#647369;overflow-wrap:anywhere;min-width:0}
.wr-line-fields b{display:block;margin-top:3px;color:#173c2b;font-size:.83rem}
.wr-invoice-total{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:13px 0;font-size:.83rem;font-weight:700;overflow-wrap:anywhere}
.wr-invoice-total strong{color:#17643b;font-size:1.06rem;white-space:normal;text-align:right}
.wr-share-invoice{display:block;width:100%;min-height:43px;border-radius:11px;margin:10px 0}
.wr-pdf-note{display:block;margin-top:6px}
@media(max-width:390px){.wr-line-fields{grid-template-columns:1fr 1fr}.wr-invoice-total{flex-wrap:wrap}.wr-export-bar .primary{font-size:.83rem}}

/* Cari list only: signed balance direction, no changes to API/ERP values. */
.customer-report-card .customer-balance {display:flex;flex-direction:column;align-items:flex-end;gap:3px;max-width:100%;line-height:1.25;text-align:right}
.customer-report-card .customer-balance-amount {font-size:1rem;font-weight:850;overflow-wrap:anywhere;max-width:100%}
.customer-report-card .customer-balance-label {font-size:.76rem;font-weight:800;letter-spacing:.005em}
.customer-report-card .customer-balance-debit {color:#b42318}
.customer-report-card .customer-balance-credit {color:#167449}
.customer-report-card .customer-balance-zero {color:#52665e}
.customer-report-card .customer-balance-hidden {color:#69766e;font-size:.82rem}
@media(max-width:760px){.customer-report-card .row>div:first-child{min-width:0;overflow-wrap:anywhere}.customer-report-card .row .right{min-width:0;flex:0 1 42%}.customer-report-card .customer-balance-amount{font-size:.96rem}.customer-report-card .customer-balance-label{font-size:.72rem}}
