body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  background: #000; /* черный фон на весь экран */
  color: #fff;
}

/* Splash screen */
#splash {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 9999;
  animation: fadeOut 2s ease 3s forwards;
}

#splash h2 {
  opacity: 0;
  animation: fadeIn 2s ease 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Layout */
.app {
  display: flex;
  height: 100vh;
}

.sidebar 
{ width: 330px; /* было 220px */
background: #111; color: white; 
padding: 12px; 

overflow-y: auto; }

.menu-item { 
    padding: 10px; 
    cursor: pointer; border-bottom: 1px solid #333; 
    border-radius: 10px; /* скругление углов */ 
    margin-bottom: 8px;
    white-space: nowrap; /* запрет переносов */ 
    overflow: hidden; 
    text-overflow: ellipsis; /* если слишком длинно, ставим ... */ 
    background: #fff; /* белый фон по умолчанию */
    color: #000;
}


.menu-item:hover {
  background: #f6eec4;
}

.menu-item.active {
border-left: 4px solid #ffe08a; /* подсветка выбранного */
}

/* Content area (не используется напрямую, т.к. заказы в модалке) */
.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 10px 0;
}

/* Orders */
.order {
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #000;
}
.order.done {
  background: #d4edda; /* зелёный фон */
  border: 1px solid #28a745;
}

/* Кнопки */
.order button {
  background: black;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px 16px;
  cursor: pointer;
}
.order button:hover {
  opacity: 0.8;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.menu-item.done {
background: #d4edda; /* светло-зеленый */ 
color: #155724;
}

.archive-folder {
  padding: 10px;
  margin: 10px 0 6px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #222;
  color: #fff;
  cursor: pointer;
}

.archive-orders {
  margin-top: 10px;   /* ← отступ вниз между датой и списком */
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;

  /* фиксируем ширину */
  width: 600px;          /* одинаковая ширина для всех окон */
  max-width: 90vw;       /* чтобы на телефоне не выходило за экран */
  box-sizing: border-box;
}

.product-list {
  margin: 10px 0 20px;
}

.product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
}

.product-check {
  width: 20px;
  height: 20px;
  accent-color: green;
}

button {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  margin: 10px 6px 0 0;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #222;
}
