/* Custom Submit Button Styles */
.btn-custom,#generateButton,#addDataPointButton {
    color: #FFFFFF !important;
    border-width: 0px !important;
    border-radius: 100px;
    font-size: 14px;
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background-color: #793aff;
    padding: 10px 20px;
}

.btn-custom-actions,.btn-campaign-actions {
    color: #FFFFFF !important;
    border-width: 0px !important;
    font-size: 14px;
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background-color: #793aff;

}

.btn-custom-actions:active, .btn-campaign-actions:active,.btn-custom:active {
    background-color: #793aff !important; 
}

.btn-copy{
    padding: 6px 12px;
    font-size: 10px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-top: 13px;
}


.btn-custom:hover {
    background-color: #631cfb!important;
    color: white!important;
    transform: translateY(-2px);
}

.btn-custom-actions:hover,.btn-campaign-actions:hover {
    background-color: #631cfb!important;
    color: white!important;
    transform: translateY(-2px);
}



/* Custom Table Styles */
.vha-dashboard table {
    background-color: #ffffff;
    border: 1px solid #dee2e6; /* Border for table */
    width: 100%; /* Full width */

}


/* Ensure table header text is centered */
.vha-dashboard table thead th {
    text-align: center; /* Center-align the table headers */
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
}


/* Optional Table Row Styling */
.vha-dashboard table tbody tr {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 10px;
}

    #locationTable th,#locationTable td {
        font-size: 15px;
    }


/* Custom Message Styles for Non-Customers */
.not-customer-message h3{
    color: #FFFFFF; /* White text color */
    background-color: #ff0000; /* Optional: Add a background color if needed */
    padding: 20px;
    border-radius: 5px;
}


#loading-spinner {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-weight: 400;
  font-size: 15px;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: linear-gradient(90deg,#8b67f6 50%,#0000 0) right/200% 100%;
  animation: l21 4s infinite linear;
}

#loading-spinner::before {
  content: "Updating Dashboard .....";
  color: #fff;
  padding: 10px;
  background: inherit;
  background-image: linear-gradient(90deg,#8b67f6 50%,#000 0);
  -webkit-background-clip: text;
  background-clip: text;
}


#loading-spinner1 {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-weight: 400;
  font-size: 12px;
  width: 100%;
  margin-top: 40px;
  padding: 0px 5px;
  text-align: left;
  background: linear-gradient(90deg,#8b67f6 50%,#0000 0) right/200% 100%;
  animation: l21 4s infinite linear;
}

#loading-spinner1::before {
  content: "Connecting ....";
  color: #fff;
  padding: 0px;
  background: inherit;
  background-image: linear-gradient(90deg,#8b67f6 50%,#000 0);
  -webkit-background-clip: text;
  background-clip: text;
}

#loading-spinner2 {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-weight: 400;
  font-size: 14px;
  width: 100%;
  border-radius: 5px;
  padding: 10px 5px;
  text-align: left;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #7b2cfa, 50%,#0000 0) right/200% 100%;
  animation: l21 10s infinite linear;
}

#loading-spinner2::before {
  content: "Saving Changes ....";
  color: #fff;
  padding: 0px;
  background: inherit;
  background-image: linear-gradient(90deg,#8b67f6 50%,#000 0);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes l21 {
  100% { background-position: left; }
}


 .modal-backdrop {
      /* bug fix - no overlay */    
      display: none;    
}

.modal{
    /* bug fix - custom overlay */   
    background-color: rgba(0, 0, 0, 0.5); /* Slightly transparent black */
}



.modal-dialog {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    min-height: 100vh;       /* Ensure full viewport height */
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto; /* Reduce margin for smaller screens */
    }
}



/* Custom button styles */
.btn-custom-actions,.btn-campaign-actions {
    background-color: #793aff;
    color: #ffffff;
    border: none;
    padding: 0px;
}

.save-btn, .delete-btn, .delete-btn-campaign {
    background-color: #793aff;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 15px;
    text-transform: uppercase;
    border: none;
}

