:root {
  --bg: #1b1d22;
  --bg-2: #22252b;
  --bg-3: #2b2f37;
  --bg-4: #353a44;
  --line: #343842;
  --text: #e9eaee;
  --text-2: #a7abb6;
  --text-3: #767b88;
  --accent: #f76707;
  --accent-2: #ff8a3d;
  --green: #37b24d;
  --red: #f03e3e;
  --yellow: #f59f00;
  --blue: #4dabf7;
  --radius: 8px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 15px; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.error { color: #ff8787; min-height: 1.2em; font-size: 14px; }
a { color: var(--blue); }

/* İkonlar */
.ico, [data-ico] svg { width: 18px; height: 18px; flex: none; }
[data-ico] { display: inline-flex; align-items: center; justify-content: center; }
svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Butonlar */
.btn { border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; background: var(--bg-4); font-weight: 600; }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--accent); color: white; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { color: #ff8787; }
.btn.danger.solid { background: var(--red); color: white; border: 0; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--bg-4); color: var(--text); }
.icon-btn.accent { color: var(--accent-2); }
.icon-btn.danger { color: #ff8787; }
.icon-btn.off { color: var(--red); }

/* Giriş ekranı */
.auth { min-height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #3a2414, var(--bg) 60%); padding: 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--bg-2); padding: 32px; border-radius: 14px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px #0008; }
.auth-card h1 { margin: 0; font-size: 22px; }
.auth-card p { margin: 0; }
.auth-logo { font-size: 36px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
input, textarea, select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.auth:not([data-mode="setup"]) .setup-only { display: none; }
.auth[data-mode="login"] .name-field { display: none; }
.auth-card.done .auth-field, .auth-card.done .name-field, .auth-card.done #auth-btn { display: none; }
.auth-done { background: #37b24d22; border: 1px solid #37b24d66; color: #8ce99a; border-radius: 8px; padding: 12px; font-size: 14px; line-height: 1.4; }
.auth-switch { text-align: center; font-size: 14px; }
.auth-switch:empty { display: none; }

/* Yerleşim */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 260px; flex: none; background: var(--bg-2); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.side-head { height: 52px; display: flex; align-items: center; padding: 0 16px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.side-scroll { flex: 1; overflow-y: auto; padding: 10px 8px; }
.section { margin-top: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; }
.section-title .icon-btn { width: 24px; height: 24px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--text-2); text-align: left; }
.nav-item:hover { background: var(--bg-3); color: var(--text); }
.nav-item.active { background: var(--bg-4); color: var(--text); }
.nav-item.unread { color: var(--text); font-weight: 700; }
.nav-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { background: var(--red); color: white; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.voice-users { padding: 2px 0 6px 30px; display: flex; flex-direction: column; gap: 2px; }
.voice-user { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); padding: 2px 4px; }
.voice-user .avatar { width: 22px; height: 22px; font-size: 10px; }
.voice-user svg { width: 14px; height: 14px; color: var(--red); }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: white; flex: none; position: relative; user-select: none; }
.avatar.speaking { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--green); }
.dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg-2); background: var(--text-3); }
.dot.on { background: var(--green); }
.person .avatar { width: 26px; height: 26px; font-size: 11px; }
.person.offline { opacity: .55; }

.voice-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #1d2a20; }
.voice-bar-info { flex: 1; min-width: 0; }
.voice-connected { color: var(--green); font-size: 13px; font-weight: 700; }
.voice-room { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-bar { display: flex; align-items: center; gap: 4px; padding: 10px 8px; background: #1e2025; border-top: 1px solid var(--line); }
.me-name { flex: 1; min-width: 0; padding-left: 6px; font-size: 14px; font-weight: 600; }
.me-name > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.main-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.main-head h2 { font-size: 16px; margin: 0; white-space: nowrap; }
.head-ico { color: var(--text-3); }
.topic { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--line); padding-left: 10px; min-width: 0; }
.topic:empty { display: none; }
.spacer { flex: 1; }
.search { width: auto; padding: 6px 10px; font-size: 13px; }

/* Mesajlar */
.messages { flex: 1; overflow-y: auto; padding: 16px 0 8px; }
.msg { display: flex; gap: 12px; padding: 4px 20px; position: relative; }
.msg:hover { background: #ffffff06; }
.msg.first { margin-top: 12px; }
.msg .avatar { width: 38px; height: 38px; margin-top: 2px; }
.msg .gutter { width: 38px; flex: none; font-size: 10px; color: var(--text-3); text-align: center; padding-top: 4px; visibility: hidden; }
.msg:hover .gutter { visibility: visible; }
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 700; }
.msg-time { font-size: 11px; color: var(--text-3); }
.msg-text { line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-text .edited { font-size: 11px; color: var(--text-3); }
.msg.mentioned { background: #f7670714; box-shadow: inset 3px 0 var(--accent); }
.mention { background: #f7670733; color: var(--accent-2); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg-actions { position: absolute; right: 16px; top: -12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; display: none; }
.msg:hover .msg-actions { display: flex; }
.msg-actions .icon-btn { width: 28px; height: 28px; }
.msg-actions svg { width: 15px; height: 15px; }
.msg-system { text-align: center; color: var(--text-3); font-size: 13px; padding: 6px 20px; }
.day-sep { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; font-weight: 600; margin: 18px 20px 4px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.load-more { display: block; margin: 0 auto 12px; }
.empty { color: var(--text-3); text-align: center; padding: 40px 20px; }
.attachment { margin-top: 6px; }
.attachment img, .attachment video { max-width: min(420px, 100%); max-height: 320px; border-radius: 8px; display: block; cursor: zoom-in; background: var(--bg-3); }
.file-card { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; text-decoration: none; color: var(--text); max-width: 100%; }
.file-card .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-ref { display: inline-flex; gap: 8px; align-items: center; background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.typing { height: 20px; font-size: 12px; color: var(--text-2); padding: 0 20px; }
.composer { display: flex; align-items: flex-end; gap: 6px; margin: 0 16px 16px; background: var(--bg-3); border-radius: 10px; padding: 6px; }
.composer textarea { flex: 1; resize: none; border: 0; background: transparent; padding: 6px 4px; max-height: 200px; line-height: 1.4; }
.drop-hint { position: absolute; inset: 0; background: #f7670722; border: 3px dashed var(--accent); display: none; place-items: center; font-size: 20px; font-weight: 700; pointer-events: none; z-index: 5; }
.drop-hint.show { display: grid; }

/* Sesli oda */
.voice-stage { flex: 1; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 16px; align-content: center; justify-content: center; padding: 24px; }
.voice-tile { width: 200px; height: 150px; background: var(--bg-3); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; border: 2px solid transparent; }
.voice-tile.speaking { border-color: var(--green); }
.voice-tile .avatar { width: 64px; height: 64px; font-size: 24px; }
.voice-tile .tile-name { font-weight: 600; }
.voice-tile .tile-icons { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; color: var(--red); }
.voice-tile .tile-icons svg { width: 16px; height: 16px; }
.voice-actions { display: flex; justify-content: center; gap: 12px; padding: 20px; }
.voice-empty { text-align: center; color: var(--text-2); }
.voice-empty .big { font-size: 48px; }

/* İş panosu */
.board { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; padding: 16px; overflow: auto; align-items: start; }
.column { background: var(--bg-2); border-radius: 10px; display: flex; flex-direction: column; max-height: 100%; min-height: 120px; border: 2px solid transparent; }
.column.drag-over { border-color: var(--accent); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 700; font-size: 14px; }
.column-head .count { color: var(--text-3); font-weight: 600; }
.column-head .stripe { width: 10px; height: 10px; border-radius: 3px; }
.column-cards { display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 10px; overflow-y: auto; min-height: 40px; }
.column-add { margin: 0 10px 10px; border: 1px dashed var(--line); background: transparent; border-radius: 6px; padding: 7px; color: var(--text-2); cursor: pointer; }
.column-add:hover { color: var(--text); border-color: var(--text-3); }
.card { background: var(--bg-3); border-radius: 8px; padding: 10px 12px; cursor: pointer; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--text-3); }
.card.dragging { opacity: .4; }
.card.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.card-title { font-weight: 600; line-height: 1.35; word-break: break-word; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.card-meta .avatar { width: 22px; height: 22px; font-size: 10px; margin-left: auto; }
.tag { background: var(--bg-4); border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag.client { background: #1c7ed633; color: #74c0fc; }
.tag.high { background: #f03e3e33; color: #ff8787; }
.tag.low { background: #ffffff10; color: var(--text-3); }
.tag.overdue { background: #f03e3e33; color: #ff8787; }
.tag.today { background: #f59f0033; color: #ffd43b; }

/* Pencereler */
.modal-back { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--bg-2); border-radius: 12px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px #000a; }
.modal.wide { max-width: 720px; }
.modal-head { padding: 18px 20px 0; font-size: 18px; font-weight: 700; }
.modal-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.modal-foot .left { margin-right: auto; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.check input { width: 16px; height: 16px; }
.user-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.user-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.user-table .avatar { width: 28px; height: 28px; font-size: 11px; }
.user-table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.subhead { font-weight: 700; font-size: 14px; margin-top: 4px; }
.lightbox { position: fixed; inset: 0; background: #000d; z-index: 60; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 95vh; }

#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 70; }
.toast { background: var(--bg-4); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; max-width: 340px; box-shadow: 0 8px 24px #0008; font-size: 14px; }
.toast b { display: block; margin-bottom: 2px; }
.toast.err { border-left-color: var(--red); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Telefon görünümü mobile.css dosyasında */

/* Görünüm seçici */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 5px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
.seg button.active { background: var(--bg-4); color: var(--text); }
.toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .search { min-width: 150px; }
#board-search { min-width: 240px; }

/* İş tablosu */
.board-table-wrap { flex: 1; overflow: auto; padding: 0 0 16px; }
.task-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.task-table th { position: sticky; top: 0; background: var(--bg-2); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; z-index: 1; }
.task-table th:hover, .task-table th.sorted { color: var(--text); }
.task-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.task-table tbody tr { cursor: pointer; }
.task-table tbody tr:hover { background: #ffffff07; }
.task-table tr.done .t-title { text-decoration: line-through; color: var(--text-3); }
.task-table .t-title { font-weight: 600; min-width: 220px; }
.cell-select { padding: 4px 6px; font-size: 13px; background: transparent; border-color: transparent; cursor: pointer; max-width: 170px; }
.cell-select:hover { border-color: var(--line); background: var(--bg); }
.status-pill { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-weight: 700; border-radius: 20px; padding: 4px 10px; }
.status-pill option { background: var(--bg-2); color: var(--text); }

/* Yönetim */
.admin-body { flex: 1; overflow: auto; padding: 16px; }
.admin-split { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.admin-single { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.admin-list { background: var(--bg-2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.admin-add { display: flex; gap: 6px; margin-bottom: 6px; }
.admin-add input { flex: 1; min-width: 0; padding: 6px 8px; }
.admin-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--bg-2); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.user-table input { width: 100%; padding: 6px 8px; font-size: 13px; }
@media (max-width: 900px) { .admin-split { grid-template-columns: 1fr; } }
.panel { overflow-x: auto; }
.user-table input { min-width: 120px; }
.user-table .actions { flex-wrap: nowrap; }

/* Bildirim izni şeridi */
.notif-banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #f7670722; border-bottom: 1px solid #f7670755; font-size: 14px; flex-wrap: wrap; }
.notif-banner span { flex: 1; min-width: 200px; }
.announce-nav { color: var(--accent-2); }
.live { background: var(--red); color: white; font-size: 9px; font-weight: 800; letter-spacing: .05em; border-radius: 3px; padding: 1px 4px; }
.tile-live { position: absolute; left: 10px; top: 10px; }

/* Ekran paylaşımı */
.voice-screens { flex: 3; min-height: 0; display: grid; gap: 10px; padding: 12px 16px 0; grid-template-columns: 1fr; }
.voice-screens[data-count="2"], .voice-screens[data-count="3"], .voice-screens[data-count="4"] { grid-template-columns: 1fr 1fr; }
.screen-tile { position: relative; background: #000; border-radius: 10px; overflow: hidden; min-height: 0; display: flex; }
.screen-tile video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen-label { position: absolute; left: 10px; bottom: 10px; background: #000b; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.screen-full { position: absolute; right: 8px; top: 8px; background: #000a; color: white; }
.voice-stage.compact { flex: none; max-height: 140px; align-content: flex-start; padding: 12px; }
.voice-stage.compact .voice-tile { width: 140px; height: 96px; gap: 4px; }
.voice-stage.compact .voice-tile .avatar { width: 40px; height: 40px; font-size: 15px; }
.voice-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Takvim */
.calendar-wrap { flex: 1; overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.cal-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-head h3 { margin: 0 6px; font-size: 18px; min-width: 150px; text-align: center; }
.cal-head .icon-btn { font-size: 22px; line-height: 1; }
.cal-head .muted { max-width: 520px; text-align: right; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(110px, auto); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; padding: 4px 0; }
.cal-grid > .cal-wd { min-height: 0; }
.cal-day { background: var(--bg-2); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; border: 2px solid transparent; min-width: 0; overflow: hidden; }
.cal-day:hover { border-color: var(--bg-4); }
.cal-day.other { opacity: .45; }
.cal-day.weekend { background: #1f2126; }
.cal-day.today { border-color: var(--accent); }
.cal-day.today .cal-num { background: var(--accent); color: white; border-radius: 10px; padding: 0 7px; }
.cal-day.drag-over { border-color: var(--blue); background: #4dabf714; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--text-2); align-self: flex-start; }
.cal-chip { display: flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--c) 18%, var(--bg-3)); border-left: 3px solid var(--c); border-radius: 4px; padding: 2px 5px; font-size: 12px; cursor: pointer; min-width: 0; }
.cal-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip .avatar { width: 16px; height: 16px; font-size: 8px; }
.cal-chip.done span { text-decoration: line-through; color: var(--text-3); }
.cal-chip.late { box-shadow: inset 0 0 0 1px #f03e3e88; }
.cal-high { color: #ff8787; }
.cal-more { border: 0; background: transparent; color: var(--text-2); font-size: 12px; text-align: left; padding: 2px 4px; cursor: pointer; }
.cal-more:hover { color: var(--text); }
.cal-list { display: flex; flex-direction: column; gap: 6px; }
.cal-list .cal-chip { font-size: 14px; padding: 6px 8px; }

/* İş penceresi ve yorumlar */
.modal.wide:has(.task-modal) { max-width: 1040px; }
.task-modal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; min-height: 0; }
.task-form, .task-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.task-side { border-left: 1px solid var(--line); padding-left: 20px; border-radius: 6px; }
.task-side.drag-over { background: #f7670714; outline: 2px dashed var(--accent); }
.comments { flex: 1; overflow-y: auto; max-height: 52vh; min-height: 140px; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.comment { display: flex; gap: 10px; }
.comment .avatar { width: 30px; height: 30px; font-size: 12px; }
.comment-body { flex: 1; min-width: 0; }
.comment-del { width: 24px; height: 24px; margin-left: auto; opacity: 0; }
.comment:hover .comment-del { opacity: 1; }
.comment-del svg { width: 14px; height: 14px; }
.comment .attachment img, .comment .attachment video { max-width: 100%; max-height: 220px; }
.comment-empty { padding: 20px 0; }
.comment-box { display: flex; gap: 6px; align-items: flex-end; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.comment-box textarea { flex: 1; border: 0; resize: vertical; background: transparent; min-height: 44px; }
.comment-tools { display: flex; flex-direction: column; }
@media (max-width: 860px) { .task-modal { grid-template-columns: 1fr; } .task-side { border-left: 0; padding-left: 0; } }

/* Firma sayfası ve rapor */
.client-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.client-title h3 { margin: 0; font-size: 20px; }
.client-info { display: flex; gap: 18px; flex-wrap: wrap; }
.client-info a { text-decoration: none; }
.client-notes { white-space: pre-wrap; color: var(--text-2); font-size: 14px; background: var(--bg); border-radius: 6px; padding: 10px 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--bg-3); border-radius: 10px; padding: 12px 14px; }
.stat-n { font-size: 26px; font-weight: 800; }
.stat-l { font-size: 12px; color: var(--text-2); font-weight: 600; }
.stat.good .stat-n { color: #69db7c; }
.stat.bad .stat-n { color: #ff8787; }
.task-table.compact td, .task-table.compact th { padding: 7px 10px; }
.task-table.compact th { position: static; cursor: default; }
.pill { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font-weight: 700; border-radius: 20px; padding: 2px 10px; font-size: 12px; white-space: nowrap; }
.report { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.report-tools { padding: 0; border: 0; }
.report-table tbody tr { cursor: default; }
.report-table tr[data-report-client] { cursor: pointer; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who .avatar { width: 24px; height: 24px; font-size: 10px; }
.print-only { display: none; }

/* Sesli duyuru */
.announce-back { position: fixed; inset: 0; background: #000c; z-index: 80; display: grid; place-items: center; padding: 16px; animation: fadein .2s; }
.announce-card { background: var(--bg-2); border: 2px solid var(--accent); border-radius: 16px; width: 100%; max-width: 520px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 0 0 8px #f7670722, 0 30px 80px #000; animation: pop .35s; }
.announce-top { display: flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.announce-top svg { width: 26px; height: 26px; }
.announce-from { display: flex; align-items: center; gap: 10px; }
.announce-body { font-size: 20px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.announce-play { display: flex; align-items: center; gap: 10px; }
.announce-ok { padding: 14px; font-size: 16px; }
.announce-people { display: flex; flex-wrap: wrap; gap: 6px 16px; max-height: 180px; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 10px; }
.announce-people .avatar { width: 22px; height: 22px; font-size: 9px; }
.announce-people .dot { width: 9px; height: 9px; }
.rec-panel { background: var(--bg); }
.rec-panel audio { width: 100%; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
code { background: var(--bg); border-radius: 4px; padding: 1px 5px; font-size: 12px; }

@media print {
  body, html { background: white; color: black; height: auto; }
  .sidebar, .main-head, .report-tools, #notif-banner, #toasts { display: none !important; }
  .app { display: block; height: auto; overflow: visible; }
  .view, .admin-body { overflow: visible; }
  .print-only { display: block; font-size: 18px; }
  .panel, .stat { background: white; border: 1px solid #ccc; color: black; }
  .stat-l, .muted { color: #555; }
  .task-table th { background: white; color: #333; }
  .task-table td, .task-table th { border-color: #ccc; }
  .tag.overdue, .stat.bad .stat-n { color: #c00; }
  .stat.good .stat-n { color: #080; }
}

/* Profil resmi */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar .dot { z-index: 1; }
.avatar.big { width: 48px; height: 48px; font-size: 18px; }
.avatar.huge { width: 88px; height: 88px; font-size: 32px; }

/* Sol alttaki profil alanı tıklanabilir */
.me-bar .avatar, .me-name { cursor: pointer; }
.me-bar { cursor: pointer; }
.me-bar:hover .me-name > div:first-child { text-decoration: underline; }
.voice-user { cursor: pointer; border-radius: 6px; }
.voice-user:hover { background: var(--bg-3); color: var(--text); }
.voice-tile { cursor: pointer; }

/* Kişi menüsü */
.user-pop { position: fixed; z-index: 75; width: 270px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px #000a; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pop-head { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-vol { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-item { border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.pop-item:hover { background: var(--bg-4); }
.link-btn { border: 0; background: transparent; color: var(--blue); cursor: pointer; padding: 0; font-size: 12px; }
input[type="range"] { width: 100%; accent-color: var(--accent); padding: 0; border: 0; background: transparent; }

/* Profil ayarları */
.profile-tabs { align-self: flex-start; }
.ptab { display: flex; flex-direction: column; gap: 14px; }
.profile-photo { display: flex; gap: 16px; align-items: center; }
.profile-photo .col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vol-row { display: flex; flex-direction: column; gap: 4px; }
.vol-label { flex: 1; font-size: 13px; color: var(--text-2); font-weight: 600; }
.meter { flex: 1; height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.meter-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow) 75%, var(--red)); transition: width .05s; }
.logout-panel { flex-direction: row; align-items: center; gap: 12px; background: #f03e3e14; border: 1px solid #f03e3e44; }

/* Sesli bildirim türleri */
.a-kinds { display: flex; flex-direction: column; gap: 6px; }
.a-kind { flex-direction: row; align-items: flex-start; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-weight: 500; color: var(--text); }
.a-kind:has(input:checked) { border-color: var(--accent); background: #f7670712; }
.a-kind input { margin-top: 3px; }
.a-kind > span { display: flex; flex-direction: column; gap: 2px; }
.announce-card.alert { border-color: var(--red); box-shadow: 0 0 0 8px #f03e3e33, 0 30px 80px #000; animation: pop .35s, shake .5s .35s 2; }
.announce-card.alert .announce-top { color: #ff8787; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* PDF önizleme (sohbet, yorumlar, faturalar) */
.pdf-att { width: min(360px, 100%); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.pdf-thumb { height: 220px; background: #fff; cursor: zoom-in; overflow: hidden; }
.pdf-thumb iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.pdf-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; }
.pdf-bar .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pdf-bar svg { width: 16px; height: 16px; color: #ff8787; }
.lightbox.doc { display: flex; flex-direction: column; cursor: default; padding: 16px; gap: 10px; }
.lightbox.doc iframe { flex: 1; width: 100%; border: 0; border-radius: 8px; background: #fff; }
.lb-bar { display: flex; align-items: center; gap: 8px; color: white; }

/* Faturalar */
.inv-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; }
.inv-list-panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inv-tools { padding: 10px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.inv-tools .search { width: 100%; }
.inv-tools .row > * { min-width: 0; }
.inv-list { flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.inv-row { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 9px 8px; border-radius: 8px; text-align: left; cursor: pointer; width: 100%; }
.inv-row:hover { background: var(--bg-3); }
.inv-row.active { background: var(--bg-4); }
.inv-ico { width: 34px; height: 40px; flex: none; border-radius: 4px; background: #f03e3e22; color: #ff8787; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.inv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.inv-detail { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-head h3 { margin: 0; font-size: 18px; word-break: break-word; }
.inv-status button.active { background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.inv-preview-wrap { background: var(--bg-2); border-radius: 10px; overflow: hidden; min-height: 300px; }
.inv-preview { width: 100%; height: calc(100vh - 230px); min-height: 420px; border: 0; display: block; background: #fff; }
.inv-preview.img { height: auto; min-height: 0; max-height: calc(100vh - 230px); object-fit: contain; background: var(--bg-2); cursor: zoom-in; }
.inv-side-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inv-chat .comments { max-height: 40vh; min-height: 120px; }
#invoices-view .drop-hint { z-index: 6; }
@media (max-width: 1100px) { .inv-grid { grid-template-columns: 1fr; } .inv-preview { height: 60vh; } }
@media (max-width: 800px) { .inv-layout { grid-template-columns: 1fr; } .inv-list-panel { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); } }

/* İş ve Şantiye Takip: kendi arayüzüyle tam alan */
.reksma-frame-wrap { flex: 1; min-height: 0; display: flex; background: #f0f2f5; }
.reksma-frame-wrap iframe { flex: 1; width: 100%; height: 100%; border: 0; display: block; }

/* Faturalar: dosyası henüz gelmemiş iş */
.inv-nofile { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.inv-nofile .big { font-size: 44px; }
.inv-ico.nofile { background: #f59f0022; color: #ffd43b; }

/* Kontrol Paneli: sol menü gizlenir, kenardaki düğmeyle açılır */
.app.kp-collapsed .sidebar { display: none; }
#reksma-view { flex-direction: row; }
.kp-handle { flex: none; width: 16px; border: 0; padding: 0; cursor: pointer; background: var(--bg-2); border-right: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.kp-handle:hover { background: var(--bg-4); color: var(--text); }
.kp-handle span::before { content: "›"; font-size: 18px; font-weight: 700; }
.app:not(.kp-collapsed) .kp-handle span::before { content: "‹"; }

/* Firma renk seçimi */
.color-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; margin: 0 3px; }
.color-pick { width: 38px; height: 32px; padding: 2px; cursor: pointer; flex: none; }

/* Programın kendi uyarı / onay pencereleri */
.dlg-back { position: fixed; inset: 0; background: #0009; z-index: 95; display: grid; place-items: center; padding: 16px; animation: fadein .12s; }
.dlg { width: 100%; max-width: 420px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px #000b; padding: 20px; display: flex; flex-direction: column; gap: 14px; animation: pop .18s; }
.dlg.danger { border-top: 3px solid var(--red); }
.dlg-title { font-weight: 700; font-size: 16px; }
.dlg-msg { color: var(--text-2); line-height: 1.5; font-size: 14px; }
.dlg-input { width: 100%; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* Faturalar: sabit simge (bekleyen / işlenen), tür etiketi, özet */
.inv-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.inv-ico svg { width: 20px; height: 20px; }
.inv-ico.wait { background: #f59f0022; color: #ffc078; }
.inv-ico.done { background: #37b24d22; color: #69db7c; }
.kind-tag { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; vertical-align: 1px; }
.kind-tag.ticari { background: #4dabf722; color: #74c0fc; }
.kind-tag.iade { background: #f03e3e22; color: #ff8787; }
.inv-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sum-table .num { text-align: right; white-space: nowrap; }
.sum-table .neg { color: #ff8787; }
.sum-table tbody tr { cursor: pointer; }
.sum-table .sum-group td { background: var(--bg-3); font-weight: 700; cursor: default; }
.sum-table .sum-sub td { color: var(--text-2); font-weight: 600; cursor: default; }
.sum-table .sum-total td { font-size: 15px; font-weight: 800; border-top: 2px solid var(--accent); padding-top: 10px; }
@media print { .inv-summary .report-tools { display: none; } #invoices-view .main-head, #invoices-view .inv-layout { display: none !important; } .sum-table .sum-group td { background: #eee; } }

/* Kanal işaretleri ve şifreli kanal ekranı */
.ch-mark { display: inline-flex; color: var(--text-3); margin-left: 2px; }
.ch-mark svg { width: 13px; height: 13px; }
.nav-item > .ch-mark { flex: none; }
.locked-room { margin: 60px auto; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2); }
.locked-room svg { width: 40px; height: 40px; color: var(--text-3); }
.locked-room b { color: var(--text); font-size: 16px; }

/* Çalışan ünvanı etiketi (adın solunda) */
.u-title { display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  font-size: 10px; font-weight: 700; line-height: 1.6; padding: 0 6px; margin-right: 6px; border-radius: 4px; background: #f7670722; color: var(--accent-2); }
.voice-user .u-title, .tile-name .u-title { font-size: 9px; }

/* Sesli odada kamera */
.voice-tile.cam { width: 320px; height: 230px; overflow: hidden; justify-content: flex-end; padding-bottom: 10px; }
.voice-tile.cam .avatar { display: none; }
.tile-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; border-radius: 10px; }
.tile-cam.mine { transform: scaleX(-1); }
.voice-tile.cam .tile-name { position: relative; z-index: 1; background: #000a; padding: 3px 10px; border-radius: 6px; }
.voice-tile.cam .tile-icons, .voice-tile.cam .tile-live { z-index: 1; }
.voice-stage.compact .voice-tile.cam { width: 180px; height: 120px; }
.cam-on { display: inline-flex; color: var(--green); }
.cam-on svg { width: 13px; height: 13px; }

/* Excel düğmesi */
.btn.excel { background: #1d6f42; color: #fff; }

/* ---------- Dosyalar (ortak klasör) ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; font-size: 13px; }
.crumb { border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 3px 6px; border-radius: 5px; font: inherit; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:hover { background: var(--bg-3); color: var(--text); }
.crumb:last-child { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--text-3); }
.files-body { flex: 1; overflow: auto; padding: 8px 16px 16px; }
.files-empty { padding: 30px 8px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.files-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.files-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-3); padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.files-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.files-table td:first-child { white-space: normal; word-break: break-word; width: 100%; }
.files-table tbody tr { cursor: pointer; }
.files-table tbody tr:hover { background: var(--bg-2); }
.files-table .f-ico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; color: var(--text-3); }
.files-table tr.dir .f-ico { color: var(--yellow); }
.att-actions { margin-top: 4px; display: flex; gap: 10px; }
.pdf-bar .link-btn + .link-btn { margin-left: 8px; }
.folder-pick { max-width: min(900px, 94vw); width: 100%; max-height: 90vh; }
.fp-search input { width: 100%; font-size: 15px; padding: 9px 12px; }
.fp-status:empty { display: none; }
.fp-name { display: flex; flex-direction: column; min-width: 0; }
.fp-name small { color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-pick label { display: flex; flex-direction: column; gap: 4px; }
.folder-pick .crumbs { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.fp-list { display: flex; flex-direction: column; height: min(56vh, 560px); overflow: auto; gap: 1px; min-height: 60px; }
.fp-dir { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; color: var(--text); padding: 7px 8px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px; }
.fp-dir:hover { background: var(--bg-3); }
.fp-dir .ico, .fp-dir .ico svg { width: var(--fp, 18px); height: var(--fp, 18px); flex: none; }
.folder-pick .dlg-foot { align-items: center; }
.folder-pick .dlg-foot .spacer { flex: 1; }
.files-setup { max-width: 560px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.files-setup label { display: flex; flex-direction: column; gap: 4px; }
.tag.ok { background: #2f9e4433; color: #8ce99a; }
.tag.warn { background: #f59f0033; color: #ffd43b; }

/* Şifreli bölüm kilit ekranı */
#lock-view { align-items: center; justify-content: center; }
.lock-card { width: min(360px, calc(100% - 32px)); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.lock-card h2 { margin: 0; }
.lock-card p { margin: 0; font-size: 13px; }
.lock-ico { font-size: 36px; }

/* Dosyalar: geri/ileri, büyük simgeler, başlangıç klasörleri, önizleme */
.files-navbtns { display: flex; gap: 2px; }
.files-navbtns .icon-btn { font-size: 18px; line-height: 1; width: 30px; height: 30px; }
.files-navbtns .icon-btn:disabled { opacity: .35; cursor: default; }
.pin-btn { border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 17px; padding: 0 4px; line-height: 1; }
.pin-btn:hover { color: var(--yellow); }
.pin-btn.on { color: var(--yellow); }
.files-table tr.missing td:first-child, .f-tile.missing { opacity: .5; }
.files-grid { --fs: 150px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--fs), 1fr)); gap: 10px; }
.f-tile { position: relative; border: 1px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.f-tile:hover { background: var(--bg-2); border-color: var(--line); }
.f-thumb { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg-2); border-radius: 8px; overflow: hidden; position: relative; }
.f-tile.dir .f-thumb { background: transparent; }
.f-thumb img { width: 100%; height: 100%; object-fit: cover; }
.f-thumb .ico, .f-thumb .ico svg { width: calc(var(--fs, 150px) * .37); height: calc(var(--fs, 150px) * .37); color: var(--text-3); }
.f-tile.dir .f-thumb .ico, .f-tile.dir .f-thumb .ico svg { width: calc(var(--fs, 150px) * .62); height: calc(var(--fs, 150px) * .62); }
.files-grid .f-name { font-size: clamp(11.5px, calc(var(--fs) * .085), 14px); }
.f-tile.pdf .f-thumb .ico { color: #ff8787; }
.f-ext { position: absolute; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.f-name { font-size: 13px; line-height: 1.3; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-sub { font-size: 11px; margin-top: -4px; }
.f-tile .pin-btn { position: absolute; top: 4px; right: 4px; }
.files-viewer .fv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }
.files-viewer .fv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
.files-viewer .fv-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 72px; border: 0; border-radius: 10px; background: #0008; color: #fff; font-size: 40px; cursor: pointer; }
.fv-nav:hover { background: #000c; }
.fv-nav.prev { left: 12px; }
.fv-nav.next { right: 12px; }

/* Dosyalar: Windows klasörü gibi seçim, kutu, sağ tık menüsü */
.files-body { position: relative; outline: none; user-select: none; }
.files-status { padding: 4px 16px 6px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.files-table tbody tr.sel, .files-table tbody tr.sel:hover { background: #1c7ed633; }
.f-tile.sel, .f-tile.sel:hover { background: #1c7ed633; border-color: #1c7ed6aa; }
.f-item.cut { opacity: .5; }
.f-item.drop-on, .crumb.drop-on { outline: 2px dashed var(--accent); outline-offset: -2px; background: #f7670722; }
.f-band { position: absolute; border: 1px solid #4dabf7; background: #4dabf72a; pointer-events: none; z-index: 3; }
.f-thumb > img { position: absolute; inset: 0; }
.f-thumb canvas { display: none; }
.f-thumb.has-img > .ico, .f-thumb.has-img > .f-ext { display: none; }
.f-thumb.has-img { background: var(--bg-3); }
.f-tile.pdf .f-thumb > img, .f-tile.ai .f-thumb > img { object-fit: contain; background: #fff; }
.f-tile.svg .f-thumb > img { object-fit: contain; background: repeating-conic-gradient(#ffffff10 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.fv-wait { position: absolute; }
.ctx-menu { position: fixed; z-index: 90; min-width: 220px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px #000a; padding: 4px; display: flex; flex-direction: column; }
.ctx-menu button { display: flex; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 5px; cursor: pointer; text-align: left; white-space: nowrap; }
.ctx-menu button:hover:not(:disabled) { background: var(--bg-3); }
.ctx-menu button:disabled { opacity: .4; cursor: default; }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.trash-dlg { max-width: 640px; }
.trash-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
.trash-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.trash-row > div { min-width: 0; word-break: break-word; }

/* ---------- Ölçek değişince (yakınlaştırma, Windows'ta %125 / %150 ekran ölçeği) hiçbir şey bozulmasın ---------- */
/* Düğme ve etiket yazıları iki satıra kırılmaz; sığmayan üst çubuk düzgünce alt satıra geçer */
.btn, .seg button, .nav-item, .crumb, .tag, .link-btn, .kp-tabs button { white-space: nowrap; }
.btn, .seg, .icon-btn { flex-shrink: 0; }
.main-head { height: auto; min-height: 52px; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.main-head > * { min-width: 0; }
.main-head h2 { flex: none; }
.main-head .btn, .main-head .seg, .main-head .icon-btn, .main-head .head-ico { flex: none; }
.main-head .search { flex: 0 1 220px; min-width: 120px; width: auto; }
.main-head .spacer { flex: 1 1 0; min-width: 0; }
.main-head .topic { flex: 0 1 auto; }
/* Uzun klasör yolunda en sondaki (bulunulan) klasör görünür kalır */
.crumbs { flex: 0 1 auto; flex-wrap: nowrap; overflow: hidden; justify-content: flex-end; min-width: 80px; }
.crumb { flex: 0 1 auto; min-width: 28px; }
.crumb:last-child { flex-shrink: 0; max-width: 260px; }
.crumb-sep { flex: none; }
.files-navbtns { flex: none; }
.seg { flex-wrap: nowrap; }
.toolbar > * { min-width: 0; }
.toolbar .btn, .toolbar .seg { flex: none; }
/* Dar alanda dosya listesinde önce boyut, sonra tarih sütunu gizlenir */
.files-body { container-type: inline-size; }
@container (max-width: 560px) { .files-table .col-size { display: none; } }
@container (max-width: 440px) { .files-table .col-date { display: none; } }
.lb-bar { flex-wrap: wrap; row-gap: 6px; }
.lb-bar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-foot { flex-wrap: wrap; }
.main-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.main-head .seg::-webkit-scrollbar { display: none; }
input[type="color"] { width: 44px; min-width: 44px; height: 36px; padding: 2px; flex: none; cursor: pointer; }

/* İş klasörü ve baskı durumu */
.print-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; white-space: nowrap; cursor: pointer; vertical-align: 1px;
  background: #ffffff12; color: var(--text-3); }
.print-badge.static { cursor: default; }
.print-badge[data-state="empty"] { background: #f03e3e2e; color: #ff8787; }
.print-badge[data-state="ready"] { background: #2f9e4433; color: #8ce99a; }
.print-badge[data-state="none"], .print-badge[data-state="missing"] { background: #ffffff10; color: var(--text-3); }
.print-badge.pdot { width: 10px; height: 10px; padding: 0; border-radius: 50%; flex: none; background: #adb5bd; border: 1.5px solid #fff8; box-sizing: border-box; }
.print-badge.pdot[data-state="empty"] { background: #f03e3e; }
.print-badge.pdot[data-state="ready"] { background: #2f9e44; }
.f-tile .print-badge { margin-top: -2px; }
.job-folder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.job-folder .ico { color: var(--yellow); }
.job-folder .jf-check { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.job-folder .jf-check input { width: auto; }
.job-folder .jf-loc { flex: 1; min-width: 120px; }
.job-folder .jf-path { font-size: 13px; word-break: break-all; text-align: left; }
/* Baskı durumu sütunu: sabit genişlik, rozet her zaman aynı boyda */
.task-table th.col-print, .task-table td.col-print { width: 112px; min-width: 112px; max-width: 112px; text-align: center; white-space: nowrap; }
.print-badge:not(.pdot) { width: 96px; justify-content: center; box-sizing: border-box; }
.print-badge.pdot.none { visibility: hidden; }
.f-tile .print-badge, .files-table .print-badge { width: auto; }

/* Baskı: baskıda değilse kırmızı, baskıdaysa yeşil; rozet tıklanmaz, klasör yanındaki düğmeyle açılır */
.print-badge { cursor: default; }
.print-badge[data-state="none"], .print-badge[data-state="missing"] { background: #f03e3e2e; color: #ff8787; }
.print-badge.pdot[data-state="none"], .print-badge.pdot[data-state="missing"] { background: #f03e3e; }
.task-table th.col-print, .task-table td.col-print { width: 150px; min-width: 150px; max-width: 150px; }
.print-cell { display: flex; align-items: center; justify-content: center; gap: 6px; }
.folder-btn { border: 0; background: transparent; padding: 3px; border-radius: 6px; cursor: pointer; color: var(--yellow); display: inline-grid; place-items: center; flex: none; line-height: 0; }
.folder-btn:hover { background: var(--bg-4); }
.folder-btn svg { width: 18px; height: 18px; }
.card-meta .folder-btn svg { width: 15px; height: 15px; }

/* Baskı durumu üç renk: atılmadı (kırmızı), atıldı (turuncu), basıldı (yeşil) */
.print-badge[data-state="ready"] { background: #f59f0033; color: #ffc078; }
.print-badge[data-state="printed"] { background: #2f9e4433; color: #8ce99a; }
.print-badge.pdot[data-state="ready"] { background: #f59f00; }
.print-badge.pdot[data-state="printed"] { background: #2f9e44; }
.print-badge.markable { cursor: pointer; }
.print-badge.markable:not(.pdot):hover { filter: brightness(1.25); outline: 1px solid currentColor; }

/* Baskı sütunu: solda büyük klasör düğmesi, sağda durum */
.task-table th.col-print, .task-table td.col-print { width: 168px; min-width: 168px; max-width: 168px; }
.print-cell { gap: 8px; justify-content: flex-start; }
.folder-btn.big { width: 44px; height: 30px; border-radius: 7px; background: #f59f0018; border: 1px solid #f59f0055; }
.folder-btn.big:hover { background: #f59f0035; border-color: #f59f00; }
.folder-btn.big svg { width: 22px; height: 22px; }

/* İş penceresinde seçilen firma yetkilisinin bilgileri */
.contact-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--bg-3); margin-top: -4px; }
.contact-info:empty { display: none; }
.contact-info a { color: var(--blue); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Tamamlanmış iş: sadece bilgi */
.locked-note { background: #2f9e4426; color: #8ce99a; border: 1px solid #2f9e4466; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.card.locked { cursor: default; opacity: .7; }
.cell-select:disabled { opacity: .75; cursor: default; }

/* Faturalar: faturasız işler ve firma filtresi */
.inv-ico.nofatura { background: #748ffc22; color: #91a7ff; }
.kind-tag.nofatura { background: #748ffc22; color: #91a7ff; }
.nofatura-btn { color: #91a7ff; border-color: #748ffc66; }
.nofatura-btn:hover { background: #748ffc22; }
.inv-filters { gap: 6px; }
.inv-filters select { flex: 1 1 0; min-width: 0; }

/* İş Panosu PDF çıktısı (her zaman açık zemin, yazıcı dostu) */
.btn.pdf { background: #e8590c; color: #fff; }
.board-pdf { width: 1060px; background: #fff; color: #212529; font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; padding: 4px; }
.board-pdf .bp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #2c3e50; padding-bottom: 8px; margin-bottom: 8px; }
.board-pdf .bp-title { font-size: 20px; font-weight: 800; color: #2c3e50; }
.board-pdf .bp-sub { color: #6c757d; margin-top: 2px; }
.board-pdf .bp-counts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.board-pdf .bp-counts span { color: #fff; font-weight: 700; padding: 3px 8px; border-radius: 10px; font-size: 10px; }
.board-pdf table { width: 100%; border-collapse: collapse; }
.board-pdf th { background: #2c3e50; color: #fff; text-align: left; padding: 6px; font-size: 10.5px; border: 1px solid #2c3e50; }
.board-pdf td { padding: 5px 6px; border: 1px solid #dee2e6; vertical-align: middle; }
.board-pdf tbody tr:nth-child(even) td { background: #f8f9fa; }
.board-pdf tr.closed td { color: #868e96; text-decoration: line-through; }
.board-pdf tr.closed .bp-pill, .board-pdf tr.closed .bp-client { text-decoration: none; opacity: .7; }
.board-pdf .bp-desc { color: #6c757d; font-size: 9.5px; margin-top: 2px; font-weight: 400; }
.board-pdf .bp-pill { display: inline-block; color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 10px; font-size: 10px; white-space: nowrap; }
.board-pdf .bp-client { display: inline-block; padding: 2px 6px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.board-pdf td.late { color: #e03131; font-weight: 700; }
.board-pdf .bp-foot { margin-top: 8px; color: #868e96; font-size: 9.5px; }
.board-pdf { box-sizing: border-box; overflow: hidden; }
.board-pdf table { table-layout: fixed; }
.board-pdf td, .board-pdf th { overflow: hidden; word-wrap: break-word; }
.board-pdf .bp-pill { white-space: normal; text-align: center; line-height: 1.25; }
.board-pdf .bp-client { white-space: normal; }

/* ---------- Kontrol Panelinden sorumlusuz gelen işler ---------- */
.cell-select.need-assign { color: #e8590c; font-weight: 700; border-color: #e8590c88; background: #e8590c14; }
.tag.need-assign-tag { background: #e8590c22; color: #e8590c; font-weight: 700; margin-left: auto; }
.need-assign-chip { margin-left: 8px; border: 1px solid #e8590c88; background: #e8590c18; color: #e8590c; font-weight: 700; border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.need-assign-chip:hover { background: #e8590c30; }

/* ---------- İş Geçmişi ---------- */
.hg-sub { margin-left: 8px; }
.hg-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hg-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hg-tab { border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 16px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.hg-tab span { opacity: .65; margin-left: 4px; font-size: 12px; }
.hg-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hg-tools { flex-wrap: wrap; padding: 0; }
.hg-tools #hg-q { flex: 1 1 220px; min-width: 180px; }
.hg-tools select, .hg-tools .search:not(#hg-q) { width: auto; flex: 0 0 auto; max-width: 220px; }
.hg-date { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hg-date input.search { width: 135px; max-width: 135px; }
.hg-legend { margin-top: -2px; }
.hg-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; max-height: calc(100vh - 250px); }
.hg-table { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.hg-table th { position: sticky; top: 0; z-index: 2; background: var(--bg-3, var(--bg-2)); text-align: left; padding: 7px 8px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); }
.hg-table th.hg-sh { border-bottom: 3px solid var(--c); font-size: 11.5px; }
.hg-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.hg-table th.hg-job, .hg-table td.hg-job { position: sticky; left: 0; z-index: 1; background: var(--bg-2); min-width: 210px; max-width: 280px; white-space: normal; box-shadow: 1px 0 0 var(--line); }
.hg-table th.hg-job { z-index: 3; background: var(--bg-3, var(--bg-2)); }
.hg-table tbody tr { cursor: pointer; }
.hg-table tbody tr:hover td { background: var(--bg-hover, #8881); }
.hg-table tbody tr.deleted td.hg-job b { text-decoration: line-through; color: var(--muted); }
.hg-stage { background: color-mix(in srgb, var(--c) 14%, transparent); border-left: 3px solid var(--c); line-height: 1.25; }
.hg-stage b { display: block; font-weight: 700; }
.hg-stage span { color: var(--muted); font-size: 11px; }
.hg-n { color: var(--c) !important; font-weight: 700; }
.hg-empty { color: var(--muted); opacity: .45; text-align: center; }
.hg-pill { display: inline-block; background: var(--c); color: #fff; font-weight: 700; border-radius: 10px; padding: 2px 9px; font-size: 11px; white-space: nowrap; }
.hg-more { text-align: center; padding: 6px; }
.hg-detail { display: flex; flex-direction: column; gap: 12px; }
.hg-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.hg-info > div > div { word-break: break-word; }
.hg-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hg-timeline { list-style: none; margin: 0; padding: 0; }
.hg-ev { display: grid; grid-template-columns: 96px 18px 1fr; gap: 8px; align-items: start; }
.hg-when { text-align: right; line-height: 1.2; padding-top: 2px; }
.hg-when b { display: block; font-size: 12.5px; }
.hg-when span { color: var(--muted); font-size: 12px; }
.hg-dot { position: relative; align-self: stretch; }
.hg-dot::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.hg-dot::after { content: ''; position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg-2); }
.hg-ev:not(.is-stage) .hg-dot::after { width: 8px; height: 8px; left: 5px; top: 7px; }
.hg-ev:first-child .hg-dot::before { top: 8px; }
.hg-ev:last-child .hg-dot::before { bottom: auto; height: 8px; }
.hg-what { padding: 1px 0 14px; line-height: 1.45; word-break: break-word; }
.hg-gap { font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) {
  .hg-sub { display: none; }
  .hg-ev { grid-template-columns: 74px 18px 1fr; }
  .hg-table th.hg-job, .hg-table td.hg-job { min-width: 150px; }
}
/* İş Geçmişi PDF */
.hg-pdf .hg-pdf-grid { font-size: 9px; }
.hg-pdf .hg-pdf-grid th { font-size: 8.5px; padding: 4px 3px; white-space: normal; }
.hg-pdf .hg-pdf-grid td { padding: 3px; font-size: 9px; }
.hg-pdf .hg-pdf-grid .bp-desc { font-size: 8.5px; }
.hg-pdf .hg-pdf-grid .bp-pill { font-size: 8.5px; padding: 2px 5px; white-space: normal; }
.hg-pdf .hg-pdf-empty { color: #ced4da; text-align: center; }
.hg-pdf .hg-pdf-info th { width: 14%; background: #f1f3f5; color: #495057; border-color: #dee2e6; }
.hg-pdf .hg-pdf-info td { width: 36%; }

/* Program bulut sunucusunda çalışıyorsa sol üstte işaret */
.cloud-badge { margin-left: 8px; font-size: 11px; font-weight: 700; color: #4dabf7; background: #1c7ed622; border: 1px solid #1c7ed655; border-radius: 10px; padding: 1px 8px; white-space: nowrap; cursor: default; }

/* Ofis ağında ama NAS'a giremeyen bilgisayar: Dosyalar'ın yanında uyarı */
.nav-item.nas-warn::after { content: '⚠'; margin-left: auto; color: #f59f00; font-size: 13px; }

/* İş panosu: açıklama ve yorum etiketleri */
.t-mark { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.t-mark.cmt { background: #f7670722; color: #ff922b; border: 1px solid #f7670766; }
.card .t-mark { margin-left: 0; }

/* Ses odası: kart büyüklüğü (--vt) ve sağdaki sohbet */
.voice-body { flex: 1; min-height: 0; display: flex; }
.voice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.voice-chat { width: 300px; flex: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg-2); min-height: 0; }
#voice-view.vc-closed .voice-chat { display: none; }
.vc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vc-head .muted { flex: 1; }
.vc-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.vc-msg .vc-text { word-break: break-word; white-space: pre-wrap; font-size: 13.5px; margin-top: 2px; }
.vc-empty { padding: 20px 4px; }
.vc-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); align-items: flex-end; }
.vc-form textarea { flex: 1; resize: none; min-height: 38px; max-height: 120px; }
#voice-chat-btn.vc-new { background: #f7670733; border-color: #f76707; color: #fff; animation: vcPulse 1.4s ease-in-out infinite; }
.vc-badge { background: #f76707; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 800; margin-left: 4px; }
@keyframes vcPulse { 0%, 100% { box-shadow: 0 0 0 0 #f7670766; } 50% { box-shadow: 0 0 0 6px #f7670700; } }
.vt-size button { min-width: 30px; font-weight: 800; }
.voice-stage .voice-tile { width: calc(200px * var(--vt, 1)); height: calc(150px * var(--vt, 1)); }
.voice-stage .voice-tile .avatar { width: calc(64px * var(--vt, 1)); height: calc(64px * var(--vt, 1)); font-size: calc(24px * var(--vt, 1)); }
.voice-stage .voice-tile.cam { width: calc(320px * var(--vt, 1)); height: calc(180px * var(--vt, 1)); }
.voice-stage.compact .voice-tile { width: calc(140px * var(--vt, 1)); height: calc(96px * var(--vt, 1)); }
.voice-stage.compact .voice-tile .avatar { width: calc(40px * var(--vt, 1)); height: calc(40px * var(--vt, 1)); font-size: calc(15px * var(--vt, 1)); }
.voice-stage.compact .voice-tile.cam { width: calc(200px * var(--vt, 1)); height: calc(112px * var(--vt, 1)); }
.voice-stage.compact { max-height: calc(140px * var(--vt, 1)); }
.invite-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.invite-row { display: flex; flex-direction: row !important; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.invite-row:hover { background: var(--bg-3); }
.invite-row .avatar { width: 28px; height: 28px; font-size: 12px; }
.invite-row > span:nth-of-type(1) { flex: 1; }
@media (max-width: 760px) { .voice-chat { position: absolute; right: 0; top: 52px; bottom: 0; width: min(88vw, 320px); z-index: 5; box-shadow: -8px 0 24px #0008; } }

/* İş panosu: iş adı solda, etiketler sağda hep aynı hizada */
.t-title-row { display: flex; align-items: center; gap: 8px; }
.t-title-row .t-name { flex: 1; min-width: 0; }
.t-marks { display: inline-flex; gap: 6px; justify-content: flex-end; flex: none; min-width: 150px; }
.t-marks:empty { display: none; }
button.t-mark { cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; margin: 0; }
button.t-mark:hover { filter: brightness(1.25); }
.t-mark.wo { background: #e0313118; color: #ff8787; border: 1px solid #e0313155; }
.card .t-marks { min-width: 0; justify-content: flex-start; }
/* İş emri kutusu (yorumların üstünde, sabit) */
.wo-box { position: sticky; top: 0; z-index: 2; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.wo-box.drag-over { border-color: var(--accent); background: #f7670714; }
.wo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wo-img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; align-self: center; }
.wo-file { text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--text); cursor: pointer; font: inherit; }
.wo-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px; border: 2px dashed #e0313166; border-radius: 10px; cursor: pointer; color: #ff8787; }
.wo-drop:hover { background: #e031310f; }
.task-comments-only { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.task-table td.t-title { min-width: 320px; }
.t-marks { min-width: 118px; }

/* İş emri sayfaları yan yana */
.wo-pages { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.wo-page { position: relative; flex: none; }
.wo-page .wo-img { height: 240px; max-height: none; width: auto; max-width: 360px; display: block; }
.wo-page .wo-file { height: 240px; width: 170px; }
.wo-num { position: absolute; left: 6px; bottom: 6px; background: #000b; color: #fff; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 1px 7px; }
.wo-del { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #000b; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.wo-page:hover .wo-del { opacity: 1; }
.wo-del:hover { background: #e03131; }
/* İş emri düğmeleri: her genişlikte tek sırada, eşit genişlikte */
.wo-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wo-actions.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wo-actions .btn { justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; padding-right: 6px; }
.img-ctx { min-width: 180px; z-index: 200; }

/* ================= E-posta ================= */
#mail-view { display: flex; flex-direction: column; min-height: 0; }
#mail-view.hidden { display: none; }
#mail-acc { max-width: 280px; margin-left: 8px; }
.mail-body { flex: 1; min-height: 0; display: flex; }
.mail-empty { margin: auto; text-align: center; max-width: 460px; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 24px; }
.mail-empty .big { font-size: 48px; }
.mail-overlay { position: fixed; inset: 0; background: #000a; z-index: 55; display: grid; place-items: center; padding: 16px; }
.mail-overlay-box { position: relative; background: var(--bg); border-radius: 12px; width: min(980px, 96vw); height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.mo-close { position: absolute; top: 12px; right: 12px; font-size: 22px; z-index: 5; }
/* E-posta yazma penceresi */
.mc-overlay { position: fixed; inset: 0; background: #000a; z-index: 58; display: grid; place-items: center; padding: 20px; animation: fadein .12s; }
.mc-win { position: relative; width: min(1000px, 100%); height: min(860px, calc(100vh - 40px)); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px #000c; display: flex; flex-direction: column; overflow: hidden; }
.mc-win svg { width: 16px; height: 16px; }
.mc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.mc-head b { font-size: 17px; }
.mc-head .icon-btn { font-size: 22px; }
.mc-fields { display: flex; flex-direction: column; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mc-field { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); }
.mc-field:last-child { border-bottom: 0; }
.mc-l { width: 46px; flex: none; color: var(--text-3); font-size: 13px; font-weight: 600; }
.mc-subj { flex: 1; border: 0; background: none; padding: 12px 0; font-size: 15px; font-weight: 600; }
.mc-side { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; color: var(--text-2); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mc-side:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }
.mc-rcp { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px 0; position: relative; cursor: text; }
.mc-chips { display: contents; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; background: var(--bg-4); border-radius: 99px; padding: 2px 4px 2px 2px; font-size: 13px; }
.mc-chip span:not(.mx-face) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-chip button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%; }
.mc-chip button:hover { color: var(--text); }
.mc-chip.bad { background: color-mix(in srgb, var(--red) 25%, var(--bg-4)); }
.mx-face.xs { width: 22px; height: 22px; font-size: 9.5px; }
.mc-rin { flex: 1; min-width: 160px; border: 0; background: none; padding: 5px 2px; }
.mc-sug { position: absolute; top: 100%; left: 0; z-index: 5; width: min(440px, 100%); background: var(--bg-3); border: 1px solid var(--bg-4); border-radius: 10px; box-shadow: 0 12px 30px #0008; padding: 4px; display: flex; flex-direction: column; }
.mc-sug-i { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 7px 8px; border-radius: 7px; cursor: pointer; font: inherit; color: var(--text); }
.mc-sug-i.hi, .mc-sug-i:hover { background: var(--bg-4); }
.mc-sug-b { display: flex; flex-direction: column; min-width: 0; }
.mc-sug-b b { font-size: 13.5px; }
.mc-sug-b small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tb { display: flex; align-items: center; gap: 2px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.mc-tb button { border: 0; background: none; color: var(--text-2); border-radius: 6px; padding: 5px 9px; font: inherit; font-size: 13px; cursor: pointer; min-width: 30px; }
.mc-tb button:hover { background: var(--bg-3); color: var(--text); }
.mc-tb-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.mc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; outline: none; line-height: 1.55; font-size: 14.5px; color: var(--text); background: var(--bg-2); }
.mc-body.drop { box-shadow: inset 0 0 0 2px var(--accent); }
.mc-body blockquote { margin: 0 0 0 8px; }
.mc-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.mc-files:not(:empty) { padding: 10px 20px; border-top: 1px solid var(--line); }
.mc-file { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-3); border-radius: 9px; padding: 5px 6px 5px 5px; font-size: 13px; max-width: 300px; }
.mc-file .mx-ext { width: 30px; height: 30px; font-size: 9px; }
.mc-file-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mc-file button { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 16px; }
.mc-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.mc-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.mc-task { flex-direction: row; align-items: center; gap: 6px; color: var(--text-3); font-weight: 600; min-width: 0; }
.mc-task select { max-width: 240px; padding: 6px 8px; font-size: 13px; }
.mc-err { min-height: 0; font-size: 13px; }
.mc-hint { white-space: nowrap; }
/* İmza */
.mc-body [data-sig] { display: inline-block; background: #fff; color: #222; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }
.mc-sigbtn { font-weight: 600; }
.mx-mysig { margin-top: 10px; }
.sg-prev { background: #fff; border-radius: 10px; padding: 18px 20px; overflow-x: auto; min-height: 60px; }
.sg-prev-l { margin-bottom: -6px; }
.sig-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 12px; align-items: start; }
.sig-form { display: flex; flex-direction: column; gap: 10px; }
.sig-side { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sig-l { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.sig-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sig-tpl { flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); font-weight: 400; }
.sig-tpl input { display: none; }
.sig-tpl span { font-size: 12px; color: var(--text-3); }
.sig-tpl.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sig-colors { display: flex; gap: 8px; align-items: center; }
.sig-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.sig-color.on { border-color: var(--text); }
.sig-colors input[type=color] { width: 34px; height: 28px; padding: 2px; }
.sig-logo { display: flex; align-items: center; gap: 10px; }
.sig-logo img { max-height: 48px; max-width: 180px; background: #fff; border-radius: 6px; padding: 4px; }
@media (max-width: 1000px) { .sig-grid { grid-template-columns: 1fr; } .sig-side { position: static; } }
/* Firmadan seç */
.mc-picker { position: absolute; top: 56px; right: 16px; bottom: 70px; width: min(420px, calc(100% - 32px)); z-index: 6; background: var(--bg-3); border: 1px solid var(--bg-4); border-radius: 12px; box-shadow: 0 18px 50px #000b; display: flex; flex-direction: column; overflow: hidden; }
.mc-pk-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 6px 14px; }
.mc-pk-head b { font-size: 15px; }
.mc-pk-head .icon-btn { margin-left: auto; font-size: 20px; }
.mc-pk-search { margin: 4px 12px 8px; background: var(--bg-2); }
.mc-pk-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.mc-pk-firm { border-radius: 9px; }
.mc-pk-firm.open { background: var(--bg-2); margin: 4px 0; padding-bottom: 4px; }
.mc-pk-frow { display: flex; align-items: center; gap: 8px; padding: 2px 6px; }
.mc-pk-fname { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; padding: 8px 2px; cursor: pointer; font: inherit; color: var(--text); }
.mc-pk-fname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pk-arrow { margin-left: auto; color: var(--text-3); font-size: 16px; }
.mc-pk-badge { font-size: 11px; font-weight: 700; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.mc-pk-p { flex-direction: row; align-items: center; gap: 9px; padding: 6px 10px 6px 28px; border-radius: 7px; cursor: pointer; color: var(--text); font-weight: 400; }
.mc-pk-p:hover { background: var(--bg-3); }
.mc-pk-pb { display: flex; flex-direction: column; min-width: 0; }
.mc-pk-pb b { font-size: 13.5px; font-weight: 600; }
.mc-pk-pb small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pk-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--bg-4); }
@media (max-width: 760px) {
  .mc-overlay { padding: 0; }
  .mc-win { height: 100%; border-radius: 0; }
  .mc-side { padding: 6px; font-size: 0; gap: 0; }
  .mc-side[data-mc-showcc] { font-size: 12px; }
  .mc-hint, .mc-task svg { display: none; }
  .mc-task select { max-width: 130px; }
}
.tm-mail:empty { display: none; }
.tm-mail { margin-bottom: 10px; }
.tm-link { display: flex; align-items: center; gap: 8px; padding: 4px 0; min-width: 0; }
.tm-link .link-btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tm-link .muted { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-admin .mail-cfg { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 560px; }
.mail-shared { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mail-access { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px; }
.ok-pill, .warn-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.ok-pill { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.warn-pill { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: var(--yellow); }
/* E-posta: kutular | liste | okuma */
.mx { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(300px, 400px) 1fr; background: var(--bg); }
.mx svg { width: 16px; height: 16px; }
.mx-loading { flex: 1; display: grid; place-items: center; padding: 40px; }
.mx-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--bg-4); border-top-color: var(--accent); animation: mx-spin .8s linear infinite; display: inline-block; }
.mx-spin.sm { width: 14px; height: 14px; border-width: 2px; margin-left: auto; align-self: center; }
@keyframes mx-spin { to { transform: rotate(360deg); } }
.mx-empty-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); color: var(--accent-2); }
.mx-empty-ico svg { width: 30px; height: 30px; }

/* Sol: kutular ve klasörler */
.mx-rail { background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mx-new { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 14px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; margin-bottom: 10px; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.mx-new:hover { background: var(--accent-2); }
.mx-sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.mx-sec-btn { background: none; border: 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; font: inherit; font-size: 11px; font-weight: 700; }
.mx-sec-btn:hover { color: var(--text-2); }
.mx-acc, .mx-fold { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px; color: var(--text-2); cursor: pointer; text-align: left; font: inherit; position: relative; }
.mx-acc { padding: 7px 8px; }
.mx-fold { padding: 8px 10px; font-size: 14px; }
.mx-acc:hover, .mx-fold:hover { background: var(--bg-3); color: var(--text); }
.mx-acc.active { background: var(--bg-4); color: var(--text); }
.mx-acc.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.mx-fold.active { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-2); font-weight: 600; }
.mx-fold span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-acc-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mx-acc-n b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.mx-acc-n small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-count, .mx-num { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; flex: none !important; }
.mx-count { background: var(--accent); color: #fff; }
.mx-num { color: var(--text-2); }

/* Orta: liste */
.mx-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.mx-col-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.mx-col-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-col-title b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-col-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-search { margin: 0 14px; display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--text-3); }
.mx-search:focus-within { border-color: var(--accent); }
.mx-search input { flex: 1; border: 0; background: none; padding: 9px 0; min-width: 0; }
.mx-filters { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mx-chip { border: 1px solid var(--line); background: none; color: var(--text-2); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mx-chip:hover { color: var(--text); border-color: var(--text-3); }
.mx-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.mx-chip i { font-style: normal; opacity: .65; margin-left: 2px; }
.mx-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 12px; }
.mx-group { position: sticky; top: 0; z-index: 1; background: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 8px 6px; }
.mx-row { display: flex; gap: 11px; padding: 10px 10px; border-radius: 10px; cursor: pointer; position: relative; min-width: 0; }
.mx-row + .mx-row { margin-top: 1px; }
.mx-row:hover { background: var(--bg-2); }
.mx-row.sel { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--bg-4); }
.mx-row.unread::before { content: ''; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mx-face { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mx-face.sq { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.mx-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-row-1, .mx-row-2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mx-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 14px; }
.mx-n { font-size: 11px; color: var(--text-3); background: var(--bg-3); border-radius: 99px; padding: 0 6px; }
.mx-when { font-size: 12px; color: var(--text-3); flex: none; }
.mx-subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13.5px; }
.mx-snip { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row.unread .mx-who { color: var(--text); font-weight: 700; }
.mx-row.unread .mx-subj { color: var(--text); font-weight: 600; }
.mx-row.unread .mx-when { color: var(--accent-2); font-weight: 600; }
.mx-star { color: var(--yellow); display: inline-flex; }
.mx-star svg { width: 13px; height: 13px; fill: currentColor; }
.mx-att { color: var(--text-3); display: inline-flex; }
.mx-att svg { width: 14px; height: 14px; }
.mx-tags { display: flex; gap: 5px; margin-top: 4px; min-width: 0; }
.mx-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 170px; font-size: 11.5px; font-weight: 600; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 6px; padding: 2px 7px; }
.mx-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-tag svg { width: 12px; height: 12px; flex: none; }
.mx-none { color: var(--text-3); text-align: center; padding: 40px 16px; }
.mx-more { padding: 12px; text-align: center; }
.mx-row.skel { pointer-events: none; }
.mx-row.skel .mx-face, .mx-row.skel i { background: var(--bg-3); animation: mx-pulse 1.2s ease-in-out infinite; }
.mx-row.skel i { display: block; height: 10px; border-radius: 4px; margin: 4px 0; }
.mx-row.skel i:nth-child(1) { width: 45%; } .mx-row.skel i:nth-child(2) { width: 80%; } .mx-row.skel i:nth-child(3) { width: 65%; }
@keyframes mx-pulse { 50% { opacity: .45; } }

/* Sağ: okuma */
.mx-read { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.mx-hint { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px; }
.mx-hint b { font-size: 16px; margin-top: 6px; }
.mx-rhead { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 16px 22px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mx-rtop { display: flex; align-items: flex-start; gap: 8px; }
.mx-rtop h2 { flex: 1; margin: 2px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; word-break: break-word; }
.mx-back { display: none; }
.mx-starbtn.on { color: var(--yellow); }
.mx-starbtn.on svg { fill: currentColor; }
.mx-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mx-tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--bg-2); color: var(--text-2); border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mx-tool:hover { background: var(--bg-3); color: var(--text); }
.mx-tool.pri { background: var(--accent); color: #fff; }
.mx-tool.pri:hover { background: var(--accent-2); }
.mx-tools-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.mx-jobs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-jobs-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.mx-jobs-l svg { width: 14px; height: 14px; }
.mx-job { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2); border-radius: 99px; padding: 3px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-job:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.mx-job.add { border-style: dashed; border-color: var(--line); background: none; color: var(--text-2); }
.mx-job.add:hover { color: var(--text); border-color: var(--text-3); }
.mx-msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px; }
.mx-msg { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mx-msg.me { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.mx-mhead { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; cursor: pointer; }
.mx-mhead:hover { background: var(--bg-3); }
.mx-mwho { flex: 1; min-width: 0; }
.mx-mname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-mto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mx-msnip { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mx-mwhen { flex: none; padding-top: 2px; }
.mx-msg.collapsed .mx-mbody, .mx-msg.collapsed .mx-mto { display: none; }
.mx-msg.collapsed .mx-msnip { display: block; }
.mx-mbody { padding: 0 14px 14px; }
.mx-frame { display: block; width: 100%; height: 60px; border: 0; background: transparent; color-scheme: dark; }
.mx-frame.light { background: #fff; border-radius: 8px; color-scheme: light; }
.mx-light { width: 28px; height: 28px; opacity: .55; }
.mx-light:hover, .mx-light.on { opacity: 1; }
.mx-light.on { color: var(--yellow); }
.mx-msg.collapsed .mx-light { display: none; }
.mx-atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.mx-file { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mx-ext { flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-4); color: var(--accent-2); font-size: 10.5px; font-weight: 800; }
.mx-file-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-file-n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-file .link-btn { font-size: 12.5px; flex: none; }
.mx-quick { position: sticky; bottom: 0; margin-top: auto; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 22px 12px; display: flex; flex-direction: column; gap: 8px; }
.mx-quick-to { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.mx-quick-to svg { width: 14px; height: 14px; }
.mx-all { flex-direction: row; align-items: center; gap: 5px; margin-left: auto; font-weight: 600; cursor: pointer; }
.mx-quick textarea { resize: none; min-height: 40px; max-height: 40vh; transition: min-height .15s; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.mx-quick textarea:focus, .mx-quick textarea:not(:placeholder-shown) { min-height: 110px; resize: vertical; }
.mx-quick-row { display: flex; align-items: center; gap: 8px; }
.mx-quick:not(:focus-within) .mx-quick-row .muted { visibility: hidden; }
.mx-quick-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.mx-read.in-modal { flex: 1; }
.mx-read.in-modal .mx-rhead { padding-right: 52px; }

@media (max-width: 1350px) {
  .mx { grid-template-columns: 190px minmax(260px, 330px) 1fr; }
  .mx-tool span { display: none; }
  .mx-tool.pri span { display: inline; }
}
@media (max-width: 1050px) {
  .mx { grid-template-columns: 64px minmax(260px, 320px) 1fr; }
  .mx-rail { padding: 12px 8px; align-items: center; }
  .mx-new span, .mx-acc-n, .mx-fold span, .mx-sec, .mx-num { display: none; }
  .mx-new { width: 44px; height: 44px; padding: 0; }
  .mx-acc, .mx-fold { justify-content: center; padding: 8px; }
  .mx-count { position: absolute; top: 0; right: 0; padding: 0 5px; }
  .mx-acc.active::before { left: -8px; }
}
@media (max-width: 900px) {
  .mx { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .mx.reading { grid-template-rows: 1fr; }
  .mx-rail { flex-direction: row; overflow-x: auto; align-items: center; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mx-new { margin: 0; flex: none; }
  .mx-acc, .mx-fold { width: auto; flex: none; }
  .mx-acc.active::before { display: none; }
  .mx-read { display: none; }
  .mx.reading .mx-col, .mx.reading .mx-rail { display: none; }
  .mx.reading .mx-read { display: flex; }
  .mx-back { display: inline-flex; }
  .mx-rhead, .mx-msgs, .mx-quick { padding-left: 12px; padding-right: 12px; }
}

/* Yönetim → Çalışanlar */
.emp-list { display: flex; flex-direction: column; }
.emp { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.emp:last-child { border-bottom: 0; }
.emp.off { opacity: .55; }
.emp-who { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.emp-who .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.emp-name { min-width: 0; line-height: 1.35; }
.emp-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 2px; }
.emp-perms { display: flex; flex-wrap: wrap; gap: 6px; }
.perm { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; cursor: pointer; border: 1px dashed var(--line); background: none; color: var(--text-3); }
.perm:hover { color: var(--text); border-color: var(--text-3); }
.perm.on { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.emp-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emp-danger { margin-left: auto; display: flex; gap: 6px; }
@media (max-width: 760px) { .emp { grid-template-columns: 1fr; gap: 8px; } }
.admin-single.emp-page { max-width: 1200px; }

/* Silinmiş işler (panoda "Silindi" olarak kalır) */
.card.ghost { cursor: default; border: 1.5px dashed color-mix(in srgb, var(--red) 70%, transparent); background: color-mix(in srgb, var(--red) 6%, var(--bg-3)); }
.card.ghost .card-title { text-decoration: line-through; color: var(--text-3); }
.card.ghost .card-meta { opacity: .7; }
.ghost-tag { display: inline-flex; align-items: baseline; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--red); white-space: nowrap; }
.ghost-tag span { font-weight: 500; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.ghost-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.task-table tr.ghost td { background: color-mix(in srgb, var(--red) 5%, transparent); }
.task-table tr.ghost .t-name { text-decoration: line-through; color: var(--text-3); }
.task-table tr.ghost .ghost-tag { margin-right: 6px; }
.ghost-count { color: var(--red); font-weight: 600; }
.trash-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.trash-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-3); }
.trash-row.hidden-ghost { opacity: .8; }
.trash-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trash-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Yazdırılan kağıtta sağ üstte Reksma logosu (ekranda görünmez) */
.print-logo { display: none; }
@media print { .print-logo { display: block; width: 30mm; height: auto; margin: 0 0 3mm auto; } }

/* İş penceresi: Montaj sonrası ve Bayi görselleri (iş emrinden biraz küçük) */
.task-side .wo-box { position: static; }
.ph-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.ph-box.drag-over { border-color: var(--accent); background: #f7670714; }
.ph-head { display: flex; align-items: center; gap: 8px; }
.ph-head b { font-size: 14px; }
.ph-head .btn { padding: 3px 9px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.ph-tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); cursor: zoom-in; display: grid; place-items: center; padding: 0; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-fname { font-size: 11px; padding: 6px; text-align: center; word-break: break-word; color: var(--text-2); }
.ph-del { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #000b; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ph-tile:hover .ph-del { opacity: 1; }
.ph-del:hover { background: #e03131; }
.ph-addtile { cursor: pointer; border-style: dashed; color: var(--text-2); font: inherit; font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ph-addtile span { font-size: 12px; font-weight: 600; }
.ph-addtile:hover { color: var(--accent); border-color: var(--accent); }
.ph-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; }
.ph-drop:hover { border-color: var(--accent); background: #f767070a; }
.ph-warn { color: #ff8787; font-weight: 700; font-size: 13px; }
.ph-note { padding: 10px; text-align: center; font-size: 13px; }

/* İş akışı (sohbet) düğmesi */
.col-flow { width: 74px; text-align: center; }
.flow-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text-3); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.flow-btn svg { width: 15px; height: 15px; }
.flow-btn:hover { color: var(--accent); border-color: var(--accent); }
.flow-btn.has { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, var(--bg-3)); }
.card .flow-btn { padding: 2px 8px; }
.flow-modal .comments { min-height: 260px; }

/* İş Panosu: Devam eden / Tamamlanan işler sekmeleri */
.board-tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.board-tabs button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px 10px; border-radius: 8px 8px 0 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.board-tabs button:hover { color: var(--text); background: var(--bg-3); }
.board-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.board-tabs button span { font-size: 11.5px; font-weight: 700; background: var(--bg-4); color: var(--text-2); border-radius: 99px; padding: 1px 8px; }
.board-tabs button.active span { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.board-tabs button[data-btab="done"].active { border-bottom-color: #37b24d; }
.board-tabs button[data-btab="done"].active span { background: #37b24d33; color: #69db7c; }

/* WhatsApp grupları (deneme) — WhatsApp Web benzeri */
#wa-view .wa { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px 1fr; }
#wa-view .main-head .wa-private { display: inline-flex; align-items: center; gap: 6px; }
.wa-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg-2); }
.wa-shead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wa-sme { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-sme span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-dot { width: 10px; height: 10px; border-radius: 50%; background: #868e96; flex: none; }
.wa-dot.on { background: #25d366; box-shadow: 0 0 0 3px #25d36633; }
.wa-dot.wait { background: #fab005; animation: wa-blink 1s infinite alternate; }
@keyframes wa-blink { to { opacity: .3; } }
.wa-glist { flex: 1; overflow: auto; min-height: 0; }
.wa-pad { padding: 16px; line-height: 1.5; }
.wa-g { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.wa-g:hover { background: var(--bg-3); }
.wa-g.active { background: var(--bg-4); }
.wa-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.wa-chead .wa-av { width: 34px; height: 34px; font-size: 14px; }
.wa-gb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-gt, .wa-gl { display: flex; gap: 6px; align-items: center; justify-content: space-between; min-width: 0; }
.wa-gt b, .wa-gl > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-un { background: #25d366; color: #06290f; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; flex: none; }
.wa-sfoot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.wa-pick-h { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wa-pick { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.wa-pick:hover { background: var(--bg-3); }
.wa-pick input { width: auto; margin: 0; }
.wa-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.wa-chead { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.wa-center { flex: 1; display: grid; place-items: center; padding: 30px; text-align: center; }
.wa-qr { display: flex; gap: 22px; align-items: center; text-align: left; }
.wa-qr img { width: 264px; height: 264px; background: #fff; padding: 8px; border-radius: 10px; }
.wa-qr ol { margin: 10px 0; padding-left: 18px; line-height: 1.8; }
.wa-qr > div { max-width: 340px; }
.wa-msgs { flex: 1; overflow: auto; padding: 12px 6% 16px; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-older { text-align: center; padding: 6px; }
.wa-day { text-align: center; margin: 10px 0 6px; }
.wa-day span { background: var(--bg-3); color: var(--text-2); font-size: 12px; padding: 4px 12px; border-radius: 8px; }
.wa-row { display: flex; margin-top: 6px; }
.wa-row.same { margin-top: 1px; }
.wa-row.me { justify-content: flex-end; }
.wa-bub { position: relative; max-width: min(520px, 75%); background: var(--bg-3); border-radius: 10px; padding: 6px 9px 18px; box-shadow: 0 1px 1px #0002; }
.wa-row.me .wa-bub { background: #005c4b; color: #e9edef; }
.wa-from { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.wa-txt { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.4; }
.wa-imgw { position: relative; margin: 2px -4px 4px; border-radius: 8px; overflow: hidden; border: 3px solid transparent; }
.wa-imgw.sel { border-color: #25d366; }
.wa-img { display: block; max-width: 100%; width: 330px; max-height: 360px; object-fit: cover; cursor: zoom-in; background: #0003; min-height: 80px; }
.wa-imgw .wa-check { display: none; position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: #25d366; color: #06290f; font-weight: 900; place-items: center; }
.wa-imgw.sel .wa-check { display: grid; }
.wa-imgerr { display: none; padding: 24px 12px; font-size: 12px; color: var(--text-2); }
.wa-imgw.err img { display: none; }
.wa-imgw.err .wa-imgerr { display: block; }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: var(--text-2); }
.wa-row.me .wa-time { color: #e9edefaa; }
.wa-savedl { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wa-saved { font-size: 11px; font-weight: 600; color: #69db7c; background: #2f9e4426; border-radius: 6px; padding: 1px 6px; }
.wa-selbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.wa-ctx { min-width: 230px; }
.wa-ctx-h { padding: 6px 12px 4px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.wa-ctx button[disabled] { opacity: .45; cursor: not-allowed; }
.dlg.wa-target { width: min(520px, 94vw); display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .wa { grid-template-columns: 1fr; } .wa-side { max-height: 35vh; } }

/* İş penceresi: Kontrol Panelindeki adı (bilgi, değiştirilemez) */
.t-kpname { margin: -4px 0 4px; padding: 7px 10px; border-radius: 8px; background: var(--bg-3); border: 1px dashed var(--line); font-size: 13px; color: var(--text-2); word-break: break-word; user-select: text; }
.t-kpname span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; opacity: .8; }

/* Ayarlar: telefona kurulum QR kodu */
.phone-qr { display: flex; gap: 14px; align-items: center; }
.phone-qr img { flex: none; background: #fff; border-radius: 8px; padding: 4px; }
@media (max-width: 520px) { .phone-qr { flex-direction: column; align-items: flex-start; } }
