body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    margin: 0; /* Reset default margin */
}

/* Fixed Navbar - Applies to all screen sizes */
.sb-topnav {
    background-color: #ffffff;
    color: #343434;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Ensure it stays on top */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px; /* Standard navbar height */
}
.sb-topnav .navbar-brand {
    font-weight: bold;
    color: #343434;
}

/* Fixed Sidebar - Default for larger screens (desktop) */
#layoutSidenav_nav {
    background-color: #ffffff;
    color: #343434;
    width: 220px;
    position: fixed;
    top: 56px; /* Offset by navbar height */
    left: 0;
    bottom: 0; /* Extend to bottom of viewport */
    z-index: 1020; /* Below navbar, above content */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto; /* Enable vertical scroll if content overflows */
    display: block; /* Ensure sidebar is visible by default on desktop */
}

/* Sidebar Menu Items */
#layoutSidenav_nav .sb-sidenav a.nav-link {
    color: #343434;
    padding: 15px 20px;
    display: block; /* Each item on its own line */
    text-decoration: none;
    white-space: nowrap; /* Prevent wrapping */
}
#layoutSidenav_nav .sb-sidenav a.nav-link:hover {
    background-color: #e9ecef;
    color: #007bff;
}
#layoutSidenav_nav .sb-sidenav a.nav-link.active {
    background-color: #e9ecef;
    color: #007bff;
    border-left: 3px solid #007bff;
}
a.navchild.active {
    background-color: #e9ecef;
    color: #007bff;
    border-left: 3px solid #007bff;
}
.sb-sidenav-menu-heading {
    padding: 1.75rem 1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #6c757d;
}

/* Sidebar Dropdown Styles */
.sb-sidenav .nav-link.collapsed {
    position: relative;
}
.sb-sidenav .nav-link.collapsed .sb-sidenav-collapse-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.15s ease-in-out;
}
.sb-sidenav .nav-link:not(.collapsed) .sb-sidenav-collapse-arrow {
    transform: translateY(-50%) rotate(0deg);
}
.sb-sidenav .sb-sidenav-collapse .nav {
    background-color: #f8f9fa; /* Lighter background for sub-items */
    padding-left: 25px; /* Indent sub-items */
    flex-direction: column; /* Ensure sub-items stack vertically */
}
.sb-sidenav .sb-sidenav-collapse .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Main Content Area - Default for larger screens (desktop) */
#layoutSidenav_content {
    margin-left: 220px; /* Offset by sidebar width */
    padding-top: 50px; /* Offset by navbar height + padding */
    flex-grow: 1;
    /* padding: 20px; */
}

/* Page Specific Styles (Order List) */
.card {
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header-product {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
}
.btn-add-vendor {
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
}
.btn-add-vendor:hover {
    background-color: #0056b3;
    color: #fff;
}

/* DataTables Styling */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_info {
    margin-bottom: 10px;
    margin-top: 10px;
}
.dataTables_wrapper .dataTables_filter {
    text-align: right;
}
.dataTables_wrapper .dataTables_length {
    text-align: left;
}
.dataTables_wrapper .dataTables_paginate {
    text-align: right;
}
.dataTables_wrapper .dataTables_info {
    text-align: left;
}
.table thead th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}
.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.badge {
    padding: 0.5em 0.8em;
    border-radius: 0.25rem;
    font-weight: bold;
    display: inline-block; /* Ensure badges display correctly */
    min-width: 70px; /* Give some minimum width for consistent look */
    text-align: center;
}

/* Action Buttons */
.btn-action {
    margin-right: 5px;
}

