/* Documents controls share the Project schedule's white surfaces and orange selection. */
.scroll-showreel .scr #sc2 .filter-control,.scroll-showreel .scr #sc2 #ztabs{height:31px;border:1px solid #c9cbce;border-radius:8px;background:#fff;color:#252525;font-size:11px;font-weight:400;line-height:1.3}
.scroll-showreel .scr #sc2 .ddwrap.has-selection .filter-control{border-color:#ef4129;color:#ef4129}
.scroll-showreel .scr #sc2 .chipr .chip{height:29px;border:0;border-radius:7px;background:transparent;color:inherit;padding:7px 9px}
.scroll-showreel .scr #sc2 .facet-trigger .chl,.scroll-showreel .scr #sc2 #ztabs .sl{font-size:var(--organise-control-label-size,11px);font-weight:400;line-height:1.3}
.scroll-showreel .scr #sc2 .organise-toolbar{--organise-control-label-size:11px}
.scroll-showreel .scr #sc2 #ztabs{gap:0;height:auto;overflow:hidden}
.scroll-showreel .scr #sc2 #ztabs>button{display:flex;align-items:center;justify-content:center;min-height:29px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
.scroll-showreel .scr #sc2 #ztabs>button.on{background:#fff0ed;color:#ef4129;box-shadow:inset 0 0 0 1px #ef4129}
.scroll-showreel .scr #sc2 #ztabs>button:hover,.scroll-showreel .scr #sc2 .chip:hover{background:#fff0ed}
.scroll-showreel .scr #sc2 #ztabs>button:focus-visible{outline:2px solid #ef4129;outline-offset:-2px}
/* Override the showcase clipping rule only for the three filter menus. */
html:not(.product-showcase-embed) .scroll-showreel .scr #sc2 .ddp{box-sizing:border-box;max-height:var(--organise-menu-height,230px);overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;scrollbar-width:thin;scrollbar-color:#c3c6cb #fff;border-radius:8px;background:#fff;border:1px solid #e4e5e7;box-shadow:0 5px 18px #00000012}
#sc2 .ddp .ddi{touch-action:pan-y!important}
#sc2 .timeline-doccard[hidden],#sc2 .tlrow[hidden],#sc2 .ybub[hidden]{display:none}
@media(max-width:760px){.scroll-showreel .scr #sc2 .organise-toolbar{--organise-control-label-size:clamp(8.5px,2.55vw,10.5px)}.scroll-showreel .scr #sc2 .chipr .chip{padding-inline:clamp(2px,.625vw,5px)}}
/* One dated card per row; explicit sides stay stable when filtering. */
#sc2 #tv3 .tlwrap{padding-top:12px;padding-bottom:20px}
#sc2 #tv3 .ybub{margin-bottom:10px}
#sc2 #tv3 .timeline-single-row{margin-bottom:28px;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)}
#sc2 #tv3 .timeline-single-row>.timeline-doccard{grid-row:1;width:100%;box-sizing:border-box}
#sc2 #tv3 .timeline-single-row[data-side="left"]>.timeline-doccard{grid-column:1}
#sc2 #tv3 .timeline-single-row[data-side="right"]>.timeline-doccard{grid-column:3}
#sc2 #tv3 .timeline-single-row>.tdot{grid-column:2;grid-row:1}
/* Tags get the complete card width; the attachment action keeps its own row. */
#sc2 .timeline-doccard .doc-classification{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:7px;padding:8px 10px}
#sc2 .timeline-doccard .doccard-tags{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;gap:4px;width:100%}
#sc2 .timeline-doccard .doc-classification-chip{flex:none;font-size:10px;line-height:1.3;letter-spacing:normal;padding:3px 6px}
#sc2 .timeline-doccard .doc-add-tag{box-sizing:border-box;width:22px;padding:3px}
#sc2 .timeline-doccard .doc-attachment{grid-column:1;grid-row:2;justify-self:end}
#sc2 .tlviews{container-type:inline-size}
@container (max-width:720px){
 #sc2 #tv3 .timeline-single-row{display:block;margin-bottom:24px}
 #sc2 #tv3 .tline,#sc2 #tv3 .tdot,#sc2 #tv3 .timeline-single-row>div:empty{display:none}
 #sc2 #tv3 .ybub{margin-left:0}
}
@container (max-width:340px){
 #sc2 .timeline-doccard .doc-classification{padding-inline:7px}
 #sc2 .timeline-doccard .doccard-tags{gap:3px}
 #sc2 .timeline-doccard .doc-classification-chip{font-size:9px;padding:3px 3px}
 #sc2 .timeline-doccard .doc-add-tag{width:18px}
}

.scroll-showreel .scr #sc2{height:100%;min-height:0;flex-direction:column;padding-bottom:18px}
.scroll-showreel .scr #sc2.on{display:flex}
.scroll-showreel .scr #sc2>.documents-head,.scroll-showreel .scr #sc2>.itabs,.scroll-showreel .scr #sc2>.organise-toolbar{flex:none}
.scroll-showreel .scr #sc2>.tlviews{flex:1;min-height:0;overflow:clip;overscroll-behavior-y:auto!important}
@media(max-width:860px){html:not(.product-showcase-embed) .scroll-showreel .showreel-screen>#sc2{display:flex;height:calc(100% - 46px)}}

/* Document examples stay within the demo frame; only filter menus scroll. */
html:not(.product-showcase-embed) .scroll-showreel .showreel-screen:has(>#sc2){overflow:clip}
