.roster-page{max-width:1500px}.roster-page .mp-heading{margin-bottom:16px}.roster-page .mp-heading p{margin:0}.roster-filters{margin-bottom:14px}.roster-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.roster-kpis article{padding:14px 18px;gap:5px}.roster-page .mp-card{margin:14px 0}.roster-rule{margin:0 0 12px}.roster-entry-tools{display:flex;gap:12px;align-items:start;margin-bottom:12px}.roster-entry-tools details{margin:0;position:relative}.roster-entry-tools summary{padding:0 12px;cursor:pointer;min-height:44px;display:flex;align-items:center;border:1px solid #dde4e3;border-radius:8px;background:white}.roster-entry-tools details>div{position:absolute;top:100%;left:0;display:grid;gap:8px;min-width:245px;padding:10px;border:1px solid #dde4e3;border-radius:10px;background:white;z-index:8;box-shadow:0 8px 24px #122d321a}.roster-table table{table-layout:fixed;min-width:0;width:100%}.roster-table th:nth-child(1){width:48px}.roster-table th:nth-child(2){width:21%}.roster-table th:nth-child(3){width:20%}.roster-table th:nth-child(4){width:auto}.roster-table th:nth-child(5){width:115px}.roster-table th:nth-child(6){width:100px}.roster-table :is(th,td){padding:9px 6px;vertical-align:middle;font-size:14px;overflow-wrap:anywhere}.roster-table th{background:#f3f7f6;color:#34484b;font-weight:600}.roster-table td:first-child{color:#55696c;text-align:center}.roster-table input,.roster-table select{font-size:14px;width:100%}.roster-table input[type=number]{text-align:right}.roster-remove{padding:8px!important;color:#9f1c12}.roster-bottom{display:flex;align-items:center;gap:16px;margin-top:16px}.roster-bottom>span{font-size:13px;color:#55696c;line-height:1.5}.roster-empty{padding:18px 0;color:#55696c}.roster-summary>summary,.roster-history>summary,.roster-legacy>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.roster-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:12px}.roster-summary-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #dde4e3;font-size:14px}.roster-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}.roster-page details>summary:focus-visible{outline:3px solid #b45309;outline-offset:3px}.roster-legacy article{padding:12px 0;border-bottom:1px solid #dde4e3}.roster-legacy p,.roster-history p{font-size:14px;color:#55696c}.roster-page .mp-member-list{grid-template-columns:repeat(3,minmax(0,1fr))}.roster-page button{min-height:44px}
@media(max-width:1000px){.roster-table th:nth-child(2){width:20%}.roster-table th:nth-child(3){width:18%}.roster-table th:nth-child(5){width:98px}.roster-table th:nth-child(6){width:86px}}
@media(max-width:700px){.roster-page .mp-heading>div:last-child{display:flex;flex-wrap:wrap}.roster-page .mp-heading>div:last-child>:last-child{grid-column:auto}.roster-page .mp-heading p{font-size:14px}.roster-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.roster-kpis article{padding:10px;gap:4px}.roster-kpis strong{font-size:24px}.roster-kpis small{font-size:12px}.roster-kpis span{font-size:13px;line-height:1.35}.roster-filters{gap:10px}.roster-filters label:first-child{flex-basis:100%}.roster-filters label{min-width:115px}.roster-filters>.button{width:100%}.roster-table{overflow:visible}.roster-table table,.roster-table tbody,.roster-table tr,.roster-table td{display:block;width:100%;min-width:0}.roster-table thead{display:none}.roster-table tbody{display:grid;gap:12px}.roster-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid #dde4e3;border-radius:12px;padding:12px}.roster-table td{border:0;padding:0}.roster-table td:before{content:attr(data-label);display:block;color:#55696c;font-size:13px;margin-bottom:6px;text-align:left}.roster-table td:first-child{grid-column:1/-1;text-align:left;font-size:13px}.roster-table td:first-child:before{display:inline;margin-right:6px}.roster-table td:nth-child(4){grid-column:1/-1;grid-row:3}.roster-table td:nth-child(5){grid-column:1}.roster-table td:nth-child(6){grid-column:2;align-self:end}.roster-table td:nth-child(6):before{display:none}.roster-table input,.roster-table select{font-size:16px;min-height:46px}.roster-remove{width:100%}.roster-bottom{flex-direction:column;align-items:stretch;gap:10px}.roster-bottom>.button{width:100%}.roster-summary-grid,.roster-editor-grid{grid-template-columns:1fr}.roster-page .mp-member-list{grid-template-columns:1fr}.roster-entry-tools{gap:8px}.roster-entry-tools .button,.roster-entry-tools summary{font-size:14px;padding:10px}.roster-page .mp-contractor-row{align-items:start}.roster-table td:nth-child(2),.roster-table td:nth-child(3){grid-row:2}}



/* Compact contractor settings: one shared heading, one horizontal row per company. */
.roster-contractors header{gap:12px}.roster-contractors header h2{margin-right:auto}.roster-contractors #roster-company-search{max-width:260px;min-height:44px}.roster-company-head,.roster-company-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(64px,.6fr) minmax(80px,.7fr) minmax(100px,.9fr) minmax(100px,.9fr) 64px;gap:12px;align-items:center;line-height:1.3}.roster-company-head{padding:8px 0;color:#55696c;font-size:13px;border-bottom:1px solid #dde4e3}.roster-company-row{padding:4px 0;border-bottom:1px solid #dde4e3;min-height:52px}.roster-company-row[hidden]{display:none}.roster-company-name{font-size:15px;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35;color:#17292c}.roster-company-code{font-weight:600;font-size:14px;color:#17292c}.roster-company-status,.roster-company-access{font-size:13px;color:#55696c}.roster-company-row .button{padding:8px 12px;min-height:44px}.roster-company-count{margin:8px 0 0;font-size:13px}
@media(max-width:700px){.roster-contractors header{flex-wrap:wrap}.roster-contractors #roster-company-search{order:3;max-width:none;flex-basis:100%}.roster-company-head{display:none}.roster-company-row{grid-template-columns:minmax(0,1fr) 65px 56px;column-gap:10px;row-gap:3px;min-height:64px;padding:7px 0}.roster-company-name{font-size:14px;grid-column:1;grid-row:1}.roster-company-code{grid-column:2;grid-row:1}.roster-company-status{grid-column:1;grid-row:2;font-size:12px}.roster-company-access{grid-column:2;grid-row:2;font-size:12px;white-space:nowrap}.roster-company-row .button{grid-column:3;grid-row:1/3;padding:8px}.roster-company-count{font-size:12px}}

.roster-company-trade{font-size:14px;font-weight:600;color:#17292c}.roster-company-trade.unassigned{font-size:13px;font-weight:400;color:#55696c}
@media(min-width:701px) and (max-width:1100px){.roster-company-head,.roster-company-row{grid-template-columns:minmax(120px,1.8fr) 54px 68px 85px 82px 56px;gap:8px}.roster-company-name{font-size:14px}}
@media(max-width:700px){.roster-company-row{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 56px;gap:4px 10px;padding:9px 0}.roster-company-name{grid-column:1/3;grid-row:1;white-space:normal;overflow-wrap:anywhere}.roster-company-code{grid-column:1;grid-row:2}.roster-company-trade{grid-column:2;grid-row:2;font-size:13px}.roster-company-status{grid-column:1;grid-row:3}.roster-company-access{grid-column:2;grid-row:3;white-space:normal}.roster-company-row .button{grid-column:3;grid-row:1/4}.roster-company-code:before{content:'Mã: ';font-weight:400;color:#55696c}.roster-company-trade:before{content:'Role: ';font-weight:400;color:#55696c}}
