:root {
  --ink: #0b0c16;
  --ink-soft: #5b6075;
  --line: #e3e5ee;
  --paper: #fff;
  --canvas: #f4f5f9;
  --brand: #2531f0;
  --brand-2: #1b25bf;
  --sun: #ffd23f;
  --ok: #1b7f5a;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 12, 40, .05), 0 6px 20px rgba(11, 12, 40, .04);
  --disp: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  /* Bootstrap birincil rengi: bağlantılar, rozetler, düğmeler */
  --bs-primary: #2531f0; --bs-primary-rgb: 37, 49, 240;
  --bs-link-color: #2531f0; --bs-link-color-rgb: 37, 49, 240;
  --bs-link-hover-color: #1b25bf; --bs-link-hover-color-rgb: 27, 37, 191;
  --bs-body-color: #0b0c16; --bs-border-color: #e3e5ee;
}

html { font-size: 15px; min-height: 100%; }
body {
  font-family: "Instrument Sans", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: .95rem;
  letter-spacing: 0;
  min-height: 100vh;
}
h1, h2, h3, h4, h5 { letter-spacing: -.02em; color: var(--ink); }
a { color: var(--brand); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.app-nav {
  background: var(--brand-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0;
}
.app-nav > .container-fluid {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.app-nav .navbar-brand { font-weight: 650; letter-spacing: -.02em; }
.app-nav .nav-link { opacity: .86; }
.app-nav .nav-link:hover, .app-nav .nav-link.active { opacity: 1; }
.app-shell {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 56px);
  padding: 1.25rem 1.75rem 2.5rem;
}

.page-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.25rem;
}
.page-kicker { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem; }
.page-title { font-size: 1.45rem; font-weight: 650; margin: 0; }
.page-sub { color: var(--ink-soft); font-size: .88rem; margin: .35rem 0 0; }
.page-metrics { display: flex; gap: .6rem; flex-wrap: wrap; }
.metric {
  min-width: 7.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .75rem; box-shadow: var(--shadow);
}
.metric b { display: block; font-size: 1.05rem; }
.metric span { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

.edit-page, .edit-narrow, .edit-medium { width: 100%; max-width: none; }
.edit-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden;
}
.edit-card .card-header, .edit-card-head {
  background: #fafbfc; border-bottom: 1px solid var(--line);
  font-weight: 650; font-size: .86rem; padding: .75rem 1rem;
}
.edit-card .card-body { padding: 1rem 1.05rem 1.1rem; }
.edit-card-hint { color: var(--ink-soft); font-size: .82rem; margin: 0 0 .85rem; }
.edit-aside .edit-card { position: sticky; top: .85rem; }

.form-section {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin: 1.1rem 0 .55rem; padding: 0;
  border: 0;
}
.form-label { font-weight: 600; color: #2c3542; }
.form-text { color: var(--ink-soft); }
.form-control, .form-select {
  border-color: #d5dae2; border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: #8aa6c4; box-shadow: 0 0 0 .2rem rgba(31, 75, 122, .12);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-switch-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
  margin-bottom: .65rem;
}
.form-switch-row .form-check { margin: 0; }
.form-switch-row .form-text { margin-top: .2rem; }

.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 650; }
.card, .card-stat { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-stat .display-6 { font-weight: 600; }
.text-truncate-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-hero, .product-thumb, #img-preview img {
  width: 64px !important; height: 64px !important; max-width: 64px; max-height: 64px;
  object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block;
}
.product-hero.lg { width: 72px !important; height: 72px !important; max-width: 72px; max-height: 72px; }
.product-tabs .nav-link {
  padding: .4rem .95rem; border-radius: 999px; color: var(--ink-soft); font-weight: 600;
}
.product-tabs .nav-link.active { background: var(--brand); color: #fff; }
.crumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: .75rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--brand); }

