.woocommerce-MyAccount-content h2 {
    text-transform: uppercase;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    border-left: 4px solid #aeff00;
    padding: 6px 16px;
    background-color: #0c0b0b;
}
.col-inner.stat-total { border: unset !important; border-bottom: 4px solid #aeff00 !important; } 
.col-inner.stat-active { border: unset !important; border-bottom: 4px solid #FF9800 !important; } 
.col-inner.stat-sold { border: unset !important; border-bottom: 4px solid #e10000 !important; }  
.col-inner.stat-revenue { border: unset !important; border-bottom: 4px solid #00BCD4 !important; }
.fconline-stats-container.row .col-inner * {
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
}

.fconline-stats-container.row .col-inner {
    border: 2px solid #ffffff14;
    padding: 4px 16px;
    border-radius: 8px;
    background-color: #181818;
}

.fconline-policy-info p {
    margin-bottom: 8px;
    font-size: 14px;
    font-style: italic;
}

.fconline-policy-info {
    border: 1px dashed #ffffff8f;
    border-radius: 8px;
    padding: 15px;
}



button#add-fconline-product {
    background-color: #aeff00;
    text-transform: inherit;
    border-radius: 8px;
    color: #000;
    font-weight: 400;
}
button#add-fconline-product {
    display: inline-flex;
    align-items: center;
    padding: 0px 8px;
    gap: 6px;
}

/*// modal sản phẩm*/



/* CSS cho modal thêm tài khoản */
.account-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.account-modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalFade 0.3s ease-out;
}

@keyframes modalFade {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.account-modal-header {
    padding: 15px 20px;
    background-color: #aeff00;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.account-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.close-modal {
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.account-modal-body {
    padding: 20px;
}

.account-modal .form-row {
    display: flex;
    margin-bottom: 15px;
    gap: 20px;
}

.account-modal .form-row .form-group {
    flex: 1;
}

.account-modal .form-group {
    margin-bottom: 15px;
}

.account-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.account-modal .form-group .required {
    color: #d63638;
}

.account-modal .form-group input[type="text"],
.account-modal .form-group input[type="number"],
.account-modal .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.account-modal .form-group textarea {
    resize: vertical;
}

.account-modal .form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.account-modal .form-actions .button {
    padding: 4px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-transform: inherit;
}

.account-modal .button {
    background-color: #f0f0f1;
    border: 1px solid #ddd;
    color: #3c434a;
    transition: all 0.2s;
}

.account-modal .button:hover {
    background-color: #e0e0e1;
}

.account-modal .button-primary {
    background-color: #aeff00;
    border: #aeff00;
    color: #000000;
}

.account-modal .button-primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Highlight cho field có lỗi */
.account-modal .form-group .error {
    border-color: #d63638;
}

.account-modal .form-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}



.account-modal .image-preview, .account-modal .gallery-preview {
    margin-top: 10px;
    min-height: 40px;
    border: 1px dashed #ddd;
    padding: 5px;
    background: #f9f9f9;
}

.account-modal .gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}




.account-modal .status-toggle-container {
    display: flex;
    align-items: center;
}

.account-modal .toggle-switch {
    position: relative;
    width: 60px;
    display: inline-block;
    margin: 0 10px;
}

.account-modal .toggle-switch-checkbox {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.account-modal .toggle-switch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 0 solid #bbb;
    border-radius: 20px;
}

.account-modal .toggle-switch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.account-modal .toggle-switch-inner:before, .toggle-switch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 24px;
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    color: white;
    font-weight: bold;
    box-sizing: border-box;
}

.account-modal .toggle-switch-inner:before {
    content: "ON";
    padding-left: 10px;
    background-color: #4CAF50;
    color: #FFFFFF;
}

.account-modal .toggle-switch-inner:after {
    content: "OFF";
    padding-right: 10px;
    background-color: #F44336;
    color: #FFFFFF;
    text-align: right;
}

.account-modal .toggle-switch-switch {
    display: block;
    width: 18px;
    height: 18px;
    margin: 3px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 36px;
    border: 0 solid #bbb;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}

.account-modal .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-inner {
    margin-left: 0;
}

.account-modal .toggle-switch-checkbox:checked + .toggle-switch-label .toggle-switch-switch {
    right: 0px; 
}

.account-modal .status-label {
    font-size: 12px;
    color: #666;
}



.account-modal button#open-import-modal {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}


/* CSS cho các container upload ảnh */
.account-modal .image-upload-container,
.gallery-upload-container {
    margin-top: 5px;
}

/* CSS cho preview ảnh đại diện */
.account-modal .image-preview {
    margin-top: 10px;
    min-height: 40px;
    max-width: 100%;
}

.account-modal .image-preview img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* CSS cho preview album ảnh */
.account-modal .gallery-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 40px;
    max-width: 100%;
}

.account-modal .gallery-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}


