.expiry-table {
  min-width: 740px;
}

.expiry-table .expiry-category th {
  background: #e9f0e7;
  text-align: left;
}

.expiry-table tbody td {
  vertical-align: top;
}

.expiry-table tbody td small {
  display: block;
}

.expiry-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.expiry-groups[hidden] {
  display: none;
}

#expiry-list-controls[hidden],
#expiry-table-panel[hidden],
#expiry-review-panel[hidden] {
  display: none;
}

.expiry-group-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 16px;
  margin-bottom: 10px;
}

.expiry-group-toolbar .expiry-groups {
  margin-bottom: 0;
}

.expiry-stock-refresh {
  margin-inline-start: auto;
  font-size: .8rem;
  text-align: end;
}

.expiry-groups .btn[aria-pressed="true"] {
  border-color: #4e7657;
  background: #e9f0e7;
  color: #24462d;
}

.expiry-name-button {
  display: inline;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.expiry-name-button:hover,
.expiry-name-button:focus-visible {
  text-decoration: underline;
}

.expiry-manual-lots {
  min-width: 0;
  margin: 12px 0;
  border: 1px solid #dbe4da;
  border-radius: 10px;
  padding: 10px;
}

.expiry-lot-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}

.expiry-lot-fields label {
  display: grid;
  flex: 1 1 95px;
  gap: 4px;
}

.expiry-lot-fields input,
.expiry-lot-fields select {
  min-width: 0;
  width: 100%;
  padding: 7px;
  border: 1px solid #dbe4da;
  border-radius: 7px;
  background: white;
  color: inherit;
  font: inherit;
}

.expiry-past {
  color: #8d3c29;
}

.stock-report-table tr.stock-report-shortage > td {
  background: #fbe9e5;
}

.stock-report-table tr.stock-report-surplus > td {
  background: #fff0c7;
}

.stock-report-table tr.stock-report-unknown > td {
  background: #eef1f4;
}

.stock-report-table {
  min-width: 540px;
}
.supply-meta{display:flex;gap:16px;flex-wrap:wrap}.supply-meta .field{flex:1;min-width:180px}.supply-preview{min-width:680px}.supply-preview td:first-child{width:42%}.supply-preview td:nth-child(2){width:100px}.supply-preview input,.supply-preview textarea{width:100%;font:inherit;padding:8px;border:1px solid #dbe4da;border-radius:8px}.supply-preview textarea{min-width:220px}.supply-preview small{display:block}.supply-form{max-width:100%}dialog:has(.supply-preview){width:min(1050px,95vw)}#supply-documents .expiry-tabs{margin:16px 0}#supply-documents [aria-pressed=true]{background:#e8f0e5;border-color:#517757}
.modal:has(.supply-preview){width:min(1050px,95vw);max-width:95vw}.supply-form .form-actions{flex-wrap:wrap}

.return-position-list{max-height:40vh;overflow:auto;margin:12px 0}.return-position-list td:first-child,.return-position-list th:first-child{width:50px}.return-position-list input[type=checkbox]{width:18px;height:18px}.modal:has(.return-position-list){width:min(960px,95vw);max-width:95vw}

.stock-position-list{max-height:40vh;overflow:auto;margin:12px 0}.stock-position-list input[type=checkbox]{width:18px;height:18px}.stock-position-list td:first-child{width:50px}.modal:has(.stock-position-list){width:min(960px,95vw);max-width:95vw}

.reconciliation-expired-lot{display:inline-block;background:#fce4e3;color:#922b23;border:1px solid #e9aaa5;border-radius:6px;padding:3px 7px;font-weight:700}
.reconciliation-expired-text{color:#922b23}
