/* delivery#534 · çalışan prototip · kabuk ve yeni öğeler. Her renk tema ya da --wa-* değişkeninden gelir.
   Önceki turların kesikli "yeni parça" işaretleri burada kapanır: bu sayfa ürünün kendisi gibi görünür. */
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--surface-ground); }
#app { height: 100%; }
a { cursor: pointer; }
.wa-balbtn, .wa-switch, .desk-collect, .wa-pricebox, .wa-acts span[data-new="true"], .wa-rowact { box-shadow: none !important; }
.mark-new .is-new { outline: 0; }
[data-act] { cursor: pointer; }
.muted { color: var(--wa-text-2, var(--text-color-secondary)); font-weight: 400; }
.debt { color: var(--red-500); }
.grow { flex: 1; }

/* ───── Panel modülünün paleti panel temasında (siparişler sayfası, çekmece, pencereler) ───── */
.pm {
    --wa-bg: var(--surface-card); --wa-head: var(--surface-ground); --wa-text: var(--text-color); --wa-text-2: var(--text-color-secondary);
    --wa-icon: var(--text-color-secondary); --wa-green: var(--green-500); --wa-on-green: var(--gray-50); --wa-accent: var(--primary-color);
    --wa-divider: var(--surface-border); --wa-hover: var(--surface-hover); --wa-selected: var(--surface-100); --wa-chip: var(--surface-100);
    --wa-chip-on: color-mix(in srgb, var(--primary-color) 14%, transparent); --wa-chip-on-text: var(--primary-color); --wa-input: var(--surface-card);
    --wa-sheet: var(--surface-overlay, var(--surface-card)); --wa-shadow: rgba(0, 0, 0, .14); --wa-note: color-mix(in srgb, var(--orange-500) 12%, var(--surface-card));
    --wa-note-text: var(--text-color); --wa-danger: var(--red-500); --wa-scrim: rgba(0, 0, 0, .4); --wa-info: var(--blue-600); --wa-info-bg: color-mix(in srgb, var(--blue-500) 10%, var(--surface-card));
    --wa-tick: var(--surface-400); --wa-pill: var(--surface-card); --wa-pill-text: var(--text-color-secondary);
    color: var(--text-color);
}
.pm .p-button:not(.p-button-outlined):not(.p-button-text) { color: var(--primary-color-text); }

