/* =========================
   Tipografía global (fuera del editor)
   ========================= */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* Negrita / headings / párrafos SOLO fuera de editores (Quill y TipTap) */
b:not(.ql-editor *):not(.ProseMirror *) {
  font-weight: 500;
  font-style: normal;
}

h2:not(.ql-editor *):not(.ProseMirror *) {
  vertical-align: middle;
  text-align: center;
  margin-bottom: 20px;
  color: #39505d;
}

h3:not(.ql-editor *):not(.ProseMirror *) {
  margin-bottom: 20px;
  text-align: center;
  color: #39505d;
}

h4:not(.ql-editor *):not(.ProseMirror *),
h5:not(.ql-editor *):not(.ProseMirror *) {
  text-align: center;
  color: #39505d;
}

h5:not(.ql-editor *):not(.ProseMirror *) {
  margin-bottom: 10px;
}

h6:not(.ql-editor *):not(.ProseMirror *) {
  text-align: center;
}

p:not(.ql-editor *):not(.ProseMirror *) {
  text-align: center;
  margin-bottom: 0;
}


/* =========================
   Dentro del editor (TipTap)
   ========================= */
.ProseMirror {
  font-family: 'Inter', sans-serif;
  font-weight: 400;        /* base legible dentro del editor */
  line-height: 1.5;
}

/* Negrita real dentro del editor (TipTap usa <strong>) */
.ProseMirror strong,
.ProseMirror b {
  font-weight: 600;
}

/* Itálica dentro del editor */
.ProseMirror em,
.ProseMirror i {
  font-style: italic;
}

/* (Opcional) Asegura alineación por defecto en headings del editor */
.ProseMirror h1,
.ProseMirror h2,
.ProseMirror h3,
.ProseMirror h4,
.ProseMirror h5,
.ProseMirror h6 {
  text-align: left;
}






label {
    vertical-align: middle;
}

.text-grey {
    color: #747c7c;
}

.myform {
    padding: 0 20% 0;
    text-align: center;
}

.login-form {
    width: 400px;
    text-align: center;
    margin-left: 20px;
    position: fixed;
    bottom: 40px;
    left: 0;
}

table {
    margin-bottom: 0px;
}

thead, th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

td {
    padding-top: 0;
    padding-bottom: 0;
}



.filter-entity {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 30px;
    width: auto;
}



.center-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center {
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
}

.btn-choice {
    width: 100px;
}

.btn-app {
    background-color: #39505d;
    color: white;
    border-color: #39505d;
    margin-bottom: 0px;
}


button.btn-app:disabled,
.btn.btn-app:disabled {
    opacity: 0.5 !important;
    background-color: #39505d !important;
    border-color: #39505d !important;
    color: white !important;
}

.btn-app:hover, .btn-app.dropdown-toggle.show {
    background-color: #39505d;
    border-color: #39505d;
    color: white;
    opacity: 0.7;
}

.btn-app-teal {
    background-color: #4DA1A9;
    color: white;
    border-color: #4DA1A9;
    margin-bottom: 0px;
}

.btn-app-teal:hover, .btn-app-teal.dropdown-toggle.show {
    background-color: #4DA1A9;
    border-color: #4DA1A9;
    color: white;
    opacity: 0.7;
}

button.btn-app-teal:disabled,
.btn.btn-app-teal:disabled {
    opacity: 0.5 !important;
    background-color: #4DA1A9 !important;
    border-color: #4DA1A9 !important;
    color: white !important;
}

.btn-app-blue {
    background-color: #2E5077;
    color: white;
    border-color: #2E5077;
    margin-bottom: 0px;
}

.btn-app-blue:hover, .btn-app-blue.dropdown-toggle.show {
    background-color: #2E5077;
    border-color: #2E5077;
    color: white;
    opacity: 0.7;
}

.btn-app-purple {
    background-color: #AD4497;
    color: white;
    border-color: #AD4497;
    margin-bottom: 0px;
}

.btn-app-purple:hover, .btn-app-purple.dropdown-toggle.show {
    background-color: #AD4497;
    border-color: #AD4497;
    color: white;
    opacity: 0.7;
}

.btn-app-green {
    background-color: #48c9b0;
    color: white;
    border-color: #48c9b0;
    margin-bottom: 0px;
}

