.kitchen-stock {
  min-width: 0;
  margin-bottom: 20px;
}
.kitchen-stock > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.kitchen-stock > summary::-webkit-details-marker { display: none; }
.kitchen-stock > summary strong { display: block; font-size: 16px; }
.kitchen-stock > summary small { display: block; margin-top: 2px; font-size: 12px; }
.kitchen-stock > summary .ui-icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
.kitchen-stock[open] > summary .ui-icon { transform: rotate(180deg); }
.kitchen-stock-tabs {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  margin: 14px 0 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
}
.kitchen-stock-tabs button {
  min-height: 44px;
  padding: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.kitchen-stock-tabs button[aria-pressed="true"] {
  color: #211219;
  background: var(--accent);
  border-color: var(--accent);
}
.kitchen-stock-tabs button:not([aria-pressed="true"]):hover { background: var(--soft); color: var(--text); }
.inventory-mode-tabs { margin: 0 0 18px; }
.movement-locations { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.inventory-mode-tabs button, .movement-locations button { overflow-wrap: anywhere; }
.inventory-tabs button[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.kitchen-stock, #bodega-movement, .kitchen-inventory-sector { border-color: var(--accent-line); }
.kitchen-stock h3, #bodega-movement > h2, .kitchen-inventory-sector > h3 { color: var(--accent); }
.kitchen-stock-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.kitchen-stock-tools p { flex: 1; margin: 0; }
.kitchen-stock-tools button { min-height: 44px; font-size: 12px; }
.kitchen-stock h3 { margin-bottom: 5px; font-size: 16px; }
.kitchen-stock-note, .kitchen-stock-empty {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.kitchen-stock-empty { margin: 0 0 14px; }
.kitchen-stock-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 14px 0 20px;
}
.kitchen-stock-form label { min-width: 0; color: var(--muted); font-size: 13px; }
.kitchen-stock-form label:has([name="supplier"]) { grid-column: 1 / -1; }
.kitchen-stock-form :is(select, input) { margin-top: 5px; }
.kitchen-stock-form button { font-size: 13px; }
.kitchen-stock-list { margin: 10px 0 0; padding: 0; list-style: none; }
.kitchen-stock-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.kitchen-stock-list li > div, .kitchen-stock-list li > strong { min-width: 0; overflow-wrap: anywhere; }
.kitchen-stock-list li > div small { display: block; margin-top: 3px; }
.kitchen-stock-list li > span { flex: none; max-width: 44%; text-align: right; font-variant-numeric: tabular-nums; }
.kitchen-stock-pending { margin-bottom: 15px; }
.kitchen-stock-pending p { margin-bottom: 8px; }
.kitchen-stock-pending p:last-child { margin-bottom: 0; }
.movement-locations { margin-bottom: 16px; }
.bodega-movement-form, .kitchen-threshold-form { display: grid; gap: 12px; }
.bodega-movement-form select, .bodega-movement-form input, .kitchen-threshold-form input { margin-top: 5px; }
.stock-allocation { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.stock-allocation legend { font-weight: 650; }
.stock-allocation .confirmation { margin: 6px 0 12px; }
.stock-allocation [data-allocation-fields] { display: grid; gap: 10px; }
.stock-allocation-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; align-items: end; gap: 8px; margin: 8px 0; }
.stock-allocation-row label { min-width: 0; }
.stock-allocation-summary { margin-top: 8px; font-size: 12px; }
.stock-allocation-summary ul { padding-left: 16px; margin: 3px 0; }
.inventory-kitchen-stock { margin-top: 24px; }
.kitchen-stock-filter { max-width: 260px; margin-bottom: 12px; }
.kitchen-stock-filter select { margin-top: 5px; }
.kitchen-inventory-sector { margin: 12px 0; }
.kitchen-zone-title { margin: 16px 0 4px; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.kitchen-zone-title small { color: var(--muted, inherit); font-weight: 400; text-transform: none; }
.kitchen-inventory-value { text-align: right; }
.kitchen-threshold-form { flex: 1; text-align: left; }
.stock-alert { color: #f2ce84; }
.production-panel { border-color: var(--accent-line); }
.production-panel .kitchen-stock-tools { justify-content: space-between; flex-wrap: wrap; }
.production-form, .production-form fieldset { display: grid; gap: 12px; }
.production-form { margin-top: 16px; }
.production-form fieldset { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.production-form legend { padding: 0 6px; color: var(--accent); font-weight: 650; }
.production-form label { min-width: 0; }
.production-form :is(select, input) { margin-top: 5px; }
.production-form .secondary { justify-self: start; }
.production-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2,minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.production-row[data-production-line="input"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 700px) {
  .kitchen-stock-form { grid-template-columns: minmax(0, 1fr); }
  .kitchen-stock-form button { width: 100%; }
  .production-row, .production-row[data-production-line="input"] { grid-template-columns: minmax(0,1fr); }
  .production-row + .production-row { padding-top: 12px; border-top: 1px solid var(--line); }
}
