/* K56/K57: kilit görünür; açıklama alanının yeri baştan ayrılır, ped sabit kalır. */
#quantity-presets [aria-disabled='true'], #quantity-form #number-pad[data-sahipsiz] { opacity: .45; }
#quantity-note { display: grid; }
#quantity-note > * { grid-area: 1 / 1; align-self: start; }
#quantity-note #line-note-row[hidden] { display: block !important; visibility: hidden; }
/* İleti ve fiyat aynı ayrılmış alanda durur; hata ve kg çevirisi pedi oynatmaz. */
#quantity-form .sayi-ileti { display: block !important; height: 2.8em; margin: 0 0 -2.8em; position: relative; z-index: 1; font-size: var(--y-13); line-height: 1.4; }
#quantity-form .sayi-ileti[hidden] { visibility: hidden; }
/* Karar 703: beş sütun, 78 px fotoğraf ve beşinci sıradan devam ipucu. */
@media screen and (min-width: 901px) and (max-width: 1749px) {
  .tezgah-pos .products { grid-template-columns: repeat(5,minmax(0,1fr)); grid-auto-rows: 152px; gap: 12px; }
  .tezgah-pos .products.bildirim-sik-sira { row-gap:8px; }
  .tezgah-pos .product-card, .tezgah-pos .product, .tezgah-pos .product.has-photo { height: 152px; min-height: 152px; }
  .tezgah-pos .product, .tezgah-pos .product.has-photo { grid-template-rows: 78px minmax(36px,1fr) 24px; gap: 3px; padding: 0 10px 6px; }
  .tezgah-pos .product-media { height: 78px; width: calc(100% + 20px); margin: 0 -10px; }
  .tezgah-pos .product-media .product-icon { width: 44px; height: 44px; }
  .tezgah-pos .product strong, .tezgah-pos .product.has-photo strong { font-size: var(--y-16); line-height: 18px; font-weight: 700; padding-top: 0; }
  .tezgah-pos .product .price, .tezgah-pos .product.has-photo .price { font-size: var(--y-20); line-height: 24px; }
  .tezgah-pos .product .price small { font-size: var(--y-11); }
  .tezgah-pos .product .stock:not(.untracked) { position: absolute; grid-area: auto; width: auto; max-width: calc(100% - 12px); top: 58px; left: 6px; margin: 0; padding: 0 4px; font-size: var(--y-13); line-height: 16px; background: var(--kagit); border: 0; }
  .tezgah-pos .product-media .product-initials, .tezgah-pos .product-media .product-icon { height: 44px; align-self: flex-start; margin-top: 8px; }
  .tezgah-pos .product-media .product-icon { margin-left: 12px; margin-right: auto; }
}
/* Dar tablette uzun ürün adlarına ve fiyatın birimine yer aç. */
@media screen and (min-width: 901px) and (max-width: 1100px) {
  .tezgah-pos .products:not(.liste-fotografsiz) { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); }
}
/* Listeyi H1 tek noktadan işaretler; karışık listede kart iskeleti korunur. */
@media screen and (min-width: 901px) and (max-width: 1749px) {
  .tezgah-pos .products.liste-fotografsiz { grid-auto-rows: 116px; }
  .tezgah-pos .liste-fotografsiz .product-card, .tezgah-pos .liste-fotografsiz .product, .tezgah-pos .liste-fotografsiz .product.has-photo { height: 116px; min-height: 116px; }
  .tezgah-pos .liste-fotografsiz .product, .tezgah-pos .liste-fotografsiz .product.has-photo { grid-template-rows: minmax(42px,1fr) 22px; gap: 3px; padding: 8px 10px 7px; }
  .tezgah-pos .liste-fotografsiz .product-media { display: none; }
  .tezgah-pos .liste-fotografsiz .product strong, .tezgah-pos .liste-fotografsiz .product.has-photo strong { grid-row: 1; align-self: start; padding-top: 0; margin-right: 46px; font-size: var(--y-18); font-weight: 700; line-height: 21px; max-height: 42px; }
  .tezgah-pos .liste-fotografsiz .product .price { grid-row: 2; }
  .tezgah-pos .liste-fotografsiz .product .stock:not(.untracked) { top: 54px; }
}
@media screen {
  .tezgah-pos #ag-kilit:not(.ag-yogun) { background:var(--kagit); }
  .tezgah-pos #modal:has(#quantity-form) .quantity-price { margin: 0 0 4px; }
  .tezgah-pos #modal #quantity-presets { margin: 8px 0; }
  .tezgah-pos #modal #quantity { margin-bottom: 4px; }
  .tezgah-pos #modal #quantity-note label { margin-bottom: 4px; }
  .tezgah-pos #modal #quantity-note input { margin-bottom: 0; }
  .tezgah-pos .product .stock.untracked { display: none; }
  /* Maket 10: 15 ürünlü sepet kendi içinde kayar; 49 px normal satırda miktar büyük kalır. */
  .tezgah-pos #cart .row { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 0 4px; padding: 0; align-items: center; }
  .tezgah-pos #cart .row > .cart-edit { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 32px minmax(0,1fr) auto auto; align-items: center; gap: 8px; min-height: 48px; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; text-align: left; }
  .tezgah-pos #cart .cart-product-media { width: 32px; height: 32px; border-radius: var(--kose-ince); }
  .tezgah-pos #cart .cart-product-media img { width: 100%; height: 100%; object-fit: cover; }
  .tezgah-pos #cart .cart-product-media .cart-product-icon { width: 22px; height: 22px; object-fit: contain; }
  .tezgah-pos #cart .row-name { min-width: 0; font-size: var(--y-16); line-height: 18px; font-weight: 400; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tezgah-pos #cart .row-quantity, .tezgah-pos #cart .row-price { font-size: var(--y-16); line-height: 20px; font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
  .tezgah-pos #cart .row > .remove { grid-column: 2; grid-row: 1; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; color: var(--soluk); background: transparent; }
  .tezgah-pos #cart .row > :not(.cart-edit):not(.remove) { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; }
  .tezgah-pos #cart .row-discount, .tezgah-pos #cart .row-note { font-size: var(--y-12); }
  .tezgah-pos #cart .row-old-price { display: none; }
  .tezgah-pos #cart .row-changed { background: var(--krem); box-shadow: inset 3px 0 var(--altin); border-radius: var(--kose-ince); }
  .tezgah-pos .basket-head .sale-context { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--b-1); }
  .tezgah-pos .sale-context #customer { grid-column: 1 / -1; grid-row: 1; }
  .tezgah-pos .sale-context #customer.secili { grid-column: 1; }
  .tezgah-pos #customer-clear { grid-column: -2 / -1; grid-row: 1; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; color: var(--soluk); background: transparent; }
  .tezgah-pos .sale-context .customer-debt { display: block; font-size: var(--y-16); line-height: 20px; color: var(--soluk); }
  .tezgah-pos #customer .customer-debt { grid-column: 2; }
  .tezgah-pos .sale-context .customer-debt b { color: var(--odeme-cari); font-weight: 600; }
  .tezgah-pos #customer-account { min-height: 44px; padding: var(--b-1); border: 0; background: transparent; white-space: nowrap; }
  .tezgah-pos #customer-account:hover { background: var(--krem); }
  .tezgah-pos #pay-account { flex-direction: column; gap: 1px; padding: 4px; }
  .tezgah-pos #sale-basket.customer-selected .quick-payments #pay-account { height:auto; }
  .tezgah-pos #pay-account::before { display: none; }
  .tezgah-pos #pay-account > span { display: flex; gap: 8px; align-items: center; }
  .tezgah-pos #pay-account .customer-new-debt { display: flex; align-items: center; gap: 2px; max-width:100%; overflow-wrap:anywhere; font-size: var(--y-13); line-height: 16px; white-space: normal; }
  .tezgah-pos #pay-account .customer-new-debt svg { width: 12px; height: 12px; }
  .tezgah-pos .last-sale-customer { font-size: var(--y-16); line-height: 21px; }
  .tezgah-pos .last-sale-customer b { color: var(--odeme-cari); }
}
@media screen and (max-width: 900px) {
  .tezgah-pos #cart .row > .cart-edit { grid-template-columns: minmax(0,1fr) auto auto; }
  .tezgah-pos #cart .cart-product-media { display: none; }
}

#quantity-karisik-alan { min-width: 0; }
#quantity-karisik-alan summary, #quantity-karisik-alan button { min-height: 48px; }
#quantity-karisik-alan summary { display: flex; align-items: center; cursor: pointer; }
#quantity-karisik-satirlar { max-height: 210px; overflow-y: auto; }
.quantity-karisik-satir { display: grid; grid-template-columns: minmax(0, 1fr) 100px 48px; gap: var(--b-2); align-items: center; }
.quantity-karisik-satir > span { overflow-wrap: anywhere; }
#quantity-karisik-alan input { min-height: 48px; width: 100%; min-width: 0; font-size: var(--y-20); }