/* Responsive Adjustments for smaller screens (mobile & tablet) */
/* Apply below 'lg' breakpoint (992px) - Bootstrap's default */
@media (max-width: 991.98px) {
    #layoutSidenav_nav {
        /* On smaller screens, sidebar is initially hidden */
        display: none;
        top: 0; /* Align to top of viewport for mobile toggle */
        height: 100vh; /* Full viewport height */
        margin-top: 0; /* No margin-top from fixed navbar */
    }

    /* When sidebar is toggled open on mobile */
    body.sb-sidenav-toggled #layoutSidenav_nav {
        display: block; /* Make sidebar visible */
        width: 220px; /* Maintain fixed width */
    }

    #layoutSidenav_content {
        margin-left: 0; /* Content takes full width when sidebar is hidden */
        /* Padding top remains consistent for fixed navbar */
        padding-top: calc(56px + 20px);
    }

    /* Hide search form on small screens by default to save space */
    .sb-topnav .form-inline {
        display: none !important;
    }

    .sb-topnav .navbar-brand {
        font-size: 1.2rem;
    }
    .dataTables_wrapper .row {
        flex-direction: column;
    }
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_info {
        text-align: center;
        margin-top: 10px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-header .btn {
        margin-top: 10px;
        width: 100%;
    }
    .form-control-sm, .input-group-sm > .form-control, .input-group-sm > .input-group-text, .input-group-sm > .btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    .table-responsive {
        overflow-x: auto;
    }
}


/* Ensure the .nav inside sb-sidenav-menu behaves correctly */
#layoutSidenav_nav .sb-sidenav-menu .nav {
    display: flex; /* Bootstrap's .nav usually uses flex */
    flex-direction: column; /* Quan trọng: Đảm bảo các item xếp chồng lên nhau */
    width: 100%; /* Đảm bảo .nav chiếm toàn bộ chiều rộng của parent */
    padding: 0; /* Remove default padding if any */
    margin: 0; /* Remove default margin if any */
}

/* Sidebar Menu Items */
#layoutSidenav_nav .sb-sidenav a.nav-link {
    color: #343434;
    padding: 15px 20px;
    display: flex; /* Sử dụng flexbox cho nội dung bên trong nav-link */
    align-items: center; /* Căn giữa icon và text theo chiều dọc */
    text-decoration: none;
    white-space: nowrap; /* Ngăn không cho chữ xuống dòng */
    overflow: hidden; /* Ẩn phần văn bản tràn ra ngoài */
    text-overflow: ellipsis; /* Hiển thị dấu ba chấm nếu văn bản quá dài */
    width: 100%; /* Quan trọng: Đảm bảo nav-link chiếm toàn bộ chiều rộng của parent (.nav) */
    box-sizing: border-box; /* Bao gồm padding và border trong width */
}

#layoutSidenav_nav .sb-sidenav a.nav-link .sb-nav-link-icon {
    display: inline-flex; /* Đảm bảo icon là flex item */
    align-items: center; /* Căn giữa icon theo chiều dọc */
    justify-content: center; /* Căn giữa icon theo chiều ngang nếu có padding */
    width: 25px; /* Đặt chiều rộng cố định cho icon để căn chỉnh */
    margin-right: 10px; /* Khoảng cách giữa icon và text */
    flex-shrink: 0; /* Ngăn icon bị co lại */
}

#layoutSidenav_nav .sb-sidenav a.nav-link:hover {
    background-color: #e9ecef;
    color: #007bff;
}
#layoutSidenav_nav .sb-sidenav a.nav-link.active {
    background-color: #e9ecef;
    color: #007bff;
    border-left: 3px solid #007bff;
}

