/* ==========================================================
   Web Otomasyon · Servis ve Müşteri Portalı
   Tasarım sistemi v2
   ========================================================== */
:root {
    /* Marka */
    --navy-950: #070F1F; --navy-900: #0B1830; --navy-800: #11264A; --navy-700: #1A3766;
    --blue: #1F5FAE; --blue-600: #1A529A; --blue-dark: #164684; --blue-400: #3B82F6; --blue-300: #7FB0F5;
    --blue-soft: #EEF4FD; --blue-100: #DCE8FA; --blue-line: #C7DAF5;
    /* Nötr */
    --ink: #0F1D36; --text: #2A3550; --muted: #66728A; --faint: #9AA4B8;
    --line: #D9E1EC; --line-2: #E9EEF5; --bg: #F0F3F8; --card: #FFFFFF;
    /* Durum */
    --green: #0F7B57; --green-soft: #E6F6EF; --green-line: #BDE7D4;
    --amber: #B25E09; --amber-soft: #FEF4E4; --amber-line: #F6DBAE;
    --red: #CF3434; --red-soft: #FDEEEE; --red-line: #F5C9C9;
    --violet: #6A4BD8; --violet-soft: #F1EEFD;
    /* Biçim */
    --r: 16px; --r-sm: 11px; --r-xs: 8px;
    --sh-1: 0 1px 2px rgba(15,29,54,.06), 0 4px 12px -6px rgba(15,29,54,.10);
    --sh-2: 0 10px 30px -12px rgba(15,29,54,.16), 0 2px 6px -2px rgba(15,29,54,.05);
    --sh-3: 0 24px 60px -18px rgba(7,15,31,.35), 0 6px 16px -6px rgba(7,15,31,.12);
    --ring: 0 0 0 4px rgba(31,95,174,.14);
    --f-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --sb-w: 268px; --nav-h: 68px; --tab-h: 68px;
    --pad: 32px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); letter-spacing: -.025em; }
