/* CAPITAL GRID MAIN ERP V39.2.7 — Compact Reporting */
.cg-rpt-page-head{margin-bottom:6px}.cg-rpt-page-head h1{margin:0 0 1px!important;font-size:32px!important;line-height:1.05}.cg-rpt-page-head .sub{font-size:13px;line-height:1.2}.cg-rpt-control-card{padding:10px 14px!important}
.cg-rpt-toolbar{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px;align-items:end}.cg-rpt-toolbar .field{min-width:0;margin:0!important}.cg-rpt-toolbar label{display:block;margin:0 0 4px!important;font-weight:800;color:#536b80;font-size:11px;line-height:1.1}.cg-rpt-toolbar input,.cg-rpt-toolbar select{background:#fff!important;min-height:40px!important;height:40px!important;padding:7px 10px!important;font-size:14px!important;border-radius:9px!important}
.cg-rpt-export-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}.cg-rpt-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cg-rpt-actions button{min-height:38px!important;padding:8px 13px!important}.cg-rpt-export-btn{min-width:128px}.cg-rpt-audit-options{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px 6px;border:1px solid #d4dfe7;border-radius:9px;background:#f8fafc;color:#536b80;font-size:11px}.cg-rpt-audit-options>b{color:#263f56;margin-right:1px}.cg-rpt-check{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #cbd8e3;border-radius:7px;background:#fff;font-weight:700;color:#304b64}.cg-rpt-check input{width:15px;height:15px}.cg-rpt-check span{font-weight:600;color:#8a6b22}.cg-rpt-attach{border-color:#ead59f;background:#fffaf0}
.cg-rpt-note{margin-top:7px;padding:6px 9px;border-left:3px solid #153b5b;border-radius:6px;background:#f4f7fa;color:#526a7d;font-size:11px;line-height:1.25}.cg-rpt-progress{display:none;gap:8px;align-items:center;padding:7px 9px;margin-top:7px;border:1px solid #bed2df;border-radius:8px;background:#f3f8fb;color:#274861;font-size:11px;font-weight:700}.cg-rpt-progress.show{display:flex}.cg-rpt-progress progress{flex:1;min-width:150px}
.cg-rpt-preview-card{margin-top:9px;padding:14px 16px;overflow:hidden}.cg-rpt-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:8px;border-bottom:3px solid #153b5b}.cg-rpt-kicker{font-size:10px;font-weight:900;letter-spacing:.8px;color:#718596}.cg-rpt-preview-head h2{margin:4px 0 2px;font-size:25px;color:#173a58}.cg-rpt-period{color:#5b7184;font-weight:700}.cg-rpt-preview-meta{text-align:right;display:flex;flex-direction:column;gap:2px;color:#607589;font-size:11px}.cg-rpt-preview-meta b{font-size:13px;color:#173a58}
.cg-rpt-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:9px 0}.cg-rpt-summary .stat{border:1px solid #cbd9e4;border-radius:11px;background:#f9fbfc;padding:8px 10px}.cg-rpt-summary .stat small{display:block;color:#647b8f;font-weight:900;letter-spacing:.3px}.cg-rpt-summary .stat b{display:block;margin-top:3px;font-size:17px;color:#1f405d}.cg-rpt-summary .total-stat{background:#eef5fa;border-color:#b8ccdc}.cg-rpt-summary .total-stat b{color:#0d3556}.cg-rpt-meta{display:flex;gap:15px;flex-wrap:wrap;color:#5a7084;font-size:11px;margin:7px 0 11px}.cg-rpt-meta b{color:#253f58}
.cg-rpt-preview-wrap{width:100%;max-width:100%;min-width:0;overflow-x:hidden;border:1px solid #cbd8e3;border-radius:10px;background:#fff;container-type:inline-size}.cg-rpt-table{width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse;table-layout:fixed!important}.cg-rpt-table th{background:#153b5b;color:#fff;border:1px solid #8fa7b9;padding:7px 4px;font-size:9.5px;line-height:1.08;text-align:center;white-space:normal;overflow-wrap:anywhere}.cg-rpt-table td{border:1px solid #c7d2db;padding:6px 4px;font-size:9.5px;line-height:1.16;text-align:center;vertical-align:middle;overflow:hidden;overflow-wrap:anywhere}.cg-rpt-table tbody tr:nth-child(even){background:#f8fafb}.cg-rpt-table td.supplier,.cg-rpt-table td.desc{text-align:left}.cg-rpt-table td.num{text-align:right;font-variant-numeric:tabular-nums}.cg-rpt-table td.total{font-weight:800}.cg-rpt-table .receipt-ok{font-weight:800;color:#087c65}.cg-rpt-table .receipt-missing{font-weight:700;color:#8a5f0a}.cg-rpt-table .generic-invoice{color:#8a5f0a;font-style:italic}.cg-rpt-table td.vatno,.cg-rpt-table td.date,.cg-rpt-table td.num{white-space:nowrap}.cg-rpt-table td.invoice-no{white-space:normal;overflow-wrap:anywhere}
#reportPreview{width:100%;max-width:100%;min-width:0}#reportPreview>.card{width:100%;max-width:100%;min-width:0}.cg-rpt-table th,.cg-rpt-table td{min-width:0;text-overflow:clip}
@container (max-width:1100px){.cg-rpt-table th{font-size:8.7px;padding:6px 2px}.cg-rpt-table td{font-size:8.7px;padding:5px 2px}}@container (max-width:980px){.cg-rpt-table th{font-size:8.1px;padding:5px 1.5px}.cg-rpt-table td{font-size:8.1px;padding:4px 1.5px}.cg-rpt-table td.vatno,.cg-rpt-table td.invoice-no{font-size:7.8px}}
@media(max-width:1350px){.cg-rpt-toolbar{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media(max-width:900px){.cg-rpt-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:750px){.cg-rpt-toolbar{grid-template-columns:1fr}.cg-rpt-summary{grid-template-columns:1fr}.cg-rpt-export-row,.cg-rpt-actions,.cg-rpt-audit-options{align-items:stretch}.cg-rpt-actions button,.cg-rpt-check{width:100%;justify-content:center}.cg-rpt-preview-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.cg-rpt-table.without-receipt{min-width:900px!important}.cg-rpt-table.with-receipt{min-width:980px!important}.cg-rpt-preview-head{flex-direction:column}.cg-rpt-preview-meta{text-align:left}}
