* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    color: #333;
    min-height: 100vh;
}

/* Header */
.header {
    background: #fff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ea580c;
}

.logo-alt {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all .2s;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-link.active {
    background: #f97316;
    color: #fff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f8f8f8;
}

.nav-user-ad {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.nav-rol {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}

.nav-rol-patron {
    background: #ffedd5;
    color: #c2410c;
}

.nav-rol-garson {
    background: #dbeafe;
    color: #1d4ed8;
}

.nav-cikis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
    background: #fff;
}

.nav-cikis:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5;
}

.nav-power {
    display: block;
}

.nav-adisyon {
    margin-left: auto;
}

.nav-geri {
    background: #f97316;
    color: #fff !important;
    font-weight: 600;
}

.nav-geri:hover {
    background: #ea580c !important;
    color: #fff !important;
}

/* Main */
.main {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title h2 {
    font-size: 28px;
    margin-bottom: 4px;
}

.page-title p {
    color: #888;
    margin-bottom: 24px;
}

/* Masa Grid */
.masa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.masa-kart {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e5e5e5;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.masa-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.masa-kart.bos {
    border-color: #22c55e;
}

.masa-kart.bos .masa-durum {
    color: #22c55e;
    font-weight: 600;
}

.masa-kart.dolu {
    border-color: #f97316;
    background: #fff7ed;
}

.masa-kart.dolu .masa-durum {
    color: #f97316;
    font-weight: 600;
}

.masa-no {
    font-size: 18px;
    font-weight: 700;
}

.masa-tutar {
    font-size: 16px;
    color: #f97316;
    font-weight: 600;
}

/* Adisyon Layout */
.adisyon-layout {
    display: grid;
    grid-template-columns: 200px 1fr 340px;
    height: calc(100vh - 70px);
    gap: 0;
}

.kategori-sidebar {
    background: #fff;
    padding: 16px 8px;
    overflow-y: auto;
    border-right: 1px solid #eee;
}

.kategori-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all .2s;
}

.kategori-item:hover {
    background: #f5f5f5;
}

.kategori-item.active {
    background: #f97316;
    color: #fff;
}

.kat-ikon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.kategori-item.active .kat-ikon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ikon-gunun-menu { background: #ede9fe; color: #7c3aed; }
.ikon-gunun-menu::before { content: 'G'; }

.ikon-pizza  { background: #ffedd5; color: #ea580c; }
.ikon-burger { background: #fef3c7; color: #d97706; }
.ikon-izgara { background: #fee2e2; color: #dc2626; }
.ikon-salata { background: #dcfce7; color: #16a34a; }
.ikon-atistirmalik { background: #fef9c3; color: #ca8a04; }
.ikon-icecek { background: #dbeafe; color: #2563eb; }
.ikon-tatli  { background: #fce7f3; color: #db2777; }
.ikon-diger  { background: #f3f4f6; color: #6b7280; }

.ikon-pizza::before       { content: 'P'; }
.ikon-burger::before      { content: 'B'; }
.ikon-izgara::before      { content: 'I'; }
.ikon-salata::before      { content: 'S'; }
.ikon-atistirmalik::before{ content: 'A'; }
.ikon-icecek::before      { content: 'D'; }
.ikon-tatli::before       { content: 'T'; }
.ikon-corba::before       { content: 'C'; }
.ikon-kahvalti::before    { content: 'K'; }
.ikon-makarna::before     { content: 'M'; }
.ikon-diger::before       { content: '?'; }

.ikon-corba  { background: #ffedd5; color: #c2410c; }
.ikon-kahvalti { background: #fef3c7; color: #b45309; }
.ikon-makarna { background: #fce7f3; color: #be185d; }

.urun-alani {
    padding: 24px;
    overflow-y: auto;
}

.kategori-baslik {
    font-size: 24px;
    margin-bottom: 20px;
}

.urun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.urun-kart {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.urun-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249,115,22,.15);
}

.urun-gorsel {
    background: #f0f0f0;
    border-radius: 12px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.urun-gorsel.ikon-gunun-menu { background: #ede9fe; color: #7c3aed; }
.urun-gorsel.ikon-gunun-menu::before { content: 'G'; }

.urun-gorsel.ikon-pizza       { background: #ffedd5; color: #ea580c; }
.urun-gorsel.ikon-burger      { background: #fef3c7; color: #d97706; }
.urun-gorsel.ikon-izgara      { background: #fee2e2; color: #dc2626; }
.urun-gorsel.ikon-salata      { background: #dcfce7; color: #16a34a; }
.urun-gorsel.ikon-atistirmalik{ background: #fef9c3; color: #ca8a04; }
.urun-gorsel.ikon-icecek      { background: #dbeafe; color: #2563eb; }
.urun-gorsel.ikon-tatli       { background: #fce7f3; color: #db2777; }

.urun-gorsel.ikon-pizza::before        { content: 'P'; }
.urun-gorsel.ikon-burger::before       { content: 'B'; }
.urun-gorsel.ikon-izgara::before       { content: 'I'; }
.urun-gorsel.ikon-salata::before       { content: 'S'; }
.urun-gorsel.ikon-atistirmalik::before { content: 'A'; }
.urun-gorsel.ikon-icecek::before       { content: 'D'; }
.urun-gorsel.ikon-tatli::before        { content: 'T'; }
.urun-gorsel.ikon-corba::before        { content: 'C'; }
.urun-gorsel.ikon-kahvalti::before     { content: 'K'; }
.urun-gorsel.ikon-makarna::before      { content: 'M'; }

.urun-gorsel.ikon-corba       { background: #ffedd5; color: #c2410c; }
.urun-gorsel.ikon-kahvalti    { background: #fef3c7; color: #b45309; }
.urun-gorsel.ikon-makarna     { background: #fce7f3; color: #be185d; }

.urun-ad {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.urun-fiyat {
    display: block;
    color: #f97316;
    font-weight: 700;
    font-size: 16px;
}

/* Adisyon Sidebar */
.adisyon-sidebar {
    background: #fff;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.adisyon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.adisyon-header h3 {
    font-size: 18px;
}

.masa-badge {
    background: #f97316;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.adisyon-kalemler {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.bos-adisyon {
    color: #aaa;
    text-align: center;
    padding: 20px;
}

.kalem-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.kalem-bilgi {
    display: flex;
    gap: 6px;
    align-items: center;
}

.kalem-adet {
    font-weight: 700;
    color: #f97316;
}

.kalem-sag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kalem-tutar {
    font-weight: 600;
}

.kalem-sil {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.kalem-sil:hover {
    color: #ef4444;
}

.adisyon-toplam {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid #eee;
    font-size: 18px;
}

.adisyon-toplam strong {
    font-size: 28px;
}

.adisyon-butonlar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e5e5e5;
    color: #555;
}

.btn-secondary:hover:not(:disabled) {
    background: #d4d4d4;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover:not(:disabled) {
    background: #16a34a;
}

.masa-kart.siparis-bekliyor {
    border-color: #ef4444;
    background: #fef2f2;
    animation: masa-blink 1s ease-in-out infinite;
}

.masa-kart.siparis-bekliyor .masa-durum,
.masa-kart.siparis-bekliyor .masa-tutar {
    color: #ef4444;
    font-weight: 700;
}

@keyframes masa-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); background: #fef2f2; }
    50% { box-shadow: 0 0 20px 4px rgba(239, 68, 68, 0.4); background: #fee2e2; }
}

.blink-text {
    animation: text-blink 0.8s ease-in-out infinite;
}

@keyframes text-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.siparis-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.siparis-popup.acik {
    display: flex;
}

.siparis-popup-icerik {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 420px;
    width: 100%;
    border: 4px solid #ef4444;
    animation: popup-shake 0.5s;
}

@keyframes popup-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.siparis-popup-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.siparis-popup-baslik h2 {
    color: #ef4444;
    font-size: 22px;
}

.siparis-alarm {
    font-size: 32px;
    animation: text-blink 0.6s infinite;
}

.siparis-popup-masa {
    background: #ef4444;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.siparis-popup-kalemler {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.popup-kalem {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.siparis-popup-toplam {
    font-size: 18px;
    text-align: right;
    margin-bottom: 16px;
}

.siparis-popup-toplam strong {
    font-size: 26px;
    color: #f97316;
}

.siparis-popup-butonlar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-buyuk {
    padding: 16px !important;
    font-size: 17px !important;
}

/* QR Sipariş - Adisyon sayfası */
.qr-siparis-banner {
    background: linear-gradient(135deg, #fef2f2, #fff7ed);
    border: 3px solid #ef4444;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    animation: masa-blink 1.5s ease-in-out infinite;
}

.qr-banner-baslik {
    font-size: 18px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 12px;
}

.qr-banner-siparis {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.qr-banner-siparis:last-child {
    margin-bottom: 0;
}

.qr-banner-zaman {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.qr-banner-liste {
    list-style: none;
    margin-bottom: 12px;
}

.qr-banner-liste li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.qr-banner-liste li span {
    color: #f97316;
    font-weight: 600;
}

.qr-banner-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qr-banner-alt strong {
    font-size: 18px;
    color: #333;
}

.qr-siparis-panel {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.qr-panel-baslik {
    font-weight: 800;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.qr-siparis-kutu {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.qr-siparis-kutu:last-child {
    margin-bottom: 0;
}

.qr-siparis-zaman,
.qr-gecmis-zaman {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.qr-kalem-satir {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.qr-siparis-toplam {
    font-weight: 700;
    text-align: right;
    margin: 8px 0;
    color: #f97316;
}

.qr-siparis-kutu .btn-siparis-onayla,
.qr-banner-alt .btn-siparis-onayla {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    font-size: 14px;
}

.adisyon-bolum-baslik {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #555;
}

.qr-gecmis-panel {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    max-height: 160px;
    overflow-y: auto;
}

.qr-gecmis-baslik {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 8px;
}

.qr-gecmis-kutu {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.qr-gecmis-kalem {
    color: #666;
    font-size: 12px;
}

.mobil-adisyon-bar,
.mobil-adisyon-kapat {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.acik {
    display: flex;
}

.modal-icerik {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.modal-icerik h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.modal-toplam {
    font-size: 18px;
    margin-bottom: 24px;
}

.odeme-secenekler {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.odeme-btn {
    flex: 1;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.odeme-btn.nakit:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.odeme-btn.kart:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.modal-kapat {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
}

.masa-sec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.masa-sec-btn {
    padding: 12px 8px;
    border: 2px solid #22c55e;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.masa-sec-btn.dolu {
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
}

.masa-sec-btn:not(.dolu):hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

/* Ciro */
.donem-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.donem-tab {
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    background: #fff;
    font-weight: 600;
    border: 2px solid #eee;
    transition: all .2s;
}

.donem-tab.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

.ciro-baslik-satir {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-tehlike {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-tehlike:hover {
    background: #b91c1c;
}

.btn-tehlike:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ciro-sifirla-modal {
    max-width: 400px;
}

.ciro-sifirla-uyari {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.ciro-sifirla-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ciro-sifirla-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    font-family: inherit;
}

.ciro-sifirla-butonlar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ciro-kartlar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.ciro-kart {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ciro-kart.ana {
    border-left: 4px solid #f97316;
}

.ciro-label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.ciro-deger {
    display: block;
    font-size: 32px;
    color: #333;
}

.ciro-alt {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-top: 4px;
}

.ciro-tablo-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}

.ciro-tablo-wrap h3 {
    margin-bottom: 16px;
}

.ciro-tablo {
    width: 100%;
    border-collapse: collapse;
}

.ciro-tablo th,
.ciro-tablo td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.ciro-tablo th {
    color: #888;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.odeme-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.odeme-badge.nakit {
    background: #f0fdf4;
    color: #16a34a;
}

.odeme-badge.kart {
    background: #eff6ff;
    color: #2563eb;
}

.bos-mesaj {
    color: #aaa;
    padding: 20px;
    text-align: center;
}

.rapor-kutu {
    margin-bottom: 24px;
}

.rapor-acilir-baslik {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: #333;
    text-align: left;
}

.rapor-acilir-baslik:hover {
    color: #f97316;
}

.rapor-ok {
    font-size: 14px;
    color: #999;
    transition: transform .2s;
}

.rapor-acilir-baslik[aria-expanded="true"] .rapor-ok {
    transform: rotate(180deg);
}

.rapor-acilir-icerik {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.rapor-acilir-icerik[hidden] {
    display: none;
}

.tablo-ipucu {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.satis-adet {
    background: #fff7ed;
    color: #ea580c;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.adisyon-satir {
    cursor: pointer;
    transition: background .15s;
}

.adisyon-satir:hover {
    background: #fff7ed;
}

.adisyon-detay-modal {
    text-align: left;
    max-width: 460px;
}

.adisyon-detay-modal h3 {
    margin-bottom: 12px;
    color: #333;
}

.detay-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.detay-kalemler {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
}

.detay-kalem {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.detay-kalem:last-child {
    border-bottom: none;
}

.detay-toplam {
    text-align: right;
    font-size: 20px;
    margin-bottom: 16px;
}

.detay-toplam strong {
    color: #f97316;
    font-size: 26px;
}

@media (max-width: 900px) {
    /* --- Genel mobil --- */
    .header {
        padding: 10px 14px;
    }

    .logo h1 {
        font-size: 17px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .main {
        padding: 16px;
    }

    .page-title h2 {
        font-size: 22px;
    }

    .masa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .masa-kart {
        padding: 18px 12px;
    }

    .masa-no {
        font-size: 16px;
    }

    .donem-tabs {
        flex-wrap: wrap;
    }

    .donem-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    .ciro-kartlar {
        grid-template-columns: 1fr;
    }

    .ciro-deger {
        font-size: 26px;
    }

    .ciro-tablo-wrap {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ciro-tablo {
        min-width: 480px;
    }

    /* --- Adisyon sayfası mobil --- */
    body.page-adisyon {
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.page-adisyon .header {
        flex-shrink: 0;
    }

    body.page-adisyon .adisyon-layout {
        flex: 1;
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        min-height: 0;
        overflow: hidden;
        height: auto !important;
    }

    .kategori-sidebar {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 10px 12px;
        gap: 6px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .kategori-sidebar::-webkit-scrollbar {
        display: none;
    }

    .kategori-item {
        flex-shrink: 0;
        white-space: nowrap;
        margin-bottom: 0;
        padding: 10px 14px;
        font-size: 14px;
        scroll-snap-align: start;
    }

    .kat-ikon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .urun-alani {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        padding: 16px;
        padding-bottom: 80px;
    }

    .kategori-baslik {
        font-size: 20px;
        margin-bottom: 14px;
        position: sticky;
        top: 0;
        background: #f0f0f0;
        padding: 4px 0 10px;
        z-index: 2;
    }

    .urun-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .urun-kart {
        padding: 12px;
    }

    .urun-gorsel {
        height: 64px;
        font-size: 18px;
    }

    .urun-ad {
        font-size: 14px;
    }

    .urun-fiyat {
        font-size: 14px;
    }

    /* Adisyon paneli - altta gizli, bar ile açılır */
    .mobil-adisyon-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        background: #fff;
        border-top: 2px solid #f97316;
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        border: none;
        font-family: inherit;
        width: 100%;
    }

    .mobil-bar-masa {
        background: #f97316;
        color: #fff;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
    }

    .mobil-bar-ac {
        color: #f97316;
        font-weight: 600;
        font-size: 14px;
    }

    .mobil-adisyon-kapat {
        display: block;
        width: 100%;
        background: #f5f5f5;
        border: none;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        font-family: inherit;
    }

    .adisyon-sidebar {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 70;
        max-height: 75vh;
        border-left: none;
        border-top: 3px solid #f97316;
        border-radius: 16px 16px 0 0;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .adisyon-sidebar.mobil-acik {
        display: flex;
    }

    .mobil-adisyon-bar.gizle {
        display: none;
    }

    .adisyon-kalemler {
        flex: none;
        max-height: 30vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .adisyon-toplam strong {
        font-size: 24px;
    }

    .modal-icerik {
        padding: 24px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .masa-sec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 901px) {
    .mobil-adisyon-bar,
    .mobil-adisyon-kapat {
        display: none !important;
    }
}
