:root {
    --navy-950: #04091a;
    --navy-900: #08112a;
    --navy-800: #122041;
    --navy-700: #1d3362;
    --sidebar: var(--navy-900);
    --sidebar-soft: var(--navy-800);
    --surface: #ffffff;
    --surface-soft: #f7f9fd;
    --bg: #edf2f9;
    --text: #18243a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 22px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --shadow-sm: 0 8px 20px rgba(11, 18, 37, 0.05);
    --shadow-md: 0 16px 34px rgba(11, 18, 37, 0.08);
    --shadow-lg: 0 24px 48px rgba(11, 18, 37, 0.12);
    --ease-standard: cubic-bezier(.2,.8,.2,1);
    --duration-fast: 180ms;
}

* { box-sizing: border-box; }
/* BYMSA Patch: Tüm sitede yanlışlıkla metin seçimini kapatıp input alanlarında seçimi açık bırakır. */
body { margin: 0; background: radial-gradient(circle at top right, #ffffff 0%, var(--bg) 48%, #e8eef8 100%); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
a { text-decoration: none; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }

/* BYMSA Patch: POS/tablet kullanımı için geniş dokunmatik layout eklendi. */
.app-shell { min-height: 100vh; display: flex; }
.app-sidebar { width: 286px; background: linear-gradient(190deg, var(--navy-950), var(--sidebar) 42%, var(--sidebar-soft)); color: #fff; padding: 20px; position: sticky; top: 0; height: 100vh; z-index: 20; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-right: 1px solid rgba(148,163,184,.15); }
.sidebar-top { min-height: 0; }
.brand { display: flex; align-items: center; gap: 12px; margin: 4px 4px 16px; font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.brand-text { line-height: 1.15; color: #f8fbff; opacity: .94; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #2563eb; color: #fff; font-weight: 900; }
.app-sidebar .nav-link { color: #c6d4ef; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 650; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); position: relative; }
.app-sidebar .nav-link:hover { background: rgba(148,163,184,.18); color: #fff; transform: translateX(2px); }
.app-sidebar .nav-link.active { background: linear-gradient(90deg, rgba(37,99,235,.28), rgba(59,130,246,.12)); color: #fff; }
.app-sidebar .nav-link.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 99px; background: #60a5fa; box-shadow: 0 0 18px #60a5fa; }
/* BYMSA Patch: Gelistirme asamasindaki menuler kirmizi kompakt rozetle ayrisir. */
.sidebar-nav-badge { margin-left: auto; display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.sidebar-nav-badge.is-red { color: #fee2e2; background: rgba(220, 38, 38, .22); border: 1px solid rgba(248, 113, 113, .38); }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(148,163,184,.16); }
.sidebar-home-link { display: flex; align-items: center; gap: 10px; color: #dbeafe; background: rgba(37,99,235,.14); border: 1px solid rgba(96,165,250,.28); border-radius: 12px; padding: 9px 12px; font-weight: 850; margin-bottom: 10px; }
.sidebar-home-link:hover { color: #fff; background: rgba(37,99,235,.24); transform: translateY(-1px); }
.sidebar-plan { display: flex; align-items: center; gap: 10px; color: #34d399; background: linear-gradient(180deg, rgba(20,184,166,.12), rgba(20,184,166,.06)); border: 1px solid rgba(20,184,166,.24); border-radius: 12px; padding: 9px 12px; font-weight: 800; margin-bottom: 14px; }
.sidebar-plan:hover { color: #6ee7b7; background: linear-gradient(180deg, rgba(20,184,166,.2), rgba(20,184,166,.1)); }
.status-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 99px; background: #34d399; box-shadow: 0 0 14px #34d399; }
.sidebar-user { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.user-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #60a5fa); color: #fff; font-weight: 900; }
.user-meta { min-width: 0; }
.user-meta strong, .user-meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #94a3b8; font-size: 12px; }
.sidebar-logout { border: 0; background: transparent; color: #94a3b8; padding: 8px; border-radius: 10px; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-main { flex: 1; min-width: 0; }
.topbar { height: 78px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid #dce4f1; display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.panel-card, .metric-card { background: var(--surface); border: 1px solid #e2e8f4; border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); padding: 22px; transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.panel-card:hover, .metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d0d9ea; }
.metric-card { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; border-left: 5px solid var(--primary); }
.metric-card span { color: var(--muted); font-weight: 700; }
.metric-card strong { font-size: clamp(24px, 4vw, 34px); }
/* BYMSA Patch: Veresiye board ustunde 50/50 kirmizi-yesil durum alanlari eklenir. */
.credit-board-summary-card { min-height: 88px; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid transparent; box-shadow: 0 10px 22px rgba(15, 23, 42, .07); }
.credit-board-summary-card span { width: 100%; text-align: center; font-weight: 900; letter-spacing: -.01em; }
.credit-board-summary-card strong { font-size: clamp(26px, 4vw, 40px); line-height: 1; }
.credit-board-summary-card.is-red { background: linear-gradient(135deg, #fff1f2, #fecdd3); color: #991b1b; border-color: #fecaca; }
.credit-board-summary-card.is-green { background: linear-gradient(135deg, #ecfdf5, #bbf7d0); color: #166534; border-color: #bbf7d0; }
.credit-board-summary-card.customer-drop-target { outline: 3px solid currentColor; outline-offset: 3px; filter: saturate(1.12); }
.credit-kitchen-summary { border: 1px solid #dbe7f6; border-radius: 18px; background: linear-gradient(180deg, #ffffff, #f8fbff); padding: 16px; box-shadow: 0 10px 22px rgba(15, 23, 42, .06); }
.credit-kitchen-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.credit-kitchen-summary-head strong { font-size: 16px; letter-spacing: -.01em; }
.credit-kitchen-summary-head small { color: var(--muted); font-weight: 800; }
.credit-kitchen-summary-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.credit-history-link { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; font: inherit; font-size: 12px; font-weight: 900; text-decoration: none; cursor: pointer; }
.credit-history-link:hover { color: #312e81; background: #e0e7ff; }
.credit-kitchen-summary-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.credit-kitchen-summary-item { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 12px; border: 1px solid #d7e2f2; border-radius: 14px; background: #fff; color: #10213f; font-weight: 800; box-shadow: 0 6px 14px rgba(15, 23, 42, .04); }
.credit-kitchen-summary-item .ic { color: #2563eb; }
.credit-kitchen-summary-item span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-kitchen-summary-item strong { margin-left: 4px; color: #0f172a; }
/* BYMSA Patch: Mutfak ve kurye ekranlarinda operasyon gecmisi urun ozeti altinda kompakt listelenir. */
.credit-history-panel { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; padding: 14px; box-shadow: 0 8px 18px rgba(15, 23, 42, .04); }
.credit-history-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.credit-history-panel-head strong { color: #0f172a; font-size: 15px; }
.credit-history-panel-head small { color: var(--muted); font-weight: 900; }
.credit-history-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding-right: 2px; }
.modal .credit-history-list { max-height: 60vh; }
.credit-history-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 1.2fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e5edf7; border-radius: 14px; background: linear-gradient(180deg, #fff, #f8fafc); }
.credit-history-card-main { display: grid; gap: 2px; min-width: 0; }
.credit-history-card-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #10213f; }
.credit-history-card-main small { color: #64748b; font-weight: 800; }
.credit-history-card-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.credit-history-card-items span { display: inline-flex; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 900; }
.credit-history-amount { color: #166534; font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 99px; margin-left: 10px; }
.legend.empty { background: #22c55e; } .legend.occupied { background: #ef4444; } .legend.reserved { background: #f59e0b; } .legend.customer { background: #2563eb; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; overflow-x: auto; }
/* BYMSA Patch: Durum rozetleri ve islemler tek satirda hizalanir */
.table-status-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.table-status-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e2e8f4; border-radius: 999px; background: #fff; min-height: 36px; padding: 0 12px; font-weight: 700; color: #334155; white-space: nowrap; }
.table-status-item .legend { margin-left: 0; }
.table-action-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.table-action-row .btn { min-height: 36px; white-space: nowrap; }
.table-card { min-height: 170px; border-radius: 22px; padding: 20px 22px; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10); transition: transform .15s ease, box-shadow .15s ease, filter var(--duration-fast) var(--ease-standard); }
.table-card:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16); }
/* BYMSA Patch: Masa karti durum renkleri bilgi odakli okunurluk icin sabit gradyanlarla netlestirildi. */
.table-card.empty { background: linear-gradient(135deg, #16a34a, #4ade80); }
.table-card.occupied { background: linear-gradient(135deg, #ef4444, #fb7185); }
.table-card.reserved { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #2b2412; }
.table-card.cleaning { background: linear-gradient(145deg, #0ea5e9, #38bdf8); }
.table-card.disabled { background: linear-gradient(145deg, #64748b, #94a3b8); }
.table-card strong { font-size: 31px; letter-spacing: .01em; line-height: 1.1; }
.table-capacity { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 800; opacity: .98; line-height: 1.15; }
.table-capacity .ic { width: 22px; height: 22px; }
/* BYMSA Patch: Masa kartinda misafir/not ve kisi bilgileri buyutulup gereksiz dikey bosluklar sikilastirildi. */
.table-customer-note { max-width: 100%; font-size: 16px; font-weight: 700; line-height: 1.22; opacity: .99; white-space: pre-line; overflow: hidden; max-height: 3.7em; margin-top: 2px; }
.table-active-orders { width: 100%; display: grid; gap: 6px; justify-items: stretch; }
.table-active-orders.has-many { grid-template-columns: repeat(var(--segment-count, auto-fit), minmax(0, 1fr)); align-self: stretch; min-height: 78px; }
/* BYMSA Patch: Coklu musteri segmentleri dolu masa zemininden ayrisan net renklerle bolunur. */
.table-order-segment { min-width: 0; border-radius: 16px; padding: 10px 8px; background: linear-gradient(145deg, #991b1b, #ef4444); border: 1px solid rgba(255,255,255,.38); display: grid; align-content: center; gap: 3px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 16px rgba(15,23,42,.14); }
.table-order-segment:nth-child(2n) { background: linear-gradient(145deg, #1d4ed8, #38bdf8); }
.table-order-segment:nth-child(3n) { background: linear-gradient(145deg, #047857, #34d399); }
.table-order-segment:nth-child(4n) { background: linear-gradient(145deg, #7c2d12, #fb923c); }
.table-order-segment strong { font-size: 14px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-order-segment small { font-size: 12px; font-weight: 800; opacity: .96; }
.table-order-selector { display: grid; gap: 10px; }
.table-order-select-card { border: 1px solid #dbe7fb; border-radius: 14px; background: linear-gradient(180deg, #fff, #f8fbff); padding: 12px; text-align: left; color: #1e293b; display: grid; gap: 5px; }
.table-order-select-card:hover { border-color: #93c5fd; box-shadow: var(--shadow-sm); }
.table-order-select-card.is-active { border-color: #2563eb; background: #eff6ff; }
.table-order-select-card strong { font-size: 15px; }
.table-order-select-card small { color: #64748b; font-weight: 700; }
.table-card-wrap { position: relative; }
.table-card.customer-drop-target { outline: 2px dashed rgba(255,255,255,.9); outline-offset: -8px; transform: translateY(-3px); }
.table-edit-actions { display: none; position: absolute; right: 12px; top: 12px; gap: 8px; align-items: center; justify-content: flex-end; }
.table-edit-actions form { margin: 0; }
.table-edit-mode .table-card { filter: saturate(.72); }
.table-edit-mode .table-edit-actions { display: flex; }
.table-action-btn { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.34); border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(10px); transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.table-action-btn:hover { background: #fff; color: #172033; }
.table-action-btn.danger:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.table-action-btn[data-table-drag-handle] { cursor: grab; }
[data-table-item].dragging .table-card-wrap { opacity: .66; transform: scale(.98); }
.capacity-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.capacity-option { border: 1px solid #d1d5db; background: #fff; border-radius: 10px; padding: 10px 0; font-weight: 800; color: #334155; transition: all var(--duration-fast) var(--ease-standard); }
.capacity-option.active { border-color: #2563eb; background: #dbeafe; color: #1e40af; }
.capacity-option:hover { border-color: #94a3b8; transform: translateY(-1px); }
.product-card { width: 100%; min-height: 128px; border: 1px solid #e2e8f4; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 18px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.product-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card strong { color: #2563eb; font-size: 20px; }
.product-card-wrap { display: flex; }
.product-card { height: 168px; }
.product-card-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; line-height: 1.25; min-height: 48px; }
.product-card-title span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { display: block; text-align: center; margin-top: auto; margin-bottom: 8px; }
.product-filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.product-filter-chip .ic { width: 16px; height: 16px; }
.product-inline-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-inline-actions .btn { min-width: 34px; }
/* BYMSA Patch: Adet rakami tiklanarak inline duzenlenebilir; ekstra input satiri gerekmez. */
.qty-edit-trigger { min-width: 38px; height: 30px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 900; padding: 0 10px; }
.qty-edit-trigger:hover { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.qty-edit-input { width: 56px; height: 30px; border: 1px solid #2563eb; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 900; text-align: center; outline: 0; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.btn-qty-minus, .btn-qty-plus { border: 0; width: 30px; height: 30px; border-radius: 999px; font-weight: 800; }
.btn-qty-minus { background: #fee2e2; color: #b91c1c; }
.btn-qty-plus { background: #dcfce7; color: #166534; }
.btn-qty-minus:disabled { opacity: .5; }
.btn-qty-minus:hover { background: #fecaca; }
.btn-qty-plus:hover { background: #bbf7d0; }
.order-ticket { top: 96px; box-shadow: var(--shadow-md); }
.order-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.order-line small { display: block; color: var(--muted); }
.qty-control { display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6; padding: 5px; border-radius: 999px; }
.qty-control button { border: 0; width: 30px; height: 30px; border-radius: 999px; font-weight: 800; }
.auth-body { min-height: 100vh; background: radial-gradient(circle at top left, #2563eb 0, transparent 34%), #0f172a; }
.auth-card-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: 30px; padding: 34px; }

.btn { border-radius: 12px; font-weight: 700; transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 10px 20px rgba(37,99,235,.24); }
.btn-primary:hover { box-shadow: 0 14px 24px rgba(37,99,235,.3); }

.modal-content { border: 1px solid #e2e8f4; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header, .modal-footer { border-color: #e8edf7; }
.modal-header { padding: 16px 18px; }
.modal-header .btn-close { margin-left: 14px; }
.modal-header-unified { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-header-unified .modal-title { margin-bottom: 0; }
.modal-header-unified .btn-close { margin-left: auto; flex: 0 0 auto; }
.modal-body { padding: 18px; }
.modal-footer { padding: 14px 18px; }
.form-control, .form-select { border-radius: 12px; min-height: 48px; border: 1px solid #d6deec; }
.form-control:focus, .form-select:focus { border-color: #93c5fd; box-shadow: 0 0 0 .2rem rgba(59,130,246,.16); }
/* BYMSA Patch: Maas/avans sade islem modalinda input ve tarih butonlari esit yukseklikte hizalanir. */
#expenseTemplateActionModal .expense-simple-field .form-label { min-height: 20px; margin-bottom: 8px; color: #334155; font-weight: 700; }
#expenseTemplateActionModal .expense-simple-date-row { display: flex; align-items: center; gap: 8px; }
#expenseTemplateActionModal .expense-simple-date-toggle { flex: 0 0 244px; height: 48px; }
#expenseTemplateActionModal .expense-simple-date-toggle .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; line-height: 1; box-shadow: none; transform: none; }
#expenseTemplateActionModal .expense-simple-date-toggle .btn:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
#expenseTemplateActionModal .expense-simple-date-toggle .btn:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
#expenseTemplateActionModal .expense-simple-date-input { flex: 1 1 180px; margin-top: 0; min-height: 48px; }
@media (max-width: 575.98px) {
  #expenseTemplateActionModal .expense-simple-date-row { flex-wrap: wrap; }
  #expenseTemplateActionModal .expense-simple-date-toggle,
  #expenseTemplateActionModal .expense-simple-date-input { flex-basis: 100%; }
}
.table-order-loading { min-height: 220px; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.table-order-filters { display: flex; gap: 8px; flex-wrap: wrap; }
/* BYMSA Patch: POS modalinda Bootstrap scroll korunur; sag sepet sadece urun listesinde kayar. */
.table-order-modal [data-table-order-body] .row.g-3 { align-items: stretch; }
.table-order-modal [data-table-order-body] .row.g-3 > [class*="col-"] { display: flex; flex-direction: column; min-height: 0; }
.table-order-ticket { position: sticky; top: 0; flex: 1 1 auto; max-height: calc(100vh - 260px); display: flex; flex-direction: column; overflow: hidden; }
.order-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; }
.table-order-ticket .form-control,
.table-order-ticket [data-order-empty-warning],
.table-order-ticket .border-top,
.table-order-ticket [data-order-payment-open] { flex-shrink: 0; }
.table-order-filters { position: sticky; top: 0; z-index: 4; background: #f8fafc; padding-top: 2px; padding-bottom: 6px; }
.table-action-btn-lg { min-height: 64px; font-size: 18px; font-weight: 800; border-radius: 14px; }
.table-action-modal-content { border-radius: 20px; position: relative; }
/* BYMSA Patch: Masa aksiyon modalinda X standart header akisina alinarak tum modallarla hizalanir. */
.table-action-modal-header { min-height: 48px; padding: 10px 16px 0; border-bottom: 0; }
.table-action-modal-content [data-table-action-body] { padding-top: 12px !important; }
.table-customer-divider { text-align: center; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table-customer-divider::before { content: 'Müşteri'; }
.table-section-divider { height: 1px; background: #e2e8f4; }
.customer-board-item-wrap { position: relative; }
.customer-board-card { width: 100%; border: 1px solid #dbe7fb; background: linear-gradient(180deg, #ffffff, #f4f8ff); border-radius: 14px; padding: 12px; display: grid; gap: 6px; text-align: left; color: #1e293b; cursor: grab; transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.customer-board-card strong { font-size: 15px; }
.customer-board-card small { color: #64748b; font-weight: 600; }
.customer-board-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: var(--shadow-sm); }
.customer-board-card:active { cursor: grabbing; }
.customer-status-chip { justify-self: start; border-radius: 999px; background: #dbeafe; color: #1e40af; padding: 2px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
/* BYMSA Patch: Veresiye müşteri etiketi bekleme kartında sarı ton ile ayırt edilir. */
.customer-status-chip.is-credit { background: #fef3c7; color: #92400e; }
/* BYMSA Patch: Veresiye operasyon kartinda atanmis mutfak ve kurye kisa meta olarak gosterilir. */
.customer-assignment-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.customer-assignment-meta small { border-radius: 999px; background: #eef2ff; color: #3730a3; padding: 2px 7px; font-size: 10px; font-weight: 800; }
.customer-assignment-meta small.is-credit { background: #fef3c7; color: #92400e; }
.customer-assignment-meta small.is-anonymous { background: #dbeafe; color: #1d4ed8; }
.customer-order-items { display: block; color: #334155; font-weight: 700; line-height: 1.3; }
.customer-order-subitems { margin: -2px 0 0 26px; display: grid; gap: 2px; }
.customer-order-list { display: grid; gap: 6px; margin-top: 4px; }
/* BYMSA Patch: Bekleyen siparis satirlari ikon + yemek + adet tek satir hizada kalir. */
.customer-order-line { display: grid; grid-template-columns: 18px minmax(0, 1fr) 34px; align-items: center; gap: 8px; color: #334155; font-size: 13px; font-weight: 700; }
.customer-order-line .ic { width: 16px; height: 16px; color: #2563eb; }
.customer-order-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.customer-order-qty { color: #0f172a; font-size: 12px; min-width: 34px; text-align: right; align-self: center; }
.order-history-summary { display: grid; gap: 8px; min-height: 96px; align-content: center; position: relative; overflow: hidden; border: 1px solid #e2e8f4; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); }
.order-history-summary::after { content: ''; position: absolute; width: 70px; height: 70px; right: -24px; top: -28px; border-radius: 999px; background: rgba(37, 99, 235, .08); }
.order-history-summary small { color: #64748b; font-weight: 900; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; }
.order-history-summary strong { color: #0f172a; font-size: 19px; line-height: 1.1; }
.order-history-summary.is-success::after { background: rgba(22, 163, 74, .10); }
.order-history-summary.is-info::after { background: rgba(14, 165, 233, .12); }
.order-history-summary.is-warning::after { background: rgba(245, 158, 11, .14); }
.order-history-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order-history-date-grid label { display: grid; gap: 6px; color: #334155; font-weight: 800; }
.order-history-date-grid input { min-height: 46px; border-color: #cfd8ea; border-radius: 14px; font-weight: 800; }
.order-history-date-grid input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.order-history-card { cursor: default; }
.order-history-card:hover { transform: none; }
.order-history-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-history-payment { border-radius: 12px; background: #ecfdf5; color: #166534; padding: 8px 10px; font-weight: 900; }
.order-history-split-badge { display: inline-flex; align-items: center; border-radius: 12px; background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; padding: 7px 10px; font-size: 12px; font-weight: 900; line-height: 1.25; }
.order-history-note { display: grid; gap: 3px; border-radius: 12px; background: #fffbeb; color: #92400e; padding: 8px 10px; font-size: 12px; line-height: 1.35; }
.order-history-note strong { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #b45309; }
.order-history-item-note { display: block; margin: -2px 0 2px 26px; color: #92400e; font-weight: 700; font-size: 12px; line-height: 1.3; }
.credit-board-summary-card.is-info { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; border-color: #bfdbfe; }
.customer-detail-name { display: block; color: #0f172a; font-size: 18px; font-weight: 900; text-align: center; }
.customer-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-detail-actions .btn { min-height: 44px; font-weight: 900; }
.invoice-page-stack { display: grid; gap: 16px; }
.invoice-design-panel .menu-product-header-row { align-items: center; padding-bottom: 14px; margin-bottom: 16px; }
.invoice-design-panel .menu-product-header-row h2 { font-weight: 900; color: #0f172a; }
.invoice-design-form { display: grid; gap: 14px; }
/* BYMSA Patch: Fatura bilgileri iki satirli dengeli form duzeniyle hizalanir. */
.invoice-design-row-main { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; }
.invoice-design-row-details { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.invoice-design-row-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.invoice-field-submit { width: min(100%, 230px); }
.invoice-field-submit .btn { min-height: 44px; font-weight: 900; }
.invoice-field-info textarea,
.invoice-field-note textarea { min-height: 92px; resize: vertical; }
.invoice-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.invoice-label-row .form-label { margin-bottom: 0 !important; }
.invoice-logo-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 9px; border-radius: 999px; background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; font-size: 11px; font-weight: 900; white-space: nowrap; }
/* BYMSA Patch: Bekleyen kartinda iptal aksiyonu sade X ikonu ile kart icine tasindi. */
.customer-board-cancel { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid #fecaca; background: #fff5f5; color: #b91c1c; font-size: 12px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.customer-board-cancel:hover { background: #fee2e2; }
.customer-board-update { position: absolute; right: 40px; top: 8px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.customer-board-update:hover { background: #dbeafe; }
/* BYMSA Patch: Bekleyen kartina hizli tahsilat icin yesil dolar aksiyonu eklendi. */
.customer-board-payment { position: absolute; right: 72px; top: 8px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid #86efac; background: #ecfdf5; color: #15803d; font-size: 11px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.customer-board-payment:hover { background: #dcfce7; }
.customer-board-cancel svg, .customer-board-update svg, .customer-board-payment svg { width: 18px; height: 18px; display: block; }
/* BYMSA Patch: Veresiye/kurye operasyon boardunda kart ustu kucuk aksiyonlar gizlenir, drop aksiyonlari korunur. */
[data-hide-board-card-actions="1"] .customer-board-payment,
[data-hide-board-card-actions="1"] .customer-board-update,
[data-hide-board-card-actions="1"] .customer-board-cancel { display: none !important; }
/* BYMSA Patch: Dolar ikonu optik merkezde dursun diye stroke kalinligi ve kucuk offset dengelenir. */
.customer-board-payment svg { width: 16px; height: 16px; stroke-width: 2.4; transform: none; }
/* BYMSA Patch: Lucide dollar-sign ikonunda tek cizgi hissi icin stroke kalinligi kaynak SVG ile esitlendi. */
.customer-board-payment svg { stroke-width: 2; }
.customer-search-box { position: relative; }
.customer-picker-modal { overflow: visible; }
.customer-search-dropdown { position: static; margin-top: 8px; background: #fff; border: 1px solid #e7edf7; border-radius: 14px; box-shadow: var(--shadow-sm); max-height: 260px; overflow: auto; }
.customer-result-item { width: 100%; border: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; font-size: 16px; font-weight: 700; color: #1e293b; }
.customer-result-item span { color: inherit; font-size: inherit; font-weight: inherit; }
.customer-result-item:hover, .customer-result-item.active { background: #f8fbff; }
.customer-result-empty { padding: 12px 14px; color: var(--muted); }

/* BYMSA Patch: Menü ürün ekranı tek satır form ve modern durum chipleriyle sadeleştirildi. */
.menu-product-shell { border: 1px solid #e2e8f4; }
.menu-product-shell:hover,
.menu-product-table-shell:hover { transform: none; box-shadow: var(--shadow-sm); border-color: #e2e8f4; }
.menu-product-header-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #e2e8f4; }
.menu-product-inline-form { display: grid; gap: 10px; align-items: end; }
.menu-product-inline-form-with-daily { grid-template-columns: minmax(180px, 1.1fr) minmax(240px, 1.35fr) minmax(120px, .8fr) minmax(150px, .95fr) minmax(150px, .95fr) minmax(140px, 170px); }
.menu-product-inline-form-no-daily { grid-template-columns: minmax(180px, 1.15fr) minmax(260px, 1.45fr) minmax(130px, .85fr) minmax(160px, 1fr) minmax(140px, 170px); }
.menu-field { min-width: 0; }
.menu-field-status { align-self: stretch; max-width: none; }
.menu-field-submit { justify-self: end; width: min(100%, 170px); }
.menu-product-shell .form-label { color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px !important; }
.menu-product-shell .form-control,
.menu-category-trigger,
.menu-field-status .menu-status-chip,
.menu-field-submit .btn { min-height: 42px; }
.menu-product-shell .form-control { border-color: #cfd8ea; }
.menu-product-shell .form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.menu-category-dropdown { position: relative; }
.menu-category-trigger { width: 100%; min-height: 40px; border: 1px solid #cfd8ea; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; color: #1e293b; }
.menu-category-trigger:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.menu-category-trigger-main { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.menu-category-selected-icon { color: #2563eb; display: inline-flex; align-items: center; }
.menu-category-selected-icon .ic { width: 16px; height: 16px; }
.menu-category-selected-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-category-caret { color: #64748b; font-size: 12px; }
.menu-category-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; border: 1px solid #dbe7fb; border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); padding: 6px; max-height: 260px; overflow: auto; }
.menu-category-option { width: 100%; border: 0; border-radius: 10px; background: #fff; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; color: #334155; font-weight: 700; text-align: left; padding: 8px 10px; }
.menu-category-option .ic { width: 16px; height: 16px; color: #2563eb; }
.menu-category-option:hover { background: #f1f6ff; }
.menu-category-option.is-active { background: #eff6ff; color: #1d4ed8; }
.order-assignment-dropdown .menu-category-trigger { min-height: 48px; border-radius: 14px; }
.order-assignment-dropdown .menu-category-menu { z-index: 1085; }
#orderAssignmentModal .modal-content,
#orderAssignmentModal .modal-body { overflow: visible; }
#orderAssignmentModal .modal-dialog { overflow: visible; }
.order-assignment-empty { color: #64748b; font-weight: 700; padding: 8px 10px; }
.menu-modern-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; border: 1px solid #dbe7fb; border-radius: 12px; background: #f8fbff; }
.menu-radio-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid #dbe7fb; border-radius: 10px; background: #f8fbff; color: #334155; cursor: pointer; font-weight: 700; padding: 0 10px; }
.menu-radio-option.is-active { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.menu-status-toggle-wrap { display: grid; }
.menu-product-table-shell { border: 1px solid #e2e8f4; }
.menu-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-table-search-wrap { flex: 1 1 auto; max-width: 420px; }
.customer-summary-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.customer-summary-badge { display: inline-flex; align-items: center; min-height: 34px; border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; color: #1e3a8a; font-size: 12px; font-weight: 700; padding: 6px 10px; white-space: nowrap; }
.customer-summary-badge strong { margin-left: 4px; font-variant-numeric: tabular-nums; }
.customer-summary-badge.is-money { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.menu-table-filter-wrap { position: relative; min-width: 220px; }
.menu-table-filter-trigger { width: 100%; min-height: 40px; border: 1px solid #cfd8ea; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; color: #1e293b; }
.menu-table-filter-trigger:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.menu-table-filter-label { font-weight: 700; }
.menu-table-filter-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; border: 1px solid #dbe7fb; border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); padding: 6px; max-height: 260px; overflow: auto; }
.menu-table-filter-option { width: 100%; border: 0; border-radius: 10px; background: #fff; min-height: 38px; display: inline-flex; align-items: center; color: #334155; font-weight: 700; text-align: left; padding: 8px 10px; }
.menu-table-filter-option:hover { background: #f1f6ff; }
.menu-table-filter-option.is-active { background: #eff6ff; color: #1d4ed8; }
/* BYMSA Patch: Ortak UI helper bileşenleri dropdown/toggle/segment davranışını tek standarda toplar. */
.ui-dropdown, .app-dropdown { position: relative; }
.ui-dropdown-trigger-main, .app-dropdown-trigger-main { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ui-dropdown-icon, .ui-dropdown-option-icon, .app-dropdown-icon, .app-dropdown-option-icon { display: inline-flex; align-items: center; color: #2563eb; }
.ui-dropdown-icon .ic, .ui-dropdown-option-icon .ic, .app-dropdown-icon .ic, .app-dropdown-option-icon .ic { width: 16px; height: 16px; }
.ui-dropdown-option, .app-dropdown-option { gap: 8px; }
.app-dropdown.app-dropdown-sm { min-width: 120px; }
.app-dropdown.app-dropdown-md { min-width: 220px; }
.app-dropdown.app-dropdown-lg { min-width: 280px; }
.app-dropdown .menu-table-filter-trigger { min-height: 42px; }
.app-dropdown .menu-table-filter-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-toggle { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 6px 12px; }
.ui-toggle.is-on, .ui-toggle.is-yes { background: #dcfce7; color: #166534; }
.ui-toggle.is-off, .ui-toggle.is-no { background: #fee2e2; color: #991b1b; }
.ui-toggle:disabled { opacity: .7; cursor: wait; }
.ui-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; border: 1px solid #dbe7fb; border-radius: 12px; background: #f8fbff; }
.ui-segment-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid #dbe7fb; border-radius: 10px; background: #f8fbff; color: #334155; cursor: pointer; font-weight: 700; padding: 0 10px; }
.ui-segment-option.is-active { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
/* BYMSA Patch: Rapor filtre butonu tarih inputlari ve dropdown ile ayni yukseklikte kalir. */
.report-filter-submit { min-height: 42px; display: inline-flex; align-items: center; }
/* BYMSA Patch: Menu kategori modal select'i custom dropdown diliyle ayni kenar/focus gorunumunde sunulur. */
.menu-category-native-select { min-height: 40px; border: 1px solid #cfd8ea; border-radius: 10px; background-color: #fff; color: #1e293b; font-weight: 700; }
.menu-category-native-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
/* BYMSA Patch: Urun kategori modalinda custom dropdown listesi kesilmemesi icin lokal overflow/z-index duzeltmesi uygulanir. */
#menuProductCategoryModal .modal-content { overflow: visible; }
#menuProductCategoryModal .modal-body { overflow: visible; }
#menuProductCategoryModal .menu-category-dropdown { z-index: 30; }
#menuProductCategoryModal .menu-category-menu { z-index: 40; }
#customerStageModal .modal-dialog,
#customerStageModal .modal-content,
#customerStageModal .modal-body,
#customerSectorModal .modal-dialog,
#customerSectorModal .modal-content,
#customerSectorModal .modal-body,
#meetingCompleteStageModal .modal-dialog,
#meetingCompleteStageModal .modal-content,
#meetingCompleteStageModal .modal-body { overflow: visible; }
#customerStageModal .ui-dropdown-menu,
#customerSectorModal .ui-dropdown-menu,
#meetingCompleteStageModal .ui-dropdown-menu { z-index: 1085; max-height: 220px; overflow: auto; }
.menu-product-table thead th { border-bottom: 1px solid #e2e8f4; color: #64748b; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.menu-product-table tbody td { border-color: #eef2fb; }
.customer-manage-table th:nth-child(n+3),
.customer-manage-table td:nth-child(n+3) { text-align: center; vertical-align: middle; }
.customer-manage-table th:nth-child(1),
.customer-manage-table th:nth-child(2),
.customer-manage-table td:nth-child(1),
.customer-manage-table td:nth-child(2) { text-align: left; }
.menu-price-cell { border: 0; background: transparent; color: inherit; font-weight: 700; text-align: right; padding: 0; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.menu-price-cell:hover { color: #1d4ed8; }
.menu-name-cell { border: 0; background: transparent; color: inherit; text-align: left; padding: 0; }
.menu-name-cell:hover { color: #1d4ed8; }
/* BYMSA Patch: Müşteri link sutunlari metin yerine kompakt ikon aksiyonlari kullanir. */
.customer-link-actions { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 30px; margin-inline: auto; }
.customer-link-actions.has-link { width: 68px; }
.customer-field-actions { width: auto; min-width: 30px; }
.customer-field-actions.has-link { width: auto; }
.customer-link-action { width: 30px; height: 30px; border: 1px solid #dbe6f7; border-radius: 999px; background: #f8fbff; color: #2563eb; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.customer-link-action svg { width: 15px; height: 15px; }
.customer-link-action:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; transform: translateY(-1px); }
.customer-link-action.is-add { background: #ecfdf5; border-color: #bbf7d0; color: #15803d; }
.customer-link-action.is-add:hover { background: #dcfce7; border-color: #86efac; color: #166534; }
.customer-copy-action.is-copied { background: #dcfce7; border-color: #86efac; color: #166534; }
.customer-copy-action.is-copy-failed { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.customer-link-action.is-disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; pointer-events: none; opacity: .62; }
.customer-stage-badge { border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; min-height: 30px; padding: 5px 11px; font-size: 11px; font-weight: 950; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease; }
.customer-stage-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .14); }
.customer-stage-badge.is-first_meeting_done { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.customer-stage-badge.is-follow_up { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.customer-stage-badge.is-sale_done { background: #dcfce7; border-color: #86efac; color: #166534; }
.customer-stage-badge.is-sale_failed { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
/* BYMSA Patch: Takvim modulu gun hucrelerinde gorusme noktalarini ve bekleyen listeyi modernlestirir. */
.calendar-shell { display: grid; gap: 16px; }
.calendar-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%); }
.calendar-hero-nav { justify-content: center; padding: 14px 16px; }
.calendar-hero.is-compact { padding: 0; background: transparent; box-shadow: none; border: 0; margin-bottom: 18px; }
.calendar-kicker { color: #2563eb; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.calendar-hero h2 { margin: 4px 0; font-weight: 900; }
.calendar-hero p { margin: 0; color: #64748b; }
.calendar-nav-actions { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.calendar-grid-card { overflow: hidden; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); }
.calendar-weekdays span { padding: 12px; color: #475569; font-size: 12px; font-weight: 900; text-transform: uppercase; text-align: center; border-right: 1px solid #d7e2f0; border-bottom: 1px solid #cbd8ea; }
.calendar-day { min-height: 118px; border: 0; border-right: 1px solid #d7e2f0; border-bottom: 1px solid #d7e2f0; background: #fff; text-align: left; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: #1e293b; position: relative; overflow: hidden; }
.calendar-day:hover { background: #f8fbff; }
.calendar-day.is-weekend { background: #fff5f5; }
.calendar-day.is-weekend:hover { background: #fff5f5; box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .22), 0 8px 20px rgba(220, 38, 38, .08); }
.calendar-day.is-muted { background: repeating-linear-gradient(135deg, #e9eef6 0, #e9eef6 8px, #dfe7f1 8px, #dfe7f1 14px); color: #64748b; }
.calendar-day.is-muted.is-weekend { background: repeating-linear-gradient(135deg, #eadfe4 0, #eadfe4 8px, #dfd4db 8px, #dfd4db 14px); }
.calendar-day.is-muted.is-weekend:hover { background: repeating-linear-gradient(135deg, #eadfe4 0, #eadfe4 8px, #dfd4db 8px, #dfd4db 14px); box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .22), 0 8px 20px rgba(220, 38, 38, .08); }
.calendar-day.is-today { box-shadow: inset 0 0 0 3px #60a5fa; }
.calendar-day.is-past::after { content: "X"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; color: rgba(15, 23, 42, .18); font-size: clamp(64px, 7vw, 112px); font-weight: 950; line-height: 1; pointer-events: none; }
.calendar-day.is-past.is-weekend::after { color: rgba(127, 29, 29, .2); }
.calendar-day-number, .calendar-day-dots, .calendar-day small { position: relative; z-index: 6; }
.calendar-day-number { font-weight: 900; }
.calendar-day-dots { min-height: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.calendar-dot { width: 10px; height: 10px; border-radius: 999px; background: #2563eb; display: inline-block; box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.calendar-dot.is-done { background: #16a34a; }
.calendar-dot.is-done { box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }
.calendar-dot.is-cancelled { background: #dc2626; }
.calendar-dot.is-cancelled { box-shadow: 0 0 0 3px rgba(220, 38, 38, .16); }
.calendar-day small { margin-top: auto; color: #64748b; font-weight: 800; }
.meeting-modal-dropdown { width: 100%; }
.meeting-modal-dropdown .ui-dropdown-menu { z-index: 1065; }
.calendar-modal-meetings { border-top: 1px solid #e2e8f0; padding-top: 14px; display: grid; gap: 10px; }
.calendar-modal-meetings-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-modal-meetings-head strong { font-weight: 900; color: #0f172a; }
.calendar-modal-meetings-head small { color: #64748b; font-weight: 800; }
.calendar-modal-meetings-list { max-height: 240px; overflow: auto; display: grid; gap: 10px; padding-right: 2px; }
.calendar-modal-meeting-card { border: 1px solid #dbe6f3; border-radius: 16px; background: #f8fbff; padding: 12px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; position: relative; }
.calendar-meeting-cancel, .calendar-meeting-complete { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 950; line-height: 1; transition: transform .16s ease, background .16s ease, color .16s ease; }
.calendar-meeting-cancel { border: 1px solid #fecaca; background: #fff1f2; color: #dc2626; box-shadow: 0 8px 18px rgba(220,38,38,.12); }
.calendar-meeting-cancel:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }
.calendar-meeting-complete { border: 1px solid #bbf7d0; background: #f0fdf4; color: #16a34a; box-shadow: 0 8px 18px rgba(22,163,74,.12); }
.calendar-meeting-complete:hover { background: #16a34a; color: #fff; transform: translateY(-1px); }
.calendar-meeting-cancel:disabled, .calendar-meeting-complete:disabled { opacity: .55; cursor: wait; transform: none; }
.calendar-modal-meeting-time { color: #2563eb; font-weight: 950; }
.calendar-modal-meeting-main { display: grid; gap: 3px; min-width: 0; }
.calendar-modal-meeting-main span { color: #0f172a; font-weight: 800; }
.calendar-modal-meeting-main small { color: #64748b; font-weight: 750; }
.calendar-modal-meeting-main p { margin: 4px 0 0; color: #475569; font-size: 13px; line-height: 1.35; }
.calendar-modal-contact-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calendar-phone-copy { border: 1px solid #bfdbfe; border-radius: 999px; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #1d4ed8; padding: 5px 8px 5px 9px; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; box-shadow: 0 8px 18px rgba(37, 99, 235, .10); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.calendar-phone-copy::before { content: ""; width: 18px; height: 18px; border-radius: 999px; background: #2563eb; box-shadow: inset 0 0 0 5px #bfdbfe; flex: 0 0 auto; }
.calendar-phone-copy:hover { border-color: #93c5fd; box-shadow: 0 10px 22px rgba(37, 99, 235, .16); transform: translateY(-1px); }
.calendar-phone-copy:focus-visible { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }
.calendar-phone-copy.is-copied { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #166534; }
.calendar-phone-copy.is-copy-failed { border-color: #fecaca; background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%); color: #b91c1c; }
.calendar-phone-copy-text { white-space: nowrap; }
.calendar-copy-feedback { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; color: #15803d; font-size: 11px; transition: max-width .18s ease, opacity .18s ease; }
.calendar-phone-copy.is-copied .calendar-copy-feedback { max-width: 78px; opacity: 1; }
.calendar-modal-meeting-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.calendar-modal-meeting-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-modal-meeting-actions { display: inline-flex; align-items: center; gap: 7px; }
.calendar-modal-status { border-radius: 999px; padding: 3px 8px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 900; white-space: nowrap; }
.calendar-modal-status.is-done { background: #dcfce7; color: #15803d; }
.calendar-modal-status.is-cancelled { background: #fee2e2; color: #b91c1c; }
.meeting-list { display: grid; gap: 12px; }
.meeting-card { border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; }
.meeting-card-customer-only { grid-template-columns: minmax(0, 1fr); }
.meeting-card time { color: #2563eb; font-weight: 900; }
.meeting-main { display: grid; gap: 2px; }
.meeting-main strong { font-size: 16px; }
.meeting-main small { color: #64748b; }
.meeting-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.meeting-links a { border-radius: 999px; background: #eff6ff; color: #1d4ed8; padding: 4px 9px; font-size: 12px; font-weight: 800; }
.meeting-side { display: grid; gap: 8px; justify-items: end; }
.meeting-owner { color: #475569; font-weight: 800; }
.meeting-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.meeting-actions form { margin: 0; }
.meeting-empty { color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 18px; text-align: center; font-weight: 800; }
.menu-category-chip { display: inline-flex; align-items: center; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 700; padding: 4px 10px; }
.menu-category-chip .ic { width: 14px; height: 14px; color: #2563eb; margin-right: 6px; }
.menu-category-chip-edit { border: 0; }
.menu-category-chip-edit:hover { background: #e2e8f0; }
.menu-status-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 90px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 6px 12px; }
.menu-status-chip.is-on { background: #dcfce7; color: #166534; }
.menu-status-chip.is-off { background: #fee2e2; color: #991b1b; }
.menu-status-chip:disabled { opacity: .7; cursor: wait; }
.menu-field-status .menu-status-chip { box-shadow: none; }
.menu-field-submit .btn { box-shadow: none; font-weight: 700; }
/* BYMSA Patch: Günün menüsü fiyat kartı gereksiz dikey alanı azaltılıp tek satır kompakt forma çekilir. */
.menu-daily-price-inline-form { grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px); gap: 8px; align-items: end; }
.menu-daily-price-inline-form .menu-field { margin-bottom: 0; }
.menu-daily-price-inline-form .form-label { margin-bottom: 4px !important; }
.menu-daily-price-inline-form .form-control,
.menu-daily-price-inline-form .btn { min-height: 38px; }
.menu-daily-price-inline-form .menu-field-submit { width: 100%; justify-self: stretch; }
/* BYMSA Patch: Devamli musteri formu satiri daha dengeli kolonlarla duzenlenir. */
.customer-manage-inline-form { grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.customer-manage-inline-form .customer-form-second-row { grid-row: 2; }
.customer-manage-inline-form .menu-field-status { max-width: none; }
.customer-manage-inline-form .menu-field { min-width: 0; }
.customer-manage-inline-form .ui-dropdown { min-width: 0; width: 100%; }
.customer-manage-inline-form .menu-category-trigger,
.customer-manage-inline-form .form-control,
.customer-manage-inline-form .form-select,
.customer-manage-inline-form .ui-dropdown-trigger,
.customer-manage-inline-form .ui-toggle,
.customer-manage-inline-form .btn { min-height: 44px; }
.customer-manage-inline-form .menu-field-submit .btn { width: 100%; }
.customer-manage-inline-form .menu-field-status { display: grid; align-content: end; }
.customer-manage-inline-form .menu-modern-switch { min-height: 44px; padding: 3px; }
.customer-manage-inline-form .menu-modern-switch .menu-radio-option { min-height: 36px; }
/* BYMSA Patch: Sahip alani daha rahat okunurken indirim alani gereksiz bosluk yapmaz. */
.customer-manage-inline-form .menu-field-price .form-control { max-width: none; width: 100%; }
/* BYMSA Patch: Lisans tanimlama formunda period/tarih/not alani ikinci satirda daha okunakli tutulur. */
.license-inline-form { grid-template-columns: minmax(240px, 1.35fr) minmax(210px, 1.15fr) minmax(120px, .65fr) minmax(170px, .95fr) minmax(150px, .85fr); }
.license-inline-form .license-form-second-row { grid-row: 2; }
.license-inline-form .menu-field-submit { width: 100%; justify-self: stretch; }
.license-key-copy { border: 1px solid #dbe7fb; border-radius: 999px; background: #f8fbff; color: #1d4ed8; padding: 6px 10px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-key-copy:hover { background: #eff6ff; border-color: #bfdbfe; }
.license-key-copy code { color: inherit; font-weight: 800; }
.license-status-form { display: inline-flex; justify-content: center; margin: 0; }
.license-status-form .ui-toggle { min-width: 86px; cursor: pointer; box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
/* BYMSA Patch: Personel ekle formu alan tipine gore oranli kolonlarla otomatik hizalanir. */
.user-manage-inline-form { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, .95fr) minmax(140px, 170px); gap: 10px; width: 100%; }
.user-manage-inline-form .menu-field-status { max-width: none; }
.user-manage-inline-form .menu-field { min-width: 0; }
.user-manage-inline-form .form-control,
.user-manage-inline-form .form-select,
.user-manage-inline-form .btn { min-height: 44px; }
.user-manage-inline-form .menu-field-status { display: grid; align-content: end; }
.user-manage-inline-form .menu-field-submit { width: min(100%, 170px); justify-self: end; }
.user-manage-inline-form .menu-field-submit .btn { width: 100%; min-width: 0; white-space: nowrap; }
.user-manage-inline-form .menu-category-trigger,
.user-manage-inline-form .menu-status-chip { min-height: 44px; }
/* BYMSA Patch: Kullanici kategori modalinda dropdown kesilmesini onlemek icin lokal overflow/z-index duzeltmesi uygulanir. */
#userRoleModal .modal-content { overflow: visible; }
#userRoleModal .modal-body { overflow: visible; }
#userRoleModal .menu-category-dropdown { z-index: 30; }
#userRoleModal .menu-category-menu { z-index: 40; }
/* BYMSA Patch: Kullanici ekle rol dropdown'unda tum kategoriler tek seferde acilsin, ic scroll olusmasin. */
[data-user-role-create-dropdown] .menu-category-menu { max-height: none; overflow: visible; }

@media (max-width: 1366px) {
    /* BYMSA Patch: Yeni urun formu orta ekranlarda modula gore 3 kolona duzgun dagilir. */
    .menu-product-inline-form-with-daily,
    .menu-product-inline-form-no-daily { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
    .customer-manage-inline-form { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
    .license-inline-form { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
    .user-manage-inline-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
    /* BYMSA Patch: Personel ekle satiri orta ekranlarda iki kolona duserek tasma ve kirpilmayi engeller. */
    .user-manage-inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-manage-inline-form { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
    .license-inline-form { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-product-inline-form-with-daily,
    .menu-product-inline-form-no-daily { grid-template-columns: 1fr; }
    .menu-field-submit { width: 100%; justify-self: stretch; }
    .customer-manage-inline-form { grid-template-columns: 1fr; }
    .license-inline-form { grid-template-columns: 1fr; }
    .user-manage-inline-form { grid-template-columns: 1fr; }
    .menu-daily-price-inline-form { grid-template-columns: 1fr; }
}
.menu-daily-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 6px 12px; }
.menu-daily-chip.is-yes { background: #dcfce7; color: #166534; }
.menu-daily-chip.is-no { background: #fee2e2; color: #991b1b; }
.menu-daily-chip:disabled { opacity: .7; cursor: wait; }
.menu-delete-chip { width: 34px; height: 34px; border: 1px solid #fecaca; border-radius: 999px; background: #fff5f5; color: #b91c1c; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.menu-delete-chip:hover { background: #fee2e2; }
/* BYMSA Patch: Menü ürün sıralama okları işlem kolonunda kompakt ve kategori içi hareket için sunulur. */
.menu-row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.menu-move-chip { width: 34px; height: 34px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.menu-move-chip svg { width: 17px; height: 17px; display: block; }
.menu-move-chip:hover { background: #dbeafe; }
.menu-move-chip:disabled { opacity: .45; cursor: not-allowed; }
.menu-credit-chip { width: 34px; height: 34px; border: 1px solid #bbf7d0; border-radius: 999px; background: #ecfdf5; color: #15803d; margin-right: 6px; display: inline-flex; align-items: center; justify-content: center; }
.menu-credit-chip .ic { width: 17px; height: 17px; }
.menu-credit-chip:hover { background: #dcfce7; }
.customer-discount-products-chip { min-width: 48px; border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 12px; font-weight: 900; padding: 6px 10px; }
.customer-discount-products-chip:hover { background: #ffedd5; }
.customer-discount-product-tags { display: flex; flex-wrap: wrap; gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.customer-discount-product-tag { border: 1px solid #dbe7fb; border-radius: 999px; background: #fff; color: #334155; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 800; }
.customer-discount-product-tag small { color: #64748b; font-weight: 800; }
.customer-discount-product-tag.is-selected { border-color: #f97316; background: #fff7ed; color: #9a3412; }
.customer-discount-product-tag.is-selected small { color: #c2410c; }
/* BYMSA Patch: Lisans ekrani aktiflik durumunu kompakt ve okunur bilgi kartlariyla sunar. */
.license-status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.license-status-main { display: flex; align-items: center; gap: 14px; }
.license-status-icon { width: 46px; height: 46px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.license-status-icon .ic { width: 24px; height: 24px; }
.license-status-icon.success { background: #dcfce7; color: #166534; }
.license-status-icon.danger { background: #fee2e2; color: #991b1b; }
.license-status-icon.neutral { background: #e2e8f0; color: #334155; }
.license-status-badge { border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.license-status-badge.success { background: #dcfce7; color: #166534; }
.license-status-badge.danger { background: #fee2e2; color: #991b1b; }
.license-status-badge.neutral { background: #e2e8f0; color: #334155; }
.license-info-card { min-height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.license-info-card span { color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.license-info-card strong { color: #0f172a; font-size: 20px; }
.product-card-price.has-discount { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.product-card-price.has-discount del { opacity: .7; font-size: 13px; font-weight: 700; }
.product-card-price.has-discount span { color: #dc2626; }
/* BYMSA Patch: Islem kolonundaki siparis aksiyonu utensil ikonu ile merkezde ve esit boyutta sunulur. */
.menu-order-chip { width: 34px; height: 34px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; margin-right: 6px; display: inline-flex; align-items: center; justify-content: center; }
.menu-order-chip .ic { width: 17px; height: 17px; }
.menu-order-chip:hover { background: #dbeafe; }
/* BYMSA Patch: Log tablosunda aksiyon etiketleri kullanici dostu renkli chip olarak sunulur. */
.log-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 138px; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.log-tag.is-success { background: #dcfce7; color: #166534; }
.log-tag.is-info { background: #dbeafe; color: #1d4ed8; }
.log-tag.is-warn { background: #fef3c7; color: #92400e; }
.log-tag.is-danger { background: #fee2e2; color: #991b1b; }
.log-tag.is-neutral { background: #e2e8f0; color: #334155; }
/* BYMSA Patch: Users tablo islem ikonlari tek satirda ortali ve esit boslukla hizalanir. */
.user-action-group { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.user-action-group .menu-order-chip,
.user-action-group .menu-delete-chip { margin: 0; line-height: 1; flex: 0 0 auto; }
.customer-credit-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 12px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; }
.customer-credit-meta-item { display: inline-flex; align-items: center; gap: 8px; color: #1e3a8a; font-weight: 700; min-width: 0; }
.customer-credit-meta-item .ic { width: 16px; height: 16px; color: #2563eb; flex: 0 0 auto; }
.customer-credit-meta-item strong,
.customer-credit-meta-item span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-credit-meta-item:last-child span { font-variant-numeric: tabular-nums; }
/* BYMSA Patch: Musteri meta alaninda isim sol, telefon orta, bakiye sag hizaya sabitlenir. */
.customer-credit-meta-item:nth-child(1) { justify-content: flex-start; text-align: left; }
.customer-credit-meta-item:nth-child(2) { justify-content: center; text-align: center; }
.customer-credit-meta-item:nth-child(3) { justify-content: flex-end; text-align: right; }
.customer-credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-credit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 170px); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f4; border-radius: 10px; background: #fff; }
.customer-credit-row .form-label { font-weight: 700; color: #334155; }
.customer-credit-row.is-positive { border-color: #bbf7d0; background: #f0fdf4; }
.customer-credit-row.is-negative { border-color: #fecaca; background: #fff5f5; }
.customer-credit-row .form-control { min-height: 40px; }
.customer-credit-reporting h6 { font-size: 13px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: .02em; }
.customer-credit-submit-wrap { display: flex; justify-content: flex-end; }
.customer-credit-reporting-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.customer-credit-reporting-actions .btn { width: 100%; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.customer-credit-reporting-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
/* BYMSA Patch: Veresiye modalı uzun isim/telefon/tutarlar için genişletilir. */
#customerCreditActionModal .modal-dialog { max-width: 760px; }
/* BYMSA Patch: Adisyon kapatma özet satırları isim/adet/fiyat sabit kolonlarla hizalı ve okunaklı hale getirildi. */
.close-summary-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px 78px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e2e8f4; }
.close-summary-entry { border-bottom: 1px solid #e2e8f4; padding: 4px 0; }
.close-summary-entry .close-summary-line { border-bottom: 0; padding: 2px 0; }
.close-summary-name { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: #1e293b; font-weight: 700; }
.close-summary-name .ic { width: 16px; height: 16px; color: #2563eb; flex: 0 0 auto; }
.close-summary-name span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.close-summary-qty { text-align: center; color: #0f172a; font-weight: 800; font-size: 13px; }
.close-summary-price { text-align: right; color: #0f172a; font-weight: 800; white-space: nowrap; }
.close-summary-subitems { grid-column: 1 / -1; margin-left: 22px; display: grid; gap: 2px; padding: 0 0 4px; }
/* BYMSA Patch: Adisyon kapat ozet kartinda hover etkisi kapatildi. */
[data-close-summary-wrap],
[data-close-summary-wrap]:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: #e2e8f4 !important;
}
.close-summary-line:hover { background: transparent; }
/* BYMSA Patch: Adisyon kapatma alanında hover hareketi kaldırılarak odak sabitlenir. */
[data-table-close-actions] .btn,
[data-table-close-actions] .btn:hover,
[data-table-close-actions] .btn:focus {
    transform: none !important;
    box-shadow: none !important;
}
/* BYMSA Patch: Adisyon kapat odeme butonlari sabit renk ve ikonlu kullanima cevrildi. */
.table-pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; font-weight: 650; font-size: 16px; border: 1px solid transparent; }
.table-pay-btn .ic { width: 22px; height: 22px; }
.table-pay-btn.is-cash { background: #16a34a; color: #fff; border-color: #16a34a; }
.table-pay-btn.is-card { background: #2563eb; color: #fff; border-color: #2563eb; }
.table-pay-btn.is-credit { background: #ca8a04; color: #fff; border-color: #ca8a04; }
.table-pay-btn:hover,
.table-pay-btn:focus,
.table-pay-btn:active { background: inherit; color: inherit; border-color: inherit; }
.table-pay-btn.is-cash:hover,
.table-pay-btn.is-cash:focus,
.table-pay-btn.is-cash:active { background: #16a34a; color: #fff; border-color: #16a34a; }
.table-pay-btn.is-card:hover,
.table-pay-btn.is-card:focus,
.table-pay-btn.is-card:active { background: #2563eb; color: #fff; border-color: #2563eb; }
.table-pay-btn.is-credit:hover,
.table-pay-btn.is-credit:focus,
.table-pay-btn.is-credit:active { background: #ca8a04; color: #fff; border-color: #ca8a04; }
/* BYMSA Patch: Hesabi bol satiri tek satir, esit kolon ve soft border kapsayici ile ayrisir. */
.table-pay-split-bar { display: grid; grid-template-columns: 0.75fr 0.75fr 1.5fr; gap: 10px; align-items: end; border: 1px solid #c7dbfb; border-radius: 14px; background: #edf4ff; padding: 10px; }
.table-pay-split-cell { min-width: 0; }
.table-pay-split-cell .form-label { margin-bottom: 4px !important; }
.table-pay-split-cell .form-label .ic { width: 14px; height: 14px; color: #475569; }
.table-pay-split-cell .form-control { height: 46px; }
.table-pay-split-action { display: flex; align-items: flex-end; }
.table-pay-split-action .btn { height: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 700; }
.table-pay-split-action .btn:hover,
.table-pay-split-action .btn:focus,
.table-pay-split-action .btn:active { background: #2563eb; color: #fff; border-color: #2563eb; }
.table-pay-split-action .btn .ic { width: 16px; height: 16px; color: #fff; }
/* BYMSA Patch: Urun bazli adisyon bolme paneli kapatma modalinda kompakt secim alani sunar. */
.table-order-split-toggle { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.table-order-split-toggle .ic { width: 17px; height: 17px; }
.table-order-split-panel { border: 1px solid #dbeafe; border-radius: 14px; background: #f8fbff; padding: 10px; }
.table-order-split-list { display: grid; gap: 8px; max-height: 210px; overflow: auto; padding-right: 2px; }
.table-order-split-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #e2e8f4; border-radius: 12px; background: #fff; padding: 8px 10px; }
.table-order-split-name { min-width: 0; display: grid; gap: 2px; }
.table-order-split-name strong { color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-order-split-name small { color: #64748b; font-weight: 700; }
.table-order-split-qty { display: inline-grid; grid-template-columns: 34px 42px 34px; align-items: center; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; background: #fff; }
.table-order-split-qty button { border: 0; background: #eff6ff; color: #1d4ed8; min-height: 34px; font-weight: 900; }
.table-order-split-qty span { text-align: center; font-weight: 900; color: #0f172a; font-variant-numeric: tabular-nums; }
.table-order-split-footer { display: grid; gap: 8px; margin-top: 10px; }
.table-order-split-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #334155; font-weight: 800; }
.table-order-split-total strong { color: #0f172a; font-variant-numeric: tabular-nums; }
.table-order-split-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.table-order-split-methods .btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-weight: 800; }
.table-order-split-methods .btn.is-active { border-color: #2563eb; background: #2563eb; color: #fff; }
.table-order-split-methods .btn .ic { width: 16px; height: 16px; }

/* BYMSA Patch: Gun ozeti icin 24 saat KPI kartlari ve chart paneli proje temasiyla uyumlu hale getirildi. */
.dashboard-hero { background: linear-gradient(120deg, #ffffff, #f4f8ff); border: 1px solid #dbe6f6; border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.metric-card-kpi { min-height: 158px; border-left-width: 0; border-top: 4px solid transparent; }
.metric-card-kpi .metric-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #475569; font-weight: 700; }
.metric-card-kpi .metric-meta small:first-child { font-size: 14px; color: #1e293b; }
.metric-card-kpi.metric-card-total { background: linear-gradient(140deg, #ffffff, #eff6ff 75%); }
.metric-card-lite { min-height: 128px; }
.metric-card-primary { border-top-color: #2563eb; }
.metric-card-success { border-top-color: #16a34a; }
.metric-card-info { border-top-color: #0891b2; }
.metric-card-warning { border-top-color: #f59e0b; }
.metric-card-danger { border-top-color: #dc2626; }
.dashboard-chart-panel { min-height: 360px; }
.dashboard-chart-panel canvas { width: 100% !important; height: 280px !important; }

/* BYMSA Patch: Sürüm özellik sayfası modül bazlı 2 sütun aktif/yol haritası kartlarıyla modernleştirildi. */
.version-hero { background: linear-gradient(130deg, #ffffff, #f3f8ff); border: 1px solid #d7e5f8; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.version-module-card { border-color: #dbe6f6; }
.version-module-head p { font-size: 14px; }
.version-col { border: 1px solid #e2e8f4; border-radius: 14px; padding: 12px; }
.version-col-active { background: #f0fdf4; border-color: #bbf7d0; }
.version-col-planned { background: #fff7ed; border-color: #fed7aa; }
.version-list { margin: 0; padding-left: 18px; color: #334155; }
.version-list li { margin-bottom: 6px; }
.version-list li:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
    /* BYMSA Patch: Mobil sidebar scroll olusturmadan ekran yuksekligine sigacak kompakt tam boy panele donusur. */
    .app-sidebar { position: fixed; width: min(286px, 86vw); height: 100dvh; max-height: 100dvh; padding: 14px; overflow: hidden; transform: translateX(-105%); transition: transform .2s ease; }
    .app-sidebar.open { transform: translateX(0); }
    .brand { margin: 2px 4px 12px; }
    .app-sidebar .nav-link { min-height: 40px; padding: 9px 11px; gap: 10px; font-size: 14px; }
    .app-sidebar .nav-link .ic { width: 18px; height: 18px; }
    .sidebar-footer { padding-top: 10px; }
    .sidebar-plan { margin-bottom: 10px; padding: 8px 10px; }
    .sidebar-user { grid-template-columns: 36px 1fr auto; gap: 8px; }
    .user-avatar { width: 36px; height: 36px; border-radius: 12px; }
    .user-meta small { font-size: 11px; }
    .topbar { padding: 0 16px; }
    .table-action-btn { width: 42px; height: 42px; }
    .table-action-btn[data-table-drag-handle] { touch-action: none; }
    /* BYMSA Patch: Masa ust barinda mobilde yatay scroll yerine rozet ve butonlar ekrana sigacak sekilde kirilir. */
    .table-toolbar { flex-direction: column; align-items: stretch; justify-content: flex-start; overflow-x: visible; }
    .table-status-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .table-status-item { min-width: 0; padding: 0 8px; font-size: 12px; }
    .table-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .table-action-row .btn { width: 100%; white-space: normal; line-height: 1.15; }
    .capacity-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .order-line { grid-template-columns: 1fr; }
    .table-order-ticket { position: static; flex: 0 0 auto; height: auto; max-height: none; }
    .order-items { max-height: 40vh; }
    .table-order-filters { position: static; background: transparent; padding-top: 0; padding-bottom: 0; }
    .table-action-btn-lg { min-height: 72px; font-size: 19px; }
    .customer-result-item { min-height: 64px; }
    .menu-product-inline-form { grid-template-columns: 1fr; }
    .invoice-design-row-main,
    .invoice-design-row-details { grid-template-columns: 1fr; }
    .invoice-design-row-actions { justify-content: stretch; }
    .invoice-field-submit { width: 100%; }
    .customer-manage-inline-form { grid-template-columns: 1fr; }
    .menu-modern-switch { grid-template-columns: 1fr; }
    .menu-table-toolbar { flex-direction: column; align-items: stretch; }
    .menu-table-search-wrap { max-width: none; }
    .customer-summary-badges { margin-left: 0; }
    .customer-summary-badge { flex: 1 1 100%; justify-content: center; }
    .menu-table-filter-wrap { min-width: 0; }
    .customer-credit-meta { grid-template-columns: 1fr; }
    .customer-credit-meta-item:nth-child(1),
    .customer-credit-meta-item:nth-child(2),
    .customer-credit-meta-item:nth-child(3) { justify-content: flex-start; text-align: left; }
    .customer-credit-submit-wrap { justify-content: stretch; }
    .customer-credit-submit-wrap .btn { width: 100%; }
    .customer-credit-reporting-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-credit-reporting-custom { grid-template-columns: 1fr; }
    .customer-credit-grid { grid-template-columns: 1fr; }
    .customer-credit-row { grid-template-columns: 1fr; }
    .calendar-grid-card { overflow-x: auto; }
    .calendar-weekdays, .calendar-grid { grid-template-columns: repeat(7, minmax(92px, 1fr)); min-width: 644px; }
    .meeting-card { grid-template-columns: 1fr; }
    .meeting-side { justify-items: start; }
    .table-pay-split-bar { grid-template-columns: 1fr; }
    .table-order-split-item { grid-template-columns: 1fr; }
    .table-order-split-qty { width: 100%; grid-template-columns: 44px 1fr 44px; }
    .credit-kitchen-summary-head { align-items: flex-start; flex-direction: column; }
    .credit-kitchen-summary-actions { width: 100%; justify-content: space-between; }
    .credit-history-card { grid-template-columns: 1fr; align-items: stretch; }
    .credit-history-amount { justify-self: flex-start; }
    .dashboard-chart-panel { min-height: 320px; }
}

@media (max-width: 991.98px) and (max-height: 680px) {
    /* BYMSA Patch: Kisa mobil ekranlarda sidebar ana navigasyon sigsin diye ikincil versiyon karti gizlenir. */
    .brand { margin-bottom: 8px; }
    .app-sidebar .nav-link { min-height: 36px; padding: 7px 10px; }
    .sidebar-plan { display: none; }
    .sidebar-footer { padding-top: 8px; }
}
