/*
 * Satın alma ekranları (27 Kasım 2026 yeniden tasarım): /satinalma iş kuyruğu listesi (pq-*) ve /satinalma/{id} ayrıntısı (pd-*).
 * app.css'teki tasarım değişkenlerini kullanır; yalnız yeni sınıflar tanımlar (mevcut sınıflar değiştirilmez).
 * Dokunma hedefleri en az 44px; metin renkleri beyaz zeminde en az 4.5:1.
 */

/* ───────── Ortak: 44px düğme, alan, taşma menüsü ───────── */
.pq-btn, .pd-btn { min-height: 44px; padding: 0 16px; border-radius: var(--radius); color: var(--blue-700); }
.pq-btn.btn-primary, .pd-btn.btn-primary { color: var(--accent-ink); }
.pq-btn.btn-danger, .pd-btn.btn-danger { color: #a3222c; background: var(--surface); border-color: #e3b3b7; }
.pq-btn.btn-danger:hover:not(:disabled), .pd-btn.btn-danger:hover:not(:disabled) { background: var(--bad-bg); border-color: #d98f96; }
.pd-btn-accent { border-color: var(--slate-300); }

.pq-field { display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; font-weight: 600; color: var(--slate-700); }
.pq-field input, .pq-field select, input.pd-input { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); min-height: 44px; padding: 0 12px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: #fff; min-width: 0; }
.pq-field input:hover, .pq-field select:hover { border-color: #9db0c3; }

.pq-menu { position: relative; }
.pq-menu > summary { list-style: none; width: 44px; padding: 0; font-size: 1.15rem; line-height: 1; color: var(--slate-700); }
.pq-menu > summary::-webkit-details-marker { display: none; }
.pq-menu[open] > summary { background: var(--blue-100); border-color: var(--blue-500); color: var(--blue-700); }
.pq-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; width: min(280px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--slate-300); border-radius: var(--radius); box-shadow: var(--shadow-lift); text-align: left; white-space: normal; }
.pq-menu-item { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.pq-menu-item:hover { background: var(--slate-100); color: var(--blue-700); }
.pq-menu-item:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.pq-menu-item.danger { color: #a3222c; }
.pq-menu-item.danger:hover { background: var(--bad-bg); color: #a3222c; }
.pq-reject { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 10px 6px 4px; border-top: 1px solid var(--line); }

.pq-count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 10px; background: var(--slate-100); color: var(--slate-700); font-size: 0.86rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pq-sub, .pd-sub { font-size: 0.86rem; color: var(--slate-600); }

/* ───────── Liste: başlık ve görünüm anahtarı ───────── */
.pq-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pq-switch { display: inline-flex; border: 1px solid var(--slate-300); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pq-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--slate-700); font-weight: 600; text-decoration: none; }
.pq-switch a + a { border-left: 1px solid var(--slate-300); }
.pq-switch a:hover { background: var(--slate-50); }
.pq-switch a.active { background: var(--blue-100); color: var(--blue-700); font-weight: 650; }
.pq-switch a:focus-visible { outline-offset: -2px; }

/* ───────── Liste: özet şeridi ───────── */
.pq-summary { display: flex; flex-wrap: wrap; gap: 14px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 16px; }
.pq-stat { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
a.pq-stat { border-radius: var(--radius-sm); }
a.pq-stat:hover .pq-stat-hint { color: var(--blue-700); text-decoration: underline; }
.pq-stat-label { font-size: 0.86rem; font-weight: 600; color: var(--slate-700); }
.pq-stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pq-stat.bad .pq-stat-value { color: var(--bad); }
.pq-stat-hint { font-size: 0.86rem; color: var(--slate-600); }

/* ───────── Liste: sekmeler, süzgeç, tablo ───────── */
.pq-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; min-width: 0; }
.pq-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); }
.pq-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--slate-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pq-tab:hover { color: var(--blue-700); }
.pq-tab.active { border-bottom-color: var(--accent); color: var(--blue-700); font-weight: 700; }
.pq-tab.active .pq-count { background: var(--blue-100); color: var(--blue-700); }
.pq-tab:focus-visible { outline-offset: -2px; }

.pq-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
.pq-field-grow { flex: 1 1 260px; }
.pq-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pq-check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.pq-clear { display: inline-flex; align-items: center; min-height: 44px; }
.pq-empty { padding: 28px 22px; color: var(--slate-600); text-align: center; }

.pq-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.pq-table th { padding: 10px 12px; text-align: left; font-size: 0.86rem; font-weight: 600; color: var(--slate-700); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pq-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pq-table th:first-child, .pq-table td:first-child { padding-left: 22px; }
.pq-table th:last-child, .pq-table td:last-child { padding-right: 22px; }
.pq-table .num { text-align: right; }
.pq-table tbody tr:target { background: var(--blue-100); box-shadow: inset 3px 0 0 var(--accent); }
.pq-table tr { scroll-margin-top: 90px; }
.pq-late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.pq-no { font-weight: 700; color: var(--blue-600); text-decoration: none; font-variant-numeric: tabular-nums; }
.pq-no:hover { color: var(--blue-700); text-decoration: underline; }
.pq-req .chip { margin-left: 6px; }
.pq-title { font-weight: 600; }
.pq-lines { font-size: 0.86rem; color: var(--slate-600); max-width: 46ch; overflow-wrap: anywhere; }
.pq-reason { color: #a3222c; max-width: 30ch; overflow-wrap: anywhere; margin-top: 4px; }
.pq-sla { min-width: 150px; }
.pq-sla-text { font-weight: 650; color: var(--slate-700); font-variant-numeric: tabular-nums; }
.pq-sla-text.late { color: var(--bad); }
.pq-bar { height: 5px; margin-top: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.pq-bar > span { display: block; height: 5px; background: var(--slate-700); border-radius: 3px; }
.pq-bar > span.late { background: var(--bad); }
.pq-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pq-amount strong { font-weight: 650; }
.pq-table td.pq-actions { padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }
.pq-actions-row { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.pq-wait { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.86rem; font-weight: 600; color: var(--slate-600); white-space: normal; text-align: right; }
.pq-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 22px; font-size: 0.93rem; color: var(--slate-600); }
.pq-foot .link { display: inline-flex; align-items: center; min-height: 44px; }

.pq-receipts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.pq-receipts > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; font-weight: 650; cursor: pointer; }
.pq-scroll, .pd-scroll { overflow-x: auto; }
.pq-scroll { border-top: 1px solid var(--line); }
.pq-plain { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.93rem; }
.pq-plain th { padding: 10px 12px; text-align: left; font-size: 0.86rem; font-weight: 600; color: var(--slate-700); border-bottom: 1px solid var(--line); }
.pq-plain td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.pq-plain .num { text-align: right; font-variant-numeric: tabular-nums; }
.pq-plain th:first-child, .pq-plain td:first-child { padding-left: 22px; }

/* Dar ekranda satırlar karta döner: kaydırma kutusu yok, taşma menüsü kırpılmaz. */
@media (max-width: 1180px) {
    .pq-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .pq-table, .pq-table tbody { display: block; }
    .pq-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
    .pq-table td, .pq-table td:first-child, .pq-table td:last-child { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
    .pq-table td.pq-req, .pq-table td.pq-actions { grid-column: 1 / -1; }
    .pq-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate-600); margin-bottom: 2px; }
    .pq-late td:first-child { box-shadow: none; }
    .pq-table tr.pq-late { box-shadow: inset 3px 0 0 var(--bad); }
    .pq-actions-row { justify-content: flex-start; flex-wrap: wrap; }
    .pq-actions-row > .btn:first-child { flex: 1 1 auto; }
    .pq-lines, .pq-reason { max-width: none; }
    .pq-wait { text-align: left; flex: 1 1 auto; }
}
@media (max-width: 760px) {
    .pq-summary { padding: 14px 16px; gap: 12px 24px; }
    .pq-stat { flex: 1 1 40%; }
    .pq-stat-value { font-size: 1.4rem; }
    .pq-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 6px 8px 0; }
    .pq-filters, .pq-foot { padding-left: 16px; padding-right: 16px; }
    .pq-field-grow { flex-basis: 100%; }
    .pq-head-actions { width: 100%; }
}
@media (max-width: 480px) {
    .pq-table tr { grid-template-columns: 1fr; }
}

/* ───────── Ayrıntı: başlık ve iki sütun ───────── */
.pd-head { margin-bottom: 14px; }
.pd-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-600); font-weight: 600; text-decoration: none; }
.pd-back:hover { color: var(--blue-700); text-decoration: underline; }
.pd-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-title-row h1 { margin: 0; overflow-wrap: anywhere; }
.pd-head p { margin-top: 4px; color: var(--slate-600); }

