:root {
  /* MuhaSoft — güven mavisi + lacivert */
  --navy: #0b2a4a;
  --navy-2: #12365f;
  --blue: #2f6fed;
  --blue-light: #4f86f0;
  --blue-600: #2560d8;
  --blue-bg: #eef4ff;
  --green: #148a53;
  --green-bg: #e7f7ee;
  --yellow: #d69412;
  --yellow-bg: #fdf4de;
  --red: #d33a3a;
  --red-bg: #fdeceb;
  --orange: #e8720c;
  --gray: #64748b;
  --border: #e3e9f2;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f1e33;
  --shadow-sm: 0 1px 2px rgba(15,30,51,.06), 0 1px 3px rgba(15,30,51,.05);
  --shadow: 0 4px 16px rgba(15,30,51,.09);
  --shadow-lg: 0 18px 50px rgba(11,42,74,.28);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- App bar ---------- */
.appbar {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 0 20px; height: 58px;
  box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.brand .logo { width: 30px; height: 30px; display: block; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: .2px; color: #fff; }
.brand-name b { font-weight: 800; color: #8fc0ff; }
.brand-lg { cursor: default; justify-content: center; }
.brand-lg .logo { width: 40px; height: 40px; }
.brand-lg .brand-name { font-size: 24px; color: var(--navy); }
.brand-lg .brand-name b { color: var(--blue); }

/* proje bağlam anahtarı (app bar ortası) */
.ctx { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
body.mode-landing .ctx { display: none; }
.ctx .back-btn {
  background: rgba(255,255,255,.12); color: #dbe7ff; border: none;
  padding: 7px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.ctx .back-btn:hover { background: rgba(255,255,255,.2); }
.proj-switch { position: relative; }
.proj-switch > button {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18);
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; max-width: 420px;
}
.proj-switch > button:hover { background: rgba(255,255,255,.18); }
.proj-switch .co { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-switch .meta { font-size: 11.5px; color: #b9cdf0; white-space: nowrap; }
.proj-menu {
  position: absolute; top: 42px; left: 0; min-width: 320px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 60; max-height: 60vh; overflow: auto;
}
.proj-menu[hidden] { display: none; }
.proj-menu .pm-item { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.proj-menu .pm-item:hover { background: var(--blue-bg); }
.proj-menu .pm-item.active { background: var(--blue-bg); }
.proj-menu .pm-item strong { display: block; font-size: 13px; }
.proj-menu .pm-item span { font-size: 11.5px; color: var(--gray); }
.proj-menu .pm-new { color: var(--blue); font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; }

/* ---------- Step bar ---------- */
.stepbar {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 54px; position: sticky; top: 58px; z-index: 40;
  overflow-x: auto; box-shadow: var(--shadow-sm);
}
.stepbar[hidden] { display: none; }
.step {
  display: flex; align-items: center; gap: 9px; background: none; border: none;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--gray);
  font-size: 13.5px; white-space: nowrap; position: relative;
}
.step:hover { background: var(--bg); color: var(--navy); }
.step .num {
  width: 22px; height: 22px; border-radius: 50%; background: #e6ecf5; color: var(--gray);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
}
.step.active { background: var(--blue-bg); color: var(--blue-600); font-weight: 600; }
.step.active .num { background: var(--blue); color: #fff; }
.step.done .num { background: var(--green); color: #fff; }
.step-sep { color: var(--border); font-size: 16px; padding: 0 2px; }
.stepbar .divider { width: 1px; height: 26px; background: var(--border); margin: 0 8px; flex: none; }
.tool {
  background: none; border: none; padding: 8px 12px; border-radius: 9px; cursor: pointer;
  color: var(--gray); font-size: 13px; white-space: nowrap;
}
.tool:hover { background: var(--bg); color: var(--navy); }
.tool.active { background: var(--navy); color: #fff; font-weight: 600; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: calc(100vh - 112px); }
body.mode-landing .shell { min-height: calc(100vh - 58px); }
.sidebar {
  width: 316px; min-width: 316px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border); padding: 14px 12px;
}
.sidebar[hidden] { display: none; }
.sidebar-empty { padding: 20px; }
.workarea { flex: 1; overflow-y: auto; padding: 24px 28px; max-width: 1280px; }

/* ---------- Module tree ---------- */
.phase-block { margin-bottom: 14px; }
.phase-head {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--navy); padding: 6px 8px; font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .4px;
}
.phase-pct { font-variant-numeric: tabular-nums; color: var(--gray); }
.module-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; margin: 3px 0; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent;
}
.module-row:hover { background: var(--bg); }
.module-row.selected { background: var(--blue-bg); border-color: #cfe0ff; }
.module-row.locked { opacity: 0.5; cursor: not-allowed; }
.module-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gray); }
.dot.onaylandi { background: var(--green); }
.dot.hazirlandi { background: var(--yellow); }
.dot.baslanmadi { background: #cbd5e1; }
.module-row .m-name { flex: 1; font-size: 13px; }
.module-row .m-pct { font-size: 11px; color: var(--gray); font-variant-numeric: tabular-nums; }
.module-row .lock { font-size: 12px; }

/* ---------- Cards / generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
h2 { font-size: 19px; margin: 0 0 14px; color: var(--navy); font-weight: 700; letter-spacing: -.2px; }
h3 { font-size: 15px; margin: 18px 0 8px; color: var(--navy-2); font-weight: 600; }
.hint { color: var(--gray); font-size: 12.5px; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

button, .button-link {
  background: var(--blue); color: #fff; border: none; border-radius: 9px;
  padding: 9px 16px; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none;
  display: inline-block; transition: background .15s, box-shadow .15s, transform .05s;
}
button:hover, .button-link:hover { background: var(--blue-600); }
button:active { transform: translateY(1px); }
button.ghost { background: #fff; color: var(--blue-600); border: 1px solid var(--border); }
button.ghost:hover { background: var(--blue-bg); border-color: #cfe0ff; }
button.approve { background: var(--green); }
button.approve:hover { background: #0f6f42; }
button:disabled { opacity: 0.5; cursor: default; }

label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
label input, label select, input, select, textarea {
  width: 100%; padding: 9px 11px; margin-top: 5px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px; font-family: inherit;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(47,111,237,.12);
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; margin: 0; }

/* ---------- Module header (Süreç Takibi) ---------- */
.module-header {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.module-header .mh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.module-header h2 { margin: 0; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.badge.onaylandi { background: var(--green-bg); color: var(--green); }
.badge.hazirlandi { background: var(--yellow-bg); color: #a56c00; }
.badge.baslanmadi { background: #eef2f7; color: var(--gray); }
.badge.std { background: var(--blue-bg); color: var(--blue-600); }
.surec-takibi {
  display: flex; gap: 24px; margin-top: 14px; font-size: 12.5px;
  border-top: 1px dashed var(--border); padding-top: 12px; flex-wrap: wrap;
}
.surec-takibi div span { color: var(--gray); }
.mh-actions { display: flex; gap: 8px; margin-top: 14px; }
.locked-banner {
  background: var(--yellow-bg); border: 1px solid #f0d68a;
  color: #8a5a00; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px;
}

/* ---------- Çalışma Formu (3 panel) ---------- */
.wf-group-head {
  background: var(--navy-2); color: #fff; padding: 8px 14px;
  border-radius: 8px 8px 0 0; font-weight: 600; margin-top: 16px; font-size: 13px;
}
table.wf { width: 100%; border-collapse: collapse; background: #fff; }
table.wf th, table.wf td {
  border: 1px solid var(--border); padding: 9px 11px; vertical-align: top; text-align: left;
}
table.wf th { background: var(--blue-bg); color: var(--navy); font-size: 12px; }
.wf-islem { width: 46%; }
.wf-aciklama { width: 34%; }
.wf-dosya { width: 20%; }
.wf-question { font-size: 13px; }
.wf-ref { font-size: 11px; color: var(--gray); margin-top: 3px; }
.wf-answer textarea { min-height: 46px; resize: vertical; }
.ehoy-group { display: flex; gap: 10px; flex-wrap: wrap; }
.ehoy-group label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; }
.ehoy-group input { width: auto; margin: 0; }
.wf-files { list-style: none; padding: 0; margin: 0 0 6px; font-size: 12px; }
.wf-files li { padding: 2px 0; }
.saved-flag { color: var(--green); font-size: 11px; margin-left: 6px; }

/* ---------- Data grid ---------- */
table.grid-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; border-radius: 10px; overflow: hidden; }
table.grid-table th, table.grid-table td { border: 1px solid var(--border); padding: 8px 11px; }
table.grid-table th { background: var(--navy); color: #fff; position: sticky; top: 0; font-weight: 600; }
table.grid-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid-table tr:nth-child(even) td { background: #f8fafd; }
table.grid-table tfoot td { font-weight: 700; background: var(--blue-bg); }
.tag { padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag.onemli { background: var(--red-bg); color: var(--red); }
.tag.izlenecek { background: var(--yellow-bg); color: #a56c00; }
.tag.onemsiz { background: var(--green-bg); color: var(--green); }

/* ---------- Materiality panel ---------- */
.mat-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.mat-box .lbl { font-size: 12px; color: var(--gray); }
.mat-box .val { font-size: 21px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.mat-box.hl { border-color: var(--blue); background: var(--blue-bg); }
.mat-box.hl .val { color: var(--blue-600); }

/* ---------- Dashboard ---------- */
.dash-overall { font-size: 15px; margin-bottom: 6px; }
.progress { background: #e6ecf5; border-radius: 20px; height: 18px; overflow: hidden; }
.progress > span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff; font-size: 11px; text-align: right; padding-right: 8px; line-height: 18px;
}
.dash-row { display: grid; grid-template-columns: 230px 1fr 52px; gap: 12px; align-items: center; margin: 7px 0; }
.dash-row.phase { font-weight: 600; color: var(--navy); }
.dash-row.mod { padding-left: 14px; font-size: 13px; }
.dash-pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }

/* ---------- Findings / projects ---------- */
.finding { padding: 10px 14px; border-radius: 9px; margin: 8px 0; font-size: 13px; border-left: 4px solid var(--gray); background: #fff; box-shadow: var(--shadow-sm); }
.finding.error { border-left-color: var(--red); background: var(--red-bg); }
.finding.warning { border-left-color: var(--yellow); background: var(--yellow-bg); }
.finding.info { border-left-color: var(--green); background: var(--green-bg); }

/* Projeler — landing */
.landing-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.landing-head h1 { font-size: 26px; margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -.4px; }
.landing-head p { margin: 4px 0 0; color: var(--gray); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, border-color .12s; position: relative;
}
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.proj-card .pc-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; color: var(--gray); }
.proj-card .pc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-bg); color: var(--blue-600); display: grid; place-items: center; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.proj-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 15.5px; }
.proj-card .pc-meta { font-size: 12.5px; color: var(--gray); }
.proj-card .pc-fw { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--blue-600); background: var(--blue-bg); padding: 3px 10px; border-radius: 20px; }
.eng-item { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.eng-item:hover { background: var(--blue-bg); }

/* ---------- Auth ---------- */
.userbox { display: flex; align-items: center; gap: 10px; }
.userbox .uname { font-weight: 600; color: #fff; }
.userbox .urole { font-size: 11px; color: #cfe0ff; background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 20px; }
button.small, .ghost.small { padding: 5px 11px; font-size: 12px; }
.userbox button.ghost.small { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.userbox button.ghost.small:hover { background: rgba(255,255,255,.22); }
.login-overlay { position: fixed; inset: 0; background: linear-gradient(120deg, rgba(11,42,74,.6), rgba(18,54,95,.55)); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.login-overlay[hidden], .modal[hidden] { display: none !important; }
.login-card { background: #fff; padding: 34px 36px; border-radius: 16px; width: 360px; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow-lg); }
.login-card .brand { align-self: center; }
.login-sub { text-align: center; color: var(--gray); margin: -4px 0 10px; font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.login-card input { padding: 10px 12px; }
.login-card button[type=submit] { padding: 11px; font-size: 14px; }
.login-error { color: var(--red); font-size: 13px; min-height: 16px; }

/* ---------- Fiş portalı + risk + günlük + kilit ---------- */
.voucher-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 12px 0; }
.voucher-filters label { display: flex; flex-direction: column; font-size: 12px; gap: 3px; margin: 0; }
.voucher-filters input, .voucher-filters select { padding: 7px 9px; }
.mini-table tr.vrow { cursor: pointer; }
.mini-table tr.vrow:hover { background: var(--blue-bg); }
.risk-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.risk-form input { padding: 7px 9px; width: auto; }
.risk-form label { display: flex; align-items: center; gap: 4px; font-size: 13px; margin: 0; }
.risk-score { display: inline-block; min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 20px; font-weight: 700; color: #fff; }
.risk-low { background: var(--green); } .risk-med { background: var(--yellow); color: #4a3800; } .risk-high { background: var(--red); }
.log-act { font-family: monospace; font-size: 11px; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
.log-detail { font-size: 11px; color: var(--gray); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-info { display: flex; align-items: center; gap: 12px; background: var(--yellow-bg); border: 1px solid #f0d68a; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.cf-actions { white-space: nowrap; }
.cf-actions .link-btn { margin-right: 6px; }
.modal { position: fixed; inset: 0; background: rgba(11,42,74,.5); display: flex; align-items: center; justify-content: center; z-index: 900; }
.modal-box { background: #fff; padding: 24px; border-radius: 14px; max-width: 660px; width: 90%; max-height: 82vh; overflow: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; color: var(--gray); border: none; font-size: 18px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--navy); background: none; }
.modal-box-wide { max-width: 1100px; }
.raw-pager { display: flex; justify-content: space-between; margin-top: 10px; }
.mini-table tfoot th { background: var(--bg); }

/* ---------- Belge örnekleme (BDS 530) ---------- */
.sampling-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.sampling-controls select { padding: 7px 9px; width: auto; font-size: 13px; }
table.mini-table { border-collapse: collapse; width: 100%; font-size: 12px; }
table.mini-table th, table.mini-table td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; white-space: nowrap; }
table.mini-table thead th { background: var(--bg); position: sticky; top: 0; }
table.mini-table td:last-child { white-space: normal; }

/* ---------- Rapor önizleme ---------- */
.report-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.dl-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--blue); }
.dl-btn:hover { background: var(--blue-600); }
.dl-btn.ghost { background: #fff; color: var(--blue-600); }
.dl-btn.disabled { pointer-events: none; opacity: .45; }
.report-preview { background: #445067; border-radius: var(--radius); padding: 26px; max-height: 660px; overflow: auto; }
.report-paper { background: #fff; color: #111; max-width: 820px; margin: 0 auto;
  padding: 54px 62px; box-shadow: 0 6px 24px rgba(0,0,0,.4); border-radius: 3px;
  font-family: "Georgia", "Times New Roman", serif; font-size: 13.5px; line-height: 1.62; }
.report-paper h1 { font-size: 21px; margin: 0 0 4px; text-align: center; font-weight: 700; }
.report-paper h1 + h1 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 14px; }
.report-paper h2 { font-size: 16px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #ddd; color: #111; }
.report-paper h3 { font-size: 14px; margin: 16px 0 6px; color: #111; }
.report-paper p { margin: 8px 0; }
.report-paper hr { border: 0; border-top: 1px solid #ccc; margin: 16px 0; }
.report-paper ul { margin: 8px 0; padding-left: 22px; }
.report-paper .paper-empty { color: #888; text-align: center; font-style: italic; }
.report-paper table.rpt-table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 12.5px; }
.report-paper table.rpt-table th, .report-paper table.rpt-table td { border: 1px solid #cfcfcf; padding: 6px 10px; text-align: left; }
.report-paper table.rpt-table th { background: #f0f2f5; font-weight: 700; }
.report-paper table.rpt-table td:last-child, .report-paper table.rpt-table th:last-child { text-align: right; }
ul.report-pick-list { list-style: none; padding: 0; }
ul.report-pick-list li { margin: 4px 0; }
.link-btn { background: none; color: var(--blue-600); padding: 0; text-decoration: underline; font-weight: 500; }
.link-btn:hover { background: none; color: var(--blue); }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 99; font-size: 13.5px; }
.toast.err { background: var(--red); }

/* ---------- Açıklama / sözlük ---------- */
.info-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--blue);
  color: #fff; font-size: 11px; font-weight: 700; cursor: help; margin-left: 5px;
  vertical-align: middle; font-style: normal;
}
.info-badge:hover { background: var(--blue-600); }
.info-pop {
  position: fixed; max-width: 340px; background: #fff; border: 1px solid #cfe0ff;
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 14px 16px;
  z-index: 200; font-size: 12.5px; line-height: 1.5;
}
.info-pop h4 { margin: 0 0 6px; color: var(--navy); font-size: 13px; }
.info-pop .ex { margin-top: 8px; padding: 8px 10px; background: var(--blue-bg); border-radius: 8px; color: #24425f; }
.info-pop .ex strong { color: var(--blue-600); }
.explain {
  background: var(--blue-bg); border-left: 4px solid var(--blue);
  padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 12.5px; line-height: 1.55;
}
.explain strong { color: var(--blue-600); }

/* ---------- Yanlışlık defteri ---------- */
.ms-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.ms-summary .box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.ms-summary .box .v { font-size: 19px; font-weight: 800; color: var(--navy); }
.ms-verdict { padding: 12px 16px; border-radius: 10px; margin: 8px 0; font-weight: 600; }
.ms-verdict.material { background: var(--red-bg); color: var(--red); }
.ms-verdict.clean { background: var(--green-bg); color: var(--green); }

/* ---------- Finansal Raporlama Dönüşümü ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.row > input, .row > select, .row > textarea { flex: 1 1 150px; min-width: 120px; }
.row > textarea { flex: 1 1 320px; font-family: inherit; }
.txt-ok { color: var(--green); font-weight: 600; }
.txt-bad { color: var(--red); font-weight: 600; }
.txt-warn { color: #a56c00; font-weight: 600; }
table.grid-table tr.row-bad td { background: var(--red-bg); }
table.grid-table tr.row-warn td { background: var(--yellow-bg); }
.card.sev-error { border-left: 4px solid var(--red); }
.adj-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.adj-card.warn { border-left: 4px solid var(--yellow); background: #fffdf7; }
.adj-card table.grid-table { margin-top: 8px; }
