/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand
 * paper: oklch(97% 0.002 190) · accent: oklch(52% 0.09 200) · display: Segoe UI · body: Segoe UI
 * nav: top bar, wordmark, two links, search, one action · signature: the price table with currency and VAT switches · states: loading, empty, error, full
 * axes: paper/display/accent · posture: utilitarian · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H, the header carries only the search and one action so the table stays the loudest thing */
@import url("./tokens.css");
@import url("./base.css");

/* ——— Ortak ——— */
body { min-height: 100dvh; }
h1 { max-width: none; font-size: var(--text-xl); line-height: 1.2; }
.muted { color: var(--color-muted); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: var(--space-xs); z-index: var(--z-modal); background: var(--color-surface); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-small); }
.skip:focus { left: var(--space-xs); }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; }

/* ——— Üst çubuk (ana sitedeki gibi) ——— */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-surface); border-bottom: var(--rule-hair) solid var(--color-rule); }
.topbar-inner { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: var(--space-xs); }
.nav a { color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); padding: var(--space-xs) var(--space-sm); }
.nav a:hover { background: var(--color-paper-2); border-radius: var(--radius-small); }
.nav a[aria-current="page"] { color: var(--color-accent-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--color-accent); }
.search { position: relative; flex: 1 1 280px; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: var(--control-h); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-paper); padding: 0 calc(var(--control-h) + var(--space-xs)) 0 var(--space-md); font-size: var(--text-sm); color: var(--color-ink); }
.search input::placeholder { color: var(--color-muted); }
.search input:focus { background: var(--color-surface); outline: 2px solid var(--color-focus); outline-offset: 0; }
.search button { position: absolute; right: 0; top: 0; width: var(--control-h); height: var(--control-h); border: 0; background: transparent; color: var(--color-ink-2); cursor: pointer; }
.top-actions { display: flex; align-items: center; gap: var(--space-sm); flex: none; }
.rate { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); text-decoration: none; white-space: nowrap; }
.rate strong { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rate.rate-stale strong { color: var(--color-error); }
.quiet { color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; padding: var(--space-xs); }
.quiet:hover { color: var(--color-ink); text-decoration: underline; }

/* ——— Düğmeler ve denetimler ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--color-accent); background: var(--color-paper-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn--small { min-height: 36px; padding: 0 var(--space-sm); }
.btn--danger:hover { border-color: var(--color-error); color: var(--color-error); background: var(--color-surface); }
.btn .count { min-width: 22px; height: 22px; padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-accent-dark); font-size: var(--text-xs); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.icon-btn { display: inline-grid; place-items: center; width: var(--control-h); height: var(--control-h); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); cursor: pointer; text-decoration: none; transition: background var(--dur-micro) var(--ease-out); }
.icon-btn:hover { background: var(--color-paper-2); }
select { height: var(--control-h); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-ink); padding: 0 var(--space-sm); font-size: var(--text-sm); }
.field { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.seg { display: inline-flex; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-surface); overflow: hidden; }
.seg button { min-height: calc(var(--control-h) - 2px); padding: 0 var(--space-sm); border: 0; background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; }
.seg button + button { border-left: var(--rule-hair) solid var(--color-rule); }
.seg button:hover { background: var(--color-paper-2); }
.seg button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.seg button:disabled { opacity: 0.45; cursor: not-allowed; }

/* ——— Sayfa başlığı ve araç çubuğu ——— */
main.container { padding-block: var(--space-lg) var(--space-2xl); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-md); }
.page-head .meta { color: var(--color-muted); font-size: var(--text-sm); }
.page-head .grow { flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); padding: var(--space-sm) var(--space-md); background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-bottom: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.toolbar .grow { flex: 1; }
.tabs { display: flex; gap: var(--space-xs); overflow-x: auto; margin-bottom: var(--space-md); padding-bottom: var(--space-2xs); scrollbar-width: thin; }
.tabs button { flex: none; min-height: 36px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: background var(--dur-micro) var(--ease-out); }
.tabs button:hover { background: var(--color-paper-2); }
.tabs button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.tabs .n { margin-left: var(--space-2xs); opacity: 0.75; font-variant-numeric: tabular-nums; }
.statusbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-md); padding: var(--space-xs) var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-bottom: 0; color: var(--color-ink-2); font-size: var(--text-sm); }

