*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1014;
  color: #f5f5f5;
  direction: rtl;
}

/* באפליקציית הקופה לא רוצים שהדף עצמו יגלול – רק הפאנלים הפנימיים */
body.cashier-layout {
  /* הדף עצמו לא גולל – רק פאנלים פנימיים */
  overflow: hidden;
  overscroll-behavior: none;

  /* iOS standalone: מונע "קפיצות" ורקע שזז (rubber band) */
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--app-height);

  -webkit-overflow-scrolling: auto;
  touch-action: manipulation;
}

/* iOS Safari: יציבות גובה בלי קפיצות של הכתובת */
:root { --app-height: var(--app-height); }
@supports (height: 100dvh) { :root { --app-height: 100dvh; } }
@supports (height: 100svh) { :root { --app-height: 100svh; } }


.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #11181f;
  border-bottom: 1px solid #1f2933;
}

.app-header h1 {
  margin: 0;
  font-size: 1.2rem;
}

.header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 1px solid transparent;
}

.badge-gray {
  background: #111827;
  border-color: #4b5563;
  color: #d1d5db;
}

.badge-blue {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: white;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "menu current"
    "open open";
  gap: 12px;
  padding: 12px;
  height: calc(var(--app-height) - 56px);
  max-height: calc(var(--app-height) - 56px);
}

.panel {
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2933;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  padding-bottom: 4px;
  border-bottom: 1px solid #1f2933;
}

.panel-menu {
  grid-area: menu;
  overflow: hidden;
}

.panel-open-orders {
  grid-area: open;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-order {
  grid-area: current;
  gap: 10px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.category-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
  font-size: 0.95rem;
  cursor: pointer;
  color: #e5e7eb;
  box-shadow: 0 4px 10px rgba(15,23,42,0.7);
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.category-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.85);
  border-color: rgba(148,163,184,0.7);
}

.category-tab.active {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  border-color: #4ade80;
  color: #022c16;
  box-shadow: 0 0 18px rgba(34,197,94,0.55);
}

.menu-items {
  flex: 1;
  /* מאפשר לצללים והגבול העליון להופיע בלי חיתוך */
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 2px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.menu-item {
  background: radial-gradient(circle at top, #022c22 0, #020617 55%, #020617 100%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 10px 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.18s ease-out,
    background 0.22s ease-out,
    border-color 0.18s ease-out;
}

.menu-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.menu-item-price {
  font-size: 0.9rem;
  opacity: 0.9;
}

.menu-item:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.45), 0 10px 25px rgba(15,23,42,0.9);
}

.menu-item-clicked {
  border-color: #22c55e;
  background: radial-gradient(circle at top, #059669 0, #020617 55%, #020617 100%);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.7), 0 0 30px rgba(34,197,94,0.4);
}

.current-order,
.orders-open {
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2933;
  /* אין רווח בתחתית - הפוטר נדבק לקצה */
  padding: 8px 8px 0 8px;
}

.current-order {
  display:flex;
  flex-direction:column;
  justify-content:space-between;

  flex: 0.9;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.orders-open {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.order-header,
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.empty-text {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.7;
}

.order-item {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, rgba(34,197,94,0.14), rgba(2,6,23,0.92));
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 14px;
  padding: 10px 10px;
  margin: 8px 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,197,94,0.10) inset;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  font-size: 1.05rem;
}


.order-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-item-main {
  font-weight: 500;
}
.order-item-price {
  text-align: left;
}

.order-item-multi {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 2px;
}

.order-item-meta {
  font-size: 1.05rem;
  opacity: 0.8;
  white-space: pre-line;
}

/* Free drink selector – AI style chips */
.free-drink-selector {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, rgba(34,197,94,0.18), #020617);
  border: 1px solid #1f2937;
}

.free-drink-label {
  font-size: 0.95rem;
  margin-bottom: 4px;
  opacity: 0.85;
}

.drink-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.drink-chip {
  border-radius: 999px;
  border: 1px solid #334155;
  background: linear-gradient(135deg, #020617, #020617);
  padding: 3px 8px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #e5e7eb;
  transition: all 0.15s ease-in-out;
}

.drink-chip:hover {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.35);
}

.drink-chip-selected {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #022c22;
  border-color: #22c55e;
}


.order-item-meta .order-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 1.05rem;
  margin: 2px 4px 2px 0;
  white-space: nowrap;
}

