/* Nakit hareketi: ortak ped yuvası, tek kasa özeti ve sabit eylem satırı. */
@media screen {
  .tezgah-pos #modal[data-kasa-pencere='nakit'] {
    width:960px;
    max-width:calc(100vw - 32px);
    margin:48px auto 16px;
    max-height:calc(100vh - 64px);
    max-height:calc(100dvh - 64px);
    --kasa-govde-pay:0;
  }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] #modal-body {
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    margin:0;
    padding:6px;
    scroll-padding:6px;
  }
  .tezgah-pos #modal #cash-move-form {
    margin:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 348px;
    grid-template-rows:280px auto auto;
    gap:16px 24px;
    align-items:start;
  }
  .tezgah-pos #modal .cash-move-main { display:contents; }
  .tezgah-pos #modal .cash-move-fields { grid-area:1 / 1 / 3 / 2; min-width:0; padding-bottom:6px; }
  .tezgah-pos #modal .cash-move-fields > label,
  .tezgah-pos #modal .cash-approval-fields label { display:block; margin:0 0 4px; }
  .tezgah-pos #modal .cash-move-fields > .field { width:100%; margin:0 0 12px; min-height:56px; }
  .tezgah-pos #modal #cash-move-amount { font-size:var(--y-28); font-weight:700; text-align:right; }
  .tezgah-pos #modal #cash-move-cancel { min-height:56px; width:100%; margin:0; }
  .tezgah-pos #modal .cash-move-pad { grid-area:1 / 2; position:sticky; top:6px; min-height:280px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] #number-pad {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-height:var(--nakit-ped-alan,none);
    overflow-y:auto;
    gap:8px;
    margin:0;
    scroll-margin:0;
  }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] #number-pad button {
    height:64px;
    min-height:64px;
    margin:0;
    padding:8px;
    font-size:var(--y-26);
  }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] .cash-approval {
    margin:4px 0 0;
    padding:12px;
    border:1px solid var(--cizgi);
    border-radius:var(--kose);
    background:var(--yuzey-2);
  }
  .tezgah-pos #modal .cash-approval-title { margin:0 0 8px; font-weight:700; font-size:var(--y-18); }
  .tezgah-pos #modal .cash-approval-fields { display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:12px; }
  .tezgah-pos #modal .cash-approval-fields > div { min-width:0; }
  .tezgah-pos #modal .cash-approval-fields .field { width:100%; min-width:0; margin:0; min-height:56px; }
  .tezgah-pos #modal .cash-move-actions {
    grid-area:3 / 1 / 4 / -1;
    display:grid;
    grid-template-columns:minmax(0,1fr) 348px;
    gap:24px;
    position:sticky;
    bottom:0;
    z-index:2;
    align-items:end;
    align-self:end;
    padding-top:12px;
    border-top:1px solid var(--cizgi);
    background:var(--kagit);
  }
  .tezgah-pos #modal .cash-move-result { grid-area:2 / 2; min-width:0; align-self:end; position:sticky; top:min(308px,var(--nakit-ozet-ust,308px)); bottom:101px; }
  .tezgah-pos #modal #cash-move-limit { margin:0 0 4px; font-size:var(--y-16); line-height:1.3; }
  .tezgah-pos #modal #cash-move-limit:empty { display:none; }
  .tezgah-pos #modal #cash-move-summary {
    margin:0;
    padding:8px 12px;
    min-height:0;
    font-size:var(--y-18);
    line-height:1.35;
    overflow-wrap:anywhere;
  }
  .tezgah-pos #modal #cash-move-save {
    position:static;
    margin:0;
    height:76px;
    min-height:76px;
    width:100%;
    box-shadow:none;
    font-size:var(--y-21);
  }
}
/* Hata onay alanından sonra akar; alt düğmelerin üstünde yer kaplar. */
.tezgah-pos #modal .cash-move-fields > #modal-error {
  position:static;
  margin:8px 0 0;
}
.tezgah-pos #modal .cash-move-fields > #modal-error:empty { display:none; }
@media screen and (max-height:700px) {
  .tezgah-pos #modal[data-kasa-pencere='nakit'] { padding:8px 20px 0; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] > .deneme-pencere-isareti { margin-top:0; margin-bottom:0; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] > .dialog-top { padding-bottom:0; margin-bottom:0; gap:8px; flex-wrap:nowrap; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] > .dialog-top > #modal-title { flex:0 0 auto; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] > .dialog-top > #modal-close { order:1; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] #pos-pencere-bildirim-yeri:not([hidden]) { order:0; flex:1 1 auto; }
  .tezgah-pos #modal .cash-move-fields > .field { margin-bottom:8px; }
  .tezgah-pos #modal #cash-move-form { grid-template-rows:268px auto auto; row-gap:8px; }
  .tezgah-pos #modal .cash-move-pad { min-height:268px; top:0; }
  .tezgah-pos #modal .cash-move-result { top:min(288px,var(--nakit-ozet-ust,288px)); bottom:93px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] .cash-approval { margin-top:0; padding:8px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] .cash-approval-title { margin-bottom:4px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] .cash-approval-fields .field { min-height:48px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] .cash-approval .deneme-ipucu { margin:8px 0 0; padding:4px 8px; }
  .tezgah-pos #modal[data-kasa-pencere='nakit'] #number-pad { gap:4px; }
  .tezgah-pos #modal .cash-move-actions { padding-top:4px; }
  .tezgah-pos #modal #cash-move-summary { font-size:var(--y-16); padding:4px 10px; }
}
@media screen and (max-width:760px) {
  .tezgah-pos #modal #cash-move-form { display:flex; flex-direction:column; gap:12px; }
  .tezgah-pos #modal .cash-move-pad { position:static; min-height:0; }
  .tezgah-pos #modal .cash-move-actions { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