/* ───── Masaüstü kabuk ───── */
.shell.desk { height: 100vh; }
.fs-side { display: flex; flex-direction: column; }
.fs-logo { padding: 12px 8px 6px; justify-content: space-evenly; align-items: center; }
.fs-logo .app-logo { display: inline-flex; }
.sb-arrow { width: 36px; height: 36px; padding: 0; justify-content: center; color: var(--text-color-secondary) !important; }
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-bottom: 12px; }
.sb-hello { font-size: 13px; padding-top: 6px; padding-bottom: 4px; }
.company-switcher { min-height: 2.5rem; margin-bottom: 4px; }
.fs-menu a { position: relative; }
.menu-badge { margin-left: auto; min-width: 1.4rem; height: 1.4rem; line-height: 1.4rem; font-size: .75rem; }
.fs-main { padding: 12px 16px 14px; }
.fs-top { margin-bottom: 4px; }
.shell.desk[data-page="whatsapp"] .fs-main { padding: 12px 14px; }
.fs-body { display: flex; flex-direction: column; }
.scroll-body { overflow-y: auto; }
.md { height: 100%; min-height: 0; }
.list-pane .list-scroll, .detail-pane .d-scroll, .ctx-col { overflow-y: auto; scrollbar-width: thin; }
.list-scroll .w-full.mb-2 { cursor: pointer; }
.detail-pane { display: flex; flex-direction: column; min-width: 0; }
.ctx-col { width: 360px; padding-right: 2px; }
@media (min-width: 1800px) { .ctx-col { width: 400px; } }
.ctx-col .wa-card, .detail-pane .wa-card { border: 1px solid var(--surface-border); border-radius: 10px; margin-bottom: 12px; }
.detail-pane .d-scroll { display: block; }
.detail-pane .d-scroll > .wa-card:last-child { margin-bottom: 0; }
.d-title .desk-ladder { flex-wrap: nowrap; }
.d-cust { color: var(--primary-color); }
.d-actions .p-button { height: 36px; }
.empty-pane { display: grid; place-items: center; color: var(--text-color-secondary); }
.empty-pane > div { display: grid; justify-items: center; gap: 8px; }
.empty-pane .pi { font-size: 32px; }
.sum-2 { gap: 14px; }
.ov-menu a:first-child { background: none; }
.ov-menu a:hover { background: var(--surface-hover); }
.line { cursor: default; }
.line-name { cursor: pointer; }
.line.fresh { background: color-mix(in srgb, var(--green-500) 10%, transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.lf { cursor: zoom-in; }
.lf.add { cursor: pointer; }
.ms { cursor: zoom-in; }
.gallery .g-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery .link input, .upl input { display: none; }
.upl { cursor: pointer; }
.g-tile .art.img, .mg-big .art.img { aspect-ratio: 4 / 3; }

/* WhatsApp sayfası panelin içinde */
.wa-host { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--surface-border); }
.wa-host .wa-app { border: 0; }
.wa-pane .wa-screen { position: absolute; inset: 0; }
.wa-listscroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.wa-lsearch { cursor: text; }
.wa-lsearch-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--wa-text); font: inherit; outline: none; }
.wa-row { cursor: pointer; }
.wa-row:hover { background: var(--wa-hover); }
.wa-chips span { cursor: pointer; }
.wa-empty { padding: 24px; text-align: center; color: var(--wa-text-2); font-size: 14px; }
.wa-blank { display: grid; place-items: center; background: var(--wa-head); }
.wa-blank > div { display: grid; justify-items: center; gap: 6px; color: var(--wa-text-2); }
.wa-blank .pi { font-size: 46px; color: var(--wa-green); }
.wa-blank b { font-size: 22px; font-weight: 400; color: var(--wa-text); }
.wa-who { cursor: pointer; border-radius: 8px; }
.wa-who:hover { background: color-mix(in srgb, var(--wa-text) 5%, transparent); }
.wa-pinchip { cursor: pointer; }
.sel-head { background: var(--wa-chip-on); }

/* Sohbet kayar, en alta yaslı */
.wa-thread { overflow-y: auto; justify-content: flex-start; scrollbar-width: thin; padding: 8px 5% 10px; }
.wa-thread > :first-child { margin-top: auto; }
.shell.phone .wa-thread { padding: 8px 10px 10px; }
.wa-bubble { max-width: min(78%, 520px); }
.wa-imgart, .wa-docprev { cursor: zoom-in; }
.wa-imgart .art.img { aspect-ratio: auto; max-height: 320px; }
.wa-imgart .art.img img { width: 100%; height: auto; max-height: 320px; object-fit: cover; display: block; }
.wa-docicon[data-kind="AI"], .wa-docicon[data-kind="EPS"] { background: var(--orange-500); }
.wa-docicon[data-kind="CDR"] { background: var(--green-600); }
.wa-docicon[data-kind="SVG"], .wa-docicon[data-kind="FILE"] { background: var(--bluegray-500); }
.wa-docprev .art.file { aspect-ratio: 2 / 1; border-radius: 6px 6px 0 0; }
.wa-chev { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--gray-900) 45%, transparent); color: var(--gray-50) !important; display: grid; place-items: center; opacity: 0; transition: opacity .12s; cursor: pointer; z-index: 2; }
.wa-chev .pi { font-size: 11px; }
.wa-bubble:hover .wa-chev, .wa-chev:focus { opacity: 1; }
.shell.phone .wa-chev { opacity: .85; }
.wa-msgmenu { position: absolute; top: 34px; right: 4px; z-index: 6; min-width: 180px; background: var(--wa-sheet); border-radius: 10px; box-shadow: 0 6px 24px var(--wa-shadow), 0 0 0 1px var(--wa-divider); padding: 6px 0; }
.wa-msg[data-dir="in"] .wa-msgmenu { right: auto; left: 100%; margin-left: 6px; top: 4px; }
.shell.phone .wa-msg[data-dir="in"] .wa-msgmenu { left: auto; right: 4px; top: 34px; margin: 0; }
.wa-msgmenu a { display: flex; gap: 10px; align-items: center; padding: 9px 14px; font-size: 14px; color: var(--wa-text); }
.wa-msgmenu a:hover { background: var(--wa-hover); }
.wa-msgmenu .pi { font-size: 13px; color: var(--wa-text-2); }
.wa-msg[data-sel] { cursor: pointer; }
.wa-msg[data-sel] { z-index: 0; }
.wa-selmark.off { opacity: 0; }
.wa-tag { cursor: pointer; }
.wa-dropcover { position: absolute; inset: 0; z-index: 30; display: none; place-content: center; justify-items: center; gap: 8px; background: color-mix(in srgb, var(--wa-head) 88%, transparent); border: 3px dashed var(--wa-accent); color: var(--wa-text); font-size: 18px; pointer-events: none; }
.wa-dropcover .pi { font-size: 34px; color: var(--wa-accent); }
.wa-screen.drag > .wa-dropcover { display: grid; }

