
@import 'components/button_confirm.css';
@import 'components/text_button.css';
@import 'individ.css';


.content {
    margin: 0px auto 200px;
    width: 97%;
}
.d-none {
    display: none !important;
  }
  

/* Базовий стиль для всіх статусів */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    opacity: 0.9;
}

.status-1 { background-color: #e9ecef; color: #495057; } /* Редагування */
.status-2 { background-color: #d1ecf1; color: #0c5460; } /* Підтверджено */
.status-3 { background-color: #d4edda; color: #155724; } /* Оплачено */
.status-4 { background-color: #e7e3fc; color: #4a3a9f; } /* Несплачено */
.status-5 { background-color: #e2e3e5; color: #383d41; } /* Скасовано */
.status-6 { background-color: #ffe5d0; color: #bf5300; } /* Предзамовлення */
.status-7 { background-color: #fff3cd; color: #856404; } /* Питання */
.status-8 { background-color: #d7f5e3; color: #2a7d43; } /* Відправлено */
.status-9 { background-color: #d1f2eb; color: #0e6655; } /* Отримано */
.status-10 { background-color: #e3f9d7; color: #3d5a2a; } /* Нове */
.status-11 { background-color: #fffde7; color: #6b6100; } /* Очікує відправлення */
.status-12 { background-color: #f8e3fa; color: #7d1a82; } /* Виконано */
.status-13 { background-color: #e7d9ff; color: #4506a8; } /* Тест */
.status-14 { background-color: #f8d7da; color: #721c24; } /* Повернення */
.status-15 { background-color: #d6d8db; color: #1b1e21; } /* Дубль */

body {
    margin: 10px 0 0;
            font-family: Arial, sans-serif;
            background: radial-gradient(ellipse at top, #f8f8f8, transparent), radial-gradient(ellipse at bottom, #55e8ff, transparent);
    background-size: auto, auto;
            /* margin: 0;
            width: 100%;
            height: 100%; */
            /* padding: 0; */
            /* background-image: radial-gradient(circle, black 1px, transparent 1px);
            background-size: 18px 19px; /* розмір кожної точки 
            background-position: center;
            background-color: #f0f0f0; колір фону */
        }
h1 {
    text-align: center;
    padding: 20px 0;
}

form textarea {
    width: 97%;
    /* padding: 10px; */
}

.form-control {
    text-align: center;
}

.button_cor {

    margin: 2px;
    
}
.product-thumb {
  width: 25px;
  height: 25;
  object-fit: cover;
  border-radius: 8px;
}
.button_color {
    color: #626870;
}
.center {
    margin: 0 auto;
    width: 99%;
    text-align: center;
}
h2 {
    padding: 10px 0;    
}
ul {
    list-style: none;
    padding-left: 0;
}
ul li {
    padding: 0px;
    margin: 10px 0;
    border-radius: 88px;

}
ul li ul {
    padding-left: 20px;
}
a {
    color: #0dcaf0;
    text-decoration: none;
    /* margin-left: 30px; */
    text-align: center;
}
a:hover {
    color: #51d9f5; 
    text-decoration: none;
    /* margin-left: 30px; */
    text-align: center;
}
tr {
    color: #14149e;
   font-size: 15px;
   
   
}

.row {
    margin-bottom: 1rem !important;
}


    
.limited-text {
    margin: 0; /* Відміняє зовнішні відступи у <p> */
     /* Забороняє перенос тексту на новий рядок */
    overflow: hidden; /* Обрізання зайвого контенту, який не поміщається */
    text-overflow: ellipsis; /* Додає мітку "..." для вказівки, що текст обрізаний */
    }
      

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.text-radio {
    margin-right: 5px;
}
/* .modal-content {
    width: 70%;
    position: absolute;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    overflow-y: auto;
} */

.container-info {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
} 

.grey-background {
    background-color: #f8f9fa;
}

.button-pult {
    margin: 5px;
    background: #ffffffaa;
    border-radius: 14px;
    box-shadow: 4px 4px 12px #00000010;
    color: #c9c9ca;
}

.button-pult:hover {
    margin: 5px;
    background: rgba(232, 232, 232, 0.667);
    border-radius: 14px;
    box-shadow: 6px 6px 16px #00000010;
    color: #d0bcf0;
    
}
.button-col-sm {
    margin: 5px;
    padding: 24px 0;
}

.button-container {
    margin: 10px;
  }

#notificationContainer {
    color: #36966a;
    position: absolute;
    width: 20%;

    /* transform: translate(-50%, -50%); */
    background-color: #0dcaf0;
    border: 2px #357241;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 9px 9px 10px rgba(0, 0, 0, 0.1);
    top: 50px;
    right: 500px;
    opacity: 0; /* Початкова прозорість 0 */
    transition: opacity 2s ease-in-out; /* Плавна анімація прозорості */
  }
  
#notificationContainer.show {
    opacity: 2; /* Зростання прозорості при показі */
  }


.table td, .table th {
  word-wrap: break-word;
  /* white-space: normal; */
  /* max-width: 200px; або як тобі потрібно */
}

.glass-panel {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
  .glass-panel {
    background: rgba(30, 30, 30, 0.4);
  }
}

.glass-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border-radius: 40px;
  backdrop-filter: blur(5px);
  background: rgb(255 255 255 / 0%); /* світлий варіант */
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.691);
  z-index: 1050; /* щоб не перекривався іншим */
}

/* Для мобільного меню */
@media (max-width: 991px) {
  #navbarSupportedContent.collapsing,
  #navbarSupportedContent.show {
    bottom: 100%;
    top: auto;
    position: absolute;
  }
}





@media (data-bs-theme: dark) {
  .glass-nav {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}



 
@media screen and (max-width: 928px) {
    .content {
        width: 97%; /* Занимает всю доступную ширину экрана */
        gap: 10px;
    }

    .button-col-sm {
        margin: auto;
        width: 40%; 
        padding: 0px 0;
    }
    /* .form-control {
        margin-top: 5px;
    } */
    th, td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    
    }
    form {
        text-align: center;
        /* margin-bottom: 20px; */
    }

}

/* щоб не видно контент усередині */
.nav-collapsed * {
  opacity: 0;
  pointer-events: none;
} 

@media screen and (max-width: 845px) {

.navbar-expand-sm .navbar-toggler {
    display: block;
}
/* Ефект “краплі” */
.nav-collapsed {
  width: 60px;          /* зменшуємо ширину */
  height: 60px;         /* робимо круглу кнопку */
  border-radius: 50%;
  right: 20px;          /* прилипає до краю */
  left: auto;
  transform: none;      /* прибираємо translate */
  background: rgba(103, 102, 102, 0.6);
  color: white;
  justify-content: center;
  align-items: center;
  
}





/* 🌿 Початковий стан меню — сховане */
.navbar-collapse {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease-out;
  border-radius: 20px;
  
  
}

/* 🌈 Стан, коли меню відкрите */
.navbar-collapse.show {
  background: rgba(252, 252, 252);         /* прозорий білий */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding: 20px;
  margin-top: 10px;
}

/* Стилі для посилань у меню */
.navbar-nav .nav-link {
  color: rgb(83, 83, 83) !important;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 16px;
  transition: background 0.3s, color 0.3s;
}

.navbar-nav .nav-link:hover {
  background: rgba(255,255,255,0.25);
  color: black !important;
}
.float-right {
    float: none !important;;
}
  
.navbar-toggler{
color: #4d4d4d;
}
.navbar-collapse {
  max-height: 80vh;      /* не більше 80% висоти екрана */
  overflow-y: auto;       /* вертикальний скрол */
}
body.nav-open {
  overflow: hidden;   /* блокує прокрутку */
  position: fixed;    /* фіксує сторінку */
  width: 100%;        /* запобігає зміщенню */
}
body.keyboard-open {
  position: static !important;
  overflow: visible !important;
}
/* .select2-results {
  position: fixed !important;
  width: 80%;
  top: 20% !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 3000 !important;
   border-radius: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(225, 225, 225, 0.08);
  border: 4px solid rgba(232, 231, 231, 0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1),
              inset 0 0 10px rgba(255,255,255,0.05);
}
.select2-search  {
    position: fixed !important;
  top: 70% !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 3000 !important;
   border-radius: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(225, 225, 225, 0.08);
  border: 4px solid rgba(232, 231, 231, 0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1),
              inset 0 0 10px rgba(255,255,255,0.05);
} */
body.asx-select2-open { overflow:hidden!important; }
.select2-container--open .select2-dropdown {
  position:fixed!important;
  left:50%!important;
  top:20%!important;
  transform:translateX(-50%);
  width:80%!important;
  z-index:3000!important;
  border-radius:40px;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  background:rgba(225,225,225,.08);
  border:4px solid rgba(232,231,231,.5);
  box-shadow:0 4px 30px rgba(0,0,0,.1),
             inset 0 0 10px rgba(255,255,255,.05);
  padding:15px!important;
}

.select2-container--open .select2-search {
  position:static!important;
  margin-bottom:10px!important;
}

.select2-container--open .select2-results {
  position:static!important;
  max-height:300px!important;
  overflow:auto!important;
  border-radius:20px!important;
}
.select2-container--bootstrap-5 
.select2-dropdown.select2-dropdown--below {
  border-top:0!important;
  border-radius:40px!important;
}

.select2-container .select2-selection {
  border-radius: 14px;
  padding: 6px 12px;
  height: auto;
  background-color: #f8f9ff;
}
select, textarea {
  border-radius: 20px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.select2-results__options {
  max-height:auto!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}

.select2-search__field {
  pointer-events:auto!important;
  touch-action:manipulation!important;
}



/* спочатку фону немає */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* напівпрозорий чорний */
  backdrop-filter: blur(3px);      /* легкий туман */
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500; /* нижче меню, але вище контенту */
}

/* коли активний пошук */
.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

    .navbar-collapse.show {
        background: rgba(246, 246, 246, 0.98);
        border-color: rgba(255,255,255,0.1);
    }
    .navbar-nav .nav-link:hover {
        background: rgba(80, 74, 74, 0.15);
        color: rgb(23, 23, 23) !important;
    }
    

}
/* 
.navbar-nav .dropdown-menu {

  background: radial-gradient(ellipse at top, #f8f8f8, transparent), radial-gradient(ellipse at bottom, #55e8ff, transparent);
} */
/* було */
/* .navbar-expand-sm .navbar-collapse {
 *   display: block;
 * }
 */

/* стало */
@media (min-width: 576px) {
  #mainNav.navbar-expand-sm .navbar-collapse {
    display: flex !important;
  }
}

.theme-switch {
  width: 46px;
  height: 26px;
  background: #bbb;
  border-radius: 26px;
  position: relative;
  appearance: none;
  cursor: pointer;
  transition: background .3s;
  margin-left: 20px;
}

.theme-switch:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform .3s;
}

.theme-switch:checked {
  background: #9da2a3;
}

.theme-switch:checked:before {
  transform: translateX(20px);
}
