/* delivery#534 · birleşik kurgu · WhatsApp ekranının yeni öğeleri. Her renk tema ya da --wa-* değişkeninden gelir. */

/* Ekran sayfası iframe'in tamamını kaplar. */
html, body.frame-page { height: 100%; overflow: hidden; }
body.frame-page #root { height: 100%; }
body.frame-page .wide-frame { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; position: relative; }
.device-full { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface-ground); }
.mod-body { overflow-y: auto; scrollbar-width: thin; }
.wa-pane.drawer .wa-screen.mod { position: absolute; inset: 0; }

/* Yeni parça işareti: turuncu kesikli çizgi, rehberdeki anahtarla açılır. */
.mark-new .is-new { outline: 2px dashed color-mix(in srgb, var(--orange-400) 80%, transparent); outline-offset: 2px; }

/* ───── Sohbet: görsel taslağı, PDF belge balonu, teklif kartı ───── */
.wa-imgart { width: 240px; max-width: 100%; }
.wa-imgart .art { border-radius: 6px; font-size: 17px; }
.wa-imgart .art small { font-size: 11px; }
.wa-docprev { width: 260px; max-width: 100%; }
.wa-docprev .art { aspect-ratio: 16 / 9; border-radius: 6px 6px 0 0; font-size: 13px; }
.wa-docprev .art.page { padding: 6% 22% 0; }
.wa-docrow { display: flex; gap: 8px; align-items: center; padding: 8px 8px 16px; width: 260px; max-width: 100%; background: color-mix(in srgb, var(--wa-text) 5%, transparent); border-radius: 0 0 6px 6px; }
.wa-docicon { flex-shrink: 0; width: 30px; height: 36px; border-radius: 4px; background: var(--red-500); color: var(--gray-50); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.wa-docname { display: grid; min-width: 0; }
.wa-docname b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-docname small { font-size: 12px; color: var(--wa-text-2); }
.wa-cardimg { width: 300px; max-width: 100%; }
.wa-cardimg .quote-img { border-radius: 6px; font-size: 12px; padding: 10px; }

/* Teklif kartı görseli (delivery-534-kalem/mock.css quote-img, kopya) */
.quote-img { background: var(--surface-0); color: var(--surface-900); border-radius: 10px; padding: 14px; border: 1px solid var(--surface-200); font-size: 13px; }
.layout-dark .quote-img { background: var(--surface-900); color: var(--surface-0); border-color: var(--surface-700); }
.quote-img header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--primary-color); padding-bottom: 6px; margin-bottom: 8px; }
.quote-img header b { font-size: 14px; }
.quote-img header span { font-size: 11px; opacity: .75; white-space: nowrap; }
.quote-img table { width: 100%; border-collapse: collapse; }
.quote-img td { padding: 5px 0; vertical-align: top; border-bottom: 1px solid var(--surface-200); }
.layout-dark .quote-img td { border-color: var(--surface-700); }
.quote-img td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.quote-img small { display: block; opacity: .7; font-size: 11px; }
.quote-img .qsum { display: flex; justify-content: space-between; font-size: 12px; margin-top: 4px; opacity: .85; }
.quote-img .tot { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-top: 6px; }

/* Seçim modu: gelen mesajın solunda işaret, seçili satır yeşilimsi. */
.wa-msg[data-sel] { padding-left: 34px; }
.wa-msg[data-sel="true"]::before { content: ''; position: absolute; inset: -2px -10px; background: color-mix(in srgb, var(--wa-green) 12%, transparent); z-index: -1; }
.wa-selmark { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--wa-text-2); display: grid; place-items: center; background: var(--wa-bg); }
.wa-selmark[data-on="true"] { background: var(--wa-green); border-color: var(--wa-green); color: var(--wa-on-green); }
.wa-selmark .pi { font-size: 11px; }
.wa-selbar { background: var(--wa-head); border-top: 1px solid var(--wa-divider); }
.wa-selfoot { display: flex; align-items: center; gap: 8px; padding: 4px 10px 10px 4px; }
.wa-selfoot .grow { flex: 1; display: grid; min-width: 0; }
.wa-selfoot b { font-weight: 600; font-size: 14.5px; }
.wa-selfoot small { font-size: 12px; color: var(--wa-text-2); }
.wa-select.ord { flex: 0 0 auto; font-weight: 600; gap: 6px; cursor: pointer; }
.wa-select.ord[data-open="true"] { box-shadow: 0 0 0 2px var(--wa-accent); }
.wide-frame .wa-job { flex: 0 1 230px; }
.wa-menu { position: absolute; left: 12px; bottom: calc(100% - 4px); width: 340px; 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; z-index: 5; }
.wa-menuhead { font-size: 12.5px; color: var(--wa-text-2); padding: 4px 14px 6px; }
.wa-menuitem { display: flex; gap: 10px; align-items: center; padding: 8px 14px; font-size: 14px; }
.wa-menuitem[data-on="true"] { background: var(--wa-selected); }
.wa-menuitem > b { background: var(--wa-chip); border-radius: 6px; padding: 3px 7px; font-weight: 600; flex-shrink: 0; }
.wa-menuitem > span { flex: 1; display: grid; min-width: 0; }
.wa-menuitem small { color: var(--wa-text-2); font-size: 12px; display: flex; gap: 5px; align-items: center; }
.wa-menuitem > .pi { color: var(--wa-accent); }
.wa-menuitem.add { color: var(--wa-accent); border-top: 1px solid var(--wa-divider); }
.wa-tag[data-go] { cursor: pointer; }