.btn-app-green:hover, .btn-app-green.dropdown-toggle.show {
    background-color: #48c9b0;
    border-color: #48c9b0;
    color: white;
    opacity: 0.7;
}

.team-badge {
    background-color: #39505d !important; /* Custom background color */
    color: white !important; /* Custom text color */
}

.teal-badge {
    background-color: #4DA1A9 !important; /* Custom background color */
    color: white !important; /* Custom text color */
}

.purple-badge {
    background-color: #AD4497 !important; /* Custom background color */
    color: white !important; /* Custom text color */
}


.btn-app-reverse {
    background-color: white;
    color: #39505d;
    border-color: #39505d;
    margin-bottom: 0px;
}

.btn-app-reverse:hover,
    .custom-btn:focus {
      background-color: #39505d;
      border-color: #39505d;
      color: white;
}

.btn-app-reverse.active {
    background-color: #39505d;
    border-color: #39505d;
    color: white;
}

.entity-select-btn {
    height: 26px;
    padding-top:0px;
    padding-bottom:0px;
    padding-left: 3px;
    padding-right: 3px;
}

.btn-app-red:hover,
    .custom-btn:focus {
      background-color: white;
      border-color: #dc3545;
      color: #dc3545;
}

.btn-grey {
    background-color: #747c7c;
    color: white;
    border-color: #747c7c;
    margin-bottom: 0px;
}

.btn-grey:hover,
    .custom-btn:focus {
      background-color: white;
      border-color: #747c7c;
      color: #747c7c;
}

.btn-app-disabled {
    background-color: #04bcec;
    color: white;
    border-color: #04bcec;
    margin-bottom: 0px;
}

.btn-app-radio {
    border-color: #04bcec;
    color: #04bcec;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .btn-app-radio:hover {
    border-color: #04bcec;
    color: #04bcec;
    background-color: white;
}
.btn-check:checked + .btn-app-radio {
    background-color: #04bcec;
    color: white;
    border-color: #04bcec;
}

.tooltip {
    --bs-tooltip-bg: black;
    --bs-tooltip-color: white;
    opacity: 1 !important;
    box-shadow: none !important;
}

.dropdown-header {
    color: black;
    font-size: 1.1rem;
    padding: 6px 16px;
}

.btn-sm.dropdown-toggle {
    padding-top: 5px;
    padding-bottom: 6px;
    height: 31px;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Align the dropdown below the button */
    left: 0;
    z-index: 3000 !important; /* Ensure dropdown is above other elements */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
    border: none; /* Optional: Removes default border */
}

.dropdown-item {
    cursor: pointer;
}

.justify {
    text-align: justify;
}

footer {
    margin-top: 10px;
    background: linear-gradient(to left, #00bdee, #747c7c);
    width: 100%;
}

.note-right-side {
    border-left: 1px solid #ddd;
}

.note-left-side {
    position: relative;
}

.chat-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
}

.chat-cloud {
  border-radius: 10px;
  padding: 10px;
  margin: 5px;
  max-width: 80%;
  display: inline-block;
  word-wrap: break-word;
}

.chat-name {
  margin-top: 0px;
  margin-bottom: 5px;
  text-align: left !important;
}

.chat-text {
  margin: 0;
  text-align: left !important;
}

.bot-name {
    color: white;
}

.bot-cloud {
    background-color: rgba(57, 80, 93, 1);
}

.prompt-cloud {
    background-color: rgba(255, 149, 14, 1);
}

.prompt-text {
    color: white;
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
}

.mfa-input {
    width: 40px; /* Adjust width as needed */
    height: 40px; /* Adjust height as needed */
    text-align: center;
    margin: 0 5px; /* Adjust spacing between boxes */
}

.chart {
    height: 670px;
}

.add-btn {
    height: 30px;
    width: 30px;
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    padding: 0;
}

table {
    vertical-align: middle;
    text-align: center;
}

.table tr:nth-child(even) {
    background-color: #e0f7fa;
}

.header-cell {
    background-color: #00b8d4;
}