.fa.fa-search,.fa.fa-clone {
    padding: 10px 15px;
    font-size: 25px;
}

.save-btn {
    margin-right: auto;
}

.delete-btn,.delete-btn-campaign {
    background-color: #793aff;
    margin-left: auto;
}

.save-btn:hover, .delete-btn:hover, .delete-btn-campaign:hover {
    background-color: #651ce5; /* Slightly darker purple for hover */
}

.btn-custom-actions i, .btn-campaign-actions i {
    font-size: 25px;
}


.small-font-textarea {
    font-size: 12px; /* Adjust this value to your desired font size */
}

.custom-bg-purple {
    background-color: #efe9ff;
    color: #000000;
}

.json-sample-link {
    font-size: 11px;
    color: #793aff;
    text-decoration: underline;
}

.hidden-call-center-item,
.hidden-chatbot-item,.hidden-campaign-item {
    display: none !important;
}

/* Style the input fields to accommodate the eye icon */
.form-control {
    padding-right: 2.5rem; /* Add padding to the right to make space for the icon */
}

/* Style for the eye icon to position it inside the input field */
.toggle-view-eye i {
    color: #6c757d; /* Optional: Set color for the icon */
    font-size: 1rem; /* Adjust size as needed */
}



/*Start Table Responsiveness*/
/* Make the table responsive */
.table-wrapper {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    width: 100%;
}

#locationTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Default layout */
}

#locationTable th, 
#locationTable td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

#locationTable th {    
    white-space: nowrap; /* Prevent text wrapping for better readability */
}

/* Hide PhoneID and API Key columns on smaller screens */
@media (max-width: 768px) {
    #locationTable th:nth-child(2),  /* PhoneID header */
    #locationTable td:nth-child(2),  /* PhoneID data */
    #locationTable th:nth-child(3),  /* API Key header */
    #locationTable td:nth-child(3) { /* API Key data */
        display: none; /* Hide these columns on small screens */
    }

    .btn-custom-actions,.delete-btn, .delete-btn-campaign{
        padding: 4px 8px;
        font-size: 16px;
    }

    .btn-custom-actions i, .btn-campaign-actions i{
        font-size: 16px;
    }

    #loading-spinner,#loading-spinner::before {
        font-size: 11px;
        padding: 5px;
    }

    #locationTable th,#locationTable td,.btn-custom{
        font-size: 12px;
        white-space: normal;
        text-align: center;  /* Horizontally center the text */
        vertical-align: middle; /* Vertically center the text */
        line-height: 1.2em;
    }


    
}


/*End Table Responsiveness*/


ul#main-dashboard-menu-mobile {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}


#savedlocation,
#savedassistant,#reloading,#webhook-success,#webhook-fail,#webhook-txt {
    z-index: 9999; /* Ensure it's above other elements */
    color: #793aff !important;
}

 #notification-message,#notification-message-saving-location,#notification-message-creating-campaign, #notification-message-saving-campaign {
    z-index: 9999;
    color: #5200ff !important;
    background: #793aff30;
    border: 1px dashed #793aff;
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 0px auto;
}

#locationProviderFieldsStatus.vha-provider-loading,
#campaignProviderFieldsStatus.vha-provider-loading,
#viewProviderFieldsStatus.vha-provider-loading,
#viewCampaignProviderFieldsStatus.vha-provider-loading {
    color: #793aff !important;
    font-weight: 600;
}

.vha-provider-loading-dots {
    display: inline-flex;
    gap: 1px;
    margin-left: 2px;
    color: #793aff;
}

.vha-provider-loading-dots span {
    animation: vha-provider-loading-dot 1.15s infinite ease-in-out;
    opacity: 0.25;
}

.vha-provider-loading-dots span:nth-child(2) {
    animation-delay: 0.12s;
}

.vha-provider-loading-dots span:nth-child(3) {
    animation-delay: 0.24s;
}

.vha-provider-loading-dots span:nth-child(4) {
    animation-delay: 0.36s;
}

