/* NB-Core web arayüzü — marka paleti: docs/brand/nb-core-palette.md */
:root {
  --brand: #1B365D;
  --brand-2: #2C5E7A;
  --nb-neutral: #3B4D61;
  --nb-success: #166534;
  --nb-warning: #D97706;
  --nb-danger: #991B1B;
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --line: #E1E6ED;
  --line-strong: #CBD3DE;
  --text: #1C2733;
  --muted: #5B6777;
  --ok-bg: #DCFCE7; --ok-fg: #14532D;
  --warn-bg: #FEF3C7; --warn-fg: #92400E;
  --err-bg: #FEE2E2; --err-fg: #991B1B;
  --info-bg: #E2EEF4; --info-fg: #234B62;
  --primary-bg: #E3E9F2; --primary-fg: #1B365D;
  --muted-bg: #EDF0F4; --muted-fg: #3B4D61;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sidebar: 264px;
  --topbar: 58px;
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; color: var(--brand); }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .7em; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, monospace; font-size: .9em; }
/* Uzun özet / token değerleri (SHA-256 mühür, içerik özeti) dar ekranda satır kırar. */
.alert .mono, dd.mono, .sheet .mono { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.ic { flex: none; vertical-align: -3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Üst bar ---------------------------------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.topbar a { color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 650; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; max-width: 140px; object-fit: contain; background: rgba(255, 255, 255, .06); border-radius: 6px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.brand .product { font-weight: 400; opacity: .7; font-size: .85em; }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 6px; border-radius: 6px; cursor: pointer; }
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.global-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.global-search input[type=search] {
  width: 100%; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1); color: #fff; padding: 0 12px 0 34px; font: inherit;
}
.global-search input[type=search]::placeholder { color: rgba(255, 255, 255, .65); }
.global-search input[type=search]:focus { outline: none; background: #fff; color: var(--text); }
.global-search input[type=search]:focus::placeholder { color: var(--muted); }
.global-search:focus-within .ic { color: var(--muted); opacity: 1; }
.global-search .ic { position: absolute; left: 10px; top: 9px; opacity: .75; }
.user-box { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.global-search + .user-box { margin-left: 0; }
.user-box .who { text-align: right; line-height: 1.15; }
.user-box .who b { display: block; font-size: .92rem; }
.user-box .who span { font-size: .78rem; opacity: .75; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--brand-2); color: #fff; border: 2px solid rgba(255, 255, 255, .35);
}
.icon-btn { background: transparent; border: 0; color: inherit; padding: 6px; border-radius: 6px; cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: rgba(255, 255, 255, .14); }

/* Kabuk -------------------------------------------------------------------------------------------------- */
.shell { display: flex; padding-top: var(--topbar); min-height: 100vh; }
.sidebar {
  position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); overflow-y: auto; z-index: 20;
  background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 28px;
}
.sidebar h6 { margin: 16px 10px 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--nb-neutral); font-size: .93rem;
}
.sidebar a:hover { background: var(--surface-2); text-decoration: none; color: var(--brand); }
.sidebar a.active { background: var(--primary-bg); color: var(--brand); font-weight: 600; }
.sidebar .tenant-card { margin: 4px 6px 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; }
.sidebar .tenant-card b { display: block; color: var(--brand); font-size: .9rem; }
.content { flex: 1; min-width: 0; margin-left: var(--sidebar); padding: 22px 26px 40px; }
.page { max-width: 1440px; margin: 0 auto; }
.site-footer { margin-left: var(--sidebar); padding: 14px 26px 22px; color: var(--muted); font-size: .8rem; }