td {
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.compare-row {
    height: 250px;
}

.sttable {
    background-color: #00b8d4;
    border-radius: 15px;
}

.img-flag {
    height: 20px;
    width: 20px;
  }

.hidden {
    display: none;
}


#autocomplete-list {
    list-style-type: none;
    padding: 0;
}
#autocomplete-list li {
    cursor: pointer;
    padding: 5px;
}
#autocomplete-list li:hover {
    background-color: lightgray;
}

.result-box ul {
    color: #000;
    background-color: #ffffff;
    padding: 5px 5px;
    border-radius: 10px;
}

.result-box ul li {
    list-style: none;
    padding: 5px 5px;
    border-radius: 5px;
}

.result-box ul li:hover{
    background: #ebf5fb;
}

.dropdown {
    margin: 2px;
}

.dropdown-toggle.btn-sm {
    height: 32px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.dropdown-item:hover{
    background-color: rgba(77, 161, 169, 0.1); /*rgba(4, 188, 236, 0.1)*/;
}

.result-box {
    max-height: 300px;
    overflow-y: scroll;
    z-index: 1;
    width: 100%;
    border: 1px solid rgba(11, 143, 164, 0.1);
    border-radius: 10px;
}

























.badge-custom {
    display: inline-flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Optionally center horizontally */
    padding: 0.5em;
    background-color: #007bff;
    color: white;
    border-radius: 0.5rem;
    /*font-size: 1rem;*/
    height: 30px; /* Set a height if needed */
}


/* Cards */

.card {
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Ensure header and footer don't shrink */
.card-header, .card-footer {
    flex-shrink: 0;
}

.card-header {
    background-color: rgba(116,124,124, 0.05); /*rgba(4,188,236, 0.15)*/
    position: relative;
    padding-top: 4px;
    padding-bottom: 4px;
}


.card-body {
    flex-grow: 1; /* Take up available space */
    overflow-y: auto; /* Enable scrolling for the body */
    padding-top: 8px;
    padding-bottom: 8px;
}

.card-footer {
    background-color: rgba(116,124,124, 0.05); /*rgba(116,124,124, 0.15)*/
}


/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    padding: 0;
    height: 35px;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif; /* Change to Open Sans */
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.navbar {
    margin-bottom: 10px;
    position: fixed;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 100%;
    z-index: 2000;
    background-color: white;
}

.navbar-custom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: #39505d;
}


/* Circular images */
.radio-label {
    height: 30px;
    padding: 2px 4px 0px;
}



/* Circular images */
.circular-img {
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Maintain aspect ratio and cover the container */
}


/* General classes */
.left-align {
    text-align: left !important;
}

.right-align {
    text-align: right;
}

.pointer {
    cursor: pointer;
}

.no-margin {
    margin: 0;
}

/* Spinners */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001; /* Ensure spinner is on top of overlay */
  display: none;
}

.teal-grow-spinner {
  color: #4DA1A9 !important;
}

.tl-menubar {
    top: 152px !important;
}

.tl-storyslider, .td-slide-content {
    height: 150px !important;
}

button.tl-slidenav-previous, button.tl-slidenav-next {
    top: 40px !important;
}

.tl-attribution {
    display: none;
}

.tl-text-headline-container h2.tl-headline {
    font-size: 20px !important;
}

.btn-preview-doc, .btn-preview-note {
    padding-top: 0px;
    padding-bottom: 0px;
}

.search-container {
    position: relative;
}


/* Dropdown menu styles */
#search-patient-dropdown {
    position: absolute;
    top: 100%; /* Position below the input */
    left: 0;
    width: 100%; /* Match the width of the input */
    display: none; /* Initially hidden */
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 3000 !important;
}

/* Show dropdown when input is focused */
#search-patient-input:focus + #search-patient-dropdown,
#search-patient-dropdown:hover {
    display: block;
}

.circular-img {
    border-radius: 50%;  /* Makes the image circular */
    object-fit: cover;   /* Ensures the image covers the entire area without distortion */
    overflow: hidden;    /* Hides any overflow if the image doesn't perfectly fit the container */
}

.patient-desc-col {
    color: white;
    display: flex;
    align-items: left;
    justify-content: left;
    margin-right: 10px;  /* Optional space between columns */
}

.box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
}

.transparent-table {
    width: 100%;
    background-color: rgba(0, 0, 0, 0); /* Adjust alpha (0-1) for transparency */
    /*color: white;  Set text color to white */
    border-collapse: collapse; /* Optional: for cleaner borders */
}

