.pc-group-config{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:16px 20px;color:#304b57;background:#fff;box-sizing:border-box}
.pc-group-config *{box-sizing:border-box}
.pc-group-top{display:flex;align-items:flex-start;flex-shrink:0;justify-content:space-between;gap:16px}
.pc-group-top h3{margin:0 0 7px}
.pc-group-top p{margin:0 0 12px;color:#657b87}
.pc-group-config button{border:1px solid #b6cbd4;border-radius:4px;padding:8px 13px;color:#304b57;background:#fff;white-space:nowrap}
.pc-group-config button:disabled{opacity:.5;cursor:default}
.pc-group-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) auto;gap:14px;align-items:end;flex-shrink:0;padding:12px;background:#f2f6f8;border:1px solid #d7e2e8;border-radius:5px}
.pc-group-filters label{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;font-weight:normal;line-height:1.4}
.pc-group-config input:not([type=checkbox]),.pc-group-config select{width:100%;min-height:35px;border:1px solid #b9cbd4;background:white;border-radius:4px;padding:6px 8px}
.pc-group-config input[type=checkbox]{accent-color:#304b57;width:16px;height:16px;cursor:pointer}
.pc-group-filters .pc-group-toggle{flex-direction:row;align-items:center;height:36px;padding:0;gap:7px;min-width:0;white-space:nowrap}
.pc-group-summary{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}
.pc-group-summary span{border-radius:15px;background:#eaf1f4;padding:5px 10px;font-size:12px}
.pc-group-summary strong{font-size:17px;margin-right:6px}
.pc-group-table-wrap{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid #d8e2e8;border-radius:5px;margin:12px 0}
.pc-group-table{min-width:1140px}
.pc-group-table th:first-child{min-width:180px}
.pc-group-table th,.pc-group-table td{vertical-align:middle}
.pc-group-table thead th{position:sticky;top:0;z-index:1;background:#dfe9ee}
.pc-group-table tbody th{background:#f4f7f9;font-weight:normal}
.pc-group-table small{display:block;font-size:11px;color:#6b7e88;margin-top:4px}
.pc-group-table input[type=number]{min-width:73px}
.pc-group-table input[type=text]{min-width:135px}
.pc-group-table td:nth-child(3),.pc-group-table td:nth-child(4),.pc-group-table td:nth-child(5){text-align:center}
.pc-group-status{display:inline-block;border-radius:12px;background:#edf0f2;padding:4px 8px;font-size:11px;white-space:nowrap;color:#697c85}
.pc-group-assigned{background:#e0f1e7;color:#2c6548}
.pc-group-dirty td,.pc-group-dirty th{background:#fff8e7!important}
.pc-group-disabled{opacity:.65}
.pc-group-footer{position:static;flex-shrink:0;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;padding:12px;background:#fff;border-top:1px solid #d8e3e9;z-index:2}
.pc-group-footer span{margin-right:auto;font-weight:bold}
.pc-group-config .pc-group-save{background:#304b57;color:#fff}
.pc-group-success{padding:10px;border:1px solid #b8d8c5;background:#edf8f1;color:#286147}

.pc-group-window .dx-popup-title{min-height:44px}
.pc-group-window .dx-popup-title .dx-toolbar-items-container{height:44px}


/* Keep the filters and footer outside the table's scroll area. */
.pc-group-config{font-family:Roboto,Arial,sans-serif;font-size:14px;line-height:1.4}
.pc-group-config .pc-group-top h3{font-size:22px;line-height:1.3}
.pc-group-config button,.pc-group-config input,.pc-group-config select{font-family:inherit}
.pc-group-window > .dx-popup-content{padding:0;overflow:hidden}
.pc-group-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.pc-group-summary,.pc-group-form > .pc-note{flex-shrink:0}
.pc-group-config .pc-group-filters input:not([type=checkbox]),
.pc-group-config .pc-group-filters select{box-sizing:border-box;display:block;width:100%;min-width:0;height:36px;min-height:36px;max-height:36px;margin:0;padding:6px 10px;font:inherit;line-height:normal}
.pc-group-config .pc-group-toggle input[type=checkbox]{flex:0 0 16px;margin:0}
.pc-group-table{margin:0}
.pc-group-footer{gap:10px;padding:12px 0 0}
.training-profile .profile-toolbar{display:flex;align-items:center;gap:16px;padding:4px 8px!important}
.training-profile .profile-toolbar-main{display:flex;align-items:center;gap:2px;min-width:0;overflow-x:auto}
.training-profile .profile-toolbar-main > *{flex-shrink:0}
.training-profile .pc-profile-settings{flex:0 0 auto;margin:2px 2px 2px auto;padding:9px 14px;min-height:36px;line-height:20px;border:1px solid #b8cbd4;border-radius:4px;background:#fff;color:#304b57;white-space:nowrap;cursor:pointer}
.training-profile .pc-profile-settings:hover{background:#edf3f6}
.training-profile .pc-profile-settings:focus-visible{outline:2px solid #304b57;outline-offset:2px}
@media(max-width:1000px){
  .pc-group-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .pc-group-config{padding:12px}
  .pc-group-top h3{font-size:20px}
  .pc-group-filters{gap:10px;padding:10px}
  .pc-group-filters .pc-group-toggle{white-space:normal}
  .pc-group-footer span{flex-basis:100%}
  .training-profile .profile-toolbar{gap:8px}
}
/* On short screens, allow the whole form to scroll without overlaying rows. */
@media(max-height:650px){
  .pc-group-config{overflow:auto;display:block}
  .pc-group-form{display:block}
  .pc-group-table-wrap{height:40vh;min-height:160px}
}
