/* Reports shell and the executive report follow the blue finance theme. */
#reportsView { --re-ink:#12184f; --re-muted:#7889b1; --re-blue:#0758ff; font-family:'IBM Plex Sans Arabic',sans-serif; }
#reportsView:has(:is(#repExecPositionView,#repEscalationsView,#repInvoicesView).active) { background:linear-gradient(135deg,#f4faff,#edf5ff) !important; padding:0 4px 8px; }
#reportsView .re-symbols { position:absolute; width:0; height:0; overflow:hidden; }
#reportsView .re-icon { width:21px; height:21px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#reportsView .re-header { margin-bottom:12px; text-align:right; }
#reportsView .re-header h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:1.3rem; line-height:1.4; font-weight:700; color:var(--re-ink); }
#reportsView .re-header h2 .re-icon { background:#1738a3; color:#fff; border-radius:5px; padding:3px; width:25px; height:25px; }
#reportsView .re-header p { margin:4px 0 0; color:var(--re-muted); font-size:.6rem; }
#reportsView>.nav-tabs { display:flex; justify-content:flex-start; width:fit-content; max-width:100%; margin:0 0 13px; padding:0; border:1px solid #d4e4ff; border-radius:8px; overflow:hidden; background:#eaf3ff; }
#reportsView>.nav-tabs .tab-item { display:flex; align-items:center; justify-content:center; gap:12px; min-width:190px; padding:10px 16px; border:0; border-inline-end:1px solid #d4e4ff; border-bottom:2px solid transparent; background:transparent; color:#293e8a; font:600 .76rem 'IBM Plex Sans Arabic',sans-serif; cursor:pointer; }
#reportsView>.nav-tabs .tab-item.active { background:#fff; color:#1648e9; border-bottom-color:#0758ff; }
#reportsView>.nav-tabs .tab-item .re-icon { width:18px; height:18px; }
#reportsView>.nav-tabs .tab-item:focus-visible { outline:3px solid #83b1ff; outline-offset:-4px; }
#repExecPositionView { color:var(--re-ink); }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi { --re-tone:#6750ff; --re-tint:#ebe7ff; position:relative; isolation:isolate; overflow:hidden; display:grid; align-content:center; gap:3px; min-height:97px; padding:12px 16px 12px 76px; border:1px solid #e3edff; border-radius:10px; background:#ffffffef; box-shadow:0 3px 9px #325fbd0d; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-blue { --re-tone:#2e87ff; --re-tint:#dfedff; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-green { --re-tone:#0bc38b; --re-tint:#daf9ec; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-orange { --re-tone:#ff7f32; --re-tint:#ffebdc; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-purple { --re-tone:#ba30b2; --re-tint:#fbe1f6; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi::before { content:''; position:absolute; z-index:-1; bottom:0; left:25px; width:145px; height:50px; background:linear-gradient(0deg,transparent,var(--re-tint)); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 50'%3E%3Cpath fill='black' d='M0 50C22 50 31 31 44 19S65 3 79 14 96 43 150 50Z'/%3E%3C/svg%3E"); mask-size:100% 100%; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { position:absolute; left:18px; top:16px; display:grid; place-items:center; width:52px; height:52px; border:1px solid var(--re-tint); border-radius:13px; background:#fff; box-shadow:0 2px 10px var(--re-tint); color:var(--re-tone); }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon .re-icon { width:30px; height:30px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi>span:not(.re-kpi-icon) { color:var(--re-tone); font-size:.79rem; font-weight:600; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi strong { color:var(--re-ink); font-size:1.42rem; line-height:1.35; font-weight:700; direction:ltr; text-align:right; font-variant-numeric:tabular-nums; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi small { color:var(--re-muted); font-size:.65rem; line-height:1.4; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-report-card { padding:11px 12px 8px; border:1px solid #e6efff; border-radius:11px; background:#ffffffec; box-shadow:0 4px 16px #4c83d008; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-toolbar-card { margin:0 0 7px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-toolbar-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-filters-group { flex:0 1 280px; min-width:0; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-group { min-width:0; margin:0; width:100%; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-group>label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-input-wrap { width:100%; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-input { width:100%; min-height:34px; height:34px; border:1px solid #dce7f8; border-radius:6px; background:#fff; font-size:.78rem; color:var(--re-ink); padding-block:5px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-input::placeholder { color:#8b9abb; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-icon { color:#8d9fc2; width:16px; height:16px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-inline-start:auto; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .btn { display:flex; align-items:center; justify-content:center; flex-direction:row; gap:7px; min-height:34px; padding:6px 16px; font-size:.74rem; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .btn-primary { background:#12359f !important; box-shadow:0 2px 8px #12359f1a !important; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .btn-secondary { color:#334a83; background:#fff !important; border:1px solid #dce6f7 !important; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .re-icon { width:17px; height:17px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-table-container { margin:0; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .data-table-wrapper { width:100%; margin:0 !important; max-height:none !important; overflow:auto !important; border:1px solid #e0ebfd; border-radius:5px; box-shadow:none !important; }
#repExecPositionView #tblRepExec { width:100%; min-width:1150px; table-layout:fixed; border-collapse:collapse; margin:0; }


