#kasa-aciliyor { text-align: center; padding: 48px 16px; font-size: var(--y-24); }
#kasa-aciliyor.ag-yogun, #gate-error.ag-yogun, #ag-kilit.ag-yogun, #pos-durum-serit.ag-yogun, .pos-pencere-bilgi.ag-yogun {
  border-color: var(--altin);
  background: var(--uyari-zemin);
  color: var(--siyah);
}
#ag-kilit.ag-yogun strong { color: var(--siyah); }
#pos-durum-serit, .pos-pencere-bilgi, .pos-pencere-hata {
  margin: 8px 16px;
  padding: 12px 16px 12px 42px;
  border-left: 3px solid var(--hata-cizgi);
  color: var(--siyah);
  background: var(--hata-zemin);
  font-size: var(--y-20);
  overflow-wrap: anywhere;
}
#pos-durum-serit[hidden], .pos-pencere-bilgi[hidden], .pos-mesgul[hidden], #mesgul-durum[hidden], #kasa-aciliyor[hidden] { display: none; }
.pos-mesgul, #mesgul-durum { color: var(--soluk); padding: 0; margin: 0; font-size: var(--y-16); }
.pos-kayit-yuvasi { flex: none; height: 18px; line-height: 18px; pointer-events: none; }
.tezgah-pos #modal .dialog-top > .pos-kayit-yuvasi { position: absolute; left: 0; right: 64px; bottom: -8px; pointer-events: none; }
.pos-kayit-yuvasi > .pos-mesgul { margin: 0; line-height: 18px; background: var(--kagit); }
#durum-kume { position: relative; }
#durum-kume > #mesgul-durum { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: var(--kagit); }
#durum-kume > #mesgul-durum[hidden] { display: none; }
/* Karar 715: yazıcı yazısı dokunulur (yazıcı denemesi). Kutu 48 px; eksi kenar boşluğu satır yüksekliğini korur. */
.tezgah-pos #durum-kume #yazici-label[role='button'] { min-height: 48px; margin-block: calc((1.3em - 48px) / 2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
[data-mesgul-ret] { opacity: .55; }
/* Ağ düğmeleri mevcut bilgiyi açmayı sürdürür; neden kendi satırında durur. */
.tezgah-pos > header button.ag-soluk { opacity: .55; }
.tezgah-pos .quick-payments { position: relative; }
.tezgah-pos #ag-odeme-kapali {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 8px;
  border: 1px solid var(--cizgi);
  border-radius: var(--kose);
  background: var(--kagit);
  color: var(--siyah);
  text-align: center;
  font-size: var(--y-16);
  line-height: 20px;
  pointer-events: none;
}
.tezgah-pos #ag-odeme-kapali[hidden] { display: none; }
.tezgah-pos #sale-basket .quick-payments.odeme-ag-kapali { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:76px auto 76px; }
.tezgah-pos .odeme-ag-kapali #pay-cash, .tezgah-pos .odeme-ag-kapali #pay-card { grid-row:1; }
.tezgah-pos .odeme-ag-kapali #pay-account, .tezgah-pos .odeme-ag-kapali #pay { grid-row:3; }
button[aria-busy="true"] { position: relative; }
.tezgah-pos #modal #pay-form > button.primary.wide:last-child[aria-busy="true"],
.tezgah-pos #modal #split-form > #split-submit[aria-busy="true"] { position: sticky; }
/* Zaten konumlu yapışkan düğmeler korunur; yalnız durağan yerleşimler konum atası olur. */
@media (min-width: 901px) {
  .tezgah-pos #modal #pay-form:is(.para-ustu-form, .fx-payment) > button.primary.wide:last-child[aria-busy="true"] { position: relative; inset: auto; }
}
@media (min-width: 901px) and (min-height: 813px) {
  .tezgah-pos #modal #pay-form > button.primary.wide:last-child[aria-busy="true"] { position: relative; inset: auto; }
}
@media (min-width: 1101px) {
  .tezgah-pos #modal #split-form > #split-submit[aria-busy="true"] { position: relative; inset: auto; }
}
.ortak-mesgul-isaret {
  display: inline-block;
  position: absolute;
  right: 8px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  margin-inline-start: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ortak-mesgul-don 800ms linear infinite;
}
@keyframes ortak-mesgul-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ortak-mesgul-isaret { animation: none; } }

