/* ---------- Yazı tipi (yerel; kapalı devrede internet gerekmez) ---------- */
/* "Plex" = IBM Plex Sans harfleri + IBM Plex Mono rakamları (rakam yüzleri sonra tanımlanır, öncelik onlarda) */
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/plex/ibm-plex-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-700.woff2") format("woff2"); unicode-range: U+0030-0039; }
/* Kodlar ve anahtarlar için tam IBM Plex Mono */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/plex/ibm-plex-mono-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Renkler ---------- */
:root {
  --c-primary: #2563eb;
  --c-primary-600: #1d4ed8;
  --c-primary-50: #eff4ff;
  --c-primary-100: #dbe6fe;
  --c-ink: #111827;
  --c-ink-2: #374151;
  --c-muted: #6b7280;
  --c-line: #e5e7eb;
  --c-line-2: #f0f1f4;
  --c-bg: #f6f7f9;
  --c-surface: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 256px;

  --bs-body-font-family: "Plex", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-font-monospace: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --bs-body-font-size: .9rem;
  --bs-body-color: var(--c-ink-2);
  --bs-body-bg: var(--c-bg);
  --bs-primary: var(--c-primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--c-primary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--c-primary-600);
  --bs-link-hover-color-rgb: 29, 78, 216;
  --bs-border-color: var(--c-line);
  --bs-border-radius: var(--radius-sm);
  --bs-secondary-color: var(--c-muted);
  --bs-emphasis-color: var(--c-ink);
}