/* Sidebar Dropdown Styles (đảm bảo chúng cũng hoạt động đúng) */
.sb-sidenav .sb-sidenav-collapse .nav {
    flex-direction: column; /* Đảm bảo các sub-item cũng xếp chồng */
    padding-left: 25px;
}
.sb-sidenav .sb-sidenav-collapse .nav-link {
    display: flex; /* Áp dụng flex cho các sub-item */
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%; /* Đảm bảo sub-item cũng chiếm toàn bộ chiều rộng */
    box-sizing: border-box;
}
.navchild{
    font-size: 0.85rem;
    /*padding-left: 70px !important;*/
    color: #343434;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}
.navchild:hover{
    background-color: #e9ecef;
    color: #007bff;
}
.lb-form{
    font-weight: 550;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.checkbox-custom {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default checkbox */

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


/* Create a custom checkbox */

.checkmark-checkbox {
    position: absolute;
    /* top: 0; */
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #8a8a8a;
}


/* On mouse-over, add a grey background color */

.checkbox-custom:hover input~.checkmark-checkbox {
    background-color: #ccc;
}


/* When the checkbox is checked, add a blue background */

.checkbox-custom input:checked~.checkmark-checkbox {
    background-color: #2196F3;
}


/* Create the checkmark/indicator (hidden when not checked) */

.checkmark-checkbox:after {
    content: "";
    position: absolute;
    display: none;
}


/* Show the checkmark when checked */

.checkbox-custom input:checked~.checkmark-checkbox:after {
    display: block;
}


/* Style the checkmark/indicator */

.checkbox-custom .checkmark-checkbox:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-custom {
    display: inline-block;
    /* margin-left: 15px; */
}
.divimgpreview{
    width: 100%;
    border: 1px solid #c2c2c2;
    border-radius: 5px;
    height: 200px;
}
.btnthemhinhanh{
    margin-top: 8px;
}
.imgpreview{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.form-label{
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
}
.divchooseimg {
    display: flex;
    flex-direction: column;        /* xếp theo chiều dọc */
    align-items: center;           /* căn giữa theo chiều ngang */
    justify-content: center;       /* căn giữa theo chiều dọc nếu cần */
    cursor: pointer;
    gap: 8px;                      /* khoảng cách giữa các phần tử */
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    width: 100%;
    height: 130px;
}

.divchooseimg span {
    color: #969b9f;
    font-weight: 500;
    text-align: center;
}
.inputmulfile{
    visibility: hidden;
    width: 0px;
}
.image-upload{
    object-fit: cover;
}


@keyframes barWidth {
    0% {
        width: 0%;
    }
    25% {
        width: 50%;
    }
    50% {
        width: 100%;
    }
    75% {
        width: 50%;
    }
    100% {
        width: 0%;
    }
}

@keyframes barWidth2 {
    0% {
        width: 0%;
    }
    50% {
        width: 50%;
    }
    100% {
        width: 100%;
    }
}

#loading {
    margin-top: 20px;
    height: 4px;
    width: 100%;
    display: none;
}

.bar {
    position: relative;
    width: 0%;
    height: 100%;
    margin: 0 auto;
    animation: barWidth;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.bar1 {
    animation-delay: 0s;
    background: #02a09a;
    top: 0;
    z-index: 1;
}
.status-toggle .btn {
    border-radius: 50rem !important; /* Viên thuốc */
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.status-toggle .btn-check:checked + .btn {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.3);
    font-weight: 600;
}

.status-toggle .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}
.stat-container {
    display: flex;
    border: 1px solid #a3a3a3;
    width: fit-content;
    font-size: 14px;
}

.stat-box {
    padding: 5px 10px;
    border-right: 1px solid black;
}

.stat-box:last-child {
    border-right: none;
}
.pointer{
    cursor: pointer;
}

.tr-locked {
    opacity: 0.5;
    /*pointer-events: none;*/
}

@media screen and (max-width: 992px) {
    [class^="col-md-"] {
        padding-top: 8px;
    }
    [class^="col-sm-"] {
        padding-top: 8px;
    }
    .container-fluid{
        padding-left: 0px;
        padding-right: 0px;
    }
    .card-body, .card-header-product{
        padding-left: 3px;
        padding-right: 3px;
    }
}

#menuleft a{
  text-decoration: none;
  margin-left: 0px;
  color: #000;
}
.main-content{
    padding-top: 10px;
}
.btnaction-duan{
    padding: 10px;
    position: relative;
    border-bottom: 1px solid #969b9f;
    margin-bottom: 15px;
}
.btn-test-auto{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.search-du-an-div{
    width: 100%;
    border: 1px solid #8a8a8a;
    border-radius: 8px;
    margin-bottom: 15px;
    height: 40px;
    padding-left: 10px;
}
.search-du-an-div input{
    width: 80%;
    border: none;
    height: 100%;
    font-size: 12px;
    padding-left: 15px;
}
.search-du-an-div input:focus{
    outline: none;
}
.search-du-an-div button {
    border: none;
    background: none;
    position: absolute;
    width: 20%;
    height: 40px;
}
.search-du-an-div button i{
    position: relative;
    right: 5px;
    line-height: 40px;
}
.card-fixed{
    height: calc(100vh - 86px);
    overflow-y: auto;
}
.tacgiaapp{
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 30px;
    background: #fff;
    left: 220px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    font-size: 13px;
    text-align: center;
    line-height: 30px;
}
.list-api-process{
    height: 50px;
    border-bottom: 1px solid #969b9f;
    padding: 10px 20px;
}
.block-single-request{
    border-right: 1px solid #c2c2c2;
    height: calc(100vh - 50px - 80px);
    overflow-y: auto;
}
.block-single-response{
    padding-right: 0.8rem;
}
.head-response{
    padding: 10px 20px;
    border-bottom: 1px solid #969b9f;
    position: relative;
    width: 100%;
}
.head-request{
    padding: 10px 30px;
    border-bottom: 1px solid #969b9f;
    position: relative;
}
.block-result-response{
    width: 100%;
    background-color: #dedede;
    height: calc(100vh - 50px - 80px - 50px);
    overflow-y: auto;
}
.status-code-response{
    position: absolute;
    right: 30px;
}
.icon-clear-response{
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    color: #999;}
.list-field-request{
    padding: 20px 20px;
}
.lb-request-form{
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 20px;
}
.btn-delete-header{
    font-size: 16px !important;
    color: red;
    line-height: 40px;
 }
.headercontent{
  border-bottom: 1px solid #d1cfcf;
  padding-bottom: 10px;
}
.titelheadercontent{
  font-size: 22px;
  color: #333;
  font-weight: 500;
  margin-bottom: 6px;
  font-weight: 600;
}
.noteheadercontent{
  font-size: 14px;
  color: #999;
  line-height: 16px;
}
.maincnt{
  margin-top: 30px;
  padding-left: 20px;
}
.icontk{
  color: #999;
  font-size: 22px;
}
.titleinputs{
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
}
.formcontrolinput{
  border-top: none;
  border-left: none;
  border-right: none;
  width: 80%;
  padding-left: 10px;
  border-bottom: 1px solid #e0e0e0;
}
.formcontrolinput:focus{
  outline: none;
}
.btnxemtt{
  border: 1px solid #999;
  min-width: 50%;
  background-color: #fff;
}
.singlett{
  border-bottom: 1px solid #999;
  padding-bottom: 20px;
}
.singslth{
  margin-bottom: 50px;
}
.nhannhu{
  font-size: 14px;
  line-height: 16px;
  color: #999;
}
.iconmapdc{
  color: rgb(0, 191, 165);;
  font-size: 22px;
}
.inputdcs{
  font-size: 14px;
  margin-right: 20px;
  color: rgba(85, 85, 85, 0.8);
}
.overindc{
  display: inline-block;
  font-weight: 500;
  margin-right: 16px;
  font-size: 16px;
  margin-left: 50px;
  color: #000;
}
.bannerkm{
  background-repeat: no-repeat;
  object-fit: contain;
  height: 260px;
  background-size: 751px;
  background-position: 489px -19px;
}
.btnshop{
  color: #fff;
  background-color: #ee4d2d;
  border-color: #ee4d2d;
  border: none;
  border-radius: 5px;
  min-width: 120px;
  height: 35px;
}
.imgshop{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}
.divavatart{
    justify-content: center;
    align-items: center;
    display: grid;
    place-items: center;
}

.folder {
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}
.folder:hover {
    background: #f1f1f1;
}
.folder .folder-text {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
}
.folder .folder-text i {
    margin-right: 8px;
    flex-shrink: 0;
}
.folder .folder-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
}
.folder .actions {
    flex-shrink: 0;
    margin-left: 10px;
}
.folder .actions .button-more-action {
    border: none;
    background: transparent;
    color: #666;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 13px;
}
.folder .actions .button-more-action:hover {
    color: #000;
}
.nested {
    display: none;
    margin-left: 20px;
}
.nested.active {
    display: block;
}
.api-item {
    padding: 3px 10px;
    font-size: 14px;
}
.api-item span {
    font-weight: bold;
    font-size: 11px;
    margin-right: 5px;
}
.api-item{
    font-size: 13px;
    cursor: pointer;
    overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
}
.thutuapi{
    background-color: #ff0000;
    color: #fff;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 11px;
    margin-right: 5px;
}
.icon-more-action{
    font-size: 15px !important;
}
.navlink-lg{
    padding: 3px 20px;
    padding-right: 0px;
}
.item-sm-drop{
    font-size: 12px;
}
.folder.active-folder {
  background: #f1f1f1;
}
.single-header{
    padding-top: 20px;
}
.input-key-header,.input-value-header,.input-key-param,.input-value-param{
    width: 100%;
    height: 25px;
    border: none;
}
.input-key-header:focus{
    outline: none;
}
.input-value-header:focus{
    outline: none;
}
.input-key-param:focus{
    outline: none;
}
.input-value-param:focus{
    outline: none;
}
.table-custom-pr td{
    height: 25px !important;
    padding: 5px 5px !important;
}
.suggestion-list li:hover {
  background: #eee;
}
#url-request{
    font-size: 13px;
}



.custom-input-group {
    border: 1px solid #dee2e6; /* Màu viền giống ảnh */
    border-radius: 0.375rem; /* Độ bo tròn */
    overflow: hidden; /* Rất quan trọng để viền bo tròn hoạt động đúng */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Thêm đổ bóng nhẹ */
}

/* Tùy chỉnh phần "POST" */
.custom-input-group .method-selector {
    display: flex; /* Dùng flexbox để căn chỉnh */
    align-items: center; /* Căn giữa theo chiều dọc */
    background-color: transparent; /* Nền trong suốt */
    border-right: 1px solid #dee2e6; /* Viền ngăn cách với input */
    padding: 0 1rem; /* Khoảng cách bên trong */
    font-weight: bold; /* Chữ đậm */
    color: #d8964c; /* Màu chữ cam giống ảnh */
    user-select: none; /* Không cho phép chọn text */
    cursor: pointer; /* Đổi con trỏ thành pointer khi hover */
    border: none;
    font-size: 13px;
}
.method-selector:focus{
    outline: none; /* Bỏ viền focus */
}

/* Tùy chỉnh icon dropdown (nếu có) */
.custom-input-group .method-selector::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    transform: rotate(45deg);
    margin-left: 0.5rem; /* Khoảng cách với chữ "POST" */
}

/* Tùy chỉnh phần input URL */
.custom-input-group .form-input-url {
    border: none; /* Bỏ viền của input */
    outline: none; /* Bỏ viền khi focus */
    background-color: transparent; /* Nền trong suốt */
    padding-left: 0.75rem; /* Khoảng cách bên trái */
    font-size: 13px;
}
.form-input-url:focus{
    outline: none; /* Bỏ viền focus */
    border-left: none;
}

.method-selector option{
    font-weight: bold;
}
.btn-luu-api {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
}
.btn-api-moi{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
}
.btn-luu-api[disabled] {
    font-size: 0; 
    line-height: 0;
}

.btn-luu-api:disabled {
    background-color: #e9ecef; /* Màu nền xám nhạt */
    border-color: #e9ecef; /* Viền cùng màu nền */
    color: #6c757d; /* Màu chữ xám đậm */
    opacity: 1; /* Quan trọng: đặt lại opacity của Bootstrap */
}
.btn-luu-api[disabled]::before {
    content: "Chọn 1 dự án để lưu API";
    font-size: 0.75rem; /* Đặt lại kích thước font */
    line-height: normal; /* Đặt lại line-height */
    color: #6c757d; /* Đặt lại màu chữ */
}
.active-api {
    background-color: #e9ecef;
    color: #007bff;
    border-left: 3px solid #007bff;
}
#result-crawl-api{
    max-height: 400px;
    overflow-y: auto;
}
.disable-api{
    cursor: no-drop;
}


