.client-cooperation-fields .client-cooperation-inputs{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(130px,1fr) minmax(130px,1fr);gap:12px;align-items:end}
.client-cooperation-fields .client-cooperation-inputs label{margin:0;min-width:0}
.client-cooperation-fields .client-cooperation-inputs input,.client-cooperation-fields .client-cooperation-inputs select{width:100%;min-width:0}
#view-client-statistics{color:#172a3d;max-width:1400px}
#view-client-statistics h2{font-size:16px;margin:0 0 12px}
#view-client-statistics .client-statistics-note{font-size:13px;color:#63748a;line-height:1.6;margin:0 0 14px}
#view-client-statistics .client-statistics-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px}
#view-client-statistics .client-statistics-tools input{flex:1 1 260px;min-width:0;max-width:500px;margin:0}
#view-client-statistics button{margin:0;min-height:34px}
#view-client-statistics .client-statistics-summary,#view-client-statistics .client-statistics-annual,#view-client-statistics .client-statistics-list,#view-client-statistics .client-statistics-assignees{border:1px solid #cbd9e9;border-radius:8px;padding:16px;background:#fff;margin:0 0 16px}
#view-client-statistics .client-statistics-assignee-counts{display:flex;flex-wrap:wrap;gap:7px}
#view-client-statistics .client-statistics-assignee-counts .client-statistics-choice span{min-width:0;overflow-wrap:anywhere}
#view-client-statistics .client-statistics-assignee-counts .client-statistics-choice strong{flex-shrink:0}
#view-client-statistics .client-statistics-assignee-cell{min-width:130px;max-width:240px;overflow-wrap:anywhere}
#view-client-statistics .client-statistics-assignee-cell small{display:block;font-size:12px;color:#6a7b91;margin-top:3px}
#view-client-statistics .client-statistics-cards{display:flex;flex-wrap:wrap;gap:7px}
#view-client-statistics .client-statistics-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;padding:5px 9px;border:1px solid #c9d6e7;border-radius:6px;background:#f6f9fd;color:#263f5f;text-align:left}
#view-client-statistics .client-statistics-choice strong{font-size:13px;font-weight:600}
#view-client-statistics .client-statistics-choice.selected{border-color:#366ccc;box-shadow:inset 3px 0 #366ccc;background:#e8f0ff}
#view-client-statistics [data-cooperation-status=active]{color:#245d47}
#view-client-statistics [data-cooperation-status=pending]{color:#82580e}
#view-client-statistics [data-cooperation-status=paused]{color:#695082}
#view-client-statistics [data-cooperation-status=inactive]{color:#626b79}
#view-client-statistics .client-statistics-table-wrap{overflow-x:auto;max-width:100%}
#view-client-statistics table{width:100%;border-collapse:collapse;background:#fff;text-align:left;table-layout:auto}
#view-client-statistics th{background:#edf2f8;font-size:13px;white-space:nowrap}
#view-client-statistics td,#view-client-statistics th{padding:10px 12px;border-bottom:1px solid #dce5f0;vertical-align:middle}
#view-client-statistics .client-statistics-list table{min-width:820px}
#view-client-statistics .client-statistics-list td:first-child{min-width:200px;overflow-wrap:anywhere}
#view-client-statistics .client-statistics-list td:first-child strong{font-weight:600}
#view-client-statistics .client-name-note{display:block;margin-top:3px;font-size:12px;color:#6a7b91}
#view-client-statistics .client-statistics-annual td .client-statistics-choice{display:inline-flex;min-width:52px;justify-content:center;padding:5px 12px}
#view-client-statistics .client-statistics-missing{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
#view-client-statistics .client-statistics-missing strong{font-size:16px}
#view-client-statistics .client-statistics-years-toggle{margin:10px 0}
#view-client-statistics .client-statistics-annual h3{font-size:14px;margin:16px 0 8px}
#view-client-statistics .client-statistics-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}
#view-client-statistics button:focus-visible{outline:3px solid #2f65c5;outline-offset:2px}
@media(max-width:700px){.client-cooperation-fields .client-cooperation-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.client-cooperation-fields .client-cooperation-inputs label:first-child{grid-column:1/-1}#view-client-statistics .client-statistics-summary,#view-client-statistics .client-statistics-annual,#view-client-statistics .client-statistics-list,#view-client-statistics .client-statistics-assignees{padding:12px}#view-client-statistics .client-statistics-tools input{flex-basis:100%;max-width:none}}

#view-client-statistics .client-statistics-explanations{margin:0 0 12px;color:#425b79}
#view-client-statistics .client-statistics-explanations summary{cursor:pointer;width:fit-content;font-size:13px;margin-bottom:7px}
#view-client-statistics .client-statistics-explanations p{margin:3px 0 6px}
#view-client-statistics .client-statistics-annual .client-statistics-table-wrap{overscroll-behavior-x:contain}
#view-client-statistics .client-statistics-annual table{min-width:max-content}
#view-client-statistics .client-statistics-annual :is(th,td):not(:first-child){text-align:center}
#view-client-statistics .client-statistics-annual th[scope=row]{background:#f6f8fb}
#view-client-statistics .client-statistics-annual td .client-statistics-choice{min-width:40px;padding:4px 8px}

#view-client-modules .client-module-statistics-table{max-width:100%}
#view-client-modules .client-module-statistics-table table{table-layout:fixed;min-width:700px}
#view-client-modules .client-module-statistics-table th:first-child{width:32%}
#view-client-modules .client-module-statistics-table :is(th,td){white-space:normal;overflow-wrap:anywhere}
#view-client-modules .client-module-company-name{display:block}
@media(min-width:1100px){
 #view-client-modules .client-module-statistics-table th:first-child{width:320px}
}
@media(max-width:600px){
 #view-client-modules .client-module-statistics-table table{min-width:0}
}
