/*Mobile*/
@media (max-width: 768px) {
	
	button.main-cat-tab {
		width: 100%;
	}
	
	.product-table-head {
		gap: 15px;
		flex-direction: column;
	}
	
.product-search, .cart-summary h4 {
    width: 100% !important;
}
	
.cart-summary-total {
    flex-direction: column;
}
	
.cart-steps .step {
    padding-right: 10px !important;
	align-content: center;
}
	
.cart-steps {
    height: 50px;
}

.cart-steps span {
    display: none !important;
}
	
.custom-oligo {
    overflow: auto;
}
	
#oligo-table th:nth-child(1),
#oligo-table td:nth-child(1) {
  min-width: 65px !important;
}

#oligo-table th:nth-child(2),
#oligo-table td:nth-child(2) {
  min-width: 100px !important;
}

#oligo-table th:nth-child(3),
#oligo-table td:nth-child(3) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(4),
#oligo-table td:nth-child(4) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(5),
#oligo-table td:nth-child(5) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(6),
#oligo-table td:nth-child(6) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(7),
#oligo-table td:nth-child(7) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(8),
#oligo-table td:nth-child(8) {
  min-width: 180px !important;
}

#oligo-table th:nth-child(9),
#oligo-table td:nth-child(9) {
  min-width: 100px !important;
}

#oligo-table th:nth-child(10),
#oligo-table td:nth-child(10) {
  min-width: 160px !important;
}

#oligo-table th:nth-child(11),
#oligo-table td:nth-child(11) {
  min-width: 65px !important;
}
	
	.cart-summary td {
		min-width: 100px;
	}
	
}
/*===================*/

#oligo-tieu-chuan-table th:nth-child(1),
#oligo-tieu-chuan-table td:nth-child(1),
#oligo-lna-table-content th:nth-child(1),
#oligo-lna-table-content td:nth-child(1){
  width: 5% !important;
}

#oligo-tieu-chuan-table th:nth-child(2),
#oligo-tieu-chuan-table td:nth-child(2),
#oligo-lna-table-content th:nth-child(2),
#oligo-lna-table-content td:nth-child(2){
  width: 15% !important;
}

#oligo-tieu-chuan-table th:nth-child(3),
#oligo-tieu-chuan-table td:nth-child(3),
#oligo-lna-table-content th:nth-child(3),
#oligo-lna-table-content td:nth-child(3){
  width: 25% !important;
}

#oligo-tieu-chuan-table th:nth-child(4),
#oligo-tieu-chuan-table td:nth-child(4),
#oligo-lna-table-content th:nth-child(4),
#oligo-lna-table-content td:nth-child(4){
  width: 10% !important;
}

#oligo-tieu-chuan-table th:nth-child(5),
#oligo-tieu-chuan-table td:nth-child(5),
#oligo-lna-table-content th:nth-child(5),
#oligo-lna-table-content td:nth-child(5){
  width: 10% !important;
}

#oligo-tieu-chuan-table th:nth-child(6),
#oligo-tieu-chuan-table td:nth-child(6),
#oligo-lna-table-content th:nth-child(6),
#oligo-lna-table-content td:nth-child(6){
  width: 10% !important;
}

#oligo-tieu-chuan-table th:nth-child(7),
#oligo-tieu-chuan-table td:nth-child(7),
#oligo-lna-table-content th:nth-child(7),
#oligo-lna-table-content td:nth-child(7){
  width: 8% !important;
}

#oligo-tieu-chuan-table th:nth-child(8),
#oligo-tieu-chuan-table td:nth-child(8),
#oligo-lna-table-content th:nth-child(8),
#oligo-lna-table-content td:nth-child(8){
  width: 12% !important;
}

#oligo-tieu-chuan-table th:nth-child(9),
#oligo-tieu-chuan-table td:nth-child(9),
#oligo-lna-table-content th:nth-child(9),
#oligo-lna-table-content td:nth-child(9){
  width: 5% !important;
}