.transparent-table th,
.transparent-table td {
    background-color: rgba(0, 0, 0, 0); /* Make background of cells transparent */
    /*color: white;  Ensure text in each cell is white */
    text-align: left;
}

.transparent-table tr:nth-child(even),
.transparent-table tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0); /* Ensure all rows have the same background */
}

.blue-event {
    background-color: #39505d !important;
    color: white !important;
}

.orange-event {
    background-color: #ff950e !important;
}

.red-event {
    background-color: #f5b7b1 !important;
}

.green-event {
    background-color: #abebc6 !important;
}

.tl-headline {
    color: black !important;
}

/*
.input-group-text {
    background-color: #39505d;
    color: white;
}
*/

.card-radio input[type="radio"]:checked + .card-body {
    background-color: #d5f5e3;
    color: black;
}

/* Transparent table */
.transparent-table-existing-patient {
    background-color: transparent !important; /* Make the table background transparent */
}

.transparent-table-existing-patient th, .transparent-table-existing-patient td {
    background-color: rgba(255, 255, 255, 0); /* Semi-transparent background for table cells */
    border-color: rgba(255, 255, 255, 0); /* Semi-transparent border color */
    color: black;
}

.transparent-table-existing-patient th {
    font-weight: bold;
}

.transparent-table-existing-patient tr:nth-child(even),
.transparent-table-existing-patient tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0); /* Ensure all rows have the same background */
}

.white {
    color: white !important;
}

.blue-nitovo {
    background-color: #39505d !important;
    color: white !important;
}

.blue-appt-nitovo {
    background-color: #2980b9 !important;
    color: white !important;
}

.purple-nitovo {
    background-color: #AD4497 !important;
    color: white !important;
}

.teal-nitovo {
    background-color: #4DA1A9 !important;
    color: white !important;
}

.teal-purple-nitovo {
    background: linear-gradient(135deg, #4DA1A9, #AD4497) !important;
    color: white !important;
}


.green-nitovo {
    background-color: #48c9b0 !important;
    color: white !important;
}


.wide-tr {
    margin-top: 32px;
    margin-bottom: 32px;
}

.moving-gradient {
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;        /* Set the width of the div */
    height: 5px;       /* Set the height of the div */
    background: linear-gradient(to right, #39505d, #ff950e, #39505d, #ff950e, #39505d, #ff950e, #39505d); /* Repeat the gradient */
    background-size: 500% 100%;  /* Double the width for smooth movement */
    animation: moveGradient 10s linear infinite;  /* Animate the background */
    border-radius: 5px;
}

.moving-gradient-sm {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;        /* Set the width of the div */
    height: 5px;       /* Set the height of the div */
    background: linear-gradient(to right, #39505d, #ff950e, #39505d, #ff950e, #39505d, #ff950e, #39505d); /* Repeat the gradient */
    background-size: 500% 100%;  /* Double the width for smooth movement */
    animation: moveGradient 10s linear infinite;  /* Animate the background */
    border-radius: 5px;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

/* Nav tabs for multiple documents in one email */
.nav-tabs .nav-item .nav-link.active {
    background-color: #39505d;
    color: #ffffff;
}

.nav-tabs .nav-item .nav-link {
    background-color: transparent;
    color: #ffffff;
}

.nav-tabs .nav-item .nav-link:not(.active):hover {
    background-color: #ff950e;
    color: #ffffff;
}

.accordion-button {
    background-color: white; /* Change to desired background color */
    color: black; /* Change to desired font color */
}

/* Change background and font color of the accordion button when collapsed */
.accordion-button:not(.collapsed) {
    background-color: #39505d; /* Adjust color for active state */
    color: white;
}

/* Change Arrow Icon Color When Expanded */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1); /* Make the arrow icon white when expanded */
  z-index: 1080;
}

/* Optional: Change Arrow Icon Color When Collapsed */
.accordion-button.collapsed::after {
  filter: none; /* Keep default arrow color when collapsed */
  z-index: 1080;
}

/* Pseudo-element for the left-to-right color animation */
.accordion-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%; /* Start from 0% width */
  height: 100%;
  background-color: #4DA1A9; /* Solid green color for animation */
  transition: none; /* No animation unless the class is added */
}

/* Trigger left-to-right animation when 'highlight' class is added */
.accordion-button.validated::before {
  width: 100%; /* Fill from left to right */
  transition: width 1s ease-in-out; /* Smooth animation over 1 second */
}

/* Ensure text remains visible over the animation */
.accordion-button.validated {
  color: white !important; /* Keep text white during the animation */
}

.accordion-button.delete-attachment, .accordion-button.delete-attachment::before {
  background-color: #808b96 !important;
}



.hr-with-label {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.hr-with-label::before,
.hr-with-label::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    margin: 0 10px;
}

.hr-with-label span {
    white-space: nowrap;
    font-size: 14px;
    color: #333;
}

.carousel-item .card-radio {
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.card-radio {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.accordion-body {
   overflow-y: auto;
   overflow-x: hidden;
}

.accordion-body .table td {
   padding: 5px;
   word-break: break-word;
}

.nav-item.bold .nav-link {
    font-weight: bold;
}

.dropdown-item.bold {
    font-weight: bold;
}

.btn-label {
    border-radius: 5px;
    cursor: default !important;
    margin: 2px;
    background-color: rgba(4,188,236, 0.1);
    color: black;
    border: 1px solid rgba(4,188,236, 0.5);
}

.btn-label.patient-label {
    background-color: rgba(77, 161, 169, 0.1) !important;
    border: 1px solid rgba(77, 161, 169, 0.5) !important;
}

.btn-label.provider-label {
    background-color: rgba(173, 68, 151, 0.1) !important;
    border: 1px solid rgba(173, 68, 151, 0.5) !important;
}

.btn-label .close {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    color: black;
    cursor: pointer;
}

/* ---- particles ---- */

.particles-js-login {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f9c299, #5dd4be); /* linear-gradient(45deg, #fbb9b9, #a0d5ce);*/
  position: fixed; /* Stays in place even when scrolling */
  top: 0;
  left: 0;
  z-index: -1;
}
/*
.particles-js {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #566573, #b1dfde);
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
*/
.particles-js {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #b9dce0,
    #3d5f76,
    #5c8ca7
  );
  background-size: 400% 400%;
  animation: gradientShift 70s ease-in-out infinite;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
}

/* Nueva capa de blur */
.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* transparencia */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); /* Safari */
  z-index: -1; /* entre el fondo y el contenido */
}


