/* ---------- Tables floor plan ---------- */
.floor { position: relative; height: 560px; margin: 18px; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(70% - 1px), var(--border) calc(70% - 1px), var(--border) 70%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(43,30,23,.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbf8f2, #f4eee4);
  border: 1px solid var(--border); }
.floor::after { content: ""; position: absolute; left: 70%; right: 0; top: 0; bottom: 0; background: rgba(111,143,114,.06); pointer-events: none; }
.zone-label { position: absolute; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); font-weight: 700; }
.floor-divider { position: absolute; left: 2%; right: 32%; top: 33%; border-top: 1px dashed var(--border-strong); }
.floor-entrance, .floor-counter { position: absolute; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.floor-entrance { bottom: 12px; left: 46%; }
.floor-counter { right: 33%; top: 70%; transform: translateX(50%); }
.ftable { position: absolute; width: max(var(--w), 92px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 2px solid; border-radius: 18px; background: var(--surface); cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); z-index: 2; font: inherit; }
.ftable.shape-round { border-radius: 50%; }
.ftable.shape-rect { aspect-ratio: 1.6; border-radius: 16px; }
.ftable:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-md); z-index: 3; }
.ftable b { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.ft-cap { display: inline-flex; gap: 3px; align-items: center; font-size: 11px; color: var(--text-3); }
.ft-cap svg { width: 12px; height: 12px; }
.ft-sub { font-size: 10.5px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ft-ready { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; animation: ring 1.6s infinite; }
.ft-ready svg { width: 14px; height: 14px; }
.chairs { position: absolute; inset: -9px; pointer-events: none; display: flex; flex-wrap: wrap; justify-content: space-around; align-content: space-between; }
.chairs i { width: 14px; height: 6px; border-radius: 4px; background: currentColor; opacity: .25; margin: 0 4px; }
.ftable.st-available { border-color: #8cc5a3; color: var(--success); background: #f4fbf6; }
.ftable.st-occupied { border-color: #df9a8b; color: var(--danger); background: #fdf1ee; }
.ftable.st-reserved { border-color: #95b6d1; color: var(--info); background: #f0f6fb; }
.ftable.st-cleaning { border-color: #e7c27f; color: var(--warning); background: #fdf7ea; border-style: dashed; }
.ftable.st-bill-requested { border-color: #b3a2d4; color: var(--violet); background: #f6f3fb; animation: pulse 2.2s infinite; }
.ftable b, .ftable .ft-sub { color: var(--text); }
.floor.editing .ftable { cursor: grab; box-shadow: 0 0 0 4px rgba(184,146,90,.18); }
.floor.editing .ftable.dragging { cursor: grabbing; z-index: 10; transition: none; box-shadow: var(--shadow-lg); }
.st-dot-available, .st-bg-available { background: var(--success); } .st-dot-occupied, .st-bg-occupied { background: var(--danger); }
.st-dot-reserved, .st-bg-reserved { background: var(--info); } .st-dot-cleaning, .st-bg-cleaning { background: var(--warning); } .st-dot-bill-requested, .st-bg-bill-requested { background: var(--violet); }
.table-stats .kpi-value { font-size: 24px; }
.res-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.res-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: all var(--t-fast); }
.res-day span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.res-day b { font-family: var(--font-display); font-size: 22px; }
.res-day em { font-style: normal; font-size: 11px; color: var(--text-2); }
.res-day:hover { border-color: var(--gold-400); }
.res-day.active { background: var(--espresso-800); color: #fff; border-color: var(--espresso-800); }
.res-day.active span, .res-day.active em { color: var(--gold-300); }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: var(--surface-2); }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 18px; }
.mcard { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; transition: box-shadow var(--t-fast), transform var(--t-fast); }
.mcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mcard.off { opacity: .6; }
.mcard-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mcard-flags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.mcard-body { padding: 12px 14px 12px; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.pf-image { display: flex; gap: 16px; align-items: flex-start; }
.pf-preview { width: 180px; flex: none; }
.pf-preview img { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.row-edit { display: grid; grid-template-columns: 1.4fr 1fr .8fr 32px; gap: 8px; margin-bottom: 8px; }
.row-edit.addon-row { grid-template-columns: 1.3fr .8fr 1.4fr .6fr 32px; }
.cat-card .cat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }

/* ---------- Recipes ---------- */
.rb-top { display: flex; gap: 16px; align-items: center; }
.rb-img { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; flex: none; }
.rb-top .kpi { padding: 12px 14px; }
.rb-top .kpi-value { font-size: 20px; }
.rb-row { gap: 8px; padding: 8px 12px; }
.rb-row select { flex: 1; }

/* ---------- Purchasing / CRM / Staff ---------- */
.po-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.supplier-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.stars { color: var(--gold-500); letter-spacing: 1px; }
.cust-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--espresso-900), var(--espresso-700)); color: var(--cream-100); }
.cust-hero .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.cust-hero b { font-family: var(--font-display); font-size: 22px; font-weight: 540; }
.cust-hero .sub { color: var(--gold-300); font-size: 12.5px; }
.cust-hero .tier-pill { margin-left: auto; text-align: right; }
.tier-pill b { display: block; font-size: 15px; }
.tier-card { border-radius: 16px; padding: 18px; color: #fff; position: relative; overflow: hidden; min-height: 140px; }
.tier-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tier-card b { font-family: var(--font-display); font-size: 22px; font-weight: 540; display: block; }
.tier-card span { font-size: 12px; opacity: .85; }
.tier-card .tier-count { font-family: var(--font-display); font-size: 30px; margin-top: 18px; }
.wallet-card { border-radius: 18px; padding: 20px; background: linear-gradient(135deg, #2b1e17 0%, #6b4f3d 100%); color: var(--cream-100); position: relative; overflow: hidden; }
.wallet-card::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(207,174,122,.15); }
.wallet-card .wc-bal { font-family: var(--font-display); font-size: 32px; margin-top: 18px; }
.wallet-card .wc-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.shift-grid { display: grid; grid-template-columns: 200px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.shift-grid > div { padding: 8px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 12px; min-height: 52px; }
.shift-grid .sg-head { background: var(--surface-2); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); min-height: 0; }
.shift-grid .sg-head.today { color: var(--accent-strong); }
.shift-pill { display: block; padding: 4px 7px; border-radius: 7px; font-weight: 600; font-size: 11px; background: var(--accent-soft); color: var(--espresso-700); cursor: pointer; }
.shift-pill.eve { background: var(--info-soft); color: var(--info); }
.shift-pill + .shift-pill { margin-top: 4px; }
.clock-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.clock-card.on { border-color: #9fd0b4; background: #f4fbf6; }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-yes { color: var(--success); } .perm-no { color: var(--charcoal-300); }
