body,
h1,
h2,
h3,
p,
ul,
li,
input,
form {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #555555;
}

ul {
    list-style: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

#header {
    background-color: #F5F5F5;
    color: #fff;
    padding: 20px 20px 10px 20px;
}

#header .logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

#header .logo .subtitle {
    font-size: 14px;
}

.search {
    display: flex;
    justify-content: space-between;
}

#header .searchbox .search {
    display: flex;
}

#header .searchbox input[type="text"] {
    padding: 15px;
    border: 1px solid rgb(177, 177, 211); 
    width: 700px;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

#header .searchbox input[type="submit"] {
    padding: 10px 10px;
    border: none;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    background-color: #04BDE5;
    color: #fff;
    cursor: pointer;
}

#sidebar {
    width: 13%;
    flex-shrink: 0;
    background-color: #EFEFEF;
    border-top: 7px solid #D7D7D7;
    border-right: 3px solid #D7D7D7;
    z-index: 1;
}

#sidebar .list h2 {
    font-size: 15px;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
}
#sidebar .list h3 {
    font-size: 15px;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
}

#sidebar .list h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #ccc;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

#sidebar .list h2 strong {
    padding-left: 15px;
    color: #555555;
}

#sidebar .list ul {
    margin-top: -10px;
    /* padding: 10px; */
}

#sidebar .list ul li {
    margin-bottom: 5px;
}
#sidebar .list ul .li {
    margin-bottom: 10px;
}

#sidebar .list ul li input[type="checkbox"] {
    margin-right: 5px;
    margin-left: 5px;
}

#content {
    /* min-width: 100%; */
    background-color: #fff;
    border-top: 7px solid #A7A7A7;
}
.dataarea table th,
.dataarea table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.dataarea table th {
    background-color: #f2f2f2;
}

#footer {
    clear: both;
    padding: 10px 20px;
    background-color: #006699;
    color: #fff;
    text-align: center;
}

#logout {
    color: white;
    text-decoration: none;
}

.wrapper {
    display: flex;
}
#sidebar ul .box-list-menu-child {
    display: none;
    position: absolute;
    left: 100%;
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    width: 800px;
    padding-bottom: 100px;
    z-index: 10000;
    padding-top: 20px;
}
#sidebar ul ul {
    display: grid;
   grid-template-columns: repeat(4, minmax(0, 200px));
}

#sidebar li:hover>.box-list-menu-child {
    display: block;
}

/* Định dạng cơ bản cho các danh sách */
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

#sidebar ul li {
    position: relative;
}

#sidebar ul li a {
    display: block;
    padding: 5px 20px;
    text-decoration: none;
    color: #555555;
    font-size: 14px;
    width: 100%;
}
#sidebar ul li .son {
    display: block;
    padding: 5px 20px;
    text-decoration: none;
    color: #555555;
    font-size: 14px;
    width: 100%;
}

#sidebar ul li a:hover {
    background-color: #f0dede;
    /* Nền khi hover vào mục */
}