/* Sayfa başlığı ve araç çubuğu ------------------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head .titles p { margin: 2px 0 0; color: var(--muted); }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Kart, ızgara, KPI ------------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card > .card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card > .card-head h2, .card > .card-head h3 { margin: 0; flex: 1; }
.card > .card-body { padding: 16px 18px; }
.card > .card-body.flush { padding: 0; }
.card > .card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; color: var(--text); border-left: 4px solid var(--brand-2);
}
a.kpi:hover { text-decoration: none; border-color: var(--line-strong); }
.kpi .value { font-size: 1.7rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.kpi .label { font-size: .85rem; color: var(--muted); }
.kpi.ok { border-left-color: var(--nb-success); } .kpi.ok .value { color: var(--nb-success); }
.kpi.warn { border-left-color: var(--nb-warning); } .kpi.warn .value { color: #B45309; }
.kpi.err { border-left-color: var(--nb-danger); } .kpi.err .value { color: var(--nb-danger); }

/* Tablo -------------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); color: var(--nb-neutral); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.table tbody tr:hover { background: #FAFBFD; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr.row-link { cursor: pointer; }
.table .sub { display: block; color: var(--muted); font-size: .82rem; }
.table.compact th, .table.compact td { padding: 6px 10px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }

/* Rozetler ve hap -------------------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 650;
  white-space: nowrap; letter-spacing: .01em; line-height: 1.5;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.err { background: var(--err-bg); color: var(--err-fg); }
.badge.info { background: var(--info-bg); color: var(--info-fg); }
.badge.primary { background: var(--primary-bg); color: var(--primary-fg); }
.badge.muted { background: var(--muted-bg); color: var(--muted-fg); }
.badge.solid-ok { background: var(--nb-success); color: #fff; }
.badge.solid-err { background: var(--nb-danger); color: #fff; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--muted-bg); color: var(--muted-fg); font-size: .78rem; margin: 1px 2px 1px 0; }

/* Butonlar ----------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid transparent; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: var(--brand); color: #fff; text-decoration: none; transition: filter .12s, background .12s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--brand-2); }
.btn.ghost { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.ok { background: var(--nb-success); }
.btn.warn { background: var(--nb-warning); }
.btn.danger { background: var(--nb-danger); }
.btn.sm { height: 30px; padding: 0 10px; font-size: .84rem; border-radius: 7px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 1rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
form.inline { display: inline; }

/* Formlar ------------------------------------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: .84rem; font-weight: 600; color: var(--nb-neutral); }
.field .hint { font-size: .78rem; color: var(--muted); }
.req::after { content: " *"; color: var(--nb-danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local],
input[type=search], input[type=tel], input[type=url], input[type=file], select, textarea {
  width: 100%; min-height: 38px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff;
  color: var(--text); font: inherit; font-size: .93rem;
}
textarea { min-height: 84px; resize: vertical; }
input[type=file] { padding: 6px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(44, 94, 122, .35); outline-offset: 0; border-color: var(--brand-2); }
input[readonly] { background: var(--surface-2); }
.input-error { border-color: var(--nb-danger) !important; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.segmented label { padding: 7px 12px; cursor: pointer; font-size: .9rem; border-right: 1px solid var(--line-strong); background: #fff; }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + span { font-weight: 700; }
.segmented label:has(input:checked) { background: var(--primary-bg); color: var(--brand); }
.segmented label.pass:has(input:checked) { background: var(--ok-bg); color: var(--ok-fg); }
.segmented label.fail:has(input:checked) { background: var(--err-bg); color: var(--err-fg); }

/* Uyarılar ----------------------------------------------------------------------------------------------- */
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; border: 1px solid transparent; font-size: .93rem; }
.alert .ic { margin-top: 2px; }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #BBF7D0; }
.alert.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #FDE68A; }
.alert.err { background: var(--err-bg); color: var(--err-fg); border-color: #FECACA; }
.alert.info { background: var(--info-bg); color: var(--info-fg); border-color: #C9DDE8; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.banner-trial { background: #FFFBEB; border-bottom: 1px solid #FDE68A; color: #92400E; padding: 8px 26px; font-size: .88rem; margin: -22px -26px 18px; }

/* Tanım listesi ------------------------------------------------------------------------------------------ */
dl.props { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 8px 14px; margin: 0; font-size: .93rem; }
dl.props dt { color: var(--muted); }
dl.props dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.props.wide { grid-template-columns: minmax(170px, 26%) 1fr; }

/* Takip barı (kargo takibi gibi) -------------------------------------------------------------------- */
.steps { display: flex; gap: 0; margin: 4px 0 2px; counter-reset: step; }
.steps .step { flex: 1; position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 34px; min-width: 0; }
.steps .step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); z-index: 1;
}
.steps .step::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.steps .step:first-child::after { display: none; }
.steps .step.done { color: var(--nb-success); }
.steps .step.done::before { content: "✓"; background: var(--nb-success); border-color: var(--nb-success); color: #fff; }
.steps .step.done::after, .steps .step.current::after { background: var(--nb-success); }
.steps .step.current { color: var(--brand); font-weight: 650; }
.steps .step.current::before { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--primary-bg); }
.steps.final .step::before { content: "!"; }

