/* v333 Course Resources: match approved MySTS dark theme without changing printing. */
#portalWorkspace[data-sts-theme="dark"] #stsHubShell{
 background:#0b1726!important;color:#e6eff9!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.sth-card,.ss-library,.sth-home,.sth-panel,.sth-section,.sth-tile,.sth-summary,.sth-tabs){
 background-color:#14273b!important;color:#eaf3fc!important;border-color:#354d64!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-library,.ss-uploadform,.ss-filelist,.ss-listtop,.ss-empty,.ss-doc){
 background:#14273b!important;color:#eaf3fc!important;border-color:#344b61!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell .ss-uploadform{
 background:#192f45!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-tile,.sth-card .ss-tile),
#portalWorkspace[data-sts-theme="dark"] #stsHubShell[data-hub-tab="paperwork"] .ss-tilegrid>.ss-tile{
 background:#20364d!important;color:#f4f8fd!important;border-color:#46607a!important;
 box-shadow:none!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-tile,.sth-card .ss-tile):hover{
 background:#29435e!important;border-color:#5a91c1!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-library h2,.ss-library h3,.ss-tile strong,.ss-doc strong,.sth-card h1,.sth-card h2,.sth-card h3,.sth-card strong,.ss-listtop h3){
 color:#f2f7ff!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-muted,.ss-tile small,.ss-doc small,.ss-breadcrumb,.ss-offline,.ss-tilearrow){
 color:#c1d4e5!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-formgrid label,.ss-tools label,.ss-confirm){
 color:#dde9f5!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell :is(.ss-formgrid input,.ss-tools input,.ss-tools select){
 background:#102236!important;color:#f7fbff!important;border-color:#526b85!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell .ss-categories button:not(.selected){
 background:#243a50!important;color:#e5f1fc!important;border-color:#425a74!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell .ss-categories button.selected{
 background:#197ac4!important;color:#fff!important;border-color:#197ac4!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell .ss-filelist .ss-empty{
 background:#20364a!important;
}
#portalWorkspace[data-sts-theme="dark"] #stsHubShell .ss-offline{
 border-top-color:#3a536c!important;
}
#portalWorkspace[data-sts-theme="light"] #stsHubShell{background:#f5f8fb!important}
@media print{
 #portalWorkspace[data-sts-theme="dark"] #stsHubShell{background:#fff!important;color:#111!important}
}


/* v336: keep document actions consistently right-aligned, regardless of title length.
   The underlying filename, published date, and yearly revision label remain in D1. */
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) max-content!important;
 align-items:center!important;
 column-gap:16px!important;
 row-gap:10px!important;
 box-sizing:border-box;
 width:100%;
 max-width:100%;
}
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-doc-details{
 min-width:0;
 max-width:100%;
 overflow-wrap:anywhere;
}
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-doc-details strong,
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-doc-details small{
 display:block;
}
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-actions{
 display:flex!important;
 flex-wrap:nowrap!important;
 align-items:center!important;
 justify-content:flex-end!important;
 justify-self:end!important;
 width:max-content;
 max-width:100%;
 min-width:0;
 margin-left:auto;
 gap:10px;
}
#portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-actions > button{
 flex:0 0 auto!important;
 white-space:nowrap!important;
}
@media (max-width:1000px){
 #portalWorkspace #stsHubShell #ss-file-list > .ss-doc{
  grid-template-columns:minmax(0,1fr)!important;
 }
 #portalWorkspace #stsHubShell #ss-file-list > .ss-doc > .ss-actions{
  width:100%;
  flex-wrap:wrap!important;
 }
}