.tezgah-pos #durum-kume { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; flex: none; white-space: nowrap; }
.tezgah-pos #durum-kume #baglanti-label { grid-column: 1; grid-row: 1; }
.tezgah-pos #durum-kume #yazici-label { grid-column: 1; grid-row: 2; }
.tezgah-pos #durum-kume #cash-label { grid-column: 2; grid-row: 1 / 3; }
.tezgah-pos #durum-kume :is(#baglanti-label, #yazici-label) { min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: var(--y-16); line-height: 1.3; }
#durum-kume[hidden], #durum-kume [hidden] { display: none; }
.tezgah-pos #durum-kume .cash-chip { gap: 8px; font-size: var(--y-16); color: var(--soluk); }
#durum-kume .cash-chip::before { display: none; }
#durum-kume .cash-chip svg { flex: none; width: 18px; height: 18px; }
#durum-kume #cash-label::before { display: block; width: 18px; height: 18px; border-radius: 0; background: currentColor; -webkit-mask: url('/static/icons/ui-kasa.svg?v=67c6c85bebca302c') center / contain no-repeat; mask: url('/static/icons/ui-kasa.svg?v=67c6c85bebca302c') center / contain no-repeat; }
.tezgah-pos #durum-kume [data-ton='iyi'], .tezgah-pos #durum-kume [data-durum='acik'] { color: var(--olumlu); background: var(--olumlu-zemin); border-color: var(--olumlu); }
.tezgah-pos #durum-kume [data-ton='hata'], .tezgah-pos #durum-kume [data-durum='kapali'], .tezgah-pos #durum-kume [data-durum='uyari'] { color: var(--hata-metin); background: var(--hata-zemin); border-color: var(--hata-metin); }
.tezgah-pos #durum-kume [data-ton='uyari'] { color: var(--siyah); background: var(--uyari-zemin); border-color: var(--cizgi); }
/* Chrome min-content aralıkları saymıyor; küme tek satır kalır, önce saat uyarısı ve ad daralır. */
.tezgah-pos > header .head-right { flex-wrap: nowrap; }
@media (min-width: 901px) {
  .tezgah-pos > header .head-right { min-width: 0; }
  .tezgah-pos > header #lock-button { min-width: 48px; }
}
/* Saat uyarısı ve yayın bandı birlikteyken kasa işleri ikinci tam satıra geçer. */
@media screen and (min-width: 901px) {
  .tezgah-pos > header:has(> .saat-uyari:not([hidden])) { height: auto; flex-wrap: wrap; row-gap: var(--b-2); }
  .tezgah-pos > header:has(> .saat-uyari:not([hidden])) .head-right { flex-basis: 100%; }
}
/* P05: bağlantı kutusu ürünlerden önce kendi satırında; başlık ve sepet yerinde kalır. */
@media screen and (min-width: 901px) {
  .tezgah-pos #sale-screen[data-ag-kilitli='evet'] .catalog { grid-template-rows: 72px auto auto minmax(0, 1fr) auto; }
  .tezgah-pos #sale-screen[data-ag-kilitli='evet'] #ag-kilit { grid-row: 3; margin: 8px 16px; padding: 16px 20px 16px 42px; }
  .tezgah-pos #sale-screen[data-ag-kilitli='evet'] #products { grid-row: 4; }
  .tezgah-pos #sale-screen[data-ag-kilitli='evet'] #pos-bildirim-yeri { grid-row: 5; }
  .tezgah-pos #ag-kilit strong { font-size: var(--y-24); }
  .tezgah-pos #ag-kilit p { margin-top: 8px; font-size: var(--y-17); line-height: 1.4; }
}
@media screen and (min-width: 901px) and (max-height: 760px) {
  .tezgah-pos #sale-screen[data-ag-kilitli='evet'] .catalog { grid-template-rows: 64px auto auto minmax(0, 1fr) auto; }
}
@media screen and (min-width: 1280px) {
  .tezgah-pos > header #orders-button:not([hidden]) { display: inline-flex; }
}
/* Telefonda küme kasa düğmelerinin altında kendi satırında; sığmazsa alta kayar, sayfa yana kaymaz. */
@media (max-width: 900px) { .tezgah-pos #durum-kume { grid-column: 1 / -1; grid-row: 3; justify-self: start; grid-template-columns: minmax(0, 1fr); gap: 2px; white-space: normal; } .tezgah-pos #durum-kume #cash-label { grid-column: 1; grid-row: 3; white-space: normal; } }

/* P07: üst şerit ve kategori ölçüleri; kurun tek düğümünü H1 taşır. */
@media screen and (min-width: 901px) {
  .tezgah-pos > header #session-label { font-size: var(--y-16); font-weight: 700; text-align: left; }
  .tezgah-pos #tabs button { min-height: 56px; font-size: var(--y-15); }
}

/* P07: kısa terminalde tuş boyları aynı; dört yöntem tek sırada, listeye yer açılır. */
@media screen and (min-width: 901px) and (max-height: 700px) {
  body.tezgah-pos > footer { height: 16px; min-height: 16px; padding-block: 0; }
  .tezgah-pos #sale-basket { padding-block: 0; }
  .tezgah-pos #sale-basket .checkout { padding-block: 0; }
  .tezgah-pos #sale-basket .checkout .secondary-actions { padding-bottom: 0; }
  .tezgah-pos #sale-basket .quick-payments { grid-template-columns: minmax(64px, 1fr) minmax(64px, 1fr) minmax(124px, 1.7fr) minmax(80px, 1.2fr); gap: 4px; align-items: end; }
  .tezgah-pos #sale-basket .quick-payments button { padding: 0 4px; white-space: normal; }
  .tezgah-pos #sale-basket .quick-payments button::before, .tezgah-pos #sale-basket .quick-payments button svg { display: none; }
  .tezgah-pos #sale-basket .quick-payments #pay-account { gap: 0; }
  .tezgah-pos #sale-basket .quick-payments #pay-account > span { line-height: 20px; }
  .tezgah-pos #sale-basket .quick-payments #pay-account .customer-new-debt { line-height: 16px; white-space: normal; }
  .tezgah-pos #sale-basket #sepet-devam { min-height: 20px; padding-block: 0; }
}

/* Karar 620: ölçüler ve iyi/uyarı/hata renkleri korunur. */
@media screen {
  .tezgah-pos #durum-kume .cash-chip {
    border-radius:var(--kose-k);
    box-shadow:var(--golge-kart);
    font-variant-numeric:tabular-nums;
  }
  .tezgah-pos #pos-durum-serit,
  .tezgah-pos :is(.pos-pencere-bilgi,.pos-pencere-hata) {
    border-radius:var(--kose-k);
  }
}