/* Sekmeler ----------------------------------------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button {
  padding: 9px 14px; border: 0; background: none; font: inherit; color: var(--muted); border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; font-weight: 600; font-size: .92rem;
}
.tabs a.active, .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Saha denetim formu ------------------------------------------------------------------------------- */
.field-head { position: sticky; top: var(--topbar); z-index: 10; background: var(--bg); padding: 10px 0 12px; margin: -10px 0 8px; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--nb-success); border-radius: 99px; transition: width .3s; }
.item-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); scroll-margin-top: 150px; }
.item-card.answered { border-left: 4px solid var(--nb-success); }
.item-card.failed { border-left: 4px solid var(--nb-danger); }
.item-card.manual { border-left: 4px solid var(--brand-2); }
.item-card.na { border-left: 4px solid var(--nb-neutral); }
.item-card > header, .item-card > summary { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.item-card > summary { cursor: pointer; list-style: none; border-bottom-color: transparent; }
.item-card > summary::-webkit-details-marker { display: none; }
.item-card > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 7px 2px 0 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.item-card[open] > summary { border-bottom-color: var(--line); }
.item-card[open] > summary::after { transform: rotate(-135deg); margin-top: 10px; }
.item-card > header .code, .item-card > summary .code { font-weight: 700; color: var(--brand); white-space: nowrap; }
.item-card > header .q, .item-card > summary .q { flex: 1; min-width: 0; }
.item-card > header .q small, .item-card > summary .q small { display: block; color: var(--muted); margin-top: 3px; }
.item-card > summary .q .digest { color: var(--text); font-size: .82rem; overflow-wrap: anywhere; }
.item-card[open] > summary .q .digest { display: none; }
.item-card > .body { padding: 14px 16px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.formula { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; background: #0F1E33; color: #D7E6F5; padding: 8px 10px; border-radius: 7px; overflow-x: auto; white-space: pre-wrap; }
.live { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: .88rem; margin: 10px 0; min-height: 40px; }
.evidence-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.evidence { width: 150px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); font-size: .74rem; }
.evidence img { display: block; width: 100%; height: 100px; object-fit: cover; background: #DDE3EA; }
.evidence .doc { height: 100px; display: grid; place-items: center; color: var(--muted); }
.evidence .meta { padding: 5px 7px; color: var(--muted); line-height: 1.3; }
.evidence label { display: flex; gap: 5px; align-items: center; padding: 4px 7px; border-top: 1px solid var(--line); cursor: pointer; }
.geo-status { font-size: .85rem; }

/* Meşruiyet matrisi ------------------------------------------------------------------------------- */
.matrix { list-style: none; margin: 0; padding: 0; }
.matrix li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.matrix li:last-child { border-bottom: 0; }
.light { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; flex: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.light.ok { background: #22C55E; } .light.warn { background: #F59E0B; } .light.err { background: #DC2626; }
.matrix b { display: block; }
.matrix span { color: var(--muted); font-size: .88rem; }

/* Zaman çizelgesi ------------------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }

/* Sayfalama ---------------------------------------------------------------------------------------------- */
.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 18px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.pager span.cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Giriş ve açık sayfalar ------------------------------------------------------------------------------ */
.public { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #10233F 0%, var(--brand) 42%, var(--brand-2) 100%); }
.public main { flex: 1; display: grid; place-items: center; padding: 28px 16px; }
.public footer { text-align: center; color: rgba(255, 255, 255, .7); font-size: .8rem; padding: 14px; }
.public footer a { color: #fff; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); overflow: hidden; }
.auth-card .head { padding: 26px 28px 8px; text-align: center; }
.auth-card .head img { height: 56px; max-width: 220px; object-fit: contain; margin-bottom: 10px; }
.auth-card .head h1 { font-size: 1.25rem; margin: 0; }
.auth-card .head p { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.auth-card .body { padding: 18px 28px 26px; }
.auth-card .body .field { margin-bottom: 12px; }
.tenant-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; font-size: .9rem; }
.demo-box { width: 100%; max-width: 880px; margin-top: 18px; background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 18px 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, .2); }
.demo-box h2 { font-size: 1rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-tenant { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.demo-tenant h3 { font-size: .92rem; margin-bottom: 6px; }
.demo-tenant button { display: flex; justify-content: space-between; width: 100%; gap: 6px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; margin: 4px 0; font: inherit; font-size: .84rem; cursor: pointer; }
.demo-tenant button:hover { border-color: var(--brand-2); background: #fff; }
.demo-tenant button .who { display: flex; flex-direction: column; min-width: 0; }
.demo-tenant button .who small { color: var(--muted); font-size: .78rem; }
.demo-tenant button { flex-wrap: wrap; align-items: flex-start; }
.demo-tenant button .mail { color: var(--muted); white-space: nowrap; margin-left: auto; }
.verify-card { width: 100%; max-width: 640px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); overflow: hidden; }
.verify-status { padding: 22px 26px; color: #fff; display: flex; gap: 14px; align-items: center; }
.verify-status.ok { background: var(--nb-success); }
.verify-status.warn { background: var(--nb-warning); }
.verify-status.err { background: var(--nb-danger); }
.verify-status b { font-size: 1.5rem; letter-spacing: .03em; display: block; }

/* Etiket (barkod) --------------------------------------------------------------------------------------- */
.sticker-sheet { display: flex; flex-wrap: wrap; gap: 12px; }
.sticker { width: 90mm; max-width: 100%; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; background: #fff; color: #111; }
.sticker .txt { font-size: 11px; line-height: 1.3; min-width: 0; }
.sticker .txt b { font-size: 12.5px; display: block; }

/* Rapor (A4) ------------------------------------------------------------------------------------------- */
.print-bar { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: var(--brand); color: #fff; }
.print-bar .grow { flex: 1; }
.print-bar a, .print-bar .btn.ghost { color: var(--brand); }
.report-body { background: #E5E9EF; padding: 24px 12px 60px; }
.sheet {
  width: 210mm; min-height: 297mm; margin: 0 auto 18px; background: #fff; padding: 14mm 14mm 16mm; position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .14); color: #111; font-size: 10.5pt; line-height: 1.38;
}
.sheet h1 { font-size: 15pt; margin: 0; color: #111; }
.sheet h2 { font-size: 11.5pt; margin: 14px 0 6px; color: var(--brand); border-bottom: 1.5px solid var(--brand); padding-bottom: 3px; text-transform: uppercase; letter-spacing: .02em; }
.sheet h3 { font-size: 10.5pt; color: #111; }
.rpt-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-bottom: 3px solid var(--brand); padding-bottom: 10px; margin-bottom: 12px; }
.rpt-head img { height: 54px; max-width: 160px; object-fit: contain; }
.rpt-head .issuer { font-size: 9pt; color: #333; }
.rpt-head .issuer b { font-size: 11.5pt; color: #111; display: block; }
.rpt-head .docno { text-align: right; font-size: 9pt; }
.rpt-head .docno b { display: block; font-size: 11pt; }
.rpt-title { text-align: center; margin: 6px 0 12px; }
.rpt-title h1 { letter-spacing: .03em; }
.rpt-title p { margin: 2px 0 0; color: #444; font-size: 9.5pt; }
table.rpt { width: 100%; border-collapse: collapse; font-size: 9pt; margin-bottom: 6px; }
table.rpt th, table.rpt td { border: 1px solid #9AA5B4; padding: 4px 6px; vertical-align: top; text-align: left; }
table.rpt th { background: #E9EEF5; font-weight: 650; }
table.rpt.kv th { width: 30%; }
table.rpt td.res { white-space: nowrap; font-weight: 700; text-align: center; }
table.rpt tr { page-break-inside: avoid; }
.res-ok { color: var(--nb-success); } .res-err { color: var(--nb-danger); } .res-warn { color: #B45309; } .res-na { color: #555; }
.verdict { margin: 12px 0; padding: 10px 14px; border: 2px solid; border-radius: 6px; font-size: 11.5pt; font-weight: 700; text-align: center; }
.verdict.ok { border-color: var(--nb-success); color: var(--nb-success); background: #F0FDF4; }
.verdict.err { border-color: var(--nb-danger); color: var(--nb-danger); background: #FEF2F2; }
.verdict.warn { border-color: var(--nb-warning); color: #92400E; background: #FFFBEB; }
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; page-break-inside: avoid; }
.signatures > div { border: 1px solid #9AA5B4; border-radius: 4px; padding: 8px; min-height: 92px; font-size: 8.8pt; }
.signatures b { display: block; font-size: 9pt; }
.verify-box { display: flex; gap: 12px; align-items: center; border: 1px solid #9AA5B4; border-radius: 4px; padding: 8px; margin-top: 12px; font-size: 8.5pt; page-break-inside: avoid; }
.verify-box .qr { flex: none; }
.rpt-foot { position: absolute; left: 14mm; right: 14mm; bottom: 8mm; font-size: 7.8pt; color: #555; display: flex; justify-content: space-between; border-top: 1px solid #ccc; padding-top: 4px; }
.watermark {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; overflow: hidden;
}
.watermark span { transform: rotate(-32deg); font-size: 44pt; font-weight: 800; color: rgba(153, 27, 27, .16); border: 6px solid rgba(153, 27, 27, .16); padding: 6px 24px; text-align: center; line-height: 1.1; }
.cert { border: 8px double var(--brand); padding: 12mm; min-height: 255mm; display: flex; flex-direction: column; }
.cert .cert-title { text-align: center; margin: 10mm 0 8mm; }
.cert .cert-title h1 { font-size: 22pt; color: var(--brand); letter-spacing: .06em; }
.cert .cert-title p { font-size: 10pt; color: #444; }
.cert .holder { text-align: center; font-size: 15pt; font-weight: 700; margin: 4mm 0; }
.cert .grow { flex: 1; }

/* Duyarlı ------------------------------------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
  body.nav-open .sidebar { transform: none; }
  .content, .site-footer { margin-left: 0; }
  .content { padding: 18px 14px 32px; }
  .banner-trial { margin: -18px -14px 14px; padding: 8px 14px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .user-box .who { display: none; }
  .brand span { max-width: 160px; }
}
@media (max-width: 640px) {
  .form-grid, .form-grid.cols-3, .demo-grid, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 10px 12px; }
  .kpi .value { font-size: 1.4rem; }
  .global-search { display: none; }
  .steps .step { font-size: 0; }
  .steps .step.current { font-size: .72rem; }
  dl.props { grid-template-columns: 1fr; gap: 2px; }
  dl.props dd { margin-bottom: 8px; }
  /* Saha listeleri telefonda kart görünümü: sütunlar alt alta, işlem düğmesi görünür kalır. */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.stack td { border: 0; padding: 2px 0; }
  table.stack td.right { text-align: left; padding-top: 8px; }
  table.stack td.nowrap { white-space: normal; }
}

/* Raporlar telefonda: A4 sayfası ekran genişliğine akar (yazdırmada A4 düzeni korunur). */
@media screen and (max-width: 820px) {
  .report-body { padding: 10px 0 40px; }
  .sheet { width: auto; min-height: 0; margin: 0 8px 12px; padding: 18px 14px; overflow: hidden; }
  .rpt-head { grid-template-columns: auto 1fr; }
  .rpt-head .docno { grid-column: 1 / -1; text-align: left; }
  .cert { min-height: 0; padding: 18px 12px; }
  .sheet table { font-size: 9pt; }
  .watermark span { font-size: 26pt; }
}

/* Yazdırma ----------------------------------------------------------------------------------------------- */
@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .topbar, .sidebar, .site-footer, .print-bar, .no-print, .page-head .actions, .global-search { display: none !important; }
  .content { margin: 0; padding: 0; }
  .report-body { background: #fff; padding: 0; }
  .sheet { box-shadow: none; margin: 0; width: auto; min-height: 297mm; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  .card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
}
