/* Сброс */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  margin: 0; 
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a14; 
  color: #eee; 
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  max-width: 1200px; 
  margin: 0 auto;
  position: relative;
  padding: 0 15px;
}

/* Отключаем мешающий фон .overlay */
.overlay {
  display: none !important;
}

/* Авторизационная оверлей и модалка */
#login-modal-overlay, #modal-overlay {
  position: fixed; 
  inset: 0;
  background: rgba(0,0,0,0.7); 
  z-index: 10000;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

#login-modal, #fio-modal {
  position: fixed; 
  inset: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  z-index: 10001; 
  pointer-events: none;
}


.modal-overlay.hidden { 
  display: none; 
}

.modal.hidden { 
  display: none !important; 
}

.modal-content.show {
  display: block; 
  animation: modalFadeIn 0.4s forwards;
}

.loader {
  display: flex; 
  justify-content: center; 
  margin-top: 10px;
}

.loader.hidden { 
  display: none; 
}

#login-loader .spinner {
  width: 24px; 
  height: 24px; 
  border-width: 3px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #09f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Заголовок */
.header {
  background: #14141e;
  padding: 12px 15px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
}

.header-container {
  display: inline-block;
  margin: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 20px;
}

.header-title h1 {
  margin: 8px 0;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Основной контент */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 20px;
}

.scanner-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

/* Сканер QR-кодов */
.scanner-section {
  width: 100%;
  max-width: 280px;
  height: 280px;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.8);
  overflow: hidden;
  background: #000;
}

#scanner {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}

#scanner > video,
#scanner > canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.scanner-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 2;
}

.camera-loader {
  position: absolute; 
  inset: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(10,10,20,0.8); 
  z-index: 2;
}

.camera-loader.hidden {
  display: none;
}

.camera-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #09f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Карточка с информацией о входе/выходе */
.result-section {
  width: 100%;
  max-width: 360px;
  background: rgba(20,20,30,0.95);
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 25px rgba(0,0,0,0.8);
}

.result-section h2 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.hidden { 
  display: none; 
}

#status { 
  font-size: 1.1rem; 
  margin-bottom: 8px; 
  font-weight: 500; 
}

#time-record { 
  font-size: 0.95rem; 
  color: #ccc; 
  margin-bottom: 0; 
}

/* История */
.history-section {
  width: 100%;
  max-width: 800px;
  background: rgba(20,20,30,0.95);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 25px rgba(0,0,0,0.8);
}

.history-title {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}

.history-title h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.table-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 10, 20, 0.5);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}

#history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

#history-table th,
#history-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

#history-table th {
  background: rgba(0, 119, 255, 0.3);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}

#history-table th:last-child {
  border-right: none;
}

#history-table td {
  border-right: 1px solid rgba(255,255,255,0.05);
  background: rgba(20, 20, 30, 0.7);
}

#history-table td:last-child {
  border-right: none;
}

#history-table tr:last-child td {
  border-bottom: none;
}

#history-table tr:hover td {
  background: rgba(255,255,255,0.08);
}

/* Модалки общие */
.modal-content {
  display: none; 
  background: rgba(30,30,50,0.98); 
  padding: 25px;
  border-radius: 24px; 
  box-shadow: 0 8px 30px rgba(0,0,0,0.9);
  width: 90%; 
  max-width: 360px; 
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: auto;
}

.modal-content input {
  width: 100%; 
  padding: 14px 16px; 
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  background: rgba(255,255,255,0.08); 
  color: #fff; 
  font-size: 1rem;
  transition: border 0.3s ease;
}

.modal-content button {
  width: 100%; 
  padding: 14px; 
  border: none; 
  border-radius: 16px;
  background: #09f; 
  color: #fff; 
  font-size: 1rem; 
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Тосты */
#toast-container {
  position: fixed; 
  top: 20px; 
  right: 20px; 
  z-index: 1000;
  max-width: calc(100% - 40px);
}

