/* =====================================================================
   MYVET Uşak — Yönetim paneli tasarım sistemi
   ===================================================================== */

:root {
  --brand:      #0F8B7B;
  --brand-600:  #0C7367;
  --brand-700:  #095A50;
  --brand-50:   #E9F5F2;
  --brand-100:  #CFE8E2;

  --accent:     #FF7A3D;
  --accent-50:  #FFF1E8;

  --ink:        #10221E;
  --ink-2:      #33504A;
  --muted:      #778F89;
  --line:       #E4EDEA;

  --bg:         #F2F7F5;
  --panel:      #FFFFFF;
  --side:       #0B1D19;
  --side-2:     #112A24;

  --ok:         #2FA36B;
  --ok-bg:      #E6F6EE;
  --warn:       #D98324;
  --warn-bg:    #FDF3E3;
  --danger:     #D9463E;
  --danger-bg:  #FCECEB;
  --info:       #2C6FD6;
  --info-bg:    #EAF1FD;

  --r-xs: 8px;
  --r-sm: 11px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(16,34,30,.06);
  --sh-sm: 0 4px 14px rgba(16,34,30,.07);
  --sh:    0 14px 38px rgba(16,34,30,.11);
  --sh-lg: 0 28px 64px rgba(16,34,30,.18);

  --ff: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --side-w: 268px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* , *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5 { margin: 0 0 .5em; color: var(--ink); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; border-radius: 4px; }

/* ---------- Yan menü ------------------------------------------------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  background: var(--side);
  color: rgba(255,255,255,.62);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s var(--ease);
}
.side-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.35rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.side-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
  color: #fff; font-size: 1.1rem;
}
.side-head b { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -.02em; }
.side-head small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.4); }

.side-nav { flex: 1; overflow-y: auto; padding: 1rem .8rem 2rem; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }

.side-label {
  padding: 1.1rem .8rem .5rem;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.side-nav a {
  display: flex; align-items: center; gap: .8rem;
  padding: .68rem .8rem;
  margin-bottom: 2px;
  border-radius: 11px;
  color: rgba(255,255,255,.66);
  font-size: .92rem; font-weight: 600;
  transition: all .18s var(--ease);
}
.side-nav a i { width: 20px; text-align: center; font-size: .95rem; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.is-active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(15,139,123,.35); }
.side-nav a.is-active i { opacity: 1; }
.side-badge {
  margin-left: auto;
  min-width: 22px; padding: 0 .4rem;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800;
  text-align: center; line-height: 20px;
}
.side-nav a.is-active .side-badge { background: rgba(255,255,255,.24); }

.side-foot { padding: 1rem .8rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.side-foot a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 11px;
               color: rgba(255,255,255,.6); font-size: .9rem; font-weight: 600; }
.side-foot a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ---------- Ana alan ------------------------------------------------- */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 1rem;
  min-height: 70px;
  padding: .8rem clamp(16px, 3vw, 32px);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar > div:not(.topbar-right) { flex: 1 1 auto; min-width: 0; }
.topbar h1 { margin: 0; font-size: 1.22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink-2);
  font-size: .95rem; cursor: pointer;
  transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: .64rem; font-weight: 800; line-height: 17px; text-align: center;
}

.user-chip {
  display: flex; align-items: center; gap: .65rem;
  padding: .35rem .8rem .35rem .35rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff;
}
.user-chip img, .user-chip .av {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 800; font-size: .85rem;
}
.user-chip b { font-size: .88rem; color: var(--ink); display: block; line-height: 1.2; }
.user-chip small { font-size: .74rem; color: var(--muted); }

.side-toggle { display: none; }

.content { flex: 1; padding: clamp(20px, 3vw, 32px); }
.content-narrow { max-width: 940px; }

