/* New layouts are scoped to the open editor. The name/photo header at rest
   keeps its existing dimensions on both phone and computer. */
.compact-piece-header:has([data-piece-inline="photo"]){grid-template-columns:minmax(0,1fr)}
.compact-piece-header:has([data-piece-inline="photo"]) .compact-piece-photo{width:100%;max-width:100%;min-width:0}
.compact-piece-header:has([data-piece-inline="photo"]) .document-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.compact-piece-header:has([data-piece-inline="photo"]) .document-upload:last-child{grid-column:1/-1}
#piece-inline-form[data-piece-inline="photo"]{width:100%;max-width:100%;box-sizing:border-box}
.document-upload-actions,.receipt-quick-files{max-width:100%;min-width:0;box-sizing:border-box}
.document-upload-actions>* ,.receipt-quick-files>*{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.document-upload-actions .document-upload{box-sizing:border-box;min-width:0;max-width:100%}
.document-upload-actions .document-upload span{min-width:0;overflow-wrap:anywhere}
.piece-consultation h2,.piece-consultation p,.piece-consultation dd,.piece-link,.store-parts139 button,.receipt-pending-row span{overflow-wrap:anywhere;min-width:0}
.compact-piece-header>div{min-width:0}
.part-suppliers139{min-width:0;max-width:100%;box-sizing:border-box}
.part-suppliers139 .field,.part-suppliers139 select{min-width:0;max-width:100%}
.store-parts139{padding-right:0;margin-top:.8rem;display:flex;flex-direction:column;gap:.35rem}
.store-parts139 button{text-align:left;align-self:flex-start;white-space:normal}
.calendar-page138 .toolbar{justify-content:flex-start}
.calendar-page138 .top [data-action="menu"]{padding:.85rem 1.4rem;font-size:1.18rem;font-weight:700;min-width:7rem;flex:none}
.calendar-view-toggle139{font-size:.85rem;padding:.45rem .7rem;background:transparent;color:var(--ink);border:1px solid var(--line);font-weight:400;flex:none;white-space:normal}
.calendar-month-toggle139{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;margin:0 0 .6rem}
@media(max-width:360px){.compact-piece-header:has([data-piece-inline="photo"]) .document-upload-actions{grid-template-columns:minmax(0,1fr)}.compact-piece-header:has([data-piece-inline="photo"]) .document-upload:last-child{grid-column:auto}}