.order-item-meta .order-chip-sauce {
  background: rgba(34,197,94,0.18);
  border: 1px solid #22c55e;
  color: #bbf7d0;
}

.order-item-meta .order-chip-free {
  background: rgba(21,128,61,0.45);
  border: 1px solid #22c55e;
  color: #dcfce7;
}

.order-item-meta .order-chip-paid {
  background: #22c55e;
  border: 1px solid #22c55e;
  color: #022c22;
  font-weight: 600;
}

.order-item-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.order-item-qty-label {
  font-size: 1.05rem;
  color: #9ca3af;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: rgba(15, 23, 42, 0.8);
}

.order-item-extra-note {
  margin-top: 2px;
  font-size: 0.95rem;
  color: #e5e7eb;
}


.order-footer {
  margin-top:auto;
  padding:14px;
  border-top:1px solid rgba(255,255,255,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #111827;
  margin-top: 6px;
}

.order-footer-actions-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.delivery-fee-label {
  font-size: 1.05rem;
  opacity: 0.8;
}

.order-total {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 1.05rem;
}

.order-total strong {
  font-size: 1.1rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.35);
  padding: 6px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #020617, #020617);
  color: #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.6);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.75);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.8);
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #4ade80;
  color: #022c16;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 9px 20px rgba(22, 163, 74, 0.65);
}

.btn-secondary {
  background: linear-gradient(135deg, #020617, #020617);
  border-color: #334155;
}

.btn-secondary:hover {
  border-color: #64748b;
}

.btn-small {
  padding: 3px 8px;
  font-size: 0.95rem;
}

.open-orders-list {
  flex: 1;
  padding-right: 2px;
}

.open-order-row {
  border-bottom: 1px solid #111827;
  padding: 5px 2px;
  font-size: 0.95rem;
  cursor: pointer;
}

.open-order-row:hover {
  background: #020617;
  border-radius: 4px;
}

.open-order-main {
  display: flex;
  justify-content: space-between;
}

.open-order-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* סיכום מזומן בסוף "הזמנות פתוחות" */
.open-orders-cash-summary {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.25);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.22), transparent 60%),
    rgba(2,6,23,0.92);
  box-shadow: 0 10px 26px rgba(15,23,42,0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.open-orders-cash-summary__label {
  font-size: 1.02rem;
  opacity: 0.9;
}

.open-orders-cash-summary__value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* modal */

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.8);
}

.modal-content {
  position: relative;
  max-width: 480px;
  margin: 60px auto;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 55%),
    #020617;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 18px 20px 20px;
  box-shadow: 0 22px 60px rgba(15,23,42,0.85);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.modal-summary {
  max-width: 520px;
}

.modal-subtitle {
  font-size: 1.05rem;
  color: #9ca3af;
  margin: 0 0 6px;
}

.modal-order-details {
  max-width: 640px;
}

.order-details-meta {
  font-size: 0.92rem;
  color: #e5e7eb;
  margin-bottom: 8px;
  line-height: 1.5;
}

.order-details-items-wrapper {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.7);
  margin-bottom: 8px;
}

.order-details-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.order-details-items-table th,
.order-details-items-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(31,41,55,0.9);
}

.order-details-items-table th {
  position: sticky;
  top: 0;
  background: rgba(15,23,42,0.95);
  font-weight: 600;
}

.order-details-notes-cell {
  font-size: 0.95rem;
  color: #9ca3af;
}

.order-details-totals {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.order-details-totals strong {
  font-weight: 700;
}

.order-code-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: #22c55e;
  font-weight: 600;
  cursor: pointer;
}

.order-code-btn:hover {
  text-decoration: underline;
}

