:root {
    --light-theme-color: color-mix(in srgb, var(--primary), white 92%);
    --light-theme-color2: color-mix(in srgb, var(--primary), white 85%);
    --tp-theme-1-semi: color-mix(in srgb, var(--primary), white 30%);
    /* 10% darker */
    /* Very light version of the theme color */
}

/* The styles for the parent container (usually the overlay for the lightbox) */
.lightbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black background */
    z-index: 1050;
}

.underlined {
    text-decoration: underline;
}

.lightbox-container-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black background */
    z-index: 1051;
}



.lightbox-content {
    /*
  padding: 10px;
  border-radius: 12px;
  z-index: 1051;
  overflow: hidden;
  transform: scale(0.98);
  animation: scaleUp 0.3s ease-out forwards;
  backdrop-filter: blur(12px);
  width: 95%;
  background: #f9f9f9;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    */
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 90vw;
    background-color: white !important;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08) !important; /* Very subtle shadow */
    z-index: 1051 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    display: block !important;
}

[data-theme-version='dark'] .lightbox-content {
    background-color: #212130;
    box-shadow: none;
}

.lightbox-body {
    height: 80vh;
    /* Adjust based on header/footer height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Optional: Add a header for title/close button */
.lightbox-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #333;
}

.box-in-boxes {
    border: 0;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
    border-radius: 15px;
    background-color: white;
    padding: 0.5em 1em;

    /* was 15px before */
}

.lightbox-container-blur {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    /* semi-transparent black background */
    backdrop-filter: blur(5px);
    /* This adds the blur effect */
    -webkit-backdrop-filter: blur(5px);
    /* For Safari support */
    z-index: 1050;
}

[data-theme-version='dark'] .box-in-boxes {
    border: 0;
    background-color: #181818;
    box-shadow: none;
}

[data-theme-version='dark'] select {
    background-color: #212130 !important;
    border-color: #2e2e42 !important;
    color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M7 10l5 5 5-5z"/></svg>') !important;
}

.password-modal {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}

.level-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* Adjust size */
    height: 20px;
    /* Adjust size */
    border-radius: 50%;
    /* Makes it circular */
    background-color: #444444;
    /* Vue green (change as needed) */
    color: white;
    font-size: 10px;
    margin-right: 10px;
}

.ico1-size {
    font-size: 16px !important;
}

.link {
    color: #2563eb;
    cursor: pointer;
}

.product-item {
    margin-bottom: 0.5rem;
}

.root-level {
    padding: 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.children-level {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #ddd;
}

.level-1 {
    margin-top: 0.5rem;
}

.level-2 {
    margin-left: 2rem;
}

.stepButtons {
    display: grid;
    grid-template-columns: repeat(auto-fit, 130px);
    grid-gap: 10px;
}

.cols-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px);
    grid-gap: 10px;
    justify-content: start;
    /* so they align left and don’t stretch */
}

.rounded-box {
    border: 1px solid color-mix(in srgb, var(--tp-theme-1) 10%, white 90%);
    border-radius: 15px;
    box-sizing: border-box;
    padding: 10px;
}

.tp-portfolio-details-info-box {
    padding: 40px 35px;
    border-radius: 15px;
    background: var(--tp-common-white);
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08);
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .tp-portfolio-details-info-box {
        padding: 50px 15px;
    }
}

@media (max-width: 575px) {
    .tp-portfolio-details-info-box {
        padding: 40px 20px;
    }
}

.tp-portfolio-details-info-title {
    font-weight: 700;
    font-size: 22px;
    text-transform: capitalize;
    color: var(--tp-common-black);
}

.tp-portfolio-details-info-icon span {
    font-size: 40px;
    color: var(--tp-theme-1);
    margin-right: 12px;
}

.tp-portfolio-details-info-address {
    border-bottom: 1px solid rgba(21, 19, 19, 0.11);
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.tp-portfolio-details-info-address p {
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
    color: #696969;
    line-height: 1.9;
}

.tp-portfolio-details-info-mail {
    border-bottom: 1px solid rgba(21, 19, 19, 0.11);
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.tp-portfolio-details-info-mail-content span {
    margin-right: 10px;
}

.tp-portfolio-details-info-mail-text p {
    text-transform: capitalize;
    color: #696969;
    margin-bottom: 6px;
}

.tp-portfolio-details-info-open {
    margin-bottom: 30px;
}

.tp-portfolio-details-info-open-icon {
    width: 60px;
    height: 74px;
    text-align: center;
    line-height: 78px;
    border-radius: 10px;
    background-color: var(--tp-theme-1);
    margin-right: 15px;
}

.tp-portfolio-details-info-open-icon span {
    font-size: 30px;
    color: var(--tp-common-white);
}

.tp-portfolio-details-info-open-content p {
    font-size: 16px;
    line-height: 1.2;
    text-transform: capitalize;
    color: #696969;
    margin-bottom: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.ontevaShadow {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px !important;
}

.plan-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    /* Make it take up 100% of the container */
    max-width: none;
    /* Remove the max-width constraint */
    /* Adjust margin if needed */
}

.plan-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.plan-header h2 {
    font-size: 17px !important;
}

.plan-header-white {
    padding: 20px;
    text-align: center;
    position: relative;
    background-color: rgb(251, 251, 251);
}

.summary-header {
    text-align: left !important;
}

.plan-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, transparent, white);
}

.plan-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.plan-subtitle {
    margin: 5px 0 0;
    font-size: 18px;
    font-weight: 500;
}

.plan-price {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    background-color: var(--tp-theme-1-light);
}

.price {
    font-size: 45px;
    font-weight: bold;
    margin: 0;
}