@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.modal:not(.static-modal) .modal-header {
    cursor: move;
}

.static-modal .modal-header {
    cursor: default;
}

a.fc-daygrid-day-number {
    color: #39505d;
    text-decoration: none;
}

a.fc-daygrid-day-number:hover {
    color: #ff950e;
}

a.fc-col-header-cell-cushion {
    color: #39505d;
    text-decoration: none;
    cursor: pointer;
}

a.fc-col-header-cell-cushion:hover {
    color: #ff950e;
}

.fc-timegrid-slot {
    cursor: pointer;
}

.fc-event-title.fc-sticky, .fc-event-time {
    text-align: left;
}


.red-outline-btn {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .red-outline-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: white;
}
.btn-check:checked + .red-outline-btn {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.purple-outline-btn {
    border-color: #8e44ad;
    color: #8e44ad;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .purple-outline-btn:hover {
    border-color: #8e44ad;
    color: #8e44ad;
    background-color: white;
}
.btn-check:checked + .purple-outline-btn {
    background-color: #8e44ad;
    color: white;
    border-color: #8e44ad;
}

.blue-outline-btn {
    border-color: #3498db;
    color: #3498db;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .blue-outline-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background-color: white;
}
.btn-check:checked + .blue-outline-btn {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.green-outline-btn {
    border-color: #27ae60;
    color: #27ae60;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .green-outline-btn:hover {
    border-color: #27ae60;
    color: #27ae60;
    background-color: white;
}
.btn-check:checked + .green-outline-btn {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.orange-outline-btn {
    border-color: #f39c12;
    color: #f39c12;
    background-color: white;
}
/* Prevent hover effect for unchecked buttons */
.btn-check:not(:checked) + .orange-outline-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
    background-color: white;
}
.btn-check:checked + .orange-outline-btn {
    background-color: #f39c12;
    color: white;
    border-color: #f39c12;
}


.btn-outline-teal {
  color: #4DA1A9;
  border: 1px solid #4DA1A9;
  background-color: #fff;
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline-teal:hover,
.btn-check:checked + .btn-outline-teal {
  background-color: #4DA1A9 !important;
  color: #fff !important;
  border-color: #4DA1A9 !important;
}

.offcanvas {
    z-index: 2000 !important;
    top: 56px !important; /* Push the offcanvas down by 20px */
    height: calc(100% - 56px) !important; /* Adjust height so it fits properly */
}

/* Cuando el panel está abierto, mover el contenedor principal */
#main-container {
  width: 100%;
  transition: width 0.35s ease;
  margin-left: 0; /* asegura alineación a la izquierda */
}

#main-container.with-offcanvas {
  width: calc(100% - 400px) !important;
}

.ai-chat-border {
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, #39505d, #ff950e) 1;
}

/* AI chat input text */
.ai-chat-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none; /* Disable manual resizing */
    padding-right: 30px;
    height: 32px;
    max-height: 150px; /* Maximum height */
    min-height: 32px; /* Minimum height */
    overflow-y: auto; /* Enable scrolling when max height is reached */
}