.modal-section {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  opacity: 0.85;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.field-row-inline {
  display: flex;
  gap: 6px;
}

.field-row-inline > div {
  flex: 1;
}

input, textarea {
  border-radius: 8px;
  border: 1px solid #374151;
  padding: 5px 8px;
  font-size: 0.95rem;
  background: #020617;
  color: #e5e7eb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #22c55e;
}

.error-text {
  color: #f97373;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-toggle {
  background: #020617;
  border-color: #4b5563;
  border-radius: 999px;
  padding-inline: 14px;
  padding-block: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-toggle.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
  color: #041308;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.35);
}

.modal-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* admin */

.modal-admin {
  max-width: 600px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-tab {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  font-size: 0.95rem;
  cursor: pointer;
}

.admin-tab.active {
  background: #16a34a;
  border-color: #22c55e;
  color: #041308;
}

.admin-tab-panel {
  border-top: 1px solid #1f2933;
  padding-top: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.admin-list {
  font-size: 0.95rem;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #111827;
  align-items: center;
}

.admin-list-row-header {
  font-weight: 600;
  border-bottom: 1px solid #1f2933;
}

.admin-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* כרטיסים יפים ליומן פעילויות מנהלים */
.admin-log-row {
  padding: 6px 0;
  border-bottom: 1px solid #111827;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-log-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.admin-log-main-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-log-time {
  font-size: 0.95rem;
  color: #9ca3af;
}

.admin-log-admin {
  font-size: 1.05rem;
  color: #e5e7eb;
}

.admin-log-action {
  font-size: 0.95rem;
  text-align: left;
  margin-inline-start: 8px;
}

.admin-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.admin-log-badge {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #374151;
  font-size: 0.95rem;
  background: #020617;
  color: #e5e7eb;
}

.hidden {
  display: none;
}

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

/* toppings panel במודאל */
.modal-toppings {
  max-width: 720px;
}

.toppings-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #1f2933;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.12), transparent 55%),
    #020617;
  max-height: 420px;
  overflow-y: auto;
}

.toppings-current-item {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.toppings-group {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid #111827;
}

.toppings-group h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #a5b4fc;
}

.topping-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) 1fr;
  gap: 4px 6px;
  align-items: center;
  margin-bottom: 4px;
}

.topping-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.topping-row .btn-xs {
  margin-bottom: 3px;
}

.toppings-hint {
  font-size: 1.05rem;
  opacity: 0.75;
  margin: 4px 0 8px;
}

.toppings-close-btn {
  float: left;
  margin: 0 0 8px;
}

/* כפתור "תוספות" ברשימת הפריטים */
.btn-toppings {
  background: #0f766e;
  border-color: #14b8a6;
  color: #ecfeff;
}

.btn-toppings:hover {
  filter: brightness(1.05);
}

/* גודל קטן לכפתורי חלקים ורבעים */
.btn-xs {
  padding: 2px 6px;
  font-size: 0.95rem;
}
/* === Driver layout (Pizza Olive) === */

body.driver-layout {
  margin: 0;

  /* בדף השליחים כן רוצים שהרקע (הדף עצמו) יוכל לגלול */
  position: relative;
  width: 100%;
  min-height: var(--app-height);
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.driver-top-bar {
  height: 52px;
  border-bottom: 1px solid #020617;
  background: #020617;
}

.driver-top-bar-inner {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 14px;
}

.driver-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: #22c55e;
}

.driver-top-title {
  font-size: 14px;
}

.driver-page {
  flex: 1;
  display: flex;
  align-items: flex-start; /* במקום center – מאפשר גלילת דף כשיש הרבה תוכן */
  justify-content: center;
  padding: 24px 18px 32px;
  min-height: calc(var(--app-height) - 52px);
}


.driver-card {
  width: 100%;
  max-width: 460px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(135deg, #020617 0%, #020617 45%, #020617 100%);
  border-radius: 24px;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  padding: 26px 24px 24px;
  animation: driver-fade-in-up 0.3s ease-out;
}

.driver-card-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.driver-card-subtitle {
  margin: 0 0 22px;
  color: #9ca3af;
  font-size: 14px;
}

.driver-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #9ca3af;
}

.driver-field-input {
  width: 100%;
  padding: 10px 11px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.driver-field-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
  background: #020617;
}

.driver-field-input::placeholder {
  color: #4b5563;
}

.driver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out;
}

.driver-btn-primary {
  background: #22c55e;
  color: #02140a;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.4);
}

.driver-btn-primary:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.55);
}