.price-description {
    font-size: 14px;
    color: var(--text-color);
    margin: 10px 0 0;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 20px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 48px;
    /* Big cart icon */
    margin-bottom: 16px;
}

.empty-cart-text {
    font-size: 20px;
    font-weight: bold;
    color: #343a40;
    /* Dark gray text */
    margin-bottom: 8px;
}

.empty-cart-subtext {
    font-size: 14px;
    color: #6c757d;
    /* Light gray text */
}

/* Product List Container */
.product-list {
}

/* Product Item */
.product-item {
    display: flex;
    align-items: flex-start;
    /* Align items to the top */
    justify-content: space-between;
    margin-bottom: 12px;
    /* Space between items */
}

.plan-features {
    padding: 20px;
}

.plan-features {
    padding-bottom: 10px;
    position: relative;
}

.plan-features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, var(--tp-theme-1), color-mix(in srgb, var(--tp-theme-1) 80%, white 20%));
}

.plan-features-simple {
    padding: 20px;
}

.plan-features-simple {
    padding-bottom: 10px;
    position: relative;
}

.plan-features-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: white;
}

/* Product Details */
.product-details {
    flex: 1;
    /* Take up remaining space */
}

/* Product Levels */
.product-level {
    font-size: 16px;
    color: #343a40;
    /* Dark gray text */
}

.product-level-1 {
    font-weight: bold;
    /* Bold for Level 1 */
    font-size: 15px;
    color: var(--tp-theme-1);
    /* Use theme color for Level 1 */
}

.product-level-2 {
    font-size: 13px;
    color: #495057;
    /* Slightly lighter gray for Level 2 */
}

.product-level-3 {
    font-size: 11px;
    color: #6c757d;
    /* Light gray for Level 3 */
}

/* Product Price */
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--tp-theme-1);
    /* Use theme color for price */
    margin-left: 16px;
    /* Space between details and price */
}

.h-benefit {
    height: 40px;
}

.icon-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    display: none;
    position: absolute;
    background: white;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.icon-dropdown-menu.show {
    display: block;
}

.icon-dropdown .btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.top-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    /* Subtle border */
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping to new lines */
    justify-content: flex-start;
    /* or space-between if you prefer */
    gap: 15px 15px;
    /* row-gap, column-gap */
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto 5px;
    background-color: var(--light-theme-color);
    color: var(--tp-theme-1);
    border: 2px solid var(--tp-theme-1);
}

.step-ok {
    background-color: var(--tp-theme-1);
    color: white;
    border-color: var(--tp-theme-1);
}

.top-nav-mobile {
    width: 100%;
    background-color: color-mix(in srgb, var(--tp-theme-1), white 95%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    /* Subtle border */
}

.top-nav-mobile::after {
    display: none !important;
}

@media (max-width: 768px) {
    .step-label,
    .step-description {
        display: none;
    }
    .step {
        min-width: 60px;
        width: 60px;
    }
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Adjust spacing between circle and text */
    flex-direction: row;
    /* Ensure horizontal layout */
}

.step-description {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.active-step-wrapper {
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    /* optional subtle shadow */
}

.active-menu {
    background: var(--tp-theme-1) !important;
    color: white;
}

.small-arrow {
    font-size: 12px;
    color: var(--tp-theme-1);
    margin: 0 5px;
    align-self: center;
}

/* Loading Overlay */
.loading-overlay-wait {
    position: fixed;
    /* Cover the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    z-index: 10000;
    /* Ensure it's on top of everything */
}

.radio-group-horizontal {
    display: flex;
    gap: 20px;
    /* Space between radio buttons */
    flex-wrap: wrap;
    /* Wrap to the next line if needed */
}

/* Container for radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    /* Space between radio buttons */
    flex-wrap: wrap;
    /* Wrap to the next line if needed */
}

/* Custom radio button styling */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between radio button and label */
    cursor: pointer;
    font-size: 14px;
    /* Match the dropdown font size */
    color: #333;
    /* Text color */
}

/* Hide the default radio button */
.custom-radio input[type='radio'] {
    opacity: 0;
    position: absolute;
}

/* Custom radio button circle */
.custom-radio .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid var(--tp-theme-1, #666);
    /* Use --tp-theme-1, fallback to #666 */
    border-radius: 50%;
    /* Make it round */
    position: relative;
    transition: all 0.2s ease;
    /* Smooth transition */
}

/* Inner dot for selected radio button */
.custom-radio .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--tp-theme-1, #007bff);
    /* Use --tp-theme-1, fallback to #007bff */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    /* Start hidden */
    transition: transform 0.2s ease;
    /* Smooth transition */
}

/* Style when radio button is checked */
.custom-radio input[type='radio']:checked + .radio-circle {
    border-color: var(--tp-theme-1, #007bff);
    /* Use --tp-theme-1, fallback to #007bff */
}

/* Style when radio button is checked */
.custom-radio input[type='radio']:checked + .radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
    /* Show inner dot */
}

/* Hover effect */
.custom-radio:hover .radio-circle {
    border-color: var(--tp-theme-1, #007bff);
    /* Use --tp-theme-1, fallback to #007bff */
}

/* Custom checkbox design */
.custom-checkbox label {
    position: relative;
    padding-left: 30px;
    /* Space for the custom checkbox */
    cursor: pointer;
}

/* Custom checkbox box */
.custom-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--tp-theme-1);
    /* Use your theme color */
    border-radius: 4px;
    /* Slightly rounded corners */
    background-color: white;
    transition: all 0.3s ease;
}

