/* Production views use actual project records; all layout stays scoped. */
.pd-planning-note { margin:15px 0 2px; font-size:12px; font-weight:400; color:var(--muted); padding:10px 12px; background:#eef3ec; border-radius:7px; }
.pd-workspace { max-width:1600px; margin:0 auto; min-width:0; }
.pd-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin:0 0 24px; }
.pd-heading h1 { font-size:25px; line-height:1.3; letter-spacing:-.5px; margin:0 0 7px; }
.pd-heading p { margin:0; color:var(--muted); max-width:750px; }
.pd-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pd-panel { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:19px; min-width:0; }
.pd-panel h3,.pd-inspector h3 { margin:0 0 12px; font-size:15px; }
.pd-panel h2 { margin:0; font-size:19px; }
.pd-panel>h3:not(:first-child) { margin-top:24px; }
.pd-section { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.pd-section h3 { margin:0; }
.pd-section small { color:var(--muted); }
.pd-overview-grid,.pd-settings-layout { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; }
.pd-overview-grid { margin-top:20px; }
.pd-kpis { display:flex; border:1px solid var(--line); border-radius:10px; background:var(--surface); overflow:hidden; margin-bottom:20px; }
.pd-kpi { flex:1; min-width:0; padding:16px 20px; display:flex; flex-direction:column; align-items:flex-start; text-align:left; border:0; border-right:1px solid var(--line); background:transparent; color:var(--ink); }
.pd-kpi:last-child { border-right:0; }
.pd-kpi:hover { background:var(--teal-soft); }
.pd-kpi span { color:var(--muted); font-size:12px; }
.pd-kpi strong { font-size:27px; line-height:1.4; font-weight:650; }
.pd-kpi small { font-size:10px; color:var(--muted); }
.pd-table-wrap { max-width:100%; min-width:0; overflow:auto; border:1px solid var(--line); background:var(--surface); border-radius:8px; }
.pd-panel>.pd-table-wrap { margin:0 -1px; }
.pd-table { width:100%; border-collapse:collapse; font-size:12px; }
.pd-table th { font-weight:600; text-align:left; background:#edf1eb; color:#586c63; font-size:11px; white-space:nowrap; }
.pd-table td,.pd-table th { padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.pd-table tbody tr:last-child>* { border-bottom:0; }
.pd-table tbody tr:hover { background:#f5f8f2; }
.pd-table td .ghost { text-align:left; padding:2px 0; color:var(--teal); font-weight:550; }
.pd-cell-note { color:var(--muted); max-width:480px; margin:3px 0 0; overflow-wrap:anywhere; }
.pd-cell-empty { color:#aab2aa; }
.pd-status,.pd-flag,.pd-severity { display:inline-flex; align-items:center; white-space:nowrap; padding:2px 6px; border-radius:4px; font-size:10px; line-height:1.65; margin:2px 3px 2px 0; }
.pd-status { background:#eef1eb; color:#637469; }
.pd-state-进行中 { background:#e4eeed; color:#226556; }
.pd-state-待审核 { background:#f3eddd; color:#8a6b25; }
.pd-state-已完成 { background:#e1eee3; color:#3f6b43; }
.pd-state-需修改,.pd-state-阻塞,.pd-flag { background:#f7e6de; color:#a35237; }
.pd-severity { background:#eef1eb; color:#66746a; }
.pd-severity-紧急 { color:#9a3b34; background:#f5e0da; }
.pd-severity-重要 { color:#9a6934; background:#f4ead9; }
.pd-overdue { color:#a14537; font-weight:550; }
.pd-meter { height:5px; background:#e9ede6; border-radius:5px; overflow:hidden; min-width:65px; }
.pd-meter>span { display:block; height:100%; background:#438174; border-radius:inherit; }
.pd-milestone { padding:12px 0; border-bottom:1px solid var(--line); }
.pd-milestone:last-child { border-bottom:0; }
.pd-milestone>div:first-child { display:flex; gap:8px; justify-content:space-between; margin-bottom:8px; }
.pd-milestone p { color:var(--muted); font-size:12px; margin:7px 0 0; }
.pd-milestone p button { float:right; }
.pd-risk-line { display:flex; gap:8px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); min-width:0; }
.pd-risk-line:last-child { border-bottom:0; }
.pd-risk-line button { min-width:0; text-align:left; overflow-wrap:anywhere; }
.pd-risk-line small { margin-left:auto; white-space:nowrap; color:var(--muted); font-size:11px; }
.pd-activity article { border-left:2px solid var(--line); padding:0 0 14px 13px; }
.pd-activity small { font-size:10px; color:var(--muted); }
.pd-activity p { font-size:12px; margin:3px 0 0; }
.pd-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.pd-toolbar>input { flex:1; min-width:150px; max-width:300px; }
.pd-toolbar>select { max-width:240px; }
.pd-toolbar .pd-actions { margin-left:auto; }
.pd-toolbar .pd-field { margin:0; display:flex; align-items:center; gap:8px; }
.pd-tabs { display:flex; background:#e9ede5; padding:3px; border-radius:7px; flex:none; }
.pd-tabs button { border:0; border-radius:5px; padding:7px 12px; color:#647268; background:transparent; font-size:12px; }
.pd-tabs button.active { color:var(--teal); background:var(--surface); box-shadow:0 1px 4px #122c2010; font-weight:600; }
.pd-bulk { display:flex; gap:8px; align-items:center; padding:9px 0; margin-bottom:9px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.pd-bulk .primary { margin-left:auto; }
.pd-matrix .pd-table { table-layout:auto; width:max-content; min-width:100%; }
.pd-matrix .pd-table td { min-width:135px; vertical-align:top; padding:9px; }
.pd-shot-column { position:sticky; left:0; z-index:2; min-width:120px; max-width:190px; background:#eef1eb; border-right:1px solid var(--line); }
.pd-shot-column small { font-weight:400; color:var(--muted); display:block; white-space:normal; }
.pd-matrix-task { display:flex; gap:4px; align-items:flex-start; padding:4px 0; }
.pd-matrix-task>input { margin-top:7px; }
.pd-matrix-task>button { flex:1; background:none; border:0; padding:0 3px; text-align:left; min-width:0; }
.pd-matrix-task small { display:block; font-size:10px; color:var(--muted); }
.pd-flow-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:15px; }
.pd-flow-scroll { border:1px solid var(--line); border-radius:10px; overflow:auto; min-height:460px; background-color:#f8faf5; background-image:radial-gradient(#cfdbcf .7px,transparent .7px); background-size:16px 16px; max-height:70vh; }
.pd-flow-size { position:relative; min-width:100%; }
.pd-flow-canvas { position:absolute; left:0; top:0; transform-origin:top left; }
.pd-flow-canvas>svg { position:absolute; left:0; top:0; pointer-events:none; }
.pd-edges>path { fill:none; stroke:#789d8d; stroke-width:1.8px; }
.pd-flow-canvas marker path { fill:#789d8d; }
.pd-node { position:absolute; display:flex; flex-direction:column; align-items:flex-start; width:196px; min-height:88px; padding:11px 14px; border:1px solid #cbdcd0; border-left:3px solid #529486; border-radius:7px; background:#fffefa; box-shadow:0 3px 9px #1230270b; text-align:left; color:var(--ink); }
.pd-node small { color:var(--muted); font-size:10px; }
.pd-node strong { font-size:14px; margin:1px 0 4px; }
.pd-node span { color:#587267; font-size:10px; }
.pd-node em { font-size:9px; color:#a35337; font-style:normal; margin-top:2px; }
.pd-node.selected { outline:2px solid #225c4e; outline-offset:2px; }
.pd-node-blocked { border-left-color:#ba8661; }
.pd-inspector { border:1px solid var(--line); border-radius:10px; padding:18px; background:var(--surface); }
.pd-inspector>small { color:var(--muted); font-size:11px; }
.pd-inspector p { color:var(--muted); font-size:12px; }
.pd-inspector dl,.pd-task-summary dl { display:grid; grid-template-columns:1fr; gap:4px; font-size:12px; }
.pd-inspector dt,.pd-task-summary dt { color:var(--muted); font-size:10px; margin-top:10px; }
.pd-inspector dd,.pd-task-summary dd { margin:0; overflow-wrap:anywhere; }
.pd-capacity { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:20px 0 8px; }
.pd-capacity article { padding:13px 16px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.pd-capacity article>small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.pd-capacity article>div:not(.pd-meter) { display:flex; align-items:baseline; gap:8px; margin:10px 0; }
.pd-capacity b { font-size:20px; }
.pd-capacity article span,.pd-capacity p { font-size:10px; color:var(--muted); }
.pd-capacity p { margin:7px 0 0; }
.pd-capacity .pd-overloaded { border-color:#d9b08d; background:#fff9ee; }
.pd-overloaded .pd-meter>span { background:#c28b4c; }
.pd-gantt-head,.pd-gantt-row { display:flex; min-height:52px; border-bottom:1px solid var(--line); }
.pd-gantt-head { min-height:38px; background:#edf1eb; color:var(--muted); font-size:11px; }
.pd-gantt-head>div:first-child,.pd-gantt-row>div:first-child { position:sticky; left:0; width:240px; flex:none; background:#fffefa; z-index:2; border-right:1px solid var(--line); padding:8px 12px; }
.pd-gantt-head>div:first-child { background:#edf1eb; }
.pd-gantt-days { display:grid; }
.pd-gantt-days span { text-align:center; align-self:center; border-right:1px solid var(--line); }
.pd-gantt-row>div>small { display:block; padding-left:3px; font-size:10px; color:var(--muted); }
.pd-gantt-track { position:relative; flex:none; background:repeating-linear-gradient(to right,transparent,transparent 51px,#e8ede5 51px,#e8ede5 52px); }
.pd-gantt-bar { position:absolute; top:13px; height:25px; border:0; background:#d7e9e2; color:#275f4e; border-radius:5px; font-size:10px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; padding:3px 6px; }
.pd-gantt-bar.done { background:#e1eadb; color:#577242; }
.pd-gantt-bar.blocked { background:#f2dfc7; color:#95672e; }
.pd-gantt-empty { padding:24px; color:var(--muted); }
.pd-footnote { font-size:11px; color:var(--muted); margin:10px 0 16px; }
.pd-empty { border:1px dashed #ccd9cb; padding:38px 25px; border-radius:10px; background:#f7f9f2; color:var(--muted); text-align:center; margin:18px 0; }
.pd-empty h3 { color:var(--ink); font-size:16px; margin:0 0 6px; }
.pd-empty p { margin:0 auto 18px; max-width:540px; }
.pd-delivery-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; }
.pd-delivery-list { display:flex; flex-direction:column; gap:8px; }
.pd-delivery-list>button { display:flex; flex-direction:column; align-items:flex-start; border:1px solid var(--line); padding:13px 15px; background:var(--surface); color:var(--ink); border-radius:7px; text-align:left; }
.pd-delivery-list>button.active { border-color:#538c77; background:var(--teal-soft); }
.pd-delivery-list span { color:var(--muted); font-size:11px; margin-top:4px; }
.pd-spec-strip { display:flex; gap:7px 15px; flex-wrap:wrap; padding:12px 0; margin:10px 0 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:11px; color:var(--muted); }
.pd-qc { margin-bottom:24px; }
.pd-manifest { font-size:11px; max-height:360px; overflow:auto; background:#f0f4ec; border-radius:6px; padding:12px; }
.pd-workspace details>summary,.pd-modal details>summary { cursor:pointer; color:#456b58; font-weight:550; font-size:12px; padding:10px 0; }
.pd-field { display:flex; flex-direction:column; align-items:stretch; gap:5px; margin-bottom:14px; font-size:12px; }
.pd-field>span { color:#617566; font-size:11px; font-weight:550; }
.pd-field>small { font-size:10px; color:var(--muted); font-weight:400; }
.pd-field input,.pd-field select,.pd-field textarea,.pd-form-grid>div>input { width:100%; min-width:0; }
.pd-check { display:flex; align-items:flex-start; gap:8px; font-size:12px; padding:6px 0; line-height:1.65; }
.pd-check input { margin-top:4px; flex:none; }
.pd-check span { min-width:0; overflow-wrap:anywhere; }
.pd-check small { display:block; font-size:10px; color:var(--muted); }
.pd-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.pd-choice-list { max-height:260px; overflow:auto; padding:9px 12px; border:1px solid var(--line); border-radius:7px; margin-bottom:15px; }
.pd-overlay { position:fixed; inset:0; z-index:100; background:#14292380; backdrop-filter:blur(3px); padding:30px; display:flex; justify-content:center; align-items:center; }
.pd-modal { width:690px; max-width:100%; max-height:calc(100dvh - 60px); display:flex; flex-direction:column; background:var(--surface); border:1px solid #d9e3d6; border-radius:14px; box-shadow:0 25px 90px #05201660; overflow:hidden; }
.pd-modal-wide { width:950px; }
.pd-modal-header { flex:none; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:17px 23px; gap:15px; }
.pd-modal-header h2 { font-size:17px; margin:0; }
.pd-modal>form { min-height:0; display:flex; flex-direction:column; flex:1; }
.pd-modal-body { padding:22px 24px; overflow:auto; min-height:0; flex:1; }
.pd-modal-body .notice { margin-bottom:17px; font-size:12px; }
.pd-modal-body h3 { font-size:14px; margin:21px 0 12px; }
.pd-modal-body h4 { font-size:12px; margin:12px 0 7px; }
.pd-modal-body details { border-top:1px solid var(--line); margin:10px 0; }
.pd-modal-body details>summary { padding:12px 0; }
.pd-modal-footer { flex:none; display:flex; justify-content:flex-end; align-items:center; gap:8px; border-top:1px solid var(--line); padding:14px 24px; background:#f8faf5; flex-wrap:wrap; }
.pd-error { font-size:12px; color:#a14537; margin:12px 0; }
.pd-error:empty { display:none; }
.pd-stage-row { border:1px solid var(--line); border-radius:7px; padding:15px; margin-bottom:14px; }
.pd-stage-row>.pd-section strong { font-size:12px; color:var(--muted); }
.pd-stage-row input[type=color] { height:35px; padding:4px; }
.pd-task-summary p { white-space:pre-wrap; }
.pd-task-summary dl { grid-template-columns:130px minmax(0,1fr); padding:8px 0; }
.pd-task-summary dt { margin:0; }
.pd-output-history { border-bottom:1px solid var(--line); padding:12px 0; font-size:12px; }
.pd-output-history strong { font-size:11px; }
.pd-output-history p { margin:5px 0; color:var(--muted); }
.pd-delivery-choice { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10px; margin-bottom:10px; }
.pd-status-output[hidden] { display:none; }
.pd-overview-details { margin-top:23px; }
.pd-overview-details>summary { font-size:12px; color:var(--muted); }
@media (max-width:1100px) {
  .pd-kpi { padding:14px 12px; }
  .pd-overview-grid,.pd-settings-layout { grid-template-columns:1fr; }
  .pd-flow-layout { grid-template-columns:minmax(0,1fr) 210px; }
}
@media (max-width:700px) {
  .pd-heading { display:block; margin-bottom:18px; }
  .pd-heading h1 { font-size:22px; }
  .pd-heading p { font-size:12px; }
  .pd-heading>.pd-actions { margin-top:14px; }
  .pd-heading>.pd-actions>button { flex:1; }
  .pd-kpis { flex-wrap:wrap; }
  .pd-kpi { min-width:33.33%; border-bottom:1px solid var(--line); }
  .pd-kpi strong { font-size:23px; }
  .pd-panel { padding:15px; }
  .pd-overview-grid { gap:12px; }
  .pd-toolbar { gap:8px; }
  .pd-toolbar>input,.pd-toolbar>select { min-width:0; flex:1; max-width:100%; width:140px; }
  .pd-toolbar .pd-actions { margin-left:0; }
  .pd-flow-layout { grid-template-columns:1fr; }
  .pd-flow-scroll { min-height:360px; max-height:50vh; }
  .pd-inspector { padding:15px; }
  .pd-flow-size { min-width:100%; }
  .pd-table { min-width:600px; }
  .pd-bulk { gap:4px; }
  .pd-bulk>span { width:100%; }
  .pd-bulk .primary { margin-left:0; }
  .pd-risk-line { flex-wrap:wrap; }
  .pd-risk-line small { margin-left:0; }
  .pd-capacity { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .pd-capacity article { padding:12px; }
  .pd-capacity article>div:not(.pd-meter) { flex-direction:column; gap:0; }
  .pd-delivery-layout { grid-template-columns:1fr; }
  .pd-delivery-list { flex-direction:row; overflow:auto; }
  .pd-delivery-list>button { flex:none; min-width:180px; }
  .pd-overlay { padding:12px; }
  .pd-modal { border-radius:11px; max-height:calc(100dvh - 24px); }
  .pd-modal-header { padding:14px 16px; }
  .pd-modal-header h2 { font-size:15px; }
  .pd-modal-body { padding:17px 16px; }
  .pd-modal-footer { padding:12px 16px; }
  .pd-modal-footer>button { padding:8px 11px; }
  .pd-form-grid { gap:0 10px; }
  .pd-form-grid .pd-field { min-width:0; }
  .pd-delivery-choice { grid-template-columns:1fr; gap:0; border-bottom:1px solid var(--line); padding-bottom:10px; }
  .pd-task-summary dl { grid-template-columns:1fr; gap:3px; }
  .pd-task-summary dt { margin-top:7px; }
  .pd-stage-row { padding:12px; }
}
.pd-fieldset { margin:0; padding:0; border:0; min-width:0; }
.pd-fieldset[disabled] { opacity:.8; }
.pd-preset-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:15px; font-size:11px; color:var(--muted); }
.pd-state-待接手 { background:#f4ead9; color:#90692d; }
.pd-task-handoff { padding:14px; border:1px solid #d7c5a5; background:#fffbef; border-radius:8px; margin:18px 0; }
.pd-task-handoff p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.pd-handoff-fields { margin:16px 0; padding:13px 15px; border:1px solid #d7c5a5; border-radius:7px; background:#fffbef; }
.pd-handoff-fields[hidden] { display:none; }
.pd-policy-panel { margin-top:18px; }
.pd-policy-version { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; color:var(--muted); margin-bottom:14px; }
.pd-policy-gates { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.pd-policy-gates article { border:1px solid var(--line); border-radius:7px; padding:13px; }
.pd-policy-gates small { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
.pd-policy-gates p { font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.pd-policy-editor [hidden] { display:none; }
.pd-approval-shot { border:1px solid var(--line); border-radius:8px; padding:15px; margin:12px 0; }
.pd-approval-shot>.pd-section { align-items:flex-start; }
.pd-gate { display:flex; justify-content:space-between; gap:15px; padding:13px 0; border-top:1px solid var(--line); }
.pd-gate>div:first-child { min-width:0; }
.pd-gate small { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.pd-gate p { margin:7px 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.pd-gate-action { display:flex; flex:none; flex-direction:column; align-items:flex-end; gap:8px; max-width:170px; text-align:right; }
.pd-result { display:inline-flex; padding:3px 8px; border-radius:5px; background:#eef1eb; color:#637469; font-size:11px; white-space:nowrap; }
.pd-result-通过 { background:#e1eee3; color:#3f6b43; }
.pd-result-退回,.pd-result-失败,.pd-result-权限已撤销,.pd-result-禁止自审 { background:#f7e6de; color:#a35237; }
.pd-result-不适用 { background:#e4eeed; color:#226556; }
.pd-qc-item { padding:15px 0; border-bottom:1px solid var(--line); }
.pd-qc-item p { margin:7px 0; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.pd-qc-item>small { display:block; color:var(--muted); margin:7px 0 12px; }
.pd-evidence-link { display:inline-block; margin:6px 12px 6px 0; font-size:12px; }
.pd-sign-video { display:block; width:100%; max-height:360px; background:#152721; border-radius:8px; margin-bottom:20px; }
@media (max-width:700px) {
  .pd-gate { flex-direction:column; gap:8px; }
  .pd-gate-action { flex-direction:row; align-items:center; max-width:100%; text-align:left; flex-wrap:wrap; }
  .pd-approval-shot { padding:11px; }
  .pd-policy-editor .pd-form-grid { grid-template-columns:1fr; }
  .pd-policy-gates { grid-template-columns:1fr; }
  .pd-qc-item>.pd-section { align-items:flex-start; flex-wrap:wrap; }
}

/* Stable sequence grouping and cross-sequence dependency context. */
.pd-sequence-group th { background:#e7efe8; color:#234c40; text-align:left; padding:12px 14px; }
.pd-sequence-group small { font-weight:400; margin-left:8px; }
.pd-frame-plan { display:block; max-width:240px; white-space:normal; padding:4px 8px; font-size:10px; color:var(--muted); }
.pd-node { height:136px; overflow:hidden; }
.pd-node strong { max-width:100%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pd-node-context { border-style:dashed; background:#f1f3f0; }
.pd-inspector .pd-actions { flex-wrap:wrap; margin:12px 0; }
.pd-inspector dd .small { display:block; max-width:100%; white-space:normal; text-align:left; }
.pd-conflict-badge { display:block; margin-top:7px; color:#88623a; font-size:10px; overflow-wrap:anywhere; }
.pd-task-issues { margin:18px 0; border:1px solid #dec7ad; background:#fbf5ec; border-radius:7px; padding:13px; }
.pd-task-issues article { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:7px 0; }
.pd-task-issues small { display:block; width:100%; color:var(--muted); font-size:11px; }

/* An execution exception stays visually separate from a completed output. */
.pd-state-已跳过 { background:#eee8da; color:#745b24; }
.pd-exception-flag { display:inline-block; margin:4px 5px 0 0; padding:3px 6px; background:#f3ede0; color:#735b2d; font-size:10px; border-radius:4px; }
.pd-exception-stale { background:#f5e2da; color:#9c4932; }
.pd-exception-panel,.pd-delivery-exceptions { margin:18px 0; padding:15px; border:1px solid #d6cba9; border-radius:7px; background:#fbf8ee; }
.pd-exception-invalid { border-color:#ddbaa9; background:#fff3eb; }
.pd-exception-panel p,.pd-delivery-exceptions p { font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.pd-exception-basis { display:grid; grid-template-columns:110px minmax(0,1fr); gap:8px 12px; font-size:12px; margin:15px 0; }
.pd-exception-basis dt { color:var(--muted); }
.pd-exception-basis dd { margin:0; overflow-wrap:anywhere; }
.pd-long-record { white-space:pre-wrap; overflow-wrap:anywhere; max-height:180px; overflow:auto; }
.pd-exception-reason summary { font-size:12px; overflow-wrap:anywhere; cursor:pointer; }
.pd-delivery-exceptions article { padding:12px 0; border-top:1px solid #dfd4b8; }
@media(max-width:540px) {
  .pd-modal-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .pd-modal-footer button { min-width:0; white-space:normal; line-height:1.4; padding:9px; }
  .pd-modal-footer button.primary:last-child { grid-column:1/-1; }
  .pd-exception-basis { grid-template-columns:85px minmax(0,1fr); }
}
.pd-delivery-return-source { border:1px solid #d0bba8; background:#fbf3e9; border-radius:6px; padding:14px; margin-bottom:18px; font-size:12px; overflow-wrap:anywhere; }
.pd-delivery-return-source p { line-height:1.65; }
.pd-delivery-checks { min-width:0; }