.pd-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.pd-main, .pd-form, .pd-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-main > .alert, .pd-main .flow-panels { margin-bottom: 0; }
.pd-rail { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; }
.pd-panel { padding: 18px 22px; scroll-margin-top: 80px; }
.pd-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.pd-panel-head h2, .pd-card h2 { font-size: 1.07rem; font-weight: 650; margin: 0; }
.pd-desc { color: var(--slate-700); margin-bottom: 8px; overflow-wrap: anywhere; }
.pd-lines { list-style: none; margin: 0; padding: 0; }
.pd-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.pd-lines strong { font-variant-numeric: tabular-nums; }
.pd-line-name { color: var(--slate-700); overflow-wrap: anywhere; }
.pd-line-qty { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Teklif karşılaştırma */
.pd-scroll { border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 10px; }
.pd-scroll:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.pd-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.93rem; }
.pd-compare th, .pd-compare td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pd-compare thead th { vertical-align: bottom; border-bottom-color: var(--line); font-size: 0.86rem; font-weight: 600; color: var(--slate-700); text-align: left; }
.pd-compare tbody th { text-align: left; font-weight: 600; min-width: 180px; }
.pd-compare .num { text-align: right; min-width: 9.5rem; font-variant-numeric: tabular-nums; }
.pd-compare .best { background: #f1f8f4; }
.pd-compare thead th.best { box-shadow: inset 0 3px 0 var(--ok); }
.pd-compare td.low { color: #0d6b3e; font-weight: 700; }
.pd-q-name { font-size: 0.97rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pd-q-tag { font-size: 0.86rem; font-weight: 700; color: #0d6b3e; }
.pd-compare thead .chip { margin-top: 4px; }
.pd-total th, .pd-total td { border-top: 2px solid var(--line); border-bottom-color: var(--line); }
.pd-total-value { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.pd-diff { font-size: 0.86rem; font-weight: 600; color: var(--slate-700); }
.pd-diff.best { color: #0d6b3e; }
.pd-compare tbody th.pd-row-label { font-size: 0.86rem; font-weight: 600; color: var(--slate-700); }
.pd-delivery { font-size: 0.9rem; font-weight: 600; }
.pd-delivery.late { color: #a3222c; }
.pd-delivery.late > span:first-child::before { content: "! "; font-weight: 800; }
.pd-terms { font-size: 0.86rem; color: var(--slate-700); }
.pd-choose td { border-bottom: 0; }

/* Teklif istenen tedarikçiler */
.pd-suppliers { list-style: none; margin: 8px 0 0; padding: 0; }
.pd-suppliers li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pd-sup-main { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.pd-sup-main .pd-sub > span + span::before { content: " · "; }
.pd-sup-status { flex: 0 0 auto; }
.pd-sup-actions { flex: 0 0 auto; display: flex; gap: 4px; margin-left: auto; }
.pd-sup-main .inline-edit { flex-wrap: wrap; }
input.pd-input { width: min(260px, 100%); }

/* Fiyat girişi (açılır-kapanır) */
.pd-entry > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; margin: -8px 0; cursor: pointer; }
.pd-entry[open] > summary { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.pd-entry-title { font-size: 1.07rem; font-weight: 650; }
.pd-entry .search-row { flex-wrap: wrap; }
.pd-entry .search-row input { min-height: 44px; min-width: 200px; }

/* Sağ sütun */
.pd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pd-next { display: flex; flex-direction: column; gap: 10px; }
.pd-next-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-700); }
.pd-next h2 { font-size: 1.2rem; font-weight: 700; }
.pd-next p { color: var(--slate-700); overflow-wrap: anywhere; }
.pd-next .pd-btn { width: 100%; white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.pd-warn { color: #a3222c; font-weight: 600; }
.pd-reject { display: flex; flex-direction: column; gap: 10px; }
.pd-reject > summary { list-style: none; }
.pd-reject > summary::-webkit-details-marker { display: none; }
.pd-reject[open] > summary { margin-bottom: 10px; }

.pd-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.pd-steps li { display: flex; gap: 12px; padding: 7px 0; }
.pd-step-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-300); background: var(--surface); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.pd-step-name { font-weight: 600; color: var(--slate-600); }
.pd-step-hint { font-size: 0.86rem; color: var(--slate-600); }
.pd-step-hint .late { color: #a3222c; font-weight: 600; }
.pd-steps li.done .pd-step-mark { background: var(--ok); border-color: var(--ok); }
.pd-steps li.done .pd-step-name { color: var(--ink); }
.pd-steps li.current .pd-step-mark { background: var(--accent); border-color: var(--accent); }
.pd-steps li.current .pd-step-name { color: var(--ink); font-weight: 700; }
.pd-steps li.failed .pd-step-mark { background: var(--bad); border-color: var(--bad); }
.pd-steps li.failed .pd-step-name { color: #a3222c; font-weight: 700; }

@media (max-width: 1100px) {
    .pd-layout { grid-template-columns: minmax(0, 1fr); }
    /* Telefonda "sonraki adım" içerikten önce görünür. */
    .pd-rail { position: static; max-height: none; overflow: visible; order: -1; }
}
@media (max-width: 760px) {
    .pd-panel { padding: 16px; }
    .pd-card { padding: 16px; }
    .pd-sup-actions { margin-left: 0; width: 100%; }
    .pd-sup-actions > .btn:first-child { flex: 1 1 auto; }
}
@media print {
    .pd-rail, .pq-filters, .pq-switch, .pq-menu { display: none; }
}

/* ───────── Yeni hizmet talebi (30 Kasım 2026): kartlar, anahtarlar, sağ özet (toplam + gönder en altta) ───────── */
.sr-cards { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sr-cards > .panel { margin-bottom: 0; }
.form-card { background: var(--surface-2); border-color: var(--line); }
.form-card .field input, .form-card .field select, .form-card .field textarea { background: #fff; }
.line-entry-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.line-entry-actions .btn { min-height: 44px; padding: 0 18px; }

.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.toggle-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.toggle-card:has(input[role="switch"]:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.toggle-body { display: none; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.toggle-card:has(input[role="switch"]:checked) .toggle-body { display: flex; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input[role="switch"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 42px; height: 24px; margin-top: 1px; border-radius: 999px; background: var(--slate-300); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input[role="switch"]:checked + .switch-track { background: var(--blue-600); }
.switch input[role="switch"]:checked + .switch-track::after { transform: translateX(18px); }
.switch input[role="switch"]:focus-visible + .switch-track { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }

.sr-summary { display: flex; flex-direction: column; align-self: start; position: sticky; top: calc(var(--topbar-h) + 16px); }
.sr-summary .draft { max-height: 46vh; overflow: auto; }
.sr-empty { padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.sr-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sr-foot .wide { margin-top: 2px; }
.sr-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.sr-total span { color: var(--slate-700); font-weight: 600; }
.sr-total strong { font-size: 1.25rem; text-align: right; }

@media (max-width: 760px) {
    .toggle-grid { grid-template-columns: 1fr; }
    .sr-summary { position: static; }
}

/* ───────── Taleplerim (30 Kasım 2026): geniş arama, süzgeçler, işlem sütunu, sayfa boyutu + sayfalama ───────── */
.request-filters .search-field { flex: 1 1 320px; }
.request-filters .search-field input { width: 100%; }
.request-filters .filter-actions { display: flex; gap: 8px; margin-left: auto; }
.request-filters .filter-actions .btn { min-height: 40px; }
.request-grid td.ctr, .request-grid th.ctr { text-align: center; width: 1%; white-space: nowrap; }
.request-grid td.num { white-space: nowrap; }
.grid-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.grid-foot .pager { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.grid-foot .page-size { display: flex; align-items: center; gap: 10px; margin: 0; }
.grid-foot .page-size label { display: flex; align-items: center; gap: 6px; }
.grid-foot .page-size select { min-height: 34px; padding: 0 8px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: #fff; font: inherit; }
@media (max-width: 760px) {
    .request-filters .filter-actions { margin-left: 0; width: 100%; }
    .request-filters .filter-actions .btn { flex: 1; }
}

.purchase-extra-line { padding: .75rem 1rem; }
.purchase-extra-line summary { cursor: pointer; font-weight: 700; }
.purchase-extra-line-hint { margin: .5rem 0 .75rem; }
.purchase-extra-line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem .75rem; }
.purchase-extra-line-wide { grid-column: 1 / -1; }
.purchase-extra-line-grid .field input,
.purchase-extra-line-grid .field textarea { width: 100%; min-width: 0; }
.purchase-extra-line-grid .field textarea { min-height: 0; }
.purchase-extra-line-actions { display: flex; justify-content: flex-end; }

.purchase-quote-comparison .purchase-quote-head { background: var(--surface-2, #f5f7fa); }
.purchase-quote-head .purchase-quote-name,
.purchase-quote-head .purchase-quote-total,
.purchase-quote-head .purchase-quote-meta { display: block; }
.purchase-quote-head .purchase-quote-total { margin-block: .25rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.purchase-quote-head .purchase-quote-meta { font-size: .75rem; font-weight: 500; }
.purchase-quote-head .chip { margin-top: .45rem; }
.purchase-quote-comparison .purchase-quote-selected { box-shadow: inset 0 3px 0 var(--blue-500); }
.purchase-quote-comparison tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface, #fff); }
.purchase-quote-comparison thead tr > :first-child { background: var(--surface-2, #f5f7fa); }
.purchase-quote-comparison tr > [colspan]:first-child { position: static; }