/* Đặt sau CSS của DataTables */

/* Vùng cuộn của DataTables khi dùng scrollY */
.dataTables_wrapper .dataTables_scrollBody {
  /* Firefox */
  scrollbar-width: thin;                 /* mảnh hơn mặc định */
  scrollbar-color: rgba(0,0,0,.35) transparent;
}

/* Chrome, Edge, Safari */
.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar {
  width: var(--dt-scrollbar) !important;   /* dọc */
  height: var(--dt-scrollbar) !important;  /* ngang (nếu có) */
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.35);
  border-radius: 999px;
  background-clip: padding-box;
  border: 2px solid transparent;           /* giảm thị giác xuống ~2px */
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-track {
  background: transparent;
}
.table-auto-scroll{
    font-size: 13px;
}
.text-blue{
    color: blue;
    font-weight: 500;
    cursor: pointer;
}
.body-fixed-modal{
    height: 400px;
    overflow-y: auto;
}
.body-fixed-modal input {
    font-size: 13px;
}
.body-fixed-modal select{
    font-size: 13px;
}
.body-fixed-modal textarea{
    font-size: 13px;
}
.btnxemketqua{
    position: absolute;
    right: 120px;
    display: none;
}
.tokenvalue{
    width: 400px !important;
}
.ios-switch {
  width: 50px;
  height: 28px;
  appearance: none;
  background-color: #ddd;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease-in-out;
}