/* Custom checkbox checkmark */
.custom-checkbox label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    /* Hide by default */
    width: 10px;
    height: 10px;
    background-color: var(--tp-theme-1);
    /* Use your theme color */
    border-radius: 2px;
    /* Match the box's rounded corners */
    transition: all 0.3s ease;
}

/* When the checkbox is checked, show the checkmark */
.custom-checkbox input[type='checkbox']:checked + label::after {
    transform: translateY(-50%) scale(1);
    /* Show the checkmark */
}

/* When the checkbox is checked, change the box border color */
.custom-checkbox input[type='checkbox']:checked + label::before {
    border-color: var(--tp-theme-1);
    /* Use your theme color */
}

/* Disabled state */
.custom-checkbox input[type='checkbox']:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-checkbox input[type='checkbox']:disabled + label::before {
    border-color: #ccc;
    /* Gray out the border */
    background-color: #f5f5f5;
    /* Light gray background */
}

/*----------------------------------------*/
/* 2.2 Buttons
/*----------------------------------------*/
.tp-theme-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    padding: 17px 41px;
    border-radius: 50px;
    color: var(--tp-common-white);
    background-color: var(--tp-theme-1);
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .tp-theme-btn {
        padding: 17px 35px;
    }
}

.tp-theme-btn.btn-black {
    padding: 11px 41px;
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
}

.tp-theme-btn.btn-black:hover {
    color: var(--tp-common-white);
    background-color: var(--tp-theme-1);
}

.tp-theme-btn.btn-white:hover {
    color: var(--tp-common-black);
    background-color: var(--tp-common-white);
}

.tp-theme-btn.black {
    color: var(--tp-common-white);
    background: var(--tp-common-black);
}

.tp-theme-btn.black:hover {
    color: var(--tp-common-black);
    background: var(--tp-common-white);
}

.tp-theme-btn.transparent-btn {
    color: var(--tp-theme-1);
    background: none;
    border: 1px solid var(--tp-border-1);
}

.tp-theme-btn.transparent-btn:hover {
    border: 1px solid var(--tp-common-black);
}

.tp-theme-btn.transparent-btn-2 {
    padding: 10px 40px;
    border: 1px solid #56646f;
    background: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.tp-theme-btn.transparent-btn-2:hover {
    border: 1px solid var(--tp-common-white);
    background-color: var(--tp-theme-1);
}

.tp-theme-btn:hover {
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
}

.custom-dropdown.dropdown-toggle::after {
    display: none !important;
}

.training-button {
    width: 150px;
}

.tree-view {
    color: #777777;
    font-size: 14px;
}

.tree-item {
    position: relative;
    margin-left: 20px;
    /* Indentation for nested levels */
    padding: 5px 0;
}

.tree-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 1px;
    height: 100%;
    background-color: #ccc;
    /* Vertical connecting line */
}

.tree-item::after {
    content: '';
    position: absolute;
    top: 15px;
    /* Adjust to align with the icon */
    left: -10px;
    width: 10px;
    height: 1px;
    background-color: #ccc;
    /* Horizontal connecting line */
}

.tree-item:last-child::before {
    height: 15px;
    /* Shorten the vertical line for the last child */
}

.tree-item i {
    margin-right: 8px;
    color: #555;
    position: relative;
    z-index: 1;
    /* Ensure icons are above the lines */
}

/* Classes from CSS 2 that are not in CSS 1 */
.mousepointer {
    cursor: pointer !important;
}

.clientModal {
    width: 90vw !important;
    max-width: 90vw !important;
}

.rulesModal {
    width: 90vw !important;
    max-width: 1000px !important;
}

.modal-body {
    height: 80vh;
    /* Occupy 80% of the modal's height */
    overflow-y: auto;
    /* Enable vertical scrollbar if content overflows */
}

.user-bx {
    background: none;
}

.bglight {
    background-color: #f9f9f9;
}

.mini-shadow {
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
        rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
        rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

.jqvmap-zoomin,
.jqvmap-zoomout {
    display: none !important;
}

.contribution {
    max-width: 100px !important;
}

.fontbox {
    font-size: 15px !important;
}

.top-level-table {
    border: 1px solid #dee2e6;
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

.top-level-table th,
.top-level-table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: top;
    line-height: 1.2;
}

table {
    margin-bottom: 2px !important;
}

#DZ_W_TimeLine {
    height: auto;
    /* Default for mobile */
}

@media (min-width: 768px) {
    #DZ_W_TimeLine {
        height: 60vh;
        /* Apply height for non-mobile */
    }
}

.shadow {
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px !important;
}

.lightbox-container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black background */
    z-index: 1100;
}

.lightbox-content2 {
    width: 95%;
    /* or any desired width */
    height: 90vh;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1111;
    border-radius: 10px;
}

#toast-container {
    position: fixed !important;
    z-index: 9999 !important;
    /* Ensure it appears above other elements */
}

.toast {
    margin: 10px !important;
    /* Space between notifications */
}

::-webkit-scrollbar-thumb {
    background: #888 !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.tf-tree {
    padding: 1rem;
}

.tf-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-tree li {
    position: relative;
    margin-left: 60px;
    padding: 0 0 1rem 2rem;
    /* indent child nodes */
}

.tf-tree li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    /* where the vertical line runs */
    width: 1px;
    height: 100%;
    background-color: #ddd;
}

.tf-tree li::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    /* adjust if your .tf-nc boxes are taller/shorter */
    left: 1rem;
    width: 1rem;
    /* horizontal line length */
    height: 1px;
    background-color: #ddd;
}

.tf-tree li:last-child::before {
    height: 0.75rem;
    /* stops the vertical line at the node box */
}

