/* Shared customer documents: screen and exported print preview. */
.modal.customer-credit-modal{width:min(1240px,96vw)!important}
.credit-document{--credit-accent:#087f63;color:#243a32;font-family:'Outfit Variable',Arial,sans-serif;min-width:0;max-width:100%}
.credit-doc-brand{background:#fff;border:1px solid #e2e9e4;border-left:4px solid var(--credit-accent);border-radius:10px;padding:22px;margin-bottom:20px;break-inside:avoid}
.credit-doc-business{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.credit-doc-logo{flex:0 0 46px;width:46px;height:46px;border-radius:10px;display:grid;place-items:center;background:#eff7f3;color:var(--credit-accent);font-size:20px;overflow:hidden}
.credit-doc-logo svg{width:24px;height:24px}
.credit-doc-logo img{width:40px;height:40px;object-fit:contain}
.credit-doc-brand h3{font-size:16px;font-weight:600;margin:0 0 5px;color:#385948}
.credit-doc-brand h2{font-size:27px;font-weight:600;letter-spacing:-.025em;margin:0 0 7px;color:#243a32}
.credit-doc-brand p{margin:0;color:#55705f;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.credit-doc-customer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:24px;border-bottom:1px solid #e2e9e4;padding:0 2px 20px;margin-bottom:20px;break-inside:avoid}
.credit-doc-customer span,.credit-doc-customer dt{font-size:11px;color:#55705f;display:block}
.credit-doc-customer h3{font-size:20px;font-weight:600;margin:5px 0;overflow-wrap:anywhere}
.credit-doc-customer p{font-size:12px;color:#55705f;margin:0;overflow-wrap:anywhere}
.credit-doc-customer dl{display:grid;gap:8px;margin:0}
.credit-doc-customer dl div{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px}
.credit-doc-customer dd{font-size:12px;margin:0;overflow-wrap:anywhere}
.credit-doc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 26px;break-inside:avoid}
.credit-doc-metric{border:1px solid #dce6df;border-radius:9px;background:#fff;padding:14px;min-width:0}
.credit-doc-metric span{display:block;font-size:11px;color:#55705f;margin-bottom:7px}
.credit-doc-metric b{font-size:17px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.credit-doc-metric.primary{background:#eff7f3;border-color:#cde3d5;color:var(--credit-accent)}
.credit-doc-metric.urgent b{color:#9c5c14}
.credit-doc-section{margin:0 0 24px;min-width:0}
.credit-doc-section>h3{font-size:15px;font-weight:600;margin:0 0 12px;color:#385948}
.credit-doc-section>h3 span{font-size:11px;font-weight:400;color:#55705f;margin-left:8px}
.credit-doc-section .table-wrap{max-width:100%;overflow:auto;border:1px solid #e1e9e3;border-radius:9px}
.credit-document .table{width:100%;border-collapse:collapse;background:#fff}
.credit-document .table th{background:#eff7f3!important;color:#385948!important;font-size:11px;font-weight:600;padding:11px 10px;text-align:left;line-height:1.45}
.credit-document .table td{font-size:12px;padding:11px 10px;line-height:1.5;border-bottom:1px solid #e1e9e3;color:#243a32;background:#fff}
.credit-document .table tr:nth-child(even) td{background:#f7faf8}
.credit-document .table .credit-doc-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.credit-doc-note{font-size:11px;color:#55705f;line-height:1.6;margin:18px 0 0;padding-top:14px;border-top:1px solid #e1e9e3}
@media(max-width:600px){.credit-doc-brand{padding:16px}.credit-doc-brand h2{font-size:23px}.credit-doc-customer{grid-template-columns:1fr;gap:15px}.credit-doc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-doc-metric{padding:12px}.credit-doc-metric b{font-size:15px}}
@media print{
 @page{size:A4 landscape;margin:10mm;@bottom-right{content:'Page ' counter(page) ' of ' counter(pages);font:8pt Arial;color:#55705f}}
 .credit-document{font-family:Arial,sans-serif;font-size:9px;padding:0!important;border:0!important;box-shadow:none!important;max-width:none}
 .credit-doc-brand{padding:14px 16px;border-radius:7px;margin-bottom:14px}
 .credit-doc-business{gap:10px;margin-bottom:12px}.credit-doc-logo{width:36px;height:36px;flex-basis:36px}.credit-doc-logo svg{width:24px;height:24px}
.credit-doc-logo img{width:30px;height:30px}
 .credit-doc-brand h3{font-size:12px}.credit-doc-brand h2{font-size:17px}.credit-doc-brand p{font-size:8px}
 .credit-doc-customer{grid-template-columns:1fr 1.3fr;gap:20px;padding-bottom:12px;margin-bottom:14px}.credit-doc-customer h3{font-size:13px}.credit-doc-customer span,.credit-doc-customer p,.credit-doc-customer dt,.credit-doc-customer dd{font-size:9px}
 .credit-doc-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:16px}.credit-doc-metric{padding:9px;border-radius:5px}.credit-doc-metric span{font-size:8px;margin-bottom:5px}.credit-doc-metric b{font-size:11px}
 .credit-doc-section{margin-bottom:16px}.credit-doc-section>h3{font-size:11px;break-after:avoid}.credit-doc-section>h3 span{font-size:8px}
 .credit-document .table-wrap{overflow:visible!important;max-height:none!important;border:0;border-radius:0}
 .credit-document .table{table-layout:fixed}.credit-document .table thead{display:table-header-group}.credit-document .table tr{break-inside:avoid}
 .credit-document .table th,.credit-document .table td{font-size:7.5px!important;padding:5px 4px!important;line-height:1.45;white-space:normal!important;overflow-wrap:anywhere;border:1px solid #e1e9e3}
 .credit-doc-note{font-size:8px;margin-top:12px}.credit-document .no-print{display:none!important}
}