/* Yazma alanı */
.wa-msgbox { border: 0; outline: none; resize: none; background: transparent; color: var(--wa-text); font: inherit; font-size: 15px; max-height: 140px; overflow-y: auto; }
.wa-msgbox::placeholder { color: var(--wa-text-2); }
.wa-clip { cursor: pointer; }
.wa-send { cursor: pointer; }
.wa-traywrap { border-bottom: 1px solid var(--wa-divider); position: relative; }
.wa-tray { flex-wrap: wrap; padding: 10px 12px 2px; gap: 8px; }
.wa-trayfile { position: relative; width: 64px; height: 64px; display: block; }
.wa-trayfile .art { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 8px; font-size: 0; box-shadow: 0 0 0 2px var(--wa-green); }
.wa-trayfile .art.img img, .art.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-trayfile .art.file .pi { font-size: 16px; }
.wa-trayfile .art.file b { font-size: 10px; }
.wa-trayfile .art.file small, .wa-trayfile .art > small, .wa-trayfile .art > b { display: none; }
.wa-trayfile .art.file > b { display: block; }
.wa-trayfile .art.page .sheet b { display: none; }
.wa-trayadd { width: 64px; height: 64px; border-radius: 8px; border: 1.5px dashed var(--wa-text-2); display: grid; place-items: center; color: var(--wa-text-2); cursor: pointer; }
.wa-trayline { position: relative; }
.wa-traycheck { cursor: pointer; user-select: none; }
.wa-job { cursor: text; color: var(--wa-text); font: inherit; outline: none; }
.desk .wa-job { flex: 0 1 220px; }
.desk .brk { display: none; }
.wa-job::placeholder, .wa-num input::placeholder { color: var(--wa-text-2); }
.wa-job:focus, .wa-num:focus-within { border-color: var(--wa-accent); box-shadow: 0 0 0 1px var(--wa-accent); }
.wa-job.err { border-color: var(--wa-danger); box-shadow: 0 0 0 1px var(--wa-danger); }
.wa-job:disabled, .wa-num input:disabled, .wa-num select:disabled { opacity: .5; }
.wa-num input { width: 4.6ch; border: 0; background: transparent; color: var(--wa-text); font: inherit; font-weight: 600; outline: none; text-align: right; padding: 0; }
.wa-num.total input { width: 8ch; }
.wa-num.sel select { border: 0; background: transparent; color: var(--wa-text); font: inherit; outline: none; }
.wa-select.ord { flex: 0 0 auto; }
.wa-menu { max-height: 320px; overflow-y: auto; }
.wa-menuitem { cursor: pointer; }
.wa-menuitem:hover { background: var(--wa-hover); }
.wa-green-btn[disabled] { opacity: .5; cursor: default; }

