/* Contract-specific proportions over the shared management-page components. */
#contractsView .ct-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}




#contractsView .ct-filters.pr-filters{grid-template-columns:minmax(250px,1.15fr) minmax(230px,1fr) minmax(210px,1fr) auto;gap:18px;padding:14px 17px}
#contractsView .ct-filters .pr-reset{grid-column:auto;min-width:120px}


#contractsView .ct-table-header{direction:rtl;padding:9px 3px;min-height:52px}
#contractsView .ct-table-header h2{font-weight:650;color:#365083;gap:10px}
#contractsView .ct-table-header h2 strong{display:grid;place-items:center;min-width:33px;height:29px;padding:0 8px;border-radius:18px;background:#dae7ff;color:#193b79}
#contractsView .ct-search{width:230px;margin-right:auto;margin-left:12px}
#contractsView .ct-search input{width:100%;border:1px solid #dce7fa;border-radius:7px;height:35px;background:#fff;color:#5070ac;font-size:13px;padding:5px 33px 5px 10px}
#contractsView #tblContracts{table-layout:fixed;min-width:1180px}
#contractsView #tblContracts thead th{height:47px;font-size:11.5px;padding:6px!important;white-space:normal}
#contractsView #tblContracts thead button{white-space:normal;text-align:center;line-height:1.5;gap:3px}
#contractsView #tblContracts td{font-size:13px;padding:7px 6px!important}
#contractsView #tblContracts .ct-name,#contractsView #tblContracts .ct-project{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;max-width:none}
#contractsView #tblContracts .ct-name{font-size:13px;font-weight:600;text-align:right}
#contractsView .pr-row-actions button{width:24px;height:24px;border-radius:50%;padding:4px}
#contractsView .pr-status{font-size:11px;padding:3px 7px;gap:4px}
#contractsView .pr-status-Closed{color:#e65d63;background:#fff0f1;border-color:#ffd5db}
#contractsView #ctExport[hidden]{display:none!important}
@media(max-width:1200px){#contractsView .ct-kpis{gap:8px}#contractsView .ct-filters.pr-filters{grid-template-columns:minmax(220px,1.1fr) minmax(180px,1fr) minmax(150px,1fr) auto;gap:10px}}
@media(max-width:1000px){#contractsView .ct-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#contractsView .ct-filters.pr-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#contractsView .ct-search{width:210px}}
@media(max-width:575px){#contractsView .ct-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#contractsView .ct-kpis .pr-kpi:last-child{grid-column:1/-1;justify-content:center}#contractsView .ct-filters.pr-filters{padding:11px;gap:12px}#contractsView .ct-filters>label:has(#ctSort){grid-column:1/-1}#contractsView .ct-filters .pr-reset{min-width:0}#contractsView .ct-table-header{flex-wrap:wrap;gap:10px}#contractsView .ct-search{order:3;width:100%;margin:0}#contractsView .ct-table-header .pr-export{margin-right:auto}#contractsView .pr-header-actions .btn-primary{min-width:100%}}
@media print{#contractsView .ct-search{display:none!important}#contractsView #tblContracts{min-width:0;table-layout:auto}#contractsView #tblContracts td,#contractsView #tblContracts th{font-size:9px;padding:4px!important;white-space:normal!important}}
#contractsView .ct-filters.pr-filters{grid-template-columns:minmax(220px,1fr) minmax(180px,1fr) auto}
#contractsView .ct-kpis .pr-kpi:nth-child(5){animation-delay:280ms}
#contractsView .pr-kpi strong{white-space:nowrap;letter-spacing:-.5px}
#contractsView .ct-value-unit{font-size:14px;font-weight:650;letter-spacing:0;vertical-align:baseline}
#contractsView .pr-kpi-icon{width:28px;height:28px;min-width:28px;right:8px;bottom:8px;opacity:.5}
#contractsView .pr-kpi-icon svg{width:20px;height:20px}
@media(max-width:575px){#contractsView .ct-filters.pr-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#contractsView .ct-value-unit{font-size:12px}#contractsView .pr-kpi-icon{width:24px;height:24px;min-width:24px;right:5px;bottom:6px;opacity:.35}#contractsView .pr-kpi-icon svg{width:17px;height:17px}}

/* Full monetary values have dedicated room; only the code column sticks horizontally. */
#contractsView #tblContracts{min-width:1990px;border-collapse:separate;border-spacing:0;isolation:isolate}
#contractsView #tblContracts th:nth-child(1){width:120px}
#contractsView #tblContracts th:nth-child(2){width:310px}
#contractsView #tblContracts th:nth-child(3){width:200px}
#contractsView #tblContracts th:nth-child(4){width:190px}
#contractsView #tblContracts th:nth-child(5){width:190px}
#contractsView #tblContracts th:nth-child(6){width:190px}
#contractsView #tblContracts th:nth-child(7){width:130px}
#contractsView #tblContracts th:nth-child(8){width:110px}
#contractsView #tblContracts th:nth-child(9){width:110px}
#contractsView #tblContracts th:nth-child(10){width:140px}
#contractsView #tblContracts th:nth-child(11){width:120px}
#contractsView #tblContracts th:nth-child(12){width:180px}
#contractsView #tblContracts :is(th,td):first-child{position:sticky!important;inset-inline-start:0;right:0;left:auto;box-shadow:-2px 0 0 #bfd1eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#contractsView #tblContracts tbody td:first-child{z-index:3;background:#fff!important;background-clip:border-box}
#contractsView #tblContracts tbody tr:nth-child(even) td:first-child{background:#f7faff!important}
#contractsView #tblContracts tbody tr:hover td:first-child{background:#edf6ff!important}
#contractsView #tblContracts thead th:first-child{z-index:20;background:linear-gradient(100deg,#e5f2ff,#dfedff)!important}
#contractsView #tblContracts .ct-money{white-space:nowrap;font-variant-numeric:tabular-nums}
@media print{#contractsView #tblContracts{min-width:0}#contractsView #tblContracts :is(th,td):first-child{position:static!important;box-shadow:none}}
