/* ==========================================================================
   Mirago Panel & Yönetim — kompakt uygulama arayüzü
   ========================================================================== */
:root {
    --bg: #050814;
    --bg-2: #080d1c;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --border: rgba(148, 163, 184, .14);
    --border-2: rgba(148, 163, 184, .24);
    --text: #eef3fb;
    --text-soft: #c8d4e6;
    --muted: #8fa2bf;
    --muted-2: #6f829f;
    --blue: #3b82f6;
    --indigo: #4f46e5;
    --violet: #8b5cf6;
    --green: #34d399;
    --amber: #fbbf24;
    --red: #f87171;
    --cyan: #22d3ee;
    --grad: linear-gradient(135deg, #3b82f6, #4f46e5 55%, #7c3aed);
    --radius: 14px;
    --radius-sm: 10px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --sidebar-w: 236px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body.panel-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.panel-body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(800px 400px at 80% -10%, rgba(79, 70, 229, .12), transparent 65%), radial-gradient(700px 400px at 10% 110%, rgba(34, 211, 238, .05), transparent 60%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; gap: 9px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrap { flex-wrap: wrap; }
.gap-2 { gap: 14px; } .gap-3 { gap: 20px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; } .mt-4 { margin-top: 30px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.full { width: 100%; }
.hide { display: none !important; }
.small { font-size: 11px; }
.tiny { font-size: 10px; }

/* ---------- Yapı ---------- */
.app-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.panel-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: rgba(7, 11, 24, .92); border-right: 1px solid var(--border); padding: 16px 12px; overflow-y: auto; scrollbar-width: thin; }
.panel-brand { display: flex; align-items: center; gap: 9px; padding: 4px 7px 14px; }
.panel-brand img { width: 31px; height: 31px; border-radius: 8px; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.panel-brand b { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: -.5px; }
.panel-brand span { display: block; font-size: 7px; letter-spacing: .2em; color: var(--muted-2); font-weight: 700; margin-top: 2px; }
.panel-tenant { border: 1px solid var(--border); background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 10px 11px; margin-bottom: 14px; }
.panel-tenant .pt-role { font-size: 8.5px; font-weight: 700; letter-spacing: .11em; color: #a5b4fc; text-transform: uppercase; }
.panel-tenant b { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-tenant span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.pnav { display: flex; flex-direction: column; gap: 2px; }
.pnav-head { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #52647f; padding: 14px 9px 6px; }
.pnav a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 11.8px; font-weight: 500; color: #8b9cb6; transition: all .16s ease; position: relative; }
.pnav a .icon { width: 15px; height: 15px; }
.pnav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.pnav a.active { background: linear-gradient(90deg, rgba(79, 70, 229, .26), rgba(79, 70, 229, .07)); color: #dbe4ff; box-shadow: inset 2px 0 0 #818cf8; }
.pnav a.active .icon { color: #a5b4fc; }
.pnav .nav-count { margin-left: auto; font-size: 8.5px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: rgba(59, 130, 246, .2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, .25); }
.panel-side-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 2px; }
.panel-side-foot a { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; font-size: 11px; color: var(--muted-2); }
.panel-side-foot a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.panel-side-foot .icon { width: 14px; height: 14px; }

.panel-main { min-width: 0; display: flex; flex-direction: column; }
.panel-topbar { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: rgba(5, 8, 20, .82); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.panel-topbar .pt-title h1 { font-size: 15px; letter-spacing: -.2px; }
.panel-topbar .pt-title span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.pt-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.pt-user { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); border-radius: 9px; padding: 5px 9px 5px 5px; }
.pt-avatar { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #dbe4ff; background: linear-gradient(135deg, rgba(59, 130, 246, .5), rgba(124, 58, 237, .5)); }
.pt-user b { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; }
.pt-user span { display: block; font-size: 8px; color: var(--muted-2); }
.panel-content { padding: 22px; max-width: 1500px; width: 100%; }
.sidebar-toggle { display: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Başlık ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.5px; }
.page-head p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.page-head .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted-2); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 10px; height: 10px; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 37px; padding: 0 15px; border-radius: 9px; border: 1px solid transparent; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all .16s ease; white-space: nowrap; box-shadow: 0 8px 20px rgba(79, 70, 229, .22); }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn .icon { width: 14px; height: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-2); color: var(--text-soft); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-soft { background: rgba(99, 102, 241, .13); border-color: rgba(129, 140, 248, .25); color: #c7d2fe; box-shadow: none; }
.btn-soft:hover { background: rgba(99, 102, 241, .2); }
.btn-danger { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .28); color: #fca5a5; box-shadow: none; }
.btn-danger:hover { background: rgba(248, 113, 113, .18); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 10px; border-radius: 7px; }
.btn-sm .icon { width: 12px; height: 12px; }
.btn-icon { width: 29px; height: 29px; padding: 0; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); box-shadow: none; }
.btn-icon:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.btn-icon .icon { width: 13px; height: 13px; }
.btn-block { width: 100%; }

/* ---------- Kartlar ---------- */
.panel-card { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .022); overflow: hidden; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-card-head h2 { font-size: 12.5px; letter-spacing: -.1px; font-family: var(--font); font-weight: 600; }
.panel-card-head p { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.panel-card-body { padding: 16px; }
.panel-card-body.flush { padding: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 18px; }
.stat-card { border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(155deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); padding: 14px 15px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -34px; top: -46px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 70%); }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stat-card .sc-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(99, 102, 241, .12); border: 1px solid rgba(129, 140, 248, .2); color: #a5b4fc; }
.stat-card .sc-icon .icon { width: 14px; height: 14px; }
.stat-card .sc-icon.green { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .2); color: #6ee7b7; }
.stat-card .sc-icon.amber { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .2); color: #fcd34d; }
.stat-card .sc-icon.cyan { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .2); color: #67e8f9; }
.stat-card .sc-label { font-size: 9.5px; color: var(--muted-2); letter-spacing: .02em; }
.stat-card b { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -.7px; margin: 2px 0 1px; }
.stat-card span.sc-trend { font-size: 8.5px; color: var(--green); }
.stat-card span.sc-trend.warn { color: var(--amber); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-2-1 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.7fr; gap: 14px; align-items: start; }

/* ---------- Tablolar ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th { text-align: left; font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .025); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 184, .07); font-size: 10.8px; color: var(--text-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.data-table td b { color: var(--text); font-weight: 600; }
.data-table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .muted { color: var(--muted-2); }
.table-empty { padding: 34px 16px; text-align: center; color: var(--muted-2); font-size: 11px; }
.table-empty .icon { width: 26px; height: 26px; margin: 0 auto 8px; color: #3d4d68; }

/* ---------- Durum ---------- */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; font-size: 8.8px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; border: 1px solid transparent; }
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .24); color: #6ee7b7; }
.status.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .24); color: #fcd34d; }
.status.danger { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .24); color: #fca5a5; }
.status.blue { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .24); color: #93c5fd; }
.status.violet { background: rgba(139, 92, 246, .1); border-color: rgba(139, 92, 246, .24); color: #c4b5fd; }
.status.muted { background: rgba(148, 163, 184, .08); border-color: rgba(148, 163, 184, .18); color: #94a3b8; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; font-size: 8.5px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--muted); }
.badge .icon { width: 10px; height: 10px; }

/* ---------- Formlar ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 600; color: var(--text-soft); }
.field label .req { color: #f87171; }
.field .hint { font-size: 9px; color: var(--muted-2); line-height: 1.45; }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, .18); background: rgba(7, 12, 25, .6); color: var(--text); font-size: 11.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 84px; padding: 8px 11px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #4f6079; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(129, 140, 248, .55); box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238fa2bf' stroke-width='1.8'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.check-row { display: flex; align-items: flex-start; gap: 7px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.check-row input { margin-top: 2px; accent-color: #6366f1; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); cursor: pointer; }
.switch input { width: 30px; height: 17px; appearance: none; background: rgba(148, 163, 184, .2); border-radius: 99px; position: relative; cursor: pointer; transition: background .18s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #cbd5e1; transition: transform .18s; }
.switch input:checked { background: rgba(99, 102, 241, .7); }
.switch input:checked::after { transform: translateX(13px); background: #fff; }
.upload-box { border: 1px dashed rgba(148, 163, 184, .28); border-radius: 9px; padding: 12px; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .02); }
.upload-box img { width: 46px; height: 34px; object-fit: contain; border-radius: 5px; background: rgba(255, 255, 255, .04); }
.upload-box .input { height: auto; padding: 7px 0; border: 0; background: transparent; }
.upload-box input[type=file] { font-size: 9.5px; color: var(--muted); }

/* ---------- Uyarılar ---------- */
.alert { padding: 9px 12px; border-radius: 8px; font-size: 10.5px; line-height: 1.5; margin-bottom: 12px; border: 1px solid transparent; }
.alert-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); color: #a7f3d0; }
.alert-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .28); color: #fecaca; }
.alert-warning { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .25); color: #fde68a; }
.alert-info { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .25); color: #bfdbfe; }

/* ---------- Boş durum ---------- */
.empty-state { padding: 38px 20px; text-align: center; }
.empty-state .icon { width: 34px; height: 34px; color: #3d4d68; margin: 0 auto 10px; }
.empty-state h3 { font-size: 14px; margin-bottom: 4px; }
.empty-state p { font-size: 10.5px; color: var(--muted-2); max-width: 340px; margin: 0 auto 14px; }

/* ---------- Sipariş / detay ---------- */
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(148, 163, 184, .08); font-size: 11px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row b { color: var(--text-soft); font-weight: 600; text-align: right; }
.invoice-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.invoice-total span { font-size: 10px; color: var(--muted); }
.invoice-total b { font-family: var(--font-display); font-size: 20px; letter-spacing: -.6px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: rgba(148, 163, 184, .15); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #6366f1; background: #0b1224; flex: 0 0 auto; margin-top: 2px; z-index: 1; }
.timeline-dot.done { background: #34d399; border-color: #34d399; }
.timeline-item b { display: block; font-size: 10.5px; font-weight: 600; }
.timeline-item span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }

/* ---------- Sohbet / destek ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 16px; }
.chat-bubble { max-width: 78%; padding: 9px 12px; border-radius: 10px; font-size: 11px; line-height: 1.6; position: relative; }
.chat-bubble .meta { display: block; font-size: 8px; color: var(--muted-2); margin-top: 4px; }
.chat-bubble.musteri { align-self: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-bottom-left-radius: 3px; color: var(--text-soft); }
.chat-bubble.admin { align-self: flex-end; background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(99, 102, 241, .28)); border: 1px solid rgba(129, 140, 248, .28); border-bottom-right-radius: 3px; color: #e8eeff; }
.chat-compose { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: rgba(255, 255, 255, .015); }
.chat-compose .textarea { min-height: 42px; max-height: 110px; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ticket-head h2 { font-size: 13px; }
.ticket-head p { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); padding: 0 14px; overflow-x: auto; }
.tabs a { padding: 10px 11px; font-size: 10.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: #c7d2fe; border-bottom-color: #818cf8; }
.tabs a:hover { color: var(--text); }
.tab-count { font-size: 8px; background: rgba(255, 255, 255, .07); border-radius: 9px; padding: 1px 5px; margin-left: 3px; }

/* ---------- Dashboard özel ---------- */
.hero-panel { border: 1px solid rgba(129, 140, 248, .22); border-radius: var(--radius); background: linear-gradient(120deg, rgba(59, 130, 246, .15), rgba(79, 70, 229, .1) 50%, rgba(124, 58, 237, .14)); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle at 80% 30%, #000, transparent 70%); }
.hero-panel h2 { font-size: 17px; position: relative; }
.hero-panel p { font-size: 10.5px; color: #c3d1e8; margin-top: 4px; position: relative; max-width: 500px; }
.hero-panel .hp-actions { position: relative; display: flex; gap: 7px; flex-wrap: wrap; }
.mini-list { display: grid; gap: 0; }
.mini-item { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid rgba(148, 163, 184, .07); }
.mini-item:last-child { border-bottom: 0; }
.mini-item .mini-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(99, 102, 241, .1); border: 1px solid rgba(129, 140, 248, .18); color: #a5b4fc; flex: 0 0 auto; }
.mini-item .mini-icon .icon { width: 12px; height: 12px; }
.mini-item b { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-soft); }
.mini-item span { display: block; font-size: 8.5px; color: var(--muted-2); }
.mini-item .mini-val { margin-left: auto; text-align: right; font-size: 10px; color: var(--text-soft); white-space: nowrap; }

/* ---------- Yönetim özel ---------- */
.admin-body .panel-tenant .pt-role { color: #c4b5fd; }
.admin-body .pnav a.active { background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(139, 92, 246, .06)); box-shadow: inset 2px 0 0 #a78bfa; }
.admin-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .25); background: rgba(139, 92, 246, .09); padding: 3px 7px; border-radius: 5px; }
.inline-form { display: inline; }
.icon-preview { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(99, 102, 241, .1); border: 1px solid rgba(129, 140, 248, .2); color: #a5b4fc; }
.icon-preview .icon { width: 15px; height: 15px; }
.logo-thumb { height: 30px; max-width: 100px; object-fit: contain; filter: grayscale(1) brightness(1.7); }
.module-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 250px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 10px; background: rgba(0, 0, 0, .15); }
.module-check { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted); padding: 4px 5px; border-radius: 5px; }
.module-check:hover { background: rgba(255, 255, 255, .04); color: var(--text-soft); }
.module-check input { accent-color: #6366f1; }
.feature-rows { display: grid; gap: 6px; }
.feature-row { display: flex; gap: 6px; }
.feature-row .input { flex: 1; }
.repeater-add { font-size: 9.5px; color: #a5b4fc; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; }
.svg-none { display: none; }

/* ---------- Grafik ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 9px; height: 168px; padding: 8px 4px 0; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
.chart-col i { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(99, 102, 241, .9), rgba(59, 130, 246, .14)); border: 1px solid rgba(129, 140, 248, .2); border-bottom: 0; display: block; transition: filter .2s; }
.chart-col:hover i { filter: brightness(1.18); }
.chart-col b { font-size: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.chart-col span { font-size: 8.5px; color: var(--muted-2); letter-spacing: .05em; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 4px; padding: 12px 14px; justify-content: flex-end; }
.pagination a, .pagination span { min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); font-size: 9.5px; color: var(--muted); }
.pagination a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.pagination .current { background: rgba(99, 102, 241, .2); border-color: rgba(129, 140, 248, .3); color: #c7d2fe; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .app-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 80; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
    .panel-sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .panel-content { padding: 16px; }
    .panel-topbar { padding: 0 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .module-check-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .hero-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card b { font-size: 17px; }
    .panel-topbar .pt-title span { display: none; }
    .pt-user div { display: none; }
    .page-head h1 { font-size: 19px; }
    .module-check-grid { grid-template-columns: 1fr; }
}

/* ---------- Tema geçişi ---------- */
.theme-toggle {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .16s ease;
}
.theme-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.theme-toggle .icon { width: 14px; height: 14px; }
.theme-toggle .tt-sun { display: none; }

/* ---------- Aydınlık panel ---------- */
[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fc;
    --bg-2: #eef2f9;
    --surface: rgba(15, 23, 42, .025);
    --surface-2: rgba(15, 23, 42, .05);
    --border: rgba(15, 23, 42, .10);
    --border-2: rgba(15, 23, 42, .18);
    --text: #0b1224;
    --text-soft: #334155;
    --muted: #5b6b83;
    --muted-2: #7b8ba2;
}
[data-theme="light"] body.panel-body { background: var(--bg); color: var(--text); }
[data-theme="light"] body.panel-body::before {
    background:
        radial-gradient(800px 400px at 80% -10%, rgba(79, 70, 229, .07), transparent 65%),
        radial-gradient(700px 400px at 10% 110%, rgba(34, 211, 238, .05), transparent 60%);
}
[data-theme="light"] .theme-toggle { background: #fff; color: #475569; }
[data-theme="light"] .theme-toggle .tt-sun { display: block; }
[data-theme="light"] .theme-toggle .tt-moon { display: none; }
[data-theme="light"] .panel-sidebar { background: #fff; border-right-color: var(--border); box-shadow: 12px 0 40px rgba(15, 23, 42, .04); }
[data-theme="light"] .panel-brand span { color: #7b8ba2; }
[data-theme="light"] .panel-tenant { background: #f7f9fd; border-color: var(--border); }
[data-theme="light"] .panel-tenant .pt-role { color: #4f46e5; }
[data-theme="light"] .admin-body .panel-tenant .pt-role { color: #7c3aed; }
[data-theme="light"] .panel-tenant b { color: #0b1224; }
[data-theme="light"] .panel-tenant span { color: #7b8ba2; }
[data-theme="light"] .pnav-head { color: #94a3b8; }
[data-theme="light"] .pnav a { color: #5b6b83; }
[data-theme="light"] .pnav a:hover { background: #f1f5fb; color: #0b1224; }
[data-theme="light"] .pnav a.active { background: linear-gradient(90deg, #eef2ff, #f8faff); color: #3730a3; box-shadow: inset 2px 0 0 #6366f1; }
[data-theme="light"] .pnav a.active .icon { color: #4f46e5; }
[data-theme="light"] .pnav .nav-count { background: #e0e7ff; border-color: #c7d2fe; color: #4338ca; }
[data-theme="light"] .panel-side-foot a { color: #64748b; }
[data-theme="light"] .panel-side-foot a:hover { background: #f1f5fb; color: #0b1224; }
[data-theme="light"] .panel-topbar { background: rgba(248, 250, 253, .9); border-bottom-color: var(--border); }
[data-theme="light"] .panel-topbar .pt-title span { color: #7b8ba2; }
[data-theme="light"] .pt-user { background: #fff; border-color: var(--border); }
[data-theme="light"] .sidebar-toggle { background: #fff; color: #0b1224; }
[data-theme="light"] .panel-card { background: #fff; border-color: var(--border); }
[data-theme="light"] .panel-card-head { border-bottom-color: var(--border); }
[data-theme="light"] .panel-card-head p { color: #7b8ba2; }
[data-theme="light"] .stat-card { background: linear-gradient(155deg, #fff, #f8fafc); border-color: var(--border); }
[data-theme="light"] .stat-card::after { background: radial-gradient(circle, rgba(99, 102, 241, .09), transparent 70%); }
[data-theme="light"] .sc-trend { color: #059669; }
[data-theme="light"] .sc-trend.warn { color: #b45309; }
[data-theme="light"] .sc-icon { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
[data-theme="light"] .sc-icon.green { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
[data-theme="light"] .sc-icon.amber { background: #fffbeb; border-color: #fde68a; color: #d97706; }
[data-theme="light"] .sc-icon.cyan { background: #ecfeff; border-color: #a5f3fc; color: #0891b2; }
[data-theme="light"] .data-table th { background: #f8fafc; border-bottom-color: var(--border); color: #64748b; }
[data-theme="light"] .data-table td { border-bottom-color: rgba(15, 23, 42, .07); color: #334155; }
[data-theme="light"] .data-table td b { color: #0b1224; }
[data-theme="light"] .data-table tbody tr:hover { background: #f8fafc; }
[data-theme="light"] .table-empty { color: #94a3b8; }
[data-theme="light"] .hero-panel { background: linear-gradient(120deg, #eef2ff, #e0f2fe); border-color: #c7d2fe; }
[data-theme="light"] .hero-panel h2 { color: #0b1224; }
[data-theme="light"] .hero-panel p { color: #475569; }
[data-theme="light"] .hero-panel .badge { background: #fff; border-color: #c7d2fe; color: #4338ca; }
[data-theme="light"] .mini-item { border-bottom-color: var(--border); }
[data-theme="light"] .mini-item .mini-icon { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
[data-theme="light"] .mini-item b { color: #334155; }
[data-theme="light"] .mini-item span { color: #7b8ba2; }
[data-theme="light"] .mini-item .mini-val { color: #334155; }
[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea { background: #fff; border-color: rgba(15, 23, 42, .16); color: #0b1224; }
[data-theme="light"] .input::placeholder,
[data-theme="light"] .textarea::placeholder { color: #94a3b8; }
[data-theme="light"] .input:focus,
[data-theme="light"] .select:focus,
[data-theme="light"] .textarea:focus { background: #fff; border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
[data-theme="light"] .btn-ghost { background: #fff; border-color: var(--border); color: #334155; box-shadow: none; }
[data-theme="light"] .btn-ghost:hover { background: #f1f5fb; border-color: var(--border-2); }
[data-theme="light"] .btn-soft { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
[data-theme="light"] .btn-icon { background: #fff; border-color: var(--border); color: #64748b; }
[data-theme="light"] .btn-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
[data-theme="light"] .badge { background: #f1f5f9; border-color: var(--border); color: #475569; }
[data-theme="light"] .status.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
[data-theme="light"] .status.warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
[data-theme="light"] .status.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
[data-theme="light"] .status.blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
[data-theme="light"] .status.violet { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
[data-theme="light"] .status.muted { background: #f1f5f9; border-color: var(--border); color: #64748b; }
[data-theme="light"] .alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
[data-theme="light"] .alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
[data-theme="light"] .alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
[data-theme="light"] .alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
[data-theme="light"] .note-box { color: #1e40af !important; }
[data-theme="light"] .note-box.green { color: #047857 !important; }
[data-theme="light"] .tabs { border-bottom-color: var(--border); }
[data-theme="light"] .tabs a { color: #64748b; }
[data-theme="light"] .tabs a.active { color: #4338ca; border-bottom-color: #6366f1; }
[data-theme="light"] .tab-count { background: #eef2ff; color: #4338ca; }
[data-theme="light"] .pagination a,
[data-theme="light"] .pagination span { background: #fff; color: #64748b; }
[data-theme="light"] .pagination a:hover { background: #f1f5fb; color: #0b1224; }
[data-theme="light"] .pagination .current { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
[data-theme="light"] .empty-state .icon { color: #cbd5e1; }
[data-theme="light"] .empty-state p { color: #7b8ba2; }
[data-theme="light"] .chat-bubble.musteri { background: #f1f5f9; border-color: var(--border); color: #334155; }
[data-theme="light"] .chat-bubble.admin { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
[data-theme="light"] .chat-bubble .meta { color: #7b8ba2; }
[data-theme="light"] .chat-compose { background: #f8fafc; border-top-color: var(--border); }
[data-theme="light"] .ticket-head { border-bottom-color: var(--border); }
[data-theme="light"] .ticket-head p { color: #7b8ba2; }
[data-theme="light"] .detail-row { border-bottom-color: var(--border); }
[data-theme="light"] .detail-row span { color: #64748b; }
[data-theme="light"] .detail-row b { color: #334155; }
[data-theme="light"] .invoice-total { border-top-color: var(--border); }
[data-theme="light"] .timeline-item::before { background: var(--border); }
[data-theme="light"] .timeline-dot { background: #fff; }
[data-theme="light"] .timeline-dot.done { background: #059669; border-color: #059669; }
[data-theme="light"] .icon-preview { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
[data-theme="light"] .module-check-grid { background: #f8fafc; border-color: var(--border); }
[data-theme="light"] .module-check { color: #5b6b83; }
[data-theme="light"] .module-check:hover { background: #fff; color: #0b1224; }
[data-theme="light"] .upload-box { background: #f8fafc; border-color: #cbd5e1; }
[data-theme="light"] .logo-thumb { filter: grayscale(1) contrast(1.05); }
[data-theme="light"] .chart-col i { border-color: #c7d2fe; }
[data-theme="light"] .chart-col b { color: #64748b; }
[data-theme="light"] .chart-col span { color: #94a3b8; }
[data-theme="light"] .admin-chip { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
[data-theme="light"] .panel-sidebar { box-shadow: 12px 0 40px rgba(15, 23, 42, .04); }
[data-theme="light"] a[style*="color:#c7d2fe"],
[data-theme="light"] a[style*="color:#a5b4fc"] { color: #4338ca !important; }
[data-theme="light"] code[style*="color:#c7d2fe"] { color: #4338ca !important; background: #eef2ff; padding: 2px 6px; border-radius: 5px; }

@media (max-width: 640px) {
    .pt-actions .admin-chip { display: none; }
    .pt-actions > .btn-sm.btn-ghost { display: none; }
}

/* ---------- Compact panel yerleşimi ---------- */
:root { --sidebar-w: 220px; }
.panel-topbar { height: 58px; padding: 0 18px; }
.panel-content { padding: 18px; max-width: 1320px; }
.panel-brand { padding-bottom: 11px; }
.panel-tenant { padding: 8px 10px; margin-bottom: 11px; }
.pnav a { padding: 7px 8px; font-size: 11.3px; }
.pnav-head { padding: 11px 9px 5px; }
.page-head { margin-bottom: 16px; gap: 12px; }
.page-head h1 { font-size: 20px; }
.page-head p { font-size: 11px; }
.stat-grid { gap: 9px; margin-bottom: 14px; }
.stat-card { padding: 12px 13px; }
.stat-card b { font-size: 18px; }
.panel-card-head { padding: 11px 13px; }
.panel-card-body { padding: 13px; }
.grid-2, .grid-3, .grid-4 { gap: 12px; }
.grid-2-1, .grid-1-2 { gap: 12px; }
.hero-panel { padding: 16px 18px; margin-bottom: 14px; }
.data-table th { padding: 9px 12px; }
.data-table td { padding: 9px 12px; font-size: 10.5px; }
.tabs a { padding: 9px 10px; }
.mini-item { padding: 8px 12px; }
.detail-row { padding: 7px 0; }
.panel-side-foot { padding-top: 12px; }
.btn { height: 34px; padding: 0 13px; font-size: 11px; }
.btn-sm { height: 28px; padding: 0 9px; }
.chart-bars { height: 145px; }

@media (max-width: 860px) {
    .panel-content { padding: 14px; }
    .panel-topbar { padding: 0 14px; }
}

/* --- Küçük ikon kutusu (liste satırları) --- */
.icon-sq { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center;
    background: rgba(99, 102, 241, .12); border: 1px solid rgba(129, 140, 248, .22); color: #a5b4fc; }
.icon-sq .icon { width: 15px; height: 15px; }
html[data-theme="light"] .icon-sq { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }
button.status { font-family: inherit; cursor: pointer; }

/* --- Sektör listesi satırları --- */
.sektor-meta { display: block; color: var(--muted-2); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.sektor-etiket { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; max-width: 240px; }