.driver-btn-primary:active {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.driver-msg {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

.driver-msg-error {
  color: #f97373;
}

.driver-msg-info {
  color: #38bdf8;
}

.driver-claim-box {
  margin-top: 10px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid #111827;
}

.driver-orders-box {
  margin-top: 18px;
  padding: 14px 12px 10px;
  border-radius: 18px;
  background: #111827;
  border: 1px solid #111827;
}

.driver-section-title {
  margin: 0 0 6px;
  font-size: 15px;
}

.driver-summary {
  margin: 0 0 10px;
  font-size: 13px;
  color: #9ca3af;
}

.driver-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh; /* סקרול פנימי לרשימת משלוחים */
  overflow-y: auto;
  padding-right: 2px;
}

/* במובייל (אייפון/אנדרואיד) עדיף שהדף עצמו יגלול,
   כדי שלא נהיה "כלואים" בסקרול פנימי של הרשימה בלבד. */
@media (max-width: 820px) {
  .driver-orders-list {
    max-height: none;
    overflow-y: visible;
  }
}

.driver-order-row {
  padding: 7px 8px 8px;
  border-radius: 12px;
  border: 1px solid #111827;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.07), transparent 55%),
    #020617;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.12s ease-out;
}

.driver-order-row:hover {
  border-color: #22c55e;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 60%),
    #020617;
  transform: translateY(-1px);
}

.driver-order-main {
  font-weight: 600;
  margin-bottom: 2px;
}

.driver-order-details {
  color: #9ca3af;
  margin-bottom: 4px;
}

.driver-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.driver-order-phone {
  font-family: monospace;
  font-size: 11px;
}

.driver-order-status {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #030712;
  font-size: 11px;
}

.driver-order-amount {
  font-weight: 600;
}

.driver-call-btn {
  margin-right: auto;
}

/* modal של פרטי הזמנה לשליח */
.driver-order-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.78);
  z-index: 70;
}

.driver-order-modal-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 14px;
  padding: 16px 16px 12px;
  border-radius: 20px;
  border: 1px solid #1f2937;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 60%),
    #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.driver-order-modal-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.driver-order-modal-body {
  font-size: 13px;
  margin-bottom: 8px;
}

.driver-order-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.driver-order-items-list li {
  padding: 3px 0;
}

.driver-order-delivery-fee {
  margin-top: 8px;
  font-size: 14px;
  color: #e5e7eb;
}

.driver-order-modal-hint {
  font-size: 11px;
  color: #9ca3af;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .driver-top-bar-inner {
    padding-inline: 12px;
  }

  .driver-page {
    padding: 22px 12px 28px;
  }

  .driver-card {
    max-width: 420px;
    padding-inline: 18px;
  }
}

@keyframes driver-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Cashier layout styled like driver card ===== */
body.cashier-layout {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
}

body.cashier-layout .app-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  background: #020617;
  border-bottom: 1px solid #020617;
}

body.cashier-layout .app-header h1 {
  font-size: 1.1rem;
}

body.cashier-layout .layout {
  max-width: 1100px;
  margin: 16px auto 24px;
  padding: 0 18px 24px;
  height: auto;
  min-height: calc(100vh - 70px);
}

body.cashier-layout .panel {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(135deg, #020617 0%, #020617 45%, #020617 100%);
  border-radius: 24px;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  padding: 14px 12px;
}

/* make layout responsive & centered on mobile */
@media (max-width: 900px) {
  body.cashier-layout .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 12px 20px;
    min-height: auto;
  }
}


/* ===== Orders / Drivers tabs in open orders ===== */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.orders-tabs {
  display: flex;
  gap: 6px;
}

.orders-tab {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.14), rgba(15,23,42,0.96));
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9), 0 10px 25px rgba(15,23,42,0.9);
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease, color 120ms ease, border-color 120ms ease;
}

.orders-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.7);
  box-shadow: 0 12px 30px rgba(15,23,42,0.85);
}

.orders-tab.active {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: #02140a;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.4), 0 16px 40px rgba(22,163,74,0.5);
}

.orders-tab-accent {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(148,163,184,0.35);
}

.orders-tab-accent.active {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #022c22;
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.45);
}


.drivers-summary {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #111827;
  max-height: 300px;
  overflow-y: auto;
}

