:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #182230;
  --muted: #667085;
  --line: #e4e7ec;
  --navy: #142b45;
  --navy-2: #0d2136;
  --accent: #ef7f2d;
  --accent-dark: #d86617;
  --accent-soft: #fff2e8;
  --green: #16845b;
  --green-soft: #eaf8f2;
  --amber: #a15c00;
  --amber-soft: #fff6e6;
  --shadow: 0 8px 28px rgba(16, 24, 40, .07);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; display: flex; flex-direction: column; z-index: 80; box-shadow: 10px 0 30px rgba(13, 33, 54, .08); transition: transform .25s ease; }
.brand { min-height: 112px; padding: 14px 20px 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.09); background: #fff; }
.sidebar-brand-logo { display: block; width: 184px; max-width: 100%; height: 70px; object-fit: contain; object-position: center; }
.brand small { display: block; color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav { padding: 16px 12px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav-item { width: 100%; min-height: 44px; border: 0; background: transparent; color: #c9d4df; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; text-align: left; margin: 2px 0; transition: background .16s, color .16s, transform .16s; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 600; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.nav-primary { margin-bottom: 10px; color: #fff; background: rgba(239,127,45,.17); }
.nav-item.nav-primary:hover, .nav-item.nav-primary.active { background: var(--accent); box-shadow: none; }
.nav-dot { width: 7px; height: 7px; background: #fbbf24; border-radius: 50%; flex: 0 0 auto !important; }
.nav-label { color: #7890a7; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; padding: 18px 12px 7px; }
.nav-label.admin-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; }
.nav-label.admin-nav-toggle:hover { color: #c9d4df; }
.admin-nav-toggle-chevron { width: 12px; height: 12px; transition: transform .15s; }
.admin-nav-toggle.open .admin-nav-toggle-chevron { transform: rotate(90deg); }
[data-admin-gate].collapsed { display: none; }
.sidebar-footer { padding: 15px 21px 19px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; color: #d3dde6; font-size: 11px; }
.sidebar-footer span { background: rgba(255,255,255,.08); padding: 5px 7px; border-radius: 7px; text-align: center; }
.sidebar-footer small { grid-column: 1/-1; text-align: center; color: #7890a7; margin-top: 3px; }
.workspace { margin-left: 264px; width: calc(100% - 264px); min-height: 100vh; }
.topbar { height: 70px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 60; }
.topbar-left, .topbar-actions, .breadcrumb, .global-search, .sync-pill, .user-button { display: flex; align-items: center; }
.breadcrumb { gap: 7px; font-size: 13px; color: var(--muted); }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb strong { color: var(--ink); }
.topbar-actions { gap: 10px; }
.global-search { width: min(340px, 30vw); height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); padding: 0 10px; gap: 8px; }
.global-search svg { color: #98a2b3; width: 18px; }
.global-search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font-size: 13px; color: var(--ink); }
kbd { color: #98a2b3; font-size: 10px; border: 1px solid var(--line); background: white; border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.sync-pill { gap: 7px; height: 34px; padding: 0 11px; border: 1px solid #d1fadf; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }
.sync-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: #475467; border-radius: 10px; display: grid; place-items: center; position: relative; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); top: 7px; right: 7px; border: 2px solid #fff; }
.menu-button { display: none; margin-right: 10px; }
.user-button { border: 0; background: transparent; gap: 9px; padding: 4px 5px; border-radius: 10px; text-align: left; }
.user-button:hover { background: var(--surface-soft); }
.user-button > span { width: 35px; height: 35px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.user-button strong, .user-button small { display: block; }
.user-button strong { font-size: 12px; }
.user-button small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.content { padding: 28px; max-width: 1600px; margin: 0 auto; }
.view { display: none; animation: viewIn .2s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.page-heading h1 { font-size: 28px; line-height: 1.15; margin: 3px 0 7px; letter-spacing: -.025em; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 0; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 10px !important; font-weight: 800; margin: 0; }
.heading-actions { display: flex; gap: 9px; }
.button { min-height: 40px; border-radius: 10px; border: 1px solid transparent; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.button[hidden] { display: none; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(239,127,45,.18); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; color: #344054; border-color: #d0d5dd; }
.button.secondary:hover { background: var(--surface-soft); }
.button.subtle { background: var(--surface-soft); color: #344054; border-color: var(--line); }
.button.danger { background: #fff; color: #b42318; border-color: #fecdca; }
.button.danger:hover { background: #fef3f2; }
.button.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.quick-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; text-align: left; box-shadow: 0 4px 12px rgba(16,24,40,.03); transition: transform .17s, border-color .17s, box-shadow .17s; }
.quick-card:hover { transform: translateY(-2px); border-color: #f4b181; box-shadow: var(--shadow); }
.quick-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: 0 0 auto; }
.quick-card div { flex: 1; min-width: 0; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: 13px; }
.quick-card small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.quick-card .arrow { width: 16px; color: #98a2b3; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stats-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; box-shadow: 0 4px 12px rgba(16,24,40,.025); }
.stat-card div { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.stat-card span { color: #475467; font-size: 12px; font-weight: 650; }
.stat-card strong { font-size: 29px; line-height: 1; }
.stat-card small { color: #98a2b3; font-size: 10px; display: block; margin-top: 11px; }
.stat-card.warning { background: var(--amber-soft); border-color: #fedf89; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(310px,1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-grid.lower { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(16,24,40,.035); }
.panel-head { min-height: 70px; padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head h2, .section-title h2, .source-card h2, .backup-card h2 { margin: 0; font-size: 16px; }
.panel-head p, .section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.empty-state { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.empty-state.compact { min-height: 245px; }
.empty-state > span { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-soft); color: #98a2b3; margin-bottom: 13px; }
.empty-state strong { font-size: 14px; }
.empty-state p { color: var(--muted); font-size: 11px; max-width: 420px; line-height: 1.6; margin: 7px 0 15px; }
.empty-actions { display: flex; gap: 8px; }
.source-list { padding: 6px 20px; }
.source-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: 0; }
.source-row > div:nth-child(2) { flex: 1; }
.source-row strong, .source-row small { display: block; }
.source-row strong { font-size: 12px; }
.source-row small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.source-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .03em; flex: 0 0 auto; }
.source-logo.pompaal { background: #f97316; }
.source-logo.pompafan { background: #2574a9; }
.source-logo.manual { background: #667085; }
.source-logo.large { width: 48px; height: 48px; border-radius: 14px; font-size: 13px; }
.status { border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status.neutral { color: #475467; background: #f2f4f7; }
.status.success { color: var(--green); background: var(--green-soft); }
.panel > .button.full { width: calc(100% - 40px); margin: 5px 20px 18px; }
.mini-empty { min-height: 150px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #98a2b3; text-align: center; }
.mini-empty svg { width: 27px; height: 27px; }
.mini-empty p { color: var(--muted); font-size: 11px; max-width: 350px; line-height: 1.6; }
.security-list { padding: 13px 20px; }
.security-list > div { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; }
.check { width: 23px; height: 23px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: 0 0 auto; }
.security-list p { margin: 0; }
.security-list strong, .security-list small { display: block; }
.security-list strong { font-size: 11px; }
.security-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.notice { display: flex; gap: 7px; align-items: flex-start; margin: -8px 0 18px; border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 11px 14px; font-size: 11px; line-height: 1.55; }
.notice.security { margin-top: 0; color: #175cd3; border-color: #b2ddff; background: #eff8ff; padding: 14px 16px; }
.notice.security svg { flex: 0 0 auto; }
.notice.security p { margin: 3px 0 0; color: #344054; }
.form-panel { padding: 20px; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.section-title > span { width: 29px; height: 29px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; }
.section-title.with-action > div { flex: 1; }
.form-grid { display: grid; gap: 15px; }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { color: #344054; font-size: 10px; font-weight: 750; }
.field input, .field select, .field textarea, .search-field input, .filter-bar > select { width: 100%; border: 1px solid #d0d5dd; background: #fff; color: var(--ink); border-radius: 9px; outline: none; padding: 9px 10px; font-size: 12px; transition: border-color .16s, box-shadow .16s; }
.field input, .field select, .filter-bar > select { height: 40px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: #f5a66e; box-shadow: 0 0 0 3px rgba(239,127,45,.11); }
.span-2 { grid-column: span 2; }
.input-action { display: flex; }
.input-action select { border-radius: 9px 0 0 9px; }
.input-action button { border: 1px solid #d0d5dd; border-left: 0; border-radius: 0 9px 9px 0; background: var(--surface-soft); color: var(--accent-dark); font-weight: 800; padding: 0 12px; }
.quote-lines-panel { overflow: hidden; margin-bottom: 20px; }
.quote-lines-panel .section-title { padding: 20px 20px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: #f8fafc; color: #667085; text-transform: uppercase; letter-spacing: .04em; font-size: 9px; text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: 11px; }
.quote-table { min-width: 1050px; }
.quote-table td:first-child, .quote-table th:first-child { padding-left: 15px; width: 42px; text-align: center; }
.quote-table td:last-child, .quote-table th:last-child { padding-right: 15px; width: 42px; }
.quote-table input, .quote-table select { height: 36px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 8px; font-size: 11px; width: 100%; outline: none; }
.quote-table .product-input { min-width: 220px; }
.quote-table .qty-input { width: 72px; }
.quote-table .price-input { width: 110px; }
.quote-table .discount-input { width: 105px; }
.quote-table .currency-select { width: 70px; }
.cell-inline { display: flex; gap: 6px; }
.money-cell { text-align: right; white-space: nowrap; padding-top: 17px; font-weight: 700; }
.remove-line { border: 0; background: transparent; color: #b42318; width: 30px; height: 30px; border-radius: 7px; font-size: 19px; line-height: 1; }
.remove-line:hover { background: #fef3f2; }
.quote-bottom { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; padding: 20px; }
.totals-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); padding: 14px 17px; }
.totals-card > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 11px; }
.totals-card > div strong { font-size: 12px; }
.totals-card .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.totals-card .grand span { font-weight: 800; }
.totals-card .grand strong { color: var(--accent-dark); font-size: 19px; }
.totals-card small { display: block; color: #98a2b3; font-size: 9px; text-align: right; margin-top: 7px; }
.filter-bar { min-height: 70px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }
.filter-bar.wrap { flex-wrap: wrap; }
.search-field { height: 40px; flex: 1; min-width: 220px; display: flex; align-items: center; gap: 7px; border: 1px solid #d0d5dd; border-radius: 9px; padding-left: 10px; }
.search-field svg { width: 17px; color: #98a2b3; }
.search-field input { border: 0; padding-left: 0; height: 38px; }
.filter-bar > select { width: auto; min-width: 145px; }
.choice-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.choice-card { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: #f5a66e; box-shadow: 0 0 0 3px rgba(239,127,45,.08); }
.choice-card input { position: absolute; opacity: 0; }
.choice-card > span { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #d0d5dd; position: relative; }
.choice-card:has(input:checked) > span { border-color: var(--accent); }
.choice-card:has(input:checked) > span::after { content: ""; width: 9px; height: 9px; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.source-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.source-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 18px rgba(16,24,40,.035); }
.source-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.source-card-head > div:nth-child(2) { flex: 1; }
.source-card-head p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.source-card dl { margin: 0 0 17px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.source-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 10px; }
.source-card dl div:last-child { border-bottom: 0; }
.source-card dt { color: var(--muted); }
.source-card dd { margin: 0; text-align: right; font-weight: 700; }
.flow { padding: 24px 20px 27px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow > div { flex: 1; min-width: 0; text-align: center; }
.flow > div span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 900; }
.flow strong, .flow small { display: block; }
.flow strong { font-size: 10px; }
.flow small { color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.4; }
.flow i { height: 1px; flex: .45; background: #d0d5dd; position: relative; }
.flow i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid #98a2b3; border-right: 1px solid #98a2b3; transform: rotate(45deg); }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.role-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; gap: 10px; align-items: center; }
.role-card > span { width: 37px; height: 37px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; }
.role-card strong, .role-card small { display: block; }
.role-card strong { font-size: 11px; }
.role-card small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.backup-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.backup-card { padding: 22px; }
.backup-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 15px; }
.backup-card > p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.code-row { display: flex; align-items: stretch; background: #101828; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.code-row code { flex: 1; min-width: 0; overflow-x: auto; color: #d0d5dd; padding: 12px; font-size: 10px; }
.code-row .icon-button { border: 0; border-left: 1px solid #344054; border-radius: 0; background: transparent; color: #fff; height: auto; }
.modal { position: fixed; inset: 0; background: rgba(16,24,40,.52); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.modal.open { display: flex; }
.modal-card { width: min(420px,100%); background: #fff; border-radius: 18px; padding: 28px; text-align: center; position: relative; box-shadow: 0 25px 70px rgba(16,24,40,.25); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 13px; top: 11px; border: 0; background: transparent; color: #667085; font-size: 24px; }
.modal-icon { width: 55px; height: 55px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 15px; }
.modal-card h2 { margin: 0; font-size: 19px; }
.modal-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 9px 0 20px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: #101828; color: #fff; border-radius: 11px; padding: 12px 15px; font-size: 11px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 250; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: none; }
.sidebar-overlay { display: none; }
@media (max-width: 1180px) {
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .global-search { width: 250px; }
  .sync-pill { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 70; }
  .workspace { margin-left: 0; width: 100%; }
  .menu-button { display: grid; }
  .dashboard-grid, .dashboard-grid.lower, .settings-grid, .backup-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 17px; }
  .content { padding: 22px 17px; }
  .global-search { display: none; }
  .source-cards { grid-template-columns: 1fr; }
  .flow { overflow-x: auto; justify-content: flex-start; }
  .flow > div { min-width: 125px; }
  .flow i { min-width: 28px; }
}
@media (max-width: 650px) {
  .user-button div { display: none; }
  .page-heading { flex-direction: column; align-items: stretch; }
  .page-heading .button, .heading-actions .button { flex: 1; }
  .heading-actions { width: 100%; }
  .quick-grid, .stats-grid, .stats-grid.three, .choice-cards, .role-grid { grid-template-columns: 1fr; }
  .form-grid.four, .form-grid.two { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .quote-bottom { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar > select { flex: 1; min-width: 145px; }
  .page-heading h1 { font-size: 24px; }
  .content { padding: 18px 12px; }
  .topbar { padding: 0 12px; }
  .breadcrumb span, .breadcrumb svg { display: none; }
}


/* BUILD002-R1 — Teklif çıktı ve gönderim işlemleri */
.quote-main-actions { flex-wrap: wrap; justify-content: flex-end; }
.delivery-panel { padding: 20px; margin-bottom: 22px; }
.delivery-panel .section-title { margin-bottom: 17px; }
.delivery-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.delivery-card { min-height: 92px; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 13px; display: flex; align-items: center; gap: 10px; text-align: left; transition: transform .16s, border-color .16s, box-shadow .16s; }
.delivery-card:hover { transform: translateY(-2px); border-color: #f4b181; box-shadow: var(--shadow); }
.delivery-card > div { flex: 1; min-width: 0; }
.delivery-card strong, .delivery-card small { display: block; }
.delivery-card strong { font-size: 11px; color: #344054; }
.delivery-card small { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 4px; }
.delivery-card > .arrow { width: 15px; color: #98a2b3; flex: 0 0 auto; }
.delivery-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); flex: 0 0 auto; }
.delivery-card.whatsapp .delivery-icon { background: #eaf8f2; color: #16845b; }
.delivery-footer { margin-top: 16px; padding: 14px 15px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.delivery-footer strong, .delivery-footer small { display: block; }
.delivery-footer strong { font-size: 11px; }
.delivery-footer small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.delivery-buttons { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 1250px) { .delivery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-footer { align-items: stretch; flex-direction: column; }
  .delivery-buttons { width: 100%; }
  .delivery-buttons .button { flex: 1; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .sidebar-overlay, .quote-main-actions, .notice, .delivery-panel, #addLineButton, .remove-line { display: none !important; }
  .app-shell { padding: 0; display: block; }
  .workspace { margin: 0; width: 100%; }
  .content { padding: 0; max-width: none; }
  .view { display: none !important; }
  #view-new-quote { display: block !important; }
  .page-heading { margin-bottom: 12px; }
  .page-heading h1 { font-size: 22px; }
  .panel { box-shadow: none; border-color: #cfd4dc; break-inside: avoid; }
  .form-panel, .quote-lines-panel { margin-bottom: 12px; }
  .field input, .field select, .field textarea, .quote-table input, .quote-table select { border: 0; background: transparent; padding-left: 0; padding-right: 0; appearance: none; }
  .table-wrap { overflow: visible; }
  .quote-table { min-width: 0; font-size: 9px; }
  th, td { padding: 5px 4px; }
  .quote-bottom { padding: 12px; grid-template-columns: 1fr 280px; }
}

/* BUILD003 — güvenli giriş, SQLite müşteri ve firma kayıtları */
.auth-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, rgba(239,127,45,.18), transparent 33%), linear-gradient(135deg, #0d243b 0%, #173858 100%); }
.auth-gate.hidden { display: none; }
.auth-card { width: min(440px, 100%); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(2,15,30,.36); padding: 28px; }
.auth-brand { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-brand-logo { display: block; width: 126px; height: 52px; object-fit: contain; object-position: left center; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 21px; letter-spacing: .03em; }
.auth-brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.auth-status { padding: 16px; border-radius: 12px; color: #344054; background: var(--surface-soft); text-align: center; font-size: 12px; line-height: 1.55; }
.auth-status.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.auth-form.hidden, .auth-status.hidden { display: none; }
.auth-heading { margin-bottom: 20px; }
.auth-heading > span { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; font-weight: 850; font-size: 9px; }
.auth-heading h1 { margin: 5px 0 7px; font-size: 24px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-form .field { margin-bottom: 13px; }
.auth-hint { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.auth-foot { display: flex; justify-content: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-foot span { background: #f2f4f7; color: #667085; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 700; }
.form-error { min-height: 18px; margin: 8px 0 10px; color: #b42318; font-size: 10px; line-height: 1.5; }
.loading-state, .error-state { min-height: 210px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.error-state { color: #b42318; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.span-3 { grid-column: span 3; }
.modal-wide { width: min(900px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; text-align: left; }
.modal-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding-right: 36px; }
.modal-heading .modal-icon { margin: 0; flex: 0 0 auto; }
.modal-heading h2 { margin: 0; }
.modal-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.data-table { min-width: 850px; }
.data-table th { padding: 12px 14px; }
.data-table td { padding: 12px 14px; vertical-align: middle; }
.data-table td strong, .data-table td small, .data-table td span { display: block; }
.data-table td small { color: var(--muted); margin-top: 4px; font-size: 9px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mini-button { border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 7px; min-height: 30px; padding: 5px 9px; font-size: 9px; font-weight: 750; }
.mini-button:hover { border-color: #98a2b3; background: #f9fafb; }
.mini-button.danger { color: #b42318; border-color: #fecdca; }
.mini-button.danger:hover { background: #fef3f2; }
.user-button { cursor: pointer; }
.user-button:hover { background: #f2f4f7; }

@media (max-width: 720px) {
  .auth-card { padding: 21px; }
  .form-grid.three { grid-template-columns: 1fr; }
  .span-3 { grid-column: auto; }
  .customer-form-grid .span-2 { grid-column: auto; }
  .modal-actions { position: sticky; bottom: -1px; background: #fff; padding-bottom: 2px; }
}

/* BUILD004 — ürün veritabanı, manuel ürün ve Servis müşteri tipi */
.product-table { min-width: 1180px; }
.product-table td:first-child { width: 68px; }
.product-table td:last-child { min-width: 285px; }
.product-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.product-thumb.empty { background: var(--surface-soft); color: #98a2b3; }
.product-thumb.empty svg { width: 22px; height: 22px; }
.product-actions { flex-wrap: wrap; min-width: 260px; }
.product-detail-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 22px; align-items: start; }
.product-image-editor { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-soft); display: flex; flex-direction: column; gap: 10px; }
.product-image-editor > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.product-image-preview { height: 190px; border: 1px dashed #c8d0dc; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #98a2b3; text-align: center; }
.product-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.product-image-preview span { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 8px; }
.product-image-preview span svg { width: 24px; height: 24px; }
.product-image-preview small { display: block; font-size: 10px; }
.file-button { position: relative; overflow: hidden; cursor: pointer; justify-content: center; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.product-text-fields { margin: 0; }
.price-history-list { display: grid; gap: 8px; text-align: left; max-height: 330px; overflow: auto; }
.price-history-list > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.price-history-list strong { color: var(--accent-dark); }
.price-history-list span { font-size: 10px; color: #475467; }
.price-history-list small { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 850px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-image-editor { max-width: 360px; }
}


/* BUILD005 — Salt okunur ürün senkronizasyonu */
.sync-mode-notice { margin-top: 14px; }
.source-message { min-height: 46px; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; color: #58677a; font-size: 13px; line-height: 1.45; }
.sync-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; margin-top: 12px; }
.sync-actions .button { min-height: 40px; padding-left: 12px; padding-right: 12px; }
.source-card.sync-busy { opacity: .78; }
.source-card.sync-busy .button { pointer-events: none; }
.status.warning { background: #fff3d6; color: #9a6100; }
.status.danger { background: #ffe7e7; color: #b42318; }
.sync-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-summary span { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #f1f4f8; color: #445469; font-size: 12px; white-space: nowrap; }
.sync-run-error { max-width: 360px; white-space: normal; color: #b42318; }
@media (max-width: 1000px) { .sync-actions { grid-template-columns: 1fr; } }


/* BUILD006 — görselli teklif satırları */
.hidden { display: none !important; }
.currency-config { grid-column: 1 / -1; }
.currency-mode-note { border: 1px solid #c7ddff; background: #f2f7ff; color: #344054; border-radius: 11px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.currency-mode-note strong { font-size: 11px; white-space: nowrap; }
.currency-mode-note span { color: var(--muted); font-size: 10px; }
.conversion-config { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 14px; border: 1px solid #f4c49f; background: #fff8f2; border-radius: 12px; }
.currency-help { grid-column: 1 / -1; margin: 0; color: #7a4a25; font-size: 9px; line-height: 1.5; }
.quote-table { min-width: 1160px; }
.quote-image-cell { width: 68px; text-align: center; }
.quote-product-thumb, .quote-product-placeholder { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: inline-grid; place-items: center; object-fit: contain; }
.quote-product-placeholder { color: #98a2b3; background: var(--surface-soft); }
.quote-product-placeholder svg { width: 21px; height: 21px; }
.totals-values { display: grid; justify-items: end; gap: 4px; }
.totals-values strong { display: block; white-space: nowrap; }
.totals-card .grand .totals-values strong { color: var(--accent-dark); font-size: 17px; }
.totals-warning { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff1f0; color: #b42318; font-size: 9px; line-height: 1.45; }
@media (max-width: 1180px) { .conversion-config { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .conversion-config { grid-template-columns: 1fr; } .currency-mode-note { align-items: flex-start; flex-direction: column; } }
@media print {
  .currency-mode-note, .currency-help { display: none !important; }
  .conversion-config { border: 0; padding: 0; background: transparent; grid-template-columns: repeat(4,1fr); }
  .quote-product-thumb, .quote-product-placeholder { width: 38px; height: 38px; }
}


/* BUILD007 — günlük kur ve otomatik TRY dönüşümü */
.exchange-rate-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exchange-rate-status { margin: 0; color: #356a50; font-size: 10px; line-height: 1.45; }
.exchange-rate-status.warning { color: #b54708; }
.totals-warning.info { background: #eef7ff; color: #175cd3; }
.quote-table tr.converted-to-try .net-price,
.quote-table tr.converted-to-try .line-total { position: relative; }
.quote-table tr.converted-to-try .net-price::after,
.quote-table tr.converted-to-try .line-total::after {
  content: "TRY";
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}
.exchange-rate-input[readonly],
#exchangeRateDate[readonly] { background: #f2f4f7; color: #475467; cursor: default; }
@media (max-width: 650px) {
  .exchange-rate-actions { align-items: stretch; flex-direction: column; }
  .exchange-rate-actions .button { width: 100%; }
}

/* BUILD009 — teklif içinde açık manuel satır girişi */
.quote-line-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quote-table { min-width: 1280px; }
.quote-table .unit-select { width: 82px; }
.quote-product-cell { min-width: 240px; }
.line-source-tag { display: inline-flex; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: #eef2f6; color: #475467; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
tr.manual-quote-line td { background: #fffaf6; }
tr.manual-quote-line .line-source-tag { background: #ffeadb; color: #9a4b0c; }
.manual-quote-grid { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 20px; align-items: start; }
.manual-line-image-editor { border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--surface-soft); display: flex; flex-direction: column; gap: 9px; }
.manual-line-image-editor > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.manual-line-image-preview { height: 170px; border: 1px dashed #c8d0dc; border-radius: 11px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #98a2b3; text-align: center; }
.manual-line-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.manual-line-image-preview span { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 7px; }
.manual-line-image-preview span svg { width: 22px; height: 22px; }
.manual-line-image-preview small { display: block; font-size: 9px; }
.manual-save-choice { border: 1px solid #f4c49f; background: #fff8f2; border-radius: 11px; padding: 12px 13px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.manual-save-choice input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); }
.manual-save-choice strong, .manual-save-choice small { display: block; }
.manual-save-choice strong { font-size: 11px; color: #7a3e12; }
.manual-save-choice small { margin-top: 3px; color: #8b684d; font-size: 9px; line-height: 1.45; }
@media (max-width: 900px) {
  .section-title.with-action { align-items: flex-start; flex-wrap: wrap; }
  .quote-line-actions { width: 100%; justify-content: flex-start; }
  .manual-quote-grid { grid-template-columns: 1fr; }
  .manual-line-image-editor { max-width: 340px; }
}
@media print {
  .quote-line-actions, .line-source-tag { display: none !important; }
  tr.manual-quote-line td { background: transparent; }
}


/* BUILD011-R1 — KEN Group gerçek logo entegrasyonu */
.corporate-identity-panel { padding: 18px 22px; display: grid; grid-template-columns: minmax(420px, 1.35fr) minmax(320px, .65fr); gap: 22px; align-items: center; }
.corporate-preview { min-height: 112px; border: 1px solid #e4e7ec; border-radius: 16px; background: #fff; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.corporate-primary-logo { min-width: 0; display: flex; align-items: center; gap: 16px; }
.corporate-primary-logo img { display: block; width: auto; max-width: 390px; height: 74px; object-fit: contain; object-position: left center; }
.corporate-primary-logo span { display: none; font-weight: 800; color: #12263f; }
.ken-group-logo { flex: 0 0 auto; width: 178px; border-left: 1px solid #e4e7ec; padding-left: 22px; display: flex; align-items: center; justify-content: flex-end; }
.ken-group-logo img { display: block; width: 150px; max-width: 100%; height: 68px; object-fit: contain; object-position: right center; }
.corporate-controls { display: grid; gap: 12px; }
.corporate-decision { border-radius: 12px; background: #f7f8fa; padding: 13px 15px; }
.corporate-decision strong { display: block; margin-bottom: 5px; color: #12263f; }
.corporate-decision p { margin: 0; color: #667085; font-size: 12px; line-height: 1.5; }
.corporate-preview[data-identity="pompafan"] { border-color: #b9d8f2; }
.corporate-preview[data-identity="pompaal"] { border-color: #ffd08a; }
.corporate-preview[data-identity="ken_industry"] { border-color: #e6bbb6; }
.corporate-preview[data-identity="ken_technology"] { border-color: #cbd1d8; }
@media (max-width: 980px) {
  .corporate-identity-panel { grid-template-columns: 1fr; }
  .corporate-primary-logo img { max-width: 65vw; height: 62px; }
}
@media (max-width: 620px) {
  .corporate-preview { align-items: flex-start; padding: 15px; }
  .corporate-primary-logo img { max-width: 58vw; height: 48px; }
  .ken-group-logo { width: 112px; padding-left: 14px; }
  .ken-group-logo img { width: 96px; height: 46px; }
}
@media print {
  .corporate-identity-panel { display: block !important; padding: 0 0 14px !important; border: 0 !important; box-shadow: none !important; }
  .corporate-controls { display: none !important; }
  .corporate-preview { min-height: 82px; border: 0; border-bottom: 2px solid #d0d5dd; border-radius: 0; padding: 0 0 12px; }
  .corporate-primary-logo img { max-width: 330px; height: 64px; }
  .ken-group-logo { width: 150px; }
  .ken-group-logo img { width: 132px; height: 60px; }
}


/* BUILD019-R3 — yoğun ana ekran ve firma bilgi yönetimi */
.compact-dashboard{margin-top:-6px}.dashboard-shell{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:16px;align-items:start}.dashboard-main{min-width:0}.dashboard-actionbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.dash-action{border:1px solid var(--border);background:#fff;border-radius:10px;padding:11px 15px;display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);box-shadow:0 4px 12px rgba(15,23,42,.04);cursor:pointer}.dash-action svg{width:18px;height:18px}.dash-action.primary{background:#f97316;color:#fff;border-color:#f97316}.dash-action.whatsapp svg{color:#16a34a}.panel-head.compact{padding-bottom:10px}.dashboard-source-panel{padding:16px;margin-bottom:14px}.dashboard-brand-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dashboard-brand{background:#fff;border:1px solid var(--border);border-radius:10px;min-height:96px;padding:12px;display:grid;grid-template-columns:1fr auto;grid-template-rows:50px auto;align-items:center;cursor:pointer}.dashboard-brand img{grid-column:1/-1;max-width:145px;max-height:46px;width:100%;height:100%;object-fit:contain;margin:auto}.dashboard-brand span{font-weight:700;text-align:left}.dashboard-brand svg{width:16px;height:16px}.dashboard-quote-panel{padding:16px}.dashboard-quote-table{border:1px solid var(--border);border-radius:10px;overflow:hidden}.dashboard-quote-head,.dashboard-quote-row{display:grid;grid-template-columns:38px minmax(260px,2.2fr) minmax(90px,.7fr) minmax(90px,.75fr) 60px 95px 80px 100px;gap:8px;align-items:center;padding:10px 12px}.dashboard-quote-head{background:#f8fafc;color:#64748b;font-size:12px;font-weight:800}.dashboard-quote-row{border-top:1px solid var(--border);font-size:13px}.dash-product{display:flex;align-items:center;gap:10px}.dash-product strong{display:flex;flex-direction:column}.dash-product small{font-weight:400;color:#64748b;margin-top:2px}.dash-thumb{width:38px;height:38px;border-radius:8px;background:#f1f5f9;display:grid;place-items:center}.dash-thumb svg{width:20px;height:20px}.dash-source{background:#eef2f7;border-radius:999px;padding:4px 8px;text-align:center;font-weight:700}.dashboard-add-line{width:100%;border:0;border-top:1px dashed var(--border);background:#fff;padding:11px;cursor:pointer;color:#64748b;font-weight:700}.dashboard-add-line svg{width:16px;height:16px}.dashboard-quote-bottom{display:grid;grid-template-columns:1.4fr .8fr;gap:14px;margin-top:12px}.dashboard-quote-bottom label{display:flex;flex-direction:column;gap:6px;font-weight:700}.dashboard-quote-bottom textarea{border:1px solid var(--border);border-radius:10px;padding:12px;resize:vertical;font:inherit}.dashboard-totals{border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:#f8fafc}.dashboard-totals div{display:flex;justify-content:space-between;padding:5px 0}.dashboard-totals .grand{border-top:1px solid var(--border);margin-top:5px;padding-top:10px}.dashboard-totals .grand strong{color:#ea580c;font-size:20px}.dashboard-side{display:flex;flex-direction:column;gap:12px}.side-status-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.04);position:relative}.side-card-title{display:flex;align-items:center;gap:9px}.side-card-title svg{width:20px;height:20px;color:#17385e}.side-status-card p{color:#64748b;font-size:13px;margin:8px 0}.side-status-card button{width:100%;margin-top:10px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:8px;font-weight:700;cursor:pointer}.rate-mini{display:flex;justify-content:space-between;padding:4px 0;font-size:13px}.side-big-number{font-size:30px;font-weight:800;text-align:right}.settings-defaults{margin-top:18px}.checkbox-field{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}.checkbox-field input{width:auto}.bulk-preview{margin-top:16px;max-height:280px;overflow:auto;border:1px solid var(--border);border-radius:10px;padding:12px;background:#f8fafc}.bulk-preview table{width:100%;border-collapse:collapse;font-size:12px}.bulk-preview th,.bulk-preview td{padding:7px;border-bottom:1px solid var(--border);text-align:left}
@media(max-width:1180px){.dashboard-shell{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-quote-table{overflow-x:auto}.dashboard-quote-head,.dashboard-quote-row{min-width:900px}}
@media(max-width:720px){.dashboard-side{grid-template-columns:1fr}.dashboard-brand-grid{grid-template-columns:1fr 1fr}.dashboard-actionbar{display:grid;grid-template-columns:repeat(2,1fr)}.dashboard-quote-bottom{grid-template-columns:1fr}}

@media(min-width:961px){.sidebar{width:224px}.workspace{margin-left:224px;width:calc(100% - 224px)}.brand{min-height:82px;padding:8px 14px}.sidebar-brand-logo{width:148px;height:52px}.main-nav{padding-top:10px}.nav-item{min-height:40px;padding:8px 10px}.content{padding:18px 20px}.topbar{height:62px;padding:0 20px}.global-search{width:min(300px,27vw)}}

/* BUILD019-R3 — daha hafif tipografi, dinamik ana ekran ve yerinde teklif ekleme */
:root {
  --text: #27364b;
  --muted: #718096;
  --border: #e6ebf2;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --accent: #ff7a1a;
  --accent-soft: #fff3e9;
  --navy: #12314f;
}
body { color: var(--text); background: #f3f6fa; font-weight: 400; }
body, button, input, select, textarea { font-family: Inter, "Segoe UI", Arial, sans-serif; }
h1,h2,h3,h4,strong,.page-title,.panel-title { font-weight: 600; }
.sidebar { background: linear-gradient(180deg,#143654 0%,#0e2942 100%); }
.nav-item { font-weight: 400; color: #dce8f3; }
.nav-item.active { font-weight: 500; }
.topbar, .panel, .side-status-card { border-color: var(--border); box-shadow: 0 8px 25px rgba(32,55,86,.045); }
.content { background: #f4f7fb; }
.dashboard-actionbar { gap: 10px; flex-wrap: wrap; }
.dash-action {
  border: 1px solid #e3e9f1;
  background: linear-gradient(180deg,#fff,#f9fbfd);
  color: #304258;
  font-weight: 500;
  min-height: 46px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.dash-action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,57,88,.10); border-color: #cfd9e7; }
.dash-action.primary { background: linear-gradient(135deg,#ff7a1a,#ff9a4d); color: #fff; border-color: transparent; }
.dash-action.whatsapp:hover { border-color: #8bd8aa; background: #f2fff7; }
.dashboard-brand {
  background: linear-gradient(180deg,#fff,#fbfcfe);
  border: 1px solid #e3e9f1;
  min-height: 88px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-brand:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(26,54,86,.09); border-color: #cfd9e7; }
.dashboard-brand img { max-height: 46px; max-width: 150px; object-fit: contain; }
.dashboard-brand span { font-weight: 500; color: #304258; }
.dashboard-quote-head { color: #6d7b8f; font-weight: 500; }
.dashboard-quote-row { color: #405168; font-weight: 400; }
.dashboard-quote-row strong { font-weight: 500; }
.dashboard-inline-add { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.dashboard-add-line { border:1px dashed #cbd6e4; background:#fbfcfe; color:#52657d; font-weight:500; border-radius:12px; transition:.18s ease; }
.dashboard-add-line:hover { background:#f3f7fb; border-color:#9fb2c9; transform:translateY(-1px); }
.dashboard-add-line.manual { border-color:#ffd0aa; color:#c96214; background:#fffaf5; }
.side-status-card { background:rgba(255,255,255,.96); }
.side-status-card strong { font-weight:600; }
.side-status-card > button { font-weight:500; transition:.18s ease; }
.side-status-card > button:hover { transform:translateY(-1px); background:#f4f7fb; }
.rate-card small { display:block; color:#8794a6; margin:2px 0 10px; font-size:12px; }
.rate-mini strong { font-variant-numeric:tabular-nums; font-weight:500; color:#263b52; }
.dashboard-picker-controls { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(88px,120px); gap:14px; margin-bottom:14px; align-items:end; }
.dashboard-product-list { display:grid; gap:8px; max-height:55vh; overflow:auto; padding-right:4px; }
.dashboard-picker-item { width:100%; display:grid; grid-template-columns:54px 1fr 26px; gap:12px; align-items:center; text-align:left; border:1px solid #e3e9f1; background:#fff; border-radius:12px; padding:10px; color:#34465d; transition:.17s ease; }
.dashboard-picker-item:hover { border-color:#b9c8da; background:#f8fbff; transform:translateY(-1px); box-shadow:0 8px 18px rgba(30,54,83,.07); }
.dashboard-picker-item img,.picker-placeholder { width:54px; height:54px; border-radius:10px; object-fit:contain; background:#f5f7fa; display:grid; place-items:center; }
.dashboard-picker-item strong { display:block; font-weight:500; line-height:1.3; }
.dashboard-picker-item small { display:block; color:#7c899a; margin-top:4px; }
.dashboard-picker-item > svg { width:20px; height:20px; stroke:#ff7a1a; }
.modal-card { border:1px solid #e4eaf1; box-shadow:0 30px 80px rgba(25,44,68,.18); }
.field > span { font-weight:500; color:#53657a; }
.button { font-weight:500; }
@media (max-width: 900px) { .dashboard-inline-add { grid-template-columns:1fr; } }


/* BUILD019-R3 — kaynak filtreli ürün seçimi, görsel proxy ve sade teklif satırları */
.dashboard-quote-head,
.dashboard-quote-row {
  gap: 12px;
}
.dashboard-quote-head {
  padding: 9px 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.dashboard-quote-row {
  padding: 12px 14px;
  min-height: 78px;
  background: #fff;
}
.dashboard-quote-row:nth-of-type(even) { background: #fbfcfe; }
.dashboard-quote-row:hover { background: #f6f9fd; }
.dash-index { color:#8794a6; font-size:12px; text-align:center; }
.dash-product { min-width:0; }
.dash-product strong { min-width:0; font-weight:500; line-height:1.35; color:#314158; }
.dash-product small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-thumb {
  width:56px;
  height:56px;
  flex:0 0 56px;
  position:relative;
  overflow:hidden;
  border:1px solid #e7ecf3;
  background:#fff;
}
.dash-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.dash-thumb > svg { position:absolute; width:22px; height:22px; color:#91a0b2; z-index:0; }
.dash-thumb img + svg { display:none; }
.dash-thumb.image-error > svg { display:block; }
.dash-meta { display:flex; flex-direction:column; gap:6px; align-items:flex-start; min-width:0; }
.dash-meta small { color:#7f8c9d; font-size:12px; }
.dash-source { font-weight:500; color:#40546b; padding:4px 9px; }
.dash-price,.dash-total { display:flex; flex-direction:column; gap:4px; color:#3f5066; }
.dash-price small,.dash-total small { color:#8995a5; font-size:11px; }
.dash-total strong { font-weight:600; color:#24364d; }
.dash-remove {
  width:30px; height:30px; border:0; border-radius:8px; background:#fff3f1; color:#d84b3e;
  cursor:pointer; font-size:20px; line-height:1;
}
.dash-remove:hover { background:#ffe4df; }
.dash-remove.ghost { opacity:.25; cursor:default; }

.dashboard-picker-summary {
  display:flex; justify-content:space-between; gap:12px; align-items:center;
  margin:2px 0 10px; color:#65758a; font-size:12px;
}
.dashboard-picker-summary strong { color:#33465e; font-weight:600; }
.dashboard-product-list { max-height:520px; overflow:auto; padding-right:4px; }
.dashboard-picker-item {
  grid-template-columns:64px minmax(0,1fr) 26px;
  padding:9px 11px;
}
.picker-image {
  width:64px; height:64px; border-radius:10px; border:1px solid #e6ebf2; background:#fff;
  display:grid; place-items:center; overflow:hidden; position:relative;
}
.picker-image img { width:100%; height:100%; object-fit:contain; display:block; z-index:1; }
.picker-placeholder { position:absolute; inset:0; display:grid; place-items:center; color:#94a1b2; }
.picker-placeholder svg { width:22px; height:22px; }
.picker-image:not(.image-error) .picker-placeholder { display:none; }
.picker-copy { min-width:0; }
.picker-copy strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#314158; }
.picker-copy small { color:#718096; }
.picker-copy em { display:block; margin-top:5px; color:#50657e; font-size:12px; font-style:normal; }
.dashboard-more { margin-top:10px; }

.dashboard-brand span { font-weight:500; color:#354861; }
.dashboard-brand:hover { border-color:#c5d4e5; background:#f8fbff; transform:translateY(-1px); }

@media(max-width:1180px){
  .dashboard-quote-head,.dashboard-quote-row{min-width:820px}
}


/* BUILD019-R3 — ana sayfada müşteri seçimi */
.dashboard-customer-strip {
  display:grid; grid-template-columns:42px minmax(0,1fr) auto 34px; gap:12px; align-items:center;
  padding:10px 12px; border:1px solid #e4eaf2; border-radius:14px; background:linear-gradient(135deg,#fbfdff,#f6f9fd);
  box-shadow:0 4px 14px rgba(39,58,82,.05);
}
.customer-strip-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:#edf4fb; color:#315f89; }
.customer-strip-icon svg { width:21px; height:21px; }
.customer-strip-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.customer-strip-copy small { color:#8592a2; font-size:11px; }
.customer-strip-copy strong { color:#2f425a; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.customer-strip-copy span { color:#738195; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.customer-clear { color:#c84d44; background:#fff3f1; }
.dashboard-customer-controls { display:grid; grid-template-columns:minmax(260px,1fr) 200px auto; gap:12px; align-items:end; }
.dashboard-customer-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:10px 0; font-size:12px; color:#7a8797; }
.dashboard-customer-summary strong { color:#3d5067; font-weight:600; }
.dashboard-customer-list { max-height:480px; overflow:auto; display:flex; flex-direction:column; gap:7px; padding-right:4px; }
.dashboard-customer-item { width:100%; display:grid; grid-template-columns:46px minmax(0,1fr) 110px 22px; gap:12px; align-items:center; border:1px solid #e6ebf2; border-radius:12px; padding:10px 12px; background:#fff; text-align:left; cursor:pointer; transition:.16s ease; }
.dashboard-customer-item:hover,.dashboard-customer-item.selected { border-color:#aac3dc; background:#f7fbff; transform:translateY(-1px); }
.customer-avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:#eaf2fa; color:#315f89; font-weight:600; }
.customer-item-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.customer-item-copy strong { color:#304259; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.customer-item-copy small,.customer-item-copy em { color:#7b899a; font-size:12px; font-style:normal; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.customer-item-meta { display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.customer-item-meta small { color:#7b899a; }
.customer-item-meta strong { color:#3c536d; font-weight:600; }
.dashboard-customer-item > svg { width:18px; height:18px; color:#9aa7b6; }
@media(max-width:900px){.dashboard-customer-controls{grid-template-columns:1fr}.dashboard-customer-strip{grid-template-columns:42px 1fr}.dashboard-customer-strip .button,.customer-clear{grid-column:2}.dashboard-customer-item{grid-template-columns:42px 1fr 22px}.customer-item-meta{display:none}}


/* BUILD019-R3 — otomatik kur önceliği, manuel kur fallback ve bölüm sırası */
.dashboard-source-panel { margin-top:0; }
.dashboard-customer-strip { margin-top:0; }
.rate-card .side-card-title { align-items:center; gap:8px; }
.rate-source-badge { margin-left:auto; padding:3px 7px; border-radius:999px; font-size:10px; font-weight:600; background:#edf2f7; color:#5d6d80; }
.rate-source-badge.source-tcmb { background:#e7f7ef; color:#18794e; }
.rate-source-badge.source-manual { background:#fff3df; color:#a65b00; }
.rate-source-badge.source-tcmb_stale { background:#fff5e6; color:#9a6200; }
.rate-source-badge.source-none { background:#fff0ef; color:#b54038; }
.rate-warning { margin:8px 0; padding:8px 9px; border-radius:9px; background:#fff4e5; color:#8c5a13; font-size:11px; line-height:1.35; }
.manual-rate-accordion { margin-top:9px; border-top:1px solid #e5eaf1; padding-top:8px; }
.manual-rate-accordion summary { cursor:pointer; list-style:none; display:flex; flex-direction:column; gap:2px; padding:5px 0; color:#34485f; }
.manual-rate-accordion summary::-webkit-details-marker { display:none; }
.manual-rate-accordion summary span { font-size:12px; font-weight:600; }
.manual-rate-accordion summary small { color:#8290a1; font-size:10px; }
.manual-rate-accordion summary::after { content:"⌄"; position:absolute; right:24px; color:#7b8999; }
.manual-rate-accordion[open] summary::after { content:"⌃"; }
.manual-rate-accordion form { display:grid; gap:8px; padding-top:8px; }
.manual-rate-accordion label { display:grid; gap:4px; }
.manual-rate-accordion label span { font-size:10px; color:#728095; }
.manual-rate-accordion input { width:100%; border:1px solid #dfe5ed; border-radius:8px; padding:8px 9px; font:inherit; color:#34475d; background:#fff; }
.manual-rate-note { color:#7e8b9a; font-size:10px; line-height:1.35; }


/* BUILD019-R3 — teklif satırı miktar +/- kontrolü */
.dash-qty {
  display:grid;
  grid-template-columns:30px 44px 30px;
  align-items:center;
  gap:4px;
  margin-top:2px;
}
.dash-qty button,
.dash-qty input {
  height:30px;
  border:1px solid #dce4ed;
  background:#fff;
  color:#41546b;
  text-align:center;
  border-radius:8px;
  font:inherit;
}
.dash-qty button {
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.dash-qty button:hover:not(:disabled) {
  border-color:#ff9b61;
  background:#fff7f1;
  color:#d96218;
}
.dash-qty input {
  width:44px;
  padding:0 3px;
  font-weight:600;
  appearance:textfield;
}
.dash-qty input::-webkit-inner-spin-button,
.dash-qty input::-webkit-outer-spin-button { appearance:none; margin:0; }
.dash-qty button:disabled,
.dash-qty input:disabled { opacity:.45; cursor:default; }


/* BUILD019-R3 — kompakt miktar kontrolü ve eksik kur uyarısı */
.dashboard-quote-row {
  min-height:64px;
  padding:8px 12px;
  gap:10px;
}
.dash-thumb {
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:9px;
}
.dash-product { gap:10px; }
.dash-product strong { font-size:13px; line-height:1.28; }
.dash-product small { font-size:11px; margin-top:2px; }
.dash-meta {
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:
    "source detail"
    "qty qty";
  align-items:center;
  gap:3px 7px;
}
.dash-meta .dash-source { grid-area:source; padding:3px 8px; font-size:12px; }
.dash-meta > small { grid-area:detail; font-size:11px; }
.dash-meta .dash-qty { grid-area:qty; }
.dash-qty {
  grid-template-columns:28px 38px 28px;
  gap:3px;
  width:max-content;
  margin-top:1px;
}
.dash-qty button,
.dash-qty input {
  height:27px;
  border-radius:7px;
  font-size:13px;
}
.dash-qty button { font-size:17px; }
.dash-qty input { width:38px; font-size:12px; }
.dash-price,.dash-total { gap:2px; font-size:13px; }
.dash-price small,.dash-total small { font-size:10px; }
.dash-remove { width:28px; height:28px; font-size:18px; }
.dashboard-total-warning {
  display:flex !important;
  align-items:flex-start;
  gap:7px;
  margin-bottom:8px;
  padding:9px 10px;
  border:1px solid #ffd49c;
  border-radius:10px;
  background:#fff8ed;
  color:#9a5b08;
  font-size:12px;
  line-height:1.35;
}
.dashboard-total-warning svg { width:17px; height:17px; flex:0 0 17px; margin-top:1px; }
.dashboard-total-warning.hidden { display:none !important; }

/* BUILD019-R3 — BUILD019-R3 yerleşimi korunarak teklif sütunları genişletildi */
.dashboard-quote-table { overflow-x: auto; }
.dashboard-quote-head,
.dashboard-quote-row {
  display: grid;
  gap: 7px;
  align-items: center;
}
.dashboard-quote-head {
  padding: 9px 10px;
  color: #6d7b8f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.dashboard-quote-row {
  min-height: 70px;
  padding: 8px 10px;
  color: #405168;
  font-size: 12px;
}
.dashboard-quote-row.is-empty { min-height: 62px; }
.dash-product { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-product strong {
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.28;
  font-weight: 500;
  color: #304258;
}
.dash-product small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  color: #76869a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}
.dash-qty {
  display: grid;
  grid-template-columns: 26px 34px 26px;
  gap: 3px;
  width: max-content;
  justify-self: center;
}
.dash-qty button,
.dash-qty input {
  width: 100%;
  height: 27px;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  background: #fff;
  color: #41546b;
  text-align: center;
  font: inherit;
}
.dash-qty button { padding: 0; font-size: 16px; cursor: pointer; }
.dash-qty input { padding: 0 2px; font-size: 11px; font-weight: 600; appearance: textfield; }
.dash-qty input::-webkit-inner-spin-button,
.dash-qty input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.dash-unit,
.dash-discount,
.dash-vat {
  color: #52657c;
  text-align: center;
  font-size: 11px;
}
.dash-money {
  color: #33465e;
  text-align: right;
  font-size: 11px;
  white-space: nowrap;
}
.dash-money.strong { font-weight: 600; color: #263b54; }
.dash-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
}

/* BUILD019-R3 — Başlık/satır hizası düzeltildi, yatay kaydırma kaldırıldı */
.dashboard-quote-table {
  overflow-x: auto !important;
}
.dashboard-quote-head,
.dashboard-quote-row {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  gap: 8px;
  align-items: center;
}
.dashboard-quote-head {
  padding: 10px 12px !important;
  font-size: 11px !important;
}
.dashboard-quote-row {
  padding: 10px 12px !important;
  min-height: 74px !important;
  font-size: 12px !important;
}
.dashboard-quote-row.is-empty {
  min-height: 64px !important;
}
.dash-index {
  text-align: center;
}
.dash-product {
  min-width: 0;
  gap: 8px;
}
.dash-product strong {
  min-width: 0;
  font-size: 11px !important;
  line-height: 1.3 !important;
}
.dash-product small {
  font-size: 10px !important;
}
.dash-thumb {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
}
.dash-qty {
  grid-template-columns: 24px 34px 24px !important;
  gap: 3px !important;
  justify-self: center;
}
.dash-qty button,
.dash-qty input {
  height: 26px !important;
  border-radius: 7px !important;
}
.dash-qty button {
  font-size: 15px !important;
}
.dash-qty input {
  font-size: 11px !important;
}
.dash-unit,
.dash-discount,
.dash-vat {
  font-size: 11px !important;
  white-space: nowrap;
  text-align: center;
}
.dash-money {
  font-size: 11px !important;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}
.dash-money.strong {
  font-weight: 700 !important;
}
.dash-remove {
  width: 26px !important;
  height: 26px !important;
  font-size: 17px !important;
  justify-self: end;
}
.dashboard-inline-add {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dashboard-add-line {
  min-height: 54px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}
@media (max-width: 1500px) {
  .dash-thumb {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
}

/* BUILD019-R3 — Tam sütun hizası, kaydırmasız tablo ve düzenlenebilir iskonto */
.dashboard-quote-table {
  overflow-x: auto !important;
  width: 100%;
}
.dashboard-quote-head,
.dashboard-quote-row {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  column-gap: 7px !important;
  align-items: center !important;
}
.dashboard-quote-head {
  padding: 10px 10px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}
.dashboard-quote-head > span {
  min-width: 0;
  text-align: center;
}
.dashboard-quote-head > span:nth-child(2) {
  text-align: left;
}
.dashboard-quote-row {
  padding: 9px 10px !important;
  min-height: 72px !important;
}
.dashboard-quote-row > * {
  min-width: 0;
  box-sizing: border-box;
}
.dash-index {
  text-align: center !important;
}
.dash-product {
  min-width: 0 !important;
  gap: 7px !important;
  overflow: hidden;
}
.dash-product strong {
  min-width: 0 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  overflow: hidden;
}
.dash-product small {
  font-size: 9.5px !important;
}
.dash-thumb {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}
.dash-qty {
  grid-template-columns: 23px 32px 23px !important;
  gap: 2px !important;
  justify-self: center !important;
}
.dash-qty button,
.dash-qty input {
  height: 25px !important;
  min-width: 0 !important;
}
.dash-qty button {
  font-size: 14px !important;
}
.dash-qty input {
  width: 32px !important;
  font-size: 10px !important;
}
.dash-unit,
.dash-vat {
  text-align: center !important;
  font-size: 10px !important;
  white-space: nowrap;
}
.dash-money {
  text-align: right !important;
  justify-self: stretch !important;
  font-size: 10px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-discount {
  display: flex;
  justify-content: center;
}
.dash-discount input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  background: #fff;
  color: #3d5067;
  text-align: center;
  font: inherit;
  font-size: 10px;
}
.dash-discount input:focus {
  outline: 2px solid rgba(255,122,26,.18);
  border-color: #f5a264;
}
.dash-discount input::placeholder {
  color: #a0adbc;
}
.dash-remove {
  width: 25px !important;
  height: 25px !important;
  font-size: 16px !important;
}
.dashboard-inline-add {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 1500px) {
  .dash-product strong { font-size: 10.5px !important; }
  .dash-thumb { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
}

/* BUILD019-R3 — ana sayfa üst sabit alan düzeltmesi */
@media (min-width: 1366px) {
  .dashboard-sticky-cluster {
    position: sticky;
    top: 96px;
    z-index: 50;
    margin: -6px 0 14px;
    padding: 6px 0 2px;
    background: rgba(244, 247, 251, .98);
    box-shadow: 0 12px 18px -20px rgba(31, 57, 88, .55);
    isolation: isolate;
  }
  .dashboard-sticky-cluster .dashboard-actionbar {
    display: grid;
    grid-template-columns: 1.05fr 1.12fr .95fr 1fr .62fr .72fr .92fr 1.12fr 1.18fr;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
  }
  .dashboard-sticky-cluster .dash-action {
    min-width: 0;
    min-height: 40px;
    padding: 8px 7px;
    gap: 5px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .dashboard-sticky-cluster .dash-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .dashboard-sticky-cluster .dashboard-source-panel {
    margin: 0;
  }
}

@media (min-width: 1366px) and (max-width: 1499px) {
  .dashboard-sticky-cluster .dashboard-actionbar {
    gap: 4px;
  }
  .dashboard-sticky-cluster .dash-action {
    min-height: 38px;
    padding: 7px 5px;
    gap: 4px;
    font-size: 10.5px;
  }
  .dashboard-sticky-cluster .dash-action svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

@media (max-width: 1365px) {
  .dashboard-sticky-cluster {
    position: relative;
    top: auto;
    z-index: auto;
  }
}


.dashboard-quote-head > span:nth-child(3),
.dashboard-quote-head > span:nth-child(4),
.dashboard-quote-head > span:nth-child(6),
.dashboard-quote-head > span:nth-child(8),
.dashboard-quote-head > span:nth-child(10) {
  justify-self: stretch;
  text-align: center !important;
}

.dashboard-quote-head > span:nth-child(5),
.dashboard-quote-head > span:nth-child(7),
.dashboard-quote-head > span:nth-child(9) {
  justify-self: stretch;
  text-align: right !important;
}

.dashboard-quote-row .dash-qty,
.dashboard-quote-row .dash-unit,
.dashboard-quote-row .dash-discount,
.dashboard-quote-row .dash-vat,
.dashboard-quote-row .dash-remove {
  justify-self: center !important;
}

.dashboard-quote-row .dash-money {
  justify-self: stretch !important;
  text-align: right !important;
}

/* BUILD019-R3 — Teklif Arşivi liste ve salt okunur detay görünümü */
.quote-archive-panel { padding: 0; overflow: hidden; }
.quote-archive-filters { display: grid; grid-template-columns: minmax(220px,1.6fr) minmax(130px,.7fr) minmax(170px,1fr) 138px 138px auto; gap: 10px; align-items: end; padding: 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.quote-archive-filters > label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #53657a; font-size: 10px; font-weight: 700; }
.quote-archive-filters input,
.quote-archive-filters select { width: 100%; min-width: 0; height: 38px; border: 1px solid #d8e0e9; border-radius: 9px; background: #fff; padding: 7px 9px; color: #304258; font: inherit; font-size: 11px; outline: none; }
.quote-archive-filters input:focus,
.quote-archive-filters select:focus { border-color: #f5a264; box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.quote-archive-search-control { position: relative; display: block; }
.quote-archive-search-control svg { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: #7b8999; pointer-events: none; }
.quote-archive-search-control input { padding-left: 34px; }
.quote-archive-filter-actions { display: flex; gap: 7px; align-items: center; }
.quote-archive-filter-actions .button { min-height: 38px; padding: 8px 11px; }
.quote-archive-content { min-height: 260px; overflow-x: auto; }
.quote-archive-state { min-height: 260px; display: grid; place-items: center; padding: 30px; color: #66778a; font-size: 12px; text-align: center; }
.quote-archive-state.is-error { color: #b42318; }
.quote-archive-empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; }
.quote-archive-empty span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #f2f5f8; color: #6d7f92; }
.quote-archive-empty span svg { width: 24px; height: 24px; }
.quote-archive-empty strong { color: #304258; font-size: 14px; }
.quote-archive-empty p { margin: 0; color: #718195; font-size: 11px; }
.quote-archive-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.quote-archive-table th { padding: 11px 12px; font-size: 9px; }
.quote-archive-table td { padding: 12px; vertical-align: middle; }
.quote-archive-table tbody tr { cursor: pointer; transition: background .15s ease; }
.quote-archive-table tbody tr:hover { background: #fff8f2; }
.quote-archive-table strong { color: #304258; font-size: 11px; }
.quote-archive-table small { display: block; margin-top: 3px; color: #7b8999; font-size: 9px; }
.quote-archive-money { text-align: right; white-space: nowrap; font-weight: 700; }
.quote-archive-center { text-align: center; }
.quote-archive-status { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; padding: 5px 8px; border-radius: 999px; background: #eef2f6; color: #475467; font-size: 9px; font-weight: 800; white-space: nowrap; }
.quote-archive-status--draft { background: #f2f4f7; color: #475467; }
.quote-archive-status--saved { background: #eef4ff; color: #3538cd; }
.quote-archive-status--sent { background: #eff8ff; color: #175cd3; }
.quote-archive-status--approved { background: #ecfdf3; color: #067647; }
.quote-archive-status--rejected { background: #fef3f2; color: #b42318; }
.quote-archive-status--expired { background: #fff6ed; color: #b54708; }
.quote-archive-open { min-width: 54px; }
.quote-archive-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); background: #fbfcfe; }
.quote-archive-pagination[hidden] { display: none !important; }
.quote-archive-pagination span { color: #617286; font-size: 10px; }
.quote-archive-detail-modal { padding: 15px; }
.quote-archive-detail-card { width: min(1180px,calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto; padding: 0; text-align: left; }
.quote-archive-detail-card > .modal-close { z-index: 2; }
.quote-archive-detail-header { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.quote-archive-detail-header h2 { margin: 0 0 8px; padding-right: 40px; font-size: 20px; }
.quote-archive-detail-header p { margin: 0; }
.quote-archive-detail-heading-row { display: flex; align-items: center; gap: 10px; }
.quote-archive-detail-body { display: grid; gap: 16px; padding: 18px 24px 24px; }
.quote-archive-detail-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.quote-archive-detail-meta > div,
.quote-archive-snapshot-card { min-width: 0; padding: 11px 12px; border: 1px solid #e0e6ed; border-radius: 10px; background: #fff; }
.quote-archive-detail-meta span,
.quote-archive-snapshot-card > span { display: block; margin-bottom: 5px; color: #78889a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.quote-archive-detail-meta strong,
.quote-archive-snapshot-card strong { color: #304258; font-size: 11px; overflow-wrap: anywhere; }
.quote-archive-snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-archive-snapshot-card p { margin: 4px 0 0; color: #65768a; font-size: 10px; line-height: 1.55; }
.quote-archive-detail-lines { overflow-x: auto; border: 1px solid #e0e6ed; border-radius: 10px; }
.quote-archive-detail-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.quote-archive-detail-table th,
.quote-archive-detail-table td { padding: 10px; }
.quote-archive-detail-table td { vertical-align: middle; }
.quote-archive-detail-table .quote-archive-product { min-width: 210px; }
.quote-archive-detail-table .quote-archive-product strong,
.quote-archive-detail-table .quote-archive-product small { display: block; }
.quote-archive-detail-table .quote-archive-product small { margin-top: 3px; color: #7b8999; font-size: 9px; }
.quote-archive-detail-table .quote-archive-number { text-align: right; white-space: nowrap; }
.quote-archive-detail-totals { margin-left: auto; width: min(380px,100%); border: 1px solid #e0e6ed; border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.quote-archive-detail-totals div { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; color: #617286; font-size: 11px; }
.quote-archive-detail-totals .quote-archive-grand { margin-top: 5px; padding-top: 10px; border-top: 1px solid #dce3eb; color: #304258; font-size: 13px; }
.quote-archive-detail-totals .quote-archive-grand strong { color: #e7600a; font-size: 17px; }
.quote-archive-detail-users { display: flex; justify-content: flex-end; gap: 18px; color: #718195; font-size: 9px; }
@media (max-width: 1280px) { .quote-archive-filters { grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1fr; } .quote-archive-filter-actions { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 760px) { .quote-archive-filters { grid-template-columns: 1fr 1fr; } .quote-archive-search,.quote-archive-filters > label:nth-child(3),.quote-archive-filter-actions { grid-column: 1 / -1; } .quote-archive-filter-actions .button { flex: 1; } .quote-archive-detail-meta,.quote-archive-snapshot-grid { grid-template-columns: 1fr; } .quote-archive-detail-body { padding: 14px; } .quote-archive-detail-header { padding: 18px 14px 14px; } .quote-archive-detail-users { flex-direction: column; gap: 5px; } }

.quote-archive-tabs { display: flex; gap: 6px; padding: 12px 16px 0; background: #fbfcfe; }
.quote-archive-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 1px solid #dce3eb; border-bottom-color: #cfd8e2; border-radius: 9px 9px 0 0; background: #f4f6f9; color: #617286; font-size: 11px; font-weight: 700; cursor: pointer; }
.quote-archive-tab strong { min-width: 21px; padding: 2px 6px; border-radius: 999px; background: #e4e9ef; color: #475467; font-size: 9px; text-align: center; }
.quote-archive-tab.active { border-color: #f5a264; border-bottom-color: #fff; background: #fff; color: #c65309; }
.quote-archive-tab.active strong { background: #fff0e5; color: #b54708; }
.quote-archive-row--deleted td { background: #fffafa; }
.quote-archive-row--deleted:hover td { background: #fff4f2; }
.quote-archive-actions { position: relative; display: inline-block; }
.quote-archive-actions > summary { list-style: none; min-width: 72px; cursor: pointer; user-select: none; }
.quote-archive-actions > summary::-webkit-details-marker { display: none; }
.quote-archive-actions-menu { position: absolute; right: 0; top: calc(100% + 5px); z-index: 20; display: grid; min-width: 170px; padding: 5px; border: 1px solid #dce3eb; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgba(25,44,68,.16); }
.quote-archive-actions-menu button { border: 0; border-radius: 6px; background: transparent; padding: 8px 9px; color: #405168; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.quote-archive-actions-menu button:hover { background: #f3f6f9; }
.quote-archive-actions-menu button.quote-archive-danger { color: #b42318; }
.quote-archive-actions-menu button.quote-archive-restore { color: #067647; }
.quote-archive-action-modal { z-index: 230; }
.quote-archive-action-card { width: min(500px,100%); text-align: left; }
.quote-archive-action-card h2 { padding-right: 30px; }
.quote-archive-action-card > p { margin-bottom: 15px; }
.quote-archive-action-card .field { margin-top: 11px; }
.quote-archive-danger-note { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 10px; padding: 11px 12px; border: 1px solid #fecdca; border-radius: 9px; background: #fef3f2; color: #b42318; }
.quote-archive-danger-note strong { font-size: 11px; }
.quote-archive-danger-note span { font-size: 10px; }
.quote-archive-confirm-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: #53657a; font-size: 10px; line-height: 1.45; }
.quote-archive-confirm-check input { margin-top: 1px; }
.quote-archive-deletion { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid #fecdca; border-radius: 10px; background: #fff8f7; }
.quote-archive-deletion div span { display: block; margin-bottom: 4px; color: #b54708; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.quote-archive-deletion div strong { color: #7a271a; font-size: 10px; overflow-wrap: anywhere; }
.quote-archive-history { border: 1px solid #e0e6ed; border-radius: 10px; overflow: hidden; }
.quote-archive-history > strong { display: block; padding: 11px 13px; border-bottom: 1px solid #e0e6ed; background: #f8fafc; color: #405168; font-size: 11px; }
.quote-archive-history-list { display: grid; }
.quote-archive-history-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #edf1f5; font-size: 10px; }
.quote-archive-history-item:last-child { border-bottom: 0; }
.quote-archive-history-item span { color: #66778a; }
.quote-archive-history-item strong { color: #304258; }
.quote-archive-history-empty { padding: 13px; color: #7b8999; font-size: 10px; }
@media (max-width: 760px) { .quote-archive-tabs { display: grid; grid-template-columns: 1fr 1fr; } .quote-archive-tab { justify-content: center; } .quote-archive-deletion { grid-template-columns: 1fr; } .quote-archive-history-item { grid-template-columns: 1fr; gap: 4px; } }

/* Kayıtlı teklif düzenleme ve snapshot görselleri */
.quote-edit-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid #9ec5fe; border-radius: 10px; background: #eef6ff; color: #17375e; }
.quote-edit-banner[hidden] { display: none !important; }
.quote-edit-banner strong { white-space: nowrap; }
.quote-edit-banner span { flex: 1; }
.quote-edit-banner button { border: 0; background: transparent; color: #1559a5; font-weight: 700; cursor: pointer; }
.quote-archive-product-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.quote-archive-product-image { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce3ea; border-radius: 8px; background: #f5f7fa; }
.quote-archive-product-image img { width: 100%; height: 100%; object-fit: contain; }
.quote-archive-product-image svg { width: 20px; height: 20px; color: #91a0af; }
.quote-archive-product-copy { display: grid; gap: 3px; min-width: 0; }
.quote-archive-product-copy strong, .quote-archive-product-copy small { overflow-wrap: anywhere; }
@media (max-width: 760px) { .quote-edit-banner { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* Excel müşteri içe aktarma önizlemesi */
.modal-card.modal-import{width:min(96vw,1500px);max-height:92vh;overflow:auto}.customer-import-picker{display:grid;grid-template-columns:minmax(320px,1fr) auto;gap:12px;align-items:end}.customer-import-file-info{grid-column:1/-1;padding:9px 12px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:12px}.customer-import-summary{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;margin:14px 0}.customer-import-summary>div{padding:10px;border:1px solid var(--border);border-radius:10px;background:#f8fafc;display:flex;flex-direction:column;gap:3px}.customer-import-summary span{font-size:11px;color:#64748b}.customer-import-summary strong{font-size:18px;color:#243b53}.customer-import-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.customer-import-filters button{border:1px solid var(--border);background:#fff;border-radius:999px;padding:7px 12px;cursor:pointer}.customer-import-filters button.active{background:#17385e;color:#fff;border-color:#17385e}.customer-import-preview{max-height:48vh;padding:0;overflow:auto}.customer-import-preview table{min-width:1400px}.customer-import-preview th{position:sticky;top:0;background:#f1f5f9;z-index:1;white-space:nowrap}.customer-import-preview td{vertical-align:top}.customer-import-preview select{min-width:150px;border:1px solid var(--border);border-radius:7px;padding:6px;background:#fff}.customer-import-row.status-invalid{background:#fff1f2}.customer-import-row.status-duplicate{background:#fff7ed}.customer-import-row.status-warning{background:#fffbeb}.customer-import-row.status-update{background:#eff6ff}.customer-import-status{font-weight:700;white-space:nowrap}@media(max-width:900px){.customer-import-picker{grid-template-columns:1fr}.customer-import-summary{grid-template-columns:repeat(2,minmax(120px,1fr))}}

/* Müşteri paneli faaliyet, filtre ve güvenli toplu işlem katmanı */
.customer-filter-bar{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(4,minmax(150px,1fr));gap:10px}.customer-bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid #bfd5eb;border-radius:11px;background:#f0f7ff}.customer-bulk-toolbar [hidden],#customerPermanentConfirmField[hidden],.customer-bulk-toolbar[hidden],.customer-pagination[hidden]{display:none!important}.customer-bulk-toolbar strong{margin-right:auto;color:#17385e}.customer-page-selection{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;color:#56697d;font-size:12px}.customer-page-selection label{display:flex;align-items:center;gap:7px}.customer-check-column{width:42px;text-align:center!important}.customer-check-column input{width:16px;height:16px}.customer-activity-badge{display:inline-flex;align-items:center;max-width:170px;padding:5px 9px;border-radius:999px;background:#e7f3ff;color:#1559a5;font-size:11px;font-weight:800;white-space:nowrap}.activity-servis{background:#e8f7ef;color:#137249}.activity-bayi{background:#fff4dc;color:#9a6000}.customer-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding-top:14px}.customer-bulk-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0 16px}.customer-bulk-summary>div{display:grid;gap:3px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.customer-bulk-summary span{font-size:11px;color:#66788a}.customer-bulk-summary strong{font-size:20px;color:#203a57}.customer-table{min-width:1280px}.customer-table td:nth-child(3){min-width:220px}.customer-table td small{display:block;color:#7a8998}.customer-panel .table-wrap{overflow:auto}@media(max-width:1100px){.customer-filter-bar{grid-template-columns:1fr 1fr}.customer-table th:nth-child(2),.customer-table td:nth-child(2),.customer-table th:nth-child(5),.customer-table td:nth-child(5),.customer-table th:nth-child(6),.customer-table td:nth-child(6),.customer-table th:nth-child(9),.customer-table td:nth-child(9){display:none}.customer-table{min-width:820px}}@media(max-width:700px){.customer-filter-bar{grid-template-columns:1fr}.customer-bulk-summary{grid-template-columns:1fr 1fr}.customer-table{min-width:650px}.customer-table th:nth-child(8),.customer-table td:nth-child(8){display:none}}

/* BUILD020-R1 — ana içerik içinde Yeni Teklif çalışma alanı */
#view-dashboard.quote-workspace-active {
  max-width: 100%;
  overflow-x: clip;
}

#view-dashboard.quote-workspace-active .dashboard-shell {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

#view-dashboard.quote-workspace-active .dashboard-main,
#view-dashboard.quote-workspace-active .dashboard-quote-panel {
  min-width: 0;
  max-width: 100%;
}

#view-dashboard.quote-workspace-active .dashboard-source-panel,
#view-dashboard.quote-workspace-active .dashboard-side {
  display: none !important;
}

#view-dashboard.quote-workspace-active .dashboard-sticky-cluster {
  margin-bottom: 14px;
  padding-bottom: 4px;
}

#view-dashboard.quote-workspace-active .dashboard-quote-panel .panel-head .text-button {
  display: none;
}

#view-dashboard.quote-workspace-active #dashboardNewQuoteButton {
  display: none !important;
}

#view-dashboard:not(.quote-workspace-active) #dashboardQuoteCancelButton,
#dashboardQuoteCancelButton[hidden] {
  display: none !important;
}

#view-dashboard.quote-workspace-active #dashboardQuoteCancelButton {
  display: flex;
  border-color: #d0d8e2;
  color: #53657a;
}

@media (min-width: 1366px) {
  #view-dashboard.quote-workspace-active .dashboard-sticky-cluster .dashboard-actionbar {
    grid-template-columns: max-content max-content max-content minmax(124px, 1fr) minmax(154px, 1.35fr) max-content max-content max-content max-content;
    gap: 6px;
    flex-wrap: nowrap;
  }

  #view-dashboard.quote-workspace-active .dashboard-sticky-cluster .dash-action {
    width: auto;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 7px 9px;
    gap: 5px;
    white-space: nowrap;
  }

  #view-dashboard.quote-workspace-active #dashboardCustomerButton,
  #view-dashboard.quote-workspace-active #dashboardProductButton,
  #view-dashboard.quote-workspace-active #dashboardManualButton,
  #view-dashboard.quote-workspace-active #dashboardWhatsappButton,
  #view-dashboard.quote-workspace-active #dashboardQuoteCancelButton {
    padding-inline: 8px;
  }

  #view-dashboard.quote-workspace-active #dashboardPdfButton,
  #view-dashboard.quote-workspace-active #dashboardPrintButton {
    padding-inline: 7px;
  }

  #view-dashboard.quote-workspace-active #dashboardSaveDraftButton,
  #view-dashboard.quote-workspace-active #dashboardSaveQuoteButton {
    width: 100%;
    padding-inline: 12px;
  }

  #view-dashboard.quote-workspace-active #dashboardSaveDraftButton span,
  #view-dashboard.quote-workspace-active #dashboardSaveQuoteButton span {
    overflow: visible;
    white-space: nowrap;
  }
}

@media (max-width: 1365px) {
  #view-dashboard.quote-workspace-active .dashboard-actionbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #view-dashboard.quote-workspace-active .dashboard-actionbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-quote-row {
  min-height: 78px !important;
}

.dashboard-quote-head > span:first-child {
  text-align: left !important;
}

.dashboard-quote-head > span:nth-child(2),
.dashboard-quote-head > span:nth-child(3),
.dashboard-quote-head > span:nth-child(5),
.dashboard-quote-head > span:nth-child(8),
.dashboard-quote-head > span:nth-child(10) {
  justify-self: stretch;
  text-align: center !important;
}

.dashboard-quote-head > span:nth-child(4),
.dashboard-quote-head > span:nth-child(6),
.dashboard-quote-head > span:nth-child(7),
.dashboard-quote-head > span:nth-child(9) {
  justify-self: stretch;
  text-align: right !important;
}

.dashboard-quote-head small {
  display: block;
  margin-top: 2px;
  color: #8593a3;
  font-size: 8.5px;
  font-weight: 700;
}

.dashboard-quote-row .dash-product {
  align-items: center;
  gap: 9px !important;
}

.dashboard-quote-row .dash-thumb {
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  overflow: hidden;
}

.dashboard-quote-row .dash-product strong {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-quote-row .dash-product-name {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-quote-row .dash-product small {
  overflow: hidden;
  color: #77879a;
  font-size: 9px !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-quote-row .dash-currency,
.dashboard-quote-row .dash-vat {
  justify-self: center !important;
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-quote-row .dash-money {
  overflow: visible;
  text-overflow: clip;
}

.dashboard-inline-add {
  display: none !important;
}


/* Excel gÃ¼venli eÅŸleÅŸme toplu gÃ¼ncelleme ve ikinci onay */
.customer-import-filters .customer-import-safe-action{border-color:#79b2e8;background:#edf6ff;color:#1559a5;font-weight:800}.customer-import-filters .customer-import-safe-action:hover{background:#dceeff}.customer-import-row.status-conflict{background:#fff1f2}.customer-import-confirm-modal{z-index:260}.customer-import-confirm-modal .modal-card{width:min(620px,calc(100vw - 30px));text-align:left}.customer-import-confirm-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.customer-import-confirm-summary>div{padding:12px;border:1px solid #dce5ee;border-radius:10px;background:#f8fafc}.customer-import-confirm-summary span{display:block;margin-bottom:5px;color:#66788a;font-size:11px}.customer-import-confirm-summary strong{color:#203a57;font-size:20px}.customer-import-confirm-summary .customer-import-confirm-fields{grid-column:1/-1}.customer-import-confirm-fields ul{display:grid;gap:7px;margin:8px 0 0;padding:0;list-style:none}.customer-import-confirm-fields li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:7px;border-top:1px solid #e5eaf0}.customer-import-confirm-fields li strong{font-size:12px}.customer-import-confirm-fields li em{color:#52677d;font-size:11px;font-style:normal}.customer-import-confirm-note{padding:10px 12px;border-radius:9px;background:#fff8e8;color:#7a5615;font-size:11px;line-height:1.5}@media(max-width:600px){.customer-import-confirm-summary{grid-template-columns:1fr}.customer-import-confirm-summary .customer-import-confirm-fields{grid-column:auto}}

/* BUILD020-R1 — düzenlenebilir KDV ve laptop araç çubuğu düzeltmesi */
.dashboard-quote-row .dash-vat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.dashboard-quote-row .dash-vat input {
  width: 100%;
  min-width: 0;
  max-width: 42px;
  height: 28px;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  background: #fff;
  padding: 4px 2px;
  color: #405168;
  font: inherit;
  font-weight: 750;
  text-align: center;
}

.dashboard-quote-row .dash-vat input:focus {
  border-color: #f5a264;
  box-shadow: 0 0 0 2px rgba(249,115,22,.12);
  outline: none;
}

.dashboard-quote-row .dash-vat input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217,45,32,.1);
}

.dashboard-quote-row .dash-vat small {
  flex: 0 0 auto;
  color: #65768a;
  font-size: 9px;
}

#view-dashboard.quote-workspace-active .dashboard-actionbar {
  gap: clamp(4px, .5vw, 7px);
}

#view-dashboard.quote-workspace-active .dashboard-actionbar .dash-action {
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  justify-content: center;
  white-space: nowrap;
}

#view-dashboard.quote-workspace-active .dashboard-actionbar .dash-action svg {
  flex: 0 0 auto;
}

@media (min-width: 1366px) {
  #view-dashboard:not(.quote-workspace-active) .dashboard-sticky-cluster .dashboard-actionbar {
    grid-template-columns:
      max-content max-content max-content max-content
      minmax(120px, 1fr) minmax(150px, 1.35fr)
      max-content max-content max-content;
    gap: clamp(4px, .45vw, 7px);
  }
  #view-dashboard:not(.quote-workspace-active) .dashboard-sticky-cluster .dash-action {
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding-inline: clamp(6px, .55vw, 10px);
    white-space: nowrap;
  }
  #view-dashboard.quote-workspace-active .dashboard-sticky-cluster .dashboard-actionbar {
    grid-template-columns:
      max-content max-content max-content
      minmax(120px, 1fr) minmax(150px, 1.35fr)
      max-content max-content max-content max-content;
    gap: clamp(4px, .45vw, 7px);
  }
}

@media (min-width: 1100px) and (max-width: 1365px) {
  #view-dashboard.quote-workspace-active .dashboard-actionbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #view-dashboard.quote-workspace-active .dashboard-actionbar .dash-action {
    width: 100%;
    padding-inline: clamp(7px, .8vw, 11px);
  }
}

@media (min-width: 721px) and (max-width: 1099px) {
  #view-dashboard.quote-workspace-active .dashboard-actionbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-vat-control {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 4px;
}

.quote-vat-control .vat-select,
.quote-vat-control .vat-custom-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #fff;
  padding: 4px 22px 4px 7px;
  color: #405168;
  font: inherit;
  font-weight: 400;
  text-align: center;
}

.quote-vat-control .vat-custom-input {
  max-width: none;
  padding: 4px 6px;
}

.quote-vat-control .vat-select:focus,
.quote-vat-control .vat-custom-input:focus {
  border-color: #f5a264;
  box-shadow: 0 0 0 2px rgba(249,115,22,.12);
  outline: none;
}

.quote-vat-control .vat-custom-input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217,45,32,.1);
}

.quote-vat-control .vat-custom-input.hidden {
  display: none !important;
}

.dashboard-quote-row .dash-vat {
  width: 100%;
  min-width: 0;
}

.dashboard-quote-row .dash-vat .quote-vat-control {
  width: 100%;
}

.quote-table .quote-vat-control {
  min-width: 86px;
}

.quote-table .quote-vat-control .vat-select,
.quote-table .quote-vat-control .vat-custom-input {
  height: 36px;
}


/* BUILD020-R1 manual price, delivery time and quote conditions */
.dashboard-quote-table{
  overflow-x:auto;
  scrollbar-gutter:stable;
}
.dash-manual-price input,.dash-delivery select{width:100%;min-width:0;height:34px;border:1px solid #d9e2ec;border-radius:7px;background:#fff;color:#3d5067;font:inherit;font-size:10px;box-shadow:none}
.dash-delivery select{font-size:12px;padding:0 24px 0 7px}
.quote-condition-fields{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px;width:100%}
.quote-condition-fields label>span{font-size:11px;font-weight:600;color:#405168}
#dashboardValidityPeriod,#dashboardDeliveryTerms,#dashboardPaymentTerms{border:1px solid #d9e2ec;border-radius:7px;background:#fff;color:#3d5067;font-size:12px;font-weight:400;padding:0 8px;height:34px}
#dashboardAdditionalNote{border:1px solid #d9e2ec;border-radius:7px;font-size:12px;font-weight:400}
.quote-condition-fields .span-2{grid-column:1/-1}
.quote-condition-fields label{display:grid;gap:6px}
.quote-condition-fields select,.quote-condition-fields textarea{width:100%}
.dashboard-quote-bottom{align-items:start}
.dashboard-quote-bottom>.quote-condition-fields{flex:1 1 auto}
.quote-table{min-width:1420px}
.quote-table .manual-price-input{min-width:100px}
.quote-table .delivery-time-select{min-width:128px;max-width:160px}
.quote-table .discount-input:disabled{background:#f2f4f6;color:#8a95a0}
@media (max-width:900px){.quote-condition-fields{grid-template-columns:1fr}.quote-condition-fields .span-2{grid-column:auto}}


/* Kanonik dashboard teklif tablosu grid tanımı (varsayılan / .quote-workspace-active olmayan görünüm) */
.dashboard-quote-table{
  --dashboard-quote-grid:
    minmax(0,2.35fr)
    minmax(0,.76fr)
    minmax(0,.56fr)
    minmax(0,.82fr)
    minmax(0,.86fr)
    minmax(0,.80fr)
    minmax(0,.86fr)
    minmax(0,.98fr)
    minmax(0,.92fr)
    minmax(0,.32fr);
  overflow-x: auto;
}
.dashboard-quote-head,.dashboard-quote-row{
  grid-template-columns:var(--dashboard-quote-grid)!important;
  width: 100%;
  min-width: 0;
}
.dash-manual-price input{
  appearance:textfield;
  -moz-appearance:textfield;
}
.dash-manual-price input::-webkit-outer-spin-button,
.dash-manual-price input::-webkit-inner-spin-button,
.manual-price-input::-webkit-outer-spin-button,
.manual-price-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.quote-show-discount{
  align-self:end;
  min-height:42px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
}
.quote-show-discount input{width:18px!important;height:18px}
@media (min-width:1501px){
  .dashboard-quote-head,.dashboard-quote-row{min-width:0}
}
@media (max-width:1366px){
  .dashboard-quote-table{overflow-x:auto}
  .dashboard-quote-head,.dashboard-quote-row{min-width:1160px}
}
@media (max-width:1280px){
  .dashboard-quote-head,.dashboard-quote-row{min-width:1120px}
  .quote-table{min-width:1260px}
}

/* BUILD020-R1 — compact quote condition UI and muted empty controls */
#view-dashboard.quote-workspace-active .dashboard-quote-bottom {
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .85fr);
  gap: 12px;
  margin-top: 10px;
}

#view-dashboard.quote-workspace-active .quote-condition-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

#view-dashboard.quote-workspace-active .quote-condition-fields label {
  gap: 4px;
  color: #405168;
  font-size: 13px;
  font-weight: 600;
}

#view-dashboard.quote-workspace-active .quote-condition-fields label > span {
  line-height: 1.25;
  font-size: 13px;
  font-weight: 600;
}

#view-dashboard.quote-workspace-active .quote-condition-fields select,
#view-dashboard.quote-workspace-active .quote-condition-fields textarea {
  box-sizing: border-box;
  min-height: 36px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #fff;
  color: #405168;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

#view-dashboard.quote-workspace-active .quote-condition-fields textarea {
  min-height: 78px;
  padding: 9px 10px;
  line-height: 1.4;
}

#view-dashboard.quote-workspace-active .quote-condition-fields select:focus,
#view-dashboard.quote-workspace-active .quote-condition-fields textarea:focus {
  border-color: #f5a264;
  box-shadow: 0 0 0 2px rgba(249,115,22,.10);
  outline: none;
}

#view-dashboard.quote-workspace-active .quote-condition-fields select:invalid,
#view-dashboard.quote-workspace-active #dashboardDeliveryTerms,
#view-dashboard.quote-workspace-active #dashboardPaymentTerms {
  color: #7f8b99;
}

#view-dashboard.quote-workspace-active .quote-show-discount {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #405168;
  font-size: 13px;
  font-weight: 600;
}

#view-dashboard.quote-workspace-active .quote-show-discount input {
  width: 16px !important;
  height: 16px;
  margin: 0;
}

#view-dashboard.quote-workspace-active .dashboard-totals {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
}

#view-dashboard.quote-workspace-active .dashboard-totals div {
  padding: 4px 0;
}

#view-dashboard.quote-workspace-active .dashboard-totals .grand {
  margin-top: 4px;
  padding-top: 8px;
}

#view-dashboard.quote-workspace-active .dashboard-totals .grand strong {
  font-size: 18px;
}

#view-dashboard.quote-workspace-active .dash-manual-price input,
#view-dashboard.quote-workspace-active .dash-delivery select {
  height: 32px;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  background: #f8fafc;
  color: #7f8b99;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

#view-dashboard.quote-workspace-active .dash-manual-price input::placeholder {
  color: #9aa5b1;
  opacity: 1;
}

#view-dashboard.quote-workspace-active .dash-manual-price input:focus,
#view-dashboard.quote-workspace-active .dash-delivery select:focus {
  background: #fff;
  color: #405168;
  border-color: #f5a264;
  box-shadow: 0 0 0 2px rgba(249,115,22,.10);
  outline: none;
}

#view-dashboard.quote-workspace-active .dash-delivery select {
  padding-right: 24px;
}

@media (max-width: 900px) {
  #view-dashboard.quote-workspace-active .dashboard-quote-bottom,
  #view-dashboard.quote-workspace-active .quote-condition-fields {
    grid-template-columns: 1fr;
  }
}


#view-dashboard.quote-workspace-active .dashboard-quote-head > span,
#view-dashboard.quote-workspace-active .dashboard-quote-row > * { min-width:0; }
#view-dashboard.quote-workspace-active .dashboard-quote-head > span:first-child { text-align:left !important; }
#view-dashboard.quote-workspace-active .dash-manual-price input,
#view-dashboard.quote-workspace-active .dash-discount input,
#view-dashboard.quote-workspace-active .dash-delivery select {
  width:100% !important; height:36px !important; min-height:36px !important;
  border:1px solid #d6e0ec !important; border-radius:12px !important;
  background:#fbfcfe !important; color:#53677e !important;
  padding:0 12px !important; font-size:12px !important; font-weight:400 !important;
  outline:none !important; box-shadow:none !important;
}
#view-dashboard.quote-workspace-active .dash-manual-price input:focus,
#view-dashboard.quote-workspace-active .dash-discount input:focus,
#view-dashboard.quote-workspace-active .dash-delivery select:focus {
  border-color:#f3a06a !important; box-shadow:0 0 0 3px rgba(239,127,45,.10) !important; background:#fff !important;
}
#view-dashboard.quote-workspace-active .dash-manual-price input::placeholder,
#view-dashboard.quote-workspace-active .dash-discount input::placeholder { color:#98a7b8 !important; }
#view-dashboard.quote-workspace-active .quote-condition-fields { gap:10px 14px !important; }
#view-dashboard.quote-workspace-active .quote-condition-fields > label > span { font-size:12px !important; font-weight:600 !important; }
#view-dashboard.quote-workspace-active .quote-condition-fields select { height:36px !important; min-height:36px !important; font-size:12px !important; border-radius:9px !important; font-weight:400 !important; }
#view-dashboard.quote-workspace-active .quote-condition-fields textarea { min-height:78px !important; font-size:12px !important; font-weight:400 !important; border-radius:10px !important; }
#view-dashboard.quote-workspace-active .quote-show-discount { min-height:36px !important; padding:7px 10px !important; }
#view-dashboard.quote-workspace-active .quote-show-discount span { font-size:12px !important; font-weight:600 !important; }
@media(max-width:1450px){
  .dashboard-picker-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-picker-controls .field.compact{grid-column:auto}
}
@media(max-width:900px){
  .dashboard-picker-controls{grid-template-columns:1fr}
}

/* BUILD020-R1 VERIFIED COMPACT UI — 2026-08-01 */
#view-dashboard.quote-workspace-active .dashboard-quote-bottom {
  grid-template-columns:minmax(0,1.7fr) minmax(250px,.7fr) !important;
  gap:10px !important;
  margin-top:8px !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:7px 10px !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields > label {
  gap:3px !important;
  font-size:10px !important;
  font-weight:500 !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields > label > span {
  font-size:10px !important;
  line-height:1.15 !important;
  font-weight:600 !important;
  color:#43566e !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields select {
  height:28px !important;
  min-height:28px !important;
  padding:2px 28px 2px 8px !important;
  border:1px solid #d6e0ec !important;
  border-radius:9px !important;
  background:#fbfcfe !important;
  color:#52657c !important;
  font-size:10px !important;
  font-weight:400 !important;
  box-shadow:none !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields textarea {
  min-height:52px !important;
  height:52px !important;
  padding:7px 9px !important;
  border:1px solid #d6e0ec !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#52657c !important;
  font-size:10px !important;
  font-weight:400 !important;
  line-height:1.3 !important;
  resize:vertical !important;
}
#view-dashboard.quote-workspace-active .quote-condition-fields textarea::placeholder {
  color:#98a6b6 !important;
  font-size:10px !important;
  font-weight:400 !important;
}
#view-dashboard.quote-workspace-active .quote-show-discount {
  min-height:28px !important;
  height:28px !important;
  padding:4px 8px !important;
  border:1px solid #d6e0ec !important;
  border-radius:9px !important;
  background:#f8fafc !important;
  gap:6px !important;
}
#view-dashboard.quote-workspace-active .quote-show-discount input {
  width:14px !important;
  height:14px !important;
  margin:0 !important;
}
#view-dashboard.quote-workspace-active .quote-show-discount span {
  font-size:10px !important;
  font-weight:500 !important;
  line-height:1 !important;
}
#view-dashboard.quote-workspace-active .dash-manual-price input,
#view-dashboard.quote-workspace-active .dash-discount input,
#view-dashboard.quote-workspace-active .dash-delivery select {
  box-sizing:border-box !important;
  width:100% !important;
  height:28px !important;
  min-height:28px !important;
  border:1px solid #d6e0ec !important;
  border-radius:9px !important;
  background:#fbfcfe !important;
  color:#53677e !important;
  padding:0 8px !important;
  font-size:10px !important;
  font-weight:400 !important;
  line-height:26px !important;
  box-shadow:none !important;
  outline:none !important;
}
#view-dashboard.quote-workspace-active .dash-delivery select { padding-right:24px !important; }
#view-dashboard.quote-workspace-active .dash-manual-price input::placeholder,
#view-dashboard.quote-workspace-active .dash-discount input::placeholder { color:#9aa8b8 !important; opacity:1 !important; }
#view-dashboard.quote-workspace-active .dashboard-totals {
  padding:8px 10px !important;
  border-radius:9px !important;
}
#view-dashboard.quote-workspace-active .dashboard-totals > div {
  padding:3px 0 !important;
  font-size:11px !important;
}
#view-dashboard.quote-workspace-active .dashboard-totals > div strong { font-size:11px !important; }
#view-dashboard.quote-workspace-active .dashboard-totals .grand { margin-top:3px !important; padding-top:6px !important; }
#view-dashboard.quote-workspace-active .dashboard-totals .grand strong { font-size:16px !important; }
@media(max-width:900px){
  #view-dashboard.quote-workspace-active .dashboard-quote-bottom,
  #view-dashboard.quote-workspace-active .quote-condition-fields{grid-template-columns:1fr !important}
}
/* KEN KESIN TEKLIF EKRANI DUZELTMESI */
body #view-dashboard.quote-workspace-active .dashboard-quote-bottom {
  grid-template-columns: minmax(0, 1fr) 350px !important;
  gap: 14px !important;
  align-items: start !important;
}

body #view-dashboard.quote-workspace-active .quote-condition-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 14px !important;
}

body #view-dashboard.quote-workspace-active .quote-condition-fields > label {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

body #view-dashboard.quote-workspace-active .quote-condition-fields > label > span {
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 14px !important;
}

body #view-dashboard.quote-workspace-active #dashboardValidityPeriod,
body #view-dashboard.quote-workspace-active #dashboardDeliveryTerms,
body #view-dashboard.quote-workspace-active #dashboardPaymentTerms {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 34px 0 11px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 9px !important;
  background-color: #ffffff !important;
  color: #263c57 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

body #view-dashboard.quote-workspace-active .quote-show-discount {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

body #view-dashboard.quote-workspace-active .quote-show-discount input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

body #view-dashboard.quote-workspace-active #dashboardAdditionalNote {
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 10px 12px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  resize: none !important;
}

body #view-dashboard.quote-workspace-active .quote-condition-fields .span-2 {
  grid-column: 1 / -1 !important;
}

body #view-dashboard.quote-workspace-active .dash-manual-price input,
body #view-dashboard.quote-workspace-active .dash-discount input,
body #view-dashboard.quote-workspace-active .dash-delivery select {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 11px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #263c57 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

body #view-dashboard.quote-workspace-active .dashboard-totals {
  padding: 12px 15px !important;
  border-radius: 12px !important;
}

@media (max-width: 1100px) {
  body #view-dashboard.quote-workspace-active .dashboard-quote-bottom {
    grid-template-columns: 1fr !important;
  }
}

/* BUILD020-R1 targeted quote workspace alignment and compact controls */
body #view-dashboard.quote-workspace-active .dashboard-quote-table {
  --dashboard-quote-grid: minmax(0,2.1fr) minmax(0,.70fr) minmax(0,.50fr) minmax(0,.72fr) minmax(0,.82fr) minmax(0,.78fr) minmax(0,.82fr) minmax(0,.88fr) minmax(0,.82fr) minmax(0,.28fr);
  overflow-x: auto !important;
}
body #view-dashboard.quote-workspace-active .dashboard-quote-head,
body #view-dashboard.quote-workspace-active .dashboard-quote-row {
  grid-template-columns: var(--dashboard-quote-grid) !important;
  column-gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}
body #view-dashboard.quote-workspace-active .dashboard-quote-head { font-size: 10px !important; }
body #view-dashboard.quote-workspace-active .dashboard-quote-head > span,
body #view-dashboard.quote-workspace-active .dashboard-quote-row > * { min-width: 0 !important; }

body #view-dashboard.quote-workspace-active .dash-manual-price input,
body #view-dashboard.quote-workspace-active .dash-discount input,
body #view-dashboard.quote-workspace-active .dash-delivery select {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 28px !important;
}
body #view-dashboard.quote-workspace-active .dash-delivery select { padding-right: 22px !important; }

body #view-dashboard.quote-workspace-active .quote-condition-fields {
  grid-template-columns: minmax(110px,.7fr) minmax(160px,1.05fr) minmax(160px,1.05fr) minmax(210px,1.1fr) !important;
  gap: 7px 10px !important;
}
body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(1) { grid-column: 1; grid-row: 1; }
body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(2) { grid-column: 4; grid-row: 1; align-self: end; }
body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(3) { grid-column: 2; grid-row: 1; }
body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(4) { grid-column: 3; grid-row: 1; }
body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(5) { grid-column: 1 / -1 !important; grid-row: 2; }
body #view-dashboard.quote-workspace-active .quote-condition-fields > label,
body #view-dashboard.quote-workspace-active .quote-condition-fields > label > span {
  gap: 3px !important;
  font-size: 10px !important;
  line-height: 14px !important;
  font-weight: 600 !important;
}
body #view-dashboard.quote-workspace-active #dashboardValidityPeriod,
body #view-dashboard.quote-workspace-active #dashboardDeliveryTerms,
body #view-dashboard.quote-workspace-active #dashboardPaymentTerms,
body #view-dashboard.quote-workspace-active .quote-show-discount {
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}
body #view-dashboard.quote-workspace-active .quote-condition-fields > label.quote-show-discount {
  flex-direction: row !important;
  align-items: center !important;
}
body #view-dashboard.quote-workspace-active .quote-show-discount span {
  white-space: nowrap !important;
}
body #view-dashboard.quote-workspace-active #dashboardAdditionalNote {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
@media (max-width: 1100px) {
  body #view-dashboard.quote-workspace-active .quote-condition-fields { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(1),
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(2),
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(3),
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(4),
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(5) { grid-column: auto !important; grid-row: auto !important; }
  body #view-dashboard.quote-workspace-active .quote-condition-fields > label:nth-child(5) { grid-column: 1 / -1 !important; }
}