/* ───── Panel ───── */
.mcount { font-size: 11.5px; font-weight: 600; color: var(--wa-text-2); background: var(--wa-chip); border-radius: 999px; padding: 0 7px; margin-left: 6px; }
.mcard h4 { gap: 0; }
.msmall { font-size: 12.5px; color: var(--wa-text-2); margin-top: -4px; }
.vat-note { font-style: normal; font-size: 11px; color: var(--wa-text-2); font-weight: 400; }
.ln.ln-rich { align-items: flex-start; padding: 8px 0; }
.ln.ln-rich > .pi { margin-top: 4px; }
.ln-strip { display: flex; gap: 4px; margin-top: 5px; }
.ln-mini { width: 40px; height: 30px; display: block; }
.ln-mini .art { width: 40px; height: 30px; aspect-ratio: auto; border-radius: 4px; font-size: 0; }
.ln-mini .art .ftag { font-size: 7px; padding: 0 2px; right: 2px; bottom: 2px; }
.ln-mini .art.file .pi { font-size: 11px; }
.ln-mini .art.file b { font-size: 8px; }
.ln-mini .art.file small { display: none; }
.ln-mini .art.page { padding: 3px 8px 0; }
.ln-mini .art.page .sheet { padding: 3px; gap: 2px; }
.ln-mini .art.page .sheet i { height: 1.5px; }
.ln-mini .art.page .sheet b { display: none; }
.ln-mini.more { border: 1px dashed var(--wa-text-2); border-radius: 4px; display: grid; place-items: center; font-size: 11px; color: var(--wa-text-2); }
.ln-total { display: grid; justify-items: end; gap: 2px; }
.ln-new-tag { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--wa-on-green); background: var(--wa-green); border-radius: 999px; padding: 0 6px; }
.ln[data-fresh="true"] { background: color-mix(in srgb, var(--wa-green) 10%, transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.ln[data-ghost="true"] { margin-top: 4px; }
.mgroup { display: grid; gap: 4px; }
.mgroup small { color: var(--wa-text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-tile { width: 64px; display: block; }
.mg-tile .art { aspect-ratio: 4 / 3; border-radius: 6px; font-size: 0; }
.mg-tile .art .ftag { font-size: 8px; }
.mg-tile .art.file b { font-size: 10px; }
.mg-tile .art.file small { display: none; }
.mg-tile .art.file .pi { font-size: 14px; }
.mg-tile .art.page .sheet b { display: none; }
.mg-tile .art.page .sheet { gap: 3px; padding: 5px; }
.mtoast { position: absolute; left: 10px; right: 10px; bottom: 14px; top: auto; font-size: 13px; line-height: 1.35; align-items: flex-start; box-shadow: 0 6px 20px var(--wa-shadow); }
.mtoast .pi { margin-top: 2px; }
.mtoast > span { flex: 1; }
.toast-act { text-decoration: underline; white-space: nowrap; cursor: pointer; }
.mnotice { box-shadow: inset 3px 0 0 var(--orange-500); }
.mnotice h4 { color: var(--wa-text); font-weight: 600; gap: 6px; }
.mnotice h4 .pi { color: var(--orange-500); margin-right: 6px; }

/* ───── Kalem formu ───── */
.prod-row { display: flex; align-items: center; gap: 8px; }
.prod-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--wa-chip); color: var(--wa-text); font-size: 14px; font-weight: 500; }
.prod-chip .pi { font-size: 12px; color: var(--wa-text-2); }
.prod-row small { color: var(--wa-text-2); }
.mfield-row2 { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.wa-stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--wa-text-2) 45%, transparent); background: var(--wa-input); overflow: hidden; }
.wa-stepper button { width: 34px; height: 100%; border: 0; background: var(--wa-chip); color: var(--wa-text) !important; font-size: 18px; cursor: pointer; }
.wa-stepper b { min-width: 38px; text-align: center; font-size: 16px; color: var(--wa-text); }
.wa-field .wa-seg { align-self: start; }
.wa-field .wa-seg button { padding: 0 12px; height: 32px; }