.tf-tree ul > li:first-child {
    margin-top: 1rem;
    /* Add margin to the first node */
}

.tf-tree ul > li:first-child::before {
    top: -1rem;
    /* Align the vertical line to account for the added margin */
    height: calc(100% + 1rem);
    /* Extend the line to cover the added margin */
}

.tf-tree ul > li:not(:first-child)::before {
    top: 0;
    /* Ensure subsequent children start their vertical line at the correct position */
}

.tf-tree .tf-nc {
    display: inline-block;
    position: relative;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    background-color: #fff;
    padding: 0.5em 1em;
    box-shadow: none;
    min-width: 400px;
}

.tf-tree .tf-nc:before,
.tf-tree .tf-nc:after {
    display: none !important;
}

.tf-tree .tf-root::before,
.tf-tree .tf-root::after {
    content: none;
    /* Completely hide the lines */
}

.buttonColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 130px);
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.buttonColumns200 {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.w100 {
    width: 100% !important;
    display: block;
}

.iconAtRight {
    display: grid;
    grid-template-columns: auto 20px;
}

.iconAtLeft {
    display: grid;
    grid-template-columns: 20px auto;
}

.buttonAtRight {
    display: grid;
    grid-template-columns: auto 200px;
    height: 100%;
}

.buttonAtRightAuto {
    display: grid;
    grid-template-columns: auto auto;
    height: 100%;
}

.twoColsAndRightButton {
    display: grid;
    grid-template-columns: auto auto 20px;
    grid-gap: 5px;
}

.compensationColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    grid-gap: 10px;
    font-size: 12px !important;
}

.same-color {
    background-color: #ffffff !important;
}

.diff-color {
    background-color: #f9f9f9 !important;
}

.dayColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 70px);
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.monthColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.stateColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.switchColumns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
    grid-gap: 10px;
    /* Optional: Adds space between columns */
    font-size: 12px !important;
}

.selectedColor {
    border: 2px solid #000;
    /* Example: Add a border */
    border-radius: 50%;
    padding: 5px;
}

.alert-white {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #f1f1f1 !important;
}

.tox {
    border: 1px solid #dbdbdb !important;
    /* Sets a 1px border */
    border-radius: 10px !important;
    /* Optional: Adds rounded corners */
    box-shadow: none !important;
    /* Removes any shadow effects */
}

.tox-tbtn[aria-label='Insert a Variable'] {
    border: 1px solid #ccc !important;
    /* Add a light border */
    border-radius: 4px;
    /* Optional: Add rounded corners */
    padding: 4px 8px;
    /* Adjust padding for better spacing */
    background-color: #f9f9f9;
    /* Optional: Light background */
    transition: background-color 0.2s;
    /* Smooth hover effect */
}

.tox-tbtn[aria-label='Insert a Variable']:hover {
    background-color: #e6e6e6;
    /* Slightly darker background on hover */
}

.f14 {
    font-size: 14px !important;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, 310px);
    grid-gap: 10px;
}

.fontIcon {
    font-size: 20px;
}

.hierarchy {
    position: relative;
    padding-left: 20px;
    margin-left: 20px;
}

.hierarchy-root {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.agent {
    position: relative;
    margin: 12px 0;
}

.agent-info {
    font-weight: 500;
    color: #333;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.agent-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.agent-id {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 4px;
}

.expand-icon {
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.expand-icon:hover {
    transform: scale(1.1);
}

.children {
    margin-top: 12px;
    position: relative;
}

.agent::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -20px;
    height: calc(100% + 24px);
    width: 2px;
    background-color: #e0e0e0;
}

.agent:last-child::before {
    height: 24px;
}

.agent::after {
    content: '';
    position: absolute;
    top: 24px;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: #e0e0e0;
}

.hierarchy-root .agent::before {
    display: none;
}

.hierarchy-root .agent::after {
    display: none;
}

.alert-light {
    background-color: #f9f9f9 !important;
    border: 1px solid #f1f1f1 !important;
    color: #444 !important;
}

.button-at-right {
    display: flex;
    /* Enable Flexbox */
    align-items: center;
    /* Vertically center the items */
    justify-content: space-between;
    /* Push the button to the far right */
}

.custom-table {
    margin-top: 30px;
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    border: 1px solid #dee2e6;
    /* 1px separator */
    padding: 12px;
    text-align: left;
}

.custom-table th {
    background-color: #f8f9fa;
    /* Light gray header */
    font-weight: 600;
}

.custom-table tbody tr:hover {
    background-color: #f1f1f1;
    /* Hover effect */
}

.custom-table input[type='checkbox'] {
    transform: scale(1.2);
    /* Slightly larger checkboxes */
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 40px);
    grid-gap: 5px;
    /* Optional: Adds space between columns */
    font-size: 20px !important;
}

.swal2-popup {
    position: relative;
    background: radial-gradient(circle at top right, var(--light-theme-color2) 0%, white 80%);
    padding: 20px !important;
}

.swal2-title {
    font-size: 20px !important;
    margin-bottom: 0px !important;
    color: var(--primary) !important;
}

.swal2-html-container {
    font-size: 13px !important;
}



.icon-size {
    font-size: 20px !important;
    color: var(--primary);
}

.swal2-icon .swal2-icon-content {
    font-size: 24px !important;
    /* Adjusts the size of the icon content (e.g., Font Awesome icons) */
}

.swal2-popup .swal2-styled {
    font-size: 12px !important;
    /* Smaller font size */
    padding: 8px 16px !important;
    /* Smaller padding */
    border-radius: 4px !important;
    /* Smaller border radius */
    border: none !important;
    /* Remove border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    /* Subtle shadow */
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    /* Smooth transitions */
}

