/* ==========================================================================
   AKBEL — Teknik servis bileşenleri
   ========================================================================== */

/* Durum çipleri (liste üstü) */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none !important; transition: all var(--dur) var(--ease); }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
.chip.is-active .n { background: rgba(255,255,255,.22); color: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.is-danger { border-color: var(--danger-line); color: var(--danger); }
.chip.is-danger.is-active { background: var(--danger); border-color: var(--danger); color: #fff; }
.tone-neutral { --tone: var(--text-3); --tone-soft: var(--surface-3); }
.tone-info { --tone: var(--info); --tone-soft: var(--info-soft); }
.tone-brand { --tone: var(--primary-text); --tone-soft: var(--primary-soft); }
.tone-warning { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.tone-success { --tone: var(--success); --tone-soft: var(--success-soft); }
.tone-danger { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.chip .dot { background: var(--tone); }

/* Liste satırı */
.svc-track { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--text); letter-spacing: -.01em; }
.svc-device { display: flex; align-items: center; gap: var(--s-3); min-width: 220px; }
.svc-device .di { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; }
.svc-device .di .icon { width: 17px; height: 17px; }
.svc-device strong { display: block; font-weight: 600; }
.svc-device span { font-size: var(--fs-sm); color: var(--text-3); }
tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.age { font-size: 12px; color: var(--text-3); }
.age.is-late { color: var(--danger); font-weight: 700; }
.prio-acil { color: var(--danger); }

/* ── Kanban ────────────────────────────────────────────────────────────── */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: var(--s-3); overflow-x: auto; padding-bottom: var(--s-4); min-height: calc(100vh - 260px); align-items: start; }
.kb-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; max-height: calc(100vh - 230px); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
[data-theme="dark"] .kb-col { background: var(--surface); }
.kb-col.is-over { border-color: var(--brand-400); background: var(--primary-soft); }
.kb-head { display: flex; align-items: center; gap: var(--s-2); padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.kb-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--tone-soft); }
.kb-head strong { font-size: 14px; flex: 1; }
.kb-count { font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface-3); padding: 2px 8px; border-radius: var(--r-full); }
.kb-list { padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); overflow-y: auto; min-height: 80px; }
.kb-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--s-3); font-size: 13px; font-weight: 600; color: var(--brand); border: 1.5px dashed var(--border); border-radius: var(--r); text-decoration: none; }
.kb-more:hover { background: var(--surface-2); }
.kb-empty { padding: var(--s-6) var(--s-3); text-align: center; color: var(--text-3); font-size: 13px; border: 1.5px dashed var(--border); border-radius: var(--r); }
.kb-card { display: block; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); color: var(--text); text-decoration: none !important; cursor: grab; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
[data-theme="dark"] .kb-card { background: var(--surface-2); }
.kb-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.kb-card.is-dragging { opacity: .45; transform: rotate(2deg); }
.kb-card.is-acil { border-left: 3px solid var(--danger); }
.kb-card .kb-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.kb-card .kb-dev { font-weight: 600; font-size: 14px; line-height: 1.3; }
.kb-card .kb-fault { font-size: 13px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card .kb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--text-3); gap: 6px; }

/* ── Kabul formu ───────────────────────────────────────────────────────── */
.form-section-title { display: flex; align-items: center; gap: var(--s-3); }
.step-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.cust-search { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: 340px; overflow-y: auto; }
.ac-item { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.ac-item:hover, .ac-item.is-active { background: var(--primary-soft); }
.ac-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-meta strong { font-weight: 600; }
.ac-meta span { font-size: 12px; color: var(--text-3); }
.ac-empty { padding: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); color: var(--text-3); font-size: 14px; flex-wrap: wrap; }
.chosen { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1.5px solid var(--brand-300); background: var(--primary-soft); border-radius: var(--r); }
[data-theme="dark"] .chosen { border-color: var(--primary-soft-2); }
.chosen .grow strong { display: block; }
.chosen .grow span { font-size: 13px; color: var(--text-2); }
.type-pills { display: inline-flex; gap: 6px; }
.type-pills label { cursor: pointer; }
.type-pills input { position: absolute; opacity: 0; pointer-events: none; }
.type-pills span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--border-strong); font-weight: 600; font-size: 13px; color: var(--text-2); }
.type-pills input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }
.type-pills input:focus-visible + span { box-shadow: var(--focus-ring); }

