/* Antik Marine Servis — mobil öncelikli arayüz */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f2f5f8; --card: #fff; --card2: #f7f9fb; --line: #e2e8ef; --line2: #cfd8e2;
  --tx: #0f1c2b; --tx2: #475569; --tx3: #7b8898;
  --pri: #0e7490; --pri2: #0b5e75; --pri-soft: #e0f2f6; --navy: #0f2b46; --navy2: #15395c;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --info: #1d4ed8; --info-soft: #dbeafe; --violet: #6d28d9; --violet-soft: #ede9fe; --orange: #c2410c; --orange-soft: #ffedd5;
  --gray-soft: #eef1f4;
  --r: 14px; --r2: 10px; --sh: 0 1px 2px rgba(15, 28, 43, .06), 0 2px 8px rgba(15, 28, 43, .05);
  --sh2: 0 10px 40px rgba(15, 28, 43, .22);
  --top: 56px; --bnav: 64px; --side: 248px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0b1520; --card: #111e2c; --card2: #0e1a27; --line: #1f3043; --line2: #2b405a;
    --tx: #e6edf5; --tx2: #a8b5c4; --tx3: #7d8b9c;
    --pri: #22b5cf; --pri2: #5fd0e3; --pri-soft: #0f3341; --navy: #08131f; --navy2: #0e2234;
    --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #3a2a0a; --bad: #f87171; --bad-soft: #3b1414;
    --info: #93b4ff; --info-soft: #15254a; --violet: #c4b5fd; --violet-soft: #2a1f4a; --orange: #fdba74; --orange-soft: #3a220f; --gray-soft: #1a2838;
    --sh: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #0b1520; --card: #111e2c; --card2: #0e1a27; --line: #1f3043; --line2: #2b405a;
  --tx: #e6edf5; --tx2: #a8b5c4; --tx3: #7d8b9c;
  --pri: #22b5cf; --pri2: #5fd0e3; --pri-soft: #0f3341; --navy: #08131f; --navy2: #0e2234;
  --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #3a2a0a; --bad: #f87171; --bad-soft: #3b1414;
  --info: #93b4ff; --info-soft: #15254a; --violet: #c4b5fd; --violet-soft: #2a1f4a; --orange: #fdba74; --orange-soft: #3a220f; --gray-soft: #1a2838;
  --sh: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--tx);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a { color: var(--pri); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.hidden { display: none !important; }
.mut { color: var(--tx3); } .tx2 { color: var(--tx2); } .sm { font-size: 13px; } .xs { font-size: 12px; } .b { font-weight: 600; }
.nowrap { white-space: nowrap; } .r { text-align: right; } .c { text-align: center; } .grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.gap16 { gap: 16px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; }

/* ---------- Kabuk ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: calc(var(--top) + var(--sat)); padding: var(--sat) 8px 0; background: var(--navy); color: #fff;
  display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.topbar h1 { font-size: 17px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.topbar .iconbtn { color: #fff; }
.topmark { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.topmark img { width: 30px; height: 30px; border-radius: 8px; }
.iconbtn { position: relative; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn:active { background: rgba(127, 127, 127, .18); }
.iconbtn .cnt { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.main { padding: 14px 14px calc(var(--bnav) + var(--sab) + 24px); max-width: 1240px; margin: 0 auto; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--bnav) + var(--sab)); padding-bottom: var(--sab); background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tx3); font-size: 11px; font-weight: 600;
  background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; }
.bnav .on { color: var(--pri); }
.bnav .on::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--pri); }
.bnav .cnt { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.side { display: none; }
.fab { position: fixed; right: 16px; bottom: calc(var(--bnav) + var(--sab) + 16px); z-index: 25; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--pri); color: #fff;
  box-shadow: 0 6px 20px rgba(14, 116, 144, .45); display: grid; place-items: center; cursor: pointer; }
.fab .ic { width: 26px; height: 26px; }

@media (min-width: 980px) {
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy); color: #cbd8e6; z-index: 40; padding: 16px 12px; overflow-y: auto; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
  .side .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .side .brand b { display: block; font-size: 16px; } .side .brand span { font-size: 12px; opacity: .7; }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cbd8e6; font-weight: 550; position: relative; }
  .side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .side nav a.on { background: rgba(34, 181, 207, .16); color: #fff; }
  .side nav a.on .ic { color: #5fd0e3; }
  .side nav .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 6px; }
  .side nav .cnt { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; font-weight: 700; }
  .side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255, 255, 255, .08); color: #fff; }
  .side .me small { display: block; color: #8fa3b8; font-size: 12px; }
  .shell { margin-left: var(--side); }
  .bnav, .topmark { display: none !important; }
  .topbar { background: var(--card); color: var(--tx); border-bottom: 1px solid var(--line); padding-left: 16px; }
  .topbar .iconbtn { color: var(--tx2); }
  .main { padding: 20px 24px 40px; }
  .fab { bottom: 28px; right: 28px; }
}

/* ---------- Kart / blok ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }
.card .ch { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card .ch h2, .card .ch h3 { flex: 1; min-width: 0; }
.card .cb { padding: 14px; }
.card .cb.p0 { padding: 0; }
.sec { margin: 18px 2px 8px; display: flex; align-items: center; gap: 8px; }
.sec h2 { flex: 1; font-size: 15px; color: var(--tx2); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.grid > *, .col > *, .frow > * { min-width: 0; }
.input { min-width: 0; }
@media (min-width: 720px) { .grid.g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid.g2l { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.s2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.stat .v.m { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .stats.s3 { gap: 6px; } .stats.s3 .stat { padding: 10px 8px; } .stats.s3 .v.m { font-size: 14px; } .stats.s3 .l { font-size: 11.5px; } .stat .v.m { font-size: 16px; } }
.mob-only { display: block; } .desk-only { display: none; }
@media (min-width: 720px) { .mob-only { display: none; } .desk-only { display: block; } }
@media (min-width: 720px) { .stats:not(.s3) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); display: block; color: inherit; }
.stat .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.stat .l { font-size: 12.5px; color: var(--tx3); font-weight: 600; }
.stat.ok .v { color: var(--ok); } .stat.warn .v { color: var(--warn); } .stat.bad .v { color: var(--bad); } .stat.pri .v { color: var(--pri); }

/* ---------- Liste ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; min-height: 56px; }
.li:last-child { border-bottom: 0; }
a.li:active, button.li:active { background: var(--card2); }
button.li { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; color: inherit; }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--tx3); }
.li .end { margin-left: auto; text-align: right; flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

/* Servis kartı */
.job { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line2)); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); color: inherit; position: relative; }
.job + .job { margin-top: 10px; }
.job .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.job .tm { font-weight: 750; color: var(--pri); font-size: 15px; min-width: 44px; }
.job .cn { font-weight: 650; font-size: 15.5px; }
.job .sb { color: var(--tx2); font-size: 14px; }
.job .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--tx3); font-size: 13px; margin-top: 6px; }
.job .meta span { display: inline-flex; align-items: center; gap: 4px; }
.job .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.job.done { opacity: .72; }
.job .ord { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 2px; }
.tdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; flex: none; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--gray-soft); color: var(--tx2); white-space: nowrap; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); } .badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.pri { background: var(--pri-soft); color: var(--pri); }
.amt { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.amt.pos { color: var(--bad); } .amt.neg { color: var(--ok); }

/* ---------- Form ---------- */
.field { margin-bottom: 12px; min-width: 0; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--tx2); margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--tx); background: var(--card);
  border: 1px solid var(--line2); border-radius: var(--r2); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b8898' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.input[readonly] { background: var(--card2); }