.swal2-popup .swal2-confirm {
    background-color: var(--primary) !important;
    /* Base color */
    color: #fff !important;
    /* Text color */
}

.swal2-popup .swal2-confirm:hover {
    background-color: color-mix(in srgb, var(--primary), black 10%) !important;
    /* Darker shade */
    transform: translateY(-1px);
    /* Slight lift on hover */
}

.swal2-popup .swal2-confirm:active {
    background-color: color-mix(in srgb, var(--primary), black 20%) !important;
    /* Even darker shade */
    transform: translateY(0);
    /* Reset lift */
}

.swal2-popup .swal2-confirm:focus {
    background-color: color-mix(in srgb, var(--primary), black 15%) !important;
    /* Darker shade */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    /* Focus ring */
}

.swal2-popup .swal2-cancel {
    background-color: #6c757d !important;
    /* Gray color for cancel */
    color: #fff !important;
    /* Text color */
}

.swal2-popup .swal2-cancel:hover {
    background-color: #5a6268 !important;
    /* Darker gray for hover */
    transform: translateY(-1px);
    /* Slight lift on hover */
}

.swal2-popup .swal2-cancel:active {
    background-color: #545b62 !important;
    /* Even darker gray for active */
    transform: translateY(0);
    /* Reset lift */
}

.swal2-popup .swal2-cancel:focus {
    background-color: #5a6268 !important;
    /* Darker gray for focus */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    /* Focus ring */
}

.swal2-popup .swal2-deny {
    background-color: #dc3545 !important;
    /* Red color for deny */
    color: #fff !important;
    /* Text color */
}

.swal2-popup .swal2-deny:hover {
    background-color: #c82333 !important;
    /* Darker red for hover */
    transform: translateY(-1px);
    /* Slight lift on hover */
}

.swal2-popup .swal2-deny:active {
    background-color: #bd2130 !important;
    /* Even darker red for active */
    transform: translateY(0);
    /* Reset lift */
}

.swal2-popup .swal2-deny:focus {
    background-color: #c82333 !important;
    /* Darker red for focus */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    /* Focus ring */
}

.swal2-icon.swal2-info {
    color: var(--primary) !important;
    /* Use your theme color */
    border-color: var(--primary) !important;
    /* Optional: Change border color */
}

.loading-overlay {
    position: fixed;
    /* Cover the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    z-index: 1000;
    /* Ensure it's on top of everything */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    /* Light gray border */
    border-top: 4px solid #ffffff;
    /* White border for the spinner */
    border-radius: 50%;
    /* Circular shape */
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    /* Spin animation */
}

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

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

select.form-control {
    appearance: none !important;
    /* Remove default arrow */
    -webkit-appearance: none !important;
    /* For Safari */
    -moz-appearance: none !important;
    /* For Firefox */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    /* Custom arrow */
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    /* Position the arrow */
    background-size: 20px 20px !important;
    /* Size of the arrow */
    padding-right: 2rem !important;
    /* Add space for the arrow */
}

.btn-xs {
    padding: 0.1rem 0.25rem;
    /* Smaller padding */
    font-size: 13px;
    /* Smaller font size */
    line-height: 1;
    /* Tighter line height */
    border-radius: 5px;
    /* Smaller border radius */
}

:root {
    --bs-success: #07a326;
    /* Replace with your desired green */
    --bs-success-rgb: 7, 163, 38;
    /* RGB version if needed */
}

.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #069220 !important;
    /* manually chosen darker green */
    border-color: #069220 !important;
}

.scratch {
    text-decoration: line-through !important;
}

select {
    background-color: #ffffff !important;
}

default-select {
    line-height: 2.6rem;
}

.letter {
    font-size: 36px;
    border-radius: 15px;
    color: white;
    width: 80px;
}

.text-email {
    color: #33c5ff !important;
}