/* Map tab: let the map take the full height of the open-orders panel */
.drivers-summary.map-mode {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.driver-summary-row {
  padding: 10px 10px 8px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
    #020617;
  margin-bottom: 8px;
  font-size: 0.95rem;
  cursor: default;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.driver-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.driver-summary-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.driver-summary-total {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.driver-summary-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.driver-summary-close-all-btn {
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.6);
  background: rgba(37,99,235,0.18);
  color: #dbeafe;
  padding: 2px 10px;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.driver-summary-close-all-btn:hover {
  background: rgba(37,99,235,0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}


.driver-summary-meta {
  font-size: 1.05rem;
  color: #9ca3af;
}

.driver-summary-orders {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #1f2937;
}

.driver-summary-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  padding: 3px 0;
  gap: 6px;
}

.driver-summary-order-left {
  flex: 1;
}

.driver-summary-remove-btn {
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.driver-summary-remove-btn:hover {
  background: rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* daily summary footer */
.drivers-summary-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #111827;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#closeDayBtn {
  align-self: flex-start;
  margin-top: 2px;
}

/* order edit modal */
.order-edit-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 4px;
}

.order-edit-row {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr 0.8fr auto;
  gap: 4px;
  align-items: center;
}

.order-edit-row input {
  width: 100%;
}

.order-edit-remove-btn {
  border: 1px solid #1f2937;
  background: transparent;
  color: #f97373;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.95rem;
  cursor: pointer;
}


.btn-order-details {
  margin-inline-start: 0.75rem;
  padding: 2px 10px;
  font-size: 1.05rem;
  border-radius: 999px;
}

.open-order-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


/* Open orders: price + actions column */
.open-order-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.open-order-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.open-order-price {
  font-weight: 600;
}

.open-order-actions {
  display: flex;
  gap: 0.35rem;
}


.open-order-row.open-order-overdue {
  background: rgba(239, 68, 68, 0.12);
}

.open-order-row.open-order-overdue .open-order-main,
.open-order-row.open-order-overdue .open-order-main div,
.open-order-row.open-order-overdue span {
  color: #fecaca;
}


.orders-search {
  margin-bottom: 6px;
}

.orders-search-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #1f2933;
  background: #020617;
  color: #e5e7eb;
  font-size: 13px;
}

.orders-search-input::placeholder {
  color: #6b7280;
}


.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #fecaca;
  color: #fef2f2;
}

.btn-danger:hover {
  filter: brightness(1.05);
  box-shadow: 0 9px 20px rgba(239, 68, 68, 0.65);
}


.drivers-map {
  margin-top: 8px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
}

/* When the map tab is active we want the map to fill the available space */
.drivers-summary.map-mode .drivers-map {
  margin-top: 0;
  height: auto;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
}

.drivers-summary.map-mode .drivers-map {
  margin-top: 0;
  height: auto;
  flex: 1;
  min-height: 0;
}

/* === Pizza zone selector inside toppings modal === */
.toppings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 16px;
  align-items: flex-start;
}

.pizza-zone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pizza-zone-wrapper.hidden-pizza-zone {
  display: none;
}

.pizza-circle {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(254,249,195,0.25), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(248,250,252,0.15), transparent 60%),
    #78350f;
  box-shadow: 0 0 0 4px rgba(15,23,42,0.9), 0 12px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}

.pizza-circle::before,
.pizza-circle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2px;
  height: 100%;
  background: rgba(15,23,42,0.65);
  transform: translate(-50%, -50%) rotate(90deg);
}


/* --- Medium (6 slices) zone mode: halves + thirds --- */
.pizza-line{
  display:none;
  position:absolute;
  top:50%;
  left:50%;
  width:2px;
  height:140%;
  background: rgba(15,23,42,0.65);
  transform-origin:center;
  pointer-events:none;
  z-index: 1;
}

.pizza-line.line-v{ transform: translate(-50%,-50%) rotate(0deg); }
.pizza-line.line-d1{ transform: translate(-50%,-50%) rotate(60deg); }
.pizza-line.line-d2{ transform: translate(-50%,-50%) rotate(-60deg); }

.pizza-circle.mode-six::before,
.pizza-circle.mode-six::after{
  opacity:0;
}

.pizza-circle.mode-six .pizza-line{
  display:block;
}

.pizza-zone-btn.zone-third-1,
.pizza-zone-btn.zone-third-2,
.pizza-zone-btn.zone-third-3{
  display:none;
}

.pizza-circle.mode-six .pizza-zone-btn.zone-third-1,
.pizza-circle.mode-six .pizza-zone-btn.zone-third-2,
.pizza-circle.mode-six .pizza-zone-btn.zone-third-3{
  display:block;
}

.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-rt,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-rb,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-lt,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-lb{
  display:none;
}