.toast {
  background: rgba(76, 175, 80, 0.95);
  color: #fff;
  padding: 14px 20px;
  margin-top: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.5s forwards, fadeOut 0.5s 2.5s forwards;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Блок выбора */
.block-selector {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.block-btn {
  width: 65px;
  height: 36px;
  background: rgba(0, 119, 255, 0.7);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-grow: 1;
}

.block-btn.active {
  background: rgba(78, 78, 78, 0.8);
  font-weight: 700;
}

/* Пауза сканера */
.scanner-pause {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scanner-pause.visible {
  opacity: 1;
  visibility: visible;
}

.scanner-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #09f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Статистика */
.block-stats {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  color: #fff;
}

.block-stats h3 {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  text-align: center;
}

.block-stats ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

.block-stats li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
}

.block-stats li:last-child {
  border-bottom: none;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalFadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes fadeOut {
  to { 
    opacity: 0; 
    transform: translateX(100%); 
  }
}

@keyframes highlightFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(255,255,255,0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

.highlight {
  animation: highlightFlash 1s ease;
}

/* Адаптив */
@media (max-width: 768px) {
  .header-title h1 {
    font-size: 1.2rem;
  }
  
  .scanner-section {
    max-width: 240px;
    height: 240px;
  }
  
  .scanner-frame {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  
  .table-container {
    max-height: 350px;
  }
  
  #history-table th,
  #history-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .history-section,
  .result-section,
  .block-selector,
  .block-stats {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }
  
  .header-title h1 {
    font-size: 1.1rem;
  }
  
  .scanner-section {
    max-width: 200px;
    height: 200px;
  }
  
  .scanner-frame {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .table-container {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 300px;
  }
  
  #history-table th,
  #history-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .history-section {
    padding: 15px;
  }
  
  .modal-content {
    padding: 20px;
  }
}

/* Скрываем дефолтные элементы сканера */
#scanner > .html5-qrcode-status,
#scanner > .html5-qrcode-status * {
  display: none !important;
  visibility: hidden !important;
}

#scanner > div:not(video):not(canvas) {
  display: none !important;
}
/* Стили для секции результатов */
.result-section {
  width: 100%;
  max-width: 800px;
  background: rgba(20, 20, 30, 0.95);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}

.result-section h2 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контейнер таблицы - только вертикальный скролл */
.table-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 20, 0.5);
  -webkit-overflow-scrolling: touch;
}

/* Основные стили таблицы */
.scans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #eee;
  table-layout: fixed; /* Фиксированная ширина колонок */
}

.scans-table th,
.scans-table td {
  padding: 12px 15px;
  border: 1px solid rgba(255, 250, 250, 0.493);
  text-align: center;
  overflow: hidden;
}

/* Специфичные стили для колонок */
.scans-table th:nth-child(1),
.scans-table td:nth-child(1) {
  width: 40%; /* Ширина первой колонки */
  word-break: break-word; /* Перенос слов только в первой колонке */
  white-space: normal;
}

.scans-table th:nth-child(2),
.scans-table td:nth-child(2) {
  width: 20%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scans-table th:nth-child(3),
.scans-table td:nth-child(3),
.scans-table th:nth-child(4),
.scans-table td:nth-child(4) {
  width: 20%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scans-table th {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgb(0, 85, 255), rgba(0, 119, 255, 0.4));
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
}

.scans-table td {
  background: rgba(65, 65, 87, 0.7);
}

/* Стили для статусов */
.scans-table .entry-time {
  color: #4caf50;
  font-weight: 500;
}

.scans-table .exit-time {
  color: #f44336;
  font-weight: 500;
}

.scans-table .no-exit {
  color: #ff9800;
  font-style: italic;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .result-section {
    padding: 15px;
  }
  
  .table-container {
    max-height: 350px;
  }
  
  .scans-table th,
  .scans-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  /* Уменьшаем ширину колонок для планшетов */
  .scans-table th:nth-child(1),
  .scans-table td:nth-child(1) {
    width: 35%;
  }
  
  .scans-table th:nth-child(2),
  .scans-table td:nth-child(2),
  .scans-table th:nth-child(3),
  .scans-table td:nth-child(3),
  .scans-table th:nth-child(4),
  .scans-table td:nth-child(4) {
    width: 21.66%;
  }
}

@media (max-width: 480px) {
  .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 20px;
}
  .result-section {
    padding: 12px;
    border-radius: 16px;
  }
  
  .result-section h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .table-container {
    max-height: 300px;
    border-radius: 10px;
  }
  
  .scans-table th,
  .scans-table td {
    padding: 8px 10px;
    font-size: 0.7rem;
  }
  
  .scans-table th {
    font-size: 0.5rem;
  }
  
  /* Еще более компактные колонки для мобильных */
  .scans-table th:nth-child(1),
  .scans-table td:nth-child(1) {
    width: 50%;
  }
  
  .scans-table th:nth-child(2),
  .scans-table td:nth-child(2) {
    width: 20%;
  }
  
  .scans-table th:nth-child(3),
  .scans-table td:nth-child(3),
  .scans-table th:nth-child(4),
  .scans-table td:nth-child(4) {
    width: 30%;
  }
}
/* Добавить в конец файла */
.montazhniki-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.montazhniki-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.montazhniki-card {
  background: rgba(30, 30, 50, 0.9);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 1.1rem;
}

.logout-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 25px;
  background: rgba(255, 50, 50, 0.7);
  border-radius: 12px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.logout-btn:hover {
  background: rgba(255, 50, 50, 0.9);
}
/* Стили для модального окна рейтинга */
#rating-modal .modal-content {
  text-align: center;
  padding: 25px;
}

.stars {
  font-size: 2.5rem;
  margin: 20px 0;
  cursor: pointer;
}

