.pd-dashboard { --pd-blue: #5568ca; --pd-teal: #278d80; --pd-violet: #8973c5; --bg-card: var(--bg-secondary); --text-muted: #64748b; width: 100%; min-width: 0; container-type: inline-size; }
body.dark-theme .pd-dashboard { --text-muted: #a3b2c7; }
.pd-dashboard .business-page-header { margin-bottom: 1.25rem; }
.pd-dashboard h2 { font-size: 1.1rem; letter-spacing: -.025em; }
.pd-dashboard a { text-decoration: none; }
.pd-dashboard a:hover { text-decoration: underline; }
.pd-dashboard :is(a,button,input,select,[tabindex]):focus-visible { outline: 3px solid var(--primary, #6366f1); outline-offset: 3px; }
.pd-dashboard .pd-active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }
.pd-filters { display: grid; grid-template-columns: minmax(170px,1.5fr) minmax(130px,1fr) minmax(130px,1fr) repeat(2,minmax(130px,.8fr)) auto; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.pd-filters .form-control { width: 100%; min-width: 0; }
.pd-shortcuts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-top: 1px solid var(--border-color); padding-top: .9rem; }
.pd-shortcuts > span { color: var(--text-muted); font-size: .75rem; }
.pd-shortcuts .btn { font-size: .75rem; min-height: 32px; padding: .4rem .65rem; }
#pd-updated { margin-left: auto; }
.pd-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.pd-metric { padding: 1.2rem 1.3rem; border: 1px solid var(--border-color); border-top: 3px solid var(--text-muted); border-radius: 12px; background: var(--bg-card); }
.pd-metric > span { display: block; font-size: .8rem; color: var(--text-medium); font-weight: 600; }
.pd-metric strong { display: block; font-size: clamp(1.35rem,2.5vw,2rem); font-weight: 650; letter-spacing: -.04em; margin: .5rem 0 .3rem; color: var(--text-main); }
.pd-metric small { color: var(--text-muted); font-size: .7rem; }
.pd-metric.pd-blue { border-top-color: var(--pd-blue); }.pd-metric.pd-teal { border-top-color: var(--pd-teal); }.pd-metric.pd-amber { border-top-color: #ca933b; }
.pd-scope, .pd-caption { font-size: .75rem; color: var(--text-muted); line-height: 1.6; }
.pd-scope { margin: .8rem .2rem 1.2rem; }
.pd-eyebrow { display: block; color: var(--text-muted); font-size: .65rem; font-weight: 750; letter-spacing: .1em; margin-bottom: .35rem; }
.pd-section-title { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.pd-section-title .pd-caption { margin: .35rem 0 0; }
.pd-toggle { display: flex; padding: 3px; border: 1px solid var(--border-color); background: var(--bg-tertiary); border-radius: 9px; }
.pd-toggle button { border: 0; border-radius: 6px; background: transparent; color: var(--text-medium); padding: .45rem .65rem; font: inherit; font-size: .75rem; cursor: pointer; }
.pd-toggle button[aria-pressed=true] { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }
.pd-gantt-card { margin-bottom: 1.2rem; overflow: hidden; }
.pd-gantt-scroll { overflow: auto; max-height: 530px; border: 1px solid var(--border-color); border-radius: 10px; overscroll-behavior: contain; }
.pd-gantt { min-width: calc(230px + var(--pd-timeline-width)); }
.pd-gantt-row, .pd-gantt-heading { display: grid; grid-template-columns: 230px minmax(var(--pd-timeline-width),1fr); }
.pd-gantt-heading { position: sticky; top: 0; z-index: 5; height: 46px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); }
.pd-gantt-heading > .pd-row-label { font-size: .65rem; font-weight: 700; letter-spacing: .08em; background: var(--bg-tertiary); }
.pd-row-label { position: sticky; left: 0; z-index: 3; background: var(--bg-card); display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border-right: 1px solid var(--border-color); min-width: 0; }
.pd-row-label > div { min-width: 0; }
.pd-row-label a { display: block; font-size: .78rem; line-height: 1.4; font-weight: 650; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-row-label small { display: block; font-size: .65rem; color: var(--text-muted); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-expand { flex: 0 0 26px; width: 26px; height: 28px; background: var(--bg-tertiary); color: var(--text-medium); border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; font-size: 1rem; }
.pd-gantt-row { min-height: 66px; border-bottom: 1px solid var(--border-color); }
.pd-gantt-row:last-child { border-bottom: 0; }
.pd-track { position: relative; min-width: 0; }
.pd-grid-line { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border-color); pointer-events: none; }
.pd-scale { position: relative; min-width: 0; }
.pd-scale > span:not(.pd-today-label) { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--text-medium); font-weight: 650; border-left: 1px solid var(--border-color); overflow: hidden; white-space: nowrap; }
.pd-project-bar { position: absolute; top: 15px; height: 36px; min-width: 3px; display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: 0 .65rem; border-radius: 6px; color: #fff; overflow: hidden; box-shadow: 0 2px 4px #17203915; box-sizing: border-box; }
.pd-project-bar:hover { filter: brightness(1.08); text-decoration: none !important; }
.pd-project-bar > span { font-size: .72rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-project-bar > small { font-size: .6rem; white-space: nowrap; }
.pd-status-pipeline { background: #5660b8; }.pd-status-draft { background: #626c80; }.pd-status-proposed { background: #8f6525; }.pd-status-committed { background: #247b70; }.pd-status-on_hold { background: #995627; }.pd-status-completed { background: #61718e; }.pd-status-cancelled { background: #96536a; }
.pd-clipped-start { border-radius: 0 6px 6px 0; border-left: 3px dotted #ffffffb0; }.pd-clipped-end { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 3px dotted #ffffffb0; }
.pd-today-line { position: absolute; z-index: 2; top: 0; bottom: 0; border-left: 2px solid #d75a69; pointer-events: none; }
.pd-scale > .pd-today-label { position: absolute; z-index: 3; bottom: 0; transform: translateX(-50%); color: #fff; background: #ad3d4b; border-radius: 3px 3px 0 0; padding: .12rem .25rem; font-size: .55rem; }
.pd-child { min-height: 39px; }.pd-child .pd-row-label { padding-left: 2rem; }.pd-child .pd-row-label a { font-size: .7rem; font-weight: 450; }.pd-child .pd-row-label > span { color: var(--text-muted); }
.pd-child-bar { position: absolute; top: 10px; height: 20px; border-radius: 4px; background: #8693c02e; border: 1px solid #7a8cc3; color: var(--text-main); font-size: .65rem; overflow: hidden; padding: 0 .3rem; white-space: nowrap; box-sizing: border-box; }
.pd-milestone { border: 0; background: none; color: #b58229; min-width: 20px; padding: 0; overflow: visible; text-align: left; font-size: 1rem; line-height: 20px; }
.pd-outside { color: var(--text-muted); font-size: .65rem; padding: .6rem; display: block; }
.pd-detail-note { padding: .65rem 1rem .65rem 2.4rem; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); font-size: .73rem; color: var(--text-medium); }
.pd-gantt-footer { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: .9rem; }
.pd-legend { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .65rem; color: var(--text-muted); }.pd-legend > span { display: flex; align-items: center; gap: .3rem; }.pd-legend i { width: 9px; height: 9px; border-radius: 3px; }
.pd-pages { display: flex; align-items: center; gap: .7rem; font-size: .7rem; color: var(--text-muted); }.pd-pages .btn { min-height: 30px; font-size: .7rem; padding: .35rem .6rem; }
.pd-chart-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; }
.pd-status-chart { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 1.4rem; }
.pd-donut { flex: 0 0 120px; height: 120px; width: 120px; border-radius: 50%; display: grid; place-items: center; }
.pd-donut > div { width: 91px; height: 91px; border-radius: 50%; background: var(--bg-card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pd-donut strong { font-size: 1.6rem; letter-spacing: -.04em; }.pd-donut span { font-size: .65rem; color: var(--text-muted); }
.pd-status-legend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 105px; }.pd-status-legend li { display: flex; gap: .4rem; align-items: center; font-size: .72rem; margin-bottom: .6rem; }.pd-status-legend strong { margin-left: auto; }
.pd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pd-budget-row { margin: 1.15rem 0; }.pd-budget-row > div:first-child { display: flex; align-items: baseline; gap: .5rem; justify-content: space-between; font-size: .72rem; margin-bottom: .4rem; }.pd-budget-row strong { white-space: nowrap; }
.pd-meter { height: 8px; border-radius: 20px; overflow: hidden; background: var(--bg-tertiary); }.pd-meter > span { display: block; height: 100%; border-radius: 20px; }
.pd-fill-blue { background: var(--pd-blue); }.pd-fill-violet { background: var(--pd-violet); }.pd-fill-teal { background: var(--pd-teal); }
.pd-coverage { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .6rem; }.pd-coverage strong { font-size: 1.8rem; letter-spacing: -.04em; }.pd-coverage span { font-size: .65rem; color: var(--text-muted); }
.pd-insights { list-style: none; padding: 0; margin: 1rem 0; }.pd-insights li { padding: .5rem 0; border-top: 1px solid var(--border-color); font-size: .7rem; color: var(--text-medium); }.pd-insights strong { color: var(--text-main); margin-right: .3rem; }
.pd-text-link { color: var(--primary); font-size: .75rem; font-weight: 600; }
@container(max-width:1020px) { .pd-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.pd-chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-chart-grid > :last-child { grid-column: 1/-1; } }
@container(max-width:720px) { .pd-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-chart-grid { grid-template-columns: 1fr; } }
@media(max-width:1200px) { .pd-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }.pd-chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-chart-grid > :last-child { grid-column: 1/-1; } }
@media(max-width:760px) { .pd-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-chart-grid { grid-template-columns: 1fr; }.pd-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }.pd-row-label { padding-left:.45rem; }.pd-gantt-row,.pd-gantt-heading { grid-template-columns: 175px minmax(var(--pd-timeline-width),1fr); }.pd-gantt { min-width: calc(175px + var(--pd-timeline-width)); }.pd-section-title { flex-wrap: wrap; }.pd-shortcuts > span:first-child { width: 100%; } }
@media(max-width:420px) { .pd-metric { padding:.85rem; }.pd-metric strong { font-size:1.35rem; }.pd-metric small { font-size:.65rem; }.pd-status-chart { gap:.9rem; }.pd-dashboard .planning-card { padding:1rem; } }