.vha-provider-loading-dots span:nth-child(5) {
    animation-delay: 0.48s;
}

.vha-autosave-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-size: 0.72rem;
    font-weight: 700;
}

.vha-provider-check-btn {
    border: 0;
    background: transparent;
    color: #198754;
    font-size: 1rem;
    line-height: 1;
    padding: 0.15rem 0.25rem;
}

.vha-provider-check-btn:hover,
.vha-provider-check-btn:focus {
    background: transparent;
    color: #146c43;
    box-shadow: none;
}

.vha-provider-check-btn:disabled {
    color: #86c59c;
    opacity: 0.8;
}

.vha-floating-check-btn {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    z-index: 5;
}

.vha-access-check-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.55rem;
    z-index: 6;
}

.vha-confirm-modal .modal-dialog {
    max-width: 420px;
}

.vha-confirm-modal .modal-content {
    border: 1px solid rgba(121, 58, 255, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(21, 5, 43, 0.35);
    overflow: hidden;
}

.vha-confirm-modal .modal-body {
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 0%, rgba(121, 58, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
}

.vha-confirm-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #793aff;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(121, 58, 255, 0.3);
    margin-bottom: 1rem;
}

.vha-confirm-title {
    color: #1d1733;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.vha-confirm-copy {
    color: #5b536f;
    margin: 0 auto;
    max-width: 310px;
}

.vha-confirm-cancel {
    border: 1px solid #ded8ee;
    color: #4d465e;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
}

.vha-confirm-delete {
    border: 0;
    color: #ffffff;
    background: #793aff;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(121, 58, 255, 0.25);
}

.vha-confirm-delete:hover,
.vha-confirm-delete:focus {
    color: #ffffff;
    background: #651ce5;
}

.vha-location-table-loading-row td {
    text-align: center;
    vertical-align: middle;
    padding: 1rem 0.75rem !important;
    background: #ffffff;
    height: 64px;
}

.vha-table-skeleton {
    display: inline-block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #efeafc 0%, #f8f5ff 45%, #e7dcff 70%, #efeafc 100%);
    background-size: 220% 100%;
    animation: vha-table-skeleton-shimmer 1.15s ease-in-out infinite;
}

.vha-table-skeleton-location {
    width: min(120px, 70%);
}

.vha-table-skeleton-provider {
    width: min(100px, 60%);
}

.vha-table-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 34px;
}

.vha-table-loader span {
    display: block;
    width: 6px;
    height: 20px;
    border-radius: 999px;
    background: #793aff;
    animation: vha-table-loader-bar 0.9s ease-in-out infinite;
}

.vha-table-loader span:nth-child(2) {
    animation-delay: 0.12s;
}

.vha-table-loader span:nth-child(3) {
    animation-delay: 0.24s;
}

.vha-table-loader span:nth-child(4) {
    animation-delay: 0.36s;
}

@keyframes vha-table-loader-bar {
    0%, 100% {
        opacity: 0.45;
        transform: scaleY(0.55);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes vha-table-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes vha-provider-loading-dot {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

#webhook-success,#webhook-fail,#webhook-txt{
    margin-top: 60px;
}


.custom-modal-width {
    width: 90%; /* Adjust as needed */
    max-width: 1024px; /* Adjust as needed */
}
input#dataPointName {
    padding: 6px;
}


/*header css*/
#top-header {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    
}

#top-header a {
    color: #7b2bfa;
}

.ellipsis-menu-container { position: relative; display: inline-block; }
          .ellipsis-btn {
            background: none;
            border: none;
            font-size: 24px;
            line-height: 1;
            color: #333;
            cursor: pointer;
            padding: 0 8px;
          }
          .ellipsis-popup {
            display: none;
            position: absolute;
            top: 100%; right: 0;
            margin-top: 4px;
            background: #fff;
            border: 1px solid #ccc;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            border-radius: 4px;
            z-index: 1000;
            min-width: 170px;
            text-align: left;

          }
          .ellipsis-popup a {
            display: block;
            padding: 8px 12px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
          }
          .ellipsis-popup a:hover {
            background-color: #f0f0f0;
          }

          

