/* Manager Workbench case presentation on the shared Unified modal surface. */
.unified-manager-case{
  position:relative;display:grid;gap:12px;width:100%;min-width:0;
  color:var(--pt-u-ink);font-size:12px;line-height:1.7
}
.unified-manager-case *{box-sizing:border-box;min-width:0}
.unified-manager-case [data-unified-case-header]{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,auto);
  align-items:start;gap:12px;padding:0 48px 12px 0;border-bottom:1px solid var(--pt-u-border)
}
.unified-manager-case [data-unified-case-header]>div:first-child{display:grid;gap:3px;align-content:start}
.unified-manager-case [data-unified-case-header]>div:first-child>small,
.unified-manager-case [data-unified-case-sla]>small{color:var(--pt-u-muted);font-size:10px;font-weight:800}
.unified-manager-case [data-unified-case-header] h2{margin:0;color:var(--pt-u-ink);font-size:18px;line-height:1.5}
.unified-manager-case [data-unified-case-header] span{color:var(--pt-u-ink-soft);font-size:11px}
.unified-manager-case [data-unified-case-sla]{display:grid;gap:3px;padding:8px 10px;border:1px solid var(--pt-u-border);border-radius:9px;background:var(--pt-u-surface-soft)}
.unified-manager-case [data-unified-case-sla] b{color:var(--pt-u-primary-deep);font-size:11px}
.unified-manager-case [data-unified-case-close]{
  position:absolute;inset-block-start:0;inset-inline-start:0;display:grid;place-items:center;
  width:36px;height:36px;min-height:36px;border:1px solid var(--pt-u-border);
  border-radius:9px;background:#fff;color:var(--pt-u-ink);font-size:22px;line-height:1;cursor:pointer
}
.unified-manager-case [data-unified-case-close]:hover{background:var(--pt-u-surface-soft);border-color:var(--pt-u-border-strong)}
.unified-manager-case__body{display:grid;gap:10px;min-width:0}
.unified-manager-case__body>section{
  min-width:0;padding:11px 12px;border:1px solid var(--pt-u-border);
  border-radius:10px;background:var(--pt-u-surface)
}
.unified-manager-case__body>section>div:first-child,
.unified-manager-case__body>section>header:first-child{
  display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px
}
.unified-manager-case__body h3{margin:0;color:var(--pt-u-ink);font-size:12px;line-height:1.6}
.unified-manager-case__body h4{margin:0;color:var(--pt-u-primary-deep);font-size:11px}
.unified-manager-case__body section>div:first-child>span,
.unified-manager-case__body section>div:first-child>b{color:var(--pt-u-muted);font-size:10px}
.unified-manager-case [data-unified-case-summary]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.unified-manager-case__body>[data-unified-case-summary]>div:first-child{display:grid;align-content:start;gap:3px;margin:0}
.unified-manager-case [data-unified-case-summary]>div,
.unified-manager-case__kv>div,
.unified-manager-case__deadline-grid>article,
.unified-manager-case__two-flow>article{
  display:grid;align-content:start;gap:3px;min-width:0;padding:9px 10px;
  border:1px solid var(--pt-u-border);border-radius:8px;background:var(--pt-u-surface-soft)
}
.unified-manager-case [data-unified-case-summary] small,
.unified-manager-case__kv small,
.unified-manager-case__deadline-grid small,
.unified-manager-case__two-flow small{color:var(--pt-u-muted);font-size:10px}
.unified-manager-case [data-unified-case-summary] b,
.unified-manager-case__kv b,
.unified-manager-case__deadline-grid b,
.unified-manager-case__two-flow b{overflow-wrap:anywhere;color:var(--pt-u-ink);font-size:11px}
.unified-manager-case [data-unified-case-summary] span{color:var(--pt-u-ink-soft);font-size:10px;overflow-wrap:anywhere}
.unified-manager-case__deadline-grid,.unified-manager-case__two-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.unified-manager-case__kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.unified-manager-case__body .grid-wrap{width:100%;max-width:100%;min-width:0;overflow:auto;border:1px solid var(--pt-u-border);border-radius:8px}
.unified-manager-case__body .grid-wrap table{width:100%;min-width:680px;border-collapse:collapse;background:#fff;color:var(--pt-u-ink);font-size:11px}
.unified-manager-case__body .grid-wrap th{padding:8px 9px;background:var(--pt-u-surface-soft);color:var(--pt-u-ink-soft);text-align:right;white-space:nowrap;border-bottom:1px solid var(--pt-u-border)}
.unified-manager-case__body .grid-wrap td{padding:8px 9px;vertical-align:top;line-height:1.65;border-bottom:1px solid var(--pt-u-border);overflow-wrap:anywhere}
.unified-manager-case__body .grid-wrap tbody tr:last-child td{border-bottom:0}
.unified-manager-case__body .grid-wrap td small{display:block;margin-top:2px;color:var(--pt-u-muted);font-size:10px}
.unified-manager-case [data-unified-case-requirements]{display:grid;gap:7px}
.unified-manager-case [data-unified-case-requirement]{padding:8px 10px;border:1px solid var(--pt-u-border);border-radius:8px;background:var(--pt-u-surface-soft)}
.unified-manager-case [data-unified-case-requirement]>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;background:transparent;text-align:right;font:inherit;cursor:pointer}
.unified-manager-case [data-unified-case-requirement]>button>span{display:grid;gap:2px}
.unified-manager-case [data-unified-case-requirement] small{color:var(--pt-u-muted);font-size:10px}
.unified-manager-case [data-unified-case-requirement] strong{white-space:nowrap;color:var(--pt-u-primary-deep);font-size:10px}
.unified-manager-case [data-unified-case-requirement][class~="blocked"]{border-color:#e8c7c2;background:#fff8f7}
.unified-manager-case [data-unified-case-requirement][class~="warning"]{border-color:#ead7b0;background:#fffdf5}
.unified-manager-case [data-unified-case-requirement] [data-unified-case-evidence-panel]{padding-top:7px;color:var(--pt-u-ink-soft)}
.unified-manager-case [data-unified-case-external-supply-actions]{display:flex;flex-wrap:wrap;gap:7px;margin-block:8px}
.unified-manager-case [data-unified-case-external-supply-actions] button{min-height:36px;padding:6px 10px;border:1px solid var(--pt-u-border-strong);border-radius:8px;background:#fff;color:var(--pt-u-ink);font:inherit;cursor:pointer}
.unified-manager-case [data-unified-case-timeline]{display:grid;gap:6px;margin:0;padding-inline-start:20px}
.unified-manager-case [data-unified-case-timeline] li{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-radius:7px;background:var(--pt-u-surface-soft)}
.unified-manager-case [data-unified-case-timeline] time{color:var(--pt-u-muted);font-size:10px;white-space:nowrap}
.unified-manager-case [data-unified-case-actions]{
  position:sticky;inset-block-end:-20px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 -20px -20px;padding:12px 20px;background:var(--pt-u-surface);border-top:1px solid var(--pt-u-border)
}
.unified-manager-case [data-unified-case-actions]>div:first-child{display:grid;gap:2px}
.unified-manager-case [data-unified-case-actions] small{color:var(--pt-u-muted);font-size:10px}
.unified-manager-case [data-unified-case-actions] button{min-height:40px;max-width:100%;padding:7px 13px;border:1px solid var(--pt-u-primary);border-radius:8px;background:var(--pt-u-primary);color:#fff;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.unified-manager-case [data-unified-case-actions] button:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:760px){
  .unified-manager-case [data-unified-case-header]{grid-template-columns:minmax(0,1fr);padding-inline-start:44px}
  .unified-manager-case [data-unified-case-summary],.unified-manager-case__kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .unified-manager-case [data-unified-case-actions]{align-items:stretch;flex-direction:column;margin-inline:-14px;margin-block-end:-14px;padding:10px 14px}
  .unified-manager-case [data-unified-case-actions]>div:last-child,.unified-manager-case [data-unified-case-actions] button{width:100%}
}
@media(max-width:480px){
  .unified-manager-case [data-unified-case-summary],.unified-manager-case__deadline-grid,.unified-manager-case__two-flow,.unified-manager-case__kv{grid-template-columns:minmax(0,1fr)}
  .unified-manager-case [data-unified-case-header]{padding-inline-start:42px}
  .unified-manager-case__body>section{padding:9px}
  .unified-manager-case [data-unified-case-timeline] li{align-items:flex-start;flex-direction:column;gap:2px}
}