/* ---------- Kartlar -------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.card-head h3 i { color: var(--brand); font-size: .95em; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-body { padding: 1.4rem; }
.card-foot { padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---------- İstatistik kutuları --------------------------------------- */
.stat {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.stat-ico {
  width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 17px;
  background: var(--brand-50); color: var(--brand);
  font-size: 1.25rem;
}
.stat-ico.o { background: var(--accent-50); color: var(--accent); }
.stat-ico.b { background: var(--info-bg);   color: var(--info); }
.stat-ico.g { background: var(--ok-bg);     color: var(--ok); }
.stat-ico.r { background: var(--danger-bg); color: var(--danger); }
.stat b { display: block; font-size: 1.75rem; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.stat span { font-size: .88rem; color: var(--muted); }
.stat a { display: block; }

/* ---------- Tablolar -------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tb th, table.tb td { padding: .85rem 1rem; text-align: left; vertical-align: middle; }
table.tb thead th {
  background: #FAFCFB;
  border-bottom: 1px solid var(--line);
  font-size: .75rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
table.tb tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
table.tb tbody tr:last-child { border-bottom: 0; }
table.tb tbody tr:hover { background: #FAFCFB; }
table.tb td.strong { font-weight: 700; color: var(--ink); }
table.tb .thumb {
  width: 62px; height: 46px; border-radius: 9px; object-fit: cover;
  background: var(--bg); border: 1px solid var(--line);
}
table.tb .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
table.tb .nowrap { white-space: nowrap; }
table.tb .actions { display: flex; gap: .35rem; justify-content: flex-end; }
.col-narrow { width: 1%; white-space: nowrap; }

/* ---------- Rozetler -------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .68rem;
  border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 800;
  white-space: nowrap;
}
.badge i { font-size: .82em; }
.badge.gray   { background: #EEF3F1; color: #66807A; }
.badge.green  { background: var(--ok-bg);     color: var(--ok); }
.badge.orange { background: var(--warn-bg);   color: var(--warn); }
.badge.red    { background: var(--danger-bg); color: var(--danger); }
.badge.blue   { background: var(--info-bg);   color: var(--info); }
.badge.teal   { background: var(--brand-50);  color: var(--brand-700); }

/* ---------- Butonlar -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--brand); color: #fff;
  font-family: inherit; font-size: .9rem; font-weight: 700; line-height: 1.3;
  cursor: pointer; white-space: nowrap;
  transition: all .18s var(--ease);
}
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.sec    { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.sec:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.dark   { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #EE6425; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #BC352E; }
.btn.sm { padding: .48rem .9rem; font-size: .83rem; border-radius: 10px; }
.btn.block { width: 100%; }

.act {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2);
  font-size: .82rem; cursor: pointer;
  transition: all .18s var(--ease);
}
.act:hover  { border-color: var(--brand); color: var(--brand); }
.act.del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.act.on  { background: var(--ok-bg);     border-color: transparent; color: var(--ok); }
.act.off { background: #EEF3F1; border-color: transparent; color: #91A5A0; }

/* ---------- Formlar --------------------------------------------------- */
.fgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.f { display: flex; flex-direction: column; gap: .4rem; }
.f-12 { grid-column: span 12; } .f-9 { grid-column: span 9; } .f-8 { grid-column: span 8; }
.f-6  { grid-column: span 6; }  .f-4 { grid-column: span 4; } .f-3 { grid-column: span 3; }

label.lb { font-size: .85rem; font-weight: 700; color: var(--ink); }
label.lb .req { color: var(--danger); }
.hint { font-size: .8rem; color: var(--muted); }

.inp, .sel, .txa {
  width: 100%;
  padding: .74rem .95rem;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff;
  font-family: inherit; font-size: .92rem; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.inp::placeholder, .txa::placeholder { color: #A8BCB6; }
.inp:focus, .sel:focus, .txa:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15,139,123,.11);
}
.txa { min-height: 110px; resize: vertical; }
.inp[type="color"] { padding: .25rem; height: 44px; cursor: pointer; }
.inp[readonly] { background: #F7FAF9; color: var(--muted); }

.swt { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; }
.swt input { position: absolute; opacity: 0; width: 0; height: 0; }
.swt .track {
  width: 48px; height: 27px; flex-shrink: 0;
  border-radius: var(--r-pill);
  background: #D3E0DC;
  position: relative;
  transition: background .22s var(--ease);
}
.swt .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-xs);
  transition: transform .22s var(--ease);
}
.swt input:checked + .track { background: var(--brand); }
.swt input:checked + .track::after { transform: translateX(21px); }
.swt input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(15,139,123,.2); }
.swt .txt { font-size: .88rem; font-weight: 600; }