#workspace-title{
    width: 80%;
    max-width: 1080px;
    margin: auto;
    color: #6c757d;
}


/*header end*/


/* Full-screen overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent */
    z-index: 9999; /* on top of other elements */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-bar {
  position: relative;
  width: 100%;
  height: 4px;  /* Adjust height as needed */
  background-color: #f3f3f3; /* Background color of the bar */
  overflow: hidden;
}

.loading-bar::before {
  content: '';
  position: absolute;
  left: -100%; /* Start off-screen */
  width: 100%;
  height: 100%;
  background-color: #3498db; /* Color of the moving bar */
  animation: loading 1.5s linear infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}


/* Container that looks like a battery */
.battery {
  position: relative;
  width: 120px; /* adjust width as needed */
  height: 40px; /* adjust height as needed */
  border: 2px solid #3498db;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

/* Battery terminal */
.battery::after {
  content: "";
  position: absolute;
  top: 25%;
  right: -10px;
  width: 8px;
  height: 50%;
  background-color: #3498db;
  border-radius: 2px;
}

/* The fill that animates inside the battery */
.battery-level {
  height: 100%;
  background-color: #3498db;
  width: 0; /* start empty */
  animation: batteryFill 2s linear infinite;
}

/* Keyframes for the battery fill animation */
@keyframes batteryFill {
  0%   { width: 0%; }
  50%  { width: 100%; }
  100% { width: 0%; }
}


/* Container for the candlestick loader */
.candlestick-loader {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100px;   /* Adjust container width as needed */
  height: 30px;   /* Overall height for the loader */
}

/* Style for each bar */
.candlestick-loader .bar {
  width: 12px;                /* Width of each bar */
  margin: 0 3px;              /* Spacing between bars */
  background: #793aff;        /* Bar color */
  animation: candlestick 1s ease-in-out infinite;
}

/* Add delays to create a sequential effect */
.candlestick-loader .bar:nth-child(1) {
  animation-delay: 0s;
}
.candlestick-loader .bar:nth-child(2) {
  animation-delay: 0.1s;
}
.candlestick-loader .bar:nth-child(3) {
  animation-delay: 0.2s;
}
.candlestick-loader .bar:nth-child(4) {
  animation-delay: 0.3s;
}

.vha-submit-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 120px;
  text-align: center;
}

.btn-custom.vha-button-loading,
.btn-custom[aria-busy="true"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 44px;
  background-color: #793aff !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
  text-align: center !important;
}

.vha-submit-candle-loader {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  gap: 3px;
  width: 34px;
  height: 18px;
  overflow: visible;
}

.vha-submit-candle-loader .bar {
  display: inline-block;
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
  animation: vha-submit-candle 0.9s ease-in-out infinite;
}

.vha-submit-candle-loader .bar:nth-child(1) {
  animation-delay: 0s;
}

.vha-submit-candle-loader .bar:nth-child(2) {
  animation-delay: 0.1s;
}

.vha-submit-candle-loader .bar:nth-child(3) {
  animation-delay: 0.2s;
}

.vha-submit-candle-loader .bar:nth-child(4) {
  animation-delay: 0.3s;
}

button[aria-busy="true"] .vha-submit-loading {
  color: inherit;
}

@keyframes vha-submit-candle {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Keyframes for the candlestick animation */
@keyframes candlestick {
  0% {
    height: 20%;
  }
  50% {
    height: 100%;
  }
  100% {
    height: 20%;
  }
}


.custom-dropdown {
    width: 250px; /* Adjust width as desired */
    float: right; /* Aligns the dropdown to the right */
}


/* Style for the display area, like a code editor */
.code-editor-box {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-all;
  border-radius: 4px;
  height: 100%; /* Fills the container's height */
  box-sizing: border-box;
}

/* Spinner overlay covers the display area */
#loading-overlay-candle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2; /* Ensure it's above the content */
}