.pizza-zone-btn.zone-third-1{
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.pizza-zone-btn.zone-third-2{
  bottom: 18%;
  right: 16%;
}

.pizza-zone-btn.zone-third-3{
  bottom: 18%;
  left: 16%;
}
.pizza-circle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.pizza-zone-btn {
  position: absolute;
  border: 1px solid rgba(148,163,184,0.28);
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.pizza-zone-btn.zone-full {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pizza-zone-btn.zone-half-right {
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
}

.pizza-zone-btn.zone-half-left {
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
}

.pizza-zone-btn.zone-quarter-rt {
  top: 16%;
  right: 14%;
}

.pizza-zone-btn.zone-quarter-rb {
  bottom: 16%;
  right: 14%;
}

.pizza-zone-btn.zone-quarter-lt {
  top: 16%;
  left: 14%;
}

.pizza-zone-btn.zone-quarter-lb {
  bottom: 16%;
  left: 14%;
}


/* --- Improve readability of pizza zone labels (tablet) --- */
.pizza-zone-btn.zone-quarter-rt,
.pizza-zone-btn.zone-quarter-rb,
.pizza-zone-btn.zone-quarter-lt,
.pizza-zone-btn.zone-quarter-lb {
  font-size: 0.72rem;
  padding: 3px 7px;
  max-width: 96px;
  white-space: normal;
  line-height: 1.05;
  text-align: center;
}

.pizza-zone-btn.zone-full {
  font-size: 0.78rem;
  padding: 3px 10px;
}
.pizza-zone-btn.active-zone {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border-color: rgba(34,197,94,0.9);
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

.current-zone-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

.current-zone-label span {
  font-weight: 600;
  color: #bbf7d0;
}

.toppings-panel-wrapper {
  width: 100%;
}

.toppings-panel {
  max-height: 420px;
}

.current-zone-toppings {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-top: 4px;
  max-width: 220px;
  text-align: center;
}

.current-zone-toppings span {
  color: #e5e7eb;
}

.toppings-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

/* Pasta toppings: allow stacking prominent rows (required sauce first) */
.toppings-group.toppings-group-stack {
  display: block;
}

.toppings-box {
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 14px;
  margin-top: 10px;
}

.toppings-box-primary {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.65), rgba(6, 78, 59, 0.65));
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.10);
}

.toppings-box-secondary {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toppings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.toppings-box-primary .topping-chip {
  font-weight: 700;
  padding: 8px 16px;
}

/* Requested: remove special highlight for مكرام, only make it a bit larger */
.topping-chip-large {
  font-size: 1.02rem;
  padding: 9px 18px;
}

.toppings-group h4 {
  flex-basis: 100%;
}

.topping-chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  cursor: pointer;
  margin-bottom: 4px;
  white-space: nowrap;
}

.topping-chip-active {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}


.zone-summary-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-start;
  margin:6px 0;
  direction: rtl;
  text-align: right;
}

.zone-title{
  color:#cbd5e1;
  font-weight:500;
}

.zone-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

.current-zone-toppings{
  max-width: 260px;
  text-align: right;
  direction: rtl;
}

/* Green modern pill for each topping (readable) */
.zone-topping-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(34,197,94,0.22);
  border:1px solid rgba(34,197,94,0.45);
  color:#f8fafc;
  font-weight:600;
  line-height:1.1;
  text-shadow:0 1px 2px rgba(0,0,0,0.35);
}

.current-zone-toppings .zone-topping-label{
  color:#f8fafc;
}

/* === Pasta / ravioli toppings layout (no pizza image) === */
.toppings-layout.no-pizza-layout {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

.toppings-layout.no-pizza-layout .toppings-panel-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.toppings-layout.no-pizza-layout .toppings-panel {
  background:
    radial-gradient(circle at top right, rgba(34,197,94,0.14), transparent 55%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.18), transparent 55%),
    #020617;
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
}

.order-item-free-drink-line {
  margin-top: 2px;
  font-size: 1.05rem;
  color: #bfdbfe;
}


/* ===== Takeaway / Dine-in summary modal ===== */
.takeaway-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.95rem;
}

.takeaway-summary-table th,
.takeaway-summary-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #111827;
  text-align: center;
}

.takeaway-summary-table th:first-child,
.takeaway-summary-table td:first-child {
  text-align: right;
}

.takeaway-summary-table tfoot td {
  font-weight: 700;
}

.takeaway-summary-meta {
  margin-top: 6px;
  font-size: 1.05rem;
  color: #9ca3af;
}

