/* Online Ofis – telefon öncelikli tasarım */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #627080;
  --line: #dde3ea;
  --brand: #1f4e79;
  --brand-ink: #ffffff;
  --brand-soft: #e7eff7;
  --ok: #1e7f4f;
  --ok-soft: #e4f4ec;
  --err: #b42318;
  --err-soft: #fdeceb;
  --warn: #b26b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hint { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }

/* Üst çubuk */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--brand); color: var(--brand-ink);
}
.topbar a { color: var(--brand-ink); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.icon-btn:active { background: rgba(255,255,255,.15); }
.nav-link { font-size: 14px; opacity: .92; }
.user-chip { font-size: 14px; background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 420px) { .user-chip { display: none; } }

.wrap { max-width: 860px; margin: 0 auto; padding: 16px 14px 48px; }
.page-title { font-size: 22px; margin: 4px 0 14px; }
.section-title { font-size: 17px; margin: 22px 0 10px; }

/* Bildirimler */
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.flash-info, .flash-warning { background: var(--brand-soft); color: var(--brand); }

/* Kartlar */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.placeholder { border: 2px dashed var(--line); box-shadow: none; text-align: center; }

/* Ana sayfa */
.greeting { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.greeting-hello { font-size: 22px; font-weight: 700; }

.tile-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
.tile-grid-sm { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (min-width: 560px) { .tile-grid-sm { grid-template-columns: 1fr 1fr 1fr; } }

.tile {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 84px; padding: 16px 18px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); font-size: 19px; font-weight: 650;
  border: 2px solid transparent;
  transition: transform .06s ease, border-color .1s ease;
}
.tile:active { transform: scale(.98); border-color: var(--brand); }
.tile-sm { min-height: 64px; font-size: 16px; padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
.tile-icon { font-size: 30px; line-height: 1; width: 40px; text-align: center; flex: none; }
.tile-sm .tile-icon { font-size: 24px; width: auto; }
.tile-icon.sm { font-size: 20px; width: 28px; }
.tile-name { min-width: 0; }

.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-head .page-title { margin: 0 0 4px; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge-write { background: var(--ok-soft); color: var(--ok); }
.badge-read { background: var(--brand-soft); color: var(--brand); }
.badge-none { background: #eef0f3; color: var(--muted); }
.badge-err { background: var(--err-soft); color: var(--err); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600;
  background: #e9edf2; color: var(--ink);
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-secondary { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: transparent; color: var(--err); margin-top: 6px; }
.btn-block { display: flex; width: 100%; margin-top: 8px; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Formlar */
.form label, label.form { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, label.form input {
  display: block; width: 100%; margin-top: 6px;
  min-height: 48px; padding: 10px 12px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.form textarea { min-height: 72px; resize: vertical; line-height: 1.4; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
label.check input { width: 22px; height: 22px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-height: 48px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }

/* Listeler */
.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink);
}
.list-row.inactive { opacity: .55; }
.list-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.list-row.depth-1 { margin-left: 22px; }
.list-row.depth-2 { margin-left: 44px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.avatar-lg { width: 64px; height: 64px; font-size: 26px; margin-bottom: 8px; }

/* Yetki matrisi */
.matrix { display: flex; flex-direction: column; margin-bottom: 8px; }
.matrix-legend { margin-bottom: 10px; }
.matrix-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.matrix-row.is-top .matrix-name { font-weight: 650; }
.matrix-row.depth-1 { padding-left: 22px; }
.matrix-row.depth-2 { padding-left: 44px; }
.matrix-name { min-width: 0; }
.lvl-select { min-height: 42px; padding: 6px 8px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 48%; }
.home-ctrl { display: flex; align-items: center; gap: 12px; }
.home-ctrl label.check { margin: 0; }
.sort-input { width: 72px; min-height: 42px; padding: 6px 8px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.sticky-save { position: sticky; bottom: 10px; box-shadow: 0 4px 14px rgba(31, 78, 121, .35); }

/* Tablo */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }

/* Giriş ekranı */
.login-body { min-height: 100vh; background: var(--bg) linear-gradient(180deg, var(--brand) 0, var(--brand) 220px, var(--bg) 220px) no-repeat; }
.login-box { max-width: 460px; margin: 18px auto; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 18px; }
.login-box.wide { max-width: 560px; }
.login-head { text-align: center; margin-bottom: 14px; }
.login-logo { font-size: 22px; font-weight: 750; }
.login-sub { color: var(--muted); }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-tile {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600;
}
.name-tile:active { border-color: var(--brand); background: var(--brand-soft); }
.admin-login { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-login summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.admin-login form { margin-top: 12px; }

.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 6px 0 18px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); }
.pin-dots span.on { background: var(--brand); }
.pin-dots.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto 14px; }
.key {
  height: 68px; border: 0; border-radius: 16px; cursor: pointer;
  background: #eef2f6; color: var(--ink); font: inherit; font-size: 26px; font-weight: 600;
  touch-action: manipulation;
}
.key:active { background: var(--brand); color: #fff; }
.key-muted { background: transparent; color: var(--muted); font-size: 22px; }

.langswitch { display: flex; justify-content: center; gap: 4px; margin-top: 16px; font-size: 14px; }
.greeting .langswitch { margin: 0; }
.langswitch a { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.langswitch a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }

form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.field-err { display: block; color: var(--err); font-size: 13px; font-weight: 500; margin-top: 4px; }
.form select { appearance: auto; }
.topbar .linklike { font-size: 14px; }
.greeting { flex-wrap: wrap; }
.greeting .langswitch a { padding: 5px 9px; }

/* ---------- Mal Kabul ---------- */
.btn-big { min-height: 56px; font-size: 18px; }
.chips-field { border: 0; padding: 0; margin: 0 0 16px; }
.chips-field legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.temp-field { margin-bottom: 16px; }
.temp-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.stepper { display: flex; align-items: stretch; gap: 10px; }
.step-btn {
  width: 64px; min-height: 60px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--brand-soft); color: var(--brand); font-size: 30px; font-weight: 700; touch-action: manipulation;
}
.step-btn:active { background: var(--brand); color: #fff; }
.stepper input {
  flex: 1; min-width: 0; text-align: center; font-size: 28px !important; font-weight: 700 !important;
  margin: 0 !important; min-height: 60px !important; border-radius: 14px !important;
}
.stepper.warn input { border-color: var(--err) !important; color: var(--err); background: var(--err-soft) !important; }

.upload-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-btns .btn { flex: 1; min-width: 140px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; background: #eef2f6; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; padding: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; cursor: pointer; }
.progress { text-align: center; margin-top: 8px; }

.rec-row { align-items: center; }
.rec-date { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.file-card { padding: 12px; }
.file-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.file-actions { display: flex; gap: 6px; }
.pdf-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
[hidden] { display: none !important; }
.upload-btns input[type=file] { display: none !important; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 560px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col label { margin-bottom: 0 !important; }
.read-status { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 500; }
.read-status.ok { background: var(--ok-soft); color: var(--ok); }

.action-row { display: flex; gap: 10px; margin: 6px 0 4px; }
.action-row .btn { flex: 1; }
.action-row .btn-secondary { flex: 0 0 auto; }
.two-col-always { grid-template-columns: 1fr 1fr !important; }
.quick-range { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.stats div { flex: 1; min-width: 110px; background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.stats strong { font-size: 20px; }
.stats span { font-size: 13px; color: var(--muted); }
.stats .bad { background: var(--err-soft); color: var(--err); }
.export-row { display: flex; gap: 8px; flex-wrap: wrap; }
.export-row .btn { flex: 1; min-width: 100px; }
.t-bad { color: var(--err); font-weight: 700; }

/* ---------- Isı Kaydı ---------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.prod-grid form { margin: 0; }
.prod-btn {
  width: 100%; min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow); touch-action: manipulation;
}
.prod-btn:active { border-color: var(--brand); transform: scale(.98); }
.prod-btn.done { border-color: var(--ok); background: var(--ok-soft); }
.prod-icon { font-size: 40px; line-height: 1; }
.prod-name { font-size: 19px; font-weight: 700; }
.prod-sub { font-size: 13px; color: var(--muted); }
.prod-btn.done .prod-sub { color: var(--ok); font-weight: 600; }
.temps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dual-col { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: #fff4ec; }
.dual-col.cold { background: #eaf3fb; }
.dual-label { font-weight: 650; font-size: 14px; }
.dual-input {
  width: 100%; min-height: 64px; margin: 0 !important; text-align: center; font: inherit; font-size: 32px !important; font-weight: 800 !important;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); padding: 4px 26px 4px 4px !important;
}
.dual-input.bad { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.dual-unit { position: absolute; right: 22px; top: 62px; font-weight: 700; color: var(--muted); pointer-events: none; }
.dual-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dual-btns .step-btn { width: auto; min-height: 54px; }
.photo-pick { margin-top: 22px !important; min-height: 48px; }
.mini-edit { margin-top: 10px; }
.mini-edit summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
.reading-row { flex-wrap: wrap; }
.reading-vals { display: flex; gap: 14px; }
.rv b { font-size: 20px; }
.small { font-size: 13px; }

.dual-label { min-height: 2.7em; line-height: 1.3; display: flex; align-items: flex-start; gap: 4px; }
.dual-val { position: relative; }
.dual-unit { top: 50% !important; transform: translateY(-50%); right: 12px !important; font-size: 15px; }
.dual-input { padding-right: 34px !important; }
.dual-unit { right: 16px !important; }

/* ---------- Takvim ---------- */
.tile { position: relative; }
.tile-badge { position: absolute; top: 10px; right: 12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--err); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cal { padding: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 0; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); font-weight: 600; font-size: 15px; background: #f4f6f8; }
.cal-day.out { opacity: .35; }
.cal-day.today { outline: 2px solid var(--brand); }
.cal-day.sel { background: var(--brand); color: #fff; }
.cal-day .dot { font-style: normal; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; background: var(--brand); color: #fff; text-align: center; margin-top: 2px; padding: 0 3px; }
.cal-day.sel .dot { background: #fff; color: var(--brand); }
.cal-day .dot.ok { background: var(--ok); }
.cal-day .dot.bad { background: var(--err); }
.task-row.done { opacity: .6; }
.task-row.late { border-left: 4px solid var(--err); }
.done-card { background: var(--ok-soft); }
.file-btn { margin-bottom: 4px !important; }
.center-check { justify-content: center; margin-top: 8px; }
/* ---------- Numune ---------- */
.sample-line { border-bottom: 1px solid var(--line); padding: 10px 0 14px; }
.sample-line:last-of-type { border-bottom: 0; }
.sl-head { font-size: 16px; }
.sl-sub { margin: 2px 0 8px; }
.sl-date { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sl-date input { display: block; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-top: 4px; }
.era-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.era-box { min-width: 0; min-height: 46px; text-align: center; font: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px; }
.era-box:focus { outline: 2px solid var(--brand); }
.result-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ok-chip input:checked + span { background: var(--ok) !important; border-color: var(--ok) !important; }
.bad-chip input:checked + span { background: var(--err) !important; border-color: var(--err) !important; }
.inline-form .grow { flex: 1; max-width: none; }
.streak-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-title { font-size: 15px; margin: 0 0 8px; }
.ok-hint { color: var(--ok); }
.legend { margin-top: -6px; }
.inline-form { flex-wrap: wrap; }
.inline-form .grow, .inline-form select { min-width: 0; flex: 1 1 200px; }
.inline-form .btn { flex: 0 0 auto; }
.btn-block.btn-big { margin-bottom: 12px; }
.sl-date input:not([type=date]) { display: block; width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-top: 4px; }
.date-change { margin-top: 8px; }
.date-change input { flex: 1 1 160px; min-height: 46px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* ---------- Arşiv ---------- */
.search-form { display: flex; flex-direction: column; gap: 8px; }
.search-form input { min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; }
.search-form label input { margin-top: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.person-chip.ok { background: var(--ok-soft); color: var(--ok); }
.person-chip.missing { background: var(--err-soft); color: var(--err); }
.preview-box { overflow-x: auto; }
.preview-box .docx-wrapper { background: #e9edf2 !important; padding: 10px !important; }
.sheet table { border-collapse: collapse; font-size: 13px; }
.sheet td { border: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; }
.copy-row { display: flex; gap: 6px; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #f7f9fb; }
.public-card { background: var(--brand-soft); }
.preview-box section.docx { padding: 4px !important; min-height: 0 !important; box-shadow: none !important; }

/* ---------- Tedarikçiler ---------- */
.flag-cc { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 6px;
  border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .05em; flex: none; }
.flag-big { min-width: 56px; height: 48px; font-size: 1.15rem; }
.chev { color: var(--muted); font-size: 1.4rem; margin-left: auto; flex: none; }
.list-main .small { font-size: .82rem; }
.facts dd { overflow-wrap: anywhere; min-width: 0; }
.facts dd a { white-space: normal; }
.danger-zone { border: 1.5px solid var(--err-soft); margin-top: 16px; }
.danger-zone .check { margin-bottom: 8px; }
.call-row { gap: 10px; }
.call-row .list-main { color: inherit; text-decoration: none; min-width: 0; }
.btn-call { background: var(--ok); color: #fff; border: 0; white-space: nowrap; flex: none; }
.btn-call:hover { filter: brightness(1.05); }
.item-kind { font-size: 1.4rem; width: 32px; text-align: center; flex: none; }
.list-main .small { color: var(--ink); }

/* ---------- Raporlar ---------- */
.report-row .tile-icon { font-size: 1.8rem; width: 40px; text-align: center; flex: none; }
.section-actions { margin-bottom: 10px; }
.report-ev { display: flex; flex-direction: column; gap: 6px; }
.report-ev-head { color: var(--ink); text-decoration: none; }
.report-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .92rem; }
.report-file { font-size: .9rem; overflow-wrap: anywhere; }
.report-line .badge { white-space: nowrap; flex: none; }
.login-alt { margin-top: 18px; }
.user-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tile-add { border: 2px dashed var(--brand-soft, #cfe0f1); }
.hint-strong { color: var(--brand); font-weight: 600; margin: 0 0 6px; }
.status-card { border-left: 4px solid var(--ok); }
.status-warn { border-left-color: var(--warn, #d98a00); }
.status-list { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }

/* ---------- PDF okuma modu ---------- */
.reader-body main.wrap { max-width: 1120px; }
.reader-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  background: var(--bg); padding: 8px 0; }
.reader-title { overflow-wrap: anywhere; }
.reader-tools { display: flex; align-items: center; gap: 6px; }
.reader-pages { display: block; overflow-x: auto; }
.reader-page { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); width: fit-content; min-width: 40px; margin: 0 auto 10px; }
.reader-page canvas { display: block; }
.pdf-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.file-head { flex-wrap: wrap; gap: 6px; }
.list-row-wrap { flex-wrap: wrap; }
.report-file { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.export-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 4px 0; border-bottom: 1px solid var(--line); }
.export-line .btn { flex: none; min-width: 0; }

/* ---------- Takvim: yapılacaklar ve siparişler ---------- */
:root { --order: #c2610c; --order-soft: #fdebd8; }
.btn-order { background: var(--order); color: #fff; border: 0; }
.btn-order:hover { filter: brightness(1.05); }
.badge-order { background: var(--order-soft); color: var(--order); }
.order-row { border-left: 4px solid var(--order); }
.order-row.done { opacity: .6; border-left-color: var(--ok); }
.cal-day .dots { display: flex; gap: 2px; }
.cal-day .dot.order { background: var(--order); }
.cal-day.sel .dot.order { background: #fff; color: var(--order); }
.dot-legend { display: inline-block; width: 10px; height: 10px; border-radius: 5px; background: var(--brand); vertical-align: middle; }
.dot-legend.order { background: var(--order); }
.more-link { display: inline-block; margin: 4px 0 12px; font-weight: 600; }
.todo-card { display: flex; flex-direction: column; gap: 6px; }
.todo-add { display: flex; gap: 6px; margin-bottom: 4px; }
.todo-add input[name=text] { flex: 1; min-width: 0; }
.todo-add input { height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.todo-add input[type=date] { width: 128px; flex: none; padding: 0 6px; }
.todo-add .btn { flex: none; width: 44px; padding: 0; font-size: 20px; }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.todo-row:last-of-type { border-bottom: 0; }
.todo-row form { margin: 0; }
.todo-text { flex: 1; overflow-wrap: anywhere; }
.todo-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--brand); background: #fff; flex: none; cursor: pointer; font-weight: 700; color: #fff; }
.todo-check.checked { background: var(--ok); border-color: var(--ok); }
.todo-del { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.todo-row.done .todo-text { text-decoration: line-through; color: var(--muted); }
.todo-done summary { cursor: pointer; padding: 4px 0; }
.agenda-items { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.agenda-row.sel { outline: 2px solid var(--brand); }
.agenda-row.late { border-left: 4px solid var(--err); }
.cal-head { scroll-margin-top: 70px; }
#day, #cal { scroll-margin-top: 70px; }
.todo-line { gap: 10px; }
.todo-line form { margin: 0; }

/* ---------- Duvar ekranı ---------- */
.wall-body { background: #0f2236; color: #eef3f8; min-height: 100vh; margin: 0; font-size: clamp(16px, 2vw, 40px); }
.wall-head { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: #142c45; }
.wall-head strong { font-size: 1.2em; }
.wall-back { color: #9fb6cc; text-decoration: none; font-size: 1.2em; }
.wall-date { margin-left: auto; color: #c9d7e4; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding: 20px 24px; }
.wall-col h2 { font-size: 1.1em; margin: 6px 0 12px; color: #fff; }
.wall-item { display: flex; gap: 14px; align-items: baseline; background: #1b3654; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; border-left: 6px solid #4f8cc9; }
.wall-item.order { border-left-color: #e08a35; }
.wall-item.now { background: #24507a; }
.wall-item.late { border-left-color: #e25c5c; }
.wall-day { min-width: 6.5em; color: #b9cde0; font-weight: 600; }
.wall-text { flex: 1; }
.wall-text small { display: block; color: #b9cde0; font-size: .75em; }
.wall-empty { color: #8aa3ba; }
.wall-foot { padding: 8px 24px 16px; color: #6f8aa3; font-size: .7em; }
.cal-extra { margin: 8px 0 0; font-size: .95rem; }
.howto { margin: 8px 0 12px; line-height: 1.45; }

/* Çok sayfalı irsaliye: fotoğraftan sonra "Sayfa N ekle / Tamam" */
.page-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0; padding: .7rem; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid var(--line); }
.page-bar .page-count { flex: 1 0 100%; font-weight: 600; }
.page-bar .btn { flex: 1 1 10rem; }
.thumb { position: relative; }
.thumb .thumb-no { position: absolute; left: 4px; bottom: 4px; min-width: 1.4rem; padding: 0 .3rem; border-radius: 9px;
  background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; text-align: center; line-height: 1.4rem; }
.page-bar .btn-secondary { background: var(--card); border: 1px solid var(--line); }

/* Kalan gün renkleri: 1 gün (veya geçmiş) kırmızı, 5 gün sarı */
.list-row.due-red { background: #fde3e1; border-color: #f3b4ae; }
.list-row.due-yellow { background: #fff4c7; border-color: #f0dc8a; }
.wall-item.due-red { background: #7a2323; }
.wall-item.due-yellow { background: #6b5a12; }

/* TV: 4 bölüm (görevler · siparişler · yapılacaklar · ekran notu) */
.wall-body { display: flex; flex-direction: column; height: 100vh; }
.wall-grid.wall-4 { flex: 1; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.wall-4 .wall-col { background: #132a42; border-radius: 16px; padding: 12px 18px; overflow: hidden; min-height: 0; }
.wall-item.todo { border-left-color: #9b7be0; }
.wall-item.note { border-left-color: #e6c84f; background: #2a3b22; font-size: 1.05em; }
@media (max-width: 700px) {
  .wall-body { height: auto; }
  .wall-grid.wall-4 { grid-template-columns: 1fr; grid-template-rows: none; }
}
.date-opt { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.date-opt input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.agenda-row .rec-date { text-decoration: none; color: inherit; }
.agenda-item { color: var(--ink); text-decoration: none; padding: 3px 0; border-bottom: 1px dashed transparent; }
.agenda-item:hover, .agenda-item:active { color: var(--brand); border-bottom-color: var(--brand); }
.agenda-item.done { color: var(--muted); text-decoration: line-through; }
