/* kitchen.css – עיצוב לטאב מטבח בלבד */

/* כרטיס כללי של המטבח */
.kitchen-card {
  padding: 0;
}

/* שורת תתי-טאבים בראש הטאב */
.kitchen-header {
  padding: 12px 18px 0 18px;
  display: flex;
  justify-content: flex-start;
}

.kitchen-subtabs {
  display: inline-flex;
  gap: 8px;
}

.kitchen-subtab-btn {
  border-radius: 999px;
  border: 1px solid #d4d9e2;
  background: #f6f7fb;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kitchen-subtab-btn:hover {
  background: #e7edff;
}

.kitchen-subtab-btn.active {
  background: #4b8bf4;
  border-color: #4b8bf4;
  color: #fff;
}

/* גוף התוכן של כל תת-טאב */
.kitchen-body {
  padding: 16px 18px 18px 18px;
}

/* כותרת + כפתור הוספה בכל סקשן */
.kitchen-section-header {
  margin-bottom: 10px;
}

.kitchen-section-header h3 {
  margin: 0;
  font-size: 16px;
}

/* טבלאות */
.kitchen-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.kitchen-table thead th {
  text-align: right;
  padding: 8px 10px;
  background: #f1f3f7;
  border-bottom: 1px solid #e3e7f0;
  font-weight: 600;
}

.kitchen-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f7;
}

.kitchen-empty-cell {
  text-align: center;
  color: #777;
}

.kitchen-error-cell {
  text-align: center;
  color: #c53030;
}

/* מודל */

.kitchen-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.kitchen-modal-backdrop.open {
  display: flex;
}

.kitchen-modal {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px 18px 18px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.kitchen-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.kitchen-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.kitchen-modal-body {
  font-size: 13px;
}

.kitchen-modal-footer {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

/* שדות טופס במודל */

.kitchen-form label {
  display: block;
  margin-top: 8px;
  margin-bottom: 3px;
  font-size: 12px;
  color: #444;
}

.kitchen-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d4d9e2;
  font-size: 13px;
}

.kitchen-input:focus {
  outline: none;
  border-color: #4b8bf4;
  box-shadow: 0 0 0 1px rgba(75, 139, 244, 0.25);
}

.kitchen-input textarea {
  resize: vertical;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.week-date-input {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #d4d9e2;
}

.week-grid-table .week-meal-col {
  background: #f7f9fc;
  font-weight: 600;
  width: 120px;
}

.week-grid-table th,
.week-grid-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f7;
  vertical-align: top;
}

.week-cell-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.week-cell-notes {
  white-space: pre-line; /* כל שורה בתפריט תרד שורה */
  font-size: 12px;
  color: #444;
  margin-bottom: 4px;
}

.week-cell-add {
  font-size: 12px;
  padding: 0;
}

.k-dishes-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #d4d9e2;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.k-dish-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
}

.k-dish-option input[type="checkbox"] {
  margin: 0;
}

.week-cell.has-menu {
  cursor: pointer;
}

.week-cell-add {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #9aa0b5;
  cursor: pointer;
}

.week-cell-add:hover {
  text-decoration: underline;
  color: #7c82a0;
}
.k-dishes-group {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e0e4f0;
}

.k-dishes-group:last-child {
  border-bottom: none;
}

.k-dishes-group-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
  color: #4b5563;
}
