/*
  app.css
  Ortak tasarım sistemi: modern, sade, dokunmatik uyumlu.
*/

:root{
  /* Aydınlık tema */
  --bg: #ffffff;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #4e6387;
  --border: rgba(15,23,42,.11);

  /* Daha canlı/modern palet */
  --primary: #2f6bff;  /* canlı mavi */
  --success: #12b981;  /* modern yeşil */
  --warning: #f6a609;  /* sıcak amber */
  --danger: #ff3b57;   /* canlı kırmızı */

  /* Ek vurgu renkleri (gerektikçe kullanılabilir) */
  --indigo: #6d5cff;
  --cyan: #00b3db;
  --orange: #ff7a00;
  --shadow-sm: 0 0.5rem 1.375rem rgba(15,23,42,.08);
  --shadow: 0 0.75rem 2.125rem rgba(15,23,42,.10);
  --shadow-lg: 0 1.125rem 3.4375rem rgba(15,23,42,.14);
  --radius: 0.75rem;
  --radius-sm: 0.75rem;
  --touch: 3rem;
  --max: 77.5rem;
  --ease: cubic-bezier(.22,1,.36,1);
  --dur-fast: 140ms;
  --dur: 220ms;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Mikro animasyonlar (genel) */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(0.625rem); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes pop{
  0%{ transform: scale(.98); opacity: .0; }
  100%{ transform: scale(1); opacity: 1; }
}
@keyframes slideInRight{
  from{ transform: translateX(0.875rem); opacity:0; }
  to{ transform: translateX(0); opacity:1; }
}

/* Hareketi azalt (erişilebilirlik) */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

a{color:inherit; text-decoration:none}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.125rem;
}

.app-frame{
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  overflow-x: hidden;
}

.app-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.875rem;
  padding: 0.3125rem 1.125rem;
  border-bottom: 0.0625rem solid var(--border);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(0.625rem);
  box-shadow: 0 0.625rem 1.875rem rgba(15,23,42,.06);
}
.app-header-left{
  display:flex;
  align-items:center;
  gap: 0.75rem;
  min-width: 0;
}
.app-header-logo,
.app-header-logo-fallback{
  width: 120px;
  border-radius: 0.75rem;
  object-fit: cover;
  background:#fff;
}
.app-header-logo-fallback{
  background: linear-gradient(135deg, var(--primary), rgba(79,124,255,.35));
}
.app-header-brand{min-width:0}
.app-header-brand-name{
  font-weight: 700;
  letter-spacing: 0.0125rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-header-right{
  display:flex;
  align-items:center;
  gap: 0.625rem;
}
.app-header-logout{
  min-height: 2.5rem;
  min-width: 2.5rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  padding: 0 0.75rem;
  gap: 0.5rem;
}
.app-header-logout__icon{ flex-shrink: 0; display:block; }
.app-header-logout__text{
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-header-fullscreen{
  min-height: 2.5rem;
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  flex-shrink: 0;
  border: 0.0625rem solid #0f172a;
  background: #fff;
  color: #0f172a;
}
.app-header-fullscreen:hover{
  background: #000000;
  color: #ffffff;
}
.app-header-fullscreen:focus-visible{
  outline: none;

  border-color: #0f172a;
}
.app-header-fullscreen__icon{
  flex-shrink: 0;
  display: block;
}
.app-header-fullscreen__icon[hidden]{
  display: none;
}
.app-header-lock{
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.app-header-lock:hover{
  text-decoration: none;
}
.app-header-lock__icon{
  flex-shrink: 0;
  color: inherit;
}
.app-header-lock__text{
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-header-user{
  display:flex;
  flex-direction:column;
  gap: 0.125rem;
  line-height: 1.15;
  text-align:right;
}
.app-header-user-name{font-weight:600}
.app-header-user-role{
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.app-shell{
  display:flex;
  flex: 1;
  min-height: 0;
}

.sidebar{
  width: 6rem;
  padding: 0.5rem;
  background: rgb(0, 0, 0);
  border-right: 0.0625rem solid rgba(255,255,255,.08);
  backdrop-filter: blur(0.625rem);
  color: rgba(0, 0, 0, 0.92);
  border-radius: 0rem 1rem 1rem 0rem;
  margin: 1rem 0rem 1rem 0rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.625rem;
  padding: 0.75rem 0.75rem;
  border:0.0625rem solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow);
}

.brand .logo{
  width:2.375rem; height:2.375rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), rgba(79,124,255,.35));
}

.brand .logo-img{
  width:2.375rem; height:2.375rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border:0.0625rem solid var(--border);
  background:#fff;
}
.brand .brand-right{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:0.625rem;
  flex: 1;
  min-width: 0;
}
.brand .brand-text{ min-width:0; }
.brand .brand-text strong{ display:block; }
.sidebar-toggle{
  width: 100%;
  justify-content:flex-start;
  min-height: var(--touch);
  border-radius: 0.75rem;
}

.sidebar-controls{
  margin-top: 0.625rem;
}

.nav{
  display:flex;
  flex-direction:column;
  gap: 1.00rem;
}
.nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 0.2rem 0.2rem;
  min-height: 3.5rem;
  width: 100%;
  border-radius: 0.75rem;
  color: rgba(255,255,255,.92);
  background: rgb(255, 255, 255);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              filter var(--dur-fast) var(--ease);
  will-change: transform;
}
.nav a .nav-icon{
  width: 2.75rem;
  height: 2.75rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(0, 0, 0, 0.92);
}
.nav a .nav-icon svg{
  width: 2.125rem;
  height: 2.125rem;
  stroke-width: 2.25;
}
.nav a .nav-label{
  margin: 0;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.92);
  text-align:center;
}
.nav a .nav-arrow{
  display:none;
}
.nav a:hover{
  background:  rgb(0 156 73) !important;
  transform: translateY(-0.0625rem);
}
.nav a:active{
  transform: translateY(0);
  filter: brightness(.98);
}
.nav a.active{
  background: rgb(0 156 73) !important;
  color: rgba(255,255,255,.98) !important;
  box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.35) !important;


}
.nav a.active .nav-icon,
.nav a.active .nav-label,
.nav a.active .nav-arrow{
  color: rgba(255, 255, 255, 0.98) !important;
}



.main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width: 0;
  padding: 0.3125rem;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0.875rem 1.125rem;
  border-bottom:0.0625rem solid var(--border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(0.5rem);
}

.topbar .title{
  display:flex;
  flex-direction:column;
  gap:0.125rem;
}
.topbar .title strong{font-size: 1rem}
.topbar .title span{font-size: 0.8125rem; color: var(--muted)}

.pill{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 62.4375rem;
  border:0.0625rem solid var(--border);
  background: rgba(15,23,42,.04);
}

.content{
 
  position: relative;
  min-width: 0;
}
.content::before{
  content:"";
  position:absolute;
  inset: 0;
  background-image: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(32.5rem, 70vw);
  opacity: .06;
  pointer-events: none;
  filter: grayscale(100%);
}
.content > *{ position: relative; z-index: 1; }

/* Sidebar daralt / genişlet */
body.sidebar-collapsed .sidebar{
  width: 5.75rem;
  padding: 0.875rem;
}
body.sidebar-collapsed .brand{
  justify-content:space-between;
}
body.sidebar-collapsed .brand .brand-right{
  display:none;
}
body.sidebar-collapsed .sidebar-toggle{
  justify-content:center;
}
body.sidebar-collapsed .sidebar-toggle .nav-label{
  display:none;
}
body.sidebar-collapsed .sidebar-toggle .icon-expand{
  display:inline-flex !important;
}
body.sidebar-collapsed .sidebar-toggle .icon-collapse{
  display:none !important;
}
body.sidebar-collapsed .nav a{
  padding: 0.75rem 0.5rem;
  min-height: 5rem;
}
body.sidebar-collapsed .nav{
  grid-template-columns: 1fr;
}
body.sidebar-collapsed .nav a .nav-label{ font-size: 0.6875rem; }
body.sidebar-collapsed .nav a .nav-arrow{ display:none; }

/* Sidebar dar mod: ikonları büyüt (dokunmatik kullanım) */
body.sidebar-collapsed .nav a .nav-icon{
  width: 2.75rem;
  min-width: 2.75rem;
}
body.sidebar-collapsed .nav a .nav-icon svg{
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 2.25;
}
body.sidebar-collapsed .sidebar-toggle{
  min-height: 4rem;
}
body.sidebar-collapsed .sidebar-toggle .nav-icon svg{
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 2.25;
}

/* Mobil: sidebar altta sabit, yatay kaydırılabilir */
@media (max-width: 47.9375rem){
  .app-shell{
    flex-direction: column;
  }

  .sidebar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(4.5rem + env(safe-area-inset-bottom, 0rem));
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0rem));
    border-right: none;
    border-top: 0.0625rem solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(2,6,23,.96), rgba(2,6,23,.88));
    z-index: 60;
  }

  /* Mobil alt menüde raporları gizle */
  .sidebar .nav .nav-btn--reports{ display:none !important; }

  .nav{
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.125rem;
  }
  .nav::-webkit-scrollbar{ height: 0; }
  .nav{ scrollbar-width: none; }

  .nav a{
    /* 5 kart görünür: her biri min %20; 5'ten azsa otomatik genişler */
    flex: 1 0 20%;
    width: auto;
    min-width: 20%;
    min-height: 3.5rem;
    scroll-snap-align: start;
    border-color: rgba(148,163,184,.16);
    background: rgba(148,163,184,.06);
    color: rgba(226,232,240,.86);
  }
  .nav a .nav-icon,
  .nav a .nav-label{
    color: rgba(226,232,240,.86);
  }
  .nav a.active{
    background: rgba(37,99,235,.92) !important;
    border-color: rgba(37,99,235,.92) !important;
    color: #fff !important;
    box-shadow: 0 0.75rem 1.5rem rgba(37,99,235,.25);
  }
  .nav a.active .nav-icon,
  .nav a.active .nav-label{
    color: #fff !important;
  }
  .nav a .nav-icon{
    width: 2.5rem;
    height: 2.5rem;
  }
  .nav a .nav-icon svg{
    width: 2rem;
    height: 2rem;
  }


  /* Alt menü içerikleri kapatmasın */
  .main{
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0rem));
  }
  .content{
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0rem));
  }
}

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:0.875rem;
  margin-bottom: 0.875rem;
}
.page-head h1{
  margin:0;
  font-size: 1.375rem;
}
.page-head p{
  margin:0.375rem 0 0;
  color: var(--muted);
}

.grid{
  display:grid;
  gap: 0.75rem;
}
.grid.cols-4{grid-template-columns: repeat(4, minmax(0,1fr))}
.grid.cols-2{grid-template-columns: repeat(2, minmax(0,1fr))}

