/* Estilo para las tarjetas de doctores */
.doctor-card-container {
    position: relative;
    margin-bottom: 3px !important;
}

/* Espaciado entre filas de tarjetas - aplicar al contenedor principal */
.fi-ta-content[data-sortable] {
    gap: 3px !important;
}

.fi-ta-content-grid {
    gap: 3px !important;
}

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

.border-custom{
    border: 2px solid #f70000 !important;
}

.fi-dropdown-list button:has(.fi-dropdown-list-item-label:contains("Salir")),
.fi-dropdown-list a:has(.fi-dropdown-list-item-label:contains("Salir")) {
    display: none !important;
}

.fi-dropdown-list:last-child button:not(.d-block),
.fi-dropdown-list:last-child a:not(.d-block) {
    background-color: red !important;
    display: none !important;
}

.btn-lenguale {
    background: transparent !important;
    color: transparent !important;
    --tw-ring-color: transparent !important;
}

.content-info-doctor {
    --tw-ring-offset-shadow: none !important;
    --tw-ring-shadow: transparent !important;
    --tw-shadow: none !important;
    background-color: transparent !important;
    padding: 0;
    margin: 0;
}

.content-info-doctor .container-info {
    position: absolute;
    top: -19px;
    left: 0;
}

.content-info-doctor .container-info p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1em !important;
}

.info-doctor-status-informe span {
    /*--tw-text-opacity: 1;
    color: rgba(var(--gray-950), var(--tw-text-opacity, 1));*/
    width: 100%;
}

.dark .info-doctor-status-informe span {
    --tw-text-opacity: 1;
    color: rgba(var(--white), var(--tw-text-opacity, 1));
}

.table-hospitales .grid.flex-1.auto-cols-fr.gap-y-8 > div > div:nth-child(4) {
    margin-top: -290px
}

.table-hospitales .grid.flex-1.auto-cols-fr.gap-y-8 > div > div:nth-child(3) {
    /*max-height: 730px;
    min-height: 730px;
    overflow-y: auto; */
}

.fi-sidebar-nav, .fi-sidebar-header, .fi-topbar>nav, .fi-ta-header, .fi-section-header, .fi-ta-header-toolbar {
    background-color: rgb(214 216 233 / 50%);
}

.fi-section-header{
    border-radius: .75rem .75rem 0 0!important;
}



/* Responsive grid for doctors cards */
@media (max-width: 640px) {
    .doctors-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 640px) and (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.dark .fi-sidebar-nav {
    background-color: rgba(var(--gray-900), var(--tw-bg-opacity, 1));
}

.table-hospitales .grid.flex-1.auto-cols-fr.gap-y-8 > div > div:nth-child(2) > section > header {
    border-radius: 8px 8px 0 0;
}



.police-tape {
    position: relative;
    /*padding: 20px;
    background: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;*/
}

/* .police-tape::after {
    content: "";
    position: absolute;
    left: -17px;
    bottom: 40px;
    width: 110%;
    height: 5px;
    transform: rotate(-25deg);
    background: repeating-linear-gradient(
        45deg,
        red,
        red 10px,
        black 10px,
        black 20px
    );
} */

.card-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3f3fbf; /* morado oscuro similar al de tu imagen */
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-button:hover {
  color: #1f1f7a; /* más oscuro al pasar el mouse */
}

.dark\:text-gray-400:is(.dark *), .dark\:text-gray-500:is(.dark *), .dark\:text-white:is(.dark *)::placeholder {

    color: white!important;
}

.dark .fi-ta-header-toolbar {
    background-color: #18181B;
}

.fi-header-heading {
    font-size: 3rem;
    font-weight: 600;
    color: #2e4a9b; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.dark .fi-header-heading {
    color: #f3f4f6; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.fi-sidebar-group-items {
 gap: 9px;
}

 .fi-sidebar-group-items .fi-sidebar-item a {

    color: #fff;
    gap: 10px;
    font-size: 14px;
    background-color: #2e4a9b;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease;
}
.fi-sidebar-group-items .fi-sidebar-item a *{

    color: #fff !important;

} 
 .fi-sidebar-group-items .fi-sidebar-item-active a {

   
    background-color: #fff;
  
}
.fi-sidebar-group-items .fi-sidebar-item-active a *{

    color: #2e4a9b !important;

} 
.dark .fi-sidebar-group-items .fi-sidebar-item-active a:hover *{

    color: #2e4a9b !important;

} 

.dark\:hover\:bg-white\/5:hover:is(.dark *) {
    background-color: #ffffff;
}

.dark .fi-sidebar-group-items .fi-sidebar-item-active a:hover * {
   color: #fff!important;
}



.fi-sidebar-header, .fi-topbar>nav, .fi-ta-header, .fi-section-header, .fi-ta-header-toolbar {
    background-color: #E9EAF2;
}



.backgray{
    background-color: #94a3b8 !important;
    border-radius: 9px 9px 0 0;
    height: 64px;
}
.backgray2{
    background-color: #E6EDF2 !important;
    border-radius: 9px 9px 0 0;
    height: 64px;
}

.backyellow{
    background-color: #f2c94c !important;
    border-radius: 9px 9px 0 0;
    height: 64px;
}

.backred{
    background-color: #eb5757 !important;
    border-radius: 9px 9px 0 0;
    height: 64px;
}


.redbtn {
    background-color: #eb5757 !important;
}


.quitarespacio .fi-btn-label {
   display: none;
}

.backgreen{
    background-color: #6fcf97 !important;
    border-radius: 9px 9px 0 0;
    height: 64px;
}
.backgray2 > div >div >div span{
   color: black !important;

}
.backgray > div >div >div span{
   color: black !important;

}

.backyellow > div >div >div span{
 color: black !important;
}

.backred > div >div >div span{
   color: white !important;
}

.backgreen > div >div >div span{
    color: white !important;
}

.fi-ta-record >div > div > div > a {
    padding-left: 0px !important;
    padding-right: 0px !important;
   
}
.botonview.botonview.botonview.botonview.centrar.quitarespacio {
    padding: 6px!important;
}
.fi-ta-record >div >  div{
    padding-top: 0px !important;

   
}
.fi-ta-record >div > div > div > a > .backgreen{
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 0px !important;

   
}
.fi-ta-record .fi-ta-text-item{
    padding-left: 16px !important;
    padding-right: 16px !important;   
}



.customtopicons  >div:nth-child(1) {
    order: 1;
}
.customtopicons  >div:nth-child(2) {
    order: 3;
}
.customtopicons  >div:nth-child(3) {
    order: 2;
}

.customtopicons  >form:nth-child(4) {
    order: 4;
    width: 32px;
}

.police-tape {
    position: relative;
    overflow: hidden;
}

.police-tape::before,
.police-tape::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 10px;
    left: -187px;
    top: 67%;
    transform: rotate(-15deg);
    background: repeating-linear-gradient(
        45deg,
        #ffeb3b,
        #ffeb3b 10px,
        #000 10px,
        #000 20px
    );
    color: #FFF;
    font-weight: bold;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
}

