:root {
  --antrasit: #37474f; --antrasit-koyu: #263238; --amber: #ffb300;
  --yuzey: #eceff1; --zemin1: #b0aca4; --zemin2: #a19d95;
  --kirmizi: #e53935; --kirmizi-zemin: #fff3e0; --arka: #f7f8fa;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--arka); color: #222; }
.hidden { display: none !important; }
.muted { color: #888; }
.badge { background: var(--kirmizi); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.badge:empty { display: none; }
.warn { color: var(--kirmizi); font-weight: 600; }
button { background: var(--antrasit); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
button.amber { background: var(--amber); color: #222; }
button.ghost { background: #e3e7ea; color: #222; }
input, select { padding: 8px 10px; border: 1px solid #cfd8dc; border-radius: 6px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: var(--antrasit); color: #fff; font-weight: 600; }
/* login */
.login-box { max-width: 320px; margin: 15vh auto; display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
/* kabuk */
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--antrasit-koyu); color: #fff; padding: 10px 16px; }
header .brand { font-weight: 700; }
header nav { display: flex; gap: 12px; flex-wrap: wrap; }
header nav a { color: #cfd8dc; text-decoration: none; font-size: 14px; }
header nav a:hover { color: var(--amber); }
header #global-search { flex: 1; min-width: 160px; }
header .user { margin-left: auto; font-size: 13px; }
main { padding: 16px; max-width: 1100px; margin: 0 auto; }
/* raf kartları */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.shelf-card { background: #fff; border: 2px solid var(--antrasit); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.shelf-card.add { border-style: dashed; border-color: #aaa; color: #888; align-items: center; justify-content: center; min-height: 90px; }
/* cephe görünümü */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .split-2 { grid-template-columns: 1fr; } }
.shelf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.shelf-front { position: relative; padding: 0 14px; }
.shelf-front::before, .shelf-front::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; background: var(--antrasit); border-radius: 3px; }
.shelf-front::before { left: 0; }
.shelf-front::after { right: 0; }
.shelf-row { border-top: 6px solid var(--amber); background: var(--yuzey); min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; margin-bottom: 5px; cursor: pointer; }
.shelf-row:hover { background: #dde3e7; }
.shelf-row.low { background: var(--kirmizi-zemin); }
.shelf-row.low strong { color: var(--kirmizi); }   /* soldaki "Sıra X" de kırmızı */
.shelf-row.ground { border-top: 0; border-radius: 4px; margin: 0 -14px; background: repeating-linear-gradient(45deg, var(--zemin1), var(--zemin1) 10px, var(--zemin2) 10px, var(--zemin2) 20px); }
.shelf-row.ground.low strong { color: var(--kirmizi); }
.row-panel { background: #fff; border-radius: 10px; padding: 14px; }
.qty-btns button { padding: 3px 10px; margin-left: 4px; }
#print-area { display: none; }
