:root{--bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#172033;--muted:#6b7280;--line:#e6e9f0;--primary:#6757e8;--primary-dark:#5545d8;--danger:#dc3f52;--success:#16875d;--warning:#c47218;--sidebar:#171a2b;--radius:14px;--shadow:0 10px 30px rgba(24,32,51,.07)}
.company-toolbar{padding:18px 21px;display:grid;grid-template-columns:minmax(260px,1fr) 180px 200px;gap:14px;align-items:end;border-bottom:1px solid var(--line);background:var(--surface-2)}.company-search{min-width:0}.company-dialog{max-height:88vh;overflow-y:auto}.company-dialog textarea{width:100%;padding:11px 13px;border:1px solid #d9dee8;border-radius:9px;resize:vertical;font:inherit}#companyDialog{width:min(720px,calc(100% - 30px))}.companies-table .actions-column{position:sticky;right:0;z-index:2;width:70px;min-width:70px;padding-left:10px;padding-right:14px;text-align:center;background:#fff;box-shadow:-8px 0 12px -12px rgba(23,32,51,.35)}.companies-table th.actions-column{z-index:3;background:#fafbfc}.companies-table tbody tr:hover .actions-column{background:#fcfcfe}.company-actions{display:flex;justify-content:center}.company-actions-trigger{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-size:1.35rem;line-height:1;cursor:pointer}.company-actions-trigger:hover,.company-actions-trigger[aria-expanded="true"]{border-color:#c7c1fa;background:#f1efff;color:var(--primary)}.company-actions-menu{position:fixed;z-index:110;display:none;width:210px;padding:6px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 16px 40px rgba(24,32,51,.18)}.company-actions-menu.open{display:grid;gap:3px}.company-menu-item{width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;font:inherit;font-size:.82rem;font-weight:650;cursor:pointer}.company-menu-item.primary{color:var(--primary)}.company-menu-item.neutral{color:#626979}.company-menu-item.warning{color:var(--warning)}.company-menu-item.danger{color:var(--danger)}.company-menu-item:hover{background:var(--surface-2)}@media(max-width:760px){.company-toolbar{grid-template-columns:1fr}.company-dialog .form-pair{grid-template-columns:1fr}.companies-table th,.companies-table td{padding-left:13px;padding-right:13px}}
.editor-category{grid-template-columns:minmax(0,1fr) auto auto auto!important}
.upload-zone{min-height:48px;padding:10px;display:grid;place-items:center;border:1px dashed #b9bdc9;border-radius:9px;background:#fafbfc;color:var(--muted);text-align:center;cursor:pointer;font-size:.78rem}.upload-zone.dragging{border-color:var(--primary);background:#efedff;color:var(--primary)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{margin:0}button,input,select{font:inherit}button,a{transition:.18s ease}a{color:inherit;text-decoration:none}.hidden{display:none!important}
.login-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,#e9e5ff 0,transparent 33%),radial-gradient(circle at 90% 85%,#dff5ed 0,transparent 30%),var(--bg)}.login-card{width:min(440px,100%);padding:40px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.8);border-radius:22px;box-shadow:0 24px 70px rgba(34,32,74,.13)}.login-brand,.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.04em}.login-brand{margin-bottom:42px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#7667ef,#5141d4);color:#fff}.login-heading h1{margin:4px 0 10px;font-size:1.8rem}.login-heading>p:last-child,.page-heading p,.card-header p{color:var(--muted);margin:0;line-height:1.5}.form-stack{display:grid;gap:18px;margin-top:28px}label{display:grid;gap:8px;font-size:.88rem;font-weight:650}input,select{width:100%;padding:11px 13px;border:1px solid #d9dee8;border-radius:9px;background:#fff;color:var(--text);outline:none}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(103,87,232,.12)}.form-error{min-height:18px;margin:0;color:var(--danger);font-size:.87rem}
.panel-body{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:242px;padding:26px 18px 20px;display:flex;flex-direction:column;background:var(--sidebar);color:#c6cad8}.sidebar .brand{padding:0 10px 28px;color:#fff}.nav-list{display:grid;gap:5px}.nav-link{width:100%;display:flex;align-items:center;gap:12px;padding:11px 13px;border:0;border-radius:9px;background:transparent;color:#aeb3c5;text-align:left;cursor:pointer}.nav-link span{width:19px;text-align:center;font-size:1.15rem}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.09);color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--primary)}.logout-button{margin-top:auto}.panel-shell{min-height:100vh;margin-left:242px}.topbar{height:72px;padding:0 32px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.92);position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}.topbar .eyebrow{margin:0 0 2px}.user-chip{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:.9rem}.user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ece9ff;color:var(--primary);font-weight:800}.menu-button{display:none}.content{padding:30px 32px 50px;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font-size:1.7rem;margin:3px 0 7px}.eyebrow{text-transform:uppercase;letter-spacing:.1em;color:var(--primary);font-size:.68rem;font-weight:800}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border:1px solid transparent;border-radius:9px;cursor:pointer;font-weight:700;font-size:.88rem}.button.primary{background:var(--primary);color:#fff}.button.primary:hover{background:var(--primary-dark);transform:translateY(-1px)}.button.ghost{border-color:var(--line);background:#fff;color:var(--text)}.button.ghost:hover{background:var(--surface-2)}.button.danger{color:var(--danger);background:#fff1f3}.button.full{width:100%}.button:disabled{opacity:.6;cursor:wait}.icon-button{border:0;background:transparent;border-radius:8px;padding:7px 9px;cursor:pointer;font-size:1.15rem}.icon-button:hover{background:#eef0f5}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card{display:flex;align-items:center;gap:15px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card div{display:grid;gap:3px}.stat-card span{font-size:.82rem;color:var(--muted)}.stat-card strong{font-size:1.65rem}.stat-icon{display:grid!important;place-items:center;width:44px;height:44px;border-radius:12px;font-size:1.2rem!important}.stat-icon.purple{color:#6555de;background:#efedff}.stat-icon.green{color:#16875d;background:#e5f7f0}.stat-icon.orange{color:#b76211;background:#fff1df}.stat-icon.blue{color:#2876c7;background:#e8f2ff}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-header{min-height:76px;padding:18px 21px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.card-header h2{font-size:1.02rem;margin:0 0 5px}.card-header p{font-size:.84rem}.text-link{font-size:.85rem;color:var(--primary);font-weight:700}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px 20px;text-align:left;border-bottom:1px solid #edf0f5;white-space:nowrap}th{background:#fafbfc;color:#73798a;text-transform:uppercase;letter-spacing:.045em;font-size:.68rem}td{font-size:.87rem}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfcfe}.actions-column{text-align:right}.table-actions{display:flex;justify-content:flex-end;gap:6px}.table-action{border:0;background:transparent;color:var(--primary);padding:6px 8px;border-radius:7px;cursor:pointer}.table-action:hover{background:#efedff}.table-action.delete{color:var(--danger)}.table-action.delete:hover{background:#fff0f2}.empty-state{padding:42px 20px;text-align:center;color:var(--muted)}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;font-size:.72rem;font-weight:750}.badge.pending{color:#9a580f;background:#fff2da}.badge.preparing{color:#5b4ec4;background:#efedff}.badge.ready{color:#176da8;background:#e5f4ff}.badge.completed{color:#107150;background:#e2f6ed}.badge.cancelled{color:#ad3343;background:#ffebee}.compact-select{width:auto;min-width:155px;padding:8px 10px}.muted{color:var(--muted)}
dialog{width:min(480px,calc(100% - 30px));padding:0;border:0;border-radius:16px;box-shadow:0 25px 80px rgba(20,25,45,.23)}dialog::backdrop{background:rgba(19,22,38,.48);backdrop-filter:blur(2px)}.dialog-card{padding:23px;display:grid;gap:17px}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h2{margin:0;font-size:1.15rem}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}.toast{position:fixed;right:22px;bottom:22px;z-index:100;padding:12px 16px;border-radius:9px;background:#202438;color:#fff;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none}.toast.show{opacity:1;transform:none}.toast.error{background:#a92e3e}.sidebar-overlay{display:none}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .22s ease}.sidebar.open{transform:none}.sidebar-overlay{display:block;position:fixed;inset:0;z-index:25;background:rgba(16,20,35,.42);opacity:0;pointer-events:none;transition:.2s}.sidebar-overlay.open{opacity:1;pointer-events:auto}.panel-shell{margin-left:0}.topbar{height:65px;padding:0 16px}.menu-button{display:block}.user-chip span:last-child{display:none}.content{padding:22px 16px 40px}.page-heading{align-items:flex-start}.page-heading h1{font-size:1.45rem}.card-header{align-items:flex-start}.actions-column{min-width:130px}}
@media(max-width:520px){.login-card{padding:28px 22px}.stats-grid{grid-template-columns:1fr}.page-heading{display:grid}.page-heading>.button{width:100%}.card-header{display:grid}.compact-select{width:100%}th,td{padding:12px 15px}}
.company-setup{margin:clamp(20px,8vh,80px) auto;width:min(440px,100%)}
.qr-card{margin-bottom:22px}.qr-content{padding:22px;display:flex;align-items:center;gap:24px}.qr-content p{margin:0 0 16px}.qr-preview{flex:0 0 auto;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.qr-preview img{display:block;width:150px;height:150px}.qr-preview img:not([src]){background:var(--surface-2)}@media(max-width:520px){.qr-content{align-items:flex-start;flex-direction:column}.qr-preview{align-self:center}.qr-content .button{width:100%}}
/* QR Yönetimi: Menü QR ve Bağlantılar QR kartlarını yan yana göstermek
   için (bkz. templates/admin/qr_management.html) — kartların kendi
   .qr-card stiline hiç dokunmuyor, sadece grid içine alıyor. */
.qr-cards-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px}
.qr-cards-row .qr-card{margin-bottom:0}
@media(max-width:760px){.qr-cards-row{grid-template-columns:1fr}}
.card-body{padding:22px}.table-qr-form{display:flex;align-items:end;gap:14px;margin-bottom:20px}.table-qr-form label{width:160px}.table-qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}.table-qr-item{padding:14px;display:grid;justify-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center}.table-qr-item img{width:120px;height:120px;border-radius:8px;background:var(--surface-2)}.table-qr-item strong{font-size:.85rem}
.orders-table{min-width:1450px}.orders-table .order-long-text{max-width:220px;white-space:normal;line-height:1.4}.order-detail-button{padding:5px 7px;border:0;border-radius:7px;background:#efedff;color:var(--primary);font-weight:800;cursor:pointer}.order-detail-button:hover{background:#e4e0ff}.order-detail-total{padding-top:15px;display:flex;align-items:center;justify-content:space-between;border-top:2px solid var(--text)}.order-detail-total strong{font-size:1.15rem}
.orders-table tr.priority-row{background:#fff2da}.orders-table tr.priority-row:hover{background:#ffe9c2}.badge.request-badge{color:#9a580f;background:#ffe4ad;animation:request-pulse 1.6s ease-in-out infinite}@keyframes request-pulse{0%,100%{opacity:1}50%{opacity:.6}}
.bulk-actions-bar{display:flex;align-items:center;gap:14px;padding:12px 21px;border-bottom:1px solid var(--line);flex-wrap:wrap}.bulk-actions-bar #selectedOrderCount{color:var(--muted);font-size:.83rem;font-weight:650}.order-select-col{width:36px}
.order-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.trial-banner{padding:10px 32px;background:#fff2da;color:#9a580f;font-size:.84rem;font-weight:700;text-align:center}.trial-banner.hidden{display:none}
.help-content{font-size:.86rem;line-height:1.62;color:var(--text)}.help-content p{margin:0 0 14px}.help-content ul{margin:0;padding-left:20px;display:grid;gap:11px}.help-content li{color:var(--text)}.help-note{margin-top:22px}.help-note h2{margin:0 0 10px;font-size:1.02rem}
.menu-editor{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px}.editor-categories,.editor-products{min-height:520px}.editor-category-list{padding:10px}.editor-category{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px;border-radius:9px}.editor-category.active{background:#f0eeff}.editor-category>button:first-child{min-width:0;padding:11px;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;cursor:pointer}.editor-category span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.editor-category small{min-width:24px;padding:3px 6px;border-radius:12px;background:#e7e9ef;text-align:center}.editor-input{min-width:150px}.price-input{min-width:110px}@media(max-width:800px){.menu-editor{grid-template-columns:1fr}.editor-categories,.editor-products{min-height:0}.editor-category-list{max-height:300px;overflow-y:auto}}
.menu-settings{margin-bottom:18px}.settings-grid{padding:20px;display:grid;grid-template-columns:2fr 1fr 2fr 2fr auto;align-items:end;gap:14px}.settings-grid .wide-field{grid-column:1/-2}.settings-grid textarea,.product-editor-form textarea{width:100%;padding:11px 13px;border:1px solid #d9dee8;border-radius:9px;resize:vertical;font:inherit}.menu-editor{grid-template-columns:minmax(240px,300px) minmax(480px,1fr) 290px}.editor-category[draggable=true],tr[draggable=true]{cursor:grab}.editor-product-name{display:flex;align-items:center;gap:10px;min-width:220px}.editor-product-name img,.image-placeholder{width:42px;height:42px;flex:none;border-radius:8px;object-fit:cover}.image-placeholder{display:grid;place-items:center;background:#eef0f5}.editor-product-name div{display:grid;gap:3px}.editor-product-name small{max-width:270px;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.editor-products td del{display:block;color:var(--muted);font-size:.75rem}.editor-products td .badge+.badge{margin-left:5px}.form-pair,.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-grid{grid-template-columns:repeat(3,1fr)}.check-grid label,.check-label{display:flex;align-items:center;gap:7px}.check-grid input,.check-label input{width:auto}.phone-preview{position:sticky;top:92px;align-self:start;padding:9px;border-radius:30px;background:#1d1e22;box-shadow:0 18px 45px rgba(23,25,35,.18)}.phone-screen{height:570px;overflow-y:auto;border-radius:23px;background:#fffaf4}.preview-cover{height:105px;background:#a84f2a center/cover}.preview-brand{padding:13px;display:flex;align-items:center;gap:9px}.preview-brand img{width:42px;height:42px;border-radius:10px;object-fit:cover}.preview-brand p{margin:3px 0 0;color:#756e67;font-size:.68rem}.preview-categories{padding:0 10px 10px;display:flex;gap:5px;overflow:hidden}.preview-categories span{padding:6px 9px;border:1px solid #eee5dc;border-radius:20px;white-space:nowrap;font-size:.65rem}.preview-products{padding:4px 10px;display:grid;gap:7px}.preview-products>div{padding:9px;display:flex;align-items:center;gap:7px;border:1px solid #eee5dc;border-radius:10px;background:#fff;font-size:.68rem}.preview-products img{width:38px;height:38px;border-radius:7px;object-fit:cover}.preview-products span{min-width:0;display:grid;flex:1}.preview-products small{color:#a84f2a}@media(max-width:1200px){.menu-editor{grid-template-columns:260px minmax(0,1fr)}.phone-preview{display:none}.settings-grid{grid-template-columns:repeat(2,1fr)}.settings-grid .wide-field{grid-column:1/-1}}@media(max-width:800px){.menu-editor{grid-template-columns:1fr}.settings-grid,.form-pair,.check-grid{grid-template-columns:1fr}.settings-grid .wide-field{grid-column:auto}}
.ai-import-dialog{width:min(820px,calc(100% - 24px));max-height:90vh}.ai-import-dialog .dialog-card{max-height:90vh;overflow-y:auto}.ai-help,.ai-preview-heading p{margin:0;color:var(--muted);line-height:1.55}.ai-upload-zone{min-height:160px;gap:7px}.ai-upload-zone span{font-size:.78rem}.ai-file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ai-file-chip{padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:var(--surface-2);font-size:.78rem}.ai-preview-heading h3{margin:4px 0}.ai-import-categories{display:grid;gap:12px}.ai-import-category{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.ai-import-category-header{display:flex;align-items:center;gap:8px;margin-bottom:10px}.ai-import-category-header input{font-weight:750}.ai-import-products{display:grid;gap:8px}.ai-import-product{display:grid;grid-template-columns:64px 2fr 1fr 1fr auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.ai-import-product label{font-size:.75rem}.ai-product-crop,.ai-product-crop-placeholder{width:64px;height:64px;align-self:end;border-radius:9px}.ai-product-crop{object-fit:cover}.ai-product-crop-placeholder{display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-size:1.4rem}.ai-product-photo{position:relative;display:block;width:64px;height:64px;align-self:end}.ai-product-photo .ai-product-crop{width:100%;height:100%}.ai-remove-photo{position:absolute;top:-6px;right:-6px;width:20px;height:20px;padding:0;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:var(--danger);color:#fff;font-size:.6rem;line-height:1;cursor:pointer}.ai-import-product.missing-price{border-color:#f59e0b;background:#fffbeb}.ai-import-product.missing-price [data-ai-product-price]{border-color:#f59e0b}.ai-price-warning{display:none;margin-top:4px;color:#b45309;font-size:.7rem}.ai-import-product.missing-price .ai-price-warning{display:block}.ai-remove-product{color:var(--danger);align-self:end}.ai-add-product{margin-top:10px}@media(max-width:650px){.ai-import-product{grid-template-columns:64px 1fr 1fr}.ai-import-product label:nth-of-type(1){grid-column:2/-1}.ai-remove-product{width:100%}.ai-import-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr}.ai-import-dialog .dialog-actions .button{width:100%}}
.my-menus{margin-bottom:18px}.my-menu-list{padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.my-menu{padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.my-menu.selected{border-color:var(--primary);box-shadow:0 0 0 2px rgba(103,87,232,.1)}.my-menu-head{display:flex;justify-content:space-between;gap:8px}.my-menu-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-menu-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.my-menu-actions .table-action{font-size:.76rem}.ai-target-menu{margin:12px 0}
#menuForm textarea{width:100%;padding:11px 13px;border:1px solid #d9dee8;border-radius:9px;resize:vertical;font:inherit}

/* Menu editor workspace */
.content:has(.menu-editor){max-width:1680px;padding:34px 38px 64px}.editor-heading{padding:4px 2px 2px}.editor-heading h1{font-size:2rem;letter-spacing:-.035em}.editor-ai-button{padding:12px 19px;border-radius:11px;box-shadow:0 8px 20px rgba(103,87,232,.24)}.editor-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bulk-import-actions{display:flex;align-items:center;gap:10px}
.my-menus,.menu-settings,.editor-categories,.editor-products{border-color:#e8eaf1;border-radius:18px;box-shadow:0 5px 18px rgba(24,32,51,.045)}.my-menus{margin-bottom:20px}.my-menus .card-header,.menu-settings .card-header{min-height:82px}.my-menu-list{padding:16px;display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin}.my-menu{min-width:290px;padding:14px;display:flex;align-items:flex-start;gap:12px;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(24,32,51,.04)}.my-menu.selected{background:linear-gradient(145deg,#f6f4ff,#fff);border-color:#8b7ff0;box-shadow:0 0 0 3px rgba(103,87,232,.09)}.my-menu-icon,.section-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:#eeebff;color:var(--primary);font-size:1.05rem}.my-menu-content{min-width:0;flex:1}.my-menu-content>small{display:block;margin-top:4px;color:var(--muted);font-size:.73rem}.my-menu-actions{margin-top:9px}.my-menu-actions .table-action{padding:5px 6px}
.menu-settings{margin-bottom:22px}.settings-summary{position:relative;display:flex;justify-content:flex-start;cursor:pointer;list-style:none}.settings-summary::-webkit-details-marker{display:none}.settings-summary .summary-chevron{margin-left:auto;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--surface-2);font-size:1.25rem;transition:.2s}.menu-settings[open] .summary-chevron{transform:rotate(180deg)}.menu-settings:not([open]) .settings-summary{border-bottom:0}.settings-grid{padding:24px;grid-template-columns:1.5fr .55fr 1.25fr 1.25fr auto;gap:18px;background:#fcfcfe}.settings-grid label{color:#4b5263}.settings-grid input,.settings-grid textarea{border-radius:10px;background:#fff}.settings-grid input[type=color]{height:45px;padding:5px}.upload-zone{border-radius:10px;background:#fff}
/* Menü Ayarları sadeleştirmesi: birincil formda sadece "Menü adı" kalır,
   geri kalan her şey (logo, kapak, renk, font, karartma, açıklama) içteki
   "Gelişmiş Ayarlar" katlanır bölümüne taşınır (bkz. templates/admin/products.html).
   İçteki alanlar zaten .settings-grid class'ını taşıyor, yukarıdaki grid
   stilini aynen miras alır — burada sadece dıştaki form/isim alanı ve
   iç katlanır bölümün kendi stili eklenir. */
.menu-settings-form{padding:24px;display:flex;flex-direction:column;gap:16px;background:#fcfcfe}
.menu-name-field{max-width:420px}
.advanced-settings{border:1px solid #e8eaf1;border-radius:14px;background:#fff;overflow:hidden}
.advanced-settings>summary{padding:14px 18px;display:flex;align-items:baseline;gap:8px;cursor:pointer;list-style:none;font-weight:700;color:#4b5263}
.advanced-settings>summary::-webkit-details-marker{display:none}
.advanced-settings>summary small{font-weight:500;color:var(--muted)}
.advanced-settings[open]>summary{border-bottom:1px solid #e8eaf1}
.advanced-settings .settings-grid{padding:20px}
.menu-editor{display:grid;grid-template-columns:270px minmax(440px,1fr) 370px;gap:20px;align-items:start}.editor-categories,.editor-products{min-height:650px}.editor-categories .card-header,.editor-products .card-header{padding:20px}.editor-category-list{padding:12px}.editor-category{margin-bottom:5px;padding:4px;grid-template-columns:minmax(0,1fr) auto auto auto!important;border:1px solid transparent;border-radius:12px}.editor-category.active{border-color:#ded9ff;background:#f4f2ff}.editor-category>button:first-child{padding:10px}.editor-category .table-action{width:27px;padding:5px 3px;opacity:.25}.editor-category:hover .table-action,.editor-category.active .table-action{opacity:1}.editor-category span{font-size:.86rem}.editor-category span i{color:#a4a8b3;font-style:normal}.editor-category small{background:#eceef3;color:#646b7c}
.product-card-grid{padding:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.editor-product-card{min-width:0;overflow:hidden;border:1px solid #e7e9ef;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(24,32,51,.05);transition:transform .18s ease,box-shadow .18s ease;cursor:grab}.editor-product-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(24,32,51,.09)}.product-card-media{height:148px;position:relative;overflow:hidden;background:linear-gradient(145deg,#f0f1f6,#e8eaf1)}.product-card-media>img{width:100%;height:100%;object-fit:cover}.product-card-media>.image-placeholder{width:100%;height:100%;border-radius:0;font-size:2rem;color:#9ca2af}.drag-handle{position:absolute;top:10px;left:10px;padding:5px 8px;border-radius:8px;background:rgba(25,28,40,.72);color:#fff;backdrop-filter:blur(4px)}.product-card-status{position:absolute;top:10px;right:10px;display:flex;gap:5px}.product-card-body{min-height:142px;padding:15px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}.product-card-body h3{margin:0 0 6px;font-size:.98rem}.product-card-body p{display:-webkit-box;margin:0;overflow:hidden;color:var(--muted);font-size:.78rem;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.product-card-price{display:grid}.product-card-price strong{font-size:1rem;color:var(--primary)}.product-card-price del{color:#9ca2af;font-size:.72rem}.icon-action{width:31px;height:31px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--primary);cursor:pointer}.icon-action:hover{background:#f0eeff}.icon-action.delete{color:var(--danger)}
.product-card-media{height:180px}.product-media-empty{box-sizing:border-box;width:100%;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1.5px dashed #cfd4df;border-radius:12px;background:#f8f9fc;color:#858c9c;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.product-media-empty svg{width:56px;height:56px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}.product-media-empty span{font-size:.76rem;font-weight:700;letter-spacing:.01em}.editor-product-card{cursor:pointer}.editor-product-card:hover .product-media-empty{border-color:#8879ed;background:#f2f0ff;color:#6657d8}.editor-product-card:hover .product-media-empty svg{transform:translateY(-2px)}.editor-product-card:focus-visible{outline:3px solid rgba(103,87,232,.22);outline-offset:2px}
.preview-panel{position:sticky;top:92px;align-self:start}.preview-panel-header{padding:0 5px 12px;display:flex;align-items:center;justify-content:space-between}.preview-panel-header>div{display:flex;align-items:center;gap:8px}.preview-panel-header small{color:var(--muted)}.live-dot{width:8px;height:8px;border-radius:50%;background:#27b47e;box-shadow:0 0 0 4px rgba(39,180,126,.13)}.phone-preview{position:relative;top:auto;width:100%;padding:12px;border:1px solid #2e3240;border-radius:38px;background:linear-gradient(145deg,#171923,#292d3b);box-shadow:0 24px 55px rgba(18,21,33,.22)}.phone-speaker{width:72px;height:5px;margin:0 auto 9px;border-radius:10px;background:#555a68}.phone-screen{height:680px;border-radius:27px}.preview-cover{height:145px}.preview-brand{padding:17px}.preview-brand img{width:50px;height:50px}.preview-brand strong{font-size:.85rem}.preview-brand p{font-size:.72rem}.preview-categories{padding:0 14px 13px;gap:7px;overflow-x:auto}.preview-categories span{padding:7px 11px;font-size:.68rem}.preview-products{padding:6px 14px 18px;gap:9px}.preview-products>div{padding:11px;font-size:.72rem}.preview-products img{width:46px;height:46px}
@media(max-width:1350px){.menu-editor{grid-template-columns:250px minmax(400px,1fr) 330px}.phone-screen{height:620px}.settings-grid{grid-template-columns:repeat(2,1fr)}.settings-grid .wide-field{grid-column:1/-1}}
@media(max-width:1080px){.menu-editor{grid-template-columns:260px minmax(0,1fr)}.preview-panel{grid-column:1/-1;position:relative;top:auto;width:390px;justify-self:center}.phone-screen{height:680px}}
@media(max-width:760px){.content:has(.menu-editor){padding:22px 16px 44px}.menu-editor{grid-template-columns:1fr}.editor-categories,.editor-products{min-height:0}.preview-panel{width:min(390px,100%)}.product-card-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));padding:12px}.settings-grid{grid-template-columns:1fr}.my-menu{min-width:260px}}
@media(max-width:480px){.product-card-grid{grid-template-columns:1fr}.product-card-media{height:185px}.phone-screen{height:620px}}
.preview-panel .phone-preview{display:block}
.phone-screen iframe{width:100%;height:100%;display:block;border:0;background:#fff}

/* Viewport-safe phone preview */
.menu-editor{grid-template-columns:minmax(230px,270px) minmax(360px,1fr) minmax(260px,420px)}
.preview-panel{width:100%;max-width:420px;min-width:0;overflow:visible}
.preview-panel .phone-preview{display:flex;flex-direction:column;width:auto;max-width:100%;height:min(900px,calc(100vh - 150px));height:min(900px,calc(100dvh - 150px));min-height:420px;margin-inline:auto;aspect-ratio:9/19.5;overflow:hidden}
.preview-panel .phone-speaker{flex:0 0 auto}
.preview-panel .phone-screen{flex:1 1 auto;height:auto;min-height:0;overflow-y:auto}
@media(max-height:650px){.preview-panel .phone-preview{min-height:0;height:calc(100vh - 120px);height:calc(100dvh - 120px)}}
@media(max-width:1080px){.menu-editor{grid-template-columns:minmax(220px,260px) minmax(0,1fr)}.preview-panel{grid-column:1/-1;position:relative;top:auto;width:100%;max-width:420px;justify-self:center}.preview-panel .phone-preview{height:min(820px,calc(100vh - 120px));height:min(820px,calc(100dvh - 120px))}}
@media(max-width:760px){.menu-editor{grid-template-columns:1fr}.preview-panel{width:100%;max-width:420px}}

/* Premium SaaS shell and dashboard */
:root{--bg:#f6f7fb;--text:#161b2b;--muted:#747b8d;--line:#e8eaf1;--primary:#6557e8;--primary-dark:#5142d2;--sidebar:#121522;--radius:17px;--shadow:0 5px 22px rgba(23,28,45,.055)}
.sidebar{width:258px;padding:25px 17px 18px;background:radial-gradient(circle at 20% 0,#282648 0,transparent 31%),linear-gradient(180deg,#161927,#10131e);border-right:1px solid rgba(255,255,255,.05)}.sidebar .brand{padding:0 11px 31px;gap:12px;letter-spacing:0}.sidebar .brand>span:last-child{display:grid;gap:1px}.sidebar .brand b{font-size:.96rem;letter-spacing:.08em}.sidebar .brand small{color:#777f98;font-size:.63rem;font-weight:600;letter-spacing:.06em}.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(145deg,#8172f5,#5847d8);box-shadow:0 7px 20px rgba(92,72,218,.35)}.nav-section-label{margin:0 12px 9px;color:#656d83;text-transform:uppercase;letter-spacing:.12em;font-size:.61rem;font-weight:800}.nav-list{gap:6px}.nav-link{min-height:45px;padding:11px 13px;border-radius:11px;font-size:.84rem}.nav-link b{font-weight:650}.nav-link span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;font-size:1.05rem}.nav-link:hover{background:rgba(255,255,255,.055)}.nav-link.active{background:linear-gradient(90deg,rgba(111,93,238,.24),rgba(111,93,238,.1));box-shadow:none;color:#fff}.nav-link.active span{background:#6d5de9;color:#fff}.sidebar-footer{margin-top:auto}.sidebar-help{margin:0 2px 12px;padding:13px;display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.035)}.sidebar-help>span{color:#9d91ff}.sidebar-help div{min-width:0;display:grid;gap:3px}.sidebar-help strong{color:#d9dce7;font-size:.72rem}.sidebar-help small{color:#777f91;font-size:.64rem}.logout-button{margin-top:0}.panel-shell{margin-left:258px}.topbar{height:78px;padding:0 36px;border-bottom-color:#e9ebf2;background:rgba(255,255,255,.88)}.topbar-company{display:grid;gap:1px}.topbar-company strong{font-size:.91rem}.user-chip{padding:7px 9px 7px 7px;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(25,30,47,.04)}.user-chip>span:nth-child(2){display:grid;gap:1px}.user-chip b{font-size:.78rem}.user-chip small{color:var(--muted);font-size:.64rem}.user-chip i{margin-left:4px;color:#9a9ead;font-style:normal}.user-avatar{width:35px;height:35px;background:linear-gradient(145deg,#ece9ff,#e4e0ff)}.content{padding:36px 38px 60px}.card{border-radius:18px;border-color:#e8eaf1;box-shadow:var(--shadow)}.button{border-radius:10px}.button.primary{background:linear-gradient(145deg,#7062ed,#5b4bdc);box-shadow:0 6px 16px rgba(93,75,220,.18)}
#dashboardContent{max-width:1440px;margin:auto}.dashboard-heading{margin-bottom:29px}.dashboard-heading h1{font-size:1.95rem;letter-spacing:-.035em}.dashboard-heading .button{padding:12px 18px}.stats-grid{gap:18px;margin-bottom:22px}.stat-card{position:relative;min-height:126px;padding:22px;border-radius:18px;border-color:#e8eaf1;box-shadow:var(--shadow)}.stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(24,30,48,.08)}.stat-card>div{flex:1}.stat-card>div>span{font-size:.75rem;font-weight:700}.stat-card strong{font-size:1.85rem;line-height:1.15;letter-spacing:-.04em}.stat-card small{color:#9a9fac;font-size:.68rem}.stat-card>i{position:absolute;right:16px;top:15px;color:#b3b7c1;font-style:normal}.stat-icon{width:49px;height:49px;border-radius:14px}.dashboard-grid{display:grid;grid-template-columns:minmax(330px,.72fr) minmax(500px,1.28fr);gap:20px}.qr-card{margin:0}.qr-card .card-header,.recent-orders-card .card-header{min-height:82px}.qr-content{min-height:290px;padding:27px;gap:28px;background:radial-gradient(circle at 5% 100%,#f0edff 0,transparent 38%)}.qr-preview{padding:12px;border-radius:17px;box-shadow:0 9px 26px rgba(35,38,57,.1)}.qr-preview img{width:164px;height:164px}.qr-content h3{margin:15px 0 7px;font-size:1.03rem}.qr-content .muted{margin:0 0 19px;max-width:260px;line-height:1.55;font-size:.79rem}.status-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:20px;background:#e8f8f1;color:#15805b;font-size:.69rem;font-weight:750}.status-pill i{width:7px;height:7px;border-radius:50%;background:#20a875}.recent-orders-card{min-width:0}.recent-orders-card table th{padding-top:15px;padding-bottom:15px;background:#fbfbfd}.recent-orders-card table td{padding-top:17px;padding-bottom:17px}.recent-orders-card tbody tr:hover{background:#faf9ff}.text-link{padding:7px 10px;border-radius:8px;background:#f1efff}.empty-state{min-height:150px;display:grid;place-items:center}
.analytics-grid{grid-template-columns:1fr 1fr;margin-top:20px}.ranked-list{padding:8px 10px 14px;display:grid;gap:2px}.ranked-item{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:10px;padding:11px 12px;border-radius:10px}.ranked-item:hover{background:var(--surface-2)}.ranked-position{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#efedff;color:var(--primary);font-size:.72rem;font-weight:800}.ranked-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:650}.ranked-value{font-size:.82rem;color:var(--muted);white-space:nowrap}.daily-chart-card{margin-top:20px}.bar-chart{padding:24px 18px 8px;display:flex;align-items:flex-end;gap:6px;height:180px}.bar-chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0}.bar-chart-track{width:100%;max-width:28px;height:100%;display:flex;align-items:flex-end;border-radius:6px;background:var(--surface-2);overflow:hidden}.bar-chart-fill{width:100%;min-height:3px;border-radius:6px;background:linear-gradient(180deg,var(--primary),var(--primary-dark))}.bar-chart-label{font-size:.62rem;color:var(--muted);white-space:nowrap}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.qr-content{min-height:0}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{width:258px}.panel-shell{margin-left:0}.topbar{height:68px;padding:0 16px}.topbar-company .eyebrow{display:none}.content{padding:24px 16px 44px}.dashboard-heading{gap:18px}.dashboard-grid{display:block}.recent-orders-card{margin-top:18px}.qr-content{flex-direction:row}.user-chip{border:0;background:transparent;box-shadow:none}.user-chip>span:nth-child(2),.user-chip i{display:none}}
@media(max-width:540px){.stats-grid{grid-template-columns:1fr}.stat-card{min-height:105px}.qr-content{flex-direction:column}.qr-content>div{text-align:center}.qr-content .muted{margin-left:auto;margin-right:auto}.dashboard-heading .button{width:100%}}

.control-center{
    margin-top:20px;
}

.control-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
    padding:22px;
}

.control-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:white;
    transition:.2s;
}

.control-item:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.control-item span{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    border-radius:12px;
    background:#f2f3ff;
}

.control-item strong{
    display:block;
    margin-bottom:4px;
}

.control-item small{
    color:#777;
}

@media(max-width:700px){

.control-grid{
    grid-template-columns:1fr;
}

}


/* DIGIMENU FOOD METADATA */

.product-food-meta {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.product-food-meta h3 {
    margin: 0 0 6px;
}

.food-meta-header {
    margin-bottom: 18px;
}

.food-meta-header p {
    margin: 0;
    color: var(--muted-color, #6b7280);
    font-size: 0.9rem;
}

.food-meta-section {
    margin-top: 18px;
}

.food-meta-section > label {
    display: block;
}

.allergen-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.allergen-grid label {
    padding: 8px 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .allergen-grid {
        grid-template-columns: 1fr;
    }
}

.barcode-video-wrap {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.barcode-video-wrap video {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
}

.barcode-hint {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
}

.barcode-manual {
    display: grid;
    gap: 10px;
}

.barcode-scan-error {
    margin: 0;
    min-height: 18px;
    color: var(--danger);
    font-size: .82rem;
}

.barcode-image-preview {
    width: 72px;
    height: 72px;
    margin-top: 8px;
    border-radius: 9px;
    object-fit: cover;
}

.table-cards-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.table-card {
    position: relative;
    padding: 18px 14px;
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.table-card-qr {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
}

.table-card-qr:hover {
    background: #f0eeff;
    border-color: var(--primary);
}

/* Restoran krokisi rengi: BOŞ = yeşil çerçeve (sakin), DOLU = kırmızı
   çerçeve + hafif kırmızı zemin (dikkat çeksin — bkz. görev notu). */
.table-card.status-available {
    border-color: #bfe8d3;
}

.table-card.status-occupied {
    border-color: var(--danger);
    background: #fff6f6;
}

.table-card[data-clickable] {
    cursor: pointer;
    transition: .15s ease;
}

.table-card[data-clickable]:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(93, 75, 220, .12);
}

.table-card strong {
    font-size: 1.1rem;
}

.table-card-info {
    display: grid;
    gap: 2px;
    justify-items: center;
}

.table-card-elapsed {
    color: var(--danger);
    font-size: .74rem;
    font-weight: 750;
}

.table-card-amount {
    font-size: .98rem;
    font-weight: 800;
}

@media (max-width: 600px) {
    .table-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .table-cards-grid {
        grid-template-columns: 1fr;
    }
}

.check-section-title {
    margin: 20px 0 -5px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.check-payment-form {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-payment-form input[type="number"] {
    flex: 1;
    padding: 9px 11px;
    border: 1px solid #d9dee8;
    border-radius: 9px;
    font: inherit;
}

/* Termal fiş yazdırma (bkz. tables.js renderPrintReceipt) — ekranda gizli,
   sadece window.print() sırasında @media print kuralı ile görünür olur.
   58mm/80mm rulo genişliğine uygun; siyah-beyaz, sade tipografi. */
.receipt-print-area {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    .receipt-print-area,
    .receipt-print-area * {
        visibility: visible;
    }

    .receipt-print-area {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 80mm;
        margin: 0;
        padding: 3mm;
        background: #fff;
        color: #000;
        font-family: "Courier New", Courier, monospace;
        font-size: 11px;
        line-height: 1.4;
    }

    .receipt-header {
        text-align: center;
        margin-bottom: 6px;
        border-bottom: 1px dashed #000;
        padding-bottom: 6px;
    }

    .receipt-header strong {
        display: block;
        font-size: 13px;
    }

    .receipt-items {
        width: 100%;
        border-collapse: collapse;
        margin: 4px 0;
    }

    .receipt-items td {
        padding: 2px 0;
        border: 0;
        white-space: normal;
        font-size: 11px;
    }

    .receipt-items td:first-child {
        width: 46%;
    }

    .receipt-total-line {
        display: flex;
        justify-content: space-between;
        border-top: 1px dashed #000;
        margin-top: 4px;
        padding-top: 4px;
        font-weight: 700;
    }

    .receipt-section-title {
        margin: 8px 0 2px;
        border-top: 1px dashed #000;
        padding-top: 6px;
        text-transform: uppercase;
        font-size: 10px;
    }

    .receipt-payment-row {
        display: flex;
        justify-content: space-between;
    }

    .receipt-disclaimer {
        margin-top: 8px;
        text-align: center;
        font-size: 9px;
        color: #000;
    }
}

/* =========================================================
   MUHASEBE RAPORU
   ========================================================= */
.accounting-filters {
    margin-bottom: 22px;
}

.accounting-filter-bar {
    padding: 18px 21px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.accounting-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn.active {
    border-color: var(--primary);
    background: #efedff;
    color: var(--primary);
}

.accounting-date-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.accounting-date-inputs label {
    display: grid;
    gap: 6px;
    font-size: .78rem;
    font-weight: 650;
    color: var(--muted);
}

.accounting-date-inputs input[type="date"] {
    width: auto;
    padding: 9px 11px;
}

.accounting-stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.accounting-daily-wrap {
    max-height: 420px;
    overflow-y: auto;
}

@media(max-width: 760px) {
    .accounting-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .accounting-date-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .accounting-date-inputs input[type="date"],
    .accounting-date-inputs select {
        width: 100%;
    }
}

@media(max-width: 540px) {
    .accounting-stats-grid {
        grid-template-columns: 1fr;
    }
}

.user-menu{position:relative;margin-left:auto}
.user-menu .user-chip{margin-left:0;border:1px solid var(--line);font:inherit;color:inherit;cursor:pointer}
.user-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:190px;padding:6px;display:grid;gap:2px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(24,32,51,.18)}
.user-menu-dropdown[hidden]{display:none}
.user-menu-item{width:100%;display:flex;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:.83rem;font-weight:650;cursor:pointer;text-decoration:none}
.user-menu-item:hover{background:var(--surface-2)}
.user-menu-item span{width:16px;text-align:center}