/* ——— Datasheet kartları ——— */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); }
.cards .card-body { padding: var(--space-sm); gap: var(--space-2xs); }
.cards .card h3 { font-size: var(--text-sm); }
.cards .actions .btn { padding-inline: var(--space-xs); }
@media (max-width: 80rem) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 48rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--dur-short) var(--ease-out); }
.card:hover { border-color: var(--color-accent); }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 11; padding: 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thumb .fallback { display: grid; place-items: center; height: 100%; color: var(--color-muted); }
.card-body { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); flex: 1; }
.cat { color: var(--color-muted); font-size: var(--text-xs); }
.card h3 { font-size: var(--text-md); line-height: 1.3; max-width: none; letter-spacing: 0; }
.card h3 button { all: unset; cursor: pointer; display: block; }
.card h3 button:hover { color: var(--color-accent-dark); }
.card h3 button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.codes { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.code { font: 600 var(--text-xs) var(--font-mono); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); border-radius: var(--radius-small); padding: var(--space-3xs) var(--space-xs); }
button.code { cursor: pointer; }
button.code:hover { border-color: var(--color-accent); background: var(--color-paper-2); }
.card .meta { color: var(--color-muted); font-size: var(--text-xs); margin-top: auto; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.actions .btn { flex: 1 1 auto; }
.actions .btn--primary { flex: 2 1 110px; }
.skeleton { height: 300px; border-radius: var(--radius-card); background: linear-gradient(100deg, var(--color-paper) 30%, var(--color-paper-2) 50%, var(--color-paper) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: var(--space-2xl) var(--space-md); background: var(--color-surface); border: var(--rule-hair) dashed var(--color-rule-2); border-radius: var(--radius-card); }
.empty h2 { margin: 0 auto var(--space-xs); font-size: var(--text-lg); max-width: none; }
.empty p { margin: 0 auto var(--space-md); color: var(--color-muted); }

/* ——— Diyalog ——— */
dialog { border: 0; padding: 0; border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); width: min(1100px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; }
dialog::backdrop { background: var(--color-scrim); }
dialog[open] { display: flex; flex-direction: column; }
.dlg-head { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.dlg-head .grow { flex: 1; min-width: 0; }
.dlg-head h2 { margin-top: var(--space-3xs); font-size: var(--text-lg); line-height: 1.25; max-width: none; letter-spacing: 0; }
.dlg-body { overflow: auto; padding: var(--space-lg); }
.dlg-foot { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: var(--space-sm) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.dlg-foot .spacer { flex: 1; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: var(--space-lg); }
.preview { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-small); overflow: hidden; background: var(--color-paper); display: flex; flex-direction: column; }
.preview iframe { border: 0; flex: 1; min-height: 520px; width: 100%; background: var(--color-surface); }
.preview p { padding: var(--space-xs) var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); }
.detail-info h3 { margin: var(--space-md) 0 var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; letter-spacing: 0; }
.detail-info h3:first-child { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-xs); }
details { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-small); padding: var(--space-sm); margin-top: var(--space-md); font-size: var(--text-sm); }
details summary { cursor: pointer; font-weight: 600; }