/* ───── Panel modülü ───── */
.wa-pane.drawer .wa-screen.mod, .page-drawer .wa-screen.mod { position: absolute; inset: 0; }
.mod-body { overflow-y: auto; padding-bottom: 8px; }
.mod-head .wa-ib.sm { margin-right: 2px; }
.mfoot { background: var(--wa-bg); border-top: 1px solid var(--wa-divider); padding: 10px 14px 12px; flex-shrink: 0; }
.mfoot .desk-help { text-align: center; }
.wa-card.mcard .wa-acts { margin-top: 2px; }
.wa-acts span, .wa-acts-label { cursor: pointer; }
.wa-acts-label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--surface-border); background: var(--wa-bg); color: var(--wa-accent); border-radius: 999px; padding: 5px 11px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.wa-acts-label .pi { font-size: 12px; }
.wa-balance b.debt { color: var(--wa-text); }
.wa-balbtn { cursor: pointer; }
.wa-heroacts span { cursor: pointer; }
.wa-passive { border-radius: 0; }
.wa-passive .pi { color: var(--orange-500); }
.wa-rowbtn { border: 1px solid var(--surface-border); background: var(--wa-bg); color: var(--wa-accent) !important; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.mdanger .desk-link { cursor: pointer; }
.mlink-row .desk-link { cursor: pointer; }
.mkv-edit { cursor: pointer; border-radius: 6px; }
.mkv-edit:hover { background: var(--wa-hover); }
.mkv-input { display: flex; gap: 6px; align-items: center; }
.mkv-input .box { height: 36px; flex: 1; min-width: 0; }
.mnotice h4 .pi { margin-right: 6px; }
.wa-warn b { font-weight: 600; }
.wa-warn .pi-ban { color: var(--red-500); }
.ln:hover { background: color-mix(in srgb, var(--wa-text) 3%, transparent); }
.ln-add { align-self: flex-start; }
.mg-tile { cursor: zoom-in; }
.mg-tile .art.img, .ln-mini .art.img, .fl-pickitem .art.img { aspect-ratio: 4 / 3; }
.ln-mini .art.img { aspect-ratio: auto; }
.mg-group h4 { gap: 6px; }
.mg-add { margin-left: auto; color: var(--wa-accent); font-size: 13px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.mg-add .pi { font-size: 11px; }
.mg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mg-big { margin: 0; display: grid; gap: 3px; cursor: zoom-in; min-width: 0; }
.mg-big .art { border-radius: 8px; font-size: 14px; }
.mg-big .art.file .pi { font-size: 24px; }
.mg-big figcaption { display: grid; font-size: 12px; min-width: 0; }
.mg-big figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wa-text); }
.mg-big figcaption small { color: var(--wa-text-2); font-size: 11px; }
.msg-row .ch { background: var(--wa-chip); }
.hist { grid-template-columns: 82px 1fr auto; }