/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    .account-modal .form-row .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Style cho info box chứa hướng dẫn */
.account-modal .info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.account-modal .info-box code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Style cho warning box */
.account-modal .warning-box {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 10px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

/* Style cho import summary */
.account-modal .import-summary {
    background-color: #f0f0f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.account-modal .import-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}




/* Thu nhỏ cột ID và Ngày tạo */
.accounts-table .column-id {
  width: 60px !important;  /* Thu nhỏ cột ID */
  min-width: 60px;
}

.accounts-table .column-date {
  width: 100px !important;  /* Thu nhỏ cột Ngày tạo */
  min-width: 100px;
}

/* Mở rộng các cột thông tin chi tiết */
.accounts-table .column-account-details,
.accounts-table .column-account-info,
.accounts-table .column-notes {
  width: 18% !important;  /* Mở rộng 3 cột này */
  min-width: 180px;
}

/* Điều chỉnh các cột khác để cân đối bảng */
.accounts-table .column-account-name,
.accounts-table .column-password,
.accounts-table .column-secondary-pw {
  width: 11% !important;
  min-width: 120px;
}

.accounts-table .column-purchase-price,
.accounts-table .column-selling-price {
  width: 8% !important;
  min-width: 90px;
}

.accounts-table .column-status {
  width: 8% !important;
  min-width: 90px;
}

.accounts-table .column-actions {
  width: 10% !important;
  min-width: 100px;
}

/* Đảm bảo nội dung trong các cột rộng có thể cuộn ngang khi quá dài */
.accounts-table .column-account-details,
.accounts-table .column-account-info,
.accounts-table .column-notes {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hoặc hiển thị đầy đủ nội dung khi hover */
.accounts-table td.column-account-details:hover,
.accounts-table td.column-account-info:hover,
.accounts-table td.column-notes:hover {
  white-space: normal;
  overflow: visible;
  position: relative;
  z-index: 1;
}



.image-preview {
    position: relative;
    display: inline-block;width: 100%;
}

.gallery-image-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.remove-image, .remove-gallery-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.remove-image:hover, .remove-gallery-image:hover {
    background-color: #ff0000;
}



.image-preview img, .gallery-image-container img {
    border-radius: 4px;
}


.account-modal label.toggle-switch-label {
    display: block !important;
}


.account-modal-content input {
    margin-bottom: 0px;
}


.fco-account-form input {
    box-shadow: unset !important;
    border-radius: 6px !important;
}

button#upload_gallery_images, button#upload_featured_image {
    text-transform: inherit;
    border-radius: 4px;
}
.account-modal-header h2 {
    text-transform: uppercase;
    font-weight: 600;
}

/* Base button styling */
.btn_image_upload {
  display: inline-flex !important;
  align-items: center !important; 
  gap: 8px !important;
  padding: 10px 16px !important;
  color: #000 !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.btn_image_upload:hover {
  background-color: #8bcc00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn_image_upload:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.btn_image_upload svg {
  width: 20px;
  height: 20px;
}

/* Button spacing when multiple buttons are present */
.btn_image_upload + .btn_image_upload {
  margin-left: 12px;
}

/* Optional hover effect for the icons */
.btn_image_upload:hover svg {
  stroke: #222;
}



/* CSS để tùy chỉnh bảng dữ liệu */
.fconline-accounts-table-wrapper {
    margin: 25px 0;
  
}

#fconline-accounts-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

#fconline-accounts-table th {
    background-color: #aeff00 !important;
    color: #000;
    text-transform: inherit;
    border-bottom: unset;
    padding: 15px 8px;
}

#fconline-accounts-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

#fconline-accounts-table tr:hover {
    background-color: #f9f9f9;
}

/* Style cho badge trạng thái */
.badged {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    color: white;
    display: inline-block;
}

span.badged {
    color: #fff !important;
}

.bg-success {
    background-color: #28a745;
}

span.badged.bg-trash {
    background-color: #dc3545;
}

.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.bg-info {
    background-color: #17a2b8;
}

div#fconline-accounts-table_length {
    width: 68px;
}


/* Button group container */
.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Base button styling */
.button-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

/* Button colors */
.btn-info {
  background-color: #17a2b8;
}

.btn-primary {
  background-color: #007bff;
}

.btn-delete-product {
  background-color: #dc3545;
}

/* Hover effects */
.button-sm:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-sm:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* SVG styling */
.button-sm svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* For anchor tag buttons */
a.button-sm {
  text-decoration: none;
}

button.button-sm {
    margin: 0px;
}

span.post_date_fco {
    color: #000 !important;
    font-size: 14px;
}

table#fconline-accounts-table th {
    background-color: #aeff00;
    color: #000;
    border-bottom: unset;
    text-transform: inherit;
    padding: 16px 8px;
}


table#fconline-accounts-table * {
    color: #000;
}

.dataTables_info {
    color: #fff !important;
}
div#fconline-accounts-table_filter input[type="search"]:focus {
    background-color: unset;
    box-shadow: unset;
     color: #fff !important;
}

.dataTables_wrapper .dataTables_filter input {
    color: #fff;
}
.dataTables_wrapper .dataTables_length select {
    color: #fff !important;
}

div#fconline-accounts-table_length option {
    background-color: #000;
}
/* Responsive cho DataTables */
@media screen and (max-width: 767px) {
    #fconline-accounts-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .btn-group {
        flex-direction: column;
    }
}


h2.mt-3 {
    margin-top: 30px;
}


.fconline-commission-table th {
    background-color: #aeff00;
    color: #000;
    padding: 15px 15px !important;
    border: unset;
    text-transform: inherit;
}

.fconline-commission-table td {
    border: 1px solid;
    padding: 15px 15px !important;
    color: #fff;
}