/* SAP Fiori (Quartz Light) esintili tema */
:root {
  --shell: #354a5f; --shell-hover: #283848; --bg: #f7f7f7; --card: #fff; --text: #32363a; --text2: #6a6d70; --text3: #89919a;
  --brand: #0a6ed1; --brand-h: #085caf; --brand-l: #e5f0fa; --border: #e5e5e5; --border2: #d9d9d9; --field: #89919a;
  --pos: #107e3e; --pos-bg: #f1fdf6; --crit: #e9730c; --crit-bg: #fef7f1; --neg: #bb0000; --neg-bg: #fff4f4; --info: #0a6ed1; --info-bg: #f5faff;
  --list-head: #f2f2f2; --hover: #f5f5f5; --sel: #e5f0fa;
  --sh1: 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08); --sh2: 0 0 0 1px rgba(0,0,0,.1), 0 10px 30px rgba(0,0,0,.2);
  --r: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Figtree", "Segoe UI", Arial, Helvetica, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--text2); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* Shell bar */
.shell { height: 44px; background: var(--shell); color: #fff; display: flex; align-items: center; padding: 0 8px; gap: 4px; position: sticky; top: 0; z-index: 50; }
.shell .logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; height: 36px; border-radius: var(--r); cursor: pointer; color: #fff; }
.shell .logo:hover { background: var(--shell-hover); text-decoration: none; }
.shell .logo-mark { width: 28px; height: 28px; border-radius: 4px; background: linear-gradient(135deg, #1d8bf1, #0a6ed1 60%, #0854a0); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: -.5px; }
.shell .brand { font-weight: 700; font-size: 14px; }
.shell .title { font-size: 14px; opacity: .85; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); margin-left: 2px; }
.shell .spacer { flex: 1; }
.shell .sbtn { height: 36px; min-width: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; color: #fff; border-radius: var(--r); cursor: pointer; position: relative; }
.shell .sbtn:hover { background: var(--shell-hover); }
.shell .sbtn .ico { width: 18px; height: 18px; }
.shell .badge { position: absolute; top: 2px; right: 0; background: var(--neg); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; display: grid; place-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #d1e8ff; color: #0854a0; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.menu { position: absolute; right: 8px; top: 46px; background: #fff; color: var(--text); border-radius: var(--r); box-shadow: var(--sh2); min-width: 220px; padding: 4px 0; z-index: 60; }
.menu .mh { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--hover); }

/* Sayfa düzeni */
.page { max-width: 1440px; margin: 0 auto; padding: 0 0 96px; }
.page-head { background: #fff; padding: 16px 32px 12px; box-shadow: inset 0 -1px 0 var(--border); }
.crumbs { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.crumbs a { color: var(--brand); }
.page-head h1 { font-size: 20px; }
.page-head .sub { color: var(--text2); margin-top: 4px; }
.content { padding: 16px 32px; }
.section-title { font-size: 16px; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 8px; }

/* Launchpad */
.lp-group { margin-bottom: 24px; }
.lp-group h2 { font-size: 16px; margin: 8px 0 12px 2px; color: var(--text); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { width: 176px; height: 176px; background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 16px; display: flex; flex-direction: column; cursor: pointer; color: var(--text); transition: box-shadow .15s; position: relative; }
.tile:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 4px 10px rgba(0,0,0,.12); text-decoration: none; }
.tile .t1 { font-size: 15px; line-height: 1.25; }
.tile .t2 { font-size: 12px; color: var(--text2); margin-top: 2px; }
.tile .tb { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.tile .kpi { font-size: 36px; line-height: 1; color: var(--brand); font-weight: 400; }
.tile .kpi.crit { color: var(--crit); } .tile .kpi.neg { color: var(--neg); } .tile .kpi.pos { color: var(--pos); }
.tile .kpi small { font-size: 12px; color: var(--text2); margin-left: 4px; }
.tile .tico { color: var(--text2); }
.tile .tico .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.tile .foot { font-size: 12px; color: var(--text2); margin-top: 6px; }
.tile.wide { width: 360px; }

/* Kartlar, paneller */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); }
.card-h { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; min-height: 44px; }
.card-h h3 { font-size: 15px; flex: 1; }
.card-b { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Butonlar */
.btn { height: 32px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--brand); background: #fff; color: var(--brand); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-size: 14px; }
.btn:hover { background: var(--brand-l); }
.btn.emph { background: var(--brand); color: #fff; }
.btn.emph:hover { background: var(--brand-h); }
.btn.trans { border-color: transparent; }
.btn.accept { border-color: var(--pos); color: var(--pos); } .btn.accept:hover { background: var(--pos-bg); }
.btn.accept.emph { background: var(--pos); color: #fff; } .btn.accept.emph:hover { background: #0d6733; }
.btn.reject { border-color: var(--neg); color: var(--neg); } .btn.reject:hover { background: var(--neg-bg); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 26px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.seg { display: inline-flex; border: 1px solid var(--brand); border-radius: var(--r); overflow: hidden; }
.seg button { height: 30px; border: 0; background: #fff; color: var(--brand); padding: 0 12px; cursor: pointer; border-left: 1px solid var(--brand); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--brand); color: #fff; }

/* Form */
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 13px; color: var(--text2); }
.field > label.req::after { content: " *"; color: var(--neg); }
.inp { height: 32px; border: 1px solid var(--field); border-radius: var(--r); padding: 0 8px; background: #fff; outline: none; width: 100%; min-width: 0; }
textarea.inp { height: auto; min-height: 64px; padding: 6px 8px; resize: vertical; }
.inp:hover { border-color: var(--brand); }
.inp:focus { outline: 1px dotted var(--text); outline-offset: -3px; border-color: var(--brand); }
.inp.err { border-color: var(--neg); background: var(--neg-bg); }
.inp.num { text-align: right; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--text2); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #fff; border: 1px solid var(--field); border-radius: 12px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: var(--field); border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--brand); border-color: var(--brand); }
.switch input:checked + span::before { transform: translateX(20px); background: #fff; }

/* Filter bar */
.filterbar { background: #fff; padding: 12px 32px 16px; box-shadow: inset 0 -1px 0 var(--border); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.filterbar .field { width: 200px; }
.filterbar .field.w-lg { width: 280px; }

/* Tablo */
.tbl-wrap { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); overflow: hidden; }
.tbl-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: 48px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tbl-toolbar h3 { font-size: 15px; margin-right: auto; }
.tbl-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: var(--list-head); color: var(--text2); font-weight: 400; font-size: 13px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.nav { cursor: pointer; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tfoot td { background: #fafafa; font-weight: 700; border-top: 1px solid var(--border2); }
.tbl .chev { color: var(--text3); width: 24px; }
.thumb { width: 40px; height: 40px; border-radius: var(--r); object-fit: contain; background: #fff; border: 1px solid var(--border); display: block; }
.thumb.ph { display: grid; place-items: center; color: var(--text3); background: #fafafa; }
.empty { padding: 48px 16px; text-align: center; color: var(--text2); }
.empty .ico { width: 48px; height: 48px; stroke-width: 1.2; color: var(--text3); display: block; margin: 0 auto 12px; }

/* Object status */
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.st.pos { color: var(--pos); } .st.crit { color: var(--crit); } .st.neg { color: var(--neg); } .st.info { color: var(--info); } .st.none { color: var(--text2); }
.st.inv { padding: 1px 6px; border-radius: 4px; color: #fff; font-size: 12px; }
.st.inv.pos { background: var(--pos); } .st.inv.crit { background: var(--crit); } .st.inv.neg { background: var(--neg); } .st.inv.info { background: var(--info); } .st.inv.none { background: #758ca4; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 12px; line-height: 18px; border: 1px solid; }
.tag.mf { color: var(--pos); border-color: var(--pos); background: var(--pos-bg); }
.tag.prem { color: #7a5600; border-color: #c7a33c; background: #fff8e1; }
.tag.norm { color: var(--text2); border-color: var(--border2); background: #fafafa; }

/* Message strip */
.strip { padding: 8px 12px; border-radius: var(--r); border: 1px solid; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.strip.info { background: var(--info-bg); border-color: #b0d4f5; }
.strip.warn { background: var(--crit-bg); border-color: #f7c18e; }
.strip.ok { background: var(--pos-bg); border-color: #9ad4b0; }
.strip.err { background: var(--neg-bg); border-color: #f2a8a8; }

/* Object page header */
.op-head { background: #fff; padding: 16px 32px; box-shadow: inset 0 -1px 0 var(--border); }
.op-head .top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.op-head h1 { font-size: 20px; }
.op-attrs { display: flex; flex-wrap: wrap; gap: 8px 48px; margin-top: 16px; }
.op-attr .k { font-size: 13px; color: var(--text2); margin-bottom: 2px; }
.op-attr .v { font-size: 14px; }
.op-attr .v.big { font-size: 24px; }

/* Footer toolbar (sabit) */
.footbar { position: fixed; left: 0; right: 0; bottom: 0; height: 52px; background: #fff; box-shadow: 0 -1px 0 var(--border), 0 -4px 12px rgba(0,0,0,.06); display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 32px; z-index: 40; }
.footbar .msg { margin-right: auto; color: var(--text2); font-size: 13px; }

/* Dialog */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.dialog { background: #fff; border-radius: var(--r); box-shadow: var(--sh2); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dialog.lg { width: min(860px, 100%); }
.dialog .dh { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dialog .dh.warn { box-shadow: inset 0 -3px 0 var(--crit); }
.dialog .dh.ok { box-shadow: inset 0 -3px 0 var(--pos); }
.dialog .db { padding: 16px; overflow: auto; }
.dialog .df { padding: 8px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: #fafafa; border-radius: 0 0 var(--r) var(--r); }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); background: rgba(50,54,58,.92); color: #fff; padding: 12px 20px; border-radius: var(--r); z-index: 200; font-size: 14px; animation: fade .2s; max-width: 90vw; text-align: center; }

/* Login */
.login-bg { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #e9eef4 0%, #f7f7f7 45%, #dbe7f3 100%); }
.login { width: min(400px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 40px rgba(53,74,95,.15); overflow: hidden; }
.login .lh { background: var(--shell); color: #fff; padding: 24px; display: flex; align-items: center; gap: 12px; }
.login .lh .logo-mark { width: 40px; height: 40px; font-size: 16px; }
.login .lb { padding: 24px; display: grid; gap: 14px; }
.login .inp { height: 40px; font-size: 15px; }
.login .btn { height: 40px; font-size: 15px; }

/* Mağaza (eczacı) */
.welcome { max-width: 880px; margin: 32px auto; padding: 0 16px; }
.hero { background: linear-gradient(135deg, #354a5f, #24394e); color: #fff; border-radius: 8px; padding: 32px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(29,139,241,.45), transparent 70%); }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.hero p { opacity: .85; line-height: 1.5; max-width: 560px; position: relative; z-index: 1; }
.hero .btn { position: relative; z-index: 1; }
.hero .btn.emph { background: #fff; color: var(--shell); border-color: #fff; height: 40px; padding: 0 20px; }
.hero .btn.trans { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); height: 40px; }
.hero .btn.trans:hover { background: rgba(255,255,255,.1); }
.shop-bar { position: sticky; top: 44px; z-index: 30; background: #fff; box-shadow: inset 0 -1px 0 var(--border); padding: 10px 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shop-bar .search { flex: 1; min-width: 220px; max-width: 480px; position: relative; }
.shop-bar .search .inp { padding-left: 32px; height: 36px; }
.shop-bar .search .ico { position: absolute; left: 9px; top: 10px; color: var(--text2); }
.letters { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 32px; background: #fff; box-shadow: inset 0 -1px 0 var(--border); position: sticky; top: 100px; z-index: 29; }
.letters button { min-width: 26px; height: 26px; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--brand); font-weight: 700; font-size: 13px; }
.letters button:hover { background: var(--brand-l); }
.letters button:disabled { color: #c4c7ca; font-weight: 400; cursor: default; background: none; }
.letters button.on { background: var(--brand); color: #fff; }
.pcard[id] { scroll-margin-top: 160px; }
.pcard .lbadge { position: absolute; top: 8px; left: 8px; z-index: 1; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--r); background: var(--shell); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pcard.flash { animation: pflash 1.6s ease-out; }
@keyframes pflash { 0%, 40% { box-shadow: 0 0 0 2px var(--brand), 0 4px 14px rgba(10,110,209,.25); } 100% { box-shadow: var(--sh1); } }
.letter-h { font-size: 18px; font-weight: 700; color: var(--shell); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--brand); scroll-margin-top: 150px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.1); }
.pcard .pimg { aspect-ratio: 4 / 3; flex: none; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.pcard .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pcard .pimg .ico { width: 40px; height: 40px; color: #c4c7ca; stroke-width: 1.2; }
.pcard .pimg .tag { position: absolute; top: 8px; left: 8px; }
.pcard .incart { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.pcard .pb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .pn { font-size: 14px; line-height: 1.3; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .pprice { display: flex; flex-direction: column; gap: 2px; }
.pcard .pmf { font-size: 20px; font-weight: 700; color: var(--pos); line-height: 1.2; }
.pcard .pp { font-size: 18px; font-weight: 700; color: var(--shell); }
.pcard .pp .pl { font-size: 12px; font-weight: 400; color: var(--text2); }
.pcard .pdsf { font-size: 12px; color: var(--text2); }
.prem-box { background: #fffbf0; border: 1px solid #f0dfa8; border-radius: var(--r); padding: 10px 12px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* Karekod */
.qr-remind { box-shadow: var(--sh1), inset 4px 0 0 var(--crit); }
.qrpre { margin: 0; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; background: #fafafa; border: 1px solid var(--border); border-radius: var(--r); padding: 8px 10px; }
.pcard .pa { display: flex; gap: 6px; margin-top: auto; }
.stepper { display: inline-flex; border: 1px solid var(--field); border-radius: var(--r); height: 32px; overflow: hidden; background: #fff; }
.stepper button { width: 30px; border: 0; background: #fafafa; cursor: pointer; color: var(--brand); font-size: 16px; }
.stepper button:hover { background: var(--brand-l); }
.stepper input { width: 46px; border: 0; text-align: center; outline: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Sepet paneli */
.drawer-ov { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 91; display: flex; flex-direction: column; box-shadow: var(--sh2); animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer .dh { height: 44px; background: var(--shell); color: #fff; display: flex; align-items: center; padding: 0 8px 0 16px; gap: 8px; font-size: 15px; }
.drawer .db { flex: 1; overflow: auto; }
.cline { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.cline .cn { flex: 1; min-width: 0; }
.cline .cn .n { font-size: 14px; }
.cline .cn .s { font-size: 12px; color: var(--text2); margin-top: 2px; }
.drawer .df { border-top: 1px solid var(--border); padding: 12px 16px; display: grid; gap: 10px; background: #fafafa; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; }

/* Onaylı sipariş kartları */
.ocards { display: grid; gap: 12px; }
.ocard { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); }
.ocard .oh { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.ocard .oh .no { font-weight: 700; color: var(--shell); font-size: 15px; }
.ocard .oh .ph { flex: 1; min-width: 200px; }
.ocard .oh .amt { font-size: 18px; font-weight: 700; }
.ocard .ob { padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ocard .ob .chip { background: #f2f2f2; border-radius: 12px; padding: 2px 10px; font-size: 12px; color: var(--text); }
.ocard .of { display: flex; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--border); align-items: center; flex-wrap: wrap; background: #fafafa; border-radius: 0 0 var(--r) var(--r); }
.ocard.paid { box-shadow: var(--sh1), inset 4px 0 0 var(--pos); }
.ocard.unpaid { box-shadow: var(--sh1), inset 4px 0 0 var(--crit); }

/* KPI kartları */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-card { background: #fff; border-radius: var(--r); box-shadow: var(--sh1); padding: 16px; }
.kpi-card .k { font-size: 13px; color: var(--text2); }
.kpi-card .v { font-size: 26px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-card .v.pos { color: var(--pos); } .kpi-card .v.crit { color: var(--crit); } .kpi-card .v.brand { color: var(--brand); }
.kpi-card .s { font-size: 12px; color: var(--text2); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 8px 4px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.bar .stack { width: 100%; max-width: 48px; position: relative; background: #d1e8ff; border-radius: 3px 3px 0 0; }
.bar .stack .paid { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 3px 3px 0 0; }
.bar .lbl { font-size: 11px; color: var(--text2); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.progress { height: 8px; background: #e5e5e5; border-radius: 4px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); transition: width .3s; }

/* Görsel seçici */
.img-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.img-cands button { aspect-ratio: 1; border: 1px solid var(--border2); border-radius: var(--r); background: #fff; padding: 4px; cursor: pointer; }
.img-cands button:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-l); }
.img-cands img { width: 100%; height: 100%; object-fit: contain; }
.img-main { width: 160px; height: 160px; border: 1px solid var(--border); border-radius: var(--r); object-fit: contain; background: #fff; padding: 6px; }
.drop { border: 2px dashed var(--border2); border-radius: 8px; padding: 32px; text-align: center; color: var(--text2); cursor: pointer; background: #fafafa; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-l); color: var(--brand); }

@media (max-width: 900px) {
  .content, .page-head, .op-head, .filterbar { padding-left: 16px; padding-right: 16px; }
  .shop-bar, .letters { padding-left: 16px; padding-right: 16px; }
  .footbar { padding: 0 16px; }
  .kpis, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: 1fr; }
  .filterbar .field, .filterbar .field.w-lg { width: calc(50% - 8px); }
  .shell .title { display: none; }
}
@media (max-width: 600px) {
  .tile { width: calc(50% - 4px); height: 150px; }
  .tile.wide { width: 100%; }
  .tile .kpi { font-size: 30px; }
  .form { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard .pa { flex-direction: column; }
  .pcard .pimg img { padding: 8px; }
  .pcard .stepper { width: 100%; } .pcard .stepper input { flex: 1; }
  .hero { padding: 24px; }
  .shell .brand { display: none; }
  .op-attrs { gap: 8px 24px; }
  .hide-sm { display: none; }
  .letters { flex-wrap: nowrap; overflow-x: auto; top: 100px; scrollbar-width: none; }
  .letters button { flex: none; }
  .letter-h { scroll-margin-top: 150px; }
  .kpi-card .v { font-size: 20px; }
}
@media print {
  .shell, .footbar, .filterbar, .no-print { display: none !important; }
  body { background: #fff; }
}
