/* ============================================
   OZ INOX - Tema (koyu metal + bakır)
   ============================================ */
:root {
  --bg: #0f0f11;
  --bg-2: #141417;
  --card: #18181c;
  --card-2: #1e1e23;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text: #ececef;
  --muted: #8f8f99;
  --muted-2: #6a6a74;
  --copper: #c9793f;
  --copper-2: #e59a5c;
  --copper-3: #a55f2c;
  --copper-soft: rgba(201,121,63,0.14);
  --copper-glow: rgba(229,154,92,0.35);
  --success: #3ec27a;
  --danger: #e25c5c;
  --warning: #e5b34a;
  --info: #5aa8e8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --sidebar-w: 230px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,121,63,0.10), transparent 60%),
    radial-gradient(800px 500px at -10% 100%, rgba(201,121,63,0.06), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--copper-2); text-decoration: none; transition: color .2s; }
a:hover { color: #f2b27a; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: .2px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
::selection { background: var(--copper); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a44; }

/* ---------- LAYOUT ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #141417 0%, #0f0f11 100%);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 50;
  transition: transform .35s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--border); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 1px; color: #fff; }
.brand-sub { font-size: 11px; color: var(--copper-2); letter-spacing: .5px; }
.nav { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500; font-size: 13.5px;
  position: relative; overflow: hidden;
  transition: color .25s, background .25s, transform .25s var(--ease);
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform .3s var(--ease); }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); transform: translateX(3px); }
.nav-link:hover svg { transform: scale(1.1); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, var(--copper-soft), transparent); }
.nav-link.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--copper-2), var(--copper-3)); border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px var(--copper-glow);
}
.nav-link.active svg { color: var(--copper-2); }
/* Ayarlar grubu */
.nav-group-toggle { width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--font-body); text-align: left; }
.nav-group-toggle .chev { margin-left: auto; width: 15px; height: 15px; transition: transform .3s var(--ease); }
.nav-group-toggle.open .chev { transform: rotate(180deg); }
.nav-group-toggle.active { background: none; color: var(--text); }
.nav-group-toggle.active::before { display: none; }
.nav-group { display: none; flex-direction: column; gap: 2px; padding: 2px 0 4px 22px; }
.nav-group.open { display: flex; animation: fadeUp .25s var(--ease); }
.nav-sub { display: block; padding: 7px 12px 7px 20px; border-radius: 8px; color: var(--muted); font-size: 13px; position: relative; transition: color .2s, background .2s; }
.nav-sub::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; transform: translateY(-50%); }
.nav-sub:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-sub.active { color: var(--copper-2); background: var(--copper-soft); }
.nav-sub.active::before { opacity: 1; box-shadow: 0 0 8px var(--copper-glow); }

/* Şube seçici */
.branch-switch select { width: auto; min-width: 130px; padding: 6px 30px 6px 10px; font-size: 12.5px; border-color: rgba(201,121,63,.35); color: var(--copper-2); font-weight: 600; background-color: var(--copper-soft); }
.branch-pill { font-size: 12px; font-weight: 600; color: var(--copper-2); background: var(--copper-soft); border: 1px solid rgba(201,121,63,.3); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--copper-2), var(--copper-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #1a1006;
  box-shadow: 0 4px 12px rgba(201,121,63,.35);
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11.5px; color: var(--muted); }
.logout { color: var(--muted); padding: 8px; border-radius: 8px; transition: all .2s; }
.logout svg { width: 18px; height: 18px; display: block; }
.logout:hover { color: var(--danger); background: rgba(226,92,92,.1); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(15,15,17,0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 17px; flex: 1; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.content { padding: 18px 22px 50px; max-width: 1400px; width: 100%; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; backdrop-filter: blur(2px); }

/* ---------- ANİMASYON ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.page-enter { animation: fadeIn .4s var(--ease) both; }
.stagger > * { animation: fadeUp .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .13s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .23s; }
.stagger > *:nth-child(6) { animation-delay: .28s; }
.stagger > *:nth-child(n+7) { animation-delay: .33s; }

/* ---------- KARTLAR ---------- */
.card {
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h2::before, .card-head h3::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--copper-2), var(--copper-3)); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(201,121,63,.35); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--copper-soft), transparent 70%); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.stat-value { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin-top: 4px; color: #fff; }
.stat-value.copper { color: var(--copper-2); }
.stat-value.green { color: var(--success); }
.stat-value.red { color: var(--danger); }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- BUTONLAR ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; cursor: pointer;
  background: var(--card-2); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); background: #26262d; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--copper-2), var(--copper-3)); color: #1a1006; box-shadow: 0 6px 18px rgba(201,121,63,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #f0a566, #b56a33); box-shadow: 0 8px 24px rgba(201,121,63,.4); color: #1a1006; }