.star {
  display: inline-block;
  transition: all 0.2s ease;
  color: #ccc;
}

.star:hover,
.star.active {
  color: gold;
  transform: scale(1.2);
}

#submit-rating {
  background: #4CAF50;
  margin-top: 20px;
  padding: 12px 24px;
}
 /* Основные стили для контейнера монтажников */
    .montazhniki-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }
    
    .montazhniki-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }
    
    .montazhniki-card {
      background: rgba(30, 30, 50, 0.9);
      border-radius: 15px;
      padding: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.1);
      cursor: pointer;
      transition: transform 0.2s ease;
      text-align: center;
      font-size: 1.1rem;
    }
    
    .montazhniki-card:hover {
      transform: scale(1.03);
      background: rgba(40, 40, 60, 0.9);
    }
    
    .logout-btn {
      display: block;
      margin: 30px auto;
      padding: 12px 25px;
      background: rgba(255, 50, 50, 0.7);
      border-radius: 12px;
      color: white;
      font-weight: bold;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
    }
    
    .logout-btn:hover {
      background: rgba(255, 50, 50, 0.9);
    }

    /* Стили для модального окна рейтинга */
    #rating-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      z-index: 1000;
      display: none;
    }

    #rating-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(30,30,50,0.95);
      padding: 25px;
      border-radius: 20px;
      z-index: 1001;
      display: none;
      width: 90%;
      max-width: 400px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.5);
      border: 1px solid rgba(255,255,255,0.15);
    }

    #rating-modal h2 {
      margin-top: 0;
      color: #fff;
      font-size: 1.5rem;
      text-align: center;
    }

    #rating-employee-name {
      font-size: 1.2rem;
      margin: 15px 0;
      color: #4CAF50;
      font-weight: bold;
      word-break: break-word;
      text-align: center;
    }

    .stars-container {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin: 20px 0;
    }

    .star {
      font-size: 2.5rem;
      cursor: pointer;
      color: #ccc;
      transition: all 0.2s ease;
    }

    .star:hover,
    .star.active {
      color: gold;
      transform: scale(1.2);
    }

    #submit-rating {
      display: block;
      width: 100%;
      padding: 12px;
      background: #4CAF50;
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      cursor: pointer;
      margin-top: 20px;
      transition: background 0.3s ease;
    }

    #submit-rating:hover {
      background: #45a049;
    }
    #rating-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
}

#rating-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40,40,60,0.95);
  border-radius: 15px;
  padding: 25px;
  z-index: 1001;
  display: none;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

#rating-modal.show {
  display: block !important;
}

.rating-content {
  text-align: center;
  color: white;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.star {
  font-size: 2.5rem;
  cursor: pointer;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
}

.star.active {
  color: gold;
  transform: scale(1.2);
}
/* Модальное окно рейтинга */
#rating-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  backdrop-filter: blur(5px);
}

#rating-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40,40,60,0.95);
  border-radius: 15px;
  padding: 25px;
  z-index: 10001;
  display: none;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: auto !important;
}

.rating-content {
  text-align: center;
  color: white;
}

.rating-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

#rating-employee-name {
  font-size: 1.2rem;
  margin: 15px 0;
  color: #4CAF50;
  font-weight: bold;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.star {
  font-size: 2.5rem;
  cursor: pointer;
  color: #ccc;
  transition: all 0.2s ease;
}

.star.active,
.star:hover {
  color: gold;
  transform: scale(1.2);
}

#submit-rating {
  display: block;
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}

#submit-rating:hover {
  background: #45a049;
}
/* Стили для модального окна рейтинга */
.rating-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  backdrop-filter: blur(5px);
}

.rating-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40,40,60,0.95);
  border-radius: 15px;
  padding: 25px;
  z-index: 10001;
  display: none;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

.rating-content {
  text-align: center;
  color: white;
}

.rating-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

#rating-employee-name {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #4CAF50;
  font-weight: bold;
}

.stars-rating {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.rating-star {
  font-size: 2.5rem;
  cursor: pointer;
  color: #ccc;
  transition: all 0.2s ease;
}

.rating-star.active,
.rating-star:hover {
  color: gold;
  transform: scale(1.2);
}

.rating-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.rating-submit:hover {
  background: #45a049;
}
/* Стили для поиска */
.search-container {
  margin-bottom: 20px;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

#search-input:focus {
  border-color: #09f;
  background: rgba(255,255,255,0.15);
}

/* Обновленные стили карточки */
.montazhniki-card {
  position: relative;
  background: rgba(30, 30, 50, 0.9);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-rating {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.card-star {
  font-size: 1.2rem;
  color: #ccc;
}

.card-star.filled {
  color: gold;
}
#scans-table-body tr.completed {
  background-color: rgba(0, 255, 0, 0.1); /* Легкий зеленый фон */
}

#scans-table-body tr.completed td {
  color: #2e7d32; /* Темно-зеленый текст */
}
