/* CECA BI tasarım sistemi. AlpetPortal ve CecaIntranet ile aynı dil: Inter + Poppins, Material Symbols,
   cam üst menü, koyu yönetim menüsü, bento kartlar, alt gezinme. Renkler CECA logosundan gelir (white label: core/theme.js). */
@font-face { font-family: 'Inter'; src: url('../lib/inter/inter-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Inter'; src: url('../lib/inter/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  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: 'Poppins'; src: url('../lib/poppins/poppins-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Poppins'; src: url('../lib/poppins/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: 'Poppins'; src: url('../lib/poppins/poppins-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Poppins'; src: url('../lib/poppins/poppins-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F; }

:root {
  /* Marka: theme.js ezer */
  --ceca-primary: #242E67; --ceca-primary-dark: #1E2654; --ceca-primary-soft: #E9EAF0; --ceca-on-primary: #fff;
  --ceca-secondary: #50AFED; --ceca-secondary-soft: #DEF0FB; --ceca-on-secondary: #161C3B;
  --ceca-vivid: #3868A3; --ceca-deep: #171D43; --ceca-bg: #F7F9FB;
  --ceca-primary-rgb: 36, 46, 103; --ceca-secondary-rgb: 80, 175, 237;
  --ceca-grad: linear-gradient(135deg, var(--ceca-primary), var(--ceca-vivid));
  /* Nötr */
  --surface: #fff; --ink: #1C2733; --ink-2: #454F5B; --muted: #66727F; --line: #DFE4EA; --line-2: #EEF1F4; --hover: #F7F9FB;
  /* Anlamsal: durum yalnızca durum için */
  --ok: #157A5B; --ok-bg: #E4F5EE; --warn: #92600A; --warn-bg: #FFF1E3; --bad: #B3321E; --bad-bg: #FBEAEA; --off: #5F667F; --off-bg: #EEF1F4;
  --green: #1F9D55; --orange: #FF8828; --violet: #7B5CD6;
  /* Yerleşim */
  --radius: 12px; --radius-sm: 9px; --header-h: 72px; --page-max: 1480px; --side-w: 264px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07); --shadow: 0 4px 16px rgba(16, 24, 40, .08); --shadow-lg: 0 14px 36px rgba(var(--ceca-primary-rgb), .16);
  --ease: .18s ease;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; --font-display: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--font); --bs-body-color: var(--ink); --bs-body-bg: var(--ceca-bg); --bs-border-color: var(--line);
  --bs-primary: var(--ceca-primary); --bs-link-color: var(--ceca-primary); --bs-link-hover-color: var(--ceca-vivid); --bs-link-color-rgb: var(--ceca-primary-rgb);
}
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--ceca-bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
a { color: var(--ceca-primary); text-decoration: none; }
a:hover { color: var(--ceca-vivid); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ceca-secondary); outline-offset: 2px; }
.container-page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding-inline: 2rem; }

/* Bootstrap uyarlamaları */
.btn { --bs-btn-border-radius: var(--radius-sm); --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: .9rem; --bs-btn-font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all var(--ease); white-space: nowrap; }
.btn-sm { --bs-btn-padding-y: .34rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .82rem; }
.btn-lg { --bs-btn-padding-y: .72rem; --bs-btn-padding-x: 1.3rem; --bs-btn-font-size: .98rem; --bs-btn-border-radius: 11px; }
.btn-primary { --bs-btn-bg: var(--ceca-primary); --bs-btn-border-color: var(--ceca-primary); --bs-btn-color: var(--ceca-on-primary); --bs-btn-hover-bg: var(--ceca-primary-dark); --bs-btn-hover-border-color: var(--ceca-primary-dark); --bs-btn-hover-color: var(--ceca-on-primary); --bs-btn-active-bg: var(--ceca-primary-dark); --bs-btn-active-border-color: var(--ceca-primary-dark); --bs-btn-active-color: var(--ceca-on-primary); --bs-btn-disabled-bg: var(--ceca-primary); --bs-btn-disabled-border-color: var(--ceca-primary); --bs-btn-disabled-color: var(--ceca-on-primary); box-shadow: 0 2px 8px rgba(var(--ceca-primary-rgb), .22); }
.btn-outline-primary { --bs-btn-color: var(--ceca-primary); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--ceca-primary-soft); --bs-btn-hover-border-color: var(--ceca-primary); --bs-btn-hover-color: var(--ceca-primary); --bs-btn-active-bg: var(--ceca-primary-soft); --bs-btn-active-color: var(--ceca-primary); --bs-btn-active-border-color: var(--ceca-primary); background: var(--surface); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--line-2); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--line-2); --bs-btn-active-color: var(--ink); background: var(--surface); }
.btn-accent { background: var(--ceca-secondary); color: var(--ceca-on-secondary); border: 0; }
.btn-accent:hover { background: var(--ceca-secondary); color: var(--ceca-on-secondary); filter: brightness(1.06); transform: translateY(-1px); }
.btn-icon { width: 34px; height: 34px; padding: 0; border: 0; color: var(--muted); background: transparent; border-radius: var(--radius-sm); --bs-btn-font-size: 1rem; }
.btn-icon.btn-sm { width: 28px; height: 28px; }
.btn-icon:hover { background: var(--line-2); color: var(--ceca-primary); }
.btn-icon.text-danger:hover { background: var(--bad-bg); color: var(--bad) !important; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); font-size: 1.1rem; transition: all var(--ease); flex: none; }
.icon-btn:hover { background: var(--line-2); color: var(--ceca-primary); }
.icon-btn .badge-dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.form-control, .form-select { border-color: var(--line); border-radius: 10px; font-size: .92rem; color: var(--ink); background-color: var(--surface); padding-block: .52rem; transition: border-color var(--ease), box-shadow var(--ease); }
.form-control-sm, .form-select-sm { border-radius: 8px; font-size: .82rem; padding-block: .3rem; }
.form-control-lg { font-size: 1rem; padding-block: .7rem; border-radius: 11px; }
.form-control:focus, .form-select:focus { border-color: var(--ceca-primary); box-shadow: 0 0 0 3px rgba(var(--ceca-primary-rgb), .1); }
.form-control::placeholder { color: #98A2AE; }
.form-label { font-weight: 600; font-size: .82rem; color: var(--ink-2); margin-bottom: 5px; }
.form-text { color: var(--muted); font-size: .78rem; }
.form-check-input { border-color: #C7CFD8; }
.form-check-input:checked { background-color: var(--ceca-primary); border-color: var(--ceca-primary); }
.form-check-input:focus { border-color: var(--ceca-primary); box-shadow: 0 0 0 3px rgba(var(--ceca-primary-rgb), .1); }
.req { color: var(--bad); }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 9px 12px; border-radius: var(--radius-sm); font-size: .85rem; }
.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 12px; --bs-dropdown-font-size: .88rem; --bs-dropdown-link-active-bg: var(--ceca-primary-soft); --bs-dropdown-link-active-color: var(--ceca-primary); --bs-dropdown-link-hover-bg: var(--line-2); box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown-item { border-radius: 8px; padding: 7px 10px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.dropdown-item .ic { color: var(--ceca-primary); }
.dropdown-item.text-danger .ic { color: inherit; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { border-color: var(--line-2); padding: 1rem 1.25rem; }
.modal-footer { border-color: var(--line-2); padding: .8rem 1.25rem; }
.modal-title { font-size: 1.06rem; }
.modal-backdrop.show { opacity: .4; }
.swal2-popup { font-family: var(--font); border-radius: 16px; font-size: .92rem; }
.swal2-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.swal2-html-container { color: var(--ink-2); font-size: .92rem; }
.swal2-styled.swal2-confirm { background: var(--ceca-primary); border-radius: var(--radius-sm); }
.swal2-actions { gap: 4px; }
.swal2-toast { border-radius: 12px !important; box-shadow: var(--shadow-lg) !important; }
.swal2-toast .swal2-title { font-family: var(--font); font-size: .88rem; font-weight: 600; }

/* Rozet ve etiket */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 7px; border-radius: 99px; white-space: nowrap; }
.status-ok { color: var(--ok); background: var(--ok-bg); } .status-off { color: var(--off); background: var(--off-bg); } .status-draft { color: var(--ceca-primary); background: var(--ceca-primary-soft); } .status-warn { color: var(--warn); background: var(--warn-bg); } .status-bad { color: var(--bad); background: var(--bad-bg); }
.tag { display: inline-flex; gap: 3px; align-items: center; background: var(--line-2); color: var(--ink-2); font-size: .76rem; font-weight: 500; padding: 2px 9px; border-radius: 99px; margin: 1px 2px 1px 0; }
.proto-note { display: flex; gap: 8px; font-size: .78rem; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 8px 11px; }

/* Üst menü: cam başlık */
.app-header { position: sticky; top: 0; z-index: 1030; height: var(--header-h); flex-shrink: 0; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; justify-self: start; }
.brand img { height: 36px; width: auto; }
.brand-name { font-size: 1.2rem; color: var(--ceca-primary); letter-spacing: -.02em; white-space: nowrap; }
.brand-name b { color: var(--ceca-secondary); margin-inline: 2px; }
/* Ortalanmış menü: açık zemin üzerinde hap */
.main-nav { display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--line-2); border-radius: 14px; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 7px 18px; border-radius: 11px; color: var(--ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; transition: all var(--ease); }
.main-nav a:hover { color: var(--ceca-primary); background: rgba(255, 255, 255, .7); }
.main-nav a.active { background: var(--ceca-primary); color: var(--ceca-on-primary); font-weight: 600; box-shadow: 0 3px 10px rgba(var(--ceca-primary-rgb), .28); }
.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.avatar { border-radius: 50%; background: var(--ceca-grad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .74rem; width: 34px; height: 34px; }
.avatar.lg { width: 66px; height: 66px; font-size: 1.3rem; border: 3px solid rgba(255, 255, 255, .55); }
.profile-trigger { display: flex; align-items: center; gap: 9px; padding: 4px 11px 4px 4px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); transition: all var(--ease); text-align: left; margin-left: 4px; }
.profile-trigger:hover { box-shadow: var(--shadow-sm); border-color: var(--ceca-primary); }
.profile-trigger .who { line-height: 1.2; }
.profile-trigger .who b { display: block; font-size: .83rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.profile-trigger .who span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.profile-trigger > .ic { color: var(--muted); font-size: 1.05rem; }
.page { padding-block: 1.25rem 3rem; flex: 1 0 auto; }
.area-user { display: flex; flex-direction: column; min-height: 100%; }
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: .9rem; font-size: .8rem; color: var(--muted); flex-shrink: 0; }
.site-foot .container-page { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Çekmece: kenardan boşluklu, yuvarlak */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 30, 50, .4); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all var(--ease); z-index: 1050; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 14px; right: 14px; bottom: 14px; width: 348px; max-width: calc(100vw - 28px); background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: -12px 0 44px rgba(0, 0, 0, .16); transform: translateX(calc(100% + 18px)); transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s; z-index: 1051; display: flex; flex-direction: column; visibility: hidden; }
.drawer.left { right: auto; left: 14px; box-shadow: 12px 0 44px rgba(0, 0, 0, .16); transform: translateX(calc(-100% - 18px)); }
.drawer.open { transform: none; visibility: visible; }
.drawer-header { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-2); }
.drawer-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.head-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ceca-primary-soft); color: var(--ceca-primary); font-size: .92rem; flex: none; }
.drawer-body { padding: 14px; overflow-y: auto; flex: 1; }
.profile-card { text-align: center; padding: 20px 16px; background: var(--ceca-grad); color: #fff; border-radius: var(--radius); margin-bottom: 12px; position: relative; overflow: hidden; }
.profile-card::after { content: ''; position: absolute; width: 150px; height: 150px; right: -50px; top: -60px; border-radius: 24%; transform: rotate(45deg); border: 20px solid rgba(255, 255, 255, .09); }
.profile-card .avatar { margin: 0 auto 8px; }
.profile-card h4 { font-size: 1.02rem; color: #fff; margin: 0; }
.profile-card p { font-size: .8rem; opacity: .9; margin: 2px 0 0; }
.drawer-menu { list-style: none; margin: 0 0 10px; padding: 0; }
.drawer-menu a, .drawer-menu button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; background: none; border: 0; text-align: left; font-size: .92rem; }
.drawer-menu a:hover, .drawer-menu button:hover { background: var(--line-2); color: var(--ceca-primary); }
.drawer-menu a.active { background: var(--ceca-primary-soft); color: var(--ceca-primary); font-weight: 600; }
.drawer-menu .danger { color: var(--bad); }
.drawer-menu .danger:hover { background: var(--bad-bg); color: var(--bad); }
.drawer-menu .divider { height: 1px; background: var(--line-2); margin: 6px 0; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; gap: 11px; padding: 11px 8px; border-bottom: 1px solid var(--line-2); border-radius: 8px; }
.notif-item.unread { background: var(--ceca-secondary-soft); }
.notif-item p { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--ink); }
.notif-item time { font-size: .75rem; color: var(--muted); }
.notif-mark { background: none; border: 0; font-size: .78rem; font-weight: 600; color: var(--ceca-primary); padding: 2px 4px; }
.notif-mark:hover { text-decoration: underline; }

