/* =========================================================
   MUTFELLA — arayüz stilleri
   ========================================================= */
:root {
  --bg: #f5f3ee;
  --panel: #ffffff;
  --ink: #1d2420;
  --muted: #69726c;
  --line: #e3e0d8;
  --line-2: #efece6;
  --green: #171717;
  --green-2: #3a3a3a;
  --green-soft: #f1efec;
  --accent: #c8102e;
  --accent-soft: #fbe4e7;
  --ok: #1f7a4d;
  --ok-soft: #e4f2ea;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber: #a15c07;
  --amber-soft: #fff4e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 14px rgba(20, 30, 25, .04);
  --side: 236px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
small, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Yerleşim ---------- */
.topbar { display: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--green); color: #e6e6e6;
  display: flex; flex-direction: column; z-index: 40; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; flex: none; display: block; }
.side-brand { flex-direction: column; gap: 6px; padding: 22px 20px 16px; text-align: center; font-size: 15px; }
.side-brand .brand-logo { width: 116px; height: 116px; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.sidebar { background: radial-gradient(120% 60% at 50% 0%, #262626 0%, #141414 60%); border-right: 1px solid #000; }
.sidebar nav { display: flex; flex-direction: column; padding: 4px 10px; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #d6d6d6; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: rgba(255, 255, 255, .13); color: #fff; }
.sidebar nav a.active .ic svg { stroke: #ff4d63; }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a8a8a; padding: 16px 12px 6px; }
.side-foot { margin-top: auto; padding: 16px 22px; font-size: 13px; color: #9a9a9a; }
.side-foot a { color: #d6d6d6; }
.main { margin-left: var(--side); padding: 26px 30px 60px; max-width: 1500px; }
.main.solo { margin: 0 auto; max-width: 420px; padding-top: 9vh; }
.nav-backdrop { display: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Kartlar ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .lbl { font-size: 12.5px; color: var(--muted); }
.stat .val { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: 13px; font-weight: 500; }
.stat.accent { border-top: 3px solid var(--accent); }
.stat.green { border-top: 3px solid var(--green); }
.stat.red .val { color: var(--red); }

/* ---------- Butonlar & formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--green-2); text-decoration: none; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: #a50d26; }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c5c0; }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; }

label { display: block; font-size: 13px; font-weight: 600; color: #3b443f; margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d6d2c8; border-radius: 8px; background: #fff; color: var(--ink);
  font: 14.5px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(200, 16, 46, .14); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters > div { min-width: 140px; }
.filters .grow { flex: 1; min-width: 200px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--green); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.alert.ok { background: var(--ok-soft); border-color: #bcdcc9; color: #155a38; }
.alert.err { background: var(--red-soft); border-color: #f3c3bd; color: var(--red); }
.alert.warn { background: var(--amber-soft); border-color: #f2d9a8; color: var(--amber); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--muted); }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.accent { background: var(--accent-soft); color: #a50d26; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: #e5edff; color: #1d4ed8; }
.teslim-form { display: inline-flex !important; gap: 4px; align-items: center; }
.teslim-form input[type=number], .teslim-form input[type=text] { width: 72px; height: 30px; padding: 0 6px; text-align: center; }
.siparis-tbl td:first-child { min-width: 150px; }
.siparis-tbl td:nth-child(4) { max-width: 180px; }
.siparis-tbl .row-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 230px; }
.share-box { background: #fff; border: 2px dashed var(--accent); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.share-box pre { background: #faf8f4; border-radius: 8px; padding: 12px; white-space: pre-wrap; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 10px 0; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf9f6; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover td { background: #fbfaf7; }
.tbl tfoot td { font-weight: 700; background: #f7f5f0; border-top: 2px solid var(--line); }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl .pos { color: var(--ok); }
.tbl .neg { color: var(--red); }
.tbl .empty { text-align: center; color: var(--muted); padding: 28px; }
.tbl tr.pasif td { color: #9aa29d; }
.tbl.compact td, .tbl.compact th { padding: 5px 6px; font-size: 12.5px; }
.tbl.matrix td.num { min-width: 30px; }
.tbl.matrix th.we, .tbl.matrix td.we { background: #f6f1e9; }
.tbl.matrix td.zero { color: #c9c5bb; }
.tbl.matrix .sticky { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 160px; }
.tbl.matrix thead .sticky, .tbl.matrix tfoot .sticky { background: #faf9f6; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.row-actions form { display: inline; }

/* ---------- Yemek girişi ---------- */
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.day-nav input[type=date], .day-nav input[type=month] { width: 170px; min-width: 0; }
.giris-tbl input[type=number]::-webkit-outer-spin-button, .giris-tbl input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.giris-tbl input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.day-title { font-size: 15px; font-weight: 600; }
.giris-tbl input[type=number] { width: 86px; text-align: center; font-weight: 600; font-size: 16px; height: 38px; }
.giris-tbl input.not { min-width: 160px; }
.giris-tbl td.firma strong { display: block; }
.giris-tbl td.firma small { display: block; }
.giris-tbl tr.dolu td { background: #fbfdfb; }
.giris-tbl tr.degisti td { background: #fff8ef; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 38px; border: 1px solid #d6d2c8; background: #faf9f6; border-radius: 8px; font-size: 18px; cursor: pointer; color: var(--green); }
.stepper button:active { background: var(--green-soft); }
.meta-line { font-size: 11.5px; color: var(--muted); }
.sticky-save { position: sticky; bottom: 0; background: rgba(245, 243, 238, .96); padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; }
.totals { display: flex; gap: 18px; font-weight: 600; flex-wrap: wrap; }
.totals span b { font-size: 18px; color: var(--accent); }
.lock-note { background: var(--amber-soft); border: 1px solid #f2d9a8; color: var(--amber); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

/* ---------- Menü ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 170px; display: flex; flex-direction: column; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.day.we { background: #fbf9f5; }
.day-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.day-h b { font-size: 14px; }
.day ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.day li { padding: 3px 0; font-size: 13.5px; line-height: 1.35; }
.day li small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #a19a8c; }
.day .kcal { font-size: 12px; color: var(--muted); margin-top: 6px; }
.day .edit { margin-top: 8px; font-size: 13px; }
.menu-today li { padding: 6px 0; border-bottom: 1px dashed var(--line-2); display: flex; justify-content: space-between; gap: 10px; }
.menu-today li:last-child { border: 0; }
.menu-today ul { list-style: none; padding: 0; margin: 0; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--muted); padding: 6px; text-transform: uppercase; }
.cal td { border: 1px solid var(--line); vertical-align: top; padding: 6px 7px; height: 110px; background: #fff; font-size: 12.5px; }
.cal td.out { background: #f3f1ec; }
.cal td .n { font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; }
.cal td ul { margin: 4px 0 0; padding: 0; list-style: none; }
.cal td li { line-height: 1.3; }
.menu-row { display: grid; grid-template-columns: 190px 1fr 110px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }

/* ---------- Grafik ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar .b { width: 100%; max-width: 34px; background: var(--green-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar.we .b { background: #b5b5b5; }
.bar.today .b { background: var(--accent); }
.bar .v { font-size: 11px; color: var(--muted); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.bar .d { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* ---------- Çoklu seçim ---------- */
.multi { position: relative; }
.multi summary { list-style: none; height: 38px; border: 1px solid #d6d2c8; border-radius: 8px; padding: 0 30px 0 11px; display: flex; align-items: center; background: #fff; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 220px; }
.multi summary { position: relative; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: "▾"; position: absolute; right: 11px; color: var(--muted); }
.multi .pop { position: absolute; z-index: 30; top: 42px; left: 0; width: 320px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 10px; }
.multi .pop label { font-weight: 500; display: flex; gap: 8px; align-items: center; padding: 4px 2px; margin: 0; cursor: pointer; }
.multi .pop input[type=search] { margin-bottom: 8px; }

/* ---------- Giriş ---------- */
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; box-shadow: var(--shadow); }
.login-brand { text-align: center; margin: -8px 0 6px; }
.login-brand img { width: 168px; height: 168px; border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.musteri-link { display: block; text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.musteri-link b { color: var(--accent); }
.login-sub { text-align: center; color: var(--muted); margin: 6px 0 20px; }
body.login { background: radial-gradient(90% 70% at 50% 0%, #2a2a2a 0%, #0f0f0f 70%); min-height: 100vh; }

.print-head { display: none; }
.only-print { display: none; }
.empty-state { text-align: center; padding: 30px 10px; color: var(--muted); }

/* ---------- Mobil ---------- */
@media screen and (max-width: 1100px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-side, .g3 { grid-template-columns: 1fr; }
}
@media screen and (max-width: 860px) {
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--green); color: #fff; padding: 8px 12px; }
  .topbar .brand { font-size: 16px; }
  .topbar .brand-logo { width: 32px; height: 32px; }
  .nav-toggle { background: none; border: 0; padding: 6px; cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; display: block; }
  .topbar-user { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .topbar-user .who { display: none; }
  .topbar-user .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
  .topbar-user .btn:hover { background: rgba(255, 255, 255, .1); }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .nav-open .sidebar { transform: none; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .main { margin-left: 0; padding: 16px 16px 50px; }
  .main.solo { padding-top: 40px; }
  .g2 { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  h1 { font-size: 19px; }
  .stat .val { font-size: 20px; }

  /* giriş tablosu kart görünümü */
  .giris-tbl thead { display: none; }
  .giris-tbl, .giris-tbl tbody, .giris-tbl tr, .giris-tbl td { display: block; width: 100%; }
  .giris-tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; background: #fff; }
  .giris-tbl td { border: 0; padding: 4px 0; }
  .giris-tbl td[data-l] { display: flex; justify-content: space-between; align-items: center; }
  .giris-tbl td[data-l]::before { content: attr(data-l); font-size: 13px; color: var(--muted); font-weight: 600; }
  .giris-tbl input.not { min-width: 0; width: 62%; }
  .giris-tbl tbody tr:hover td { background: transparent; }
  .multi .pop { width: 92vw; }
  .filters > div { flex: 1 1 140px; }
  .filters > div:has(.day-nav) { flex-basis: 100%; }
  .day-nav input[type=date], .day-nav input[type=month] { flex: 1; width: auto; }
  .sticky-save { flex-wrap: nowrap; padding: 8px 0; }
  .sticky-save .btn.lg { height: 42px; padding: 0 18px; }
  .totals { gap: 10px; font-size: 13px; }
  .totals span b { font-size: 16px; }
  .totals .muted { display: none; }
  .giris-tbl td:last-child:empty, .giris-tbl td:last-child .meta-line:empty { display: none; }
  .page-head .actions .btn { height: 34px; }
  /* iPhone'da yazı kutusuna dokununca yakınlaşmayı önle */
  input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], input[type=email], input[type=tel], input[type=search], select, textarea { font-size: 16px; height: 42px; }
  textarea { height: auto; }
  .btn.sm { height: 36px; padding: 0 12px; }
  .linkbtn { padding: 7px 12px; border: 1px solid #f1c5c0; border-radius: 8px; background: #fff; }
  .row-actions { flex-wrap: wrap; justify-content: flex-start; }
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs a { padding: 8px 10px; }
  .filters { position: relative; }
  .multi { position: static; }
  .multi summary { min-width: 0; }
  .multi .pop label { padding: 9px 2px; font-size: 15px; }
  .multi .pop input[type=checkbox] { width: 20px; height: 20px; }
  .multi .pop { left: 12px; right: 12px; width: auto; top: auto; margin-top: 4px; }

  /* Liste tabloları telefonda kart görünümü */
  .tbl.kart thead { display: none; }
  .tbl.kart, .tbl.kart tbody, .tbl.kart tfoot, .tbl.kart tr { display: block; width: 100%; }
  .tbl.kart tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.kart tbody tr:hover td { background: transparent; }
  .tbl.kart td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .tbl.kart td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; flex: none; max-width: 45%; padding-top: 1px; }
  .tbl.kart td .v { min-width: 0; overflow-wrap: anywhere; }
  .tbl.kart td[data-l=""]::before { display: none; }
  .tbl.kart td[data-l=""] { justify-content: flex-start; }
  .tbl.kart td.k-baslik { display: block; text-align: left; font-size: 15px; font-weight: 600; padding-bottom: 6px; }
  .tbl.kart td.k-baslik::before { display: none; }
  .tbl.kart td.k-baslik strong { font-weight: inherit; }
  .tbl.kart td.k-gizle { display: none; }
  .tbl.kart td.bos, .tbl.kart td.empty::before { display: none; }
  .tbl.kart td.empty { display: block; text-align: center; }
  .tbl.kart tfoot tr { background: #f7f5f0; border-top: 2px solid var(--line); }
  .tbl.kart tfoot td { background: transparent; border: 0; }
  .tbl.kart .row-actions { padding-top: 6px; }
  .table-wrap:has(> .tbl.kart) { overflow: visible; }

  /* Menü düzenleme satırları */
  .teslim-form input[type=number], .teslim-form input[type=text] { height: 36px; width: 80px; }
  .siparis-tbl .row-actions { min-width: 0; justify-content: flex-start; }
  .siparis-tbl td:nth-child(4) { max-width: none; }
  .menu-row { grid-template-columns: 1fr 88px 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; margin-bottom: 10px; }
  .menu-row .yemek { grid-column: 1 / -1; order: -1; }
  .menu-row .btn { height: 42px; }
  .bars { gap: 3px; height: 150px; }
  .bar { overflow: hidden; }
  .bar .v { font-size: 9px; }
  .bar .d { font-size: 9px; white-space: normal; text-align: center; line-height: 1.15; }
}

/* ---------- Yazdırma ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11.5px; }
  .no-print, .sidebar, .topbar, .btn, .filters, .tabs, .actions, .sticky-save, form.no-print, .alert, .nav-backdrop, .row-actions { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; }
  .print-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 12px; font-size: 13px; }
  .print-head strong { font-size: 16px; display: flex; align-items: center; gap: 8px; }
  .print-head img { width: 42px; height: 42px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .only-print { display: block; }
  .card, .stat { box-shadow: none; border: 0; padding: 0; margin-bottom: 10px; }
  .page-head { margin-bottom: 8px; }
  .tbl th { background: #eee !important; color: #000; border: 1px solid #999; padding: 4px 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl td { border: 1px solid #bbb; padding: 4px 6px; }
  .tbl tfoot td { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl.matrix td, .tbl.matrix th { padding: 2px 3px; font-size: 9.5px; }
  .tbl.matrix .sticky { position: static; min-width: 0; }
  .table-wrap { overflow: visible; }
  .week { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .day { border: 1px solid #999; padding: 6px; min-height: 0; break-inside: avoid; }
  .day .edit { display: none; }
  .cal td { height: auto; min-height: 70px; font-size: 10px; }
  a { color: #000; text-decoration: none; }
  body.landscape .main { zoom: 1; }
}
.print-landscape { display: none; }
