/* P13: aynı formun gerçek alanları, ortak tablo ve ped; yalnız sayım gövdesi kayar. */
@media screen {
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] {
    width: 1320px;
    height: 814px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 16px 24px 12px;
    --kasa-govde-pay: 0;
  }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] > .dialog-top {
    margin-bottom: 8px;
    padding-bottom: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] > .deneme-pencere-isareti { margin: 0 0 8px; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #modal-title { flex: 0 0 auto; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #modal-close { order: 1; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #pos-pencere-bildirim-yeri:not([hidden]) { flex: 1; order: 0; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    overflow: hidden;
  }
  .tezgah-pos #modal #handover-form.devir-formu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    margin: 0;
  }
  .tezgah-pos #modal .devir-form-bilgi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: none;
  }
  .tezgah-pos #modal .devir-form-bilgi > label { margin: 0; font-size: var(--y-16); }
  .tezgah-pos #modal .devir-form-veren { flex: 1 0 100%; margin: 0; color: var(--soluk); font-size: var(--y-14); }
  .tezgah-pos #modal .devir-form-bilgi > select { width: 300px; margin: 0; min-height: 48px; }
  .tezgah-pos #modal .devir-form-bilgi > .carry-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 0 auto;
    padding: 8px 12px;
    box-shadow: none;
    font-size: var(--y-14);
  }
  .tezgah-pos #modal .devir-form-bilgi > .carry-box > span { display: none; }
  .tezgah-pos #modal .devir-form-bilgi > :is(#handover-mismatch,#handover-night-early,#handover-shift-warning) {
    flex: 1 0 100%; margin: 0; padding: 8px 12px 8px 40px; font-size: var(--y-14); line-height: 1.35;
  }
  .tezgah-pos #modal .devir-form-ana {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
    flex: 1;
    min-height: 0;
  }
  .tezgah-pos #modal .devir-form-govde {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 4px;
    scroll-padding: 8px;
  }
  .tezgah-pos #modal .devir-form-ana.devir-ped-kapali { grid-template-columns: minmax(0,1fr); }
  .tezgah-pos #modal .devir-form-tablo {
    border: 1px solid var(--cizgi);
    border-radius: var(--kose-o);
    overflow: hidden;
    background: var(--yuzey-1);
  }
  .tezgah-pos #modal .devir-form-tablo .ortak-hizali-tablo { font-size: var(--y-18); }
  .tezgah-pos #modal .devir-form-tablo caption { padding: 12px; text-align: left; font-size: var(--y-18); border-bottom: 1px solid var(--cizgi); }
  .tezgah-pos #modal .devir-cek-bilgi { display: block; font-size: var(--y-12); color: var(--soluk); }
  .tezgah-pos #modal .devir-form-tablo :is(th,td) { height: 60px; padding: 4px 12px; }
  .tezgah-pos #modal .devir-form-tablo thead th { height: 40px; font-size: var(--y-12); background: var(--yuzey-2); }
  .tezgah-pos #modal .devir-form-tablo :is(th,td):nth-child(2),
  .tezgah-pos #modal .devir-form-tablo :is(th,td):nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
  .tezgah-pos #modal .devir-form-tablo td[data-hiza-sutun='teslim'] { font-weight: 600; }
  .tezgah-pos #modal .devir-form-tablo td[data-hiza-sutun='sistem'] { color: var(--soluk); }
  .tezgah-pos #modal .devir-form-tablo td[data-hiza-sutun='kalem'] { white-space: normal; min-width: 140px; }
  .tezgah-pos #modal .devir-form-tablo td[data-hiza-sutun='saydigin'] { width: 200px; padding-right: 12px; }
  .tezgah-pos #modal .devir-form-tablo .hiza-ek { width: 1px; padding-left: 0; font-size: var(--y-14); }
  .tezgah-pos #modal .devir-sayilan { position: relative; min-width: 0; }
  .tezgah-pos #modal .devir-sayilan > input.field {
    width: 100%;
    min-width: 100px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    text-align: right;
    font-size: var(--y-20);
  }
  .tezgah-pos #modal .devir-alan-etiket {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tezgah-pos #modal .devir-cek-alani { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-height: 48px; font-size: var(--y-14); }
  .tezgah-pos #modal .devir-kupur-satiri > td { padding: 0 12px; height: auto; white-space: normal; background: var(--yuzey-2); }
  .tezgah-pos #modal .devir-kupur-satiri .kupur { margin: 0; }
  .tezgah-pos #modal .devir-kupur-satiri summary { padding: 8px 0; font-size: var(--y-14); }
  .tezgah-pos #modal .devir-ret-alani { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--cizgi); border-radius: var(--kose-o); }
  .tezgah-pos #modal .devir-ret-alani label { flex: none; margin: 0; font-size: var(--y-16); }
  .tezgah-pos #modal .devir-ret-alani input { min-width: 0; flex: 1; margin: 0; height: 48px; font-size: var(--y-16); }
  .tezgah-pos #modal .devir-form-ayrinti { margin-top: 8px; font-size: var(--y-14); }
  .tezgah-pos #modal .devir-form-ayrinti > summary { min-height: 44px; padding-block: 8px; }
  .tezgah-pos #modal .devir-form-ped { display: flex; flex-direction: column; align-self: start; height: 324px; max-height: 100%; min-height: 0; padding: 12px; border: 1px solid var(--cizgi); border-radius: var(--kose-o); background: var(--yuzey-2); }
  .tezgah-pos #modal .devir-form-ped > p { margin: 0 0 8px; font-size: var(--y-14); color: var(--soluk); }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #number-pad { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(44px,1fr)); flex: 1; min-height: 0; overflow-y: auto; gap: 8px; margin: 0; scroll-margin: 0; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #number-pad button { height: 100%; min-height: 44px; margin: 0; padding: 8px; font-size: var(--y-26); }
  .tezgah-pos #modal .devir-form-alt { display: grid; grid-template-columns: 240px minmax(0,1fr) 260px; align-items: end; gap: 16px; flex: none; padding-top: 12px; border-top: 1px solid var(--cizgi); }
  .tezgah-pos #modal .devir-form-alt > #handover-reject { grid-column: 1; grid-row: 1; margin: 0; min-height: 56px; font-size: var(--y-16); white-space: normal; }
  .tezgah-pos #modal .devir-form-alt > button.primary { grid-column: 3; grid-row: 1; position: static; margin: 0; min-height: 76px; height: auto; padding: 12px; font-size: var(--y-21); box-shadow: none; }
  .tezgah-pos #modal .devir-form-alt > .auth-box { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) 130px minmax(180px,1.4fr); align-items: center; gap: 4px 12px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
  .tezgah-pos #modal .devir-form-alt .auth-title { grid-column: 1; grid-row: 1; font-size: var(--y-14); }
  .tezgah-pos #modal .devir-form-alt .auth-fields { display: contents; }
  .tezgah-pos #modal .devir-form-alt .auth-fields > div { min-width: 0; grid-row: 1 / span 2; align-self: end; }
  .tezgah-pos #modal .devir-form-alt .auth-fields > div:first-child { grid-column: 2; }
  .tezgah-pos #modal .devir-form-alt .auth-fields > div:last-child { grid-column: 3; }
  .tezgah-pos #modal .devir-form-alt .auth-fields label { display: block; margin: 0 0 4px; font-size: var(--y-12); color: var(--soluk); }
  .tezgah-pos #modal .devir-form-alt .auth-fields input { width: 100%; min-width: 0; height: 48px; min-height: 48px; margin: 0; font-size: var(--y-18); }
  .tezgah-pos #modal .devir-form-alt .ortak-kod-kutusu { min-width: 0; height: 48px; margin: 0; }
  .tezgah-pos #modal .devir-form-alt .ortak-kod-hane { aspect-ratio: auto; height: 48px; }
  .tezgah-pos #modal .devir-form-alt .deneme-ipucu { grid-column: 1; grid-row: 2; padding: 4px; margin: 0; font-size: var(--y-12); line-height: 1.3; }
}
@media screen and (max-width: 1400px) {
  .tezgah-pos #modal .devir-form-alt { grid-template-columns: 210px minmax(0,1fr) 220px; gap: 12px; }
  .tezgah-pos #modal .devir-form-alt > .auth-box { grid-template-columns: minmax(120px,1fr) 110px minmax(180px,1.4fr); gap: 4px 8px; }
  .tezgah-pos #modal .devir-form-ana { grid-template-columns: minmax(0,1fr) 300px; gap: 12px; }
  .tezgah-pos #modal .devir-form-tablo :is(th,td) { padding-inline: 8px; }
  .tezgah-pos #modal .devir-form-tablo td[data-hiza-sutun='saydigin'] { width: 160px; }
}
@media screen and (max-height: 700px) {
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] { padding-top: 8px; padding-bottom: 8px; }
  .tezgah-pos #modal #handover-form.devir-formu { gap: 8px; }
  .tezgah-pos #modal .devir-form-ped { height: 280px; padding: 8px; }
  .tezgah-pos #modal[data-kasa-pencere='devir-al'] #number-pad { gap: 4px; }
  .tezgah-pos #modal .devir-form-alt { padding-top: 8px; }
}