table#oligo-inosine-table-content th:nth-child(3), table#tong-hop-gen-table th:nth-child(3), table#san-pham-khac-table th:nth-child(3){
    width: 20%;
}

table#oligo-inosine-table-content th:nth-child(2), table#tong-hop-gen-table th:nth-child(2), table#san-pham-khac-table th:nth-child(2){
    width: 15%;
}

/* Overlay */
#login-overlay.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Để làm mờ nền */
  display: flex;
  justify-content: center; /* Canh giữa theo chiều ngang */
  align-items: center; /* Canh giữa theo chiều dọc */
  z-index: 9999; /* Đảm bảo overlay hiển thị trên tất cả các phần tử khác */
  pointer-events: all; /* Chặn mọi thao tác chuột trên các phần tử dưới overlay */
}

div#error-message, #error-message-not-i {
    margin-top: 10px;
    font-style: italic;
    font-size: 14px;
}

.product-table-wrapper {
    max-height: 400px;
    overflow: auto;
}

input.p-qty {
    text-align: center;
}

button.remove-cart-item {
    margin: 0;
}

.oligo-change-tab, .gen-change-tab {
    border: solid 1px #1d3c6a;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.oligo-change-tab input, .gen-change-tab input {
    margin: 0 !important;
}

.oligo-change-tab label, .gen-change-tab label {
    margin-right: 20px !important;
    cursor: pointer;
    text-transform: uppercase;
}

p.taqman-note {
    font-size: 14px;
    font-style: italic;
    color: red;
}

/**/
/* Ẩn tooltip mặc định */
.tooltip-text {
  display: none;
  position: absolute;
  background-color: #2d3f65;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  font-size: 10px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 400;
}

/* Đặt vị trí của th chứa tooltip */
.tooltip-trigger {
  position: relative;
  cursor: pointer;
}

/* Hiển thị tooltip khi hover vào th */
.tooltip-trigger:hover .tooltip-text {
  width: 300px;
  text-align: left;
  display: block;
  opacity: 1;
  bottom: 100%; 
  left: 50%; 
  transform: translateX(-50%); 
  margin-bottom: 10px;
  padding: 10px;
}


/* Thông báo đăng nhập */
#login-notification.notification {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#login-notification.notification p {
    display: flex;
    font-size: 16px;
    align-items: center;
    justify-content: center;
}

#login-notification.notification a {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
    margin: 0 3px;
}

div#login-notification svg {
    margin-right: 4px;
}

#login-notification.notification a:hover {
  text-decoration: underline;
}

.cart-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}


tbody#primer-product-list tr {
    height: 44px;
}

.cart-head-title {
    display: flex;
	gap: 20px;
	margin: 45px 0;
}

.cart-head-title h2 {
    width: fit-content;
    font-size: 40px;
    font-weight: 700;
    line-height: 60px;
	margin: 0;
}

.cart-steps {
  display: flex;
  width: 100%;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

.cart-steps .step {
  position: relative;
  flex: 1;
  padding: 10px 50px;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  border-right: 1px solid #fff;
	line-height: 1;
	text-align: left;
}

.cart-steps .step span {
  font-size: 12px;
  font-weight: normal;
  display: block;
  margin-top: 4px;
  color: #666;
}

/* Mũi tên phải */
.cart-steps .step::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 0;
  height: 0;
  background: #fff;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 20px solid #f5f5f5;
  z-index: 1;
}

/* Mũi tên nền trắng để tách */
.cart-steps .step::before {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 20px solid #fff;
  z-index: 2;
}

.cart-steps .step:last-child::after,
.cart-steps .step:last-child::before {
  display: none;
}

/* Step active */
.cart-steps .step.active {
  background: #243b6b; /* xanh đậm giống ảnh */
  color: #fff;
}

.cart-steps .step.active span {
  color: #fff;
}

