/* Loaded AFTER the page's legacy rules. Scoped to the two master-plan charts. */
:is(.rf-gantt,.rf-project-shift-shell) {
    height:auto; min-height:0; padding:8px; box-sizing:border-box;
    border-radius:16px;border:1px solid rgba(116,153,192,.26);
    background:linear-gradient(180deg,rgba(252,254,255,.98),rgba(244,249,255,.95));
}
.rf-gantt .rf-gantt-panel {height:auto;min-height:0;}
.rf-gantt.is-empty {min-height:160px;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-timeline {border:none;background:transparent;}
/* Set the labelset width (the measured source), not just the positioned panel. */
:is(.rf-gantt,.rf-project-shift-shell) .vis-panel.vis-left {width:180px!important;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-labelset {width:180px;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-labelset .vis-label {
    display:flex;align-items:center;min-height:72px;box-sizing:border-box;
    color:#17324d;background:rgba(242,247,252,.94);
    border-bottom:1px solid rgba(116,153,192,.22);
    box-shadow:inset -1px 0 0 rgba(116,153,192,.10);
}
:is(.rf-gantt,.rf-project-shift-shell) .vis-label .vis-inner {
    display:flex;align-items:center;width:180px;max-width:180px;min-height:0;height:100%;
    padding:0 14px;box-sizing:border-box;line-height:1.3;overflow:hidden;
}
:is(.rf-gantt,.rf-project-shift-shell) .vis-label .vis-inner>div {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-label strong {font-size:13px;font-weight:700;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-label small {font-size:11px;color:#60778e;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-foreground .vis-group {min-height:72px;box-sizing:border-box;border-bottom:1px solid rgba(116,153,192,.22);}
:is(.rf-gantt,.rf-project-shift-shell) .vis-item.vis-range {
    height:56px;border-radius:10px!important;font-size:12px;font-weight:600;
    box-shadow:inset 0 0 0 1px rgba(116,153,192,.16),0 6px 14px rgba(38,62,91,.10);
}
:is(.rf-gantt,.rf-project-shift-shell) .vis-foreground .vis-group .vis-item.vis-range:not(.rf-capacity-bg) {
    /* Preserve vis-timeline's inline translateX date positioning. */
    top:calc(50% - (var(--gantt-item-height, 56px) / 2))!important;
}
:is(.rf-gantt,.rf-project-shift-shell) .vis-time-axis .vis-text {color:#43566d;font-size:11px;font-weight:700;}
:is(.rf-gantt,.rf-project-shift-shell) .vis-panel,
:is(.rf-gantt,.rf-project-shift-shell) .vis-time-axis .vis-grid {border-color:rgba(116,153,192,.16);}
