.stock-heading, .stock-actions, .stock-tools, .stock-pagination, .stock-pagination > div {
  display:flex; align-items:center; gap:.65rem;
}
.stock-heading { flex-wrap:wrap; justify-content:space-between; gap:1rem; }
.stock-heading p { margin:.4rem 0 0; }
.stock-actions { flex-wrap:wrap; }
.stock-panel { padding:0; min-width:0; }
.stock-tools { padding:1rem 1.25rem; align-items:flex-end; flex-wrap:wrap; }
.stock-search {
  display:flex; align-items:center; gap:.55rem; padding:0 .8rem; flex:1 1 14rem;
  border:1px solid var(--line,#e3dcd6); border-radius:.65rem; background:var(--paper,white);
}
.stock-search svg { width:1.05rem; height:1.05rem; flex-shrink:0; color:var(--muted,#6d646c); }
.stock-search input { flex:1; min-width:0; width:100%; height:2.7rem; border:0; background:transparent; color:inherit; font:inherit; }
.stock-search:focus-within { outline:2px solid var(--plum,#55364e); outline-offset:2px; }
.stock-search input:focus { outline:none; }
.stock-select { display:grid; gap:.3rem; min-width:0; }
.stock-select > span { font-size:.8rem; font-weight:600; color:var(--muted,#695e69); }
.stock-select select { min-height:2.75rem; padding:.4rem 1.8rem .4rem .7rem; font:inherit; font-size:.9rem; color:inherit; border:1px solid var(--line,#e3dcd6); border-radius:.65rem; background-color:var(--paper,white); }
.inventory-table { width:100%; table-layout:auto; border-collapse:collapse; text-align:left; font-size:.92rem; }
.inventory-table th { color:var(--muted,#6b6169); font-size:.78rem; font-weight:600; letter-spacing:.01em; background:var(--control,#f8f6f2); }
.inventory-table th, .inventory-table td { padding:.7rem .7rem; vertical-align:middle; }
.inventory-table th { padding-top:.55rem; padding-bottom:.55rem; border-block:1px solid var(--line,#e9e3dc); }
.inventory-table tbody tr + tr { border-top:1px solid var(--table-line,#eee8e2); }
.inventory-table tbody tr:focus-within, .inventory-table tbody tr:hover { background:var(--row-hover,#fcfaf6); }
.inventory-table th:first-child, .inventory-table td:first-child { padding-left:1.35rem; }
.inventory-table th:last-child, .inventory-table td:last-child { padding-right:1.35rem; }
.stock-product-wrap, .stock-color { display:flex; align-items:center; }
.stock-product-wrap { gap:.7rem; min-width:0; }
.stock-identity { display:grid; min-width:0; gap:.18rem; }
.stock-identity strong, .stock-name-link { color:var(--ink,#302430); font-size:.94rem; line-height:1.25; font-weight:650; overflow-wrap:anywhere; }
.stock-name-link { font-family:inherit; border:0; background:none; padding:0; text-align:left; cursor:pointer; }
.stock-name-link:hover { text-decoration:underline; }
.stock-identity small { color:var(--muted,#6a626a); font-variant-numeric:tabular-nums; font-size:.78rem; overflow-wrap:anywhere; }
.stock-color { gap:.4rem; font-size:.88rem; }
.stock-color i { background:var(--case); border-radius:100%; width:.55rem; height:.55rem; box-shadow:inset 0 0 0 1px #39233d22; flex-shrink:0; }
.stock-thumbnail {
  width:2.45rem; height:2.45rem; display:inline-grid; place-items:center; flex-shrink:0;
  background:var(--tint); border-radius:.63rem; border:1px solid #4931420d;
}
.stock-thumbnail i {
  position:relative; display:block; width:.81rem; height:1.37rem; transform:rotate(12deg);
  background:var(--case); border:1.5px solid var(--edge); border-radius:.22rem;
  box-shadow:inset -1px -1px 0 #0000000e, 1px 2px 2px #33223615;
}
.stock-thumbnail i::before {
  content:""; position:absolute; inset:1.5px auto auto 1.5px; width:3.5px; height:4.5px;
  border:1px solid var(--edge); background:var(--tint); border-radius:1.4px;
}
.tone-pink { --tint:#fbe9ef; --case:#e8a0b9; --edge:#ad6485; }
.tone-purple { --tint:#efebf9; --case:#bca9db; --edge:#82709e; }
.tone-blue { --tint:#e5f0f7; --case:#8cb5d7; --edge:#567e9e; }
.tone-black { --tint:#ecebeb; --case:#50505a; --edge:#322f39; }
.tone-red { --tint:#fbe6e5; --case:#ce686c; --edge:#96474d; }
.tone-orange { --tint:#fff0df; --case:#ec9e67; --edge:#b46f42; }
.tone-green { --tint:#e4f1e7; --case:#8eb29a; --edge:#5f826b; }
.tone-yellow { --tint:#faf3d7; --case:#e2bf67; --edge:#a98a41; }
.tone-white { --tint:#f1f0ed; --case:#fffdf7; --edge:#b3aaa4; }
.tone-brown { --tint:#f1e7de; --case:#b19177; --edge:#80654f; }
.tone-neutral { --tint:#edebee; --case:#aca8b0; --edge:#817986; }
.stock-model { overflow-wrap:anywhere; }
.stock-quantity { display:inline-block; font-variant-numeric:tabular-nums; white-space:nowrap; }
.stock-price { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.stock-edit { text-align:right; width:2.5rem; }
.stock-edit button {
  display:inline-grid; place-items:center; width:2.5rem; height:2.5rem; padding:.5rem;
  background:transparent; border:0; border-radius:.6rem; color:var(--muted,#706775); cursor:pointer;
}
.stock-edit button:hover { background:var(--control,#f1eee8); color:var(--ink,#302430); }
.stock-edit svg { width:1rem; height:1rem; }
.stock-pagination { display:flex; justify-content:space-between; flex-wrap:wrap; padding:.7rem 1.25rem; min-height:2.9rem; border-top:1px solid var(--line,#e3dcd6); color:var(--muted,#6d646c); font-size:.875rem; }
.stock-pagination [hidden] { display:none; }
.stock-empty { padding:clamp(2.5rem,8vw,5rem) 1rem; text-align:center; }
.stock-empty-icon { margin:auto; background:#f4ecf1; color:#65475e; width:3rem; height:3rem; border-radius:1rem; display:grid; place-items:center; }
.stock-empty-icon svg { width:1.45rem; height:1.45rem; }
.stock-empty h2 { font-size:1.15rem; margin:1rem 0 .4rem; }
.stock-empty p { margin:0; }
@media (max-width:660px) {
  .stock-tools { padding:.9rem; }
  .stock-search { flex-basis:100%; }
  .stock-select { flex:1; }
  .inventory-table { display:block; }
  .inventory-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .inventory-table tbody { display:block; }
  .inventory-table tbody tr {
    display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:.45rem .75rem; align-items:center;
    padding:.8rem 1rem; border-top:1px solid var(--line,#e9e3dd);
  }
  .inventory-table td, .inventory-table td:first-child, .inventory-table td:last-child { padding:0; }
  .stock-product { grid-column:1; grid-row:1; }
  .stock-price { grid-column:2; grid-row:1; }
  .stock-edit { grid-column:3; grid-row:1 / 3; width:auto; }
  .stock-color-cell { grid-column:1; grid-row:2; }
  .stock-color-cell .stock-color { padding-left:3.15rem; }
  .stock-model { grid-column:1; grid-row:3; padding-left:3.15rem !important; font-size:.8rem; color:var(--muted,#6b626a); }
  .stock-model::before { content:"Modell "; }
  .stock-count { grid-column:2; grid-row:2; text-align:right; font-size:.85rem; }
  .stock-compact tbody tr { grid-template-columns:minmax(0,1fr) auto auto; }
}
@media (max-width:390px) {
  .inventory-table tbody tr { gap:.35rem; padding:.7rem; }
  .stock-thumbnail { width:2rem; height:2rem; }
  .stock-product-wrap { gap:.45rem; }
  .stock-color-cell .stock-color { padding-left:2.45rem; }
  .stock-model { padding-left:2.45rem !important; }
  .stock-edit button { width:2.25rem; }
}