/* Form alanları */
.wa-field input.box, .wa-field textarea.box { font: inherit; font-size: 15px; font-weight: 500; color: var(--wa-text); outline: none; width: 100%; box-sizing: border-box; }
.wa-field textarea.box.area { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.35; }
.wa-field .box:focus, .wa-field .box:focus-within { border-color: var(--wa-accent); box-shadow: 0 0 0 1px var(--wa-accent); }
.wa-field .box.err { border-color: var(--wa-danger); box-shadow: 0 0 0 1px var(--wa-danger); }
.box.money { gap: 6px; }
.box.money input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--wa-text); font: inherit; font-weight: 600; outline: none; text-align: right; padding: 0; }
.box.money.big input { font-size: 20px; }
.box.money small { flex-shrink: 0; }
.sel-box { position: relative; padding: 0 !important; }
.sel-box select { appearance: none; -webkit-appearance: none; width: 100%; height: 100%; border: 0; background: transparent; color: var(--wa-text); font: inherit; font-size: 15px; font-weight: 500; padding: 0 34px 0 12px; outline: none; cursor: pointer; }
.sel-box > .pi { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--wa-text-2); pointer-events: none; }
.wa-stepper .step-input { width: 54px; border: 0; background: transparent; color: var(--wa-text); text-align: center; font: inherit; font-size: 16px; font-weight: 700; outline: none; }
.mfield-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wa-seg.wide { display: flex; width: 100%; }
.wa-seg.wide button { flex: 1; }
.wa-traycheck.keep { font-size: 13.5px; color: var(--wa-text); }
.fl-drop.drag, .fl-drop[data-state="drag"] { border-color: var(--wa-accent); border-style: solid; background: color-mix(in srgb, var(--wa-accent) 10%, transparent); color: var(--wa-text); }
.fl-btn input { display: none; }
.fl-art { cursor: zoom-in; display: block; }
.fl-art .art.img { aspect-ratio: 4 / 3; }
.fl-x { cursor: pointer; }
.fl-pickitem { cursor: pointer; }
.fl-pickitem[data-already="true"] { opacity: .45; cursor: default; }
.fl-pickitem .art.img { aspect-ratio: 4 / 3; }
.fl-pickrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art.page.has-thumb { padding: 6% 16% 0; }
.art.page.has-thumb .sheet { padding: 0; overflow: hidden; }
.art.page.has-thumb .sheet img { width: 100%; height: auto; display: block; }