/* ===== Takeaway tab – modern summary card ===== */
.takeaway-summary-card {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid #1f2937;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.14), transparent 55%),
    #020617;
  box-shadow: 0 12px 28px rgba(15,23,42,0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.takeaway-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.takeaway-summary-label {
  font-weight: 600;
  opacity: 0.9;
}

.takeaway-summary-values {
  font-weight: 500;
  color: #e5e7eb;
}

.takeaway-summary-row--total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #4b5563;
  font-weight: 700;
  color: #facc15;
}

.takeaway-summary-row--total .takeaway-summary-label {
  font-weight: 700;
}

.takeaway-summary-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.takeaway-summary-actions .btn {
  font-size: 0.98rem;
}

/* smaller red-style button for "close all" */
.btn-danger {
  background: #b91c1c;
  border-color: #ef4444;
  color: #fef2f2;
  font-weight: 600;
}

.btn-danger:hover {
  filter: brightness(1.05);
}

/* === Day close summary card (Closed orders tab) === */
.day-close-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #111827;
  background: radial-gradient(circle at top left, rgba(34,197,94,0.20), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59,130,246,0.20), transparent 55%),
              #020617;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-close-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-close-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.day-close-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #bbf7d0;
}

.day-close-note {
  font-size: 0.95rem;
  color: #9ca3af;
}

.day-close-actions .btn {
  font-size: 0.98rem;
  white-space: nowrap;
}

/*-----------------------------------------------------------------
  Flex containers for open orders section
  מאפשר גלילה בתוך "הזמנות פתוחות" בלי לרדת מתחת למלבן
------------------------------------------------------------------*/
#openOrdersPanel,
#closedOrdersPanel,
#takeawayPanel,
#driversSummaryPanel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}


/* מצב מודרני לתוספות סלטים */
.toppings-group-remove {
  border-color: rgba(248,113,113,0.55);
  background:
    radial-gradient(circle at top left, rgba(248,113,113,0.14), transparent 55%),
    rgba(15,23,42,0.95);
}

.toppings-group-remove h4 {
  color: #fecaca;
}

.toppings-group-remove .topping-label {
  color: #fecaca;
}

.toppings-group-free,
.toppings-group-paid {
  border-color: rgba(22,163,74,0.7);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 55%),
    rgba(15,23,42,0.95);
}

.toppings-group-free h4,
.toppings-group-paid h4 {
  color: #bbf7d0;
}

.toppings-group-free .topping-label,
.toppings-group-paid .topping-label {
  color: #bbf7d0;
}

/* צ'יפים לחיצים */
.topping-chip {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.topping-chip-remove {
  border: 1px solid transparent;
}

.topping-chip-remove.active {
  background: rgba(248,113,113,0.18);
  border-color: rgba(127,29,29,0.85);
  box-shadow: 0 0 0 1px rgba(127,29,29,0.5);
  transform: translateY(-1px);
}

.toppings-group-free .topping-chip.active,
.toppings-group-paid .topping-chip.active {
  background: rgba(34,197,94,0.18);
  border-color: rgba(22,163,74,0.9);
  box-shadow: 0 0 0 1px rgba(22,163,74,0.55);
  transform: translateY(-1px);
}


.open-order-row.open-order-cloned {
  background: #f97316; /* כתום */
  border-radius: 4px;
}


.takeaway-cash-pill {
  margin-top: 0;
}


/* === Simple toppings mode (no pizza image, no region labels) for items like زيفا / سمبوسك === */
.modal-toppings.simple-toppings-mode .current-zone-label,
.modal-toppings.simple-toppings-mode .current-zone-toppings {
  display: none;
}

.modal-toppings.simple-toppings-mode .toppings-layout {
  grid-template-columns: 1fr;
}

.modal-toppings.simple-toppings-mode .toppings-panel {
  padding: 16px 18px;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.85);
}


/* ===== Tablet 10" layout tuning (e.g. 10" 1280x800) ===== */
@media (max-width: 1280px) and (min-width: 901px) {
  body.cashier-layout .layout {
    gap: 10px;
    padding: 8px 10px 12px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .panel-header {
    padding: 6px 10px 4px;
  }

  .panel-header h2 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.95rem;
  }

  .order-items-list,
  .menu-items-list {
    font-size: 0.95rem;
  }

  .current-order,
  .orders-open,
  .panel-menu {
    border-radius: 14px;
  }
}