.send-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 24px; /* Adjust size */
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.send-icon:hover {
    opacity: 1;
}

.clipboard {
    height: 18px;
    cursor: pointer;
    margin-left: 5px;
    opacity: 0.5;
}

.clipboard:hover {
    opacity: 1;
}


.table-striped-app > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(233, 252, 255, 1); /*  rgba(4, 188, 236, 0.1);*/
}

.table > tbody > tr.table-row-selected > * {
    background-color: rgba(233, 252, 255, 1) !important; /*rgba(248, 196, 113, 1)*/
}

/* Custom table-hover */
.table {
    --bs-table-hover-bg: rgba(255, 149, 14, 0.5);
}


.carousel-control-prev {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.carousel-control-next {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Step progress bar for each document validation */

.steps-container {
    padding-left: 10%;
    padding-right: 10%;
}

.steps-container .steps {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.steps .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    color: #34495e;
    font-size: 30;
    font-weight: 500;
    border-radius: 50%;
    border: solid 4px #34495e;
    background: #ffffff;
}

.steps .progress-bar {
    position: absolute;
    height: 4px;
    width: 100%;
    background: #34495e;
    z-index: -1;
}

.progress-bar .indicator {
    position: absolute;
    height: 100%;
    width; 100%;
    background: #34495e;
}

.one-visit {
    background-color: #f7dc6f !important;
}

.many-visits {
    background-color: #82e0aa !important;
}

/* Rounded table */
.table-container {
  max-height: 300px; /* Set the height of the scrollable area */
  overflow-y: auto; /* Enable vertical scrolling */
  border: 1px solid #ddd; /* Optional: Add a border around the table container */
  border-radius: 10px; /* Add border-radius to the entire container */
}

.rounded-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rounded-table thead th {
  position: sticky; /* Fix the header row */
  top: 0; /* Keep it stuck to the top */
  background-color: #f4f4f4; /* Set background for better visibility */
  z-index: 2 !important; /* Ensure the header stays on top of content */
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.rounded-table tbody td {
  padding: 10px;
  border: 1px solid #ddd;
}

.rounded-table th:first-child {
  border-top-left-radius: 10px; /* Top-left corner */
  /* border-bottom-left-radius: 10px;*/
}

.rounded-table th:last-child {
    border-top-right-radius: 10px; /* Top-right corner */
    /* border-bottom-right-radius: 10px; *//* Top-right corner */
}

.rounded-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px; /* Bottom-left corner */
    /*border-top-left-radius: 10px;*/
}

.rounded-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px; /* Bottom-right corner */
    /*border-top-right-radius: 10px;*/
}

/*
.sticky-column {
    position: sticky;
    left: 0;
    z-index: 2 !important;
}

.sticky-header {
    position: sticky;
    left: 0;
    z-index: 100000 !important;
}
*/

.file-row {
    cursor: pointer;
}

.dropdown-menu.columns-4 {
	min-width: 850px;
}

.dropdown-menu.columns-3 {
	min-width: 650px;
}

.dropdown-menu.columns-2 {
	min-width: 450px;
}

.resizer {
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  background-color: transparent;
}

/* Update icons */
.icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.icon:hover {
    opacity: 0.7;
}

.span-save {
    border-right: none;
    border-left: none;
    padding-left: 4px;
    padding-right: 2px;
    background-color: white;
}
.span-cancel {
    border-left: none;
    padding-left: 2px;
    padding-right: 4px;
    background-color: white;
}
.editable {
    cursor: pointer;
}
.no-focus-border:focus {
    outline: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.no-border {
    border: none !important;
}


/* Mapbox map */
#map {
    width: 500px;
    height: 300px;
    border-radius: 10px;
}

.overlined {
    text-decoration: overline;
}

/* Progress bar of the validation headers */
.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #4DA1A9; /* Progress fill color */
    transition: width 0.5s ease-in-out;
    border-radius: 3px 3px 0 0;
}


