/* Sektöre özel sayfalar (sector.js): kurulum, mağaza, tasarım stüdyosu, randevu, ekip. */
.sx-progress { height: 8px; border-radius: 8px; background: var(--fill); overflow: hidden; margin: 4px 0 12px; }
.sx-progress i { display: block; height: 100%; background: linear-gradient(90deg, #fa8541, #ff6a00); border-radius: 8px; transition: width .4s; }
.sx-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.sx-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--fg) / .1); font-size: 12px; }
.sx-steps li.ok { color: var(--ink); }
.sx-steps li.ok span { background: #1f7a52; color: #fff; }
.sx-setup-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) auto; align-items: center; gap: 14px; }
.sx-setup-card .sx-progress { margin: 0; }
.sx-group { margin: 16px 0 0; }
.sx-sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.sx-sector { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 0; border-radius: 16px; text-align: left; color: inherit; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; }
.sx-sector:hover { background: var(--fill-2); }
.sx-sector.on { box-shadow: inset 0 0 0 2px #f2783c; background: rgba(242, 120, 60, .14); }
.sx-sector.guess:not(.on) { box-shadow: inset 0 0 0 1.5px rgba(255, 190, 107, .7); }
.sx-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.sx-mods i { font-style: normal; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: rgb(var(--fg) / .08); color: var(--ink-2); }
.sx-conns { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.sx-conn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fill); flex-wrap: wrap; }
.sx-conn .grow { min-width: 200px; }
.small-text.bad, .bad { color: var(--bad); }
.good { color: var(--good); }
.sx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.sx-tile { padding: 12px 14px; border-radius: var(--r-md); background: rgb(var(--sf) / .5); box-shadow: inset 0 0 0 1px rgba(253, 195, 162, .16); min-width: 0; }
.sx-tile b { display: block; font-size: 20px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tile span { font-size: 11.5px; color: var(--ink-2); }
.warn-panel { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .4); }
.sx-new summary, details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary h2 { display: inline; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-product, .sx-client { border-radius: 14px; background: var(--fill); margin-top: 8px; overflow: hidden; }
.sx-product.open, .sx-client.open { box-shadow: inset 0 0 0 1px rgba(255, 176, 120, .45); }
.sx-prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.sx-prow .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sx-prow img, .sx-noimg { width: 52px; height: 60px; border-radius: 10px; object-fit: cover; background: #eceae6; flex: none; }
.sx-stock { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--ink-2); flex: none; }
.sx-stock b { font-size: 18px; color: var(--ink); }
.sx-stock.low b { color: var(--warn); }
.sx-stock em { font-style: normal; color: var(--warn); }
.sx-pd { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.sx-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.sx-var { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--input); }
.sx-var.low { box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .5); }
.sx-var .grow { display: flex; flex-direction: column; min-width: 0; }
.sx-var input { width: 70px; }
.sx-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sx-meta { border: 1px solid var(--hair); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sx-meta legend { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.sx-chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sx-channel { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.sx-ch-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sx-code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--input); font-size: 12px; word-break: break-all; user-select: all; }
.sx-order { padding: 10px 12px; border-radius: 12px; background: var(--fill); margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.sx-order-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-right { text-align: right; }
.sx-center { justify-content: center; text-align: center; }

/* Tasarım stüdyosu */
.sx-gen { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.sx-gen .grow { flex: 1 1 260px; }
.sx-deck { position: relative; height: 430px; max-width: 360px; margin: 6px auto 12px; }
.sx-card { position: absolute; inset: 0; border-radius: 22px; background: #f2f0ec; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); overflow: hidden; transform: translateY(calc(var(--i) * 10px)) scale(calc(1 - var(--i) * .04)); transition: transform .25s, opacity .25s; touch-action: none; user-select: none; }
.sx-card.top { cursor: grab; }
.sx-card.drag { transition: none; cursor: grabbing; }
.sx-card img { width: 100%; height: 100%; object-fit: contain; padding: 18px; pointer-events: none; }
.sx-card-l { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 700; color: #555; background: rgba(255, 255, 255, .8); padding: 3px 9px; border-radius: 999px; }
.sx-stamp { position: absolute; top: 22px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-weight: 900; font-size: 26px; letter-spacing: .08em; }
.sx-stamp.yes { left: 18px; color: #2f9e6e; transform: rotate(-12deg); opacity: var(--yes, 0); }
.sx-stamp.no { right: 18px; color: #e5484d; transform: rotate(12deg); opacity: var(--no, 0); }
.sx-card.fly-r { transform: translateX(140%) rotate(20deg) !important; opacity: 0; }
.sx-card.fly-l { transform: translateX(-140%) rotate(-20deg) !important; opacity: 0; }
.sx-pv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sx-mock { width: 100%; border-radius: 18px; background: #eceae6; }
.sx-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); margin-right: 4px; vertical-align: -2px; }
.sx-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.sx-thumb { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 0; border-radius: 14px; background: #f2f0ec; color: #444; font-size: 11px; font-weight: 700; cursor: pointer; }
.sx-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.sx-approved { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--fill); margin-top: 6px; flex-wrap: wrap; }
.sx-approved img { width: 64px; height: 80px; object-fit: contain; border-radius: 10px; background: #f2f0ec; }
.sx-approved .grow { min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.sx-table th { font-size: 11.5px; font-weight: 650; color: var(--ink-2); text-align: left; padding: 4px; }
.sx-table td { padding: 3px; }
.sx-table input { width: 100%; min-width: 60px; }

/* Randevu ve kartlar */
.sx-appt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill); margin-top: 6px; flex-wrap: wrap; }
.sx-appt .grow { min-width: 180px; display: flex; flex-direction: column; }
.sx-appt.s-cancelled, .sx-appt.s-noshow { opacity: .6; }
.sx-time { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; min-width: 56px; }
.sx-time em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.sx-search { width: 100%; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); color: #fff; margin-bottom: 4px; }
.sx-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(140deg, #fa8541, #ff6a8a); font-weight: 800; font-size: 14px; color: #fff; }
.sx-svc { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--hair); }

/* Ekip */
.sx-member { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.sx-member .grow { min-width: 160px; display: flex; flex-direction: column; }
.sx-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sx-col { padding: 10px; border-radius: 16px; background: rgb(var(--sf) / .45); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sx-col h3 { font-size: 13.5px; }
.sx-none { padding: 6px; }
.sx-task { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: var(--fill); }
.sx-task.overdue { box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .6); }
.sx-task select, .sx-task input { width: 100%; }
.sx-cmt { font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--input); }

@media (max-width: 1100px) {
  .sx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sx-pv { grid-template-columns: 1fr; }
  .form-grid.three { grid-template-columns: 1fr; }
  .sx-setup-card { grid-template-columns: 1fr; }
  .sx-deck { height: 380px; }
}
@media (max-width: 560px) {
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-board { grid-template-columns: 1fr; }
  .sx-svc { grid-template-columns: 1fr 1fr; }
}

/* Ekibim v2: sekmeler, kişi kartları, görev panosu, görev penceresi */
.sx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.sx-tabs button { border: 0; background: none; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; font-weight: 650; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.sx-tabs button.on { color: var(--ink); background: rgba(242, 120, 60, .1); box-shadow: inset 0 0 0 1.5px #f2783c; }
.sx-tabs button span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; background: rgba(242, 120, 60, .3); color: var(--ink); }
.sx-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sx-mcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgb(var(--sf) / .55); box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
.sx-mtop { display: flex; align-items: center; gap: 10px; }
.sx-mtop .grow { display: flex; flex-direction: column; min-width: 0; }
.sx-mtop strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-mstats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.sx-mstats b { color: var(--ink); font-size: 15px; margin-right: 2px; }
.sx-mcard .btn-row { gap: 6px; }
.sx-ava.ai, .kb-ava.ai { background: linear-gradient(140deg, #22c1a4, #3b82f6); }
.sx-reach { text-decoration: none; display: inline-flex; align-items: center; }
.sx-reach.wa { color: #25d366; }
.sx-madd { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 150px; border: 1.5px dashed var(--hair-2, var(--hair)); border-radius: 18px; background: none; color: var(--ink-2); font-weight: 650; }
.sx-madd b { font-size: 26px; font-weight: 500; }
.sx-madd:hover { color: var(--ink); border-color: #f2783c; }

.kb-panel { overflow: hidden; }
.kb-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-head h2 { margin: 0; }
.kb-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.kb-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 16px; background: rgb(var(--sf) / .4); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .15s, background .15s; }
.kb-col.over { background: rgba(242, 120, 60, .1); box-shadow: inset 0 0 0 1.5px #f2783c; }
.kb-col header { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; font-size: 13.5px; }
.kb-dot { width: 8px; height: 8px; border-radius: 50%; background: #afa39c; flex: none; }
.s-doing .kb-dot { background: #3b82f6; }
.s-review .kb-dot { background: #f59e0b; }
.s-done .kb-dot { background: #22c55e; }
.kb-n { font-size: 12px; color: var(--ink-2); }
.kb-add { margin-left: auto; width: 26px; height: 26px; font-size: 16px; }
.kb-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kb-empty { display: grid; place-items: center; min-height: 60px; border: 1.5px dashed var(--hair); border-radius: 12px; font-size: 12px; color: var(--ink-2); }
.kb-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border-radius: 13px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.kb-card[draggable='true'] { cursor: grab; }
.kb-card:hover { box-shadow: inset 0 0 0 1px #f2783c; }
.kb-card.dragging { opacity: .45; }
.kb-card.p-high { box-shadow: inset 3px 0 0 #ef4444, inset 0 0 0 1px var(--hair); }
.kb-card.overdue .kb-due { color: #ef4444; font-weight: 700; }
.s-done .kb-card .kb-open { text-decoration: line-through; opacity: .7; }
.kb-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kb-top:empty { display: none; }
.kb-pri { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(175, 163, 156, .18); color: var(--ink-2); }
.kb-pri.high { background: rgba(239, 68, 68, .15); color: #ef4444; }
.kb-pri.ai { background: rgba(34, 193, 164, .15); color: #14b8a6; }
.kb-open { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); font-weight: 650; font-size: 14px; line-height: 1.35; cursor: pointer; }
.kb-open::after { content: ''; position: absolute; inset: 0; border-radius: 13px; }
.kb-open:focus-visible { outline: none; }
.kb-open:focus-visible::after { box-shadow: 0 0 0 2px #f2783c; }
.kb-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.kb-tags i { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(242, 120, 60, .14); color: #ffb98a; }
.kb-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.kb-ava { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; background: linear-gradient(140deg, #fa8541, #ff6a8a); color: #fff; font-size: 10px; font-weight: 800; }
.kb-ava.none { background: rgba(175, 163, 156, .25); color: var(--ink-2); }
.kb-count { white-space: nowrap; }

dialog.wide:has(.kb-modal) { width: min(720px, calc(100vw - 24px)); }
.kb-modal { display: flex; flex-direction: column; gap: 12px; }
.kb-mhead { display: flex; align-items: center; gap: 10px; }
.kb-mhead h1 { font-size: 24px; margin: 0; flex: 1; }
.kb-del { margin-left: auto; color: #ef4444; }
.kb-cmts { display: flex; flex-direction: column; gap: 10px; }
.kb-cmt { display: flex; gap: 10px; align-items: flex-start; }
.kb-cmt p { margin: 3px 0 0; white-space: pre-wrap; }
.kb-cform textarea { width: 100%; }
.kb-hist summary { cursor: pointer; font-weight: 650; font-size: 13.5px; }
.kb-hist ol { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

@media (max-width: 700px) {
  .kb-board { grid-template-columns: repeat(4, minmax(240px, 82vw)); scroll-snap-type: x mandatory; }
  .kb-col { scroll-snap-align: start; }
}
