.case-expenses{min-width:0;margin:18px 0;color:var(--ink,#173757)}
.ce-shell{border:1px solid #dbe3ee;border-radius:12px;background:#fff;overflow:hidden}.ce-shell>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:15px 16px;cursor:pointer;background:#f8fafc;font-size:14px}.ce-shell>summary::-webkit-details-marker{display:none}.ce-shell>summary::before{content:'▾';color:#76869a}.ce-shell>summary strong{flex:1}.ce-shell>summary span{font-size:12px;color:#526783;overflow-wrap:anywhere}.ce-shell:not([open])>summary::before{content:'▸'}.ce-body{padding:14px 16px}.ce-intro,.ce-note{font-size:12px;color:#617792;line-height:1.6;margin:0 0 12px}.ce-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ce-summary>div{min-width:0;background:#f5f8fb;border-radius:8px;padding:10px}.ce-summary span{display:block;font-size:11px;color:#617792;margin-bottom:5px}.ce-summary strong{display:block;font-size:15px;overflow-wrap:anywhere}.ce-projection{background:#f8f3f5;border-radius:7px;padding:8px 10px;font-size:12px;line-height:1.5}.ce-currencies{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:11px;color:#617792;border-bottom:1px solid #e6ebf2;padding-bottom:10px}.ce-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}.ce-item{min-width:0;border-bottom:1px solid #e6ebf2;padding:11px 0;margin:0}.ce-item-title{display:flex;align-items:flex-start;gap:6px;margin-bottom:7px}.ce-item-title label{flex:1;font-size:12px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;margin:0}.ce-status{flex:none;font-size:10px;padding:2px 6px;border-radius:20px;background:#f0f3f7;color:#62768e}.ce-status.is-confirmed{background:#eaf5ef;color:#23744d}.ce-item-controls{display:flex;gap:5px;align-items:center}.ce-currency{font-size:11px;flex:none}.ce-item input{width:0;min-width:48px;flex:1;height:34px;padding:5px 7px;margin:0;border:1px solid #ccd7e6;border-radius:6px;text-align:right;font:inherit;font-size:13px;box-sizing:border-box}.ce-item button,.ce-feedback button{font:inherit;font-size:11px;padding:6px 8px;border:1px solid #ccd7e6;background:#fff;color:#294a69;border-radius:6px;min-height:34px;line-height:1.25;cursor:pointer}.ce-item .ce-confirm{background:#9b2947;color:#fff;border-color:#9b2947}.ce-item button:disabled{opacity:.5;cursor:default}.ce-item small{display:block;font-size:10px;line-height:1.5;color:#71859d;margin-top:5px}.ce-grid+.ce-note{margin-top:12px}.ce-feedback{display:flex;gap:8px;align-items:center;justify-content:space-between}.ce-message{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.ce-message.is-error{color:#ae2945}.ce-feedback button{flex:none}.ce-item input:focus-visible,.ce-item button:focus-visible,.ce-feedback button:focus-visible,.ce-shell>summary:focus-visible{outline:2px solid #9b2947;outline-offset:2px}
@media(max-width:700px){.ce-grid{grid-template-columns:minmax(0,1fr)}.ce-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-body{padding:12px}.ce-shell>summary{padding:12px;flex-wrap:wrap;gap:6px}.ce-shell>summary span{width:100%;padding-left:16px}.ce-feedback{align-items:flex-start;flex-direction:column}.ce-item-controls{flex-wrap:wrap}.ce-item input{min-width:64px}.ce-item button{min-height:38px}.ce-summary strong{font-size:14px}}

/* Override the shared portal form minimum without shrinking touch controls. */
.portal-wrap .case-expenses .ce-item{padding:8px 0;margin:0}
.portal-wrap .case-expenses .ce-item-title{margin-bottom:5px}
.portal-wrap .case-expenses .ce-item-controls{gap:5px;min-width:0;align-items:center}
.portal-wrap .case-expenses .ce-item input[name=amount]{height:34px;min-height:34px;max-height:34px;padding:4px 7px;margin:0;line-height:1.3;font-size:13px;box-sizing:border-box}
.portal-wrap .case-expenses .ce-item button{height:34px;min-height:34px;padding:5px 8px;font-size:11px;line-height:1.25}
@media(max-width:700px){
 .portal-wrap .case-expenses .ce-item{padding:10px 0}
 .portal-wrap .case-expenses .ce-item input[name=amount]{height:44px;min-height:44px;max-height:44px;font-size:16px;padding:8px}
 .portal-wrap .case-expenses .ce-item button{height:auto;min-height:44px;font-size:12px;padding:8px}
}

/* DDP057: grouped expenses, one authoritative projected profit, daily source evidence. */
.ce-summary .ce-profit{background:#f8edf1;border:1px solid #e9c6d0}.ce-profit strong{color:#982944}.ce-projection{margin:7px 0;font-size:11px}.ce-fx{background:#f7f9fc;border:1px solid #e2e8f0;border-radius:7px;padding:9px 10px;margin:8px 0}.ce-fx>strong{font-size:12px}.ce-fx-rates{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:5px}.ce-fx-rates>span{display:block;font-size:12px}.ce-fx-rates a{color:inherit;text-decoration:underline;text-underline-offset:3px}.ce-fx-rates small{display:block;font-size:10px;color:#60748e;margin-top:3px}.ce-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:10px 0}.ce-toolbar .ce-intro{margin:0}.ce-toolbar button,.ce-group-heading button{font:inherit;font-size:11px;border:1px solid #cbd6e3;background:#fff;border-radius:6px;padding:6px 10px;min-height:34px;cursor:pointer;white-space:nowrap}.ce-toolbar .ce-confirm-all{background:#9b2947;border-color:#9b2947;color:#fff}.ce-toolbar button:disabled,.ce-group-heading button:disabled{opacity:.5;cursor:default}.ce-group{padding:9px 11px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;margin:8px 0}.ce-group-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid #e7edf4;padding-bottom:6px}.ce-group-heading h3{font-size:13px;margin:0;font-weight:650;line-height:1.4}.ce-group .ce-item:nth-last-child(-n+2){border-bottom:0}.ce-group .ce-grid{gap:0 22px}.ce-revision{margin-top:10px}.ce-group-heading button:focus-visible,.ce-toolbar button:focus-visible{outline:2px solid #9b2947;outline-offset:2px}
@media(max-width:700px){.ce-toolbar{align-items:stretch;flex-direction:column;gap:7px}.ce-toolbar button,.ce-group-heading button{min-height:44px;font-size:12px}.ce-group{padding:9px}.ce-group-heading{gap:8px}.ce-group .ce-item:nth-last-child(2){border-bottom:1px solid #e6ebf2}.ce-fx-rates{gap:8px}.ce-fx-rates>span{width:100%}.ce-group-heading h3{font-size:14px}.ce-summary span{font-size:12px}.ce-projection{font-size:12px}.ce-item-controls .ce-save{min-width:65px}}