/* Nút tròn bên trong */
.ios-switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Khi bật */
.ios-switch:checked {
  background-color: #4cd964; /* xanh lá kiểu iOS */
}
.ios-switch:checked::before {
  transform: translateX(22px);
}
.splaytoken{
    position: absolute;
    right: 0px;
    top: 20px;
    color: blue;
    font-weight: bold;
    cursor: pointer;
}

.tokenvalueview{
    width: 300px !important;
    overflow: hidden;
}
.div-button-header{
    position: absolute;
    right: 10px;
    display: flex;
}
.div-button-header button {
    position: relative;
    display: inline;
    margin-left: 15px;
}
.htapiauto{
    text-align: center;
    text-decoration: wavy;
}
.line-on-sides {
  display: flex;
  align-items: center; /* Căn chữ và đường gạch vào giữa theo chiều dọc */
  text-align: center;
}

.line-on-sides::before,
.line-on-sides::after {
  content: '';
  flex: 1; /* Cho phép đường gạch co giãn để lấp đầy không gian trống */
  border-bottom: 1px solid black; /* Tạo đường gạch ngang */
}

.line-on-sides:not(:empty)::before {
  margin-right: 1em; /* Tạo khoảng trống giữa đường gạch bên trái và chữ */
}

.line-on-sides:not(:empty)::after {
  margin-left: 1em; /* Tạo khoảng trống giữa đường gạch bên phải và chữ */
}
#listheader{
    font-size: 13px;
}
#listparameter{
    font-size: 13px;
}
#block-chan-doan-loi {
  /* ...các thuộc tính khác của div (ví dụ: width) */
  white-space: normal; /* Đảm bảo văn bản sẽ xuống dòng */
  word-wrap: break-word; /* Một số trình duyệt cũ hơn cần thuộc tính này */
  overflow-wrap: break-word; /* Phiên bản mới của word-wrap */
}
.api-item{
    position: relative;
}
.icon-delete-api{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 11px;
    display: none;
}
.api-item:hover .icon-delete-api {
    display: inline-block; /* hoặc block, tùy theo icon của bạn */
}
.green-text{
    color:green !important;
    font-weight: bold;
}
.red-text{
    color: red !important;
    font-weight: bold;
}