.kind-tile {
  display: block; text-align: center; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.35rem .7rem; height: 100%;
}
.kind-tile:hover { border-color: #c5d2e0; color: inherit; }
.kind-tile b { display: block; font-size: 1rem; }

.tox-tinymce { border-radius: 8px !important; max-width: 100%; border-color: #d5dae2 !important; }
.form-sticky-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: rgba(244, 246, 248, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: .85rem 0; margin-top: 1.1rem;
}
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn { border-radius: 8px; font-weight: 600; }
.btn-sm { border-radius: 7px; }
.badge.text-bg-light { color: var(--ink-soft); }
.alert { border-radius: 10px; }

.page-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .85rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.filter-bar .form-control, .filter-bar .form-select { max-width: 280px; }
.filter-bar.product-filters .form-control { min-width: 16rem; max-width: 22rem; }
.filter-bar.product-filters .form-select { max-width: 13rem; }

.table-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1rem;
}
.table-card .table { margin-bottom: 0; }
.table-card thead th {
  background: #f7f8fa; border-bottom: 1px solid var(--line);
  padding-top: .65rem; padding-bottom: .65rem;
}
.table-card tbody td { padding-top: .65rem; padding-bottom: .65rem; }
.table-card .table-hover tbody tr:hover { background: #f8fafc; }
.table-card-foot {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .75rem 1rem; border-top: 1px solid var(--line); background: #fafbfc;
}

.app-brand-mark {
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  background: #fff; color: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; margin-right: .45rem;
}
.app-nav .form-select {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18);
}
.app-nav .form-select option { color: var(--ink); }

.kind-tile .kind-mark {
  width: 2.4rem; height: 2.4rem; margin: 0 auto .55rem; border-radius: 10px;
  background: #eef3f8; color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.kind-tile:hover { box-shadow: 0 8px 20px rgba(16,24,40,.08); transform: translateY(-1px); }

.auth-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .edit-card-head { font-size: 1.15rem; padding: .9rem 1.1rem; }

/* ---- Giriş / kurulum: defter çizgili panel + sakin form ---- */
body.auth-page { background: #fff; }
.auth-page .app-shell { padding: 0; min-height: 100vh; max-width: none; }
.auth-page .app-shell > .alert { margin: 1rem 1.5rem 0; }
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.auth-panel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 3rem 3rem 5.25rem; color: #e8eef6; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 3.25rem, rgba(217, 164, 65, .55) 3.25rem, rgba(217, 164, 65, .55) calc(3.25rem + 1px), transparent calc(3.25rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0 2rem, rgba(255, 255, 255, .055) 2rem calc(2rem + 1px)),
    #0f2742;
}
.auth-wordmark { color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; font-size: 1.1rem; }
.auth-wordmark:hover { color: #fff; }
.auth-panel-body { max-width: 30rem; margin: 4rem 0 2rem; }
.auth-headline {
  font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.015em; color: #fff; margin: 0 0 2.5rem;
}
.auth-flow { list-style: none; margin: 0; padding: 0; position: relative; }
.auth-flow::before {
  content: ""; position: absolute; left: .42rem; top: .55rem; bottom: .9rem; width: 1px;
  background: rgba(217, 164, 65, .7); transform-origin: top; animation: auth-draw 1s .15s ease-out both;
}
.auth-flow li { position: relative; padding: 0 0 1.6rem 2rem; display: grid; gap: .15rem; }
.auth-flow li:last-child { padding-bottom: 0; }
.auth-flow li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: .85rem; height: .85rem; border-radius: 50%;
  background: #0f2742; border: 2px solid #d9a441;
}
.auth-flow strong { color: #fff; font-weight: 650; font-size: 1.02rem; }
.auth-flow span { color: #b9c7d8; font-size: .92rem; line-height: 1.45; max-width: 26rem; }
@keyframes auth-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 25rem; }
.auth-title {
  font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 2rem; letter-spacing: -.015em;
  margin: 0 0 .4rem;
}
.auth-sub { color: var(--ink-soft); margin: 0 0 1.75rem; line-height: 1.5; }
.auth-label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 .35rem; color: var(--ink); }
.auth-input { padding: .72rem .85rem; border-radius: 8px; border-color: #cfd6df; margin-bottom: 1.1rem; }
.auth-input:focus, .auth-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 75, 122, .18); }
.auth-form .form-control { padding: .65rem .85rem; border-radius: 8px; }
.auth-pw { position: relative; }
.auth-pw .auth-input { padding-right: 2.9rem; }
.auth-pw-toggle {
  position: absolute; right: .35rem; top: .3rem; width: 2.2rem; height: 2.2rem; border: 0; background: transparent;
  color: var(--ink-soft); border-radius: 6px; display: grid; place-items: center;
}
.auth-pw-toggle:hover { color: var(--ink); background: var(--canvas); }
.auth-pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.auth-caps { margin: -.6rem 0 1rem; font-size: .82rem; color: #8a5a00; }
.auth-alert {
  margin: 0 0 1.25rem; padding: .7rem .85rem; border-left: 3px solid var(--danger); background: #fdf1ef;
  color: #7a1c13; border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.45;
}
.auth-submit { width: 100%; padding: .75rem 1rem; font-weight: 650; border-radius: 8px; margin-top: .4rem; }

@media (max-width: 991.98px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-panel { padding: 1.25rem 1.5rem 1.25rem 3.5rem; background-position: 0 0; }
  .auth-panel { background:
    linear-gradient(90deg, transparent 2.25rem, rgba(217, 164, 65, .55) 2.25rem, rgba(217, 164, 65, .55) calc(2.25rem + 1px), transparent calc(2.25rem + 1px)),
    #0f2742; }
  .auth-panel-body { display: none; }
  .auth-main { padding: 2rem 1.25rem 3rem; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .auth-flow::before { animation: none; } }

.stat-link { text-decoration: none; color: inherit; display: block; }
.stat-link .card-stat { transition: border-color .15s ease; }
.stat-link:hover .card-stat { border-color: #c5d2e0; }

.empty-cell { text-align: center; color: var(--ink-soft); padding: 2.2rem 1rem !important; }

.mp-ac { position: relative; }
.mp-ac-list {
  position: fixed; z-index: 2000;
  max-height: 16.5rem; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: .25rem;
}
.mp-ac-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: .45rem .6rem; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.mp-ac-item:hover, .mp-ac-item.is-active { background: #eef3f8; }
.mp-ac-name { font-size: .86rem; line-height: 1.3; }
.mp-ac-id { flex-shrink: 0; font-size: .72rem; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mp-ac-note { padding: .5rem .65rem; font-size: .8rem; color: var(--ink-soft); }

/* Ürün > Pazaryerleri: kanal başına tek satır */
.listing-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin-top: .35rem; font-size: .88rem; color: var(--ink-soft); }
.listing-facts b { color: var(--ink); font-weight: 650; }
.listing-table .form-control { padding: .3rem .5rem; font-size: .88rem; min-width: 8.5rem; }
.listing-table .listing-num .form-control { min-width: 6.5rem; max-width: 8rem; text-align: right; }
.listing-table .form-switch .form-check-input { width: 2.4em; height: 1.25em; float: none; margin: 0; }
.listing-table .listing-out { white-space: nowrap; min-width: 7.5rem; }
.listing-table tr.listing-off > td { background: #fafbfc; }
.listing-table tr.listing-off .fw-semibold { color: var(--ink-soft); }
.listing-table tr.listing-note > td, .listing-table tr.listing-extra > td {
  border-top: 0; padding-top: 0 !important; font-size: .84rem; background: transparent;
}
.listing-table tr:has(+ tr.listing-note) > td, .listing-table tr:has(+ tr.listing-extra.show) > td { border-bottom: 0; }
.listing-table tr.listing-extra textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.listing-table .form-control::placeholder { color: #a7b0bb; font-style: italic; }
.listing-table tr.listing-extra.collapsing { height: auto !important; transition: none; }
.listing-table .btn-link { text-decoration: none; font-weight: 600; }

/* Pano */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.dash-stats .card-body { padding: .8rem 1rem; }
.dash-stats .stat-value { font-size: 1.9rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.log-compact .list-group-item { display: flex; align-items: baseline; gap: .5rem; padding: .45rem .9rem; font-size: .875rem; }
.log-compact .log-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-compact time { font-size: .8rem; white-space: nowrap; }
.row-link { cursor: pointer; }

/* İşlem kayıtları */
.log-filters .form-select { max-width: 14rem; }
.log-filters .form-control { flex: 1 1 16rem; max-width: 26rem; }
.log-table th:first-child, .log-table td:first-child { padding-left: 1rem; }
.log-table th:last-child, .log-table td:last-child { padding-right: 1rem; }
.log-table .log-state { width: 2.2rem; text-align: center; }
.log-table tr.log-error td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.log-table tr.log-error { background: #fffafa; }
.log-table tr.log-uncertain td:first-child { box-shadow: inset 3px 0 0 #e0a100; }
.log-table tr.log-uncertain { background: #fffcf2; }
.log-kind { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: #eef2f7; color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.log-target { min-width: 8rem; max-width: 18rem; overflow-wrap: anywhere; }
.log-message { min-width: 12rem; font-size: .875rem; overflow-wrap: anywhere; }
@media (min-width: 1200px) { .log-target { min-width: 15rem; } .log-message { min-width: 22rem; } }
.log-full { white-space: pre-wrap; overflow-wrap: anywhere; }
.log-message details summary { cursor: pointer; list-style: none; }
.log-message details summary::-webkit-details-marker { display: none; }
.log-message .log-toggle { color: var(--brand); font-weight: 600; white-space: nowrap; }
.log-message .log-toggle::after { content: "tamamı ▾"; }
.log-message details[open] .log-short { display: none; }
.log-message details[open] .log-toggle::after { content: "kısalt ▴"; }
.log-message details[open] .log-full { margin-top: .25rem; }
.table-card-foot .pagination { margin: 0; }

/* Satış raporu */
.report-stats .stat-value { font-size: clamp(1.25rem, 1rem + 1vw, 1.55rem); overflow-wrap: anywhere; }
.table-card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600;
}
.table-card-head .text-muted { font-weight: 400; font-size: .85rem; }
.report-table .num { font-variant-numeric: tabular-nums; }
.report-table tfoot th { background: #f7f8fa; border-top: 1px solid var(--line); border-bottom: 0; }
.report-table th:first-child, .report-table td:first-child { padding-left: 1rem; }
.report-table th:last-child, .report-table td:last-child { padding-right: 1rem; }
.report-bar-col { width: 32%; min-width: 6rem; vertical-align: middle; }
.report-bar { height: .45rem; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.report-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.report-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.report-tabs .nav-link { color: var(--ink-soft); font-weight: 600; padding: .55rem .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.report-tabs .nav-link:hover { color: var(--ink); }
.report-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }
.report-table td, .report-table th { vertical-align: middle; }
.report-table .rank-col { width: 2.5rem; }
.report-name { min-width: 14rem; max-width: 30rem; }
.report-table th:first-child, .report-table td:first-child { padding-left: 1rem; }
.chg { font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.chg-up { color: var(--ok); }
.chg-down { color: var(--danger); }
.chg-new { color: var(--brand); background: #e8f0f8; padding: .05rem .45rem; border-radius: 999px; font-size: .78rem; }
.price-table > .price-group + .price-group { border-top: 1px solid var(--line); }
.price-table .price-levels > td { background: #f8fafc; padding: .5rem 1rem .75rem 2rem; }
.levels-table { background: transparent; font-size: .875rem; }
.levels-table th { font-size: .75rem; color: var(--ink-soft); background: transparent !important; }
.levels-table td, .levels-table th { background: transparent; }
.levels-table tr.level-best td { background: #eef8f2; }

/* Ürün açma paneli (pazaryerleri sekmesi) */
.lp-panel { padding: .25rem .25rem .5rem; }
.lp-gaps { background: #fff4e5; border: 1px solid #f3d19e; border-radius: 6px; padding: .5rem .75rem; margin-bottom: .6rem; font-size: .875rem; }
.lp-ready { background: #e8f5ee; border: 1px solid #b7dfc8; border-radius: 6px; padding: .45rem .75rem; margin-bottom: .6rem; font-size: .875rem; }
.lp-table { background: #fff; border: 1px solid var(--line); }
.lp-table td { vertical-align: middle; font-size: .875rem; }
.lp-col-name { width: 22%; }
.lp-col-own { width: 40%; }
.lp-id { max-width: 120px; }
.lp-src { font-size: .72rem; color: #5b6b7a; background: #eef2f6; border-radius: 3px; padding: 1px 5px; white-space: nowrap; }

/* Rapor: sekme şeridi, başlık işlemleri, karşılaştırma */
.report-tabs-wrap { overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.report-tabs-wrap .report-tabs { flex-wrap: nowrap; border-bottom: 0; }
.report-tabs-wrap .report-tabs .nav-link { white-space: nowrap; }
.report-actions { justify-content: flex-end; }
.report-range { min-width: 15rem; }
.stat-cmp { font-size: .8rem; margin-top: .15rem; }

/* Rapor: ısı seviyeleri (il ızgarası + saat tablosu ortak) */
.lvl-0 { color: var(--ink-soft); }
.lvl-1 { background: rgba(31, 75, 122, .10); }
.lvl-2 { background: rgba(31, 75, 122, .24); }
.lvl-3 { background: rgba(31, 75, 122, .42); }
.lvl-4 { background: rgba(31, 75, 122, .65); color: #fff; }
.lvl-5 { background: rgba(31, 75, 122, .88); color: #fff; }

/* Rapor: ölçü çubuğu */
.report-toolbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }

/* Rapor: Türkiye harita ızgarası (SVG) */
.map-wrap { padding: .75rem; overflow-x: auto; }
.tr-map { width: 100%; min-width: 760px; max-width: 1500px; height: auto; display: block; margin: 0 auto; }
.map-tile, .map-tile:hover { text-decoration: none; }
.map-tile rect { fill: #f1f4f8; stroke: var(--line); stroke-width: 1; transition: stroke .1s; }
.map-tile text { text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.map-tile .mt-name { font-size: 10.5px; fill: var(--ink-soft); }
.map-tile .mt-val { font-size: 14px; font-weight: 700; fill: var(--ink); }
.map-tile.lvl-1 rect { fill: rgba(31, 75, 122, .12); }
.map-tile.lvl-2 rect { fill: rgba(31, 75, 122, .26); }
.map-tile.lvl-3 rect { fill: rgba(31, 75, 122, .45); }
.map-tile.lvl-4 rect { fill: rgba(31, 75, 122, .68); }
.map-tile.lvl-5 rect { fill: rgba(31, 75, 122, .9); }
.map-tile.lvl-4 text, .map-tile.lvl-5 text { fill: #fff; }
.map-tile:hover rect, .map-tile.selected rect { stroke: #e0a100; stroke-width: 2.5; }
.map-legend { display: inline-flex; align-items: center; gap: .25rem; }
.map-legend i { width: 1.1rem; height: .7rem; border-radius: 3px; display: inline-block; }

/* Rapor: gün içi dilimler, hafta içi / sonu */
.part-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .75rem; height: 100%; }
.part-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .75rem .9rem; }
.part-val { font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; margin: .1rem 0 .35rem; }
.week-compare { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; }

/* Rapor: takvim ısı haritası */
.cal-grid { display: flex; gap: 3px; width: max-content; }
.cal-labels, .cal-week { display: grid; grid-template-rows: 1rem repeat(7, 1.05rem); gap: 3px; }
.cal-labels span { font-size: .68rem; color: var(--ink-soft); line-height: 1.05rem; padding-right: .35rem; }
.cal-month { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; width: 1.05rem; overflow: visible; }
.cal-day { display: block; width: 1.05rem; height: 1.05rem; border-radius: 3px; background: #eef1f5; }
.cal-day.lvl-1 { background: rgba(31, 75, 122, .18); }
.cal-day.lvl-2 { background: rgba(31, 75, 122, .34); }
.cal-day.lvl-3 { background: rgba(31, 75, 122, .52); }
.cal-day.lvl-4 { background: rgba(31, 75, 122, .72); }
.cal-day.lvl-5 { background: rgba(31, 75, 122, .92); }
.cal-day.cal-off { background: transparent; }
.region-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }

/* Rapor: haftanın günü × saat (CSS ızgarası) */
.heat-scroll { overflow-x: auto; padding: .75rem 1rem .5rem; }
.heat-grid { display: grid; grid-template-columns: 6.5rem repeat(24, minmax(1.75rem, 1fr)) 6.5rem; gap: 3px;
  min-width: 860px; max-width: 1500px; font-size: .75rem; }
.hg-corner, .hg-hour, .hg-total-head { color: var(--ink-soft); font-weight: 600; text-align: center; padding-bottom: .15rem; }
.hg-total-head { text-align: right; }
.hg-day { display: flex; align-items: center; font-weight: 600; white-space: nowrap; }
.hg-cell { height: 2.1rem; display: flex; align-items: center; justify-content: center; border-radius: 5px;
  background: #f4f6f9; font-variant-numeric: tabular-nums; }
.hg-cell.lvl-0 { color: transparent; }
.hg-total { display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding-left: .5rem;
  text-align: right; font-weight: 600; }
.hg-bar { display: block; height: .3rem; background: #eef1f5; border-radius: 999px; margin-top: .2rem; overflow: hidden; }
.hg-bar span { display: block; height: 100%; background: var(--brand); }
.hg-sum-label { color: var(--ink-soft); }
.hg-sum { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--ink-soft);
  font-size: .66rem; padding-top: .35rem; }
.hg-col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 2.2rem; }
.hg-col span { display: block; width: 65%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 1px; }
.hg-grand { justify-content: flex-end; padding-bottom: .1rem; }
@media (max-width: 767.98px) { .heat-grid { grid-template-columns: 3rem repeat(24, minmax(1.6rem, 1fr)) 4rem; } }

/* Rapor: takvim (kısa dönem: normal takvim) */
.cal-month-view { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; max-width: 980px; }
.cm-head { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
.cm-day { border-radius: 8px; padding: .4rem .5rem; min-height: 3.6rem; display: flex; flex-direction: column;
  justify-content: space-between; background: #f4f6f9; border: 1px solid var(--line); }
.cm-day.cm-off { background: transparent; border-color: transparent; }
.cm-date { font-size: .72rem; color: var(--ink-soft); }
.cm-val { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cm-day.lvl-4 .cm-date, .cm-day.lvl-5 .cm-date { color: rgba(255, 255, 255, .85); }
/* Isı seviyeleri: hücre zeminlerini ezer (aynı özgüllükteki zemin kurallarından sonra gelmeli) */
.hg-cell.lvl-1, .cm-day.lvl-1 { background: rgba(31, 75, 122, .12); }
.hg-cell.lvl-2, .cm-day.lvl-2 { background: rgba(31, 75, 122, .26); }
.hg-cell.lvl-3, .cm-day.lvl-3 { background: rgba(31, 75, 122, .45); }
.hg-cell.lvl-4, .cm-day.lvl-4 { background: rgba(31, 75, 122, .68); color: #fff; border-color: transparent; }
.hg-cell.lvl-5, .cm-day.lvl-5 { background: rgba(31, 75, 122, .9); color: #fff; border-color: transparent; }

/* aranabilir açılır liste (static/js/searchable-select.js) */
.ss-wrap { position: relative; width: 100%; min-width: 16rem; }
.ss-toggle { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ss-menu { width: 100%; min-width: 22rem; }
.ss-list { max-height: 22rem; overflow-y: auto; }
.ss-item { white-space: normal; font-size: .875rem; border-radius: .25rem; }

/* ======== Panel: herkese açık sitedeki dil (ultramarin, Bricolage başlık, yuvarlak düğme) ======== */
.app-nav { background: var(--brand); border-bottom: 0; padding-top: .55rem; padding-bottom: .55rem; }
.app-nav .navbar-brand { font-family: var(--disp); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; display: inline-flex; align-items: center; }
.app-nav .app-brand-mark { background: #fff; color: var(--brand); font-family: var(--disp); font-weight: 800; }
.app-nav .nav-link { opacity: 1; color: rgba(255,255,255,.82); font-weight: 500; border-radius: 999px; padding: .4rem .85rem; margin: 0 .05rem; }
.app-nav .nav-link:hover, .app-nav .nav-link.show { color: #fff; background: rgba(255,255,255,.14); }
.app-nav .dropdown-menu { border: 0; border-radius: 14px; box-shadow: 0 14px 34px rgba(11,12,60,.22); padding: .4rem; }
.app-nav .dropdown-item { border-radius: 9px; font-weight: 500; }
.app-nav .dropdown-item:hover { background: #eef0ff; color: var(--brand); }
.app-nav .btn-outline-light { border-radius: 999px; border-color: rgba(255,255,255,.5); font-weight: 600; }
.app-nav .btn-outline-light:hover { background: #fff; color: var(--brand); }
.app-nav .form-select { border-radius: 999px; }
.app-nav a:focus-visible, .app-nav button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.page-head { margin-bottom: 1.6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.page-kicker { font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand); margin-bottom: .25rem; }
.page-title { font-family: var(--disp); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.35rem); letter-spacing: -.04em; line-height: 1.05; }
.page-sub { font-size: .92rem; }
.metric { border-radius: 14px; }
.metric b { font-family: var(--disp); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.metric span { text-transform: none; letter-spacing: 0; font-size: .78rem; }

.edit-card, .table-card, .card, .card-stat, .filter-bar, .kind-tile { border-radius: var(--radius); border-color: var(--line); }
.edit-card .card-header, .edit-card-head, .card-header { font-family: var(--disp); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; background: #fff; border-bottom: 1px solid var(--line); padding: .85rem 1.1rem; }
.form-section { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; color: var(--brand); }
.form-label { color: var(--ink); }
.form-control, .form-select { border-radius: 10px; border-color: #d3d6e4; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(37, 49, 240, .16); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-switch-row { border-radius: 12px; background: #fafbff; }

.table thead th, .table-card thead th { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; color: var(--ink-soft); background: #f7f8fc; }
.table-card .table-hover tbody tr:hover, .table-hover > tbody > tr:hover > * { background-color: #f3f4ff; --bs-table-hover-bg: #f3f4ff; }
.table-card-foot { background: #f7f8fc; }

.btn { border-radius: 999px; font-weight: 600; }
.btn-sm { border-radius: 999px; }
.btn-primary { --bs-btn-bg: #2531f0; --bs-btn-border-color: #2531f0; --bs-btn-hover-bg: #1b25bf; --bs-btn-hover-border-color: #1b25bf;
  --bs-btn-active-bg: #161e9e; --bs-btn-active-border-color: #161e9e; --bs-btn-disabled-bg: #2531f0; --bs-btn-disabled-border-color: #2531f0;
  --bs-btn-focus-shadow-rgb: 37, 49, 240; background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-outline-primary { --bs-btn-color: #2531f0; --bs-btn-border-color: #2531f0; --bs-btn-hover-bg: #2531f0; --bs-btn-hover-border-color: #2531f0; --bs-btn-active-bg: #1b25bf; }
.btn-outline-secondary { --bs-btn-color: #0b0c16; --bs-btn-border-color: #cfd3e3; --bs-btn-hover-bg: #eef0ff; --bs-btn-hover-color: #2531f0; --bs-btn-hover-border-color: #2531f0; --bs-btn-active-bg: #e1e4ff; --bs-btn-active-color: #2531f0; }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: none; }
.badge { font-weight: 600; border-radius: 999px; }
.alert { border-radius: 14px; border: 0; }
.alert-danger { background: #fdeeed; color: #7a1c13; }
.alert-warning { background: #fff6d9; color: #6b4b00; }
.alert-success { background: #e4f3ec; color: #14573d; }
.alert-info { background: #e8ebff; color: #1b25bf; }

.product-tabs .nav-link.active { background: var(--brand); }
.crumb a:hover { color: var(--brand); }
.kind-tile:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(37,49,240,.14); transform: translateY(-2px); }
.kind-tile .kind-mark { background: #eef0ff; color: var(--brand); border-radius: 12px; font-family: var(--disp); font-weight: 800; }
.kind-tile b { font-family: var(--disp); letter-spacing: -.02em; }
.form-sticky-bar { background: rgba(244, 245, 249, .92); }

/* pano: büyük rakamlar */
.stat-value { font-family: var(--disp); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -.045em; margin-top: .25rem; }
.stat-link .card-stat { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.stat-link:hover .card-stat { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,49,240,.12); }
.card-stat .card-body { padding: 1.05rem 1.15rem; }
.card-stat .text-muted.small { font-weight: 500; }
.page-actions .btn-outline-secondary { background: #fff; }

@media (prefers-reduced-motion: reduce) { .stat-link .card-stat, .kind-tile:hover, .stat-link:hover .card-stat { transition: none; transform: none; } }
.dash-stats .stat-value { font-family: var(--disp); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -.045em; }
.report-stats .stat-value { font-family: var(--disp); font-weight: 800; letter-spacing: -.03em; }

.table a:not(.btn), .table-card a:not(.btn):not(.dropdown-item) { text-decoration: none; font-weight: 600; }
.table a:not(.btn):hover, .table-card a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.page-head-hero {
  background: var(--brand) radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px) 0 0 / 26px 26px;
  border: 0; border-radius: 20px; padding: 1.7rem 2rem; margin-bottom: 1.5rem; align-items: flex-end;
}
.page-head-hero .page-kicker { color: var(--sun); }
.page-head-hero .page-title { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.page-head-hero .page-sub { color: rgba(255,255,255,.82); }
.page-head-hero .btn-outline-secondary { --bs-btn-color: #0b0c16; background: #fff; border-color: #fff; }
.page-head-hero .btn-outline-secondary:hover { background: var(--sun); border-color: var(--sun); color: #0b0c16; }
.app-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.2); box-shadow: inset 0 -2px 0 var(--sun); }
.nav-badge { display: inline-block; min-width: 1.25rem; padding: 0 .4rem; border-radius: 999px; background: var(--sun); color: #0b0c16; font-size: .72rem; font-weight: 700; line-height: 1.3rem; text-align: center; margin-left: .3rem; }
.nav-badge.dark { background: var(--brand); color: #fff; margin-left: 0; }

/* pano: dikkat şeridi + 14 günlük grafik */
.attn { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; margin-bottom: 1rem; }
.attn-t { font-family: var(--disp); font-weight: 800; letter-spacing: -.02em; margin-right: .4rem; }
.attn-i { display: inline-flex; gap: .35rem; align-items: baseline; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.attn-i.bad { background: #fdeeed; color: #7a1c13; } .attn-i.warn { background: #fff6d9; color: #6b4b00; }
.attn-i:hover { filter: brightness(.96); text-decoration: underline; }
.attn.ok { border-color: #bfe3d1; background: #f2faf6; } .attn.ok .attn-t { color: #14684a; }
.bars14 { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .45rem; align-items: end; height: 9.5rem; }
.bar-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: .25rem; }
.bar-col i { display: block; width: 100%; max-width: 2.2rem; min-height: 3px; background: #c9ceff; border-radius: 6px 6px 2px 2px; transition: background .15s; }
.bar-col.today i { background: var(--brand); }
.bar-col:hover i { background: var(--brand-2); }
.bar-n { font-size: .75rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar-col small { font-size: .68rem; color: var(--ink-soft); }
@media (max-width: 575.98px) { .bar-col small { display: none; } .bar-n { font-size: .65rem; } }

/* --- Telefon: toplama kartları + depo --- */
.pick-progress { position: sticky; top: 0; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.pick-stepper { display: inline-flex; align-items: stretch; gap: .35rem; }
.pick-stepper .pick { width: 3.6rem; }
.table-card.table-responsive { overflow-x: auto; }
.nav-pills.scroll-x { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-pills.scroll-x .nav-link { white-space: nowrap; }
@media (max-width: 767.98px) {
  .app-shell { padding-left: .75rem; padding-right: .75rem; }
  .page-title { font-size: 1.25rem; }
  .pick-table, .pick-table tbody, .pick-table tr, .pick-table td { display: block; width: 100%; }
  .pick-table thead { display: none; }
  .pick-table { border: 0; background: transparent !important; }
  .pick-table tr.pick-row { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; padding: .35rem .2rem; background: var(--paper); }
  .pick-table tr.pick-row.table-success { background: #e7f4ea; border-color: #9bd0a8; }
  .pick-table tr.pick-row.table-warning { background: #fff7e0; }
  .pick-table td { border: 0; padding: .25rem .7rem; text-align: left !important; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
  .pick-table td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); flex: 0 0 auto; }
  .pick-table td.pk-n { display: none; }
  .pick-table td.pk-shelf { font-size: 1.5rem; }
  .pick-table td.pk-name { font-weight: 600; }
  .pick-table td.pk-pick { padding-top: .5rem; }
  .pick-stepper .btn { width: 3.4rem; height: 3.2rem; font-size: 1.5rem; line-height: 1; }
  .pick-stepper .pick { width: 4.4rem; height: 3.2rem; font-size: 1.3rem; }
}
@media print { .pick-progress { display: none; } }

/* --- Depo ve raflar --- */
.wh-card .edit-card-head { min-height: 3.1rem; }
.wh-card.wh-off { opacity: .75; }
.wh-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 650; background: transparent; }
.shelf-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 650; background: #eef2f7; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .5rem; }
@media (max-width: 767.98px) {
  .wh-table thead { display: none; }
  .wh-table, .wh-table tbody, .wh-table tr, .wh-table td { display: block; width: 100%; }
  .wh-table tr { padding: .5rem .85rem; border-bottom: 1px solid var(--line); }
  .wh-table td { border: 0; padding: .15rem 0; display: flex; justify-content: space-between; align-items: center; text-align: right !important; }
  .wh-table td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
  .wh-table td:last-child { justify-content: flex-end; }
  .wh-table td:last-child::before { content: none; }
}
