/* DynamiqNotes Project Scheduler V1 — self-contained and theme-neutral */
.dnps-root{--dnps-bg:#f8fafc;--dnps-paper:#fff;--dnps-ink:#17202e;--dnps-muted:#667586;--dnps-border:#e2e8f0;--dnps-accent:#334155;--dnps-positive:#0e7490;--dnps-risk:#b91c1c;--dnps-soft:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--dnps-ink);width:100%;max-width:100%;box-sizing:border-box;line-height:1.48;font-size:14px;isolation:isolate}
.dnps-root *, .dnps-root *::before,.dnps-root *::after{box-sizing:border-box}
.dnps-root[data-dnps-width="full"]{width:calc(100vw - 32px);max-width:1520px;position:relative;left:50%;transform:translateX(-50%)}
.dnps-root button,.dnps-root input,.dnps-root textarea,.dnps-root select{font:inherit;line-height:inherit;box-shadow:none;letter-spacing:normal;text-transform:none}
.dnps-root button{cursor:pointer}
.dnps-root button:disabled{opacity:.55;cursor:not-allowed}
.dnps-root input,.dnps-root select,.dnps-root textarea{color:var(--dnps-ink);background:#fff;border:1px solid #cbd5e1;border-radius:9px;min-height:38px;padding:8px 10px;max-width:100%;width:100%}
.dnps-root :focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.dnps-root h2,.dnps-root h3,.dnps-root p{margin:0}
.dnps-root a{text-decoration:none}
.dnps-loading{border:1px solid var(--dnps-border);border-radius:14px;padding:40px;color:#64748b;text-align:center}
.dnps-shell{border:1px solid var(--dnps-border);background:var(--dnps-bg);border-radius:18px;overflow:hidden;box-shadow:0 15px 42px rgba(15,23,42,.055);width:100%}
.dnps-top{height:76px;padding:14px 25px;background:#fff;border-bottom:1px solid var(--dnps-border);display:flex;align-items:center;justify-content:space-between;gap:16px}
.dnps-brand{display:flex;gap:11px;align-items:center;min-width:0}
.dnps-mark{display:grid;place-items:center;background:#1f2937;color:#fff;font-weight:850;font-size:21px;letter-spacing:-.07em;width:41px;height:41px;border-radius:12px;flex-shrink:0}
.dnps-mark span{color:#b4c1cf}
.dnps-brand strong{font-size:18px;letter-spacing:-.04em;display:block;line-height:1.2;color:#192332}
.dnps-brand small{font-size:10px;letter-spacing:.13em;color:#7a8796;font-weight:750;display:block;margin-top:3px}
.dnps-top-right{display:flex;gap:9px;align-items:center}
.dnps-status{display:inline-flex;align-items:center;gap:7px;border:1px solid #d2e6dc;background:#f0f9f4;color:#27764d;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:750;letter-spacing:.05em;white-space:nowrap}
.dnps-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#34a56b}
.dnps-status-demo{background:#f5f7fb;border-color:#dfe4ed;color:#6c7584}
.dnps-status-demo::before{background:#94a3b8}
.dnps-btn{appearance:none;border:1px solid #cbd5e1!important;border-radius:9px;background:#fff!important;color:#334155!important;min-height:37px;padding:8px 13px!important;display:inline-flex;justify-content:center;align-items:center;gap:6px;font-size:12.5px!important;font-weight:650!important;white-space:nowrap;transition:background .15s,border-color .15s;text-decoration:none!important}
.dnps-btn:hover{background:#f1f5f9!important;border-color:#a9b8c8!important}
.dnps-btn-primary{background:#334155!important;color:#fff!important;border-color:#334155!important}
.dnps-btn-primary:hover{background:#1e293b!important;color:#fff!important}
.dnps-btn-danger{border-color:#fecaca!important;color:#b91c1c!important}
.dnps-btn-small{padding:5px 9px!important;min-height:30px;font-size:11px!important}
.dnps-btn-add{width:100%;margin-top:9px}
.dnps-demo-banner{background:#f1f5f9;border-bottom:1px solid #dce5ed;color:#52647a;padding:9px 24px;font-size:12px}
.dnps-body{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:620px}
.dnps-side{background:#fff;border-right:1px solid var(--dnps-border);padding:23px 13px;position:relative;display:flex;flex-direction:column;gap:0;min-width:0}
.dnps-side-label{font-size:10px;font-weight:750;color:#8b98a7;letter-spacing:.14em;padding:0 10px 10px}
.dnps-side-label-spaced{margin-top:31px}
.dnps-project-select select{font-size:12px;overflow:hidden;text-overflow:ellipsis;width:100%}
.dnps-demo-project{padding:12px 13px;border:1px solid #dee5ed;border-radius:10px;font-weight:700;font-size:12px;background:#f8fafc;color:#334155}
.dnps-demo-project small{display:block;font-weight:500;color:#8b95a3;margin-top:3px}
.dnps-nav{display:grid;gap:3px}
.dnps-nav button{appearance:none;border:0!important;background:transparent!important;color:#5b6a7c!important;display:flex;align-items:center;text-align:left;gap:12px;font-weight:650;font-size:12.5px;width:100%;padding:11px 12px!important;border-radius:9px}
.dnps-nav button span{font-size:17px;line-height:1;width:20px;text-align:center}
.dnps-nav button:hover{background:#f6f8fa!important}
.dnps-nav button.is-current{background:#eaf0f6!important;color:#29394f!important}
.dnps-sidebar-foot{margin-top:auto;padding:25px 10px 0;color:#9aa7b3;font-size:11px}
.dnps-main{padding:28px clamp(16px,3vw,34px);min-width:0}
.dnps-section-head{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:24px;flex-wrap:wrap}
.dnps-section-head h2{font-size:24px;letter-spacing:-.045em;color:#182334;font-weight:780;line-height:1.2}
.dnps-section-head p{font-size:12px;color:#83909f;margin-top:7px}
.dnps-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dnps-control-label{display:flex;align-items:center;gap:8px;color:var(--dnps-muted);font-size:12px}
.dnps-control-label select{min-width:118px;width:auto}
.dnps-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.dnps-stat{background:var(--dnps-paper);border:1px solid var(--dnps-border);border-radius:12px;padding:16px 15px;min-width:0}
.dnps-stat>span{display:block;font-size:11px;color:#788697;font-weight:600;line-height:1.3}
.dnps-stat strong{display:block;font-size:clamp(18px,2.4vw,27px);letter-spacing:-.04em;color:#253346;line-height:1.2;margin:9px 0 7px;font-weight:780}
.dnps-stat strong.dnps-negative{color:var(--dnps-risk)}
.dnps-stat small{display:block;color:#94a0ae;font-size:10.5px;line-height:1.5}
.dnps-panel{background:#fff;border:1px solid var(--dnps-border);border-radius:14px;padding:22px 20px;margin-bottom:18px;min-width:0}
.dnps-panel-top{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:18px}
.dnps-panel-top p{margin-top:6px}
.dnps-card-title{font-weight:760;color:#253346;font-size:14px;letter-spacing:-.01em;margin-bottom:10px}
.dnps-panel-top .dnps-card-title{margin:0}
.dnps-muted{font-size:11px;color:#8a97a7}
.dnps-legend{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:10px;font-size:11.5px;font-weight:650;color:#738092}
.dnps-legend span{display:flex;gap:8px;align-items:center}
.dnps-legend i{width:18px;height:4px;border-radius:6px;display:inline-block;background:#334155}
.dnps-legend i.dnps-legend-actual{background:#0891b2}
.dnps-svg{width:100%;height:auto;min-height:170px;display:block;overflow:visible}
.dnps-gridline{stroke:#e6ebf1;stroke-width:1;stroke-dasharray:4 4}
.dnps-chart-label{font-size:10px;fill:#8b98a7;font-family:system-ui,sans-serif}
.dnps-line-plan{fill:none;stroke:#334155;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dnps-line-actual{fill:none;stroke:#0891b2;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dnps-point-actual{fill:#0891b2;stroke:white;stroke-width:2}
.dnps-hint{color:#8b98a7;font-size:11px;line-height:1.6;margin-top:9px}
.dnps-alert{border-radius:10px;border:1px solid;padding:10px 13px;font-size:12px;margin-bottom:15px;position:relative}
.dnps-alert-warning{color:#895418;background:#fffbeb;border-color:#fde68a}
.dnps-alert-error{color:#991b1b;background:#fef2f2;border-color:#fecaca}
.dnps-alert-info{color:#31516c;background:#eff6ff;border-color:#cbdfee}
.dnps-dismiss{position:absolute;right:8px;top:3px;background:transparent!important;border:0!important;color:inherit!important;font-size:20px!important;padding:3px 6px!important}
.dnps-inline-info{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:17px}
.dnps-inline-info span{border:1px solid #dfe6ed;background:#fff;border-radius:8px;padding:7px 10px;color:#788598;font-size:11px}
.dnps-inline-info strong{color:#425266}
.dnps-tablewrap{width:100%;max-width:100%;overflow:auto}
.dnps-table{border-collapse:collapse;width:100%;min-width:720px;border:0!important;background:transparent!important;font-size:11.5px}
.dnps-table thead th{background:#f8fafc;color:#798799;font-weight:750;text-transform:none;letter-spacing:0;font-size:10.5px;white-space:nowrap;padding:12px 10px;border:0;border-bottom:1px solid #e2e8f0;text-align:left}
.dnps-table tbody td{border:0;border-bottom:1px solid #edf1f5;padding:12px 10px;vertical-align:middle;color:#526174;background:#fff}
.dnps-table tbody tr:last-child td{border-bottom:0}
.dnps-table .dnps-name-cell{font-weight:670;color:#2f3c4e;min-width:140px;max-width:245px}
.dnps-table .dnps-num{text-align:right;white-space:nowrap}
.dnps-empty-row{text-align:center;padding:40px 15px!important;color:#94a3b8!important}
.dnps-wbs-tag{display:inline-block;background:#f0f3f7;border:1px solid #e4e9ee;border-radius:5px;padding:3px 6px;font-weight:750;font-size:10px;color:#627186;white-space:nowrap}
.dnps-row-actions{display:flex;align-items:center;gap:6px}
.dnps-row-actions button{appearance:none;background:transparent!important;border:0!important;padding:4px 5px!important;color:#586f86!important;font-size:11px!important;font-weight:660!important}
.dnps-row-actions button:hover{color:#1e293b!important;text-decoration:underline}
.dnps-progress-text{font-weight:700;color:#375269}
.dnps-toolbar-bottom{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.dnps-toolbar-bottom small{color:#8897a6;font-size:11px}
.dnps-gantt-wrap{width:100%;overflow-x:auto;padding-bottom:7px}
.dnps-gantt{min-width:640px;width:100%}
.dnps-gantt-head,.dnps-gantt-row{display:grid;grid-template-columns:minmax(165px,32%) minmax(360px,1fr);border-bottom:1px solid #eff3f6;min-height:47px;align-items:center}
.dnps-gantt-head{min-height:44px;background:#f8fafc;color:#748195;font-size:10px;font-weight:760}
.dnps-gantt-label{padding:8px 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#546477;font-size:11px}
.dnps-gantt-rail{position:relative;min-height:36px;background-image:linear-gradient(to right,#edf2f7 1px,transparent 1px);background-size:25% 100%;margin:4px 16px}
.dnps-gantt-head .dnps-gantt-rail{display:flex;justify-content:space-between;align-items:center;gap:5px;font-weight:650;background:none;white-space:nowrap}
.dnps-gantt-bar{position:absolute;top:10px;height:15px;min-width:2px;border-radius:5px;background:#c5d2df;overflow:hidden}
.dnps-gantt-fill{height:100%;background:#475569;border-radius:5px}
.dnps-meter{width:110px;background:#edf2f7;border-radius:20px;height:7px;overflow:hidden}
.dnps-meter i{height:100%;background:#0e7490;display:block;border-radius:20px}
.dnps-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;flex-wrap:wrap}
.dnps-footer-actions span{font-size:10.5px;color:#a0aaba}
.dnps-footnote{padding:11px 19px;text-align:center;border-top:1px solid var(--dnps-border);color:#a0adba;font-size:10px;background:#fff}
.dnps-welcome{text-align:center;background:#fff;border:1px dashed #cad5df;border-radius:16px;margin:20px auto;padding:55px 24px;max-width:650px}
.dnps-welcome-icon{width:64px;height:64px;border-radius:18px;background:#edf3f8;color:#64748b;display:grid;place-items:center;margin:0 auto 18px;font-size:35px}
.dnps-welcome h2{font-size:23px;font-weight:750;letter-spacing:-.04em}
.dnps-welcome p{font-size:13px;color:#8190a0;max-width:400px;margin:12px auto 22px}
.dnps-placeholder{padding:70px 15px;text-align:center;color:#8796a6;background:#f8fafc;border:1px dashed #dce4eb;border-radius:12px;font-size:12px}
.dnps-report-head{padding-bottom:19px;border-bottom:1px solid #e2e8f0;margin-bottom:23px}
.dnps-report-head h2{font-weight:780;font-size:25px;letter-spacing:-.04em;margin-top:6px}
.dnps-report-head p{font-size:12px;color:#8491a1;margin-top:6px}
.dnps-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:760;color:#7e8da0}
.dnps-modal-host{position:relative;z-index:100}
.dnps-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:999999;display:grid;place-items:center;padding:20px;overflow:auto}
.dnps-modal{width:min(100%,610px);max-height:calc(100vh - 30px);overflow-y:auto;background:#fff;border-radius:17px;box-shadow:0 30px 100px rgba(15,23,42,.28)}
.dnps-modal-head{padding:19px 23px;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between}
.dnps-modal-head h3{font-weight:780;font-size:18px;letter-spacing:-.02em}
.dnps-x{font-size:26px!important;background:transparent!important;border:0!important;padding:0!important;color:#64748b!important}
.dnps-form{padding:23px;display:grid;gap:17px}
.dnps-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.dnps-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#526174;min-width:0}
.dnps-field span{display:block}
.dnps-field input,.dnps-field select,.dnps-field textarea{font-weight:500;font-size:13px}
.dnps-form-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding-top:14px;border-top:1px solid #edf1f5}
@media(max-width:980px){.dnps-body{grid-template-columns:185px minmax(0,1fr)}.dnps-main{padding:23px 17px}.dnps-side{padding:18px 10px}.dnps-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dnps-stat strong{font-size:24px}.dnps-panel{padding:17px 14px}}
@media(max-width:640px){.dnps-root[data-dnps-width="full"]{width:calc(100vw - 16px)}.dnps-shell{border-radius:12px}.dnps-top{height:auto;min-height:70px;padding:12px;align-items:flex-start;flex-wrap:wrap}.dnps-brand strong{font-size:16px}.dnps-brand small{font-size:9px}.dnps-top-right{margin-left:auto}.dnps-status{font-size:9px}.dnps-body{display:block}.dnps-side{border-right:none;border-bottom:1px solid #e2e8f0;padding:12px;display:block}.dnps-side-label,.dnps-side-label-spaced,.dnps-sidebar-foot{display:none}.dnps-nav{display:flex;overflow-x:auto;gap:5px;margin-top:10px;padding-bottom:3px}.dnps-nav button{flex:0 0 auto;width:auto!important;white-space:nowrap;padding:8px 10px!important;font-size:11px!important;gap:5px}.dnps-nav button span{font-size:14px;width:14px}.dnps-project-select{display:inline-block;width:calc(100% - 130px);margin-right:7px;vertical-align:middle}.dnps-btn-add{display:inline-flex;width:auto;margin:0}.dnps-demo-project{padding:9px 11px}.dnps-main{padding:17px 12px}.dnps-section-head{margin-bottom:16px}.dnps-section-head h2{font-size:20px}.dnps-actions{width:100%}.dnps-stats{gap:8px}.dnps-stat{padding:12px}.dnps-stat strong{font-size:20px}.dnps-stat>span{font-size:10px}.dnps-panel{padding:14px 10px}.dnps-legend{font-size:10px;gap:12px}.dnps-svg{min-height:135px}.dnps-gantt-head,.dnps-gantt-row{grid-template-columns:200px 400px}.dnps-form-grid{grid-template-columns:1fr}.dnps-modal-backdrop{padding:10px}.dnps-form{padding:16px}.dnps-demo-banner{padding:8px 12px}}
@media print{body *{visibility:hidden!important}.dnps-root,.dnps-root .dnps-main,.dnps-root .dnps-panel,.dnps-root .dnps-print-sheet,.dnps-root .dnps-print-sheet *{visibility:visible!important}.dnps-root{position:absolute!important;left:0!important;top:0!important;transform:none!important;width:100%!important;max-width:100%!important;font-size:11px}.dnps-shell{box-shadow:none;border:0}.dnps-top,.dnps-side,.dnps-demo-banner,.dnps-section-head,.dnps-footer-actions,.dnps-footnote,.dnps-modal-host{display:none!important}.dnps-body{display:block!important}.dnps-main{padding:0!important}.dnps-main>.dnps-panel:not(.dnps-print-sheet){display:none!important}.dnps-print-sheet{display:block!important;padding:0!important;border:0!important}.dnps-stats{grid-template-columns:repeat(4,1fr)}.dnps-table{min-width:0!important;font-size:9px!important}.dnps-row-actions,.dnps-table thead th:last-child,.dnps-table tbody td:last-child{display:none!important}.dnps-panel{break-inside:avoid}}

/* V1.1: side-by-side activity breakdown and selectable Plan / Plan + Actual curve */
.dnps-curve-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:-4px 0 18px}
.dnps-mode-control{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.dnps-mode-label{font-size:11px;font-weight:750;color:#6c788a}
.dnps-view-toggle{display:inline-flex;gap:3px;align-items:center;padding:4px;border:1px solid #dce4ed;border-radius:11px;background:#fff}
.dnps-view-toggle button{appearance:none!important;min-height:31px;padding:6px 12px!important;border:0!important;border-radius:8px!important;color:#68788b!important;font-size:11.5px!important;font-weight:680!important;background:transparent!important;white-space:nowrap}
.dnps-view-toggle button.is-active{background:#334155!important;color:#fff!important;box-shadow:0 2px 6px rgba(30,41,59,.12)!important}
.dnps-view-toggle button:not(.is-active):hover{background:#f0f4f8!important}
.dnps-mode-asof{font-size:11px;color:#8793a2}
.dnps-mode-asof strong{color:#405268}
.dnps-curve-layout{display:grid;grid-template-columns:minmax(330px,41%) minmax(0,1fr);gap:14px;align-items:start}
.dnps-curve-layout>.dnps-panel{margin-bottom:18px;height:100%}
.dnps-breakdown-panel{padding:17px 14px}
.dnps-breakdown-heading{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:14px}
.dnps-breakdown-heading .dnps-card-title{margin:0 0 4px;font-size:13px}
.dnps-breakdown-heading .dnps-muted{font-size:10px}
.dnps-bd-scroll{width:100%;max-width:100%;overflow-x:auto}
.dnps-bd-table{border-collapse:collapse;border:0!important;background:transparent!important;font-size:10.5px;width:100%;min-width:330px}
.dnps-bd-table th,.dnps-bd-table td{border:0!important;border-bottom:1px solid #edf1f5!important;padding:10px 5px!important;text-align:left;vertical-align:middle;background:#fff}
.dnps-bd-table th{font-size:9.5px;color:#7f8fa0;font-weight:750;white-space:nowrap;background:#f7f9fc}
.dnps-bd-table .dnps-bd-number{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.dnps-bd-table td.dnps-bd-weight{font-weight:750;color:#35485d}
.dnps-bd-activity{min-width:135px;max-width:220px;color:#35485d}
.dnps-bd-activity .dnps-wbs-tag{margin-bottom:4px;font-size:9px}
.dnps-bd-activity>div{display:flex;align-items:flex-start;justify-content:space-between;gap:3px;line-height:1.3}
.dnps-bd-activity>div>span{display:block;overflow-wrap:anywhere;font-weight:650}
.dnps-bd-edit{appearance:none;background:transparent!important;color:#6c8096!important;border:0!important;padding:0!important;font-size:9px!important;font-weight:700!important;white-space:nowrap;line-height:1.5!important}
.dnps-bd-edit:hover{text-decoration:underline;color:#334155!important}
.dnps-bd-table tfoot td{background:#f3f6f9!important;font-weight:800;color:#26384c;border-top:1px solid #dce3eb!important;border-bottom:0!important}
.dnps-bd-footnote{font-size:10px;line-height:1.55;color:#8795a4;margin-top:14px}
.dnps-curve-chart-panel .dnps-svg{min-height:225px}
.dnps-curve-chart-panel .dnps-hint{margin-top:14px}
@container (max-width:900px){.dnps-curve-layout{grid-template-columns:minmax(0,1fr)}.dnps-curve-layout>.dnps-panel{height:auto}.dnps-bd-table{min-width:0}}
@media(max-width:1100px){.dnps-curve-layout{grid-template-columns:minmax(0,1fr)}.dnps-curve-layout>.dnps-panel{height:auto}}
@media(max-width:640px){.dnps-curve-toolbar{align-items:flex-start}.dnps-mode-control{gap:6px}.dnps-curve-layout{gap:0}.dnps-breakdown-panel{padding:14px 9px}.dnps-bd-table{min-width:330px;font-size:10px}.dnps-view-toggle button{font-size:11px!important;padding:6px 9px!important}}

/* Respond to page-builder/theme content widths as well as the viewport. */
.dnps-main{container-type:inline-size}

/* V1.2 modern weekly project controls matrix, with sticky activity columns */
.dnps-matrix-panel{padding:20px 18px 16px;min-width:0;overflow:hidden}
.dnps-matrix-panel .dnps-panel-top{margin-bottom:12px;flex-wrap:wrap}
.dnps-matrix-panel .dnps-card-title{font-size:16px;letter-spacing:-.025em}
.dnps-matrix-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.dnps-matrix-helper{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0 13px;font-size:11px;color:#66798f}
.dnps-matrix-guide-plan,.dnps-matrix-guide-actual{width:9px;height:9px;display:inline-block;background:#d5eef6;border:1px solid #8ecde1;border-radius:2px}
.dnps-matrix-guide-actual{margin-left:12px;background:#fce0e0;border-color:#eeb5b5}
.dnps-matrix-scroll-hint{margin-left:auto;color:#96a2af}
.dnps-matrix-scroll{overflow:auto;width:100%;max-width:100%;max-height:760px;border:1px solid #dfe8f0;border-radius:10px;background:#fff;overscroll-behavior-x:contain;scrollbar-color:#bdcbd9 #f1f5f9}
.dnps-matrix{--cw:54px;border-collapse:separate!important;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:10.5px;color:#334155;background:#fff}
.dnps-matrix th,.dnps-matrix td{border-right:1px solid #e8eef4;border-bottom:1px solid #e8eef4;padding:0!important;height:43px;text-align:center;white-space:nowrap;vertical-align:middle}
.dnps-matrix thead th{position:sticky;top:0;z-index:17;background:#eef3f8;color:#42536b;font-weight:720;padding:6px 4px!important}
.dnps-matrix thead tr:nth-child(2) th{top:37px;z-index:17;height:42px}
.dnps-matrix thead tr:first-child th{height:37px}
.dnps-matrix th.dnps-month-header{background:#263f53;color:#fff;letter-spacing:.025em;border-color:#3b556a;font-size:11px}
.dnps-matrix .dnps-week-header{width:54px;min-width:54px;font-size:11px}
.dnps-matrix .dnps-week-header small{display:block;color:#8293a7;font-size:9px;font-weight:500}
.dnps-matrix .dnps-matrix-fixed{position:sticky;z-index:8;text-align:left;background:#fff;overflow:hidden;text-overflow:ellipsis;padding:7px 8px!important}
.dnps-matrix thead th.dnps-matrix-fixed{z-index:23;background:#263f53;color:#fff;top:0;text-align:left}
.dnps-matrix .dnps-fixed-0{left:0;width:118px;min-width:118px;max-width:118px}
.dnps-matrix .dnps-fixed-1{left:118px;width:56px;min-width:56px;max-width:56px}
.dnps-matrix .dnps-fixed-2{left:174px;width:241px;min-width:241px;max-width:241px}
.dnps-matrix .dnps-fixed-3{left:415px;width:60px;min-width:60px;max-width:60px;text-align:right;padding-right:7px!important}
.dnps-matrix .dnps-fixed-4{left:475px;width:73px;min-width:73px;max-width:73px;text-align:right;padding-right:8px!important;box-shadow:5px 0 8px -7px #64748b}
.dnps-matrix td.dnps-matrix-weight{color:#334155;font-weight:760}
.dnps-matrix-stage{color:#375e75;font-weight:800;white-space:normal!important;line-height:1.3}
.dnps-matrix-phase-row td{height:38px;background:#eff5f9!important;font-weight:700;color:#3a5c75}
.dnps-matrix-phase-row .dnps-matrix-fixed{background:#eff5f9!important}
.dnps-matrix-stage-empty{background:#fafcfd!important}
.dnps-matrix-edit{border:0!important;background:transparent!important;color:#32455b!important;font-size:10.4px!important;text-align:left;padding:0!important;white-space:normal;line-height:1.25;font-weight:700;display:block;cursor:pointer;max-height:34px;overflow:hidden}
.dnps-matrix-edit:hover{text-decoration:underline}
.dnps-matrix-range{display:block;font-size:9px;color:#8c9aaa;margin-top:3px;overflow:hidden;text-overflow:ellipsis}
.dnps-phase-toggle{border:0!important;background:none!important;color:#375e75!important;font-size:10px!important;cursor:pointer;text-align:left;padding:0!important;font-weight:700!important}
.dnps-phase-arrow{font-size:11px}
.dnps-matrix .dnps-wbs-tag{padding:3px 4px;font-size:9px}
.dnps-week-cell{width:54px;min-width:54px;max-width:54px;background:#fff;padding:0!important;position:relative}
.dnps-week-active{background:linear-gradient(180deg,#f8fcfd 0%,#eff9fb 100%)}
.dnps-week-qty{font-size:9px;display:block;line-height:1.1;padding:3px 1px;font-weight:720;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.dnps-week-qty-plan{color:#116783;background:#daf1f7}
.dnps-week-qty-actual{color:#af4551;background:#ffe2e6;margin-top:2px}
.dnps-matrix-total td{height:32px!important;font-size:10px;font-weight:760}
.dnps-matrix-total .dnps-matrix-fixed{font-size:10.5px;font-weight:800}
.dnps-matrix-total-plan td{background:#edf7fb!important;color:#1b6b84}
.dnps-matrix-total-cumulative td{background:#e3f0f7!important;color:#205977}
.dnps-matrix-total-actual td{background:#fef1f3!important;color:#ae4a55}
.dnps-matrix-total-cumulative-actual td{background:#fee5e9!important;color:#9d3c4a}
.dnps-matrix-chartrow td{height:168px!important;background:#fff!important}
.dnps-matrix-chartlabel{position:sticky;left:0;width:548px;min-width:548px;z-index:10;text-align:left!important;padding:16px 17px!important;background:#fafcfd!important;white-space:normal!important;border-right:1px solid #d6e2e9!important}
.dnps-matrix-chartlabel strong{font-size:13px;display:block;color:#30495d}
.dnps-matrix-chartlabel small{color:#8798a7;font-size:10px;display:block;margin-top:5px}
.dnps-matrix-legend{display:flex;align-items:center;gap:9px;color:#526478;margin-top:15px;font-size:10px}
.dnps-matrix-legend i{display:inline-block;width:16px;height:3px;background:#327dba;border-radius:5px}
.dnps-matrix-legend i.dnps-matrix-actual-marker{background:#e15a64}
.dnps-matrix-chartcell{height:168px;padding:0!important;text-align:left!important}
.dnps-matrix-chartcell svg{display:block;max-width:none!important}
.dnps-matrix-svg-grid{stroke:#e7eef3;stroke-width:1;stroke-dasharray:2 5}
.dnps-matrix-svg-tick{font-size:8px;fill:#b1bac4}
.dnps-matrix-svg-plan{stroke:#327dba;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none}
.dnps-matrix-svg-actual{stroke:#e15a64;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none}
.dnps-matrix .dnps-hidden-phase{display:none!important}
@media(max-width:650px){.dnps-matrix-panel{padding:14px 9px}.dnps-matrix-scroll-hint{margin-left:0;width:100%}.dnps-matrix{font-size:9.5px}.dnps-matrix .dnps-fixed-0{width:78px;min-width:78px;max-width:78px}.dnps-matrix .dnps-fixed-1{left:78px;width:45px;min-width:45px;max-width:45px}.dnps-matrix .dnps-fixed-2{left:123px;width:155px;min-width:155px;max-width:155px}.dnps-matrix .dnps-fixed-3{left:278px;width:48px;min-width:48px;max-width:48px}.dnps-matrix .dnps-fixed-4{left:326px;width:62px;min-width:62px;max-width:62px}.dnps-matrix-chartlabel{width:388px;min-width:388px}.dnps-matrix-stage{font-size:9px}.dnps-matrix-edit{font-size:9px!important}}
@media print{.dnps-matrix-scroll{overflow:visible!important;max-height:none!important}.dnps-matrix-panel{page-break-before:always}.dnps-matrix{font-size:7px!important}.dnps-matrix td,.dnps-matrix th{position:static!important}.dnps-matrix-chartlabel{position:static!important}}

/* Mobile: retain the task name and weighting while allowing weekly columns to be seen. */
.dnps-phase-mobile,.dnps-matrix-mobile-wbs{display:none}
.dnps-matrix-scroll{max-height:none}
@media(max-width:650px){
 .dnps-matrix .dnps-fixed-0,.dnps-matrix .dnps-fixed-1,.dnps-matrix .dnps-fixed-3{display:none!important}
 .dnps-matrix .dnps-fixed-2{left:0;width:155px;min-width:155px;max-width:155px}
 .dnps-matrix .dnps-fixed-4{left:155px;width:60px;min-width:60px;max-width:60px}
 .dnps-matrix-chartlabel{position:sticky;left:0;width:215px;min-width:215px;z-index:10}
 .dnps-phase-mobile,.dnps-matrix-mobile-wbs{display:inline}
 .dnps-matrix .dnps-matrix-edit{max-height:48px}
}


/* V1.3 — Excel-inspired cumulative curve overlaid ON the WBS / weekly matrix. */
.dnps-matrix-layer{position:relative;width:max-content;min-width:100%}
.dnps-matrix-overlay{position:absolute;z-index:7;pointer-events:none;overflow:visible;contain:layout;}
.dnps-matrix-overlay svg{display:block;overflow:visible;max-width:none!important;pointer-events:none}
.dnps-overlay-grid{stroke:rgba(57,103,136,.25);stroke-width:1;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.dnps-overlay-tick{font-size:11px;font-weight:800;fill:#2b506a;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.dnps-overlay-halo{fill:none;stroke:#fff;stroke-width:7px;opacity:.88;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dnps-overlay-plan{fill:none;stroke:#2879c7;stroke-width:3.6px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #fff)}
.dnps-overlay-actual{fill:none;stroke:#e23d4c;stroke-width:3.6px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #fff)}
.dnps-overlay-point-plan{fill:#2879c7;stroke:#fff;stroke-width:1.3px;vector-effect:non-scaling-stroke}
.dnps-overlay-point-actual{fill:#e23d4c;stroke:#fff;stroke-width:1.3px;vector-effect:non-scaling-stroke}
.dnps-overlay-key{display:inline-flex;align-items:center;gap:6px;margin-left:16px;font-weight:650;color:#526478}
.dnps-overlay-key i{display:inline-block;width:18px;height:3px;border-radius:5px;background:#2879c7;margin-left:5px}
.dnps-overlay-key i.dnps-overlay-key-actual{background:#e23d4c}
.dnps-matrix-layout-switch{display:inline-flex;border:1px solid #d1e0ec;border-radius:9px;padding:3px;background:#edf3f8;gap:3px}
.dnps-matrix-layout-switch button{background:transparent;border:0;border-radius:7px;padding:6px 9px;color:#5b6e81;font-size:11px;font-weight:700;cursor:pointer}
.dnps-matrix-layout-switch button.is-active{background:#fff;color:#20577e;box-shadow:0 1px 3px #19426722}
.dnps-matrix-layout-switch button:focus-visible{outline:2px solid #2879c7;outline-offset:2px}
@media print{.dnps-matrix-layer{width:max-content}.dnps-matrix-overlay{z-index:7!important}}

/* V1.3.1 — dedicated 100% curve level above, not on, the first activity row. */
.dnps-matrix .dnps-matrix-axis-cap td{height:26px!important;min-height:26px!important;background:#f3f8fc!important;border-bottom:1px dashed #bfd2e2!important}
.dnps-matrix .dnps-matrix-axis-cap-left{text-align:right!important;color:#8ba0b2!important;font-size:9px!important;font-weight:700!important;letter-spacing:.02em;padding-right:12px!important;white-space:nowrap}
.dnps-matrix .dnps-matrix-axis-cap-weeks{background:linear-gradient(90deg,#eff6fb,#f7fafc)!important}