.cart-steps .step.active::after {
  border-left-color: #243b6b;
}

h3.section-title {
	margin-top: 40px;
    font-size: 24px;
    font-weight: 700;
    line-height: 42px;
	justify-content: flex-start;
	align-items: baseline;
	gap: 10px;
	font-family: 'Roboto';
}

.section-title span {
    text-transform: none;
    font-size: 18px;
    font-weight: 400;
}

.service-tabs {
  margin-top: 15px;
}
.service-tabs button {
  padding: 8px 15px;
  background: #fff;
  cursor: pointer;
	margin: 0;
	font-size: 16px;
	color: #A1A1A1;
	font-weight: 400;
}
.service-tabs button.active {
  background: #1d3c6a;
  color: #fff;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.subcat-list {
    display: flex;
	gap: 20px;
}

.subcat-filters {
    display: flex;
    gap: 40px;
    border: solid 1px #2D3F65;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
}


.product-table-head {
    display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.product-table-head h4 {
    width: 50%;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.product-search {
  display: flex;
	width: 50%;
}
.product-search input {
  flex: 1;
	height: 48px !important;
	background: #F2F2F2 !important;
	border-radius: 8px !important;
}
.product-search button {
    line-height: 1;
    margin: 0;
    border: none;
    background: #1d3c6a;
    color: #fff;
    min-height: 0 !important;
    height: 48px;
    width: 48px;
    text-align: center;
    padding: 5px;
	margin-left: 5px;
    border-radius: 8px;
}

.product-search input::placeholder {
    font-size: 14px;
    color: #999999;
}

.product-table-wrapper, .custom-oligo {
	margin-top: 40px;
    border: solid 1px #A1A1A1;
    padding: 20px;
    border-radius: 20px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
	margin: 0;
}
.product-table th, .product-table td {
  border: 1px solid #D7D7D7;
	text-align: center;
	padding: 0;
}

.product-table td, table#oligo-table td {
    font-size: 14px;
    font-weight: 400;
    color: #2D2D2D;
	text-align: center;
}

tbody#other-product-list input {
    margin: 0;
}

tbody#primer-product-list input.add-to-cart {
    margin: 0;
}

table.product-table.other-product th:nth-child(1){
  width: 7%;
}

table.product-table.other-product th:nth-child(2){
  width: 60%;
}

table.product-table.other-product th:nth-child(3) {
  width: 10%;
}

.product-table th:nth-child(1),
.product-table td:nth-child(1) {
  width: 5%;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 70%;
}

.product-table th:nth-child(3),
.product-table td:nth-child(3) {
  width: 10%;
}


.custom-oligo table th:nth-child(1),
.custom-oligo table td:nth-child(1) {
  width: 4%;
}

.custom-oligo table th:nth-child(2),
.custom-oligo table td:nth-child(2) {
  width: 10%;
}

.custom-oligo table th:nth-child(3),
.custom-oligo table td:nth-child(3) {
  width: 10%;
}

.custom-oligo table th:nth-child(4),
.custom-oligo table td:nth-child(4) {
  width: 18%;
}

.custom-oligo table th:nth-child(5),
.custom-oligo table td:nth-child(5) {
  width: 10%;
}

.custom-oligo table th:nth-child(6),
.custom-oligo table td:nth-child(6) {
  width: 10%;
}

.custom-oligo table th:nth-child(7),
.custom-oligo table td:nth-child(7) {
  width: 10%;
}

.custom-oligo table th:nth-child(8),
.custom-oligo table td:nth-child(8) {
  width: 10%;
}

.custom-oligo table th:nth-child(9),
.custom-oligo table td:nth-child(9) {
  width: 5%;
}

.custom-oligo table th:nth-child(10),
.custom-oligo table td:nth-child(10) {
  width: 10%;
}

.custom-oligo table th:nth-child(11),
.custom-oligo table td:nth-child(11) {
  width: 3%;
}