/* Görsel alanı */
.img-field { display: flex; gap: 1rem; align-items: flex-start; }
.img-prev {
  width: 132px; height: 100px; flex-shrink: 0;
  border: 1.5px dashed var(--line); border-radius: 12px;
  background: #FAFCFB center/cover no-repeat;
  display: grid; place-items: center;
  color: #B6C7C2; font-size: 1.3rem;
  overflow: hidden;
}
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-inputs { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
input[type="file"].inp { padding: .55rem .7rem; font-size: .85rem; }

/* İkon seçici */
.icon-pick { display: flex; gap: .6rem; align-items: center; }
.icon-pick .prev {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--brand-50); color: var(--brand); font-size: 1.15rem;
}
.icon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: .4rem; margin-top: .7rem;
  max-height: 190px; overflow-y: auto;
  padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: #FAFCFB;
}
.icon-grid button {
  height: 42px; border: 1px solid transparent; border-radius: 10px;
  background: #fff; color: var(--ink-2); font-size: 1rem; cursor: pointer;
  transition: all .15s var(--ease);
}
.icon-grid button:hover { border-color: var(--brand); color: var(--brand); }
.icon-grid button.on { background: var(--brand); color: #fff; }

/* Basit düzenleyici */
.ed-bar {
  display: flex; flex-wrap: wrap; gap: .25rem;
  padding: .5rem;
  border: 1.5px solid var(--line); border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: #FAFCFB;
}
.ed-bar button {
  min-width: 34px; height: 32px; padding: 0 .5rem;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: all .15s var(--ease);
}
.ed-bar button:hover { background: #fff; border-color: var(--line); color: var(--brand); }
.ed-bar .sep { width: 1px; background: var(--line); margin: 4px 3px; }
.ed-area {
  min-height: 240px; max-height: 560px; overflow-y: auto;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: 0 0 11px 11px;
  background: #fff; font-size: .95rem; line-height: 1.75;
}
.ed-area:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,139,123,.11); }
.ed-area h2 { font-size: 1.3rem; } .ed-area h3 { font-size: 1.12rem; }
.ed-area ul, .ed-area ol { padding-left: 1.4rem; }
.ed-area blockquote { margin: 1em 0; padding: .7rem 1rem; background: var(--brand-50);
                      border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; }