.device-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s-2); }
.device-types label { cursor: pointer; }
.device-types input { position: absolute; opacity: 0; pointer-events: none; }
.device-types .dt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--r); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: center; transition: all var(--dur) var(--ease); background: var(--surface); }
.device-types .dt .icon { width: 22px; height: 22px; color: var(--text-3); }
.device-types label:hover .dt { border-color: var(--border-strong); }
.device-types input:checked + .dt { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); box-shadow: 0 0 0 1px var(--primary) inset; }
.device-types input:checked + .dt .icon { color: var(--primary-text); }
.device-types input:focus-visible + .dt { box-shadow: var(--focus-ring); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px var(--s-4); }
.serial-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; color: var(--text); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--s-6); border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); text-align: center; color: var(--text-2); cursor: pointer; transition: all var(--dur) var(--ease); }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-400); background: var(--primary-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 28px; height: 28px; color: var(--primary-text); }
.dropzone small { color: var(--text-3); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button.thumb-open { position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-in; }
.thumb form { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity var(--dur) var(--ease); }
.thumb:hover form { opacity: 1; }
.thumb form button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb form button .icon { width: 14px; height: 14px; }

.sig-box { height: 110px; border: 1.5px dashed var(--border-strong); border-radius: var(--r); display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); font-size: 13px; overflow: hidden; }
.sig-box.has-sig { border-style: solid; background: #fff; }
.sig-box img { max-height: 100px; max-width: 100%; }
.sig-pad { position: relative; border: 1px solid var(--border-strong); border-radius: var(--r); background: #fff; touch-action: none; }
.sig-pad canvas { display: block; width: 100%; height: 240px; cursor: crosshair; touch-action: none; }
.sig-pad::after { content: "İmzanızı bu alana atın"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #b8b1c0; font-size: 15px; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.sig-pad .sig-line { position: absolute; left: 24px; right: 24px; bottom: 46px; border-bottom: 1.5px dashed #d6d0dc; pointer-events: none; }
#signature-modal.has-ink .sig-pad::after { opacity: 0; }

/* ── Detay sayfası ─────────────────────────────────────────────────────── */
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.svc-head h1 { font-family: var(--mono); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.svc-head .sub { color: var(--text-2); margin-top: 6px; display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-sm); }
.svc-head .sub span { display: inline-flex; align-items: center; gap: 6px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--r-full); background: var(--tone-soft); color: var(--tone); font: 700 14px var(--font); letter-spacing: 0; }
.status-pill .icon { width: 16px; height: 16px; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-5); align-items: start; }
.svc-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 1180px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } .svc-side { position: static; } }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.kv > div { min-width: 0; }
.kv dt { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kv .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
.fault-box { padding: var(--s-4); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; }
.secret { font-family: var(--mono); letter-spacing: .2em; color: var(--text-3); }
.secret.is-revealed { letter-spacing: 0; color: var(--text); background: var(--warning-soft); padding: 2px 8px; border-radius: 6px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Zaman çizelgesi */
.composer { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.composer .textarea { min-height: 76px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-3); flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-soft, var(--surface-3)); color: var(--tone, var(--text-2)); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--surface); }
.tl-ic .icon { width: 16px; height: 16px; }
.tl-body { min-width: 0; padding-top: 6px; }
.tl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tl-head strong { font-weight: 700; }
.tl-time { font-size: 12px; color: var(--text-3); }
.tl-note { margin-top: 6px; padding: 10px 12px; border-radius: 0 var(--r) var(--r) var(--r); background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; font-size: 14px; }
.tl-note.is-internal { background: var(--warning-soft); border-color: var(--warning-line); }
.vis { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: var(--r-full); }
.vis .icon { width: 12px; height: 12px; }
.vis-customer { background: var(--info-soft); color: var(--info); }
.vis-internal { background: var(--warning-soft); color: var(--warning); }