body { -webkit-font-smoothing: antialiased; background: var(--c-bg); }
h1, h2, h3, h4, h5, h6 { color: var(--c-ink); letter-spacing: -.01em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.icon { flex: none; vertical-align: -0.2em; }
.text-secondary { color: var(--c-muted) !important; }

/* ---------- Uygulama iskeleti ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: var(--c-surface); border-right: 1px solid var(--c-line);
  display: flex; flex-direction: column; padding: 16px 12px;
  transition: transform .2s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--c-ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
img.brand-mark { background: none; box-shadow: 0 2px 6px -1px rgba(29,78,216,.35); }
.brand-name b, .login-marka b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; color: var(--bs-primary, #1d4ed8); letter-spacing: -.02em; }
.login-marka { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.login-marka img { border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); }
.login-marka b { color: #9BD8FF; }
.brand-name { display: block; font-weight: 650; font-size: .95rem; line-height: 1.2; }
.brand-sub { display: block; font-size: .72rem; color: var(--c-muted); }

.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--c-ink-2); font-weight: 500; }
.side-nav a .icon { color: #9ca3af; }
.side-nav a:hover { background: var(--c-line-2); text-decoration: none; color: var(--c-ink); }
.side-nav a.active { background: var(--c-primary-50); color: var(--c-primary-600); }
.side-nav a.active .icon { color: var(--c-primary); }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; font-weight: 600; padding: 18px 10px 6px; }

.side-user { border-top: 1px solid var(--c-line); padding-top: 12px; }
.side-user-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px;
  border-radius: var(--radius-sm); color: var(--c-ink); min-width: 0; }
.side-user-btn > span:last-child { min-width: 0; }
.side-user-btn:hover { background: var(--c-line-2); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--c-primary-100); color: var(--c-primary-600);
  display: grid; place-items: center; font-weight: 600; font-size: .8rem; }
.dropdown-menu { border-color: var(--c-line); border-radius: 10px; padding: 6px; font-size: .875rem; }
.dropdown-item { border-radius: 6px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; }

.shell { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 28px; background: rgba(246, 247, 249, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.topbar-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 10px; padding: 0 12px; height: 38px; color: var(--c-muted); }
.topbar-search:focus-within { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.topbar-search input { border: 0; outline: 0; flex: 1; background: transparent; color: var(--c-ink); min-width: 0; }
.content { padding: 28px; max-width: 1440px; width: 100%; }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 10px 40px rgba(0,0,0,.15); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(17,24,39,.35); z-index: 1035; }
  .shell { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
}

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-head h1 { font-size: 1.5rem; margin: 0; font-weight: 650; }
.page-head .sub { color: var(--c-muted); margin-top: 4px; }
.page-head .eyebrow { font-size: .8rem; color: var(--c-muted); font-weight: 500; margin-bottom: 2px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Kartlar ---------- */
.card { border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); background: var(--c-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--c-line); padding: 14px 18px; font-weight: 600; color: var(--c-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 18px; }
.card > .table-responsive:last-child .table, .card > .list-group:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.list-group-item { border-color: var(--c-line-2); padding: 11px 18px; }

.stat { padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat .chip { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat .label { color: var(--c-muted); font-size: .8rem; font-weight: 500; }
.stat .value { font-size: clamp(1.15rem, 1.55vw, 1.5rem); font-weight: 650; line-height: 1.15; color: var(--c-ink); letter-spacing: -.03em; }
.chip-blue { background: #eff4ff; color: #2563eb; }
.chip-green { background: #ecfdf3; color: #039855; }
.chip-amber { background: #fffaeb; color: #dc6803; }
.chip-violet { background: #f4f3ff; color: #6941c6; }
.chip-red { background: #fef3f2; color: #d92d20; }

/* ---------- Tablolar ---------- */
.table { --bs-table-bg: transparent; margin: 0; font-size: .875rem; }
.table > :not(caption) > * > * { padding: 11px 14px; border-bottom-color: var(--c-line-2); vertical-align: middle; }
.table thead th { background: #f9fafb; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted);
  font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--c-line); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f9fafb; }
.table-sm > :not(caption) > * > * { padding: 8px 14px; }
.table tbody tr:last-child > * { border-bottom: 0; }
.code { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .84em; white-space: nowrap;
  font-weight: 500; letter-spacing: -.01em; }
a.code { color: var(--c-primary-600); }
.muted-line { display: block; color: var(--c-muted); font-size: .8rem; margin-top: 1px; }
.empty { text-align: center; color: var(--c-muted); padding: 40px 16px !important; }

/* ---------- Rozetler ---------- */
.badge { font-weight: 500; font-size: .75rem; padding: .32em .65em; border-radius: 999px; letter-spacing: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 6px; }
.badge-soft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.b-green { background: #ecfdf3; color: #067647; }
.b-gray { background: #f2f4f7; color: #344054; }
.b-amber { background: #fffaeb; color: #b54708; }
.b-dark { background: #e4e7ec; color: #1d2939; }
.b-red { background: #fef3f2; color: #b42318; }
.b-slate { background: #f8f9fc; color: #667085; border: 1px solid #eaecf0; }
.b-blue { background: #eff4ff; color: #1d4ed8; }

/* ---------- Butonlar ---------- */
.btn { --bs-btn-font-weight: 500; --bs-btn-font-size: .875rem; --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .5rem;
  --bs-btn-border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-sm { --bs-btn-font-size: .8rem; --bs-btn-padding-x: .65rem; --bs-btn-padding-y: .32rem; }
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary-600);
  --bs-btn-hover-border-color: var(--c-primary-600); --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af;
  --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.btn-outline-primary { --bs-btn-color: var(--c-primary-600); --bs-btn-border-color: #bfd0fb; --bs-btn-hover-bg: var(--c-primary-50);
  --bs-btn-hover-color: var(--c-primary-600); --bs-btn-hover-border-color: #93b4f8; --bs-btn-active-bg: var(--c-primary-100);
  --bs-btn-active-color: var(--c-primary-600); --bs-btn-active-border-color: #93b4f8; background: #fff; }
.btn-outline-secondary, .btn-light { --bs-btn-color: var(--c-ink-2); --bs-btn-border-color: #d0d5dd; --bs-btn-bg: #fff;
  --bs-btn-hover-bg: #f9fafb; --bs-btn-hover-color: var(--c-ink); --bs-btn-hover-border-color: #c4c9d2;
  --bs-btn-active-bg: #f2f4f7; --bs-btn-active-color: var(--c-ink); --bs-btn-active-border-color: #c4c9d2; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn-outline-danger { --bs-btn-color: #b42318; --bs-btn-border-color: #fecdca; --bs-btn-hover-bg: #fef3f2; --bs-btn-hover-color: #b42318;
  --bs-btn-hover-border-color: #fda29b; background: #fff; }
.btn-warning { --bs-btn-bg: #f79009; --bs-btn-border-color: #f79009; --bs-btn-color: #fff; --bs-btn-hover-bg: #dc6803;
  --bs-btn-hover-border-color: #dc6803; --bs-btn-hover-color: #fff; }
.btn-link { --bs-btn-color: var(--c-muted); --bs-btn-hover-color: var(--c-ink); text-decoration: none; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; color: var(--c-ink-2); }
.btn-icon:hover { background: var(--c-line-2); }

/* ---------- Formlar ---------- */
.form-label { font-weight: 500; color: var(--c-ink); font-size: .85rem; margin-bottom: 6px; }
.form-control, .form-select { border-color: #d0d5dd; border-radius: var(--radius-sm); padding: .5rem .75rem; font-size: .875rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); color: var(--c-ink); }
.form-control-sm, .form-select-sm { padding: .32rem .6rem; font-size: .8rem; }
.form-control:focus, .form-select:focus { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.form-text { color: var(--c-muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-section { font-size: .95rem; font-weight: 600; color: var(--c-ink); margin: 0; }
.required::after { content: " *"; color: #d92d20; }
.validation-summary-valid { display: none; }
.field-validation-error { color: #d92d20; font-size: .8rem; display: block; margin-top: 4px; }
.input-validation-error { border-color: #fda29b !important; }
.form-narrow { max-width: 720px; }

.filter-bar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.filter-bar .form-label { font-size: .75rem; color: var(--c-muted); margin-bottom: 4px; }

/* ---------- Uyarılar ---------- */
.alert { border-radius: 10px; border-width: 1px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: .875rem; }
.alert .icon { margin-top: 1px; }
.alert-dismissible { padding-right: 3rem; }
.alert-success { background: #f6fef9; border-color: #abefc6; color: #067647; }
.alert-danger { background: #fffbfa; border-color: #fecdca; color: #b42318; }
.alert-warning { background: #fffcf5; border-color: #fedf89; color: #93370d; }
.alert-secondary { background: #f9fafb; border-color: var(--c-line); color: var(--c-ink-2); }
.alert-info { background: var(--c-primary-50); border-color: var(--c-primary-100); color: #1e40af; }

/* ---------- Ayrıntı sayfaları ---------- */
dl.props { display: grid; grid-template-columns: 10rem 1fr; gap: 10px 16px; margin: 0; }
dl.props dt { color: var(--c-muted); font-weight: 500; }
dl.props dd { margin: 0; color: var(--c-ink); }
@media (max-width: 576px) { dl.props { grid-template-columns: 1fr; gap: 2px; } dl.props dt { margin-top: 10px; } }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--c-line); background: #f9fafb; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.thumbs a:hover img { transform: scale(1.04); }

.qr-box img { width: 168px; height: 168px; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--c-line); padding: 8px; background: #fff; }
.holder { display: flex; align-items: center; gap: 12px; }
.holder .avatar { width: 40px; height: 40px; font-size: .9rem; }

.file-row { display: flex; align-items: center; gap: 12px; }
.file-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #f2f4f7; color: var(--c-muted); flex: none; }

.pagination { --bs-pagination-border-radius: 8px; --bs-pagination-color: var(--c-ink-2); --bs-pagination-active-bg: var(--c-primary);
  --bs-pagination-active-border-color: var(--c-primary); --bs-pagination-font-size: .85rem; gap: 4px; }
.pagination .page-link { border-radius: 8px !important; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-600);
  font-weight: 600; font-size: .8rem; display: grid; place-items: center; flex: none; }

/* Toplu zimmet: demirbaş seçme listesi */
.pick-list { max-height: 420px; overflow-y: auto; }
.pick-list label { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--c-line-2); cursor: pointer; margin: 0; }
.pick-list label:hover { background: #f9fafb; }
.pick-list input:checked + span { color: var(--c-ink); }
.pick-list label:has(input:checked) { background: var(--c-primary-50); }

/* ---------- Giriş ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-side h2 { color: #fff; font-size: 1.9rem; font-weight: 650; max-width: 420px; line-height: 1.25; }
.login-side p { color: rgba(255,255,255,.8); max-width: 420px; }
.login-side .feat { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); margin-top: 10px; }
.login-main { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.login-box { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .login-page { grid-template-columns: 1fr; } .login-side { display: none; } }

.scan-count { font-size: 3.5rem; font-weight: 700; color: var(--c-ink); letter-spacing: -.03em; line-height: 1; }
.card.stat { flex-direction: row; }

/* ---------- İşlem kaydı / zaman çizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 8px 18px 14px; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.timeline li + li { border-top: 1px solid var(--c-line-2); }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: currentColor; }
.timeline .dot.b-green { color: #12b76a; } .timeline .dot.b-blue { color: #2e90fa; } .timeline .dot.b-red { color: #f04438; }
.t-sum { color: var(--c-ink); font-weight: 500; }
.t-meta { color: var(--c-muted); font-size: .8rem; margin-top: 1px; }
.t-changes { margin-top: 6px; font-size: .82rem; background: #f9fafb; border: 1px solid var(--c-line-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; }
.t-changes .old { color: #b42318; text-decoration: line-through; text-decoration-color: rgba(180,35,24,.4); }
.t-changes .new { color: #067647; font-weight: 500; }

.audit-day { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted);
  padding: 10px 18px; background: #f9fafb; border-bottom: 1px solid var(--c-line); border-top: 1px solid var(--c-line); }
.audit-day:first-child { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.audit-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--c-line-2); }
.audit-row:last-child { border-bottom: 0; }
.audit-time { color: var(--c-muted); font-size: .82rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.audit-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.audit-head .t-sum a { color: inherit; }
.audit-who { color: var(--c-muted); font-size: .8rem; }
.audit-row details { margin-top: 6px; }
.audit-row summary { color: var(--c-primary-600); font-size: .8rem; cursor: pointer; list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.audit-row summary::-webkit-details-marker { display: none; }
.audit-row details[open] summary { margin-bottom: 6px; }
.change-table { font-size: .82rem; width: 100%; max-width: 760px; border-collapse: collapse; background: #f9fafb; border: 1px solid var(--c-line-2); border-radius: 8px; overflow: hidden; }
.change-table td, .change-table th { padding: 6px 10px; border-bottom: 1px solid var(--c-line-2); vertical-align: top; }
.change-table th { color: var(--c-muted); font-weight: 500; width: 30%; text-align: left; }
.change-table tr:last-child > * { border-bottom: 0; }
.change-table .old { color: #b42318; text-decoration: line-through; text-decoration-color: rgba(180,35,24,.4); }
.change-table .new { color: #067647; font-weight: 500; }

.ledger-stats .stat { align-items: flex-start; }
.ledger-stats .stat > div { min-width: 0; }
.ledger-stats .label { white-space: nowrap; }
.ledger-stats .value { font-size: 1.3rem; white-space: nowrap; }
.ledger-stats .hint { color: var(--c-muted); font-size: .76rem; margin-top: 2px; line-height: 1.35; }

/* Lisans uyarı şeridi */
.license-bar { display: flex; align-items: center; gap: 10px; padding: 10px 28px; font-size: .875rem; border-bottom: 1px solid; flex-wrap: wrap; }
.license-bar a { margin-left: auto; font-weight: 600; color: inherit; }
.license-bad { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.license-warn { background: #fffaeb; color: #93370d; border-color: #fedf89; }
@media (max-width: 991.98px) { .license-bar { padding: 10px 16px; } }

/* ---------- Ortak filtre çubuğu ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 10px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.tb-search { flex: 1 1 200px; min-width: 170px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin: 0;
  border: 1px solid #d0d5dd; border-radius: var(--radius-sm); color: var(--c-muted); background: #fff; cursor: text; }
.tb-search:focus-within { border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.tb-search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--c-ink); font-size: .875rem; }
.tb-select, .tb-field input { height: 38px; border: 1px solid #d0d5dd; border-radius: var(--radius-sm); background-color: #fff; color: var(--c-ink-2);
  font-size: .85rem; padding: 0 28px 0 11px; max-width: 158px; }
.tb-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; cursor: pointer; text-overflow: ellipsis; }
.tb-select:focus, .tb-field input:focus { outline: 0; border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.tb-select.active, .tb-field input.active { border-color: #93b4f8; background-color: var(--c-primary-50); color: var(--c-primary-600); font-weight: 500; }
.tb-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; color: var(--c-muted); }
.tb-field input { padding: 0 10px; }
.tb-clear { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--c-muted); padding: 0 6px; height: 38px; }
.tb-clear:hover { color: #b42318; text-decoration: none; }
.tb-count { margin-left: auto; font-size: .82rem; color: var(--c-muted); white-space: nowrap; padding: 0 4px; }
@media (max-width: 767.98px) { .tb-select, .tb-field { flex: 1 1 140px; max-width: none; } .tb-field input { flex: 1; } .tb-count { margin-left: 0; } }

/* Ana sayfa hızlı işlemler */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quick { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); color: var(--c-ink); box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick:hover { text-decoration: none; border-color: #93b4f8; box-shadow: 0 4px 14px rgba(37,99,235,.10); transform: translateY(-1px); }
.quick .chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.quick strong { display: block; font-weight: 600; font-size: .95rem; }
.quick small { display: block; color: var(--c-muted); font-size: .8rem; }

/* Onay kutuları: daha belirgin */
.form-check-input { width: 1.15em; height: 1.15em; border: 1.5px solid #98a2b3; cursor: pointer; }
.form-check-input:hover { border-color: var(--c-primary); }
.form-check-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.table .form-check-input { margin-top: 0; vertical-align: middle; }
/* Seçim listelerinde işaretli satır belirgin */
.pick-list label { border-left: 3px solid transparent; }
.pick-list label:has(input:checked) { background: var(--c-primary-50); border-left-color: var(--c-primary); }
.pick-list label:has(input:checked) .fw-medium { color: var(--c-primary-600); }
.table tbody tr:has(input[type=checkbox]:checked) > * { background: var(--c-primary-50); }

/* ---------- Sayım (mobil öncelikli) ---------- */
.scan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 991.98px) { .scan-layout { grid-template-columns: 1fr; } }
.scan-counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-direction: row; flex-wrap: wrap; }
.scan-open { padding: 14px 22px; font-size: 1.05rem; border-radius: 12px; }
@media (max-width: 575.98px) { .scan-open { width: 100%; } }
.scan-video { position: relative; background: #000; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4 / 3; }
.scan-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scan-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; }
.scan-flash.yesil { background: rgba(18, 183, 106, .45); opacity: 1; transition: none; }
.scan-flash.gri { background: rgba(255, 255, 255, .35); opacity: 1; transition: none; }
.scan-flash.kirmizi { background: rgba(240, 68, 56, .45); opacity: 1; transition: none; }
.scan-new { animation: yeniSatir 1.6s ease-out; }
@keyframes yeniSatir { from { background: #dcfae6; } to { background: transparent; } }
.min-w-0 { min-width: 0; }

/* ---------- Telefon düzeni ---------- */
@media (max-width: 767.98px) {
  .page-head { align-items: flex-start; margin-bottom: 16px; }
  .page-head h1 { font-size: 1.3rem; }
  .page-actions { width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .quick small { display: none; }
  .stat { padding: 14px; gap: 10px; }
  .stat .chip { width: 36px; height: 36px; }
  .stat .value { font-size: 1.25rem; }
  .table > :not(caption) > * > * { padding: 10px 10px; }
  .card-header { padding: 12px 14px; }
  .toolbar .tb-search { flex-basis: 100%; }
  .toolbar .tb-select, .toolbar .tb-field { flex: 1 1 calc(50% - 8px); }
  .topbar-search input::placeholder { font-size: .8rem; }
}
@media (max-width: 767.98px) {
  .toolbar .tb-select { min-width: 0; width: 0; }
  .card.stat { flex-direction: column; align-items: flex-start; height: 100%; }
  .stat .value { font-size: 1.15rem; word-break: break-word; }
}

/* ---------- Bildirim penceresi (uyarı / hata / onay) ---------- */
.bildirim-dialog { max-width: 420px; }
.bildirim-dialog .modal-content { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 24px 48px rgba(16,24,40,.18); }
.bildirim-dialog .modal-body { padding: 28px 28px 8px; text-align: center; }
.bildirim-dialog .modal-footer { border: 0; padding: 16px 28px 24px; justify-content: center; gap: 10px; }
.bildirim-dialog .modal-footer .btn { min-width: 120px; margin: 0; }
.bildirim-ikon { display: none; width: 52px; height: 52px; border-radius: 50%; place-items: center; margin: 0 auto 14px; }
.bildirim-hata [data-ikon="hata"] { display: grid; background: #fef3f2; color: #d92d20; box-shadow: 0 0 0 8px #fffbfa; }
.bildirim-soru [data-ikon="soru"] { display: grid; background: #fffaeb; color: #dc6803; box-shadow: 0 0 0 8px #fffcf5; }
.bildirim-basari [data-ikon="basari"] { display: grid; background: #ecfdf3; color: #079455; box-shadow: 0 0 0 8px #f6fef9; }
.bildirim-baslik { font-size: 1.1rem; font-weight: 600; color: var(--c-ink); margin: 0 0 6px; }
.bildirim-metin { color: var(--c-ink-2); font-size: .92rem; }
.bildirim-metin p { margin: 0; }
.bildirim-metin ul { text-align: left; margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.modal-backdrop.show { opacity: .35; }

/* İşlem başarılı: ortada kısa süre görünen bildirim */
.bildirim-toast { position: fixed; left: 50%; top: 50%; z-index: 1090; transform: translate(-50%, -40%) scale(.96); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 14px;
  background: #101828; color: #fff; font-weight: 500; box-shadow: 0 20px 40px rgba(16,24,40,.25); transition: opacity .2s, transform .2s; }
.bildirim-toast .icon, .bildirim-toast svg { color: #4ade80; flex: none; }
.bildirim-toast.acik { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Çevrimdışı katmanı ---------- */
.cevrimdisi-serit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 24px; font-size: .86rem; border-bottom: 1px solid; }
.cevrimdisi-serit.serit-uyari { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.cevrimdisi-serit.serit-bilgi { background: #eff4ff; border-color: #c7d7fe; color: #1d4ed8; }
.cevrimdisi-serit a { color: inherit; font-weight: 600; text-decoration: underline; }
.serit-rozet { background: #f79009; color: #fff; border-radius: 99px; padding: 1px 9px; font-size: .78rem; font-weight: 600; }
.taslak-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 14px;
  background: #eff4ff; border: 1px solid #c7d7fe; color: #1e3a8a; border-radius: 10px; font-size: .86rem; }
.taslak-dugmeler { display: flex; gap: 6px; }
.form-bekliyor { position: relative; }
.form-bekliyor::before { content: "Bağlantı bekleniyor — bağlantı gelince otomatik gönderilecek"; display: block; margin-bottom: 10px; padding: 8px 12px;
  border-radius: 8px; background: #fffaeb; color: #93370d; font-size: .84rem; font-weight: 500; border: 1px dashed #fedf89; }
@media (max-width: 767px) { .cevrimdisi-serit { padding: 10px 16px; } }
.scan-flash.sari { background: rgba(247, 144, 9, .45); opacity: 1; transition: none; }

/* Form hataları yalnızca ortadaki pencerede yazılır; alan kırmızı çerçeveyle işaretli kalır. */
.validation-summary-valid, .validation-summary-errors, .field-validation-error { display: none !important; }
.input-validation-error, .form-control.input-validation-error, .form-select.input-validation-error { border-color: #f04438 !important; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.form-check-input.input-validation-error { outline: 2px solid #f04438; outline-offset: 2px; }
.cd-satir { cursor: pointer; } .cd-satir:hover { background: #fafbfc; }