.police-tape::after {
    transform: rotate(15deg);
}


.default-color{
    background-color: transparent !important;
    border-radius: 80px;
    padding: 5px 16px;
}

.color-adjunto{
    color: #6fcf97 !important;
    border: 1px solid #6fcf97;

}
.color-expired{

    color: #eb5757 !important;
    border: 1px solid #eb5757;
}
.color-next_to_expire{

    color: #f2c94c !important;
    border: 1px solid #f2c94c;

}
.color-not_adjunted{

    color: #94a3b8 !important;
    border: 1px solid #94a3b8;

}
.color-not_aplica{

    color: #E6EDF2 !important;
    border: 1px solid #E6EDF2;

}

.fi-topbar-database-notifications-btn {
    background-color: #eb5757 ;
    color: #fff !important;
}


.custombtn {
    position: relative;
    width: max-content;
    display: flex;
    flex-direction: row-reverse;
    color: #fff !important;
    gap: 10px;
    font-size: 14px;
    padding: 0px 6px 0;
    background-color: rgb(46 74 155);
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease;
}

.custombtn  .sr-only {
    position: relative;
    width: max-content;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: unset;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .table-hospitales .grid.flex-1.auto-cols-fr.gap-y-8 > div > div:nth-child(4) {
        /*margin-top: unset;*/
    }

    .fi-topbar>nav {
        background-color: #95A3B8 !important;
    }

    .fi-topbar>nav>button {
        color: #fff !important;
    }

    .fi-header-heading {
        font-size: 2rem !important;
        padding: 1rem;
        margin-bottom: -3rem !important;
    }
}

.content-margin {
    margin: 0px 3px !important;
}

.position-bottom-left-responsive {
    position: absolute;
    z-index: 10;
    /* Mobile first */
    bottom: -40px;
    left: -110px;
}

.specialty-badge {
    background-color: #1e3a8a; /* blue-800 */
    transition: background-color 0.2s;
}
.specialty-badge:hover {
    background-color: #1e40af; /* blue-700 */
}

/* iPhone SE, iPhone 12 mini (375px) */
@media (max-width: 375px) {
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -80px;
    }
}

/* iPhone 12, 13, 14 (390px) y otros móviles medianos */
@media (min-width: 376px) and (max-width: 640px) {
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -135px;
    }
}

/* Tablets y escritorio */
@media (min-width: 641px) {
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -100px;
    }
}

@media (min-width: 768px) { /* md */
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -120px;
    }
}

@media (min-width: 1024px) { /* lg */
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -60px;
    }
}

@media (min-width: 1280px) { /* xl */
    .position-bottom-left-responsive {
        bottom: -40px;
        left: -90px;
    }
}

@media (min-width: 1536px) { /* 2xl */
    .position-bottom-left-responsive {
        bottom: -45px;
        left: -100px;
    }
}