/* Điều chỉnh độ rộng và nền cho các danh mục con */
#sidebar .parent>ul,
#sidebar .sub-parent>ul,
#sidebar .sub-child>ul {
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    width: 1000px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
th {
    position: relative;
    padding-bottom: 30px; 
  }
  
  .search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
    z-index: 10;
  }
  
  .search-input {
    width: 100%;
    max-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 12px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .search-input:focus {
    border-color: #04BDE5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 189, 229, 0.1);
  }
  
  .search-input::placeholder {
    color: #999;
    font-size: 11px;
  }
  
  .search-container.show {
    height: 45px;
  }
  
  .search-input.show {
    opacity: 1;
    transform: translateY(0);
  }

  .search-input-code {
    width: 120px;
    padding: 5px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 11px;
    background-color: #fff;
    transition: all 0.2s ease;
    text-align: center;
  }
  
  .search-input-code:focus {
    border-color: #04BDE5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(4, 189, 229, 0.1);
    text-align: left;
  }
  
  .search-input-code::placeholder {
    color: #999;
    font-size: 10px;
  }
  table tr:nth-child(even) td {
    background-color: #ffffff; /* Màu cho hàng chẵn */
}

table tr:nth-child(odd) td {
    background-color: #f2f2f2; /* Màu cho hàng lẻ */
}
/* Hiển thị cấp 1 ngay từ đầu */
.sub-category-level-1 {
    display: block;
}

/* Ẩn các danh mục cấp 2 trở lên ban đầu */
.sub-category-level {
    display: none;
}

/* Hiển thị cấp 2, 3, 4 khi di chuột vào cấp 1 */
.parent:hover .sub-category-level {
    display: block;
    margin-left: 20px;  /* Đẩy danh mục con sang phải để dễ nhìn */
}
.table>:not(caption)>*>* {
    padding: .5rem .5rem;
    color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    background-color:#EFEFEF;
    border-bottom-width: var(--bs-border-width);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}
.search input[type="text"]:focus {
    border: 2px solid blue; /* Đặt border màu xanh */
    outline: none; /* Bỏ viền mặc định của trình duyệt */
}
tbody tr td{
    vertical-align: middle;
}
.list-images {
    display: flex;
    gap: 10px; /* Space between images */
    flex-wrap: wrap; /* Allow wrapping if there are many images */
}

.box-image {
    position: relative;
    display: inline-block;
}

.picture-box {
    width: 120px;
    height: auto;
}

.wrap-btn-delete {
    position: absolute;
    top: 22px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 5px;
    cursor: pointer;
}
.wrap-btn-delete-update {
    position: absolute;
    top: 15px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    padding: 2px 5px;
    cursor: pointer;
}
.wrap-btn-delete-updateX {
    position: absolute;
    right: 453;
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    padding: 2px 5px;
    cursor: pointer;
}
.wrap-btn-delete-updateCreate {
    position: absolute;
    left: 16.2%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    padding: 2px 5px;
    cursor: pointer;
}
.wrap-btn-delete-updateUpdate {
    position: absolute;
    left: 18.5%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    padding: 2px 5px;
    cursor: pointer;
}
@media only screen and (max-width: 1366px) {
    #sidebar {
        width: 18%;
    }
}
#suggestions {
    border: 1px solid #ccc;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: 700px;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    color: black;
    margin-top: 50px;
}

#suggestions div {
    padding: 8px;
    cursor: pointer;
}

#suggestions div:hover {
    background-color: #dd1414;
    color: white;
}
#suggestion-model,
#suggestion-code,
#suggestion-searchCat,
#suggestion-searchBrand,
#suggestion-searchMan,
#suggestion-searchSup,
#suggestion-searchDVT,
#suggestion-searchTT,
#suggestion-searchIdCode,
#suggestiosearchOemCodeup,
#suggestisearchCetCodeSup,
#suggestion-name {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    position: absolute;
    z-index: 1000;
    width: 100%;
}
#suggestion-model div,
#suggestion-code div,
#suggestion-searchCat div,
#suggestion-searchBrand div,
#suggestion-searchMan div,
#suggestion-searchSup div,
#suggestion-searchDVT div,
#suggestion-searchTT div,
#suggestion-searchIdCode div,
#suggestion-searchOemCode div,
#suggestion-searchCetCode div,
#suggestion-name div {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#suggestion-model div:last-child,
#suggestion-code div:last-child,
#suggestion-searchCat div:last-child,
#suggestion-searchBrand div:last-child,
#suggestion-searchMan div:last-child,
#suggestion-searchSup div:last-child,
#suggestion-searchDVT div:last-child,
#suggestion-searchTT div:last-child,
#suggestion-searchIdCode div:last-child,
#suggestion-searchOemCode div:last-child,
#suggestion-searchCetCode div:last-child,
#suggestion-name div:last-child {
    border-bottom: none;
}
#suggestion-model div:hover,
#suggestion-code div:hover,
#suggestion-searchCat div:hover,
#suggestion-searchBrand div:hover,
#suggestion-searchMan div:hover,
#suggestion-searchSup div:hover,
#suggestion-searchDVT div:hover,
#suggestion-searchTT div:hover,
#suggestion-searchIdCode div:hover,
#suggestion-searchOemCode div:hover,
#suggestion-searchCetCode div:hover,
#suggestion-name div:hover {
    background: #f1f1f1;
}