/* kitchen.css */

.main-container-kitchen {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.order-column-full {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.order-meta {
  display: flex;
  gap: 15px;
  align-items: center;
}
.order-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

/* --------- DONE state styling --------- */
/* fully opaque, with just the green SVG checkmark overlayed */
.order-items-grid .menu-item.done {
  opacity: 1 !important;
  position: relative;
  background: #00b89433;
}
/* hide the inner text and the black “✓” */
.order-items-grid .menu-item.done .item-name,
.order-items-grid .menu-item.done .status-indicator {
  display: none !important;
}
/* overlay the green checkmark SVG on top */
.order-items-grid .menu-item.done::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2300b894" xmlns="http://www.w3.org/2000/svg"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

/* Allow header + theme button on one line */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Style the theme-toggle button */
.btn-theme {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

/* Override the global button styling for the kitchen theme-toggle */
.menu-header .btn-theme {
  /* stop it growing to fill the flex row */
  flex: none !important;
  min-width: auto !important;

  /* push to the right */
  margin-left: auto;

  /* keep the inherited line-height/height */
}

/* Kitchen: completed orders section */
.previous-header {
  margin: 20px 0 10px;
  font-size: 1.1em;
  color: var(--text-color);
  flex-shrink: 0;
}
/* completed orders section */
#previous-orders .recipe-card {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(50%);
  margin-bottom: 10px;
}
#previous-orders .recipe-card .order-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* Completed orders: show names, hide overlay */
#previous-orders .order-items-grid .menu-item.done .item-name {
  display: block !important;
}
#previous-orders .order-items-grid .menu-item.done {
  /* optional: keep the greyed-out look, or change as desired */
  background: var(--card-bg) !important;
  filter: none !important;
}
#previous-orders .order-items-grid .menu-item.done::after {
  display: none !important;
}

/* Also ensure no hidden children */
#previous-orders .order-items-grid .menu-item.done .status-indicator {
  display: none !important;
}

/* --- Hide blinking text cursor (caret) on everything except inputs --- */
*:not(input):not(textarea) {
  caret-color: transparent !important;
}


button,
.menu-item,
.order-item,
.order-item * {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
      -ms-user-select: none !important;
          user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.stats-tab,
.color-preview,
.modal-content *:not(input):not(textarea) {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.stats-tab,
.denomination-btn,
.btn-save,
.btn-edit,
.btn-reset,
.btn-stats,
.btn-add-detail,
.btn-delete,
.btn-delete-small {
  -webkit-tap-highlight-color: transparent; /* no blue flash on tap */
  outline: none;                            /* remove focus outline */
  user-select: none;                        /* prevent selecting the label text */
}

/* But keep outlines on form fields: */
input[type="text"],
input[type="number"],
input[type="color"],
input,
textarea {
  user-select: text !important;
  caret-color: auto !important;
}

/* Disable text selection & tap highlight on POS static labels */

/* Menu header (“Položky menu”) */
.menu-header,
.menu-header * {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
      -ms-user-select: none !important;
          user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Order summary (“Zhrnutie objednávky”, totals, given, change, order items) */
#right-content,
#right-content * {
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
      -ms-user-select: none !important;
          user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

#active-orders {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 20px;
}

#previous-orders {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Recipe cards in scroll containers */
.recipe-card {
  margin-bottom: 15px;
}
.recipe-card:last-child {
  margin-bottom: 5px;
}