.transparent-btn {
    background: transparent !important;  /* Make background transparent */
    border: none !important;             /* Remove border */
    color: #39505d !important;             /* Keep text visible */
    box-shadow: none !important;         /* Remove shadow */
}

.is-invalid {
    z-index: 1 !important;  /* Lower z-index so it doesn't overlap dropdown */
    position: relative;     /* Ensure z-index takes effect */
}

/* Modal layering */
.modal {
  z-index: 3010 !important;
}
.modal-backdrop {
  z-index: 3000 !important;
}
.modal-stack {
  z-index: 3009 !important;
}

.modal-xl-custom {
  max-width: 100%;
  width: 95vw;
  height: 95vh;
}

.modal-xl-custom .modal-content {
  height: 100%;
}

#toast, .toast-container, .toast {
  z-index: 4000 !important;
}

.toast-body {
    background-color: white;
    border-radius: 0 0 0.25rem 0.25rem;
}

.tooltip .tooltip-inner {
  background-color: #4DA1A9 !important;  /* Change the background color */
  color: #ffffff;             /* Change the text color */
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
  background-color: #4DA1A9;
  border-color: #4DA1A9;
}

.auto-width {
    white-space: nowrap;  /* Prevents content from wrapping */
    width: 1%;            /* Forces the column to shrink to fit content */
}

td.editable {
  position: relative;
  cursor: pointer;
}

td.editable::after {
  content: '';
  background: url('/static/images/edit.png') no-repeat center center;
  background-size: contain;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

td.editable:hover::after {
  opacity: 1;
}

tr.high-health td {
    background-color: #d5f5e3;
}

tr.medium-health td {
    background-color: #fef9e7;
}

tr.low-health td {
    background-color: #fadbd8;
}

/* Update cells textarea */
.textarea-container {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button-group-inside {
    position: absolute;
    bottom: 5px;
    right: 5px;  /* Positioned at the right bottom corner */
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.textarea-container textarea {
    padding-bottom: 50px; /* Space for buttons */
    box-sizing: border-box;
}

.button-group-inside button {
    font-size: 12px;
    padding: 4px 8px;
}

@media (min-width: 1400px) {
    .col-large-3 { width: 25%; }  /* 4 columns */
    .col-large-4 { width: 33.33%; } /* 3 columns */
    .col-large-6 { width: 50%; } /* 2 columns */
}

@media (max-width: 2600px) and (min-width: 1700px) {
    .col-medium-3 { width: 25%; }  /* 4 columns */
    .col-medium-4 { width: 33.33%; } /* 3 columns */
    .col-medium-6 { width: 50%; } /* 2 columns */
}

/* Default nav-pills link style */
.nav-pills .nav-link {
  color: #4DA1A9;
  background-color: transparent;
  border-radius: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.nav-pills .nav-link:hover {
  background-color: #f0f8f9;
  color: #4DA1A9;
}

/* Active (selected) tab */
.nav-pills .nav-link.active {
  background-color: #4DA1A9;
  color: white;
  font-weight: bold;
}

/* Nav tabs for multiple documents in one email */
.pagination .page-item.active .page-link {
    background-color: #39505d;
    color: #ffffff;
    border-color: #39505d;
}

.pagination .page-item .page-link {
    background-color: white;
    color: #39505d;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: #ff950e;
    color: #ffffff;
    border-color: #ff950e;
    cursor: pointer;
}

/* Elimina la animación de collapse */
.no-animation.collapse:not(.show) {
  display: none;
}

.no-animation.collapsing {
  transition: none !important;
  display: block !important;
  height: auto !important;
  overflow: hidden;
}


/* Dictation button for audio notes */
.dictation-btn {
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-color: #4DA1A9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 0;
}

.dictation-btn img {
  height: 20px;
  width: 20px;
}

.dictation-btn.active {
  background-color: #e74c3c;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* Estado intermedio: preparando (naranjo) */
.dictation-btn.preparing {
  background-color: #f39c12;
  animation: pulse 1.2s infinite;
}


#save-note-btn.active {
  background-color: #00FF00;
  border-color: #00FF00;
  animation: pulse-green 0.5s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
  }
  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
  }
}

.step-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}

.step-title {
  margin-right: 2rem;
  white-space: nowrap;
}

.step-flow-wrapper {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-flow-line {
  position: absolute;
  top: 12px;
  left: 50px;      /* Desde el centro del paso 1 */
  width: 560px;    /* Hasta el centro del paso 6 */
  height: 2px;
  background-color: #4DA1A9;
  z-index: 0;
}

.step-flow-container {
  display: flex;
  gap: 12px;
  z-index: 1;
  align-items: flex-start;
  justify-content: flex-start;
}

.step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  position: relative;
  flex-shrink: 0;
}

.step-number {
  background: #4DA1A9;
  color: white;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px; /* más espacio entre número y botón */
  z-index: 1;
}

.step-gap-between {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.step-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* para centrar el timer bajo el badge */
}

#llm-chat-input.dragover {
  border: 2px dashed #0d6efd;
  background-color: #eef7ff;
}

