/* RESTOM_CANLI_V1 - Paket servis ayar ekranlari (Yemeksepeti / Trendyol Go / Migros): modern kart gorunumu */
#settings-yemeksepeti .restom-dh-settings,
.restom-dh-settings {
    --rc-g: var(--accent, #10b981); --rc-ink: #0f172a; --rc-mut: #64748b; --rc-line: #e2e8f0; --rc-bg: #f8fafc;
    background: #fff !important; border: 1px solid var(--rc-line) !important; border-radius: 22px !important; padding: 0 !important; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -18px rgba(15,23,42,.18) !important; margin: 0 0 18px !important;
}
.restom-dh-settings .rdh-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 20px 24px; background: linear-gradient(180deg, #f0fdf7, #fff); border-bottom: 1px solid var(--rc-line); margin: 0 !important;
}
.restom-dh-settings .rdh-head strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--rc-ink); letter-spacing: -.01em; }
.restom-dh-settings .rdh-head p { margin: 3px 0 0; font-size: .82rem; color: var(--rc-mut); }
.restom-dh-settings .rdh-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa;
}
.restom-dh-settings .rdh-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.restom-dh-settings .rdh-pill.rdh-online { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.restom-dh-settings .rdh-pill.rdh-online::before { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.restom-dh-settings .rdh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 18px; padding: 22px 24px 6px; }
.restom-dh-settings .rdh-grid label { display: flex; flex-direction: column; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--rc-mut); letter-spacing: .01em; }
.restom-dh-settings .rdh-grid input, .restom-dh-settings .rdh-grid select {
    height: 46px; padding: 0 14px; border: 1.5px solid var(--rc-line); border-radius: 13px; background: var(--rc-bg); color: var(--rc-ink);
    font: inherit; font-size: .92rem; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; width: 100%; box-sizing: border-box;
}
.restom-dh-settings .rdh-grid input::placeholder { color: #94a3b8; font-weight: 500; }
.restom-dh-settings .rdh-grid input:focus, .restom-dh-settings .rdh-grid select:focus { border-color: var(--rc-g); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.restom-dh-settings .rdh-toggles { display: grid; gap: 10px; padding: 14px 24px 4px; }
.restom-dh-settings .rdh-check { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--rc-line); border-radius: 15px; background: var(--rc-bg); cursor: pointer; transition: border-color .15s, background .15s; }
.restom-dh-settings .rdh-check:hover { border-color: #cbd5e1; }
.restom-dh-settings .rdh-check:has(input:checked) { border-color: #6ee7b7; background: #f0fdf7; }
.restom-dh-settings .rdh-check input { appearance: none; -webkit-appearance: none; flex: 0 0 44px; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .18s; }
.restom-dh-settings .rdh-check input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .18s; }
.restom-dh-settings .rdh-check input:checked { background: var(--rc-g); }
.restom-dh-settings .rdh-check input:checked::after { transform: translateX(18px); }
.restom-dh-settings .rdh-check b { display: block; font-size: .92rem; color: var(--rc-ink); }
.restom-dh-settings .rdh-check small { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.45; color: var(--rc-mut); font-weight: 500; }
.restom-dh-settings .rdh-help { margin: 14px 24px 0; padding: 12px 14px; border-radius: 12px; background: #f1f5f9; color: var(--rc-mut); font-size: .78rem; line-height: 1.55; }
.restom-dh-settings .rdh-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px 22px; }
.restom-dh-settings .rdh-save, .restom-dh-settings .rdh-test {
    height: 46px; padding: 0 24px; border-radius: 13px; border: 0; font: inherit; font-size: .92rem; font-weight: 800; cursor: pointer; transition: transform .1s, box-shadow .15s, opacity .15s;
}
.restom-dh-settings .rdh-save { background: linear-gradient(180deg, #19c58b, #0ea371); color: #fff; box-shadow: 0 8px 18px -8px rgba(16,185,129,.7); }
.restom-dh-settings .rdh-test { background: #fff; color: var(--rc-ink); border: 1.5px solid var(--rc-line); }
.restom-dh-settings .rdh-save:hover, .restom-dh-settings .rdh-test:hover { transform: translateY(-1px); }
.restom-dh-settings .rdh-save:active, .restom-dh-settings .rdh-test:active { transform: none; }
.restom-dh-settings .rdh-save:disabled, .restom-dh-settings .rdh-test:disabled { opacity: .55; cursor: wait; transform: none; }
.restom-dh-settings .rdh-feedback { font-size: .84rem; font-weight: 700; color: var(--rc-mut); }
.rdh-loading, .rdh-error { padding: 22px 24px; border-radius: 18px; background: var(--rc-bg, #f8fafc); color: #64748b; font-weight: 600; }
@media (max-width: 640px) {
    .restom-dh-settings .rdh-head, .restom-dh-settings .rdh-grid, .restom-dh-settings .rdh-toggles, .restom-dh-settings .rdh-bottom { padding-left: 16px; padding-right: 16px; }
    .restom-dh-settings .rdh-help { margin-left: 16px; margin-right: 16px; }
    .restom-dh-settings .rdh-save, .restom-dh-settings .rdh-test { flex: 1 1 100%; }
}

/* Bolgeler basligi: raptiye + yenile + ayar dugmeleri paneli tasirmasin (kucuk, esit, tek satir) */
html .mk-side .mk-side-head { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 6px !important; flex-wrap: nowrap !important; }
html .mk-side .mk-side-head .mk-side-t { min-width: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html .mk-side .mk-side-tools { display: flex !important; align-items: center !important; flex: 0 0 auto !important; flex-wrap: nowrap !important; gap: 4px !important; }
html .mk-side .mk-side-tools > button, html .mk-side .mk-side-tools .mk-gear-wrap .mk-gear { width: 30px !important; height: 30px !important; min-width: 30px !important; padding: 0 !important; border-radius: 9px !important; }
html .mk-side .mk-side-tools svg { width: 15px !important; height: 15px !important; }
html .mk-side .mk-side-tools .mk-gear-wrap { flex: 0 0 auto !important; }

/* Yenile dugmesi ust cubuga tasindi: Bolgeler basligindaki kopya gizlenir; ust cubuktaki dugme yalniz ikon */
html .mk-side .mk-side-tools .mk-refresh[data-refresh] { display: none !important; }
.rs-ust-btn.rc-refresh { padding-left: 12px !important; padding-right: 12px !important; min-width: 0 !important; }
.rs-ust-btn.rc-refresh:active svg { transform: rotate(180deg); transition: transform .3s; }

/* Telefon: ayni anda 3 yerde yenile dugmesi cikmasin.
   - Bolge sekmelerindeki (Salon yanindaki) dugme tum telefonlarda gizli.
   - Ust cubuktaki (Rezervasyon yanindaki) dugme Android'de gorunur, iPhone/iPad (uygulamanin kendi ust yenile dugmesi var) gizli. */
@media (max-width: 900px) {
    #tableFilters .pkp-f5top { display: none !important; }
    html.rc-ios .rs-ust-btn.rc-refresh { display: none !important; }
}

/* Fuudy: Platform Kontrol kartindaki "Fuudy ayarlari" dugmesi kalkti (ayarlar Ayarlar > Paket Servis'te) */
.fu-entry { display: none !important; }
/* Ayarlar > Stok & Recete sekmesi kalkti (ana menudeki Stok kullanilir) */
.ra-item[data-tab="stok"], .rs-stok-nav, #settings-stok { display: none !important; }

/* RESTOM_CANLI_V1: telefonda ust ozet kartlari (Musait / Dolu / Ciro) kesilmesin */
@media (max-width: 640px) {
  #dashboardView .stats-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #dashboardView .stats-grid .stat-card { min-width: 0 !important; padding: 10px 12px !important; gap: 10px !important; overflow: hidden; }
  #dashboardView .stats-grid .stat-card:last-child { grid-column: 1 / -1; }
  #dashboardView .stats-grid .stat-card > div:not(.mk-ring):not(.stat-icon) { min-width: 0; }
  #dashboardView .stats-grid .stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #dashboardView .stats-grid .stat-value { white-space: nowrap; font-size: 1.15rem !important; }
  #dashboardView .stats-grid .mk-sub { display: block !important; margin-left: 0 !important; vertical-align: baseline; font-size: 11px; white-space: normal !important; overflow: hidden; text-overflow: ellipsis; }
}

/* RESTOM_CANLI_V1: paket listesinde "POS'a gonder" dugmesi */
.rc-poss { color: #0b7a47; }
.rc-poss.sent { background: rgba(17, 175, 102, .16) !important; border-color: rgba(17, 175, 102, .55) !important; color: #0b7a47 !important; }
.rc-poss:disabled { opacity: .55; }

/* RESTOM_CANLI_V1: paket listesi islem sutunu: 5 dugme (POS + Siparis Hazir + Detay + Yazdir + Iptal) sigsin */
@container pkmain (min-width: 1241px) {
  .pk-head, .pk-row { grid-template-columns: minmax(145px, 1.25fr) minmax(130px, 1.3fr) minmax(124px, .9fr) minmax(86px, .7fr) minmax(104px, .85fr) minmax(104px, .8fr) minmax(134px, .9fr) minmax(324px, 1.6fr) !important; }
}
@container pkmain (min-width: 1000px) and (max-width: 1240px) {
  .pk-head, .pk-row { grid-template-columns: minmax(145px, 1.25fr) minmax(130px, 1.3fr) minmax(124px, .9fr) minmax(96px, .8fr) minmax(104px, .8fr) minmax(324px, 1.6fr) !important; }
}
.pk-row .pk-c-act { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 6px; }
.pk-c-act .pk-btn { flex: 0 0 auto; }
.pk-c-act .rc-poss { width: 38px; height: 38px; padding: 0; }

/* RESTOM_CANLI_V1: Yeni Paket Siparis dugmesinin yanindaki Rota dugmesi */
.pk-top > .rc-route { height: 46px; padding: 0 18px; font-size: 14.5px; text-decoration: none; color: var(--pk-tx, inherit); margin-right: auto; }
.pk-top > .rc-route svg { color: #2459c7; }
.pk-top > .rc-route b { min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; background: var(--pk-soft, #f3f4f6); color: var(--pk-mu, #6b7280); border-radius: 7px; }
.pk-top > .rc-route.off { opacity: .55; }
@media (max-width: 600px) { .pk-top > .rc-route { margin-right: 0; justify-content: center; } }

/* RESTOM_CANLI_V1: TEL rozeti yerine telefon simgesi */
.pk-logo[data-rc-tel] svg { width: 58%; height: 58%; display: block; }

/* RESTOM_CANLI_V1: Paket Servis hover efektleri (yalniz fare olan cihazlarda) */
@media (hover: hover) and (pointer: fine) {
  #tablesGrid .pk-btn, #tablesGrid .pk-chip, #tablesGrid .pk-row, #tablesGrid .pk-card, .area-btn, .pk-sort, #tablesGrid .pk-select {
    transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, filter .18s ease, color .18s ease;
  }
  /* genel dugmeler */
  #tablesGrid .pk-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: color-mix(in srgb, var(--pk-acc, #10b981) 55%, var(--pk-bd, #d6dcd9)); box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
  #tablesGrid .pk-btn:active:not(:disabled) { transform: translateY(0) scale(.97); box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
  /* ana (yesil) dugmeler: Onayla, Siparis Hazir, Yeni Paket Siparis */
  #tablesGrid .pk-primary:hover:not(:disabled) { filter: brightness(1.07) saturate(1.05); box-shadow: 0 10px 22px rgba(16, 185, 129, .38); border-color: transparent; }
  /* iptal / kirmizi dugmeler */
  #tablesGrid .pk-danger:hover:not(:disabled) { background: #ffe0e4; border-color: #f87171; color: #9f1239; box-shadow: 0 6px 16px rgba(220, 38, 38, .22); }
  #tablesGrid .pk-danger-solid:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 10px 22px rgba(220, 38, 38, .38); }
  /* platform ve rota filtreleri */
  #tablesGrid .pk-chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--pk-acc, #10b981) 60%, var(--pk-bd, #d6dcd9)); box-shadow: 0 6px 14px rgba(16, 24, 40, .1); }
  #tablesGrid .pk-chip.on:hover { filter: brightness(1.06); box-shadow: 0 8px 18px rgba(16, 185, 129, .3); }
  #tablesGrid .pk-chip:active { transform: translateY(0) scale(.98); }
  #tablesGrid .pk-chip:hover .pk-logo { transform: scale(1.08); }
  #tablesGrid .pk-logo { transition: transform .16s ease; }
  /* siparis satiri ve karti */
  #tablesGrid .pk-row:hover { background: color-mix(in srgb, var(--pk-acc, #10b981) 7%, var(--pk-soft, #f3f4f6)); box-shadow: inset 4px 0 0 var(--pk-c, var(--pk-acc, #10b981)); cursor: pointer; }
  #tablesGrid .pk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 24, 40, .14); border-color: color-mix(in srgb, var(--pk-c, #10b981) 55%, var(--pk-bd, #d6dcd9)); cursor: pointer; }
  /* siralama basliklari, durum secimi */
  #tablesGrid .pk-sort:hover { color: var(--pk-acc, #059669); }
  #tablesGrid .pk-select:hover { border-color: color-mix(in srgb, var(--pk-acc, #10b981) 55%, var(--pk-bd, #d6dcd9)); box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
  /* sol bolge listesi */
  .area-btn:hover:not(.active) { transform: translateX(2px); background: color-mix(in srgb, var(--pk-acc, #10b981) 10%, transparent); }
}
#tablesGrid .pk-btn:focus-visible, #tablesGrid .pk-chip:focus-visible, #tablesGrid .pk-row:focus-visible, #tablesGrid .pk-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--pk-acc, #10b981) 50%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #tablesGrid .pk-btn, #tablesGrid .pk-chip, #tablesGrid .pk-row, #tablesGrid .pk-card, .area-btn { transition: none !important; transform: none !important; } }

/* RESTOM_CANLI_V1: Raporlar > Otomatik gun sonu */
.rc-autode { display: inline-flex !important; align-items: center; gap: 8px; visibility: visible !important; }
.rc-autode svg { color: currentColor; }
.rc-autode.on { border-color: color-mix(in srgb, #10b981 60%, transparent) !important; }
.rc-ad-ov { position: fixed; top: 0; left: 0; right: 0; bottom: 0; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.rc-ad-box { box-sizing: border-box; width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--sidebar-bg, #fff); color: var(--text-main, #14231b); border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-family: Inter, system-ui, sans-serif; }
.rc-ad-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.rc-ad-sub { margin: 0 0 16px; color: var(--text-muted, #5d7268); font-size: 13px; line-height: 1.5; }
.rc-ad-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid rgba(128, 128, 128, .25); border-radius: 12px; font-weight: 700; font-size: 14px; }
.rc-ad-row input[type="time"] { font: inherit; font-weight: 700; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, .35); background: var(--bg-main, #f3f4f6); color: inherit; }
.rc-ad-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: #10b981; cursor: pointer; }
.rc-ad-row input:disabled { opacity: .5; }
.rc-ad-ex { margin: 10px 2px 8px; padding: 10px 12px; border-radius: 10px; background: rgba(16, 185, 129, .12); color: #065f46; font-size: 13px; font-weight: 600; line-height: 1.45; min-height: 20px; }
.rc-ad-notes { margin: 0 0 16px; padding-left: 18px; color: var(--text-muted, #5d7268); font-size: 12.5px; line-height: 1.55; }
.rc-ad-act { display: flex; gap: 10px; justify-content: flex-end; }
.rc-ad-act .btn { min-width: 96px; }
.rc-ad-save { background: #10b981 !important; border-color: #10b981 !important; color: #fff !important; font-weight: 800; }
.rc-ad-save:disabled { opacity: .6; }
@media (prefers-color-scheme: dark) { .rc-ad-ex { color: #6ee7b7; } }

/* RESTOM_CANLI_V1: restoranda hic masa yoksa "Acik Masalar" gizli (sayfa seviyesinde; yeniden cizimde de gecerli) */
html.rc-no-tables #tableFilters .area-btn._open,
html.rc-no-tables #tableFilters [data-area="_open"],
html.rc-no-tables .mk-side-i.open { display: none !important; }

/* RESTOM_CANLI_V1: telefonda hic masa yoksa bolge cubugu (tek secenek: Paket Servis) gizli */
@media (max-width: 900px) { html.rc-no-tables #tableFilters { display: none !important; } }

/* RESTOM_CANLI_V1: hic masa yoksa sol "Bolgeler" paneli (tek secenek: Paket Servis) gizli, icerik tum genisligi kullanir */
html.rc-no-tables .mk-side { display: none !important; }
html.rc-no-tables .mk-wrap { grid-template-columns: minmax(0, 1fr) !important; }
html.rc-no-tables .mk-wrap.mk-wrap > #tablesGrid#tablesGrid, html.rc-no-tables.pkp-on .mk-wrap.mk-wrap > #tablesGrid#tablesGrid { grid-column: 1 / -1 !important; min-width: 0; }

/* RESTOM_CANLI_V1: kart gorunumu: dugmeler karttan tasmasin, kartlar daha kucuk */
#tablesGrid .pk-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 10px !important; }
#tablesGrid .pk-card { padding: 10px 12px !important; gap: 8px !important; border-radius: 14px !important; min-width: 0; }
#tablesGrid .pk-card header .pk-logo { width: 32px; height: 32px; font-size: 10.5px; border-radius: 9px; }
#tablesGrid .pk-card ul { padding-top: 7px; gap: 3px; font-size: .88em; }
#tablesGrid .pk-card footer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; padding-top: 8px !important; }
#tablesGrid .pk-card footer > div:first-child { grid-column: 1 / 3; min-width: 0; }
#tablesGrid .pk-card footer .pk-c-act { display: contents; }
#tablesGrid .pk-card footer .pk-c-act > .pk-btn:not(.pk-sq) { grid-column: 3 / 5; grid-row: 1; width: 100%; padding: 0 8px; justify-content: center; }
#tablesGrid .pk-card footer .pk-c-act > .pk-sq { width: 100%; height: 34px; }

/* RESTOM_CANLI_V1: Yeni Paket Siparis: onay sonrasi musteri bilgisi formu */
.rc-dt-ov { position: fixed; top: 0; left: 0; right: 0; bottom: 0; inset: 0; z-index: 99991; display: grid; place-items: center; padding: 12px; background: rgba(15, 23, 42, .6); backdrop-filter: blur(3px); }
.rc-dt-box { box-sizing: border-box; width: min(460px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; background: var(--sidebar-bg, #fff); color: var(--text-main, #14231b); border-radius: 20px; padding: 22px 22px 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-family: Inter, system-ui, sans-serif; }
.rc-dt-box h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.rc-dt-sub { margin: 0 0 14px; color: var(--text-muted, #5d7268); font-size: 13px; }
.rc-dt-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted, #5d7268); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.rc-dt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(128, 128, 128, .12); }
.rc-dt-seg button { border: 0; border-radius: 9px; padding: 10px 8px; font: inherit; font-weight: 700; font-size: 13px; background: transparent; color: inherit; cursor: pointer; min-height: 42px; }
.rc-dt-seg button.on { background: #10b981; color: #fff; box-shadow: 0 2px 8px rgba(16, 185, 129, .35); }
.rc-dt-f { display: block; margin-top: 10px; }
.rc-dt-f > span { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted, #5d7268); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.rc-dt-in { width: 100%; box-sizing: border-box; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(128, 128, 128, .35); background: var(--bg-main, #f3f4f6); color: inherit; font: inherit; font-size: 16px; }
.rc-dt-in:focus { outline: 3px solid rgba(16, 185, 129, .4); outline-offset: 1px; border-color: #10b981; }
textarea.rc-dt-in { resize: vertical; min-height: 70px; }
.rc-dt-vch { margin-top: 8px; }
.rc-dt-known { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #059669; }
.rc-dt-err { margin: 10px 0 0; min-height: 18px; color: #dc2626; font-size: 13px; font-weight: 700; }
.rc-dt-act { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; z-index: 1; margin: 10px -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--sidebar-bg, #fff); border-top: 1px solid rgba(128, 128, 128, .2); }
.rc-dt-act button { border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; border: 1px solid rgba(128, 128, 128, .35); background: transparent; color: inherit; min-height: 46px; }
.rc-dt-act .rc-dt-save { background: #10b981; border-color: #10b981; color: #fff; min-width: 120px; }
.rc-dt-act .rc-dt-save:disabled { opacity: .6; }
@media (max-width: 520px) { .rc-dt-ov { place-items: end center; padding: 0; } .rc-dt-box { border-radius: 20px 20px 0 0; } }
@media (max-height: 720px) { .rc-dt-box { padding-top: 16px; } .rc-dt-sub { margin-bottom: 8px; } .rc-dt-f { margin-top: 6px; } .rc-dt-lbl { margin-top: 6px; } textarea.rc-dt-in { min-height: 54px; } .rc-dt-in { padding: 10px 12px; } .rc-dt-seg button { min-height: 38px; padding: 7px 8px; } }

.rc-dt-act .rc-dt-cancel { color: #dc2626; border-color: rgba(220, 38, 38, .45); margin-right: auto; }
.rc-dt-act .rc-dt-cancel.sure { background: #dc2626; border-color: #dc2626; color: #fff; }

/* RESTOM_CANLI_V1: detay penceresi alt dugmeleri telefonda kesin izgara: ilk dugme tam genis, digerleri ikiserli (iPhone'da tek satira sikisip ust uste biniyordu) */
@media (max-width: 700px) {
  #pk-modal .pk-modal-foot { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; flex-wrap: initial !important; gap: 8px !important; justify-content: stretch !important; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
  #pk-modal .pk-modal-foot .pk-btn { min-width: 0 !important; width: 100% !important; height: 44px !important; padding: 0 8px !important; flex: none !important; justify-content: center !important; font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; }
  #pk-modal .pk-modal-foot .pk-btn:first-child, #pk-modal .pk-modal-foot .pk-btn:last-child:nth-child(even) { grid-column: 1 / -1 !important; }
}
/* RESTOM_CANLI_V1: ust ozet kartlari: alt yazi ve etiket sarilsin (kesilip "..." olmasin) */
.pkp-k small, .pkp-k em { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; line-height: 1.25; text-wrap: balance; }

/* RESTOM_CANLI_V1: Platform Kontrol paneli "Otomatik ac" dugmesi (Tumunu Ac/Kapat'in altinda) */
.pk-panel .rc-autoop { width: 100%; height: 40px; margin: 8px 0 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.pk-panel .rc-autoop svg { color: #64748b; flex: none; }
.pk-panel .rc-autoop.on svg { color: #059669; }
.pk-panel .rc-autoop.on { border-color: color-mix(in srgb, #10b981 55%, transparent); }
.pk-panel .rc-autoop + .pk-plat, .pk-panel .rc-autoop + * { margin-top: 10px; }

/* RESTOM_CANLI_V1: Platform Kontrol'deki Fuudy karttan "Fuudy ayarlari" popup dugmesi kalkar (ayarlar Ayarlar > Paket Servis'te; acik/kapali dugmeleri kartta) */
.pk-plat .fu-entry, .pk-panel .fu-entry { display: none !important; }

/* RESTOM_CANLI_V1: Fuudy kartinda tek Acik/Kapali grubu: bizim grup varsa uygulamanin kendi (yinelenen) grubu gizlenir */
.pk-plat:has([data-rc-fu-modes]) > .pk-modes:not([data-rc-fu-modes]) { display: none !important; }

/* RESTOM_CANLI_V1: Fuudy kartinda durum rozeti: kendi rozetimiz varsa uygulamaninki gizlenir */
.pk-plat:has(.rc-fu-chip) .pk-plat-top > .pk-state:not(.rc-fu-chip) { display: none !important; }

/* RESTOM_CANLI_V1: Uygulama Indir: ikinci (yazici ajansiz) indirme dugmesi */
button.rc-noagent { margin-top: 10px !important; background: transparent !important; color: #047857 !important; border: 1.5px solid #10b981 !important; box-shadow: none !important; }
button.rc-noagent:hover:not(:disabled) { background: rgba(16, 185, 129, .08) !important; }
button.rc-noagent:disabled { opacity: .55; cursor: not-allowed; }
.rc-na-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-muted, #64748b); }
.rc-na-note b { color: var(--text, #0f172a); }

/* RESTOM_CANLI_V1: Paket Servis "Kurye Haritasi" dugmesi + tam ekran harita katmani */
.pk-top > .rc-kyb { height: 46px; padding: 0 16px; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.pk-top > .rc-route:has(+ .rc-kyb) { margin-right: 8px; }
.pk-top > .rc-kyb svg { color: #059669; }
@media (max-width: 600px) { .pk-top > .rc-kyb { margin-right: 0; justify-content: center; } }
#rcKyOv { position: fixed; inset: 0; z-index: 99990; background: #eef3f1; }
#rcKyOv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pk-top > .rc-kyb .rc-kyn { min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; background: var(--pk-soft, #f3f4f6); color: var(--pk-mu, #6b7280); border-radius: 7px; }
.pk-top > .rc-kyb.off { opacity: .8; }
.pk-top > .rc-kyb:not(.off) .rc-kyn { background: #dcfce7; color: #15803d; }

/* RESTOM_CANLI_V1: kurye hesabi giris yapinca tam ekran kurye ekrani */
#rcKyApp { position: fixed; inset: 0; z-index: 99995; background: #eef3f1; }
#rcKyApp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* RESTOM_CANLI_V1: Kurye Haritasi dugmesi yavasca nabiz atar (Rota kalkti) */
.pk-top > .rc-kyb { animation: rcKyGlow 2.8s ease-in-out infinite; }
@keyframes rcKyGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } 50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, .16); } }
.pk-top > .rc-kyb svg { animation: rcKyBob 2.8s ease-in-out infinite; }
@keyframes rcKyBob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.5px); } }
@media (prefers-reduced-motion: reduce) { .pk-top > .rc-kyb, .pk-top > .rc-kyb svg { animation: none; } }

/* RESTOM_PAKET_TEK_SIRA_V1: paket ust cubugu (Yeni siparis, Kurye haritasi, Durum, yakinlastirma, Tablo/Kart, telefon, yenile, ayar) tek sirada.
   Yalniz yerlesim. Genislik paket alanina gore olculur (pkmain): sol Bolgeler veya Platform Kontrol paneli acik olabilir. */
@media (min-width: 700px) {
    html body #tablesGrid.pk-v1 .pk-top { flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px !important; }
    html body #tablesGrid.pk-v1 .pk-top > * { flex: 0 0 auto; margin: 0 !important; }
    html body #tablesGrid.pk-v1 .pk-top > .pk-newbtn, html body #tablesGrid.pk-v1 .pk-top > .rc-kyb, html body #tablesGrid.pk-v1 .pk-top > .rc-route { height: 42px !important; padding: 0 13px !important; font-size: 13px !important; white-space: nowrap; gap: 7px; }
    html body #tablesGrid.pk-v1 .pk-top > .pk-tools { flex: 1 1 auto !important; flex-wrap: nowrap !important; gap: 8px !important; min-width: 0; width: auto !important; }
    html body #tablesGrid.pk-v1 .pk-tools > * { flex: 0 0 auto; }
    /* Durum kucultuldu: yazi gizli, secim kalir */
    html body #tablesGrid.pk-v1 .pk-select { padding: 0 4px 0 10px !important; gap: 4px !important; }
    html body #tablesGrid.pk-v1 .pk-select > span { display: none !important; }
    html body #tablesGrid.pk-v1 .pk-select select { font-size: 13px !important; padding: 8px 2px !important; max-width: 112px; width: auto !important; }
    html body #tablesGrid.pk-v1 .pk-zoom button { width: 30px !important; height: 32px !important; }
    html body #tablesGrid.pk-v1 .pk-zoom span { min-width: 40px !important; }
    html body #tablesGrid.pk-v1 .pk-seg button { padding: 0 10px !important; }
    html body #tablesGrid.pk-v1 .pk-tools > .pk-sq { width: 42px !important; height: 42px !important; padding: 0 !important; }

    @container pkmain (max-width: 990px) {
        html body #tablesGrid.pk-v1 .pk-seg button span { display: none !important; }
    }
    @container pkmain (max-width: 870px) {
        html body #tablesGrid.pk-v1 .pk-zoom { display: none !important; }
        html body #tablesGrid.pk-v1 .pk-top > .pk-newbtn, html body #tablesGrid.pk-v1 .pk-top > .rc-kyb { padding: 0 10px !important; }
    }
    /* cok dar: tek siraya sigmaz, alt satira gecebilir */
    @container pkmain (max-width: 730px) {
        html body #tablesGrid.pk-v1 .pk-top, html body #tablesGrid.pk-v1 .pk-top > .pk-tools { flex-wrap: wrap !important; }
    }
}

/* RESTOM_PAKET_KART_ALT_V1: paket kartinda yazdir dugmesi alt satira dusmesin: tutar ustte, dugmeler tek sirada. */
html body #tablesGrid .pk-card footer { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; margin-top: auto; }
html body #tablesGrid .pk-card footer > div:first-child { min-width: 0; }
html body #tablesGrid .pk-card footer .pk-c-act { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; align-items: stretch; justify-content: flex-start; }
html body #tablesGrid .pk-card footer .pk-c-act > .pk-btn { height: 44px !important; margin: 0 !important; }
html body #tablesGrid .pk-card footer .pk-c-act > .pk-btn:not(.pk-sq) { flex: 1 1 auto; min-width: 0; width: auto !important; justify-content: center; white-space: nowrap; }
html body #tablesGrid .pk-card footer .pk-c-act > .pk-sq { flex: 0 0 46px; width: 46px !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
