/* İK & Bordro — demo arayüzü
   Düzen: koyu lacivert yan menü + açık çalışma alanı; mobilde çekmece menü ve kart listeler */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #334155;
  --orange: #2563eb;
  --orange-2: #1d4ed8;
  --orange-soft: #e8efff;
  --bg: #f3f4f7;
  --surface: #ffffff;
  --line: #e3e6ec;
  --line-2: #eef0f4;
  --ink: #1b2130;
  --muted: #667085;
  --muted-2: #98a2b3;
  --ok: #18794e; --ok-soft: #e3f4ea;
  --warn: #a15c07; --warn-soft: #fef0d7;
  --err: #b42318; --err-soft: #fde8e7;
  --info: #2f5f8f; --info-soft: #e6eef7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Giriş ---------- */
#root { min-height: 100vh; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 46px solid rgba(37, 99, 235, .13); right: -180px; bottom: -200px; }
.login-art img { width: 132px; }
.login-art h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; max-width: 14ch; }
.login-art p { color: #c3c9d6; font-size: 15px; max-width: 46ch; margin: 0; }
.login-art ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: #dfe3ea; position: relative; z-index: 1; }
.login-art li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); margin-right: 10px; vertical-align: 1px; }
.login-art .foot { font-size: 12px; color: #8d96a8; position: relative; z-index: 1; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 440px; }
.login-card h2 { font-size: 22px; margin: 0 0 4px; }
.login-card .sub { color: var(--muted); margin: 0 0 22px; }
.role-list { display: grid; gap: 10px; }
.role { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.role:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-1px); }
.role:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.role .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--orange-soft); color: var(--orange-2); }
.role b { display: block; font-size: 14.5px; }
.role span { color: var(--muted); font-size: 12.5px; }
.demo-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cfd5e1; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 40; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 14px; }
.side .brand img { width: 38px; }
.side .brand b { color: #fff; font-size: 15px; letter-spacing: .02em; display: block; }
.side .brand span { font-size: 11.5px; color: #8d96a8; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 10px 16px; }
.side .grp { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7c8699; margin: 16px 10px 6px; font-weight: 600; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #cfd5e1; font-weight: 500; font-size: 13.5px; }
.side a.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side a.nav:hover { background: var(--navy-2); color: #fff; }
.side a.nav.on { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.side a.nav .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side .me { border-top: 1px solid var(--navy-3); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.side .me b { color: #fff; font-size: 13px; display: block; }
.side .me span { font-size: 11.5px; color: #8d96a8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 244, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 28px; min-height: 60px; }
.top .burger { display: none; }
.top h1 { font-size: 18px; margin: 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .crumb { color: var(--muted); font-size: 12.5px; }
.top .sp { flex: 1; }
.view-switch { display: flex; align-items: center; gap: 8px; }
.view-switch label { font-size: 12px; color: var(--muted); }
.content { padding: 24px 28px 60px; max-width: 1360px; width: 100%; }

/* ---------- Ortak bileşenler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 8px 13px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #cdd2db; background: #fafbfc; }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.pri:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--err); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mb { margin-bottom: 16px; } .mb2 { margin-bottom: 24px; } .mt { margin-top: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card > .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card > .hd h3 { margin: 0; font-size: 14.5px; }
.card > .hd .muted { font-size: 12.5px; }
.card > .bd { padding: 16px 18px; }
.card > .bd.flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

.kpi { padding: 16px 18px; }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .k svg { width: 15px; height: 15px; color: var(--orange); }
.kpi .v { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi .d { font-size: 12px; margin-top: 3px; color: var(--muted); }
.kpi .d .up { color: var(--err); font-weight: 600; } .kpi .d .down { color: var(--ok); font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.or { background: var(--orange-soft); color: var(--orange-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.av.lg { width: 64px; height: 64px; font-size: 22px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > div > span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > div { min-width: 0; }

/* Tablolar */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #f8fafc; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: #fafbfc; border-top: 1px solid var(--line); }

/* Sekmeler, çipler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Form */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: #344054; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.inp, select.inp, textarea.inp { width: 100%; border: 1px solid #d0d5dd; background: #fff; border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
textarea.inp { resize: vertical; min-height: 80px; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search .inp { padding-left: 34px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; font-size: 13px; margin-bottom: 10px; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.drop { border: 1.5px dashed #c8cdd6; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; background: #fafbfc; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-2); }
.drop b { color: var(--ink); }
.drop svg { width: 26px; height: 26px; margin-bottom: 6px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(16, 20, 30, .5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: rise .18s; }
.modal.wide { max-width: 860px; }
.modal .mh { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.modal .mh h3 { margin: 0; font-size: 16px; }
.modal .mb-body { padding: 18px 20px; overflow-y: auto; }
.modal .mf { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.toast-box { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; display: flex; gap: 10px; align-items: center; animation: rise .2s; max-width: 360px; }
.toast svg { width: 18px; height: 18px; color: #5fd09a; flex: none; }

/* Listeler */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; }
.li .s { color: var(--muted); font-size: 12.5px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.alert-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.alert-ic svg { width: 17px; height: 17px; }
.alert-ic.err { background: var(--err-soft); color: var(--err); }
.alert-ic.warn { background: var(--warn-soft); color: var(--warn); }
.alert-ic.info { background: var(--info-soft); color: var(--info); }

/* Grafikler */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 110px; gap: 10px; align-items: center; padding: 7px 0; }
.bar-row .bar { height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 6px; }
.bar-row .lab { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Şirket kartları */
.co-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.co-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 40, .1); }
.co-card .band { height: 6px; }
.co-card .in { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.co-logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.co-logo.img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 5px; overflow: hidden; }
.co-logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 15px; flex: none; }
.logo-btn .logo-edit { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.logo-btn:hover .logo-edit, .logo-btn:focus-visible .logo-edit { opacity: 1; }
.logo-btn .logo-edit svg { width: 13px; height: 13px; }
.logo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.co-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.co-stats div b { display: block; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.co-stats div span { font-size: 11.5px; color: var(--muted); }
.co-add { border: 1.5px dashed #c8cdd6; background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; color: var(--muted); font-weight: 600; font: inherit; cursor: pointer; }
.co-add svg { width: 28px; height: 28px; }
.co-add:hover { border-color: var(--orange); color: var(--orange-2); background: var(--orange-soft); }

/* Profil */
.profile-hd { display: flex; gap: 18px; align-items: center; padding: 20px; flex-wrap: wrap; }
.profile-hd h2 { margin: 0; font-size: 21px; }
.profile-hd .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.dl div { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.dl div:nth-child(odd) { padding-right: 18px; }
.dl dt { color: var(--muted); font-size: 12.5px; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.doc-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--err-soft); color: var(--err); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.req { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.req svg { width: 17px; height: 17px; flex: none; }
.req.ok svg { color: var(--ok); } .req.no svg { color: var(--err); }

/* Vardiya */
.shift-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.shift { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.shift th, .shift td { border-bottom: 1px solid var(--line-2); padding: 6px; text-align: center; white-space: nowrap; }
.shift th { font-size: 11px; color: var(--muted); font-weight: 600; background: #fafbfc; position: sticky; top: 0; }
.shift th.we { color: var(--orange-2); }
.shift td.name, .shift th.name { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 2; min-width: 190px; padding-left: 14px; box-shadow: 1px 0 0 var(--line-2); }
.shift th.name { background: #fafbfc; z-index: 3; }
.sc { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; border-radius: 6px; font-weight: 700; font-size: 11.5px; cursor: pointer; border: 0; padding: 0 6px; }
.sc.m { background: #e7edf6; color: #2f5f8f; }
.sc.s { background: #fff3d6; color: #8a5a00; }
.sc.a { background: #fde3cf; color: #9a4a10; }
.sc.g { background: #1e293b; color: #f3d9a8; }
.sc.u { background: #f6d6c1; color: #8b3b12; }
.sc.x { background: #f2f4f7; color: #98a2b3; }
.sc.i { background: #e3f4ea; color: #18794e; }
.sc.r { background: #fde8e7; color: #b42318; }
.sc.big { min-width: 0; height: auto; padding: 8px 10px; display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; font-weight: 600; }
.sc.big small { font-weight: 500; opacity: .8; }
.shift-legend { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.shift-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Pusula / resmi çıktılar */
.paper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px 36px; max-width: 880px; margin: 0 auto; box-shadow: var(--shadow); }
.paper .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.paper .ph img { width: 70px; }
.paper .ph h2 { margin: 0; font-size: 18px; letter-spacing: .02em; }
.paper .ph .rt { text-align: right; font-size: 12.5px; color: var(--muted); }
.paper h4 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.paper table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.paper td, .paper th { padding: 6px 8px; border-bottom: 1px solid #edf0f3; text-align: left; }
.paper th { background: #f5f6f8; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #475467; }
.paper .r { text-align: right; font-variant-numeric: tabular-nums; }
.paper .net { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 14px 18px; margin-top: 18px; }
.paper .net b { font-size: 22px; font-variant-numeric: tabular-nums; }
.paper .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; font-size: 12px; color: var(--muted); }
.paper .sig div { border-top: 1px solid #c8cdd6; padding-top: 6px; }
.paper .note { font-size: 11px; color: var(--muted); margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contract p { font-size: 13px; line-height: 1.65; margin: 8px 0; }

/* Çalışan uygulaması */
.portal { min-height: 100%; background: #e9ebf0; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 440px; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.p-top { background: var(--navy); color: #fff; padding: 18px 18px 64px; }
.p-top .row1 { display: flex; justify-content: space-between; align-items: center; }
.p-top img { width: 34px; }
.p-top h2 { margin: 18px 0 2px; font-size: 21px; }
.p-top p { margin: 0; color: #aeb6c6; font-size: 13px; }
.p-body { padding: 0 14px 96px; margin-top: -48px; display: grid; gap: 12px; flex: 1; align-content: start; }
.p-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; }
.p-card h3 { margin: 0 0 10px; font-size: 14px; }
.p-net { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 50; }
.p-nav button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 6px 0; cursor: pointer; }
.p-nav button svg { width: 21px; height: 21px; }
.p-nav button.on { color: var(--orange-2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { text-align: center; border-radius: 10px; padding: 8px 2px; background: var(--line-2); font-size: 11px; }
.week div b { display: block; font-size: 15px; margin: 2px 0; }
.week div.today { outline: 2px solid var(--orange); }

/* Yazdırma */
@media print {
  body { background: #fff; }
  .side, .top, .no-print, .toast-box, .p-nav { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .card { box-shadow: none; }
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(16, 20, 30, .45); z-index: 35; }
  .top { padding: 10px 16px; }
  .top .burger { display: inline-flex; }
  .content { padding: 18px 16px 60px; }
  .g21, .g12, .g2 { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px; gap: 24px; }
  .login-art h1 { font-size: 26px; }
  .login-art ul { display: none; }
  .view-switch label { display: none; }
}
@media (max-width: 640px) {
  .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .view-switch select { max-width: 112px; font-size: 12.5px; }
  .top { gap: 6px; }
  .top .btn.ghost.sm { padding: 5px 6px; }
  .kpi { padding: 13px 14px; }
  .kpi .v { font-size: 20px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl div { grid-template-columns: 120px 1fr; padding-right: 0 !important; }
  .top h1 { font-size: 16px; }
  .top .crumb { display: none; }
  .paper { padding: 18px 16px; }
  .two { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 92px; }
  /* Tablolar kart görünümüne geçer */
  table.tbl.cards thead { display: none; }
  table.tbl.cards, table.tbl.cards tbody, table.tbl.cards tr, table.tbl.cards td { display: block; width: 100%; }
  table.tbl.cards tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.tbl.cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.tbl.cards td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; font-weight: 500; }
  table.tbl.cards td.first { display: block; text-align: left; padding-bottom: 6px; }
  table.tbl.cards td.first::before { display: none; }
  table.tbl.cards tfoot { display: block; }
  table.tbl.cards tfoot tr { display: block; background: #fafbfc; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .toast-box { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Ek bileşenler ve hareket ---------- */
.eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--orange-2); }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #0f172a 0%, #1e293b 62%, #1e3a8a 100%); color: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 34px solid rgba(37, 99, 235, .16); animation: float 9s ease-in-out infinite; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.hero p { margin: 0; color: #c9cfdb; max-width: 62ch; }
.hero .eyebrow { color: #93c5fd; }
.hero .btn:not(.pri) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.co-hero { background-color: var(--c, #0f172a); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.co-hero h2 { margin: 2px 0 4px; font-size: 22px; }
.co-hero .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.co-hero .btn:hover { background: rgba(255, 255, 255, .2); }
.bell-dot { position: absolute; top: 1px; right: 1px; background: var(--err); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.today-bar { height: 3px; background: var(--orange); border-radius: 2px; margin-top: 3px; }
.sc.brush { cursor: pointer; transition: transform .12s; }
.sc.brush.sel { outline: 2px solid var(--ink); outline-offset: 1px; transform: scale(1.08); }
.i12 { width: 12px; height: 12px; }
.i18 { width: 18px; height: 18px; color: var(--muted); }
.ring-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.report { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; font: inherit; color: inherit; }
.report:hover { border-color: var(--orange); transform: translateY(-2px); }
.report > div { flex: 1; min-width: 0; }
.report b { display: block; }
.report span { color: var(--muted); font-size: 12.5px; }
.report .dl-ic svg { width: 18px; height: 18px; color: var(--muted-2); }
.int-tile { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px 16px; }
.int-tile .pill { grid-column: 2; justify-self: start; }
.int-tile > div { flex: 1; min-width: 0; }
.int-tile b { display: block; font-size: 13.5px; }
.int-tile div span { font-size: 12px; color: var(--muted); }

/* Senkron sahnesi */
.sync-hero { display: grid; grid-template-columns: 200px 1fr 200px; align-items: center; gap: 10px; background: radial-gradient(120% 140% at 50% 0%, #1e3a8a 0%, #0f172a 70%); color: #fff; border-radius: 18px; padding: 30px 28px 54px; margin-bottom: 16px; position: relative; overflow: hidden; }
.sync-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(#000, transparent 85%); }
.sync-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; z-index: 1; }
.sync-node b { font-size: 14px; margin-top: 8px; }
.sync-node span { font-size: 12px; color: #9aa4b8; }
.sync-logo { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(145deg, #1e293b, #0f172a); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(37, 99, 235, .08), 0 14px 30px rgba(0, 0, 0, .35); animation: breathe 3.2s ease-in-out infinite; }
.sync-logo img { width: 52px; }
.sync-logo.odoo { background: linear-gradient(145deg, #8f5d84, #714b67); box-shadow: 0 0 0 8px rgba(143, 93, 132, .14), 0 14px 30px rgba(0, 0, 0, .35); animation-delay: 1.6s; }
.sync-logo.odoo span { font: 800 22px/1 var(--font); letter-spacing: -.03em; color: #fff; }
.sync-pipe { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); z-index: 1; }
.sync-pipe span { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #93c5fd; box-shadow: 0 0 12px 3px rgba(147, 197, 253, .55); left: 0; animation: flow 3.4s linear infinite; opacity: 0; }
.sync-pipe span:nth-child(2) { animation-delay: .68s; } .sync-pipe span:nth-child(3) { animation-delay: 1.36s; } .sync-pipe span:nth-child(4) { animation-delay: 2.04s; } .sync-pipe span:nth-child(5) { animation-delay: 2.72s; }
.sync-pipe.busy span { animation-duration: 1.1s; background: #7ee2b0; box-shadow: 0 0 14px 4px rgba(126, 226, 176, .6); }
.sync-pipe.busy { background: rgba(126, 226, 176, .16); }
.pipe-label { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: #aab3c5; }
.sync-status { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 12.5px; color: #c9cfdb; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); animation: ping 1.8s infinite; display: inline-block; }
.live-dot.sm { width: 7px; height: 7px; }
.jentry { border-top: 1px solid var(--line-2); position: relative; }
.jentry::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.jhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 8px; flex-wrap: wrap; }
.tbl.jt td, .tbl.jt th { padding: 8px 14px; font-size: 12.5px; }
.acc { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--line-2); padding: 2px 6px; border-radius: 5px; margin-right: 6px; color: var(--navy); font-weight: 600; }
.jl { animation: slideIn .4s both; animation-delay: calc(var(--i) * 45ms + 150ms); }
.jprog { height: 3px; background: transparent; margin: 0 18px 12px; border-radius: 3px; overflow: hidden; }
.jprog.on { background: var(--line-2); }
.jprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #93c5fd); transition: width .7s cubic-bezier(.4, 0, .2, 1); }
.jprog.done i { background: var(--ok); }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); }
.steps li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.st-ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps li.run { color: var(--ink); }
.steps li.run .st-ic { border-color: var(--orange); border-top-color: transparent; animation: spin .7s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done .st-ic { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; animation: pop .3s; }

/* Giriş animasyonları */
.enter { animation: fade .25s ease-out; }
.fade-up { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s .25s cubic-bezier(.4, 0, .2, 1) forwards; }
.area-in { opacity: 0; animation: fade .9s .9s forwards; }
.pop { transform-box: fill-box; transform-origin: center; animation: pop .35s both; animation-delay: 1.2s; }
.grow-x { transform-origin: left; animation: growX .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
.donut-seg { animation: donut 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms + 200ms); }
.ring { animation: ring 1.1s cubic-bezier(.2, .7, .2, 1) both .2s; }
.pop-in { animation: pop .25s; }
.shimmer { position: relative; pointer-events: none; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer .9s linear infinite; border-radius: var(--radius); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confetti 2.2s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes donut { from { stroke-dasharray: 0 400; } }
@keyframes ring { from { stroke-dasharray: 0 400; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes flow { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 142, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(60, 207, 142, 0); } }
@keyframes breathe { 50% { transform: translateY(-4px); } }
@keyframes float { 50% { transform: translate(-14px, 10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes confetti { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }
@media (max-width: 760px) {
  .sync-hero { grid-template-columns: 1fr; padding: 24px 18px 52px; gap: 18px; }
  .sync-pipe { height: 60px; width: 6px; margin: 0 auto; }
  .sync-pipe span { left: 50% !important; margin-left: -5px; animation-name: flowV; }
  .pipe-label { top: 50%; left: 22px; right: auto; transform: translateY(-50%); width: 140px; text-align: left; }
  .hero { padding: 20px 18px; }
  .hero h2 { font-size: 20px; }
}
@keyframes flowV { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { stroke-dashoffset: 0; } .area-in, .fade-up { opacity: 1; } }
/* tanitim */ .view-switch, #roleSel { display: none !important; } .bell-dot{display:none}
