/* Manager day: everything the case page got on top of the workflow screens («⋯» menu, edit sheets, notes, history, documents).
   Tokens only (light + dark); grids and flex children carry min-width:0. */

/* ---------- «⋯» menu ---------- */
.cd-hd>div{flex:1;min-width:0}
.cd-hd .more-title{display:none;margin-inline-start:auto;background:var(--field);box-shadow:none}
.cta.bare{align-self:flex-end;width:auto;padding:6px}
.cta.bare .cta-main{gap:0}
.cta.bare .more-btn{width:44px;height:44px}
.sheet-body .list.menu .row .rt{white-space:normal}
.msep{border:0;border-top:1px solid var(--sep);margin:10px 0}
@media (min-width:900px){ .sheet.wide{width:560px} }

/* ---------- edit sheets (reuse the intake field look) ---------- */
.efields{min-width:0}
.efields .in-sec{margin-top:20px;min-width:0}
.efields .in-sec.first{margin-top:4px}
.efields .in-sec:first-child{margin-top:4px}
.efields .needs{gap:14px}
.efields .needc .amt .field{height:48px;font-size:16px;padding-left:62px}
.efields .in-chips{gap:8px}
.frozen-hint{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink3);background:var(--field);border-radius:14px;padding:8px 12px;margin:0 0 12px}
.frozen-hint .i{width:14px;height:14px}
.needc button:disabled,.needc input:disabled{opacity:.55;cursor:not-allowed}
/* ---------- documents ---------- */
.sec.has-btn{align-items:center}
.doc-wrap{position:relative;min-width:0}
.doc-wrap .doc{width:100%}
.doc-more{position:absolute;top:6px;inset-inline-start:6px;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.doc-more .i{width:16px;height:16px}
.sh-cap{font-size:12px;font-weight:500;color:var(--ink3);margin:0 6px 10px}
.add-up{margin-top:18px}
.add-up .bigt{width:calc(50% - 6px);height:96px}
@media (pointer:fine){ .add-up .bigt.cam{display:none} .add-up .bigt{width:100%} }

/* ---------- notes ---------- */
.note-add{padding:12px 14px 10px;margin-top:14px;display:flex;flex-direction:column;gap:8px}
.note-add .nk{gap:6px}
.na-row{display:flex;align-items:center;gap:8px;min-width:0}
.na-in{flex:1;min-width:0;height:46px;border-radius:23px;background:var(--field);padding:0 18px;font-size:14px;outline:none}
.na-in:focus{box-shadow:0 0 0 2px var(--em);background:var(--card)}
.na-send{background:var(--em);color:#fff;width:40px;height:40px}
.notes .row.top{align-items:flex-start}
.note-t{font-size:14px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}

/* ---------- history sheet ---------- */
.hlist{display:flex;flex-direction:column}
.hrow{display:flex;gap:12px;align-items:flex-start;padding:12px 0;min-width:0}
.hrow+.hrow{border-top:1px solid var(--sep)}
.hrow .rb{flex:1;min-width:0}
.hrow .ht{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.hrow .ht b{font-weight:600}
.hba{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;font-size:12px;color:var(--ink3);margin-top:2px;overflow-wrap:anywhere}
.hba .i{width:14px;height:14px}
.hd-t{font-size:12px;color:var(--ink3);margin-top:2px}

/* ---------- draft button on the new-case page ---------- */
.draft-btn,.draft-link{color:var(--em-t);font-size:14px;font-weight:500;min-height:44px;padding:0 14px;border-radius:99px;white-space:nowrap}
.draft-btn:disabled,.draft-link:disabled{opacity:.6}
/* phone: a quiet link at the end of the form (a floating pill would cover the fields it hovers over) */
.draft-row{display:flex;justify-content:center;margin:6px 0 0}
.draft-row .draft-link{background:var(--field)}
@media (max-width:1023px){ .isheet{padding-bottom:120px!important} }
@media (min-width:1024px){ .draft-row{display:none} }

/* ---------- inbox: a phone row is title + ONE meta line; the due date is plain meta, red only when late ---------- */
.row .rm .late{color:var(--crit-t)}
@media (max-width:899px){
 .two .row .rt{white-space:nowrap}
 .two .row .rm{flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
 .two .row .rm>span{flex:none}
 .two .row .rm>span:nth-child(2){flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* ---------- related chip ---------- */
.chipbtn{cursor:pointer;border:0;font-family:inherit}
.chipbtn:focus-visible{outline:2px solid var(--em);outline-offset:2px}

.edit-link{min-height:44px;display:flex;align-items:center;padding:0 10px;color:var(--em-t);font-size:14px;font-weight:500}
.cta.quiet .cta-none{flex:1}
