.df-waste{padding:0;min-width:0;color:var(--text,#12304a)}.df-waste h2,.df-waste h3{margin:0 0 12px}.wr-header p,.wr-muted{color:var(--muted,#64748b);font-size:13px}.wr-tabs,.wr-actions,.wr-filters,.wr-pagination,.wr-row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.wr-tabs{margin:20px 0}.wr-tabs .active{background:#dcfce7;border-color:#22c55e;color:#087b38}.df-waste label,.wr-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px}.df-waste input,.df-waste select,.df-waste textarea,.wr-dialog input,.wr-dialog select{padding:10px;border:1px solid var(--border,#d7e2eb);border-radius:8px;background:var(--card,#fff);color:inherit;min-width:0;max-width:100%;font:inherit;box-sizing:border-box}.df-waste input[type=checkbox]{width:16px;height:16px;accent-color:#22c55e}.df-waste input[type=color]{width:48px;height:38px;padding:3px}.wr-filters,.wr-types{padding:16px;background:var(--card,#fff);border:1px solid var(--border,#d7e2eb);border-radius:12px;margin-bottom:14px}.wr-types{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.wr-types label{flex-direction:row;align-items:center}.wr-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.wr-card{padding:22px;border:1px solid var(--border,#d7e2eb);border-radius:14px;display:flex;flex-direction:column;gap:10px}.wr-card strong{font-size:30px}.wr-total{background:#fdf2f8;color:#be185d}.wr-maximum{background:#eff6ff;color:#0369a1}.wr-card small{font-size:13px}.wr-panel{background:var(--card,#fff);border:1px solid var(--border,#d7e2eb);padding:20px;border-radius:12px;margin:16px 0;min-width:0}.wr-chart{height:360px;position:relative}.wr-bottom{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}.wr-bottom p{line-height:1.7}.wr-focus{white-space:pre-wrap;overflow-wrap:anywhere}.wr-scroll{overflow-x:auto;max-width:100%}.df-waste table,.wr-dialog table{width:100%;border-collapse:collapse;font-size:13px}.df-waste th,.df-waste td,.wr-dialog th,.wr-dialog td{text-align:left;padding:12px;border-bottom:1px solid var(--border,#d7e2eb)}.df-waste th{font-size:11px;color:var(--muted,#64748b);text-transform:uppercase}.df-waste tbody tr:nth-child(even){background:var(--bg,#f7fafc)}.wr-collections{min-width:1100px}.wr-collections td{max-width:240px;overflow-wrap:anywhere}.wr-empty{text-align:center;padding:55px;color:var(--muted,#64748b)}.df-waste [data-message]:empty{display:none}.df-waste .error,.wr-error{color:#b91c1c}.wr-notice{padding:14px;background:#fffbeb;color:#92400e;border-radius:8px}.wr-dialog{width:min(900px,calc(100vw - 32px));max-height:88dvh;border:1px solid var(--border,#d7e2eb);border-radius:16px;background:var(--card,#fff);color:var(--text,#12304a);padding:24px;box-sizing:border-box}.wr-dialog::backdrop{background:#0f172a88}.wr-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.wr-form{display:grid;gap:16px}.wr-snapshot dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.wr-snapshot dt{color:var(--muted,#64748b);font-size:12px}.wr-snapshot dd{margin:4px 0}.wr-preview{max-height:45vh;overflow:auto;margin:12px 0}.wr-catalog{display:grid;gap:8px;margin-bottom:12px}.wr-catalog-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wr-catalog-row input{flex:1;min-width:140px}.wr-catalog-row input[type=number]{max-width:180px}.df-waste [data-types] table{min-width:900px}.df-waste [data-types] input:not([type]){width:120px}.df-waste .btn-primary{background:#22c55e;color:#fff}.wr-pagination{justify-content:flex-end;margin:16px 0}.df-waste button,.wr-dialog button{cursor:pointer}.df-waste button:disabled,.wr-dialog button:disabled{opacity:.5;cursor:default}
@media(max-width:800px){.df-waste{padding:10px}.wr-bottom{grid-template-columns:1fr}.wr-cards{gap:10px}.wr-card{padding:15px}.wr-card strong{font-size:24px}.wr-filters>label{flex:1 1 140px}.wr-chart{height:310px}.wr-panel{padding:14px}.wr-dialog{padding:16px}.wr-tabs .btn{flex:1}.wr-catalog-row{padding-bottom:10px;border-bottom:1px solid var(--border,#d7e2eb)}}
@media(max-width:420px){.wr-cards{grid-template-columns:1fr}.wr-snapshot dl{grid-template-columns:1fr}.wr-actions .btn{flex:1 1 140px}}

/* The shell owns scrolling; module content must not inherit global main clipping. */
.df-waste [data-content]{min-height:0;height:auto;overflow:visible}


.df-waste .wr-chart-controls .wr-check{flex-direction:row;align-items:center;gap:8px}

/* Reuse the standard module navigation without introducing a nested main. */
.df-waste .wr-shell{min-width:0}
.df-waste .wr-main{height:auto;min-width:0;overflow:visible;padding-bottom:32px}
.df-waste .wr-side{align-self:stretch}
.df-waste .module-side-item{box-sizing:border-box;border-radius:0}
@media(min-width:769px){#view>.df-waste{margin:0 -24px -24px}.df-waste .wr-side{position:sticky;top:0;align-self:flex-start;min-height:calc(100dvh - 110px)}}
@media(max-width:768px){.df-waste{padding:0}.df-waste .wr-main{padding:16px 0 32px}.df-waste .wr-side{min-height:0}}


/* Align the period action with the input boxes, not their labels. */
.df-waste .wr-period-filters{align-items:flex-end}
.wr-mobile-menu{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel);margin:var(--space-4)}
.df-waste .wr-mobile-item{display:flex;align-items:center;gap:var(--space-3-5);padding:var(--space-3-5) var(--space-4);border:0;border-bottom:1px solid var(--line);width:100%;background:transparent;text-align:left;color:var(--muted);font:inherit}
.df-waste .wr-mobile-item:last-child{border-bottom:0}
.wr-mobile-icon{width:34px;height:34px;flex-shrink:0;border-radius:8px;border:1px solid var(--line);background:var(--surface-alt);display:flex;align-items:center;justify-content:center}
.wr-mobile-copy{flex:1;min-width:0}
.wr-mobile-copy strong{display:block;color:var(--text);font-size:var(--text-base);font-weight:var(--font-semibold)}
.wr-mobile-copy small{display:block;margin-top:var(--space-0-5);font-size:var(--text-xs)}
.df-waste .wr-mobile-back{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4);color:var(--green);font:inherit;font-size:var(--text-sm);font-weight:var(--font-semibold);border:0;border-bottom:1px solid var(--line);background:transparent;width:100%;text-align:left}

.df-waste .wr-info{border:0;background:transparent;color:var(--muted);padding:4px;cursor:help;font-size:14px;line-height:1;text-transform:none}

/* Desktop: keep identity/navigation outside the content scroll container. */
@media(min-width:769px){
 #view:has(>.df-waste){display:flex;flex-direction:column;overflow:hidden;padding:0}
 #view:has(>.df-waste)>.module-identity-band[data-module-band]{margin:0!important;flex:0 0 auto}
 #view>.df-waste{flex:1;min-height:0;margin:0;overflow:hidden;padding:0}
 .df-waste .wr-shell{height:100%;min-height:0}
 .df-waste .wr-side{position:static;align-self:stretch;min-height:0;height:100%;box-sizing:border-box;overflow-y:auto}
 .df-waste .wr-main{height:100%;min-height:0;box-sizing:border-box;overflow:auto}
}

/* Compact shared date and per-residue controls with mobile wrapping. */
.wr-dialog .wr-date-field{width:210px;max-width:100%}
.wr-dialog .wr-type-field{width:fit-content;min-width:140px;max-width:100%}
.wr-dialog .wr-type-field select{width:auto;max-width:100%;min-height:44px}
.wr-dialog .wr-quantity-field{width:180px;max-width:100%}
.wr-collection-items{display:grid;gap:16px;min-width:0}
.wr-collection-item{margin:0;padding:16px;border:1px solid var(--border,#d7e2eb);border-radius:12px;min-width:0}
.wr-collection-item legend{padding:0 6px;font-weight:600}
.wr-item-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.wr-item-fields>button{min-height:44px}
.wr-collection-item .wr-snapshot:not(:empty){margin-top:16px}
.wr-collection-item .wr-snapshot dd{overflow-wrap:anywhere}
.wr-batch-form .df-form-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.wr-batch-form .df-form-footer button{min-height:44px;white-space:normal;word-break:normal}
@media(max-width:480px){
 .wr-collection-item{padding:12px}
 .wr-item-fields{align-items:stretch}
 .wr-dialog .wr-item-fields .wr-type-field{width:100%;min-width:0}
 .wr-dialog .wr-item-fields .wr-type-field select{width:100%}
 .wr-item-fields .wr-quantity-field{flex:1 1 140px}
 .wr-item-fields>button{align-self:flex-end}
 .wr-batch-form .df-form-footer button{flex:1 1 120px}
}
