﻿:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e4e7eb;
  --border: #dfe3e8;
  --border-soft: #eaedf1;
  --text: #1a1e23;
  --text-2: #4a5568;
  --muted: #718096;
  --accent: #125b30;
  --accent-ink: #ffffff;
  --blue: #3182ce;
  --green: #38a169;
  --red: #e53e3e;
  --orange: #dd6b20;
  --purple: #805ad5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(18, 91, 48, .75); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; letter-spacing: -.5px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.55px; }
h3 { font-size: 15px; letter-spacing: -.12px; }
small { color: var(--muted); }
.hidden { display: none !important; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.space-top { margin-top: 18px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border: 2px solid transparent; border-radius: 20px; background-clip: padding-box; }

.app-shell { display: grid; grid-template-columns: minmax(0, 1fr); height: 100vh; }
.home-modules-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 24px; }

.module-card { width: calc(33.333% - 16px); position: relative; display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); color: var(--text); text-align: left; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease; cursor: pointer; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); border-color: rgba(18, 91, 48, 0.3); background: var(--surface-2); }
.module-card:active { transform: translateY(0); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); border-color: var(--accent); }
.module-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: rgba(18, 91, 48, 0.1); color: var(--accent); font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.module-info h3 { font-size: 16px; margin-bottom: 4px; }
.module-info p { font-size: 11px; color: var(--text-2); line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sidebar { display: flex; flex-direction: column; min-width: 0; padding: 24px 16px 18px; border-right: 1px solid var(--border-soft); background: var(--sidebar); }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 10px 27px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 900; letter-spacing: -.5px; box-shadow: 0 0 28px rgba(18, 91, 48, .13); }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: -.1px; white-space: nowrap; }
.brand-copy small { font-size: 11px; text-transform: uppercase; letter-spacing: 1.35px; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; transition: .16s ease; }
.nav-item:hover { color: var(--text); background: rgba(0, 0, 0, .035); }
.nav-item.active { color: var(--text); border-color: var(--border); background: linear-gradient(90deg, rgba(18, 91, 48, .12), rgba(18, 91, 48, .025)); }
.nav-item.active::before { position: absolute; left: -17px; width: 3px; height: 24px; border-radius: 0 5px 5px 0; background: var(--accent); content: ''; }
.nav-symbol { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.nav-item.active .nav-symbol { color: var(--accent); }
.nav-badge { min-width: 20px; padding: 2px 6px; border-radius: 20px; background: rgba(255, 180, 84, .16); color: var(--orange); font-size: 10px; font-weight: 800; text-align: center; }
.sidebar-status { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 13px 11px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(0, 0, 0, .018); }
.sidebar-status > span:last-child { display: grid; gap: 3px; min-width: 0; }
.sidebar-status strong { font-size: 11px; font-weight: 650; }
.sidebar-status small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot, .sync-indicator { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 211, 153, .09); }

