/* Vural Global ERP — arayüz stilleri
   Yön bağımsız (RTL hazır): margin-inline, padding-inline, inset-inline kullanılır. */

:root {
  --navy-900: #0f1d30;
  --navy-800: #14263d;
  --navy-700: #1f3a5f;
  --navy-500: #3d5f8c;
  --brass: #b8862f;
  --brass-soft: #f5ead5;
  --ink: #1b2430;
  --ink-2: #4a5566;
  --ink-3: #7a8494;
  --line: #e3e0d8;
  --line-2: #eeebe4;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --good: #2f7d4f;
  --good-soft: #e3f2e8;
  --warn: #9a6a12;
  --warn-soft: #fbf0d9;
  --bad: #b23b3b;
  --bad-soft: #fbe6e4;
  --radius: 10px;
  --radius-s: 7px;
  --shadow: 0 1px 2px rgba(15, 29, 48, .06), 0 2px 8px rgba(15, 29, 48, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 .75em; }
svg { fill: currentColor; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* --- İskelet ------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--navy-800); color: #c9d3e1; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brass); color: var(--navy-900); font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; font-weight: 650; font-size: 15px; line-height: 1.2; }
.brand-text small { font-weight: 500; font-size: 11px; color: #8fa0b8; letter-spacing: .06em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { display: block; margin: 18px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7f90a8; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s);
  color: #d4dcea; font-weight: 500;
}
.nav-link svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav-link:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav-link.is-active { background: rgba(230, 182, 92, .14); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
[dir="rtl"] .nav-link.is-active { box-shadow: inset -3px 0 0 var(--brass); }
.nav-link.is-disabled { color: #6c7d95; cursor: default; padding-inline-start: 38px; font-size: 13px; }
.nav-link.is-disabled:hover { background: none; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 28px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.topbar-spacer { flex: 1; }
.menu-toggle { display: none; }
.content { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }

.lang-form select { padding: 5px 8px; min-height: 32px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-s); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.user-name { font-weight: 550; }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 230px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15,29,48,.12);
  padding: 6px;
}
.menu-meta { padding: 8px 10px 10px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-meta .chip { margin-top: 6px; }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: start; padding: 8px 10px; border-radius: 6px; border: 0; background: none;
  font: inherit; color: var(--ink); cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--line-2); text-decoration: none; }

.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* --- Sayfa başlıkları ve kartlar ---------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.page-head .eyebrow a { color: var(--ink-3); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* --- İstatistik kutuları ------------------------------------------------- */
.stat { padding: 16px 18px; }
.stat-label { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 28px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat a { color: inherit; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.dot-customer { background: #2f6fb3; }
.dot-supplier { background: var(--brass); }
.dot-forwarder { background: #3c8c74; }
.dot-customs_broker { background: #8a5aa8; }

/* --- Butonlar ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-danger { color: var(--bad); border-color: #efc9c5; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled], form.is-busy .btn { opacity: .55; pointer-events: none; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--navy-700); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--bad); }

/* --- Formlar ------------------------------------------------------------- */
label { font-weight: 550; font-size: 13px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #d6d2c8; border-radius: var(--radius-s);
  background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(61, 95, 140, .35); outline-offset: 1px; border-color: var(--navy-500);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.error-text { color: var(--bad); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section + .form-section { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.form-section h3 { margin-bottom: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #d6d2c8; border-radius: 999px;
  font-weight: 500; color: var(--ink-2); background: #fff;
}
.check-pill input:checked + span { border-color: var(--navy-700); background: #eaf0f7; color: var(--navy-800); }
.check-pill input:focus-visible + span { outline: 2px solid rgba(61, 95, 140, .35); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.switch input { width: 16px; height: 16px; accent-color: var(--navy-700); }

/* --- Filtre çubuğu ------------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.filters .search { flex: 1 1 260px; position: relative; }
.filters .search svg { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.filters .search input { padding-inline-start: 34px; }
.filters select { width: auto; min-width: 150px; }
.segmented { display: inline-flex; border: 1px solid #d6d2c8; border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.segmented a { padding: 7px 12px; color: var(--ink-2); font-weight: 500; border-inline-start: 1px solid #d6d2c8; }
.segmented a:first-child { border-inline-start: 0; }
.segmented a.is-active { background: var(--navy-700); color: #fff; }
.segmented a:hover { text-decoration: none; }

/* --- Tablolar ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; background: #fbfaf7; white-space: nowrap; }
tbody tr:hover { background: #fbfaf7; }
tbody tr:last-child td { border-bottom: 0; }
td.actions-cell { text-align: end; white-space: nowrap; }
.row-link { font-weight: 600; color: var(--ink); }
.row-sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--line-2); padding: 2px 6px; border-radius: 5px; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }

/* --- Etiketler ----------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--line-2); color: var(--ink-2); margin-inline-end: 4px; white-space: nowrap; }
.chip-customer { background: #e4eef9; color: #1f5590; }
.chip-supplier { background: var(--brass-soft); color: #7a5717; }
.chip-forwarder { background: #e0f1ec; color: #2a6b58; }
.chip-customs_broker { background: #efe6f5; color: #66407f; }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-muted { background: var(--line-2); color: var(--ink-3); }

/* --- Mesajlar ------------------------------------------------------------ */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid; font-weight: 500; }
.flash-success { background: var(--good-soft); border-color: #bfe0cb; color: #1f5c39; }
.flash-error { background: var(--bad-soft); border-color: #efc9c5; color: #8f2c2c; }
.flash-warning { background: var(--warn-soft); border-color: #ecd7a8; color: #74500d; }
.notice { padding: 12px 14px; border-radius: var(--radius-s); background: var(--warn-soft); border: 1px solid #ecd7a8; color: #74500d; }
.notice-info { background: #eaf0f7; border-color: #cddbec; color: var(--navy-800); }

/* --- Tanım listeleri ----------------------------------------------------- */
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: 13px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* --- Kişiler ------------------------------------------------------------- */
.contact { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.contact:last-child { border-bottom: 0; }
.contact .avatar { background: #e8edf4; color: var(--navy-700); flex: none; }
.contact-main { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.contact-actions { display: flex; gap: 10px; font-size: 13px; }
.contact-form { padding: 16px 18px; background: #fbfaf7; border-bottom: 1px solid var(--line-2); }
.contact-form .form-grid { gap: 12px 16px; }
.contact-form .form-actions { margin-top: 14px; display: flex; gap: 8px; }

/* --- Dosyalar ------------------------------------------------------------ */
.dropzone { position: relative; display: block; margin: 14px 18px; padding: 18px; border: 1.5px dashed #cfcabd; border-radius: var(--radius); text-align: center; color: var(--ink-2); cursor: pointer; background: #fcfbf8; }
.dropzone:hover { border-color: var(--navy-500); background: #f5f7fa; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.file-icon { width: 34px; height: 34px; border-radius: 7px; background: var(--line-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink-2); flex: none; text-transform: uppercase; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 12px; color: var(--ink-3); }

/* --- Sayfalama ----------------------------------------------------------- */
.pager { display: flex; gap: 6px; align-items: center; }
.pager a, .pager span { min-width: 32px; height: 32px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.pager .is-current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.pager a:hover { text-decoration: none; background: var(--line-2); }

/* --- Kurlar -------------------------------------------------------------- */
.rate { padding: 14px 18px; }
.rate-code { font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.rate-value { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rate-sub { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* --- Aktivite ------------------------------------------------------------ */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 10px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 10px; justify-content: space-between; }
.activity li:last-child { border-bottom: 0; }
.activity .when { color: var(--ink-3); white-space: nowrap; font-size: 12px; }
.changes { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.changes del { color: var(--bad); text-decoration: line-through; }
.changes ins { color: var(--good); text-decoration: none; }

/* --- Giriş sayfası ------------------------------------------------------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr);
  background: var(--navy-800);
}
.auth-side { padding: 44px 52px 36px; color: #c9d3e1; display: flex; flex-direction: column; gap: 26px; justify-content: center;
  background: radial-gradient(circle at 15% 10%, rgba(230,182,92,.12), transparent 45%), radial-gradient(circle at 90% 90%, rgba(59,93,140,.35), transparent 50%), var(--navy-800); }
.auth-side h1 { color: #fff; font-size: 30px; line-height: 1.2; max-width: 560px; }
.auth-side p { max-width: 560px; color: #9fb0c6; margin-top: 10px; font-size: 15px; }
.auth-countries { font-size: 12.5px; color: #7f92ad; letter-spacing: .02em; }
.auth-panel { background: var(--bg); display: flex; flex-direction: column; padding: 28px 40px; }
.auth-lang { display: flex; gap: 10px; justify-content: flex-end; }
.auth-lang button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font: inherit; padding: 2px 4px; }
.auth-lang button.is-active { color: var(--ink); font-weight: 600; }
.auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px 0; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth-logo img { display: block; width: auto; height: auto; max-width: min(340px, 100%); max-height: 170px; }
.auth-logo-mark { width: 110px; height: 110px; border-radius: 26px; display: grid; place-items: center; background: var(--brass); color: #14233a; font-size: 44px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 12px 30px rgba(20,35,58,.18); }
.auth-logo-name { font-size: 26px; font-weight: 700; color: var(--navy-800); letter-spacing: -.01em; }
.auth-logo-sub { font-size: 12px; letter-spacing: .32em; color: var(--ink-3); font-weight: 600; padding-inline-start: .32em; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 10px 30px rgba(20,35,58,.06); display: flex; flex-direction: column; gap: 16px; }
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.btn-block { width: 100%; min-height: 42px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--ink-3); }

/* Süreç anlatımı: 6 sahne, her biri 4 sn (toplam 24 sn), yalnızca CSS */
.story { display: flex; flex-direction: column; gap: 18px; max-width: 640px; width: 100%; }
.story-stage { position: relative; aspect-ratio: 480 / 380; width: 100%; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.scene { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; opacity: 0; animation: scene-cycle 24s infinite both; }
.scene:nth-child(2) { animation-delay: 4s; }
.scene:nth-child(3) { animation-delay: 8s; }
.scene:nth-child(4) { animation-delay: 12s; }
.scene:nth-child(5) { animation-delay: 16s; }
.scene:nth-child(6) { animation-delay: 20s; }
.scene-art { width: 100%; height: auto; flex: 1; padding: 18px 18px 0; }
.scene figcaption { padding: 0 26px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: baseline; }
.scene-no { grid-row: span 2; font-size: 30px; font-weight: 800; color: var(--brass); line-height: 1; }
.scene figcaption strong { color: #fff; font-size: 18px; }
.scene figcaption span:last-child { color: #9fb0c6; font-size: 13.5px; }
@keyframes scene-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  3% { opacity: 1; transform: none; }
  15.5% { opacity: 1; transform: none; }
  17.5% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.story-steps li { font-size: 11.5px; color: #7f92ad; display: flex; flex-direction: column; gap: 7px; animation: step-cycle 24s infinite; }
.story-steps li:nth-child(2) { animation-delay: 4s; }
.story-steps li:nth-child(3) { animation-delay: 8s; }
.story-steps li:nth-child(4) { animation-delay: 12s; }
.story-steps li:nth-child(5) { animation-delay: 16s; }
.story-steps li:nth-child(6) { animation-delay: 20s; }
.story-steps .step-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background-color: rgba(255,255,255,.14); }
@keyframes step-cycle {
  0%, 16.6% { color: #fff; }
  17%, 100% { color: #7f92ad; }
}
.story-steps li .step-bar { background-image: linear-gradient(var(--brass), var(--brass)); background-repeat: no-repeat; background-size: 0 100%; animation: dot-fill 24s infinite linear both; animation-delay: inherit; }
@keyframes dot-fill {
  0% { background-size: 0 100%; }
  16.6% { background-size: 100% 100%; }
  16.7%, 100% { background-size: 0 100%; }
}
/* Sahne içi küçük hareketler */
.scene .draw { stroke-dasharray: 600; animation: draw 4s ease-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 60%, 100% { stroke-dashoffset: 0; } }
.scene .pop { transform-box: fill-box; transform-origin: center; animation: pop 4s ease-in-out infinite; }
@keyframes pop { 0%, 30% { transform: scale(.6); opacity: 0; } 45%, 100% { transform: scale(1); opacity: 1; } }
.scene .flow-lines { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.scene .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.scene .bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow 4s ease-out infinite; }
.scene .bars rect:nth-child(2) { animation-delay: .15s; }
.scene .bars rect:nth-child(3) { animation-delay: .3s; }
@keyframes grow { 0% { transform: scaleY(.1); } 40%, 100% { transform: scaleY(1); } }
.scene .belt { animation: belt 4s linear infinite; }
@keyframes belt { from { transform: translateX(-230px); } to { transform: translateX(0); } }
.scene .smoke { animation: smoke 3s ease-in-out infinite; }
@keyframes smoke { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-8px); opacity: .7; } }
.scene .progress-fill { transform-box: fill-box; transform-origin: left; animation: fill 4s ease-out infinite; }
@keyframes fill { 0% { transform: scaleX(.05); } 85%, 100% { transform: scaleX(.8); } }
.scene .magnifier { animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0% { transform: translate(-150px, 40px); } 50% { transform: translate(-60px, 10px); } 100% { transform: translate(0, 0); } }
.scene .ship { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(5px) rotate(.6deg); } }
.scene .waves { animation: waves 3s linear infinite; }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) {
  .scene, .story-steps li, .story-steps li .step-bar, .scene * { animation: none !important; }
  .scene:first-child { opacity: 1; }
}

/* --- İçe aktarma önizlemesi ---------------------------------------------- */
.import-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.import-steps li { counter-increment: step; display: flex; gap: 12px; }
.import-steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.row-error td { background: #fdf5f4; }
.row-dup td { background: #fdfaf2; }
.summary-bar { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 550; }

/* --- Hata sayfası -------------------------------------------------------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code-big { font-size: 64px; font-weight: 700; color: var(--line); letter-spacing: -.03em; }

/* --- Mobil --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.is-open { transform: none; }
  .menu-toggle { display: grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px 40px; }
  .user-name { display: none; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .hide-mobile { display: none; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .sidebar, .topbar, .actions, .filters { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}

/* --- Yardımcılar --------------------------------------------------------- */
.section-gap { margin-top: 16px; }
.rate + .rate { border-top: 1px solid var(--line-2); }
.stack > * + * { margin-top: 16px; }
.label-like { font-weight: 550; font-size: 13px; color: var(--ink-2); }
.section-gap-bottom { margin-bottom: 20px; }
.notice ul { margin: 6px 0 10px; padding-inline-start: 18px; }
.pre { white-space: pre-line; }
.section-gap-small { margin-top: 8px; }
.file-error { margin: 0 18px 10px; }
.narrow { max-width: 520px; }

/* --- Proje durumları ------------------------------------------------------ */
.status-inquiry { background: #eef1f6; color: #3d4f6b; }
.status-sourcing { background: #e4eef9; color: #1f5590; }
.status-quoted { background: #ebe6f7; color: #5a3f99; }
.status-ordered { background: var(--brass-soft); color: #7a5717; }
.status-production { background: #fdeedd; color: #8a4f0e; }
.status-qc { background: #fff4d6; color: #7a5a00; }
.status-shipping { background: #e0f1ec; color: #2a6b58; }
.status-closed { background: var(--good-soft); color: var(--good); }
.status-lost { background: var(--line-2); color: var(--ink-3); }

.pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pipeline a { display: block; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pipeline a:hover { text-decoration: none; border-color: var(--navy-500); }
.pipeline .count { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pipeline .label { font-size: 12px; color: var(--ink-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs span { padding: 9px 14px; color: var(--ink-2); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.is-active { color: var(--navy-800); border-bottom-color: var(--brass); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs span { color: var(--ink-3); cursor: default; }

.status-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.status-form select { width: auto; min-width: 200px; }
.status-form .field { flex: 1 1 220px; }

/* --- Talep kalemleri ------------------------------------------------------ */
.items-table td { vertical-align: top; }
.items-table .pos { width: 44px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.items-table .qty { width: 120px; }
.items-table .unit { width: 110px; }
.items-table .row-actions { width: 1%; white-space: nowrap; text-align: end; }
.items-table .row-actions form { display: inline; }
.items-table .row-actions button, .items-table .row-actions a { margin-inline-start: 8px; font-size: 13px; }
.item-specs { font-size: 12.5px; color: var(--ink-2); white-space: pre-line; margin-top: 3px; }
.item-form td { background: #fbfaf7; }
.item-form textarea { min-height: 38px; }
.item-form input, .item-form select, .item-form textarea { font-size: 13px; }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.small-label { font-size: 11.5px; color: var(--ink-3); font-weight: 550; }
.kv { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.kv strong { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inline-fields { grid-template-columns: minmax(0, 1fr); } }
.item-form table { width: 100%; }
.item-form table td { border: 0; padding: 0 6px 0 0; background: transparent; }
.item-form .field { gap: 4px; }
.card-head-plain { padding: 0 2px 10px; border: 0; }

/* --- RFQ ------------------------------------------------------------------ */
.rfq-draft { background: #eef1f6; color: #3d4f6b; }
.rfq-sent { background: #e4eef9; color: #1f5590; }
.rfq-answered { background: var(--good-soft); color: var(--good); }
.rfq-declined { background: var(--line-2); color: var(--ink-3); }
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 6px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check-row:hover { background: var(--line-2); }
.check-row input { margin-top: 3px; accent-color: var(--navy-700); }
.plain-label { font-weight: 400; color: var(--ink); font-size: 14px; cursor: pointer; }
.price-table .price { width: 120px; }
.price-table .days { width: 90px; }
.price-table input { text-align: end; }
.price-table .inline-fields input { text-align: start; }
.switch.small { font-size: 12.5px; margin-top: 6px; color: var(--ink-2); }
.row-muted td { opacity: .6; }
.overdue { color: var(--bad); font-weight: 600; }
.compare th.supplier-col { min-width: 150px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.compare .price-cell { text-align: end; vertical-align: top; white-space: nowrap; }
.compare .price-main { font-variant-numeric: tabular-nums; font-weight: 550; }
.compare .price-sub { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.compare .is-best { background: #f1f8f3; }
.compare .is-best .price-main { color: var(--good); }
.compare .is-selected { box-shadow: inset 0 0 0 2px var(--navy-500); background: #eef3fa; }
.compare tfoot td { border-top: 2px solid var(--line); background: #fbfaf7; }
.select-btn { font-size: 12px; margin-top: 4px; }
.select-btn.is-on { color: var(--navy-800); font-weight: 600; }
.price-table td:nth-child(2) { min-width: 280px; }
@media (max-width: 1100px) { .rfq-bottom { grid-template-columns: minmax(0, 1fr); } }
.rfq-bottom > .card { margin-top: 0; align-self: start; }

/* --- Teklifler ------------------------------------------------------------- */
.quote-draft { background: #eef1f6; color: #3d4f6b; }
.quote-sent { background: #e4eef9; color: #1f5590; }
.quote-accepted { background: var(--good-soft); color: var(--good); }
.quote-rejected { background: var(--bad-soft); color: var(--bad); }
.quote-revised { background: var(--line-2); color: var(--ink-3); }
.quote-locked { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quote-table td:nth-child(2) { min-width: 260px; }
.quote-table .qty { width: 120px; }
.quote-table .qty input { width: 80px; }
.quote-table .money { width: 120px; }
.quote-table .pct { width: 80px; }
.quote-table td input { text-align: end; }
.quote-table td:nth-child(2) input { text-align: start; }
.quote-table tfoot td { background: #fbfaf7; border-top: 1px solid var(--line-2); }
.quote-table tfoot .grand td { font-weight: 650; font-size: 15px; border-top: 2px solid var(--line); }
.quote-table .actions-col { width: 44px; text-align: center; }
.unit-label { font-size: 12px; color: var(--ink-3); margin-inline-start: 4px; }
.cost-source { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.warn-text { color: #9a6408; font-weight: 550; }
.stat-value.negative { color: var(--bad); }
.icon-btn.danger { width: 30px; height: 30px; font-size: 18px; line-height: 1; color: var(--bad); }
.icon-btn.danger:hover { background: var(--bad-soft); }
.quote-tools { flex-direction: column; align-items: stretch; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form label { font-size: 13px; color: var(--ink-2); }
.inline-form .short-input { width: 100px; }
.add-line input[name=description] { flex: 1 1 240px; }
.cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rev-list { list-style: none; margin: 0; padding: 6px 18px 14px; }
.rev-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.rev-list li:last-child { border-bottom: 0; }
.rev-list li.is-current a { font-weight: 650; }
.grid > .card { margin: 0; }
.add-line select, .add-line input { width: auto; flex: 0 0 auto; }
.add-line input[name=description] { flex: 1 1 260px; }

/* --- Logo ------------------------------------------------------------------ */
.brand.has-logo { flex-direction: column; align-items: stretch; gap: 6px; }
.brand-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 8px 10px; }
.brand-logo img { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; }
.brand-sub { font-size: 11px; color: #8fa0b8; letter-spacing: .06em; padding-inline-start: 2px; }
.logo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 260px; height: 110px; border: 1px dashed var(--line); border-radius: var(--radius-s); display: grid; place-items: center; background: #fff; padding: 10px; }
.logo-preview img { max-width: 100%; max-height: 100%; }
.logo-preview.is-empty img { width: 56px; height: 56px; }

/* --- Sipariş, satınalma, üretim, QC ---------------------------------------------- */
.btn-accent { background: var(--brass); border-color: var(--brass); color: #14233a; font-weight: 600; }
.btn-accent:hover { filter: brightness(1.05); }
.order-awaiting_advance { background: var(--warn-soft); color: #74500d; }
.order-in_progress { background: #e4eef9; color: #1f5590; }
.order-ready { background: var(--good-soft); color: var(--good); }
.order-shipped { background: #e0f1ec; color: #2a6b58; }
.order-completed { background: var(--line-2); color: var(--ink-2); }
.order-cancelled { background: var(--bad-soft); color: var(--bad); }
.po-draft { background: #eef1f6; color: #3d4f6b; }
.po-sent { background: #e4eef9; color: #1f5590; }
.po-confirmed { background: #e6e9f8; color: #3b4aa0; }
.po-in_production { background: var(--warn-soft); color: #74500d; }
.po-ready { background: var(--good-soft); color: var(--good); }
.po-delivered { background: #e0f1ec; color: #2a6b58; }
.po-cancelled { background: var(--bad-soft); color: var(--bad); }
.qc-pending { background: #eef1f6; color: #3d4f6b; }
.qc-passed { background: var(--good-soft); color: var(--good); }
.qc-passed_with_remarks { background: var(--warn-soft); color: #74500d; }
.qc-failed { background: var(--bad-soft); color: var(--bad); }
a.chip:hover { text-decoration: none; filter: brightness(.97); }
.stat-value.positive { color: var(--good); }
progress.bar { appearance: none; -webkit-appearance: none; width: 90px; height: 8px; border: 0; border-radius: 99px; background: var(--line-2); overflow: hidden; vertical-align: middle; }
progress.bar::-webkit-progress-bar { background: var(--line-2); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--navy-500); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--navy-500); border-radius: 99px; }
progress.bar[value="100"]::-webkit-progress-value { background: var(--good); }
progress.bar[value="100"]::-moz-progress-bar { background: var(--good); }
progress.bar.wide { width: 100%; margin-top: 10px; }
.progress-col { white-space: nowrap; width: 150px; }
.bar-label { font-size: 12px; color: var(--ink-2); margin-inline-start: 8px; font-variant-numeric: tabular-nums; }
.supplier-cell select { min-width: 200px; }
.payment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.payment-form .span-all { grid-column: 1 / -1; }
.payment-form .submit { grid-column: 1 / -1; align-items: flex-start; }
.timeline { list-style: none; margin: 0; padding: 4px 18px 16px; }
.timeline li { position: relative; padding: 10px 0 10px 18px; border-left: 2px solid var(--line-2); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-500); }
.timeline-head { display: flex; gap: 8px; align-items: baseline; }
.qc-table .qty { width: 110px; }
.qc-table .res { width: 150px; }
.qc-row-minor td { background: #fdf8ec; }
.qc-row-major td { background: #fbeeee; }
@media (max-width: 860px) { .payment-form { grid-template-columns: minmax(0, 1fr); } }

/* --- Sevkiyat --------------------------------------------------------------- */
.ship-planning { background: #eef1f6; color: #3d4f6b; }
.ship-booked { background: #e6e9f8; color: #3b4aa0; }
.ship-loading { background: var(--warn-soft); color: #74500d; }
.ship-customs { background: #efe6f5; color: #66407f; }
.ship-in_transit { background: #e4eef9; color: #1f5590; }
.ship-arrived { background: #e0f1ec; color: #2a6b58; }
.ship-delivered { background: var(--good-soft); color: var(--good); }
.ship-cancelled { background: var(--bad-soft); color: var(--bad); }
.doc-not_needed { background: var(--line-2); color: var(--ink-3); }
.doc-pending { background: var(--warn-soft); color: #74500d; }
.doc-ready { background: #e4eef9; color: #1f5590; }
.doc-sent { background: var(--good-soft); color: var(--good); }
.flow { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.flow li { flex: 1 1 0; min-width: 96px; position: relative; padding: 9px 10px 9px 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); border-radius: 6px; white-space: nowrap; text-align: center; }
.flow li.is-done { background: #eef3fa; color: var(--navy-700); border-color: #cddbec; }
.flow li.is-done span::before { content: "✓ "; }
.flow li.is-current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); font-weight: 600; }
.pack-table td input, .pack-table td select { min-height: 32px; padding: 4px 6px; font-size: 13px; }
.pack-table td:nth-child(2) { min-width: 220px; }
.pack-table .hs { width: 100px; }
.pack-table .qty { width: 120px; }
.pack-table .qty input { width: 76px; }
.pack-table .money { width: 92px; }
.pack-table .pk { width: 150px; }
.pack-table .pk input { width: 56px; margin-bottom: 4px; }
.pack-table .kg { width: 92px; }
.pack-table .m3 { width: 76px; }
.pack-table .cn { width: 140px; }
.pack-table td input { text-align: end; }
.pack-table td:nth-child(2) input, .pack-table .hs input { text-align: start; }
.pack-table tfoot td { background: #fbfaf7; font-weight: 600; border-top: 2px solid var(--line); }
.doc-table .doc-status { width: 150px; }
.compact-hint { padding-top: 0; padding-bottom: 8px; font-size: 12.5px; }
h3.form-section { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 6px 0 -4px; }
.push-end { margin-inline-start: auto; }
.pack-table { min-width: 1180px; }
.pack-table .hs input { min-width: 92px; }
.pack-table .cn select { min-width: 130px; }
.pack-table .pk select { min-width: 96px; }
#containers table { min-width: 560px; }
#containers td select { min-width: 92px; }
#containers td input { min-width: 120px; }
.inline-form select { width: auto; }
.card-foot.inline-form { justify-content: flex-start; }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; text-align: center; }
.tabs a.is-active .tab-count { background: var(--brass-soft); color: #7a5717; }
.tabs a span.tab-count { padding: 1px 7px; border-bottom: 0; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.tabs a.is-active span.tab-count { color: #7a5717; }

/* --- Proje yardımcısı ve akış özeti -------------------------------------------- */
.assistant { border-color: #e6d3ad; box-shadow: 0 6px 20px rgba(184,134,47,.08); }
.assistant .card-head { background: linear-gradient(90deg, #fbf6ec, #fff); }
.assistant-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.assistant-progress progress.bar { width: 140px; }
.assistant-step { display: flex; gap: 14px; align-items: flex-start; }
.assistant-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.assistant-step h3 { font-size: 18px; margin: 2px 0 4px; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.checklist li.is-ok { background: #f3f9f5; border-color: #d5ebdd; color: var(--ink-2); }
.checklist li.is-missing { border-color: #e9d9b8; }
.checklist li.is-optional { border-style: dashed; color: var(--ink-2); }
.check-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--line-2); color: var(--ink-3); }
.is-ok .check-icon { background: var(--good); color: #fff; }
.is-missing .check-icon { background: var(--brass-soft); color: #7a5717; }
.check-text { flex: 1; }
.assistant-warnings { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bad-soft); color: #7d2a2a; }
.assistant-warnings ul { margin: 6px 0 0; padding-inline-start: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.assistant-note { margin-top: 12px; font-size: 13px; }
.assistant-done { display: flex; gap: 14px; align-items: center; }
.big-check { width: 48px; height: 48px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.vflow { list-style: none; margin: 0; padding: 8px 18px 16px; }
.vflow li { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.vflow li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.vflow li.vflow-done:not(:last-child)::before { background: #b9dcc5; }
.vflow-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-3); position: relative; z-index: 1; }
.vflow-done .vflow-dot { background: var(--good); color: #fff; }
.vflow-active .vflow-dot { background: var(--navy-700); color: #fff; box-shadow: 0 0 0 4px rgba(31,58,95,.15); }
.vflow-body { display: flex; flex-direction: column; min-width: 0; padding-top: 3px; }
.vflow-body > a { font-weight: 600; color: var(--ink); }
.vflow-todo .vflow-body > a { color: var(--ink-2); font-weight: 500; }
.vflow-sub { font-size: 12px; color: var(--ink-3); }
.vflow-active .vflow-sub { color: var(--navy-700); font-weight: 600; }
.vflow-missing { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.vflow-missing li { padding: 0 0 0 12px; position: relative; }
.vflow-missing li::before { content: "○"; position: absolute; left: 0; color: var(--brass); font-size: 10px; top: 2px; }
.vflow-missing li a { color: var(--ink-2); }

/* --- Proje gezinme çubuğu -------------------------------------------------------- */
.pnav { position: sticky; top: 58px; z-index: 8; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(20,35,58,.06); padding: 6px; }
.pnav.is-compact { margin-bottom: 20px; }
.pnav-project { display: flex; align-items: center; gap: 10px; padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 14px; }
.pnav-project:hover { text-decoration: none; background: var(--line-2); border-radius: 8px; }
.pnav-project svg { width: 18px; height: 18px; fill: var(--ink-3); flex: none; }
.pnav-project strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnav-percent { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--navy-700); background: #eef3fa; border-radius: 99px; padding: 2px 8px; }
.pnav-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.pnav-tab { position: relative; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.pnav-tab svg { width: 19px; height: 19px; fill: currentColor; opacity: .75; flex: none; }
.pnav-tab:hover { text-decoration: none; background: #f1f4f9; color: var(--ink); }
.pnav-tab.is-active { background: var(--navy-700); color: #fff; box-shadow: 0 4px 12px rgba(31,58,95,.25); }
.pnav-tab.is-active svg { opacity: 1; }
.pnav-count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; }
.pnav-tab.is-active .pnav-count { background: rgba(255,255,255,.18); color: #fff; }
.pnav-state { position: absolute; top: 5px; right: 6px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; line-height: 1; }
.state-done .pnav-state { background: var(--good); color: #fff; }
.state-warn .pnav-state { background: var(--bad); color: #fff; }
.state-active .pnav-state { width: 9px; height: 9px; top: 8px; right: 8px; background: var(--brass); box-shadow: 0 0 0 3px rgba(184,134,47,.25); }
.state-todo .pnav-state { display: none; }
.pnav-tab.is-active.state-done .pnav-state { box-shadow: 0 0 0 2px var(--navy-700); }
@media (max-width: 860px) {
  .pnav { top: 54px; border-radius: 12px; }
  .pnav-tab { flex: 0 0 auto; padding: 0 12px; min-height: 42px; }
}
.pnav-state { position: static; width: 18px; height: 18px; margin-inline-start: -2px; }
.state-active .pnav-state { position: static; width: 9px; height: 9px; margin-inline-start: 2px; }
.pnav-tab.is-active.state-done .pnav-state { box-shadow: none; background: #fff; color: var(--good); }
@media (max-width: 520px) {
  .pnav-tab:not(.is-active) .pnav-label { display: none; }
  .pnav-tab { padding: 0 10px; gap: 6px; }
}
@media (max-width: 520px) {
  .pnav-tabs { overflow-x: visible; }
  .pnav-tab { flex: 1 1 auto; padding: 0 6px; min-width: 0; }
  .pnav-count { display: none; }
  .pnav-tab:not(.is-active) .pnav-state { width: 8px; height: 8px; font-size: 0; margin-inline-start: -4px; align-self: flex-start; margin-top: 10px; }
  .pnav-tab.is-active .pnav-label { overflow: hidden; text-overflow: ellipsis; }
}

/* Ürün içe aktarma ve ek alanlar */
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-700); color: #fff; font-size: 13px; font-weight: 650; margin-inline-end: 6px; }
.tpl-options { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tpl-options legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--ink-2); }
.tpl-options .hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.extra-grid { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.attr-rows { display: grid; gap: 8px; margin-top: 16px; }
.attr-head, .attr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.attr-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.attr-rows .hint { font-size: 12px; color: var(--ink-3); }
.muted.small { font-size: 12.5px; font-weight: 500; }
.split > .card + .card { margin-top: 0; }
.notice .switch.small { display: flex; margin-top: 8px; }

/* Teklif satırlarında isteğe bağlı ölçü / renk / ağırlık */
.line-fields-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.line-fields-bar .switch.small { margin-top: 0; }
.line-fields-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.line-fields-bar .hint { font-size: 12px; color: var(--ink-3); margin-inline-start: auto; }
.line-variant { margin-top: 6px; max-width: 220px; }
.line-variant input { width: 100%; font-size: 12.5px; padding: 5px 8px; }
.quote-table .size-col { min-width: 190px; }
.size-inputs { display: flex; align-items: center; gap: 3px; }
.size-inputs input { width: 56px; min-width: 0; text-align: end; padding-inline: 6px; }
.size-inputs span { color: var(--ink-3); font-size: 12px; }
.quote-table .weight-col { min-width: 96px; }
.quote-table .weight-col input { width: 72px; text-align: end; }
.quote-table .calc-col { background: #f7f9fc; white-space: nowrap; }
.quote-table tfoot .calc-total td { border-top: 2px solid var(--line); background: #f7f9fc; }
input.input-error { border-color: var(--bad); }
.tiny-input { width: 64px; }

/* E-posta */
.inner-grid { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.help-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.mail-attachments { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mail-attachments legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.mail-attachments .switch.small, .mail-actions .switch.small { margin-top: 0; }
.mail-actions { align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.mail-actions .switch.small { margin-inline-end: auto; }
