/* EmkoLED kurumsal tema: beyaz ağırlıklı, yazılar logodaki "emko" grisi, vurgular "LED" gradyanı */
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f6f8fb; --panel: #fff; --line: #e7eaf0; --line-2: #d9dee6;
  --text: #5a5c62; --heading: #47494f; --muted: #8b8e95;
  --brand-1: #469cca; --brand-2: #3171b5; --brand: #3a84be; --brand-ink: #fff; --brand-soft: #eaf3fa;
  --grad: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --ok: #1f9d6b; --warn: #c88400; --bad: #d64545;
  --radius: 14px; --shadow: 0 1px 2px rgba(31,45,61,.04), 0 4px 16px rgba(31,45,61,.05);
  --shadow-lg: 0 18px 50px rgba(31,45,61,.16);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: 26px; margin: 0; color: var(--heading); font-weight: 600; letter-spacing: -.3px; }
h2 { font-size: 17px; margin: 0 0 14px; color: var(--heading); font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--heading); font-weight: 600; }
b, strong { font-weight: 600; color: var(--heading); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }
::selection { background: #d5e7f5; }

/* Yerleşim */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side a.logo { padding: 2px 10px 22px; display: block; border-radius: 0; }
.side a.logo:hover { background: none; }
.side .logo img { width: 156px; height: auto; display: block; }
.side .logo small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 0 2px; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #a3a6ad; padding: 18px 12px 6px; font-weight: 600; }
.side a { color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.side a svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side a:hover { background: #f3f6fa; color: var(--heading); }
.side a.on { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; }
.side a.on svg { opacity: 1; }
.side a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.side .me .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.side .me b { color: var(--heading); display: block; font-size: 14px; }
.side .me a { display: inline; padding: 0; color: var(--brand); font-size: 13px; font-weight: 500; }
.side .me a:hover { background: none; text-decoration: underline; }
.main { padding: 30px 36px 70px; min-width: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.head .muted.small { margin-top: 4px; max-width: 760px; }

/* Bileşenler */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--heading); white-space: nowrap; transition: border-color .15s, box-shadow .15s, transform .05s, filter .15s; }
.btn:hover { border-color: var(--brand-1); color: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 4px 14px rgba(49,113,181,.28); }
.btn.primary:hover { color: #fff; filter: brightness(1.06) saturate(1.05); box-shadow: 0 6px 18px rgba(49,113,181,.36); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: #f0b4b4; color: var(--bad); background: #fff7f7; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
label.f, div.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
label.f.wide, div.f.wide { grid-column: 1 / -1; }
input, select, textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background: #fff; width: 100%; min-width: 0; color: var(--heading); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #b3b6bc; }
input:hover, select:hover, textarea:hover { border-color: #c7cdd6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(70,156,202,.16); }
input[readonly] { background: #f8f9fb; }
textarea { min-height: 76px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=file] { padding: 7px; background: #fafbfc; }
.help { font-weight: 400; font-size: 12px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; background: #fafbfd; text-transform: uppercase; letter-spacing: .06em; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f5f9fd; }
tr.off td { color: #a9acb2; }
.tbl-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef1f5; color: #61646b; }
.pill.draft { background: #eef1f5; color: #61646b; }
.pill.sent { background: var(--brand-soft); color: var(--brand-2); }
.pill.won { background: #e4f5ee; color: #137a52; }
.pill.lost { background: #fdecec; color: #b73737; }
.pill.admin { background: #fff3df; color: #9a6200; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 100% 0%, #eaf3fa 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #eef4fb 0%, transparent 55%), #fff; }
.auth .card { width: 100%; max-width: 420px; padding: 38px 36px; border-radius: 20px; box-shadow: var(--shadow-lg); border-color: #edf0f4; position: relative; overflow: hidden; }
.auth .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.auth .auth-logo { width: 210px; display: block; margin: 0 0 6px; }
.auth h1 { margin-bottom: 4px; font-size: 22px; }
.auth form { display: grid; gap: 14px; margin-top: 22px; }
.auth form .btn { padding: 11px 16px; }
.auth .err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(40,48,60,.38); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; padding: 26px 28px; box-shadow: var(--shadow-lg); }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #3d4046; color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 99; white-space: pre-line; max-width: 90vw; }
#toast.bad { background: var(--bad); }
.logo-prev { max-height: 60px; max-width: 220px; display: block; margin: 6px 0; border: 1px dashed var(--line); padding: 4px; border-radius: 6px; }

/* Ortak ek bileşenler */
.badge { background: var(--grad); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 8px; margin-left: auto; font-weight: 700; }
.toolbar { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
.stack { display: grid; gap: 12px; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.note { background: #f3f8fd; border: 1px solid #d6e7f5; color: #3e6f99; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 13px; background: #f3f6fa; }
.alert.bad { background: #fdecea; color: #a1281e; }
.alert.warn { background: #fff4dd; color: #7a5200; }
.alert.ok { background: #e7f6ee; color: #0b6b3b; }
.ok { color: var(--ok); font-weight: 700; } .bad { color: var(--bad); } .unk { color: var(--warn); font-weight: 700; }
.missing { color: #b8bec9; }
.chg { color: var(--brand); font-weight: 700; }
label.f.check { flex-direction: row; align-items: center; color: var(--text); font-size: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; background: #eef1f5; padding: 4px; border-radius: 12px; width: max-content; max-width: 100%; }
.tabs a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 500; }
.tabs a:hover { color: var(--heading); }
.tabs a.on { background: #fff; color: var(--brand-2); font-weight: 600; box-shadow: 0 1px 3px rgba(31,45,61,.1); }
.tabs a.on .muted { color: var(--brand-1); }
.pill.fixed { background: #eaf3fa; color: #2f6aa6; }
.pill.warn, .pill.pending { background: #fff4dd; color: #8a5a00; }
.pill.internal { background: #fde8e7; color: #b42318; font-size: 11px; }
.pill.approved { background: #e3f6ec; color: #087443; }
.pill.rejected { background: #fde8e7; color: #b42318; }
.pill.invalidated, .pill.cancelled, .pill.revised { background: #eef0f3; color: #667085; }
.modal.wide { max-width: 980px; }
.modal h3 { margin: 16px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.kv-table th { background: none; font-weight: 500; color: var(--muted); width: 44%; font-size: 13px; padding: 5px 8px 5px 0; }
.kv-table td { padding: 5px 0; font-size: 13px; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }

/* Tasarım ekranı */
.designer { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.designer h2 { font-size: 14px; margin: 18px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.designer h2:first-child { margin-top: 0; }
.grid.g1 { grid-template-columns: 1fr; }
.grid.g2 { grid-template-columns: 1fr 1fr; }
.rule-row { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 70px auto; gap: 6px; margin-bottom: 6px; }
.rule-row select, .rule-row input { padding: 6px 7px; font-size: 13px; }
.price-box { margin-top: 10px; background: #f8fafc; border-radius: 8px; padding: 6px 12px; }
.result-col { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.alts { margin-bottom: 14px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--brand-1); background: var(--brand-soft); }
.chip span { font-size: 11px; color: var(--muted); }
.tech h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; }
.svgwrap { background: #fafbfd; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; text-align: center; overflow-x: auto; }
.basis { margin-top: 6px; line-height: 1.5; }
.bom td, .bom th { padding: 5px 8px; font-size: 13px; }
.bom tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }

/* Teklif düzenleyici */
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.q-sum { position: sticky; top: 16px; }
.totals td { border: 0; padding: 4px 0; }
.totals .tot td { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
.internal-box { margin-top: 16px; padding: 12px 14px; background: #f8f9fb; border: 1px dashed #d3d8e0; border-radius: 12px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fbfcfd; }
.item-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.item-main { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.item .qty { width: 120px; }
.item .qty .v { padding: 8px 0; color: var(--text); font-size: 14px; }
.line-total { min-width: 120px; font-weight: 700; padding-bottom: 8px; }
.item details { margin-top: 6px; }
.disc-item { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 3px; font-size: 13px; }
.disc-item:first-of-type { border-top: 0; }
td.reason { max-width: 240px; font-size: 13px; }

@media (max-width: 1180px) { .q-layout, .designer { grid-template-columns: 1fr; } .q-sum, .result-col { position: static; max-height: none; } }
@media (max-width: 900px) { .two, .two-col { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .side .sec, .side .me { display: none; }
  .side .logo { padding: 6px 10px; width: 100%; }
  .main { padding: 16px; }
}

/* Teklif bilgileri */
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid.three { grid-template-columns: 1fr; } }
.sub-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #667085); margin: 14px 0 6px; }
.f > .v { display: block; padding: 8px 0; color: var(--text); font-size: 14px; }
.tabs { display: flex; gap: 4px; }
/* Tasarım ürünleri kartları */
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cat-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.cat-chip span { color: var(--muted, #667085); margin-left: 4px; }
.cat-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.cat-chip.on span { color: rgba(255,255,255,.8); }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.design-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.design-card:hover { box-shadow: 0 12px 30px rgba(31,45,61,.12); transform: translateY(-3px); border-color: #d3e4f2; }
.design-card.off { opacity: .55; }
.dc-img { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f4f8fc, #e9f1f8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dc-img img { width: 100%; height: 100%; object-fit: cover; }
.dc-img svg { width: 92%; height: 92%; }
.dc-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.dc-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #667085); }
.dc-specs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.dc-specs span:not(.pill) { background: #f2f4f7; border-radius: 6px; padding: 2px 7px; }
.dc-price { font-weight: 700; margin-top: 2px; }
.text-row { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; display: grid; gap: 8px; }
.text-row textarea { width: 100%; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-card .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-card .val { font-size: 24px; font-weight: 600; margin-top: 2px; color: var(--heading); }
.stat-card.won { border-left: 4px solid var(--ok); } .stat-card.lost { border-left: 4px solid var(--bad); } .stat-card.open { border-left: 4px solid var(--warn); }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 0; }
.pick-prev { white-space: pre-line; max-height: 140px; overflow: auto; display: block; }
/* Dokümanlar */
.doc-list { display: grid; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.doc-icon { width: 52px; flex: none; text-align: center; font-size: 26px; line-height: 1; }
.doc-icon span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.doc-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
@media (max-width: 700px) { .doc-item { flex-wrap: wrap; } }
.cp-sel { width: 100%; }
.cp-new { flex: 1; min-width: 0; }
/* LCD ürünler */
.lcd-view { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .lcd-view { grid-template-columns: 1fr; } }
.lcd-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.lcd-ph { color: #9aa4b2; font-size: 28px; font-weight: 800; letter-spacing: .1em; padding: 40px; text-align: center; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 6px; margin-bottom: 6px; }
.spec-tbl { width: 100%; border-collapse: collapse; }
.spec-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-tbl td:first-child { color: var(--muted); width: 42%; }

/* Kurumsal tema ek dokunuşları */
.dc-specs span:not(.pill) { background: #f2f5f9; color: var(--text); }
.dc-price { color: var(--heading); }
.lcd-ph { color: #a8b8c8; }
.totals .tot td { color: var(--heading); font-weight: 600; }
.q-sum .card:first-child { position: relative; overflow: hidden; }
.q-sum .card:first-child::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.empty { color: var(--muted); }
.head h1 + .muted, .head div > .muted { line-height: 1.45; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .main { padding: 20px 16px 50px; } }
/* Admin gösterge paneli */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,45,61,.1); }
.kpi .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .val { font-size: 27px; font-weight: 600; color: var(--heading); margin: 4px 0 2px; letter-spacing: -.4px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.accent { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(49,113,181,.3); }
.kpi.accent .lbl, .kpi.accent .sub { color: rgba(255,255,255,.85); }
.kpi.accent .val { color: #fff; }
.kpi.warn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e8a33a; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head .badge { margin-left: 0; }
.pend { display: flex; gap: 12px; padding: 11px 10px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.pend + .pend { margin-top: 4px; }
.pend:hover { background: #f6f9fc; border-color: var(--line); }
.pend b { color: var(--heading); }
.pend-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 15px; }
.pend-ic.disc { background: #fff3df; color: #a8690a; }
.pend-ic.appr { background: #e4f5ee; color: #137a52; }
.pend-ic.proj { background: var(--brand-soft); color: var(--brand-2); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 200px; padding: 6px 4px 0; }
.bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.bar { width: 38%; max-width: 26px; border-radius: 6px 6px 2px 2px; min-height: 2px; transition: height .4s; }
.bar.off { background: #dbe6f0; }
.bar.won { background: var(--grad); }
.bar-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.bar-val { font-size: 11px; color: var(--heading); font-weight: 600; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.off { background: #dbe6f0; } .lg.won { background: var(--grad); }
.sales-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sales-split > div { display: grid; gap: 1px; font-size: 13px; }
.sales-split b { font-size: 17px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.won { background: var(--ok); } .dot.open { background: var(--brand-1); } .dot.lost { background: var(--bad); }
.login-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.login-row:last-child { border-bottom: 0; }
.login-row > div:nth-child(2) { flex: 1; min-width: 0; }
.avatar.sm, .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22b573; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34,181,115,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34,181,115,0); } 100% { box-shadow: 0 0 0 0 rgba(34,181,115,0); } }
/* Teklif talepleri */
.req-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .req-layout { grid-template-columns: 1fr; } }
.drop { display: grid; place-items: center; gap: 4px; text-align: center; border: 2px dashed #cfdceb; border-radius: 14px; padding: 28px 16px; background: #f8fbfe; cursor: pointer; transition: border-color .15s, background .15s; color: var(--heading); }
.drop:hover, .drop.over { border-color: var(--brand-1); background: var(--brand-soft); }
.drop input { display: none; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row > span { font-size: 22px; width: 28px; text-align: center; }
.file-row > div { flex: 1; min-width: 0; word-break: break-word; }
.pend-ic.req { background: #eef0ff; color: #4b55c4; }
.req-banner { display: flex; gap: 12px; align-items: flex-start; }
/* Takip, referans, kayıp */
.pend.fu { align-items: center; }
.pend-ic.fu-accepted { background: #e4f5ee; color: #137a52; } .pend-ic.fu-question { background: #fff3df; color: #a8690a; }
.pend-ic.fu-expiring { background: #fdecec; color: #b73737; } .pend-ic.fu-no_response { background: var(--brand-soft); color: var(--brand-2); }
.pend-ic.fu-warranty { background: #eef0ff; color: #4b55c4; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.ph { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; background: #f6f8fb; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .btn, .ph .pill { position: absolute; bottom: 6px; } .ph [data-rm] { right: 6px; } .ph [data-first], .ph .pill { left: 6px; }
.alert-row td { background: #fff8f8; }
.pill.expired { background: #f3f0e9; color: #8a6d2f; }
.ref-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ref-pick label { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; display: block; }
.ref-pick label.on { border-color: var(--brand-1); box-shadow: 0 0 0 2px rgba(70,156,202,.4); }
.ref-pick img, .ref-pick .noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #eef3f8; }
.ref-pick span { display: block; padding: 6px 9px; font-size: 13px; }
.ref-pick input { display: none; }
.share-link { display: flex; gap: 6px; }
.share-link input { font-size: 13px; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.track-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }
.hbar { height: 8px; border-radius: 4px; background: #eef1f5; overflow: hidden; min-width: 80px; }
.hbar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.en-txt { background: #f8fafc; font-size: 13px; }
/* Saha keşfi (telefon) */
.survey { max-width: 760px; }
.survey .card h2 { font-size: 16px; }
@media (max-width: 700px) {
  .survey .grid { grid-template-columns: 1fr 1fr; }
  .survey input, .survey select, .survey textarea { font-size: 16px; }
  .side { padding: 10px; }
  .side a span:first-of-type { font-size: 14px; }
}
/* Fırsatlar panosu */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board .col { background: #f1f4f8; border-radius: 14px; padding: 8px; min-height: 120px; }
.col-head { padding: 6px 8px 10px; border-top: 3px solid var(--c); border-radius: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.col-head span { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.col-sum { width: 100%; font-size: 15px; font-weight: 600; color: var(--heading); }
.col-body { display: grid; gap: 8px; }
.opp { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; text-decoration: none; color: var(--text); box-shadow: 0 1px 2px rgba(31,45,61,.05); transition: transform .12s, box-shadow .12s; }
.opp:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,45,61,.1); }
.opp.stale { border-color: #f1b8b8; background: #fffafa; }
.opp b { color: var(--heading); font-size: 14px; }
.opp-amt { font-weight: 600; color: var(--heading); white-space: nowrap; }
.opp-foot { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.status-tabs button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.status-tabs button b { margin-left: 4px; color: var(--heading); }
.status-tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.status-tabs button.on b { color: #fff; }
.pill.waiting { background: #eef0fb; color: #4b55c4; } .pill.won_pending { background: #fff3df; color: #a8690a; }
.opp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.opp-stage { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--c, #c9d1dc); text-decoration: none; color: var(--text); background: #fff; }
.opp-stage span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.opp-stage b { font-size: 18px; color: var(--heading); }
.opp-stage small { color: var(--muted); }
.opp-stage.hl { background: linear-gradient(160deg, #f3f8fd, #fff); border-color: #cfe2f2; box-shadow: 0 0 0 2px rgba(70,156,202,.25); }
.opp-stage.warn { border-top-color: #d64545; background: #fffafa; }
.opp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.opp-stage { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--c, #c9d1dc); text-decoration: none; color: var(--text); background: #fff; }
.opp-stage span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.opp-stage b { font-size: 18px; color: var(--heading); }
.opp-stage small { color: var(--muted); }
.opp-stage.hl { background: linear-gradient(160deg, #f3f8fd, #fff); border-color: #cfe2f2; box-shadow: 0 0 0 2px rgba(70,156,202,.25); }
.opp-stage.warn { border-top-color: #d64545; background: #fffafa; }
/* Talepler (teklif altı) */
.req-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.req-type { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.req-type:hover:not(:disabled) { border-color: var(--brand-1); box-shadow: 0 6px 16px rgba(31,45,61,.08); }
.req-type:disabled { opacity: .5; cursor: not-allowed; }
.req-type b { color: var(--heading); }
.rt-ic { font-size: 20px; }
.pill.rt-project { background: #eef0ff; color: #4b55c4; } .pill.rt-electric { background: #fff7d6; color: #8a6a00; }
.pill.rt-survey { background: #e4f5ee; color: #137a52; } .pill.rt-consignment { background: #f3eefc; color: #6b46c1; }
/* Teklif şablonu */
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-list { display: grid; gap: 8px; }
.tpl-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .12s, opacity .12s; }
.tpl-row.off { opacity: .5; background: #f8f9fb; }
.tpl-row.merged { background: #f6f8fb; border-style: dashed; }
.tpl-row.dragging { opacity: .4; } .tpl-row.over { box-shadow: 0 0 0 2px var(--brand-1); }
.tpl-row .grip { cursor: grab; color: #b3b8c0; font-weight: 700; letter-spacing: -2px; user-select: none; }
.tpl-main { flex: 1; min-width: 0; }
.tpl-title { max-width: 320px; padding: 6px 9px; }
.switch { position: relative; width: 38px; height: 22px; display: inline-block; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #d5dae2; border-radius: 99px; transition: background .15s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(16px); }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-row input { margin-top: 4px; }
.item-img { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 10px; background: #fff; }
.item-img img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }

/* Ortak kontrol grubu */
.item.group-item { border-left: 3px solid var(--brand); background: var(--brand-soft); }
.grp-in { min-width: 180px; max-width: 260px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; color: var(--muted); }
.gpick { display: grid; gap: 6px; max-height: 38vh; overflow: auto; }
.gpick label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.gpick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.gpick input { width: auto; margin-top: 3px; }
.gprev { margin-top: 10px; }
.gcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.gc { text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 3px; }
.gc:hover:not([disabled]) { border-color: var(--brand); }
.gc.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.gc[disabled] { opacity: .6; cursor: not-allowed; }
.gauto { display: flex; gap: 8px; align-items: center; }
.gauto input { width: auto; }

/* Görsel kırpma */
.crop-stage { display: flex; justify-content: center; background: #1f2229; border-radius: 10px; padding: 14px; overflow: hidden; }
.crop-wrap { position: relative; display: inline-block; user-select: none; -webkit-user-select: none; line-height: 0; }
.crop-wrap img { display: block; max-width: 100%; max-height: 58vh; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; touch-action: none; }
.crop-box::before, .crop-box::after { content: ''; position: absolute; border: 0 dashed rgba(255,255,255,.55); pointer-events: none; }
.crop-box::before { left: 33.33%; right: 33.33%; top: 0; bottom: 0; border-left-width: 1px; border-right-width: 1px; }
.crop-box::after { top: 33.33%; bottom: 33.33%; left: 0; right: 0; border-top-width: 1px; border-bottom-width: 1px; }
.crop-box i { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 4px; z-index: 1; }
.crop-box i[data-h=nw] { left: -9px; top: -9px; cursor: nwse-resize; } .crop-box i[data-h=se] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-box i[data-h=ne] { right: -9px; top: -9px; cursor: nesw-resize; } .crop-box i[data-h=sw] { left: -9px; bottom: -9px; cursor: nesw-resize; }

/* Teklif kaleminde ürüne verilen ad */
.item-label { display: flex; align-items: center; gap: 8px; margin-top: 6px; max-width: 520px; }
.item-label span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.item-label input { padding: 6px 9px; font-size: 13px; }
.item-label-v { margin-top: 4px; font-size: 13px; }

/* Admin indirimi (yan panel) ve kalem marjı */
.admin-disc { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; background: var(--brand-soft); }
.admin-disc h3 { margin: 0 0 6px; font-size: 14px; }
.adm-ctl { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.adm-ctl select { width: auto; flex: 1 1 130px; } .adm-ctl input { width: 90px; flex: 0 1 90px; }
.item-mg { margin-top: 2px; white-space: nowrap; }

/* LED sihirbazı: teklif kalemi düzenleme bandı */
.eq-banner { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--brand-soft); border: 1px solid var(--brand); color: var(--heading) !important; }
.eq-banner a { color: var(--brand-2); font-weight: 600; }

/* LED sihirbazı: harici projelendirme açıklaması / dosyaları, galvaniz seçeneği */
.ext-req { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--brand); border-radius: 12px; background: var(--brand-soft); }
.ext-req textarea { width: 100%; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; }
.file-chip button { border: 0; background: none; cursor: pointer; color: var(--bad); font-size: 14px; line-height: 1; }
.check-line { display: flex; gap: 8px; align-items: center; cursor: pointer; } .check-line input { width: auto; }
.pill.rt-construction { background: #fdeee4; color: #a4501b; }

/* Ürünlerim: görselli liste ve görsel galerisi */
.plist td.pimg { width: 96px; padding: 6px 8px; }
.plist td.pimg img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.plist td.pimg span { display: flex; align-items: center; justify-content: center; width: 84px; height: 56px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 12px; }
.plist td.pimg.can { cursor: pointer; } .plist td.pimg.can:hover img, .plist td.pimg.can:hover span { outline: 2px solid var(--brand); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 56vh; overflow: auto; }
.gal-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.gal-item img { width: 100%; height: 96px; object-fit: cover; border-radius: 6px; }
.gal-item span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-item.on, button.gal-item:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.gal-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }

/* Komponentler: görsel, kart görünümü */
.clist td.cimg { width: 72px; padding: 6px 8px; cursor: pointer; }
.clist td.cimg img, .clist td.cimg span { width: 60px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; object-fit: cover; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.clist td.cimg span { border-style: dashed; }
.clist td.cimg:hover img, .clist td.cimg:hover span { outline: 2px solid var(--brand); }
.comp-card { cursor: pointer; }
.comp-img { position: relative; cursor: pointer; }
.comp-img .comp-img-btn { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); opacity: 0; transition: opacity .15s; }
.comp-img:hover .comp-img-btn { opacity: 1; }
.comp-foot { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* Dokümanlar: kapak görseli, kart görünümü */
.doc-icon.has-img { padding: 0; overflow: hidden; width: 72px; height: 52px; border-radius: 8px; border: 1px solid var(--line); } .doc-icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-icon.can { cursor: pointer; } .doc-icon.can:hover { outline: 2px solid var(--brand); }
.doc-card .doc-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 44px; background: var(--brand-soft); }
.doc-card .doc-ph span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--brand-2); }
.doc-card .doc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 4px; }

/* İşlem geçmişi */
.au-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.au-day-h { padding: 10px 16px; font-weight: 700; color: var(--heading); background: var(--brand-soft); border-bottom: 1px solid var(--line); text-transform: capitalize; }
.au-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.au-row:last-child { border-bottom: 0; }
.au-row.bad { background: #fff4f4; }
.au-ic { width: 26px; flex: none; text-align: center; font-size: 16px; line-height: 1.5; }
.au-main { flex: 1; min-width: 0; } .au-main .muted { word-break: break-word; }
.au-time { flex: none; text-align: right; min-width: 64px; }
.au-today .au-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.au-person { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }

/* Projelendirilmiş hali iletilen (pasif) teklif */
.pill.forwarded { background: #eef0f4; color: #6b7280; }
.fwd-btn { white-space: nowrap; }
.note.fwd-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 3px solid var(--brand); }

/* Komponentler: iç gruplandırma ve marka aç / kapa */
.cgrp { margin-bottom: 18px; }
.cgrp-h { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); border-left: 3px solid var(--brand); }
.cgrp-h b { font-size: 15px; color: var(--heading); } .cgrp-h .btn { margin-left: auto; }
.brand-list { display: grid; gap: 6px; max-height: 56vh; overflow: auto; }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.brand-row > span:first-child { flex: 1; }
.brand-row.off { background: #fbf2f2; }
.comp-card.off, .clist tr.off td { opacity: .6; }

/* Ürün görsel galerisi */
.pgal-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 16px; margin-bottom: 14px; align-items: start; }
@media (max-width: 760px) { .pgal-wrap { grid-template-columns: 1fr; } }
.pgal-main img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; }
.pgal-empty { height: 200px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); }
.pgal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pgal-t { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.pgal-t.main { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pgal-t img { width: 100%; height: 74px; object-fit: cover; display: block; }
.pgal-badge { position: absolute; top: 4px; left: 4px; background: var(--brand); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.pgal-act { display: flex; gap: 4px; padding: 4px; justify-content: flex-end; }
.pgal-act .btn { padding: 2px 6px; font-size: 11px; }

/* Teklif ekleri: doküman seçici */
.doc-pick { display: grid; gap: 6px; }
.doc-pick-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.doc-pick label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.doc-pick label > span { flex: 1; } .doc-pick label input { width: auto; }
.doc-pick label.on { border-color: var(--brand); background: var(--brand-soft); }
.doc-pick label.dis { opacity: .5; cursor: not-allowed; }
.doc-pick .doc-n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; align-items: center; justify-content: center; }