/* Arama penceresi */
.search-modal { position: fixed; inset: 0; z-index: 1060; background: rgba(15, 30, 50, .45); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; }
.search-modal.open { display: flex; }
.search-box-lg { width: 100%; max-width: 620px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; color: var(--muted); }
.search-input input { flex: 1; border: 0; outline: 0; font-size: 1rem; background: none; color: var(--ink); min-width: 0; }
kbd.key { background: var(--line-2); color: var(--muted); border-radius: 6px; font-size: .72rem; padding: 2px 6px; font-family: var(--font); box-shadow: none; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; list-style: none; margin: 0; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--ceca-primary-soft); color: var(--ceca-primary); outline: 0; }
.search-results small { display: block; font-size: .76rem; color: var(--muted); }
.search-group { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 3px; text-transform: uppercase; }

/* Alt gezinme (telefon) */
.bottom-nav { display: none; }

/* Yönetim alanı */
.area-admin { display: flex; height: auto; min-height: 100%; }
.sidenav { width: var(--side-w); flex: none; background: var(--ceca-deep); color: rgba(255, 255, 255, .8); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 1040; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidenav-brand { display: flex; gap: 11px; align-items: center; color: #fff; padding: 15px 20px; min-height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-display); font-weight: 700; flex: none; }
.sidenav-brand:hover { color: #fff; }
.sidenav-brand img { height: 32px; width: auto; }
.sidenav-brand span { line-height: 1.15; font-size: 1.04rem; white-space: nowrap; }
.sidenav-brand span b { color: var(--ceca-secondary); margin-inline: 2px; }
.sidenav-brand small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; color: var(--ceca-secondary); margin-top: 2px; }
.sidenav-nav { padding: 6px 12px 14px; flex: 1; }
.sidenav-group h6 { font-family: var(--font); font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 15px 12px 6px; }
.sidenav-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: rgba(255, 255, 255, .82); border-radius: 11px; font-size: .9rem; font-weight: 500; margin-bottom: 2px; position: relative; transition: all var(--ease); }
.sidenav-nav a .ic { font-size: 1.2rem; }
.sidenav-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidenav-nav a.active { background: var(--ceca-grad); background-image: linear-gradient(135deg, var(--ceca-vivid), var(--ceca-primary)); color: #fff; font-weight: 600; box-shadow: 0 4px 16px rgba(var(--ceca-secondary-rgb), .3); }
.sidenav-nav a.active::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 0 4px 4px 0; background: var(--ceca-secondary); }
.sidenav-back { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; flex: none; }
.sidenav-back:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 0 28px; min-height: var(--header-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.admin-top-title { min-width: 0; }
.admin-top h1 { font-size: 1.14rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top-title small { color: var(--muted); font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(260px, 24vw); height: 38px; padding: 0 12px; background: var(--line-2); border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: .86rem; text-align: left; }
.top-search:hover { border-color: var(--line); background: var(--surface); }
.top-search kbd { margin-left: auto; background: var(--surface); }
.btn-soft { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .86rem; white-space: nowrap; }
.btn-soft:hover { border-color: var(--ceca-primary); color: var(--ceca-primary); }
.admin-view { padding: 22px 28px 40px; flex: 1; min-width: 0; }
.admin-foot { padding: 10px 28px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
.page-intro { color: var(--muted); margin-bottom: 14px; max-width: 780px; font-size: .9rem; }

/* Kartlar */
.panel, .tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.panel::before, .tile::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--ceca-primary), var(--ceca-secondary)); opacity: .9; }
.panel-flat::before { display: none; }
.panel-pad { padding: 18px; }
.panel-head, .tile-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3, .tile-head h2 { font-size: .98rem; margin: 0; }
.panel-head a, .tile-head a { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--muted); }
.panel-head a:hover, .tile-head a:hover { color: var(--ceca-primary); }
.panel-tools { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.search-box { position: relative; min-width: 230px; }
.search-box .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.05rem; }
.search-box .form-control { padding-left: 35px; }
.search-box.sm { min-width: 0; margin-bottom: 6px; }
.count { color: var(--muted); font-size: .84rem; }
.panel-tools > small { flex: 1 1 160px; min-width: 0; }
.admin-table { margin: 0; --bs-table-hover-bg: var(--hover); --bs-table-bg: transparent; }
.admin-table th { font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); border-bottom-color: var(--line); padding: 10px 14px; white-space: nowrap; background: transparent; }
.admin-table td { padding: 11px 14px; vertical-align: middle; border-color: var(--line-2); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .actions { width: 1%; white-space: nowrap; text-align: right; }
.admin-table td.nowrap { white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { color: var(--muted); font-size: .8rem; }
.empty-state { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty-state .ic { font-size: 2.1rem; display: block; margin-bottom: 8px; color: #B6BEC8; }
.empty-state p { margin: 0; }
.empty-state.wide { grid-column: 1 / -1; }
.seg .nav-link { color: var(--ink-2); padding: 6px 14px; font-weight: 500; font-size: .88rem; border-radius: 8px; }
.seg { background: var(--line-2); border-radius: 11px; padding: 3px; display: inline-flex; }
.seg .nav-link.active { background: var(--surface); color: var(--ceca-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.seg .nav-link:disabled { opacity: .5; }

/* İstatistik kartı */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { --tone: var(--ceca-primary); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tone); border-radius: 14px; padding: 16px 18px; color: inherit; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); transition: all var(--ease); }
a.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--tone); color: #fff; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.stat small { color: var(--muted); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.t-blue { --tone: var(--ceca-primary); } .t-sky { --tone: var(--ceca-vivid); } .t-green { --tone: var(--green); } .t-orange { --tone: var(--orange); } .t-violet { --tone: var(--violet); }
.bar-list { padding: 14px 18px; display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 30px; gap: 12px; align-items: center; font-size: .88rem; }
.bar-row > span:first-child { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 9px; background: var(--line-2); border-radius: 9px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--ceca-grad); border-radius: 9px; }
.bar-row b { font-weight: 600; }
.act-row { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.act-row:last-child { border-bottom: 0; }
.act-row b { font-weight: 600; }
.act-row small { display: block; color: var(--muted); font-size: .76rem; }
.form-drawer { position: fixed; top: 14px; right: 14px; bottom: 14px; width: 640px; max-width: calc(100vw - 28px); background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: -12px 0 44px rgba(0, 0, 0, .16); transform: translateX(calc(100% + 18px)); transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s; z-index: 1051; display: flex; flex-direction: column; visibility: hidden; }
.form-drawer.open { transform: none; visibility: visible; }
.form-drawer.has-rte { width: 900px; }
.form-drawer .drawer-body { padding: 18px; }
.form-drawer-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.img-pick { position: relative; display: grid; place-items: center; width: 100%; padding: 0; border: 1px dashed var(--line); border-radius: 14px; background: var(--hover) center / cover no-repeat; color: var(--muted); overflow: hidden; transition: border-color var(--ease); }
.form-drawer .img-pick { max-height: 200px; }
.img-pick:hover, .img-pick:focus-visible { border-color: var(--ceca-primary); }
.img-pick.has-img { border-style: solid; }
.img-pick .ip-hint { display: block; text-align: center; }
.img-pick .ip-hint .ic { font-size: 2rem; }
.img-pick .ip-hint small { display: block; margin-top: 4px; font-size: .76rem; }
.img-pick .ip-edit { position: absolute; right: 8px; bottom: 8px; display: none; align-items: center; gap: 4px; background: rgba(13, 27, 42, .7); color: #fff; font-size: .76rem; padding: 4px 9px; border-radius: 8px; }
.img-pick.has-img .ip-edit { display: inline-flex; }
.img-pick.has-img .ip-hint { display: none; }
.crop-overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 14px; overflow-y: auto; background: rgba(15, 30, 50, .6); backdrop-filter: blur(3px); z-index: 1090; }
.crop-box { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; max-width: 100%; }
.crop-box h3 { font-size: 1.1rem; margin-bottom: 16px; text-align: center; }
.crop-stage { position: relative; overflow: hidden; background: #111; margin: 0 auto; touch-action: none; cursor: grab; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 18px 4px; color: var(--muted); }
.crop-zoom input { flex: 1; min-width: 0; accent-color: var(--ceca-primary); cursor: pointer; }
.crop-actions { display: flex; gap: 10px; }
.crop-actions .btn { flex: 1; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.var-chip { border: 1px solid var(--line); background: var(--hover); color: var(--ceca-primary); border-radius: 20px; padding: 2px 10px; font-size: .76rem; font-weight: 600; }
.var-chip:hover { background: var(--ceca-primary-soft); }
.jodit-container:not(.jodit_inline) { border-color: var(--line); border-radius: 10px; overflow: hidden; }
.jodit-wysiwyg img { max-width: 100%; height: auto; }
.jodit-wysiwyg table td, .jodit-wysiwyg table th { border: 1px solid var(--line); padding: 6px 10px; }
.jodit-container.jodit_fullsize { position: fixed !important; inset: 0 !important; border-radius: 0; }
.row-thumb { display: block; width: 88px; height: 50px; border-radius: 8px; object-fit: cover; }
.row-thumb.empty { display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.mail-frame { display: block; width: 100%; height: 60vh; border: 0; }
.image-field { display: flex; gap: 12px; align-items: flex-start; }
.image-field > div:last-child { flex: 1; min-width: 0; }
.image-field-preview { width: 110px; height: 66px; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; color: #AEB4C8; font-size: 1.1rem; flex: none; }
.image-field-preview img { width: 100%; height: 100%; object-fit: contain; }

/* Giriş */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); }
.login-side { background-color: var(--ceca-primary); background-image: radial-gradient(620px 420px at 92% 4%, rgba(var(--ceca-secondary-rgb), .38), transparent 70%), radial-gradient(520px 420px at 4% 100%, rgba(var(--ceca-secondary-rgb), .14), transparent 70%), linear-gradient(160deg, var(--ceca-vivid) 0%, var(--ceca-primary) 50%, var(--ceca-deep) 100%); color: #fff; padding: 40px 56px 28px; display: flex; flex-direction: column; gap: 26px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.login-side::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(205deg, #000 0%, transparent 52%); mask-image: linear-gradient(205deg, #000 0%, transparent 52%); pointer-events: none; }
.login-side::after { content: ''; position: absolute; right: -190px; top: -190px; width: 480px; height: 480px; border-radius: 26%; transform: rotate(45deg); border: 54px solid rgba(255, 255, 255, .035); pointer-events: none; }
.login-side > * { position: relative; z-index: 1; }
.login-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.login-logo-chip { width: 48px; height: 48px; background: #fff; border-radius: 13px; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(10, 14, 40, .28); }
.login-logo-chip img { width: 34px; height: auto; }
.login-logo b { color: var(--ceca-secondary); margin-inline: 2px; }
.login-copy { margin-top: auto; max-width: 560px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin-bottom: 12px; }
.login-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--ceca-secondary); }
.login-copy h1 { color: #fff; font-size: clamp(30px, 3vw, 44px); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; }
.login-copy p { color: rgba(255, 255, 255, .84); font-size: 1.02rem; margin: 12px 0 0; }
.login-visual { position: relative; max-width: 600px; width: 100%; margin-right: 34px; animation: lv-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.lv-panel { background: rgba(255, 255, 255, .075); border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; padding: 14px; display: grid; gap: 12px; box-shadow: 0 24px 54px rgba(8, 11, 34, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lv-kpi { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); min-width: 0; }
.lv-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--ceca-secondary-rgb), .2); color: var(--ceca-secondary); font-size: 1.1rem; }
.lv-text { display: grid; gap: 6px; flex: 1; min-width: 0; }
.lv-text b, .lv-text u { display: block; height: 7px; border-radius: 4px; text-decoration: none; }
.lv-text b { width: 78%; background: rgba(255, 255, 255, .55); }
.lv-text u { width: 50%; background: rgba(255, 255, 255, .22); }
.lv-chart { position: relative; height: clamp(104px, 17vh, 170px); border-radius: 12px; background: rgba(8, 11, 34, .16); overflow: hidden; }
.lv-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lv-stop-a { stop-color: var(--ceca-secondary); stop-opacity: .42; }
.lv-stop-b { stop-color: var(--ceca-secondary); stop-opacity: 0; }
.lv-stroke { fill: none; stroke: var(--ceca-secondary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; animation: lv-draw 1.3s .25s ease-out both; }
.lv-bars { position: absolute; inset: 14px 14px 0; display: flex; align-items: flex-end; gap: 7%; }
.lv-bars span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: rgba(255, 255, 255, .11); transform-origin: bottom; animation: lv-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
.lv-bars span:nth-child(2) { animation-delay: .04s; }
.lv-bars span:nth-child(3) { animation-delay: .08s; }
.lv-bars span:nth-child(4) { animation-delay: .12s; }
.lv-bars span:nth-child(5) { animation-delay: .16s; }
.lv-bars span:nth-child(6) { animation-delay: .2s; }
.lv-bars span:nth-child(7) { animation-delay: .24s; }
.lv-bars span:nth-child(8) { animation-delay: .28s; }
.lv-bars span:nth-child(9) { animation-delay: .32s; }
.lv-bars span.on { background: rgba(var(--ceca-secondary-rgb), .34); }
.lv-float { position: absolute; right: -34px; top: 62px; width: 150px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 16px 36px rgba(8, 11, 34, .38); }
.lv-float svg { flex: none; width: 38px; height: 38px; transform: rotate(-90deg); }
.lv-ring, .lv-ring-on { fill: none; stroke-width: 6; }
.lv-ring { stroke: var(--ceca-primary-soft); }
.lv-ring-on { stroke: var(--ceca-secondary); stroke-linecap: round; stroke-dasharray: 68 100; }
.lv-float .lv-text b { background: var(--ceca-primary); }
.lv-float .lv-text u { background: var(--line); }
@keyframes lv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lv-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .login-visual, .lv-bars span, .lv-stroke { animation: none; } }
.login-feats { list-style: none; margin: 0 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; max-width: 634px; }
.login-feats li { display: flex; gap: 10px; align-items: center; font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.lf-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: var(--ceca-secondary); font-size: 1.15rem; }
.login-foot { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.foot-link { color: inherit; font-weight: 600; text-decoration: none; }
.foot-link:hover, .foot-link:focus-visible { color: var(--ceca-primary); text-decoration: underline; text-underline-offset: 2px; }
.login-foot .foot-link:hover, .login-foot .foot-link:focus-visible { color: #fff; }
.login-form { background: var(--ceca-bg); display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login-box { width: 100%; max-width: 410px; }
.login-box > img { height: 62px; margin-bottom: 14px; }
.login-box h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.login-box .sub { color: var(--muted); margin-bottom: 22px; }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; pointer-events: none; }
.input-ic .form-control { padding-left: 42px; }
.input-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 5px 7px; border-radius: 8px; }
.input-eye:hover { color: var(--ceca-primary); background: var(--line-2); }

/* Bento: yönetim özeti ızgarası */
/* Ana sayfa */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.home-top h1 { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.2; }
.home-top p { color: var(--muted); margin: 3px 0 0; font-size: .92rem; }
.hclock { display: flex; align-items: center; gap: 14px; color: #fff; background: var(--ceca-grad); border-radius: var(--radius); padding: 9px 16px; box-shadow: var(--shadow); }
.clock-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; }
.clock-time { font-family: var(--font-display); font-size: 1.42rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-div { width: 1px; align-self: stretch; margin: 2px 4px; background: rgba(255, 255, 255, .25); }
.clock-date { line-height: 1.25; white-space: nowrap; }
.clock-date b { display: block; font-size: .88rem; font-weight: 600; }
.clock-date span { font-size: .76rem; opacity: .85; }
.home-hero { position: relative; }
.home-hero .hero { height: auto; min-height: 0; box-shadow: none; border-radius: 18px; }
.home-hero .hero-slide, .home-hero .carousel-item { min-height: clamp(280px, 25vw, 350px); }
.home-hero .hero-slide { padding: 28px clamp(22px, 4vw, 52px) 66px; }
.home-hero .hero .carousel-indicators { margin: 0 22px 54px auto; }
.hero-empty { position: relative; background-image: linear-gradient(135deg, var(--ceca-primary), var(--ceca-vivid)); height: 170px !important; }
/* Özet kartı slaytın alt kenarına biner */
.home-stats { position: relative; z-index: 4; margin: -40px clamp(12px, 3vw, 40px) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.home-stat { display: flex; align-items: center; gap: 13px; padding: 15px 20px; color: inherit; min-width: 0; border-left: 1px solid var(--line-2); }
.home-stat:first-child { border-left: 0; }
a.home-stat:hover { color: inherit; background: var(--hover); }
a.home-stat:first-child:hover { border-radius: 16px 0 0 16px; }
.home-stat .tone-ic { width: 44px; height: 44px; border-radius: 13px; font-size: 1.05rem; }
.home-stat b { display: block; font-family: var(--font-display); font-size: 1.42rem; font-weight: 700; line-height: 1.15; }
.home-stat small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-block { margin-top: 24px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.home-head h2 { font-size: 1.08rem; margin: 0; }
.home-head a { font-size: .86rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.folder-tile { display: flex; align-items: center; gap: 13px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: all var(--ease); }
.folder-tile:hover { border-color: var(--ceca-secondary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.folder-tile b { display: block; font-weight: 600; font-size: .93rem; }
.folder-tile small { display: block; color: var(--muted); font-size: .78rem; }
.folder-tile > .ic { margin-left: auto; color: #A5AFBA; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: stretch; }
.bento > * { min-width: 0; }
.bento > [class*="col-"] { width: auto; flex: none; padding: 0; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
.hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 318px; }
.hero .carousel-inner, .hero .carousel-item { height: 100%; }
.hero .carousel-item { min-height: 318px; }
.hero-slide { height: 100%; min-height: 318px; display: flex; align-items: flex-end; padding: 26px 28px 30px; color: #fff; position: relative; overflow: hidden; background-color: var(--ceca-primary); background-size: cover; background-position: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 16, 44, .72) 0%, rgba(10, 16, 44, .05) 62%); }
.slide-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.art-a { background-image: radial-gradient(520px 320px at 88% 10%, rgba(var(--ceca-secondary-rgb), .55), transparent 70%), linear-gradient(135deg, var(--ceca-primary), var(--ceca-vivid)); }
.art-b { background-image: radial-gradient(460px 300px at 12% 0%, rgba(var(--ceca-secondary-rgb), .42), transparent 72%), linear-gradient(135deg, var(--ceca-deep), var(--ceca-vivid)); }
.art-c { background-image: radial-gradient(600px 340px at 72% 110%, rgba(var(--ceca-secondary-rgb), .5), transparent 70%), linear-gradient(135deg, var(--ceca-vivid), var(--ceca-primary)); }
.slide-copy { position: relative; z-index: 1; max-width: 640px; }
.slide-tag { display: inline-block; background: var(--ceca-secondary); color: var(--ceca-on-secondary); font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: 3px 11px; border-radius: 20px; text-transform: uppercase; margin-bottom: 8px; }
.slide-copy h2 { color: #fff; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; font-weight: 700; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .28); }
.slide-copy p { color: rgba(255, 255, 255, .9); font-size: .92rem; margin: 6px 0 12px; }
.slider-nav { position: absolute; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); display: grid; place-items: center; z-index: 3; box-shadow: var(--shadow); transition: all var(--ease); }
.slider-nav:hover { background: #fff; transform: scale(1.06); }
.slider-nav.prev { right: 58px; } .slider-nav.next { right: 14px; }
.hero .carousel-indicators { justify-content: flex-end; margin: 0 18px 14px auto; left: auto; gap: 2px; }
.hero .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; opacity: .55; margin: 0 2px; transition: all var(--ease); }
.hero .carousel-indicators .active { width: 24px; border-radius: 6px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.quick-list { padding: 8px; display: grid; gap: 4px; }
.quick-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--ink); transition: all var(--ease); }
.quick-item:hover { background: var(--hover); color: var(--ceca-primary); }
.quick-item b { display: block; font-weight: 600; font-size: .9rem; }
.quick-item small { display: block; color: var(--muted); font-size: .78rem; }
.quick-item > .ic { margin-left: auto; color: #A5AFBA; }
.tone-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ceca-primary-soft); color: var(--ceca-primary); font-size: 1rem; }
.tone-ic.sky { background: var(--ceca-secondary-soft); color: var(--ceca-vivid); } .tone-ic.green { background: #E6F5EC; color: var(--green); } .tone-ic.orange { background: var(--warn-bg); color: #C4620C; } .tone-ic.violet { background: #EFEAFB; color: var(--violet); }

/* Sayfa başlığı */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 1.42rem; font-weight: 700; margin: 0; line-height: 1.25; }
.page-head p { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.page-title { --tone: var(--ceca-primary); display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-title.tone-1 { --tone: var(--ceca-vivid); } .page-title.tone-2 { --tone: #E0730F; } .page-title.tone-3 { --tone: var(--violet); } .page-title.tone-4 { --tone: var(--green); }
.page-title-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tone); color: #fff; font-size: 1.3rem; }
.page-head-end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumbs a { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.crumbs a:hover { color: var(--ceca-primary); }
.crumbs .ic { font-size: 1.1em; }

/* Rapor kartı */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.rcard { --tone: var(--ceca-primary); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); min-width: 0; }
.rcard.tone-0 { --tone: var(--ceca-primary); } .rcard.tone-1 { --tone: var(--ceca-vivid); } .rcard.tone-2 { --tone: #E0730F; } .rcard.tone-3 { --tone: var(--violet); } .rcard.tone-4 { --tone: var(--green); }
.rcard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--tone); }
.rcard-thumb { position: relative; height: 112px; overflow: hidden; padding: 11px 13px 0; background: linear-gradient(180deg, #F7F9FB, #EEF1F4); border-bottom: 1px solid var(--line-2); }
.rcard-thumb svg { display: block; width: 100%; height: auto; }
.rcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px 15px 11px; }
.rcard-folder { display: inline-flex; align-items: center; gap: 7px; font-size: .77rem; font-weight: 500; color: var(--muted); }
.rcard-folder i { width: 9px; height: 9px; border-radius: 3px; background: var(--tone); transform: rotate(45deg); }
.rcard-go { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #fff; font-size: .88rem; box-shadow: var(--shadow); opacity: 0; transform: scale(.8); transition: all var(--ease); }
.rcard:hover .rcard-go, .rcard:focus-visible .rcard-go { opacity: 1; transform: none; }
.rcard h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.rcard p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; margin-bottom: 12px; }
.rcard footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .76rem; }
.rcard footer .ic { margin-right: 4px; }

/* Raporlar sayfası */
.rp-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 24px 30px; border-radius: 18px; color: #fff; background-color: var(--ceca-primary); background-image: radial-gradient(520px 240px at 86% -10%, rgba(var(--ceca-secondary-rgb), .45), transparent 70%), linear-gradient(135deg, var(--ceca-deep), var(--ceca-primary) 55%, var(--ceca-vivid)); margin-bottom: 14px; }
.rp-hero::after { content: ''; position: absolute; right: 34%; top: -70px; width: 190px; height: 190px; border-radius: 22%; transform: rotate(45deg); border: 24px solid rgba(255, 255, 255, .05); pointer-events: none; }
.rp-hero > * { position: relative; z-index: 1; }
.rp-hero h1 { color: #fff; font-size: 1.62rem; font-weight: 700; margin: 0; line-height: 1.2; }
.rp-hero p { margin: 3px 0 0; color: rgba(255, 255, 255, .84); font-size: .92rem; }
.rp-search { position: relative; flex: 0 1 420px; min-width: min(280px, 100%); }
.rp-search > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; pointer-events: none; }
.rp-search input { width: 100%; height: 48px; border: 0; border-radius: 13px; padding: 0 44px; font-size: .95rem; color: var(--ink); background: #fff; box-shadow: 0 6px 22px rgba(10, 16, 44, .24); outline: 0; }
.rp-search input:focus { box-shadow: 0 0 0 3px rgba(var(--ceca-secondary-rgb), .6); }
.rp-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--line-2); color: var(--ink-2); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; padding: 0; }
.rp-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--ceca-bg); padding: 8px 0; margin-bottom: 8px; }
.rp-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.rp-pills::-webkit-scrollbar { display: none; }
.rp-pills.sub { margin-top: 8px; }
.rp-pill { --tone: var(--ceca-primary); flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: .87rem; font-weight: 500; white-space: nowrap; transition: all var(--ease); }
.rp-pill.tone-0 { --tone: var(--ceca-primary); } .rp-pill.tone-1 { --tone: var(--ceca-vivid); } .rp-pill.tone-2 { --tone: #E0730F; } .rp-pill.tone-3 { --tone: var(--violet); } .rp-pill.tone-4 { --tone: var(--green); }
.rp-pill:hover { border-color: var(--ceca-primary); color: var(--ceca-primary); }
.rp-pill > i { width: 9px; height: 9px; border-radius: 3px; background: var(--tone); transform: rotate(45deg); }
.rp-pill small { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.rp-pill.active { background: var(--ceca-primary); border-color: var(--ceca-primary); color: var(--ceca-on-primary); font-weight: 600; box-shadow: 0 3px 10px rgba(var(--ceca-primary-rgb), .26); }
.rp-pill.active > i { background: var(--ceca-secondary); }
.rp-pill.active small { background: rgba(255, 255, 255, .18); color: inherit; }
.rp-pills.sub .rp-pill { height: 32px; font-size: .82rem; padding: 0 12px; background: transparent; }
.rp-pills.sub .rp-pill.active { background: var(--ceca-primary-soft); border-color: var(--ceca-primary); color: var(--ceca-primary); box-shadow: none; }
.reports-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.tree { list-style: none; margin: 0; padding: 6px 8px; }
.tree ul { list-style: none; margin: 0 0 0 16px; padding: 0 0 0 6px; border-left: 1px solid var(--line); }
.tree-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink-2); width: 100%; background: none; border: 0; text-align: left; font-size: .9rem; margin-bottom: 1px; transition: all var(--ease); }
.tree-item > .ic { color: var(--orange); }
.tree-item .ic-apps { color: var(--ceca-primary); }
.tree-item:hover { background: var(--hover); color: var(--ink); }
.tree-item.active { background: var(--ceca-primary-soft); color: var(--ceca-primary); font-weight: 600; }
.tree-item small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .76rem; }
.tree-item .tree-actions { margin-left: auto; display: none; gap: 0; }
.tree-item:hover .tree-actions { display: flex; }
.tree-item:hover small.can-hide { display: none; }

/* Rapor görüntüleyici */
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; }
.embed-root .rt-bar { top: 6px; }
.rt-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.slicer-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: .84rem; color: var(--ink); max-width: 250px; transition: all var(--ease); white-space: nowrap; }
.slicer-btn:hover { border-color: var(--ceca-primary); }
.slicer-btn > .ic { color: var(--muted); font-size: 1.05rem; }
.slicer-label { color: var(--muted); }
.slicer-value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slicer.has-value .slicer-btn { border-color: var(--ceca-primary); background: var(--ceca-primary-soft); color: var(--ceca-primary); }
.slicer-menu { width: 280px; max-width: calc(100vw - 32px); padding: 9px; }
.slicer-list { max-height: 240px; overflow-y: auto; }
.slicer-item { display: flex; gap: 8px; align-items: center; padding: 6px 7px; border-radius: 7px; cursor: pointer; font-size: .86rem; }
.slicer-item:hover { background: var(--hover); }
.slicer-item .form-check-input { margin: 0; flex: none; }
.slicer-foot { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 3px; text-align: right; }
.preset-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.preset-list button { border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; border-radius: 99px; font-size: .8rem; color: var(--ink-2); }
.preset-list button:hover { border-color: var(--ceca-primary); }
.preset-list button.active { background: var(--ceca-primary); border-color: var(--ceca-primary); color: var(--ceca-on-primary); }
.date-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-custom label { font-size: .76rem; color: var(--muted); }
.seg-mini { display: inline-flex; background: var(--line-2); padding: 3px; border-radius: 11px; }
.seg-mini button { border: 0; background: none; padding: 5px 12px; font-size: .82rem; font-weight: 500; color: var(--ink-2); border-radius: 8px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.seg-mini button.active { background: var(--surface); color: var(--ceca-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; min-height: 28px; padding-inline: 2px; }
.chip-hint { color: var(--muted); font-size: .82rem; display: inline-flex; gap: 5px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--ceca-secondary-soft); color: var(--ceca-primary); border-radius: 99px; padding: 3px 5px 3px 11px; font-size: .8rem; max-width: 520px; }
.chip b { font-weight: 600; white-space: nowrap; }
.chip button { border: 0; background: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--ceca-primary); flex: none; padding: 0; font-size: .82rem; }
.chip button:hover { background: rgba(var(--ceca-primary-rgb), .14); }
.chip.locked { background: var(--line-2); color: var(--ink-2); padding-right: 11px; padding-left: 8px; }
.chip.drill { background: var(--ceca-primary-soft); }
.chip-clear { border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 500; text-decoration: underline; padding: 2px 6px; }
.rt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(54px, 4.4vw, 68px); gap: 14px; }
.w-card { --tone: var(--ceca-primary); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; height: 100%; transition: box-shadow var(--ease); }
.w-card:hover { box-shadow: var(--shadow); }
.w-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px 8px 14px; }
.w-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ceca-primary-soft); color: var(--ceca-primary); font-size: .88rem; flex: none; }
.w-titles { min-width: 0; flex: 1; }
.w-head h3 { font-size: .9rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.w-head p { font-size: .76rem; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.w-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.w-drillable { color: var(--muted); padding: 2px 4px; cursor: help; font-size: .9rem; border-radius: 6px; }
.mode-drill .w-drillable { color: var(--ceca-primary); background: var(--ceca-secondary-soft); }
.w-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 0 14px 2px; font-size: .77rem; color: var(--ink-2); }
.w-crumb[hidden] { display: none; }
.w-crumb button { border: 0; background: none; padding: 0; color: var(--ceca-primary); font-size: .77rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.w-crumb button:hover { text-decoration: underline; }
.w-crumb > .ic { font-size: .9rem; color: var(--muted); }
.w-crumb em { margin-left: auto; color: var(--muted); font-style: normal; }
.w-body { flex: 1; min-height: 0; padding: 2px 8px 8px; position: relative; }
.w-card.is-max { position: fixed; inset: 16px; z-index: 1050; box-shadow: var(--shadow-lg); height: auto; grid-column: auto !important; grid-row: auto !important; }
.w-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: .84rem; gap: 4px; text-align: center; }
.w-empty .ic { color: #B6BEC8; font-size: 1.5rem; }
.w-empty p { margin: 0; }
.apexcharts-canvas { cursor: pointer; }
.apexcharts-tooltip { box-shadow: var(--shadow-lg) !important; border-color: var(--line) !important; border-radius: 10px !important; font-family: var(--font) !important; }
.apexcharts-tooltip-title { font-family: var(--font) !important; background: var(--hover) !important; border-color: var(--line-2) !important; }
.apexcharts-legend-text { font-family: var(--font) !important; }
.apexcharts-legend-text b { font-weight: 600; }

/* KPI: renkli sol kenar, ikon, Poppins değer */
.w-card.w-kpi { border-left: 4px solid var(--tone); }
.w-card.tone-0 { --tone: var(--ceca-primary); } .w-card.tone-1 { --tone: var(--ceca-vivid); } .w-card.tone-2 { --tone: var(--green); } .w-card.tone-3 { --tone: var(--orange); } .w-card.tone-4 { --tone: var(--violet); }
.w-kpi .w-head { padding: 9px 8px 0 14px; }
.w-kpi .w-head h3 { font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.w-kpi .w-head p { display: none; }
.w-kpi .w-body { container-type: inline-size; padding: 0 10px 8px 14px; }
.kpi { height: 100%; display: flex; align-items: center; gap: 12px; }
.kpi-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tone); color: #fff; display: grid; place-items: center; font-size: 1.08rem; flex: none; }
.kpi-main { min-width: 0; flex: 0 1 auto; }
.kpi-value { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.kpi-foot { display: flex; align-items: center; gap: 5px; margin-top: 2px; min-height: 17px; white-space: nowrap; }
.kpi-delta { font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.kpi-delta .ic { font-size: 1.05rem; }
.kpi-delta.good { color: var(--ok); } .kpi-delta.bad { color: var(--bad); }
.kpi-delta-note { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.kpi-spark { flex: 1; min-width: 50px; height: 44px; position: relative; }
@container (max-width: 300px) { .kpi-spark { display: none; } }
@container (max-width: 190px) { .kpi-ic { display: none; } .kpi-delta-note { display: none; } }
.gauge-plot { height: calc(100% - 24px); min-height: 80px; overflow: hidden; }
.gauge-note { text-align: center; font-size: .8rem; color: var(--ink-2); }
.gauge-note b { color: var(--ink); font-weight: 600; }
.gauge-note span { color: var(--muted); }
.hbars { height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; gap: 2px; padding: 0 6px 2px; overflow: hidden; }
.hbar { display: grid; grid-template-columns: minmax(64px, 30%) minmax(0, 1fr) minmax(58px, auto); gap: 10px; align-items: center; font-size: .82rem; cursor: pointer; border-radius: 7px; padding: 2px 4px; transition: background var(--ease); flex: 0 1 auto; min-height: 0; }
.hbar:hover { background: var(--hover); }
.hbar-label { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: clamp(9px, 1.35vw, 14px); background: var(--line-2); border-radius: 9px; overflow: hidden; display: block; }
.hbar-track i { display: block; height: 100%; border-radius: 9px; }
.hbar-value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar.dim .hbar-label, .hbar.dim .hbar-value { color: #9AA1B8; }
.funnel { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 6px; }
.funnel-row { display: grid; grid-template-columns: minmax(52px, 32%) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .8rem; cursor: pointer; border-radius: 4px; }
.funnel-row:hover .funnel-label { color: var(--ink); }
.funnel-row.dim .funnel-label, .funnel-row.dim .funnel-value { color: #9AA1B8; }
.funnel-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-track { display: flex; justify-content: center; }
.funnel-track i { display: block; height: clamp(14px, 3.4vh, 26px); border-radius: 4px; }
.funnel-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.table-scroll { height: 100%; overflow: auto; }
.modal-table { max-height: 62vh; height: auto; text-align: left; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.data-table th { position: sticky; top: 0; background: var(--surface); font-weight: 600; font-size: .74rem; color: var(--muted); padding: 6px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; z-index: 1; }
.data-table th:hover { color: var(--ink); }
.data-table th .ic { font-size: 1rem; vertical-align: -.25em; }
.data-table td { padding: 7px 9px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td { background: var(--hover); }
.data-table tr.sel td { background: var(--ceca-secondary-soft) !important; font-weight: 600; }
.data-table tr.dim td { color: #9AA1B8; }
.data-table tfoot td { position: sticky; bottom: 0; background: var(--surface); font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.data-table tfoot small { font-weight: 400; color: var(--muted); }
.data-table .strong { font-weight: 600; }
.pivot td:first-child, .pivot th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pivot th:first-child { z-index: 2; }
.map-wrap { height: 100%; position: relative; display: flex; flex-direction: column; }
.map-wrap svg { flex: 1; min-height: 0; width: 100%; }
.map-area { cursor: pointer; transition: opacity .1s; }
.map-area:hover { opacity: .78; }
.map-area:focus-visible { outline: none; stroke: var(--ink); stroke-width: 1.4; }
.map-off { pointer-events: none; }
.map-tip { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px 10px; font-size: .8rem; pointer-events: none; min-width: 120px; }
.map-tip b { display: block; font-weight: 600; }
.map-tip small { display: block; color: var(--muted); font-size: .7rem; }
.map-legend { display: flex; align-items: center; gap: 2px; justify-content: center; font-size: .74rem; color: var(--muted); padding-top: 2px; }
.map-legend i { width: 22px; height: 7px; display: block; }
.map-legend i:first-of-type { border-radius: 4px 0 0 4px; } .map-legend i:last-of-type { border-radius: 0 4px 4px 0; }
.map-legend span { padding: 0 6px; }
.sql-preview { background: var(--hover); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .76rem; color: var(--ink); white-space: pre-wrap; margin: 0; font-family: Consolas, 'Cascadia Mono', monospace; }

/* Sihirbaz */
.wiz .modal-dialog { max-width: min(1240px, 96vw); }
.wiz .modal-body { padding: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr) minmax(0, 390px); min-height: 66vh; }
.wiz-steps { list-style: none; margin: 0; padding: 14px 10px; background: var(--hover); border-right: 1px solid var(--line-2); }
.wiz-steps button { display: flex; gap: 10px; width: 100%; align-items: center; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--muted); text-align: left; font-size: .85rem; }
.wiz-steps button:disabled { cursor: default; opacity: .75; }
.wiz-steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #C7CFD8; display: grid; place-items: center; font-size: .74rem; font-weight: 600; flex: none; background: var(--surface); }
.wiz-steps .n .ic { font-size: .95rem; }
.wiz-steps li.done button { color: var(--ink-2); }
.wiz-steps li.done .n { background: var(--ceca-secondary-soft); border-color: var(--ceca-secondary); color: var(--ceca-primary); }
.wiz-steps li.active button { color: var(--ceca-primary); font-weight: 600; background: var(--surface); box-shadow: var(--shadow-sm); }
.wiz-steps li.active .n { background: var(--ceca-primary); border-color: var(--ceca-primary); color: var(--ceca-on-primary); }
.wiz-main { padding: 18px 20px; overflow-y: auto; max-height: 72vh; }
.wiz-main h6 { font-size: 1rem; margin-bottom: 2px; }
.wiz-main .lead-sm { color: var(--muted); font-size: .85rem; margin-bottom: 13px; }
.wiz-prev { padding: 16px; background: var(--hover); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; min-width: 0; gap: 10px; max-height: 72vh; }
.wiz-prev > small { color: var(--muted); font-weight: 600; }
.wiz-prev .w-card { height: 288px; flex: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; transition: all var(--ease); }
.pick:hover:not(:disabled) { border-color: var(--ceca-primary); box-shadow: var(--shadow-sm); }
.pick.active { border-color: var(--ceca-primary); box-shadow: inset 0 0 0 1px var(--ceca-primary); background: var(--ceca-primary-soft); }
.pick:disabled { opacity: .5; }
.pick > .ic { font-size: 1.35rem; color: var(--ceca-primary); }
.pick b { font-weight: 600; font-size: .88rem; }
.pick small { color: var(--muted); font-size: .77rem; line-height: 1.3; }
.pick-wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.type-group { font-size: .74rem; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.type-group:first-of-type { margin-top: 0; }
.slot { margin-bottom: 13px; }
.slot-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.slot-row .form-select { min-width: 0; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr) 34px; gap: 6px; margin-bottom: 7px; align-items: start; }
.field-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.field-pill { font-size: .75rem; padding: 1px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); display: inline-flex; gap: 3px; align-items: center; }
.field-pill .ic { font-size: .95rem; }

/* Designer */
.designer { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.designer-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 60px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.designer-top input.name { font-family: var(--font-display); border: 1px solid transparent; font-size: 1.06rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; min-width: 0; flex: 0 1 300px; color: var(--ink); background: transparent; }
.designer-top input.name:hover, .designer-top input.name:focus { border-color: var(--line); background: var(--surface); outline: none; }
.designer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 206px minmax(0, 1fr) 304px; }
.designer-pal { background: var(--surface); border-right: 1px solid var(--line); padding: 12px; overflow-y: auto; }
.designer-pal h6 { font-family: var(--font); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 12px 2px 6px; font-weight: 600; }
.pal-item { display: flex; align-items: center; gap: 9px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 5px; font-size: .84rem; cursor: grab; color: var(--ink); text-align: left; transition: all var(--ease); }
.pal-item:hover { border-color: var(--ceca-primary); background: var(--ceca-primary-soft); }
.pal-item .ic { color: var(--ceca-primary); }
.designer-canvas { overflow: auto; padding: 14px; background-color: var(--ceca-bg); background-image: radial-gradient(#D5DBE3 1px, transparent 1px); background-size: 16px 16px; }
.designer-canvas .grid-stack { min-height: 70vh; min-width: 860px; }
.designer-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; text-align: center; padding: 20px; }
.designer-empty .ic { font-size: 2.6rem; color: #B6BEC8; }
.designer-empty b { color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.grid-stack-item-content { inset: 0 !important; left: 6px !important; right: 6px !important; }
.grid-stack-item .w-card { box-shadow: var(--shadow-sm); }
.grid-stack-item:hover .w-card { border-color: var(--ceca-secondary); box-shadow: var(--shadow); }
.grid-stack-placeholder > .placeholder-content { background: var(--ceca-secondary-soft) !important; border: 1px dashed var(--ceca-secondary) !important; border-radius: var(--radius); }
.design-tools { position: absolute; top: 6px; right: 6px; z-index: 4; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 2px; }
.grid-stack-item:hover .design-tools { display: flex; }
.design-card .w-body { pointer-events: none; }
.design-card .w-head { cursor: move; }
.designer-side { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; }
.designer-side h6 { font-size: .88rem; margin: 18px 0 7px; }
.designer-side h6:first-child { margin-top: 0; }
.check-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: .86rem; cursor: pointer; }
.check-row .form-check-input { margin: 0; flex: none; }
.perm-box { background: var(--hover); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; font-size: .84rem; color: var(--ink-2); margin-bottom: 8px; }

/* Yetki düzenleyici */
.perm-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.perm-group { margin-bottom: 14px; }
.perm-group h6 { font-family: var(--font); font-size: .8rem; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.perm-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-opt { border: 1px solid var(--line); background: var(--surface); padding: 4px 11px; border-radius: 99px; font-size: .8rem; color: var(--ink-2); transition: all var(--ease); }
.perm-opt:hover { border-color: var(--ceca-primary); }
.perm-opt.on { background: var(--ceca-primary); color: var(--ceca-on-primary); border-color: var(--ceca-primary); }
.audience { background: var(--hover); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px; max-height: 340px; overflow-y: auto; }
.audience h6 { font-family: var(--font); font-size: .84rem; font-weight: 600; }
.aud-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: .85rem; border-bottom: 1px solid var(--line-2); }
.aud-row:last-child { border-bottom: 0; }
.aud-row small { color: var(--muted); white-space: nowrap; }

/* Veri kaynakları */
.ds-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.ds-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ds-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; background: var(--ceca-grad); color: #fff; flex: none; }
.ds-head h3 { font-size: .98rem; margin: 0; }
.ds-meta { color: var(--muted); font-size: .8rem; margin-top: 1px; overflow-wrap: anywhere; }
.pipeline { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 14px; font-size: .8rem; }
.pipeline span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-weight: 500; color: var(--ink-2); }
.pipeline span.hot { background: var(--ceca-primary); border-color: var(--ceca-primary); color: var(--ceca-on-primary); font-weight: 600; }
.pipeline .ic { color: var(--muted); }
.note { background: var(--ceca-secondary-soft); color: var(--ceca-primary); border-radius: 10px; padding: 9px 12px; font-size: .84rem; display: flex; gap: 8px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.code-box { background: var(--hover); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .76rem; font-family: Consolas, 'Cascadia Mono', monospace; word-break: break-all; white-space: pre-wrap; margin: 0; max-height: 170px; overflow: auto; }

/* Embed ve portal demosu */
.embed-body { background: transparent; }
.embed-root { padding: 10px 12px; }
.embed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.embed-head h1 { font-size: 1.05rem; margin: 0; }
.embed-powered { margin-left: auto; font-size: .74rem; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.embed-powered img { height: 15px; }
.embed-denied { max-width: 440px; margin: 12vh auto; text-align: center; padding: 22px; }
.embed-denied > .ic { font-size: 2.6rem; color: var(--bad); }
.embed-denied h1 { font-size: 1.15rem; margin: 8px 0 4px; }

/* Dizüstü ve 1366×768 sınıfı ekran: yazı okunur kalır, çerçeve ve boşluklar sıkılaşır (1500 px altı ya da kısa pencere) */
@media (min-width: 1025px) and (max-width: 1500px), (min-width: 1025px) and (max-height: 820px) {
  :root { --header-h: 56px; --side-w: 226px; --radius: 10px; }
  html { font-size: 15px; }
  body { font-size: 13.5px; line-height: 1.5; }
  .sidenav-brand small, .sidenav-group h6, .stat small, .w-kpi .w-head h3, .profile-trigger .who span, kbd.key, .search-group, .rp-pill small, .kpi-delta-note, .map-tip small, .designer-pal h6, .slide-tag { font-size: 11px; }
  .container-page { padding-inline: 1.25rem; }
  .page { padding-block: .8rem 1.5rem; }
  .brand img { height: 30px; }
  .brand-name { font-size: 1.1rem; }
  .main-nav { padding: 3px; }
  .main-nav a { padding: 5px 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .avatar { width: 30px; height: 30px; }
  .site-foot { padding-block: .55rem; }
  .sidenav-brand { padding: 8px 16px; }
  .sidenav-brand img { height: 28px; }
  .sidenav-nav { padding: 2px 10px 8px; }
  .sidenav-group h6 { margin: 8px 10px 3px; }
  .sidenav-nav a { gap: 10px; padding: 5px 10px; margin-bottom: 1px; border-radius: 9px; }
  .sidenav-nav a .ic { font-size: 1.1rem; }
  .sidenav-nav a.active::before { left: -10px; }
  .sidenav-back { padding: 9px 20px; }
  .admin-top { padding: 0 20px; gap: 10px; }
  .admin-top h1 { font-size: 1.06rem; }
  .top-search { width: min(220px, 20vw); height: 34px; }
  .btn-soft { height: 34px; }
  .admin-view { padding: 14px 20px 24px; }
  .admin-foot { padding: 7px 20px; }
  .page-intro { margin-bottom: 10px; }
  .panel-pad { padding: 14px; }
  .panel-head, .tile-head { padding: 9px 14px; }
  .panel-tools { padding: 9px 12px; gap: 10px; }
  .admin-table th { padding: 8px 10px; }
  .admin-table td { padding: 7px 10px; }
  .stat-grid { gap: 10px; margin-bottom: 12px; }
  .stat { padding: 10px 14px; gap: 11px; border-radius: 12px; }
  .stat-ic { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
  .stat b { font-size: 1.32rem; }
  .bento { gap: 12px; }
  .bar-list { padding: 10px 14px; gap: 8px; }
  .act-row { padding: 8px 14px; }
  .quick-list { padding: 6px; gap: 2px; }
  .quick-item { padding: 6px 8px; }
  .tone-ic { width: 34px; height: 34px; border-radius: 10px; }
  .ds-card { padding: 12px 14px; margin-bottom: 10px; }
  .home-top { margin-bottom: 10px; }
  .home-top h1 { font-size: 1.3rem; }
  .hclock { padding: 5px 12px; gap: 10px; }
  .clock-ic { width: 30px; height: 30px; }
  .clock-time { font-size: 1.2rem; }
  .home-hero .hero-slide, .home-hero .carousel-item { min-height: clamp(214px, 31vh, 280px); }
  .home-hero .hero-slide { padding: 16px 36px 56px; }
  .home-hero .hero { border-radius: 14px; }
  .slide-copy p { margin: 4px 0 8px; }
  .home-stat { padding: 9px 16px; gap: 11px; }
  .home-stat .tone-ic { width: 36px; height: 36px; }
  .home-stat b { font-size: 1.22rem; }
  .home-block { margin-top: 14px; }
  .home-head { margin-bottom: 8px; }
  .folder-grid { gap: 10px; }
  .folder-tile { padding: 8px 12px; gap: 11px; }
  .report-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
  .rcard-thumb { height: 84px; padding: 9px 11px 0; }
  .rcard-body { padding: 9px 12px 9px; }
  .rcard p { margin-bottom: 8px; }
  .rcard footer { padding-top: 7px; }
  .rp-hero { padding: 13px 22px; border-radius: 14px; }
  .rp-hero h1 { font-size: 1.28rem; }
  .rp-search input { height: 38px; border-radius: 11px; }
  .rp-pill { height: 32px; padding: 0 12px; }
  .reports-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 12px; }
  .page-head { padding-bottom: 8px; margin-bottom: 10px; gap: 10px; }
  .page-head h1 { font-size: 1.2rem; }
  .page-head p { font-size: .85rem; margin: 0; }
  .crumbs { font-size: .78rem; }
  .rt-bar { padding: 6px 8px; margin-bottom: 6px; }
  .slicer-btn { height: 32px; }
  .rt-chips { min-height: 24px; margin-bottom: 6px; }
  .rt-grid { gap: 10px; grid-auto-rows: clamp(48px, 3.9vw, 58px); }
  .w-head { padding: 8px 10px 5px 12px; gap: 8px; }
  .w-ic { width: 28px; height: 28px; }
  .w-kpi .w-head { padding: 7px 6px 0 12px; }
  .w-kpi .w-body { padding: 0 8px 6px 12px; }
  .kpi { gap: 10px; }
  .kpi-ic { width: 38px; height: 38px; border-radius: 10px; }
  .kpi-value { font-size: clamp(1.15rem, 1.6vw, 1.42rem); }
  .designer-top { min-height: 50px; padding: 5px 12px; }
  .designer-body { grid-template-columns: 178px minmax(0, 1fr) 268px; }
  .designer-pal { padding: 8px; }
  .designer-pal h6 { margin: 8px 2px 4px; }
  .pal-item { padding: 5px 8px; margin-bottom: 3px; }
  .designer-canvas { padding: 10px; }
  .designer-canvas .grid-stack { min-width: 680px; }
  .designer-side { padding: 10px 12px; }
  .designer-side h6 { margin: 12px 0 5px; }
  .wiz .modal-body { grid-template-columns: 190px minmax(0, 1fr) minmax(0, 320px); min-height: 58vh; }
  .wiz-main { padding: 14px 16px; }
  .wiz-prev { padding: 12px; }
  .wiz-prev .w-card { height: 240px; }
  .modal-dialog { margin-block: .6rem; }
  .modal-dialog-scrollable { height: calc(100% - 1.2rem); }
  .modal-header { padding: .7rem 1rem; }
  .modal-footer { padding: .55rem 1rem; }
  .drawer, .form-drawer { top: 8px; right: 8px; bottom: 8px; max-width: calc(100vw - 16px); border-radius: 16px; }
  .drawer.left { left: 8px; right: auto; }
  .form-drawer { width: 600px; }
  .form-drawer.has-rte { width: 860px; }
  .form-drawer .drawer-body { padding: 14px; }
  .form-drawer-foot { padding: 9px 14px; }
  .form-drawer .img-pick { max-height: 150px; }
  .login-side { padding: 24px 44px 18px; gap: 16px; }
  .lv-chart { height: clamp(84px, 14vh, 130px); }
  .lv-kpi { padding: 8px; }
  .login-copy h1 { font-size: clamp(26px, 2.6vw, 36px); }
  .login-copy p { font-size: .95rem; margin: 8px 0 0; }
  .login-form { padding: 16px 24px; }
  .login-box > img { height: 46px; margin-bottom: 8px; }
  .login-box h2 { font-size: 1.36rem; }
  .login-box .sub { margin-bottom: 12px; }
}

/* Geçişler: masaüstü → tablet → telefon */
@media (min-width: 821px) and (max-height: 620px) { .login-visual { display: none; } .login-feats { margin-top: 0; } }
@media (min-width: 1501px) { .login-side { padding: 48px 72px 32px; } .login-copy { max-width: 680px; } .login-visual { max-width: 720px; } .login-feats { max-width: 754px; } }
@media (min-width: 821px) and (max-width: 1180px) { .login-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .login-feats li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .8rem; } }
@media (max-width: 1180px) {
  .wiz .modal-body { grid-template-columns: minmax(0, 1fr); }
  .wiz-steps { display: flex; overflow-x: auto; gap: 2px; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 8px; }
  .wiz-steps button span.t { display: none; }
  .wiz-steps li.active button span.t { display: inline; white-space: nowrap; }
  .wiz-main { max-height: none; }
  .wiz-prev { border-left: 0; border-top: 1px solid var(--line-2); max-height: none; }
  .designer-body { grid-template-columns: 170px minmax(0, 1fr); }
  .designer-side { position: fixed; right: 0; top: 0; bottom: 0; width: min(320px, 92vw); z-index: 1035; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .24s ease; }
  .designer-side.open { transform: none; }
}
@media (min-width: 1181px) { #side-toggle { display: none !important; } }
@media (max-width: 1024px) {
  .sidenav { position: fixed; left: 0; transform: translateX(-102%); transition: transform .24s ease; z-index: 1052; width: min(290px, 88vw); }
  .sidenav.open { transform: none; }
  .top-search { width: auto; flex: 0 0 auto; }
  .top-search span, .top-search kbd { display: none; }
  .btn-soft span { display: none; }
  .admin-view { padding: 16px 16px 34px; }
  .admin-top { padding: 0 12px; }
  .admin-foot { padding: 10px 16px; }
  .reports-layout { grid-template-columns: minmax(0, 1fr); }
  .perm-cols { grid-template-columns: minmax(0, 1fr); }
  .rt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: auto; }
  .rt-grid .w-card { grid-column: span 6 !important; grid-row: auto !important; height: 340px; }
  .rt-grid .w-card.w-kpi { grid-column: span 3 !important; height: 122px; }
  .rt-grid .w-card.w-kpi.kpi-wide { grid-column: span 6 !important; }
  .rt-grid .w-card.w-table, .rt-grid .w-card.w-pivot { height: 400px; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .col-t-6 { grid-column: span 6; }
}
/* Telefon: üst menü yerine alt gezinme ve soldan çekmece */
@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .container-page { padding-inline: 1rem; }
  .main-nav, .profile-trigger .who, .profile-trigger > .ic, .header-search { display: none; }
  .profile-trigger { padding: 3px; }
  .brand img { height: 32px; }
  .header-inner { grid-template-columns: 1fr auto; gap: .75rem; }
  .page { padding-block: .9rem 1.5rem; }
  .site-foot { margin-bottom: 64px; }
  .area-user { padding-bottom: 0; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; color: var(--muted); font-size: .6875rem; font-weight: 500; }
  .bottom-nav .ic { font-size: 1.42rem; padding: 2px 15px; border-radius: 14px; transition: all var(--ease); }
  .bottom-nav a.active { color: var(--ceca-primary); font-weight: 700; }
  .bottom-nav a.active .ic { background: var(--ceca-primary-soft); font-variation-settings: 'FILL' 1; }
  .rt-bar { position: static; }
  .rt-filters { flex-wrap: nowrap; overflow-x: auto; flex-basis: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .rt-filters::-webkit-scrollbar { display: none; }
  .slicer { flex: none; }
  .rt-mode { flex: 1; }
  .rt-mode button { flex: 1; justify-content: center; }
  .page-head { align-items: flex-start; }
  .page-head > div:first-child { order: 1; flex: 1 1 100%; }
  .page-title-ic { width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }
  .page-head-end { width: 100%; }
  .page-head-end .crumbs { margin-right: auto; }
  .rp-hero { padding: 18px; border-radius: 14px; }
  .rp-hero h1 { font-size: 1.34rem; }
  .rp-search { flex: 1 1 100%; }
  .page-head-end { margin-left: 0; }
  .home-hero .hero-slide, .home-hero .carousel-item { min-height: 300px; }
  .home-hero .hero-slide { padding: 20px 18px 72px; }
  .home-hero .hero { border-radius: 14px; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -48px 10px 0; }
  .home-stat { padding: 11px 13px; gap: 10px; border-left: 0; }
  .home-stat:nth-child(even) { border-left: 1px solid var(--line-2); }
  .home-stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .home-stat .tone-ic { width: 36px; height: 36px; border-radius: 10px; }
  .home-stat b { font-size: 1.14rem; }
  .home-top h1 { font-size: 1.28rem; }
  .hclock { width: 100%; }
  .slider-nav { width: 34px; height: 34px; }
  .home-hero .hero .carousel-indicators { margin: 0 14px 58px auto; }
  .search-box { min-width: 0; flex: 1 1 100%; }
  .bar-row { grid-template-columns: 116px minmax(0, 1fr) 26px; gap: 8px; }
  /* Yönetim tabloları telefonda kart olur */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 8px solid var(--ceca-bg); padding: 6px 4px; }
  .admin-table tr:last-child { border-bottom: 0; }
  .admin-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 5px 12px; text-align: right; }
  .admin-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 600; text-align: left; flex: none; }
  .admin-table td:first-child { display: block; text-align: left; }
  .admin-table td:first-child::before { display: none; }
  .admin-table .actions { width: 100%; justify-content: flex-end; text-align: right; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }
  .admin-table td[colspan] { display: block; }
  .panel-tools .ms-auto { margin-left: 0 !important; flex-wrap: wrap; width: 100%; }
  .panel-tools .ms-auto .btn { flex: 1; }
  .designer-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .designer-pal { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .designer-pal h6 { display: none; }
  .designer-pal .btn { flex: none; width: auto !important; margin: 0 !important; }
  .pal-item { width: auto; flex: none; margin: 0; white-space: nowrap; }
  .designer { overflow-x: hidden; }
  .designer-top input.name { flex: 1 1 60%; order: -1; }
  .designer-top > .ms-auto { margin-left: 0 !important; flex-wrap: wrap; width: 100%; }
  .designer-top > .ms-auto .btn { flex: 1; }
  .wiz .modal-dialog { max-width: none; }
  /* Dokunmatik kullanım: iOS odakta yakınlaştırmasın, hedefler parmakla seçilebilsin */
  .form-control, .form-select, .form-control-sm, .form-select-sm, .rp-search input, .search-input input { font-size: 16px; }
  .btn-sm { --bs-btn-padding-y: .5rem; }
  .btn-icon, .btn-icon.btn-sm { width: 40px; height: 40px; }
  .w-actions .btn-icon { width: 36px; height: 36px; }
  .seg .nav-link { padding: 9px 14px; }
  .seg-mini button { padding: 8px 12px; }
  .home-head a { padding-block: 8px; margin-block: -6px; }
  .w-kpi .w-head h3 { text-transform: none; letter-spacing: 0; font-size: .78rem; }
  .hbar { grid-template-columns: minmax(104px, 38%) minmax(0, 1fr) minmax(52px, auto); gap: 7px; font-size: .78rem; }
  .panel-head a, .tile-head a { padding: 8px 0 8px 12px; margin-block: -6px; }
  a.cell-main { display: inline-block; padding-block: 6px; }
  .check-row { padding: 7px 0; }
  .admin-table td { padding-block: 3px; }
  .page-head { padding-bottom: 10px; margin-bottom: 10px; gap: 8px; }
  .page-head p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .home-stat small { white-space: normal; line-height: 1.2; }
  .hero .carousel-indicators [data-bs-target] { box-sizing: content-box; width: 12px; height: 6px; padding: 9px 5px; border-radius: 12px; background-clip: content-box; }
  .hero .carousel-indicators .active { width: 22px; }
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-side { padding: 18px 16px 20px; }
  .login-side::after, .login-eyebrow, .login-copy p, .login-visual, .login-feats, .login-foot { display: none; }
  .login-copy { margin: 12px 0 0; }
  .login-copy h1 { font-size: 1.28rem; }
  .login-logo { font-size: 1.05rem; }
  .login-logo-chip { width: 40px; height: 40px; border-radius: 11px; }
  .login-logo-chip img { width: 28px; }
  .login-box > img { display: none; }
  .login-form { padding: 22px 16px; align-items: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .admin-top .btn-soft, .admin-top-title small { display: none; }
  .admin-top { gap: 6px; }
  .admin-top-title { flex: 1; }
  .admin-top h1 { font-size: 14.5px; }
  .form-drawer { top: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 0; }
  .form-drawer.has-rte { width: 100%; }
  .form-drawer-foot .btn { flex: 1 1 40%; }
  .form-drawer .drawer-body { padding: 14px; }
  .top-search { margin-left: 0; width: 38px; padding: 0; justify-content: center; }
  .kpi-value { font-size: 1.2rem; }
  .brand-name { font-size: 1.08rem; }
  .filter-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .filter-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .filter-row > :nth-child(2) { grid-column: 1; }
  .filter-row > :last-child { grid-row: 1; grid-column: 2; }
  .stat { padding: 12px 14px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-ic { width: 38px; height: 38px; }
  .stat b { font-size: 1.3rem; }
  .stat small { font-size: 11px; letter-spacing: 0; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Fareyle üzerine gelinemeyen cihazda yalnızca hover ile açılan araçlar görünür kalır */
@media (hover: none) {
  .tree-item .tree-actions { display: flex; }
  .tree-item small.can-hide { display: none; }
  .grid-stack-item .design-tools { display: flex; }
}
/* Yatay telefon: ekran yüksekliği içerik için ayrılır */
@media (max-height: 480px) and (max-width: 1024px) {
  :root { --header-h: 50px; }
  .bottom-nav { height: calc(44px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { font-size: 0; gap: 0; }
  .site-foot { margin-bottom: 44px; }
  .home-hero .hero-slide, .home-hero .carousel-item { min-height: 230px; }
  .home-hero .hero-slide { padding-top: 12px; }
  .modal-dialog { margin-block: .25rem; }
  .mail-frame { height: 70vh; }
  .designer-pal { padding: 4px 8px; }
  .designer-top { min-height: 0; padding: 4px 10px; }
  .designer-top > .ms-auto { width: auto; margin-left: auto !important; flex-wrap: nowrap; }
  .designer-top input.name { flex: 1 1 120px; order: 0; }
}
@media print {
  .app-header, .sidenav, .admin-top, .rt-bar, .w-actions, .bottom-nav, .site-foot { display: none !important; }
}

/* Sunucudan gelen çekmece ve pencere içerikleri */
.form-drawer-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.form-drawer-form .drawer-body { flex: 1; min-height: 0; overflow-y: auto; }
.modal-content > form, .modal-content > [data-modal-size] { display: contents; }
.notif-item[role="button"] { cursor: pointer; }
.drawer-menu form { margin: 0; }
.w-body > .w-empty .spinner-border { color: var(--ceca-primary); }

/* Tablolar ekranı */
.tbl-search { padding: 12px; border-bottom: 1px solid var(--line-2); }
.tbl-search .search-box { min-width: 0; }
.tbl-nav { padding: 2px 0 8px; overflow-y: auto; }
.tbl-group { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 18px 2px; }
.tbl-nav .tree { padding-block: 2px; }
.tbl-nav .tree-item > .ic { color: var(--ceca-primary); }
.tbl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-layout > * { min-width: 0; }
.tbl-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 12px; }
.tbl-title { min-width: 0; }
.tbl-title h2 { font-size: 1.08rem; margin: 0; overflow-wrap: anywhere; }
.tbl-title p { color: var(--muted); font-size: .88rem; margin: 2px 0 7px; }
.tbl-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.tbl-tabs { padding: 0 18px 12px; border-bottom: 1px solid var(--line-2); }
.tbl-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.tbl-scroll { overflow-x: auto; max-height: 620px; overflow-y: auto; }
.data-table.plain tbody tr, .data-table.plain th { cursor: default; }
.data-table.plain tbody tr:hover td { background: var(--hover); }
.tbl-scroll .data-table th:first-child, .tbl-scroll .data-table td:first-child { padding-left: 18px; }
.tbl-col { font-weight: 600; font-family: Consolas, 'Cascadia Mono', monospace; font-size: .8rem; }
.tbl-key { font-family: var(--font); font-weight: 500; font-size: .7rem; margin-left: 4px; }
.tbl-key .ic { font-size: .95rem; }
.tbl-type { font-family: Consolas, 'Cascadia Mono', monospace; font-size: .76rem; color: var(--muted); }
.dict .tbl-desc { white-space: normal; min-width: 220px; }
.tbl-null { color: #A5AFBA; }
.tbl-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.tbl-pager .count { margin-right: auto; }
@media (max-width: 1024px) {
  .tbl-nav { max-height: 250px; }
  .tbl-scroll { max-height: none; }
}