/* The case roster is the home. Controls appear only when there are saved cases. */
.sd-case-home{padding-top:12px!important;padding-bottom:120px;max-width:1440px}
.sd-case-home .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sd-case-home .v10-list-head{margin:0!important;padding:0}
.sd-case-home .v10-list-head #case-count{font-size:13px}
.sd-case-home .v10-list-head:has(#case-count:empty){display:none}
.sd-case-home #case-home-status{font-size:12px;color:var(--sd-muted);margin:4px 0}
.sd-case-home .sd-hospital-unit{margin:16px 0 28px}
.sd-case-home .sd-unit-heading{margin-bottom:12px;padding:12px 0}
.sd-case-home .sd-unit-heading h2{font-size:clamp(18px,3.2vw,23px)}
.sd-case-home [data-case-layout=cards] .sd-unit-cases{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}
.sd-case-home [data-case-layout=cards] .v10-case-item{background:#fff;border:1px solid #dce7e3;border-radius:16px;box-shadow:none;min-width:0}
.sd-case-home .v10-case-kicker{line-height:1.5}
.sd-case-home .case-action-dock{display:flex;align-items:center;gap:5px;position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:7px;background:#fffef9f5;border:1px solid #d6e2dc;border-radius:34px;box-shadow:0 5px 24px #163f3620;z-index:12;backdrop-filter:blur(16px)}
.sd-case-home .case-action-dock[hidden],.sd-case-home [hidden]{display:none!important}
.sd-case-home .case-action-dock button,.sd-case-home .case-action-dock a{display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;padding:0;font-size:24px;background:transparent;text-decoration:none;color:var(--sd-accent);min-width:48px}
.sd-case-home .case-action-dock button:hover{background:#e6f0eb}
.sd-case-home .case-action-dock .case-add-icon{background:#185d4d;color:#fff}
.sd-case-home .sd-view-toggle{margin:0}
.sd-case-home .sd-empty-cases{min-height:calc(100dvh - 220px);display:grid;place-items:center;border:0;background:none;padding:0}
.sd-case-home .case-add-bubble{display:flex;align-items:center;justify-content:center;gap:12px;min-height:76px;padding:18px 32px;background:#185d4d;color:#fff;text-decoration:none;border-radius:50px;font-size:22px;font-weight:600;box-shadow:0 8px 32px #1a614326}
.sd-case-home .case-add-bubble span{font-size:30px;font-weight:400}
.sd-case-home #case-search-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;align-items:end;margin-top:24px;border-radius:16px;min-width:0}
.sd-case-home #case-search-panel label{margin:0;min-width:0;text-align:left}
.sd-case-home #case-search-panel input,.sd-case-home #case-search-panel select{width:100%;min-width:0;min-height:48px}
.sd-case-home #case-search-panel .v10-archive{display:flex;gap:10px;align-items:center;justify-content:start}
.sd-case-home #case-search-panel [type=checkbox]{width:22px;min-height:22px}
@media(max-width:520px){.sd-case-home{padding:12px 16px 120px}.sd-case-home .sd-unit-count{font-size:12px}.sd-case-home #case-search-panel{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.sd-case-home *{scroll-behavior:auto!important}}

.sd-case-home .v10-list-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sd-case-home #case-table-host{max-height:none!important;height:auto;overflow:visible!important}

/* #codeflow# Open is the card's one primary action. Destructive/technical
 * actions belong to its single accessible disclosure, never the roster face. */
