/* ==========================================================================
   VOX HI-FI Teklif Portalı — v7 tasarım
   Koyu kahve/siyah + altın marka renkleri, sıcak kırık beyaz zemin.
   Yazı tipi PDF'lerle aynı: Poppins (static/fonts, SIL OFL).
   ========================================================================== */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("fonts/Poppins-Light.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
    --ink: #1d1b18;
    --ink-2: #4a443b;
    --muted: #8a8173;
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --line: #e8e2d6;
    --line-2: #d9d0bf;
    --gold: #b8935a;
    --gold-2: #9c7a45;
    --gold-soft: #f3ead8;
    --dark: #1a1815;
    --dark-2: #25221e;
    --danger: #b0413a;
    --danger-soft: #fbeceb;
    --ok: #2f7a55;
    --ok-soft: #e5f3eb;
    --info: #2e5f8f;
    --info-soft: #e7eff8;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(29, 27, 24, .04), 0 4px 16px rgba(29, 27, 24, .04);
    --shadow-lg: 0 10px 40px rgba(29, 27, 24, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--ink);
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-2); }
input[type="hidden"] { display: none; }
h1, h2, h3 { letter-spacing: -.01em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.gold { color: var(--gold); }
svg.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kabuk: sol menü + içerik ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
    width: 236px; flex: none; background: var(--dark); color: #cfc6b6;
    position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40;
}
.side-brand { padding: 26px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.side-brand img { height: 46px; display: block; }
.side-brand .sub { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #8d846f; margin-top: 12px; }
.side nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: #cfc6b6; font-weight: 500; font-size: 14px;
}
.side nav a svg { opacity: .8; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.active { background: linear-gradient(90deg, rgba(184,147,90,.22), rgba(184,147,90,.06)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side nav a.active svg { color: var(--gold); opacity: 1; }
.side nav .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 8px; border-radius: 20px; color: #e8dcc4; }
.side-user { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--dark); display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; flex: none; }
.side-user .name { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.2; }
.side-user .role { font-size: 11px; color: #8d846f; }
.side-user .logout-form { margin: 0 0 0 auto; }
.side-user .logout { border: none; background: none; cursor: pointer; color: #8d846f; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.side-user .logout:hover { background: rgba(255,255,255,.07); color: #fff; }

.main { margin-left: 236px; flex: 1; min-width: 0; }
.page { margin: 0; padding: 30px 34px 70px; } /* v13.7: tam genişlik (yanlarda boşluk yok) */
.mobile-bar { display: none; }

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.crumb:hover { color: var(--gold-2); }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card-head .hint { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 18px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--dark); color: #fff; border: 1px solid var(--dark);
    padding: 9px 16px; border-radius: 10px; font-family: inherit; font-weight: 500; font-size: 13.5px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #33302a; color: #fff; }
.btn svg.i { width: 16px; height: 16px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { background: var(--gold-soft); color: var(--ink); border-color: var(--gold); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #ecc9c5; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
    width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px;
    border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.icon-btn svg.i { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--gold-soft); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
form.inline { display: inline; margin: 0; }

/* ---------- Form öğeleri ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field .help { font-size: 11.5px; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"],
.field input[type="date"], .field input[type="tel"], .field input[type="search"], .field select, .field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
    font-family: inherit; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .cell-input:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18);
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 7px; background: var(--surface-2); }
.grid { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.cell-input {
    width: 72px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2);
    font-family: inherit; font-weight: 500; font-size: 13.5px; line-height: 1.2; color: var(--ink); text-align: right; transition: border-color .15s, background .15s;
}
.cell-input:hover { border-color: var(--line-2); background: #fff; }
.cell-input.wide { width: 104px; }
.cell-input.left { text-align: left; width: 100%; }
.suffix { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }

/* ---------- Uyarılar ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid; }
.alert-error { background: var(--danger-soft); color: #8d2f29; border-color: #f0cdc9; }
.alert-info { background: var(--ok-soft); color: #245c41; border-color: #cbe6d6; }
.alert-warn { background: #fdf5e4; color: #7a5a18; border-color: #f0dfb5; }

/* ---------- Durum rozetleri ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 30px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.draft { background: #efebe3; color: #6f675b; }
.badge.sent { background: var(--info-soft); color: var(--info); }
.badge.accepted { background: var(--ok-soft); color: var(--ok); }
.badge.rejected { background: var(--danger-soft); color: var(--danger); }
.badge.expired { background: #fdf0dd; color: #a0661b; }
.chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; background: var(--gold-soft); color: var(--gold-2); font-size: 11.5px; font-weight: 500; }

/* ---------- Özet (KPI) kartları ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: block; color: var(--ink); }
a.stat:hover { border-color: var(--gold); color: var(--ink); }
.stat .lbl { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat .val { font-size: 24px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.stat.dark .lbl, .stat.dark .sub { color: #a89f8e; }
.stat.dark .val { color: var(--gold); }

/* ---------- Araç çubuğu / sekmeler ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.tabs a .n { font-size: 11px; color: var(--muted); }
.tabs a:hover { background: var(--surface-2); color: var(--ink); }
.tabs a.on { background: var(--dark); color: #fff; }
.tabs a.on .n { color: #c9bfae; }
.search { position: relative; }
.search svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.search input { padding: 8px 12px 8px 34px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-weight: 400; font-size: 13.5px; width: 260px; background: #fff; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18); }

/* ---------- Tablolar ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fcfaf6; }
.table th.r, .table td.r { text-align: right; }
.table .strong { font-weight: 600; }
.table .row-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: .65; transition: opacity .15s; }
.table tr:hover .row-actions { opacity: 1; }
.rowlink { font-weight: 600; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg.i { width: 36px; height: 36px; color: var(--line-2); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin: 0 0 4px; font-size: 16px; }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--dark); }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #d8cdb8;
    background: radial-gradient(120% 90% at 0% 100%, rgba(184,147,90,.28), transparent 60%), var(--dark); }
.login-art img { height: 64px; align-self: flex-start; }
.login-art .quote { font-size: 30px; font-weight: 300; color: #fff; line-height: 1.25; max-width: 440px; letter-spacing: -.02em; }
.login-art .quote b { font-weight: 700; color: var(--gold); }
.login-art .foot { font-size: 12px; color: #8d846f; letter-spacing: .2em; text-transform: uppercase; }
.login-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #c9a766, #f3e3bb 45%, #a78450); }
.login-panel { background: var(--bg); display: grid; place-items: center; padding: 30px; }
.login-card { width: 100%; max-width: 360px; }
.login-card h1 { font-size: 24px; margin: 0 0 4px; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 13.5px; }

/* ---------- Ürün kataloğu ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.p-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.p-img { height: 150px; background: linear-gradient(180deg, #f7f3ec, #efe8db); display: grid; place-items: center; position: relative; }
.p-img img { max-width: 82%; max-height: 124px; object-fit: contain; }
.p-img .none { color: #b9ad97; font-size: 12px; }
.p-img .actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.p-card:hover .p-img .actions { opacity: 1; }
.p-img .actions .icon-btn { background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--ink-2); }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-cat { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; }
.p-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.p-name .brand { font-weight: 400; color: var(--ink-2); }
.p-price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }
.p-price .unit { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.product-thumb { width: 44px; height: 44px; border-radius: 8px; background: #f3eee5; display: grid; place-items: center; flex: none; overflow: hidden; }
.product-thumb img { max-width: 40px; max-height: 40px; object-fit: contain; }
.current-img { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px; border: 1px dashed var(--line-2); border-radius: 10px; }
.current-img img { max-height: 70px; max-width: 110px; object-fit: contain; }

/* ---------- Teklif düzenleme ---------- */
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.q-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.q-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-meta-line { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
.q-meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.q-meta-line svg.i { width: 15px; height: 15px; }

details.info-card > summary { list-style: none; cursor: pointer; }
details.info-card > summary::-webkit-details-marker { display: none; }
details.info-card > summary .chev { transition: transform .15s; color: var(--muted); }
details.info-card[open] > summary .chev { transform: rotate(180deg); }
details.info-card[open] > summary { border-bottom: 1px solid var(--line); }
details.info-card:not([open]) > summary { border-bottom: none; }
.info-summary { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.info-summary .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-summary .v { font-weight: 500; }

.section-card { scroll-margin-top: 20px; }
.section-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--gold-soft), rgba(243,234,216,.2)); border-radius: var(--radius) var(--radius) 0 0; }
.section-head .title { font-weight: 700; font-size: 15px; }
.section-head .count { font-size: 12px; color: var(--muted); }
.section-head .subtotal { margin-left: auto; font-weight: 600; font-size: 14px; }
.section-head .tools { display: flex; gap: 2px; }
.rename-form { display: none; gap: 6px; align-items: center; }
.section-head.renaming .title, .section-head.renaming .count, .section-head.renaming .rename-btn { display: none; }
.section-head.renaming .rename-form { display: flex; }
.rename-form input { padding: 6px 10px; border: 1px solid var(--gold); border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 14px; width: 220px; }

.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.items th:first-child, .items th.l { text-align: left; }
.items td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: right; }
.items td.l { text-align: left; }
.items tr:last-child td { border-bottom: none; }
.items tr.item-row { scroll-margin-top: 90px; }
.items tr.item-row:hover td { background: #fdfbf7; }
.items tr.item-row:target td { background: #fff8e8; }
.item-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-name .n { font-weight: 600; line-height: 1.3; }
.item-name .n .brand { font-weight: 400; color: var(--ink-2); }
.item-name .d { font-size: 11.5px; color: var(--muted); }
.line-total { font-weight: 700; white-space: nowrap; }
.line-total .old { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.row-tools { display: flex; gap: 0; justify-content: flex-end; opacity: .45; transition: opacity .15s; }
tr:hover .row-tools { opacity: 1; }
.section-empty { padding: 18px 20px; color: var(--muted); font-size: 13px; }

.adder { padding: 12px 14px; border-top: 1px dashed var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.adder-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.picker { position: relative; flex: 1; min-width: 240px; }
.picker input.picker-q { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-weight: 400; font-size: 13.5px; background: #fff; }
.picker input.picker-q:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18); }
.picker > svg.i { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 330px; overflow-y: auto; z-index: 30; display: none; padding: 4px; }
.picker.open .picker-list { display: block; }
.picker-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.picker-opt:hover, .picker-opt.hl { background: var(--gold-soft); }
.picker-opt .thumb { width: 36px; height: 36px; border-radius: 6px; background: #f3eee5; display: grid; place-items: center; flex: none; }
.picker-opt .thumb img { max-width: 32px; max-height: 32px; object-fit: contain; }
.picker-opt .t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.picker-opt .t .brand { font-weight: 400; color: var(--ink-2); }
.picker-opt .c { font-size: 11px; color: var(--muted); }
.picker-opt .p { margin-left: auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.picker-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.mini { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.mini input { width: 58px; padding: 8px; border: 1px solid var(--line-2); border-radius: 9px; font-family: inherit; font-weight: 500; font-size: 13px; text-align: right; background: #fff; }
.free-item { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.free-item.show { display: block; }
.linkish { background: none; border: none; color: var(--gold-2); font-family: inherit; font-weight: 500; font-size: 12.5px; cursor: pointer; padding: 4px 2px; }
.linkish:hover { text-decoration: underline; }

.new-section { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.5); margin-bottom: 18px; }
.new-section input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-weight: 400; font-size: 14px; }
.new-section .chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.new-section .chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 3px 11px; font-family: inherit; font-weight: 400; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.new-section .chips button:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }

.totals .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.totals .row:last-of-type { border-bottom: none; }
.totals .row .v { font-weight: 500; }
.totals .row.disc .v { color: var(--danger); }
.totals .grand { margin-top: 10px; background: var(--dark); color: #fff; border-radius: 12px; padding: 14px 16px; }
.totals .grand .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a89f8e; }
.totals .grand .v { font-size: 25px; font-weight: 700; color: var(--gold); line-height: 1.2; margin-top: 2px; }
.status-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.status-steps button { border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 8px 6px; font-family: inherit; font-weight: 500; font-size: 12.5px; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.status-steps button:hover { border-color: var(--gold); background: var(--gold-soft); }
.status-steps button.on { cursor: default; }
.status-steps button.on.draft { background: #efebe3; border-color: #d8d0c0; color: #4d463c; }
.status-steps button.on.sent { background: var(--info-soft); border-color: #bcd0e6; color: var(--info); }
.status-steps button.on.accepted { background: var(--ok-soft); border-color: #bfe0cd; color: var(--ok); }
.status-steps button.on.rejected { background: var(--danger-soft); border-color: #eec8c4; color: var(--danger); }
.side-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pdf-box select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; font-weight: 400; font-size: 13.5px; background: #fff; margin-bottom: 8px; }
.pdf-box .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bulk { display: flex; gap: 6px; align-items: center; }
.bulk input { width: 70px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; font-family: inherit; font-weight: 500; font-size: 13.5px; text-align: right; }

/* ---------- Web önizleme (quote_display) ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 1040px; overflow: hidden; }
.doc-cover { display: flex; justify-content: space-between; align-items: flex-end; padding: 34px 40px 28px; background: var(--dark); color: #fff; position: relative; }
.doc-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #c9a766, #f3e3bb 45%, #a78450); }
.doc-cover .t1 { font-size: 30px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.doc-cover .t2 { font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.doc-cover img { height: 52px; }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 40px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.doc-meta .k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.doc-body { padding: 10px 40px 34px; }
.doc-sec { margin-top: 22px; }
.doc-sec-title { background: #e7dab6; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 14px; border-radius: 6px; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.doc-table th { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.doc-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.doc-table td.img { width: 90px; text-align: center; }
.doc-table td.img img { max-width: 76px; max-height: 64px; object-fit: contain; }
.doc-table td.desc { font-size: 11.5px; color: var(--ink-2); white-space: pre-line; max-width: 320px; }
.doc-totals { margin: 26px 0 0 auto; max-width: 420px; }
.doc-terms { margin-top: 28px; background: #f6efdd; border-radius: 10px; padding: 16px 20px; font-size: 12px; white-space: pre-line; color: var(--ink-2); line-height: 1.7; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
    .q-layout { grid-template-columns: minmax(0, 1fr); }
    .q-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .side { transform: translateX(-100%); transition: transform .2s; }
    body.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
    .main { margin-left: 0; }
    .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--dark); position: sticky; top: 0; z-index: 30; }
    .mobile-bar img { height: 30px; }
    .mobile-bar button { background: none; border: none; color: #fff; padding: 6px; }
    .page { padding: 20px 16px 60px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .search input { width: 100%; }
    .login { grid-template-columns: 1fr; }
    .login-art { display: none; }
    .items th.hide-sm, .items td.hide-sm { display: none; }
    .doc-meta { grid-template-columns: 1fr 1fr; }
    .doc-cover, .doc-meta, .doc-body { padding-left: 20px; padding-right: 20px; }
    .table-wrap { overflow-x: auto; }
    .section-head { flex-wrap: wrap; padding-left: 14px; }
    .section-head .subtotal { margin-left: 0; }
    .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
    .adder-row .picker { min-width: 100%; }
    .page-head h1 { font-size: 22px; }
}

/* ==========================================================================
   v8: Ürün kataloğu filtre paneli
   ========================================================================== */
.cat-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 20px; align-items: start; }
.filter-panel { position: sticky; top: 20px; padding: 14px; max-height: calc(100vh - 40px); overflow-y: auto; margin: 0; }
.fp-search input { width: 100%; }
.fp-block { margin-top: 16px; }
.fp-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 6px 6px; }
.fp-item, .fp-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.fp-item .n, .fp-sub .n { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-item:hover, .fp-sub:hover { background: var(--surface-2); color: var(--ink); }
.fp-item.on { background: var(--dark); color: #fff; }
.fp-item.on .n { color: #c9bfae; }
.fp-subs { display: none; margin: 2px 0 6px 10px; padding-left: 8px; border-left: 2px solid var(--gold-soft); }
.fp-group.open .fp-subs { display: block; }
.fp-sub { font-size: 12.5px; padding: 4px 8px; }
.fp-item.zero, .fp-sub.zero { opacity: .38; }
.fp-item.zero:hover, .fp-sub.zero:hover { opacity: .7; }
.fp-sub.on { background: var(--gold-soft); color: var(--ink); font-weight: 500; }
.fp-brands .extra { display: none; }
.fp-brands.all .extra { display: flex; }
.cat-main { min-width: 0; }
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.chips-active { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.fchip { border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); border-radius: 20px; padding: 3px 10px; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.fchip:hover { background: #ecdcb8; }
.tb-right { display: flex; gap: 8px; align-items: center; }
.tb-right select.input { padding: 7px 10px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: none; background: transparent; padding: 7px 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.seg button.on { background: var(--dark); color: #fff; }
.seg button svg.i { width: 16px; height: 16px; }
.p-img .none svg.i { width: 34px; height: 34px; color: #d9cfbd; }
.p-list-meta { display: none; }
.more-wrap { text-align: center; margin: 18px 0; }
/* liste görünümü */
.product-grid.as-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-grid.as-list .p-card { flex-direction: row; align-items: center; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none; }
.product-grid.as-list .p-card:hover { box-shadow: none; background: #fcfaf6; }
.product-grid.as-list .p-img { width: 64px; height: 52px; flex: none; margin: 6px 0 6px 10px; border-radius: 8px; }
.product-grid.as-list .p-img img { max-height: 44px; max-width: 56px; }
.product-grid.as-list .p-img .none svg.i { width: 18px; height: 18px; }
.product-grid.as-list .p-img .actions { display: none; }
.product-grid.as-list .p-body { flex-direction: row; align-items: center; gap: 14px; padding: 8px 16px; }
.product-grid.as-list .p-cat { display: none; }
.product-grid.as-list .p-name { flex: 1; }
.product-grid.as-list .p-list-meta { display: block; font-size: 12.5px; color: var(--muted); width: 34%; }
.product-grid.as-list .p-price { margin: 0; padding: 0; width: 150px; text-align: right; }
@media (max-width: 1000px) {
    .cat-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; max-height: none; }
    .product-grid.as-list .p-list-meta { display: none; }
}
.cat-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 0 18px; align-items: start; }
.cat-card .table td { padding: 6px 14px; }
@media (max-width: 860px) { .cat-admin { grid-template-columns: 1fr; } }

/* ---------- v8: Fiyat listeleri ---------- */
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pl-list { padding: 6px 10px; }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.pl-row:last-child { border-bottom: none; }
.pl-badge { width: 42px; height: 42px; border-radius: 11px; background: var(--dark); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; letter-spacing: .04em; }
.pl-info { flex: 1; min-width: 0; }
.pl-info .t { font-weight: 600; }
.pl-info .m { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pl-note svg.i { width: 14px; height: 14px; color: var(--gold-2); cursor: help; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); cursor: pointer; text-align: center; margin-bottom: 14px; transition: border-color .15s, background .15s; }
.dropzone svg.i { width: 26px; height: 26px; color: var(--gold); }
.dropzone .t { font-weight: 500; font-size: 13.5px; }
.dropzone .s { font-size: 12px; color: var(--muted); }
.dropzone input { display: none; }
.dropzone.over, .dropzone:hover { border-color: var(--gold); background: var(--gold-soft); }
.dropzone.has { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.help-box { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
.help-box ul { margin: 6px 0; padding-left: 18px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.opt input { margin-top: 3px; accent-color: var(--gold-2); width: 16px; height: 16px; }
.opt .muted { font-size: 12.5px; }
.up { color: var(--danger); font-weight: 600; }
.down { color: var(--ok); font-weight: 600; }
@media (max-width: 1180px) { .pl-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .opt-grid { grid-template-columns: 1fr; } .pl-row { flex-wrap: wrap; } }
a.p-card { color: var(--ink); }
a.p-card:hover { color: var(--ink); }
.p-img .none { font-size: 11.5px; color: #c4b8a3; letter-spacing: .04em; }
.product-grid.as-list .p-img .none { font-size: 9px; }
.side nav .nav-sep { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #6f675b; padding: 16px 12px 6px; }
.side { overflow-y: auto; }
.side-user .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
a.avatar { color: var(--dark); }
.settings-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 18px; align-items: start; }
.settings-grid .span-all { grid-column: 1 / -1; }
code { font-size: 12px; background: var(--gold-soft); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- v8: teklif ekranı eklemeleri ---------- */
.section-card.is-optional { border-style: dashed; border-color: #d9c28f; }
.section-card.is-optional .section-head { background: repeating-linear-gradient(135deg, #fbf6ea, #fbf6ea 10px, #f7efdc 10px, #f7efdc 20px); }
.opt-chip { background: #fff3d6; color: #8a6412; }
.icon-btn.on { color: var(--gold-2); background: var(--gold-soft); }
.totals .grand .vat { font-size: 11.5px; color: #a89f8e; margin-top: 4px; }
.totals .opt-row { margin-top: 8px; color: #8a6412; font-size: 12.5px; border-bottom: none; }
.totals .opt-row svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.margin-card .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.margin-card .row:last-of-type { border-bottom: none; }
.rev-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.rev-row:hover { background: var(--surface-2); }
.rev-row.on { background: var(--gold-soft); font-weight: 600; }
.hist-row { font-size: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.hist-row:last-child { border-bottom: none; }
.tpl-insert { display: flex; gap: 8px; align-items: center; }
.cur-warn { font-size: 10.5px; color: var(--danger); font-weight: 500; text-align: right; }
.badge svg.i { width: 12px; height: 12px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 0 18px; align-items: start; }
.attach-row { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; margin-bottom: 14px; }
.attach-row svg.i { color: var(--gold-2); }
@media (max-width: 860px) { .tpl-grid { grid-template-columns: 1fr; } }
.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat.warn { border-color: #ecc98a; background: #fffaf0; }
.stat.warn .val { color: #a0661b; }
@media (max-width: 1180px) { .stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   v8.2 — Renkli görsel kimlik
   Her menü bölümünün bir vurgu rengi var (--accent, base.html'de <main> üstünde),
   kategoriler (--cc) ve markalar (--bc) kendi renklerini taşır.
   ========================================================================== */
.main { --accent: var(--gold); }
.side nav a svg { color: var(--nc, currentColor); opacity: .85; }
.side nav a:hover svg { opacity: 1; }
.side nav a.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 30%, transparent), color-mix(in srgb, var(--nc) 6%, transparent));
    box-shadow: inset 3px 0 0 var(--nc);
}
.side nav a.active svg { color: var(--nc); filter: brightness(1.25); }

/* Sayfa başlığı: bölüm ikonu rozeti + vurgu çizgisi */
.ph-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ph-ic {
    width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, #fff), color-mix(in srgb, var(--accent) 72%, #000));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.ph-ic svg.i { width: 24px; height: 24px; }
.page-head h1 { background: linear-gradient(90deg, var(--ink) 55%, color-mix(in srgb, var(--accent) 80%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head { padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px; background: var(--accent); }

/* Kartlar: renkli çerçeve ve başlık şeridi */
.card { border-color: color-mix(in srgb, var(--accent) 16%, var(--line)); }
.card-head {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, #fff), #fff 75%);
    border-bottom-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head h2::before, .card-head h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); flex: none; }
.table th { background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); color: color-mix(in srgb, var(--accent) 45%, var(--ink-2)); }

/* Özet kartları */
.stat { border-top: 3px solid var(--sc, var(--accent)); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--sc, var(--accent)) 9%, transparent); pointer-events: none; }
.stat .val { color: var(--sc, var(--ink)); }
a.stat:hover { border-color: color-mix(in srgb, var(--sc, var(--accent)) 50%, var(--line)); border-top-color: var(--sc, var(--accent)); }
.stat.dark { border-top-color: var(--gold); }
.stat.dark::after { background: rgba(184,147,90,.14); }

/* Marka rozeti: logo varsa logo, yoksa marka renginde baş harfler */
.brand-mark {
    display: inline-grid; place-items: center; flex: none; position: relative; overflow: hidden;
    width: 26px; height: 26px; border-radius: 7px; font-size: 10px; font-weight: 700; letter-spacing: .02em; line-height: 1;
    color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--bc, #b8935a) 85%, #fff), color-mix(in srgb, var(--bc, #b8935a) 80%, #000));
}
.brand-mark.has-logo { background: #fff; border: 1px solid var(--line); padding: 2px; }
.brand-mark img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.brand-mark.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; }
.brand-mark.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; padding: 4px; }
.brand-mark.lg.has-logo { padding: 5px; }
.brand-mark.xl { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; box-shadow: 0 6px 18px color-mix(in srgb, var(--bc) 30%, transparent); }
.brand-mark.xl.has-logo { padding: 8px; }
.brand-mark.corner { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.brand-mark.corner.has-logo { width: auto; min-width: 26px; max-width: 70px; padding: 3px 5px; }
label.brand-mark { cursor: pointer; }
label.brand-mark .bm-edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(26,24,21,.55); color: #fff; opacity: 0; transition: opacity .15s; }
label.brand-mark:hover .bm-edit { opacity: 1; }
label.brand-mark .bm-edit svg.i { width: 18px; height: 18px; }
.brand-cell { display: flex; align-items: center; gap: 12px; }
.brand-tools { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.brand-tools .linkish { font-size: 11.5px; padding: 0; color: var(--muted); }
.color-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.color-pick input[type=color] { width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-2); border-radius: 5px; background: none; cursor: pointer; }
.color-pick input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input[type=color]::-webkit-color-swatch { border: none; border-radius: 4px; }
.pl-row .brand-mark.lg { width: 46px; height: 46px; }

/* Ürün kartı: kategori renginde üst şerit ve etiket */
.p-card { --cc: var(--gold); border-top: 3px solid var(--cc); }
.p-card:hover { border-color: color-mix(in srgb, var(--cc) 45%, var(--line)); border-top-color: var(--cc); }
.p-img { background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 5%, #faf7f1), color-mix(in srgb, var(--cc) 11%, #efe8db)); }
.p-cat { color: color-mix(in srgb, var(--cc) 85%, #000); display: flex; align-items: center; gap: 6px; }
.p-cat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex: none; }
.product-grid.as-list .p-card { border-top: none; box-shadow: inset 3px 0 0 var(--cc); }
.product-grid.as-list .brand-mark.corner { display: none; }

/* Filtre paneli */
.fp-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cat-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--cc); background: color-mix(in srgb, var(--cc) 13%, #fff); transition: background .15s, color .15s; }
.cat-ic svg.i { width: 14px; height: 14px; }
.fp-item.on .cat-ic { background: var(--cc); color: #fff; }
.fp-item.on { background: var(--dark); }
.fp-title { display: flex; align-items: center; gap: 8px; }
.fp-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fp-subs { border-left-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }

/* Marka şeridi (Ürünler'de marka seçilince) */
.brand-banner {
    --bc: var(--gold); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
    background: linear-gradient(115deg, color-mix(in srgb, var(--bc) 15%, #fff), #fff 62%);
    border: 1px solid color-mix(in srgb, var(--bc) 30%, var(--line)); box-shadow: var(--shadow);
}
.brand-banner[hidden] { display: none; }
.bb-top { display: flex; align-items: center; gap: 16px; }
.bb-t { flex: 1; min-width: 0; }
.bb-name { font-size: 22px; font-weight: 700; line-height: 1.15; color: color-mix(in srgb, var(--bc) 55%, var(--ink)); }
.bb-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bb-x { border: none; background: rgba(255,255,255,.7); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.bb-x:hover { background: #fff; color: var(--danger); }
.bb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bb-cat { --cc: var(--gold); border: 1px solid color-mix(in srgb, var(--cc) 35%, #fff); background: color-mix(in srgb, var(--cc) 9%, #fff); color: var(--ink); border-radius: 30px; padding: 4px 12px; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.bb-cat b { color: var(--cc); font-weight: 700; margin-left: 2px; }
.bb-cat:hover { border-color: var(--cc); }
.bb-cat.on { background: var(--cc); border-color: var(--cc); color: #fff; }
.bb-cat.on b { color: #fff; }

@media (max-width: 720px) {
    .ph-ic { width: 40px; height: 40px; border-radius: 11px; }
    .ph-ic svg.i { width: 20px; height: 20px; }
}
.side-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.side-title > span:first-child { display: flex; align-items: center; gap: 10px; }
.side-title > span:first-child::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); }
.section-head .title { display: inline-flex; align-items: center; gap: 10px; }
.section-head .title::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); }
/* Geniş tablolar kart dışına taşmasın */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.brand-cell .strong { white-space: nowrap; }
#markalar .table td { vertical-align: middle; }
/* Fiyat listeleri: geçmiş tablosu ve katlanır yardım */
#gecmis .hist-extra { display: none; }
#gecmis.all .hist-extra { display: table-row; }
details.help-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.help-box summary::-webkit-details-marker { display: none; }
details.help-box summary::after { content: "+"; font-weight: 600; color: var(--muted); }
details.help-box[open] summary::after { content: "−"; }
details.help-box[open] summary { margin-bottom: 6px; }
/* Fiyat listeleri v8.5: üstte yatay yükleme çubuğu, iki sütunlu hazır listeler */
.upload-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.upload-row .dropzone { margin: 0; justify-content: center; padding: 16px 12px; }
.upload-fields { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr .8fr; gap: 12px 14px; align-content: center; }
.upload-fields .field { margin: 0; }
.upload-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.help-inline { position: relative; font-size: 12.5px; color: var(--muted); }
.help-inline summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.help-inline summary::-webkit-details-marker { display: none; }
.help-inline summary:hover { color: var(--ink); }
.help-inline svg.i { width: 15px; height: 15px; }
.help-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(460px, 80vw); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; color: var(--ink-2); display: grid; gap: 8px; line-height: 1.5; }
.help-pop p { margin: 0; }
.pl-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; padding: 6px 16px; }
.pl-list-2 .pl-row { border-bottom: 1px solid var(--line); }
.pl-list-2 .pl-row:nth-last-child(-n+2):nth-child(odd), .pl-list-2 .pl-row:last-child { border-bottom: none; }
.pl-info .pl-state { margin-top: 4px; }
.pl-row form { flex: none; }
@media (max-width: 1100px) {
    .upload-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pl-list-2 { grid-template-columns: 1fr; }
    .pl-list-2 .pl-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
    .upload-row { grid-template-columns: 1fr; }
}
.side-brand .sub .ver { letter-spacing: .08em; color: #6f675a; margin-left: 4px; text-transform: none; }

/* Kullanıcılar v9.1: yatay "yeni kullanıcı" + kullanıcı kartları */
.newuser-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr .8fr 1fr 1fr auto; gap: 12px 14px; align-items: end; }
.newuser-grid .field { margin: 0; }
.newuser-btn .btn { height: 42px; white-space: nowrap; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.user-card { --uc: var(--gold); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 14px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.user-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 64px; background: linear-gradient(120deg, color-mix(in srgb, var(--uc) 16%, #fff), transparent 75%); pointer-events: none; }
.user-card > * { position: relative; }
.user-card.passive { opacity: .6; }
.user-card.passive::before { filter: grayscale(1); }
.user-card.editing { border-color: color-mix(in srgb, var(--uc) 45%, var(--line)); box-shadow: var(--shadow-lg); opacity: 1; }
.uc-top { display: flex; align-items: center; gap: 12px; }
.uc-avatar { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 19px; color: #fff;
    background: linear-gradient(140deg, color-mix(in srgb, var(--uc) 85%, #fff), color-mix(in srgb, var(--uc) 78%, #000)); box-shadow: 0 4px 12px color-mix(in srgb, var(--uc) 30%, transparent); }
.uc-id { flex: 1; min-width: 0; }
.uc-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-me { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--uc); background: color-mix(in srgb, var(--uc) 12%, #fff); padding: 1px 7px; border-radius: 10px; vertical-align: 2px; }
.uc-user { font-size: 12.5px; color: var(--muted); }
.uc-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.role-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #efebe3; color: #6f675b; white-space: nowrap; }
.role-badge svg.i { width: 13px; height: 13px; }
.role-badge.admin { background: var(--gold-soft); color: var(--gold-2); }
.uc-mail { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-mail svg.i { width: 15px; height: 15px; color: var(--muted); flex: none; }
.uc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.uc-stats > div { padding: 8px 10px; display: grid; gap: 1px; border-right: 1px solid var(--line); background: var(--surface-2); }
.uc-stats > div:last-child { border-right: none; }
.uc-stats b { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.uc-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.uc-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-actions .linkish { display: inline-flex; align-items: center; gap: 6px; }
.uc-actions .linkish svg.i { width: 15px; height: 15px; }
.uc-edit { display: none; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.user-card.editing .uc-edit { display: block; }
.user-card.editing .uc-actions .btn { display: none; }
.uc-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.uc-edit-grid .field { margin: 0; }
.uc-edit-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 1250px) { .newuser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .newuser-btn { grid-column: 1 / -1; } }
@media (max-width: 640px) { .newuser-grid { grid-template-columns: 1fr; } .user-grid { grid-template-columns: 1fr; } .uc-edit-grid { grid-template-columns: 1fr; } }
.uc-login { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.uc-login svg.i { width: 14px; height: 14px; }
.uc-stats b { font-size: 17px; }

/* Ayarlar v9.2: solda açıklama, sağda alanlar; alt kısımda sabit kaydet çubuğu */
.set-nav { gap: 4px; }
.set-nav a { font-size: 13px; padding: 6px 12px; border-radius: 20px; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.set-nav a:hover { border-color: var(--accent); color: var(--ink); }
.set-section { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.set-section:first-of-type { padding-top: 6px; }
.set-intro { display: grid; gap: 8px; align-content: start; }
.set-intro h2 { margin: 0; font-size: 18px; font-weight: 700; }
.set-intro p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.set-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, #fff), color-mix(in srgb, var(--accent) 72%, #000));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.set-ic svg.i { width: 20px; height: 20px; }
.set-body { margin: 0; padding: 22px 24px; border-top: 3px solid var(--accent); }
.set-body .field:last-child { margin-bottom: 0; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.set-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.set-grid .field { margin: 0; }
.set-grid .span-2 { grid-column: span 2; }
.set-check { align-self: end; padding-bottom: 10px; }
.set-link { align-self: center; }
.set-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 20px; justify-self: start; }
.set-status svg.i { width: 14px; height: 14px; }
.set-status.ok { background: var(--ok-soft); color: var(--ok); }
.set-status.off { background: #fdf0dd; color: #a0661b; }
.set-tokens { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.set-tokens span { width: 100%; }
.set-tokens code { font-size: 11.5px; background: color-mix(in srgb, var(--accent) 10%, #fff); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); padding: 2px 6px; border-radius: 6px; }
.set-test { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.set-test-t { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.set-test-t svg.i { color: var(--accent); }
.set-test-row { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 440px; }
.set-test-row .input { flex: 1; }
.save-bar { position: sticky; bottom: 0; z-index: 30; margin: 22px -4px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(30,25,15,.08); } /* v13.12: düz zemin, arkası görünmez */
.save-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state svg.i { width: 15px; height: 15px; color: var(--ok); }
.save-bar.dirty .save-state { color: #a0661b; font-weight: 500; }
.save-bar.dirty .btn { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
@media (max-width: 1000px) {
    .set-section { grid-template-columns: 1fr; gap: 14px; }
    .set-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .set-grid, .set-grid-4 { grid-template-columns: 1fr; }
    .set-grid .span-2 { grid-column: auto; }
    .set-nav { display: none; }
}

/* ==========================================================================
   v10 — Seçenekli teklif ve kontrol listesi
   ========================================================================== */
:root { --opt-A: #3f6fb5; --opt-B: #b8935a; --opt-C: #7a4fa0; --opt-D: #2f86a6; }
.opt-letter { --oc: var(--gold); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
    background: var(--oc); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1; }
.opt-letter.sm { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
.opt-letter.xs { width: 19px; height: 19px; font-size: 10.5px; border-radius: 6px; }
.opt-letter.common { background: #efebe3; color: #8a8173; font-size: 15px; }

/* Seçenek yok: davet kutusu */
.opt-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px;
    border: 1px dashed color-mix(in srgb, var(--gold) 50%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.opt-cta .t { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.opt-cta .t b { display: block; font-size: 14px; }
.opt-cta .t span { font-size: 12.5px; color: var(--muted); }
.opt-cta-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); flex: none; }

/* Seçenek sekmeleri */
.opt-bar { padding: 8px; }
.opt-tabs { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; }
.opt-tab { --oc: var(--ink-2); display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
    font-family: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink); text-align: left; }
.opt-tab:hover { border-color: color-mix(in srgb, var(--oc) 50%, var(--line)); }
.opt-tab.on { border-color: var(--oc); background: color-mix(in srgb, var(--oc) 9%, #fff); box-shadow: inset 0 -3px 0 var(--oc); }
.opt-tab .n { font-size: 11.5px; color: var(--muted); }
.opt-tab .opt-l { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.opt-tab .opt-p { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.opt-tab .rec svg.i, .opt-cmp .l svg.i { width: 13px; height: 13px; color: var(--gold); fill: var(--gold); }
.opt-manage-btn { margin-left: auto; border: 1px solid transparent; background: none; border-radius: 10px; width: 40px; cursor: pointer; color: var(--muted); }
.opt-manage-btn:hover, .opt-manage-btn.on { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.opt-manage { display: none; margin: 10px 6px 4px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.opt-manage.show { display: block; }
.opt-manage-rows { display: grid; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-row .grow { flex: 1; }
.opt-row .grow .input { width: 100%; }
.opt-row .opt-count { font-size: 12px; white-space: nowrap; }
.icon-btn.on svg.i { color: var(--gold); fill: var(--gold); }
.opt-manage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.opt-manage-foot .adder-row .input { min-width: 220px; }
.danger-link { color: var(--danger); }

/* Seçeneğe ait bölümler */
.section-card.has-opt { border-left: 4px solid var(--oc); }
.section-card.has-opt .section-head { background: linear-gradient(90deg, color-mix(in srgb, var(--oc) 12%, #fff), rgba(255,255,255,.2)); }
.section-card.has-opt .section-head .title::before { background: var(--oc); }
.section-card[hidden] { display: none; }
.opt-select { font-family: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; color: var(--ink-2); max-width: 150px; }
.mini-menu { position: relative; }
.mini-menu > summary { list-style: none; }
.mini-menu > summary::-webkit-details-marker { display: none; }
.mini-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.mini-menu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: none; font-family: inherit;
    font-size: 13px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.mini-menu-pop button:hover { background: var(--surface-2); }
.new-sec-opt { width: 100%; font-size: 12.5px; order: -1; }

/* Toplamlar: seçenek karşılaştırması */
.opt-compare { display: grid; gap: 6px; margin-bottom: 14px; }
.opt-cmp { --oc: var(--gold); display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--line); background: var(--surface-2);
    border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.opt-cmp .opt-letter { background: var(--oc); }
.opt-cmp .l { flex: 1; text-align: left; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.opt-cmp .p { font-weight: 700; }
.opt-cmp.on { border-color: var(--oc); background: color-mix(in srgb, var(--oc) 10%, #fff); box-shadow: inset 3px 0 0 var(--oc); }
.opt-totals-h { --oc: var(--gold); display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.opt-totals-h .opt-letter { background: var(--oc); }
.accept-opt { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.accept-opt select { font-family: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }

/* Kontrol listesi */
.checks-card .side-title { margin-bottom: 10px; }
.chk-count { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--info-soft); color: var(--info); }
.chk-count.warn { background: #fdf0dd; color: #a0661b; }
.chk-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.chk-ok svg.i { width: 14px; height: 14px; }
.chk { border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.chk-warn { background: #fff8ec; border-color: #f0d6a8; }
.chk-tip { background: color-mix(in srgb, var(--info) 5%, #fff); border-color: color-mix(in srgb, var(--info) 18%, var(--line)); }
.chk-t { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chk-t svg.i { width: 15px; height: 15px; flex: none; }
.chk-warn .chk-t svg.i { color: #b8741f; }
.chk-tip .chk-t svg.i { color: var(--info); }
.chk-d { font-size: 12.5px; color: var(--ink-2); margin: 3px 0 6px 21px; line-height: 1.45; }
.chk-a { display: flex; align-items: center; gap: 12px; margin-left: 21px; flex-wrap: wrap; }
.chk-a .linkish { padding: 0; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.chk-a .linkish svg.i { width: 13px; height: 13px; }
.chk-hide { margin-left: auto; }
.muted-link { color: var(--muted) !important; font-weight: 400 !important; }
.chk-reset { margin-top: 4px; }
.chk-reset .linkish { font-size: 12px; padding: 0; }
@media (max-width: 720px) { .opt-tab { flex: 1 1 100%; } .opt-manage-btn { width: 100%; height: 36px; } }
.opt-range { font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.opt-totals-h .muted { margin-left: auto; font-weight: 400; font-size: 11.5px; }
.chk[hidden] { display: none; }
/* v10.1: teklif geçmişi (katlanır) */
.hist-card summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 14px; }
.hist-card summary::-webkit-details-marker { display: none; }
.hist-card summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.hist-card summary svg.i { width: 16px; height: 16px; color: var(--muted); }
.hist-n { font-size: 11.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; color: var(--muted); }
.hist-card[open] summary { margin-bottom: 10px; }
.hist-list { display: grid; gap: 10px; }
.hist-item { display: flex; gap: 10px; align-items: flex-start; }
.hist-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--gold-2); }
.hist-ic svg.i { width: 14px; height: 14px; }
.hist-t { font-size: 13px; line-height: 1.35; }
.hist-m { font-size: 11.5px; color: var(--muted); }
.hist-all { display: inline-block; margin-top: 10px; font-size: 12.5px; padding: 0; }
/* v10.2: Teklif belgesi kartı — format seçimi */
.fmt-pick { display: grid; gap: 8px; margin-bottom: 12px; }
.fmt-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.fmt-opt:hover { border-color: var(--line-2); }
.fmt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt-opt:has(input:checked) { border-color: #c0533f; background: color-mix(in srgb, #c0533f 6%, #fff); box-shadow: inset 3px 0 0 #c0533f; }
.fmt-opt:has(input:focus-visible) { outline: 2px solid #c0533f; outline-offset: 2px; }
.fmt-t { display: grid; gap: 2px; min-width: 0; }
.fmt-t b { font-size: 13px; }
.fmt-t small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.fmt-ic { flex: none; border: 1.5px solid var(--line-2); border-radius: 3px; background: repeating-linear-gradient(180deg, #fff 0 5px, var(--surface-2) 5px 6px); margin-top: 2px; }
.fmt-klasik { width: 30px; height: 19px; background: linear-gradient(90deg, #e7dab6 0 40%, #fff 40%); }
.fmt-kompakt { width: 18px; height: 25px; }
.fmt-opt:has(input:checked) .fmt-ic { border-color: #c0533f; }
.pdf-mail { margin-top: 8px; }
/* v10.3: Kontrol listesi — ana alanda tam genişlik, açılır şerit */
.checks-bar { margin-bottom: 18px; overflow: hidden; }
.checks-bar > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; flex-wrap: wrap; }
.checks-bar > summary::-webkit-details-marker { display: none; }
.checks-bar.all-ok > summary { cursor: default; }
.cb-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--info-soft); color: var(--info); }
.cb-ic svg.i { width: 16px; height: 16px; }
.checks-bar.has-warn .cb-ic { background: #fdf0dd; color: #b8741f; }
.checks-bar.all-ok .cb-ic { background: var(--ok-soft); color: var(--ok); }
.cb-t { font-weight: 700; font-size: 14.5px; }
.cb-chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.cb-chip.warn { background: #fdf0dd; color: #a0661b; }
.cb-chip.tip { background: var(--info-soft); color: var(--info); }
.cb-ok { font-size: 13px; color: var(--muted); }
.cb-hint { font-size: 13px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--gold-2); }
.cb-toggle svg.i { width: 15px; height: 15px; transition: transform .15s; }
.checks-bar[open] .cb-toggle svg.i { transform: rotate(180deg); }
.cb-toggle .opened, .checks-bar[open] .cb-toggle .closed { display: none; }
.checks-bar[open] .cb-toggle .opened { display: inline; }
.checks-bar[open] .cb-hint { visibility: hidden; }
.checks-bar.has-warn { border-color: #f0d6a8; }
.cb-body { border-top: 1px solid var(--line); padding: 14px 16px 12px; background: var(--surface-2); }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cb-grid .chk { margin: 0; background: var(--surface); }
.cb-grid .chk-warn { background: #fff8ec; }
.cb-grid .chk-tip { background: #fff; }
@media (max-width: 640px) { .cb-hint { display: none; } }
/* v10.4: vitrin menü öğesi ve rol rozeti */
.side nav a .nav-ext { margin-left: auto; font-size: 12px; opacity: .55; }
.role-badge.vitrin { background: #fdecdc; color: #a8561a; }

/* =====================================================================
   v11 — Sade teklif ekranı (.qx)
   ===================================================================== */
.qx { --qh: 120px; }
.qx [hidden] { display: none !important; }
.qx-head { position: sticky; top: 0; z-index: 40; margin: -30px -34px 16px; padding: 16px 34px 14px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); }
.qx-head .crumb { margin-bottom: 2px; }
.qx-head-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.qx-id { min-width: 0; flex: 1 1 420px; }
.qx-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qx-title h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.qx-status { cursor: pointer; list-style: none; user-select: none; }
.qx-status svg.i { width: 13px; height: 13px; margin-left: -2px; }
.qx-status::-webkit-details-marker, .qx-chip::-webkit-details-marker { display: none; }
.qx-chip { cursor: pointer; list-style: none; gap: 5px; }
.qx-chip svg.i { width: 13px; height: 13px; }
.qx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.qx-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.qx-meta svg.i { width: 15px; height: 15px; color: var(--muted); }
.qx-meta a { color: inherit; } .qx-meta a:hover { color: var(--gold-2); }
.qx-link { background: none; border: none; padding: 0; color: var(--gold-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.qx-link:hover { text-decoration: underline; }
.qx-link svg.i { width: 15px; height: 15px; }
.qx-link.all-folded svg.i { transform: rotate(180deg); }
.qx-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.qx-total { text-align: right; margin-right: 8px; line-height: 1.15; }
.qx-total b { font-size: 21px; font-weight: 700; display: block; }
.qx-total small { font-size: 11.5px; color: var(--muted); }
.qx-actions .btn.on { background: var(--gold-soft); border-color: var(--gold); }
.qx-icon-btn { padding-left: 11px; padding-right: 11px; }
.qx-alert { margin-bottom: 14px; }

/* Menüler */
.qx-menu { position: relative; }
.qx-menu > summary { list-style: none; }
.qx-menu > summary::-webkit-details-marker { display: none; }
.qx-menu > summary.btn svg.i:last-child:not(:first-child) { width: 14px; height: 14px; margin-left: -2px; }
.qx-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 250px; max-width: min(330px, calc(100vw - 32px));
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.qx-pop.left { right: auto; left: 0; }
.qx-pop form { margin: 0; }
.qx-pop > a, .qx-pop button:not(.btn), .qx-pop form > button:not(.btn) { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none;
    font-family: inherit; font-size: 13.5px; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 400; }
.qx-pop > a:hover, .qx-pop button:not(.btn):hover { background: var(--surface-2); }
.qx-pop .cur { background: var(--gold-soft); }
.qx-pop small { margin-left: auto; color: var(--muted); font-size: 11.5px; padding-left: 10px; }
.qx-pop svg.i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.qx-pop .danger, .qx-pop .danger svg.i { color: var(--danger); }
.qx-pop .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.qx-pop .lbl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 10px 3px; }
.qx-pop .grow { flex: 1; }
.qx-pop .pop-inline { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13.5px; }
.qx-pop .pop-inline input { width: 58px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13px; text-align: right; }
.qx-pop .pop-note { font-size: 11.5px; color: var(--muted); padding: 2px 10px 6px; line-height: 1.4; }
.qx-pop .badge { font-size: 11.5px; }
.status-menu .qx-pop { min-width: 270px; }

/* Gövde */
.qx-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.qx-side { position: sticky; top: calc(var(--qh) + 16px); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--qh) - 32px); overflow-y: auto; padding-bottom: 2px; }
.qx-side .card { margin-bottom: 0; }
.qx-sec, .qx-row, #kontrol, #hizmetler { scroll-margin-top: calc(var(--qh) + 14px); }

.qx-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.qx-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.qx-pill { --oc: var(--ink); display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px;
    padding: 6px 13px; font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.qx-pill:hover { border-color: color-mix(in srgb, var(--oc) 45%, var(--line)); }
.qx-pill .opt-letter { background: var(--oc); color: #fff; }
.qx-pill .p { color: var(--muted); font-size: 12px; }
.qx-pill .rec svg.i { width: 12px; height: 12px; color: var(--gold); fill: var(--gold); }
.qx-pill .badge { font-size: 10.5px; padding: 1px 7px; }
.qx-pill.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.qx-pill.on .p { color: #cbbfa8; }
.qx-count { font-size: 13px; }
.qx-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.opt-manage-card { margin-bottom: 14px; }

/* Bölüm */
.qx-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.qx-sec.is-optional { border-style: dashed; }
.qx-sec-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 10px; min-height: 58px; }
.qx-sec-h .opt-letter { background: var(--oc, var(--gold)); color: #fff; }
.qx-sec-h .opt-letter.common { background: #efebe3; color: #8a8173; }
.qx-sec-h .t { font-weight: 700; font-size: 15.5px; cursor: pointer; }
.qx-sec-h .c { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.qx-sec-h .st { margin-left: auto; font-weight: 700; font-size: 15px; }
.qx-fold { width: 30px; height: 30px; border: none; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.qx-fold:hover { background: var(--surface-2); color: var(--ink); }
.qx-fold svg.i { width: 17px; height: 17px; transition: transform .15s; }
.qx-sec.folded .qx-fold svg.i { transform: rotate(-90deg); }
.qx-sec.folded .qx-sec-b { display: none; }
.qx-sec-h .rename-form { display: none; gap: 6px; align-items: center; flex: 1; }
.qx-sec-h .rename-form input { flex: 1; min-width: 120px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; font-weight: 600; }
.qx-sec-h.renaming .rename-form { display: flex; }
.qx-sec-h.renaming .t, .qx-sec-h.renaming .c { display: none; }
.qx-sec-b { border-top: 1px solid var(--line); }

.qx-hdr, .qx-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px 110px 64px 118px 92px; gap: 10px; align-items: center; padding: 0 12px 0 14px; }
.qx-hdr { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 9px; padding-bottom: 7px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.qx-hdr .r, .qx-row .r { text-align: right; }
.qx-row { min-height: 58px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.qx-row:hover { background: #fcfaf6; }
.qx-row .th { width: 44px; height: 38px; border-radius: 7px; background: #f6f2ea; display: grid; place-items: center; overflow: hidden; }
.qx-row .th img { max-width: 40px; max-height: 34px; object-fit: contain; }
.qx-row.svc .th { background: none; }
.qx-row .n { font-size: 14px; line-height: 1.3; min-width: 0; }
.qx-row .n .br { color: var(--muted); }
.qx-row .n b { font-weight: 600; }
.qx-row .n small { display: block; font-size: 11.5px; color: var(--muted); }
.qx-row .f .v { font-size: 13.5px; }
.qx-row .f .disc { color: var(--gold-2); font-size: 12.5px; }
.qx-row .tot { text-align: right; font-weight: 700; font-size: 14px; }
.qx-row .tot .old { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.qx-row .tools { display: flex; justify-content: flex-end; align-items: center; }
.qx-row .hov { display: inline-flex; opacity: 0; transition: opacity .12s; }
.qx-row .hov form { display: inline-flex; }
.qx-row:hover .hov, .qx-row:focus-within .hov { opacity: 1; }
.qx-row .e, .qx-ok { display: none; }
.qx-row .e { width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13.5px; text-align: right; background: #fff; }
.qx-row .n .e { text-align: left; margin-top: 4px; }
.qx-row .e:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18); }
.qx-row.editing { background: #fdf8ee; cursor: default; }
.qx-row.editing .e, .qx-row.editing .qx-ok { display: block; }
.qx-row.editing .v { display: none; }
.qx-row.editing .hov { display: none; }
.qx-ok { background: var(--gold); color: #fff; border: none; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qx-sec-f { padding: 10px 14px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qx-add { background: none; border: none; color: var(--gold-2); font: inherit; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; cursor: pointer; }
.qx-add:hover { color: var(--ink); }
.qx-add svg.i { width: 16px; height: 16px; }
.qx-adder { width: 100%; }
.qx-svc .qx-sec-b { border-top: 1px solid var(--line); }

/* Yeni bölüm */
.qx-newsec { padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.5); margin-bottom: 14px; display: grid; gap: 10px; }
.qx-newsec.first { padding: 22px; background: var(--surface); }
.qx-newsec-t { display: grid; gap: 2px; } .qx-newsec-t b { font-size: 15.5px; }
.qx-newsec-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qx-newsec-row input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; }
.qx-newsec-row select { width: auto; min-width: 190px; }
.qx-newsec .chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qx-newsec .chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 3px 11px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.qx-newsec .chips button:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.qx-newsec .new-sec-opt { font-size: 12px; margin-right: 4px; }

/* Sağ panel: kontrol listesi */
.qx-checks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.qx-checks.has-warn { border-color: #f0d6a8; background: #fffaf0; }
.qx-checks > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 13px 14px; cursor: pointer; }
.qx-checks > summary::-webkit-details-marker { display: none; }
.qx-checks .cb-ic { display: grid; place-items: center; color: var(--info); }
.qx-checks.has-warn .cb-ic { color: #b8741f; }
.qx-checks.all-ok .cb-ic { color: var(--ok); }
.qx-checks .cb-ic svg.i { width: 18px; height: 18px; }
.qx-checks .cb-t { font-weight: 600; font-size: 14px; }
.qx-checks .cb-n { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.qx-checks .cb-n b { color: #a0661b; }
.qx-checks .cb-n.ok { color: var(--ok); }
.qx-checks .cb-body { padding: 0 10px 10px; }
.qx-checks .chk { margin-bottom: 6px; }
.qx-side .totals .side-note svg.i { width: 13px; height: 13px; vertical-align: -2px; color: var(--ok); }

/* Önizleme */
.qx-pv .pvbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.pvbar .lbl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pvbar .grow { flex: 1; }
.pvseg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pvseg button { border: none; background: none; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.pvseg button small { color: var(--muted); font-size: 11.5px; }
.pvseg button.on { background: var(--dark); color: #fff; font-weight: 600; }
.pvseg button.on small { color: #cbbfa8; }
.pvseg .opt-letter { background: var(--oc); color: #fff; }
.pvnote { font-size: 12.5px; color: var(--muted); margin: 8px 4px 12px; }
.pvnote b { color: var(--ink-2); }
.pv-frame-wrap { position: relative; background: #5b5650; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pv-frame { display: block; width: 100%; height: calc(100vh - var(--qh) - 150px); min-height: 520px; border: 0; background: #5b5650; }
.pv-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #efe7d8; font-size: 13.5px; background: #5b5650; }
.pv-loading .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold); animation: qxspin 0.8s linear infinite; }
@keyframes qxspin { to { transform: rotate(360deg); } }

/* Çekmeceler */
.qx-drawer-bg { position: fixed; inset: 0; background: rgba(20,18,15,.3); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.qx-drawer-bg.open { opacity: 1; pointer-events: auto; }
.qx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); z-index: 81; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; visibility: hidden; }
.qx-drawer.open { transform: none; visibility: visible; }
.qx-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.qx-drawer-h h2 { margin: 0; font-size: 17px; }
.qx-drawer-b { padding: 16px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.qx-drawer-b .grid-2 { gap: 0 12px; }
.qx-drawer .terms-box summary { list-style: none; margin: 4px 0 8px; }
.qx-drawer-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 14px; position: sticky; bottom: -16px; background: var(--surface); padding-bottom: 4px; }

@media (max-width: 1180px) {
    .qx-body { grid-template-columns: minmax(0, 1fr); }
    .qx-side { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
    .qx-head { top: 50px; margin: -20px -16px 14px; padding: 12px 16px; }
    .qx-title h1 { font-size: 20px; }
    .qx-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
    .qx-total { margin-right: auto; text-align: left; }
    .qx-meta .hide-sm { display: none; }
    .qx-hdr, .qx-row { grid-template-columns: 40px minmax(0, 1fr) 70px 92px 0; gap: 8px; padding: 0 10px; }
    .qx-hdr .hide-sm, .qx-row .hide-sm { display: none; }
    .qx-row .tools { position: absolute; right: 8px; bottom: 4px; }
    .qx-row.editing { grid-template-columns: 40px minmax(0, 1fr) 70px 92px; padding-bottom: 44px; }
    .qx-row.editing .hide-sm { display: block; }
    .qx-row.editing .f.hide-sm { grid-row: 2; }
    .qx-row .hov { opacity: 1; }
    .qx-row:not(.editing) .hov { display: none; }
    .qx-pop { position: fixed; left: 12px !important; right: 12px !important; top: auto; bottom: 12px; max-width: none; max-height: 70vh; overflow-y: auto; }
    .pv-frame { height: 70vh; }
}
.qx .opt-letter { --oc: inherit; background: var(--oc, var(--gold)); }
.qx .opt-letter.common { background: #efebe3; color: #8a8173; }
.qx-head { background: color-mix(in srgb, var(--bg) 97%, transparent); }
.qx-hdr, .qx-row { grid-template-columns: 48px minmax(0, 1fr) 90px 104px 60px 112px 78px; }
.qx-toolbar { flex-wrap: nowrap; align-items: flex-start; }
.qx-pills { flex: 1; min-width: 0; }
.qx-tools { flex: none; padding-top: 4px; }
.pv-loading a { color: var(--gold); }
@media (max-width: 860px) { .qx-toolbar { flex-wrap: wrap; } }
@media (max-width: 860px) {
    .qx-hdr { display: none; }
    .qx-row, .qx-row.editing { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "th n tot" "th q tot"; gap: 2px 10px; padding: 9px 10px; min-height: 0; }
    .qx-row > .th { grid-area: th; }
    .qx-row > .n { grid-area: n; }
    .qx-row > :nth-child(3) { grid-area: q; text-align: left; }
    .qx-row > :nth-child(3) .v { font-size: 12.5px; color: var(--muted); }
    .qx-row > .tot { grid-area: tot; }
    .qx-row .tools { position: static; display: none; }
    .qx-row.editing { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "n n n" "q p d" "tot tools tools"; gap: 8px; padding-bottom: 12px; }
    .qx-row.editing > .th { display: none; }
    .qx-row.editing > :nth-child(4) { grid-area: p; display: block; }
    .qx-row.editing > :nth-child(5) { grid-area: d; display: block; }
    .qx-row.editing > .tot { text-align: left; align-self: center; }
    .qx-row.editing .tools { grid-area: tools; display: flex; }
    .qx-row.editing .e { text-align: left; }
    .qx-sec-h { flex-wrap: wrap; row-gap: 2px; }
    .qx-sec-h .c { display: none; }
    .qx-sec-h .t { flex: 1; min-width: 0; }
}
@media (max-width: 860px) {
    /* telefonda başlık sabit kalmaz (ekranın çeyreğini kaplamasın); menüler alttan açılır */
    .qx-head { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
    .qx { --qh: 60px; }
}
.flash-stack + .qx .qx-head { margin-top: 0; }
.pv-pages { display: grid; gap: 16px; padding: 16px; min-height: 60vh; justify-items: center; align-content: start; transition: opacity .2s; }
.pv-pages.dim { opacity: .35; }
.pv-page { width: 100%; height: auto; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.35); border-radius: 2px; }
.pv-loading { inset: auto 0 auto 0; top: 0; height: 60vh; background: transparent; z-index: 2; }
@media (max-width: 860px) { .pv-pages { padding: 8px; gap: 8px; } }

/* v11.1 — oda başlıkları renkli ve belirgin */
.qx-sec { --rc: var(--gold); border-color: color-mix(in srgb, var(--rc) 22%, var(--line)); overflow: visible; }
.qx-sec-h { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 13%, #fff) 0%, color-mix(in srgb, var(--rc) 4%, #fff) 70%);
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; box-shadow: inset 4px 0 0 var(--rc); padding-left: 12px; }
.qx-sec.folded .qx-sec-h { border-radius: calc(var(--radius) - 1px); }
.qx-sec-b { border-top-color: color-mix(in srgb, var(--rc) 25%, var(--line)); }
.qx-room-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--rc); color: #fff; cursor: pointer;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--rc) 35%, transparent); }
.qx-room-ic svg.i { width: 18px; height: 18px; }
.qx-sec-h .t { font-size: 16.5px; color: color-mix(in srgb, var(--rc) 55%, var(--ink)); letter-spacing: .005em; }
.qx-sec-h .st { font-size: 15.5px; }
.qx-fold { color: color-mix(in srgb, var(--rc) 70%, var(--muted)); }
.qx-opt-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: color-mix(in srgb, var(--oc, var(--gold)) 12%, #fff); color: color-mix(in srgb, var(--oc, var(--gold)) 75%, var(--ink)); border: 1px solid color-mix(in srgb, var(--oc, var(--gold)) 30%, transparent); white-space: nowrap; }
.qx-opt-tag.common { padding: 2px 9px; background: #fff; color: var(--muted); border-color: var(--line-2); font-weight: 500; }
.qx-sec.is-optional .qx-sec-h { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rc) 8%, #fff) 0 10px, #fff 10px 20px); }
/* Kalem adı: marka üstte küçük, model tek satırda */
.qx-row .n .br { display: block; font-size: 11.5px; line-height: 1.2; }
.qx-row .n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-hdr > span:nth-child(2) { padding-left: 0; }
@media (min-width: 861px) and (max-width: 1360px) {
    .qx-hdr, .qx-row { grid-template-columns: 44px minmax(0, 1fr) 78px 92px 50px 104px 70px; gap: 8px; }
}
@media (max-width: 860px) {
    .qx-sec-h { padding-left: 8px; gap: 8px; }
    .qx-room-ic { width: 30px; height: 30px; }
    .qx-sec-h .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
    .qx-sec-h .st { margin-left: 0; }
    .qx-opt-tag { order: 10; margin-left: 76px; }
    .qx-row .n b { white-space: normal; }
}
@media (max-width: 860px) {
    .qx-sec-h:has(.qx-opt-tag)::after { content: ""; order: 9; flex-basis: 100%; height: 0; }
    .qx-opt-tag { margin-top: -4px; }
}

/* v11.2 — Teklif listesi */
.ql td { padding-top: 13px; padding-bottom: 13px; }
.ql-row { cursor: pointer; }
.ql-row td:first-child { box-shadow: inset 4px 0 0 var(--stc, #d9d0bf); }
.ql-row.st-sent { --stc: var(--info); }
.ql-row.st-accepted { --stc: var(--ok); }
.ql-row.st-rejected { --stc: var(--danger); }
.ql-row.st-draft { --stc: #cfc4b0; }
.ql-row.is-old { opacity: .6; }
.ql-row:hover td { background: #fcf9f3 !important; }
.ql-who { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 6px; }
.ql-av { --ac: var(--gold); width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px;
    background: color-mix(in srgb, var(--ac) 16%, #fff); color: color-mix(in srgb, var(--ac) 80%, var(--ink)); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); }
.ql-av.empty { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.ql-av.xs { width: 18px; height: 18px; font-size: 10px; border-width: 0; }
.ql-id { min-width: 0; }
.ql-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ql-name a { color: var(--ink); } .ql-name a:hover { color: var(--gold-2); }
.ql-proj { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.ql-proj::before { content: "·"; margin-right: 8px; color: var(--muted); }
.ql-meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.ql-no { font-weight: 600; color: var(--ink-2); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ql-no:hover { color: var(--gold-2); }
.ql-prep { display: inline-flex; align-items: center; gap: 5px; }
.ql-rooms { display: flex; gap: 5px; flex-wrap: wrap; max-width: 330px; }
.ql-room { --rc: var(--gold); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
    background: color-mix(in srgb, var(--rc) 11%, #fff); color: color-mix(in srgb, var(--rc) 70%, var(--ink)); border: 1px solid color-mix(in srgb, var(--rc) 22%, transparent); }
.ql-room svg.i { width: 13px; height: 13px; }
.ql-room.more { padding: 3px 8px; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.ql-empty { font-size: 12px; }
.ql-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ql-sub .warn { color: #a0661b; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.ql-sub svg.i { width: 12px; height: 12px; }
.ql-amt .num { font-size: 15.5px; font-weight: 700; }
.ql-opts { display: flex; gap: 4px; justify-content: flex-end; margin-top: 5px; flex-wrap: wrap; }
.ql-opt { --oc: var(--gold); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 1px 6px 1px 2px; border-radius: 6px; border: 1px solid var(--line); background: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ql-opt b { width: 15px; height: 15px; border-radius: 4px; display: inline-grid; place-items: center; background: var(--oc); color: #fff; font-size: 9.5px; }
.ql-opt.on { border-color: color-mix(in srgb, var(--oc) 45%, var(--line)); color: var(--ink-2); }
.ql-opt.acc { background: var(--ok-soft); border-color: #bfe0cc; color: var(--ok); font-weight: 600; }
.ql .row-actions { opacity: 0; }
.ql tr:hover .row-actions, .ql tr:focus-within .row-actions { opacity: 1; }
@media (max-width: 1250px) { .ql .hide-md { display: none; } }
@media (max-width: 860px) {
    .ql thead { display: none; }
    .ql tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .ql td { border-bottom: none; padding: 6px 12px; }
    .ql tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
    .ql td:first-child { grid-column: 1 / -1; }
    .ql td:last-child { display: none; }
    .ql .row-actions { opacity: 1; }
    .ql .ql-amt { text-align: right; }
}
.ql-av.none { background: var(--surface-2); color: var(--muted); border-color: var(--line); padding: 0; }
.ql-name { display: block; }
.ql-proj { display: block; font-size: 12.5px; margin-top: 1px; }
.ql-proj::before { content: none; }
.ql-main { min-width: 340px; }
.ql-meta { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 860px) { .ql-main { min-width: 0; } .ql-meta { flex-wrap: wrap; } }
@media (max-width: 860px) { .ql .ql-opts { max-width: 190px; margin-left: auto; } .ql td.nowrap { white-space: normal; } }
.mail-file { border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); background: color-mix(in srgb, var(--ok) 5%, #fff); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 8px; }
.mail-file-h { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.mail-file-h svg.i { width: 17px; height: 17px; }
.mail-file code { font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; justify-self: start; }
.mail-file dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 2px 0 0; font-size: 13px; }
.mail-file dt { color: var(--muted); }
.mail-file dd { margin: 0; word-break: break-word; }
.qx .checks-bar { margin-bottom: 14px; }

/* v11.6 — teklif sorumlusu */
.qx-owner { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 3px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink); }
.qx-owner::-webkit-details-marker { display: none; }
.qx-owner:hover { border-color: var(--gold); }
.qx-owner svg.i { width: 13px; height: 13px; color: var(--muted); }
.qx-owner .ql-av.xs { width: 20px; height: 20px; font-size: 10.5px; }
.qx-owner.none { color: #a0661b; border-color: #f0d6a8; background: #fff8ec; padding-left: 8px; }
.qx-owner.none svg.i { color: #a0661b; }
.owner-menu .qx-pop .ql-av.xs { width: 22px; height: 22px; font-size: 11px; }
.ql-prep.warn { color: #a0661b; font-weight: 500; }
.mine-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.mine-toggle svg.i { width: 14px; height: 14px; }
.mine-toggle:hover { border-color: var(--gold); color: var(--ink); }
.mine-toggle.on { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }

/* v11.7 — Odalar tek kartta özet tablosu (B) */
.qx-book { overflow: visible; margin-bottom: 14px; }
.qx-book-h { display: flex; align-items: center; gap: 10px; padding: 9px 14px 8px 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.qx-book-h > span:nth-child(1) { width: 72px; flex: none; }
.qx-book-h > span:nth-child(2) { flex: 1; }
.qx-book-h > span:nth-child(3) { width: 70px; text-align: right; }
.qx-book-h > span:nth-child(4) { width: 130px; text-align: right; }
.qx-book-h > span:nth-child(5) { width: 32px; }
.qx-book .qx-sec { border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; background: var(--surface); }
.qx-book .qx-sec-h { background: none; box-shadow: inset 3px 0 0 transparent; border-radius: 0; min-height: 56px; padding: 9px 14px 9px 12px; cursor: pointer; }
.qx-book .qx-sec-h:hover { background: #fcf9f3; }
.qx-book .qx-sec:not(.folded) > .qx-sec-h { background: color-mix(in srgb, var(--rc) 7%, #fff); box-shadow: inset 3px 0 0 var(--rc); }
.qx-book .qx-sec.folded .qx-sec-h { border-radius: 0; }
.qx-book .qx-room-ic { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
.qx-book .qx-room-ic svg.i { width: 16px; height: 16px; }
.qx-book .qx-sec-h .t { font-size: 15px; color: var(--ink); }
.qx-book .qx-sec-h .c { margin-left: auto; width: 70px; text-align: right; order: 8; font-variant-numeric: tabular-nums; }
.qx-book .qx-sec-h .st { margin-left: 0; width: 130px; text-align: right; order: 9; font-size: 15px; }
.qx-book .qx-sec-h > .qx-menu { order: 10; }
.qx-book .qx-sec-h .rename-form { order: 7; }
.qx-book .qx-sec-b { border-top: 1px solid color-mix(in srgb, var(--rc) 20%, var(--line)); background: var(--surface); box-shadow: inset 3px 0 0 var(--rc); }
.qx-book .qx-sec.is-optional .qx-sec-h { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rc) 6%, #fff) 0 10px, #fff 10px 20px); }
.qx-book .qx-svc .qx-sec-h .c { width: auto; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qx-book-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 54px 13px 16px; background: var(--surface-2);
    border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; }
.qx-book-f .muted { font-weight: 400; font-size: 12.5px; }
.qx-book-f b { font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.qx-book-f .opt-letter { background: var(--oc); }
.qx-count svg.i { width: 15px; height: 15px; vertical-align: -3px; }
.qx-side .totals .side-note svg.i { color: var(--muted); }
@media (max-width: 860px) {
    .qx-book-h { display: none; }
    .qx-book .qx-sec-h .c { display: none; }
    .qx-book .qx-sec-h .st { width: auto; margin-left: auto; }
    .qx-book-f { padding-right: 16px; }
}
.qx-menu-sp { width: 17px; flex: none; order: 10; }

/* v11.8 — Teklif başlığı kart içinde */
.qx-head { border-bottom: none; padding-bottom: 12px; }
.qx-hcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: visible; }
.qx-hcard .qx-head-row { padding: 14px 18px 12px; align-items: center; }
.qx-hcard .qx-title h1 { font-size: 22px; }
.qx-mini-total { display: none; font-weight: 700; font-size: 17px; margin-right: 6px; }
.qx-facts { display: flex; align-items: stretch; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.qx-fact { display: grid; gap: 2px; padding: 10px 18px; border-right: 1px solid var(--line); min-width: 0; align-content: center; }
.qx-fact .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.qx-fact .v { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.qx-fact .v .muted { font-weight: 400; }
.qx-fact .v a { color: var(--ink); } .qx-fact .v a:hover { color: var(--gold-2); }
.qx-fact .qx-owner { margin: -2px 0 -3px -3px; font-weight: 600; }
.qx-editbtn { align-self: center; margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface);
    border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--gold-2); cursor: pointer; }
.qx-editbtn:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.qx-editbtn svg.i { width: 14px; height: 14px; }
.qx-fact-total { margin-left: auto; padding: 8px 18px; text-align: right; display: grid; align-content: center; border-left: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) 0; min-width: 190px; }
.qx-fact-total b { font-size: 21px; }
.qx-head.compact .qx-facts { display: none; }
.qx-head.compact .qx-mini-total { display: inline; }
.qx-head.compact .qx-hcard .qx-head-row { padding-block: 9px; }
.qx-head.compact .crumb { display: none; }
@media (max-width: 1100px) { .qx-fact .v { max-width: 200px; } }
@media (max-width: 860px) {
    .qx-facts { display: grid; grid-template-columns: 1fr 1fr; }
    .qx-fact { border-right: none; border-bottom: 1px solid var(--line); padding: 8px 14px; }
    .qx-fact .v { max-width: none; white-space: normal; }
    .qx-editbtn { margin: 10px 14px; justify-self: start; }
    .qx-fact-total { grid-column: 1 / -1; margin-left: 0; border-left: none; text-align: left; border-radius: 0 0 var(--radius) var(--radius); }
    .qx-hcard .qx-head-row { padding: 12px 14px; }
}
@media (max-width: 1320px) and (min-width: 861px) {
    .qx-editbtn { padding: 7px 9px; }
    .qx-editbtn span { display: none; }
    .qx-fact { padding-inline: 14px; }
    .qx-fact .v { max-width: 170px; }
    .qx-fact-total { min-width: 150px; }
}
@media (max-width: 1200px) and (min-width: 861px) { .qx-fact:nth-child(2) { display: none; } }
@media (max-width: 860px) {
    .qx-fact-total { margin-left: 0; justify-self: stretch; min-width: 0; }
    .qx-book .qx-sec-h:has(.qx-opt-tag)::after { order: 11; }
    .qx-book .qx-opt-tag { order: 12; }
    .qx-book .qx-sec-h > .qx-menu { order: 10; }
}
@media (max-width: 860px) { .qx-facts .qx-fact-total { margin: 0; } }
.qx-fact .v:has(.owner-menu) { overflow: visible; }
.qx-fact .qx-pop { white-space: normal; font-weight: 400; font-size: 13.5px; }

/* v12 — geri al, oda notu, sürükle-bırak */
.qx-undo { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px;
    background: var(--dark); color: #f1ebe0; padding: 10px 12px 10px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100vw - 32px); transition: opacity .35s, transform .35s; }
.qx-undo svg.i { width: 16px; height: 16px; color: #a89f8e; flex: none; }
.qx-undo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-undo form button { background: var(--gold); color: #1a1510; border: none; border-radius: 9px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.qx-undo .x { background: none; border: none; color: #a89f8e; font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer; }
.qx-undo.bye { opacity: 0; transform: translate(-50%, 10px); }
.qx-sec-note { display: flex; align-items: flex-start; gap: 7px; padding: 0 16px 10px 84px; margin-top: -4px; font-size: 13px; color: var(--ink-2); }
.qx-sec-note svg.i { width: 14px; height: 14px; color: var(--muted); margin-top: 2px; flex: none; }
.qx-book .qx-sec:not(.folded) > .qx-sec-note { background: color-mix(in srgb, var(--rc) 7%, #fff); box-shadow: inset 3px 0 0 var(--rc); margin-top: 0; }
.qx-note-form { display: flex; gap: 8px; padding: 0 14px 12px 84px; }
.qx-note-form[hidden] { display: none; }
.qx-note-form input { flex: 1; min-width: 0; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; font-size: 13.5px; }
.qx-grip { width: 14px; height: 22px; flex: none; cursor: grab; opacity: 0; transition: opacity .15s; margin-right: -6px;
    background: radial-gradient(circle, var(--muted) 1.3px, transparent 1.6px) 0 0 / 7px 7px; }
.qx-sec-h:hover .qx-grip, .qx-row:hover .qx-grip { opacity: .7; }
.qx-grip:hover { opacity: 1 !important; }
.qx-grip.row { display: inline-block; margin: 0 4px 0 0; width: 12px; height: 20px; align-self: center; }
.qx-sec.dragging, .qx-row.dragging { opacity: .45; outline: 2px dashed var(--gold); outline-offset: -2px; }
@media (max-width: 860px) { .qx-grip { display: none; } .qx-sec-note, .qx-note-form { padding-left: 16px; } }

/* v12 — hızlı arama */
.side-search { margin: 12px 12px 0; display: flex; align-items: center; gap: 9px; width: calc(100% - 24px); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 9px 11px; color: #a89f8e; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.side-search:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-search svg.i { width: 16px; height: 16px; }
.side-search span { flex: 1; }
.side-search kbd, .qs-in kbd { font-family: inherit; font-size: 10.5px; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: 1px 6px; color: #8d846f; }
.qs-bg { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,15,.45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.qs-bg[hidden] { display: none; }
.qs { width: min(640px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.qs-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.qs-in svg.i { width: 19px; height: 19px; color: var(--muted); }
.qs-in input { flex: 1; border: none; outline: none; font: inherit; font-size: 16px; background: none; color: var(--ink); min-width: 0; }
.qs-in kbd { color: var(--muted); border-color: var(--line-2); }
.qs-res { max-height: 60vh; overflow-y: auto; padding: 6px; }
.qs-hint { padding: 16px; color: var(--muted); font-size: 13.5px; }
.qs-g { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 10px 4px; }
.qs-it { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.qs-it.hl, .qs-it:hover { background: var(--gold-soft); }
.qs-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--muted); overflow: hidden; }
.qs-ic svg.i { width: 17px; height: 17px; }
.qs-ic img { max-width: 30px; max-height: 30px; object-fit: contain; }
.qs-t { flex: 1; min-width: 0; display: grid; }
.qs-t b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-p { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .qs-bg { padding-top: 70px; } }

/* v12 — Bugün kartı */
.today { padding: 16px 18px; margin-bottom: 18px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; border-color: #f0d6a8; background: linear-gradient(180deg, #fffaf0, var(--surface)); }
.today-h { display: flex; gap: 12px; align-items: center; }
.today-h b { display: block; font-size: 17px; }
.today-h span { font-size: 12.5px; color: var(--muted); }
.today-ic { width: 38px; height: 38px; border-radius: 11px; background: #fdf0dd; color: #a0661b; display: grid; place-items: center; flex: none; }
.today-ic svg.i { width: 19px; height: 19px; }
.today-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.today-t { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.today-t svg.i { width: 14px; height: 14px; color: var(--muted); }
.today-t .n { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.today-row { display: grid; padding: 6px 9px; border-radius: 9px; border: 1px solid transparent; }
.today-row:hover { background: var(--surface); border-color: var(--line); }
.today-row .w { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-row .m { font-size: 12px; color: var(--muted); }
.today-row.mine { box-shadow: inset 3px 0 0 var(--gold); }
.today-row .m b { color: var(--gold-2); font-weight: 600; }
.today-more { font-size: 12.5px; color: var(--gold-2); font-weight: 500; padding: 4px 9px; display: inline-block; }
@media (max-width: 860px) { .today { grid-template-columns: 1fr; } }

/* v12: Müşteri sayfaları */
.cl-contact { font-size: 12.5px; }
.cl-contact a { display: flex; align-items: center; gap: 6px; color: var(--ink-2); line-height: 1.7; white-space: nowrap; }
.cl-contact a:hover { color: var(--gold-2); }
.cl-contact svg.i, .cx-contact svg.i { width: 13px; height: 13px; color: var(--muted); flex: none; }
.cl-count { font-size: 13px; color: var(--ink-2); } .cl-count b { font-size: 15px; }
.cl-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.cl-dot { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.cl-dot.sent { background: var(--info-soft, #e8eff9); color: var(--info); }
.cl-dot.accepted { background: var(--ok-soft); color: var(--ok); }
.cl-dot.rejected { background: #fbeceb; color: var(--danger); }
.cl-acc { color: var(--ok); }
.cx-head { padding: 20px 22px; margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center;
    background: linear-gradient(135deg, #fffdf8, #faf5ea); }
.cx-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ql-av.cx-av { width: 58px; height: 58px; font-size: 24px; }
.cx-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.cx-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.cx-contact > * { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.cx-contact a:hover { color: var(--gold-2); }
.cx-facts { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cx-fact { padding: 10px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.cx-fact + .cx-fact { border-left: 1px solid var(--line); }
.cx-fact .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cx-fact .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-fact.ok .v { color: var(--ok); }
.cx-note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px 12px; white-space: pre-line; }
.cx-note svg.i { width: 15px; height: 15px; color: var(--gold-2); flex: none; margin-top: 1px; }
.cxq-id { padding-left: 10px; }
.cxq-rooms { margin-top: 7px; max-width: none; }
.cxq .ql-name a { font-weight: 600; }
@media (max-width: 1100px) { .cx-head { grid-template-columns: 1fr; } .cx-facts { flex-wrap: wrap; } }
@media (max-width: 860px) {
    .cx-facts { display: grid; grid-template-columns: 1fr 1fr; }
    .cx-fact + .cx-fact { border-left: none; }
    .cx-fact:nth-child(even) { border-left: 1px solid var(--line); }
    .cx-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .cxq td:last-child { display: block; }
    .cxq tr { grid-template-columns: minmax(0, 1fr) auto; }
}

/* v12: Kapak görseli */
.cover-box { display: flex; align-items: center; gap: 14px; }
.cover-box img { width: 150px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.cover-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cover-acts .danger { color: var(--danger); }
.cover-acts label.btn { cursor: pointer; }
.cover-drop { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
.cover-drop:hover { border-color: var(--gold); background: #fffaf0; }
.cover-drop svg.i { width: 20px; height: 20px; color: var(--gold-2); flex: none; }

/* v12.2: fiyat listesi önizlemesinde görseller */
.img-sum a { margin-left: 4px; }
.img-cmp > summary { cursor: pointer; list-style: none; }
.img-cmp > summary::-webkit-details-marker { display: none; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 14px 16px 16px; }
.img-cell { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.img-cell.kept { background: #fffaf0; border-color: #ecd9b0; }
.img-pair { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.img-pair .arr { color: var(--muted); }
.product-thumb.lg { width: 72px; height: 72px; display: grid; place-items: center; font-size: 11px; }
.product-thumb.lg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-name { font-size: 12.5px; margin-top: 8px; line-height: 1.3; }
.img-st { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.img-st .up-ok { color: var(--ok); font-weight: 600; }

/* v13: Bayi portalı — ortak (personel ve bayi ekranları) */
.stk { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.stk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stk.ok { background: var(--ok-soft); color: var(--ok); }
.stk.crit { background: #fbf0dc; color: #a0661b; }
.stk.none { background: var(--danger-soft); color: var(--danger); }
.stk.contact { background: #efebf8; color: #6b5a9e; }
.pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill.new { background: var(--info-soft); color: var(--info); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.part { background: #fbf0dc; color: #a0661b; }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.prep { background: var(--gold-soft); color: var(--gold-2); }
.pill.ship { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.d-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.d-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.d-kpi .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.d-kpi .v { font-size: 21px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.d-kpi .d { font-size: 12px; color: var(--muted); }
.d-kpi .d.up { color: var(--ok); } .d-kpi .d.down { color: var(--danger); }
.d-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 220px; align-items: end; }
.d-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.d-bar i { display: block; width: 72%; background: var(--gold); border-radius: 5px 5px 2px 2px; min-height: 0; }
.d-bar.last i { background: var(--gold-2); }
.d-bar b { font-size: 11px; color: var(--muted); font-weight: 500; }
.d-bar .d-val { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.d-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .d-two { grid-template-columns: 1fr; } .d-bar .d-val { display: none; } }
.d-hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 100px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.d-hbar .tr { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; height: 12px; overflow: hidden; }
.d-hbar .fl { height: 100%; background: var(--gold); border-radius: 6px; }
.d-hbar .num { text-align: right; font-size: 12.5px; }
.d-spark { width: 120px; height: 30px; display: block; }
.d-spark path { fill: none; stroke: var(--gold); stroke-width: 2; }
.d-spark .area { fill: var(--gold-soft); stroke: none; }
.d-sub { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; overflow-x: auto; }
.d-sub a { padding: 10px 12px 9px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 13.5px; }
.d-sub a.on { color: var(--ink); border-color: var(--gold); }
.d-sub a .cnt { background: var(--gold); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 700; margin-left: 4px; }
.d-short { color: var(--danger); font-weight: 600; }
.d-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.d-ck { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); cursor: pointer; font-size: 13px; }
.d-ck.on, .d-ck:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.d-ck input[type=checkbox], .d-ck input[type=radio] { accent-color: var(--gold); width: auto; }
.d-cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.d-in { width: 70px !important; padding: 5px 7px !important; text-align: right; }
.d-radio { display: flex; flex-direction: column; gap: 6px; }
.d-radio label { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.d-radio label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.d-radio input { accent-color: var(--gold); margin-top: 4px; width: auto; }
.d-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .d-split { grid-template-columns: 1fr; } }
tr.d-sel td { background: var(--gold-soft) !important; }
.d-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.d-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c48a2c; box-shadow: 0 0 0 4px #fbf0dc; }
.d-status.ok::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.nav-badge { margin-left: auto; background: var(--gold); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }

/* v13.1: Teklifler sayfasında "Bayi siparişleri" kartı */
.dpend { padding: 16px 18px; margin-bottom: 18px; border-color: #b9dbe2; background: linear-gradient(180deg, #f2f9fa, var(--surface)); }
.dpend-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dpend-h > div:nth-child(2) b { display: block; font-size: 17px; }
.dpend-h > div:nth-child(2) span { font-size: 12.5px; color: var(--muted); }
.dpend-ic { width: 38px; height: 38px; border-radius: 11px; background: #ddf0f3; color: #2e7d8f; display: grid; place-items: center; flex: none; }
.dpend-ic svg.i { width: 19px; height: 19px; }
.dpend-flow { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dpend-flow a { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 4px 11px; }
.dpend-flow a b { font-variant-numeric: tabular-nums; }
.dpend-flow a.hot { background: #2e7d8f; border-color: #2e7d8f; color: #fff; }
.dpend-flow a:hover { border-color: #2e7d8f; }
.dpend-list { margin-top: 12px; display: grid; gap: 4px; }
.dpend-row { display: grid; grid-template-columns: 38px minmax(170px, 1fr) minmax(0, 1.1fr) 290px 160px 64px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 11px; border: 1px solid transparent; color: var(--ink); }
.dpend-row:hover { background: var(--surface); border-color: var(--line); }
.dpend-who { min-width: 0; }
.dpend-who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpend-who small { color: var(--muted); font-size: 12px; }
.dpend-what { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dpend-flags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 1101px) { .dpend-flags { flex-wrap: nowrap; } }
.dpend-amt { font-weight: 700; white-space: nowrap; text-align: right; }
.dpend-go { font-size: 12.5px; color: #2e7d8f; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.dpend-go svg.i { width: 14px; height: 14px; transform: rotate(-90deg); }
@media (max-width: 1100px) { .dpend-what { display: none; } .dpend-row { grid-template-columns: 38px minmax(0, 1fr) auto auto; } .dpend-amt { text-align: right; } .dpend-go { display: none; } }
@media (max-width: 640px) {
  .dpend-flow { margin-left: 0; }
  .dpend-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .dpend-flags { grid-column: 2 / -1; justify-content: flex-start; }
  .dpend-amt { grid-column: 2 / -1; text-align: left; }
}
.d-portal { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; }
.d-portal > a { color: #2e7d8f !important; border-bottom-color: transparent !important; display: inline-flex; align-items: center; gap: 6px; font-weight: 600 !important; }
.d-portal svg.i { width: 15px; height: 15px; }
.d-copy { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.d-copy:hover { border-color: var(--gold); }
.d-login-url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f2f9fa; border: 1px solid #cfe6ea; border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; font-size: 13px; }
.d-login-url > svg.i { width: 16px; height: 16px; color: #2e7d8f; flex: none; }
.d-login-url b { word-break: break-all; }
.d-login-url .d-copy { margin-left: auto; }
@media (max-width: 640px) { .d-portal { margin-left: 0; padding-left: 0; } .d-portal .d-copy span { display: none; } }
.dpend.quiet { padding: 10px 16px; background: var(--surface); }
.dpend.quiet .dpend-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.dpend.quiet .dpend-h > div:nth-child(2) b { font-size: 14.5px; }
.d-btn-key { background: #f2f9fa; border-color: #9fcfd8; color: #2e7d8f; }
.d-btn-key:hover { background: #2e7d8f; border-color: #2e7d8f; color: #fff; }

/* v13.6: Bayi sayfası — renkli, tam genişlik kartlar */
.dc { border-width: 1.5px; border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); border-top: 4px solid var(--accent); }
.dc .card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, #fff), #fff 80%); }
.dc .card-head h2 svg.i { width: 17px; height: 17px; color: var(--accent); }
.dc .card-head h2::before { display: none; }
.dc-teal { --accent: #2e7d8f; }
.dc-gold { --accent: #b8935a; }
.dc-plum { --accent: #7a4fa0; }
.du-list { display: grid; gap: 8px; margin-bottom: 10px; }
.du-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 4%, #fff); }
.du-row.off { opacity: .65; }
.du-row .field { margin: 0; }
.du-id { display: flex; gap: 10px; align-items: center; align-self: center; min-width: 0; }
.du-id > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.du-id b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.du-id small { color: var(--muted); font-size: 12px; }
.du-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-self: center; }
.du-new { grid-template-columns: minmax(200px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; border-style: dashed; background: var(--surface); }
.du-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); flex: none; }
.du-plus svg.i { width: 18px; height: 18px; }
.d-newpw { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fffaf0; border: 1.5px solid #f0d6a8; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 13.5px; }
.d-newpw > svg.i { width: 20px; height: 20px; color: #a0661b; flex: none; }
.d-newpw > div { flex: 1; min-width: 220px; }
.d-newpw code { font-size: 16px; letter-spacing: .06em; background: #fff; border: 1px solid #f0d6a8; border-radius: 6px; padding: 2px 8px; user-select: all; }
/* v13.7: özet satırı açıkça tıklanabilir görünsün: renkli şerit, marka çipleri, sağda gerçek düğme, hover */
.d-brands { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.d-brands:hover { border-color: var(--accent); box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 18%, transparent); }
.d-brands > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; user-select: none;
    background: color-mix(in srgb, var(--accent) 12%, #fff); border-left: 5px solid var(--accent); transition: background .15s; }
.d-brands > summary:hover { background: color-mix(in srgb, var(--accent) 20%, #fff); }
.d-brands > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.d-brands > summary::-webkit-details-marker { display: none; }
.d-brands-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.d-brands-t svg.i { width: 16px; height: 16px; color: var(--accent); }
.d-brands-s { font-size: 12.5px; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.d-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); font-weight: 500; white-space: nowrap; }
.d-chip.more { background: var(--accent); color: #fff; border-color: var(--accent); }
.d-brands-c { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: filter .15s; }
.d-brands > summary:hover .d-brands-c { filter: brightness(.92); }
.d-brands-c svg.i { width: 16px; height: 16px; color: #fff; transition: transform .15s; }
.d-brands-c .o-open { display: none; }
.d-brands[open] .d-brands-c .o-open { display: inline; }
.d-brands[open] .d-brands-c .o-closed { display: none; }
.d-brands[open] .d-brands-c { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.d-brands[open] .d-brands-c svg.i { color: var(--accent); transform: rotate(180deg); }
.d-brands-b { padding: 0 14px 14px; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.d-brands-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
.d-brands .d-cks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.d-seen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.d-seen-i { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, #fff); color: var(--ink); font-size: 13.5px; }
.d-seen-i:hover { border-color: var(--accent); }
.d-seen-i b { color: var(--accent); }
@media (max-width: 1100px) {
  .du-row, .du-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .du-id { grid-column: 1 / -1; }
  .du-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) { .du-row, .du-new { grid-template-columns: 1fr; } }
/* v13.7: Stok ve Logo — üç ayar kartı yan yana, tablo tam genişlik */
.d-stock-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.d-stock-top > .card { margin: 0; display: flex; flex-direction: column; }
.d-stock-top > .card > .card-body { flex: 1; }
@media (max-width: 1180px) { .d-stock-top { grid-template-columns: 1fr; } }
/* v13.8: Bayi sipariş detayı — tablo tam genişlik, onay alanı altta yatay */
.d-order { display: flex; flex-direction: column; gap: 18px; }
.d-order > .card { margin: 0; }
.d-act-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.d-act-l { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2, #4a453d); margin-bottom: 6px; }
.d-act-btns { display: flex; flex-direction: column; gap: 8px; }
.d-act-btns .btn { justify-content: center; width: 100%; }
.d-act-hist { border-left: 1px solid var(--line); padding-left: 20px; }
.d-note-box { white-space: pre-line; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
@media (max-width: 1000px) { .d-act-grid { grid-template-columns: 1fr; } .d-act-hist { border-left: 0; padding-left: 0; } }
.d-act-btns .btn-ghost { border: 1.5px solid var(--line-2); background: #fff; }
/* v13.9: tablo ve onay alanı tek çerçevede */
.d-order-card { overflow: hidden; }
.d-act { border-top: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.d-act-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 14px 22px 0; }
.d-act-head h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.d-act-head h3 svg.i { width: 17px; height: 17px; color: var(--accent); }
.d-act-head .hint { font-size: 12.5px; color: var(--muted); }
.d-act-grid { padding: 14px 22px 20px; }
/* v13.9: onay çubuğu — onay alanı ekran dışındayken altta */
.d-sticky { position: fixed; left: 236px; right: 0; bottom: 0; z-index: 70; padding: 0 34px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transform: translateY(120%); transition: transform .22s ease; }
.d-sticky.on { transform: none; }
.d-sticky-i { pointer-events: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--dark, #1d1a16); color: #f1ebe0; border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.d-sticky-t { display: flex; flex-direction: column; line-height: 1.25; }
.d-sticky-t b { font-size: 15px; }
.d-sticky-t span, .d-sticky-sum span { font-size: 12px; color: #b9b0a2; }
.d-sticky-sum { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.d-sticky-sum b { font-size: 16px; color: #fff; }
.d-sticky-b { display: flex; gap: 8px; flex-wrap: wrap; }
.d-sticky .btn:not(.btn-gold):not(.btn-danger) { background: #fff; color: var(--dark, #1d1a16); border-color: #fff; }
.d-sticky .btn-danger { background: #fff; }
.d-sticky .btn-ghost { background: transparent !important; color: #f1ebe0 !important; border: 1.5px solid rgba(255,255,255,.35) !important; }
@media (max-width: 1180px) { .d-sticky { left: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px)); } .d-sticky-i { gap: 10px; } .d-sticky-b { width: 100%; } .d-sticky-b .btn { flex: 1; justify-content: center; } }
/* v13.10: onay düğmeleri altta yan yana */
.d-act-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding-bottom: 14px; }
.d-act-btns { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 22px 18px; border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line)); }
.d-act-btns .btn { width: auto; min-width: 150px; padding-top: 10px; padding-bottom: 10px; }
.d-act-sp { flex: 1; }
@media (max-width: 700px) { .d-act-btns .btn { flex: 1 1 calc(50% - 10px); min-width: 0; } .d-act-sp { display: none; } }
@media (max-width: 1000px) { .d-act-grid { grid-template-columns: 1fr; } .d-act-hist { border-left: 0; padding-left: 0; } }
/* v13.11: red sebebi penceresi */
.rj-bg { position: fixed; inset: 0; z-index: 150; background: rgba(20,18,15,.45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rj-bg[hidden] { display: none; }
.rj { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(620px, 100%); padding: 22px 24px; border-top: 4px solid var(--danger, #b3402f); }
.rj h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.rj h3 svg.i { color: var(--danger, #b3402f); width: 19px; height: 19px; }
.rj p { margin: 0 0 12px; font-size: 13px; }
.rj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rj-chip { font: inherit; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--surface-2, #f7f4ee); border-radius: 999px; padding: 5px 11px; cursor: pointer; text-align: left; }
.rj-chip:hover { border-color: var(--danger, #b3402f); color: var(--danger, #b3402f); background: #fff; }
.rj textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 11px; resize: vertical; }
.rj textarea:focus { outline: none; border-color: var(--danger, #b3402f); }
.rj-err { color: var(--danger, #b3402f); font-size: 12.5px; margin-top: 6px; }
.rj-err[hidden] { display: none; }
.rj-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* v13.12: Hizmetler kartları */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sv-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid #4f8a5b; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.sv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sv-main { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; color: inherit; text-decoration: none; flex: 1; }
.sv-ic { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #e8f1ea; color: #4f8a5b; margin-bottom: 4px; }
.sv-ic svg.i { width: 19px; height: 19px; }
.sv-name { font-weight: 700; font-size: 15px; }
.sv-desc { font-size: 13px; color: var(--muted); }
.sv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2, #faf8f4); }
.sv-price { display: block; font-weight: 700; font-size: 16px; }
.sv-use { display: block; font-size: 12px; color: var(--muted); }
.sv-new { border: 1.5px dashed color-mix(in srgb, #4f8a5b 45%, var(--line)); border-top-width: 1.5px; background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 26px 18px; color: inherit; text-decoration: none; min-height: 170px; }
.sv-new span:last-child { font-size: 12.5px; color: var(--muted); }
.sv-new:hover { background: #fff; }
/* v13.12: Bayi siparişleri filtre ve özet */
.do-tools { gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.do-tools .search { flex: 1; min-width: 240px; max-width: 460px; }
.do-tools .search input { width: 100%; }
.do-sel { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px; background: #fff; font: inherit; font-size: 13px; }
.do-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px; }
.do-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 4%, #fff); }
.do-sum > div { padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; }
.do-sum > div + div { border-left: 1px solid var(--line); }
.do-sum span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.do-sum span small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.do-sum b { font-size: 18px; }
.do-sum > div > small { font-size: 11.5px; color: var(--muted); }
.do-more { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 900px) { .do-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .do-sum > div:nth-child(3) { border-left: 0; } }
.do-tools { border-bottom: 0; }
/* v13.12: uzun tablolarda sütun başlıkları kaydırırken üstte sabit (geniş ekran) */
@media (min-width: 1240px) {
    .table-wrap { overflow: visible; }
    .table thead th { position: sticky; top: 0; z-index: 5; box-shadow: inset 0 -1px 0 var(--line); }
    .d-order-card { overflow: clip; }
}
/* v13.12: ürün kataloğu — geniş ekranda daha çok sütun, başa dön düğmesi */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--dark, #1d1a16); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg.i { width: 20px; height: 20px; transform: rotate(180deg); }
.d-sub { flex-wrap: wrap; overflow: visible; row-gap: 0; } /* v13.12: dar ekranda taşmasın, alt satıra geçsin */
.do-sum > div { min-width: 0; } .do-sum b { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1240px) { .do-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .do-sum > div:nth-child(3) { border-left: 0; } .do-sum > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
/* v13.13: teklif satırlarında yerinde düzenleme daha belirgin */
.qx-hdr .qx-tip { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); opacity: .8; }
.qx-row:not(.editing):hover .f .v { border-bottom: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); padding-bottom: 1px; }
.qx-row:not(.editing):hover .f .v::after { content: ""; }
.qx-row .tot.live { color: var(--gold-2, #8a6a32); }
.qx-row.saving { opacity: .6; pointer-events: none; }
.qx-row.editing { box-shadow: inset 3px 0 0 var(--gold); }
@keyframes qxflash { 0% { background: #fbefd6; } 100% { background: transparent; } }
.qx-row.qx-flash { animation: qxflash 1.6s ease-out; }
.qx-hdr, .qx-row { grid-template-columns: 48px minmax(0, 1fr) 96px 110px 64px 118px 124px; }
@media (max-width: 860px) { .qx-hdr, .qx-row { grid-template-columns: 40px minmax(0, 1fr) 70px 92px 0; } .qx-hdr .qx-tip { display: none; } }
/* v13.15: Ürün kuralları — yeni düzen (çok bayi için) */
.dr-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.dr-list { position: sticky; top: 16px; margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 32px); overflow: hidden; }
.dr-filter { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.dr-filter .search input { width: 100%; }
.dr-filter-row { display: flex; gap: 8px; }
.dr-filter-row select { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px; background: #fff; font: inherit; font-size: 13px; }
.dr-filter-row .d-ck { padding: 6px 10px; white-space: nowrap; }
.dr-items { overflow-y: auto; flex: 1; }
.dr-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.dr-item:hover { background: #fcfaf6; }
.dr-item.on { background: color-mix(in srgb, var(--accent) 9%, #fff); border-left-color: var(--accent); }
.dr-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-item-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-item-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-item-tags { display: flex; gap: 4px; flex: none; }
.dr-item-tags .pill { padding: 2px 7px; font-size: 10.5px; }
.dr-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dr-panel > .card { margin: 0; }
.dr-head-t { display: flex; align-items: flex-end; gap: 28px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dr-head-t > div:first-child { flex: 1; min-width: 220px; }
.dr-head-t small { color: var(--muted); font-size: 12px; }
.dr-head-t h2 { margin: 2px 0 0; font-size: 20px; }
.dr-head-n { display: flex; flex-direction: column; align-items: flex-end; }
.dr-head-n > span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.dr-head-n b { font-size: 18px; }
.dr-vis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dr-vis-o { position: relative; cursor: pointer; }
.dr-vis-o input { position: absolute; opacity: 0; pointer-events: none; }
.dr-vis-o > span { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 12px; background: #fff; transition: border-color .15s, background .15s; }
.dr-vis-o b { font-size: 13.5px; }
.dr-vis-o small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.dr-vis-o:hover > span { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); }
.dr-vis-o input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.dr-vis-o input:focus-visible + span { outline: 2px solid var(--accent); }
.dr-alld { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dr-alld label { font-weight: 600; font-size: 13.5px; }
.dr-alld small { flex: 1; min-width: 220px; font-size: 12px; }
.dr-pct { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.dr-pct input { width: 78px; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13.5px; text-align: right; background: #fff; }
.dr-pct.sm input { width: 64px; padding: 5px 7px; font-size: 13px; }
.dr-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dr-tools h2 { margin: 0 6px 0 0; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.dr-tools .search { flex: 1; min-width: 200px; max-width: 320px; }
.dr-tools .search input { width: 100%; }
.dr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-chips button { font: inherit; font-size: 12.5px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; cursor: pointer; color: var(--ink-2, #4a453d); }
.dr-chips button b { margin-left: 3px; }
.dr-chips button.on { background: var(--dark, #1d1a16); color: #fff; border-color: var(--dark, #1d1a16); }
.dr-listhint { padding: 10px 18px; font-size: 12.5px; background: color-mix(in srgb, var(--accent) 6%, #fff); border-bottom: 1px solid var(--line); }
.dr-row { display: grid; grid-template-columns: 34px minmax(160px, 1.4fr) minmax(170px, 1.3fr) 110px minmax(150px, 1fr) 100px; gap: 10px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); min-height: 44px; }
.dr-row[hidden] { display: none; }
.dr-row .r { text-align: right; }
.dr-hdr { min-height: 0; padding-top: 9px; padding-bottom: 9px; background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; position: sticky; top: 0; z-index: 2; }
.dr-ck input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.dr-name { min-width: 0; display: flex; flex-direction: column; }
.dr-name a { font-weight: 600; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-name a:hover { color: var(--gold-2, #8a6a32); }
.dr-name small { font-size: 11.5px; color: var(--muted); }
.dr-st { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.dr-st-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.dr-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c1b3; flex: none; }
.dr-row.sees .dr-dot { background: var(--ok, #3c8a5a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok, #3c8a5a) 18%, transparent); }
.dr-row.sees .dr-st-t { color: var(--ink); }
.dr-eff { display: flex; flex-direction: column; min-width: 0; }
.dr-eff b { font-size: 13.5px; }
.dr-eff small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-net { font-weight: 600; }
.dr-row.has-own .dr-pct input { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.dr-row.listed:not(.dr-hdr) { background: color-mix(in srgb, var(--accent) 4%, #fff); }
.no-list .dr-ck { opacity: .3; pointer-events: none; }
.no-list .dr-row.listed:not(.dr-hdr) { background: none; }
.dr-empty { padding: 16px 18px; margin: 0; }
.dr-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -6px 18px rgba(30,25,15,.06); z-index: 3; flex-wrap: wrap; }
.dr-save span { font-size: 12px; flex: 1; min-width: 220px; }
.dr-save span.dirty { color: #a0661b; font-weight: 600; font-size: 13px; }
@media (max-width: 1240px) { .dr-vis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
    .dr-layout { grid-template-columns: 1fr; }
    .dr-list { position: static; max-height: 360px; }
    .dr-row { grid-template-columns: 26px minmax(0, 1fr) 10px 62px 70px; gap: 8px; padding-left: 12px; padding-right: 12px; }
    .dr-row > .dr-eff, .dr-st-t { display: none; }
    .dr-hdr > span:nth-child(n+3) { font-size: 0; }
    .dr-pct.sm { font-size: 0; } .dr-pct.sm input { width: 58px; font-size: 13px; }
    .dr-name a { white-space: normal; font-size: 13px; line-height: 1.25; }
}
/* v13.17: Teklifler listesi filtre satırı ve her zaman görünen hızlı işlemler */
.ql-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 3%, #fff); }
.ql-filters .search { flex: 1; min-width: 220px; max-width: 380px; }
.ql-filters .search input { width: 100%; }
.ql-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ql-sel select { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); }
.ql-sel select:disabled { opacity: .5; }
.ql-sum { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ql .row-actions { opacity: .5; }
.ql tr:hover .row-actions, .ql tr:focus-within .row-actions { opacity: 1; }
@media (max-width: 860px) { .ql-sum { margin-left: 0; width: 100%; } .ql-sel span { display: none; } }
/* v13.18: dönem seçici + tarih aralığı */
.pr-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pr-range[hidden] { display: none; }
.pr-range input[type=date] { border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 8px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.do-tools .ql-sel select { padding: 7px 10px; }
/* v13.19: stok türleri */
.st-rows { display: flex; flex-direction: column; }
.st-row { display: grid; grid-template-columns: 40px minmax(140px, 1.1fr) 150px minmax(170px, 1.3fr) 130px 150px 60px; gap: 12px; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.st-row input[type=text] { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; background: #fff; }
.st-row input[type=text]:disabled { background: var(--surface-2); color: var(--muted); }
.st-row input[type=color] { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.st-row.off { opacity: .55; }
.st-hdr { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--accent) 5%, var(--surface-2)); padding-top: 9px; padding-bottom: 9px; }
.st-row .r { text-align: right; }
.st-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.st-ck input { width: 17px; height: 17px; accent-color: var(--gold); }
.st-new { background: color-mix(in srgb, var(--accent) 3%, #fff); }
.st-plus { width: 32px; height: 32px; border-radius: 8px; border: 1.5px dashed var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.st-plus svg.i { width: 16px; height: 16px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: middle; }
.st-ns { text-transform: none; letter-spacing: 0; font-weight: 400; }
.st-in { width: 74px !important; border: 1px solid var(--line-2); border-radius: 8px; }
.st-in.ns { background: #faf8f4; }
.st-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--c, #8a6a32); background: color-mix(in srgb, var(--c, #b07a2a) 13%, #fff); border: 1px solid color-mix(in srgb, var(--c, #b07a2a) 35%, transparent); white-space: nowrap; }
@media (max-width: 1100px) { .st-row { grid-template-columns: 36px 1fr 1fr; } .st-hdr { display: none; } .st-row > *:nth-child(n+5) { grid-column: span 1; } }
/* v13.20: Fiyat listeleri marka tablosu */
.color-pick { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px 2px 3px; background: #fff; font-size: 11.5px; color: var(--ink-2, #4a453d); }
.color-pick:hover { border-color: var(--gold); }
.color-pick input[type=color] { width: 16px; height: 16px; border-radius: 50%; border: none; }
.color-pick input[type=color]::-webkit-color-swatch { border-radius: 50%; }
.pl-age { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.pl-age.old { color: #a0661b; font-weight: 600; }
.pl-age svg.i { width: 13px; height: 13px; }
.pl-disc { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.pl-disc input { width: 62px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; text-align: right; background: #fff; color: var(--ink); }
.pl-disc input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18); }
.pl-disc.set input { border-color: color-mix(in srgb, var(--gold) 60%, var(--line-2)); background: #fdf8ee; font-weight: 600; }
.pl-disc small { font-size: 11px; }
#markalar .row-actions { opacity: 1; gap: 6px; }
/* v13.20: renkli kart düzeni tüm sayfalarda — üstte sayfanın renginde şerit, biraz daha belirgin çerçeve */
.page > .card:not(.dc), .page > form.card:not(.dc), .page > div > .card:not(.dc):not(.qx-hcard):not(.p-card) {
    border-width: 1.5px; border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); border-top: 3px solid var(--accent); }
.page > .card:not(.dc) > .card-head, .page > form.card:not(.dc) > .card-head {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff 80%); }
/* v13.20: boş ekranlar — ikon renkli daire içinde, altta eylem düğmeleri */
.empty > svg.i:first-child, .empty > .i:first-child { box-sizing: content-box; width: 30px; height: 30px; padding: 17px; border-radius: 50%;
    color: var(--accent, var(--gold)); background: color-mix(in srgb, var(--accent, var(--gold)) 11%, #fff);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent, var(--gold)) 5%, transparent); margin-bottom: 14px; }
.empty h3 { font-size: 17px; }
.empty > div { max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.empty-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.empty .btn svg.i, .empty-acts svg.i { width: 16px; height: 16px; color: inherit; margin: 0; padding: 0; box-shadow: none; background: none; }
/* ======================================================================
   v13.25: Giriş sayfaları — canlı altın ışık, günlük ürün vitrini
   ====================================================================== */
.login { grid-template-columns: 1.25fr 1fr; }
.login-art { padding: 44px 52px; background: radial-gradient(140% 120% at 100% 0%, #2a241b 0%, #15120e 55%, #0f0d0a 100%); isolation: isolate; }
.la-glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 34% at 22% 78%, rgba(201,167,102,.42), transparent 70%),
        radial-gradient(30% 28% at 80% 22%, rgba(243,227,187,.16), transparent 70%),
        radial-gradient(26% 24% at 62% 70%, rgba(167,132,80,.30), transparent 70%);
    filter: blur(10px); animation: laGlow 18s ease-in-out infinite alternate; }
@keyframes laGlow { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%,-4%,0) scale(1.06); } 100% { transform: translate3d(-3%,2%,0) scale(1.02); } }
.login-art::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); }
.la-logo { height: 58px !important; align-self: flex-start; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.la-mid { display: flex; flex-direction: column; gap: 14px; }
.login-art .quote { font-size: 36px; max-width: 560px; line-height: 1.18; }
.la-text { color: #b9ad97; font-size: 15px; max-width: 480px; line-height: 1.5; }
.la-show { position: relative; height: 250px; margin-top: 26px; max-width: 620px; }
.la-card { position: absolute; margin: 0; width: 210px; background: #fff; border-radius: 16px; padding: 14px 14px 10px;
    box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); animation: laFloat 7s ease-in-out infinite; }
.la-card img { display: block; width: 100%; height: 132px; object-fit: contain; }
.la-card figcaption { font-size: 12.5px; font-weight: 700; color: #1d1b18; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-card figcaption span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a78450; }
.la-c1 { left: 0; top: 30px; transform: rotate(-6deg); animation-delay: 0s; }
.la-c2 { left: 190px; top: 0; z-index: 2; transform: rotate(2deg); animation-delay: -2.3s; width: 230px; }
.la-c3 { left: 400px; top: 42px; transform: rotate(7deg); animation-delay: -4.6s; }
@keyframes laFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.login-art .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.la-stat { letter-spacing: .08em; text-transform: none; color: #a99e88; }
.la-stat b { color: var(--gold); font-weight: 700; }
.login-panel { background: radial-gradient(90% 70% at 100% 0%, #fbf4e6, var(--bg) 60%); }
.login-card { max-width: 380px; background: #fff; padding: 34px 32px 30px; border-radius: 20px; border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(60,45,20,.22), 0 2px 6px rgba(0,0,0,.04); position: relative; }
.login-card::before { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #c9a766, #f3e3bb 50%, #a78450); }
.lc-hi { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2, #a78450); margin-bottom: 6px; }
.login-card h1 { font-size: 28px; letter-spacing: -.02em; }
.login-card input { padding-top: 11px; padding-bottom: 11px; }
.login-card .btn-block { background: linear-gradient(180deg, #2a251d, #15120e); border-color: #15120e; font-size: 15px; letter-spacing: .01em; }
.login-card .btn-block:hover { background: linear-gradient(180deg, #3a3226, #1d1a15); }
@media (prefers-reduced-motion: reduce) { .la-glow, .la-card { animation: none; } }
@media (max-width: 1180px) { .la-show { transform: scale(.82); transform-origin: left top; } }
@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login-art { padding: 26px 22px 30px; min-height: 0; }
    .la-show, .la-text, .login-art .foot { display: none; }
    .login-art .quote { font-size: 22px; }
    .la-logo { height: 42px !important; }
    .login-card { padding: 26px 20px; }
}
@media (max-width: 1180px) { .login-art { display: flex !important; } }
@media (max-width: 900px) { .login-panel { padding: 22px 16px 40px; align-items: start; } .login { min-height: 100vh; grid-template-rows: auto 1fr; } }
@media (max-width: 900px) { .la-mid { margin-top: 12px; } }
/* v13.25: özet kartlarında eğilim grafikleri */
.stat { position: relative; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .spark { display: block; width: 100%; height: 34px; margin-top: 10px; color: var(--sc, var(--accent)); }
.stat.dark .sbars { display: block; width: 100%; max-width: 230px; height: 62px; margin-top: 8px; }
.stat.dark .sbars text { font-size: 8.5px; fill: #8d846f; font-family: inherit; }
.stat .tr { font-weight: 700; }
.stat .tr.up { color: #6fcf97; }
.stat .tr.down { color: #f2994a; }
.stat.dark { background: radial-gradient(120% 120% at 100% 0%, #2c261d, #15120e 70%); }
@media (max-width: 760px) { .stats-5 > .stat.dark:last-child { grid-column: 1 / -1; } .stats-5 > .stat.dark .sbars { max-width: 100%; } }

/* ==========================================================================
   v13.28 — Gruplu sol menü: renkli ikon kutuları, grup başlıkları, rozetler
   ========================================================================== */
.side { background: radial-gradient(140% 60% at 0% 0%, rgba(184,147,90,.10), transparent 60%), var(--dark); }
.side nav { gap: 0; padding: 6px 12px 14px; }
.side nav .nav-group { display: flex; flex-direction: column; gap: 2px; }
.side nav .nav-group + .nav-group { margin-top: 6px; }
.side nav .nav-sep { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px; font-size: 10px; letter-spacing: .22em; color: #6f675b; font-weight: 600; }
.side nav .nav-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent); }
.side nav a { position: relative; gap: 11px; padding: 7px 10px; transition: background .15s, color .15s; }
.side nav a .nav-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--nc) 16%, transparent); transition: background .15s, transform .15s; }
.side nav a .nav-ic svg { width: 16px; height: 16px; color: var(--nc); opacity: 1; filter: brightness(1.2); }
.side nav a .nav-lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav a:hover .nav-ic { background: color-mix(in srgb, var(--nc) 28%, transparent); transform: scale(1.06); }
.side nav a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 26%, transparent), color-mix(in srgb, var(--nc) 4%, transparent)); box-shadow: none; color: #fff; }
.side nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--nc); box-shadow: 0 0 12px var(--nc); }
.side nav a.active .nav-ic { background: var(--nc); box-shadow: 0 4px 12px color-mix(in srgb, var(--nc) 45%, transparent); }
.side nav a.active .nav-ic svg { color: #fff; filter: none; }
.side nav a .nav-badge { margin-left: auto; min-width: 20px; text-align: center; background: var(--nc); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--nc) 22%, transparent); }
.side nav a .nav-ext + .nav-badge { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .side nav a, .side nav a .nav-ic { transition: none; } .side nav a:hover .nav-ic { transform: none; } }

/* v13.28: VOX ürün kartları — görsel yakınlaşma, yumuşak gölge, kategori renkli kenar */
.p-img { overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #fff 0%, transparent 75%), linear-gradient(160deg, color-mix(in srgb, var(--cc, #b8935a) 9%, #faf7f1), #efe8db); }
.p-img img:not(.brand-mark img) { transition: transform .35s cubic-bezier(.2,.7,.3,1); filter: drop-shadow(0 8px 10px rgba(29,27,24,.15)); }
.p-card:hover .p-img > img { transform: scale(1.07); }
.p-card { transition: border-color .18s, box-shadow .18s, transform .18s; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(29,27,24,.28); border-color: color-mix(in srgb, var(--cc, #b8935a) 40%, var(--line)); }
.product-grid.as-list .p-card:hover { transform: none; box-shadow: none; }
.product-grid.as-list .p-card:hover .p-img > img { transform: none; }
@media (prefers-reduced-motion: reduce) { .p-card, .p-img img { transition: none !important; } .p-card:hover, .p-card:hover .p-img > img { transform: none; } }

/* ==========================================================================
   v13.28 — Küçük animasyonlar (hareket azaltma tercihinde tamamen kapalı)
   'backwards' dolgu: animasyon bitince hiçbir iz bırakmaz (sabit/sticky öğeler etkilenmez)
   ========================================================================== */
@keyframes vxIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes vxPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes vxSlide { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes vxAlert { from { opacity: 0; transform: translateY(-8px); } }
@keyframes vxTick { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: none; } }
@keyframes vxRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nc, #b8935a) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .page > *, .b-main > * { animation: vxIn .45s cubic-bezier(.2,.7,.3,1) backwards; }
  .page > *:nth-child(2), .b-main > *:nth-child(2) { animation-delay: .05s; }
  .page > *:nth-child(3), .b-main > *:nth-child(3) { animation-delay: .10s; }
  .page > *:nth-child(4), .b-main > *:nth-child(4) { animation-delay: .15s; }
  .page > *:nth-child(n+5), .b-main > *:nth-child(n+5) { animation-delay: .20s; }
  .stats > .stat, .bh-tiles > .bh-tile, .b-grid > .b-card, .product-grid > .p-card { animation: vxIn .45s cubic-bezier(.2,.7,.3,1) backwards; }
  .stats > .stat:nth-child(2), .bh-tiles > .bh-tile:nth-child(2), .b-grid > .b-card:nth-child(2), .product-grid > .p-card:nth-child(2) { animation-delay: .06s; }
  .stats > .stat:nth-child(3), .bh-tiles > .bh-tile:nth-child(3), .b-grid > .b-card:nth-child(3), .product-grid > .p-card:nth-child(3) { animation-delay: .12s; }
  .stats > .stat:nth-child(4), .bh-tiles > .bh-tile:nth-child(4), .b-grid > .b-card:nth-child(4), .product-grid > .p-card:nth-child(4) { animation-delay: .18s; }
  .stats > .stat:nth-child(n+5), .b-grid > .b-card:nth-child(n+5), .product-grid > .p-card:nth-child(n+5) { animation-delay: .24s; }
  .flash-stack .alert { animation: vxAlert .35s cubic-bezier(.2,.7,.3,1) backwards; }
  .flash-stack .alert.alert-info > svg.i { animation: vxTick .5s .15s cubic-bezier(.2,.7,.3,1) backwards; }
  .b-toast:not([hidden]) { animation: vxSlide .25s cubic-bezier(.2,.7,.3,1); }
  .vx-bump:not([hidden]) { animation: vxPop .4s cubic-bezier(.2,.7,.3,1); }
  span.vx-bump:not([hidden]):not(.b-qty) { display: inline-block; }
  .side nav a .nav-badge { animation: vxRing 1.4s ease-out 2 .6s; }
  .btn { transition: transform .08s, background .15s, border-color .15s, color .15s, box-shadow .15s; }
  .btn:active { transform: scale(.97); }
}

/* v13.29: Logo bağlantı kartı ve eşleştirme sayfası */
.d-status.bad::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.lg-p { font-size: 12.5px; margin: 8px 0 0; }
.lg-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 2px; font-size: 13px; color: var(--muted); }
.lg-stats b { color: var(--ink); font-size: 15px; }
.lg-err { font-size: 13px; color: var(--danger); margin: 8px 0 0; overflow-wrap: anywhere; }
.lg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lg-acts form { margin: 0; }
.lg-set { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 10px; }
.lg-set summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.lg-set[open] summary { margin-bottom: 10px; }
.lm-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lm-top form.lm-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.lm-top input[type=search] { flex: 1; min-width: 180px; }
.lm-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(170px, 230px); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.lm-row:last-child { border-bottom: 0; }
.lm-row.done { background: color-mix(in srgb, var(--ok-soft) 45%, transparent); }
.lm-p b { display: block; font-size: 14px; }
.lm-p span { font-size: 12px; color: var(--muted); }
.lm-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lm-c label { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: var(--surface); }
.lm-c label:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.lm-c code { font-size: 12px; font-weight: 600; white-space: nowrap; }
.lm-c .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lm-c .q { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lm-c .sc { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.lm-c .sc.hi { background: var(--ok-soft); color: var(--ok); }
.lm-none { font-size: 12.5px; color: var(--muted); padding: 5px 0; }
.lm-m input { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.lm-m .help { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lm-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -6px 18px rgba(29,27,24,.06); }
@media (max-width: 900px) { .lm-row { grid-template-columns: 1fr; gap: 8px; } }
.seg.lm-seg a { padding: 7px 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg.lm-seg a.on { background: var(--dark); color: #fff; }
.lm-info { font-size: 13px; margin: 0 0 12px; }
.lm-top select, .lm-top input[type=search], .lm-m input { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; background: var(--surface); font: inherit; font-size: 13.5px; color: var(--ink); min-width: 0; }
.lm-m input { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: 7px 10px; }
@media (max-width: 640px) { .lm-top form.lm-f { flex: 1 1 100%; } .lm-top form.lm-f > * { flex: 1 1 100%; } .seg.lm-seg { width: 100%; } .seg.lm-seg a { flex: 1; text-align: center; padding-inline: 6px; } }
@keyframes lgPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #3f6fb5 15%, transparent); } }
.d-status.run::before { background: #3f6fb5; box-shadow: 0 0 0 4px color-mix(in srgb, #3f6fb5 18%, transparent); animation: lgPulse 1.2s ease-in-out infinite; }
.lm-imp { margin-bottom: 14px; }
.lm-imp-in { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; }
.lm-imp-in > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.lm-imp-in > div b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lm-imp-in > div b svg.i { width: 16px; height: 16px; }
.lm-imp-in input[type=file] { font-size: 13px; max-width: 100%; }

/* v13.32: Logo kodu otomatik tamamlama */
.lac { position: fixed; z-index: 90; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(29,27,24,.35); padding: 4px; }
.lac-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.lac-it.on, .lac-it:hover { background: var(--surface-2); }
.lac-it code { font-size: 12px; font-weight: 700; white-space: nowrap; }
.lac-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lac-q { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lac-q.ok { color: var(--ok); font-weight: 600; }
.lac-ow { grid-column: 2 / -1; font-size: 11px; color: #a0661b; }
.lac-none { padding: 10px; font-size: 13px; color: var(--muted); }

/* v13.33: Fiyat kontrolü */
.pc-cards { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pc-cards .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-cur > span, .pc-k span { font-size: 12.5px; color: var(--muted); }
.pc-cur > div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pc-cur b { font-size: 20px; } .pc-cur b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pc-cur b.bad, .pc-cur b.bad small { color: var(--danger); }
a.pc-k { color: var(--ink); border-top: 3px solid var(--kc, var(--gold)); transition: transform .15s, box-shadow .15s; }
a.pc-k:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
a.pc-k b { font-size: 24px; color: var(--kc); }
a.pc-k.on { box-shadow: 0 0 0 2px var(--kc) inset; }
a.pc-k.zero { opacity: .55; }
.pc-tl { --kc: #c0533f; } .pc-kaynak { --kc: #b8935a; } .pc-bos { --kc: #7a4fa0; } .pc-yuksek { --kc: #d07a2d; } .pc-eski { --kc: #5a6b7d; }
.pc-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pc-f select, .pc-in, .pc-cur-s { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; background: var(--surface); font: inherit; font-size: 13.5px; color: var(--ink); }
.pc-in { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.pc-src { font-size: 12.5px; max-width: 260px; }
.pc-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin: 1px 3px 1px 0; color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, transparent); white-space: nowrap; }
.pc-tag.ok { --kc: var(--ok); }
.pc-lists { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
@media (max-width: 1100px) { .pc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pc-cur { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pc-cards { grid-template-columns: 1fr 1fr; } }

/* v13.34: toplu seçim / kaldırma */
.sel-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 14px; background: var(--dark); color: #efe8db; border-radius: 14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.sel-bar[hidden] { display: none; }
.sel-bar #sel-n { font-weight: 600; margin-right: auto; }
.sel-bar .btn-ghost { color: #efe8db; border-color: rgba(255,255,255,.2); background: transparent; }
.sel-bar .sel-del { background: var(--danger); border-color: var(--danger); color: #fff; }
.sel-bar .sel-del:disabled { opacity: .5; }
body.sel-mode .p-card { cursor: pointer; position: relative; }
body.sel-mode .p-card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; z-index: 3; }
body.sel-mode .p-card.picked { box-shadow: 0 0 0 2px var(--danger); border-color: var(--danger); }
body.sel-mode .p-card.picked::after { background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--danger); }
body.sel-mode .p-img .actions { display: none; }
body.sel-mode #sel-btn { background: var(--dark); color: #fff; }
.pl-rm:hover { color: var(--danger); border-color: var(--danger); }
.rm-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* v13.35: bayiyi kaldır */
.d-danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); margin-top: 18px; }
.d-danger .card-head h2 { color: var(--danger); }
.d-danger-b p { font-size: 13.5px; margin: 0 0 12px; max-width: 900px; }
.d-danger-a { display: flex; flex-wrap: wrap; gap: 8px; }
.d-danger-a form { margin: 0; }
.d-del { background: var(--danger); border-color: var(--danger); color: #fff; }
.opt-empty { color: #a0661b; font-size: 12px; white-space: nowrap; }

/* v13.42: marka bağlantıları */
.bb-top { flex-wrap: wrap; }
.bb-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.bb-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--bc, var(--gold)) 35%, var(--line)); white-space: nowrap; transition: border-color .15s, transform .15s; }
.bb-link:hover { border-color: var(--bc, var(--gold)); transform: translateY(-1px); color: var(--ink); }
.bb-link svg.i { width: 15px; height: 15px; color: var(--bc, var(--gold-2)); }
.bb-link .bb-ext { color: var(--muted); font-size: 11px; }
.bb-link.sm { padding: 4px 9px; font-size: 12px; }
.bb-edit { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.bb-edit:hover { color: var(--ink); border-color: var(--ink-2); }
.bb-edit svg.i { width: 14px; height: 14px; }
.pf-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.b-blinks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 12px; font-size: 13px; }
.b-blinks > span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.bl-modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,15,.45); display: grid; place-items: center; padding: 16px; }
.bl-modal[hidden] { display: none; }
.bl-box { background: var(--surface); border-radius: 16px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.bl-head { display: flex; align-items: center; justify-content: space-between; }
.bl-head h3 { margin: 0; font-size: 17px; }
.bl-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.bl-help { font-size: 12.5px; margin: 6px 0 14px; }
.bl-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bl-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2.2fr) auto auto; gap: 8px; align-items: center; }
.bl-row input[type=text], .bl-row input[type=url] { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); min-width: 0; }
.bl-row .d-ck { white-space: nowrap; font-size: 12.5px; }
.bl-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .bl-row { grid-template-columns: 1fr auto; } .bl-row input[type=url] { grid-column: 1 / -1; grid-row: 2; } .bb-links { margin-left: 0; width: 100%; } }
.page > .bl-modal, .page > script { animation: none !important; }

/* v13.45: erişim kayıtları */
.ax-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ax-top .card-head h2 small { font-weight: 400; font-size: 12px; margin-left: 4px; }
.ax-list { display: flex; flex-direction: column; gap: 4px; }
.ax-list a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; color: var(--ink); font-size: 13px; }
.ax-list a:hover { background: var(--surface-2); }
.ax-list a .muted { margin-left: auto; font-size: 12px; }
.ax-t td { vertical-align: top; }
@media (max-width: 900px) { .ax-top { grid-template-columns: 1fr; } }

/* v13.47: renk kartları */
.pv-logo { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--gold-soft); margin-bottom: 12px; font-size: 13.5px; }
.pv-logo .muted { font-size: 12.5px; margin-top: 3px; }
.pv-code { display: inline-block; margin-right: 12px; }
.pv-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pv-row:first-child, .pv-logo + .pv-row { border-top: 0; }
.pv-img { width: 86px; height: 86px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; color: var(--muted); font-size: 11.5px; text-align: center; }
.pv-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-img em { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 10.5px; padding: 2px 0; }
.pv-f { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(150px, 1.3fr) auto; gap: 10px; align-items: end; }
.pv-f label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.pv-f input[type=text] { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); min-width: 0; }
.pv-f input.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.pv-f input[type=file] { font-size: 12px; max-width: 100%; }
.pv-stk { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pv-stk b { font-size: 14px; color: var(--ink); }
.pv-stk b.ok { color: var(--ok); } .pv-stk b.none { color: var(--danger); }
.pv-copy { grid-column: 1 / -1; flex-direction: row !important; font-size: 12.5px !important; color: var(--ink-2) !important; }
.pv-a { grid-column: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pv-new .pv-a { grid-column: 2; }
.pv-new .pv-img { background: var(--surface-2); border-style: dashed; }
@media (max-width: 1100px) { .pv-f { grid-template-columns: 1fr 1fr; } .pv-row { grid-template-columns: 70px minmax(0, 1fr); } .pv-img { width: 70px; height: 70px; } .pv-a { grid-column: 1 / -1; } }
.lm-var { display: grid; grid-template-columns: minmax(80px, auto) auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.lm-var .lm-vc { font-weight: 600; }
.lm-var .q { justify-self: end; font-size: 12px; color: var(--muted); }
.lm-split { margin-top: 6px; font-size: 12px !important; align-items: flex-start; }
.lm-pg { display: flex; gap: 8px; align-items: center; margin-right: auto; font-size: 12.5px; flex-wrap: wrap; }
/* v13.48: stok sayfasında renk bazında durum */
.st-vars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.st-vars .stk { font-size: 11px; padding: 1px 7px; }
.st-vars .stk.hit { box-shadow: 0 0 0 2px currentColor; }
.st-vlink { font-size: 12px; color: var(--gold-2); white-space: nowrap; }

/* v13.52: kenar çubuğunda döviz kurları — menünün üstünde, çerçeveli */
.side-fx { display: block; margin: 4px 12px 10px; padding: 10px 12px 9px; border-radius: 12px;
    background: linear-gradient(160deg, rgba(184,147,90,.20), rgba(184,147,90,.06)); border: 1px solid rgba(214,180,122,.45);
    color: #f4efe4; font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
.side-fx:hover { border-color: rgba(230,198,140,.85); background: linear-gradient(160deg, rgba(184,147,90,.28), rgba(184,147,90,.10)); }
.side-fx .sfx-h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #d9bd88; font-weight: 600; margin-bottom: 6px; }
.side-fx .sfx-h svg { width: 13px; height: 13px; }
.side-fx .sfx-h em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; color: #a99d86; font-weight: 500; }
.side-fx .sfx-r { display: grid; grid-template-columns: 58px 1fr auto; align-items: baseline; padding: 3px 0; }
.side-fx .sfx-r + .sfx-r { border-top: 1px solid rgba(255,255,255,.07); }
.side-fx .sfx-c { font-size: 15px; font-weight: 700; color: #e8cf9c; }
.side-fx .sfx-c small { font-size: 10px; font-weight: 600; color: #a99d86; margin-left: 2px; }
.side-fx b { font-size: 19px; font-weight: 600; color: #fff; text-align: right; }
.side-fx .sfx-tl { font-size: 13px; color: #a99d86; margin-left: 4px; }
.side-fx .sfx-d { display: block; margin-top: 4px; font-size: 10.5px; color: #8d846f; }
/* v13.51: döviz kurları sayfası ve teklif kuru */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.fx-card .card-body { display: grid; gap: 8px; }
.fx-row { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.fx-row.h { font-size: 11.5px; color: var(--muted); }
.fx-row b { font-size: 20px; font-weight: 600; }
.fx-row .c { font-weight: 700; color: var(--gold-2, #8a6d35); }
.fx-card.use { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.fx-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--gold-soft, #f6eedd); color: var(--gold-2, #8a6d35); margin-left: 6px; }
.fx-man { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.fx-man label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.fx-man input { width: 130px; }
.qx-fx { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.qx-fx form { display: inline; }
.qx-orig { display: block; font-size: 11px; color: var(--muted); }