.hint { font-size: 12.5px; color: var(--tx3); margin-top: 4px; }
.frow { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .frow.c2 { grid-template-columns: 1fr 1fr; } .frow.c3 { grid-template-columns: 1fr 1fr 1fr; } .frow.c4 { grid-template-columns: repeat(4, 1fr); } }
.frow.m2 { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 6px 0; user-select: none; }
.check input { width: 22px; height: 22px; accent-color: var(--pri); flex: none; margin: 0; }
.seg { display: flex; background: var(--gray-soft); border-radius: 12px; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { flex: 1; border: 0; background: none; padding: 8px 12px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--tx2); cursor: pointer; white-space: nowrap; text-align: center; }
.seg .on { background: var(--card); color: var(--tx); box-shadow: var(--sh); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line2); background: var(--card); color: var(--tx2); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 13px; color: var(--tx3); }
.search .input { padding-left: 40px; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r2); border: 1px solid var(--line2);
  background: var(--card); color: var(--tx); font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: var(--pri2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line2)); }
.btn.ghost { border-color: transparent; background: none; color: var(--tx2); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 16px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns.end { justify-content: flex-end; }
.actbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; }
.toolbar .dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; flex: 1 1 280px; max-width: 420px; }

/* ---------- Tablo ---------- */
.tblw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tx3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clk { cursor: pointer; } .tbl tr.clk:hover td { background: var(--card2); }
.tbl .r, .tbl th.r { text-align: right; }
.tbl tfoot td { font-weight: 700; background: var(--card2); }