/* ——— Fiyat tablosu ——— */
.tablewrap { background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: 0 0 var(--radius-card) var(--radius-card); overflow-x: auto; }
.tablewrap.is-all { max-height: 70dvh; overflow: auto; }
@media (min-width: 70rem) { .tablewrap:not(.is-all) { overflow: visible; } }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
thead th { position: sticky; top: var(--header-h); z-index: var(--z-raised); background: var(--color-paper); text-align: left; font-weight: 600; color: var(--color-ink-2); padding: 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); white-space: nowrap; }
.tablewrap.is-all thead th { top: 0; }
thead th button { all: unset; cursor: pointer; display: block; box-sizing: border-box; width: 100%; padding: var(--space-sm); }
thead th button:hover { color: var(--color-accent-dark); }
thead th button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
thead th.num button { text-align: right; }
td { padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: middle; }
tbody tr:hover { background: var(--color-paper); }
tbody tr.in-quote { background: var(--color-paper-2); }
td.sel { width: 52px; padding-right: 0; }
.add { display: inline-grid; place-items: center; width: 36px; height: 36px; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-muted); cursor: pointer; transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.add:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.add[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
td.codecol { white-space: nowrap; }
.code-link { all: unset; cursor: pointer; font: 600 var(--text-xs) var(--font-mono); color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.code-link:hover { color: var(--color-ink); }
.code-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.pname { font-weight: 600; line-height: 1.35; min-width: 220px; }
.ptype { display: block; margin-top: var(--space-3xs); color: var(--color-muted); font-size: var(--text-xs); font-weight: 400; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.missing { color: var(--color-muted); font-size: var(--text-xs); }
td.rowact { white-space: nowrap; text-align: right; width: 1%; }
td.rowact .icon-btn { margin-left: var(--space-2xs); width: 36px; height: 36px; }
.notice { background: var(--color-warn-bg); color: var(--color-warn-ink); border-radius: var(--radius-small); padding: var(--space-sm); margin-bottom: var(--space-md); font-size: var(--text-sm); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.pager { display: flex; align-items: center; gap: var(--space-sm); }
.footnote { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-xs); }

/* Fiyat ayrıntısı */
.pricegroups { display: grid; gap: var(--space-md); }
.pricegroup h3 { margin: 0 0 var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; letter-spacing: 0; }
.pricegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-xs); }
.priceitem { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-small); padding: var(--space-xs) var(--space-sm); background: var(--color-paper); display: grid; gap: var(--space-3xs); }
.priceitem span { font-size: var(--text-xs); color: var(--color-muted); }
.priceitem strong { font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.infoline { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-md); }

/* ——— Teklif listesi çekmecesi ——— */
.scrim { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: calc(var(--z-modal) + 1); display: flex; flex-direction: column; background: var(--color-surface); box-shadow: var(--shadow-drawer); transform: translateX(104%); transition: transform var(--dur-short) var(--ease-out); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.drawer-head h2 { flex: 1; font-size: var(--text-lg); max-width: none; letter-spacing: 0; }
.drawer-body { flex: 1; overflow: auto; padding: var(--space-md) var(--space-lg); }
.drawer-foot { padding: var(--space-md) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); display: grid; gap: var(--space-sm); }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xs) var(--space-sm); padding: var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-small); margin-bottom: var(--space-sm); }
.qname { font-weight: 600; line-height: 1.3; font-size: var(--text-sm); }
.qcode { font: 600 var(--text-xs) var(--font-mono); color: var(--color-muted); }
.qrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.qrow select { height: 36px; font-size: var(--text-xs); flex: 1 1 150px; min-width: 0; }
.qty { width: 80px; height: 36px; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); padding: 0 var(--space-xs); background: var(--color-surface); text-align: right; font-variant-numeric: tabular-nums; }
.qtotal { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--text-sm); }
.sum { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-2xs) var(--space-md); margin: 0; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sum dt { color: var(--color-muted); }
.sum dd { margin: 0; text-align: right; }
.sum .grand { font-size: var(--text-lg); font-weight: 700; color: var(--color-ink); }
.drawer-foot .row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.drawer-foot .row .btn { flex: 1 1 auto; }
.qempty { text-align: center; color: var(--color-muted); padding: var(--space-2xl) var(--space-sm); font-size: var(--text-sm); }
.toast { position: fixed; left: 50%; bottom: var(--space-lg); transform: translateX(-50%) translateY(var(--space-md)); opacity: 0; z-index: var(--z-toast); background: var(--color-ink); color: var(--color-surface); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-small); font-size: var(--text-sm); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ——— Giriş ——— */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: var(--space-lg) var(--space-md); }
.login-card { width: min(400px, 100%); background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-xl) var(--space-lg); }
.login-logo { height: 36px; width: auto; margin-bottom: var(--space-lg); }
.login-card h1 { margin-bottom: var(--space-3xs); }
.login-form { display: grid; gap: var(--space-xs); margin-top: var(--space-lg); }
.login-form label { font-size: var(--text-sm); font-weight: 600; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; height: 44px; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-small); padding: 0 48px 0 var(--space-md); font-size: var(--text-md); background: var(--color-surface); color: var(--color-ink); }
.pw-wrap input:focus { outline: 2px solid var(--color-focus); outline-offset: 0; }
.pw-wrap input[aria-invalid="true"] { border-color: var(--color-error); }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: var(--radius-small); background: transparent; color: var(--color-muted); cursor: pointer; }
.pw-toggle:hover { background: var(--color-paper-2); color: var(--color-ink); }
.login-error { margin: 0; color: var(--color-error); font-size: var(--text-sm); font-weight: 600; }
.login-submit { min-height: 44px; margin-top: var(--space-xs); width: 100%; }
.login-note { text-align: center; margin-top: var(--space-md); }