.btn-outline { background: transparent; border-color: rgba(201,121,63,.45); color: var(--copper-2); }
.btn-outline:hover { background: var(--copper-soft); border-color: var(--copper-2); }
.btn-danger { background: rgba(226,92,92,.12); color: #f08a8a; border-color: rgba(226,92,92,.25); }
.btn-danger:hover { background: rgba(226,92,92,.22); border-color: rgba(226,92,92,.5); }
.btn-success { background: rgba(62,194,122,.14); color: #6fdc9f; border-color: rgba(62,194,122,.3); }
.btn-success:hover { background: rgba(62,194,122,.24); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- FORM ---------- */
.form-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px; border-radius: 9px;
  background: #101013; border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-body); font-size: 13.5px;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9793f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select option { background: #16161a; color: var(--text); }
textarea { min-height: 64px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201,121,63,.18); background: #121216; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7) sepia(1) saturate(3) hue-rotate(-10deg); cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--copper); cursor: pointer; margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.input-group { display: flex; gap: 8px; }
.input-group > * { flex: 1; }

/* ---------- TABLO ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); background: rgba(255,255,255,0.025); border-bottom: 1px solid var(--border-strong); font-weight: 600; white-space: nowrap;
}
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(201,121,63,0.05); }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { padding: 9px 12px; font-weight: 600; background: rgba(255,255,255,0.025); border-top: 1px solid var(--border-strong); }
.t-right { text-align: right; }
.t-center { text-align: center; }
.t-nowrap { white-space: nowrap; }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }
.t-actions form { display: inline; }
.empty { text-align: center; padding: 22px 12px; color: var(--muted); font-size: 13px; }
.empty svg { width: 42px; height: 42px; color: var(--muted-2); margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: #fff; }
.copper-text { color: var(--copper-2); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- ROZET ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-teklif          { color: #a9b3c4; background: rgba(169,179,196,.12); border-color: rgba(169,179,196,.25); }
.badge-onaylandi       { color: #5aa8e8; background: rgba(90,168,232,.12); border-color: rgba(90,168,232,.3); }
.badge-devam           { color: var(--copper-2); background: rgba(229,154,92,.12); border-color: rgba(229,154,92,.35); }
.badge-teslim_bekliyor { color: var(--warning); background: rgba(229,179,74,.12); border-color: rgba(229,179,74,.35); }
.badge-teslim_edildi   { color: var(--success); background: rgba(62,194,122,.12); border-color: rgba(62,194,122,.35); }
.badge-iptal           { color: var(--danger); background: rgba(226,92,92,.12); border-color: rgba(226,92,92,.35); }
.badge-neutral         { color: var(--muted); background: rgba(255,255,255,.05); border-color: var(--border-strong); }
.badge-neutral::before { display: none; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); margin: 2px 2px 2px 0; }
.tag-copper { background: var(--copper-soft); color: var(--copper-2); border-color: rgba(201,121,63,.3); }
.tag-green { background: rgba(62,194,122,.12); color: #6fdc9f; border-color: rgba(62,194,122,.3); }
.tag-red { background: rgba(226,92,92,.12); color: #f08a8a; border-color: rgba(226,92,92,.3); }
.tag-blue { background: rgba(90,168,232,.12); color: #7fbdf0; border-color: rgba(90,168,232,.3); }

/* ---------- ALERT ---------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 9px 13px; font-size: 13px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; border: 1px solid; animation: fadeUp .4s var(--ease); }
.alert-success { background: rgba(62,194,122,.1); border-color: rgba(62,194,122,.3); color: #7fe0aa; }
.alert-danger  { background: rgba(226,92,92,.1); border-color: rgba(226,92,92,.3); color: #f39a9a; }
.alert-warning { background: rgba(229,179,74,.1); border-color: rgba(229,179,74,.3); color: #f0c76a; }
.alert-info    { background: rgba(90,168,232,.1); border-color: rgba(90,168,232,.3); color: #8cc6f2; }
.alert-close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; opacity: .6; line-height: 1; padding: 0 4px; }
.alert-close:hover { opacity: 1; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: rgba(229,179,74,.08); border: 1px solid rgba(229,179,74,.25); color: #e9c77a; font-size: 13px; margin-bottom: 16px; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(160deg, #1b1b20, #131316); border: 1px solid rgba(201,121,63,.25);
  border-radius: 16px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.7);
  animation: popIn .3s var(--ease); display: flex; flex-direction: column;
}
.modal-box.wide { max-width: 760px; }
.modal-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; background: #1b1b20; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 15px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; transition: color .2s, transform .2s; padding: 0 2px; }
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal-box form { padding: 14px 18px 0; }
.modal .form-actions {
  position: sticky; bottom: 0; z-index: 2; margin: 14px -18px 0; padding: 11px 18px;
  padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
  background: #131316; border-top: 1px solid var(--border);
}
.modal .card-head { margin-top: 4px; }
.modal .table-wrap { margin-top: 2px; }
.modal .hint { line-height: 1.35; }
.perm-table td, .perm-table th { padding: 6px 10px; }
.perm-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--copper); cursor: pointer; margin: 0; vertical-align: middle; }

/* ---------- SEKME ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-strong); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 8px 13px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; position: relative; white-space: nowrap; font-family: var(--font-body); transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--copper-2); transform: scaleX(0); transition: transform .3s var(--ease); box-shadow: 0 0 10px var(--copper-glow); }
.tab.active { color: #fff; }
.tab.active::after { transform: scaleX(1); }
.tab-pane { display: none; animation: fadeUp .35s var(--ease); }
.tab-pane.active { display: block; }

/* ---------- ARAÇ ÇUBUĞU ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; }
.toolbar input[type=search], .toolbar input[type=text] { min-width: 200px; flex: 1; }
.toolbar select { width: auto; min-width: 150px; }
.spacer { flex: 1; }

.filter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 860px) { .filter-grid { grid-template-columns: 1fr 1fr; } .filter-grid .full { grid-column: 1 / -1; } }

/* ---------- LİSTE / DETAY ---------- */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 5px 12px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; color: var(--text); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.status-select { display: inline-flex; align-items: center; gap: 8px; }
.status-select select { width: auto; padding: 7px 34px 7px 12px; font-size: 13px; }

/* ---------- LOG DIFF ---------- */
.diff { font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.diff .k { color: var(--muted); }
.diff .old { color: #e88; text-decoration: line-through; opacity: .8; }
.diff .new { color: #8ed9a9; }
.diff .arrow { color: var(--muted-2); margin: 0 5px; }

/* ---------- SAYFALAMA ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pagination a:hover { border-color: var(--copper); color: var(--copper-2); }
.pagination .current { background: var(--copper-soft); color: var(--copper-2); border-color: rgba(201,121,63,.4); }

/* ---------- FİYAT TABLOSU ---------- */
.price-row input { max-width: 160px; }
.options-list { display: flex; flex-direction: column; gap: 12px; }
.option-group { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.option-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.option-value { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--copper-soft); border: 1px solid rgba(201,121,63,.3); color: var(--copper-2); font-size: 12.5px; font-weight: 500; }
.option-value form { display: inline; }
.option-value button { background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 0 4px; font-size: 15px; line-height: 1; }
.option-value button:hover { opacity: 1; color: var(--danger); }

/* ---------- LOGIN ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 420px; padding: 36px 34px;
  background: linear-gradient(160deg, #1b1b20, #121215); border: 1px solid rgba(201,121,63,.25);
  border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: popIn .6s var(--ease);
  position: relative; overflow: hidden;
}
.login-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--copper-2), transparent); }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-logo img { width: 200px; border-radius: 16px; }
.login-title { font-family: var(--font-head); font-size: 15px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.login-card .field { margin-bottom: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .overlay.show { display: block; animation: fadeIn .25s; }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .topbar { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .topbar-title { font-size: 17px; }
  .content { padding: 18px 16px 70px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: slideUp .3s var(--ease); }
  .modal-box form { padding: 12px 14px 0; }
  .modal-head { padding: 12px 14px; }
  .modal .form-actions { margin: 12px -14px 0; padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .modal .form-actions .btn { flex: 1; }
  .perm-table td, .perm-table th { padding: 6px 4px; font-size: 12px; }
  .branch-switch select { min-width: 0; max-width: 120px; padding: 5px 26px 5px 8px; font-size: 12px; }
  .branch-pill { font-size: 11px; padding: 4px 8px; }
  .topbar-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Sağ üst aksiyon butonları mobilde sağ altta yüzer */
  .topbar-right { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; flex-direction: column; align-items: flex-end; gap: 8px; }
  .topbar-right:empty { display: none; }
  .topbar-right .btn { padding: 11px 16px; border-radius: 999px; box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 6px 18px rgba(201,121,63,.3); font-size: 13px; }
  .topbar-right .btn svg { width: 17px; height: 17px; }
  .content { padding-bottom: 90px; }
}