.d-grid-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.step-box {
    border: 1px solid #f1f1f1;
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.formula-builder select {
    min-width: 80px;
    transition: all 0.2s;
}

.formula-builder select:focus {
    z-index: 2;
    position: relative;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.raw-table-wrapper {
    overflow-x: auto;
}

.raw-table {
    border-collapse: separate;
    /* Changed from collapse */
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

.raw-table th,
.raw-table td {
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
}

.raw-table .form-control,
.raw-table .form-select {
    height: 31px;
    /* Match Bootstrap's input-group-sm height */
    border-radius: 0;
}

.raw-table .form-control:not(:first-child),
.raw-table .form-select:not(:first-child) {
    margin-left: -1px;
}

.raw-table .d-flex > :first-child {
    border-top-left-radius: 0.25rem !important;
    border-bottom-left-radius: 0.25rem !important;
}

.raw-table .d-flex > :last-child {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.level-number {
    width: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.operation-select {
    width: 60px !important;
    flex-shrink: 0;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}

.tp-checkout-input {
    margin-top: 10px !important;
}

.tp-checkout-input label {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.same-height-alert {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-group-header {
    border: 1px solid #dee2e6;
    border-left: 5px solid #0d6efd;
    background-color: #f8f9fa;
    transition: all 0.3s ease-in-out;
}

.product-group-header:hover {
    background-color: #eef4ff;
}

.sub-product-grid label {
    font-weight: 500;
}

.dlabnav.menu-toggle {
    left: 0;
}

.carrier-logo {
    max-height: 55px !important;
    max-width: 200px !important;
}

@media (max-width: 1024px) {
    .carrier-logo {
        max-width: 80px !important;
    }
}

.icongrid {
    font-size: 18px;
}

.agent-tree-list {
    list-style: none;
    padding-left: 1rem;
    border-left: 1.5px solid #e3e3e3;
}

.agent-tree-node {
    margin-bottom: 0.5rem;
    position: relative;
}

.agent-tree-label {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.1s;
}

.agent-tree-label:hover {
    background: #f8f9fa;
}

.agent-caret {
    font-size: 1.1em;
    cursor: pointer;
    margin-right: 0.3rem;
}

.agent-pointer {
    cursor: pointer;
}

.agent-tree-children {
    margin-left: 1.5rem;
    border-left: 1px dashed #d1d5db;
    padding-left: 0.5rem;
}



pre {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    font-size: 12px;
}

.quick-setup {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
}

.dedupe-config {
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.advanced-config {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.field-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.field-selector .form-check {
    min-width: 150px;
}

.tracking-config {
    background-color: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}



.tree-view {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tree-node {
    margin: 2px 0;
}

.tree-node-header {
    transition: background-color 0.2s;
    user-select: none;
}

.tree-node-header:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.tree-node-header.selected {
    background-color: rgba(0, 123, 255, 0.2);
    font-weight: 500;
}

.tree-children {
    border-left: 1px dashed #dee2e6;
    margin-left: 10px;
    padding-left: 10px;
}

.fa-brackets-square::before {
    content: "[]";
    font-style: normal;
    font-weight: bold;
}

.fa-brackets-curly::before {
    content: "{}";
    font-style: normal;
    font-weight: bold;
}



.field-name {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.field-type {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

.example-value {
    color: #28a745;
    font-family: 'Courier New', monospace;
}


.indent-1 {
    margin-left: 2rem;
}

.indent-2 {
    margin-left: 4rem;
}

.note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin: 1rem 0;
}















.lightbox-content {
    background: #fff !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Body Styles */
.lightbox-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

/* Section Styles */
.config-section,
.codes-section,
.detail-section {
    margin-bottom: 24px;
}

.section-header,
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h5,
.detail-header h6 {
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.section-content {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Model Badges */
.model-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-badge {
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s ease;
    user-select: none;
}

.model-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Codes Container */
.codes-container {
    margin-top: 20px;
}

.codes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(95vh - 300px);
    overflow-y: auto;
    padding-right: 8px;
}

/* Code Card Styles */
.code-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.code-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.code-card.incomplete {
    border-color: #ef4444;
    background: #fef2f2;
}

.code-card.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.code-name {
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.code-info small {
    font-size: 0.75rem;
}

/* Code Details Panel */
.code-details-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: calc(95vh - 300px);
    overflow-y: auto;
}

.detail-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section:last-child {
    border-bottom: none;
}

.scrollable-section {
    max-height: 400px;
    overflow-y: auto;
}

/* Product Cards */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-title {
    color: #3b82f6;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.compensation-grid {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.grid-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.grid-header h6 {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

/* Form Improvements */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar Styling */
.codes-list::-webkit-scrollbar,
.code-details-panel::-webkit-scrollbar,
.scrollable-section::-webkit-scrollbar {
    width: 6px;
}

.codes-list::-webkit-scrollbar-track,
.code-details-panel::-webkit-scrollbar-track,
.scrollable-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.codes-list::-webkit-scrollbar-thumb,
.code-details-panel::-webkit-scrollbar-thumb,
.scrollable-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.codes-list::-webkit-scrollbar-thumb:hover,
.code-details-panel::-webkit-scrollbar-thumb:hover,
.scrollable-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .lightbox-content {
        width: 98vw !important;
        height: 98vh !important;
        margin: 1vh 1vw;
    }

    .codes-list {
        max-height: 200px;
    }

    .code-details-panel {
        height: auto;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .lightbox-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .header-left,
    .header-right {
        justify-content: center;
    }

    .section-header,
    .detail-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}












/* Compensation Card Styles */
.compensation-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.compensation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compensation-card-child {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    margin: 12px;
}

.compensation-simple {
    margin-bottom: 16px;
}

/* Headers */
.compensation-header {
    padding: 16px 20px;
    border-bottom: 2px solid #e5e7eb;
}

.compensation-title {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.compensation-subheader {
    background: #f3f4f6;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.compensation-subtitle {
    color: #374151;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Content Area */
.compensation-content {
    padding: 20px;
}

/* Tiers Container */
.tiers-container {
    display: grid;
    gap: 16px;
}

.tier-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.tier-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #d1d5db;
}

.tier-badge i {
    color: #f59e0b;
    font-size: 0.875rem;
}

.tier-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

/* Value Display */
.tier-value,
.comp-value,
.modifier-value,
.timeline-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.value-label,
.comp-label,
.modifier-label,
.timeline-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-amount,
.comp-value strong,
.modifier-value,
.timeline-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.value-money {
    color: #059669;
}

.value-percent {
    color: #3b82f6;
}

/* Modifiers Grid */
.modifiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d1d5db;
}

.modifier-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.modifier-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 50%;
    color: #3b82f6;
    font-size: 0.875rem;
}

.modifier-content {
    flex: 1;
}

.modifier-value {
    font-size: 1rem;
}

/* Single Compensation */
.single-compensation {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.comp-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comp-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.25rem;
}

.comp-details {
    display: flex;
    flex-direction: column;
}

/* Timeline for Modifiers */
.modifiers-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #d1d5db;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.timeline-marker {
    color: #6b7280;
    font-size: 0.625rem;
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-value {
    font-size: 0.875rem;
}

/* Children Container */
.compensation-children {
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tier-value {
        align-items: flex-start;
    }

    .modifiers-grid {
        grid-template-columns: 1fr;
    }

    .modifiers-timeline {
        flex-direction: column;
    }
}

/* Icons */
.fa-dollar-sign {
    font-size: 0.875em;
}

.fa-percent {
    font-size: 0.75em;
    margin-left: 2px;
}









/* Dashboard Totals Card */
.dashboard-totals-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.totals-header {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px 12px 0 0;
}

.total-main {
    text-align: center;
    margin-bottom: 30px;
}

.total-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.total-amount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.total-count {
    font-size: 16px;
}

.total-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
}

.stat-icon.direct {
    background: rgba(16, 185, 129, 0.3);
}

.stat-icon.downline {
    background: rgba(59, 130, 246, 0.3);
}

.stat-details {
    text-align: left;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

/* Sales Distribution */
.sales-distribution {
    padding: 20px 30px;
    background: #f1f1f1;
}

.distribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.distribution-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.distribution-percentage {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.distribution-progress {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.bg-gradient-success {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* Period Cards */
.period-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    height: 100%;
}

.period-header {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
}

.period-badge {
    background: #eff6ff;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.period-total {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.period-total-label {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.period-total-amount {
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
}

.period-breakdown {
    padding: 16px 0;
}

.breakdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.breakdown-item:hover {
    background: #f9fafb;
}

.breakdown-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    font-size: 14px;
    margin-right: 12px;
}

.breakdown-icon.direct {
    background: #d1fae5;
    color: #065f46;
}

.breakdown-icon.downline {
    background: #dbeafe;
    color: #1e40af;
}

.breakdown-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    color: #6b7280;
    font-size: 14px;
}

.breakdown-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

/* Client Stat Cards */
.client-stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card-body {
    padding: 24px;
    position: relative;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 16px;
}

.client-stat-card.active .stat-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #ffffff;
}

.client-stat-card.cancelled .stat-card-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #ffffff;
}

.client-stat-card.pending .stat-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
}

.client-stat-card.underwriting .stat-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #ffffff;
}

.stat-card-title {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card-number {
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card-desc {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.stat-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 16px;
}

.stat-card-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.stat-card-link:hover {
    color: #2563eb;
    gap: 4px;
}

/* Sales Table */
.sales-table-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sales-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sales-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.sales-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

.sales-table {
    margin: 0;
}

.sales-table thead {
    background: #f9fafb;
}

.sales-table thead th {
    border: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-content {
    display: flex;
    align-items: center;
}

.sales-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.sales-row:hover {
    background: #f9fafb;
}

.sales-table tbody td {
    padding: 16px;
    border: none;
    vertical-align: middle;
}

.sale-id {
    color: #6b7280;
    font-size: 13px;
    font-family: monospace;
}

.client-link,
.agent-link {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.client-link:hover,
.agent-link:hover {
    color: #2563eb;
}

.client-info,
.agent-info {
    display: flex;
    align-items: center;
}

.sale-date {
    color: #374151;
    font-size: 14px;
}

.source-url {
    color: #6b7280;
    font-size: 13px;
    font-family: monospace;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.agent-name {
    color: #374151;
    font-size: 14px;
}

.product-count {
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    display: inline-flex;
    align-items: center;
}

.sale-amount {
    font-weight: 600;
    font-size: 14px;
}

.sale-amount.premium {
    color: #374151;
}

.sale-amount.commission {
    color: #059669;
}

.sale-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.sale-type-badge.direct {
    background: #d1fae5;
    color: #065f46;
}

.sale-type-badge.downline {
    background: #dbeafe;
    color: #1e40af;
}

/* Empty State */
.empty-state {
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .total-amount {
        font-size: 36px;
    }

    .total-stats {
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .sales-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-responsive {
        font-size: 13px;
    }

    .sales-table thead th {
        padding: 8px;
        font-size: 11px;
    }

    .sales-table tbody td {
        padding: 12px 8px;
    }
}

@media (max-width: 576px) {
    .totals-header {
        padding: 20px;
    }

    .total-amount {
        font-size: 28px;
    }

    .period-card,
    .client-stat-card {
        margin-bottom: 16px;
    }
}




.stats-dashboard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 24px;
}

.stats-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.stats-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    margin: 0 auto 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 250px;
}

.chart-wrapper {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-canvas {
    max-height: 180px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}



.expanded-stats {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: all 0.2s ease;
}

.ranking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ranking-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.website-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #f9fafb;
    border-radius: 4px;
}

.metric-label {
    color: #6b7280;
    font-size: 14px;
}

.metric-value {
    font-weight: 600;
    font-size: 14px;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #f3f4f6;
}

.funnel-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.funnel-percentage {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0;
}

.funnel-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-analysis-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.product-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.product-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.coverage-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coverage-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.coverage-label {
    color: #6b7280;
    font-size: 14px;
}

.coverage-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.insight-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid;
}

.insight-success {
    border-left-color: #10b981;
}

.insight-warning {
    border-left-color: #f59e0b;
}

.insight-info {
    border-left-color: #3b82f6;
}

.insight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
}

.insight-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.insight-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.no-data {
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
    text-align: center;
}


.product-table-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}


.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
}

.product-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.product-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-showcase-info {
    text-align: center;
    flex: 1;
}

.product-showcase-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 5px;
}

.product-showcase-stats {
    font-size: 13px;
}

.product-showcase-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Plans Showcase Styles */
.plans-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.plan-showcase-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.plan-showcase-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.rank-number {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.plan-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.plan-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.plan-details {
    flex: 1;
}

.plan-product-name {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 2px;
}

.plan-name {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.plan-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.plan-stat {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.plan-stat .stat-label {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-stat .stat-value {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-showcase {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .product-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .plans-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


.stat-card.active-dashboard {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
}

.stat-card.active-stat {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.breakdown-item.bg-light {
    background-color: #f9fafb !important;
    border-radius: 8px;
}

.text-decoration-none {
    text-decoration: none !important;
    color: inherit;
}

.d-block {
    display: block;
}

.flex-fill {
    flex: 1 1 auto;
}

.gap-3 {
    gap: 1rem;
}








.dashboard-option {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
}

.dashboard-option:hover {
    background: #f9fafb;
    border-color: var(--bs-primary, #0d6efd);
    transform: translateY(-1px);
}

.dashboard-option.active-dashboard {
    background: #f9fafb;
    border-color: var(--bs-primary, #0d6efd);
    border-width: 2px;
}

.dashboard-option .breakdown-icon {
    background: #f3f4f6;
    color: #6b7280;
}

.dashboard-option.active-dashboard .breakdown-icon {
    /* Will be overridden by bg-primary text-white classes */
}

.dashboard-option .breakdown-details {
    flex: 1;
}

.dashboard-option .breakdown-label {
    color: #374151;
    font-weight: 500;
}

.dashboard-option.active-dashboard .breakdown-label {
    color: var(--bs-primary, #0d6efd);
}




.product-table-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.demographic-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.demographic-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.demographic-details {
    flex: 1;
}

.demographic-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demographic-value {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 768px) {
    .demographics-grid {
        grid-template-columns: 1fr;
    }
}








/* Optional: Custom btn-group styling for tabs */
.tabs-container .btn-group .btn {
    border-radius: 0;
    transition: all 0.2s ease;
}

.tabs-container .btn-group .btn:first-child {
    border-radius: 6px 0 0 6px;
}

.tabs-container .btn-group .btn:last-child {
    border-radius: 0 6px 6px 0;
}

/* Fix border overlap */
.tabs-container .btn-group .btn+.btn {
    margin-left: -1px;
}

.tabs-container .btn-group .btn.btn-primary+.btn.btn-outline-primary {
    border-left-color: transparent;
}

.tabs-container .btn-group .btn:hover {
    transform: none;
    /* Remove individual button hover transform */
    z-index: 1;
}





.groups-p-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}



.title-and-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}








/* TF-Tree styles for agent tree */
.tf-tree .tree-node-header {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

.tf-tree .tree-node-header:hover {
    background-color: #e9ecef;
}

.tf-tree .btn-link {
    text-decoration: none;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tf-tree .btn-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Special styling for top-level agents (level 0) */
.agent-tree>.tree-node:first-child>.tree-node-header[style*="marginLeft: 0px"] {
    background-color: #e7f3ff;
    border-color: #b3d9ff !important;
}

/* Badge styling */
.agent-tree .badge {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 600;
}

.f14 {
    font-size: 14px;
}

/* Remove default margins/padding from tree containers */
.agent-tree-children {
    padding: 0;
    margin: 0;
}





/* Enhanced Responsive Form Builder Styles */

.field-config-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.field-config-row:hover {
    background-color: #f8f9fa !important;
}

.field-info {
    min-width: 0;
    /* Allows text-truncate to work in flex */
}

.width-selector select {
    font-family: monospace;
    font-weight: 600;
}

.width-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.width-indicator .progress {
    border-radius: 4px;
    background-color: #e9ecef;
}

.width-indicator small {
    font-size: 10px;
    margin-top: 2px;
}

/* Device Frame Styles */
.device-frame {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.device-frame.device-desktop {
    width: 1200px;
    max-width: 100%;
    min-height: 600px;
    border: 8px solid #e9ecef;
}

.device-frame.device-tablet {
    width: 768px;
    max-width: 100%;
    min-height: 500px;
    border: 6px solid #6c757d;
    border-radius: 20px;
}

.device-frame.device-mobile {
    width: 375px;
    max-width: 100%;
    min-height: 600px;
    border: 4px solid #343a40;
    border-radius: 25px;
    position: relative;
}

.device-frame.device-mobile::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #343a40;
    border-radius: 0 0 4px 4px;
}

.device-screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

/* Preview container scaling */
.preview-container {
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

/* Responsive breakpoints table */
.table-sm .badge {
    font-size: 10px;
    padding: 3px 6px;
}

/* Field list improvements */
.field-list {
    max-height: calc(70vh - 300px);
    overflow-y: auto;
}

.field-list::-webkit-scrollbar {
    width: 4px;
}

.field-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.field-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

/* Layout action buttons */
.btn-group .btn-sm {
    font-size: 11px;
    padding: 4px 8px;
}

/* Auto-layout indicator */
.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.border-info {
    border-color: #0dcaf0 !important;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    .device-frame.device-desktop {
        width: 100%;
        border-width: 4px;
    }

    .device-frame.device-tablet {
        width: 100%;
        border-width: 3px;
    }

    .field-config-row .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }

    .width-indicator {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .width-indicator .progress {
        width: 40px !important;
    }
}

/* Smooth transitions for viewport changes */
.preview-container * {
    transition: width 0.3s ease, margin 0.3s ease;
}

/* Enhanced field selection state */
.field-config-row.bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.field-config-row.border-primary {
    border-color: #0d6efd !important;
}


.second-level-children {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #dee2e6;
}



.custom-dropdown-btn {
    /* Remove the default dropdown arrow */
    background-image: none !important;
    padding: 0.25rem 0.5rem !important;
}

.custom-dropdown-btn::after {
    /* Completely remove the dropdown arrow */
    display: none !important;
}

