/* Общие стили */
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 20px;
  color: #333;
}
/* Шапка сайта */
.site-header {
  background-color: #000000; /* тёмный фон */
  border-bottom: 1px solid #000000;
  padding: 25px 0;          /* регулирует высоту шапки */
  margin: 0;                /* убираем нижний отступ, теперь управляем через padding */
  width: 100%;              /* на всю ширину */
  top: 0;
  left: 0;
  z-index: 1000;            /* чтобы шапка была поверх всего */
}

/* Контейнер внутри шапки */
.site-header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотип */
.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;            /* белый текст */
  text-decoration: none;

  /* Шрифт с сайта (пример для Google Fonts) */
  font-family: 'Roboto', sans-serif; /* замените на нужный шрифт */
}

.site-logo:hover {
  color: #fdffff; 
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.site-nav li {
  margin-left: 20px;
}

.site-nav a {
  text-decoration: none;
  color: #ffffff; /* белый текст в меню */
  font-size: 16px;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #ffffff;
}

/* Адаптив под мобильные устройства */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav ul {
    margin-top: 10px;
    flex-direction: column;
  }
  .site-nav li {
    margin-left: 0;
    margin-bottom: 8px;
  }
}

/* Поисковая строка */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 20px !important;
}

.search-bar input {
  padding: 10px;
  font-size: 16px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.search-bar button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #357ab8;
}

/* Контейнер с блоками */
#orderContainer {
  display: none; /* по умолчанию скрыт */
  gap: 20px;
  margin-top: 20px;
}

/* Показываем после загрузки */
#orderContainer.visible {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

/* Левая часть */
.main-content {
  grid-column: 1 / 2;
}

/* Правая часть — вертикальная колонка */
.side-content {
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* Общий контейнер статусов */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h1 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* Статус-группа — элемент таймлайна */
.status-group {
  position: relative;
  padding-left: 40px;   /* место под кружок и линию */
  margin-bottom: 30px;
}

/* Вертикальная линия */
.status-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: #ddd;
}

/* Кружок-иконка */
.status-group::after {
  content: "⏳"; /* пока просто галочка, можно поменять */
  position: absolute;
  left: 5px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: #4a90e2;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
}

/* Шапка группы */
.group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  padding: 0;
}

/* Название */
.group-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Дата справа */
.group-last-date {
  font-size: 13px;
  color: #666;
  margin-left: auto;
  margin-right: 10px;
}

/* Кнопка */
.btn-details {
  padding: 5px 10px;
  font-size: 13px;
  border: none;
  background: #4a90e2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn-details:hover {
  background: #357ab8;
}


/* Скрытые статусы внутри группы */
.statuses-container {
  margin-top: 10px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px dashed #ddd;
}

.status-item {
  padding: 5px 0;
}

.status-desc {
  font-weight: bold;
  display: block;
}

.status-datetime,
.status-position {
  font-size: 12px;
  color: #666;
  display: block;
}