/* Cases is already inset by the workspace shell. The Directory frame owns the rails. */
.case-workspace {min-width:0;color:var(--dir-ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.case-workspace .full-record .record-panel.record-workspace {margin:0;min-height:0;z-index:auto}
.case-workspace .record-columns {min-height:0}
.case-workspace .panel-tools .actions {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.case-workspace .btn svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.case-workspace .panel-tabs {flex-wrap:wrap}
.case-workspace .activity-content>.surface {border:0;padding:0;box-shadow:none;background:transparent}
.case-workspace .activity-content .table-wrap,.case-workspace .activity-content pre {overflow-x:auto}
.case-workspace .activity-content .activity-title:not(:first-child) {margin-top:20px}
.case-workspace .case-property-fields {display:grid;gap:16px}
.case-workspace .property-row>label {width:100%}
.case-workspace .panel-footer .btn:focus-visible,.case-workspace .panel-tabs button:focus-visible,.case-workspace .panel-tools .btn:focus-visible {outline:2px solid #28776d;outline-offset:2px}

.case-workspace-actions {position:relative}
.case-workspace-actions summary {cursor:pointer;list-style:none}
.case-workspace-actions summary::-webkit-details-marker {display:none}
.case-workspace-actions[open] summary {background:var(--dir-tint)}
.case-workspace-actions>div {position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:4;display:grid;gap:3px;width:max-content;max-width:85vw;padding:5px;background:white;border:1px solid var(--dir-line);border-radius:4px;box-shadow:0 5px 18px #142c311e}
.case-workspace-actions>div .btn {justify-content:flex-start}

.case-stage-progress {padding:13px 20px;border-bottom:1px solid var(--dir-line);background:#fbfcfc}
.case-stage-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.case-stage-heading h2 {margin:0;font-size:14px;color:#334f55}
.case-stage-track {display:grid;grid-template-columns:repeat(var(--stage-count),minmax(0,1fr));gap:7px}
.case-stage-step {display:grid;gap:5px;min-width:0;color:var(--dir-muted)}
.case-stage-segment {display:block;height:8px;border-radius:4px;background:#e0e9e6}
.case-stage-step.done .case-stage-segment {background:#6b9b84}
.case-stage-step.current .case-stage-segment {background:var(--dir-accent);box-shadow:inset 0 0 0 1px #245244}
.case-stage-step.current .case-stage-label {font-weight:700;color:var(--dir-accent)}
.case-stage-label {font-size:11px;text-align:center}

@media(max-width:760px) {
  .case-workspace .activity-column .panel-tabs {padding:0 12px}
  .case-workspace .activity-column .panel-tabs button {padding:8px 7px}
  .case-workspace .information-rail .property-row>label {grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center}
  .case-workspace .case-correspondence table {min-width:510px}
  .case-stage-progress {padding:10px 13px}
  .case-stage-track {gap:4px}
  .case-stage-label {display:none}
}
