/* Only vertical scrolling; narrow screens keep every field in labelled cards. */
#modal.modal-prep-detail{width:calc(100vw - 32px);max-width:1680px;max-height:calc(100dvh - 32px);overflow:hidden}
#modal.modal-prep-detail #modalBody{overflow-y:auto;overflow-x:hidden;min-width:0;padding:0 14px 0}
.prep-detail{font-size:12px;min-width:0;color:#183457}.prep-overview{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 0}.prep-overview strong{font-size:15px}.prep-overview span,.prep-cell small{color:#637a96}
.prep-filter{display:flex;gap:8px;align-items:center;padding:0 0 10px}.prep-filter input{flex:1;min-width:0}.prep-filter select{width:160px;max-width:35%}.prep-filter small{white-space:nowrap}
.prep-head,.prep-line{display:grid;grid-template-columns:16fr 5fr 8fr 9fr 6fr 4fr 11fr 10fr 6fr 10fr 4fr 7fr;gap:0;min-width:0}.prep-head{position:sticky;top:0;z-index:2;background:#dce8f8;font-weight:700;border:1px solid #ccd9eb;border-radius:7px 7px 0 0}.prep-head>div{padding:9px 4px;min-width:0;overflow-wrap:anywhere}
.prep-line{background:#fff;border:1px solid #d5e0ee;border-top:0}.prep-line:nth-child(even){background:#f6f9fd}.prep-cell{min-width:0;padding:7px 4px;border-right:1px solid #e5ebf4;overflow-wrap:anywhere;display:flex;flex-direction:column;justify-content:center;gap:4px}.prep-cell:last-child{border-right:0}.prep-cell b{font-size:12px;line-height:1.4}.prep-cell small{font-size:11px}.prep-cell .btn{font-size:11px;white-space:normal;padding:5px 3px;min-width:0}.prep-cell input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;padding:6px 4px;height:31px;font-size:12px;border-radius:5px}.prep-cell input:disabled{opacity:1;color:#62758c;background:#eef2f7}.prep-cell input[type=checkbox]{align-self:center;width:16px;height:16px}.prep-dirty{box-shadow:inset 3px 0 #3c75ee}.prep-urgent,.prep-negative{color:#b82d30!important}.prep-date{position:relative;min-width:0}.prep-date input[data-field]{padding-right:18px}.prep-calendar{position:absolute;right:1px;top:0;width:18px;height:31px;display:grid;place-items:center;overflow:hidden;cursor:pointer}.prep-calendar input{position:absolute;inset:0;opacity:0;cursor:pointer}.prep-calendar input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.prep-footer{position:sticky;bottom:0;z-index:3;display:flex;gap:8px;align-items:center;background:#fff;border-top:1px solid #d5e0ee;padding:10px 0 max(10px,env(safe-area-inset-bottom))}.prep-footer span{flex:1;color:#637a96}.prep-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#f4f8ff;border:1px solid #d8e4f6;border-radius:9px}.prep-summary p{margin:4px 0 0;color:#637a96;font-size:13px}
@media(max-width:1100px){.prep-head{display:none}.prep-line{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #d5e0ee;border-radius:8px;margin-bottom:10px}.prep-cell{border:0;padding:0;justify-content:flex-start}.prep-cell:before{content:attr(data-label);color:#637a96;font-size:11px}.prep-cell:first-child{grid-column:span 2}.prep-cell:nth-child(3),.prep-cell:nth-child(7),.prep-cell:nth-child(10){grid-column:span 2}.prep-cell input[type=checkbox]{align-self:flex-start}.prep-cell:nth-child(4) .btn{align-self:flex-start;padding:4px 8px}}
@media(max-width:600px){#modal.modal-prep-detail{width:calc(100vw - 16px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);margin:0}#modal.modal-prep-detail #modalBody{padding:0 10px}.prep-line{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-filter{flex-wrap:wrap}.prep-filter input{flex-basis:100%}.prep-filter select{max-width:none;flex:1}.prep-cell input:not([type=checkbox]),.prep-filter input,.prep-filter select{font-size:16px;height:36px}.prep-calendar{height:36px;width:26px}.prep-date input[data-field]{padding-right:26px}.prep-overview{align-items:flex-start;flex-direction:column}.prep-summary{align-items:flex-start;flex-direction:column}}