.card{
  background: rgba(255,255,255,.90);
  border:0.0625rem solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

/* Excel export button */
.btn-excel{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(33,115,70,.14);
  border-color: rgba(33,115,70,.45);
  color: #14532d;
  font-weight: 700;
}
.btn-excel:hover{
  background: rgba(33,115,70,.20);
  border-color: rgba(33,115,70,.58);
}
.btn-excel svg{
  width:18px;
  height:18px;
  flex: 0 0 auto;
}

/* Masa kartları (dokunmatik) */
.table-grid{
  display:grid;
  gap:0.75rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.table-card{
  padding: 0.875rem;
  border-radius: var(--radius);
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  min-height: 6.875rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  will-change: transform;
}
.table-card.is-bos{
  border-color: rgba(32,201,151,.38);
  background: linear-gradient(180deg, rgba(32,201,151,.14), rgba(255,255,255,.88));
}
.table-card.is-dolu{
  border-color: rgba(255,90,95,.38);
  background: linear-gradient(180deg, rgba(255,90,95,.12), rgba(255,255,255,.88));
}
.table-card .top{
  display:flex;
  justify-content:space-between;
  gap:0.625rem;
  align-items:flex-start;
}
.table-card .name{
  font-weight: 700;
  font-size: 1.125rem;
}
.table-card .badge{
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  border-radius: 62.4375rem;
  border:0.0625rem solid var(--border);
  background: rgba(15,23,42,.04);
}
.badge.bos{ border-color: rgba(32,201,151,.45); background: rgba(32,201,151,.10); }
.badge.dolu{ border-color: rgba(79,124,255,.50); background: rgba(79,124,255,.10); }
.badge.hesap{ border-color: rgba(255,193,7,.55); background: rgba(255,193,7,.14); }
.badge.rezerve{ border-color: rgba(140,82,255,.45); background: rgba(140,82,255,.10); }
.badge.kapali{ border-color: rgba(255,90,95,.45); background: rgba(255,90,95,.10); }

.list-row{
  background: rgba(255,255,255,.75);
}
.list-row.is-inactive{
  background: rgba(255,90,95,.16);
  border-color: rgba(255,90,95,.40) !important;
}

.table-card .actions{
  display:flex;
  gap:0.625rem;
  flex-wrap:wrap;
  margin-top: 0.75rem;
}

/* Salon / masa kartları (alan sekmeli zemin görünümü) */
.tables-floor__head{
  margin-bottom: 0.625rem;
}
.tables-floor__context{
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}
.tables-floor__context-name{
  color: var(--text);
  font-weight: 700;
}
.tables-floor__meta{
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.tables-floor-tabs{
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem;
  margin: 0.875rem 0 1rem;
  padding-bottom: 0.125rem;
  border-bottom: 0.0625rem solid var(--border);
}
.tables-floor-tab{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem 0.625rem;
  margin-bottom: -0.125rem;
  border-radius: 0.75rem 0.75rem 0 0;
  border: 0.0625rem solid transparent;
  border-bottom: none;
  background: rgba(15,23,42,.03);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tables-floor-tab:hover{
  color: var(--text);
  background: rgba(251,146,60,.12);
}
.tables-floor-tab.is-active{
  color: #9a3412;
  background: rgba(251,146,60,.18);
  border-color: var(--border);
  border-bottom: 0.125rem solid #ea580c;
  padding-bottom: 0.5rem;
}
.tables-floor-tab__badge{
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(234,88,12,.2);
  color: #9a3412;
}
.tables-floor-tab.is-active .tables-floor-tab__badge{
  background: #ea580c;
  color: #fff;
}
.tables-floor-grid{
  display:grid;
  gap: 0.875rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 80rem){
  .tables-floor-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Tablet: 3 kolon + daha kompakt kartlar */
@media (max-width: 51.25rem){
  .tables-floor-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tables-floor-card{
    min-height: 11.25rem;
  }
  .tables-floor-card__illustration{
    min-height: 4.75rem;
    margin: 0.125rem 0 0.375rem;
  }
  .tables-floor-card__svg{
    width: 3.75rem;
    height: 3.75rem;
  }
  .tables-floor-card__name{
    font-size: 1.0625rem;
    margin-bottom: 0;
  }
  .tables-floor-card__footer{
    font-size: 0.9375rem;
    margin-bottom: 0;
  }
  .tables-floor-card__actions{
    margin-top: 0.5rem;
    gap: 0.375rem;
  }
  .tables-floor-btn{
    min-height: 2.5rem;
    font-size: 0.875rem;
    border-radius: 0.6875rem;
  }
}
/* Küçük tablet / büyük telefon: 2 kolon */
@media (max-width: 40rem){
  .tables-floor-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem){
  .tables-floor-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tables-floor-card{
  position: relative;
  padding: 0.3125rem 0.3125rem 0.3125rem;
  border-radius: 1rem;
  border: 0.0625rem solid var(--border);
  background: #fff;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-height: 10rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tables-floor-card:hover{
  transform: translateY(-0.125rem);
  box-shadow: 0 0.875rem 2rem rgba(15,23,42,.12);
}
a.tables-floor-card--clickable{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
a.tables-floor-card--clickable:hover{
  color: inherit;
}
.tables-floor-card__main-link{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  margin: -0.25rem;
  padding: 0.25rem;
}
.tables-floor-card__main-link:hover{
  color: inherit;
}
.tables-floor-card--bos{
  border-color: rgba(251,146,60,.45);
  background: linear-gradient(165deg, rgba(255,247,237,.95), #fff 55%);
}
.tables-floor-card--dolu{
  border-color: rgba(22,163,74,.42);
  background: linear-gradient(165deg, rgba(220,252,231,.9), #fff 55%);
}
.tables-floor-card__status{
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.375rem;
  padding: 0.3125rem 0.6875rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.tables-floor-card--bos .tables-floor-card__status,
.tables-move-card--bos .tables-floor-card__status{
  color: #9a3412;
  border: 0.0625rem solid rgba(234,88,12,.45);
  background: rgba(251,146,60,.2);
}
.tables-floor-card--dolu .tables-floor-card__status{
  color: #fff;
  border: 0.0625rem solid rgba(22,163,74,.55);
  background: #16a34a;
}
.tables-floor-card__main-link .tables-floor-card__status{
  margin-bottom: 0.375rem;
}
.tables-floor-card__illustration{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height: 0;
  margin: 0;
}
.tables-floor-card__svg{
  width: 3.5rem;
  height: 3.5rem;
  display:block;
  flex-shrink: 0;
}
.tables-floor-card__hero{
  display:flex;
  align-items:center;
  gap: 0.875rem;
  padding: 0.25rem 0.25rem 0.5rem;
  min-width: 0;
}
.tables-floor-card__info{
  min-width: 0;
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 0.25rem;
}
.tables-floor-card__name{
  text-align:center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}
.tables-floor-card__footer{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #15803d;
}
.tables-floor-card__wallet{
  display:flex;
  color: #15803d;
  opacity: .9;
}

/* Masalar: mobilde isim/tutar daha kompakt */
@media (max-width: 47.9375rem){
  /* Masalar: mobilde her satır 1 masa + tek satır düzen */
  .tables-floor-grid{
    grid-template-columns: 1fr !important;
  }
  .tables-floor-card{
    min-height: auto;
    padding: 0.2rem;
    border-radius: 0.5rem;
  }

  /* Mobil: 3 bloklu düzen
     1) Sol blok: üstte durum, altta görsel
     2) Orta blok: üstte masa adı, altta tutar (boşta yok)
     3) Sağ blok: Masa Taşı + Ödeme Al (boşta yok) */

  /* DOLU */
  .tables-floor-card--dolu{
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "status name actions"
      "icon   amount actions";
    gap: 0.5rem 0.6rem;
    align-items: center;
  }
  .tables-floor-card--dolu .tables-floor-card__main-link,
  .tables-floor-card--dolu .tables-floor-card__hero,
  .tables-floor-card--dolu .tables-floor-card__info,
  .tables-floor-card--dolu .tables-floor-card__footer{
    display: contents;
  }
  .tables-floor-card--dolu .tables-floor-card__status{
    grid-area: status;
    margin: 0 !important;
    justify-self: center;
    align-self: start;
  }
  .tables-floor-card--dolu .tables-floor-card__illustration{
    grid-area: icon;
    justify-self: center;
    align-self: end;
  }
  .tables-floor-card--dolu .tables-floor-card__svg{
    width: 2.75rem;
    height: 2.75rem;
  }
  .tables-floor-card--dolu .tables-floor-card__name{
    grid-area: name;
    margin: 0;
    line-height: 1.15;
  }
  .tables-floor-card--dolu .tables-floor-card__footer{
    grid-area: amount;
    display:flex;
    align-items:center;
    gap: 0.35rem;
    margin: 0;
    justify-content: center;
  }
  .tables-floor-card--dolu .tables-floor-card__amount{
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .tables-floor-card--dolu .tables-floor-card__wallet{
    display: none;
  }
  .tables-floor-card--dolu .tables-floor-card__actions{
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
    align-self: center;
    justify-self: end;
    margin: 0;
  }
  .tables-floor-card--dolu .tables-floor-btn--move,
  .tables-floor-card--dolu .tables-floor-btn--pay{
    min-height: 2.35rem;
    font-size: 0.82rem;
    padding: 0 0.5rem;
    white-space: nowrap;
  }

  /* BOŞ: status + icon + name (tutar/buton yok) */
  .tables-floor-card--bos{
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "status name"
      "icon   name";
    gap: 0.5rem 0.6rem;
    align-items: center;
  }
  .tables-floor-card--bos .tables-floor-card__hero,
  .tables-floor-card--bos .tables-floor-card__info{
    display: contents;
  }
  .tables-floor-card--bos .tables-floor-card__illustration{
    grid-area: icon;
    justify-self: center;
    align-self: end;
  }
  .tables-floor-card--bos .tables-floor-card__svg{
    width: 2.75rem;
    height: 2.75rem;
  }
  .tables-floor-card--bos .tables-floor-card__status{
    grid-area: status;
    margin: 0 !important;
    justify-self: center;
    align-self: start;
  }
  .tables-floor-card--bos .tables-floor-card__name{
    grid-area: name;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .tables-floor-card__name{
    font-size: 1rem;
    font-weight: 700;
  }
  .tables-floor-card__footer{
    font-size: 0.875rem;
    font-weight: 700;
  }
  .tables-floor-card__wallet svg{
    width: 1.125rem;
    height: 1.125rem;
  }
}
.tables-floor-card__actions{
  margin-top: 0.625rem;
  display:flex;
  flex-wrap:wrap;
  gap: 0.5rem;
  justify-content:center;
}
.tables-floor-card__actions--split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.tables-floor-card__actions--single{
  grid-template-columns: 1fr;
}
.tables-floor-card__actions .btn{
  flex: 1 1 auto;
  min-width: 0;
  justify-content:center;
  text-align:center;


}
.tables-floor-btn{
  min-height: 2.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
}
.tables-floor-card__actions button.btn.tables-floor-btn--move,
.tables-floor-card__actions .btn.tables-floor-btn--move{
  background: #facc15;
  color: #422006;
}
.tables-floor-card__actions button.btn.tables-floor-btn--move:hover:not(:disabled),
.tables-floor-card__actions .btn.tables-floor-btn--move:hover:not(:disabled){
  background: #fde047;
  border-color: rgba(66,32,6,.28);
  color: #422006;
  filter: none;
}
.tables-floor-card__actions a.btn.tables-floor-btn--pay{
  background: #16a34a;
  color: #fff;
}
.tables-floor-card__actions a.btn.tables-floor-btn--pay:hover{
  background: #15803d;
  border-color: transparent;
  color: #fff;
  filter: none;
}

/* Masa Taşı modalı: ana sayfa ile aynı boş masa kartı / SVG */
.tables-move-modal__hint{
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  line-height: 1.4;
}
.tables-move-modal-grid{
  display:grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tables-move-modal-cell{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}
.tables-move-modal-cell__link{
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: #2563eb;
  text-decoration: none;
}
.tables-move-modal-cell__link:hover{
  text-decoration: underline;
}
@media (max-width: 45rem){
  .tables-move-modal-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 26.25rem){
  .tables-move-modal-grid{ grid-template-columns: 1fr; }
}

/* Mobil: Masa taşı modalında kartları küçült */
@media (max-width: 47.9375rem){
  /* Mobilde modal tam ekran gibi kilitlenmesin, içerik kaydırılsın */
  #tablesMoveModal.modal{
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #tablesMoveModal .modal-card{
    width: 100%;
    max-width: 34rem;
    max-height: 92dvh;
    overflow: auto;
  }
  #tablesMoveModal .modal-card .body{
    max-height: calc(92dvh - 8rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobilde her satır 1 masa */
  .tables-move-modal-grid{
    gap: 0.5rem;
    grid-template-columns: 1fr !important;
  }

  /* Daha spesifik: base .tables-move-card (flex-column) kuralını ez */
  #tablesMoveModal .tables-move-card{
    padding: 0.45rem 0.55rem;
    border-radius: 0.875rem;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }
  #tablesMoveModal .tables-move-card .tables-floor-card__status{
    margin: 0;
    align-self: center;
    justify-self: start;
  }
  #tablesMoveModal .tables-move-card .tables-floor-card__illustration{
    min-height: 0;
    margin: 0;
  }
  #tablesMoveModal .tables-move-card .tables-floor-card__svg{
    width: 2.25rem;
    height: 2.25rem;
  }
  #tablesMoveModal .tables-move-card__name{
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    justify-self: center;
    text-align: center;
  }
}
.tables-move-target-form{
  margin: 0;
  display: block;
}
.tables-move-card{
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.75rem 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 1rem;
  border: 0.0625rem solid rgba(251,146,60,.45);
  background: linear-gradient(165deg, rgba(255,247,237,.95), #fff 55%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tables-move-card:hover{
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.75rem rgba(15,23,42,.12);
}
.tables-move-card:focus{
  outline: 0.125rem solid rgba(37,99,235,.45);
  outline-offset: 0.125rem;
}
.tables-move-card:active{
  transform: translateY(0);
}
.tables-move-card .tables-floor-card__illustration{
  min-height: 5.5rem;
  margin: 0.125rem 0 0.375rem;
}
.tables-move-card .tables-floor-card__svg{
  width: 5.5rem;
  height: 5.5rem;
}
.tables-move-card__name{
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  margin-top: 0.125rem;
}
.tables-move-card--dolu{
  border-color: rgba(22,163,74,.42);
  background: linear-gradient(165deg, rgba(220,252,231,.9), #fff 55%);
}
.tables-move-card--dolu .tables-floor-card__status{
  color: #fff;
  border: 0.0625rem solid rgba(22,163,74,.55);
  background: #16a34a;
}
.tables-move-card--current{
  box-shadow: 0 0 0 0.125rem rgba(37,99,235,.35), var(--shadow);
}
.tables-move-card__footer-dolu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #15803d;
}
.tables-move-card__wallet{
  display: flex;
  color: #15803d;
  opacity: .9;
}

/* Taslak sipariş — Adisyona işle: daha dar modal, küçük kartlar, link yok */
#tableSelectModal .modal-card--draft-table-pick,
#commitToBillModal .modal-card--draft-table-pick{
  max-width: 50rem;
  max-height: 50rem;
}
#tableSelectModal .modal-card--draft-table-pick .title,
#commitToBillModal .modal-card--draft-table-pick .title{
  font-size: 1rem;
}
#tableSelectModal .modal-card--draft-table-pick__body,
#commitToBillModal .modal-card--draft-table-pick__body{
  max-height: auto;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-right: 0.125rem;
}
#tableSelectModal .tables-move-modal__hint--draft,
#commitToBillModal .tables-move-modal__hint--draft{
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}
#tableSelectModal .tables-move-modal-grid--draft,
#commitToBillModal .tables-move-modal-grid--draft{
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 40rem){
  #tableSelectModal .tables-move-modal-grid--draft,
  #commitToBillModal .tables-move-modal-grid--draft{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 25rem){
  #tableSelectModal .tables-move-modal-grid--draft,
  #commitToBillModal .tables-move-modal-grid--draft{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#tableSelectModal .tables-move-card--draft,
#commitToBillModal .tables-move-card--draft{
  padding: 0.4375rem 0.375rem 0.3125rem;
  border-radius: 0.75rem;
}
#tableSelectModal .tables-move-card--draft .tables-floor-card__illustration,
#commitToBillModal .tables-move-card--draft .tables-floor-card__illustration{
  min-height: 3.125rem;
  margin: 0 0 0.1875rem;
}
#tableSelectModal .tables-move-card--draft .tables-floor-card__svg,
#commitToBillModal .tables-move-card--draft .tables-floor-card__svg{
  width: 3.125rem;
  height: 3.125rem;
}
#tableSelectModal .tables-move-card--draft.tables-move-card--dolu .tables-floor-card__status,
#tableSelectModal .tables-move-card--draft.tables-move-card--bos .tables-floor-card__status,
#commitToBillModal .tables-move-card--draft.tables-move-card--dolu .tables-floor-card__status,
#commitToBillModal .tables-move-card--draft.tables-move-card--bos .tables-floor-card__status{
  margin-bottom: 0.1875rem;
  padding: 0.1875rem 0.4375rem;
  font-size: 0.5625rem;
  letter-spacing: 0.07em;
}
#tableSelectModal .tables-move-card--draft .tables-move-card__name,
#commitToBillModal .tables-move-card--draft .tables-move-card__name{
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
  word-break: break-word;
}
#tableSelectModal .tables-move-card--draft .tables-move-card__footer-dolu,
#commitToBillModal .tables-move-card--draft .tables-move-card__footer-dolu{
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.125rem;
  gap: 0.25rem;
}

/* Mobil: Sipariş Al → "Masaya İşle" tablo seçimi (tableSelectModal) satır liste + sabit yükseklik */
@media (max-width: 47.9375rem){
  #tableSelectModal.modal{
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #tableSelectModal .modal-card--draft-table-pick{
    width: 100%;
    max-width: 34rem;
    max-height: 92dvh;
    overflow: hidden;
  }
  #tableSelectModal .modal-card--draft-table-pick__body{
    max-height: calc(92dvh - 6.5rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Her satır 1 masa */
  #tableSelectModal .tables-move-modal-grid--draft{
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  /* Satır: Durum - Görsel - Masa Adı - Tutar */
  #tableSelectModal .tables-move-card--draft{
    display: grid;
    grid-template-columns: 3rem auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border-radius: 0.875rem;
  }
  #tableSelectModal .tables-move-card--draft .tables-floor-card__status{
    margin: 0;
    align-self: center;
    justify-self: start;
  }
  #tableSelectModal .tables-move-card--draft .tables-floor-card__illustration{
    min-height: 0;
    margin: 0;
  }
  #tableSelectModal .tables-move-card--draft .tables-floor-card__svg{
    width: 2.25rem;
    height: 2.25rem;
  }
  #tableSelectModal .tables-move-card--draft .tables-move-card__name{
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: left;
  }
  #tableSelectModal .tables-move-card--draft .tables-move-card__footer-dolu{
    margin: 0;
    font-size: 0.9rem;
    justify-content: flex-end;
    color: #15803d;
  }
  #tableSelectModal .tables-move-card--draft .tables-move-card__wallet{
    display: none;
  }
}