/* Simple keyframes for the loading animation */
@keyframes loading {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}



.et_pb_column.et_pb_column_1_4.et_pb_column_2.et_pb_css_mix_blend_mode_passthrough.et_pb_column--with-menu {
    z-index:1;
}


p.order-again {
    display: none!important;
}

.assistant-circle.form-check-input {
    border-radius: 50%;
}

#assistantSelect.form-select,
#assistantNameInput.form-control {
    min-height: 38px; /* or whatever your standard height is */
}


button#saveAssistantBtn {
    padding: 9px 0px;
}


select#assistantSelect,input#assistantNameInput{
    font-size: 15px;
}

textarea#assistantJsonTextarea {
    font-size: 12px;
}



#loading-overlay-assistant-json{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.6);
  z-index:10;
  border-radius: .375rem; /* match bootstrap textarea rounding */
}

/* When shown, we want flex centering */
#loading-overlay-assistant-json.is-active{
  display:flex !important;
}


select#viewcampaignType {
    font-size: 15px!important;
}



  #unlockMoreBtn {
    background: #793aff !important;
    color: #fff !important;
    border-color: #793aff !important;
  }
  #unlockMoreBtn:hover,
  #unlockMoreBtn:focus {
    background: #6a2fe6 !important;
    color: #fff !important;
    border-color: #6a2fe6 !important;
  }


  div#assistantLimitNotice {
    background: #ff00000a;
    padding: 2%;
    line-height: 1.2em;
    border: 1px #ff000026 dashed;
  }


  .vh-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #793aff;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 99999;
  max-width: min(90vw, 520px);
  text-align: center;
}

.vh-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}




/* Root */
.vh-tags { position: relative; }

/* Label pinned top-left */
.vh-tags > label{
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 12px;
  opacity: .65;
  padding: 0 4px;
  pointer-events: none;
  z-index: 2;
}

/* Editor container (acts like input box) */
.vh-tags .vh-tags__editor{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2.1rem 12px .625rem; /* includes room for label */
  min-height: calc(3.5rem + 2px);
  border: 1px solid #ced4da;
  border-radius: .375rem;
  background: #fff;
}

/* Focus */
.vh-tags .vh-tags__editor:focus-within{
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

/* Input behaves like caret field in flex */
.vh-tags .vh-tags__input.form-control{
  border: 0;
  box-shadow: none !important;
  padding: 0;
  height: auto;
  min-height: 24px;
  flex: 1;
  width: 140px;
}

/* Selected tags area */
.vh-tags .vh-tags__pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

/* Chip */
.vh-tags .vh-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.vh-tags .vh-tag__x{
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: .65;
}
.vh-tags .vh-tag__x:hover{ opacity: 1; }

/* Dropdown */
.vh-tags .vh-tags__dropdown{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1055;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .375rem;
  max-height: 260px;
  overflow: auto;

  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Dropdown items as chips */
.vh-tags .vh-dd__item{
  padding: 6px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
  white-space: nowrap;
}

.vh-tags .vh-dd__item:hover{
  background: #f8f9fb;
  border-color: #b6c2ff;
}

.vh-tags .vh-dd__item.is-active{
  background: #eef2ff;
  border-color: #6366f1;
}

/* Message items */
.vh-tags .vh-dd__item[style*="cursor:default"]{
  border: none;
  background: transparent;
  padding: 6px 4px;
  cursor: default;
}


/* ================================
        Global styles
================================ */

input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text],input[type=url], select, textarea,.form-select{
        border: 1px solid #bbb;
}




/* ================================
   Access Control – Readonly (Members)
================================ */


.vh-tags--readonly .vh-tag__x{
  pointer-events: none !important;
  display: none !important;
}

.vh-tags--readonly,
.vh-tags--readonly .vh-tags__editor,
.vh-tags--readonly .vh-tags__input {
  cursor: not-allowed;
}

.vh-tags--readonly .vh-tags__editor {
  background-color: #f8f9fa;
  opacity: 0.85;
}

.vh-tags--readonly {
  position: relative;
}

.vh-tags--readonly::after {
  content: "Only owner/admins can edit access control";
  position: absolute;
  top: calc(100% + 6px); /* safer than bottom */
  left: 12px;
  font-size: 12px;
  color: #6c757d;
  opacity: 0;
  transition: opacity .2s ease;
}

.vh-tags--readonly:hover::after {
  opacity: 1;
}



/* ================================
   JSON DRIVEN INTEGRATIONS
================================ */

/* Container */
#entry-row.vho-entry{
  width: 100%;
  padding: 18px;
  background: #f9fafb;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16,24,40,.05);
  position: relative; /* REQUIRED for overlay to cover only this card */
}

