/* ==========================================================================
   ThermoX Saha Takip — tasarım sistemi
   Renkler, yazı tipleri ve ölçüler "ThermoX Saha Takip" tasarımından alınmıştır.
   ========================================================================== */

:root {
  --bg: #FAF6F1;
  --surface: #FFFFFF;
  --surface-alt: #F1EBE2;
  --surface-hover: #FDFBF8;
  --border: #E6DFD3;
  --text: #241F1A;
  --text-muted: #7C7468;

  --success: #2F8F5B;
  --success-soft: #E2F3EA;
  --success-line: #B7DEC4;
  --danger: #D0442E;
  --danger-soft: #FBE4DF;
  --danger-line: #F0BDB0;
  --warning: #B7790E;
  --warning-soft: #FBEFD6;

  --accent: #DD6B20;
  --accent-soft: #FAEAE0;   /* accent %14 + beyaz */
  --accent-dark: #B1561A;   /* accent %80 + siyah */

  --avatar-a: #E9E1D3;
  --avatar-b: #F1EBE2;
  --avatar-text: #5B5346;

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #B9531A; text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; }
svg.icon { flex-shrink: 0; display: block; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.font-display { font-family: var(--font-display); }
.muted { color: var(--text-muted); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent-dark); }
.small { font-size: 12px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.sm { gap: 10px; }
.stack.xs { gap: 6px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Form ---------- */
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { font-size: 14px; padding: 12px 14px; min-height: 86px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: #A89F92; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C7468' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.input.md, .select.md { padding: 12px 14px; font-size: 14px; }
.input.sm, .select.sm { padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.select.sm { padding-right: 34px; background-position: right 11px center; }
.input.on-bg, .select.on-bg, .textarea.on-bg { background-color: var(--bg); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.error-text { font-size: 12px; color: var(--danger); font-weight: 500; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }

input[type="range"] { width: 100%; accent-color: var(--accent); }

/* iOS Safari 16px altındaki alanlara odaklanınca sayfayı yakınlaştırır. */
@supports (-webkit-touch-callout: none) {
  .input, .select, .textarea { font-size: 16px !important; }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s, background 0.15s, transform 0.1s;
}
.btn:hover { color: var(--text); filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; }
.btn-dark { background: var(--text); border-color: var(--text); color: #FFFFFF; }
.btn-dark:hover { color: #FFFFFF; }
.btn-soft { background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--accent-dark); }
.btn-soft:hover { color: var(--accent-dark); }
.btn-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.btn-success:hover { color: var(--success); }
.btn-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px; font-size: 15px; }
.btn-md { padding: 14px; font-size: 15px; }
.btn-sm { padding: 6px 12px; border-radius: 8px; font-size: 12px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); }
.icon-btn.lg { width: 38px; height: 38px; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.plain { border-color: transparent; background: transparent; color: var(--text-muted); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge.dark { background: var(--text); color: #FFFFFF; }
.badge.lg { padding: 4px 12px; font-size: 12px; }
.badge.md { padding: 4px 10px; font-size: 12.5px; }
.badge.xs { padding: 2px 8px; font-size: 10.5px; }
.code-chip {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text);
}

/* ---------- Avatar ---------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--avatar-a);
  color: var(--avatar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar.alt { background: var(--avatar-b); }
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.xs { width: 30px; height: 30px; font-size: 12px; }
.avatar.accent { background: var(--accent); color: #FFFFFF; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.card.pad { padding: 14px; }
.card.pad-lg { padding: 16px; }
.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 6px;
}
.stat-value small { font-size: 15px; color: var(--text-muted); font-weight: 500; }

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--success);
  background: var(--success-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.alert > .icon { color: var(--success); }
.alert.error { border-color: var(--danger); background: var(--danger-soft); }
.alert.error > .icon { color: var(--danger); }
.alert.warning { border-color: #E9C98A; background: var(--warning-soft); }
.alert.warning > .icon { color: var(--warning); }
.alert .alert-text { flex: 1; min-width: 0; }
.alert .alert-close { border: none; background: transparent; padding: 2px; color: var(--text-muted); display: flex; }
.alert a { font-weight: 600; }

.info-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-alt);
  font-size: 12.5px;
  color: var(--text-muted);
}
.info-strip strong { color: var(--text); }

.empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.empty .icon { margin: 0 auto 10px; color: #B8AFA2; }

.progress { height: 6px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.progress.success > span { background: var(--success); }

/* ==========================================================================
   SAHA UYGULAMASI (mobil)
   ========================================================================== */
body.field-body { background: var(--bg); }
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 540px) {
  body.field-body { background: var(--surface-alt); }
  .app { box-shadow: 0 0 0 1px var(--border), 0 24px 60px rgba(36, 31, 26, 0.10); }
}

/* Giriş */
.login {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: calc(40px + var(--safe-top)) 32px calc(40px + var(--safe-bottom));
  overflow-y: auto;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.login-brand img { width: 200px; height: auto; display: block; }
.login-tag { font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; text-align: center; }
.login-help { text-align: center; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* Üst bilgi */
.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(20px + var(--safe-top)) 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.home-logo { width: 88px; height: auto; display: block; margin-bottom: 10px; }
.hello { font-size: 12.5px; color: var(--text-muted); }
.hello-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.hello-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }
.hello-meta a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.hello-meta a:hover { color: var(--text); }

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(16px + var(--safe-top)) 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.app-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; flex: 1; min-width: 0; }
.app-sub {
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.app-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 24px;
}
.app-body.list { gap: 10px; padding-top: 12px; padding-bottom: 20px; }
.app-footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Hızlı işlem kutuları */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: box-shadow 0.15s, transform 0.1s;
}
.tile:hover { color: var(--text); box-shadow: 0 6px 18px rgba(36, 31, 26, 0.06); }
.tile:active { transform: scale(0.985); }
.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-icon.alt { background: var(--surface-alt); color: var(--text); }
.tile-label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Liste satırı (yoklama, ekip) */
.row-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; }
.row-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.row-meta a { color: var(--text-muted); }
.pill-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.pill-btn.in { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.pill-btn.out { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }

/* Seçim düğmeleri (aciliyet, performans) — radio tabanlı */
.choices { display: flex; gap: 8px; }
.choice { flex: 1; position: relative; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.choice.success input:checked + span { background: var(--success); border-color: var(--success); }
.choice.warning input:checked + span { background: var(--warning); border-color: var(--warning); }
.choice.danger input:checked + span { background: var(--danger); border-color: var(--danger); }
.choices.sm { gap: 6px; }
.choices.sm .choice span { padding: 7px 4px; border-radius: 9px; font-size: 11px; }

.seg-tabs { display: flex; gap: 8px; }
.seg-tabs a {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.seg-tabs a.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* Gün sonu raporu */
.assess {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.assess-name { font-size: 13.5px; font-weight: 600; }
.assess-role { font-size: 11.5px; color: var(--text-muted); }
.progress-value { font-size: 13px; font-weight: 700; color: var(--accent-dark); }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.photo.is-removed img { opacity: 0.3; }
.photo.is-removed::after {
  content: 'Silinecek';
  position: absolute;
  inset: auto 0 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
}
.upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.upload:hover { border-color: var(--accent); color: var(--accent-dark); }
.upload input { display: none; }

/* Harcama */
.total-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 14px;
  background: var(--text);
}
.total-card .t-label { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.04em; }
.total-card .t-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #FFFFFF; }
.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.list-row .lr-title { font-size: 13.5px; font-weight: 600; }
.list-row .lr-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.list-row .lr-amount { font-size: 14px; font-weight: 700; }

/* Demirbaş */
.tabs-bar { padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.count-strip {
  display: flex;
  padding: 14px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.count-strip > div { flex: 1; text-align: center; }
.count-strip > div + div { border-left: 1px solid var(--border); }
.count-strip .cs-value { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.count-strip .cs-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }
.inv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s;
}
.inv[data-state="eksik"] { border-color: var(--warning); }
.inv[data-state="yok"], .inv[data-state="arizali"] { border-color: var(--danger); }
.inv-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inv-name { font-size: 13.5px; font-weight: 600; }
.inv-meta { font-size: 11.5px; color: var(--text-muted); }
.inv-count { flex: 1; display: flex; align-items: center; gap: 8px; }
.inv-count label { font-size: 11.5px; color: var(--text-muted); }
.inv-count input {
  width: 72px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  outline: none;
}
.toggle-btn { position: relative; }
.toggle-btn input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-btn > span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.toggle-btn > input:checked + span { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.toggle-btn .on { display: none; }
.toggle-btn input:checked + span .on { display: inline; }
.toggle-btn input:checked + span .off { display: none; }

details.disclosure { border: 1px dashed var(--border); border-radius: 14px; background: transparent; }
details.disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure[open] > summary { color: var(--text); }
details.disclosure > .disclosure-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Bildirimler */
.notice {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.notice-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-icon.success { background: var(--success-soft); color: var(--success); }
.notice-icon.danger { background: var(--danger-soft); color: var(--danger); }
.notice-icon.warning { background: var(--warning-soft); color: var(--warning); }
.notice-title { font-size: 13.5px; font-weight: 600; }
.notice-body { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notice-time { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.unread-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; margin-top: 4px; }

/* Proje seçimi */
.project-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
}
.project-choice:hover { border-color: var(--accent); }
.project-choice.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Uygulamayı yükle */
.install-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
}

/* ==========================================================================
   YÖNETİM PANELİ
   ========================================================================== */
body.panel-body { background: var(--bg); }
/* Kenar çubuğu rengi, içerik ekrandan uzun olduğunda da sol sütunu doldurur. */
.shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--text) 240px, var(--bg) 240px); }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--text);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }
.sidebar-brand { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 24px; }
.sidebar-logo { background: #FFFFFF; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; }
.sidebar-logo img { width: 100%; height: auto; display: block; }
.sidebar-tag { font-size: 11px; color: rgba(255, 255, 255, 0.5); padding: 0 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.nav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}
.nav-group {
  margin: 16px 12px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.sidebar-user {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-spacer { height: 20px; flex-shrink: 0; }
.sidebar-user .su-name { font-size: 12.5px; font-weight: 600; color: #FFFFFF; }
.sidebar-user .su-role { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.sidebar-user .su-actions { margin-left: auto; display: flex; gap: 2px; }
.sidebar-user .su-actions a,
.sidebar-user .su-actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sidebar-user .su-actions a:hover,
.sidebar-user .su-actions button:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.topbar-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.topbar-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions form { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
.backdrop { display: none; }

.content { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 28px 32px 40px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stat .stat-label { font-size: 12px; }
.stat .stat-value { font-size: 28px; margin-top: 8px; }
.stat .stat-value small { font-size: 16px; }
.stat .stat-value.sm { font-size: 24px; }
.stat .stat-foot { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}
.box-head .box-sub { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.box-head a { font-size: 12.5px; font-weight: 600; }
.box-body { padding: 18px; }
.box-body.flush { padding: 0; }
.box-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-hover); }

/* position: relative — tablodaki gizli etiketler (.sr-only) kaydırma kutusunun dışına taşıp telefonda sayfayı genişletmesin. */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--surface-alt);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.table td { padding: 12px; font-size: 13px; border-top: 1px solid var(--border); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions-inner { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--surface-hover); }
.table .strong a { color: var(--text); }
.table .strong a:hover { color: var(--accent-dark); }
.table .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }

.cols-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.filter-pill:hover { color: var(--text); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.filter-pill .count { opacity: 0.75; margin-left: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.activity { display: flex; flex-direction: column; gap: 14px; }
.activity-item { display: flex; gap: 10px; }
.activity-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.activity-text { font-size: 12.5px; line-height: 1.4; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.period-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.proj-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.proj-name { font-size: 15px; font-weight: 700; }
.proj-name a { color: var(--text); }
.proj-name a:hover { color: var(--accent-dark); }
.proj-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-stats.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-stat { padding: 12px; border-radius: 12px; background: var(--surface-alt); min-width: 0; }
.mini-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mini-value { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 3px; }
.notes-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.notes-text { font-size: 13px; line-height: 1.5; white-space: pre-line; }

.page-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.page-tabs a {
  padding: 12px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.page-tabs a:hover { color: var(--text); }
.page-tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.page-tabs .tab-count { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 500; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }

.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery a:hover img { transform: scale(1.03); }

.absent-list { display: flex; flex-direction: column; }
.absent-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 13px; }
.absent-item + .absent-item { border-top: 1px solid var(--border); }
.absent-item .strong { font-size: 13px; }
.absent-group { padding-bottom: 6px; }
.absent-group + .absent-group { border-top: 1px solid var(--border); }
.absent-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.absent-group-head .muted { font-weight: 600; text-transform: none; letter-spacing: 0; }
.absent-group .absent-item + .absent-item { border-top: none; }

.list-link { display: block; padding: 14px 18px; color: var(--text); }
.list-link + .list-link { border-top: 1px solid var(--border); }
.list-link:hover { background: var(--surface-hover); color: var(--text); }
.ll-title { font-size: 13.5px; font-weight: 600; }
.ll-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ll-text {
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: end; }
.member-form .member-check { padding-bottom: 12px; white-space: nowrap; }
.kv.narrow { grid-template-columns: 96px minmax(0, 1fr); }
.app-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.login-form { display: flex; flex-direction: column; gap: 28px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.pagination .pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination .pages a, .pagination .pages span {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.pagination .pages span.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pagination .pages span.disabled { color: #C9C0B4; }

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .shell { background: var(--bg); }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    height: 100%;
    padding-top: calc(24px + var(--safe-top));
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }
  .backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(36, 31, 26, 0.45); }
  body.nav-open .backdrop { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: calc(14px + var(--safe-top)) 16px 14px; flex-wrap: wrap; }
  .topbar-title { font-size: 17px; }
  .topbar-sub { display: none; }
  .content { padding: 18px 16px 32px; gap: 16px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .member-form { grid-template-columns: minmax(0, 1fr); }
  .member-form .member-check { padding-bottom: 0; }
  .kv { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .stats, .stats.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; border-radius: 14px; }
  .stat .stat-value { font-size: 24px; }
  .stat .stat-value.sm { font-size: 19px; }
  .stat .stat-label { font-size: 10.5px; }
  .topbar-actions { width: 100%; justify-content: stretch; }
  .topbar-actions > *, .topbar-actions form { flex: 1; }
  .topbar-actions .select { width: 100%; }
  .mini-stats, .mini-stats.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .proj-card { padding: 16px; }
  .detail-title { font-size: 19px; }
  .box-head { padding: 14px 16px; }
  .box-body { padding: 16px; }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  /* Dar ekranda sütunlar sıkışmasın: tablo yatay kaydırılır. */
  .table-wrap > .table { min-width: 620px; }
}

/* ---------- Yazdırma ---------- */
@media print {
  .sidebar, .topbar-actions, .menu-btn, .backdrop, .no-print, .alert { display: none !important; }
  .shell { display: block; }
  .topbar { position: static; border: none; padding: 0 0 12px; }
  .content { padding: 0; }
  body { background: #FFFFFF; }
  .box, .stat, .proj-card { break-inside: avoid; }
}

/* ==========================================================================
   Çevrimdışı kullanım, anlık bildirimler, fiş fotoğrafı
   ========================================================================== */

/* Bağlantı / bekleyen kayıt çubuğu (saha uygulaması, en üstte) */
.net-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 16px 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--warning-soft);
  color: var(--warning);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.net-bar[data-tone="offline"] { background: var(--text); color: #FFFFFF; border-bottom-color: var(--text); }
.net-bar[data-tone="error"] { background: var(--danger-soft); color: var(--danger); }
.net-bar[data-tone="done"] { background: var(--success-soft); color: var(--success); }
.net-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.net-bar[data-tone="pending"] .net-dot { animation: net-pulse 1.2s ease-in-out infinite; }
.net-text { flex: 1; min-width: 0; }
.net-action {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  padding: 2px 0;
}
body.net-visible .home-header { padding-top: 20px; }
body.net-visible .app-header { padding-top: 16px; }
body.net-visible .login { padding-top: 40px; }
@keyframes net-pulse { 50% { opacity: 0.3; } }

.list-row.is-pending, .row-card.is-pending { border-style: dashed; }

/* Alttan açılan panel (bekleyen kayıtlar) */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(36, 31, 26, 0.45); }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.sheet-foot { padding: 14px 20px calc(14px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--border); }

/* Fiş fotoğrafı */
.receipt-picker { display: flex; align-items: center; gap: 10px; }
.receipt-preview { width: 56px; height: 56px; flex-shrink: 0; aspect-ratio: auto; }
.upload.sm { padding: 12px; font-size: 12.5px; }
.receipt-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  flex-shrink: 0;
  display: block;
}
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.table .receipt-thumb { width: 34px; height: 34px; }

/* Bildirimler */
.notice.is-link { color: var(--text); transition: border-color 0.15s; }
.notice.is-link:hover { color: var(--text); border-color: var(--accent); }
.notice-row .notice-icon { width: 34px; height: 34px; }
.push-card .row-title { font-size: 14px; }

/* Yönetim paneli bildirim zili */
.bell-btn { position: relative; flex: 0 0 auto; }
.bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}
.bell-mobile { display: none; }
@media (max-width: 960px) {
  .bell-desktop { display: none; }
  .bell-mobile { display: inline-flex; }
  .topbar-lead { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .topbar-actions > .bell-btn { flex: 0 0 auto; }
}

/* ---------- Yoklama: elle giriş / çıkış saati ---------- */
.time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.time-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.time-input { font-size: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; min-height: 50px; }
.time-chips { display: flex; gap: 6px; }
.time-chip {
  flex: 1;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.time-chip:active { background: var(--surface-alt); }
.row-card .icon-btn.plain { flex-shrink: 0; }

/* Panel: proje yoklama sekmesinde saat düzeltme */
.table tr.edit-row > td { background: var(--surface-hover); border-top: 0; padding-top: 4px; padding-bottom: 14px; }
.time-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.time-edit-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.time-edit-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.time-edit-field .input { width: auto; font-variant-numeric: tabular-nums; }
.time-edit + .hint { margin-top: 8px; }

/* Faturalar */
.table .receipt-thumb.lg { width: 46px; height: 46px; border-radius: 10px; }
.invoice-table td { vertical-align: middle; }
