/* MYTeknoloji Dispatch — Design Tokens (DESIGN.md) */
:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --border: #e5e8ee;
  --border-2: #c7cdd9;
  --text: #1c2333;
  --text-2: #6b7488;
  --text-3: #9aa3b5;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-bg: #fff4ed;
  --col-bg: #e9edf3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; }

/* ============ LOGIN ============ */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #f1f3f6 0%, #e8ecf3 100%); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; width: 400px; max-width: calc(100vw - 32px); box-shadow: 0 8px 40px rgba(28,35,51,.08); }
.login-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 30px; }
.login-sub { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-top: 0; }
.login-form label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin: 14px 0 6px; }
.login-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; font-family: inherit; font-size: 14px; outline: none; transition: .15s; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.form-err { color: #dc2626; font-size: 12.5px; font-weight: 500; margin-top: 10px; }
.login-foot { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--text-3); font-weight: 500; }

/* ============ BUTTONS ============ */
.btn { font-family: inherit; font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 12px; padding: 7px 14px; border-radius: 9px; }
.btn-block { width: 100%; justify-content: center; padding: 13px; font-size: 14px; margin-top: 22px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

/* ============ APP HEADER ============ */
.app-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 20; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; }
.logo small { font-weight: 500; font-size: 10.5px; color: var(--text-3); }
.wordmark { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; font-size: 14px; letter-spacing: .04em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; }
.wordmark .my { color: #ff5a00; }
.wordmark .t { color: var(--text); }
.wordmark.wm-lg { font-size: 20px; letter-spacing: .05em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; border-radius: 9px; cursor: pointer; }
.nav-links a:hover { background: #f3f4f6; color: var(--text); }
.nav-links a.active { background: var(--accent-bg); color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search { background: #f3f4f6; border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px; font-size: 13px; color: var(--text-3); width: 220px; font-family: inherit; outline: none; }
.search:focus { border-color: var(--accent); background: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip { font-size: 12px; font-weight: 600; color: var(--text-2); }
.user-menu { position: relative; display: flex; align-items: center; gap: 10px; }
.user-menu .user-chip, .user-menu .avatar { cursor: pointer; }
.user-dd { position: absolute; top: calc(100% + 10px); right: 0; width: 216px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(28,35,51,.14); padding: 8px; z-index: 60; }
.user-dd-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; border-bottom: 1px solid #f3f4f6; margin-bottom: 6px; }
.user-dd-head b { font-size: 13px; font-weight: 600; }
.user-dd-head span { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.user-dd-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: 9px; cursor: pointer; text-align: left; }
.user-dd-item:hover { background: #f3f4f6; color: var(--text); }
.user-dd-item.danger { color: #dc2626; }
.user-dd-item.danger:hover { background: #fef2f2; color: #dc2626; }
.user-dd-item .ic { width: 15px; height: 15px; }

/* ============ AYARLAR ============ */
.ayar-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; max-width: 980px; align-items: start; }
.ayar-side { display: flex; flex-direction: column; gap: 16px; }
.ayar-card { padding: 24px; }
.ayar-h { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.ayar-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.ayar-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; font-family: inherit; font-size: 14px; outline: none; margin-bottom: 14px; }
.ayar-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.ayar-meta { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.ayar-hint { font-size: 11.5px; color: var(--text-3); }
.ayar-msg { margin-top: 12px; font-size: 13px; font-weight: 600; min-height: 0; }
.prof-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.prof-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; font-weight: 600; font-size: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .ayar-grid { grid-template-columns: 1fr; } }

/* ============ MAIN ============ */
main { padding: 26px 28px 60px; max-width: 1500px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.topbar .sub { color: var(--text-3); font-size: 13px; margin-top: 3px; }

/* ============ MINI STATS ============ */
.mini-stats { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.ms { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.ms .v { font-size: 20px; font-weight: 700; }
.ms .l { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.ms .sq { width: 10px; height: 10px; border-radius: 4px; }

/* ============ VIEW TABS ============ */
.view-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 20px; width: fit-content; }
.view-tabs button { font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 20px; border: none; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; transition: .15s; }
.view-tabs button.active { background: var(--accent); color: #fff; }
.view-tabs button:not(.active):hover { background: #f3f4f6; }

/* ============ KANBAN ============ */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.col { background: var(--col-bg); border-radius: 16px; padding: 14px; min-height: 300px; transition: .15s; }
.col.drag-over { outline: 2px dashed var(--accent); outline-offset: -4px; background: #f3e9e4; }
.col-h { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; }
.col-h .dot { width: 10px; height: 10px; border-radius: 50%; }
.col-h h3 { font-size: 13.5px; font-weight: 600; }
.col-h .cnt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-2); background: #fff; border-radius: 20px; padding: 2px 10px; }
.d-amber { background: #f59e0b; } .d-blue { background: #3b82f6; } .d-gray { background: #9aa3b5; } .d-purple { background: #8b5cf6; } .d-green { background: #10b981; }

/* ============ JOB CARD ============ */
.card { background: var(--surface); border-radius: 13px; padding: 15px 16px; margin-bottom: 12px; border: 1px solid var(--border); cursor: grab; transition: .15s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; display: flex; flex-direction: column; gap: 8px; }
.card * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card:hover { border-color: var(--border-2); box-shadow: 0 3px 10px rgba(28,35,51,.07); }
.card:active { transform: scale(.98); }
.card.dragging { opacity: .45; cursor: grabbing; }
.card .top { display: flex; justify-content: space-between; align-items: center; }
.card .no { font-weight: 700; font-size: 13px; color: var(--accent); }
.card .date { font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.card .name { font-weight: 600; font-size: 13.5px; }
.card .loc { font-size: 11.5px; color: var(--text-3); }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.card .tag { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f3f4f6; color: #4b5563; white-space: nowrap; }
.card .fee { font-weight: 700; font-size: 13px; white-space: nowrap; }
.card .tech { font-size: 11px; color: var(--text-2); font-weight: 500; }
.empty-col { text-align: center; color: var(--text-3); font-size: 12px; padding: 30px 10px; font-weight: 500; }

/* ============ LIST VIEW ============ */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { font-family: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 15px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.date-range { display: flex; align-items: center; gap: 6px; }
.date-range input[type="date"] {
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2);
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); cursor: pointer; outline: none; transition: .15s;
  color-scheme: light;
}
.date-range input[type="date"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.date-range .dr-sep { color: var(--text-3); font-size: 13px; font-weight: 600; }
.date-range .chip { user-select: none; }

/* ============ COMPONENTS: DROPDOWN & DATEPICKER ============ */
.mt-dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; user-select: none; transition: .15s; }
.mt-dd:hover { border-color: var(--border-2); }
.mt-dd-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-dd-txt.ph { color: var(--text-3); }
.mt-dd-car, .mt-dd-ico { color: var(--text-3); font-size: 11px; flex-shrink: 0; }
.mt-dd-ico { font-size: 13px; }
.mt-dd-dis { background: #f8f9fb; color: var(--text-3); cursor: default; }
.mt-dd-dis:hover { border-color: var(--border); }
.date-range .mt-dd { width: auto; border-radius: 20px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.date-range .mt-dd-car, .date-range .mt-dd-ico { font-size: 10px; }

.mt-pop { position: fixed; z-index: 450; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(28,35,51,.16); padding: 6px; min-width: 180px; }
.mt-opt { padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mt-opt:hover { background: #f4f5f8; color: var(--text); }
.mt-opt.sel { color: var(--accent); background: var(--accent-bg); }
.mt-opt.sel::after { content: '✓'; font-weight: 700; }

.mt-cal-pop { width: 264px; padding: 12px; }
.mt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mt-cal-head b { font-size: 13.5px; }
.mt-nav { border: none; background: #f4f5f8; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--text-2); line-height: 1; }
.mt-nav:hover { background: var(--accent-bg); color: var(--accent); }
.mt-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.mt-cal-week span { text-align: center; font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; padding: 4px 0; }
.mt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mt-cal-blank { height: 32px; }
.mt-day { height: 32px; border: none; background: transparent; border-radius: 8px; font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.mt-day:hover { background: #f4f5f8; color: var(--text); }
.mt-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.mt-day.sel { background: var(--accent); color: #fff; }
.mt-day.sel:hover { background: var(--accent-dark); }
.mt-cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.mt-cal-btn { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 5px 8px; border-radius: 7px; }
.mt-cal-btn:hover { background: #f4f5f8; color: var(--accent); }

/* ============ TEKLİFLER ============ */
.ttabs { display: flex; gap: 8px; }
.quote-cart { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; position: sticky; top: 80px; }
.qc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qc-head b { font-size: 15px; }
.qc-count { font-size: 11.5px; font-weight: 600; color: var(--text-3); background: #f4f5f8; padding: 3px 10px; border-radius: 12px; }
.qc-cust { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.qc-cust input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13px; outline: none; transition: .15s; }
.qc-cust input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.qc-items { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.qc-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 18px 0; }
.qc-item { border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.qc-item .nm { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.qc-item .nm small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.qc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1; }
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; }
.qc-price { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.qc-del { border: none; background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.qc-del:hover { color: #dc2626; }
.qc-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) { .katalog-wrap { grid-template-columns: 1fr; } .quote-cart { position: static; } }
.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 13px 20px; border-bottom: 1px solid var(--border); }
td { padding: 14px 20px; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; vertical-align: middle; }
tbody tr:hover td { background: #fafbfd; }
tbody tr:last-child td { border-bottom: none; }
.job-no { font-weight: 600; color: var(--accent); }
.cust { font-weight: 500; }
.cust small { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #f3f4f6; color: #4b5563; }
.pill { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-wait { background: #fef3c7; color: #b45309; }
.p-prog { background: #dbeafe; color: #1d4ed8; }
.p-post { background: #f1f2f4; color: #6b7280; }
.p-none { background: #f3e8ff; color: #7c3aed; }
.p-done { background: #dcfce7; color: #15803d; }
.fee { font-weight: 600; font-variant-numeric: tabular-nums; }
.date { color: var(--text-3); font-size: 12.5px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .jobs-grid { grid-template-columns: 1fr; }
}

/* ============ MODALS ============ */
.modal-bg { position: fixed; inset: 0; background: rgba(15,20,32,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: var(--surface); border-radius: 18px; width: 720px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15,20,32,.25); }
.modal-sm { width: 440px; }
.modal-wide { width: 960px; }
.mcols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.mcol-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
.mcard { background: #fafbfd; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.mcard h5 { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.mcard .f { margin-bottom: 10px; }
.mcard .f:last-child { margin-bottom: 0; }
.mcard .k { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.mcard .v2 { font-size: 13px; font-weight: 500; }
.mcard input, .mcard textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 13px; outline: none; background: var(--surface); }
.mcard input:disabled, .mcard textarea:disabled { background: #f4f5f8; color: var(--text-2); }
.mcard input:focus, .mcard textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.1); }
.items-tbl-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 2px 8px; }
.items-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
@media (max-width: 880px) { .mcols { grid-template-columns: 1fr; } .mcol-side { position: static; } .modal-wide { width: 100%; } }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-h b { font-size: 16px; }
.modal-x { background: none; border: none; font-size: 16px; color: var(--text-3); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-x:hover { background: #f3f4f6; color: var(--text); }
.modal-b { padding: 22px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-b label, .form-page label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin: 12px 0 5px; }
.modal-b label:first-child, .form-page label:first-child { margin-top: 0; }
.modal-b input, .modal-b select, .modal-b textarea, .form-page input, .form-page select, .form-page textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13.5px; outline: none; }
.modal-b input:focus, .modal-b select:focus, .modal-b textarea:focus, .form-page input:focus, .form-page select:focus, .form-page textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.1); }
.modal-b .row2, .form-page .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-b input:disabled, .modal-b textarea:disabled, .form-page input:disabled, .form-page textarea:disabled, .item-row input:disabled { background: #f8f9fb; color: var(--text-2); }

/* ============ DETAIL SECTIONS ============ */
.d-sec { margin-bottom: 22px; }
.d-sec h4 { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 13.5px; }
.d-grid .k { color: var(--text-3); font-weight: 500; margin-bottom: 4px; font-size: 12px; }
.d-grid .v { font-weight: 500; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.note-item { background: #f8f9fb; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; }
.note-item small { color: var(--text-3); font-weight: 500; }
.hist-item { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); padding: 6px 0; border-bottom: 1px dashed var(--border); }
.hist-item b { color: var(--text); }

/* items table in modal */
.item-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.item-row input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 13px; outline: none; }
.item-row input:focus { border-color: var(--accent); }
.item-del { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 15px; padding: 4px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; background: var(--accent-bg); border: 1px solid #fed7c3; border-radius: 12px; padding: 14px 18px; margin-top: 14px; }
.detay-head { display: flex; align-items: center; gap: 14px; margin: 0 auto 22px; flex-wrap: wrap; max-width: 1240px; }
.detay-title { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.detay-body { max-width: 1240px; margin-left: auto; margin-right: auto; }
.detay-body .mcol-side { top: 12px; }
#view-teklifdetay .yt-foot { margin-top: 16px; }
.yt-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 6px; z-index: 5; margin-top: auto; }
.yt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yt-stat { background: #f8f9fb; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.yt-stat .k { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.yt-stat b { font-size: 14px; font-weight: 600; color: var(--text); }
.total-bar .lbl { font-size: 12.5px; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.total-bar .val { font-size: 22px; font-weight: 700; color: var(--accent-dark); }

/* role badge */
.role-badge { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.r-admin { background: #fef3c7; color: #b45309; } .r-yonetim { background: #dbeafe; color: #1d4ed8; }
.r-ofis { background: #dcfce7; color: #15803d; } .r-saha { background: #f3e8ff; color: #7c3aed; }

/* hidden attribute güvenliği — display'li elementlerde de çalışsın */
[hidden] { display: none !important; }

/* Lucide ikonları */
.ic { width: 14px; height: 14px; vertical-align: -2px; flex-shrink: 0; }
.mcard .ic, .mt-dd .ic { width: 15px; height: 15px; }

/* ===== FORM OVERLAY — taslak C (geniş split) + D (basit modal) + B′ (mobil tam ekran) ===== */
.form-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(12,14,18,.55); display: flex; align-items: center; justify-content: center; padding: 44px 52px; overflow-y: auto; }
.form-overlay[hidden] { display: none !important; }
.fm-modal.vf { margin: auto; width: min(472px,100%); max-height: calc(100vh - 48px); background: var(--surface); border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 28px 72px rgba(15,17,21,.30), 0 2px 8px rgba(15,17,21,.08); display: flex; flex-direction: column; overflow: hidden; }
.fm-modal.vf.vf-wide { width: min(1160px,100%); }

.vf .m-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid #e5e7eb; background: var(--surface); flex-shrink: 0; }
.vf .m-head .grow { flex: 1; min-width: 0; }
.vf .m-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.vf .m-sub { font-size: 12.5px; color: #6b7280; margin-top: 3px; }
.vf .icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.vf .icon-btn .ic { width: 16px; height: 16px; }
.vf .icon-btn:hover { border-color: #d3d7de; color: #1c1c1e; }

.vf .m-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; background: var(--surface); }
.vf .sec-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #1c1c1e; margin: 6px 0 14px; }
.vf .sec-title:first-child { margin-top: 0; }
.vf .sec-title .mini { font-size: 11px; font-weight: 500; color: #6b7280; background: #f2f3f5; border-radius: 999px; padding: 2px 9px; }
.vf .sec-title .right { margin-left: auto; }

/* ---- fields ---- */
.vf .f-grid { display: grid; grid-template-columns: 1fr; gap: 15px 16px; }
.vf .f-stack { display: grid; grid-template-columns: 1fr; gap: 14px; }
.vf .field label { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: #4b5563; margin-bottom: 6px; }
.vf .field label .req { color: #ea580c; }
.vf .control { height: 40px; width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 13.5px; background: #fff; color: #1c1c1e; transition: border-color .12s, box-shadow .12s; }
.vf .control::placeholder { color: #a6acb8; }
.vf .control:hover { border-color: #d3d7de; }
.vf .control:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.vf textarea.control { height: auto; min-height: 66px; padding: 9px 12px; resize: none; line-height: 1.5; }
.vf .f-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; }
.vf .select-wrap { position: relative; }
.vf .select-wrap .mt-dd { height: 40px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 13.5px; box-shadow: none; }
.vf .select-wrap .mt-dd:hover { border-color: #d3d7de; }
.vf .select-wrap.catalog .mt-dd { height: 36px; font-size: 13px; }

/* ---- split body (varyant C) ---- */
.vf .m-c-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; grid-template-rows: minmax(0,1fr); }
.vf .m-c-left { border-right: 1px solid #e5e7eb; background: #fbfbfc; padding: 22px 24px; overflow-y: auto; min-height: 0; }
.vf .m-c-right { padding: 22px 24px; overflow-y: auto; min-width: 0; min-height: 0; }
.vf .ctx-card { margin-top: 18px; background: #fff4ec; border: 1px solid #f3cdb3; border-radius: 12px; padding: 13px 15px; }
.vf .ctx-card .k { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #ea580c; margin-bottom: 5px; }
.vf .ctx-card .v { font-size: 12.5px; color: #7c2d12; line-height: 1.5; }

/* ---- items table ---- */
.vf .toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vf .toolbar .spacer { margin-left: auto; }
.vf .items { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.vf .i-head, .vf .i-row { display: grid; grid-template-columns: 24px minmax(150px,1fr) 64px 100px 100px 100px 34px; gap: 8px; align-items: center; padding: 0 12px; }
.vf .i-head { height: 37px; background: #fafafa; border-bottom: 1px solid #e5e7eb; }
.vf .i-head span { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8b9099; }
.vf .i-head .r { text-align: right; }
.vf .i-row { padding-top: 5px; padding-bottom: 5px; border-bottom: 1px solid #f0f1f3; }
.vf .i-row:last-child { border-bottom: none; }
.vf .idx { font-size: 11.5px; color: #a6acb8; text-align: center; }
.vf .cell-in { width: 100%; height: 33px; border: 1px solid transparent; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; background: transparent; color: #1c1c1e; }
.vf .cell-in:hover { border-color: #e0e3e8; background: #fff; }
.vf .cell-in:focus { outline: none; border-color: #ea580c; background: #fff; box-shadow: 0 0 0 3px rgba(234,88,12,.10); }
.vf .cell-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.vf .cell-in::placeholder { color: #b7bcc6; }
.vf .cell-in[data-f="kalem_adi"] { font-weight: 500; }
.vf .row-total { font-size: 13px; font-weight: 600; padding-right: 8px; display: flex; align-items: center; justify-content: flex-end; min-height: 33px; font-variant-numeric: tabular-nums; }
.vf .del-btn { width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent; color: #b3b8c2; display: grid; place-items: center; cursor: pointer; }
.vf .del-btn .ic { width: 15px; height: 15px; }
.vf .del-btn:hover { background: #fef2f2; color: #dc2626; }
.vf .add-row { margin-top: 10px; width: 100%; height: 40px; border: 1.5px dashed #d8dbe1; border-radius: 10px; background: #fff; color: #6b7280; font: inherit; font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.vf .add-row .ic { width: 15px; height: 15px; }
.vf .add-row:hover { border-color: #ea580c; color: #ea580c; background: #fff4ec; }
.vf .add-note { margin-top: 8px; font-size: 11.5px; color: #9aa1ab; display: flex; align-items: center; gap: 6px; }
.vf .add-note .ic { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- sticky footer / totals ---- */
.vf .m-foot { flex-shrink: 0; border-top: 1px solid #e5e7eb; background: var(--surface); padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.vf-wide .m-foot { background: #fbfbfc; }
.vf .totals { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.vf .t-item { text-align: right; }
.vf .t-item .k { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9aa1ab; }
.vf .t-item .v { font-size: 14px; font-weight: 600; margin-top: 1px; }
.vf .t-div { width: 1px; height: 34px; background: #e5e7eb; }
.vf .t-grand .v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.vf .t-note { font-size: 11px; color: #9aa1ab; text-align: right; margin-top: 1px; }
.vf .btn-primary { height: 44px; padding: 0 22px; border-radius: 10px; border: none; background: #ea580c; color: #fff; font: inherit; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 16px rgba(234,88,12,.28); white-space: nowrap; }
.vf .btn-primary .ic { width: 15px; height: 15px; }
.vf .btn-primary:hover { background: #c2410c; }
.vf .btn-ghost { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; }
.vf .btn-ghost:hover { border-color: #d3d7de; color: #1c1c1e; }
.vf .kbd-hint { font-size: 11.5px; color: #9aa1ab; display: flex; align-items: center; gap: 6px; }
.vf .kbd { font-size: 10.5px; font-weight: 600; border: 1px solid #e5e7eb; border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: #fafafa; color: #6b7280; }
.vf .form-err { color: #dc2626; font-size: 12.5px; font-weight: 500; }

/* ---- responsive: ≤1024px split → tek kolon ---- */
@media (max-width: 1024px) {
  .form-overlay { padding: 16px; }
  .vf .m-c-body { display: flex; flex-direction: column; overflow-y: auto; }
  .vf .m-c-left { border-right: none; border-bottom: 1px solid #e5e7eb; overflow-y: visible; flex-shrink: 0; }
  .vf .m-c-right { overflow-y: visible; flex-shrink: 0; }
}
/* ---- B′ mobil: ≤640px tam ekran + kompakt kalemler ---- */
@media (max-width: 640px) {
  .form-overlay { padding: 0; }
  .fm-modal.vf { width: 100%; max-height: none; height: 100%; border: none; border-radius: 0; }
  .vf .m-head { padding: 14px 16px 12px; }
  .vf .m-title { font-size: 15px; }
  .vf .icon-btn { width: 32px; height: 32px; }
  .vf .icon-btn .ic { width: 14px; height: 14px; }
  .vf .m-body { padding: 14px 16px 24px; }
  .vf .m-foot { padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .vf .totals { margin-left: 0; justify-content: space-between; width: 100%; gap: 12px; }
  .vf .t-grand .v { font-size: 17px; }
  .vf .btn-primary { justify-content: center; width: 100%; }
  .vf .i-head { display: none; }
  .vf .i-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .vf .i-row .idx { display: none; }
  .vf .i-row input[data-f="kalem_adi"] { order: 1; flex: 1 1 100%; height: 36px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 10px; font-weight: 500; font-size: 13.5px; }
  .vf .i-row .cell-in.num { height: 34px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; text-align: right; }
  .vf .i-row input[data-f="adet"] { order: 2; width: 56px; }
  .vf .i-row input[data-f="birim_fiyat"] { order: 3; width: 78px; }
  .vf .i-row input[data-f="iscilik"] { order: 4; width: 78px; }
  .vf .i-row .row-total { order: 5; margin-left: auto; align-self: center; font-size: 13px; }
  .vf .i-row .del-btn { order: 6; align-self: center; }
  .vf .add-row { height: 40px; }
  .vf .f-grid .two { grid-template-columns: 1fr; }
}

/* ===== DETAY SAYFALARI — vf form diliyle uyum ===== */
.detay-head { margin-bottom: 20px; }
.detay-head .btn-ghost.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; border-color: #e5e7eb; color: #4b5563; font-weight: 500; }
.detay-head .btn-ghost.btn-sm:hover { border-color: #d3d7de; color: #1c1c1e; }
.detay-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.detay-body .d-sec h4 { font-size: 13px; font-weight: 600; color: #1c1c1e; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
.detay-body .mcard { background: #fff; border-color: #e5e7eb; border-radius: 12px; }
.detay-body .mcard h5 { font-size: 13px; font-weight: 600; color: #1c1c1e; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
.detay-body .mcard .k { font-size: 12px; font-weight: 500; color: #4b5563; }
.detay-body .mcard .v2 { font-size: 13.5px; font-weight: 500; }
.detay-body .mcard input, .detay-body .mcard textarea { border-color: #e5e7eb; border-radius: 10px; font-size: 13.5px; transition: border-color .12s, box-shadow .12s; }
.detay-body .mcard input:hover, .detay-body .mcard textarea:hover { border-color: #d3d7de; }
.detay-body .mcard input:focus, .detay-body .mcard textarea:focus { border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.detay-body .mcard input:disabled, .detay-body .mcard textarea:disabled { background: #fafafa; color: #4b5563; }

/* items table — varyant C görünümü */
.detay-body .items-tbl-head { display: grid; grid-template-columns: 24px minmax(0,2fr) 60px 88px 88px 88px 34px; gap: 8px; align-items: center; height: 37px; padding: 0 12px; margin-bottom: 0; background: #fafafa; border: 1px solid #e5e7eb; border-bottom: none; border-radius: 12px 12px 0 0; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8b9099; }
.detay-body .item-row { display: grid; grid-template-columns: 24px minmax(0,2fr) 60px 88px 88px 88px 34px; gap: 8px; align-items: center; padding: 5px 12px; margin-bottom: 0; background: #fff; border-left: 1px solid #f0f1f3; border-right: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3; }
.detay-body #itemsBox .item-row:first-child, .detay-body #tItemsBox .item-row:first-child { border-top: 1px solid #f0f1f3; }
.detay-body #itemsBox .item-row:last-child, .detay-body #tItemsBox .item-row:last-child { border-bottom: 1px solid #e5e7eb; }
.detay-body .item-row input { height: 33px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 13px; }
.detay-body .item-row input:hover { border-color: #e0e3e8; background: #fff; }
.detay-body .item-row input:focus { outline: none; border-color: #ea580c; background: #fff; box-shadow: 0 0 0 3px rgba(234,88,12,.10); }
.detay-body .item-row input:disabled { background: transparent; color: #4b5563; }
.detay-body .item-row input[data-f="kalem_adi"] { font-weight: 500; }
.detay-body .item-row input[data-f="adet"], .detay-body .item-row input[data-f="birim_fiyat"], .detay-body .item-row input[data-f="iscilik"] { text-align: right; font-variant-numeric: tabular-nums; }
.detay-body .idx { font-size: 11.5px; color: #a6acb8; text-align: center; }
.detay-body .ritem-total { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; padding-right: 4px; }
.detay-body .item-del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; padding: 0; color: #b3b8c2; }
.detay-body .item-del:hover { background: #fef2f2; color: #dc2626; }
.detay-body .items-add .btn-ghost.btn-sm { border: 1.5px dashed #d8dbe1; color: #6b7280; font-weight: 500; }
.detay-body .items-add .btn-ghost.btn-sm:hover { border-color: #ea580c; color: #ea580c; background: #fff4ec; }

.detay-body .total-bar { background: #fff; border-color: #e5e7eb; }
.detay-body .total-bar .lbl { color: #9aa1ab; }
.detay-body .total-bar .val { color: #1c1c1e; font-size: 20px; }
.detay-body .yt-stat { background: #fff; border-color: #e5e7eb; border-radius: 10px; }

@media (max-width: 640px) {
  .detay-body .items-tbl-head { display: none; }
  .detay-body .item-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .detay-body .item-row .idx { display: none; }
  .detay-body .item-row input[data-f="kalem_adi"] { order: 1; flex: 1 1 100%; height: 36px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 10px; font-weight: 500; font-size: 13.5px; }
  .detay-body .item-row input[data-f="adet"], .detay-body .item-row input[data-f="birim_fiyat"], .detay-body .item-row input[data-f="iscilik"] { order: 2; width: 56px; height: 34px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
  .detay-body .item-row input[data-f="birim_fiyat"] { order: 3; width: 78px; }
  .detay-body .item-row input[data-f="iscilik"] { order: 4; width: 78px; }
  .detay-body .item-row .ritem-total { order: 5; margin-left: auto; align-self: center; padding-right: 0; }
  .detay-body .item-row .item-del { order: 6; align-self: center; }
}
.detay-body .yt-foot { border-top: 1px solid #eef0f3; }

/* ===== DETAY MODALLARI — teklif formuyla aynı split düzen ===== */
.vf .m-body-flush { padding: 0; }
.detay-body .mcols { grid-template-columns: 320px minmax(0,1fr); gap: 0; position: relative;
  background: linear-gradient(to right, #fbfbfc 0, #fbfbfc 320px, #fff 320px, #fff 100%); }
.detay-body .mcols::before { content: ''; position: absolute; left: 320px; top: 0; bottom: 0; width: 1px; background: #e5e7eb; pointer-events: none; }
.detay-body .mcols > .mcol-side { grid-column: 1; grid-row: 1; padding: 20px 22px 48px; }
.detay-body .mcols > div:not(.mcol-side) { grid-column: 2; grid-row: 1; padding: 22px 24px 48px; min-width: 0; }
.detay-body #itemsBox .item-row:last-child, .detay-body #tItemsBox .item-row:last-child { border-radius: 0 0 12px 12px; }
@media (max-width: 880px) {
  .detay-body .mcols { grid-template-columns: 1fr; background: #fff; }
  .detay-body .mcols::before { display: none; }
  .detay-body .mcols > .mcol-side { grid-column: 1; grid-row: 1; background: #fbfbfc; border-bottom: 1px solid #e5e7eb; padding-bottom: 28px; }
  .detay-body .mcols > div:not(.mcol-side) { grid-column: 1; grid-row: 2; padding-top: 22px; }
}

/* detay içi toolbar + form elemanları */
.detay-body .det-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.detay-body .det-toolbar h4 { margin: 0; }
.detay-body .det-toolbar .mt-dd { margin-left: auto; width: 240px; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.detay-body .items-add { display: block; margin: 10px 0 4px; }
.detay-body .items-add .btn-ghost.btn-sm { width: 100%; height: 40px; justify-content: center; font-size: 13px; }
.detay-body .d-sec > textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13.5px; color: #1c1c1e; background: #fff; resize: none; line-height: 1.5; }
.detay-body .d-sec > textarea:hover { border-color: #d3d7de; }
.detay-body .d-sec > textarea:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.12); }
.detay-body .d-sec > textarea:disabled { background: #fafafa; color: #4b5563; }
@media (max-width: 640px) { .detay-body .det-toolbar .mt-dd { width: 100%; margin-left: 0; } }
.detay-body .items-empty { padding: 24px 12px; text-align: center; font-size: 13px; color: #9aa0aa; background: #fff; border-left: 1px solid #f0f1f3; border-right: 1px solid #f0f1f3; border-bottom: 1px solid #e5e7eb; border-radius: 0 0 12px 12px; }

/* mini stats — son aktiviteler */
.ms-act { flex: 1; min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; }
.act-h { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.act-row { display: flex; align-items: stretch; }
.act-i { flex: 1; min-width: 0; padding: 0 12px; border-left: 1px solid #eef0f3; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.act-i:first-child { border-left: none; padding-left: 0; }
.act-i .l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.act-i .t { flex: none; font-size: 11px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.act-i b { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-i .l2 { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-empty { font-size: 12px; color: var(--text-3); font-weight: 500; }
.card .cnote { font-size: 11.5px; color: var(--text-3); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .cdesc { font-style: normal; color: var(--text-2); }
.card .tag.b-green { background: #dcfce7; color: #15803d; }
.card .tag.b-blue { background: #dbeafe; color: #1d4ed8; }
.card .tag.b-red { background: #fee2e2; color: #b91c1c; }
.card .tag.b-purple { background: #ede9fe; color: #6d28d9; }
.card .tag.b-orange { background: #ffedd5; color: #c2410c; }
.card .mi { width: 12px; height: 12px; vertical-align: -0.12em; margin-right: 5px; color: var(--text-3); }
.card .name .mi { color: inherit; }
.card .cdesc .mi { color: var(--text-2); }
.card .tech-na { color: #d97706; }

/* ============ TALEP KUYRUĞU ============ */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.talep-list { display: flex; flex-direction: column; gap: 10px; }
.talep-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.talep-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.talep-name { font-size: 14px; font-weight: 600; color: var(--text); }
.talep-date { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.talep-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.talep-meta .mi, .talep-desc .mi, .talep-note .mi { width: 11px; height: 11px; vertical-align: -0.12em; margin-right: 4px; color: var(--text-3); }
.talep-desc { font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; margin: 5px 0 2px; }
.talep-note { font-size: 12px; color: var(--text-3); font-style: italic; margin: 4px 0 2px; white-space: pre-wrap; }
.talep-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.talep-result { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #15803d; background: #dcfce7; padding: 5px 10px; border-radius: 8px; }
.talep-result .mi { color: #15803d; }
.talep-tag-site { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #dbeafe; color: #1d4ed8; }
.talep-tag-ticket { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #ede9fe; color: #6d28d9; }
.talep-cat { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #dcfce7; color: #15803d; }
.talep-cat.t-blue { background: #dbeafe; color: #1d4ed8; }
.talep-cat.t-red { background: #fee2e2; color: #b91c1c; }
.talep-cat.t-orange { background: #ffedd5; color: #c2410c; }

/* ============ BUSY / LOADING ============ */
.spin { display: inline-block; width: 11px; height: 11px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: mtspin .7s linear infinite; vertical-align: -1.5px; margin-right: 6px; }
@keyframes mtspin { to { transform: rotate(360deg); } }
.btn.is-busy, .btn-primary.is-busy, .btn-ghost.is-busy { opacity: .8; cursor: wait; pointer-events: none; }

/* ============ ONEMLI / ONCELIK ============ */
.p-urgent { background: #fef2f2; color: #dc2626; }
.card.onemli { border-color: #fca5a5; box-shadow: 0 0 0 1px #fecaca inset; }
.nj-onemli { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: #4b5563; cursor: pointer; user-select: none; }
.nj-onemli input { width: 16px; height: 16px; accent-color: #dc2626; cursor: pointer; }
.onemli-star { color: #dc2626; }
.p-rol-sel { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; margin-right: 6px; }
.p-del { color: #dc2626; }
.p-del:hover { border-color: #fca5a5; background: #fef2f2; }
.mt-day.dis { color: #c9cdd4; opacity: .45; cursor: default; }
.mt-day.dis:hover { background: transparent; color: #c9cdd4; }

/* ============================================================
   MOBİL UYGULAMA KATMANI (≤640px) — masaüstüne dokunmaz
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
.m-search-btn, .tabbar, .board-nav, .d-actbar, .m-cardlist, .mt-grab { display: none; }
.search-pill { display: contents; }
.mt-pop-bg { display: none; }

@media (max-width: 640px) {
  body { overscroll-behavior-y: none; touch-action: manipulation; }

  /* ---------- header ---------- */
  .app-header { height: auto; min-height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; gap: 10px; }
  .logo small { display: none; }
  .logo .wordmark { font-size: 15.5px; }


  .m-search-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; }
  .m-search-btn .ic { width: 17px; height: 17px; }
  .user-chip { display: none; }
  /* mobil arama: input+ikon TEK kapsül; kapaliyken sadece ikon kutusu */
  .search-pill { display: flex; align-items: center; flex-shrink: 0; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: #fff; overflow: hidden; transition: border-color .2s, background .2s; }
  .search-pill .search { flex: 0 0 auto; width: 0; opacity: 0; border: none; background: transparent; border-radius: 0; padding: 0; font-size: 15px; pointer-events: none; transition: width .24s ease, opacity .18s ease, padding .24s ease; }
  .search-pill .m-search-btn { border: none; background: transparent; width: 36px; height: 36px; border-radius: 0; flex-shrink: 0; }
  .app-header.search-open .search-pill { background: #f3f4f6; }
  .app-header.search-open .search { width: min(150px, 36vw); opacity: 1; padding: 0 3px 0 9px; pointer-events: auto; }
  .search-pill:focus-within { border-color: var(--accent); }
  .app-header .user-menu { flex-shrink: 0; }

  main { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 12px; }
  .topbar h1 { font-size: 19px; }
  .topbar .sub { font-size: 12px; }

  /* ---------- mini stats: kaydırmalı şerit ---------- */
  .mini-stats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 16px; padding: 2px 14px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mini-stats::-webkit-scrollbar { display: none; }
  .ms { flex-shrink: 0; padding: 10px 14px; }
  .ms .v { font-size: 17px; }
  .ms-act { flex: none; width: max-content; min-width: 290px; padding-right: 18px; }
  .ms-act .act-i { flex: none; }
  .ms-act .act-i b { font-size: 12.5px; white-space: normal; overflow: visible; text-overflow: clip; }
  .ms-act .act-i .l2 { font-size: 12px; white-space: normal; overflow: visible; text-overflow: clip; }

  /* ---------- FAB (topActions) ---------- */
  #topActions:not(:empty) { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; flex-direction: column; }
  #topActions .btn { height: 50px; padding: 0 20px; border-radius: 25px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 22px rgba(234,88,12,.30), 0 2px 8px rgba(28,35,51,.14); }
  #topActions .btn-ghost { background: #fff; box-shadow: 0 6px 18px rgba(28,35,51,.18); }

  /* ---------- alt tab bar ---------- */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(28,35,51,.06); }
  .tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; cursor: pointer; position: relative; text-decoration: none; text-align: center; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a .ic { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active::before { content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 2.5px; background: var(--accent); border-radius: 0 0 3px 3px; }
  .tabbar a:active { color: var(--text); }
  .tab-badge { position: absolute; top: 7px; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

  /* ---------- pano: yatay snap kolonlar ---------- */
  .board-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; padding-bottom: 2px; }
  .board-nav::-webkit-scrollbar { display: none; }
  .bn-dot { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 18px; border: 1px solid var(--border); background: #fff; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
  .bn-dot .dot { width: 8px; height: 8px; border-radius: 50%; }
  .bn-dot b { font-size: 11px; color: var(--text-3); }
  .bn-dot.on { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
  .bn-dot.on b { color: var(--accent); }
  .board { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 10px; scrollbar-width: none; align-items: flex-start; }
  .board::-webkit-scrollbar { display: none; }
  .col { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; height: auto; min-height: 140px; }
  .col-body { padding-bottom: 4px; }
  .card, .jl-card, .talep-card { cursor: default; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .card *, .jl-card *, .talep-card * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

  /* ---------- listeler: kart görünümü ---------- */
  #view-list .list-card, #view-personel .list-card, #view-katalog .list-card { display: none; }
  .m-cardlist { display: flex; flex-direction: column; gap: 10px; }
  .m-cardlist .card { margin-bottom: 0; }
  .jl-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; }
  .jl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .jl-top .pill { margin-left: auto; font-size: 10.5px; padding: 4px 10px; }
  .jl-top .pill + .pill { margin-left: 0; }
  .jl-top .job-no { font-size: 14px; }
  .jl-name { font-size: 15px; font-weight: 600; }
  .jl-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
  .jl-meta .mi { width: 12px; height: 12px; vertical-align: -0.12em; margin-right: 4px; color: var(--text-3); }
  .jl-meta a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; }
  .jl-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
  .jl-foot .fee { margin-left: auto; font-size: 14px; font-weight: 700; }
  .jl-foot .date { font-size: 11px; }
  .jl-sep { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 4px 2px; }
  .jl-empty { text-align: center; color: var(--text-3); padding: 44px 20px; font-size: 13px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
  .jl-card .talep-actions { margin-top: 4px; }
  .jl-card .p-rol-sel { flex: 1; font-size: 13px; padding: 10px; }

  /* ---------- filtreler: kaydırmalı şerit ---------- */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 3px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex-shrink: 0; padding: 9px 16px; font-size: 12.5px; }
  .filters .date-range { flex-shrink: 0; margin-left: auto !important; }
  .ttabs { overflow-x: auto; scrollbar-width: none; }

  /* ---------- talep kartları ---------- */
  .talep-actions .btn { flex: 1; justify-content: center; min-height: 42px; }
  .talep-date { width: 100%; margin-left: 0; order: 5; }

  /* ---------- buton & input dokunma boyutu / zoom engeli ---------- */
  /* iOS 16px altı input'ta zoom yapar — class selector'leri ezmesi için !important şart */
  input, textarea, select { font-size: 16px !important; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 38px; }
  .vf .control { height: 46px; font-size: 16px; }
  .vf .mt-dd { font-size: 16px; }
  .detay-body .mt-dd { font-size: 16px; }
  .kbd-hint { display: none; }

  /* ---------- modallar: tam ekran sheet ---------- */
  .form-overlay { padding: 0; }
  .fm-modal.vf { height: 100%; height: 100dvh; max-height: none; border: none; border-radius: 0; animation: vfUp .22s ease; }
  .vf .m-head { padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
  .vf .m-body { padding: 16px 16px 24px; overscroll-behavior: contain; }
  .vf .m-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 12px; }
  .vf .m-foot .totals { gap: 14px; }
  .vf .t-item .v { font-size: 13px; }
  .vf .t-grand .v { font-size: 17px; }
  .detay-body { padding-bottom: 74px; }
  .d-sec .det-toolbar h4 { flex: 1; }

  /* ---------- iş detayı: yapışkan aksiyon barı ---------- */
  .d-actbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .dab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text-2); font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .dab .ic { width: 18px; height: 18px; }
  .dab:active { transform: scale(.96); }
  .dab[href^="tel:"] { color: var(--accent); border-color: #fed7c3; background: var(--accent-bg); }
  .dab[href*="wa.me"] { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }

  /* ---------- mt-pop → bottom sheet ---------- */
  .mt-pop-bg { display: block; position: fixed; inset: 0; background: rgba(15,20,32,.45); z-index: 445; animation: fadeIn .18s ease; }
  .mt-pop.mt-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 74dvh; overflow-y: auto; border: none; border-radius: 18px 18px 0 0; padding: 6px 10px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -14px 44px rgba(15,20,32,.28); animation: sheetUp .22s ease; z-index: 455; overscroll-behavior: contain; }
  .mt-pop.mt-sheet .mt-grab { display: block; }
  .mt-sheet .mt-opt { padding: 15px 16px; font-size: 15px; border-radius: 12px; }
  .mt-cal-pop.mt-sheet { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .mt-sheet .mt-cal-head b { font-size: 15px; }
  .mt-sheet .mt-nav { width: 42px; height: 42px; font-size: 17px; }
  .mt-sheet .mt-cal-week span { padding: 8px 0; font-size: 11px; }
  .mt-sheet .mt-day { height: 46px; font-size: 14.5px; border-radius: 10px; }
  .mt-sheet .mt-cal-foot { margin-top: 12px; padding-top: 12px; }
  .mt-sheet .mt-cal-btn { font-size: 14px; padding: 10px 14px; }

  /* ---------- action sheet (openSheet) ---------- */
  .sheet-bg { position: fixed; inset: 0; background: rgba(15,20,32,.45); z-index: 320; animation: fadeIn .18s ease; }
  .sheet-bg.out { animation: fadeOut .18s ease forwards; }
  .mt-sheet-card { position: fixed; left: 0; right: 0; bottom: 0; z-index: 325; background: #fff; border-radius: 18px 18px 0 0; padding: 6px 14px calc(14px + env(safe-area-inset-bottom)); max-height: 82dvh; overflow-y: auto; animation: sheetUp .22s ease; overscroll-behavior: contain; }
  .mt-sheet-card.out { animation: sheetDown .18s ease forwards; }
  .mt-sheet-card .mt-grab { display: block; }
  .sh-title { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-3); padding: 4px 20px 10px; }
  .sh-list { display: flex; flex-direction: column; gap: 2px; }
  .sh-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 12px; border: none; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); border-radius: 12px; cursor: pointer; text-align: left; }
  .sh-item:active { background: #f3f4f6; }
  .sh-item .ic { width: 18px; height: 18px; color: var(--text-3); }
  .sh-item .lb { flex: 1; }
  .sh-item small { color: var(--text-3); font-size: 12px; font-weight: 500; }
  .sh-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .sh-item.sel { color: var(--accent); }
  .sh-item.sel .ic { color: var(--accent); }
  .sh-item .sh-check { margin-left: auto; width: 17px; height: 17px; color: var(--accent); }
  .sh-item.danger { color: #dc2626; }
  .sh-item.danger .ic { color: #dc2626; }
  .sh-cancel { width: 100%; margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #f8f9fb; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
  .sh-cancel:active { background: #eef0f3; }
  body.mt-sheet-open { overflow: hidden; }

  /* ---------- user dropdown ---------- */
  .user-dd { right: -4px; top: calc(100% + 8px); }

  /* ---------- ayarlar ---------- */
  .ayar-card { padding: 18px; }
  .prof-photo-row { gap: 12px; }
}

/* ---------- animasyonlar ---------- */
@keyframes sheetUp { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes sheetDown { to { transform: translateY(100%); opacity: .4; } }
@keyframes vfUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
.mt-grab { width: 38px; height: 4px; border-radius: 3px; background: #d8dbe1; margin: 4px auto 10px; }

/* ---------- net banner / pull-to-refresh / splash ---------- */
#netBanner { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; transform: translateX(-50%); z-index: 400; background: #1c2333; color: #fff; font-size: 12px; font-weight: 600; padding: 9px 18px; border-radius: 20px; display: flex; align-items: center; gap: 7px; box-shadow: 0 10px 26px rgba(15,20,32,.3); white-space: nowrap; }
#netBanner.warn { background: #b45309; }
#updToast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 500; background: #1c2333; color: #fff; font-size: 12.5px; font-weight: 600; padding: 9px 9px 9px 16px; border-radius: 20px; display: flex; align-items: center; gap: 9px; box-shadow: 0 12px 30px rgba(15,20,32,.35); white-space: nowrap; max-width: calc(100vw - 24px); }
#updToast[hidden] { display: none !important; }
#updToast .ic { width: 15px; height: 15px; color: #f59e0b; animation: updSpin 1.4s linear infinite; }
#updToast button { background: var(--accent); color: #fff; border: none; border-radius: 13px; padding: 6px 13px; font: inherit; font-weight: 700; cursor: pointer; flex-shrink: 0; }
@keyframes updSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { #updToast { bottom: calc(74px + env(safe-area-inset-bottom)); font-size: 12px; } }
#netBanner .ic { width: 14px; height: 14px; }
#ptr { position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(15,20,32,.18); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
#ptr.show { opacity: .9; }
#ptr.spin-on { opacity: 1; }
#ptr .spin { width: 17px; height: 17px; border-color: #e5e8ee; border-top-color: var(--accent); margin-right: 0; }
#appSplash { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .3s ease; }
#appSplash.done { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.splash-bar { width: 110px; height: 3px; border-radius: 3px; background: #dde2ea; overflow: hidden; position: relative; }
.splash-bar::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--accent); border-radius: 3px; animation: splashSlide 1s ease-in-out infinite; }
@keyframes splashSlide { to { left: 100%; } }

/* ertelenme popup'ı mobilde bottom-sheet */
@media (max-width: 640px) {
  .form-overlay.sheet-pos { align-items: flex-end; }
  .form-overlay.sheet-pos .fm-modal.vf { height: auto; max-height: 92dvh; border-radius: 18px 18px 0 0; }
}

/* teklif formu mobil: yığılmış kolonlar arası nefes + belirgin ayırıcı */
@media (max-width: 640px) {
  .vf .m-c-left { padding: 16px 16px 24px; border-bottom: none; position: relative; }
  .vf .m-c-left::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #eef0f3; border-top: 1px solid #e5e7eb; }
  .vf .m-c-right { padding: 18px 16px 24px; }
}

/* pano gün navigasyonu + işler tarih aralığı — topbar'da, aynı date-range stili */
.board-day, .topbar .date-range { margin-left: auto; flex-shrink: 0; }
.board-day[hidden], .topbar .date-range[hidden] { display: none !important; }
@media (max-width: 640px) {
  .board-day, .topbar .date-range { order: 3; width: 100%; margin-left: 0; }
  .board-day .chip, .topbar .date-range .chip { padding: 8px 14px; }
  .board-day .mt-dd, .topbar .date-range .mt-dd { flex: 1; }
}

/* personel takip — anlık kim-ne-işte görünümü */
.takip { display: flex; flex-direction: column; gap: 14px; }
.ptak { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.ptak-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.ptak-id { display: flex; align-items: center; gap: 9px; }
.ptak-id b { font-size: 14px; }
.ptak-stat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.pt-cols { display: grid; grid-template-columns: 92px minmax(0,1fr) 118px 124px 82px 92px; gap: 14px; padding: 2px 16px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.pt-row { display: grid; grid-template-columns: 92px minmax(0,1fr) 118px 124px 82px 92px; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background .12s; }
.pt-row:hover { background: #fafbfc; }
.pt-row:last-child { border-bottom: none; }
.pt-no { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pt-no .pill { font-size: 9.5px; padding: 1px 7px; vertical-align: middle; position: relative; top: -1px; }
.pt-mus { font-size: 13px; font-weight: 600; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.pt-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-flag { font-size: 9.5px; padding: 1px 7px; flex-shrink: 0; }
.pt-mus small { flex-basis: 100%; font-weight: 500; color: var(--text-3); font-size: 11px; }
.pt-date { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pt-fee { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pt-empty { padding: 14px 16px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 640px) {
  .pt-cols { display: none; }
  .ptak-head { flex-direction: column; align-items: flex-start; gap: 7px; }
  .pt-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 6px; padding: 11px 14px; }
  .pt-no { grid-column: 1; }
  .pt-row .pill { grid-column: 2; grid-row: 1; justify-self: end; }
  .pt-mus { grid-column: 1; grid-row: 2; }
  .pt-mus small { flex-basis: 100%; }
  .pt-row .tag { display: none; }
  .pt-date { grid-column: 1; grid-row: 3; }
  .pt-fee { grid-column: 2; grid-row: 3; justify-self: end; }
}

/* mobilde genel seçim engeli — sadece modal içinde kopyalama açık */
@media (pointer: coarse) {
  * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .fm-modal, .fm-modal *, input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
}

/* personel takip cevrimici gostergesi */
.pt-dot{width:9px;height:9px;border-radius:50%;background:#cbd5e1;display:inline-block;margin-right:7px;flex-shrink:0}
.pt-dot.on{background:#22c55e;box-shadow:0 0 0 3px #dcfce7}
.pt-on{font-size:.72rem;font-weight:600;color:#94a3b8;margin-right:4px}
.pt-on.yes{color:#16a34a}
