@page{size:A4 landscape;margin:10mm}.piece-allocation-dialog{width:min(680px,94vw);max-height:88vh;overflow:auto;padding:16px}.piece-allocation-line{display:grid;grid-template-columns:2fr 1fr auto;gap:8px;align-items:end;margin-bottom:8px}.piece-output-review{min-width:0}.piece-output-review table{width:100%;table-layout:fixed}.piece-output-review td,.piece-output-review th{font-size:12px;padding:5px;white-space:normal;overflow-wrap:anywhere}@media(max-width:650px){.piece-allocation-line{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.piece-allocation-line button{grid-column:1/-1}.piece-output-review .table-wrap{overflow:auto}.piece-output-review table{min-width:720px}}@media print{body{font:10px Arial;color:#111}table{width:100%;border-collapse:collapse;table-layout:fixed}th,td{padding:4px;border:1px solid #999;overflow-wrap:anywhere}thead{display:table-header-group}tr{break-inside:avoid}}
.piece-evening-line{display:grid;grid-template-columns:1fr 1fr 90px auto;gap:8px;align-items:end;margin:10px 0}@media(max-width:650px){.piece-evening-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

dialog.piece-allocation-dialog :is(.piece-evening-line,.piece-allocation-line)>label{min-width:0!important;max-width:100%!important}dialog.piece-allocation-dialog :is(.piece-evening-line,.piece-allocation-line) :is(input,select){min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}dialog.piece-allocation-dialog .piece-evening-line>button{position:static!important;justify-self:start}
.piece-allocation-dialog input[type=checkbox]{width:auto;min-width:1em}.piece-allocation-dialog fieldset{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.piece-evening-line{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) 65px auto}.piece-evening-line select{width:100%}@media(max-width:650px){.piece-evening-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
