/* V45 case details and unified work queues. */
.st45c-summary,.st45c-dialog,.st45c-case-history{color:#ededed;font-family:inherit;box-sizing:border-box;min-width:0}.st45c-summary *,.st45c-dialog *,.st45c-case-history *{box-sizing:border-box}
.st45c-summary button,.st45c-dialog button,.st45c-case-history button{min-height:40px;border:1px solid #4e4e4e;background:#2f2f2f;color:#ebebeb;border-radius:10px;padding:9px 12px;font:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:normal}.st45c-summary button:hover,.st45c-dialog button:hover,.st45c-case-history button:hover{border-color:#f49353}.st45c-dialog button:disabled,.st45c-case-history button:disabled{opacity:.4;cursor:default}.st45c-summary :focus-visible,.st45c-dialog :focus-visible,.st45c-case-history :focus-visible{outline:2px solid #ffa061;outline-offset:2px}
.st45c-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:4px 0 13px}.st45c-summary-head h3{font-size:17px;margin:5px 0;color:#f5f5f5}.st45c-eyebrow{color:#e6a171;font-weight:800;font-size:9px;letter-spacing:.13em}.st45c-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.st45c-counts>button{display:grid!important;grid-template-columns:35px 1fr;text-align:left;align-items:center;gap:9px!important;min-width:0;min-height:68px!important;padding:12px!important;border-color:#4a4a4a!important}.st45c-counts b{font-size:25px;color:#ffa365}.st45c-counts span{font-size:11px;overflow-wrap:anywhere}.st45c-summary .st45c-overdue{display:flex!important;align-items:center;gap:10px!important;text-align:left;width:100%;margin-top:12px;border-color:#6d5338;background:#34291f}.st45c-overdue b{font-size:22px;color:#f6b16d}.st45c-overdue span{font-size:11px}.st45c-overdue span:last-child{margin-left:auto}.st45c-note{font-size:11px!important;color:#adadad;line-height:1.6!important;overflow-wrap:anywhere}.st45c-summary>small{color:#979797;font-size:9px;display:block;margin-top:12px}.st45c-error{padding:12px;border:1px solid #976446;border-radius:10px;background:#35251e;color:#f2c5aa;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.st45c-row{border:1px solid #484848;border-radius:12px;padding:13px;margin:11px 0;background:#232323;min-width:0}.st45c-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:7px}.st45c-kind{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#afafaf}.st45c-priority{font-size:9px;color:#ffbe83;border:1px solid #9a693e;padding:4px 6px;border-radius:20px;margin-left:5px}.st45c-row>button[data-st45c=open]{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px!important;min-height:32px!important;padding:3px 0!important;background:none!important;border:0!important;width:100%;text-align:left}.st45c-row>button strong{font-size:13px;overflow-wrap:anywhere;min-width:0}.st45c-row>button>span{font-size:10px;color:#f7a56b;white-space:nowrap}.st45c-row>strong{font-size:12px}.st45c-row>p{font-size:11px;color:#bbbbbb}.st45c-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;color:#a5a5a5;line-height:1.6;margin-top:8px}.st45c-meta strong{font-size:12px;color:#d9d9d9}.st45c-triage{display:flex!important;align-items:center;gap:10px!important;margin-top:12px!important;font-size:10px!important;color:#b1b1b1!important}.st45c-triage select{min-height:32px!important;padding:5px 8px!important;width:auto!important;font-size:12px!important;max-width:140px;border:1px solid #606060;border-radius:8px;background:#1d1d1d;color:#e9e9e9}
.st45c-dialog{background:#1c1c1c;border:1px solid #4f4f4f;border-radius:18px;max-width:calc(100vw - 24px);width:920px;max-height:calc(100dvh - 28px);padding:0;overflow:hidden;box-shadow:0 20px 90px #000a}.st45c-dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}.st45c-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #464646}.st45c-dialog h2{font-size:25px;margin:5px 0 0;letter-spacing:-.03em}.st45c-dialog h3{font-size:15px;margin-top:20px}.st45c-body{max-height:calc(100dvh - 140px);overflow:auto;padding:20px 24px;overscroll-behavior:contain}.st45c-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #4a4a4a;border-radius:12px;background:#252525}.st45c-filters label{display:grid;gap:8px;font-size:11px;color:#c9c9c9;font-weight:600;min-width:0}.st45c-filters input,.st45c-filters select{font:inherit;font-size:14px;color:#eeeeee;background:#181818;border:1px solid #606060;border-radius:9px;min-height:42px;padding:9px;width:100%;min-width:0;max-width:100%}.st45c-filters .st45c-check{display:flex;align-items:center;gap:8px;font-size:10px}.st45c-check input{width:18px;height:18px;min-height:18px;accent-color:#ff8c3d}.st45c-filters>button{align-self:end;background:#ee843e;color:#1b1b1b;border-color:#ee843e;height:42px}.st45c-pager{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0 5px}.st45c-pager span{font-size:10px;color:#a5a5a5}.st45c-record{margin:18px 0}.st45c-record>div{display:grid;grid-template-columns:1fr 1.5fr;gap:18px;padding:11px 0;border-bottom:1px solid #464646}.st45c-record dt{font-size:11px;color:#a8a8a8}.st45c-record dd{font-size:12px;color:#e4e4e4;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.st45c-case-history{border-top:1px solid #4e4e4e;margin-top:24px;padding-top:20px;flex:0 0 auto!important}.st45c-record-links{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.st45c-case-history .st45c-record-links button{font-size:11px;flex:1 1 auto}.st45c-case-history .st45c-history-title{font-size:16px;margin:22px 0 10px}.st45c-requests{border:1px solid #505050;border-radius:10px;padding:12px;margin-top:15px!important}.st45c-requests>summary{font-size:12px;cursor:pointer;color:#d4d4d4}.st45c-timeline{list-style:none;margin:16px 0;padding:0 0 0 15px;border-left:1px solid #5f5f5f}.st45c-timeline>li{position:relative;padding:0 0 21px 8px;min-width:0}.st45c-timeline>li:before{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#ffa66a;left:-19px;top:4px}.st45c-timeline li>div{display:flex;gap:9px;justify-content:space-between;flex-wrap:wrap}.st45c-timeline strong{font-size:12px;overflow-wrap:anywhere}.st45c-timeline time{font-size:9px;color:#a3a3a3}.st45c-timeline small{color:#909090;font-size:9px;display:block;margin-top:5px}.st45c-prose{font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.st45c-timeline pre{background:#1a1a1a;color:#cdcdcd;border:1px solid #505050;padding:10px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.5}.st45c-timeline summary{font-size:10px;cursor:pointer}
@media(max-width:620px){.st45c-counts{gap:8px}.st45c-counts>button{grid-template-columns:26px 1fr;padding:10px!important}.st45c-counts b{font-size:22px}.st45c-counts span{font-size:10px}.st45c-dialog{max-width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:14px}.st45c-dialog>header{padding:16px}.st45c-dialog h2{font-size:22px}.st45c-body{padding:14px;max-height:calc(100dvh - 116px)}.st45c-filters{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.st45c-filters input,.st45c-filters select{font-size:16px}.st45c-filters>label:nth-child(4){grid-column:1/-1}.st45c-filters .st45c-check{grid-column:1/-1}.st45c-filters>button{grid-column:1/-1}.st45c-record>div{grid-template-columns:minmax(80px,.75fr) minmax(0,1fr);gap:12px}.st45c-summary-head h3{font-size:15px}.st45c-meta{font-size:9px}.st45c-timeline li>div{display:grid}.st45c-case-history .st45c-record-links button{font-size:10px}}

/* Match the overview and queue drill-down to the dedicated Staff theme. */
html.staff-ui-v1 .st45c-summary,html.staff-ui-v1 .st45c-dialog{color:#f5f5f5}
html.staff-ui-v1 .st45c-summary button,html.staff-ui-v1 .st45c-dialog button{background:var(--s6-raised,#1c1c1c);border-color:var(--s6-border,#303030);color:#f1f1f1;min-height:44px}
html.staff-ui-v1 .st45c-summary button:hover:not(:disabled),html.staff-ui-v1 .st45c-dialog button:hover:not(:disabled){border-color:var(--s6-orange,#ff6500)}
html.staff-ui-v1 .st45c-summary-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
html.staff-ui-v1 .st45c-summary-head h3{color:#f5f5f5}
html.staff-ui-v1 .st45c-eyebrow{color:var(--s6-orange,#ff6500)}
html.staff-ui-v1 .st45c-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
html.staff-ui-v1 .st45c-counts>button{grid-template-columns:minmax(24px,max-content) minmax(0,1fr);border-color:var(--s6-border,#303030)!important}
html.staff-ui-v1 body .st45c-counts b{color:#ff9a56;font-size:24px;font-weight:750;line-height:1.15}
html.staff-ui-v1 .st45c-counts span{font-size:12px;line-height:1.4}
html.staff-ui-v1 .st45c-summary .st45c-overdue{border-color:#614125;background:#261d17}
html.staff-ui-v1 body .st45c-overdue b{color:#ff9a56;font-size:22px;font-weight:750}
html.staff-ui-v1 .st45c-overdue span{font-size:12px}
html.staff-ui-v1 .st45c-summary .st45c-note,html.staff-ui-v1 .st45c-dialog .st45c-note{color:var(--s6-muted,#a5a5a5)}
html.staff-ui-v1 .st45c-summary>small{color:var(--s6-muted,#a5a5a5)}
html.staff-ui-v1 .st45c-summary .st45c-row,html.staff-ui-v1 .st45c-dialog .st45c-row{background:var(--s6-panel,#151515);border-color:var(--s6-border,#303030)}
html.staff-ui-v1 .st45c-row-top>div{display:flex;gap:5px;flex-wrap:wrap}
html.staff-ui-v1 .st45c-kind,html.staff-ui-v1 .st45c-meta,html.staff-ui-v1 .st45c-pager span{color:var(--s6-muted,#a5a5a5)}
html.staff-ui-v1 body .st45c-summary .st45c-priority,html.staff-ui-v1 .st45c-dialog .st45c-priority{display:inline-block;margin-left:0;font-size:10px;font-weight:650;line-height:1.4;color:#ffc094;border-color:#614125;background:#261d17}
html.staff-ui-v1 .st45c-meta strong{color:#e4e4e4}
html.staff-ui-v1 .st45c-triage{color:var(--s6-muted,#a5a5a5)!important}
html.staff-ui-v1 .st45c-dialog{background:var(--s6-panel,#151515);border-color:var(--s6-border,#303030)}
html.staff-ui-v1 .st45c-dialog>header{border-color:var(--s6-border,#303030)}
html.staff-ui-v1 .st45c-filters{background:var(--s6-raised,#1c1c1c);border-color:var(--s6-border,#303030)}
html.staff-ui-v1 .st45c-filters label{color:#cbcbcb}
html.staff-ui-v1 .st45c-filters input,html.staff-ui-v1 .st45c-filters select,html.staff-ui-v1 .st45c-triage select{background:#0f0f0f;color:#ebebeb;border-color:#404040}
html.staff-ui-v1 .st45c-filters>button{background:var(--s6-orange,#ff6500);border-color:var(--s6-orange,#ff6500);color:#fff}
/* Let the actual header height determine the available scroll area on short screens. */
.st45c-dialog[open]{display:flex;flex-direction:column}
.st45c-dialog>header{flex:0 0 auto;min-width:0}
.st45c-dialog>header>div{min-width:0;overflow-wrap:anywhere}
.st45c-dialog>header>button{flex:0 0 auto}
.st45c-dialog .st45c-body{min-height:0;max-height:none;flex:1 1 auto}
@media(max-width:380px){html.staff-ui-v1 .st45c-counts>button{gap:7px!important;padding:10px 8px!important}html.staff-ui-v1 .st45c-counts span{font-size:11px}.st45c-filters{grid-template-columns:minmax(0,1fr)}.st45c-filters>label{grid-column:1/-1}.st45c-dialog h2{font-size:20px}}