.ed-area img { max-width: 100%; border-radius: 10px; }
.ed-html { display: none; width: 100%; min-height: 240px; padding: 1rem;
           border: 1.5px solid var(--line); border-radius: 0 0 11px 11px;
           font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

/* ---------- Uyarılar --------------------------------------------------- */
.msg {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1.2rem;
  border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  margin-bottom: 1.2rem;
}
.msg i { font-size: 1rem; margin-top: .1rem; }
.msg.success { background: var(--ok-bg);     color: #1E7A4C; }
.msg.error   { background: var(--danger-bg); color: #B3372F; }
.msg.info    { background: var(--info-bg);   color: #1F55A8; }
.msg.warning { background: var(--warn-bg);   color: #9A6212; }
.msg ul { margin: .35rem 0 0; padding-left: 1.1rem; font-weight: 500; }

/* ---------- Araç çubuğu / filtre --------------------------------------- */
.toolbar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.toolbar .inp, .toolbar .sel {
  width: auto;
  flex: 0 1 auto;
  min-width: 170px;
  max-width: 260px;
}
.toolbar .spacer { margin-left: auto; }

@media (max-width: 640px) {
  .toolbar .inp, .toolbar .sel { max-width: none; flex: 1 1 100%; }
}

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs a {
  padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; color: var(--ink-2);
  font-size: .86rem; font-weight: 700;
}
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Sayfalama --------------------------------------------------- */
.pager { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; padding: 1.2rem; }
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: grid; place-items: center; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-2); font-size: .88rem; font-weight: 700;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .off { opacity: .4; pointer-events: none; }

/* ---------- Boş durum ---------------------------------------------------- */
.empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); }
.empty i { display: block; font-size: 2.4rem; color: var(--brand-100); margin-bottom: .9rem; }
.empty h4 { margin-bottom: .3rem; }

/* ---------- Giriş sayfası ------------------------------------------------ */
.login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
  background: linear-gradient(140deg, #0B1D19 0%, #0F8B7B 100%);
}
.login-card {
  width: 100%; max-width: 430px;
  padding: clamp(28px, 5vw, 42px);
  background: #fff; border-radius: 26px;
  box-shadow: 0 34px 80px rgba(0,0,0,.3);
}
.login-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.8rem; }
.login-logo span {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(140deg, var(--brand), var(--brand-700)); color: #fff; font-size: 1.35rem;
}
.login-logo b { display: block; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.login-logo small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .13em;
                    text-transform: uppercase; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 2.9rem; }
.pw-toggle {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--bg); color: var(--brand); }

/* ---------- Yan panel / detay -------------------------------------------- */
.kv { display: grid; gap: .7rem; }
.kv > div { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start;
            padding-bottom: .7rem; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv span { color: var(--muted); flex-shrink: 0; }
.kv b { color: var(--ink); text-align: right; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.7rem;
  border-left: 2px solid var(--line);
  font-size: .89rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
.timeline b { color: var(--ink); }
.timeline small { display: block; color: var(--muted); font-size: .8rem; }

/* ---------- Grafik -------------------------------------------------------- */
.chart-box { position: relative; height: 300px; }

/* ---------- Yardımcılar --------------------------------------------------- */
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.mb0 { margin-bottom: 0 !important; }
.mt2 { margin-top: 1.2rem; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.overlay-bg {
  position: fixed; inset: 0; background: rgba(10,29,25,.5); z-index: 95;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.overlay-bg.on { opacity: 1; visibility: visible; }

/* ---------- Duyarlılık ---------------------------------------------------- */
@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .side { transform: translateX(-100%); box-shadow: var(--sh-lg); }
  .side.on { transform: translateX(0); }
  .main { margin-left: 0; }
  .side-toggle { display: grid; }
  .g3, .g2 { grid-template-columns: minmax(0,1fr); }
  .fgrid > [class*="f-"] { grid-column: span 12; }
}
@media (max-width: 900px) {
  .topbar .crumb { display: none; }
  .topbar h1 { font-size: 1.08rem; }
}

@media (max-width: 640px) {
  .g4 { grid-template-columns: minmax(0,1fr); }
  .topbar { min-height: 62px; gap: .6rem; padding: .7rem 14px; }
  .topbar h1 { font-size: 1rem; }
  .topbar h1 i { display: none; }
  .topbar-right { gap: .4rem; }
  .topbar-right .btn { padding: .55rem .8rem; font-size: .82rem; }
  .topbar-right .btn .lbl { display: none; }
  .icon-btn { width: 38px; height: 38px; font-size: .88rem; }
  .user-chip .who { display: none; }
  .user-chip { padding: .3rem; }
  .content { padding: 16px; }
  .card-head { padding: 1rem; }
  .card-body { padding: 1rem; }
  .card-head .right { width: 100%; }
}