.commit-to-bill-confirm__lead{
  margin: 0 0 0.75rem;
}
.commit-to-bill-confirm__text{
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}
.commit-to-bill-confirm__list{
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(36vh, 15rem);
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.45;
}
.commit-to-bill-confirm__list li{
  margin-bottom: 0.375rem;
}
.commit-to-bill-confirm__row{
  display:grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 6.25rem 6.25rem;
  gap: 0.75rem;
  align-items:center;
  padding: 0.5rem 0.625rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.03);
  border-radius: 0.75rem;
  font-size: 1rem;
}
.commit-to-bill-confirm__hdr{
  background: rgba(79,124,255,.08);
  border-color: rgba(79,124,255,.22);
  font-weight: 700;
}
.commit-to-bill-confirm__row .cqty{
  font-weight: 600;
  text-align:center;
  white-space:nowrap;
}
.commit-to-bill-confirm__row .cname{
  font-weight: 600;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.commit-to-bill-confirm__row .cunit,
.commit-to-bill-confirm__row .ctotal{
  text-align:right;
  font-weight: 600;
  white-space:nowrap;
}

@media (max-width: 47.9375rem){
  .commit-to-bill-confirm__row{
    grid-template-columns: 3rem minmax(0, 1fr) 5.5rem 5.5rem;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Adisyon iptali: sebep modalı */
.pos-cancel-hint{
  margin: 0.375rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}
.cancel-reason-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}
.cancel-reason-btn{
  min-height: 2.75rem;
  font-weight: 700;
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
}

.cancel-reason-btn.active{
  background: #0b0f19;
  border-color: #0b0f19;
  color: #fff;
}

.cancel-reason-btn.active:hover{
  background: #0b0f19;
  border-color: #0b0f19;
  color: #fff;
}

@media (max-width: 47.9375rem){
  .cancel-reason-grid{ grid-template-columns: 1fr; }
}
#confirmModalBody .confirm-move-text{
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
#confirmModalBody .tables-move-confirm-num{
  color: #991b1b;
  font-weight: 700;
}

/* Sipariş ekranı */
.order-shell{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 0.75rem;
  align-items:start;
}
.category-tabs{
  display:flex;
  gap:0.625rem;
  flex-wrap:wrap;
}
.tab{
  min-height: var(--touch);
  padding: 0 0.875rem;
  display:inline-flex;
  align-items:center;
  border-radius: var(--radius);
  border:0.0625rem solid var(--border);
  background: rgba(15,23,42,.03);
  font-weight: 600;
  cursor:pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              filter var(--dur-fast) var(--ease);
}
.tab:hover{ transform: translateY(-0.0625rem); }
.tab:active{ transform: translateY(0); filter: brightness(.98); }
.tab.active{
  border-color: rgba(79,124,255,.55);
  background: #D8E2FF
}

/* Orders History (modules/orders/history.php) - Mobil yerleşim */
/* Desktop: eski görünüm (TAB solda, kartlar sağda) */
.orders-history-head{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.orders-history-tabs{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
}
.orders-history-summary{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:stretch;
}

/* Payments Index (modules/payments/index.php) - Mobil yerleşim */
.payments-index-head{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.payments-index-tabs{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
}
.payments-index-summary{
  display:flex;
  gap: 0.625rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:stretch;
}

@media (max-width: 767px){
  .payments-index-head{ display:block; }
  .payments-index-tabs{
    display:flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .payments-index-tabs .tab{
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
  }
  .payments-index-summary{
    margin-top: 0.625rem;
  }
  /* Geçmiş: 1. satır 3 kart, 2. satır genel toplam tam genişlik */
  .payments-index-summary.is-history{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .payments-index-summary.is-history .pi-sum-card{ min-width:0 !important; }
  .payments-index-summary.is-history .pi-sum-all{ grid-column: 1 / -1; }

  /* İptal: tam genişlik */
  .payments-index-summary.is-cancelled{ display:block; }
  .payments-index-summary.is-cancelled .pi-sum-card{
    width: 100%;
    min-width: 0 !important;
  }

  /* Kapanmayan: tam genişlik */
  .payments-index-summary.is-unclosed{ display:block; }
  .payments-index-summary.is-unclosed .pi-sum-card{
    width: 100%;
    min-width: 0 !important;
  }

  /* Kart içi tipografi biraz sıkı */
  .payments-index-summary .pi-sum-card > div:first-child{
    font-size: 0.78rem;
    letter-spacing: .02em;
  }
  .payments-index-summary .pi-sum-card > div:last-child{
    font-size: 1.05rem !important;
  }

  /* Payments: Geçmiş Siparişler listesi (mobilde orders/history referansı) */
  .payments-index-card.is-tab-history .cust-row.cust-row--hdr{
    display:none;
  }
  .payments-index-card.is-tab-history .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    background-color: #f4f5f5;
  }
  .payments-index-card.is-tab-history .cust-row > *{
    text-align:left !important;
  }
  .payments-index-card.is-tab-history .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .payments-index-card.is-tab-history .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .payments-index-card.is-tab-history .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .payments-index-card.is-tab-history .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .payments-index-card.is-tab-history .oh-field--opened .oh-value{
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.25;
  }
  .payments-index-card.is-tab-history .oh-field--total .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  .payments-index-card.is-tab-history .oh-field--pay .oh-value{
    font-weight: 700;
  }
  .payments-index-card.is-tab-history .oh-subnote{
    display:block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(15,23,42,.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .payments-index-card.is-tab-history .cust-row > :last-child{
    display:block !important;
  }
  .payments-index-card.is-tab-history .cust-row > :last-child .btn{
    width: 100%;
    justify-content: center;
  }

  /* Payments: İptal Edilen Siparişler listesi (mobilde orders/history referansı) */
  .payments-index-card.is-tab-cancelled .cust-row.cust-row--hdr{
    display:none;
  }
  .payments-index-card.is-tab-cancelled .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    background-color: #f4f5f5;
  }
  .payments-index-card.is-tab-cancelled .cust-row > *{
    text-align:left !important;
  }
  .payments-index-card.is-tab-cancelled .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .payments-index-card.is-tab-cancelled .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .payments-index-card.is-tab-cancelled .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .payments-index-card.is-tab-cancelled .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .payments-index-card.is-tab-cancelled .oh-field--opened .oh-value{
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.25;
  }
  .payments-index-card.is-tab-cancelled .oh-field--reason .oh-value{
    color: rgba(15,23,42,.72);
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .payments-index-card.is-tab-cancelled .oh-field--total .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  .payments-index-card.is-tab-cancelled .cust-row > :last-child{
    display:block !important;
  }
  .payments-index-card.is-tab-cancelled .cust-row > :last-child .btn{
    width: 100%;
    justify-content: center;
  }

  /* Payments: Kapanmayan Adisyonlar listesi (mobil) */
  .payments-index-card.is-tab-unclosed .cust-row.cust-row--hdr{
    display:none;
  }
  .payments-index-card.is-tab-unclosed .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    background-color: #f4f5f5;
  }
  .payments-index-card.is-tab-unclosed .cust-row > *{
    text-align:left !important;
  }
  .payments-index-card.is-tab-unclosed .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .payments-index-card.is-tab-unclosed .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .payments-index-card.is-tab-unclosed .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .payments-index-card.is-tab-unclosed .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .payments-index-card.is-tab-unclosed .oh-field--opened .oh-value{
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.25;
  }
  .payments-index-card.is-tab-unclosed .oh-field--total .oh-value,
  .payments-index-card.is-tab-unclosed .oh-field--rem .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  .payments-index-card.is-tab-unclosed .cust-row > :last-child{
    display:grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-content:stretch !important;
  }
  .payments-index-card.is-tab-unclosed .cust-row > :last-child .btn{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px){
  .orders-history-head{
    display:block;
  }
  .orders-history-tabs{
    display:flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0rem;
    justify-content: center;
  }
  .orders-history-tabs .tab{
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
  }

  .orders-history-summary{
    margin-top: 0.625rem;
  }

  /* Aktif / İptal: tek kart tam genişlik */
  .orders-history-summary.is-active,
  .orders-history-summary.is-cancelled{
    display:block;
  }
  .orders-history-summary.is-active .oh-sum-card,
  .orders-history-summary.is-cancelled .oh-sum-card{
    width: 100%;
    min-width: 0 !important;
  }

  /* Geçmiş: 1. satır 3 kart, 2. satır genel toplam tam genişlik */
  .orders-history-summary.is-history{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .orders-history-summary.is-history .oh-sum-card{
    min-width: 0 !important;
  }
  .orders-history-summary.is-history .oh-sum-all{
    grid-column: 1 / -1;
  }

  /* Kart içi tipografi biraz sıkı */
  .orders-history-summary .oh-sum-card > div:first-child{
    font-size: 0.78rem;
    letter-spacing: .02em;
  }
  .orders-history-summary .oh-sum-card > div:last-child{
    font-size: 1.05rem !important;
  }

  /* Aktif Siparişler listesi: mobilde taşmayı engelle */
  .orders-history-card.is-tab-active .cust-row.cust-row--hdr{
    display:none;
  }
  .orders-history-card.is-tab-active .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    background-color: #f4f5f5;
  }
  .orders-history-card.is-tab-active .cust-row > *{
    text-align:left !important;
  }

  /* Etiket + değer hizalı */
  .orders-history-card.is-tab-active .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .orders-history-card.is-tab-active .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .orders-history-card.is-tab-active .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .orders-history-card.is-tab-active .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .orders-history-card.is-tab-active .oh-field--opened .oh-value{
    font-weight: 700;
    color: rgba(15,23,42,.75);
  }
  .orders-history-card.is-tab-active .oh-field--total .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  /* 5: işlemler butonları alt satır, yan yana */
  .orders-history-card.is-tab-active .cust-row > :last-child{
    display:grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-content:stretch !important;
  }
  .orders-history-card.is-tab-active .cust-row > :last-child .btn{
    width:100%;
    justify-content:center;
  }

  /* Geçmiş Siparişler listesi: mobilde aynı mantık (etiket : değer) */
  .orders-history-card.is-tab-history .cust-row.cust-row--hdr{
    display:none;
  }
  .orders-history-card.is-tab-history .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    background-color: #f4f5f5;
  }
  .orders-history-card.is-tab-history .cust-row > *{
    text-align:left !important;
  }
  .orders-history-card.is-tab-history .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .orders-history-card.is-tab-history .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .orders-history-card.is-tab-history .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .orders-history-card.is-tab-history .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .orders-history-card.is-tab-history .oh-field--opened .oh-value{
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.25;
  }
  .orders-history-card.is-tab-history .oh-field--total .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  .orders-history-card.is-tab-history .oh-field--pay .oh-value{
    font-weight: 700;
  }
  .orders-history-card.is-tab-history .oh-subnote{
    display:block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(15,23,42,.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .orders-history-card.is-tab-history .cust-row > :last-child{
    display:block !important;
  }
  .orders-history-card.is-tab-history .cust-row > :last-child .btn{
    width: 100%;
    justify-content: center;
  }

  /* İptal Edilen Siparişler listesi: mobilde aynı mantık + 14px / 700 */
  .orders-history-card.is-tab-cancelled .cust-row.cust-row--hdr{
    display:none;
  }
  .orders-history-card.is-tab-cancelled .cust-row{
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
    padding: 0.5rem !important;
    text-align:left !important;
    font-size: 14px;
    font-weight: 700;
    background-color: #f4f5f5;
  }
  .orders-history-card.is-tab-cancelled .cust-row > *{
    text-align:left !important;
  }
  .orders-history-card.is-tab-cancelled .oh-field{
    display:grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items:baseline;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
    font-weight: 700;
  }
  .orders-history-card.is-tab-cancelled .oh-label{
    display:inline-block;
    font-weight: 700;
    color: rgba(15,23,42,.70);
    font-size: 14px;
  }
  .orders-history-card.is-tab-cancelled .oh-value{
    display:inline-block;
    font-weight: 700;
    color: rgba(2,6,23,.92);
    min-width:0;
    font-size: 14px;
  }
  .orders-history-card.is-tab-cancelled .oh-field--table .oh-value{
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .orders-history-card.is-tab-cancelled .oh-field--opened .oh-value{
    color: rgba(15,23,42,.75);
    line-height: 1.25;
  }
  .orders-history-card.is-tab-cancelled .oh-field--reason .oh-value{
    color: rgba(15,23,42,.72);
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .orders-history-card.is-tab-cancelled .oh-field--total .oh-value{
    justify-self:start;
    white-space: nowrap;
  }
  .orders-history-card.is-tab-cancelled .cust-row > :last-child{
    display:block !important;
  }
  .orders-history-card.is-tab-cancelled .cust-row > :last-child .btn{
    width: 100%;
    justify-content: center;
  }
}
.product-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.product-card{
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-height: 9.375rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  will-change: transform;
}
.product-card .row{
  display:flex;
  gap:0.625rem;
}
.product-card img{

  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0rem 0rem;
}
.product-card .name{
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}
.product-card .meta{
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.375rem;
}
.product-card .price{
  font-weight: 700;
  font-size: 1rem;
}
.summary{
  position: sticky;
  top: 0.75rem;
}
.summary-list{
  display:flex;
  flex-direction:column;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
.summary-item{
  border-bottom: 0.2rem dashed var(--border);

  padding: 0.3rem;
  background: rgba(15,23,42,.02);
}
.split-pay-enabled .split-pay-item{
  background: rgba(255,255,255,.92);
}
.split-pay-item.split-pay-selected{
  opacity: .55;
  filter: grayscale(30%);
}
.split-pay-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--border);
  background: rgba(15,23,42,.04);
}
.split-pay-check input{
  position:absolute;
  opacity:0;
  width:0.0625rem;
  height:0.0625rem;
}
.split-pay-box{
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  border: 0.125rem solid rgba(15,23,42,.35);
  background: #ffffff;
  display:inline-block;
}
.split-pay-check input:checked + .split-pay-box{
  background: rgba(32,201,151,.25);
  border-color: rgba(32,201,151,.85);
}
.qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.625rem;
  margin-top: 0.5rem;
}
.qty-btn{
  min-height: 2.625rem;
  min-width: 3rem;
  padding: 0 0.75rem;
}

.sr-only{
  position:absolute;
  width:0.0625rem;
  height:0.0625rem;
  padding:0;
  margin:-0.0625rem;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Sipariş Al — POS (referans düzen) */
.content--pos-order .page-head{ display:none; }
.pos-order-alert{ margin-bottom: 0.75rem; }
.pos-order-alert__list{ margin:0.5rem 0 0; padding-left: 1.125rem; }

.pos-order-top{
  display:flex;
  align-items:center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.pos-order-back{
  flex: 0 0 auto;
}
.pos-order-heading{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.pos-order-search{
  flex: 1 1 13.75rem;
  min-width: 10rem;
}
.pos-order-search__input{
  width: 100%;
  min-height: var(--touch);
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--border);
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  background: rgba(255,255,255,.95);
}
.pos-order-top__actions{
  display:flex;
  gap: 0.5rem;
  align-items:center;
}
.pos-order-inline-form{ margin: 0; }
.pos-order-icon-btn{
  min-height: var(--touch);
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
}
.pos-order-icon-btn--danger{
  border-color: rgba(239,68,68,.45);
  color: #b91c1c;
  background: rgba(239,68,68,.08);
}
.pos-order-sub{
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.875rem;
}

.content.content--pos-order{
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 7.5rem);
}
.pos-order-shell.order-shell{
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  flex: 1;
  min-height: 0;
  align-items: stretch;
  min-width: 0;
}
.pos-order-products.card,
.pos-order-summary.card{
  border-radius: 1rem;
  min-width: 0;
}
.pos-order-products.card{
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pos-sr-form{
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.pos-tabs-shell{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.pos-tabs-nav{
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  border: 0rem;
  background: #a3d8bc;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: rgb(0, 0, 0);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex: 0 0 auto;
}
.pos-tabs-nav:hover{ filter: brightness(1.02); }
.pos-tabs-nav:active{ transform: translateY(0.0625rem); }
.pos-order-tabs{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  padding-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.pos-order-tabs::-webkit-scrollbar{ display:none; }
.pos-order-tab.tab{ flex: 0 0 auto; }
.pos-order-tab.tab{
  border-radius: 0.75rem;
  padding: 0 1rem;
  background: #fff;
  border: 0.0625rem solid rgba(15,23,42,.12);
  font-weight: 400;
}
.pos-order-tab.tab.active{
  background: #a3d8bc;
  border-color: transparent;
  color: #000000;
  border: 0rem;
  font-weight: 500;
}
.pos-order-tab.tab.active:hover{
  filter: brightness(1.02);
  color: #000000;
}

.pos-product-grid{
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.625rem;
  flex: 1;
  min-height: 43rem;
  max-height: min(60vh, calc(100vh - 18rem));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pos-product-card{
  position: relative;
  border-radius: 0.5rem;
  padding: 0rem 0rem 2.35rem 0rem; /* sol-alt fiyat etiketi için boşluk */
  min-height: 0;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pos-product-card:hover{
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.625rem 1.5rem rgba(15,23,42,.1);
}
.pos-product-card:focus-visible{
  outline: 0.125rem solid rgba(249,115,22,.75);
  outline-offset: 0.125rem;
}
.pos-product-card--has-opts{
  padding-bottom: 2.35rem;
}
.pos-product-card__body{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.pos-product-card__thumb{
  width: 100%;
  aspect-ratio: 1;
  max-height: 4.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--border);
  margin: 0 auto;
}
.pos-product-card__body .name{
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  margin-top: 0.125rem;
  margin-left: 0.625rem;
}
.pos-product-card__body .price{
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0.625rem;
  margin-top: auto;
}
.pos-product-star{
  position: absolute;
  top: 0rem;
  right: 0rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0rem 0.5rem 0rem 0.5rem;
  background: rgb(254 230 213);
  color: #000000;
  pointer-events: none;
}
.pos-product-qty-badge{
  position: absolute;
  right: 0rem;
  bottom: 0rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem 0rem 0.5rem 0rem;
  background: black;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  z-index: 2;
}
.pos-product-card__body .price{
  position: absolute;
  left: 0rem;
  bottom: 0rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0rem 0.5rem 0rem 0.5rem;
  background: #a3d8bc;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  margin-left: 0;
}
.pos-product-opts-icon{
  position: absolute;
  top: 0rem;
  left: 0rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem 0rem 0.5rem 0rem;
  background: rgb(231 248 242);
  pointer-events: none;
  user-select: none;
  color: rgb(0, 0, 0);
}
.pos-product-opts-svg{ display:block; }
.pos-product-ph{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.04);
  color:var(--muted);
  font-weight:700;
}

.pos-order-summary__head{
  display:flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pos-order-summary__meta-row{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.pos-order-summary__meta-pill{
  display:inline-flex;
  align-items:center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(37,99,235,.10);
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
}
.pos-order-summary__meta-pill--slate{
  background: rgba(37,99,235,.10);
  border-color: rgba(148,163,184,.35);
  color: #0f172a;
}
.pos-order-summary__meta-ico{
  display:flex;
  color: rgba(37,99,235,.92);
  flex-shrink: 0;
}
.pos-order-summary__meta-pill--slate .pos-order-summary__meta-ico{
  color: rgba(51,65,85,.92);
}
.pos-order-summary__meta-txt{
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-order-summary__title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
  
}
.pos-order-summary__title{
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;

}
.pos-btn-cancel--locked{
  background: red;
  color: rgb(255, 255, 255) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: none !important;
  white-space: normal;
  text-transform: none;
  font-weight: 700;
}
.pos-btn-clear{
  min-height: 2.5rem;
  padding: 0 0.875rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  max-width: 100%;
}
.pos-order-service-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin: 0rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.pos-order-service-line__text{
  min-width: 0;
}
.pos-order-service-line__move{
  flex-shrink: 0;
  min-height: 2rem;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 0.625rem;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
}
.pos-order-service-line__move:hover{
  background: #1d4ed8;
  color: #fff;
}

.pos-order-summary.card{
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 75rem){
  .pos-order-summary.card{
    min-height: calc(100vh - 10.3125rem);
  }
  /* Desktop: footer her zaman kartın en altında */
  .pos-summary-list-wrap{
    max-height: none;
  }
  .pos-summary-footer{
    position: static;
    bottom: auto;
    background: none;
    padding-top: 0.625rem;
  }
}
.pos-summary-list-wrap{
  flex: 1;
  min-height: 0;
  max-height: calc(7 * 4.75rem);
  overflow-y: auto;
  margin-bottom: 0.5rem;
  padding-right: 0.125rem;
}
.pos-summary-list{
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.pos-line{
  background: #fff;
}
.pos-line--existing{
  background: rgba(34, 197, 94, .12);
}
.pos-line--pending{
  background: #fff(254 230 213);
}
.pos-line__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0rem;
}
.pos-line__left{
  flex: 1;
  min-width: 0;
}
.pos-line__right{
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.pos-line__name{
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.25;
}
.pos-line__badge-ikram{
  margin-left: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 62.4375rem;
  background: rgba(16,185,129,.15);
  color: #047857;
  vertical-align: middle;
}
.pos-line__prices{
  margin-top: 0.25rem;
  margin-left: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
}
.pos-line__paren{
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.25rem;
}
.pos-line__opts,
.pos-line__note{
  margin-top: 0.25rem;
  margin-left: 0.625rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.35;
}

.pos-kebab{
  position: relative;
  flex-shrink: 0;
}
.pos-kebab__btn{
  list-style: none;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  border: 0.0625rem solid var(--border);
  background: rgba(15,23,42,.04);
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}
.pos-kebab__btn::-webkit-details-marker{ display:none; }
.pos-kebab__menu{
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  min-width: 12.5rem;
  padding: 0.375rem;
  border-radius: 0.75rem;
  background: #1e293b;
  box-shadow: 0 0.75rem 1.75rem rgba(15,23,42,.35);
  z-index: 20;
}
.pos-kebab__menu form{ margin: 0; }
.pos-kebab__item{
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.pos-kebab__item:hover{
  background: rgba(255,255,255,.08);
}

.pos-qty-group{
  display:flex;
  align-items:center;
  gap: 0.375rem;
}
.pos-inline-form{ margin: 0; }
.pos-qty-minus,
.pos-qty-trash{
  border-color: rgba(239,68,68,.4) !important;
  color: #b91c1c !important;
  background: rgba(239,68,68,.08) !important;
  font-weight: 700;

  min-height: 2.5rem;
  padding: 0 0.5rem;
}
.pos-qty-trash{
  font-size: 1rem;
  line-height: 1;
}
.pos-qty-plus{
  border-color: rgba(16,185,129,.45) !important;
  color: #047857 !important;
  background: rgba(16,185,129,.1) !important;
  font-weight: 700;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.5rem;
}
.pos-qty-num{
  min-width: 2.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.pos-totals-box{
  margin-top: 0.875rem;
  padding: 0.875rem;
  border-radius: 0.875rem;
  background: rgb(254 230 213);
}
.pos-totals-box__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 0.625rem;
}
.pos-totals-box__row--muted{
  font-size: 1.25rem;
  color: var(--muted);
}
.pos-totals-box__row--grand{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-weight: 600;
  font-size: 1.5rem;
}
.pos-totals-box--single{
  margin-top: 0;
  margin-bottom: 0;
}

.pos-summary-footer{
  margin-top: auto;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding-top: 0.625rem;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 12%, #fff 24%);
}

.pos-order-actions{
  display:grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0.625rem;
  margin-top: 0.625rem;
}
.pos-order-actions--two{
  grid-template-columns: 1fr 1fr;
}
.pos-order-actions--single{
  grid-template-columns: 1fr;
}
.pos-draft-self-form{
  margin: 0;
  display: block;
  width: 100%;
}
.pos-draft-self-btn{
  width: 100%;
  min-height: 3rem;
  font-weight: 700;
  border-radius: 0.875rem;
  justify-content: center;
  text-align: center;
}
.pos-order-actions .btn{
  min-height: 3rem;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.875rem;
  justify-content: center;
  text-align: center;
}
.pos-order-actions__debt{
  background: linear-gradient(180deg, #fb923c, #ea580c);
  border-color: transparent;
  color: #fff;
}
.pos-order-actions__move{
  background: linear-gradient(180deg, #fb923c, #ea580c);
  border-color: transparent;
  color: #fff;
}
.pos-order-actions__pay{
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  border-color: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pos-order-actions__pay[aria-disabled="true"]{
  opacity: .55;
  pointer-events: none;
}

/* Taslak sipariş (Sipariş Al): özet buton renkleri */
#posDraftShell .pos-btn-clear{
  background: #facc15;
  
  color: #422006;
}
#posDraftShell .pos-btn-clear:hover:not(:disabled){
  background: #fde047;
  
  color: #422006;
}
#posDraftShell .pos-btn-clear:disabled{
  opacity: .45;
}
.pos-order-actions--draft-confirm .pos-order-actions__move{
  background: #2563eb;
  
  color: #fff;
}
.pos-order-actions--draft-confirm .pos-order-actions__move:hover:not(:disabled){
  background: #1d4ed8;
  
  color: #fff;
}
.pos-order-actions--draft-confirm .pos-order-actions__move:disabled{
  opacity: .45;
}
.pos-draft-self-btn.pos-order-actions__pay{
  background: #16a34a;
  
  color: #fff;
}
.pos-draft-self-btn.pos-order-actions__pay:hover:not(:disabled){
  background: #15803d;
  
  color: #fff;
}
.pos-draft-self-btn.pos-order-actions__pay:disabled{
  opacity: .45;
}

/* Açık adisyon (order.php?id=…, #posOrderShell): taslak POS ile aynı özet buton renkleri */
#posOrderShell .pos-btn-clear{
  background: #facc15;
 
  color: #422006;
}
#posOrderShell .pos-btn-clear:hover:not(:disabled){
  background: #fde047;
  
  color: #422006;
}
#posOrderShell .pos-btn-clear:disabled{
  opacity: .45;
}
#posOrderShell .pos-order-actions__move,
#posOrderShell .pos-order-actions__commit{
  background: #2563eb;
 
  color: #fff;
}
#posOrderShell .pos-order-actions__move:hover:not(:disabled),
#posOrderShell .pos-order-actions__commit:hover:not(:disabled){
  background: #1d4ed8;

  color: #fff;
}
#posOrderShell .pos-order-actions__move:disabled,
#posOrderShell .pos-order-actions__commit:disabled{
  opacity: .45;
}
#posOrderShell .pos-order-actions__pay{
  background: #16a34a;

  color: #fff;
}
#posOrderShell a.pos-order-actions__pay:hover{
  background: #15803d;

  color: #fff;
}
#posOrderShell .pos-order-actions__pay[aria-disabled="true"]{
  background: #16a34a;
  color: #fff;
}

.modal-card.pos-modal-card{
  max-width: 32.5rem;
}
.pos-modal-field{
  display:block;
  margin-top: 0.75rem;
}
.pos-modal-field__label{
  display:block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.pos-modal-input,
.pos-modal-textarea{
  width: 100%;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--border);
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}
.pos-modal-hint{
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.pos-opt-group{
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid var(--border);
}
.pos-opt-group:last-child{
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.pos-opt-group__title{
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.pos-opt-extras{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}
.pos-opt-extra{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  min-height: 2.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  user-select:none;
  text-align:center;
  gap: 0.125rem;
}
.pos-opt-extra input{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.pos-opt-extra__txt{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pos-opt-extra__price{
  display:block;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: .75;
  white-space:nowrap;
}
.pos-opt-extra.is-selected{
  background: #0b0f19;
  border-color: #0b0f19;
  color: #fff;
}

@media (max-width: 93.6875rem){
  .pos-product-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 74.9375rem){
  /* Sipariş Al: tablet/mobilde kategori yazılarını küçült */
  .pos-tabs-shell{ gap: 0.375rem; margin-bottom: 0.75rem; }
  .pos-tabs-nav{ display:none; }
  .pos-order-tabs{ gap: 0.375rem; }
  .pos-order-tab.tab{
    font-size: 0.875rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    min-height: 2.5rem;
  }

  /* Sipariş Al: tablet/mobilde ürünleri liste görünümüne çek (resimsiz) */
  .pos-product-grid{ grid-template-columns: 1fr !important; }
  .pos-product-grid{
    min-height: 16rem;
    max-height: min(55vh, calc(100vh - 20rem));
  }
  .pos-product-card{
    padding: 0.625rem 0.75rem;
    border-radius: 0.875rem;
    display:flex;
    align-items:center;
    gap: 0.625rem;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    text-align: left;
  }
  .pos-product-card__thumb{ display:none; }
  /* Liste modunda: tek satır düzeni için body içeriğini satıra aç */
  .pos-product-card__body{
    display: contents;
  }
  .pos-product-card__body .name{
    order: 2;
    flex: 1 1 auto;
    font-size: 0.9375rem;
    margin-top: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pos-product-card__body .price{
    order: 4;
    position: static;
    margin-left: auto;
    margin-top: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
    display:block;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    pointer-events: auto;
  }

  /* Sıralama: yıldız (sol) + ad + adet + fiyat (sağ) */
  .pos-product-star{
    order: 1;
    position: static;
    inset: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    background: rgb(254 230 213);
    box-shadow: none;
    margin: 0;
    flex: 0 0 auto;
    pointer-events: none;
  }
  .pos-product-qty-badge{
    order: 3;
    position: static;
    inset: auto;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 0.5rem;
    box-shadow: none;
    font-size: 0.8125rem;
    line-height: 1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex: 0 0 auto;
    pointer-events: none;
  }
  /* Liste modunda ayar ikonu görünmesin */
  .pos-product-gear{ display:none; }
  .pos-product-opts-icon{
    position: static;
    inset: auto;
    margin: 0;
    order: 1; /* list modunda en solda */
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
  }

  .pos-order-actions{
    grid-template-columns: 1fr;
  }
  /* Mobil/tablet: 2 butonlu aksiyonlar yan yana */
  #posDraftShell .pos-order-actions--two,
  #posOrderShell .pos-order-actions--two{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 47.9375rem){
  .pos-order-tab.tab{
    font-size: 0.8125rem;
    padding: 0 0.625rem;
    min-height: 2.375rem;
  }
  .pos-product-card{ padding: 0.5625rem 0.6875rem; }
  .pos-product-grid{ grid-template-columns: 1fr !important; }
  .pos-product-grid{
    min-height: 14rem;
    max-height: min(50vh, calc(100vh - 22rem));
  }
}

@media print{
  .sidebar, .app-header, .pos-order-top, .pos-order-actions, .pos-order-actions--two, .pos-kebab, .pos-line__right, .pos-summary-footer{ display:none !important; }
  .pos-order-shell{ grid-template-columns: 1fr !important; }
  .pos-summary-list-wrap{ max-height: none !important; overflow: visible !important; }
}

/* Modal (onay) */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 1.125rem;
  background: rgba(15,23,42,.45);
  z-index: 9999;
}
.modal.open{
  display:flex;
  animation: fadeUp var(--dur) var(--ease) both;
}
.modal-card{
  width: 100%;
  max-width: 32.5rem;
  border-radius: var(--radius);
  border: 0.0625rem solid var(--border);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  padding: 0.875rem;
  animation: pop var(--dur) var(--ease) both;
}
.modal-card .title{
  font-weight: 700;
  font-size: 1rem;
}
.modal-card .body{
  margin-top: 0.625rem;
  color: #0f172a;
}
.modal-card .actions{
  margin-top: 0.875rem;
  display:flex;
  gap:0.625rem;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.kpi{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
  text-align: center;
}
.kpi .label{color: var(--muted); font-size: 0.8125rem}
.kpi .value{font-size: 1.2rem; font-weight: 700}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  min-height: var(--touch);
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 0rem;
  background: rgba(249,115,22,.18);
  color: var(--text);
  cursor:pointer;
  user-select:none;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              filter var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn:hover{
  background: rgba(249,115,22,.5);
  transform: translateY(-0.0625rem);
  box-shadow: var(--shadow-sm);
}
.btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(79,124,255,.22), var(--shadow-sm);
  border-color: rgba(79,124,255,.45);
}
.btn-primary{background: rgba(79,124,255,.22);}
.btn-primary:hover{background: rgba(79,124,255,.30)}
.btn-danger{
  background: red;
  color: #fff;

}
.btn-danger:hover{
  background: #b91c1c;
  color: #fff;
}
.btn-danger:focus-visible{
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, .35), 0 0.25rem 0.875rem rgba(220, 38, 38, .25);
  border-color: #b91c1c;
}
.btn-danger:active{
  filter: brightness(.98);
}
.btn-success{
  background: rgba(32,201,151,.20);
  border-color: rgba(32,201,151,.55);
  color: var(--text);
}
.btn-success:hover{ background: rgba(32,201,151,.28); }
.btn-dark{
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
.btn-dark:hover{
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
.btn-dark:focus-visible{
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, .35), var(--shadow-sm);
  border-color: #333333;
}
.btn-block{ width:100%; }

/* Tahsilat: ödeme yöntemi butonları */
.pay-methods{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  
}
.pay-methods .pay-method{
  width:100%;
  font-weight: 600;
  font-size: 1.5rem;
}
.pay-methods .pay-method.is-selected{
  background:#000000;
  border-color:#000000;
  color:#ffffff;
}

.input{
  width:100%;
  min-height: var(--touch);
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline:none;
  font-size: 1rem;
}
.input:focus{border-color: rgba(79,124,255,.6)}

.form{
  display:flex;
  flex-direction:column;
  gap: 0.75rem;
}

.alert{
  border:0.0625rem solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255,255,255,.92);
}
.alert.success{border-color: rgba(32,201,151,.55); background: rgba(32,201,151,.12)}
.alert.warning{border-color: rgba(255,193,7,.55); background: rgba(255,193,7,.12)}
.alert.danger{border-color: rgba(255,90,95,.55); background: rgba(255,90,95,.12)}
.alert.info{border-color: rgba(79,124,255,.55); background: rgba(79,124,255,.12)}

/* Sağ üst toast bildirim */
.toast-wrap{
  position: fixed;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 10000;
  pointer-events: none;
}
.toast{
  width: min(26.25rem, calc(100vw - 1.75rem));
  border-radius: var(--radius);
  border: 0.0625rem solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 0.75rem 0.875rem;
  transform: translateY(-0.625rem);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}
.toast-title{
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--muted);
}
.toast-body{
  margin-top: 0.375rem;
  font-weight: 700;
}
.toast.success{ border-color: rgba(32,201,151,.55); background: #eafff6; }
.toast.warning{ border-color: rgba(79,124,255,.55); background: #eaf0ff; }
.toast.danger{ border-color: rgba(255,90,95,.55); background: #ffe3e4; }
.toast.info{ border-color: rgba(79,124,255,.55); background: #eaf0ff; }

/* Login sayfası */
.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1.125rem;
  background:
    radial-gradient(56.25rem 31.25rem at 20% 10%, rgba(79,124,255,.18), transparent 55%),
    radial-gradient(56.25rem 31.25rem at 90% 30%, rgba(32,201,151,.14), transparent 60%),
    radial-gradient(56.25rem 31.25rem at 40% 100%, rgba(255,193,7,.10), transparent 55%),
    var(--bg);
}
.auth-shell{
  width: min(61.25rem, 100%);
  display:flex;
  justify-content:center;
}
.auth-card{
  width: 100%;
  max-width: 27.5rem;
  padding: 1.125rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1.125rem 3.75rem rgba(15,23,42,.14);
  border: 0.0625rem solid rgba(15,23,42,.10);
}
.auth-head{
  display:flex;
  gap:0.75rem;
  align-items:center;
  margin-bottom: 0.875rem;
}
.auth-logo{
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0.625rem 1.875rem rgba(15,23,42,.12);
  overflow:hidden;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.auth-logo img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.auth-logo-fallback{
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), rgba(79,124,255,.25));
}
.auth-title{
  font-size: 1.25rem;
  font-weight: 700;
}
.auth-subtitle{
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.auth-label{
  display:block;
  margin-bottom:0.375rem;
  color: var(--muted);
}
.auth-field{
  position: relative;
}
.auth-icon{
  position:absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.auth-input{
  padding-left: 2.625rem;
}
.auth-submit{
  width: 100%;
}
.auth-hint{
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Responsive kırılımlar */
@media (max-width: 74.9375rem){
  /* Tablet+: sidebar mini (sadece ikon) */
  .sidebar{
    width: 5rem;
    padding: 0.625rem 0.5rem;
  }
  .brand{
    padding: 0.625rem 0.5rem;
    justify-content:center;
  }
  .brand .brand-right{ display:none; }
  .sidebar-toggle{ justify-content:center; }
  .sidebar-toggle .nav-label{ display:none; }
  .nav a{
    padding: 0.5rem 0.5rem;
    min-height: 2.75rem;
  }
  .nav a .nav-label{ display:none; }

  .grid.cols-4{grid-template-columns: repeat(2, minmax(0,1fr))}
  .table-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .order-shell{grid-template-columns: 1fr}
  .pos-order-shell.order-shell{ grid-template-columns: 1fr; }
  .product-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .pay-pos-layout{ grid-template-columns: 1fr !important; }
}

@media (max-width: 47.9375rem){
  .app-header{
    padding: 0.625rem 0.75rem;
  }
  .sidebar{
    width: 4.5rem;
    padding: 0.5rem 0.375rem;
  }
  .nav a{
    min-height: 3rem;
    padding: 0.3rem 0.3rem;
  }
  .sidebar{
    border-right: 0.0625rem solid rgba(255,255,255,.08);
  }
  .grid.cols-4, .grid.cols-2{grid-template-columns: 1fr}
  .table-grid{grid-template-columns: 1fr}
  .product-grid{grid-template-columns: 1fr}
  .pay-pos-layout{ grid-template-columns: 1fr !important; }

  .pay-applied-row{
    grid-template-columns: minmax(6.25rem, 1fr) minmax(6.5rem, 1fr) minmax(5.75rem, auto) auto;
  }
}

/* Header: Tablet + Mobil sade görünüm */
@media (max-width: 74.9375rem){
  .app-header-brand{ display:none; } /* kafe adını gizle */
  .app-header-fullscreen{ display:none; } /* tam ekran butonu gizle */

  .app-header-lock,
  .app-header-logout{
    min-height: 2.125rem;
    min-width: 2.125rem;
    padding: 0 0.5rem;
  }
  .app-header-lock__icon,
  .app-header-logout__icon{
    width: 1rem;
    height: 1rem;
  }

  .app-header-user-name{
    font-size: 0.7rem;
    font-weight: 700;
  }
  .app-header-user-role{
    font-size: 0.6875rem;
    font-weight: 700;
  }
}

/* ========== Tahsilat (POS) ========== */
.pay-pos-content{ padding-bottom: 1.5rem; }
.pay-pos-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.875rem;
  flex-wrap:wrap;
}
.pay-pos-head__meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 2rem;
  min-width: 0;
}
.pay-pos-meta{
  display:inline-flex;
  align-items:center;
  gap: 0.4375rem;
  padding: 0rem 0.6rem 0rem 0rem;
  border-radius: 0.875rem;
  border:0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.85);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8125rem;
  white-space:nowrap;
}
.pay-pos-meta__ico{
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgb(216 226 255);
  border:0.0625rem solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.72);
  flex: 0 0 auto;
}
.pay-pos-meta__ico svg{ display:block; }
.pay-pos-meta__txt{ min-width:0; overflow:hidden; text-overflow:ellipsis; font-size: 1rem; font-weight: 700;text-transform: uppercase;}
.pay-customer-inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.75rem;
  margin-top: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.02);
}
.pay-customer-inline__label{ color: var(--muted); font-weight: 700; }
.pay-customer-inline__value{ font-weight: 700; }

.pay-cust-list{
  margin-top: 0.75rem;
  max-height: 22rem;
  overflow:auto;
  border: 0.0625rem solid rgba(15,23,42,.08);
  border-radius: 0.875rem;
  background: rgba(255,255,255,.85);
  padding: 0.375rem;
}
.pay-cust-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(15,23,42,.06);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  text-align:left;
}
.pay-cust-row:hover{ background: rgba(15,23,42,.03); }
.pay-cust-row.is-selected{ border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.08); }
.pay-cust-row__name{ font-weight: 700; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pay-cust-row__bal{ font-weight: 700; white-space:nowrap; color: var(--muted); }
.pay-pos-head__actions{ display:flex; gap:0.625rem; flex-wrap:wrap; }
.pay-pos-btn--muted{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
}
.pay-pos-btn--accent{
  background: rgba(249,115,22,.18);
  border-color: rgba(249,115,22,.45);
}
.pay-pos-btn--accent:hover{ background: rgba(249,115,22,.26); }

@media (max-width: 47.9375rem){
  .pay-pos-head{
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .pay-pos-head__meta{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }
  .pay-pos-meta{
    width: 100%;
    white-space: normal;
  }
  .pay-pos-meta__txt{
    font-size: 0.7rem;
  }
  .pay-pos-meta__ico{
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
  }
  .pay-pos-head__actions{
    width: 100%;
  }
  .pay-pos-head__actions .btn{
    width: 100%;
    justify-content: center;
    min-height: 2rem;
    border-radius: 0.5rem;
  }

  /* Mobil: 1. satır Kalan + Ödenecek, 2. satır Ödenen (full) */
  .pay-totals-grid{
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "remain pending"
      "paid paid";
  }
  /* önce resetle (diğer breakpoint'ler karışmasın) */
  .pay-totals-grid > .pay-total-box{
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
  /* 1. satır: Kalan (%50) + Ödenecek (%50) */
  .pay-totals-grid > .pay-total-box:not(.pay-total-box--pending):not(.pay-total-box--paid){
    grid-area: remain;
  }
  .pay-totals-grid > .pay-total-box--pending{
    grid-area: pending;
  }
  /* 2. satır: Ödenen (%100) */
  .pay-totals-grid > .pay-total-box--paid{
    grid-area: paid;
  }

  .pay-pending-clear{
    border-radius: 0.5rem;
    min-height: 2rem;
  }
}

/* Adisyon Detayı: tahsilat benzeri satır listesi */
.od-lines{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}

.od-payments{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}
.od-pay-row{
  display:grid;
  grid-template-columns: 1.1fr 1.2fr 1.6fr 0.9fr;
  align-items:center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
}
.od-pay-row--hdr{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.06);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.75rem;
}
.od-pay-row--bakiye{
  border-color: rgba(255,90,95,.40);
  background: rgba(255,90,95,.10);
}
.od-pay-cell{ min-width:0; }
.od-pay-cell--method{ font-weight: 700; }
.od-pay-cell--date{ color: var(--muted); font-weight: 700; font-size: 0.8125rem; white-space: nowrap; }
.od-pay-cell--note{
  color: var(--muted);
  font-weight: 700;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.od-pay-cell--amt{
  text-align:right;
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 47.9375rem){
  /* Mobilde tek satır: Ödeme Türü - Tarih/Saat - Açıklama - Tutar */
  .od-pay-row{
    grid-template-columns: 3.75rem 7.25rem minmax(0, 1fr) 4.5rem;
    gap: 0rem;
    font-size: 0.875rem;
    text-align:center;
  }
  .od-pay-row--hdr{ display:none; }
  .od-pay-cell--method{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
  .od-pay-cell--date{ font-size: 0.8125rem; }
  .od-pay-cell--note{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
  .od-pay-cell--amt{ text-align:right; }
}
.od-row{
  display:grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 6.25rem;
  align-items:center;
  gap: 0.625rem;
  padding: 0rem 0.6rem 0rem 0rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
}
.od-qty{
  min-width: 1.5rem;
  height: 2rem;
  padding: 0 0.375rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 0.5rem;
  background: black;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
}
.od-main{ min-width:0; }
.od-name{
  font-weight: 700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.od-opts{
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.od-price{
  text-align:right;
  white-space:nowrap;
}
.od-unit{
  font-weight: 700;
}
.od-line{
  margin-top: 0.125rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
}

@media (max-width: 47.9375rem){
  .od-row{
    grid-template-columns: 2rem minmax(0, 1fr) 5.25rem;
    gap: 0.5rem;
    padding: 0rem 1rem 0rem 0rem;
  }
  .od-name{ font-size: 0.875rem; }
  .od-opts{ font-size: 0.75rem; }
  .od-unit{ font-size: 0.875rem; }
  .od-line{ font-size: 0.8125rem; }
}

.pay-pos-layout{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  align-items:stretch;
}

.pay-pos-card{
  border:0.0625rem solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  padding: 0.7rem;
  box-shadow: var(--shadow-sm);
}
.pay-pos-card--lines{
  display:flex;
  flex-direction:column;
  gap: 0.75rem;
  min-height: 45rem;
  max-height: calc(100vh - 14rem);
  overflow:hidden;
  height: 100%;
}

/* Desktop: sol kart içeriğe göre uzasın (boşluk kalmasın) */
@media (min-width: 75rem){
  .pay-pos-card--lines{
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .pay-pos-card--right{
    min-height: 0;
  }
}
.pay-pos-card--methods{
  display:flex;
  flex-direction:column;
}
.pay-pos-card--center .pay-close-form{ margin-top: 0.875rem; }

.pay-status-block{
  border:0.0625rem solid rgba(15,23,42,.08);
  border-radius: 0.875rem;
  background: rgba(15,23,42,.02);
  overflow:hidden;
}
.pay-status-pill{
  text-align:center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0.5rem 0.625rem;
  background: rgba(15,23,42,.06);
  border-bottom:0.0625rem solid rgba(15,23,42,.08);
  color: var(--muted);
}
.pay-status-pill--head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.625rem;
}
.pay-status-pill--head > span{ min-width:0; }
.pay-status-pill--pending{
  background: rgba(249,115,22,.12);
  color: #9a3412;
  border-bottom-color: rgba(249,115,22,.2);
}
.pay-status-pill--done{
  background: rgba(32,201,151,.14);
  color: #0f5132;
  border-bottom-color: rgba(32,201,151,.25);
}
.pay-status-body{ padding: 0.625rem; }
.pay-status-hint{
  margin:0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.pay-status-empty{
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.5rem 0.25rem;
}
.pay-status-empty--inline{ padding: 0.25rem 0; }

.pay-line-list{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}
.pay-line-list--empty{ min-height: 0; }

.pay-line-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.625rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
}
.pay-line-row__main{
  display:flex;
  align-items:center;
  gap:0.625rem;
  min-width:0;
  flex:1;
}
.pay-line-row__img{
  width:2.5rem;
  height:2.5rem;
  border-radius: 0.625rem;
  object-fit:cover;
  border:0.0625rem solid var(--border);
  flex-shrink:0;
}
.pay-line-row__img--ph{
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.04);
  color: var(--muted);
  font-weight: 700;
}
.pay-line-row__name{ font-weight: 700; font-size: 0.875rem; }
.pay-line-row__meta{ font-size: 0.75rem; color: var(--muted); margin-top: 0.125rem; }
.pay-line-row__side{
  text-align:right;
  flex-shrink:0;
}
.pay-line-row__qty{ display:block; font-weight: 700; font-size: 0.8125rem; }
.pay-line-row__price{ display:block; font-weight: 700; font-size: 0.875rem; margin-top: 0.125rem; }

.pay-pos-content .split-pay-check{ position: relative; }

.pay-pending-row{
  display:flex;
  align-items:center;
  gap:0.625rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border:0.0625rem dashed rgba(249,115,22,.45);
  background: rgba(249,115,22,.08);
}
.pay-pending-row__remove{
  min-width: 2.625rem;
  min-height: 2.625rem;
  padding: 0 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: rgba(250,204,21,.25);
  border-color: rgba(202,138,4,.5);
}
.pay-pending-row__text{ flex:1; min-width:0; }
.pay-pending-row__pr{ text-align:right; }

.pay-total-banner{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: rgba(15,23,42,.06);
  border:0.0625rem solid rgba(15,23,42,.08);
  margin-bottom: 0.75rem;
}
.pay-total-banner__label{ font-weight: 700; color: var(--muted); }
.pay-total-banner__value{ font-weight: 700; font-size: 1.625rem; letter-spacing: -0.02em; }

.pay-mini-summary{
  border:0.0625rem solid rgba(15,23,42,.08);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}
.pay-mini-row{
  display:flex;
  justify-content:space-between;
  gap:0.625rem;
  margin-top: 0.375rem;
}
.pay-mini-row:first-child{ margin-top: 0; }
.pay-mini-row--strong{ font-weight: 700; margin-top: 0.625rem; padding-top: 0.625rem; border-top:0.0625rem dashed rgba(15,23,42,.12); }

.pay-payments-applied{ margin-bottom: 0.75rem; }
.pay-payments-applied__title{ font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; text-align:center;text-transform: uppercase; }
.pay-applied-chip{
  display:flex;
  align-items:center;
  gap:0.625rem;
  flex-wrap:wrap;
  padding: 0.2rem 0.2rem;
  border-radius: 0.75rem;
  background: rgba(79,124,255,.08);
  border:0.0625rem solid rgba(79,124,255,.2);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.pay-applied-row{
  display:grid;
  grid-template-columns: minmax(6.5rem, 0.9fr) minmax(8rem, 1.4fr) minmax(6.25rem, 0.8fr) auto;
  align-items:center;
  gap: 0.625rem;
  flex-wrap:nowrap;
  text-align: center;
}
.pay-applied-row__method{
  font-weight: 600;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size: 1rem;
  text-transform: uppercase;
}
.pay-applied-row__note{
  color: var(--muted);
  font-weight: 600;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size: 1rem;
}
.pay-applied-row__amount{
 
  font-weight: 700;
  white-space:nowrap;
  font-size: 1rem;
}
.pay-applied-row__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 0.5rem;
}
.pay-applied-chip__del,
.pay-applied-chip__edit{
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 0.75rem;
}
.pay-applied-chip__del{
  margin-left: auto;
  background: rgba(239,68,68,.14);
  color: black;
}
.pay-applied-chip__del:hover{
  background: rgba(239,68,68,.20);
  border-color: rgba(239,68,68,.55);
  color: #991b1b;
}
.pay-applied-chip__edit{
  margin-left: 0;
  background: #fde5d4;
  color: black;
}

/* Tahsilat (pay.php): mobilde ödeme satırı taşmasın */
@media (max-width: 47.9375rem){
  .pay-applied-row{
    grid-template-columns: minmax(4.75rem, .9fr) minmax(7.5rem, 1.4fr) minmax(5.75rem, .9fr) auto;
    gap: 0.5rem;
    text-align: center;
  }
  .pay-applied-row__method{ font-size: 0.85rem; }
  .pay-applied-row__note{ font-size: 0.8rem; }
  .pay-applied-row__amount{ font-size: 0.85rem; }
  .pay-applied-row__actions{
    align-self: center;
    justify-content: flex-end;
    gap: 0.375rem;
  }
  .pay-applied-chip__del,
  .pay-applied-chip__edit{
    min-width: 2.125rem;
    min-height: 2.125rem;
    border-radius: 0.625rem;
  }
}

.pay-split-toggle{
  width:100%;
  margin-bottom: 0.5rem;
  background: rgba(15,23,42,.06);
}
.pay-split-toggle.active{
  background: rgba(79,124,255,.18);
  border-color: rgba(79,124,255,.45);
}
.pay-split-panel{
  border:0.0625rem solid rgba(79,124,255,.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(79,124,255,.06);
}
.pay-split-panel__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.pay-amount-inline{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  border:0.0625rem solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.04);
  margin: 0.25rem 0 0.75rem;
}
.pay-amount-inline__label{
  font-size: 1.5rem;
  font-weight: 700;
  color: red;
  text-transform: uppercase;
}
.pay-amount-inline__value{
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  color: red;
}

.pay-keypad{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.pay-key{
  min-height: 3.25rem;
  border-radius: 0.75rem;
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.96);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
}
.pay-key:hover{ background: rgba(15,23,42,.04); }
.pay-key--clear{
  background: #ef4444;
  border-color: rgba(239,68,68,.55);
  color: #fff;
}
.pay-key--clear:hover{ background: #dc2626; }

.pay-note-wrap label{ display:block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.375rem; }
.pay-note-warn{ font-size: 0.75rem; color: var(--muted); margin-top: 0.375rem; }

.pay-form-actions{ margin-top: 0.5rem; }
.pay-btn-ode{
  min-height: 3.25rem;
  font-size: 1rem;
  font-weight: 700;
}
.pay-btn-close{
  min-height: 3.25rem;
  font-weight: 700;
  font-size: 1rem;
}

.pay-methods-title{
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  text-align:center;
  text-transform: uppercase;
}
.pay-methods--sidebar{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap: 0.625rem;
  grid-template-columns: none;
}

/* Ödeme düzenle modalı: mobilde yöntemler yan yana ve kompakt */
@media (max-width: 47.9375rem){
  /* Ana tahsilat ekranı: Nakit/Kart/Bakiye tek satır */
  #payMethodSidebar.pay-methods--sidebar{
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  #payMethodSidebar .pay-method--big{
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0 0.5rem;
    border-radius: 0.875rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  #payMethodSidebar .pay-method__icon svg{
    width: 22px;
    height: 22px;
  }

  #payEditModal .pay-methods{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    gap: 0.5rem;
  }
  #payEditModal .pay-method--big{
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0.5rem;
    min-height: 2.75rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    justify-content: center;
    text-align:center;
    white-space: nowrap;
  }
  #payEditModal .pay-key{
    min-height: 3rem;
    border-radius: 0.75rem;
    font-size: 1.05rem;
  }
}
.pay-method--big{
  min-height: 4.25rem;
  flex: 1 1 0;
  min-width: 9rem;
  flex-direction:row;
  gap: 0.5rem;
  font-weight: 700;
  justify-content:center;
}
.pay-method{
  display:inline-flex;
  align-items:center;
}
.pay-method__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: .85;
}

.pay-error-list{ margin:0.5rem 0 0; padding-left: 1.125rem; }

/* Tahsilat: yeni 2 kolon düzen + satır listeleri */
.pay-pos-layout--2col{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pay-pos-col{ min-width:0; display:flex; flex-direction:column; }

.pay-pos-card--right{
  display:flex;
  flex-direction:column;
  gap: 0.75rem;
  min-height: 45rem;
  height: 100%;
}

.pay-totals-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  text-align:center;
  text-transform: uppercase;
  
}
.pay-total-box{
  border:0.0625rem solid rgba(15,23,42,.08);
  border-radius: 0.875rem;
  padding: 0.75rem;
  background: rgba(15,23,42,.04);
  min-width:0;
}
.pay-total-box__label{ font-weight: 700; font-size: 1rem; color: var(--muted); }
.pay-total-box__value{ margin-top: 0.25rem; font-weight: 700; font-size: 1.25rem; }
.pay-total-box--pending{ background: rgba(249,115,22,.10); border-color: rgba(249,115,22,.25); }
.pay-total-box--paid{ background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); }

.pay-row{
  display:grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 5.5rem 6.25rem 2.5rem;
  align-items:center;
  gap: 0.5rem;
  padding: 0.1rem;
  border-radius: 0.5rem;
  border:0.0625rem solid var(--border);
  background: rgba(255,255,255,.92);
}
.pay-row--pending{ border-color: rgba(249,115,22,.35); background: rgba(249,115,22,.06); }
.pay-row--paid{ border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.06); }
.pay-row__qty{
  min-width: 1.5rem;
  height: 2rem;
  padding: 0 0.375rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 0.5rem;
  background: black;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
  flex: 0 0 auto;
}
.pay-row__name{ font-weight: 500; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pay-row__opts{
  margin-left: 0.375rem;
  color: var(--muted);
  font-weight: 600;
}
.pay-row__unit, .pay-row__line{ text-align:center; font-weight: 700; white-space:nowrap; }
.pay-row__line{ color: var(--muted); font-weight: 700;text-align: center; }
.pay-row__ctrl{ display:flex; justify-content:flex-end; gap:0.375rem; }
.pay-row__btn{
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 0.75rem;
  font-weight: 700;
}
.pay-row__btn--plus{ background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.40); color: #047857; }
.pay-row__btn--minus{ background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.40); color: #b91c1c; }
.pay-pending-clear{
  width:100%;
  background: rgba(250,204,21,.30);
  border-color: rgba(250,204,21,.55);
  color: #713f12;
  font-weight: 700;
}

/* Tahsilat listeleri: mobilde satır metinleri daha küçük */
@media (max-width: 47.9375rem){
  .pay-row{
    gap: 0.375rem;
    padding: 0.0625rem;
    grid-template-columns: 2rem minmax(0, 1fr) 4.75rem 3.75rem 2.25rem;
  }
  .pay-row__qty{
    min-width: 1.375rem;
    height: 2rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
  }
  .pay-row__name{
    font-size: 0.875rem;
    font-weight: 600;
  }
  .pay-row__opts{
    font-size: 0.75rem;
  }
  .pay-row__unit,
  .pay-row__line{
    font-size: 0.75rem;
    font-weight: 700;
  }
  .pay-row__btn{
    min-width: 2.125rem;
    min-height: 2.125rem;
    border-radius: 0.5rem;
    font-size: 1rem;
  }
}
.pay-pending-all{
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.1;
  min-height: 1.625rem;
  border-radius: 0.75rem;
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.45);
  color: #1d4ed8;
  font-weight: 600;
  white-space:nowrap;
}
.pay-pending-all:disabled{ opacity:.55; cursor:not-allowed; }

.pay-status-body{ min-height:0; }
.pay-status-block{ display:flex; flex-direction:column; min-height:0; }
.pay-status-block .pay-line-list{
  overflow:auto;
  min-height:0;
  max-height: 18rem;
  padding-right: 0.125rem;
}

/* ========== Cari Müşteriler ========== */
.cust-table{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}
.cust-table{ min-width: 0; }
.cust-row{ min-width: 0; }
.cust-row > *{ min-width:0; }
.cust-search .input{
  width: 100%;
  max-width: 28rem;
}
.cust-search{
  display:flex;
  gap: 0.75rem;
  align-items:center;
  flex-wrap:wrap;
}
.cust-total-card{
  margin-left: auto;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  border-radius: 0.75rem;
  border: 0rem;
  background: black;
  min-width: 13.5rem;
}
.cust-total-card__label{
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cust-total-card__value{
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}
@media (max-width: 48rem){
  .cust-total-card{
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
  }
}
.cust-row{
  display:grid;
  grid-template-columns:
    minmax(12rem, 1.2fr)
    minmax(14rem, 1.6fr)
    minmax(9rem, 1fr)
    minmax(8rem, .8fr)
    minmax(10rem, auto);
  align-items:center;
  gap: 0.75rem;
  padding: 0rem 0rem 0rem 0.6rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  text-align: center;
}
.cust-row--hdr{
  background: rgba(15,23,42,.04);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
}
.cust-balance{
  text-align:center;
  font-weight: 700;
  white-space:nowrap;
}
.cust-row > :last-child{
  display:flex;
  justify-content:center;
  gap: 0.5rem;
  flex-wrap:nowrap;
}
.cust-row--hdr > :last-child{ display:block; }
.cust-balance.is-debt{ color: #b45309; }
.cust-balance.is-credit{ color: #047857; }
.cust-balance.is-zero{ color: var(--muted); }

/* Detay sayfası: 67/33 iki kolon */
.cust-detail-layout{
  display:grid;
  grid-template-columns: 2fr 1fr; /* ~67/33 */
  gap: 0.875rem;
  align-items:start;
}
.cust-detail-left{ min-width:0; }
.cust-detail-right{ min-width:0; }

.cust-head-cards{
  display:flex;
  align-items:stretch;
  gap: 0.75rem;
  flex-wrap:wrap;
}
.cust-head-cards--split{
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.cust-head-cards__left{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.cust-head-cards__right{
  display:flex;
  align-items:stretch;
  justify-content:flex-end;
  gap: 0.75rem;
  flex-wrap:wrap;
  margin-left: auto;
}
@media (max-width: 720px){
  .cust-head-cards--split{
    flex-direction: column;
    align-items: stretch;
  }
  .cust-head-cards__right{
    justify-content: center;
    margin-left: 0;
  }
}
.cust-head-card{
  border: 0.0625rem solid rgba(15,23,42,.08);
  border-radius: 1rem;
  background: rgb(0, 0, 0);
  padding: 0.75rem 0.875rem;
  min-width: 16rem;
  text-align: center;
  color: white;
  font-weight: 700;
}
.cust-head-card__title{

  font-size: 1rem;
  letter-spacing: .06em;
}
.cust-head-card__sub{

  font-size: 1rem;
  margin-top: 0.125rem;
}
.cust-head-card--balance{
  min-width: 16rem;
}
.cust-head-card__kicker{

  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cust-head-card__value{
  margin-top: 0.25rem;

  font-size: 1.125rem;
}

.cust-btn-back{
  background: rgba(250,204,21,.30);
  border-color: rgba(250,204,21,.55);
  color: #713f12;
  font-weight: 700;
}
.cust-btn-back:hover{
  background: rgba(250,204,21,.40);
  border-color: rgba(250,204,21,.65);
}

.cust-debt-table{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}
.cust-debt-row{
  display:grid;
  grid-template-columns: 6.5rem 10rem 7.5rem 7.5rem 7.5rem auto;
  align-items:center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
}
.cust-debt-row > div{ text-align:center; }
.cust-debt-row--hdr > div{ text-align:center; }
.cust-debt-row > div:last-child{ display:flex; justify-content:center; }
.cust-debt-row--hdr{
  background: rgba(15,23,42,.04);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.75rem;
  padding: 0.75rem 0.875rem;
}
.cust-debt-row.is-selected{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.08);
}
.cust-debt-row.is-settled{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.10);
}

.cust-payments__title{
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: center;
  text-transform: uppercase;
}
.cust-payments__list{
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
}

/* Cari müşteri: tahsilat onayı modal içeriği */
.cust-confirm-grid{
  display:grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.cust-confirm-row{
  display:grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items:baseline;
}
.cust-confirm-k{
  font-weight: 700;
  color: rgba(15,23,42,.70);
}
.cust-confirm-v{
  font-weight: 700;
  color: rgba(2,6,23,.92);
  min-width:0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cust-payments__hdr{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr 1.6fr 2.5rem;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15,23,42,.04);
  border: 0.0625rem solid rgba(15,23,42,.06);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.75rem;
  text-align: center;
}
.cust-pay-row{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr 1.6fr 2.5rem;
  align-items:center;
  gap: 0.75rem;
  padding: 0.1rem 0rem 0rem 0rem;
  border-radius: 0.875rem;
  border: 0.0625rem solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  text-align: center;
}
.cust-pay-cell{ min-width: 0; }
.cust-pay-cell--method{ font-weight: 700; }
.cust-pay-cell--amount{ font-weight: 700; white-space: nowrap; text-align: right; }
.cust-pay-cell--note{
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cust-pay-cell--act{ display:flex; justify-content:flex-end; }
.cust-pay-edit-btn{
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-radius: 0.75rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color: black;
  background: #fcefb7;
}
.cust-pay-edit-btn svg{ display:block; }

.cust-methods{
  display:flex;
  gap: 0.625rem;
}
.cust-method{
  flex: 1 1 0;
  min-height: 2.75rem;
  font-weight: 700;
}
.cust-method.is-selected{
  background: #0b0f19;
  border-color: #0b0f19;
  color: #fff;
}

.cust-field-row{
  display:flex;
  align-items:center;
  gap: 0.75rem;
}
.cust-field-row__label{
  flex: 0 0 7.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.cust-field-row__input{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.125rem;
  background: #fcefb7;
  font-weight: 700;
  text-align: center;
}

.cust-keypad{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.375rem, 1.8vmin, 0.75rem);
  margin-top: 0.75rem;
}
.cust-key{
  min-height: clamp(2.75rem, 10vmin, 3.5rem);
  border-radius: clamp(0.75rem, 2.5vmin, 1rem);
  border: 0.0625rem solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: clamp(1.0625rem, 4.2vmin, 1.375rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .1s, background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-key svg{
  width: clamp(1.125rem, 4.5vmin, 1.375rem);
  height: clamp(1.125rem, 4.5vmin, 1.375rem);
}
.cust-key:hover{
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.cust-key:active{
  transform: scale(.97);
}
.cust-key--clear{
  background: red;
  border-color: red;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
}
.cust-key--clear:hover{
  background: rgba(249, 115, 22, .95);
}
.cust-key--del{
  background: rgba(244, 63, 94, .75);
  border-color: rgba(251, 113, 133, .4);
  color: #fff;
}
.cust-key--del:hover{
  background: rgba(244, 63, 94, .9);
}

.cust-collect-confirm{
  background: rgba(34, 197, 94, .92);
  border-color: rgba(34, 197, 94, .55);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-height: 3.25rem;
}
.cust-collect-confirm:hover{
  background: rgba(34, 197, 94, 1);
}
.cust-collect-confirm:active{
  transform: translateY(0.0625rem);
}
.cust-collect-confirm:disabled{
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 47.9375rem){
  .cust-search{ gap: 0.5rem; }
  .cust-row{ grid-template-columns: 1fr 1fr; }
  .cust-row > :nth-child(4){ text-align:left; }
  .cust-row > :nth-child(5){ text-align:left; }
  .cust-detail-layout{ grid-template-columns: 1fr; }
  .cust-debt-row{ grid-template-columns: 1fr 1fr; }
  .cust-debt-row > :nth-child(3),
  .cust-debt-row > :nth-child(4),
  .cust-debt-row > :nth-child(5),
  .cust-debt-row > :nth-child(6){ text-align:left !important; }
  .cust-head-card{ min-width: 100%; }
}

/* Cari Müşteri Detay (modules/customers/detail.php) - Mobil yerleşim */
@media (max-width: 47.9375rem){
  /* Tek satır: %10 (geri) - %45 (bilgi) - %45 (bakiye) */
  .cust-head-cards--split{
    display:grid !important;
    grid-template-columns: 10% 40% 45%;
    gap: 0.5rem;
    align-items:stretch !important;
  }
  .cust-head-cards__left{
    justify-content:flex-start !important;
    width: 100%;
  }
  /* Sağ sarmalayıcıyı "grid item" olmaktan çıkar: kartlar direkt kolonlara otursun */
  .cust-head-cards__right{
    display: contents !important;
    margin-left: 0 !important;
    width: auto !important;
  }
  .cust-head-cards__right > .cust-head-card:first-child{
    grid-column: 2;
    
  }
  .cust-head-cards__right > .cust-head-card:last-child{
    grid-column: 3;
  }
  .cust-head-card{
    min-width: 0 !important;
    width: 100%;
    text-align:left;
    justify-items: center;
  }
  .cust-head-card__title,
  .cust-head-card__sub,
  .cust-head-card__kicker,
  .cust-head-card__value{
    text-align:center;
  }

  /* Geri butonu: sadece ikon, %10 genişlik */
  .cust-btn-back{
    margin-left: 0 !important;
    width: 100%;
    min-height: 6rem;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 0 0.5rem;
  }
  .cust-back-text{ display:none; }
  .cust-back-ico{ display:inline-flex; }

  /* Uyarı metni mobilde gözükmesin */
  .cust-debt-hint{ display:none !important; }

  /* Adisyon Bazlı Borçlar: kart görünümü + etiket/değer */
  .cust-debt-row--hdr{ display:none; }
  .cust-debt-row{
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 0.875rem !important;
    background: rgba(255,255,255,.92);
  }
  .cust-debt-row > div{
    text-align:left !important;
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap: 0.75rem;
    min-width:0;
    white-space: nowrap;
  }
  .cust-debt-row > :nth-child(1)::before{ content:"Adisyon No"; font-weight:700; color: rgba(15,23,42,.70); }
  .cust-debt-row > :nth-child(2)::before{ content:"Borç Tarihi"; font-weight:700; color: rgba(15,23,42,.70); }
  .cust-debt-row > :nth-child(3)::before{ content:"Borç Tutar"; font-weight:700; color: rgba(15,23,42,.70); }
  .cust-debt-row > :nth-child(4)::before{ content:"Tahsil Tutar"; font-weight:700; color: rgba(15,23,42,.70); }
  .cust-debt-row > :nth-child(5)::before{ content:"Kalan Tutar"; font-weight:700; color: rgba(15,23,42,.70); }
  .cust-debt-row > :nth-child(1),
  .cust-debt-row > :nth-child(2),
  .cust-debt-row > :nth-child(3),
  .cust-debt-row > :nth-child(4),
  .cust-debt-row > :nth-child(5){
    overflow:hidden;
  }
  .cust-debt-row > :nth-child(1),
  .cust-debt-row > :nth-child(3),
  .cust-debt-row > :nth-child(4),
  .cust-debt-row > :nth-child(5){
    font-weight:700;
  }
  .cust-debt-row > :nth-child(2){
    color: var(--muted);
    font-weight:700;
  }
  /* En altta buton tam genişlik */
  .cust-debt-row > :last-child{
    display:block !important;
    justify-content:flex-start;
  }
  .cust-debt-row > :last-child::before{ content:none !important; }
  .cust-debt-row > :last-child .btn{
    width: 100%;
    justify-content:center;
  }
}

/* Cari Müşteriler (modules/customers/index.php) - Mobil yerleşim */
@media (max-width: 47.9375rem){
  .customers-index-card .customers-index-search{
    display:grid;
    grid-template-columns: 3fr 2fr; /* %60 / %40 */
    gap: 0.5rem;
    align-items:stretch;
  }
  .customers-index-card .customers-index-search .input{
    grid-column: 1 / 2;
    max-width: none;
    width: 100%;
    font-size: 12px;
  }
  .customers-index-card .customers-index-search [data-cust-new]{
    grid-column: 2 / 3;
    width: 100%;
    justify-content:center;
    white-space: nowrap;
  }
  .customers-index-card .customers-index-search .cust-total-card{
    grid-column: 1 / -1; /* 2. satır tam genişlik */
    width: 100%;
    margin-left: 0;
    align-items: center;
  }

  .customers-index-card .customers-index-table .cust-row--hdr{
    display:none;
  }
  .customers-index-card .customers-index-table .cust-row{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-rows: max-content;
    gap: 0.5rem !important;
    padding: 0.875rem !important;
    text-align:left !important;
  }
  /* 1. satır: Ad Soyad (sol) + Açıklama (sağ) */
  .customers-index-card .customers-index-table .cust-row > :nth-child(1){
    grid-column: 1 / 2;
    grid-row: 1;
    font-weight: 700;
    min-width:0;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .customers-index-card .customers-index-table .cust-row > :nth-child(2){
    grid-column: 2 / 3;
    grid-row: 1;
    text-align:right !important;
    font-weight: 700;
    color: var(--muted);
    min-width:0;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 2. satır: Telefon (sol) + Toplam Bakiye (sağ) */
  .customers-index-card .customers-index-table .cust-row > :nth-child(3){
    grid-column: 1 / 2;
    grid-row: 2;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
  .customers-index-card .customers-index-table .cust-row > :nth-child(4){
    grid-column: 2 / 3;
    grid-row: 2;
    text-align:right !important;
    justify-self:end;
    font-weight: 700;
    white-space: nowrap;
  }
  /* 3. satır: Detay (%70) + Sil (%30) */
  .customers-index-card .customers-index-table .cust-row > :nth-child(5){
    grid-column: 1 / -1;
    grid-row: 3;
    display:grid !important;
    grid-template-columns: 7fr 3fr; /* %70 / %30 */
    gap: 0.5rem;
    justify-content:stretch !important;
    text-align:left !important;
  }
  .customers-index-card .customers-index-table .cust-row > :nth-child(5) .btn{
    width: 100%;
    justify-content:center;
  }
}

@media (max-width: 74.9375rem){
  .pay-pos-layout{
    grid-template-columns: 1fr !important;
  }
  .pay-pos-card--methods{
    grid-column: 1 / -1;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .pay-totals-grid{ grid-template-columns: 1fr; }
  .pay-row{ grid-template-columns: 2.25rem minmax(0, 1fr) 4.75rem 4rem 2.25rem; }
  .pay-methods--sidebar{
    flex-direction:row;
    flex-wrap:wrap;
    width:100%;
  }
  .pay-method--big{ flex:1; min-width: 8.75rem; }
}

/* Tahsilat (pay.php): mobilde sol kolon yüksekliği içeriğe göre uzasın */
@media (max-width: 47.9375rem){
  .pay-pos-col--left .pay-pos-card--lines{
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* ——— Kilit ekranı (lockscreen.php) ——— */
/* Tam görünüm alanına sığdır; zoom / çözünürlükte yerleşim yapısı (2 sütun) sabit kalsın */
body.lockscreen-page{
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff;
}

/* login.php: mobil üst oturum bloğu varsayılan gizli (sadece mobilde açılıyor) */
.login-page .login-mobile-hero{ display:none; }

/* Mobilde lockscreen logo boyutu (tek yerden ayarlayın) */
:root{
  --lockscreen-logo-h-mobile: 4.25rem; /* örn: 3.5rem - 6rem */
  --lockscreen-logo-w-mobile: min(10rem, 72vw);
}
.lockscreen-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #fff;
}
.lockscreen-wrap{
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0rem), 2.2vmin) max(0.75rem, env(safe-area-inset-right, 0rem), 2.2vmin) max(0.75rem, env(safe-area-inset-bottom, 0rem), 2.2vmin) max(0.75rem, env(safe-area-inset-left, 0rem), 2.2vmin);
  box-sizing: border-box;
  overflow: hidden;
}
.lockscreen-shell{
  width: min(65rem, 100%);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  flex: 0 1 auto;
  border-radius: clamp(1rem, 3vmin, 1.75rem);
  background: #ffffff;
  border: 0.0625rem solid #e5e7eb;
  box-shadow: 0 1.25rem 3.125rem rgba(15, 23, 42, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lockscreen-user-hero{
  padding: clamp(0.75rem, 2.2dvh, 1.25rem) clamp(1rem, 3.5vmin, 2.25rem) clamp(0.75rem, 2.2dvh, 1.375rem);
  text-align: center;
  border-bottom: 0.0625rem solid #e5e7eb;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  flex-shrink: 0;
}
.lockscreen-user-hero__kicker{
  margin: 0 0 clamp(0.25rem, 1vmin, 0.5rem);
  font-size: clamp(0.625rem, 2.4vmin, 0.6875rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}
.lockscreen-user-hero__name{
  margin: 0;
  font-size: clamp(1.15rem, 4.2vmin, 2.1rem);
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lockscreen-user-hero__meta{
  margin: clamp(0.375rem, 1.4vmin, 0.625rem) 0 0;
  font-size: clamp(0.75rem, 2.8vmin, 0.875rem);
  font-weight: 600;
  color: #475569;
}
.lockscreen-user-hero__login{
  font-variant-numeric: tabular-nums;
}
.lockscreen-user-hero__sep{
  margin: 0 0.5rem;
  opacity: .45;
}
.lockscreen-user-hero__role{
  color: #334155;
}
.lockscreen-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.lockscreen-left{
  padding: clamp(0.75rem, 3vmin, 2.5rem);
  border-right: 0.0625rem solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 2.2dvh, 1.375rem);
  min-height: 0;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}
.lockscreen-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.5rem, 1.8vmin, 0.875rem);

}
.lockscreen-brand__logo{
  width: auto;
  height: clamp(3.5rem, 14vmin, 5.5rem);
  border-radius: clamp(0.75rem, 2.5vmin, 1.25rem);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lockscreen-brand__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lockscreen-brand__text{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 700;
  font-size: clamp(1rem, 3.2vmin, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lockscreen-brand__name{
  color: #0f172a;
}
.lockscreen-brand__pos{
  color: #009c49;;
  font-weight: 700;
}
.lockscreen-secure-banner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.375rem, 1.6vmin, 0.625rem);
  padding: clamp(0.5rem, 1.8vmin, 0.75rem) clamp(0.625rem, 2.2vmin, 1rem);
  border-radius: clamp(0.625rem, 2vmin, 0.875rem);
  background: #009c49;
  border: 0.0625rem solid #e9d5ff;
  font-size: clamp(0.75rem, 2.8vmin, 0.875rem);
  font-weight: 700;
  color: #ffffff;
}
.lockscreen-secure-banner__icon{
  color: #ffffff;
  flex-shrink: 0;
  width: clamp(1rem, 4vmin, 1.25rem);
  height: clamp(1rem, 4vmin, 1.25rem);
}
.lockscreen-kicker{
  margin: 0;
  font-size: clamp(0.625rem, 2.4vmin, 0.6875rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
}
.lockscreen-session{
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 1vmin, 0.375rem);
  text-align: center;
}
.lockscreen-clock{
  margin: 0;
  font-size: clamp(1.75rem, 7.5vmin, 3.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lockscreen-date{
  margin: 0;
  font-size: clamp(0.75rem, 2.8vmin, 0.9375rem);
  font-weight: 600;
  color: #334155;
}
.lockscreen-unlock-title{
  margin: clamp(0.625rem, 2.2dvh, 1.375rem) 0 0;
  font-size: clamp(1.1rem, 3.8vmin, 1.95rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1.15;
}
.lockscreen-business{
  margin-top: auto;
  flex-shrink: 0;
}
.lockscreen-business-card{
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vmin, 0.75rem);
  margin-top: clamp(0.25rem, 1vmin, 0.5rem);
  padding: clamp(0.625rem, 2vmin, 0.875rem) clamp(0.75rem, 2.2vmin, 1rem);
  border-radius: clamp(0.75rem, 2.2vmin, 1rem);
  background: #f8fafc;
  border: 0.0625rem solid #e2e8f0;
}
.lockscreen-business-card__icon{
  display: flex;
  color: #2563eb;
}
.lockscreen-business-card__icon svg{
  width: clamp(1.125rem, 4.2vmin, 1.375rem);
  height: clamp(1.125rem, 4.2vmin, 1.375rem);
}
.lockscreen-business-card__name{
  font-weight: 700;
  font-size: clamp(0.8125rem, 3vmin, 1rem);
  color: #0f172a;
}
.lockscreen-footnote{
  margin: 0;
  font-size: clamp(0.625rem, 2.4vmin, 0.75rem);
  color: #94a3b8;
  flex-shrink: 0;
}
.lockscreen-right{
  padding: clamp(0.75rem, 3vmin, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 2dvh, 1.125rem);
  min-height: 0;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lockscreen-right__title{
  margin: 0;
  font-size: clamp(1.15rem, 3.2vmin, 1.6rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-align: center;
}
.lockscreen-alert{
  padding: clamp(0.5rem, 1.8vmin, 0.75rem) clamp(0.625rem, 2.2vmin, 0.875rem);
  border-radius: clamp(0.625rem, 2vmin, 0.875rem);
  font-size: clamp(0.75rem, 2.8vmin, 0.875rem);
  font-weight: 600;
  flex-shrink: 0;
}
.lockscreen-alert--danger{
  background: #fef2f2;
  border: 0.0625rem solid #fecaca;
  color: #991b1b;
}
.lockscreen-alert--warning{
  background: #fffbeb;
  border: 0.0625rem solid #fde68a;
  color: #92400e;
}
.lockscreen-alert--info{
  background: #eff6ff;
  border: 0.0625rem solid #bfdbfe;
  color: #1e40af;
}
.lockscreen-user-select{
  width: 100%;
  margin: 0;
  padding: clamp(0.75rem, 2.5vmin, 1rem) clamp(0.875rem, 2.8vmin, 1.125rem);
  border-radius: clamp(0.75rem, 2.2vmin, 1rem);
  border: 0.0625rem solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: clamp(0.875rem, 3.2vmin, 1rem);
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right clamp(0.75rem, 2.5vmin, 1rem) center;
  padding-right: clamp(2.5rem, 10vmin, 3rem);
}
.lockscreen-user-select:disabled{
  opacity: .55;
  cursor: not-allowed;
}
input.lockscreen-user-select{
  cursor: text;
  background-image: none;
  padding-right: clamp(0.875rem, 2.8vmin, 1.125rem);
}
.login-user-block{
  display: flex;
  flex-direction: column;
  gap: clamp(0.375rem, 1.2vmin, 0.625rem);
  flex-shrink: 0;
}
.login-pw-kicker{
  margin-top: clamp(0.25rem, 1vmin, 0.5rem);
  margin-bottom: 0;
}
.login-mode-switch{
  margin: clamp(0.5rem, 2dvh, 1rem) 0 0;
  text-align: center;
  font-size: clamp(0.75rem, 2.8vmin, 0.875rem);
  color: #64748b;
  flex-shrink: 0;
}
.login-mode-switch a{
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}
.login-mode-switch a:hover{
  text-decoration: underline;
}
.login-mode-switch__sep{
  margin: 0 0.5rem;
  opacity: .5;
}
.login-mode-switch__hint{
  color: #94a3b8;
  font-weight: 600;
}
.login-page .lockscreen-alert a{
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.lockscreen-form{
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 2dvh, 1.125rem);
  flex: 1 1 auto;
  min-height: 0;
}
.lockscreen-pin-field{
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vmin, 0.75rem);
  padding: clamp(0.625rem, 2vmin, 1rem) clamp(0.75rem, 2.2vmin, 1.125rem);
  border-radius: clamp(0.75rem, 2.2vmin, 1rem);
  background: #f1f5f9;
  border: 0.0625rem solid #e2e8f0;
  flex-shrink: 0;
}
.lockscreen-pin-surface{
  flex: 1;
  min-width: 0;
  min-height: clamp(1.375rem, 5vmin, 1.75rem);
  display: flex;
  align-items: center;
}
.lockscreen-pin-dots{
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vmin, 0.75rem);
  align-items: center;
  min-height: clamp(1.375rem, 5vmin, 1.75rem);
}
.lockscreen-pin-plain{
  flex: 1;
  min-width: 0;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  color: #0f172a;
  line-height: 1.2;
}
.lockscreen-pin-dot{
  width: clamp(0.5625rem, 2.4vmin, 0.75rem);
  height: clamp(0.5625rem, 2.4vmin, 0.75rem);
  border-radius: 50%;
  border: 0.125rem solid #94a3b8;
  background: transparent;
  transition: background .15s, border-color .15s;
}
.lockscreen-pin-dot.is-filled{
  background: #0f172a;
  border-color: #0f172a;
}
.lockscreen-pin-reveal{
  flex-shrink: 0;
  width: clamp(2.375rem, 9vmin, 2.75rem);
  height: clamp(2.375rem, 9vmin, 2.75rem);
  border: none;
  border-radius: clamp(0.625rem, 2vmin, 0.75rem);
  background: #e2e8f0;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lockscreen-pin-reveal svg{
  width: clamp(1.125rem, 4.5vmin, 1.375rem);
  height: clamp(1.125rem, 4.5vmin, 1.375rem);
}
.lockscreen-pin-reveal .lockscreen-eye[hidden]{
  display: none !important;
}
.lockscreen-pin-reveal[aria-pressed="true"]{
  background: #cbd5e1;
  color: #0f172a;
}
.lockscreen-pin-reveal:hover{
  background: #cbd5e1;
}
.lockscreen-panel{
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.lockscreen-numpad{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.375rem, 1.8vmin, 0.75rem);
  margin-top: clamp(0.625rem, 2dvh, 1.125rem);
  flex: 1 1 auto;
  align-content: start;
  min-height: 0;
}
.lockscreen-num{
  min-height: clamp(2.75rem, 10vmin, 3.5rem);
  border-radius: clamp(0.75rem, 2.5vmin, 1rem);
  border: 0.0625rem solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: clamp(1.0625rem, 4.2vmin, 1.375rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .1s, background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lockscreen-num svg{
  width: clamp(1.125rem, 4.5vmin, 1.375rem);
  height: clamp(1.125rem, 4.5vmin, 1.375rem);
}
.lockscreen-num:hover{
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.lockscreen-num:active{
  transform: scale(.97);
}
.lockscreen-num--clear{
  background: rgba(234, 88, 12, .85);
  border-color: rgba(251, 146, 60, .4);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}
.lockscreen-num--clear:hover{
  background: rgba(249, 115, 22, .95);
}
.lockscreen-num--del{
  background: red;
  border-color: red; 
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}
.lockscreen-num--del:hover{
  background: rgba(244, 63, 94, .9);
}
.lockscreen-submit{
  margin-top: clamp(0.75rem, 2.5dvh, 1.5rem);
  width: 100%;
  min-height: clamp(2.875rem, 11vmin, 3.375rem);
  border: none;
  border-radius: clamp(0.75rem, 2.5vmin, 1rem);
  font-size: clamp(0.875rem, 3.2vmin, 1rem);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: black;
  transition: filter .2s, transform .1s;
  flex-shrink: 0;
  text-transform: uppercase;
}
.lockscreen-submit:hover{
  filter: brightness(1.06);
}
.lockscreen-submit:active{
  transform: translateY(0.0625rem);
}
.lockscreen-submit--disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.lockscreen-logout{
  align-self: center;
  margin-top: clamp(0.5rem, 1.8dvh, 1rem);
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.75rem, 2.8vmin, 0.875rem);
  min-height: clamp(2.875rem, 11vmin, 3.375rem);
  border-radius: clamp(0.625rem, 2vmin, 0.875rem);
  padding-left: clamp(1.25rem, 5vmin, 1.75rem);
  padding-right: clamp(1.25rem, 5vmin, 1.75rem);
  text-transform: uppercase;
}
.lockscreen-logout:hover{
  text-decoration: none;
  color: #fff;
}

/* Kilit / Giriş ekranı: mobilde üst bilgi + alt alta kolonlar */
@media (max-width: 47.9375rem){
  .login-page .login-mobile-hero{ display:block; }
  .login-page .login-desktop-session{ display:none; }

  .lockscreen-shell{
    width: min(46rem, calc(100vw - 1rem));
  }
  .lockscreen-grid{
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .lockscreen-left{
    border-right: none;
    border-bottom: 0.0625rem solid #e5e7eb;
    justify-content: flex-start;
    overflow: visible;
  }
  .lockscreen-right{
    overflow: visible;
  }

  /* Mobilde gereksiz blokları gizle */
  .lockscreen-brand__text,
  .lockscreen-session,
  .lockscreen-footnote,
  .login-mode-switch,
  .lockscreen-secure-banner,
  .lockscreen-business{
    display:none !important;
  }

  /* Mobilde PIN paneli: buton numpad'e binmesin */
  .lockscreen-right{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0rem));
  }
  .lockscreen-panel{
    gap: 0.75rem;
  }
  .lockscreen-numpad{
    flex: 0 0 auto; /* içerik kadar yer kaplasın */
  }

  /* Mobilde logo boyutu (değişkenlerle kontrol edilir) */
  .lockscreen-brand__logo{
    height: var(--lockscreen-logo-h-mobile) !important;
    width: var(--lockscreen-logo-w-mobile) !important;
  }
}

/* Mobil alt menü: responsive bloklar tarafından ezilmesin */
@media (max-width: 47.9375rem){
  .sidebar{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(4.5rem + env(safe-area-inset-bottom, 0rem)) !important;
    padding: 0.2rem 0rem 0rem 0rem;
    background: rgb(160 213 185);
    z-index: 60 !important;
    overflow: visible !important; /* aktif ikon taşması kesilmesin */
    border-radius: 2rem 2rem 0rem 0rem;
    margin: 0rem;
  }



  .nav{
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 0rem !important;
    padding: 0.1rem 0rem 0rem 0rem !important;
  }

  .nav a{
    flex: 1 0 20% !important;
    min-width: 20% !important;
    min-height: 4.25rem !important;
    border-color: transparent !important;
    background: transparent !important;
    color: rgba(226,232,240,.86) !important;
    padding: 0.45rem 0.25rem 0.25rem !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    overflow: visible !important;
  }
  .nav a .nav-icon,
  .nav a .nav-label{
    color: black !important;
  }
  .nav a .nav-label{
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    opacity: .78 !important;
  }
  .nav a .nav-icon{
    width: 3.35rem !important;   /* ikonlar büyütüldü */
    height: 3.35rem !important;
    border-radius: 999rem !important;
    background: white;  
    box-shadow: inset 0 0 0 0.0625rem rgba(255,255,255,.02) !important;
  }
  .nav a .nav-icon svg{
    width: 1.95rem !important;
    height: 1.95rem !important;
  }
  .nav a.active{
    background: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .nav a.active .nav-icon,
  .nav a.active .nav-label{
    color: #fff !important;
  }
  .nav a.active .nav-label{
    color: rgba(59,130,246,.98) !important;
    opacity: 1 !important;
  }
  .nav a.active .nav-icon{
    background: black !important;
    box-shadow: 0 1rem 2.25rem rgb(0 0 0 / 35%) !important;
    transform: translateY(-0.5rem) !important;
    width: 4rem !important;
    height: 4rem !important;
  }

  .main,
  .content{
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0rem)) !important;
  }
}