/* Kalem düzenleyici */
.items .it { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: var(--card2); }
.items .it .frow { gap: 0 8px; }
.items .it .field { margin-bottom: 6px; }
.items .it .input { min-height: 42px; }
.items .ln { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--tx2); }
.totals { margin-left: auto; max-width: 360px; font-size: 14.5px; }
.totals .tr { display: flex; justify-content: space-between; padding: 5px 0; gap: 12px; }
.totals .tr.g { border-top: 2px solid var(--tx); margin-top: 4px; padding-top: 8px; font-size: 17px; font-weight: 750; }

/* Bilgi tablosu */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14.5px; }
.kv dt { color: var(--tx3); font-weight: 550; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Durum çizgisi (akış) */
.flow { display: flex; gap: 4px; margin: 4px 0 12px; }
.flow i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.flow i.on { background: var(--pri); }

/* Hızlı eylem ızgarası */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa a, .qa button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  color: var(--tx2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; }
.qa .ic { color: var(--pri); width: 24px; height: 24px; }

/* Takvim / plan */
.daynav { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.daynav .d { flex: 1; text-align: center; font-weight: 700; }
.daynav .d small { display: block; color: var(--tx3); font-weight: 550; font-size: 12.5px; }
.week { display: grid; gap: 10px; }
@media (min-width: 1100px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } .week .job { padding: 8px 10px; } .week .job .cn { font-size: 13.5px; } .week .job .sb { font-size: 12.5px; } }
.wday { background: var(--card2); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; min-height: 80px; }
.wday.today { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri) inset; }
.wday h4 { font-size: 13px; color: var(--tx2); padding: 2px 4px 8px; display: flex; justify-content: space-between; }
.wday .job { box-shadow: none; }
.wday .job + .job { margin-top: 6px; }
.techgrp { margin-bottom: 16px; }
.techgrp > h3 { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: 14px; color: var(--tx2); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8, 17, 28, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--card); width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: var(--sh2); animation: up .2s ease-out; padding-bottom: var(--sab); }
.modal .mh { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 18px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { flex: 1; font-size: 17px; }
.modal .mb { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal .mf { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); justify-content: flex-end; }
.modal .mf .btn { flex: 1; }
@media (min-width: 640px) {
  .overlay { align-items: center; padding: 20px; }
  .modal { max-width: 560px; border-radius: 18px; max-height: 88vh; }
  .modal.wide { max-width: 860px; }
  .modal .mf .btn { flex: none; min-width: 110px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-menu { display: flex; flex-direction: column; }
.sheet-menu a, .sheet-menu button { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 16px; color: var(--tx); text-align: left; cursor: pointer; }
.sheet-menu .ic { color: var(--pri); }
.sheet-menu .cnt { margin-left: auto; background: #ef4444; color: #fff; font-size: 12px; border-radius: 10px; padding: 0 7px; font-weight: 700; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bnav) + var(--sab) + 14px); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #0f1c2b; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--sh2); font-size: 14.5px; animation: up .2s; }
.toast.err { background: #991b1b; }
.toast .ic { margin-top: 1px; }
@media (min-width: 980px) { .toasts { bottom: 24px; } }

/* ---------- Diğer ---------- */
.loading { display: grid; place-items: center; padding: 48px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--pri); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--tx3); padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14.5px; }
.empty .ic { width: 34px; height: 34px; opacity: .6; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.warn { background: var(--warn-soft); color: var(--warn); } .alert.info { background: var(--info-soft); color: var(--info); }
.alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.bad { background: var(--bad-soft); color: var(--bad); }
.offline { background: #b45309; color: #fff; text-align: center; font-size: 13px; padding: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-size: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .92); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92vh; }
.sig { position: relative; height: 180px; border: 1.5px dashed var(--line2); border-radius: 12px; background: #fff; touch-action: none; }
.sig canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.sig .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; pointer-events: none; font-size: 14px; }
.sigimg { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; max-height: 120px; display: flex; justify-content: center; }
.sigimg img { max-height: 100px; max-width: 100%; }
.pwgen { display: flex; gap: 6px; } .pwgen .input { flex: 1; }
.cpick { position: relative; }
.cplist { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--sh2); max-height: 300px; overflow-y: auto; }
.cplist button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; font: inherit; color: var(--tx); cursor: pointer; }
.cplist button small { display: block; color: var(--tx3); font-size: 12.5px; }
.cplist button.new { color: var(--pri); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.cplist button:hover { background: var(--card2); }
.tl { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tl li { padding: 7px 0 7px 16px; border-left: 2px solid var(--line); position: relative; }
.tl li::before { content: ''; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--pri); }
.bar { height: 8px; background: var(--gray-soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pri); border-radius: 4px; }
.bars .br { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.vchart .vb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.vchart .vb i { display: block; background: var(--pri-soft); border-radius: 3px 3px 0 0; position: relative; }
.vchart .vb i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--pri); border-radius: 3px 3px 0 0; }
.vchart .vb span { font-size: 10px; color: var(--tx3); text-align: center; margin-top: 3px; white-space: nowrap; overflow: hidden; }

/* ---------- Giriş ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px calc(24px + var(--sab));
  background: radial-gradient(1200px 600px at 50% -10%, #1f5a80 0%, var(--navy) 55%, #08131f 100%); }
.auth .box { width: 100%; max-width: 400px; background: var(--card); border-radius: 22px; padding: 28px 22px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.auth .logo img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 8px 24px rgba(14, 116, 144, .35); }
.auth .logo h1 { font-size: 22px; } .auth .logo p { margin: 0; color: var(--tx3); font-size: 14px; }
.auth .foot { color: #8fb3cc; font-size: 12.5px; margin-top: 18px; text-align: center; }
.auth .foot button { background: none; border: 0; color: #cfe6f5; font: inherit; text-decoration: underline; cursor: pointer; }
.pwwrap { position: relative; } .pwwrap .input { padding-right: 48px; }
.pwwrap .iconbtn { position: absolute; right: 2px; top: 1px; color: var(--tx3); }

/* ---------- Yazdırma (günlük program, ekstre) ---------- */
#print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; }
  #print table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  #print th, #print td { border: 1px solid #999; padding: 5px 6px; text-align: left; vertical-align: top; }
  #print th { background: #eef3f7; }
  #print .r { text-align: right; }
  #print h1 { font-size: 16pt; margin: 0 0 4px; } #print .sub { color: #444; margin-bottom: 10px; font-size: 10pt; }
  #print .ph { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #0f2b46; padding-bottom: 8px; margin-bottom: 10px; }
  #print .ph img { height: 40px; }
  #print tr { page-break-inside: avoid; }
}