/* ───── Çekmece, pencere, firma seçici ───── */
.ov-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 1040; }
.page-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 1050; background: var(--surface-ground); box-shadow: -10px 0 28px rgba(0, 0, 0, .18); }
.page-drawer .wa-screen.mod { background: var(--surface-ground); }
.page-drawer.as-sheet { top: 14px; left: 0; width: auto; border-radius: 16px 16px 0 0; overflow: hidden; }
.page-drawer.as-sheet > .wa-grip { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.page-drawer.as-sheet .wa-screen.mod { top: 0; }
.dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow-y: auto; z-index: 1060; background: var(--surface-overlay, var(--surface-card)); border-radius: 12px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.dlg h3 { margin: 0; font-size: 18px; font-weight: 600; }
.dlg p { margin: 0; color: var(--text-color-secondary); font-size: 14px; line-height: 1.45; }
.dlg p b { color: var(--text-color); }
.dlg .wa-radio { cursor: pointer; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips .wa-traychip { height: 34px; font-size: 13.5px; }
.tl-file { display: flex; gap: 10px; align-items: center; }
.tl-thumb { width: 64px; flex-shrink: 0; display: block; }
.tl-thumb .art { font-size: 0; }
.tl-thumb .art.img { aspect-ratio: 4 / 3; }
.tl-file > span:last-child { display: grid; min-width: 0; }
.tl-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-file small { color: var(--text-color-secondary); }
.tl-opts { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.tl-new { display: grid; gap: 8px; }
.inv-dialog { width: min(860px, calc(100vw - 32px)); padding: 0; gap: 0; display: flex; flex-direction: column; }
.inv-dhead { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--surface-border); }
.inv-dhead .grow { display: grid; }
.inv-dhead b { font-size: 17px; }
.inv-dhead small { color: var(--text-color-secondary); }
.inv-dbody { padding: 16px 18px; overflow: auto; }
.inv-foot { padding: 12px 18px; border-top: 1px solid var(--surface-border); }
.inv-dialog .inv { min-width: 0 !important; background: var(--surface-0); color: var(--surface-900); border: 1px solid var(--surface-300); border-radius: 6px; padding: 14px; font-size: 12px; }
.layout-dark .inv-dialog .inv { background: var(--surface-900); color: var(--surface-0); border-color: var(--surface-600); }
.inv-dialog .inv table { width: 100%; border-collapse: collapse; }
.inv-dialog .inv .inv-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.inv-dialog .inv .inv-head b { font-size: 14px; display: block; }
.inv-dialog .inv .inv-badge { border: 1px solid currentColor; border-radius: 4px; padding: 4px 8px; text-align: center; font-weight: 700; height: fit-content; }
.inv-dialog .inv th, .inv-dialog .inv td { border: 1px solid var(--surface-300); padding: 5px 6px; text-align: left; vertical-align: top; color: inherit; font-weight: 400; }
.layout-dark .inv-dialog .inv th, .layout-dark .inv-dialog .inv td { border-color: var(--surface-600); }
.inv-dialog .inv th { background: var(--surface-100); font-weight: 700; font-size: 11px; }
.layout-dark .inv-dialog .inv th { background: var(--surface-800); }
.inv-dialog .inv td.num, .inv-dialog .inv th.num { text-align: right; white-space: nowrap; }
.inv-dialog .inv .name { font-weight: 700; display: block; }
.inv-dialog .inv .desc { font-size: 11px; opacity: .75; display: block; }
.inv-dialog .inv .totals { margin-left: auto; margin-top: 8px; width: 60%; }
.inv-dialog .inv .totals td { border: 0; padding: 2px 6px; }
.inv-dialog .inv .totals tr:last-child td { font-weight: 700; border-top: 1px solid currentColor; }
.sheet-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 95vw; max-width: 600px; max-height: 85vh; z-index: 1060; background: var(--surface-card); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.sw-body { overflow-y: auto; }
.sw-item:hover { background: var(--surface-hover); }
.sw-tags { transform: scale(.9); transform-origin: right; }
.sheet-grip { width: 38px; height: 4px; border-radius: 999px; background: var(--surface-300); margin: 8px auto 0; flex-shrink: 0; }

/* Işık kutusu tam pencere */
.lightbox { position: fixed; z-index: 2000; border-radius: 0; }
.lb-stage { overflow: hidden; }
.lb-zoomer { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transform: scale(var(--z, 1)); transition: transform .15s; }
.lb-stage.is-page .lb-zoomer { height: calc(100% - 50px); }
.lb-stage .art.big.img { background: none; width: 100%; height: 100%; }
.lb-stage .art.big.img img { object-fit: contain; width: 100%; height: 100%; }
.lb-stage.is-page .art.page { height: 100%; }
.lb-stage .art.page.has-thumb { background: none; padding: 0; }
.lb-thumb { cursor: pointer; }
.lb-film { overflow-x: auto; justify-content: flex-start; }
.lb-film > :first-child { margin-left: auto; }
.lb-film > :last-child { margin-right: auto; }
.lb-thumb { flex-shrink: 0; }
.lb-thumb .art.img img { object-fit: cover; }

/* Bildirim */
.app-toast { position: fixed; left: 50%; transform: translateX(-50%); width: max-content; bottom: 22px; z-index: 2100; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 24px)); background: var(--surface-900); color: var(--surface-0); border-radius: 10px; padding: 11px 12px 11px 14px; font-size: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }
.layout-dark .app-toast { background: var(--surface-0); color: var(--surface-900); }
.app-toast > .pi { color: var(--green-400); }
.layout-dark .app-toast > .pi { color: var(--green-600); }
.app-toast > span:nth-child(2) { flex: 1; }
.app-toast .toast-act { color: var(--primary-300); text-decoration: none; white-space: nowrap; cursor: pointer; }
.layout-dark .app-toast .toast-act { color: var(--primary-600); }
.toast-x { opacity: .6; cursor: pointer; padding: 2px; }
.toast-x .pi { font-size: 11px; }