.main-content { min-width: 0; height: 100vh; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px 28px; border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.eyebrow, .section-tag { display: block; margin-bottom: 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.55px; }
.topbar-actions, .toolbar-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.topbar-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar-logo { display: grid !important; place-items: center; padding: 0; text-decoration: none; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu-trigger { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 9px 4px 5px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; user-select: none; }
.account-menu-trigger:hover, .account-menu[open] .account-menu-trigger { border-color: var(--border); background: var(--surface-2); }
.account-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 850; }
.account-menu-copy { display: grid; min-width: 0; gap: 1px; line-height: 1.1; }
.account-menu-copy strong { overflow: hidden; max-width: 165px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-copy small { font-size: 9px; }
.account-menu-chevron { color: var(--muted); font-size: 15px; line-height: 1; transition: transform .16s ease; }
.account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-panel { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; display: grid; min-width: 200px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 38px rgba(0, 0, 0, .16); }
.account-menu-panel a, .account-menu-panel button { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 13px; border: 0; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 700; text-align: left; text-decoration: none; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--surface-2); color: var(--accent); }
.account-menu-panel .logout-form { border-top: 1px solid var(--border-soft); }
.account-menu-panel .logout-form button { color: var(--red); }
.account-menu-panel .logout-form button:hover { color: var(--red); }
.notification-center { position: relative; }
.notification-trigger { position: relative; font-size: 16px; }
.notification-icon { display: grid; place-items: center; width: 100%; height: 100%; line-height: 1; }
.notification-badge { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; font-weight: 850; font-variant-numeric: tabular-nums; }
.notification-panel { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; display: flex; flex-direction: column; width: min(390px, calc(100vw - 24px)); height: min(520px, calc(100vh - 110px)); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 46px rgba(0, 0, 0, .18); }
.notification-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px 12px; border-bottom: 1px solid var(--border-soft); }
.notification-panel-header .section-tag { margin-bottom: 3px; }
.notification-panel-header strong { font-size: 14px; }
.notification-refresh { width: 31px; height: 31px; font-size: 17px; }
.notification-list { display: grid; flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; }
.notification-panel-footer { flex: 0 0 auto; border-top: 1px solid var(--border-soft); }
.notification-item { display: grid; grid-template-columns: 9px minmax(0, 1fr) 14px; align-items: start; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); color: inherit; text-decoration: none; transition: background .16s ease; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-2); }
.notification-item.is-read { opacity: .62; }
.notification-item-indicator { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.notification-item-indicator.is-critical { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 111, 120, .12); }
.notification-item-indicator.is-warning { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 180, 84, .13); }
.notification-item-indicator.is-info { background: var(--accent); box-shadow: 0 0 0 4px rgba(18, 91, 48, .10); }
.notification-item-copy { display: grid; gap: 4px; min-width: 0; }
.notification-item-copy small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.notification-item-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy span { color: var(--text-2); font-size: 10px; line-height: 1.45; }
.notification-item-arrow { margin-top: 2px; color: var(--muted); font-size: 15px; }
.notification-all-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--accent); font-size: 11px; font-weight: 800; text-decoration: none; }
.notification-all-link:hover { background: var(--surface-2); }
.notification-empty { display: grid; gap: 5px; padding: 28px 18px; color: var(--text-2); text-align: center; }
.notification-empty strong { color: var(--text); font-size: 12px; }
.notification-empty span { font-size: 10px; line-height: 1.5; }
.closing-reconciliation { display: grid; gap: 11px; margin: 16px 0; padding: 14px; border: 1px solid rgba(18, 91, 48, .18); border-radius: 12px; background: rgba(18, 91, 48, .045); }
.closing-reconciliation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.closing-reconciliation-header > div { display: grid; gap: 3px; }
.closing-reconciliation-header span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.closing-reconciliation-header strong { color: var(--text); font-size: 12px; }
.closing-reconciliation-header small { color: var(--text-2); font-size: 10px; text-align: right; }
.closing-reconciliation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.closing-reconciliation-grid article { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface); }
.closing-reconciliation-grid article > span { color: var(--muted); font-size: 10px; }
.closing-reconciliation-grid article > strong { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.closing-reconciliation-grid article small { color: var(--text-2); font-size: 10px; }
.closing-reconciliation-grid article b { color: var(--text); font-weight: 750; }
.closing-other-payment, .closing-difference-note { margin: 0; padding: 9px 10px; border-radius: 8px; font-size: 10px; line-height: 1.45; }
.closing-other-payment { background: rgba(255, 180, 84, .10); color: var(--orange); }
.closing-difference-note { background: rgba(255, 111, 120, .10); color: var(--red); }
.save-state { min-height: 18px; color: var(--muted); font-size: 11px; }
.toolbar-controls { position: relative; }
#satisSyncDurum { position: absolute; top: 50%; right: calc(100% + 12px); width: max-content; transform: translateY(-50%); }
.page-container { display: flex; flex-direction: column; height: calc(100vh - 78px); overflow: auto; padding: 26px 28px 42px; }
.page-body { flex: 1 0 auto; min-width: 0; }
.app-footer { flex: 0 0 auto; }
.page { display: none; width: min(1500px, 100%); margin: 0 auto; }
.page.active { display: block; animation: page-in .2s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-toolbar p { max-width: 680px; margin-top: 7px; color: var(--text-2); line-height: 1.55; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(18, 91, 48, .1); }
.btn-secondary { border-color: var(--border-soft); background: var(--surface-3); color: var(--text); }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--text-2); }
.btn-success { border-color: rgba(73, 211, 153, .35); background: rgba(73, 211, 153, .13); color: #7aebba; }
.btn-danger { border-color: rgba(255, 111, 120, .3); background: rgba(255, 111, 120, .1); color: var(--muted); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 11px; }
.icon-btn { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

label { display: grid; gap: 7px; min-width: 0; color: var(--text-2); font-size: 11px; font-weight: 650; }
label > span em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
input, select { min-height: 40px; padding: 0 14px; }
textarea { resize: vertical; padding: 10px 11px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--border); }
input:focus, select:focus, textarea:focus { border-color: rgba(18, 91, 48, .55); box-shadow: 0 0 0 3px rgba(18, 91, 48, .055); outline: 0; }
input[type='date'], input[type='month'] { color-scheme: dark; }
.date-picker-source { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.date-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.date-picker-trigger:hover { border-color: #c5ccd4; background: #fff; }
.date-picker-trigger[aria-expanded='true'], .date-picker-trigger:focus-visible { border-color: rgba(18, 91, 48, .55); box-shadow: 0 0 0 3px rgba(18, 91, 48, .055); outline: 0; }
.date-picker-trigger.is-empty .date-picker-value { color: var(--muted); }
.date-picker-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: rgba(18, 91, 48, .09); color: var(--accent); font-size: 13px; }
.date-picker-popover { position: fixed; z-index: 250; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 44px rgba(23, 31, 42, .22); }
.date-picker-header { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 6px; }
.date-picker-period { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 5px; }
.date-picker-period select { min-height: 34px; padding: 0 24px 0 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background-position: calc(100% - 12px) 13px, calc(100% - 7px) 13px; }
.date-picker-nav { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 23px; line-height: 1; }
.date-picker-nav:hover { background: var(--surface-3); color: var(--text); }
.date-picker-weekdays, .date-picker-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.date-picker-weekdays { margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 750; text-align: center; }
.date-picker-weekdays span { padding: 5px 0; }
.date-picker-days { gap: 2px; }
.date-picker-day { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 8px; background: transparent; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.date-picker-day:hover:not(:disabled) { background: rgba(18, 91, 48, .10); color: var(--accent); }
.date-picker-day.is-today { box-shadow: inset 0 0 0 1px rgba(18, 91, 48, .45); color: var(--accent); font-weight: 800; }
.date-picker-day.is-selected { background: var(--accent); box-shadow: none; color: var(--accent-ink); font-weight: 800; }
.date-picker-day:disabled { color: #b8c0c9; cursor: not-allowed; }
.date-picker-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.date-picker-actions button { padding: 5px 7px; border-radius: 6px; background: transparent; color: var(--accent); font-size: 11px; font-weight: 800; }
.date-picker-actions button:hover { background: rgba(18, 91, 48, .09); }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #778397 50%), linear-gradient(135deg, #778397 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; }
.compact-field { gap: 4px; }
.compact-field input, .compact-field select { min-height: 34px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.segmented-btn { min-height: 31px; padding: 0 12px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.segmented-btn.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.category-type-field { display: grid; gap: 7px; }
.form-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.category-type-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.category-type-switch .segmented-btn { min-height: 38px; border: 1px solid transparent; }
.category-type-switch .segmented-btn.active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 14px rgba(18, 91, 48, .16); }
.category-type-field small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.category-parent-field { display: grid; }
.category-parent-field.hidden { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface-2); backdrop-filter: blur(10px); }
.filter-bar label { flex: 0 0 auto; width: 220px; margin-bottom: 0; }
.filter-bar.inset { margin: 0; border: none; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: transparent; backdrop-filter: none; }
.filter-quick-ranges { align-self: flex-end; flex-wrap: wrap; }
.filter-search { flex: 1; }
.filter-reset { margin-left: auto; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); align-items: end; }
.filter-grid label { min-width: 0; }
.filter-actions { display: flex; justify-content: flex-end; gap: 7px; }
.info-strip { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(97, 167, 255, .2); border-radius: 10px; background: rgba(97, 167, 255, .055); color: var(--muted); font-size: 12px; }
.info-strip-icon { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; border-radius: 50%; background: rgba(97, 167, 255, .14); font-size: 11px; font-weight: 900; }

.panel { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(0, 0, 0, .015); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; padding: 15px 18px; border-bottom: 1px solid var(--border-soft); }
.panel-header > div:first-child { min-width: 0; }
.panel-header p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.panel-kicker { color: #566273; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.panel-total { font-size: 17px; font-variant-numeric: tabular-nums; }
.count-badge, .status-pill { padding: 5px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-2); background: var(--surface-2); font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-pill.on-track { border-color: rgba(33, 150, 83, .32); color: #19713f; background: rgba(33, 150, 83, .10); }
.status-pill.attention { border-color: rgba(197, 119, 0, .32); color: #8a5600; background: rgba(197, 119, 0, .10); }
.status-pill.untracked { color: var(--muted); }
.status-muted { color: var(--muted); }
.table-scroll { overflow: auto; border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
th { height: 36px; padding: 0 16px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-align: left; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.financial-table { table-layout: fixed; max-width: 100%; }
.financial-table th { height: 42px; padding-right: 7px; padding-left: 7px; line-height: 1.2; letter-spacing: .2px; white-space: normal; word-break: break-word; }
.financial-table td { min-width: 0; padding-right: 7px; padding-left: 7px; overflow: hidden; }
.financial-table th:nth-child(1) { width: 11%; }
.financial-table th:nth-child(2) { width: 12%; }
.financial-table th:nth-child(3) { width: 24%; }
.financial-table th:nth-child(4) { width: 12%; }
.financial-table th:nth-child(5) { width: 14%; }
.financial-table th:nth-child(6) { width: 12%; }
.financial-table th:nth-child(7) { width: 15%; }
.financial-table .document-name { max-width: none; min-width: 0; }
.financial-table .row-actions { flex-wrap: wrap; }
.financial-table .table-btn { min-width: 0; padding-right: 6px; padding-left: 6px; }
.financial-table th.actions-col, .financial-table td.actions-col { text-align: right; }
.financial-table .financial-automatic-action { display: block; line-height: 1.3; text-align: right; white-space: normal; }
.sales-table { table-layout: fixed; max-width: 100%; }
.sales-table[data-compact-table] { min-width: 1040px; }
.sales-table th, .sales-table td { min-width: 0; padding-right: 5px; padding-left: 5px; font-size: 10px; }
.sales-table th { height: 42px; line-height: 1.2; letter-spacing: .15px; white-space: normal; word-break: break-word; }
.sales-table td { height: 49px; }
.sales-table[data-compact-table] th:nth-child(1) { width: 7%; }
.sales-table[data-compact-table] th:nth-child(2) { width: 5%; }
.sales-table[data-compact-table] th:nth-child(4) { width: 10%; }
.sales-table[data-compact-table] th:nth-child(5) { width: 10%; }
.sales-table[data-compact-table] th:nth-child(9) { width: 21%; }
.sales-table[data-compact-table] th:nth-child(10) { width: 9%; }
.sales-table[data-compact-table] th:nth-child(11) { width: 9%; }
.sales-table[data-compact-table] th:nth-child(12) { width: 9%; }
.sales-table[data-compact-table] th:nth-child(13) { width: 9%; }
.sales-table[data-compact-table] th:nth-child(14) { width: 11%; }
.sales-table .cell-truncate { display: block; max-width: 100%; }
.sales-table .row-actions { flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.sales-table .table-btn { min-width: 0; padding: 5px; font-size: 9px; }
td { height: 56px; padding: 10px 16px; border-top: none; color: var(--text-2); font-size: 13px; vertical-align: middle; background: var(--surface-2); }
td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
tbody tr { transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
tbody tr:hover { transform: translateY(-1px); background: rgba(0, 0, 0, 0.04); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.actions-col { width: 1%; text-align: right; }
.empty-state { display: grid; place-items: center; min-height: 188px; padding: 28px; color: var(--muted); text-align: center; }
.empty-state strong { margin-top: 8px; color: var(--text-2); font-size: 13px; }
.empty-state p { max-width: 410px; margin: 6px 0 14px; font-size: 11px; line-height: 1.5; }
.empty-state.compact { min-height: 112px; }
.empty-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 16px; }
.empty-inline { padding: 28px 16px; color: var(--muted); font-size: 11px; text-align: center; }

.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 11px; margin-bottom: 17px; }
.metric-card { position: relative; display: grid; gap: 8px; min-height: 140px; padding: 20px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); border-color: var(--border); }
.metric-card::after { position: absolute; right: -25px; bottom: -35px; width: 120px; height: 120px; border-radius: 50%; background: currentColor; content: ''; filter: blur(50px); opacity: 0.15; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: currentColor; color: var(--surface); font-size: 14px; font-weight: 900; opacity: 0.9; }
.metric-label { color: var(--text-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.metric-card strong { color: var(--text); font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; line-height: 1; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 2px; }
.metric-card small { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.metric-income { color: var(--green); }
.metric-expense { color: var(--red); }
.metric-net { color: var(--accent); }
.metric-warning { color: var(--orange); }
.metric-cash { color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 17px; }
.panel-span-2 { grid-column: span 2; }
.distribution-list, .payment-breakdown { min-height: 210px; padding: 15px 18px; }
.distribution-row { display: grid; grid-template-columns: 118px minmax(80px, 1fr) auto; align-items: center; gap: 12px; min-height: 43px; }
.distribution-label { overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: var(--surface-3); }
.progress-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.distribution-value { font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.payment-item { display: flex; align-items: center; justify-content: space-between; min-height: 47px; border-bottom: 1px solid var(--border-soft); }
.payment-item:last-child { border-bottom: 0; }
.payment-item span { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 11px; }
.method-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.method-dot.cash { background: var(--green); }
.method-dot.card { background: var(--blue); }
.method-dot.meal { background: var(--purple); }
.payment-item strong { font-size: 12px; font-variant-numeric: tabular-nums; }

.platform-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; padding: 9px 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.platform-toolbar > div { display: flex; align-items: center; gap: 9px; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.account-card { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.account-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-card h3 { font-size: 14px; }
.account-card p { margin: 8px 0 14px; color: var(--muted); font-size: 10px; }
.account-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-meta span { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }
.account-meta strong { color: var(--text-2); font-size: 11px; }

.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.report-summary article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.report-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px; }
.report-summary strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.chart-wrap { position: relative; height: 310px; padding: 18px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.reports-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.reports-grid .panel { margin-top: 0; }
.report-view-tabs { display: inline-flex; gap: 3px; margin: 0 0 16px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.report-view-tabs .segmented-btn { min-height: 33px; }
.profitability-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.operating-day-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.profitability-summary article { display: grid; gap: 5px; min-height: 106px; padding: 14px 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.operating-day-summary article { display: grid; gap: 5px; min-height: 102px; padding: 14px 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.profitability-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px; }
.operating-day-summary span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px; }
.profitability-summary strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.operating-day-summary strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.profitability-summary small { color: var(--text-2); font-size: 10px; line-height: 1.35; }
.operating-day-summary small { color: var(--text-2); font-size: 10px; line-height: 1.35; }
.profitability-summary .profitability-net-card { border-color: rgba(18, 91, 48, .3); background: rgba(18, 91, 48, .055); }
.alert-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card.metric-danger { border-color: rgba(229, 62, 62, .28); background: rgba(229, 62, 62, .05); }
.alert-date-field { width: 180px; }
.alert-status-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.alert-list { display: grid; gap: 10px; }
.alert-card { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 15px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.alert-card.is-inactive { opacity: .72; }
.alert-card-indicator { background: var(--blue); }
.alert-card.is-critical .alert-card-indicator { background: var(--red); }
.alert-card.is-warning .alert-card-indicator { background: var(--orange); }
.alert-card-main { min-width: 0; padding: 15px 0; }
.alert-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.alert-category { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .58px; text-transform: uppercase; }
.alert-state { padding: 3px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 9px; font-weight: 750; }
.alert-card h3 { margin: 0 0 5px; font-size: 14px; }
.alert-card p { color: var(--text-2); font-size: 11px; line-height: 1.5; }
.alert-card-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; }
.alert-card-details div { min-width: 0; padding: 8px; border-radius: 8px; background: var(--surface-2); }
.alert-card-details dt { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .4px; }
.alert-card-details dd { margin: 0; overflow: hidden; color: var(--text); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.alert-card-actions { display: flex; align-content: flex-start; flex-wrap: wrap; justify-content: flex-end; gap: 6px; width: 166px; padding: 15px 15px 15px 0; }
.alert-card-actions .btn { flex: 0 0 auto; }
.alert-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.alert-settings-grid label { padding: 13px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface-2); }
.alert-settings-grid label small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.4; }
.alert-settings-actions { display: flex; align-items: center; gap: 12px; padding: 13px; }
.operating-day-summary .profitability-net-card { border-color: rgba(18, 91, 48, .3); background: rgba(18, 91, 48, .055); }
.profitability-warning { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(255, 180, 84, .38); border-radius: 10px; background: rgba(255, 180, 84, .10); color: var(--text); }
.profitability-warning strong { color: var(--orange); font-size: 12px; }
.profitability-warning span { color: var(--text-2); font-size: 11px; line-height: 1.5; }
.profitability-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 24px; }
.profitability-expense-chart { display: grid; gap: 12px; padding: 18px; }
.profitability-expense-row { display: grid; gap: 6px; }
.profitability-expense-row > div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.profitability-expense-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profitability-expense-row span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.profitability-expense-row i { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.profitability-expense-row b { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.profitability-ledger { display: grid; gap: 0; margin: 0; padding: 4px 18px 14px; }
.profitability-ledger > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.profitability-ledger > div:last-child { border-bottom: 0; }
.profitability-ledger dt { color: var(--text-2); font-size: 11px; }
.profitability-ledger dd { margin: 0; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.table-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; }
.table-sort.active::after { color: var(--accent); content: '↕'; font-size: 10px; }
.profitability-product-loss { background: rgba(255, 111, 120, .10); }
.profitability-product-low-margin { background: rgba(255, 180, 84, .10); }
.profitability-channel-breakdown { display: grid; gap: 3px; min-width: 178px; }
.profitability-channel { color: var(--text-2); font-size: 10px; white-space: nowrap; }
.profitability-channel b { color: var(--text); font-weight: 700; }
.compact-empty { margin: 0; padding: 22px 18px; }
.quick-sale-favorites { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 9px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-2); }
.quick-sale-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.quick-sale-heading strong { font-size: 12px; }
.quick-sale-heading small { color: var(--text-2); font-size: 10px; }
.quick-sale-card { display: grid; gap: 4px; min-height: 82px; padding: 11px; border: 1px solid rgba(18, 91, 48, .22); border-radius: 9px; background: var(--surface); color: var(--text); text-align: left; }
.quick-sale-card:hover { border-color: var(--accent); background: rgba(18, 91, 48, .055); transform: translateY(-1px); }
.quick-sale-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.quick-sale-card span { color: var(--accent); font-size: 14px; font-weight: 800; }
.quick-sale-card small { overflow: hidden; color: var(--text-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.finance-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.stack-form { display: grid; gap: 15px; padding: 18px; }
.stack-form label small { line-height: 1.45; }
.backup-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.backup-grid > div { display: grid; justify-items: start; gap: 8px; min-height: 190px; padding: 20px; border-right: 1px solid var(--border-soft); }
.backup-grid > div:last-child { border-right: 0; }
.backup-grid strong { font-size: 13px; }
.backup-grid p { min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.backup-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); color: var(--accent); font-size: 17px; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; overflow: auto; background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); }
.modal-card { width: 100%; max-height: calc(100vh - 44px); overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); animation: modal-in .18s ease-out; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 790px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 17px; border-bottom: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.modal-header h2 { font-size: 20px; }
.modal-card form:not(.inline-form) { padding: 20px 22px 22px; }
#gunlukSatisSilinenlerModal .modal-card { max-width: 900px; }
#gunlukSatisSilinenlerModal .data-table-toolbar { margin: 16px 20px 0; padding: 13px 16px; border-radius: 14px 14px 0 0; }
#gunlukSatisSilinenlerModal .table-scroll { margin: 0 20px; padding: 6px 10px; border: 1px solid var(--border-soft); border-top: 0; border-bottom: 0; border-radius: 0; background: var(--surface-2); }
#gunlukSatisSilinenlerModal .sales-table { min-width: 700px; table-layout: auto; }
#gunlukSatisSilinenlerModal .sales-table th, #gunlukSatisSilinenlerModal .sales-table td { padding-right: 12px; padding-left: 12px; }
#gunlukSatisSilinenlerModal .data-table-footer { margin: 0 20px 16px; padding: 11px 16px; border-radius: 0 0 14px 14px; }
#gunlukSatisSilinenlerModal .modal-actions { padding: 12px 22px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions, .modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.form-actions { margin-top: 3px; }
.modal-actions { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border-soft); }
.menu-product-actions { flex-wrap: wrap; }
.split-actions { display: grid; grid-template-columns: auto 1fr auto auto; }
.money-input { position: relative; }
.money-input b { position: absolute; top: 50%; left: 12px; z-index: 1; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.money-input input { padding-left: 29px; font-variant-numeric: tabular-nums; }
.percent-input { position: relative; }
.percent-input b { position: absolute; top: 50%; right: 12px; z-index: 1; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.percent-input input { padding-right: 29px; font-variant-numeric: tabular-nums; }
.payment-input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 15px; }
.payment-input-grid > label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.payment-input-grid .money-input { grid-column: 1 / -1; }
.form-total { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 14px 15px; border: 1px solid rgba(18, 91, 48, .16); border-radius: 10px; background: rgba(18, 91, 48, .045); color: var(--text-2); font-size: 11px; }
.form-total strong { color: var(--accent); font-size: 19px; font-variant-numeric: tabular-nums; }
.upload-zone { display: grid; place-items: center; min-height: 132px; padding: 18px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); text-align: center; cursor: pointer; transition: .15s ease; }
.upload-zone:hover { border-color: rgba(18, 91, 48, .55); background: rgba(18, 91, 48, .025); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone strong { margin: 8px 0 4px; color: var(--text-2); font-size: 12px; }
.upload-zone small { max-width: 520px; line-height: 1.45; }
.upload-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-3); color: var(--accent); font-size: 15px; }
.compact-upload { min-height: 104px; }
.attachment-list { display: grid; gap: 7px; margin-top: 10px; }
.attachment-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.attachment-item strong { overflow: hidden; color: var(--text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.import-preview, .file-preview { min-height: 74px; margin-top: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 11px; }
.inline-form { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 10px; padding: 17px 22px; border-bottom: 1px solid var(--border-soft); }
.check-field { display: flex; align-items: center; min-height: 39px; }
.check-field input { width: 15px; min-height: 0; height: 15px; accent-color: var(--accent); }
.simple-list { max-height: 360px; overflow: auto; padding: 8px 22px; }
.simple-list-row { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-bottom: 1px solid var(--border-soft); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.toggle-row > span { display: grid; gap: 4px; }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-row i { position: relative; width: 39px; height: 22px; flex: 0 0 auto; border-radius: 20px; background: var(--surface-3); transition: .18s; }
.toggle-row i::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); content: ''; transition: .18s; }
.toggle-row input:checked + i { background: rgba(18, 91, 48, .25); }
.toggle-row input:checked + i::after { left: 20px; background: var(--accent); }
.compact-toggle { min-height: 65px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.form-feedback { min-height: 18px; color: var(--muted); font-size: 11px; }

.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-2); color: var(--text-2); font-size: 9px; font-weight: 750; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ''; }
.status-bekliyor { border-color: rgba(255, 180, 84, .25); background: rgba(255, 180, 84, .08); color: var(--orange); }
.status-dogrulandi, .status-odendi, .status-tamamlandi, .status-active { border-color: rgba(73, 211, 153, .25); background: rgba(73, 211, 153, .08); color: var(--green); }
.status-reddedildi, .status-iptal, .status-inactive { border-color: rgba(255, 111, 120, .25); background: rgba(255, 111, 120, .08); color: var(--red); }
.status-iade { border-color: rgba(169, 145, 255, .25); background: rgba(169, 145, 255, .08); color: var(--purple); }
.amount-income { color: var(--green); font-weight: 750; }
.amount-expense { color: var(--muted); font-weight: 750; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-btn { display: inline-grid; place-items: center; min-width: 29px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--text-2); font-size: 10px; }
.table-btn:hover { background: var(--surface-3); color: var(--text); }
.table-btn.danger:hover { border-color: rgba(255, 111, 120, .35); color: var(--red); }
.data-table-hidden { display: none !important; }
.data-table-toolbar { display: flex; align-items: flex-end; gap: 9px; padding: 10px 12px; border: 1px solid var(--border-soft); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); }
.data-table-search { display: grid; flex: 1 1 220px; gap: 4px; max-width: 360px; }
.data-table-search span, .data-table-compact-control span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .35px; }
.data-table-search input, .data-table-compact-control select { min-height: 34px; }
.data-table-compact-control { display: grid; gap: 4px; min-width: 116px; }
.data-table-filter-note { margin-right: auto; color: var(--muted); font-size: 10px; }
.table-control-btn { min-height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2); font-size: 10px; font-weight: 700; }
.table-control-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.table-control-btn:disabled { cursor: not-allowed; opacity: .45; }
.data-table-direction { min-width: 64px; }
.enhanced-table th[data-sortable='true'] { cursor: pointer; user-select: none; }
.enhanced-table th[data-sortable='true']:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sortable-heading { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sortable-heading i { color: var(--muted); font-size: 10px; font-style: normal; }
.data-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--border-soft); border-top: 0; border-radius: 0 0 10px 10px; background: var(--surface-2); }
.data-table-info { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.data-table-pager { display: flex; align-items: center; gap: 8px; }
.data-table-pager strong { min-width: 42px; color: var(--text-2); font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.category-main-row.has-children { cursor: pointer; }
.interactive-row { cursor: pointer; }
.interactive-row:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface-2)); }
.category-main-row.has-children:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface-2)); }
.category-main-row.is-expanded td { background: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); }
.category-name-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.category-name-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-toggle, .category-toggle-spacer { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; }
.category-toggle { border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2); }
.category-toggle:hover { border-color: var(--accent); color: var(--accent); }
.category-toggle span { font-size: 18px; line-height: 1; transition: transform .18s ease; }
.category-main-row.is-expanded .category-toggle span { transform: rotate(90deg); }
.category-sub-row td { background: color-mix(in srgb, var(--accent) 2.5%, var(--surface)); }
.category-sub-name { padding-left: 34px; color: var(--text-2); }
.category-sub-name > span { color: var(--accent); font-weight: 800; }
.stock-filter-bar .filter-search { flex: 1 1 260px; }
.stock-form-preview { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.stock-form-preview > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.stock-form-preview strong { margin-left: auto; color: var(--accent); font-size: 18px; font-variant-numeric: tabular-nums; }
.stock-form-preview small { min-width: 190px; font-size: 10px; text-align: right; }
.stock-preview-critical { color: var(--red) !important; }
.stock-preview-warning { color: var(--orange) !important; }
.stock-preview-ok { color: var(--green) !important; }
.document-name { display: grid; gap: 3px; max-width: 220px; }
.document-name strong, .cell-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-name small { font-size: 9px; }
.platform-logo { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-3); color: var(--text-2); font-size: 8px; font-weight: 850; }
.platform-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 20px; font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; }
.platform-trendyol { border-color: #ffc9a7; background: #fff0e6; color: #c95a16; }
.platform-yemeksepeti { border-color: #f7b6cb; background: #fff0f5; color: #c93f70; }
.platform-getir { border-color: #cfbef6; background: #f3efff; color: #6f45c0; }
.platform-migros { border-color: #f0d36f; background: #fff8d9; color: #946200; }
.platform-other { border-color: var(--border); background: var(--surface-3); color: var(--text-2); }
.document-panel { border-color: rgba(255, 180, 84, .16); }

@media (max-width: 1220px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .filter-grid { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
  #satisSyncDurum { position: static; flex-basis: 100%; transform: none; }
}

/* Tenant-scoped restaurant integrations */
.integration-page {
  max-width: 1120px;
  margin: 0 auto;
}

.integration-security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

.integration-security-note strong {
  white-space: nowrap;
}

.integration-security-note span {
  color: var(--text-muted);
}

.integration-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.integration-tab {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.integration-tab > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.integration-tab.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.integration-tab.active > span {
  background: var(--primary);
  color: #fff;
}

.integration-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.integration-panel-header,
.integration-credential-heading,
.integration-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.integration-panel-header {
  margin-bottom: 20px;
}

.integration-panel-header h3 {
  margin: 4px 0;
}

.integration-panel-header p,
.integration-actions small,
.integration-credential-heading small {
  color: var(--text-muted);
}

.integration-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-status.ready {
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  color: var(--green);
}

.integration-account-switcher {
  display: grid;
  min-width: 230px;
  gap: 8px;
  justify-items: stretch;
}

.integration-account-switcher > label {
  display: grid;
  gap: 5px;
}

.integration-account-switcher > label > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.integration-account-switcher .integration-status {
  justify-self: end;
}

.integration-credential-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.integration-credential-heading {
  margin-bottom: 14px;
}

.integration-credential-heading > div {
  display: grid;
  gap: 3px;
}

.integration-credential-heading > span {
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

.integration-actions {
  align-items: center;
  margin-top: 18px;
}

.form-feedback.success {
  color: var(--green);
}

.form-feedback.error {
  color: var(--red);
}

@media (max-width: 820px) {
  .integration-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-security-note,
  .integration-panel-header,
  .integration-credential-heading,
  .integration-actions {
    flex-direction: column;
  }

  .integration-account-switcher {
    width: 100%;
  }

  .integration-account-switcher .integration-status {
    justify-self: start;
  }

  .integration-credential-heading > span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .integration-tabs {
    grid-template-columns: 1fr;
  }

  .integration-panel {
    padding: 16px;
  }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand-copy, .nav-item > span:nth-child(2), .sidebar-status > span:last-child { display: none; }
  .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .nav-item.active::before { left: -12px; }
  .nav-symbol { font-size: 11px; }
  .nav-badge { position: absolute; top: 3px; right: 1px; }
  .sidebar-status { justify-content: center; padding: 13px 0; }
  .status-dot { margin-top: 0; }
  .page-container { padding: 22px 20px 38px; }
  .topbar { padding-inline: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-span-2 { grid-column: auto; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .panel-span-2 { grid-column: auto; }
  .reports-grid, .finance-workspace-grid, .profitability-grid { grid-template-columns: 1fr; }
  .alert-card { grid-template-columns: 7px minmax(0, 1fr); }
  .alert-card-actions { grid-column: 2; justify-content: flex-start; width: auto; padding: 0 15px 15px; }
  .alert-card-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-modules-grid { gap: 16px; }
  .module-card { width: calc(50% - 8px); }
}

@media (max-width: 760px) {
  .topbar-actions #dashboardSenkronizeBtn, .topbar .save-state { display: none; }
  .account-menu-copy, .account-menu-chevron { display: none; }
  .account-menu-trigger { padding: 4px; }
  .notification-panel { position: fixed; top: 70px; right: 12px; }
  .closing-reconciliation-grid { grid-template-columns: 1fr; }
  .closing-reconciliation-header { align-items: stretch; flex-direction: column; }
  .closing-reconciliation-header small { text-align: left; }
  .module-card { width: 100%; padding: 22px; }
  .page-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-controls { width: 100%; }
  .summary-grid { grid-template-columns: repeat(2, minmax(135px, 1fr)); }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label { min-width: 0; }
  .filter-reset { margin-left: 0; }
  .filter-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filter-grid label, .filter-grid .filter-actions { width: auto; }
  .account-grid { grid-template-columns: 1fr; }
  .report-summary, .profitability-summary, .operating-day-summary, .alert-summary { grid-template-columns: repeat(2, 1fr); }
  .alert-settings-grid { grid-template-columns: 1fr; }
  .report-view-tabs { display: flex; width: 100%; }
  .report-view-tabs .segmented-btn { flex: 1 1 0; padding-inline: 8px; }
  .form-grid.two, .form-grid.three, .payment-input-grid { grid-template-columns: 1fr; }
  .backup-grid { grid-template-columns: 1fr; }
  .backup-grid > div { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .backup-grid > div:last-child { border-bottom: 0; }
  .split-actions { display: flex; flex-wrap: wrap; }
  .split-actions span { display: none; }
  .menu-product-actions .btn { flex: 1 1 auto; }
  .menu-product-actions #menuUrunKaydetRecete { order: -1; flex-basis: 100%; }
  .modal-overlay { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); }
  .data-table-toolbar { align-items: stretch; flex-wrap: wrap; }
  .data-table-search { flex-basis: 100%; max-width: none; }
  .data-table-filter-note { width: 100%; margin: 0; }
  .data-table-compact-control { flex: 1 1 120px; }
  .data-table-direction { align-self: flex-end; }
  .data-table-footer { align-items: stretch; flex-direction: column; }
  .data-table-pager { justify-content: space-between; }
  .category-table-wrap { overflow: visible; }
  .category-table, .category-table tbody { display: block; width: 100%; }
  .category-table thead { display: none; }
  .category-table #kategoriListeView tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; width: 100%; margin-bottom: 7px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-2); }
  .category-table #kategoriListeView tr td { min-width: 0; padding: 0; border: 0; background: transparent !important; }
  .category-table #kategoriListeView tr td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
  .category-table #kategoriListeView tr td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .category-table #kategoriListeView tr td:nth-child(3) { grid-column: 2; grid-row: 2; align-self: center; text-align: right; white-space: nowrap; }
  .category-table #kategoriListeView tr td:nth-child(4) { grid-column: 2; grid-row: 1; align-self: center; }
  .category-table .category-sub-row { width: calc(100% - 18px) !important; margin-left: 18px; background: color-mix(in srgb, var(--accent) 3%, var(--surface)) !important; }
  .category-table .category-sub-name { padding-left: 0; }
  .stock-table-wrap { overflow: visible; }
  .stock-filter-bar .filter-search { flex: 0 0 auto; width: 100%; }
  .stock-table, .stock-table tbody { display: block; width: 100%; }
  .stock-table thead { display: none; }
  .stock-table #stokListeView tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-bottom: 9px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-2); }
  .stock-table #stokListeView td { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
  .stock-table #stokListeView td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }
  .stock-table #stokListeView td:first-child { grid-column: 1; }
  .stock-table #stokListeView td:last-child { grid-column: 2; grid-row: 1; align-self: start; }
  .stock-table #stokListeView td:last-child::before { display: none; }
  .stock-table .row-actions { flex-wrap: wrap; }
  .stock-table .document-name { max-width: none; }
  .stock-form-preview { align-items: flex-start; flex-wrap: wrap; }
  .stock-form-preview strong { width: 100%; margin: 0; }
  .stock-form-preview small { min-width: 0; text-align: left; }
}

@media (max-height: 670px) {
  .topbar { min-height: 66px; }
  .page-container { height: calc(100vh - 66px); padding-top: 19px; }
  .modal-overlay { place-items: start center; }
}

/* Payment Breakdown */
.payment-breakdown { display: flex; flex-wrap: wrap; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--border-soft); }
.payment-item { display: flex; justify-content: space-between; align-items: center; min-width: 200px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); }
.payment-item span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.payment-item strong { font-size: 15px; color: var(--text); font-weight: 700; }
.method-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--brand); }

.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 16px 20px; }
.payment-grid .payment-item { min-width: 0; }
.payment-grid .payment-item > span { align-items: flex-start; flex-direction: column; gap: 3px; }
.payment-grid .payment-item > span:first-child { position: relative; padding-left: 18px; }
.payment-grid .payment-item .method-dot { position: absolute; top: 5px; left: 0; }
.payment-grid .payment-item small { color: var(--muted); font-size: 10px; font-weight: 500; }
.payment-grid .payment-amount { align-items: flex-end; text-align: right; }
.cell-note { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; white-space: normal; }

.attendance-inline-status { color: var(--green); font-weight: 800; }
.attendance-inline-status.is-leave { color: var(--blue); }
.timesheet-daily-table { min-width: 1070px; table-layout: fixed; }
.timesheet-daily-table .timesheet-col-date { width: 120px; }
.timesheet-daily-table .timesheet-col-person { width: 180px; }
.timesheet-daily-table .timesheet-col-status { width: 135px; }
.timesheet-daily-table .timesheet-col-shift { width: 165px; }
.timesheet-daily-table .timesheet-col-duration { width: 90px; }
.timesheet-daily-table .timesheet-col-extra { width: 130px; }
.timesheet-daily-table .timesheet-col-adjustment { width: 165px; }
.timesheet-daily-table .timesheet-col-actions { width: 85px; }
.timesheet-daily-table th,
.timesheet-daily-table td { overflow: hidden; text-overflow: ellipsis; }
.timesheet-daily-table td { white-space: nowrap; }
.timesheet-daily-table .cell-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timesheet-calendar-panel { overflow: hidden; }
.timesheet-period-toolbar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.timesheet-period-toolbar > small { padding-bottom: 8px; }
.month-picker { display: grid; grid-template-columns: 36px minmax(150px, 190px) 36px; align-items: end; gap: 7px; padding: 7px; border: 1px solid var(--border-soft); border-radius: 13px; background: var(--surface); }
.month-picker label { gap: 4px; }
.month-picker input { min-height: 36px; background-color: var(--surface-2); font-weight: 700; }
.month-nav-btn { width: 36px; height: 36px; font-size: 25px; }
.calendar-person-filter { width: 230px; }
.timesheet-calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: stretch; }
.timesheet-calendar-main { min-width: 0; }
.timesheet-month-summary { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-left: 1px solid var(--border-soft); background: var(--surface-2); }
.month-summary-heading { display: grid; gap: 4px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.month-summary-heading span, .month-summary-row span, .month-summary-net span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.month-summary-heading strong { font-size: 20px; }
.month-summary-heading small { color: var(--text-2); font-size: 10px; }
.month-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.month-summary-row strong { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.month-summary-row.summary-negative strong { color: var(--red); }
.month-summary-net { display: grid; gap: 6px; margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.month-summary-net span { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.month-summary-net strong { color: var(--accent-ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.calendar-weekdays span { padding: 9px 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.timesheet-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
.calendar-day { position: relative; display: flex; min-width: 0; min-height: 112px; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); color: var(--text); text-align: left; transition: background .15s ease, box-shadow .15s ease; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:not(.is-outside):hover { z-index: 1; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.calendar-day.is-outside { background: var(--surface-2); opacity: .5; cursor: default; }
.calendar-day.is-weekend:not(.has-record) { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.calendar-day.has-record { background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.calendar-day.has-paid-leave { background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.calendar-day.has-deduction { background: color-mix(in srgb, var(--red) 9%, var(--surface)); }
.calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day-head { display: flex; align-items: center; justify-content: space-between; }
.calendar-day-head strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-day-status { color: var(--text-2); font-size: 10px; font-weight: 900; }
.calendar-day.is-today .calendar-day-head strong { background: var(--accent); color: var(--accent-ink); }
.calendar-shift { font-size: 11px; font-weight: 750; white-space: nowrap; }
.calendar-meta { color: var(--text-2); font-size: 10px; }
.calendar-amount { margin-top: auto; color: var(--accent); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calendar-add { margin: auto; color: var(--muted); font-size: 10px; font-weight: 700; }

@media (max-width: 980px) {
  .timesheet-calendar-layout { grid-template-columns: 1fr; }
  .timesheet-month-summary { order: -1; border-bottom: 1px solid var(--border-soft); border-left: 0; }
  .month-summary-net { margin-top: 16px; }
  .calendar-day { min-height: 96px; padding: 8px; }
}

@media (max-width: 760px) {
  .timesheet-calendar-panel .panel-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .timesheet-period-toolbar { align-items: stretch; flex-direction: column; }
  .timesheet-period-toolbar > small { padding: 0; }
  .month-picker { grid-template-columns: 36px minmax(0, 1fr) 36px; width: 100%; }
  .calendar-person-filter { width: 100%; }
  .timesheet-month-summary { padding: 14px; }
  .month-summary-row { padding: 11px 0; }
  .month-summary-net strong { font-size: 19px; }
  .calendar-weekdays span { padding: 7px 2px; font-size: 8px; }
  .calendar-day { min-height: 68px; gap: 3px; padding: 5px; }
  .calendar-day-head strong { width: 22px; height: 22px; font-size: 10px; }
  .calendar-shift { display: none; }
  .calendar-amount { display: block; overflow: hidden; margin-top: 0; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .calendar-meta { margin: auto 0; font-size: 8px; text-align: center; }
  .calendar-add { font-size: 0; }
  .calendar-add::before { content: '+'; font-size: 16px; }
}



/* Tabs */
.page-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.page-tab { background: none; border: none; color: var(--muted); font-weight: 500; padding: 0.5rem 0.25rem; cursor: pointer; position: relative; transition: color 0.2s; font-size: 13px; }
.page-tab:hover { color: var(--text); }
.page-tab.active { color: var(--accent); }
.page-tab.active::after { content: ''; position: absolute; bottom: -0.6rem; left: 0; right: 0; height: 2px; background-color: var(--accent); border-radius: 2px 2px 0 0; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
.dashboard-grid.tab-content.active { display: grid; }
    font-size: 13px;
    min-height: 32px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}
.table-scroll input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}



/* Recipe, order-line and daily-sales editors */
.recipe-row,
.sale-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(130px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-soft, #f8fafc);
}
.recipe-row {
  grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr) auto;
}

.sale-row.sale-row-with-vat {
  grid-template-columns: minmax(180px, 2fr) minmax(90px, .7fr) minmax(140px, 1fr) minmax(105px, .75fr) auto;
}

.sales-summary-grid { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
.collection-summary-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); max-width: 760px; }
.sales-filter-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; }
.sales-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; color: var(--muted); }
.sales-form-totals { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.sales-form-totals > span { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-2); }
.sales-form-totals small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.sales-form-totals strong { color: var(--text); font-size: 19px; font-variant-numeric: tabular-nums; }
.sales-form-totals > span:last-child strong { color: var(--accent); }
.manual-sale-options { align-items: end; }
.manual-sale-options-note { margin: 0; min-height: 100%; }

#siparisKaynakliListe small { display: inline-block; margin: 4px 8px 0 0; }

@media (max-width: 720px) {
  .recipe-row,
  .sale-row { grid-template-columns: 1fr; }
  .sale-row.sale-row-with-vat { grid-template-columns: 1fr; }
  .recipe-row .dynamic-remove,
  .sale-row .dynamic-remove { width: 100%; }
  .sales-summary-grid,
  .collection-summary-grid,
  .sales-form-totals { grid-template-columns: 1fr; max-width: none; }
  .sales-filter-grid { grid-template-columns: 1fr; }
  .sales-legend { justify-content: flex-start; }
}

/* Menu categories, recipes and stock behavior */
.modal-xl { max-width: 980px; }
.menu-summary-grid,
.recipe-summary-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.menu-filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto; }
.recipe-filter-grid { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, 1fr)) auto; }
.menu-filter-grid label,
.recipe-filter-grid label { width: auto; min-width: 0; }
.cell-stack { display: grid; gap: 4px; min-width: 0; }
.cell-stack strong,
.cell-stack small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-stack small { color: var(--muted); font-size: 9px; }
.stock-behavior { display: grid; justify-items: start; gap: 5px; min-width: 145px; }
.stock-behavior small { max-width: 210px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.recipe-ingredient-summary { max-width: 330px; }
.field-link { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; }
.field-link:hover { text-decoration: underline; }

.menu-category-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(430px, 1.35fr); }
.menu-category-grid > form { align-content: start; border-right: 1px solid var(--border-soft); }
.menu-category-list-panel { min-width: 0; padding: 0 22px 22px; }
.menu-category-list-panel .panel-header { margin: 0 -22px; }
.menu-category-table-wrap { max-height: 430px; margin-top: 10px; }
.menu-category-table td { height: 50px; padding-right: 10px; padding-left: 10px; }
.menu-category-table th { padding-right: 10px; padding-left: 10px; }

.recipe-sale-info { margin-bottom: 14px; }
.recipe-stock-impact { display: grid; gap: 10px; margin: 14px 0; padding: 13px 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.recipe-stock-impact > strong { color: var(--text-2); font-size: 11px; }
.recipe-stock-impact > div { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-stock-impact > div > span { display: grid; gap: 3px; min-width: 150px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); }
.recipe-stock-impact b { color: var(--accent); }
.recipe-stock-impact small { font-size: 9px; }
.sale-stock-note { min-height: 15px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.sale-stock-note.stock-tracked { color: var(--green); }
.sale-stock-note.stock-missing { color: var(--red); }
.sale-stock-note.stock-untracked { color: var(--orange); }

@media (max-width: 1100px) {
  .menu-summary-grid,
  .recipe-summary-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .menu-filter-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .recipe-filter-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .menu-filter-grid .filter-search,
  .recipe-filter-grid .filter-search { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .menu-category-grid { grid-template-columns: 1fr; }
  .menu-category-grid > form { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .menu-category-list-panel { padding-top: 10px; }
}

@media (max-width: 720px) {
  .menu-filter-grid,
  .recipe-filter-grid { grid-template-columns: 1fr; }
  .menu-filter-grid .filter-search,
  .recipe-filter-grid .filter-search { grid-column: auto; }
  .menu-summary-grid,
  .recipe-summary-grid { grid-template-columns: 1fr 1fr; }
  .menu-table-wrap,
  .recipe-table-wrap,
  .menu-category-table-wrap { overflow: visible; }
  .menu-table,
  .menu-table tbody,
  .recipe-table,
  .recipe-table tbody,
  .menu-category-table,
  .menu-category-table tbody { display: block; width: 100%; }
  .menu-table thead,
  .recipe-table thead,
  .menu-category-table thead { display: none; }
  .menu-table tbody tr,
  .recipe-table tbody tr,
  .menu-category-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-bottom: 9px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-2); }
  .menu-table tbody td,
  .recipe-table tbody td,
  .menu-category-table tbody td { display: grid; align-content: start; gap: 4px; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; text-align: left; }
  .menu-table tbody td[data-label]::before,
  .recipe-table tbody td[data-label]::before,
  .menu-category-table tbody td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }
  .menu-table .actions-col,
  .recipe-table .actions-col,
  .menu-category-table .actions-col { grid-column: 1 / -1; }
  .menu-table .row-actions,
  .menu-category-table .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .recipe-table .actions-col .btn { width: 100%; }
  .stock-behavior { min-width: 0; }
  .menu-category-list-panel { padding-right: 14px; padding-left: 14px; }
  .menu-category-list-panel .panel-header { margin-right: -14px; margin-left: -14px; }
}

/* Sade şube yönetimi katmanı */
.home-page-toolbar { align-items: center; }
.home-module-search { width: min(300px, 100%); margin: 0; }
.home-module-search input { width: 100%; }
.home-module-group { margin: 0 0 30px; }
.home-module-group-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 13px; padding: 0 3px; }
.home-module-group-header h3 { margin: 0; font-size: 17px; }
.home-module-group-header .section-tag { margin-bottom: 3px; }
.home-module-group-header p { max-width: 390px; margin: 0; color: var(--text-2); font-size: 12px; text-align: right; }
.home-module-group .home-modules-grid { justify-content: flex-start; margin-bottom: 0; }
.home-module-empty { margin: 0 0 22px; padding: 13px 15px; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-2); }
.home-modules-grid .module-icon { font-variant-numeric: normal; }
.main-page-action { box-shadow: 0 8px 18px rgba(18, 91, 48, .16); }
.page-toolbar .secondary-page-action.btn-secondary { border-color: var(--border); background: var(--surface); color: var(--text-2); box-shadow: none; }
.page-toolbar .secondary-page-action.btn-secondary:hover { border-color: var(--accent); background: rgba(18, 91, 48, .06); color: var(--accent); }
.optional-form-details { margin: 14px 0; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface-2); }
.optional-form-details > summary { padding: 11px 13px; color: var(--text-2); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.optional-form-details > summary::-webkit-details-marker { display: none; }
.optional-form-details > summary::after { float: right; color: var(--accent); content: '+'; font-size: 17px; line-height: .75; }
.optional-form-details[open] > summary { border-bottom: 1px solid var(--border-soft); color: var(--text); }
.optional-form-details[open] > summary::after { content: '−'; }
.optional-form-details > [data-optional-detail] { display: grid; gap: 13px; padding: 14px; }
.sales-secondary-actions, .filter-details { position: relative; }
.sales-secondary-actions > summary, .filter-details > summary { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.sales-secondary-actions > summary::-webkit-details-marker, .filter-details > summary::-webkit-details-marker { display: none; }
.sales-secondary-actions[open] > summary, .filter-details[open] > summary { border-color: var(--accent); color: var(--accent); }
.sales-secondary-actions > .sales-secondary-actions-menu { position: absolute; right: 0; z-index: 10; display: grid; min-width: 220px; gap: 7px; margin-top: 7px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.sales-secondary-actions-menu .btn { justify-content: flex-start; }
.filter-details { margin-bottom: 20px; }
.filter-details > summary { margin-bottom: 9px; }
.filter-details[open] > summary { margin-bottom: 11px; }
.filter-details .filter-bar { margin-bottom: 0; }
.empty-state-action { margin-top: 13px; }
.table-secondary-cell, table[data-compact-table] th[data-secondary-column] { display: none; }
.table-more-details { display: inline-block; margin: 0 8px 0 0; color: var(--text-2); font-size: 10px; text-align: left; vertical-align: middle; }
.table-more-details summary { color: var(--accent); cursor: pointer; font-weight: 750; list-style: none; white-space: nowrap; }
.table-more-details summary::-webkit-details-marker { display: none; }
.table-more-details summary::after { margin-left: 4px; content: '⌄'; }
.table-more-details[open] { position: relative; z-index: 4; }
.table-more-details[open] summary::after { content: '⌃'; }
.table-more-details dl { position: absolute; right: 0; z-index: 5; display: grid; grid-template-columns: auto minmax(120px, 1fr); gap: 5px 10px; width: max-content; max-width: 280px; margin: 7px 0 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 22px rgba(30, 41, 59, .16); }
.table-more-details dt { color: var(--muted); font-weight: 700; }
.table-more-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); }
.management-toast-container { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.management-toast { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid rgba(18, 91, 48, .28); border-radius: 10px; background: #155e34; box-shadow: 0 12px 28px rgba(15, 23, 42, .22); color: #fff; font-size: 13px; font-weight: 650; }
.management-toast.is-error { border-color: rgba(185, 28, 28, .4); background: #b42318; }
.toast-undo { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(255,255,255,.65); border-radius: 6px; background: #fff; color: #14532d; font: inherit; font-size: 12px; font-weight: 850; }
.toast-undo:hover:not(:disabled) { background: #ecfdf3; }
.toast-undo:disabled { opacity: .7; cursor: wait; }

@media (max-width: 760px) {
  .home-page-toolbar { align-items: stretch; }
  .home-module-group-header { align-items: start; flex-direction: column; gap: 5px; }
  .home-module-group-header p { text-align: left; }
  .home-module-search { width: 100%; }
  .sales-secondary-actions { flex: 1 1 auto; }
  .sales-secondary-actions > summary { justify-content: center; width: 100%; }
  .sales-secondary-actions > .sales-secondary-actions-menu { right: auto; left: 0; width: 100%; }
  .management-toast-container { right: 12px; bottom: 12px; }
  .table-more-details dl { right: auto; left: 0; }
}

/* Restoran oturumu ve yönetici kullanıcı alanı */
.auth-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: radial-gradient(circle at top left, rgba(18, 91, 48, .18), transparent 42%), var(--bg); }
.auth-card { width: min(460px, 100%); padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 48px rgba(15, 23, 42, .16); }
.auth-footer { margin: 18px 0 0; text-align: center; font-size: 12px; }
.auth-footer a { color: var(--accent); font-weight: 750; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand h1 { margin: 0; }
.auth-brand .eyebrow { margin: 0 0 3px; }
.auth-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 850; letter-spacing: .5px; }
.auth-intro { margin: 19px 0; color: var(--text-2); }
.auth-form { gap: 12px; }
.auth-submit { width: 100%; margin-top: 6px; }
.form-error:empty, .field-error:empty { display: none; }
.form-error { margin-bottom: 2px; padding: 10px 12px; border: 1px solid rgba(185, 28, 28, .3); border-radius: 8px; background: rgba(254, 226, 226, .72); color: #991b1b; font-size: 12px; }
.field-error { display: block; margin-top: -8px; color: #b42318; font-size: 11px; font-weight: 650; }
.demo-login { display: grid; gap: 5px; margin-top: 22px; padding: 13px; border: 1px dashed rgba(18, 91, 48, .4); border-radius: 10px; background: rgba(18, 91, 48, .05); color: var(--text-2); font-size: 12px; }
.demo-login strong { color: var(--text); }
.demo-login code { font-size: 12px; }
.demo-login-fill { justify-self: start; margin-top: 4px; }
.user-session { display: flex; align-items: center; gap: 8px; }
.user-session-name { display: grid; min-width: 112px; color: var(--text); font-size: 11px; line-height: 1.2; }
.user-session-name small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.logout-form { margin: 0; }
.user-management-grid { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(460px, 1.3fr); gap: 18px; align-items: start; }
.user-management-grid .panel { min-width: 0; }

@media (max-width: 980px) {
  .user-management-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .user-session { order: 3; width: 100%; justify-content: flex-end; }
  .auth-page { padding: 14px; }
  .auth-card { padding: 23px 19px; }
}
