/* survey module styles — Müşteri Anketi (page-survey.jsx). Editorial tokens from styles.css. */

.sv-lede { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; max-width: 760px; line-height: 1.5; }
.sv-byline { margin-bottom: 0; flex-wrap: wrap; row-gap: 4px; }
.sv-byline .sv-downloads { margin-left: auto; font-style: normal; }
.sv-downloads a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.sv-downloads a:hover { color: var(--red); border-color: var(--red); }

/* filters */
.sv-filterbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sv-filter { display: flex; flex-direction: column; gap: 4px; }
.sv-filter-l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.sv-select { min-width: 220px; max-width: 340px; }
.sv-filter-note { font-size: 11.5px; font-style: italic; color: var(--text-dim); padding-bottom: 6px; }

/* status */
.sv-status { padding: 2px 0; }
.sv-alert { border-left: 3px solid var(--red); background: var(--red-soft); color: var(--ink); padding: 9px 14px;
  font-size: 12.5px; border-radius: 2px; }
.sv-alert-soft { border-left-color: var(--amber); background: var(--amber-soft); }
.sv-body { display: flex; flex-direction: column; gap: 14px; transition: opacity 0.15s ease; }
.sv-busy { opacity: 0.45; pointer-events: none; }
.sv-note { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.sv-empty { padding: 18px 2px; }

/* KPI value suffix */
.sv-scale { font-size: 0.5em; color: var(--text-muted); margin-left: 2px; letter-spacing: 0; }

/* category label + icon */
.sv-cat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sv-ico { display: inline-block; width: 18px; text-align: center; font-size: 13px; line-height: 1; }

/* AI summary */
.sv-li { margin-bottom: 6px; }
.sv-impact { margin-top: 12px; }
.sv-ai-note { margin: 0; }
.sv-ai-note .sv-note { font-size: 14.5px; }

/* complaint drivers */
.sv-drivers { display: flex; flex-direction: column; }
.sv-driver { padding: 9px 0 10px; border-bottom: 1px solid var(--rule-dim); }
.sv-driver:first-child { padding-top: 0; }
.sv-driver:last-child { border-bottom: none; padding-bottom: 0; }
.sv-driver-head { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.sv-driver-share { margin-left: auto; font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.sv-driver-bar { height: 3px; background: var(--rule-dim); margin: 6px 0 7px; }
.sv-driver-bar > span { display: block; height: 100%; background: var(--red); }
.sv-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.35; color: var(--ink-2); }
.sv-quote-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.sv-translation { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* category table */
.sv-table td { vertical-align: middle; }
.sv-bar { display: inline-block; width: 56px; height: 4px; margin-left: 10px; background: var(--rule-dim);
  vertical-align: middle; position: relative; top: -1px; }
.sv-bar > span { display: block; height: 100%; background: var(--ink); }
.sv-bar.high > span { background: var(--red); }
.sv-bar.med > span { background: var(--amber); }
.sv-bar.low > span { background: var(--green); }
.sv-cell-note { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; max-width: 420px; }

/* named complaints */
.sv-complaints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sv-complaint { background: var(--paper); border: 1px solid var(--rule-soft); border-left: 3px solid var(--red);
  border-radius: 2px; padding: 11px 13px 12px; }
.sv-complaint-topic { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.sv-complaint .sv-quote { margin-top: 7px; }

/* recommended actions */
.sv-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sv-actions li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.sv-num { flex: 0 0 18px; height: 18px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: var(--red);
  background: var(--red-soft); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

/* breakdown tabs */
.sv-tabs { padding: 0 12px; }

/* upload */
.sv-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sv-file { font-size: 11.5px; color: var(--text-dim); min-width: 140px; max-width: 360px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.sv-help { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.sv-help strong { color: var(--text-dim); font-weight: 600; }

@media (max-width: 768px), (max-height: 480px) {
  .sv-lede { font-size: var(--m-size-sm); }
  .sv-byline .sv-downloads { margin-left: 0; }
  .sv-filterbar { flex-direction: column; align-items: stretch; gap: var(--m-s2); }
  .sv-select { min-width: 0; max-width: none; width: 100%; }
  .sv-filter-note { padding-bottom: 0; }
  .sv-quote { font-size: var(--m-size-sm); }
  .sv-cell-note { max-width: none; }
  .sv-bar { width: 72px; }
  .sv-complaints { grid-template-columns: 1fr; }
  .sv-upload .btn { flex: 1 1 auto; justify-content: center; }
  .sv-file { flex: 1 1 100%; max-width: none; order: 2; }
  .sv-tabs { padding: 0 var(--m-s1); }
  /* compact cards: label inline with its value, cells wrap after the headline */
  .sv-table tbody tr { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 4px; }
  .sv-table tbody tr > td:first-child { flex: 1 1 100%; }
  .sv-table td[data-label] { padding-top: 0 !important; }
  .sv-table td[data-label]::before { display: inline; margin-right: 5px; }
  .sv-table td.sv-cell-note { flex: 1 1 100%; }
}
