/* Shared waste table; preserve the POS theme and cashier layout. */
.waste-entry-table{width:100%;max-width:100%;overflow-x:auto;margin:16px 0;border:1px solid var(--line,#d4e3ee);border-radius:12px}
.waste-entry-table table{width:100%;min-width:1160px;table-layout:fixed}
.waste-entry-table th,.waste-entry-table td{text-align:left;vertical-align:top}
.waste-entry-table th:nth-child(1){width:210px}
.waste-entry-table th:nth-child(2){width:170px}
.waste-entry-table th:nth-child(3){width:110px}
.waste-entry-table th:nth-child(4){width:100px}
.waste-entry-table th:nth-child(5){width:105px}
.waste-entry-table th:nth-child(6){width:180px}
.waste-entry-table th:nth-child(7){width:220px}
.waste-entry-table th:nth-child(8){width:100px}
.waste-entry-table input,.waste-entry-table select,.waste-entry-table textarea{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--line,#bdd3e5);border-radius:10px;background:#e7f5fc;color:var(--ink,#153e60);font:inherit}
.waste-entry-table textarea{resize:vertical;min-height:76px}

#staff-waste-server .waste-form-card { padding: 18px; margin-block-end: 18px; }
#staff-waste-server .waste-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
#staff-waste-server .waste-heading-actions > :is(h3, button) { margin: 0; align-self: center; }
#staff-waste-server .waste-heading-actions > h3 { padding-block-start: 0; }
#staff-waste-server .waste-heading-actions > p { flex: 0 0 100%; margin: 0; }
#staff-waste-server .waste-heading-actions:has(> .module-info-button) { display: flex; }
#staff-waste-form .waste-entry-table { margin-block-end: .4rem; }
.waste-add-actions { display: flex; justify-content: flex-start; }
.waste-photo { min-width: 0; margin: .85rem 0 0; padding: .6rem; border: 1px solid var(--line); border-radius: .6rem; }
.waste-photo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.waste-photo-slots { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: .65rem 0 0; list-style: none; }
.waste-photo-slots li { position: relative; width: min(7rem, 29%); aspect-ratio: 1; overflow: hidden; border: 1px dashed #738fa6; border-radius: .45rem; background: #f5f9fd; }
.waste-photo-slots li:has(img:not([hidden])) { border-style: solid; }
.waste-photo-slots img { display: block; width: 100%; height: 100%; object-fit: cover; }
.waste-photo-slots [hidden] { display: none; }
.waste-photo-number { position: absolute; bottom: .25rem; left: .25rem; padding: .12rem .35rem; border-radius: .3rem; color: #102b42; background: #fff; font-size: .8rem; font-weight: 700; }
.waste-photo-slots [data-remove-waste-photo] { position: absolute; top: .2rem; right: .2rem; }
#staff-waste-server :is(#staff-waste-note, #staff-waste-photo-status, #staff-waste-pending):empty { display: none; }
#staff-waste-note[data-saved] { color: #126345; font-weight: 650; }
.waste-location-picker{display:grid;gap:10px;margin:0}
.waste-location-picker select{width:100%;padding:10px;border:1px solid var(--line,#bdd3e5);border-radius:10px;background:#e7f5fc;color:var(--ink,#153e60);font:inherit}
#staff-waste-form .purchase-actions{flex-wrap:wrap}
#staff-waste-form .full-field{display:grid;gap:8px;margin:16px 0}
#staff-waste-form>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:850px){#staff-waste-form>.form-grid{grid-template-columns:1fr}}
#staff-waste-server table td small{display:block}