h2 { font-size: 1.08rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--blue); text-underline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--blue-100); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; }
.mono { font-family: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ==========================================================
   Uygulama iskeleti
   ========================================================== */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Yan menü ---------- */
.sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 16px;
    color: #A9B6CE; z-index: 90;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(59,130,246,.18) 0%, transparent 55%),
        radial-gradient(90% 50% at 100% 100%, rgba(31,95,174,.22) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sb-brand { display: flex; align-items: center; gap: 8px; padding: 2px 2px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-logo { flex: 1; display: flex; justify-content: center; align-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.6); transition: transform .15s; }
.sb-logo:hover { transform: translateY(-1px); }
.sb-logo img { height: 40px; width: auto; display: block; }
.sb-close { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }
.sb-context { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.sb-context b { display: block; color: #fff; font-family: var(--f-head); font-size: .9rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.sb-context small { font-size: .74rem; color: #8494B0; }
.sb-dot { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); flex: 0 0 auto; }
.sb-new { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue) 100%); box-shadow: 0 10px 24px -10px rgba(59,130,246,.8), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .15s, box-shadow .15s; }
.sb-new:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(59,130,246,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.sb-nav { display: grid; gap: 14px; }
.sb-nav, .sb-group { min-width: 0; }
.sb-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.sb-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5F6F8C; padding: 4px 12px 6px; }
.sb-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #B4C0D6; text-decoration: none; font-weight: 500; font-size: .9rem; transition: background .15s, color .15s; }
.sb-link i { width: 18px; text-align: center; font-size: .92rem; color: #6F80A0; transition: color .15s; }
.sb-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sb-link:hover i { color: #C9D5EA; }
.sb-link.active { background: linear-gradient(90deg, rgba(59,130,246,.22) 0%, rgba(59,130,246,.06) 100%); color: #fff; }
.sb-link.active i { color: var(--blue-300); }
.sb-link.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-300); }
.sb-count { font-style: normal; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.sb-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sb-user { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sb-user-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px; border-radius: 10px; }
.sb-user-main:hover { background: rgba(255,255,255,.05); }
.sb-user .avatar { background: linear-gradient(135deg, var(--blue-400), var(--blue)); }
.sb-user-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sb-user-name b { color: #fff; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-name small { color: #7D8CA8; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user form { margin: 0; }
.sb-logout { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: #8C9BB6; cursor: pointer; display: grid; place-items: center; }
.sb-logout:hover { background: rgba(239,68,68,.15); color: #FCA5A5; }
.sb-help { padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.04)); border: 1px solid rgba(127,176,245,.2); display: grid; gap: 2px; font-size: .82rem; }
.sb-help b { color: #fff; font-family: var(--f-head); }
.sb-help a { color: #fff; font-weight: 600; text-decoration: none; margin-top: 6px; }
.sb-site { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: #7D8CA8; text-decoration: none; font-size: .8rem; }
.sb-site:hover { color: #fff; background: rgba(255,255,255,.04); }
.sb-site .fa-arrow-up-right-from-square { margin-left: auto; font-size: .7rem; }
.sb-backdrop { display: none; }

/* ---------- Üst bar ---------- */
.main-col { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); background: rgba(244,246,251,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(228,233,241,.8); }
.topbar .tb-menu, .topbar .tb-logo { display: none; }
.tb-logo img { height: 30px; width: auto; display: block; }
.tb-search { position: relative; flex: 1; max-width: 520px; }
.tb-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .9rem; pointer-events: none; }
.topbar .tb-search input { min-height: 42px; padding-left: 40px; padding-right: 40px; background: #fff; border-color: var(--line); border-radius: 12px; font-size: 14px; box-shadow: var(--sh-1); }
.tb-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .72rem var(--f-body); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: var(--line-2); }
.tb-greet { display: flex; flex-direction: column; line-height: 1.25; }
.tb-greet b { font-family: var(--f-head); color: var(--ink); font-size: .98rem; }
.tb-greet span { font-size: .8rem; color: var(--muted); }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; cursor: pointer; font-size: 1rem; box-shadow: var(--sh-1); transition: border-color .15s, color .15s; }
.tb-icon:hover { border-color: var(--blue-line); color: var(--blue); }
.tb-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: #fff; font-style: normal; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.tb-new { min-height: 42px; border-radius: 12px; }
.tb-drop-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--sh-1); }
.user-btn:hover { border-color: var(--blue-line); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue) 0%, var(--navy-800) 100%); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.avatar.lg { width: 42px; height: 42px; border-radius: 12px; font-size: .92rem; }
.user-name { display: flex; flex-direction: column; text-align: left; line-height: 1.2; font-weight: 600; font-size: .86rem; max-width: 180px; }
.user-name small { font-weight: 400; color: var(--muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn > i { color: var(--faint); font-size: .66rem; }
.drop { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); min-width: 270px; padding: 6px; z-index: 70; animation: drop-in .14s ease-out; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.drop a, .drop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.drop a:hover, .drop button:hover { background: var(--line-2); }
.drop a > i, .drop button > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .88rem; flex: 0 0 auto; }
.drop b { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
.drop small { display: block; font-size: .76rem; color: var(--muted); }
.drop form { margin: 4px 0 0; border-top: 1px solid var(--line-2); padding-top: 4px; }
.drop form button > i { background: var(--red-soft); color: var(--red); }
.drop-user { min-width: 250px; }
.drop-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.drop-head small { overflow: hidden; text-overflow: ellipsis; max-width: 170px; white-space: nowrap; }

/* ---------- Sayfa ---------- */
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px var(--pad) 56px; flex: 1; }
.page.narrow { max-width: 960px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .86rem; margin-bottom: 14px; color: var(--muted); padding: 5px 10px 5px 8px; border-radius: 8px; margin-left: -8px; transition: background .15s, color .15s; }
.back:hover { color: var(--blue); background: var(--blue-soft); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--faint); padding: 18px var(--pad) 26px; border-top: 1px solid var(--line); max-width: 1320px; width: 100%; margin: 0 auto; }
.section-h { margin: 8px 0 14px; font-size: 1.15rem; }

/* ---------- Kart ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh-1); }
.card:not(.flush) > .section-title:first-child, .card:not(.flush) > .section-title:first-of-type { margin-top: -4px; }
.card + .card { margin-top: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head p { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 18px 22px 16px; margin: 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FAFBFE 0%, #fff 100%); }
.card.flush .card-head + .rows { margin-top: 0 !important; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-wide-left { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.grid-2 > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.link { background: none; border: 0; color: var(--blue); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; padding: 6px 10px; margin: -6px -10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.link:hover { background: var(--blue-soft); }
.link.danger { color: var(--red); }

/* ---------- Karşılama ve proje başlığı ---------- */
.hello, .project-hero {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; color: #C9D6EC;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(59,130,246,.55) 0%, transparent 60%),
        radial-gradient(50% 90% at 0% 100%, rgba(31,95,174,.45) 0%, transparent 60%),
        linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 60%, #173E7A 100%);
    box-shadow: 0 24px 50px -24px rgba(11,24,48,.55);
}
.hello::before, .project-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 0%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
.hello::after, .project-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 48px solid rgba(255,255,255,.05); z-index: -1; }
.hello { padding: 30px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hello .eyebrow, .project-hero .eyebrow { color: var(--blue-300); }
.hello h1, .project-hero h1 { color: #fff; margin: 0 0 8px; }
.hello p { margin: 0; max-width: 580px; color: #B9C7DE; }
.hello-actions, .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.project-hero { padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px 24px; align-items: start; }
.hero-actions { justify-content: flex-end; }
.project-hero .chip { background: rgba(255,255,255,.1); color: #E3EBF7; border-color: rgba(255,255,255,.16); }
.project-hero .chip i { color: var(--blue-300); }
.hero-progress { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.hero-progress .progress { background: rgba(255,255,255,.14); height: 10px; }
.hero-progress .progress span { background: linear-gradient(90deg, #60A5FA, #A5F3FC); box-shadow: 0 0 16px rgba(96,165,250,.6); }
.hp-top, .hp-dates { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; }
.hp-top { margin-bottom: 10px; }
.hp-top b { color: #fff; font-family: var(--f-head); font-size: 1.1rem; }
.hp-dates { margin-top: 10px; color: #9FB0CC; }
.project-hero + .alert { margin-top: 18px; }

/* ---------- İstatistik ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.stats:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats:has(> .stat:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.stat { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r); padding: 18px 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--blue-soft); opacity: .6; z-index: 0; }
.stat > * { position: relative; z-index: 1; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--blue-line); }
.stat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: 0 0 auto; font-size: 1.05rem; }
.stat-ico.amber { background: var(--amber-soft); color: var(--amber); }
.stat-ico.green { background: var(--green-soft); color: var(--green); }
.stat-ico.red { background: var(--red-soft); color: var(--red); }
.stat:has(.stat-ico.amber)::after { background: var(--amber-soft); }
.stat:has(.stat-ico.green)::after { background: var(--green-soft); }
.stat:has(.stat-ico.red)::after { background: var(--red-soft); }
.stat b { display: block; font-family: var(--f-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat b.stat-sm { font-size: 1.1rem; word-break: break-word; }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Liste satırları ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line-2); transition: background .12s; }
.rows .row:first-child { border-top: 0; }
.row:hover { background: #F9FBFE; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; }
a.row-title:hover { color: var(--blue); }
.row-sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.row-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 7px; }
.row-actions { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
.amount { font-family: var(--f-head); font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.empty > i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--line-2); font-size: 1.3rem; color: var(--faint); }
.empty h3 { margin: 4px 0; color: var(--ink); }
.empty p { margin: 0 0 14px; }
.card .rows { margin: 0 -24px -24px; }
.card.flush .rows { margin: 0; }

.c-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .86rem; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--blue-100); }
.c-avatar i { font-size: .95rem; color: var(--blue); }
.c-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.c-avatar.lg { width: 72px; height: 72px; font-size: 1.3rem; border-radius: 18px; }

/* ---------- Rozet ve etiket ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.b-amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.b-blue { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue-line); }
.b-green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.b-gray { background: var(--line-2); color: var(--muted); border-color: var(--line); }
.b-red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500; color: var(--muted); background: var(--line-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.chip i { color: var(--faint); font-size: .7rem; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px; border-radius: var(--r-sm); border: 1px solid transparent; font-family: var(--f-body); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; white-space: nowrap; line-height: 1.1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: linear-gradient(180deg, #2468BC 0%, var(--blue) 100%); color: #fff; box-shadow: 0 1px 2px rgba(15,29,54,.12), 0 6px 16px -6px rgba(31,95,174,.55), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); }
.btn-dark { background: var(--navy-800); color: #fff; } .btn-dark:hover { background: var(--navy-900); }
.btn-success { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(15,123,87,.55); } .btn-success:hover { background: #0B6447; }
.btn-light { background: #fff; color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); } .btn-light:hover { background: var(--blue-soft); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); } .btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--sh-1); } .btn-outline:hover { border-color: var(--blue-line); color: var(--blue); background: #FBFCFF; }
.btn-danger { background: #fff; border-color: var(--red-line); color: var(--red); } .btn-danger:hover { background: var(--red-soft); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.btn-sm.btn-icon { width: 34px; min-height: 34px; }

/* ---------- Formlar ---------- */
.form-section { margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.section-title i { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: .86rem; flex: 0 0 auto; }
.section-title small { margin-left: auto; font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: .82rem; color: var(--ink); }
.field .hint { font-size: .77rem; color: var(--muted); }
.req::after { content: ' *'; color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
    width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #D6DDE8; border-radius: var(--r-sm); background: #fff;
    font: inherit; font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; appearance: none; box-shadow: 0 1px 2px rgba(15,29,54,.03);
}
input:hover, select:hover, textarea:hover { border-color: #C3CDDC; }
input::placeholder, textarea::placeholder { color: #A7B0C2; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366728A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
input[readonly], input:disabled { background: var(--line-2); color: var(--muted); }
input[type=file] { font: inherit; font-size: .86rem; color: var(--muted); padding: 10px; border: 1.5px dashed #CBD5E3; border-radius: var(--r-sm); background: #FAFBFE; width: 100%; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 .82rem var(--f-body); border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 8px; margin-right: 10px; cursor: pointer; }
input[type=file]:hover { border-color: var(--blue-300); background: var(--blue-soft); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .88rem; background: #fff; transition: all .15s; user-select: none; }
.check-pill span:hover { border-color: var(--blue-line); }
.check-pill span::before { content: ''; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #B7C2D2; flex: 0 0 auto; transition: all .15s; }
.check-pill input[type=radio] + span::before { border-radius: 50%; }
.check-pill input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; box-shadow: 0 0 0 3px rgba(31,95,174,.08); }
.check-pill input:checked + span::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--blue); }
.check-pill input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 2px; flex: 0 0 auto; }
.form-actions { position: sticky; bottom: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-top: 1px solid var(--line); margin: 24px calc(var(--pad) * -1) -56px; padding: 14px var(--pad) calc(14px + var(--safe-b)); display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; box-shadow: 0 -10px 30px -20px rgba(15,29,54,.25); }
.form-actions .grow { margin-right: auto; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.save-state i { color: var(--green); }

/* Malzeme tablosu */
.mat-table { width: 100%; border-collapse: collapse; }
.mat-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 0 8px 8px; font-weight: 600; }
.mat-table td { padding: 4px; vertical-align: middle; }
.mat-table td:first-child { width: 55%; }
.mat-table td:nth-child(2) { width: 16%; }
.mat-table td:nth-child(3) { width: 20%; }
.mat-table td:last-child { width: 44px; text-align: center; }

/* İmza */
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sig-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: linear-gradient(180deg, #FBFCFF 0%, #fff 100%); display: grid; gap: 12px; }
.sig-card h3 { margin: 0; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.sig-card h3 i { color: var(--blue); }
.sig-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: 6px; }
.sig-head .link { margin: 0; padding: 2px 6px; }
.sig-box { position: relative; height: 170px; border: 1.5px dashed #C2CFE0; border-radius: var(--r-sm); background: #fff; touch-action: none; background-image: linear-gradient(transparent calc(100% - 42px), #E8EDF5 calc(100% - 42px), #E8EDF5 calc(100% - 41px), transparent calc(100% - 41px)); }
.sig-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; border-radius: var(--r-sm); }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: .84rem; pointer-events: none; text-align: center; padding: 0 12px; }
.sig.has-ink .sig-hint { display: none; }
.sig.has-ink .sig-box { border-style: solid; border-color: var(--blue-line); }

/* Fotoğraflar */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: .74rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo .photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.92); color: var(--red); cursor: pointer; display: grid; place-items: center; }
.photo .photo-del:hover { background: #fff; }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #C2CFE0; border-radius: 12px; aspect-ratio: 4 / 3; color: var(--muted); cursor: pointer; font-size: .84rem; text-align: center; background: #FAFBFE; padding: 10px; transition: border-color .15s, background .15s; }
.photo-drop:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.photo-drop i { font-size: 1.4rem; color: var(--blue); }
.photo-drop input { display: none; }
.photo.pending { outline: 2px solid var(--blue); }
.photo.pending::after { content: 'Kaydedilince yüklenecek'; position: absolute; top: 6px; left: 6px; font-size: .66rem; background: var(--blue); color: #fff; padding: 2px 6px; border-radius: 5px; }

/* Bakım kontrol listesi */
.checklist { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cl-group { background: #F6F8FC; padding: 10px 16px; font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: .88rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.cl-group:first-child { border-top: 0; }
.cl-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); align-items: center; }
.cl-text { font-size: .92rem; }
.cl-text small { display: inline-block; margin-left: 6px; font-size: .72rem; color: var(--muted); background: var(--line-2); padding: 1px 7px; border-radius: 999px; }
.cl-opts { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cl-opts label { position: relative; }
.cl-opts input { position: absolute; opacity: 0; }
.cl-opts span { display: block; padding: 7px 13px; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted); background: #fff; border-left: 1px solid var(--line); user-select: none; transition: background .12s, color .12s; }
.cl-opts label:first-child span { border-left: 0; }
.cl-opts input:checked + span.ok { background: var(--green); color: #fff; }
.cl-opts input:checked + span.no { background: var(--red); color: #fff; }
.cl-opts input:checked + span.na { background: #6B7789; color: #fff; }
.cl-opts input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--blue); }
.cl-note { grid-column: 1 / -1; }
.cl-note input { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.cl-progress { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.cl-bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #10B981, var(--green)); width: 0; transition: width .2s; }

/* Arama / filtre */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #FAFBFE; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .88rem; }
.toolbar .search input { padding-left: 40px; }
.toolbar select { width: auto; min-width: 180px; }
.seg { display: inline-flex; background: var(--line-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg a { padding: 7px 13px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .82rem; white-space: nowrap; transition: color .12s, background .12s; }
.seg a:hover { color: var(--ink); }
.seg a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,29,54,.1); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.pager a, .pager .disabled { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .84rem; background: #fff; display: inline-flex; gap: 8px; align-items: center; }
.pager a:hover { border-color: var(--blue-line); color: var(--blue); }
.pager .disabled { color: var(--faint); background: var(--line-2); }
.pager-info { font-size: .84rem; color: var(--muted); }

/* Uyarılar */
.toast, .alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; font-size: .9rem; border: 1px solid transparent; }
.toast i, .alert i { margin-top: 3px; }
.toast { box-shadow: var(--sh-2); animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
.toast > span { flex: 1; min-width: 0; }
.toast-ok { background: var(--green-soft); color: #0B5A40; border-color: var(--green-line); }
.toast-err, .alert-err { background: var(--red-soft); color: #962626; border-color: var(--red-line); }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue-line); }
.alert-warn { background: var(--amber-soft); color: #7A4708; border-color: var(--amber-line); }

/* ---------- Proje kartları ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.project-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .2s, transform .2s; overflow: hidden; }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-400)); opacity: 0; transition: opacity .2s; }
.project-card:hover { border-color: var(--blue-line); box-shadow: var(--sh-2); transform: translateY(-3px); }
.project-card:hover::before { opacity: 1; }
.project-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-il { font-size: .78rem; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.pc-il i { color: var(--faint); }
.pc-cust { margin: -6px 0 0; font-size: .84rem; color: var(--muted); }
.pc-foot { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.pc-foot i { color: var(--faint); margin-right: 4px; }

/* İlerleme */
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-400) 100%); transition: width .5s; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 18px 22px 22px; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line-2); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline b { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
.timeline span { font-size: .78rem; color: var(--muted); }

/* Kopyala / satır içi formlar */
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: var(--line-2); }
.toast .copy-row input { background: #fff; color: var(--text); }
.inline-upload { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: #FBFCFE; }
.inline-upload .fields { margin: 0; }
.inline-upload .btn { justify-self: start; }

/* Fatura */
.inv-total { position: relative; overflow: hidden; border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; color: #CFE0F7; background: radial-gradient(80% 140% at 100% 0%, rgba(59,130,246,.5) 0%, transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy-800)); }
.inv-total span { display: block; font-size: .8rem; font-weight: 500; color: var(--blue-300); text-transform: uppercase; letter-spacing: .08em; }
.inv-total > b { display: block; font-family: var(--f-head); font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.02em; }
.inv-total small { color: #AFC2E0; }
.inv-total small b { color: #fff; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 0; }
.inv-grid .full { grid-column: 1 / -1; }
.inv-grid dt { font-size: .72rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.inv-grid dd { margin: 3px 0 0; font-weight: 500; color: var(--ink); }
.pdf-frame { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line-2); }
.pdf-frame iframe { display: block; width: 100%; height: 720px; border: 0; }

/* Talep mesajları */
.msg { padding: 4px 0 18px; }
.msg + .msg { border-top: 1px solid var(--line-2); padding-top: 18px; }
.msg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.msg-head b { display: block; color: var(--ink); font-size: .92rem; }
.msg-head small { color: var(--muted); font-size: .78rem; }
.msg p { margin: 0; padding: 14px 16px; background: var(--line-2); border-radius: 4px 14px 14px 14px; }
.msg-reply p { background: var(--blue-soft); border: 1px solid var(--blue-100); }
.msg-reply .avatar { background: linear-gradient(135deg, var(--blue-400), var(--blue)); }

/* Arama sonuçları */
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; align-items: start; }
.search-results .card + .card { margin-top: 0; }

/* ---------- Belge (önizleme / PDF) ---------- */
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 16px; }
.doc-wrap { overflow-x: auto; padding: 4px 0 8px; }
.doc { width: 794px; margin: 0 auto; background: #fff; color: #1B2433; padding: 44px 48px 36px; box-shadow: var(--sh-2); border-radius: 6px; font-size: 12.5px; line-height: 1.45; font-family: var(--f-body); border: 1px solid var(--line); }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 2.5px solid var(--navy-800); margin-bottom: 18px; }
.doc-brand { display: flex; align-items: center; gap: 12px; }
.doc-brand svg { width: 46px; height: 46px; }
.doc-brand strong { display: block; font-family: var(--f-head); font-size: 21px; letter-spacing: .04em; color: var(--navy-800); line-height: 1; }
.doc-brand small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.doc-title { text-align: right; }
.doc-title h2 { font-size: 21px; margin: 0 0 4px; }
.doc-title .mono { font-size: 13px; color: var(--muted); }
.doc-sec { margin-bottom: 14px; }
.doc-sec h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; padding: 6px 10px; background: #EEF3FA; border-left: 3px solid var(--navy-800); color: var(--navy-800); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 0 4px; }
.doc-grid .full { grid-column: 1 / -1; }
.doc-f dt { font-size: 10.5px; font-weight: 700; color: #4A5568; margin: 0; }
.doc-f dd { margin: 1px 0 0; font-size: 12.5px; color: #111827; white-space: pre-line; word-break: break-word; }
.doc-text { padding: 2px 4px; white-space: pre-line; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.doc-table th, .doc-table td { border: 1px solid #9AA5B4; padding: 4px 6px; text-align: left; vertical-align: top; }
.doc-table th { background: #DDE3EC; font-weight: 700; text-align: center; font-size: 10.5px; text-transform: uppercase; }
.doc-table .c { text-align: center; white-space: nowrap; }
.doc-table .grp { background: #F1F4F8; font-weight: 700; }
.res-ok { color: #0F6039; font-weight: 700; } .res-no { color: var(--red); font-weight: 700; } .res-na { color: #6B7789; }
.doc-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-sig { border: 1px solid #C3CBD6; border-radius: 4px; padding: 10px 12px; min-height: 140px; }
.doc-sig dt { font-size: 10.5px; font-weight: 700; color: #4A5568; }
.doc-sig dd { margin: 0 0 6px; }
.doc-sig img { max-height: 80px; max-width: 100%; display: block; }
.doc-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid #D5DBE3; font-size: 10px; color: #6B7280; text-align: center; }
.doc-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc-photos figure { margin: 0; border: 1px solid #D5DBE3; }
.doc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.doc-photos figcaption { font-size: 10px; padding: 3px 5px; color: #4A5568; }
.gen-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(7,15,31,.55); backdrop-filter: blur(4px); display: grid; place-items: center; }
.gen-box { background: #fff; border-radius: var(--r); padding: 28px 32px; text-align: center; box-shadow: var(--sh-3); max-width: 320px; }
.gen-box i { font-size: 1.8rem; color: var(--blue); margin-bottom: 10px; }

/* ---------- Yetkiler ---------- */
.perm-list { display: grid; gap: 8px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.perm:hover { border-color: var(--blue-line); }
.perm:has(input:checked) { border-color: var(--blue-line); background: var(--blue-soft); }
.perm:has(input:disabled) { cursor: default; opacity: .85; }
.perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.perm b { display: block; font-size: .88rem; color: var(--ink); }
.perm small { display: block; font-size: .78rem; color: var(--muted); }
.role-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .86rem; color: var(--muted); }
.role-help .badge { margin-right: 6px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Seçim kartları ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pick { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--text); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .2s, transform .2s; }
.pick:hover { border-color: var(--blue-line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pick > i { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-soft), var(--blue-100)); color: var(--blue); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.pick b { display: block; color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: .98rem; }
.pick span { font-size: .82rem; color: var(--muted); }

/* ==========================================================
   Giriş / kurulum ekranları
   ========================================================== */
.auth-body { background: #fff; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; isolation: isolate; color: #B9C7DE; padding: 40px 48px; display: flex;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(59,130,246,.45) 0%, transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(31,95,174,.5) 0%, transparent 60%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-950) 100%); }
.auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 80%); }
.auth-side::after { content: ''; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); z-index: -1; }
.auth-side-inner { display: flex; flex-direction: column; gap: 40px; max-width: 520px; margin: 0 auto; width: 100%; }
.auth-logo { display: inline-flex; align-self: flex-start; background: #fff; border-radius: 14px; padding: 9px 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.auth-logo img { height: 40px; width: auto; display: block; }
.auth-pitch { margin: auto 0; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-300); background: rgba(59,130,246,.12); border: 1px solid rgba(127,176,245,.25); padding: 6px 12px; border-radius: 999px; }
.auth-pitch h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; margin: 20px 0 28px; font-weight: 800; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-features li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.auth-features i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(96,165,250,.3), rgba(59,130,246,.12)); color: #BFDBFE; flex: 0 0 auto; }
.auth-features b { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .95rem; }
.auth-features span { font-size: .82rem; color: #93A4C2; }
.auth-contact { display: flex; gap: 18px; flex-wrap: wrap; font-size: .84rem; }
.auth-contact a { color: #C9D6EC; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.auth-contact a:hover { color: #fff; }
.auth-main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; background: radial-gradient(80% 50% at 50% 0%, var(--blue-soft) 0%, #fff 60%); }
.auth-main > .toast { max-width: 440px; width: 100%; margin: 0 auto 16px; }
.auth-logo-sm { display: none; }
.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card[style*="max-width:520px"] { max-width: 520px !important; }
.auth-card h1 { font-size: 1.85rem; margin-bottom: 6px; }
.auth-card > .muted { font-size: .92rem; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card .alert { margin: 16px 0 0; }
.auth-card .btn-lg { margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .86rem; }
.auth-links a { text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* ---------- Kullanıcılar ---------- */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 20px 22px 22px; }
.user-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .2s, transform .2s; }
.user-card:hover { border-color: var(--blue-line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.user-card.is-off { background: #FAFBFD; }
.user-card.is-off .avatar { background: #A4AEC0; }
.uc-top { display: flex; align-items: center; gap: 12px; }
.uc-name { flex: 1; min-width: 0; line-height: 1.3; }
.uc-name b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--f-head); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-name small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-meta { display: grid; grid-template-columns: 1.2fr .6fr 1.2fr; gap: 10px; margin: 0; padding: 12px; border-radius: 11px; background: var(--line-2); }
.uc-meta dt { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.uc-meta dd { margin: 2px 0 0; font-size: .82rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-link { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--blue); margin-top: auto; }
.uc-link i { transition: transform .15s; }
.uc-link:hover i { transform: translateX(3px); }
.avatar.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.45rem; box-shadow: 0 12px 28px -12px rgba(31,95,174,.7); }
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-main { flex: 1; min-width: 220px; }
.ph-main h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.ph-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-stats { display: flex; gap: 8px; margin: 0; }
.ph-stats div { min-width: 96px; padding: 10px 14px; border-radius: 12px; background: var(--line-2); border: 1px solid var(--line); }
.ph-stats dt { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.ph-stats dd { margin: 2px 0 0; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.ph-stats dd.sm { font-size: .86rem; font-family: var(--f-body); font-weight: 600; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.role-card { position: relative; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.rc-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.rc-body:hover { border-color: var(--blue-line); }
.rc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); color: var(--muted); margin-bottom: 6px; transition: all .15s; }
.rc-body b { color: var(--ink); font-size: .92rem; }
.rc-body small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.role-card input:checked + .rc-body { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(31,95,174,.1); }
.role-card input:checked + .rc-body .rc-ico { background: var(--blue); color: #fff; }
.role-card input:focus-visible + .rc-body { box-shadow: var(--ring); }
.switch-list { display: grid; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; cursor: pointer; background: #fff; }
.switch-list .switch-row + .switch-row { border-top: 1px solid var(--line-2); }
.switch-row:hover { background: #FAFBFE; }
.switch-row > span { min-width: 0; }
.switch-row b { display: block; font-size: .88rem; color: var(--ink); }
.switch-row small { display: block; font-size: .78rem; color: var(--muted); }
.card > .switch-row { border: 1px solid var(--line); border-radius: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: #CBD4E1; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,29,54,.3); transition: transform .2s; }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }
.pass-row { display: flex; gap: 8px; align-items: center; }
.pass-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.pass-row .btn { min-height: 44px; }
.card-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 26px -24px -24px; padding: 16px 24px; border-top: 1px solid var(--line); background: #FAFBFE; border-radius: 0 0 var(--r) var(--r); }
.danger-zone { border-color: var(--red-line); }
.danger-zone .section-title i { background: var(--red-soft); color: var(--red); }
.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .86rem; color: var(--text); }
.tip-list li { display: flex; gap: 10px; }
.tip-list i { color: var(--green); margin-top: 4px; font-size: .8rem; }
.tip-card .section-title i { background: var(--amber-soft); color: var(--amber); }
@media (max-width: 640px) {
    .user-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 12px; }
    .profile-head { gap: 14px; }
    .avatar.xl { width: 56px; height: 56px; border-radius: 16px; font-size: 1.15rem; }
    .ph-stats { width: 100%; } .ph-stats div { flex: 1; min-width: 0; }
    .card-foot { margin: 22px -16px -18px; padding: 14px 16px; }
    .card-foot .btn { flex: 1; }
    .role-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Alt menü (mobil) ---------- */
.tabbar { display: none; }

/* ==========================================================
   Duyarlı
   ========================================================== */
@media (max-width: 1280px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    :root { --pad: 24px; }
    .app { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--sh-3); }
    .nav-open .sidebar { transform: none; }
    .sb-close { display: grid; place-items: center; }
    .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(7,15,31,.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
    .nav-open .sb-backdrop { opacity: 1; pointer-events: auto; }
    .nav-open { overflow: hidden; }
    .topbar .tb-menu { display: grid; }
    .grid-2, .grid-wide-left { grid-template-columns: minmax(0, 1fr); }
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-side { display: none; }
    .auth-logo-sm { display: inline-flex; align-self: center; margin-bottom: 28px; }
    .auth-logo-sm img { height: 44px; width: auto; }
    .search-results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    :root { --nav-h: 62px; }
    .topbar .tb-logo { display: inline-flex; }
    .tb-search { display: none; }
    .tb-greet { display: none; }
    .user-name, .user-btn > i { display: none; }
    .user-btn { padding: 3px; border-radius: 12px; }
    .tb-new span { display: none; }
    .tb-new { width: 42px; padding: 0; }
    body.has-nav { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(15,29,54,.25); }
    .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); text-decoration: none; font-size: .68rem; font-weight: 600; }
    .tabbar a i { font-size: 1.1rem; }
    .tabbar a.active { color: var(--blue); }
    .tabbar a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
    .tabbar .tab-new i { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--blue-400), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 12px 24px -8px rgba(31,95,174,.7); transform: translateY(-16px); border: 4px solid #fff; }
    .tab-dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .64rem; display: grid; place-items: center; }
    .form-actions { bottom: calc(var(--tab-h) + var(--safe-b)); margin-bottom: -56px; padding-bottom: 14px; }
    .foot { display: none; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: none !important; }
    .pdf-frame iframe { height: 520px; }
}
@media (max-width: 640px) {
    :root { --pad: 14px; }
    body { font-size: 15px; }
    .page { padding-top: 18px; padding-bottom: 40px; }
    .topbar { gap: 10px; }
    .card { padding: 18px 16px; border-radius: 14px; }
    .card .rows { margin: 0 -16px -18px; }
    .row { padding: 13px 16px; flex-wrap: wrap; }
    .row-actions { width: 100%; padding-left: 56px; flex-wrap: wrap; }
    .row-actions .btn { flex: 1; }
    .card.flush .card-head { padding: 16px; }
    .toolbar { padding: 14px 16px; }
    .pager { padding: 12px 16px; }
    .fields, .fields.cols-3, .sigs, .doc-sigs-edit { grid-template-columns: minmax(0, 1fr); }
    .fields .field[style*="span"] { grid-column: auto !important; }
    .section-title { flex-wrap: wrap; }
    .section-title small { margin-left: 46px; width: 100%; }
    .hello, .project-hero { padding: 22px 20px; border-radius: 18px; }
    .hello { flex-direction: column; align-items: flex-start; }
    .project-hero { grid-template-columns: minmax(0, 1fr); }
    .hero-actions { justify-content: flex-start; }
    .hello-actions, .hero-actions { width: 100%; }
    .hello-actions .btn, .hero-actions .btn { flex: 1; }
    .stats { gap: 10px; }
    .stat { padding: 14px; gap: 11px; }
    .stat-ico { width: 38px; height: 38px; border-radius: 11px; font-size: .92rem; }
    .stat b { font-size: 1.35rem; }
    .form-actions .btn { flex: 1; }
    .form-actions .grow { width: 100%; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn { flex: 1; }
    .doc-actions .btn { flex: 1 1 calc(50% - 8px); }
    .cl-item { grid-template-columns: minmax(0, 1fr); }
    .cl-opts { width: 100%; } .cl-opts label { flex: 1; } .cl-opts span { text-align: center; }
    .mat-table th:nth-child(3), .mat-table td:nth-child(3) { width: 26%; }
    .toolbar select, .seg { width: 100%; }
    .seg a { flex: 1; text-align: center; }
    .inv-grid { grid-template-columns: minmax(0, 1fr); }
    .inv-total > b { font-size: 1.7rem; }
    .copy-row { flex-wrap: wrap; }
    .copy-row input { flex-basis: 100%; }
    .project-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-main { justify-content: flex-start; padding: 32px 18px; }
    .auth-card h1 { font-size: 1.55rem; }
    .drop { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 6px); min-width: 0; }
}

@media print {
    .sidebar, .topbar, .tabbar, .foot, .doc-actions, .no-print, .toast, .alert, .sb-backdrop { display: none !important; }
    .app { display: block; }
    body { background: #fff; padding: 0; }
    .page { padding: 0; max-width: none; }
    .doc { box-shadow: none; width: auto; min-height: 0; padding: 0; border: 0; }
    .doc-wrap { overflow: visible; }
}