/* Formun içindeki dosya alanı */
.fl-card { position: relative; }
.fl-card h4 a { font-weight: 500; }
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fl-tile { position: relative; display: grid; gap: 1px; min-width: 0; }
.fl-art .art { border-radius: 6px; font-size: 11px; }
.fl-art .art small { font-size: 8px; }
.fl-art .art.page .sheet b { font-size: 7px; }
.fl-art .art.file .pi { font-size: 16px; }
.fl-art .art.file small { display: none; }
.fl-name { font-size: 11.5px; color: var(--wa-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-meta { font-size: 10.5px; color: var(--wa-text-2); }
.fl-x { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--gray-900) 65%, transparent); color: var(--gray-50); display: grid; place-items: center; }
.fl-x .pi { font-size: 9px; }
.fl-drop { border: 1.5px dashed color-mix(in srgb, var(--wa-text-2) 60%, transparent); border-radius: 10px; padding: 10px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--wa-text-2); }
.fl-drop > .pi { font-size: 20px; color: var(--wa-accent); }
.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-drop b { color: var(--wa-text); }
.fl-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fl-btn { height: 32px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--wa-bg); color: var(--wa-accent) !important; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
.fl-btn .pi { font-size: 12px; }
.fl-btn[data-on="true"] { background: var(--wa-chip-on); border-color: transparent; color: var(--wa-chip-on-text) !important; }
.fl-pick { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: var(--wa-head); }
.fl-pick small { color: var(--wa-text-2); font-size: 12px; }
.fl-pickrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.fl-pickitem { position: relative; display: block; }
.fl-pickitem .art { font-size: 0; border-radius: 5px; }
.fl-pickitem .art .ftag { font-size: 7px; }
.fl-pickitem .art.page .sheet b { display: none; }
.fl-pickitem .wa-selmark { left: auto; right: 3px; top: 3px; transform: none; width: 16px; height: 16px; }
.fl-pickitem em { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 8.5px; font-weight: 700; background: color-mix(in srgb, var(--gray-900) 70%, transparent); color: var(--gray-50); border-radius: 3px; padding: 0 3px; }
.fl-pickitem[data-on="true"] .art { box-shadow: 0 0 0 2px var(--wa-green); }
.fl-ghost { position: absolute; right: 26px; bottom: 74px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--wa-sheet); box-shadow: 0 8px 22px var(--wa-shadow); font-size: 13px; transform: rotate(-3deg); z-index: 3; }
.fl-ghost .pi-file-pdf { color: var(--red-500); }
.fl-cursor { position: absolute; right: -14px; bottom: -16px; font-size: 18px; color: var(--wa-text); }

/* Telefon: alt sayfa sekmeleri */
.ph-tabs { padding: 0 4px; gap: 0; }
.ph-tabs button { flex: 1; padding: 11px 4px; }
.ph-tabs .mcount { margin-left: 2px; }
.wa-sheet.msheet .mod-body { overflow-y: auto; }

/* Eski siparişte bir kerelik soru */
.lines-empty { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px dashed var(--wa-text-2); border-radius: 8px; font-size: 13px; }
.lines-empty > span { display: grid; gap: 2px; }
.lines-empty small { color: var(--wa-text-2); }
.wa-dlg-scrim { position: absolute; inset: 0; background: var(--wa-scrim); z-index: 40; }
.wa-dlg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 460px; background: var(--wa-sheet); border-radius: 12px; padding: 18px; z-index: 41; display: grid; gap: 10px; box-shadow: 0 10px 40px var(--wa-shadow); }
.wa-dlg h3 { margin: 0; font-size: 18px; font-weight: 600; }
.wa-dlg p { margin: 0; color: var(--wa-text-2); font-size: 14px; }
.wa-dlg .wa-radio .wa-box { margin-top: 2px; }
.wa-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; }
.surface .p-button:not(.p-button-outlined):not(.p-button-text) { color: var(--primary-color-text); }
.wa-imgart { width: 200px; }
.wa-docprev, .wa-docrow { width: 230px; }
.wa-docprev .art { aspect-ratio: 2 / 1; }
.wide-frame .wa-job { flex: 0 1 200px; }
.ln-mini .art > b, .ln-mini .art > small, .mg-tile .art:not(.file) > b, .mg-tile .art:not(.file) > small, .fl-pickitem .art > b, .fl-pickitem .art > small { display: none; }
.ph-tabs button { white-space: nowrap; }
.fl-pickitem em { font-style: normal; }