.vis-opt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.segmented input:checked + .vis-opt { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input[value="internal"]:checked + .vis-opt { color: var(--warning); }
.segmented input[value="customer"]:checked + .vis-opt { color: var(--info); }
.segmented a.is-active { color: var(--text) !important; }

/* Ücret */
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table td { padding: 10px var(--s-5); border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-table .meta { font-size: 12px; color: var(--text-3); }
.price-sum { padding: var(--s-4) var(--s-5); display: grid; gap: 8px; font-size: 14px; }
.price-sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.price-sum .grand { font-size: 20px; font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--border-strong); letter-spacing: -.02em; }
.price-sum .grand span:last-child { color: var(--primary-text); }
.qr-box { width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: var(--r); border: 1px solid var(--border); flex-shrink: 0; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.action-grid .btn { justify-content: flex-start; }
.action-grid .full { grid-column: 1 / -1; }

.lightbox .modal-dialog { max-width: min(1100px, 96vw); background: #0b0810; border-color: #222; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 6px; }

/* ==========================================================================
   Cari hesap & kasa
   ========================================================================== */
.ledger tr.is-opening td { background: var(--surface-2); }
.ledger tfoot td, .table tfoot td { background: var(--surface-2); border-top: 1.5px solid var(--border-strong); padding: 12px var(--s-4); }
tr.is-cancelled td { color: var(--text-3); }
tr.is-cancelled td.num { text-decoration: line-through; }
.ltype { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ltype .icon { width: 15px; height: 15px; }
.ltype-debit .icon { color: var(--danger); }
.ltype-credit .icon { color: var(--success); }
.aging-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aging-cell { position: relative; padding: var(--s-4) var(--s-5); border-right: 1px solid var(--border); overflow: hidden; }
.aging-cell:last-child { border-right: 0; }
.aging-cell small { display: block; color: var(--text-3); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.aging-cell b { font-size: 18px; font-weight: 800; color: var(--text-3); }
.aging-cell.has b { color: var(--text); }
.aging-cell i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--success); }
.aging-d0_30 i { background: var(--warning); } .aging-d31_60 i { background: #e8762c; } .aging-d61_90 i, .aging-d90 i { background: var(--danger); }
.aging-d61_90.has b, .aging-d90.has b { color: var(--danger); }
@media (max-width: 760px) { .aging-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aging-cell { border-bottom: 1px solid var(--border); } }
.pay-box { padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--tone-soft); border: 1px solid var(--border); }
.pay-box .fw-700 { color: var(--tone); }
.pay-in { padding: var(--s-4); border-radius: var(--r); background: var(--success-soft); border: 1px solid var(--success-line); }
.text-warning { color: var(--warning); }
.text-xs { font-size: var(--fs-xs); }

/* Bayi kaydı şeridi (servis detay) */
.dealer-strip { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-5); border-bottom: 1px solid var(--border); background: var(--primary-soft); border-radius: var(--r-lg) var(--r-lg) 0 0; min-width: 0; }
.dealer-strip .truncate { min-width: 0; }

/* ── Ürün yönetimi ─────────────────────────────────────────────────────── */
.prod-cell { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.prod-cell .meta { min-width: 0; display: grid; gap: 4px; }
.prod-cell .meta strong { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 420px; }
.prod-cell .meta > span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.prod-thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--primary-text); }
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pimg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s-3); }
.pimg { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: contain; }
.pimg.is-cover { border: 2px solid var(--primary); }
.pimg-badge { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--primary); color: #fff; }
.pimg-actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity var(--dur) var(--ease); }
.pimg:hover .pimg-actions, .pimg:focus-within .pimg-actions { opacity: 1; }
@media (hover: none) { .pimg-actions { opacity: 1; } }
.spec-rows { display: grid; gap: var(--s-2); }
.spec-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 34px; gap: var(--s-2); align-items: center; }
.grade-pills { display: grid; gap: var(--s-2); }
.grade-pills label { cursor: pointer; }
.grade-pills input { position: absolute; opacity: 0; pointer-events: none; }
.grade-pills label > span { display: flex; gap: var(--s-3); align-items: center; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border-strong); }
.grade-pills label > span > span { display: grid; }
.grade-pills small { color: var(--text-3); font-size: 12px; }
.grade-pills input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.grade-pills input:focus-visible + span { box-shadow: var(--focus-ring); }
.grade { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0; }
.grade-a { background: #15803d; } .grade-b { background: #0e7490; } .grade-c { background: #b45309; }
.order-items .prod-thumb { width: 44px; height: 44px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-2); padding: var(--s-4); }
.brand-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); min-width: 0; }
.brand-item.is-muted { opacity: .55; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--border); color: var(--text-2); }
.icon-pick input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.icon-pick input:focus-visible + span { box-shadow: var(--focus-ring); }
.slide-list { display: grid; gap: var(--s-2); padding: var(--s-4); }
.slide-item { display: flex; align-items: center; gap: var(--s-4); padding: 10px; border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.slide-item.is-muted { opacity: .55; }
.slide-thumb { width: 120px; height: 56px; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.slide-thumb.tone-dark { background: #17121c; } .slide-thumb.tone-light { background: var(--brand-50); color: var(--brand-700); }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-3); padding: var(--s-4); }
@media (max-width: 680px) { .slide-item { flex-wrap: wrap; } .slide-thumb { width: 100%; height: 90px; } }

/* ── Ayarlar › Ödeme / Online ödemeler (Aşama 6) ───────────────────── */
.paytr-info { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.paytr-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.pl-json { margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto; font: 12px/1.55 var(--font-mono, ui-monospace, monospace); background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--border); white-space: pre-wrap; word-break: break-all; }
.pl-log { border-top: 1px solid var(--border); padding: var(--s-4) var(--s-5); }
.pl-log summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.pl-log summary::-webkit-details-marker { display: none; }
.pl-log[open] summary { margin-bottom: var(--s-3); }
.list-plain { list-style: none; margin: 0; padding: 0; }

/* ── Blog yönetimi (Aşama 7) ───────────────────────────────────────── */
.bed-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px var(--s-4); border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 64px; z-index: 2; }
.bed-toolbar button, .bed-img { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px; }
.bed-toolbar button:hover, .bed-img:hover { background: var(--surface); color: var(--text); }
.bed-toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.bed-stats { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.bed-stats.is-warn { color: var(--warning-text, #b45309); }
.bed-text { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 520px; font: 14.5px/1.7 var(--font-mono, ui-monospace, monospace); padding: var(--s-5) !important; resize: vertical; }
.bed-preview { padding: var(--s-6); min-height: 300px; font-size: 16px; }
.bed-preview h2 { font-size: 22px; } .bed-preview h3 { font-size: 18px; margin: var(--s-5) 0 var(--s-2); }
.bed-preview ol { padding-left: 22px; margin: 0 0 var(--s-4); }
.bed-preview .bp-tip { display: flex; gap: 12px; padding: 12px 16px; background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 10px; margin-bottom: var(--s-4); }
.bed-preview .bp-table table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); } .bed-preview .bp-table th, .bed-preview .bp-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.bed-preview img { max-width: 100%; border-radius: 10px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-bottom: var(--s-3); border-bottom: 1px dashed var(--border); }
.faq-row textarea { grid-column: 1; }
.faq-row [data-faq-del] { grid-column: 2; grid-row: 1; }
.char-count { font-size: 12px; color: var(--text-3); text-align: right; margin-top: 4px; }
.char-count.is-over { color: var(--danger); font-weight: 700; }
.bcover-prev { aspect-ratio: 1200 / 630; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--border-strong); display: grid; place-items: center; color: var(--text-3); font-size: 13px; }
.bcover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcover-prev span { display: inline-flex; gap: 6px; align-items: center; }
.bcover-gen { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.bcover-gen summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.serp { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-family: Arial, sans-serif; }
.serp-url { font-size: 12.5px; color: #4d5156; word-break: break-all; }
.serp-title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin-top: 4px; }
[data-theme="dark"] .serp-title { color: #8ab4f8; } [data-theme="dark"] .serp-url { color: #bdc1c6; }
.serp-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
.blog-thumb { width: 96px; aspect-ratio: 1200/630; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: block; }
.seed-card { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; padding: var(--s-5); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--primary-soft), var(--surface) 70%); border: 1px solid var(--border); }
.seed-card form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chart-box { position: relative; height: 280px; }
.steps-mini { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.brand-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.brand-up .full { grid-column: 1 / -1; }
.brand-up-item { display: grid; gap: 8px; align-content: start; }
.brand-up-prev { height: 84px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; padding: 12px; }
.brand-up-prev img { max-height: 56px; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .brand-up { grid-template-columns: 1fr; } }
.ntpl { padding-bottom: var(--s-6); border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.ntpl-ch { padding: var(--s-4); border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }

/* ==========================================================================
   PRODER QUANTUM CEO 1-e-1 TEKNİK SERVİS ARAYÜZÜ & CANLI BAYİ BİLDİRİMLERİ
   ========================================================================== */

/* Quantum Pencere Çerçevesi ve Başlık Çubuğu */
.q-window { overflow: hidden; border: 1px solid #8da9c4; box-shadow: 0 8px 24px rgba(15, 36, 57, .12); background: var(--surface); }
.q-win-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: linear-gradient(180deg, #1d4e89 0%, #0d2b4e 100%); color: #fff; font-size: 13px; border-bottom: 1px solid #091d36; }
.q-win-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #e11d48; color: #fff; font-weight: 800; font-size: 12px; }

/* Quantum Mavi Sekmeler (TAdvOfficePager) */
.q-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 10px 0; background: linear-gradient(180deg, #274c77 0%, #102a43 100%); border-bottom: 2px solid #cbd5e1; }
.q-tab { position: relative; border: 1px solid rgba(255,255,255,.22); border-bottom: 0; border-radius: 7px 7px 0 0; padding: 7px 15px; background: linear-gradient(180deg, #486581 0%, #243b53 100%); color: #e2e8f0; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.q-tab:hover { background: linear-gradient(180deg, #627d98 0%, #334e68 100%); color: #fff; }
.q-tab.is-active { background: #f8fafc; color: #0f172a; font-weight: 700; border-color: #cbd5e1; box-shadow: 0 -2px 6px rgba(0,0,0,.12); z-index: 1; }
[data-theme="dark"] .q-tab.is-active { background: var(--surface); color: var(--text); border-color: var(--border); }

/* Çalışma Alanı (Sol/Orta Form + Sağ Aksiyon Sütunu) */
.q-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 142px; align-items: stretch; background: #f1f5f9; }
[data-theme="dark"] .q-workbench { background: var(--surface-2); }
@media (max-width: 1120px) { .q-workbench { grid-template-columns: 1fr; } }
.q-main-area { min-width: 0; display: flex; flex-direction: column; }
.q-tab-pane { padding: 12px 14px; }
.q-tab-pane[hidden] { display: none !important; }

/* 3 Sütunlu Müşteri / Servis Bilgileri */
.q-3col { display: grid; grid-template-columns: 1.15fr 1.05fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1024px) { .q-3col { grid-template-columns: 1fr; } }
.q-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.q-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-field > label { font-size: 11.5px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .q-field > label { color: var(--text-2); }
.q-input, .q-select, .q-textarea { width: 100%; border: 1px solid #94a3b8; border-radius: 4px; background: #fff; color: #0f172a; font-size: 12.5px; padding: 4px 8px; line-height: 1.35; font-family: inherit; }
.q-input, .q-select { height: 28px; }
.q-textarea { resize: vertical; min-height: 62px; }
[data-theme="dark"] .q-input, [data-theme="dark"] .q-select, [data-theme="dark"] .q-textarea { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.q-input:focus, .q-select:focus, .q-textarea:focus { outline: none; border-color: #1d4e89; box-shadow: 0 0 0 2px rgba(29, 78, 137, .2); }

/* Quantum Özel Alan Renkleri (Pembe Cari Unvanı, Sarı Muhasebe Kutuları, Büyük İşlem Durumu) */
.q-cari-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px auto; gap: 4px; }
.q-btn-dots { height: 28px; border: 1px solid #7f1d1d; border-radius: 4px; background: #b91c1c; color: #fff; font-weight: 800; cursor: pointer; }
.q-btn-f9 { height: 28px; padding: 0 10px; border: 1px solid #0c4a6e; border-radius: 4px; background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%); color: #fff !important; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.q-pink-title { background: #ffd6d6 !important; color: #991b1b !important; font-weight: 800 !important; font-size: 14px !important; height: 34px !important; border-color: #f87171 !important; text-transform: uppercase; }
.q-yellow-select { background: #fef08a !important; color: #111827 !important; font-weight: 800 !important; font-size: 13.5px !important; height: 32px !important; border-color: #eab308 !important; }
.q-opstate-select { height: 34px !important; font-size: 14px !important; font-weight: 800 !important; color: #0f172a !important; background: #e0f2fe !important; border-color: #0284c7 !important; }
.q-repeat-banner { padding: 6px 10px; border-radius: 4px; background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; font-weight: 800; font-size: 12.5px; text-align: center; }

/* İlgili Personel ve Aparatlar Kutuları */
.q-box-title { font-size: 12px; font-weight: 800; color: #be123c; text-align: center; margin-top: 2px; }
.q-emp-checklist { height: 112px; overflow-y: auto; background: #fff; border: 1px solid #94a3b8; border-radius: 4px; padding: 4px 6px; display: flex; flex-direction: column; gap: 3px; }
[data-theme="dark"] .q-emp-checklist { background: var(--surface); border-color: var(--border-strong); }
.q-emp-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 3px; }
.q-emp-item:hover { background: #e0f2fe; }
.q-apparatus-wrap { max-height: 195px; overflow-y: auto; border: 1px solid #94a3b8; border-radius: 4px; background: #fff; }
[data-theme="dark"] .q-apparatus-wrap { background: var(--surface); border-color: var(--border-strong); }
.q-sub-table { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--surface); }
.q-sub-table th { background: #e2e8f0; color: #1e293b; font-weight: 700; padding: 5px 8px; border: 1px solid #cbd5e1; text-align: left; white-space: nowrap; }
[data-theme="dark"] .q-sub-table th { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.q-sub-table td { padding: 4px 7px; border: 1px solid #cbd5e1; }
[data-theme="dark"] .q-sub-table td { border-color: var(--border); }
.q-cell-input, .q-cell-select { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; padding: 2px 4px; }
.q-cell-select.is-var { font-weight: 800; color: #15803d; background: #dcfce7; border-radius: 3px; }

/* Yeşil Ürün Kodu / Ürün Adı Barı */
.q-green-bar { display: grid; grid-template-columns: auto 190px auto 1fr; align-items: center; gap: 8px; padding: 6px 14px; background: linear-gradient(180deg, #84cc16 0%, #65a30d 100%); color: #fff; font-size: 12.5px; font-weight: 800; border-top: 1px solid #4d7c0f; border-bottom: 1px solid #4d7c0f; }
.q-green-bar input { height: 25px; border: 1px solid #3f6212; border-radius: 3px; padding: 2px 8px; background: #fff; color: #0f172a; font-size: 12.5px; font-weight: 600; }
@media (max-width: 760px) { .q-green-bar { grid-template-columns: 1fr; } }

/* Sağ Dikey Yardımcı Butonlar Sütunu */
.q-right-actions { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; background: #e2e8f0; border-left: 1px solid #cbd5e1; }
[data-theme="dark"] .q-right-actions { background: var(--surface-3); border-left-color: var(--border); }
@media (max-width: 1120px) { .q-right-actions { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--border); } }
.q-act-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 6px 6px; border: 1px solid #94a3b8; border-radius: 6px; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); color: #0f172a !important; font-size: 11.5px; font-weight: 700; text-align: center; text-decoration: none !important; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: all .15s ease; }
.q-act-btn:hover { border-color: #0284c7; background: #e0f2fe; transform: translateY(-1px); }
.q-act-btn small { display: block; font-size: 10px; opacity: .75; font-family: var(--mono); }
.q-act-btn.is-primary { background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%); color: #fff !important; border-color: #075985; }
.q-act-btn.is-warning { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: #fff !important; border-color: #b45309; }
.q-act-btn.is-danger { background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%); color: #fff !important; border-color: #991b1b; margin-top: auto; }

/* Alt F2-F9 Kısayol Çubuğu */
.q-footer-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 12px; background: #1e293b; border-top: 1px solid #0f172a; }
.q-fkey { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid #475569; border-radius: 4px; background: #334155; color: #f8fafc !important; font-size: 12px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.q-fkey:hover { background: #475569; }
.q-fkey kbd { background: #0f172a; color: #38bdf8; padding: 1px 5px; border-radius: 3px; font-size: 11px; font-family: var(--mono); }

/* Arızalı Ürün Listesi (Sol 3 Sekmeli Filtre + Sağ Renkli Grid) */
.q-list-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: start; }
.q-list-layout.is-filter-collapsed { grid-template-columns: 1fr; }
.q-list-layout.is-filter-collapsed .q-filter-pane { display: none; }
@media (max-width: 1080px) { .q-list-layout { grid-template-columns: 1fr; } }
.q-filter-pane { overflow: hidden; border: 1px solid #8da9c4; }
.q-filter-Pane .q-tab { padding: 6px 8px; font-size: 11.5px; }
.q-filter-form .q-tab-pane { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.q-f-row { display: flex; flex-direction: column; gap: 2px; }
.q-f-row > label { font-size: 11px; font-weight: 700; color: var(--text-2); }
.q-filter-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface-2); }
.q-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #e2e8f0; }
.q-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.25); }

.q-table-wrap { max-height: calc(100vh - 380px); min-height: 320px; overflow: auto; }
.q-grid-table { font-size: 12.5px; border-collapse: collapse; }
.q-grid-table thead th { position: sticky; top: 0; z-index: 2; background: #1e3a5f; color: #fff; font-size: 11.5px; font-weight: 700; padding: 7px 9px; border-right: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.q-grid-table tbody td { padding: 6px 9px; border-bottom: 1px solid rgba(0,0,0,.08); border-right: 1px solid rgba(0,0,0,.06); }
.q-grid-row { background: var(--q-row-bg, var(--surface)); color: var(--q-row-fg, var(--text)); transition: filter .1s ease; }
.q-grid-row:hover { filter: brightness(.95); }
.q-grid-row.is-selected { outline: 2px solid #0284c7; outline-offset: -2px; }
.q-grid-row.is-dealer-approved td:first-child { box-shadow: inset 4px 0 0 #16a34a; }
.q-state-pill { display: inline-block; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.78); color: #0f172a; font-weight: 800; font-size: 11.5px; border: 1px solid rgba(0,0,0,.15); }

/* Cari Listesi & Çift Grid Penceresi (q-win / q-list-split / q-grid / q-btn) */
.q-win { border: 2px solid #1e3a8a; border-radius: 8px; overflow: hidden; background: #f8fafc; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
[data-theme="dark"] .q-win { background: var(--surface); border-color: var(--border-strong); }
.q-titlebar { background: linear-gradient(90deg, #0f2942 0%, #1d4ed8 100%); color: #fff; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 700; }
.q-titlebar-left { display: flex; align-items: center; gap: 8px; }
.q-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: #e11d48; color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.q-list-split { display: grid; grid-template-columns: 265px minmax(0, 1fr); align-items: stretch; min-height: 640px; }
.q-list-split.is-filter-collapsed { grid-template-columns: 1fr !important; }
.q-list-split.is-filter-collapsed .q-filter-pane { display: none; }
@media (max-width: 1100px) { .q-list-split { grid-template-columns: 1fr !important; } }
.q-filter-pane { background: #eef2f6; border-right: 1px solid #cbd5e1; display: flex; flex-direction: column; min-width: 0; }
[data-theme="dark"] .q-filter-pane { background: var(--surface-2); border-right-color: var(--border); }
.q-filter-head { background: #1e3a8a; color: #fff; font-weight: 700; padding: 7px 12px; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; }
.q-filter-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.q-grid-pane { min-width: 0; background: #f1f5f9; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
[data-theme="dark"] .q-grid-pane { background: var(--surface-2); }
.q-grid-wrap { overflow: auto; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
[data-theme="dark"] .q-grid-wrap { background: var(--surface); border-color: var(--border); }
.q-grid { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.35; }
.q-grid thead th { position: sticky; top: 0; z-index: 2; background: #dbeafe; color: #1e3a8a; font-weight: 700; padding: 7px 9px; border-bottom: 1px solid #93c5fd; border-right: 1px solid #bfdbfe; text-align: left; white-space: nowrap; font-size: 11px; letter-spacing: .01em; }
[data-theme="dark"] .q-grid thead th { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.q-grid tbody td { padding: 6px 9px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #f1f5f9; vertical-align: middle; color: #0f172a; }
[data-theme="dark"] .q-grid tbody td { border-color: var(--border); color: var(--text); }
.q-grid tbody tr { display: table-row !important; transition: background .1s ease; }
.q-grid tbody tr:hover { filter: brightness(.97); }
.q-grid tbody tr.is-selected { background: #dbeafe !important; box-shadow: inset 3px 0 0 #1d4ed8; }
[data-theme="dark"] .q-grid tbody tr.is-selected { background: rgba(59, 130, 246, .22) !important; }
.q-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid #94a3b8; border-radius: 5px; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); color: #0f172a !important; font-size: 11.5px; font-weight: 700; text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: all .12s ease; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.q-btn:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8 !important; }
.q-btn.is-primary { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); color: #fff !important; border-color: #1e40af; }
.q-btn.is-primary:hover { background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%); color: #fff !important; }
.q-statusbar { background: #1e293b; color: #e2e8f0; border-top: 1px solid #0f172a; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.q-statusbar .text-2 { color: #94a3b8 !important; }

/* Canlı Bildirim Çanı & Sesli/Görsel Uyarı Balonu (Teknik Servis <-> Bayi) */
.live-bell-wrap { position: relative; }
.live-bell-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
.live-pop-stack { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 420px; width: calc(100vw - 40px); pointer-events: none; }
.live-pop { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #0f172a; color: #fff; border-left: 5px solid #22c55e; box-shadow: 0 16px 36px rgba(0,0,0,.32); animation: liveSlideIn .25s ease-out; }
.live-pop.tone-warning { border-left-color: #f59e0b; }
.live-pop.tone-danger { border-left-color: #ef4444; }
@keyframes liveSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.live-pop-title { font-weight: 800; font-size: 14px; color: #4ade80; }
.live-pop.tone-warning .live-pop-title { color: #fbbf24; }
.live-pop.tone-danger .live-pop-title { color: #f87171; }
.live-pop-body { font-size: 12.5px; color: #e2e8f0; margin-top: 3px; line-height: 1.4; }


/* ══ Arızalı ürün listesi — yeni görünüm (sv-) ═══════════════════════════ */
.sv-head { margin-bottom: var(--s-5); }
.sv-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-3); border-radius: 12px; }
.sv-seg a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--text-2); text-decoration: none; }
.sv-seg a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.08)); }
.sv-kbd-in { font: 600 10.5px ui-monospace, monospace; padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(255,255,255,.4); margin-left: 2px; }

.sv-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.sv-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; color: inherit; text-decoration: none !important; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.sv-kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.sv-kpi-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.sv-kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sv-kpi-v.is-late { color: var(--danger); }
.sv-kpi-f { font-size: 12px; color: var(--text-3); }
@media (max-width: 1100px) { .sv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sv-list { overflow: visible; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 10px; align-items: center; }
.sv-chip-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.sv-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; align-items: center; }
.sv-search { flex: 1 1 340px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--text-3); }
.sv-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sv-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px var(--font); color: var(--text); }
.sv-search kbd { font: 600 11px ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--text-3); }
.sv-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.sv-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 12px; font-size: 13px; }
.sv-fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); }
.sv-fchip b { font-weight: 700; }
.sv-fchip a { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; }
.sv-fchip a:hover { background: rgba(0,0,0,.08); }

.sv-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; background: #2a0d38; color: #fff; font-size: 14px; }
.sv-bulk .btn { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.22); --btn-hover: rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.sv-bulk .sv-bulk-clear { margin-left: auto; background: transparent; border-color: transparent; color: #e9d6f3; }

.sv-table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.sv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sv-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-3); padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sv-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sv-table.is-compact td { padding-top: 6px; padding-bottom: 6px; }
.sv-table.is-compact .sv-sub { display: none; }
.sv-table tbody tr { cursor: pointer; transition: background var(--dur) var(--ease); }
.sv-table tbody tr:hover { background: var(--surface-2); }
.sv-table tbody tr.is-selected { background: var(--primary-soft); }
.sv-table tbody tr.is-checked { background: color-mix(in srgb, var(--primary-soft) 70%, transparent); }
.sv-table tbody tr:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.sv-table [data-col] { display: none; }
.sv-table.col-kod [data-col="kod"], .sv-table.col-grup [data-col="grup"], .sv-table.col-raf [data-col="raf"], .sv-table.col-islem [data-col="islem"],
.sv-table.col-tutar [data-col="tutar"], .sv-table.col-son [data-col="son"], .sv-table.col-sira [data-col="sira"] { display: table-cell; }
.sv-c-check { width: 40px; position: relative; padding-left: 14px !important; }
.sv-c-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.sv-bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--border-strong); }
.sv-legend .sv-bar { position: static; display: inline-block; height: 12px; vertical-align: -1px; margin-right: 6px; }
.tone-neutral.sv-bar, .sv-dot.tone-neutral { background: #94a3b8; }
.tone-info.sv-bar, .sv-dot.tone-info { background: var(--info); }
.tone-warning.sv-bar, .sv-dot.tone-warning { background: var(--warning); }
.tone-brand.sv-bar, .sv-dot.tone-brand { background: var(--primary); }
.tone-success.sv-bar, .sv-dot.tone-success { background: var(--success); }
.tone-danger.sv-bar, .sv-dot.tone-danger { background: var(--danger); }
.sv-form { font-weight: 700; font-size: 13px; color: var(--primary-text); text-decoration: none; }
.sv-form:hover { text-decoration: underline; }
.sv-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sv-main { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--text); }
.sv-c-cust { min-width: 170px; max-width: 260px; }
.sv-c-dev { min-width: 130px; max-width: 200px; }
.sv-c-fault { min-width: 110px; max-width: 240px; color: var(--text-2); }
.sv-c-status { min-width: 128px; }
.sv-c-act { width: 76px; text-align: right; white-space: nowrap; }
.sv-c-act .dropdown { display: inline-block; }
.sv-dealer { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: var(--primary-text); background: var(--primary-soft); border-radius: 5px; padding: 2px 5px; }
.sv-late { color: var(--danger); font-weight: 700; }
.sv-ok { color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.sv-wait { color: var(--warning); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.sv-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sv-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sv-pill.tone-neutral { background: var(--surface-3); color: var(--text-2); }
.sv-pill.tone-info { background: var(--info-soft); color: var(--info); }
.sv-pill.tone-warning { background: var(--warning-soft); color: var(--warning); }
.sv-pill.tone-brand { background: var(--primary-soft); color: var(--primary-text); }
.sv-pill.tone-success { background: var(--success-soft); color: var(--success); }
.sv-pill.tone-danger { background: var(--danger-soft); color: var(--danger); }
.sv-mini { font-size: 10px; height: 18px; padding: 0 5px; margin-left: 4px; }
.sv-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.sv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: 4px 16px; }
.sv-foot .pager { flex: 1 1 auto; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-3); padding: 8px 0; }
.sv-keys { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; margin-top: var(--s-4); }
.sv-keys kbd { font: 600 11px ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); margin-right: 3px; }

.sv-drawer-backdrop { position: fixed; inset: 0; background: rgba(28, 10, 38, .45); z-index: 80; }
.sv-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); box-shadow: -18px 0 48px rgba(28,10,38,.22); z-index: 81; transform: translateX(105%); transition: transform .22s var(--ease); display: flex; }
.sv-drawer.is-open { transform: none; }
.sv-drawer-form { display: flex; flex-direction: column; width: 100%; }
.sv-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.sv-drawer-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.sv-drawer-body { flex: 1; overflow-y: auto; }
.sv-drawer-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sv-drawer-foot .grow { flex: 1; justify-content: center; }
.sv-grp { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.sv-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sv-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.sv-table tbody tr.q-grid-row { background: transparent; color: inherit; }
.sv-table tbody tr.q-grid-row:hover { filter: none; background: var(--surface-2); }
.sv-table tbody tr.q-grid-row.is-checked { background: var(--primary-soft); }
.sv-table tbody tr.q-grid-row.is-selected { outline: none; background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line, var(--border-strong)); }
.sv-table .is-dealer-approved td:first-child { box-shadow: none; }

.sv-c-cust .truncate, .sv-c-dev .truncate, .sv-c-fault .truncate { display: block; max-width: 100%; }
.sv-main .truncate { min-width: 0; }

/* Sabit tablo düzeni: sütunlar ekrana sığar, uzun metin kesilir; ek sütun açılınca tablo yatay kayar */
.sv-table { table-layout: fixed; min-width: 1000px; }
.sv-table th.sv-c-check { width: 40px; }
.sv-table th.sv-w-kayit { width: 132px; }
.sv-table th.sv-w-cust { width: 21%; }
.sv-table th.sv-w-dev { width: 15%; }
.sv-table th.sv-w-status { width: 140px; }
.sv-table th.sv-w-amt { width: 96px; }
.sv-table th.sv-w-pers { width: 56px; }
.sv-table th.sv-c-act { width: 82px; }
.sv-table th[data-col] { width: 110px; }
.sv-table th[data-col="islem"] { width: 200px; }
.sv-table th[data-col="grup"] { width: 150px; }
.sv-table.col-kod, .sv-table.col-grup, .sv-table.col-raf, .sv-table.col-islem, .sv-table.col-tutar, .sv-table.col-son, .sv-table.col-sira { min-width: 1400px; }
.sv-c-cust, .sv-c-dev, .sv-c-fault { max-width: none; min-width: 0; }
.sv-table td { overflow: hidden; }
.sv-table td.sv-c-act, .sv-table td.sv-c-check { overflow: visible; }
/* Genel liste tablosu (müşteriler, cari, ürünler): içeriğe göre genişlik */
.sv-table.sv-table-auto { table-layout: auto; min-width: 0; }
.sv-table.sv-table-auto td { overflow: visible; }
.sv-table-auto .truncate { display: block; max-width: 340px; }
.sv-table-auto .sv-main .truncate { display: inline-block; }
.sv-kpi.card { cursor: default; }
a.sv-kpi.card { cursor: pointer; }
/* Tablo içi "⋯" menüleri: kapalıyken yer kaplamasın (iç kaydırma çubuğu oluşmasın); son satırlarda yukarı açılsın */
.sv-table .dropdown-menu { display: none; }
.sv-table .dropdown.is-open .dropdown-menu { display: block; }
.sv-table tbody tr:nth-last-child(-n+4):not(:nth-child(-n+3)) .dropdown-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom right; }
/* Filtre çekmecesi kapalıyken hiç görünmesin (sayfa yenilenirken bir an belirmesin) */
.sv-drawer { visibility: hidden; transition: transform .22s var(--ease), visibility 0s linear .22s; }
.sv-drawer.is-open { visibility: visible; transition: transform .22s var(--ease), visibility 0s; }
.sv-kpis.sv-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sv-kpis.sv-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-code { font-size: 12.5px; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.sv-title { font-weight: 700; color: var(--text); text-decoration: none; }
.sv-title:hover { color: var(--primary-text); text-decoration: underline; }
a.sv-dealer { text-decoration: none; }
.sv-neg { color: var(--danger); }
.sv-pos { color: var(--success); }
.sv-c-act-wide { width: 150px; }
.sv-table-plain tbody tr { cursor: default; }
.sv-table tbody tr.q-acc-row.is-selected { background: var(--primary-soft); }
.sv-table tbody tr.q-acc-row td:first-child { position: relative; }
.sv-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-5); padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sv-totals strong { margin-left: 6px; font-variant-numeric: tabular-nums; }
.sv-cari th.w-konum { width: 150px; } .sv-cari th.w-vergi { width: 150px; } .sv-cari th.w-tut { width: 118px; } .sv-cari th.w-bak { width: 128px; }
.sv-cari { min-width: 1060px; }
.sv-cari .truncate { display: block; }
.sv-cari .sv-main .truncate { display: inline-block; min-width: 0; }
.sv-table th.sv-c-act.sv-c-act-wide { width: 150px; }
.sv-cari th.w-konum, .sv-cari th.w-vergi { width: 128px; }
.sv-cari th.w-tut { width: 112px; }
/* Stok kartları listesi */
.sv-stok { min-width: 1020px; }
.sv-stok th.w-grup { width: 190px; } .sv-stok th.w-tut { width: 110px; } .sv-stok th.w-fiyat { width: 150px; }
.sv-stok th.w-stok { width: 88px; } .sv-stok th.w-raf { width: 120px; }
.sv-stok .truncate { display: block; }
.sv-stok .sv-main .truncate { display: inline-block; min-width: 0; }
.sv-table tbody tr.q-stock-row { cursor: pointer; }
.sv-table tbody tr.q-stock-row.is-selected { background: var(--primary-soft); }
.sv-table tbody tr.q-stock-row td:first-child { position: relative; padding-left: 16px; }
/* QR ile telefondan fotoğraf ekleme */
.qr-up { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-4); align-items: start; }
@media (max-width: 560px) { .qr-up { grid-template-columns: 1fr; } }
.qr-up-code-wrap { text-align: center; }
.qr-up-code { width: 220px; height: 220px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; transition: opacity .2s, filter .2s; }
.qr-up-code svg { width: 100%; height: 100%; display: block; }
.qr-up-code.is-expired { opacity: .25; filter: grayscale(1); }
.qr-up-timer { margin-top: 10px; display: inline-block; font-weight: 800; font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 14px; }
.qr-up-timer.is-low { background: var(--danger-soft, #fde8e4); color: var(--danger); }
.qr-up-steps { margin: 0 0 var(--s-3); padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.qr-up-link { display: flex; gap: 6px; }
.qr-up-link .input { flex: 1; min-width: 0; font-size: 12px; }
.qr-up-local { margin-top: var(--s-3); }
.qr-up-recv { margin-top: var(--s-4); border-top: 1px solid var(--border); padding-top: var(--s-3); }
.qr-up-recv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qr-up-thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); margin-top: 0; min-height: 40px; }
.thumb { position: relative; }
.qr-up-tag { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 800; background: var(--primary); color: #fff; padding: 1px 5px; border-radius: 4px; }
