/* =====================================================================
   Yurt Toplantı ve Görev Takip Sistemi — Arayüz stilleri
   Mobil öncelikli, sade ve profesyonel.
   ===================================================================== */

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;

  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;

  --green: #15803d;
  --green-light: #dcfce7;
  --amber: #b45309;
  --amber-light: #fef3c7;
  --red: #b91c1c;
  --red-light: #fee2e2;
  --violet: #6d28d9;
  --violet-light: #ede9fe;
  --slate: #475569;
  --slate-light: #e2e8f0;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --header-h: 58px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.25; font-weight: 650; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }

/* ---------- Yerleşim ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 64px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-head .sub { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-main { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
}

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--text); font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--primary), #3b82f6);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.brand-text { display: none; }
@media (min-width: 560px) { .brand-text { display: inline; } }

.topbar-spacer { flex: 1; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--slate); cursor: pointer; font-size: 16px;
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.badge-dot {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; cursor: pointer;
}
.user-chip:hover { background: var(--surface-2); text-decoration: none; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}
.user-chip-name { display: none; }
@media (min-width: 700px) { .user-chip-name { display: inline; } }

/* ---------- Gezinme ---------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; gap: 2px; min-height: 46px; align-items: stretch;
}
.nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 0 13px; white-space: nowrap;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.nav a .n { font-size: 11px; background: var(--slate-light); color: var(--slate); border-radius: 999px; padding: 1px 6px; }
.nav a.active .n { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- Kart ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-body { padding: 16px; }
.card-body.tight { padding: 12px 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- İstatistik kutuları ---------- */
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.stat .label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -0.5px; }
.stat .hint { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.stat.accent-green .value { color: var(--green); }
.stat.accent-amber .value { color: var(--amber); }
.stat.accent-red .value { color: var(--red); }
.stat.accent-blue .value { color: var(--primary); }

/* İlerleme çubuğu */
.progress { height: 8px; background: var(--slate-light); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.progress.warn > span { background: var(--amber); }
.progress.bad > span { background: var(--red); }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-pending    { background: var(--slate-light); color: var(--slate); }
.badge-progress   { background: var(--primary-light); color: var(--primary-dark); }
.badge-done       { background: var(--green-light); color: var(--green); }
.badge-incomplete { background: var(--amber-light); color: var(--amber); }
.badge-overdue    { background: var(--red-light); color: var(--red); }
.badge-cancelled  { background: #f1f5f9; color: var(--text-soft); }
.badge-approval   { background: var(--violet-light); color: var(--violet); }
.badge-plain      { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-plain::before { display: none; }

.prio { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.prio-low     { background: #f1f5f9; color: var(--text-muted); }
.prio-normal  { background: #e0f2fe; color: #0369a1; }
.prio-high    { background: var(--amber-light); color: var(--amber); }
.prio-urgent  { background: var(--red-light); color: var(--red); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--text-muted);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 550; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #166534; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.field .help { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.field .err { font-size: 12.5px; color: var(--red); margin-top: 4px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 15px; /* 16px altı iOS'ta yakınlaştırma yapar; 15px güvenli sınır */
  font-family: inherit;
  line-height: 1.4;
}
@media (max-width: 480px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="date"],
  input[type="tel"], input[type="search"], select, textarea { font-size: 16px; }
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
input.has-error, select.has-error, textarea.has-error { border-color: var(--red); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--primary); }

.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
}
.filters .field { margin: 0; min-width: 130px; flex: 1 1 140px; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px;
}
table.data th {
  text-align: right; padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { text-align: right; }
html[dir="ltr"] table.data th, table.data th { text-align: left; }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: center; white-space: nowrap; }
table.data .strong { font-weight: 600; }

/* ---------- Görev listesi ---------- */
.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  box-shadow: var(--shadow); border-right: 4px solid var(--border-strong);
  display: block; color: inherit;
}
.task-item:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.task-item.s-tamamlandi { border-right-color: var(--green); }
.task-item.s-gecikti    { border-right-color: var(--red); }
.task-item.s-eksik      { border-right-color: var(--amber); }
.task-item.s-devam_ediyor { border-right-color: var(--primary); }
.task-item.s-beklemede  { border-right-color: var(--border-strong); }
.task-item.s-iptal      { border-right-color: #cbd5e1; opacity: .7; }
.task-item.superseded   { opacity: .62; background: var(--surface-2); border-right-color: var(--border-strong); }
.task-item.superseded .task-title { font-weight: 550; }

.task-title { font-weight: 600; font-size: 15px; margin: 0 0 6px; color: var(--text); }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.task-meta .sep { color: var(--border-strong); }
.task-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.task-due-late { color: var(--red); font-weight: 600; }
.task-due-soon { color: var(--amber); font-weight: 600; }

/* ---------- Zaman çizelgesi (geçmiş) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; right: 7px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding: 0 26px 16px 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; right: 3px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline li.hl::before { border-color: var(--primary); background: var(--primary); }
.timeline .t-action { font-size: 14px; font-weight: 550; }
.timeline .t-meta { font-size: 12.5px; color: var(--text-muted); }
.timeline .t-note {
  font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; margin-top: 6px; white-space: pre-line;
}

/* ---------- Bildirimler ---------- */
.notif { display: flex; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: none; }
.notif.unread { background: #f0f7ff; }
.notif-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: var(--primary-light); color: var(--primary-dark);
}
.notif-icon.warn { background: var(--amber-light); color: var(--amber); }
.notif-icon.bad { background: var(--red-light); color: var(--red); }
.notif-icon.ok { background: var(--green-light); color: var(--green); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 14px; }
.notif-text { font-size: 13.5px; color: var(--text-muted); white-space: pre-line; margin-top: 2px; }
.notif-time { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

/* ---------- Uyarı kutuları ---------- */
.alert {
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px;
  margin-bottom: 16px; border: 1px solid transparent; display: flex; gap: 9px; align-items: flex-start;
}
.alert-success { background: var(--green-light); border-color: #bbf7d0; color: #14532d; }
.alert-error   { background: var(--red-light); border-color: #fecaca; color: #7f1d1d; }
.alert-info    { background: var(--primary-light); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warn    { background: var(--amber-light); border-color: #fde68a; color: #78350f; }
.alert strong { font-weight: 650; }

.empty {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty .icon { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.empty p { margin: 0 0 4px; font-size: 14px; }

/* ---------- Rapor metni ---------- */
.report-text {
  white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}

/* ---------- Fotoğraf galerisi ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.gallery img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gallery .file-tile {
  height: 110px; display: grid; place-items: center; font-size: 12px; color: var(--text-muted); text-align: center; padding: 8px;
}
.attach-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.attach-row:last-child { border-bottom: none; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 9px 14px; font-size: 14px; color: var(--text-muted); font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 650; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.hr { height: 1px; background: var(--border); border: none; margin: 16px 0; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Katlanır bölüm */
details.box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
details.box > summary {
  padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "▾"; color: var(--text-muted); font-size: 13px; }
details.box[open] > summary { border-bottom: 1px solid var(--border); }
details.box[open] > summary::after { content: "▴"; }
details.box .details-body { padding: 16px; }

/* ---------- Giriş sayfası ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(160deg, #eff6ff 0%, #f1f5f9 60%);
}
.login-card { width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .mark {
  width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px;
  background: linear-gradient(140deg, var(--primary), #3b82f6); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.login-logo h1 { font-size: 19px; margin-bottom: 3px; }
.login-logo p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Hızlı görev ekleme çubuğu ---------- */
.quick-add { border: 1px solid var(--primary-light); background: #f8fbff; }
.quick-add .card-head { background: var(--primary-light); border-bottom-color: #bfdbfe; border-radius: var(--radius) var(--radius) 0 0; }
.quick-add .card-head h3 { color: var(--primary-dark); }

/* ---------- Yazdırma ---------- */
@media print {
  .topbar, .nav, .no-print, .btn, .page-head-actions { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  table.data { min-width: 0; font-size: 11px; }
  a { color: #000; text-decoration: none; }
}

/* =====================================================================
   BASİT GÖRÜNÜM — az sekme, büyük rakamlar, net vurgular
   ===================================================================== */

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
}
.hero-week { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.hero-line { font-size: 21px; line-height: 1.45; font-weight: 500; }
.hero-line strong { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; vertical-align: -1px; }
.hero-line strong.ok { color: var(--green); }
.hero-progress { max-width: 460px; margin: 16px auto 6px; height: 12px; }
.hero-rate { font-size: 13px; color: var(--text-muted); }

@media (min-width: 720px) {
  .hero { padding: 30px 24px; }
  .hero-line { font-size: 24px; }
  .hero-line strong { font-size: 36px; }
}

/* Büyük, tıklanabilir durum kartları */
.bigcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  color: inherit;
  text-align: center;
  transition: box-shadow .15s, transform .1s;
}
.bigcard:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.bigcard:active { transform: translateY(1px); }
.bigcard-num { font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; }
.bigcard-label { font-size: 15px; font-weight: 600; margin-top: 8px; }
.bigcard-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.bigcard.is-violet { border-left-color: var(--violet); }
.bigcard.is-violet .bigcard-num { color: var(--violet); }
.bigcard.is-red { border-left-color: var(--red); }
.bigcard.is-red .bigcard-num { color: var(--red); }
.bigcard.is-amber { border-left-color: var(--amber); }
.bigcard.is-amber .bigcard-num { color: var(--amber); }
.bigcard.is-quiet { border-left-color: var(--border); }
.bigcard.is-quiet .bigcard-num { color: var(--text-soft); }

/* Ana işlem butonları — mobilde alt alta, geniş ekranda yan yana */
.action-row { display: flex; flex-direction: column; gap: 10px; }
.action-row .btn { width: 100%; justify-content: center; }
@media (min-width: 720px) {
  .action-row { flex-direction: row; }
  .action-row .btn { flex: 1; }
}

/* Basit görünümde işler sayfasındaki büyük filtre düğmeleri */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 14.5px; font-weight: 550;
}
.filter-chips a:hover { background: var(--surface-2); text-decoration: none; }
.filter-chips a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-chips a .n {
  font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--slate-light); color: var(--slate);
}
.filter-chips a.active .n { background: rgba(255,255,255,.25); color: #fff; }

/* Görünüm değiştirme satırı */
.view-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 24px;
}
.view-switch .vs-text { font-size: 13.5px; color: var(--text-muted); }

/* =====================================================================
   Toplantı kararları — eklenebilir satırlar
   ===================================================================== */

.rows-block {
  border: 1px solid var(--primary-light);
  background: #f8fbff;
  border-radius: var(--radius);
  padding: 14px;
}
.rows-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.rows-head .help { margin-top: 2px; }

.karar-row {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 34px 12px 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.karar-row:last-child { margin-bottom: 0; }

.karar-no {
  position: absolute; top: 11px; left: 12px;
  font-size: 12px; font-weight: 700; color: var(--text-soft);
}
.karar-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 4px;
}

/* Sorumlu / son tarih / öncelik — dar ekranda alt alta */
.karar-meta { display: grid; gap: 10px; grid-template-columns: 1fr; }

.karar-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); cursor: pointer; font-size: 13px; line-height: 1;
}
.karar-remove:hover { background: var(--red-light); border-color: #fecaca; color: var(--red); }

@media (min-width: 560px) {
  /* Üç küçük alan yan yana; karar metni her zaman tam genişlik */
  .karar-meta { grid-template-columns: minmax(0, 1fr) 150px 128px; }
}

/* Kararsız/boş satır uyarısı */
.karar-row.is-empty { border-style: dashed; }
