/* JOGO × TSC V15 — salary metadata readability, compact five-column roster,
   role-scoped condition copy + secure GPT translation controls. */
#root [data-tsc-real-salary-approval-root] .tsc-v14-manager-period{
 display:flex!important;align-items:center;flex-wrap:wrap;column-gap:5px;row-gap:2px;
 margin:4px 0 1px!important;
 font-size:11px!important;font-weight:650!important;
 color:var(--text,#244939)!important;
 line-height:1.6!important;
}
#root [data-tsc-real-salary-approval-root] .tsc-v14-manager-period b,
#root [data-tsc-real-salary-approval-root] .tsc-v14-manager-period strong{
 font-weight:800!important;
 color:var(--text,#163f30)!important;
}
#root [data-tsc-real-salary-approval-root] .tsc-v15-coop-date{
 display:inline-flex;gap:5px;align-items:center;flex-wrap:wrap;
 padding-left:8px;
 color:var(--text,#285442)!important;
}
#root [data-tsc-real-salary-approval-root] .tsc-v14-breakdown{
 display:flex!important;flex-wrap:wrap;align-items:baseline;gap:3px 6px;
 margin:5px 0!important;
 font-size:11px!important;
 font-weight:700!important;line-height:1.6!important;
 color:var(--text,#1c4937)!important;
}
#root [data-tsc-real-salary-approval-root] .tsc-v14-breakdown b,
#root [data-tsc-real-salary-approval-root] .tsc-v14-breakdown strong{
 font-weight:800!important;
 color:var(--text,#164332)!important;
}
html[data-theme=dark] #root [data-tsc-real-salary-approval-root] :is(
 .tsc-v14-manager-period,.tsc-v14-manager-period b,
 .tsc-v14-manager-period strong,.tsc-v15-coop-date,
 .tsc-v14-breakdown,.tsc-v14-breakdown b,.tsc-v14-breakdown strong
){color:#dcefe3!important}

/* 10 per page, five columns on desktop; preserve complete cards on smaller screens. */
#root .tsc-roster-two-rows{
 display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:9px!important;align-items:stretch;
}
#root .tsc-roster-two-rows>.tsc-contract-card{
 min-width:0!important;
 margin:0!important;padding:11px!important;
 gap:4px!important;overflow-wrap:anywhere;
 border-radius:10px;
}
#root .tsc-roster-two-rows>.tsc-contract-card>b{
 font-size:12px;line-height:1.35;word-break:break-word;
}
#root .tsc-roster-two-rows>.tsc-contract-card .sub{
 font-size:11px;line-height:1.5;
}
#root .tsc-roster-two-rows>.tsc-contract-card :is(button,.btn){
 width:100%;max-width:100%;margin:5px 0 0!important;
 padding:7px!important;text-align:center;
 font-size:11px!important;
 line-height:1.4;
}
@media(max-width:1199px) and (min-width:901px){
 #root .tsc-roster-two-rows{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px) and (min-width:531px){
 #root .tsc-roster-two-rows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:530px){
 #root .tsc-roster-two-rows{grid-template-columns:minmax(0,1fr)!important}
}

/* Buttons belong only to administrator (copy + GPT) and specialist (copy).
   Preserve original condition content; translation is an extra panel. */
.tsc-v13-condition-modal .tsc-v15-modal-actions{
 display:flex;align-items:center;justify-content:flex-end;
 flex-wrap:wrap;gap:8px;
 padding:11px 18px 13px;
 border-top:1px solid #d4e3d9;
 background:#f7faf8;
}
.tsc-v13-condition-modal .tsc-v15-modal-actions[hidden],
.tsc-v13-condition-modal .tsc-v15-modal-actions [hidden]{
 display:none!important;
}
.tsc-v13-condition-modal .tsc-v15-modal-actions button{
 font-weight:700;font-size:12px;line-height:1.4;
 font-family:inherit;
 min-height:36px;padding:8px 12px;
 border-radius:9px;cursor:pointer;
}
.tsc-v13-condition-modal .tsc-v15-modal-copy{
 border:1px solid #9ac4a7;background:#eff8f0;color:#155337;
}
.tsc-v13-condition-modal .tsc-v15-modal-translate{
 border:1px solid #106e50;background:#167956;color:#fff;
}
.tsc-v13-condition-modal .tsc-v15-modal-actions button:disabled{
 opacity:.58;cursor:wait;
}
.tsc-v13-condition-modal .tsc-v15-modal-status{
 flex:1 0 100%;
 min-height:14px;font-size:11px;color:#477362;
 overflow-wrap:anywhere;
}
.tsc-v13-condition-modal .tsc-v15-translated{
 margin-top:16px;padding:12px 13px;
 border:1px solid #c9e2cf;
 background:#eff8f1;border-radius:10px;
 color:#174932;
}
.tsc-v13-condition-modal .tsc-v15-translated>b{display:block;margin-bottom:6px;font-size:12px}
.tsc-v13-condition-modal .tsc-v15-translated-text{
 white-space:pre-wrap;overflow-wrap:anywhere;
 font-size:13px;line-height:1.75;
}
html[data-theme=dark] .tsc-v13-condition-modal .tsc-v15-modal-actions{
 background:#1a3528;border-color:#3b624c;
}
html[data-theme=dark] .tsc-v13-condition-modal .tsc-v15-modal-copy{
 background:#1d4734;border-color:#4d8463;color:#d5f5e1;
}
html[data-theme=dark] .tsc-v13-condition-modal .tsc-v15-modal-translate{
 background:#197a59;border-color:#3b9d77;color:#fff;
}
html[data-theme=dark] .tsc-v13-condition-modal .tsc-v15-modal-status{color:#d4e8d9}
html[data-theme=dark] .tsc-v13-condition-modal .tsc-v15-translated{
 background:#183c2b;border-color:#3a7250;color:#def4e2;
}
@media(max-width:530px){
 .tsc-v13-condition-modal .tsc-v15-modal-actions{padding:10px 12px}
 .tsc-v13-condition-modal .tsc-v15-modal-actions button{flex:1;min-width:120px}
}

