/* ============= TEMEL ============= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #f1f4f8;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

.app { display: flex; flex-direction: column; min-height: 100vh; }

/* ============= ÜST BAR ============= */
.topbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { font-size: 28px; color: #fbbf24; }
.brand h1 { font-size: 18px; font-weight: 600; }
.brand-firma { white-space: nowrap; }

.kasa-info { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.kasa-info strong { font-weight: 600; }
.brand-user { font-weight: 600; }
.brand-user::after { content: "·"; margin: 0 5px; opacity: .6; }
.kasa-info .bridge-url {
    margin-left: 8px; opacity: 0.7; font-family: Consolas, monospace; font-size: 10px;
}

.health-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.15);
}
.health-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #94a3b8; transition: background 0.3s;
}
.health-pill.health-ok { background: rgba(34,197,94,0.25); color: #bbf7d0; }
.health-pill.health-ok .dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.health-pill.health-warn { background: rgba(251,191,36,0.25); color: #fde68a; }
.health-pill.health-warn .dot { background: #fbbf24; }
.health-pill.health-error { background: rgba(239,68,68,0.25); color: #fecaca; }
.health-pill.health-error .dot { background: #ef4444; }

.connection-panel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.connection-panel input {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    width: 130px;
}
.connection-panel input::placeholder { color: rgba(255,255,255,0.6); }
.connection-panel input[type=number] { width: 90px; }

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-offline { background: rgba(239,68,68,0.2); color: #fecaca; }
.status-online  { background: rgba(34,197,94,0.2); color: #bbf7d0; }

/* ============= BUTONLAR ============= */
.btn {
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: #2563eb; color: white; }
.btn-success  { background: #16a34a; color: white; }
.btn-danger   { background: #dc2626; color: white; }
.btn-secondary{ background: #7c3aed; color: white; }
/*
 * .btn-ghost VARSAYILAN: açık zeminde okunur (koyu yazı, görünür çerçeve).
 * Koyu üst çubuklarda beyaz sürümü ayrıca tanımlanır.
 *
 * DİKKAT: Eskiden varsayılan beyaz yazıydı; modal içindeki "Vazgeç"
 * düğmeleri beyaz zeminde görünmez oluyordu.
 */
.btn-ghost {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}
.btn-ghost:hover { background: #f3f4f6; border-color: #9ca3af; color: #111827; }

/* Koyu zeminli çubuklarda beyaz sürüm */
.topbar .btn-ghost,
.yn-top .btn-ghost,
.sa-top .btn-ghost {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}
.topbar .btn-ghost:hover,
.yn-top .btn-ghost:hover,
.sa-top .btn-ghost:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.btn-block    { width: 100%; justify-content: center; padding: 11px; margin-top: 8px; }
.btn-icon {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}
.btn-icon:hover { background: #f1f5f9; }

/* ============= ANA LAYOUT ============= */
.layout {
    display: grid;
    /* Sepet tarafı 1/6 oranında daraltıldı, boşalan alan hızlı satışa
       aktarıldı. Eski: 1.45fr / 1fr. Sepetin 1/6'sı (~0.242fr) hızlıya
       kaydırıldı -> 1.208fr / 1.242fr. */
    grid-template-columns: minmax(0, 1.208fr) minmax(360px, 1.242fr);
    gap: 16px;
    padding: 16px;
    flex: 1;
    align-items: start;
}
@media (max-width: 1500px) { .layout { grid-template-columns: minmax(0, 1.083fr) minmax(330px, 1.217fr); } }
@media (max-width: 1200px) { .layout { grid-template-columns: minmax(0, 0.958fr) minmax(300px, 1.192fr); } }
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }

.cart-panel, .payment-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.section-header h2 { font-size: 18px; color: #111827; }

.device-state { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.state-label { color: #6b7280; font-weight: 500; }
.state-pill {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #374151;
    font-family: "Consolas", monospace;
    font-size: 11px;
}

.actions-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* ============= ÜRÜN EKLEME FORMU ============= */
.add-item-form {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.add-item-form h3, .cart h3, .summary h3, .payment-form h3, .invoice-form h3 {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; color: #6b7280; font-weight: 500; }
.field input, .field select, .invoice-form input, .invoice-form textarea {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: #2563eb; }
.invoice-form input, .invoice-form textarea { width: 100%; margin-bottom: 8px; }

/* ============= SEPET ============= */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
    text-align: left;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-table .num { text-align: right; }
.cart-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.cart-table tbody tr.empty td {
    text-align: center;
    color: #9ca3af;
    padding: 30px;
    font-style: italic;
}

/* ============= ÖDEME PANELİ ============= */
.summary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}
.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}
.amount-currency { font-size: 24px; color: #78350f; }
.amount-value { font-size: 42px; font-weight: 800; color: #78350f; letter-spacing: -1px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #78350f;
}
.summary-row.remaining { border-top: 1px solid rgba(120,53,15,0.2); padding-top: 10px; margin-top: 6px; font-size: 15px; }
.summary-row strong { font-weight: 700; }

.payment-form, .invoice-form {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

/* ============= LOG PANELİ ============= */
/* ============= İŞLEM GÜNLÜĞÜ (alt sabit barın üstünde) ============= */
.log-panel {
    position: fixed;
    left: 0;
    right: 0;
    /* bottom değeri JS ile actionbar yüksekliğine göre ayarlanır */
    bottom: 118px;
    z-index: 790;
    background: #0f172a;
    color: #cbd5e1;
    border-top: 1px solid #1e293b;
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
    transition: none;
}
.log-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
}
.log-bar-ikon { font-size: 13px; opacity: .7; flex: 0 0 auto; }
.log-box {
    flex: 1 1 auto;
    background: #020617;
    border-radius: 6px;
    padding: 3px 10px;
    overflow-y: auto;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 12px;
    line-height: 1.6;
    /* Küçük mod: yalnızca son satır görünür */
    max-height: 24px;
    display: flex;
    flex-direction: column;
}
/* En yeni satır altta; küçük modda en alttaki (son) satır görünür */
.log-box { justify-content: flex-end; }
.log-panel.acik .log-box {
    /* Büyük mod: son ~10 satır */
    max-height: 230px;
}
.log-toggle-btn, .log-clear-btn {
    flex: 0 0 auto;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}
.log-toggle-btn:hover, .log-clear-btn:hover { background: #1e293b; color: #e2e8f0; }
.log-panel.acik .log-toggle-btn { transform: rotate(180deg); }
.log-line { padding: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-panel.acik .log-line { white-space: normal; }
.log-line.error { color: #fca5a5; }
.log-line.success { color: #86efac; }
.log-line.info { color: #93c5fd; }
.log-line.warn { color: #fcd34d; }
.log-line .time { color: #64748b; margin-right: 8px; }

/* ============= TOAST ============= */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    background: #1f2937;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateX(450px);
    transition: transform 0.3s;
    z-index: 1000;
    max-width: 380px;
    font-size: 13px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.warn { background: #d97706; }

/* ============= ÖZEL DURUMLAR ============= */
.state-pill.state-sale { background: #dcfce7; color: #166534; }
.state-pill.state-error { background: #fee2e2; color: #991b1b; }
.state-pill.state-waiting { background: #fef3c7; color: #92400e; }
.state-pill.state-card { background: #dbeafe; color: #1e40af; animation: pulse 1s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============= YENİ POS BİLEŞENLERİ ============= */

.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Barkod kutusu */
.barcode-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    position: relative;
}
.barcode-label { display: block; font-size: 12px; font-weight: 700; color: #78350f; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.barcode-row { display: flex; gap: 8px; position: relative; }
.barcode-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #d97706;
    border-radius: 8px;
    background: white;
    transition: border-color 0.15s;
}
.barcode-input:focus { outline: none; border-color: #92400e; box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }

/* Öneriler dropdown - konumlandırma pos.php icinde inline style ile yapilir */
.suggestions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}
.suggestions.hidden { display: none; }
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}
.suggestion-item:hover { background: #eff6ff; }
.suggestion-item:last-child { border-bottom: 0; }
.suggestion-main strong { display: block; color: #1f2937; }
.suggestion-main small { color: #6b7280; font-size: 11px; display: block; margin-top: 2px; }
.suggestion-price { font-weight: 700; color: #16a34a; font-size: 15px; }
.suggestion-item.muted { color: #9ca3af; font-style: italic; cursor: default; }
.suggestion-item.muted:hover { background: white; }

/* Sepet header */
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* Miktar kontrolü */
.qty-control { display: inline-flex; align-items: center; gap: 4px; }
.qty-control button {
    width: 26px; height: 26px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}
.qty-control button:hover { background: #f3f4f6; }
.qty-control input {
    width: 60px;
    text-align: center;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.muted { color: #6b7280; font-size: 11px; }

/* Müşteri kutusu */
.customer-box { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.customer-box h3 { font-size: 12px; color: #075985; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; }
.customer-display {
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    min-height: 44px;
}
.customer-display.empty { color: #9ca3af; font-style: italic; }
.customer-display strong { display: block; color: #1f2937; }
.customer-display small { color: #6b7280; font-size: 11px; display: block; margin-top: 2px; }
.customer-actions { display: flex; gap: 6px; position: relative; }
.customer-actions input { flex: 1; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; }
.customer-actions .btn-icon { padding: 6px 10px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; cursor: pointer; }

/* Ödeme butonları */
.payment-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pay-btn {
    padding: 14px 12px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    transition: all 0.15s;
}
.pay-btn:hover { border-color: #2563eb; background: #eff6ff; color: #1e3a8a; transform: translateY(-1px); }

.payments-list { background: white; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px; margin-bottom: 12px; }
.payments-list.hidden { display: none; }
.payments-header { font-size: 11px; color: #6b7280; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.payment-item { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.payment-item .btn-icon { padding: 2px 6px; font-size: 11px; margin-left: 8px; }

.payment-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.payment-row.remaining { font-size: 15px; font-weight: 700; padding-top: 8px; border-top: 1px solid #e5e7eb; margin-top: 6px; color: #d97706; }

.summary-rows { padding-top: 10px; border-top: 1px solid rgba(120,53,15,0.2); margin-top: 10px; }
.summary-row.total { font-size: 14px; font-weight: 700; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(120,53,15,0.3); }

.btn-large { padding: 14px; font-size: 15px; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.modal-content.modal-large { max-width: 900px; max-height: 85vh; overflow-y: auto; }
.modal-content h2 { margin-bottom: 16px; color: #1f2937; font-size: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Modal sağ üst kapatma (X) düğmesi */
.modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.modal-x:hover { background: #fee2e2; color: #dc2626; }
.dark-mode .modal-x { background: #374151; color: #9ca3af; }
.dark-mode .modal-x:hover { background: #7f1d1d; color: #fecaca; }

/* History sayfası */
.history-layout { padding: 16px; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card {
    background: white; padding: 16px; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card-label { font-size: 11px; color: #6b7280; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-value { font-size: 22px; font-weight: 800; color: #1f2937; }

.history-content { background: white; border-radius: 10px; padding: 16px; }
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table thead th { text-align: left; padding: 10px; background: #f8fafc; border-bottom: 2px solid #e5e7eb; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.history-table tbody td { padding: 12px 10px; border-bottom: 1px solid #f1f5f9; }
.history-table tbody tr:hover { background: #f8fafc; }
.history-table tbody tr.cancelled { opacity: 0.5; text-decoration: line-through; }
.history-table .num { text-align: right; }
.history-table .empty { text-align: center; padding: 30px; color: #9ca3af; font-style: italic; }
.history-table .mono { font-family: 'Consolas', monospace; font-size: 12px; }

.badge { padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-fis { background: #dbeafe; color: #1e40af; }
.badge-fatura, .badge-efatura, .badge-earsiv { background: #fef3c7; color: #92400e; }
.badge-tamamlandi { background: #dcfce7; color: #166534; }
.badge-iptal { background: #fee2e2; color: #991b1b; }
.payment-badge { display: inline-block; padding: 3px 8px; background: #f3f4f6; border-radius: 12px; font-size: 11px; font-weight: 600; color: #374151; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 16px; padding: 12px; background: #f8fafc; border-radius: 6px; font-size: 13px; }
.totals-row { display: flex; justify-content: flex-end; gap: 20px; padding: 12px; background: #fef3c7; border-radius: 8px; margin-top: 12px; font-size: 13px; }
.totals-row > div { display: flex; flex-direction: column; align-items: flex-end; }
.totals-row span { color: #92400e; font-size: 11px; text-transform: uppercase; }
.totals-row strong { font-size: 16px; color: #78350f; }
.totals-row .grand strong { font-size: 22px; }

/* =====================================================================
   GENEL YARDIMCI SINIFLAR
   ===================================================================== */

/*
 * .hidden — JavaScript'in her yerde kullandığı gizleme sınıfı.
 *
 * DİKKAT: Bu kural uzun süre EKSİKTİ. Yalnızca .modal.hidden gibi
 * kapsamlı sürümleri vardı; bu yüzden .drawer-backdrop.hidden
 * gizlenmiyor ve tüm ekranı kaplayan saydam katman tıklamaları
 * yutuyordu. Aynı sebeple fatura paneli ve boş uyarı çubuğu da
 * gereksiz yere görünüyordu.
 */
.hidden { display: none !important; }

/* =====================================================================
   v2.0 EKLERİ - Faturalı satış paneli, satış ilerleme ekranı
   ===================================================================== */

/* ---- Sepet rozeti ---- */
.badge {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    margin-left: 6px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.warn-text { color: #b45309; font-weight: 600; }

/* ---- Fatura paneli ---- */
.acc-invoice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.acc-invoice h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #92400e;
}
.acc-invoice .field-row { margin-bottom: 10px; }
.acc-invoice .field-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.acc-invoice label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #78350f;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.acc-invoice input[type="text"],
.acc-invoice input[type="number"],
.acc-invoice select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d6d3d1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.acc-invoice input:focus,
.acc-invoice select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.acc-invoice #invCustomerNo {
    font-family: Consolas, monospace;
    font-size: 15px;
    letter-spacing: 1px;
}
.acc-invoice .hint {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #92400e;
}
.acc-invoice .checkbox-row {
    margin-top: 10px;
    font-size: 12px;
}
.inv-warning {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.45;
}

/* ---- Satış ilerleme ekranı ---- */
.modal-progress { max-width: 520px; }

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 10px;
}
.progress-bar {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 999px;
    transition: width .35s ease;
}
.progress-fill.error { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress-pct {
    min-width: 44px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: #374151;
}
.progress-step {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #1f2937;
    min-height: 20px;
}
.progress-log {
    max-height: 130px;
    overflow-y: auto;
    background: #0f172a;
    color: #94e2b8;
    border-radius: 6px;
    padding: 9px 11px;
    font-family: Consolas, monospace;
    font-size: 11px;
    line-height: 1.55;
}
.progress-log:empty { display: none; }

/* ---- Satış sonucu ---- */
.sale-result {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
}
.sale-result.ok  { background: #ecfdf5; border: 1px solid #6ee7b7; }
.sale-result.err { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.sale-result .result-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}
.sale-result .result-row:last-child { border-bottom: none; }
.sale-result .result-msg  { font-weight: 600; line-height: 1.5; }
.sale-result .result-hint { margin-top: 7px; font-size: 12px; opacity: .85; }
.sale-result .result-warn {
    margin-top: 10px;
    padding: 9px 11px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    color: #78350f;
    font-size: 12px;
    line-height: 1.5;
}

/* ---- Sağlık göstergesi: meşgul ---- */
.health-pill.health-warn .dot { background: #f59e0b; }

/* =====================================================================
   v2.2 — Kompakt tarama çubuğu + Hızlı satış paneli
   ===================================================================== */

/* Sol panel artık dikey esnek kolon: sepet büyür, hızlı satış altta kalır */
.cart-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 14px;
}
.cart-panel > .cart {
    flex: 1 1 auto;
    min-height: 160px;
    overflow-y: auto;
}

/* ----------------------------------------------------------------
   Tarama çubuğu:  [Barkod] [✋]   [Ara Toplam][KDV][Toplam]  [₺ BÜYÜK]
   Sepetin hemen üstünde tek satır.
   ---------------------------------------------------------------- */
.scanbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 10px 12px;
}

.scan-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 300px;
    min-width: 190px;
    background: #fff;
    border: 2px solid #d97706;
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}
.scan-input-wrap:focus-within {
    border-color: #92400e;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .2);
}
.scan-icon {
    padding: 0 4px 0 10px;
    font-size: 15px;
    opacity: .65;
    user-select: none;
}
.scanbar .barcode-input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px 9px 4px;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 8px;
}
.scanbar .barcode-input:focus { outline: none; box-shadow: none; }

.scan-input-wrap .suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: -2px;
    right: -2px;
    z-index: 600;
}

.scanbar .btn-sm {
    flex: 0 0 auto;
    align-self: center;
    padding: 9px 13px;
    font-size: 15px;
    line-height: 1;
}

/* --- Büyük puntolu toplam (barkod okuyucunun hemen yanında) --- */
.scan-grand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 170px;
    padding: 4px 20px;
    background: #78350f;
    border-radius: 8px;
    white-space: nowrap;
}
.scan-grand::before {
    content: 'TOPLAM';
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fcd34d;
    margin-right: auto;
    opacity: .85;
}
.sg-cur { font-size: 21px; color: #fde68a; font-weight: 600; }
.sg-val {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
}

@media (max-width: 1280px) {
    .scan-grand { min-width: 148px; padding: 4px 14px; }
    .sg-val { font-size: 30px; }
}
@media (max-width: 1024px) {
    .scan-input-wrap { flex: 1 1 100%; }
    .scan-grand { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------- Hızlı satış paneli (orta kolon) ---------- */
.quick-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 205px);
}
@media (max-width: 1024px) { .quick-panel { grid-column: auto; } }

.quick-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.quick-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 11px;
    border: none;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.quick-toggle:hover { background: #111827; }
.qt-caret { transition: transform .2s; display: inline-block; }
.quick-panel.collapsed .qt-caret { transform: rotate(-90deg); }
.quick-panel.collapsed .quick-grid,
.quick-panel.collapsed .quick-cats { display: none; }
.quick-panel.collapsed { max-height: none; }

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 76px;
    overflow-y: auto;
}
.qcat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .12s;
}
.qcat:hover { border-color: #2563eb; color: #2563eb; }
.qcat.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.qcat-n {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .1);
}
.qcat.active .qcat-n { background: rgba(255, 255, 255, .25); }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 7px;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.qbtn {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    min-height: 58px;
    padding: 7px 8px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s, border-color .15s;
}
.qbtn:hover {
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, .16);
    transform: translateY(-1px);
}
.qbtn:active { transform: translateY(0); }
.qbtn.pulse { background: #dbeafe; }

.qbtn-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qbtn-price { font-size: 13.5px; font-weight: 800; color: #2563eb; }
.qbtn-vat {
    position: absolute;
    top: 5px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
}
.qbtn.out { opacity: .45; cursor: not-allowed; border-left-color: #9ca3af; }
.qbtn.out:hover { transform: none; box-shadow: none; border-color: #e5e7eb; }

.quick-loading {
    grid-column: 1 / -1;
    padding: 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 12.5px;
}

/* Hızlı satış boş durum bağlantısı */
.quick-loading a { color: #2563eb; font-weight: 600; text-decoration: underline; }
.quick-loading a:hover { color: #1d4ed8; }

/* =====================================================================
   v3.0 — Accordion, sabit alt çubuk, oturum rozeti
   ===================================================================== */

/* ---------- Oturum rozeti ---------- */
.user-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 4px 12px;
    border-left: 1px solid rgba(255, 255, 255, .25);
    line-height: 1.25;
}
.uc-firma { font-size: 12px; font-weight: 700; }
.uc-user  { font-size: 10.5px; opacity: .75; }

/* ---------- Accordion (details/summary) ---------- */
.acc {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}
.acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: #f9fafb;
    user-select: none;
    transition: background .12s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: #f3f4f6; }
.acc > summary::after {
    content: '▾';
    font-size: 12px;
    color: #6b7280;
    transition: transform .2s;
    flex: 0 0 auto;
}
.acc[open] > summary::after { transform: rotate(180deg); }

.acc-title { font-size: 13px; font-weight: 700; color: #111827; }
.acc-hint {
    flex: 1;
    text-align: right;
    font-size: 11px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acc-body { padding: 12px; }

/* Kapalıyken minimum yer kaplasın - hızlı satışa alan açılır */
.acc:not([open]) > summary { padding: 8px 12px; }
.acc:not([open]) { margin-bottom: 8px; }

/* Fatura accordion'u sarı tema */
.acc-invoice { border-color: #fcd34d; background: #fffbeb; padding: 0; margin-bottom: 10px; }
.acc-invoice > summary { background: #fef3c7; }
.acc-invoice > summary:hover { background: #fde68a; }
.acc-invoice .acc-title { color: #92400e; }
.acc-invoice .acc-hint { color: #b45309; }

/* ---------- Sabit alt aksiyon çubuğu ---------- */
.actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .10);
    flex-wrap: wrap;
}

/* İçerik çubuğun altında kalmasın (actionbar + log bar) */
.app { padding-bottom: 165px; }

.ab-pays { flex: 1 1 420px; min-width: 300px; }
.ab-pay-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* Butonlar iki kat boyutunda - dokunmatik ekranda rahat kullanim */
.actionbar .pay-btn {
    padding: 18px 26px;
    min-width: 132px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all .13s;
}
.actionbar .pay-btn:hover { transform: translateY(-1px); }
.actionbar .pay-btn.pressed { transform: scale(.95); }

/* --- Tipe göre renk: seçildiğinde dolu renk, boştayken ipucu --- */
/* 1 = Nakit (yeşil) */
.actionbar .pay-btn[data-type="1"]:hover { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.actionbar .pay-btn[data-type="1"].active {
    background: #16a34a; border-color: #15803d; color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}
/* 0 = Kredi Kartı (mavi) */
.actionbar .pay-btn[data-type="0"]:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.actionbar .pay-btn[data-type="0"].active {
    background: #2563eb; border-color: #1d4ed8; color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
/* 2 = Yemek Kartı (turuncu) */
.actionbar .pay-btn[data-type="2"]:hover { border-color: #ea580c; background: #fff7ed; color: #c2410c; }
.actionbar .pay-btn[data-type="2"].active {
    background: #ea580c; border-color: #c2410c; color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
}
/* 3 = Veresiye (mor) */
.actionbar .pay-btn[data-type="3"]:hover { border-color: #7c3aed; background: #f5f3ff; color: #6d28d9; }
.actionbar .pay-btn[data-type="3"].active {
    background: #7c3aed; border-color: #6d28d9; color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}
/* 5 = Açık Hesap (kurşuni) */
.actionbar .pay-btn[data-type="5"]:hover { border-color: #475569; background: #f8fafc; color: #334155; }
.actionbar .pay-btn[data-type="5"].active {
    background: #475569; border-color: #334155; color: #fff;
    box-shadow: 0 4px 14px rgba(71, 85, 105, .35);
}
/* 6 = Havale (camgöbeği) */
.actionbar .pay-btn[data-type="6"]:hover { border-color: #0891b2; background: #ecfeff; color: #0e7490; }
.actionbar .pay-btn[data-type="6"].active {
    background: #0891b2; border-color: #0e7490; color: #fff;
    box-shadow: 0 4px 14px rgba(8, 145, 178, .35);
}

.ab-sums { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.ab-sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 84px;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    line-height: 1.25;
}
.ab-sum span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6b7280;
}
.ab-sum b { font-size: 15px; font-weight: 700; color: #111827; }
.ab-sum-total { background: #78350f; }
.ab-sum-total span { color: #fcd34d; }
.ab-sum-total b { color: #fff; font-size: 17px; }
.ab-remaining { background: #fef3c7; }
.ab-remaining b { color: #92400e; }

.ab-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.ab-actions .btn-large { padding: 12px 26px; font-size: 15px; font-weight: 700; }

@media (max-width: 1100px) {
    .actionbar .pay-btn { padding: 14px 18px; min-width: 108px; font-size: 14.5px; }
    .ab-sum { min-width: 72px; padding: 4px 9px; }
    .ab-sum b { font-size: 14px; }
}
@media (max-width: 900px) {
    .actionbar { gap: 8px; padding: 8px 10px; }
    .ab-pays { flex: 1 1 100%; }
    .ab-actions { margin-left: 0; flex: 1; }
    .ab-actions .btn-success { flex: 1; }
    .app { padding-bottom: 200px; }
}

/* ---------- Giriş ekranı ---------- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    padding: 34px 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    text-align: center;
}
.login-logo { font-size: 42px; color: #2563eb; line-height: 1; }
.login-card h1 { margin: 8px 0 4px; font-size: 23px; color: #111827; }
.login-sub { margin: 0 0 22px; font-size: 13px; color: #6b7280; }

.login-card form { text-align: left; }
.login-card label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6b7280;
}
.login-card input {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14.5px;
    box-sizing: border-box;
}
.login-card input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.login-error {
    padding: 10px 13px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 12.5px;
    text-align: left;
}

/* Satış sonucu: Sipariş No vurgulu */
.sale-result .result-big {
    padding: 9px 0;
    border-bottom: 2px solid rgba(0, 0, 0, .12);
}
.sale-result .result-big span   { font-size: 14px; font-weight: 700; }
.sale-result .result-big strong { font-size: 30px; font-weight: 900; line-height: 1; }

/* =====================================================================
   v4.1 — Yan menü (Müşteri & Fatura) + yetki kısıtları
   ===================================================================== */

/* Hızlı satış başlığındaki iki büyük düğme */
.quick-btnlar { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-btnlar .quick-toggle { flex: 1 1 auto; justify-content: center; }

.drawer-btn { background: #7c3aed; position: relative; }
.drawer-btn:hover { background: #6d28d9; }

.drawer-badge {
    position: absolute; top: -6px; right: -6px;
    padding: 2px 7px; border-radius: 999px;
    background: #f59e0b; color: #fff;
    font-size: 10px; font-weight: 800; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ---------- Yan menü ---------- */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(15, 23, 42, .45);
}

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
    width: 420px; max-width: 92vw;
    display: flex; flex-direction: column;
    background: #f8fafc;
    box-shadow: -6px 0 28px rgba(0, 0, 0, .22);
    transform: translateX(100%);
    transition: transform .22s ease;
}
.drawer.acik { transform: translateX(0); }

.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px;
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #fff;
    flex: 0 0 auto;
}
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 700; }

.drawer-close {
    width: 34px; height: 34px; padding: 0;
    border: none; border-radius: 8px;
    background: rgba(255, 255, 255, .18); color: #fff;
    font-size: 16px; cursor: pointer; transition: background .12s;
}
.drawer-close:hover { background: rgba(255, 255, 255, .3); }

.drawer-body {
    flex: 1; overflow-y: auto; padding: 14px;
    padding-bottom: 130px;   /* sabit alt çubuğun altında kalmasın */
}

@media (max-width: 560px) { .drawer { width: 100%; } }

/* ---------- Yetki kapalı bilgisi ---------- */
.yetki-kapali {
    margin-top: 10px; padding: 9px 12px;
    background: #f3f4f6; border: 1px dashed #d1d5db; border-radius: 7px;
    font-size: 12px; color: #9ca3af; text-align: center;
}

/* =====================================================================
   v4.3 — Satış geçmişi filtreleri
   ===================================================================== */
.hf-bar {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; margin-bottom: 16px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.hf-hizli { display: flex; gap: 6px; flex-wrap: wrap; }
.hf-chip {
    padding: 7px 13px; border: 1px solid #d1d5db; border-radius: 999px;
    background: #fff; color: #374151; font-size: 12.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all .12s;
}
.hf-chip:hover  { border-color: #2563eb; color: #2563eb; }
.hf-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.hf-alan { display: flex; flex-direction: column; gap: 4px; }
.hf-alan label {
    font-size: 10px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; color: #9ca3af;
}
.hf-alan input, .hf-alan select {
    padding: 8px 11px; border: 1.5px solid #d1d5db; border-radius: 7px;
    font-size: 13.5px; background: #fff; min-width: 145px;
}
.hf-alan input:focus, .hf-alan select:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.hf-bar .btn-primary { padding: 9px 18px; }

/* Kasiyer kırılımı */
.hf-kasiyer {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.hf-kk {
    display: flex; flex-direction: column; gap: 1px;
    padding: 10px 16px; background: #fff;
    border: 1px solid #e5e7eb; border-left: 4px solid #7c3aed; border-radius: 9px;
}
.hf-kk span   { font-size: 11.5px; font-weight: 600; color: #6b7280; }
.hf-kk strong { font-size: 17px; color: #111827; }
.hf-kk small  { font-size: 11px; color: #9ca3af; }

.hf-tarih { font-size: 12.5px; white-space: nowrap; }
.hf-kas   { font-size: 12.5px; color: #4b5563; }

/* =====================================================================
   v4.4 — Fatura numarası ve nihai tüketici
   ===================================================================== */
.inv-no-row { display: flex; gap: 6px; }
.inv-no-row input { flex: 1; min-width: 0; }
.inv-no-row .btn {
    flex: 0 0 auto; padding: 8px 12px; font-size: 12.5px; font-weight: 600;
}
.inv-no-row .btn.aktif {
    background: #16a34a; border-color: #15803d; color: #fff;
}
.inv-no-row .btn:disabled { opacity: .4; cursor: not-allowed; }

#invNo {
    font-family: Consolas, monospace;
    font-size: 13.5px;
    letter-spacing: .5px;
}
.hint.inv-oto  { color: #15803d; font-weight: 600; }
.hint.inv-elle { color: #b45309; font-weight: 600; }

/* =====================================================================
   v4.5 — Hızlı ürün kaydı (barkod bulunamadığında)
   ===================================================================== */
.np-modal { max-width: 560px; text-align: left; }
.np-modal h2 { font-size: 19px; margin-bottom: 6px; }
.np-not {
    margin: 0 0 18px; padding: 10px 13px;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
    font-size: 12.5px; color: #1e40af; line-height: 1.55;
}

.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.np-f-genis { grid-column: 1 / -1; }
@media (max-width: 560px) { .np-grid { grid-template-columns: 1fr; } }

.np-f label {
    font-size: 11px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; color: #6b7280;
}
.np-f label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: #9ca3af; }
.np-req { color: #dc2626; }

.np-f input, .np-f select {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; box-sizing: border-box; background: #fff;
}
.np-f input:focus, .np-f select:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.np-okunur {
    background: #f3f4f6 !important; color: #4b5563;
    font-family: Consolas, monospace; font-size: 15px !important; letter-spacing: 1px;
}

.np-hata {
    margin-top: 14px; padding: 10px 13px;
    background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px;
    color: #991b1b; font-size: 12.5px;
}

/* =====================================================================
   SEPET SATIRI GÜNCELLEME + PARA BİRİMİ (WebPOS 4.7)
   ===================================================================== */

/* Sepet satırı tıklanabilir - güncelleme modalını açar */
.cart-table tbody tr.satir-tikla { cursor: pointer; }
.cart-table tbody tr.satir-tikla:hover td { background: rgba(37, 99, 235, .08); }

/* Döviz bilgisi ve iskonto rozetleri (fiyat hücresi altı) */
.satir-pb  { color: #64748b; font-size: 11px; white-space: nowrap; }
.satir-isk { color: #ea580c; font-size: 11px; white-space: nowrap; }

/* Satır modalı iki sütunlu alan ızgarası */
.lm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}
.lm-grid .field { margin: 0; }

.lm-ozet {
    margin: 14px 0 4px;
    padding: 10px 14px;
    background: rgba(37, 99, 235, .08);
    border-radius: 10px;
    font-size: 15px;
    text-align: right;
}
.lm-ozet strong { font-size: 19px; }

#lm_price[readonly] { background: #f1f5f9; color: #475569; }

/* =====================================================================
   NAVBAR REVİZYONU
   - Yükseklik 1/4 oranında daraltıldı (14px -> 10px dikey dolgu,
     logo/başlık ve buton dolguları orantılı küçültüldü)
   - Sayfa linkleri tek "İşlemler" dropdown'ı altında toplandı
   ===================================================================== */
.topbar { padding: 8px 20px; }
.brand .logo { font-size: 22px; }
.brand h1 { font-size: 15px; }
.kasa-info { font-size: 10px; margin-top: 1px; }
.topbar .btn-ghost { padding: 5px 10px; font-size: 12px; }
.topbar .health-pill { padding: 4px 10px; }
.topbar .user-chip { padding: 3px 10px; }

/* ---- İşlemler dropdown ---- */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown > summary {
    list-style: none; cursor: pointer; user-select: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown .nav-dd-caret { font-size: 10px; transition: transform .15s; }
.nav-dropdown[open] .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 900;
    min-width: 220px; padding: 6px;
    background: #fff; color: #1f2937;
    border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    display: flex; flex-direction: column; gap: 2px;
}
.nav-dd-menu a {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: #1f2937; text-decoration: none; font-size: 13px; font-weight: 500;
}
.nav-dd-menu a:hover { background: #eff6ff; color: #1d4ed8; }
.dark-mode .nav-dd-menu { background: #1f2937; color: #e5e7eb; border-color: #374151; }
.dark-mode .nav-dd-menu a { color: #e5e7eb; }
.dark-mode .nav-dd-menu a:hover { background: #374151; color: #93c5fd; }

/* =====================================================================
   EKLENEN ÖDEMELER — alt çubukta, AÇIK HESAP butonunun hemen yanında
   ===================================================================== */
.ab-pay-buttons { align-items: center; flex-wrap: wrap; }
.payments-inline {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 0 10px; padding: 4px 10px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 10px;
    max-width: 46vw; overflow-x: auto;
}
.payments-inline.hidden { display: none; }
.payments-inline .payments-header {
    font-size: 11px; font-weight: 700; white-space: nowrap;
    margin: 0; opacity: .8;
}
.payments-inline #paymentsItems { display: flex; gap: 6px; }
.payments-inline .payment-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 8px; white-space: nowrap;
    background: #fff; border: 1px solid #dbeafe; font-size: 12px;
}
.dark-mode .payments-inline .payment-item { background: #1f2937; border-color: #374151; }
.payments-inline .payment-item .btn-icon { padding: 0 4px; font-size: 12px; }


/* =====================================================================
   MUTFAK EKRANI (mutfak.php)
   ===================================================================== */
.mutfak-body { background: #0f172a; }
.mutfak-main { padding: 20px; max-width: 1500px; margin: 0 auto; }
.mutfak-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.mf-bos {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    color: #94a3b8; font-size: 18px;
}
.mf-kart {
    background: #1e293b; border-radius: 14px; padding: 14px;
    border-left: 6px solid #fbbf24; color: #e2e8f0;
    display: flex; flex-direction: column; gap: 10px;
    animation: mfGel .35s ease;
}
@keyframes mfGel { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.mf-kart.hazir { border-left-color: #34d399; opacity: .78; }
.mf-kart-ust { display: flex; justify-content: space-between; align-items: center; }
.mf-no { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mf-saat { font-size: 13px; opacity: .75; }
.mf-kalemler { list-style: none; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mf-kalemler li {
    background: #0f172a; border-radius: 8px; padding: 7px 10px; font-size: 14px;
}
.mf-kalemler li b { color: #fbbf24; margin-right: 4px; }
.mf-kalem-yok { opacity: .6; font-style: italic; }
.mf-hazir-btn { width: 100%; font-size: 17px; padding: 12px; font-weight: 700; }
.mf-hazir-etiket {
    text-align: center; padding: 10px; border-radius: 10px;
    background: #065f46; color: #d1fae5; font-weight: 700;
}
.mf-hazir-etiket small { display: block; font-weight: 500; opacity: .8; }
.mf-toggle { color: #fff; font-size: 12px; gap: 6px; display: inline-flex; align-items: center; }
.health-pill.err { background: rgba(220,38,38,.35); }
.mutfak-body .topbar { position: sticky; top: 0; z-index: 10; }

/* ---- Alıcı alias (GİB posta kutusu) seçimi — Faturalı Satış üstü ---- */
#aliasRow { margin: 10px 0 12px; }
#aliasRow label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
#aliasRow select {
    width: 100%; padding: 8px 10px; border-radius: 8px;
    border: 1px solid #cbd5e1; font-size: 13px;
    font-family: Consolas, monospace; background: #fff;
}
#aliasRow .hint { display: block; margin-top: 4px; font-size: 11px; opacity: .75; }
.dark-mode #aliasRow select { background: #1f2937; color: #e5e7eb; border-color: #374151; }

/* ---- Yönetim: Reklam Görselleri ızgarası ---- */
.reklam-grid {
    display: grid; gap: 12px; margin-bottom: 8px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.reklam-kutu {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid #e5e7eb; background: #0b1220;
    aspect-ratio: 16 / 9;
}
.reklam-kutu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reklam-sil {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px; border-radius: 50%;
    border: none; cursor: pointer; font-weight: 700;
    background: rgba(220, 38, 38, .92); color: #fff;
}
.reklam-sil:hover { background: #b91c1c; }
.reklam-bos {
    grid-column: 1 / -1; padding: 22px; text-align: center;
    border: 1px dashed #cbd5e1; border-radius: 10px; opacity: .7; font-size: 13px;
}
.dark-mode .reklam-kutu { border-color: #374151; }
.dark-mode .reklam-bos { border-color: #374151; }

/* =====================================================================
 * GÖNDERİM MODU (WebPOS 4.8)
 * Drawer içinde "🖨️ Yazarkasaya Gönderim" accordion'u ve
 * "Fiş önizlemesi" modalı için stiller.
 * ===================================================================== */

.acc-sendmode .acc-title { color: #5b21b6; }
.acc-hint-warn { color: #b45309; font-weight: 600; }

.send-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 12px;
}
.send-mode-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s;
    text-align: center;
}
.send-mode-tab:hover:not(.active):not(:disabled) {
    background: rgba(255, 255, 255, 0.6);
    color: #4b5563;
}
.send-mode-tab.active {
    background: white;
    border-color: #7c3aed;
    color: #5b21b6;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}
.send-mode-tab:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.send-mode-icon { font-size: 22px; line-height: 1; }
.send-mode-name { font-size: 12px; font-weight: 700; }
.send-mode-desc { font-size: 10px; color: #9ca3af; line-height: 1.2; }
.send-mode-tab.active .send-mode-desc { color: #7c3aed; }

.send-mode-info {
    margin-top: 4px;
    padding: 10px 12px;
    background: #ede9fe;
    border-radius: 8px;
    border-left: 3px solid #7c3aed;
    font-size: 11px;
    color: #5b21b6;
    line-height: 1.45;
}
.send-mode-info small { display: block; }
.send-mode-info.send-mode-warn {
    background: #fef3c7;
    border-left-color: #d97706;
    color: #78350f;
}
.send-mode-info.hidden { display: none; }
.send-mode-preview { margin-top: 10px; }

/* Fiş önizleme modalı */
.modal-content.modal-large { max-width: 720px; max-height: 88vh; overflow-y: auto; }

.preview-head { margin-bottom: 10px; }
.preview-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}
.preview-mode-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.preview-mode-badge.preview-mode-ayrintili       { background: #dbeafe; color: #1e40af; }
.preview-mode-badge.preview-mode-sadelestirilmis { background: #ede9fe; color: #5b21b6; }

.receipt-preview {
    background: #fefdf8;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 12px 0;
    font-family: 'Consolas', 'Monaco', monospace;
}
.receipt-header    { text-align: center; padding-bottom: 6px; }
.receipt-store     { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 3px; }
.receipt-date      { font-size: 11px; color: #6b7280; }
.receipt-divider   { border-top: 1px dashed #d1d5db; margin: 10px 0; }
.receipt-table     { width: 100%; border-collapse: collapse; font-size: 12px; }
.receipt-table thead th {
    text-align: left; padding: 6px 4px;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 10px; color: #6b7280;
    text-transform: uppercase; font-weight: 600;
}
.receipt-table thead th.num { text-align: right; }
.receipt-table tbody td { padding: 8px 4px; border-bottom: 1px dashed #f1f5f9; vertical-align: top; }
.receipt-table tbody td.num { text-align: right; }
.receipt-table small.muted { color: #9ca3af; font-size: 10px; display: inline-block; margin-top: 2px; }
.receipt-footer  { margin-top: 6px; }
.receipt-line {
    display: flex; justify-content: space-between;
    padding: 4px 0; font-size: 13px; color: #374151;
}
.receipt-line.receipt-grand {
    font-size: 16px; font-weight: 700; color: #1f2937;
    padding-top: 8px; border-top: 1px dashed #d1d5db; margin-top: 6px;
}

/* Dark mode uyumu */
.dark-mode .send-mode-tabs        { background: #1f2937; }
.dark-mode .send-mode-tab.active  { background: #111827; border-color: #a78bfa; color: #e0e7ff; }
.dark-mode .send-mode-tab         { color: #9ca3af; }
.dark-mode .send-mode-info        { background: #312e81; color: #ddd6fe; border-left-color: #a78bfa; }
.dark-mode .send-mode-info.send-mode-warn { background: #78350f; color: #fef3c7; border-left-color: #f59e0b; }
.dark-mode .receipt-preview       { background: #1f2937; color: #f3f4f6; border-color: #374151; }
.dark-mode .receipt-store         { color: #f9fafb; }
.dark-mode .receipt-date          { color: #9ca3af; }
.dark-mode .receipt-divider       { border-color: #374151; }
.dark-mode .receipt-table thead th{ color: #9ca3af; border-color: #374151; }
.dark-mode .receipt-table tbody td{ border-color: #1f2937; }
.dark-mode .receipt-line          { color: #e5e7eb; }
.dark-mode .receipt-line.receipt-grand { color: #f9fafb; border-color: #374151; }

/* =====================================================================
 * SEPET İSKONTO + HIZLI SATIŞ ARAMA (WebPOS 4.9)
 * ===================================================================== */

/* Sepet başlığındaki buton grubu */
.cart-header-btns { display: flex; gap: 6px; align-items: center; }
#btnDiscountAll { color: #7c3aed; }
#btnDiscountAll:hover { background: #ede9fe; }

/* İskonto modalı — ara toplam bandı */
.disc-cur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
}
.disc-cur strong { font-size: 16px; color: #1e293b; }
.dark-mode .disc-cur { background: #1f2937; color: #94a3b8; }
.dark-mode .disc-cur strong { color: #f1f5f9; }

/* İskonto modalı — oran <-> net iki giriş yan yana */
.disc-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
}
.disc-inputs .field { margin: 0; }
.disc-eq {
    padding-bottom: 10px;
    font-size: 20px;
    color: #7c3aed;
    user-select: none;
}
.dark-mode .disc-eq { color: #a78bfa; }

/* İskonto modalı — hızlı oran çipleri */
.disc-quick {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.disc-quick-lbl { font-size: 12px; color: #94a3b8; margin-right: 2px; }
.disc-chip {
    padding: 6px 14px;
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.disc-chip:hover { background: #ede9fe; border-color: #c4b5fd; }
.disc-chip:active { transform: scale(0.95); }
.disc-chip-clear {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    margin-left: auto;
}
.disc-chip-clear:hover { background: #fee2e2; border-color: #fca5a5; }
.dark-mode .disc-chip { background: #2e1065; border-color: #4c1d95; color: #ddd6fe; }
.dark-mode .disc-chip:hover { background: #4c1d95; }
.dark-mode .disc-chip-clear { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }

/* İskonto modalı canlı önizleme */
.disc-onizleme {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}
.disc-onizleme .disc-net {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    color: #16a34a;
    font-size: 15px;
}
.dark-mode .disc-onizleme { background: #1f2937; border-color: #374151; color: #cbd5e1; }
.dark-mode .disc-onizleme .disc-net { color: #4ade80; }

/* Hızlı satış: üç üst element (Hızlı / Müşteri / Arama) EŞİT ende,
   aynı satırda, alanı üçe bölerek. */
.quick-btnlar { align-items: center; flex-wrap: nowrap; }
/* Genel .quick-toggle 'flex:1 1 auto' kuralını ez: üçü de eşit taban 0 */
.quick-btnlar .quick-toggle-sm,
.quick-btnlar .quick-search {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}
.quick-toggle-sm {
    padding: 8px 10px;
    font-size: 12px;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
}
.quick-search {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    height: 36px;
}
.quick-search:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.dark-mode .quick-search { background: #111827; color: #f3f4f6; border-color: #374151; }
.dark-mode .quick-search:focus { border-color: #a78bfa; }

/* Satır güncelleme modalında salt-okunur KDV kutusu */
#lm_kdv {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    font-weight: 700;
}
.dark-mode #lm_kdv { background: #1f2937; color: #9ca3af; }

/* =====================================================================
 * MENÜ (KOMBO) SEÇİM MODALI  (POS)
 * ===================================================================== */
.mnu-not { font-size: 13px; color: #64748b; margin-bottom: 14px; line-height: 1.5; }
.mnu-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 16px;
}
/* Eklenen ürün satırları tam genişlik kaplasın (kaldır butonu için) */
.mnu-liste .mnu-satir.eklendi { grid-column: 1 / -1; }
@media (max-width: 620px) {
    .mnu-liste { grid-template-columns: 1fr; }
}
.mnu-satir {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}
.mnu-satir:hover { border-color: #cbd5e1; }
.mnu-satir.secili { background: #eff6ff; border-color: #2563eb; }
.mnu-chk { width: 22px; height: 22px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }
.mnu-ad { flex: 1; font-size: 15px; font-weight: 600; color: #1e293b; }
.mnu-rozet {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 4px; margin-right: 8px; vertical-align: middle;
}
.mnu-urun { background: #dbeafe; color: #1d4ed8; }
.mnu-ozellik { background: #f3e8ff; color: #7c3aed; }
.mnu-fiy { font-size: 15px; font-weight: 700; color: #0f766e; white-space: nowrap; }
.mnu-bedava { color: #94a3b8; font-weight: 500; font-style: italic; }

.mnu-aciklama-alan { margin-bottom: 14px; }
.mnu-aciklama-alan label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.mnu-aciklama-alan input {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.mnu-ozet {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: #f0fdf4; border-radius: 10px; margin-bottom: 4px;
}
.mnu-ozet span { font-size: 14px; color: #166534; }
.mnu-ozet strong { font-size: 22px; color: #15803d; }
.mnu-ozet-sol { display: flex; flex-direction: column; gap: 2px; }
.mnu-bilesen-bilgi { font-size: 11px; color: #64748b; font-weight: normal; }

.sug-menu, .qbtn-menu .qbtn-name {
    font-size: 10px;
}
.sug-menu {
    display: inline-block; background: #fef3c7; color: #b45309;
    font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-left: 4px;
}
.qbtn-menu { border-color: #fcd34d !important; background: linear-gradient(135deg,#fffbeb,#fff) !important; }

.dark-mode .mnu-satir { background: #1f2937; border-color: #374151; }
.dark-mode .mnu-satir.secili { background: #1e3a5f; border-color: #3b82f6; }
.dark-mode .mnu-ad { color: #f3f4f6; }
.dark-mode .mnu-aciklama-alan input { background: #111827; color: #f3f4f6; border-color: #374151; }
.dark-mode .mnu-ozet { background: #14532d; }
.dark-mode .mnu-ozet span { color: #bbf7d0; }
.dark-mode .mnu-ozet strong { color: #4ade80; }

/* Mutfak — menü (kombo) kalemi ağaç görünümü */
.mf-menu { list-style: none; }
.mf-menu-bas {
    color: #fef3c7;
    font-weight: 700;
    padding: 3px 0;
}
.mf-menu-bas b { color: #fbbf24; margin-right: 4px; }
.mf-alt-liste {
    list-style: none;
    margin: 2px 0 6px 18px;
    padding-left: 10px;
    border-left: 2px solid #475569;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mf-alt {
    font-size: 14px;
    color: #cbd5e1;
    padding: 1px 0;
}
.mf-alt b { color: #fbbf24; }
.mf-alt-ozellik { color: #a5b4fc; font-style: italic; }
.mf-not {
    font-size: 13px;
    color: #fca5a5;
    background: rgba(239,68,68,.12);
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 2px;
}

/* ===== Menü modalı: sonradan ürün ekleme (içecek vb.) ===== */
.mnu-ekle-bolum {
    margin: 10px 0 4px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}
.mnu-ekle-baslik {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; box-sizing: border-box;
    padding: 13px 16px;
    background: #f0f9ff;
    border: none; cursor: pointer;
    font-size: 14px; font-weight: 700; color: #0369a1;
    text-align: left;
}
.mnu-ekle-baslik:hover { background: #e0f2fe; }
.mnu-ekle-ok { transition: transform .2s; font-size: 12px; }
.mnu-ekle-baslik.acik .mnu-ekle-ok { transform: rotate(180deg); }
.mnu-ekle-govde { padding: 12px 14px; }
.mnu-ekle-gruplar { display: flex; flex-direction: column; gap: 10px; }
.mnu-ekle-grup-ad {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: #94a3b8; margin-bottom: 5px;
}
.mnu-ekle-urunler { display: flex; flex-wrap: wrap; gap: 6px; }
.mnu-ekle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #1e293b;
    transition: all .15s;
}
.mnu-ekle-btn:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.mnu-ekle-btn small { color: #0f766e; font-weight: 700; }

/* Eklenen satır (menü listesinde) */
.mnu-satir.eklendi {
    background: #ecfdf5; border-color: #6ee7b7;
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 2px solid #6ee7b7; border-radius: 10px;
}
.mnu-eklendi-ikon { font-size: 18px; font-weight: 800; color: #059669; flex-shrink: 0; width: 22px; text-align: center; }
.mnu-rozet.mnu-eklenen { background: #d1fae5; color: #047857; }
.mnu-kaldir {
    border: none; background: #fef2f2; color: #dc2626;
    width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 13px; flex-shrink: 0;
}
.mnu-kaldir:hover { background: #fee2e2; }

/* Mutfak: eklenen ürün (içecek) satırı */
.mf-alt-eklendi { color: #6ee7b7 !important; font-weight: 600; }

.dark-mode .mnu-ekle-bolum { background: #1f2937; border-color: #374151; }
.dark-mode .mnu-ekle-baslik { background: #0c4a6e; color: #bae6fd; }
.dark-mode .mnu-ekle-baslik:hover { background: #075985; }
.dark-mode .mnu-ekle-btn { background: #111827; color: #e5e7eb; border-color: #374151; }
.dark-mode .mnu-ekle-btn:hover { background: #1e3a5f; border-color: #3b82f6; }
.dark-mode .mnu-satir.eklendi { background: #064e3b; border-color: #047857; }
