  .order-form {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
  }
.helotext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.exit-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.exit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.exit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
   /*
  .accordion-month {
    background: #f5f5f5;
    padding: 10px;
    cursor: pointer;
    margin-top: 5px;
  }
  
  .order-item {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
  }
  
  .status-pending { background: #d4edda; } 
  .status-completed { background: #fff3cd; }  */

  /* Стили для аккордеона заказов */
.accordion-month {
  background-color: #b0cfd9;
  padding: 12px 15px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  border-left: 8px solid #0d6efd;
  transition: all 0.3s;
  margin-inline: 60px;
}

.accordion-month:hover {
  background-color: #e9ecef;
}

.month-orders {
  display: none;
  padding: 10px;
  margin-bottom: 15px;
  margin-inline: 4vw;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

.month-orders.open {
  display: block;
}
.order-photo-thumb {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
}

.order-photo-thumb img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: transform 0.2s;
}

.order-photo-thumb img:hover {
    transform: scale(1.1);
    border-color: #4CAF50;
}

.order-item {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-item.completed {
  border-left: 4px solid #28a745;
}

.order-item.pending {
  border-left: 4px solid #fd7e14;
}

.order-item h4 {
  margin-top: 0;
  color: #0a0b0ddd;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.order-meta div {
  flex: 1;
  min-width: 200px;
}

.order-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-completed {
  background-color: #0fef43;
  color: #020b04;
  border-radius: 12px;       /* Закругление углов */
  padding: 3px 8px;         /* Отступы вокруг текста */
  display: inline-block;     /* Чтобы фон был только по ширине текста */
  line-height: 1;           /* Контроль высоты строки */
}

.status-pending {
  background-color: #f5eb28;
  color: #020b04;
  border-radius: 12px;       /* Закругление углов */
  padding: 3px 8px;         /* Отступы вокруг текста */
  display: inline-block;     /* Чтобы фон был только по ширине текста */
  line-height: 1;           /* Контроль высоты строки */
}



.status-board {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-column {
  flex: 1;
  padding: 15px;
  border-radius: 8px;
}

.status-column.completed {
  border-top: 4px solid #28a745;
  background-color: #f8f9fa;
}

.status-column.pending {
  border-top: 4px solid #fd7e14;
  background-color: #f8f9fa;
}

.orders-count {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}

.orders-list {
 display: none;
}

.order-status-item {
  padding: 8px;
  margin: 5px 0;
  background: white;
  border-left: 3px solid;
  border-radius: 4px;
}

.order-status-item.completed {
  border-left-color: #28a745;
}

.order-status-item.pending {
  border-left-color: #fd7e14;
}
@media (max-width: 768px) {
    .order-photo-thumb {
        float: none;
        display: block;
        margin: 10px auto;
        text-align: center;
    }
    
    .order-photo-thumb img {
        width: 100%;
        max-width: 200px;
        height: auto;
        max-height: 150px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ============================================
   СТИЛИ ДЛЯ ПОИСКА И РЕЗУЛЬТАТОВ
   ============================================ */

/* Контейнер поиска в навигации */
.search-container {
    position: relative;
    margin: 0 auto;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.search-input::placeholder {
    color: #888;
}

/* Результаты поиска */
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:hover {
    background: linear-gradient(to right, #f8fff8, #f0f9ff);
    border-left: 4px solid #4CAF50;
    padding-left: 11px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item strong {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.search-result-item small {
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
}

.search-result-item small:last-of-type {
    color: #4CAF50;
    font-weight: 500;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* Прокрутка результатов */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================
   СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 40px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: 300;
    color: #95a5a6;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

/* Заголовок модалки */
.order-details h2 {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Контент модалки */
.order-details {
    padding: 25px;
}

.order-info-grid {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.order-info-main {
    flex: 1;
    min-width: 0;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
    align-items: flex-start;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row strong {
    min-width: 160px;
    color: #34495e;
    font-weight: 600;
    font-size: 15px;
}

.info-row > :not(strong) {
    flex: 1;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.5;
}

.info-row a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.info-row a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Статус-бейдж */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.completed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
}

/* Комментарии */
.comments {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 8px;
    border-left: 4px solid #4CAF50;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Фото оборудования */
.order-photo-desktop {
    width: 320px;
    min-width: 320px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px dashed #e0e0e0;
}

.order-photo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 25px;
}

.order-photo-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.order-photo-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.photo-caption {
    margin-top: 12px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Кнопки действий */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.modal-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    letter-spacing: 0.5px;
}

.modal-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-actions button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Дополнительные стили для иконки поиска */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.3s;
}

.search-input:focus + .search-icon {
    stroke: #4CAF50;
}

/* Индикатор загрузки поиска */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.btn-complete {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.btn-complete:not(.disabled):hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-complete.disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-invoice {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-invoice:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    margin-left: auto;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Адаптивность модалки */
@media (max-width: 992px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .order-info-grid {
        gap: 20px;
    }
    
    .order-photo-desktop {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10px auto;
        max-height: 90vh;
        width: 98%;
    }
    
    .order-details h2 {
        padding: 15px 20px;
        font-size: 20px;
    }
    
    .order-details {
        padding: 20px;
    }
    
    .order-info-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-photo-desktop {
        display: none;
    }
    
    .order-photo-mobile {
        display: block;
    }
    
    .order-photo-img {
        max-height: 250px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row strong {
        min-width: auto;
        font-size: 14px;
    }
    
    .info-row > :not(strong) {
        font-size: 14px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .btn-danger {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .search-container {
        max-width: 300px;
        margin: 10px 15px;
    }
    
    .search-input {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        margin: 5px auto;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .order-details h2 {
        padding: 12px 15px;
        font-size: 18px;
    }
    
    .order-details {
        padding: 15px;
    }
    
    .order-photo-img {
        max-height: 200px;
    }
}

/* Иконки для кнопок (можно использовать Font Awesome или добавить SVG) */
.modal-actions button::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
}

.btn-complete::before {
    content: '✓';
}

.btn-invoice::before {
    content: '📄';
}

.btn-danger::before {
    content: '🗑';
}

/* Эффект при закрытии */
.modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-content.closing {
    animation: modalSlideOut 0.3s ease forwards;
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
}