#llm-files-preview .file-preview {
  position: relative;
  display: inline-block;
}

#llm-files-preview img.thumb {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.file-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}

.profile-img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  border: 2px solid #4DA1A9;
  cursor: pointer;
}

.grid-stack {
  background: #E7E5E4;
  min-height: 1000px; /* <== Clave: dale suficiente altura */
}

.grid-stack-item-content {
  background-color: white;
  color: black; /* <== Asegura que el texto sea visible */
  border-radius: 5px;
  text-align: center;
  font-size: 18px;
  padding: 1rem;
  position: relative;
}

.dashboard-delete-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #d33;
  cursor: pointer;
}


.dashboard-title {
  text-align: center;
}

.dashboard-controls {
  text-align: center;
  margin-bottom: 10px;
}

.dashboard-grid {
  background-color: #ddd;
  min-height: 600px;
}

.dashboard-block {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  position: relative;
}

.dashboard-delete-btn:hover {
  color: #ff0000;
}

.search-with-icon{
  width:400px; max-width:100%;
  padding-left:36px;
  background-image:url("/static/images/magnifying-glass.png"); /* ruta absoluta */
  background-repeat:no-repeat;
  background-position:10px center;
  background-size:16px 16px;
  -webkit-appearance:none;
  appearance:none;
}
.search-with-icon::-webkit-search-cancel-button{
  -webkit-appearance:none;
}


/* Dropdown global en <body> — no se recorta por overflow */
#providers-menu {
  position: fixed !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 240px;
  overflow: auto;
  z-index: 2147483647;
}
#providers-menu .mini-dd-item { padding: 8px 10px; cursor: pointer; user-select: none; }
#providers-menu .mini-dd-item:hover { background: #f6f8fa; }
#providers-menu .mini-dd-empty { padding: 8px 10px; color: #6b7280; }
#providers-menu .mini-dd-empty.error { color: #b91c1c; }

/* Celdas y chips */
.cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  position: relative;
}

/* Input de providers: SIEMPRE primero y 100% ancho */
.providers-cell .provider-input {
  order: 0;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

/* Chips de provider: vienen después y se alinean en fila */
.providers-cell .provider-chip {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

/* Inputs generales */
.cell-input { min-width: 140px; flex: 1 1 140px; }

/* Chip de provider */
.purple-badge { background: #6f42c1; color: #fff; }
.provider-chip .close { font-weight: bold; }

/* Split (animación ya la tienes en tu HTML, lo añado por claridad) */
#split-wrap { transition: grid-template-columns .5s ease; }
#split-wrap.right-full { grid-template-columns: 0fr 1fr; }