/* ——— Mobil ——— */
@media (max-width: 60rem) {
  :root { --header-h: 120px; --gutter: 24px; }
  .topbar-inner { flex-wrap: wrap; gap: var(--space-xs) var(--space-md); padding-block: var(--space-sm); }
  .search { order: 4; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .nav { order: 3; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .rate { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .preview iframe { min-height: 360px; }
}
@media (max-width: 48rem) {
  :root { --gutter: 16px; }
  .btn-label { display: none; }
  .toolbar .field { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); width: 100%; }
  .toolbar .seg { max-width: 100%; overflow-x: auto; }
  .toolbar select { width: 100%; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--space-3xs) var(--space-xs); padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  td { border: 0; padding: 0; }
  td.sel { grid-row: 1 / 3; grid-column: 1; align-self: start; width: auto; }
  td.codecol { grid-column: 2; grid-row: 1; }
  td.namecol { grid-column: 2 / 4; grid-row: 2; }
  td.rowact { grid-column: 3; grid-row: 1; width: auto; }
  td.num { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: var(--rule-hair) dotted var(--color-rule); padding: var(--space-2xs) 0; text-align: left; }
  td.num:first-of-type { margin-top: var(--space-xs); }
  td.num::before { content: attr(data-label); color: var(--color-muted); font-size: var(--text-xs); }
  .pname { min-width: 0; }
  .tablewrap, .tablewrap.is-all { max-height: none; overflow: visible; }
}

/* ——— Yazdırma: yalnızca teklif listesi ——— */
@media print {
  body > *:not(#quote-drawer) { display: none !important; }
  #quote-drawer { position: static !important; transform: none !important; visibility: visible !important; width: auto !important; box-shadow: none !important; display: block !important; }
  #quote-drawer .icon-btn, #quote-drawer .drawer-foot .row, #quote-drawer .remove { display: none !important; }
  #quote-drawer .qty { border: 0; width: auto; padding: 0; font-weight: 600; }
  #quote-drawer select { border: 0; appearance: none; padding: 0; font-weight: 600; }
  .drawer-body { overflow: visible; }
  .qitem { break-inside: avoid; }
}
.btn:active, .icon-btn:active, .seg button:active, .tabs button:active, .add:active { background: var(--color-paper-3); }
.rate .flag { width: 21px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px var(--color-rule); }
.card .note { margin-top: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--color-accent-dark); }
.card h3 a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.live { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-3xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: 999px; background: var(--color-surface); color: var(--color-ink); font-size: var(--text-xs); white-space: nowrap; }
.live[hidden] { display: none; }
.live .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.live .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-success); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live .dot::after { animation: none; } }
