/* Uygulamanın onaylı tasarımdan gelen renk, gölge ve yarıçap değişkenlerini tanımlar. */
:root {
    --bg: #f4f6f8;
    --panel: #fff;
    --text: #182230;
    --muted: #788394;
    --line: #e6eaf0;
    --brand: #1f6f5c;
    --brand-2: #2b8a72;
    --brand-soft: #eaf6f2;
    --accent: #f0a339;
    --danger: #d94d5d;
    --shadow: 0 10px 32px rgba(24, 34, 48, .07);
    --radius: 18px;
}

/* Bütün ekranların kutu modeli ve temel tipografisini tutarlı hale getirir. */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: var(--brand); }

/* Masaüstü üst navigasyonunu referans yüksekliği ve boşluklarıyla düzenler. */
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; gap: 14px; position: sticky; top: 0; z-index: 1030; }
.brand { min-width: 184px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 18px rgba(31,111,92,.22); font-size: 19px; }
.brand-name { display: block; font-weight: 850; letter-spacing: -.5px; line-height: 1; }
.brand-sub { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* Ana menü bağlantılarını dokunulabilir ve kompakt halde tutar. */
.main-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: visible; }
.top-link { border: 0; background: transparent; color: #586374; border-radius: 10px; padding: 9px 8px; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; display: flex; align-items: center; }
.top-link:hover, .top-link:focus, .dropdown.show > .top-link { color: var(--brand); background: var(--brand-soft); }
.top-dropdown { min-width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 42px rgba(24,34,48,.12); margin-top: 9px !important; }
.top-dropdown .dropdown-item { border-radius: 9px; padding: 9px 11px; color: #536072; font-size: 12px; font-weight: 650; }
.top-dropdown .dropdown-item:hover { color: var(--brand); background: var(--brand-soft); }

/* Kullanıcı profilini ve mobil menü düğmesini üst barın sağında düzenler. */
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.profile { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 4px 8px 4px 5px; text-align: left; }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #182230; color: #fff; font-size: 10px; font-weight: 850; }
.profile-copy strong, .profile-copy small { display: block; line-height: 1.15; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.mini-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 11px; color: #536072; display: none; place-items: center; }

/* Mobil menü bağlantılarını kolay dokunulabilir satırlar olarak gösterir. */
.mobile-group-title { margin-top: 16px; padding: 6px 10px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; }
.mobile-link { display: block; padding: 10px; border-radius: 10px; text-decoration: none; color: #536072; font-size: 13px; font-weight: 650; }
.mobile-link:hover { color: var(--brand); background: var(--brand-soft); }

/* Yönetim sayfalarının ortak çalışma alanı ve başlığını sınırlar. */
.page-shell { max-width: 1540px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -.7px; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

/* Tekrarlanan panel ve tablo yüzeylerine aynı kart görünümünü verir. */
.surface-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.surface-head { min-height: 55px; padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.surface-head h2 { margin: 0; font-size: 14px; font-weight: 800; }
.surface-head span, .surface-head a { color: var(--muted); font-size: 11px; text-decoration: none; }
.surface-head a:hover { color: var(--brand); }

/* Gerçek rapor özetlerini responsive kart ızgarasında gösterir. */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 112px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 10px; font-size: 24px; font-weight: 850; letter-spacing: -.6px; }
.stat-card > i { position: absolute; right: 17px; top: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }

/* Dashboard bileşenlerini iki kolonlu operasyon görünümüne yerleştirir. */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mini-table-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini-table { padding: 11px 8px; border: 1px solid var(--line); border-radius: 11px; text-align: center; text-decoration: none; color: var(--text); }
.mini-table strong, .mini-table span { display: block; }
.mini-table strong { font-size: 11px; }
.mini-table span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.mini-table.occupied { border-color: #9dd4c6; background: var(--brand-soft); }
.list-stack { padding: 5px 16px; }
.list-row { min-height: 53px; border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-row:last-child { border-bottom: 0; }
.list-row span strong, .list-row span small { display: block; }
.list-row span strong { font-size: 12px; }
.list-row span small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.list-row b, .list-row time { font-size: 11px; white-space: nowrap; }

/* Yönetim tablolarının temel yazı, hücre ve eylem düzenini tanımlar. */
.table { font-size: 12px; }
.table thead th { padding: 12px 14px; background: #fafbfc; color: #667085; border-color: var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody td { padding: 12px 14px; border-color: #eef1f4; color: #3e4a59; }
.empty-cell { padding: 34px !important; text-align: center; color: var(--muted) !important; font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.row-actions form { margin: 0; }

/* Salon masa kartlarını durum rengine göre okunabilir ızgarada gösterir. */
.salon-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.salon-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.salon-title span { color: var(--muted); font-size: 11px; }
.table-grid { display: grid; grid-template-columns: repeat(5, minmax(155px, 1fr)); gap: 13px; }
.table-card { min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px; box-shadow: 0 7px 20px rgba(24,34,48,.05); display: flex; flex-direction: column; }
.table-card:not(.bos) { border-color: #acd8cd; background: linear-gradient(180deg, #fff, #f4fbf8); }
.table-card.hesap_bekliyor { border-color: #f2c47f; background: #fffaf1; }
.table-card-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6beca; }
.table-card:not(.bos) .status-dot { background: var(--brand-2); box-shadow: 0 0 0 4px rgba(43,138,114,.12); }
.table-card.hesap_bekliyor .status-dot { background: var(--accent); }
.table-card h3 { margin: 15px 0 5px; font-size: 18px; font-weight: 850; }
.table-total { font-size: 20px; margin-bottom: 10px; }
.table-meta { margin: auto 0 12px; display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.table-meta span { display: flex; gap: 4px; align-items: center; }

/* Canlı KDS uyarısını sesin kapalı olduğu ekranlarda da belirgin ve erişilebilir gösterir. */
.kitchen-live-alert { margin: 12px 0; padding: 13px 16px; border: 1px solid #8fd5c2; border-radius: 13px; color: #155e4d; background: #e9fff9; font-weight: 850; box-shadow: 0 9px 24px rgba(31,111,92,.12); }
.kds-command.kds-new-order { animation: kds-command-pulse .75s ease-in-out 4; }
.kitchen-print-sheet { display: none; }
@keyframes kds-command-pulse { 50% { box-shadow: 0 0 0 7px rgba(86,222,183,.22), 0 16px 42px rgba(18,71,57,.3); } }

/* Küçük durum ve filtre etiketlerini yönetim listelerinde düzenler. */
.status-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 750; }
.filter-links { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-links a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: #657080; }
.filter-links a:hover { color: var(--brand); border-color: #acd8cd; }

/* Giriş ekranını marka odağında merkezi ve responsive gösterir. */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left, #e8f7f2, transparent 42%), var(--bg); }
.auth-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(24,34,48,.12); }
.login-hint { padding: 12px; border-radius: 12px; background: #f6f8fa; color: #687386; font-size: 11px; text-align: center; }
.login-hint span { color: #a04f59; }

/* Tablet genişliğinde menüyü offcanvas'a taşır ve içerik ızgaralarını daraltır. */
@media (max-width: 1180px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: grid; order: -1; }
    .brand { min-width: 0; }
    .table-grid { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobilde kartları tek kolona indirip profil metnini gizler. */
@media (max-width: 768px) {
    .topbar { padding: 0 10px; gap: 9px; }
    .profile-copy { display: none; }
    .page-shell { padding: 16px 11px 28px; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .table-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 9px; }
    .stat-grid { gap: 9px; }
    .stat-card { min-height: 100px; padding: 14px; }
    .stat-card strong { font-size: 19px; }
    .mini-table-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Panel kartlarını kısa özet halinde tutup kullanıcı isteğinde tam yüksekliğe açar. */
.surface-actions { display: flex; align-items: center; gap: 10px; }
.surface-actions button { border: 0; padding: 0; background: transparent; color: var(--brand); font-size: 11px; font-weight: 750; }
.collapsible-body { max-height: 220px; overflow: hidden; transition: max-height .25s ease; }
.collapsible-body.expanded { max-height: 900px; overflow: auto; }
.mini-table-form { margin: 0; }
.mini-table-form .mini-table { width: 100%; height: 100%; background: #fff; }
.mini-table { min-height: 58px; }
.mini-table.empty:hover { border-color: #9dd4c6; background: var(--brand-soft); }

/* Sayfa başlığı eylemlerini desktop ve kiosk ekranlarında düzenli gruplar. */
.page-head-actions, .kiosk-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: block; color: var(--brand); font-size: 9px; font-weight: 900; letter-spacing: .13em; margin-bottom: 5px; }

/* Salon kiosk başlığını ve özet sayaçlarını yüksek kontrastlı çalışma alanına dönüştürür. */
.salon-workspace:fullscreen, .kitchen-workspace:fullscreen { overflow: auto; background: var(--bg); padding: 20px; }

/* Salon, paket, adisyon ve mutfağı tek fullscreen yaşam döngüsünde tutan kiosk kabuğunu düzenler. */
.kiosk-shell { width: 100%; height: 100%; position: fixed; inset: 0; z-index: 5000; grid-template-rows: 62px minmax(0, 1fr); overflow: hidden; background: #10171f; }
.kiosk-shell:not([hidden]) { display: grid; }
.kiosk-shell:fullscreen { width: 100vw; height: 100vh; display: grid; }
.kiosk-shell-header { min-width: 0; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.09); color: #fff; background: linear-gradient(125deg,#101820,#192a31 65%,#205748); display: flex; align-items: center; gap: 12px; }
.kiosk-shell-brand { min-width: 205px; display: flex; align-items: center; gap: 9px; }
.kiosk-shell-logo { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #8de0c9; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 18px; }
.kiosk-shell-brand small, .kiosk-shell-brand strong { display: block; line-height: 1.1; }
.kiosk-shell-brand small { margin-bottom: 4px; color: #8de0c9; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.kiosk-shell-brand small i { width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #63d8b7; display: inline-block; box-shadow: 0 0 0 4px rgba(99,216,183,.13); }
.kiosk-shell-brand strong { max-width: 165px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Kiosk modül rayını büyük dokunma hedefleri ve görünür aktif ekran durumuyla sunar. */
.kiosk-shell-nav { min-width: 0; flex: 1; display: flex; justify-content: center; gap: 5px; overflow-x: auto; }
.kiosk-shell-nav button, .kiosk-shell-tools button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #bec8cf; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-size: 9px; font-weight: 850; }
.kiosk-shell-nav button:hover, .kiosk-shell-tools button:hover { color: #fff; background: rgba(255,255,255,.12); }
.kiosk-shell-nav button.active { border-color: #72cdb5; color: #17352e; background: #8de0c9; box-shadow: 0 7px 18px rgba(42,160,130,.22); }
.kiosk-shell-tools { margin-left: auto; display: flex; gap: 5px; }
.kiosk-shell-tools .kiosk-exit { border-color: rgba(255,142,154,.28); color: #ffd4d9; background: rgba(196,65,80,.18); }
.kiosk-shell iframe { width: 100%; height: 100%; border: 0; background: var(--bg); }

/* Kiosk iframeindeki sayfayı parent kontrol rayına bırakarak tekrar eden menüleri ve boşlukları kaldırır. */
body.kiosk-embedded { min-height: 100vh; overflow: auto; }
.kiosk-embedded .topbar, .kiosk-embedded .pos-kiosk-bar, .kiosk-embedded > .kiosk-shell, .kiosk-embedded [data-kiosk-launch] { display: none !important; }
.kiosk-embedded .page-shell { max-width: none; min-height: 100vh; padding: 14px; }
.kiosk-embedded.pos-body { overflow: hidden; }
.kiosk-embedded .pos-app { height: 100vh; grid-template-rows: minmax(0, 1fr); }
.kiosk-embedded .pos-workspace { min-height: 0; }
.kiosk-embedded .salon-commandbar, .kiosk-embedded .module-context-nav { top: 8px; }

/* Dar kiosk ekranlarında marka ve araç metinlerini gizleyip modül rayına öncelik verir. */
@media (max-width: 980px) {
    .kiosk-shell { grid-template-rows: 56px minmax(0, 1fr); }
    .kiosk-shell-header { padding: 6px; gap: 6px; }
    .kiosk-shell-brand { min-width: 43px; }
    .kiosk-shell-brand > span:last-child, .kiosk-shell-nav button span, .kiosk-shell-tools button span { display: none; }
    .kiosk-shell-nav button, .kiosk-shell-tools button { min-width: 40px; padding: 0 9px; font-size: 13px; }
}
.kiosk-hero { border-radius: 22px; padding: 22px 24px; color: #fff; background: linear-gradient(125deg, #183a34, #1f6f5c 68%, #2b8a72); box-shadow: 0 18px 46px rgba(31,111,92,.2); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kiosk-hero h1 { margin: 0; font-size: 30px; font-weight: 900; }
.kiosk-hero p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 12px; }
.kiosk-hero .eyebrow { color: #8fe0ca; }
.kiosk-hero .btn-light { color: #24443d; border-color: transparent; }
.kiosk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.kiosk-stat { min-height: 76px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 7px 20px rgba(24,34,48,.04); }
button.kiosk-stat:hover, button.kiosk-stat.active { border-color: #82c4b3; box-shadow: 0 8px 24px rgba(31,111,92,.12); }
.kiosk-stat span { color: var(--muted); font-size: 10px; font-weight: 750; }
.kiosk-stat strong { font-size: 22px; font-weight: 900; }
.kiosk-stat.empty strong { color: #778394; }
.kiosk-stat.occupied strong { color: var(--brand); }
.kiosk-stat.ready strong { color: #16886d; }
.kiosk-stat.bill strong { color: #d88b1e; }
.kiosk-stat.turnover { display: block; background: #182230; color: #fff; }
.kiosk-stat.turnover span { color: #aab3c0; }
.kiosk-stat.turnover strong { display: block; margin-top: 5px; font-size: 17px; }

/* Salon sekmeleri ve aramayı çok masalı işletmelerde tek komut çubuğunda tutar. */
.salon-commandbar { position: sticky; top: 72px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.salon-tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; }
.salon-tab { border: 1px solid transparent; border-radius: 10px; padding: 9px 12px; background: #f3f5f7; color: #5f6b79; white-space: nowrap; font-size: 11px; font-weight: 800; }
.salon-tab span { margin-left: 5px; color: #96a0ad; }
.salon-tab.active { color: var(--brand); border-color: #abd8cc; background: var(--brand-soft); }
.command-search, .filter-search { min-width: 230px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: flex; align-items: center; gap: 8px; }
.command-search i, .filter-search i { color: #98a2b3; }
.command-search input, .filter-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }

/* Masa kartlarını kiosk için kompakt, tamamı dokunulabilir ve durum odaklı gösterir. */
.kiosk-salon-section { margin: 0 0 22px; }
.kiosk-table-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 11px; }
.kiosk-table-card { min-height: 172px; position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); text-align: left; text-decoration: none; box-shadow: 0 7px 18px rgba(24,34,48,.05); display: flex; flex-direction: column; transition: transform .14s ease, box-shadow .14s ease; }
.kiosk-table-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,34,48,.1); }
.kiosk-table-card.dolu { border-color: #9dd4c6; background: linear-gradient(180deg,#fff,#f1faf7); }
.kiosk-table-card.hazir { border-color: #75c8ad; background: #edfff8; }
.kiosk-table-card.hesap { border-color: #f0c277; background: #fff8ec; }

/* Mutfağa yeni gönderilen masayı iki dakika boyunca salon kioskunda yanıp sönen çerçeveyle duyurur. */
.kiosk-table-card.kitchen-new { z-index: 1; animation: kitchen-table-pulse .9s ease-in-out infinite; }
.kiosk-table-card.kitchen-new::after { content: 'YENİ SİPARİŞ'; position: absolute; right: 9px; top: 9px; padding: 4px 7px; border-radius: 999px; color: #4d3300; background: #ffd66b; font-size: 7px; font-weight: 950; letter-spacing: .08em; }
@keyframes kitchen-table-pulse { 50% { border-color: #e9a91c; box-shadow: 0 0 0 6px rgba(247,193,65,.2), 0 15px 32px rgba(156,108,17,.18); transform: translateY(-2px); } }
.table-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.table-state > i { width: 8px; height: 8px; border-radius: 50%; background: #b8c0cb; }
.dolu .table-state > i, .hazir .table-state > i { background: #21a480; box-shadow: 0 0 0 4px rgba(33,164,128,.12); }
.hesap .table-state > i { background: #e5a036; box-shadow: 0 0 0 4px rgba(229,160,54,.12); }
.table-name { margin-top: 13px; font-size: 18px; font-weight: 900; }
.kiosk-table-card > b { margin-top: 4px; font-size: 17px; }
.table-facts { display: flex; gap: 12px; margin: auto 0 8px; color: var(--muted); }
.table-facts small { display: flex; align-items: center; gap: 4px; }
.table-enter { margin-top: auto; color: var(--brand); font-size: 10px; font-weight: 850; display: flex; align-items: center; justify-content: space-between; }
.table-empty-icon { width: 38px; height: 38px; margin: auto 0 7px; border-radius: 12px; background: #f1f4f6; color: #8b96a5; display: grid; place-items: center; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.people-choice { min-height: 58px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--text); font-size: 18px; font-weight: 900; }
.people-choice.active, .people-choice:hover { color: var(--brand); border-color: #8dcebd; background: var(--brand-soft); }

/* Adisyon liste göstergelerini ve filtre çubuğunu operasyon ekranına özgü düzenler. */
.metric-strip, .delivery-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric-strip article, .delivery-stats article { min-height: 92px; padding: 16px 18px; position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(24,34,48,.05); }
.metric-strip span, .delivery-stats span { color: var(--muted); font-size: 10px; font-weight: 750; }
.metric-strip strong, .delivery-stats strong { display: block; margin-top: 7px; font-size: 22px; font-weight: 900; }
.metric-strip article > i, .delivery-stats article > i { position: absolute; right: 16px; top: 16px; color: var(--brand); font-size: 20px; }
.metric-strip small, .delivery-stats small { position: absolute; right: 16px; bottom: 16px; color: var(--brand); font-weight: 800; }
.metric-live { border-left: 4px solid var(--brand) !important; }
.metric-warn { border-left: 4px solid var(--accent) !important; }
.order-filterbar, .smart-toolbar { padding: 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.order-filterbar .filter-search { flex: 1; }
.order-filterbar .form-select, .order-filterbar .form-control { width: auto; min-width: 145px; }
.order-table td strong, .order-table td small, .delivery-table td strong, .delivery-table td small { display: block; }
.order-table td small, .delivery-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.order-number { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.channel-badge, .order-status { display: inline-flex !important; align-items: center; gap: 5px; width: max-content; padding: 5px 8px; border-radius: 999px; background: #f1f4f7; color: #5f6b79; font-size: 9px !important; font-weight: 850; }
.channel-badge.paket { background: #fff3df; color: #9b671d; }
.order-status.acik, .order-status.mutfakta, .order-status.hazirlaniyor { color: var(--brand); background: var(--brand-soft); }
.order-status.hesap_bekliyor { color: #98621d; background: #fff2db; }
.order-status.kapandi { color: #52606d; background: #eef1f4; }
.order-status.iptal { color: var(--danger); background: #fff0f2; }
.table-footer { min-height: 58px; padding: 10px 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.page-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.page-chip { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #647080; display: inline-grid; place-items: center; text-decoration: none; font-size: 10px; font-weight: 800; }
.page-chip.active { color: #fff; border-color: var(--brand); background: var(--brand); }

/* Paket servis üst göstergelerini teslimat yoğunluğuna göre beş kartta düzenler. */
.delivery-stats { margin-bottom: 16px; }
.delivery-live-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.delivery-live-stats .waiting { border-left: 4px solid #e9a23b; }
.delivery-live-stats .road { border-left: 4px solid #408bc7; }
.delivery-live-stats .done { border-left: 4px solid var(--brand); }
.delivery-live-stats .alert-card { border-left: 4px solid var(--danger); }
.delivery-live-stats .road > i { color: #408bc7; }
.delivery-live-stats .alert-card > i { color: var(--danger); }

/* Hazırlıktan teslimata kadar dört operasyon adımını kiosk uyumlu bir rehber rayında gösterir. */
.delivery-flow-guide { margin-bottom: 16px; padding: 12px 16px; border: 1px solid #dce8e4; border-radius: 16px; background: linear-gradient(90deg, #f4fbf8, #fff); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.delivery-flow-guide > div { min-width: 0; display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; }
.delivery-flow-guide > div > span { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: var(--brand); display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.delivery-flow-guide strong, .delivery-flow-guide small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-flow-guide strong { font-size: 10px; }
.delivery-flow-guide small { color: var(--muted); font-size: 8px; }
.delivery-flow-guide > i { color: #a3aea9; }

/* Arama ve teslimat filtrelerini geniş ekran komut çubuğunda toplar. */
.delivery-control-panel { margin-bottom: 16px; }
.delivery-filterbar { padding: 13px; display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px auto auto; gap: 8px; }
.delivery-filterbar .filter-search { width: 100%; }

/* Paket siparişlerini adres ve kurye bilgisini öne çıkaran bağımsız operasyon kartlarına yerleştirir. */
.delivery-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.delivery-order-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(24,34,48,.06); display: flex; flex-direction: column; gap: 13px; }
.delivery-order-card.cancelled { opacity: .68; }
.delivery-order-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.delivery-order-card > header small, .delivery-customer small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.delivery-order-no { display: block; font-size: 15px; font-weight: 950; letter-spacing: -.3px; }
.delivery-status-stack { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; }
.delivery-stage { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.delivery-stage.hazirlikta { color: #7b622e; background: #fff4d9; }
.delivery-stage.kurye_bekliyor { color: #965d19; background: #ffead0; }
.delivery-stage.yolda { color: #23689e; background: #e5f3ff; }
.delivery-stage.teslim_edildi { color: var(--brand); background: var(--brand-soft); }

/* Müşteri iletişimi ile tam teslimat adresini kartın okunabilir ana bölümünde gösterir. */
.delivery-customer { display: flex; align-items: center; gap: 10px; }
.delivery-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; color: var(--brand); background: var(--brand-soft); display: grid; place-items: center; }
.delivery-customer strong, .delivery-customer a { display: block; }
.delivery-customer strong { font-size: 11px; }
.delivery-customer a { margin-top: 3px; color: #41705f; font-size: 9px; font-weight: 750; text-decoration: none; }
.delivery-destination { min-height: 76px; padding: 12px; border-radius: 14px; background: #f6f8fa; display: flex; align-items: flex-start; gap: 9px; }
.delivery-destination > i { color: var(--danger); }
.delivery-destination small, .delivery-destination strong { display: block; }
.delivery-destination small { color: var(--muted); font-size: 8px; font-weight: 750; }
.delivery-destination strong { margin-top: 4px; font-size: 10px; line-height: 1.45; }
.delivery-note { padding: 8px 10px; border: 1px dashed #e5ba76; border-radius: 11px; color: #775d36; background: #fffaf0; display: flex; gap: 7px; font-size: 9px; }

/* Teslimat ilerlemesini dört düğüm ve bunları birleştiren çizgiyle görünür kılar. */
.delivery-progress { height: 22px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.delivery-progress::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #e2e7eb; transform: translateY(-50%); }
.delivery-progress span { z-index: 1; justify-self: center; width: 20px; height: 20px; border-radius: 50%; color: #a2adb8; background: #fff; display: grid; place-items: center; font-size: 9px; }
.delivery-progress span.complete { color: #fff; background: var(--brand); }

/* Kurye, teslim zamanı ve finansal tutarları iki satırlı kompakt özet alanında tutar. */
.delivery-operational-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.delivery-operational-meta > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; }
.delivery-operational-meta small, .delivery-operational-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-operational-meta small { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .04em; }
.delivery-operational-meta strong { margin-top: 3px; font-size: 10px; }
.delivery-order-card > footer { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.delivery-order-card > footer .btn { font-size: 9px; font-weight: 800; }
.delivery-empty { grid-column: 1 / -1; min-height: 280px; border: 1px dashed #cfd7df; border-radius: 20px; color: var(--muted); display: grid; place-items: center; align-content: center; text-align: center; }
.delivery-empty i { font-size: 34px; }
.delivery-empty strong { margin-top: 8px; color: var(--text); }
.delivery-empty p { margin: 4px 0 0; font-size: 10px; }
.delivery-pagination { min-height: 56px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; }

/* Teslimat ekleme ve yönetim modallarının bilgi alanlarını belirginleştirir. */
.smart-toolbar > div:first-child { min-width: 180px; }
.smart-toolbar h2 { margin: 0; font-size: 14px; font-weight: 900; }
.smart-toolbar span { color: var(--muted); font-size: 10px; }
.smart-toolbar .filter-search { flex: 1; }
.smart-toolbar .form-select { width: auto; min-width: 150px; }
.smart-toolbar .compact-select { min-width: 105px; }
.delivery-address { display: block; max-width: 290px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-span-2 { grid-column: span 2; }
.manage-delivery-contact { padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); display: flex; justify-content: space-between; gap: 10px; }
.manage-delivery-contact a { color: var(--brand); text-decoration: none; font-size: 11px; font-weight: 800; }
.manage-delivery-contact > span { color: #52606d; font-size: 11px; font-weight: 900; }

/* Tarih aralıklı rapor filtrelerini özet kartlarından sonra yatay bir komut çubuğunda gösterir. */
.report-filter-bar { padding: 14px 16px; display: flex; align-items: end; gap: 12px; }
.report-filter-bar label { min-width: 180px; }
.report-filter-bar label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.report-filter-bar .btn { min-height: 38px; }

/* Yeni operasyon bileşenlerini tablet ve mobil genişliklerinde yeniden dizer. */
@media (max-width: 1280px) {
    .kiosk-table-grid { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
    .kiosk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .delivery-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-live-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .kiosk-hero, .kds-command, .salon-commandbar, .order-filterbar, .smart-toolbar, .report-filter-bar { align-items: stretch; flex-direction: column; }
    .kiosk-table-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .metric-strip, .delivery-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .command-search, .filter-search { width: 100%; min-width: 0; }
    .order-filterbar .form-select, .order-filterbar .form-control, .smart-toolbar .form-select { width: 100%; }
    .report-filter-bar label { min-width: 0; width: 100%; }
    .delivery-filterbar { grid-template-columns: 1fr 1fr; }
    .delivery-filterbar .filter-search { grid-column: 1 / -1; }
    .delivery-flow-guide { overflow-x: auto; justify-content: flex-start; }
    .delivery-flow-guide > div { min-width: 150px; }
}
@media (max-width: 600px) {
    .kiosk-table-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; }
    .kiosk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kiosk-table-card { min-height: 158px; }
    .metric-strip, .delivery-stats { grid-template-columns: 1fr 1fr; }
    .delivery-form-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: auto; }
    .table-footer { align-items: flex-start; flex-direction: column; }
    .delivery-card-grid, .delivery-filterbar { grid-template-columns: 1fr; }
    .delivery-filterbar .filter-search { grid-column: auto; }
    .delivery-pagination { align-items: flex-start; flex-direction: column; }
    .delivery-order-card > footer { grid-template-columns: 1fr; }
}

/* Yönetim modüllerine tek kopya görünümü yerine iş alanına göre değişen görsel kimlik verir. */
.module-hero {
    --module-accent: #55c7a8;
    --module-ink: #102c26;
    min-height: 190px;
    margin-bottom: 12px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(125deg, var(--module-ink), #1f6f5c 65%, var(--module-accent));
    box-shadow: 0 20px 52px rgba(24,34,48,.16);
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 20px;
}
.module-hero::before { content: ""; width: 310px; height: 310px; position: absolute; right: -115px; top: -150px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025); }
.module-hero-catalog { --module-accent: #f6a642; --module-ink: #352315; background: radial-gradient(circle at 68% -30%, rgba(255,214,143,.3), transparent 34%), linear-gradient(125deg,#2b1e16,#684025 62%,#c9782f); }
.module-hero-recipe { --module-accent: #98d7ba; --module-ink: #173229; background: linear-gradient(130deg,#162e28,#275e4c 62%,#4c9c7e); }
.module-hero-inventory { --module-accent: #65bad4; --module-ink: #122a34; background: linear-gradient(125deg,#102934,#174d60 64%,#2a809c); }
.module-hero-ledger { --module-accent: #83a7cf; --module-ink: #1d2938; background: repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 1px,transparent 1px 48px), linear-gradient(125deg,#182433,#314963 65%,#52769b); }
.module-hero-count { --module-accent: #c3aaee; --module-ink: #2d2245; background: linear-gradient(125deg,#2c2343,#5d4785 64%,#8b6eb7); }
.module-hero-purchase { --module-accent: #f2be69; --module-ink: #382914; background: linear-gradient(125deg,#342714,#725525 64%,#b78132); }
.module-hero-cash, .module-hero-finance { --module-accent: #73dcbb; --module-ink: #101e20; background: radial-gradient(circle at 80% 10%,rgba(110,230,193,.18),transparent 28%), linear-gradient(125deg,#101d20,#203f3e 65%,#377f6d); }
.module-hero-document { --module-accent: #b5c7ff; --module-ink: #1a2749; background: linear-gradient(125deg,#182543,#314b7c 65%,#5d78bc); }
.module-hero-einvoice { --module-accent: #6dded1; --module-ink: #102d38; background: linear-gradient(125deg,#102b36,#155d67 65%,#268e91); }
.module-hero-error { --module-accent: #ff9aa6; --module-ink: #481d27; background: linear-gradient(125deg,#431a24,#842f3e 65%,#c5535f); }
.module-hero-report { --module-accent: #cdb5ff; --module-ink: #241b3d; background: radial-gradient(circle at 76% 20%,rgba(216,192,255,.2),transparent 32%), linear-gradient(125deg,#211936,#443065 65%,#7454a4); }
.module-hero-settings, .module-hero-floor, .module-hero-routing, .module-hero-integration, .module-hero-access, .module-hero-branches { --module-accent: #8db9ff; --module-ink: #182945; background: linear-gradient(125deg,#172743,#2c4b76 65%,#4a77ae); }
.module-hero-crm { --module-accent: #e2a8e7; --module-ink: #321f43; background: linear-gradient(125deg,#301d41,#603d78 65%,#9668ad); }

/* Modül başlığının ikon, durum ve eylemlerini yoğun veride kolay taranır tutar. */
.module-hero-mark { width: 72px; height: 72px; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.1); backdrop-filter: blur(9px); display: grid; place-items: center; }
.module-hero-mark i { font-size: 30px; color: var(--module-accent); }
.module-hero-copy { position: relative; z-index: 1; }
.module-hero-copy .eyebrow { color: var(--module-accent); }
.module-hero-copy h1 { margin: 0; font-size: clamp(26px,3vw,36px); font-weight: 900; letter-spacing: -.9px; }
.module-hero-copy p { max-width: 760px; margin: 7px 0 12px; color: rgba(255,255,255,.68); font-size: 12px; }
.module-live-note { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.module-live-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--module-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--module-accent) 20%, transparent); }
.module-hero-actions { max-width: 500px; position: relative; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.module-hero-actions .btn { min-height: 42px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; }
.module-hero-actions .btn-light { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(9px); }
.module-hero-actions .btn-light:hover { background: #fff; color: var(--module-ink); }

/* Aynı iş ailesindeki sayfaları kiosk benzeri yatay modül rayında toplar. */
.module-context-nav { position: sticky; top: 72px; z-index: 22; margin-bottom: 16px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(24,34,48,.07); backdrop-filter: blur(12px); display: flex; gap: 5px; overflow-x: auto; }
.module-context-nav a { min-height: 36px; padding: 0 13px; border-radius: 9px; color: #667384; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; font-size: 10px; font-weight: 850; }
.module-context-nav a:hover { color: var(--brand); background: #f2f6f5; }
.module-context-nav a.active { color: #fff; background: #182230; box-shadow: 0 7px 14px rgba(24,34,48,.15); }
.module-alerts .alert { margin-bottom: 10px; border: 0; border-radius: 14px; font-size: 11px; }

/* Özet verileri modül rengine uyarlanan kompakt kontrol kartlarında gösterir. */
.module-metrics { margin-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 10px; }
.module-metrics article { min-height: 104px; padding: 17px 18px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(24,34,48,.05); }
.module-metrics article::after { content: ""; width: 84px; height: 84px; position: absolute; right: -35px; bottom: -37px; border-radius: 50%; background: #eef7f4; }
.module-metrics article > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.module-metrics article > strong { max-width: calc(100% - 36px); margin-top: 10px; display: block; overflow: hidden; color: #24303e; font-size: 21px; font-weight: 900; letter-spacing: -.5px; text-overflow: ellipsis; white-space: nowrap; }
.module-metrics article > i { width: 34px; height: 34px; position: absolute; right: 14px; top: 14px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); display: grid; place-items: center; }
.module-metrics-report article { border-top: 3px solid #7454a4; }
.module-metrics-finance article, .module-metrics-cash article { background: linear-gradient(145deg,#fff,#f2faf7); }
.module-metrics-error article { border-color: #f5c5ca; background: #fffafb; }
.module-metrics-catalog article:nth-child(2n) > i { color: #a96326; background: #fff1df; }

/* Rapor tarih aralığını ayrı bir analitik komut yüzeyinde düzenler. */
.report-command { margin-bottom: 16px; padding: 15px 17px; border-left: 5px solid #7454a4; display: flex; align-items: end; gap: 12px; }
.report-command > div { min-width: 215px; margin-right: auto; }
.report-command > div strong { display: block; font-size: 14px; }
.report-command label { min-width: 175px; }
.report-command label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }

/* Tablo yüzeylerini sidebar olmadan tam genişlikte ve sayfaya özgü başlık çizgisiyle sunar. */
.module-table-stack { display: grid; gap: 16px; }
.module-data-card { --data-accent: var(--brand); border-top: 3px solid var(--data-accent); }
.module-data-card-catalog { --data-accent: #d78335; }
.module-data-card-recipe { --data-accent: #4d9a7b; }
.module-data-card-inventory, .module-data-card-ledger { --data-accent: #287d9a; }
.module-data-card-count { --data-accent: #8468b0; }
.module-data-card-purchase { --data-accent: #aa7830; }
.module-data-card-finance, .module-data-card-cash { --data-accent: #377f6d; }
.module-data-card-document { --data-accent: #5573b1; }
.module-data-card-einvoice { --data-accent: #268e91; }
.module-data-card-error { --data-accent: #c5535f; }
.module-data-card-report { --data-accent: #7454a4; }
.module-data-card-settings, .module-data-card-floor, .module-data-card-routing, .module-data-card-integration, .module-data-card-access, .module-data-card-branches { --data-accent: #4a77ae; }
.module-data-card-crm { --data-accent: #8f63a7; }
.module-data-head { min-height: 78px; padding: 13px 15px 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.module-data-title { min-width: 210px; display: flex; align-items: center; gap: 11px; }
.module-data-title > span { width: 35px; height: 35px; border-radius: 10px; color: var(--data-accent); background: color-mix(in srgb,var(--data-accent) 10%,#fff); display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.module-data-title h2 { margin: 0; font-size: 15px; font-weight: 900; }
.module-data-title small { margin-top: 3px; color: var(--muted); display: block; font-size: 9px; }
.module-data-tools { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.module-data-tools .filter-search { width: min(360px,31vw); }
.module-data-tools .form-select { width: auto; min-width: 145px; font-size: 11px; }
.module-data-tools .compact-select { min-width: 105px; }
.module-table thead th { padding-top: 13px; padding-bottom: 13px; background: #f8fafb; }
.module-table tbody tr { transition: background .14s ease; }
.module-table tbody tr:hover { background: #fbfdfd; }
.module-table .money-cell { color: #1f584b; white-space: nowrap; }

/* Durum ve değişmez kayıt işaretlerini veri anlamına göre ayırt eder. */
.record-state { width: max-content; padding: 5px 8px; border-radius: 999px; color: #657181; background: #eef1f4; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 850; text-transform: capitalize; }
.record-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.record-state.is-active, .record-state.state-acik, .record-state.state-aktif, .record-state.state-tamamlandi, .record-state.state-olusturuldu { color: #15745d; background: #e7f7f1; }
.record-state.is-passive, .record-state.state-pasif { color: #7b8490; background: #eef1f4; }
.record-state.state-iptal, .record-state.state-hata, .record-state.state-basarisiz { color: #b43f4c; background: #fff0f2; }
.record-state.state-bekliyor, .record-state.state-taslak { color: #9a671e; background: #fff3df; }
.immutable-note { color: #8b95a2; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 750; }
.empty-cell i, .empty-cell strong, .empty-cell span { display: block; }
.empty-cell i { margin-bottom: 8px; font-size: 25px; }
.empty-cell span { margin-top: 4px; font-size: 10px; }

/* Ekleme ve düzenleme formlarını geniş, sayfa içi modal çalışma alanında sunar. */
.module-form-modal .modal-content { border-radius: 22px; box-shadow: 0 28px 80px rgba(24,34,48,.24); overflow: hidden; }
.module-form-modal .modal-header { padding: 20px 22px; border: 0; background: #f7f9fa; }
.module-form-modal .modal-title { margin: 0; font-size: 20px; font-weight: 900; }
.module-form-modal .modal-body { padding: 22px; }
.module-form-modal .modal-footer { padding: 14px 22px 20px; border: 0; }
.module-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.module-form-grid-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
.module-field { min-width: 0; }
.module-field.field-wide { grid-column: 1 / -1; }
.module-field > span { margin-bottom: 6px; color: #5d6877; display: block; font-size: 10px; font-weight: 850; }
.module-field .form-control, .module-field .form-select { min-height: 43px; border-color: #dfe4e9; border-radius: 11px; font-size: 12px; }
.module-field .form-control:focus, .module-field .form-select:focus { border-color: #76b6a6; box-shadow: 0 0 0 4px rgba(31,111,92,.09); }
.module-check { min-height: 48px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.module-check > span { color: #5d6877; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; }
.module-check > span i { display: none; }
.module-check input:checked + span { color: var(--brand); }

/* Tekil restoran ve entegrasyon ayarlarını rehber ile geniş form halinde kendi sayfasına yerleştirir. */
.settings-workbench { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 16px; align-items: start; }
.settings-guide { min-height: 390px; padding: 25px; position: sticky; top: 130px; border-radius: 20px; color: #fff; background: linear-gradient(150deg,#182a48,#365c8d); box-shadow: 0 16px 40px rgba(40,69,107,.18); }
.settings-workbench-integration .settings-guide { background: linear-gradient(150deg,#12313a,#237077); }
.settings-guide > i { width: 52px; height: 52px; border-radius: 16px; color: #b9d5ff; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 23px; }
.settings-guide h2 { margin: 24px 0 8px; font-size: 22px; font-weight: 900; }
.settings-guide p { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.7; }
.settings-guide ul { margin: 24px 0 0; padding: 0; list-style: none; }
.settings-guide li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 10px; }
.settings-main-form { padding: 22px; }
.settings-form-head { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.settings-form-head h2 { margin: 0; font-size: 21px; font-weight: 900; }
.settings-form-head > i { color: #4a77ae; font-size: 24px; }
.settings-main-form footer { margin: 22px -22px -22px; padding: 16px 22px; border-top: 1px solid var(--line); background: #f8fafb; display: flex; align-items: center; justify-content: space-between; }
.settings-main-form footer > span { color: var(--muted); font-size: 9px; font-weight: 800; }

/* Yeni modül çalışma alanlarını tablet ve mobil ekranlarda tek kolona indirir. */
@media (max-width: 1050px) {
    .module-hero { grid-template-columns: auto 1fr; }
    .module-hero-actions { max-width: none; grid-column: 1 / -1; justify-content: flex-start; }
    .module-data-head, .report-command { align-items: stretch; flex-direction: column; }
    .module-data-tools { width: 100%; margin-left: 0; }
    .module-data-tools .filter-search { width: 100%; }
    .settings-workbench { grid-template-columns: 240px minmax(0,1fr); }
    .module-form-grid-wide { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .module-hero { min-height: 0; padding: 20px; grid-template-columns: 52px 1fr; border-radius: 19px; }
    .module-hero-mark { width: 52px; height: 52px; border-radius: 16px; }
    .module-hero-mark i { font-size: 23px; }
    .module-hero-copy h1 { font-size: 25px; }
    .module-hero-actions .btn { flex: 1; justify-content: center; }
    .module-context-nav { top: 69px; }
    .module-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .module-data-tools { flex-direction: column; }
    .module-data-tools .form-select { width: 100%; }
    .settings-workbench { grid-template-columns: 1fr; }
    .settings-guide { min-height: 0; position: static; }
    .module-form-grid, .module-form-grid-wide { grid-template-columns: 1fr; }
    .settings-main-form footer { align-items: stretch; flex-direction: column; gap: 12px; }
}

/* Masa bazlı KDS çalışma alanını yoğun siparişte dengeli ve okunabilir bir ızgarada tutar. */
.kds-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kitchen-print-sheet { display: none; }
.kds-product-row.kds-ticket-new { animation: kds-product-pulse .8s ease-in-out 5; }
@keyframes kds-product-pulse { 50% { border-color: #f4b53f; background: #fff8df; transform: translateY(-2px); } }

/* KDS komut alanını saat, istasyon, ses ve kiosk işlemleri için güçlü bir üst çalışma çubuğuna dönüştürür. */
.kds-command { margin-bottom: 12px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #15202d, #202f40); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 16px 38px rgba(20,31,44,.16); }
.kds-command h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.03em; }
.kds-command p { margin: 4px 0 0; color: #aeb8c5; font-size: 11px; }
.kds-command .eyebrow { color: #70d4b9; }
.kds-command-tools { display: flex; align-items: center; gap: 8px; }
.kds-command-tools time { margin-right: 6px; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.kds-station-control { min-width: 175px; margin: 0; }
.kds-station-control > span { display: block; margin: 0 0 3px 3px; color: #aeb8c5; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.kds-station-control .form-select { width: 100%; min-height: 36px; border: 0; font-size: 10px; font-weight: 750; }
.kds-icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }

/* Mutfak yükünü eşit boyutlu ve durum rengi taşıyan özet kartlarında gösterir. */
.kds-overview { margin-bottom: 16px; display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 9px; }
.kds-overview-card { min-height: 92px; padding: 13px 15px; border: 1px solid #e3e7eb; border-top: 4px solid #8390a0; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(24,34,48,.045); }
.kds-overview-card > span, .kds-overview-card small { display: block; color: var(--muted); font-size: 9px; font-weight: 750; }
.kds-overview-card strong { display: block; margin: 3px 0 1px; color: #1b2735; font-size: 27px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.kds-overview-card.orders { border-top-color: #35506d; }
.kds-overview-card.waiting { border-top-color: #7c8794; }
.kds-overview-card.cooking { border-top-color: #efa32d; }
.kds-overview-card.ready { border-top-color: #28a37f; }
.kds-overview-card.cancelled { border-top-color: #d7515e; }

/* Her masa veya satış kaynağını kendi ürün listesini taşıyan tek operasyon kartı olarak biçimlendirir. */
.kds-order-card { overflow: hidden; border: 1px solid #dfe5ea; border-top: 5px solid #7f8b99; border-radius: 18px; background: #fff; box-shadow: 0 13px 34px rgba(24,34,48,.08); }
.kds-order-card.hazirlaniyor { border-top-color: #efa32d; }
.kds-order-card.hazir { border-top-color: #28a37f; }
.kds-order-card.iptal { border-top-color: #d7515e; }
.kds-order-card.overdue { border-color: #e5a0a6; border-top-color: #d7515e; box-shadow: 0 13px 34px rgba(164,45,58,.12); }
.kds-order-head { min-height: 92px; padding: 16px 17px 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; background: linear-gradient(180deg, #fff, #fbfcfd); }
.kds-order-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.kds-order-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #26384b; font-size: 16px; }
.kds-order-identity > div > span { display: block; color: #7d8895; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.kds-order-identity h2 { overflow: hidden; margin: 2px 0; color: #182432; font-size: 20px; line-height: 1.1; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.kds-order-identity small { display: block; color: #7a8694; font-size: 9px; font-weight: 700; }
.kds-order-age { min-width: 52px; padding: 6px 8px; border-radius: 12px; color: #566271; background: #eef1f4; text-align: center; }
.kds-order-age strong, .kds-order-age span { display: block; }
.kds-order-age strong { font-size: 19px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.kds-order-age span { margin-top: 2px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.kds-order-age.urgent { color: #a82e3b; background: #fff0f2; }

/* Masa içindeki ürün dağılımını bekleyen, hazırlanan, hazır ve iptal rozetleriyle özetler. */
.kds-order-statuses { padding: 0 17px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.kds-order-statuses span { min-height: 25px; padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #596674; background: #eef1f4; font-size: 8px; font-weight: 850; }
.kds-order-statuses b { min-width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7d8997; font-size: 7px; }
.kds-order-statuses .hazirlaniyor { color: #8a5b0e; background: #fff5df; }
.kds-order-statuses .hazirlaniyor b { background: #e69b24; }
.kds-order-statuses .hazir { color: #176c55; background: #e8f8f3; }
.kds-order-statuses .hazir b { background: #28a37f; }
.kds-order-statuses .iptal { color: #9e3540; background: #fff0f2; }
.kds-order-statuses .iptal b { background: #d7515e; }

/* Masa kartındaki ürünleri sıkışık görünmeden, tekil durum eylemleriyle satır halinde listeler. */
.kds-product-list { border-top: 1px solid #e8ebee; }
.kds-product-row { min-height: 94px; padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #eceff2; border-left: 4px solid #8a95a2; background: #fff; transition: .18s ease; }
.kds-product-row.hazirlaniyor { border-left-color: #efa32d; background: #fffdf8; }
.kds-product-row.hazir { border-left-color: #28a37f; background: #f9fefc; }
.kds-product-row.iptal { border-left-color: #d7515e; background: #fff7f8; }
.kds-product-main { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.kds-product-quantity { min-width: 38px; min-height: 38px; padding: 6px; display: grid; place-items: center; border-radius: 11px; color: #1f3143; background: #edf1f4; font-size: 14px; font-weight: 900; }
.kds-product-copy { min-width: 0; flex: 1; }
.kds-product-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kds-product-title h3 { min-width: 0; margin: 0; color: #1b2735; font-size: 14px; line-height: 1.25; font-weight: 900; }
.kds-line-status { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #5f6b78; background: #eef1f4; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.kds-line-status.hazirlaniyor { color: #8a5b0e; background: #fff0cf; }
.kds-line-status.hazir { color: #176c55; background: #ddf5ed; }
.kds-line-status.iptal { color: #9e3540; background: #ffe3e7; }
.kds-product-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; color: #7a8693; font-size: 8px; font-weight: 750; }
.kds-product-meta span { display: inline-flex; align-items: center; gap: 4px; }
.kds-product-options, .kds-product-note, .kds-cancel-reason { margin: 7px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 9px; line-height: 1.35; }
.kds-product-options { color: #596775; }
.kds-product-note { padding: 7px 8px; border-radius: 8px; color: #7d581c; background: #fff4dd; }
.kds-cancel-reason { padding: 7px 8px; border-radius: 8px; color: #9f3340; background: #ffe8eb; }
.kds-product-row form { margin: 0; }
.kds-product-action { min-width: 76px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: #435365; font-size: 9px; font-weight: 900; }
.kds-product-action.hazirlaniyor { color: #543600; background: #f5b747; }
.kds-product-action.hazir { background: #269575; }
.kds-product-action:disabled { opacity: .5; }
.kds-cancel-confirm { max-width: 78px; display: inline-flex; align-items: center; gap: 5px; color: #aa3441; font-size: 8px; line-height: 1.2; font-weight: 900; text-align: center; }

/* Masa düzeyindeki yazdırma eylemini ürün akışından ayıran sakin bir kart altlığı oluşturur. */
.kds-order-footer { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f5f7f9; }
.kds-order-footer > div { display: flex; align-items: center; gap: 7px; color: #7a8693; font-size: 8px; font-weight: 800; }
.kds-order-footer .btn { min-height: 36px; padding-inline: 14px; font-size: 9px; font-weight: 850; }
.kds-board-empty { min-height: 360px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #ccd3da; border-radius: 20px; color: #778391; background: #fff; }
.kds-board-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #288b70; background: #e5f7f1; font-size: 25px; }
.kds-board-empty strong { margin-top: 12px; color: #293746; font-size: 17px; }
.kds-board-empty p { max-width: 380px; margin: 4px 0 0; font-size: 10px; }

/* Mutfak kartlarını tablet ve mobil genişliklerinde tekil ürün eylemleri korunacak biçimde yeniden dizer. */
@media (max-width: 1280px) {
    .kds-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kds-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .kds-command { align-items: stretch; flex-direction: column; }
    .kds-command-tools { flex-wrap: wrap; }
    .kds-station-control { flex: 1; }
}
@media (max-width: 600px) {
    .kds-order-grid { grid-template-columns: 1fr; }
    .kds-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kds-overview-card.orders { grid-column: 1 / -1; }
    .kds-command-tools time { width: 100%; }
    .kds-product-row { grid-template-columns: 1fr; }
    .kds-product-action { width: 100%; }
    .kds-cancel-confirm { max-width: none; }
}

/* Giriş formu ile Android ve iOS kurulum rehberini dengeli iki sütunlu PWA karşılama alanında birleştirir. */
.auth-workspace { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); align-items: stretch; gap: 22px; }
.auth-workspace .auth-card { width: 100%; }
.auth-login-card { display: flex; flex-direction: column; justify-content: center; }
.install-guide-card { padding: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; color: #fff; background: radial-gradient(circle at 88% 10%, rgba(85,194,133,.28), transparent 35%), linear-gradient(145deg, #153c2f, #0c271e); box-shadow: 0 24px 70px rgba(15,45,35,.22); }
.install-eyebrow { color: #8ee0b5; }
.install-guide-card h2 { max-width: 520px; margin: 6px 0 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 850; letter-spacing: -.7px; }
.install-lead { max-width: 560px; margin: 0 0 22px; color: #bed1c8; font-size: 13px; line-height: 1.6; }
.install-platform { padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.06); transition: border-color .2s ease, background .2s ease; }
.install-platform + .install-platform { margin-top: 12px; }
.install-platform.is-current { border-color: rgba(107,221,156,.6); background: rgba(87,196,133,.12); box-shadow: inset 3px 0 #54c989; }
.install-platform-head { display: flex; align-items: center; gap: 11px; }
.install-platform-head strong, .install-platform-head small { display: block; }
.install-platform-head strong { font-size: 14px; }
.install-platform-head small { margin-top: 2px; color: #a9bfb5; font-size: 10px; }
.platform-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; }
.platform-icon.android { background: #249f62; }
.platform-icon.ios { color: #17352a; background: #f4f7f5; }
.install-steps { margin: 14px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 9px; color: #d7e3de; font-size: 11px; line-height: 1.45; }
.install-steps li > span { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #8ee0b5; background: rgba(100,222,153,.13); font-size: 9px; font-weight: 900; }
.install-steps p { margin: 2px 0 0; }
.install-platform [data-pwa-install] { margin-top: 14px; }
.install-status { margin-top: 16px; padding: 11px 13px; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #bbd0c6; background: rgba(0,0,0,.16); font-size: 10px; line-height: 1.45; }

/* Ortak bildirim sayfası başlığını açıklama ve ana eylem arasında duyarlı biçimde düzenler. */
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); font-weight: 900; letter-spacing: -.8px; }
.page-heading p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.surface-card-title { min-height: 70px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.surface-card-title > i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); font-size: 17px; }
.empty-state { color: var(--muted); text-align: center; }
.empty-state > i { display: block; margin-bottom: 12px; color: #9aa5b1; font-size: 30px; }

/* Bildirim merkezindeki cihaz izni kartını içerik ve tek ana eylem etrafında toplar. */
.notification-device-card { margin-bottom: 18px; padding: 18px 20px; border: 1px solid #cfe5db; border-radius: 18px; display: flex; align-items: center; gap: 15px; background: linear-gradient(120deg, #fff, #f2faf6); box-shadow: var(--shadow); }
.notification-device-icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 20px; }
.notification-device-card p { font-size: 11px; }
.notification-list { display: grid; gap: 10px; }
.notification-empty { min-height: 260px; padding: 40px; border: 1px dashed #cfd8d3; border-radius: 20px; display: grid; place-items: center; align-content: center; background: #fff; }

/* Bildirim satırlarını seviye, metin ve eylemler için taşmasız dört bölümlü yapıda gösterir. */
.notification-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; background: #fff; box-shadow: 0 7px 22px rgba(24,34,48,.04); }
.notification-item.is-unread { border-color: #a8d6c8; background: linear-gradient(90deg, #f0faf6, #fff 42%); box-shadow: inset 3px 0 var(--brand-2), 0 8px 24px rgba(31,111,92,.07); }
.notification-level { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #3d6996; background: #eaf2fb; font-size: 17px; }
.notification-level.level-basari { color: #197353; background: #e4f7ef; }
.notification-level.level-uyari { color: #976211; background: #fff2d9; }
.notification-level.level-kritik { color: #a93747; background: #ffe8ec; }
.notification-copy { min-width: 0; }
.notification-copy h2 { font-weight: 850; }
.notification-copy p { margin: 5px 0; color: #4f5c6b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-copy small { color: var(--muted); font-size: 9px; }
.notification-actions { display: flex; align-items: center; gap: 7px; }
.notification-actions form { margin: 0; }

/* Bildirim oluşturma formunu ve geçmiş tablosunu içerik yoğunluğuna uygun yüzeylerde tutar. */
.notification-compose-card form { padding: 20px; }
.notification-compose-card .form-label { font-size: 11px; font-weight: 800; }
.notification-compose-card .form-text { font-size: 9px; }
.notification-history-table { margin: 0; }
.notification-history-table td strong, .notification-history-table td small { display: block; }
.notification-history-table td small { margin-top: 3px; font-size: 9px; }

/* Üst bardaki bildirim zilini profil alanından bağımsız, rozetli bir kontrol olarak gösterir. */
.notification-bell-button { position: relative; display: grid; }
.notification-badge { min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; color: #fff; background: #d94356; font-size: 8px; font-weight: 900; }
.notification-dropdown { width: min(360px, calc(100vw - 24px)); margin-top: 10px !important; overflow: hidden; }
.notification-dropdown-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.notification-dropdown-head strong { font-size: 12px; }
.notification-dropdown-head a { font-size: 9px; font-weight: 800; text-decoration: none; }
.notification-dropdown-list { max-height: 330px; overflow-y: auto; }
.notification-dropdown-empty { margin: 0; padding: 24px 16px; color: var(--muted); font-size: 10px; text-align: center; }
.notification-preview-item { padding: 12px 16px; border-bottom: 1px solid #f0f2f4; display: block; color: var(--text); text-decoration: none; }
.notification-preview-item:last-child { border-bottom: 0; }
.notification-preview-item:hover { color: var(--brand); background: var(--brand-soft); }
.notification-preview-item.is-unread { box-shadow: inset 3px 0 var(--brand-2); background: #f5fbf8; }
.notification-preview-item strong, .notification-preview-item span { display: block; }
.notification-preview-item strong { font-size: 10px; }
.notification-preview-item span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }

/* Demo durumunu bütün ekranlarda okunabilir sabit bant ve açıklamalı pasif kontrollerle gösterir. */
.demo-mode-banner { margin: 0; padding: 10px 18px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #6d4600; background: linear-gradient(90deg, #fff4cf, #ffe8a3); border-bottom: 1px solid #e9c96e; font-size: 11px; line-height: 1.4; text-align: center; }
.demo-mode-banner i { font-size: 15px; }
.demo-mode-banner strong { font-weight: 900; }
[data-demo-disabled="true"] { opacity: .58 !important; cursor: not-allowed !important; filter: saturate(.55); }
[data-demo-disabled="true"] * { cursor: not-allowed !important; }
.auth-body .demo-mode-banner { width: 100%; position: fixed; inset: 0 0 auto; z-index: 20; }

/* PWA giriş ve bildirim ekranlarını tablet ve telefonlarda tek sütunlu dokunma akışına dönüştürür. */
@media (max-width: 860px) {
    .auth-body { align-items: start; }
    .auth-workspace { grid-template-columns: 1fr; }
    .auth-login-card { order: 1; }
    .install-guide-card { order: 2; }
    .notification-item { grid-template-columns: auto minmax(0, 1fr); }
    .notification-actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
    .auth-body { padding: 12px; }
    .auth-card, .install-guide-card { padding: 24px 20px; border-radius: 20px; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .notification-device-card { align-items: stretch; flex-wrap: wrap; }
    .notification-device-card .btn { width: 100%; }
    .notification-item { padding: 14px; }
    .notification-level { width: 36px; height: 36px; }
    .notification-actions { grid-column: 1 / -1; }
}

/* Mutfak yazdırmasında uygulama arayüzünü gizleyip seçili adisyonu taşmasız 80 mm termal düzene taşır. */
@media print {
    @page { size: auto; margin: 0; }
    body:has(#kitchenPrintSheet) * { visibility: hidden !important; }
    #kitchenPrintSheet, #kitchenPrintSheet * { visibility: visible !important; }
    html, body { width: 80mm; margin: 0 !important; padding: 0 !important; background: #fff !important; }
    #kitchenPrintSheet { width: 80mm; box-sizing: border-box; display: block !important; position: absolute; inset: 0 auto auto 0; padding: 4mm; color: #000; background: #fff; font-family: Arial, sans-serif; }
    #kitchenPrintSheet span, #kitchenPrintSheet strong { margin-top: 0; display: block; font-size: inherit; }
    #kitchenPrintSheet .receipt-kicker { margin: 0 0 1mm; font-size: 7pt; font-weight: 700; letter-spacing: .12em; text-align: center; }
    #kitchenPrintSheet h1 { margin: 0; padding-bottom: 0; border-bottom: 0; font-size: 17pt; line-height: 1.1; text-align: center; }
    #kitchenPrintSheet .receipt-number { margin: 1mm 0 3mm; padding-bottom: 2.5mm; border-bottom: .4mm solid #000; font-size: 8pt; text-align: center; }
    #kitchenPrintSheet .receipt-meta { margin: 0 0 2mm; display: grid; grid-template-columns: 1fr 1fr; gap: 1mm; font-size: 7.5pt; }
    #kitchenPrintSheet .receipt-meta span:nth-child(even) { text-align: right; }
    #kitchenPrintSheet ul { margin: 0; padding: 0; border-top: .3mm dashed #555; list-style: none; }
    #kitchenPrintSheet li { padding: 2.5mm 0; border-bottom: .3mm dashed #777; page-break-inside: avoid; }
    #kitchenPrintSheet .receipt-line-head { display: grid; grid-template-columns: 9mm 1fr auto; align-items: start; gap: 1.5mm; font-size: 10pt; font-weight: 700; }
    #kitchenPrintSheet .receipt-line-status { padding: .5mm 1mm; border: .25mm solid #000; font-size: 6.5pt; }
    #kitchenPrintSheet .receipt-line-detail { margin: 1mm 0 0 10.5mm; font-size: 7.5pt; line-height: 1.3; }
    #kitchenPrintSheet .receipt-line-cancel { font-weight: 700; text-decoration: line-through; }
    #kitchenPrintSheet .receipt-footer { margin: 3mm 0 0; padding-top: 2mm; border-top: .4mm solid #000; font-size: 7pt; text-align: center; }
}