/* Müşteriler, ana ekran, gün sonu */
.cust-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.cust-row:hover { background: var(--surface-hover); }
.cust-row.selected { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 10%, transparent); }
.cust-row.passive { opacity: .6; }
.cust-row .wa-avatar { --wa-hue-0: #f8bbd0; --wa-hue-0-ink: #880e4f; --wa-hue-1: #c8e6c9; --wa-hue-1-ink: #1b5e20; --wa-hue-2: #bbdefb; --wa-hue-2-ink: #0d47a1; --wa-hue-3: #ffe0b2; --wa-hue-3-ink: #b34700; --wa-avatar: var(--surface-200); --wa-avatar-ink: var(--text-color); }
.cust-main { flex: 1; min-width: 0; display: grid; }
.cust-main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-main small { color: var(--text-color-secondary); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-bal { display: grid; justify-items: end; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cust-bal small { font-weight: 400; color: var(--text-color-secondary); font-size: 11.5px; }
.cust-bal.debt { color: var(--red-500); }
.cust-detail .d-scroll { background: var(--surface-ground); }
.cust-detail .d-scroll.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; gap: 0 12px; align-content: start; }
.cust-grid > section, .cust-grid > div { break-inside: avoid; }
.cust-grid .wa-avatar { --wa-hue-0: #f8bbd0; --wa-hue-0-ink: #880e4f; --wa-hue-1: #c8e6c9; --wa-hue-1-ink: #1b5e20; --wa-hue-2: #bbdefb; --wa-hue-2-ink: #0d47a1; --wa-hue-3: #ffe0b2; --wa-hue-3-ink: #b34700; }
.home { display: grid; gap: 14px; max-width: 1100px; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.home-stat { display: flex; gap: 12px; align-items: center; padding: 16px; margin: 0; border-radius: 12px; }
.home-stat > span:last-child { display: grid; }
.home-stat small { color: var(--text-color-secondary); font-size: 13px; }
.home-stat b { font-size: 20px; }
.hs-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.hs-icon .pi { font-size: 18px; }
.home-list { margin: 0; padding: 14px; border-radius: 12px; display: grid; gap: 10px; }
.home-list .w-full.mb-2 { cursor: pointer; }
.stmt-wrap { overflow-x: auto; }
.stmt-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stmt-t th { text-align: left; font-size: 11.5px; color: var(--wa-text-2); font-weight: 600; padding: 4px; border-bottom: 1px solid var(--wa-divider); }
.stmt-t td { padding: 5px 4px; border-bottom: 1px solid var(--wa-divider); vertical-align: top; }
.stmt-t .num { text-align: right; white-space: nowrap; }

/* ───── Telefon (< 992) ───── */
.shell.phone { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.ph-top { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 0 6px; background: var(--surface-card); border-bottom: 1px solid var(--surface-border); }
.ph-top b { font-size: 17px; font-weight: 600; margin-left: 4px; }
.ph-ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text-color); border-radius: 50%; }
.ph-ib .pi { font-size: 18px; }
.ph-content { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 60px; position: relative; }
.ph-content.wa-host { border: 0; border-radius: 0; overflow: hidden; padding-bottom: 0; margin-bottom: 57px; }
.ph-pad { padding: 10px 10px 72px; }
.ph-pad .fs-tabs { margin-bottom: 8px; }
.ph-pad .list-pane { padding: 10px; }
.ph-pad .list-pane .list-scroll { overflow: visible; }
.ph-pad .card-no { width: 6.4rem; }
.ph-side { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-width: 86vw; z-index: 1050; background: var(--surface-card); display: flex; flex-direction: column; box-shadow: 8px 0 24px rgba(0, 0, 0, .2); }
.phone-thread { position: fixed; inset: 0; z-index: 1010; background: var(--wa-bg); }
.phone-thread .wa-screen { position: absolute; inset: 0; }
.phone-thread .wa-sheet.msheet { top: 14px; }
.phone-thread .wa-sheet .wa-screen.mod { position: absolute; inset: 0; border-radius: 16px 16px 0 0; overflow: hidden; }
.phone-page { position: fixed; inset: 0; z-index: 1010; background: var(--surface-ground); display: flex; flex-direction: column; }
.phone-page > .detail-pane { flex: 1; border-radius: 0; margin: 0; min-height: 0; padding: 0; }
.phone-page .d-head { padding: 8px 12px 10px; }
.phone-page .d-title .p-button-icon-only { margin: 0 0 0 -8px; }
.phone-page .d-sub { flex-wrap: wrap; gap: 2px 10px; }
.phone-page .d-sum { white-space: normal; }
.phone-page .d-actions .p-button { height: 38px; }
.phone-page .d-tabs .p-tabview-nav { overflow-x: auto; scrollbar-width: none; }
.phone-page .d-scroll { padding: 12px; }
.phone-page .sum-2 { grid-template-columns: 1fr; }
.phone-page .cust-detail .d-scroll.cust-grid { grid-template-columns: minmax(0, 1fr); }
.shell.phone .wa-bubble { max-width: 84%; }
.shell.phone .wa-imgart { width: 220px; }
.shell.phone .wa-menu { left: 8px; right: 8px; width: auto; }
.shell.phone .wa-trayline { padding: 6px 10px; }
.shell.phone .wa-job { flex: 1 1 100%; }
@media (max-width: 991px) {
    .app-toast { bottom: 76px; left: 10px; right: 10px; transform: none; width: auto; max-width: none; pointer-events: none; }
    .app-toast .toast-act, .app-toast .toast-x { pointer-events: auto; }
    .dlg { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .inv-dialog { width: auto; }
    .sheet-dialog { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-width: none; max-height: 95vh; border-radius: 16px 16px 0 0; }
    .lightbox figure { padding: 10px 8px; }
    .lb-nav[data-side="previous"] { left: 6px; }
    .lb-nav[data-side="next"] { right: 6px; }
    .lightbox header { flex-wrap: nowrap; padding: 6px; gap: 2px; }
    .lb-title b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lb-title small { font-size: 11.5px; }
    .lb-zoom { display: none; }
    .lb-stage { aspect-ratio: auto; width: 100%; }
}
.menu-badge { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--green-500); color: var(--gray-50); font-weight: 700; }
.mfield-row2 > .wa-field, .mfield-row3 > .wa-field { min-width: 0; }
.box.money input { width: 0; }
.phone-page .g-ghead { flex-wrap: wrap; gap: 2px 10px; }
.phone-page .g-ghead small { order: 3; flex-basis: 100%; }
.phone-page .gallery .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phone-page .d-actions { gap: 6px; }
.home, .home > * { min-width: 0; }
.home-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.home-list { overflow: hidden; }
@media (max-width: 991px) {
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-stat { padding: 12px; gap: 10px; }
    .home-stat b { font-size: 16px; }
    .hs-icon { width: 36px; height: 36px; border-radius: 10px; }
    .home-list table.dense { font-size: 12.5px; }
}
.home, .home-list { grid-template-columns: minmax(0, 1fr); }
.home-list > * { min-width: 0; }
.list-scroll .order-card .text-sm > .flex:nth-last-child(2) > div:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-field > .wa-stepper { justify-self: start; }

/* Prototip bandı: sayfadaki her şeyin taslak olduğunu söyler; bütün sabit katmanlar bandın altından başlar. */
:root { --proto-h: 34px; }
@media (max-width: 767px) { :root { --proto-h: 46px; } }
.proto-band { position: fixed; top: 0; left: 0; right: 0; height: var(--proto-h); z-index: 3000; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; background: #b45309; color: #fff; font-size: 13px; line-height: 1.25; text-align: center; font-weight: 500; }
.proto-band b { font-weight: 700; }
body { padding-top: var(--proto-h); }
.shell.desk { height: calc(100vh - var(--proto-h)); }
.shell.phone { height: calc(100vh - var(--proto-h)); height: calc(100dvh - var(--proto-h)); }
.ov-scrim, .phone-thread, .phone-page { top: var(--proto-h); }
.page-drawer, .ph-side { top: var(--proto-h); }
.lightbox { top: var(--proto-h) !important; }
@media (max-width: 767px) { .proto-band .pb-long { display: none; } }