/* Section Title */
.vho-entry__title{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #344054;
}

/* Main Grid Wrapper */
.vho-entry__grid{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vho-entry__grid,
.vho-entry{
  width: 100%;
}

/* Row 1: 40% / 60% */
.vho-row-1{
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 14px;
}

/* Row 2: 40% / 40% / 20% */
.vho-row-2{
  display: grid;
  grid-template-columns: 40% 18.3% 40% ;
  gap: 14px;
}

/* Inputs */
.vho-entry .form-control,
.vho-entry .form-select{
  height: 60px;
  border-radius: 8px;
  font-size: 14px;
}


/* Force the actions bar to span full width and align items to the right */
.vho-entry__actions{
  display: flex !important;
  width: 100% !important;
  justify-content: flex-end !important;  /* submit/update stays on the far right */
  align-items: center;
  gap: 10px;
}

/* Cancel goes to the far left when visible */
#cancel-edit-btn{
  margin-right: auto !important;
}

/* Submit Button */
#add-btn{
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}


/* Responsive */
@media (max-width: 992px){

  .vho-row-1{
    grid-template-columns: 1fr;
  }

  .vho-row-2{
    grid-template-columns: 1fr;
  }

  .vho-entry__actions{
    justify-content: stretch;
  }

  #add-btn{
    width: 100%;
  }
}


#connections-table thead th {
  vertical-align: middle !important;
  padding-top: 14px;
  padding-bottom: 14px;
}



/* Overlay loader for Connections "New Entry" */
#loading-overlay-connections-entry{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  z-index: 10;
  border-radius: 12px; /* match vho-entry rounding */
}

/* When shown, flex centering */
#loading-overlay-connections-entry.is-active{
  display: flex !important;
}


.btn-custom--ghost{
  background: #ff000057;
  border: 1px solid #cfd4da;
  color: #6c757d;
}

/* keep the select column behaving like before */
.vho-row-1 .vho-floating-select {
  flex: 0 0 280px;  /* adjust if you want narrower/wider */
  min-width: 220px;
}

/* ---------------------------------------
   Integrations entry: force labels floated
   (label always visible + placeholder inside)
---------------------------------------- */
#entry-row .form-floating > .form-control ~ label {
  opacity: 1 !important;
  transform: scale(.85) translateY(-0.5rem) translateX(0.15rem) !important;
}

/* Improve vertical alignment when label always floated */
#entry-row .form-floating > .form-control {
  padding-top: 1.4rem;
  padding-bottom: 0.6rem;
}


/* Bootstrap floating labels hide placeholders by default.
   Re-enable placeholders for integration entry fields. */
#entry-row .form-floating > .form-control::placeholder {
  color: #6c757d;  /* same vibe as Bootstrap muted */
  opacity: 1;
}

/* Safari/older fallbacks */
#entry-row .form-floating > .form-control::-webkit-input-placeholder {
  color: #6c757d;
  opacity: 1;
}
#entry-row .form-floating > .form-control::-moz-placeholder {
  color: #6c757d;
  opacity: 1;
}
#entry-row .form-floating > .form-control:-ms-input-placeholder {
  color: #6c757d;
  opacity: 1;
}