#repExecPositionView #tblRepExec th { position:sticky; top:0; z-index:2; height:42px; padding:5px 4px !important; background:linear-gradient(110deg,#eaf4ff,#e5f1ff) !important; border:1px solid #dce9fa !important; color:var(--re-ink) !important; font-size:.61rem !important; font-weight:600 !important; line-height:1.4; white-space:normal; text-align:center; }
#repExecPositionView #tblRepExec th small { display:block; color:var(--re-muted); font-size:.52rem; line-height:1.3; }
#repExecPositionView #tblRepExec td { height:28px; padding:5px 5px !important; border:1px solid #e7eefb !important; font-size:.65rem !important; color:#566b97; text-align:center; font-variant-numeric:tabular-nums; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
#repExecPositionView #tblRepExec td strong { font-weight:500; }
#repExecPositionView #tblRepExec th:nth-child(1), #repExecPositionView #tblRepExec td:nth-child(1) { width:12% !important; min-width:0 !important; max-width:none !important; }
#repExecPositionView #tblRepExec th:nth-child(2) { width:8%; }
#repExecPositionView #tblRepExec th:nth-child(3) { width:20%; }
#repExecPositionView #tblRepExec th:nth-child(n+4) { width:6%; }
#repExecPositionView #tblRepExec tbody tr:nth-child(even) td { background:#f6faff; }
#repExecPositionView #tblRepExec tbody tr:hover td { background:#edf5ff !important; }
#repExecPositionView #tblRepExec tbody td:nth-child(17), #repExecPositionView #tblRepExec tbody td:nth-child(20) { color:var(--re-blue); font-weight:700; }
#repExecPositionView #tblRepExec tfoot td { padding:8px 5px !important; background:#e6f2ff !important; color:#151c82; font-size:.78rem !important; font-weight:700; }
#repExecPositionView #tblRepExec tfoot td:nth-child(-n+3) { border-inline:0 !important; }
#repExecPositionView #tblRepExec tfoot td:first-child { width:12% !important; }
#repExecPositionView #pagination-tblRepExec { margin:10px 0 0; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .pagination-bar { padding:0; margin:0; background:transparent; border:0; font-size:.72rem; color:var(--re-muted); }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .pagination-btn { border-radius:5px; }
@media (max-width:1100px) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { gap:8px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi { padding:10px 10px 10px 55px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { left:10px; width:40px; height:44px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon .re-icon { width:24px; height:24px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi>span:not(.re-kpi-icon) { font-size:.7rem; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi strong { font-size:1.2rem; } }
@media (max-width:800px) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } #reportsView>.nav-tabs { width:100%; } #reportsView>.nav-tabs .tab-item { flex:1 1 0; min-width:0; padding:9px 7px; font-size:.67rem; gap:6px; } }
@media (max-width:520px) { #reportsView .re-header { margin-bottom:10px; } #reportsView>.nav-tabs .tab-item { flex-direction:column; gap:4px; font-size:.6rem; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi { min-height:99px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-filters-group { flex-basis:100%; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group { width:100%; margin:0; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .btn { flex:1 1 auto; padding-inline:10px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-report-card { padding:10px 6px; } }
@media print { #reportsView .re-header, #reportsView>.nav-tabs, :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-toolbar-card, #repExecPositionView #pagination-tblRepExec { display:none !important; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { break-inside:avoid; } #repExecPositionView #tblRepExec { min-width:0 !important; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-report-card { border:0; padding:0; box-shadow:none; } }:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-toolbar-card { margin:0 0 7px !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; }
#reportsView .re-header { margin-bottom:8px; }
#reportsView>.nav-tabs { margin-bottom:9px; }
#repExecPositionView #tblRepExec th:nth-child(2) { width:7%; }
#repExecPositionView #tblRepExec th:nth-child(3) { width:18%; }
#repExecPositionView #tblRepExec th:nth-child(16) { width:7%; }
#repExecPositionView #tblRepExec th:nth-child(17) { width:8%; }
#repExecPositionView #tblRepExec tbody td:nth-child(-n+3) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Readable finance reports: all columns remain available in the scrollable table. */
#reportsView { font-size:15px; }
#reportsView .re-header h2 { font-size:24px; }
#reportsView .re-header p { font-size:12px; line-height:1.6; }
#reportsView>.nav-tabs .tab-item { font-size:14px; padding:12px 18px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi { min-height:112px; padding:15px 16px 15px 82px; border-radius:13px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi>span:not(.re-kpi-icon) { font-size:14px; line-height:1.6; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi strong { font-size:26px; line-height:1.4; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi small { font-size:12px; line-height:1.5; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { width:58px; height:58px; top:19px; left:14px; background:var(--re-tint); border:0; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-search-input { height:42px; min-height:42px; font-size:14px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .reports-actions-group .btn { min-height:42px; font-size:14px; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .pagination-bar { font-size:13px; }
#repExecPositionView #tblRepExec { min-width:3100px; table-layout:fixed; }
#repExecPositionView #tblRepExec th:nth-child(n), #repExecPositionView #tblRepExec td:first-child { width:140px !important; min-width:140px !important; max-width:none !important; }
#repExecPositionView #tblRepExec th:nth-child(1) { width:210px !important; }
#repExecPositionView #tblRepExec th:nth-child(2) { width:200px !important; }
#repExecPositionView #tblRepExec th:nth-child(3) { width:320px !important; }
#repExecPositionView #tblRepExec th { font-size:13px !important; height:62px; padding:10px 9px !important; line-height:1.6; }
#repExecPositionView #tblRepExec th small { font-size:11px; }
#repExecPositionView #tblRepExec td { font-size:14px !important; height:44px; padding:10px 9px !important; line-height:1.7; color:#344a75; }
#repExecPositionView #tblRepExec tfoot td { font-size:15px !important; padding:13px 9px !important; }
#repEscalationsView .reports-toolbar-inner { align-items:flex-end; }
#repEscalationsView .reports-filters-group { flex:1 1 auto; gap:10px; align-items:flex-end; }
#repEscalationsView .reports-search-group { flex:1 1 240px; min-width:200px !important; }
#repEscalationsView .reports-filters-group>.filter-group:not(.reports-search-group), #repEscalationsView .reports-filters-group>.form-group { min-width:165px !important; flex:0 1 185px; }
#repEscalationsView .reports-filters-group label { font-size:12px !important; line-height:1.5; color:var(--re-muted); }
#repEscalationsView .reports-filters-group select, #repEscalationsView .mf-trigger { min-height:42px; border:1px solid #dae6fb; border-radius:7px; background:#fff; color:#4a5e8c; font-size:14px; }
#repEscalationsView .reports-actions-group { margin-inline-start:auto; }
#repEscalationsView #tblRepEsc { width:100%; min-width:2450px; table-layout:fixed; border-collapse:collapse; margin:0; }
#repEscalationsView #tblRepEsc th { position:sticky; top:0; z-index:2; background:linear-gradient(110deg,#eaf4ff,#e5f1ff) !important; border:1px solid #dce9fa !important; padding:10px 9px !important; height:62px; font-size:13px !important; line-height:1.6; font-weight:600; color:var(--re-ink) !important; text-align:center; white-space:normal; }
#repEscalationsView #tblRepEsc th small { display:block; font-size:11px; color:var(--re-muted); }
#repEscalationsView #tblRepEsc td { padding:11px 9px !important; border:1px solid #e3edfc !important; font-size:14px !important; line-height:1.7; color:#40577f; text-align:center; vertical-align:middle; overflow-wrap:anywhere; }
#repEscalationsView #tblRepEsc .col-row-number { width:50px !important; min-width:50px !important; max-width:50px !important; font-weight:700; }
#repEscalationsView #tblRepEsc th.col-inv-no { width:125px; }
#repEscalationsView #tblRepEsc th.col-inv-date { width:130px; }
#repEscalationsView #tblRepEsc th.col-owner, #repEscalationsView #tblRepEsc th.col-project { width:185px; }
#repEscalationsView #tblRepEsc th.col-contract { width:280px; }
#repEscalationsView #tblRepEsc th.col-desc { width:160px; }
#repEscalationsView #tblRepEsc th.col-amount, #repEscalationsView #tblRepEsc th.col-remaining { width:165px; }
#repEscalationsView #tblRepEsc th.col-status { width:190px; }
#repEscalationsView #tblRepEsc th.col-resp-date { width:170px; }
#repEscalationsView #tblRepEsc th.col-ret-amt { width:165px; }
#repEscalationsView #tblRepEsc th.col-days, #repEscalationsView #tblRepEsc th.col-exec-rate { width:125px; }
#repEscalationsView #tblRepEsc tbody tr:nth-child(even) td { background:#f5f9ff; }
#repEscalationsView #tblRepEsc tbody tr:hover td { background:#edf5ff !important; }
#repEscalationsView #tblRepEsc .col-inv-no strong { color:#14225d; font-weight:700; }
#repEscalationsView #tblRepEsc tfoot td { background:#e0efff !important; color:#1235ad !important; font-size:15px !important; padding:13px 9px !important; font-weight:700; }
#repEscalationsView #tblRepEsc tfoot .re-total-count { font-size:13px !important; }
#repEscalationsView .re-response-badge { display:inline-block; padding:5px 12px; border-radius:20px; background:#fff0df; color:#db792c; font-size:13px; font-weight:600; }
#repEscalationsView .re-status-replied { background:#def8ed; color:#0a9e75; }
#repEscalationsView .re-status-partial { background:#e8f1ff; color:#2370cf; }
#repEscalationsView .esc-subtext { margin-top:3px; font-size:12px; color:#7a8cab; }
#repEscalationsView .esc-date-ctrl, #repEscalationsView .esc-ret-ctrl { width:100%; min-width:0; min-height:38px; font-size:14px; border:1px solid #d5e3fa; border-radius:6px; color:#344a75; background:#fff; }
#repEscalationsView .badge { padding:5px 10px; font-size:12px; border-radius:20px; white-space:normal; }
#repEscalationsView #pagination-tblRepEsc { margin-top:12px; }
/* Gentle staggered entrances and drifting waves, without a hover light sweep. */
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView).active .re-kpi { animation:re-card-arrive .65s cubic-bezier(.2,.75,.25,1) both; transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s,border-color .28s; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:nth-child(2) { animation-delay:70ms; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:nth-child(3) { animation-delay:140ms; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:nth-child(4) { animation-delay:210ms; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:nth-child(5) { animation-delay:280ms; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi::before { animation:re-wave-drift 7s ease-in-out infinite alternate; transform-origin:bottom left; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:nth-child(even)::before { animation-delay:-3s; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { transition:transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s; }
@media (hover:hover) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:hover { transform:translateY(-3px); box-shadow:0 5px 12px #243b6010; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:hover .re-kpi-icon { transform:translateY(-2px); box-shadow:none; } }
@keyframes re-card-arrive { from { opacity:0; translate:0 16px; scale:.97; } to { opacity:1; translate:0 0; scale:1; } }
@keyframes re-wave-drift { from { transform:translateX(-5px) scaleY(.9); opacity:.6; } to { transform:translateX(9px) scaleY(1.1); opacity:1; } }
@media (max-width:1200px) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:800px) { #reportsView>.nav-tabs .tab-item { font-size:12px; padding:10px 7px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi>span:not(.re-kpi-icon) { font-size:13px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi strong { font-size:24px; } }
@media (max-width:560px) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi:last-child { grid-column:1/-1; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi { min-height:120px; padding:12px 10px 12px 53px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { width:36px; height:42px; left:9px; } :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi small { font-size:11px; } #repEscalationsView .reports-filters-group>.filter-group, #repEscalationsView .reports-filters-group>.form-group { flex:1 1 100%; min-width:0 !important; } #reportsView>.nav-tabs .tab-item { font-size:11px; } }
@media (prefers-reduced-motion:reduce) { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi, :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi::before, :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi::after, :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi-icon { animation:none !important; transition:none !important; transform:none !important; opacity:1; } }
@media print { :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi, :is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-kpi::before { animation:none !important; } #repEscalationsView #tblRepEsc { min-width:0; } #repEscalationsView #pagination-tblRepEsc { display:none; } }
@media print { #repExecPositionView #tblRepExec, #repEscalationsView #tblRepEsc { min-width:0 !important; width:100% !important; table-layout:auto; } #repExecPositionView #tblRepExec :is(th,td), #repEscalationsView #tblRepEsc :is(th,td) { min-width:0 !important; width:auto !important; max-width:none !important; font-size:8px !important; padding:3px !important; white-space:normal !important; } }
#repEscalationsView #tblRepEsc td { white-space:normal; }
#repEscalationsView #tblRepEsc th.col-owner { width:175px; }
#repEscalationsView #tblRepEsc th.col-project { width:165px; }
#repEscalationsView #tblRepEsc th.col-contract { width:240px; }
#repEscalationsView #tblRepEsc th.col-desc { width:140px; }
#reportsView { --re-muted:#65789a; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-green>span:not(.re-kpi-icon) { color:#087e5d; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-orange>span:not(.re-kpi-icon) { color:#b9561c; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-blue>span:not(.re-kpi-icon) { color:#1d62cc; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .re-violet>span:not(.re-kpi-icon) { color:#7540cc; }
:is(#repExecPositionView,#repEscalationsView,#repInvoicesView) .data-table-wrapper:focus-visible { outline:3px solid #88b5ff; outline-offset:2px; }

#reportsView .re-kpi::after { content:none !important; display:none !important; }

/* Receivables report: clear balances and quiet status colors. */
#repInvoicesView .reports-toolbar-inner { align-items:flex-end; }
#repInvoicesView .reports-filters-group { flex:1 1 auto; gap:10px; align-items:flex-end; }
#repInvoicesView .reports-search-group { flex:1 1 250px; min-width:200px !important; }
#repInvoicesView .reports-filters-group>.filter-group:not(.reports-search-group) { flex:1 1 165px; min-width:150px !important; }
#repInvoicesView .reports-filters-group label { font-size:12px; line-height:1.5; color:var(--re-muted); }
#repInvoicesView .reports-filters-group select, #repInvoicesView .mf-trigger, #repInvoicesView .re-due-range input { min-height:42px; max-width:100%; border:1px solid #dae6fb; border-radius:7px; background:#fff; color:#40577f; font-size:14px; }
#repInvoicesView .re-due-range { flex:1 1 280px !important; }
#repInvoicesView .re-due-range>div { display:flex; align-items:center; gap:5px; }
#repInvoicesView .re-due-range input { width:100%; min-width:0; padding:5px; direction:ltr; }
#repInvoicesView .re-due-range span { color:var(--re-muted); font-size:12px; }
#repInvoicesView .reports-actions-group { margin-inline-start:auto; }
#repInvoicesView .re-invoice-extras { margin:0 0 12px; border:1px solid #e1ebfc; border-radius:9px; background:#ffffffa8; }
#repInvoicesView .re-invoice-extras>summary { padding:8px 12px; color:#506994; font-size:13px; cursor:pointer; }
#repInvoicesView .re-extra-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:8px 12px 12px; }
#repInvoicesView .re-extra-grid>div { display:grid; gap:7px; padding:10px; border-radius:7px; background:#f3f8ff; }
#repInvoicesView .re-extra-grid span { color:var(--re-muted); font-size:12px; }
#repInvoicesView .re-extra-grid strong { color:var(--re-ink); font-size:17px; }
#repInvoicesView #tblRepInv { width:100%; min-width:3000px; table-layout:fixed; border-collapse:collapse; margin:0; }
#repInvoicesView #tblRepInv th { position:sticky; top:0; z-index:2; height:60px; padding:10px 9px !important; border:1px solid #dce9fa !important; background:linear-gradient(110deg,#eaf4ff,#e5f1ff) !important; color:var(--re-ink) !important; font-size:13px !important; line-height:1.6; font-weight:600; white-space:normal; text-align:center; }
#repInvoicesView #tblRepInv th small { display:block; font-size:11px; color:var(--re-muted); }
#repInvoicesView #tblRepInv td { padding:11px 9px !important; border:1px solid #e3edfc !important; font-size:14px !important; line-height:1.7; color:#40577f; text-align:center; vertical-align:middle; white-space:normal; overflow-wrap:anywhere; }
#repInvoicesView #tblRepInv .col-index { width:50px !important; min-width:50px !important; max-width:50px !important; font-weight:700; }
#repInvoicesView #tblRepInv th.col-project { width:200px; }
#repInvoicesView #tblRepInv th.col-contract { width:270px; }
#repInvoicesView #tblRepInv th.col-net, #repInvoicesView #tblRepInv th.col-paid, #repInvoicesView #tblRepInv th.col-remaining, #repInvoicesView #tblRepInv th.col-gross { width:170px; }
#repInvoicesView #tblRepInv th.col-rate { width:115px; }
#repInvoicesView #tblRepInv th.col-due, #repInvoicesView #tblRepInv th.col-payment-date, #repInvoicesView #tblRepInv th.col-invoice-date { width:140px; }
#repInvoicesView #tblRepInv th.col-days-left { width:120px; }
#repInvoicesView #tblRepInv th.col-payment-status { width:150px; }
#repInvoicesView #tblRepInv th.col-owner { width:220px; }
#repInvoicesView #tblRepInv tbody tr:nth-child(even) td { background:#f5f9ff; }
#repInvoicesView #tblRepInv tbody tr:hover td { background:#edf5ff !important; }
#repInvoicesView #tblRepInv td.col-net { font-weight:600; color:#1b4ca5; }
#repInvoicesView #tblRepInv tfoot td { background:#e2f0ff !important; color:#1235ad !important; font-size:15px !important; padding:13px 9px !important; font-weight:700; }
#repInvoicesView #tblRepInv tfoot small { display:block; margin-top:4px; font-size:12px; color:#506994; }
#repInvoicesView .re-payment-badge { display:inline-block; padding:5px 12px; border-radius:20px; font-size:13px; font-weight:600; white-space:nowrap; }
#repInvoicesView .re-payment-Pending { color:#b74869; background:#fff0f5; }
#repInvoicesView .re-payment-Partial { color:#b86b22; background:#fff2e4; }
#repInvoicesView .re-payment-Paid { color:#087e5d; background:#e0f8ef; }
#repInvoicesView #pagination-tblRepInv { margin-top:12px; }
@media (max-width:900px) { #repInvoicesView .re-extra-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { #repInvoicesView .reports-filters-group>.filter-group { flex:1 1 100% !important; min-width:0 !important; } #repInvoicesView .reports-filters-group { width:100%; } #repInvoicesView .reports-actions-group { width:100%; } #repInvoicesView .reports-actions-group .btn { flex:1 1 auto; } }
@media print { #repInvoicesView .re-invoice-extras, #repInvoicesView #pagination-tblRepInv { display:none !important; } #repInvoicesView #tblRepInv { min-width:0 !important; width:100%; table-layout:auto; } #repInvoicesView #tblRepInv :is(th,td) { width:auto !important; min-width:0 !important; max-width:none !important; padding:3px !important; font-size:8px !important; } }

/* Override screen scrolling and column widths for every report, including Ctrl+P. */
@media print {
  #reportsView :is(#repExecPositionView, #repEscalationsView, #repInvoicesView) :is(.re-report-card, .table-container, .data-table-wrapper) {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    break-inside:auto !important;
    page-break-inside:auto !important;
  }

  #reportsView :is(#tblRepExec, #tblRepEsc, #tblRepInv) {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
    break-inside:auto !important;
  }

  #reportsView :is(#repExecPositionView, #repEscalationsView, #repInvoicesView) :is(#tblRepExec, #tblRepEsc, #tblRepInv) :is(th, td) {
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    white-space:normal !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    text-overflow:clip !important;
    position:static !important;
    height:auto !important;
    padding:2px !important;
    font-size:7px !important;
    line-height:1.35 !important;
  }

  #reportsView :is(#tblRepExec, #tblRepEsc, #tblRepInv) small {
    font-size:6px !important;
  }
}
#repInvoicesView .re-kpis { direction:ltr; }
/* Escalations need room for descriptions, without screen badges stretching rows. */
@media print {
  #reportsView #repEscalationsView .re-kpis { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:6px !important; margin-bottom:8px !important; }
  #reportsView #repEscalationsView .re-kpi { min-height:0 !important; padding:6px !important; border-radius:0 !important; box-shadow:none !important; gap:2px !important; }
  #reportsView #repEscalationsView .re-kpi-icon,
  #reportsView #repEscalationsView .re-kpi::before { display:none !important; }
  #reportsView #repEscalationsView .re-kpi>span:not(.re-kpi-icon),
  #reportsView #repEscalationsView .re-kpi small { font-size:8pt !important; }
  #reportsView #repEscalationsView .re-kpi strong { font-size:12pt !important; white-space:nowrap !important; }

  #reportsView #repEscalationsView #tblRepEsc :is(th,td) { font-size:7pt !important; padding:3px 2px !important; line-height:1.35 !important; word-break:normal !important; }
  #reportsView #repEscalationsView #tblRepEsc :is(.re-response-badge,.badge,.esc-subtext,.days-value,.days-unit,.report-print-value,.re-total-count) {
    font-size:inherit !important; line-height:inherit !important; padding:0 !important; margin:0 !important;
    background:transparent !important; border:0 !important; border-radius:0 !important; color:inherit !important;
    white-space:normal !important; word-break:normal !important; overflow-wrap:normal !important;
  }
  #reportsView #repEscalationsView #tblRepEsc .re-response-badge { display:block !important; }
  #reportsView #repEscalationsView #tblRepEsc tfoot { display:table-row-group !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-row-number { width:2% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-inv-no { width:5% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-inv-date { width:6% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-owner { width:7% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-project { width:6% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-contract { width:11% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-desc { width:8% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-amount { width:7% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-follow-up { width:5% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-status { width:9% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-resp-date { width:6% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-ret-amt { width:7% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-days { width:4% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-remaining { width:7% !important; }
  #reportsView #repEscalationsView #tblRepEsc thead th.col-exec-rate { width:4% !important; }
}
#repInvoicesView .re-kpi { direction:rtl; }
@media (max-width:560px) { #repInvoicesView .re-kpi strong { font-size:clamp(17px,4.8vw,22px); white-space:nowrap; } }

/* Receivables print layout: keep money intact and status text inside its cell. */
@media print {
  #reportsView #repInvoicesView .re-kpis { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:6px !important; margin-bottom:8px !important; }
  #reportsView #repInvoicesView .re-kpi { min-height:0 !important; padding:6px !important; border-radius:0 !important; box-shadow:none !important; gap:2px !important; }
  #reportsView #repInvoicesView .re-kpi-icon,
  #reportsView #repInvoicesView .re-kpi::before { display:none !important; }
  #reportsView #repInvoicesView .re-kpi>span:not(.re-kpi-icon),
  #reportsView #repInvoicesView .re-kpi small { font-size:8pt !important; }
  #reportsView #repInvoicesView .re-kpi strong { font-size:12pt !important; white-space:nowrap !important; }
  #reportsView #repInvoicesView #tblRepInv :is(th,td) { font-size:6.5pt !important; padding:3px 1px !important; line-height:1.35 !important; word-break:normal !important; }
  #reportsView #repInvoicesView #tblRepInv .re-payment-badge { display:block !important; font-size:inherit !important; line-height:inherit !important; padding:0 !important; border-radius:0 !important; background:transparent !important; color:inherit !important; white-space:normal !important; overflow-wrap:normal !important; }
  #reportsView #repInvoicesView #tblRepInv :is(td.col-net,td.col-paid,td.col-remaining,td.col-gross,#repInvFootNet,#repInvFootPaid,#repInvFootRemaining,#repInvFootGross) { white-space:nowrap !important; font-size:6pt !important; }
  #reportsView #repInvoicesView #tblRepInv tfoot { display:table-row-group !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(1) { width:2% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(2) { width:6% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(3) { width:10% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(4) { width:7% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(5) { width:7% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(6) { width:7% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(7) { width:3% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(8) { width:5% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(9) { width:3% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(10) { width:6% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(11) { width:4% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(12) { width:7% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(13) { width:5% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(14) { width:3% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(15) { width:4% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(16) { width:7% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(17) { width:5% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(18) { width:3% !important; }
  #reportsView #repInvoicesView #tblRepInv thead th:nth-child(19) { width:3% !important; }
}

/* Match invoice contract names on paper while retaining the complete report text. */
@media print {
  #reportsView :is(#tblRepExec, #tblRepEsc, #tblRepInv) .report-contract-name {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    overflow:hidden;
    white-space:normal;
    line-height:1.4;
    overflow-wrap:anywhere;
    text-overflow:ellipsis;
  }
}