.custom-oligo table textarea {
    min-height: 44px;
    margin: 0;
}

.custom-oligo table textarea, .custom-oligo table input {
    text-align: center;
    border: none;
}
.custom-oligo table select {
    text-align: left;
    border: none;
}

input.p-qty {
    border: none !important;
}

button.button.remove-row {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: none;
    color: red;
    border: none;
}

button.button.remove-row:hover {
    box-shadow: none;
}


.product-table th, table#oligo-table th {
    background: #E8F4FD;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    text-align: center;
    padding: 12px 0;
}

.qty-control {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.qty-control button {
    font-size: 18px;
    font-weight: 500;
    width: 25px;
    height: 25px;
    color: #808080;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    background: #F8F8FA;
    line-height: 1;
    min-height: 0;
}

.qty-control input {
    width: 70px !important;
    text-align: center;
    border: none !important;
    margin: 0 0 0 10px;
}


.custom-oligo table {
  width: 100%;
  border-collapse: collapse;
}

tr.oligo-row textarea, tr.oligo-row input, tr.oligo-row select {
    font-size: 12px;
    text-align: center;
    border: none;
    min-height: 44px;
    margin: 0;
}

input.sequence-count {
    min-height: 20px !important;
}

td.td-sequence {
    position: relative;
}

.td-sequence textarea {
    padding-right: 30px !important;
}

input.sequence-count {
    position: absolute;
    padding: 0 !important;
    width: 25px !important;
    height: 25px !important;
    right: 5px;
    top: 12px;
    border: solid 1px #2d3f65 !important;
    border-radius: 100% !important;
}


.custom-oligo th, .custom-oligo td {
text-align: center;
  border: 1px solid #ddd;
  padding: 5px;
}

.custom-oligo th {
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    text-align: center;
    background: #E8F4FD;
    padding: 10px 5px;
}

.cart-summary {
    background: #FBEEEA;
    margin: 30px 0;
    padding: 20px;
    border-radius: 20px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
	margin-bottom: 10px;
}

.cart-summary h4 {
    font-size: 24px;
    color: #2D3F65;
    font-weight: 700;
	width: 30%;
}

.cart-total {
    font-size: 24px;
    color: #2D3F65;
    font-weight: 700;
}

.cart-summary table {
  width: 100%;
  border-collapse: collapse;
	margin: 0;
	box-shadow: 0px 4px 8px 0px #2D3F6540;
    border-radius: 10px;
	overflow: hidden;
}

.cart-summary th {
    background: #2D3F65;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    text-align: center;
}

.cart-summary td {
    border: 1px solid #ddd;
    padding: 8px;
    color: #2D2D2D;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
	background: #fff;
}

.cart-total span {
  text-align: right;
  margin-top: 10px;
  font-weight: bold;
  color: #d33;
}

.btn-next {
    background: #2D3F65;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;	
}

.btn-next:hover {
    background: #fff;
	border: solid 1px #2D3F65;
    color: #2D3F65;
}

.cart-wrapper.container {
    margin-bottom: 80px;
}

#subcat-filters input, #subcat-filters label, .oligo-change-tab label {
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    color: #2D3F65;
}

.custom-oligo__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.custom-oligo__head h4 {
	flex: 1;
	margin: 0;
	font-size: 24px;
}
.custom-oligo__import-export {
	display: none;
}
.custom-oligo__import-export a {
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	text-transform: uppercase;
	font-family: Lato, sans-serif;
	background: #2D3F65;
	color: #fff;
	padding: 8px 12px;
	border-radius: 5px;
	cursor: pointer;
}
.custom-oligo__import-export a#export-oligo {
	background: #fff;
    color: #2D3F65;
    border: 1px solid #2D3F65;
}

#oligo-loading {
    display: none;
    position: absolute;
    top: 0; left: 0;
	width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

#oligo-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.custom-oligo {
    position: relative;
}

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