/* Modern order item cards */

.order-item:hover{
  border-color: rgba(34,197,94,0.45);
  box-shadow: 0 10px 26px rgba(0,0,0,0.42), 0 0 0 1px rgba(34,197,94,0.18) inset;
  transform: translateY(-1px);
}
.order-item:active{
  transform: translateY(0px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,197,94,0.20) inset;
}
.order-item-selected{
  border-color: rgba(34,197,94,0.75);
  box-shadow: 0 10px 28px rgba(0,0,0,0.48), 0 0 0 2px rgba(34,197,94,0.25) inset;
}
.order-item-header{
  gap: 10px;
}
.order-item-main{
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.2px;
}
.order-item-price{
  font-weight: 700;
  font-size: 1.10rem;
  opacity: 0.95;
}



.current-zone-toppings .zone-title{
  color:#94a3b8;
  font-weight:500;
}

/* Admin customers inline editing (no prompt chains) */
.admin-inline-btn{
  width: 100%;
  text-align: right;
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.55);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.admin-inline-btn:hover{
  background: rgba(255,255,255,0.06);
}
.admin-inline-input{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 39, 0.7);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  color: inherit;
  font: inherit;
}
.admin-inline-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}
.admin-customer-wrap{
  display: block;
}
.admin-customer-editor{
  padding: 8px 0 12px;
  border-bottom: 1px dashed rgba(17,24,39,0.7);
}
.admin-customer-editor-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.admin-customer-editor-grid label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  opacity: 0.95;
}
.admin-customer-editor-grid input{
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 39, 0.7);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  color: inherit;
  font: inherit;
}
.admin-customer-editor-actions{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 900px){
  .admin-customer-editor-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Hide quarter buttons in Medium (6 slices) mode */
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-rt,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-rb,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-lt,
.pizza-circle.mode-six .pizza-zone-btn.zone-quarter-lb{
  display:none !important;
}



/* Header map tab button */
.map-tab-header.active {
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Map mode: make the Leaflet map fill the panel */
.drivers-summary.map-mode .drivers-map {
  flex: 1;
  height: auto;
  min-height: 420px;
}



/* Map modal (large popup) */
.map-modal-content{
  max-width: 1100px;
  width: 96vw;
  height: 90vh;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
}
.map-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,0.25);
}
.map-modal-title{
  font-weight: 800;
  font-size: 1.1rem;
}
.map-modal-body{
  flex:1;
  padding-top:12px;
}
.map-modal-map{
  width:100%;
  height:100%;
  border-radius: 16px;
  border:1px solid rgba(148,163,184,0.25);
  overflow:hidden;
}



/* time under order number in open orders list */



/* Admin Categories */
.admin-categories-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:6px;
}
.admin-cat-row{
  display:grid;
  grid-template-columns: 140px 1fr 120px 90px 90px;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.admin-cat-key{
  font-weight:700;
  opacity:0.95;
  direction:ltr;
  text-align:left;
  font-size:14px;
}
.admin-cat-input{
  width:100%;
}
.admin-cat-sort{
  width:100%;
  text-align:center;
}
.admin-cat-active{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  opacity:0.95;
}
@media (max-width: 900px){
  .admin-cat-row{
    grid-template-columns: 1fr;
  }
}


/* Malawach rolled remove options (red, distinct) */
.toppings-group-remove {
  padding-top: 2px;
}

.topping-chip-remove {
  border-color: #ef4444;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 12px;
  font-weight: 700;
}

.topping-chip-remove.topping-chip-active {
  background: #ef4444;
  border-color: #ef4444;
  color: #0b1020;
}


/* --- Fix: dark-theme dropdown (select/option) readability --- */
select, .select, .input, .field select {
  background: rgba(10, 16, 34, 0.92) !important;
  color: #eaf0ff !important;
  border-color: rgba(255,255,255,0.14) !important;
}
select:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(43, 255, 200, 0.18) !important;
}
/* Options list (browser native popup) */
select option {
  background: #0b0f1e !important;
  color: #eaf0ff !important;
}
/* Placeholder-like disabled option */
select option:disabled {
  color: rgba(234,240,255,0.45) !important;
}
/* Ensure text isn't too light inside native menus */
@supports (-webkit-touch-callout: none) {
  select { -webkit-text-fill-color: #eaf0ff !important; }
}

