:root{
    --box-shadow: 0 5px 15px rgba(0,0,0,0.35);
    --border-radius: 10px;
    --size-min: 340px;
    --size-md: 700px;
    --border-radius-min: 10px;
    --verde:#54baa7;
    --morado: rgb(135,0,132);
}

/*Errores en el input*/
.error-message{
    color: red;
}
/* Contenedores principales */

.main-container{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.scroll {
    width: 95%; /* Set your desired width */
    height: 550px; /* Set your desired height */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); /* Optional: Add a border for better visibility */
    padding: 5px; /* Optional: Add padding inside the container */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.container-md{
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: var(--size-md);
}

.container-inputs{
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    width: 90%;
    padding-block: 10px;
    gap: 3px;
}

.back{
    background-color:#ffffffb1 ;
    width: 100% !important;
}

.containergn{
    background-color:#ffffffb1 ;
    padding: 10px;
    color: black;
    border-radius: var(--border-radius-min);
    box-shadow: var(--box-shadow);
    width: 95%;
    height: fit-content;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.6s ease-in-out;
    gap: 10px;
    overflow-x: auto;
    margin: 10px;
}

.form_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 90%;
    padding-block: 10px;
    gap: 20px;
}

.right-side{
    gap: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    border: solid ;
    padding: 5px;
}

.content_warning{
    width: 50%;
    position: fixed;
    height: auto;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 999;
    left: 25%; /* Centra horizontalmente */
}

.content_warning.hidden {
    transform: translateY(20px);
}

.content_warning.up {
    opacity: 0;
    transform: translateY(-50px);
}

.topic{
    background-color: rgb(255, 255, 255);
    flex: 1;
    padding: 25px;
    margin: 20px;
    width: 98%;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.topic .text-topic{
    font-size: 18px;
}
/* Componente de entradas de texto (tipo de texto, select, etc.) */
.input_text{
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-width: 1px;
    border-style: solid;
    border-color: #7e22ce;
    border-radius: 0.5rem;
}

select {
    width:250px;
    padding: 0.5em 1em;
    border: 1px solid #7e22ce;
    border-radius: 4px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path fill="none" stroke="%23333" stroke-width="2" d="M2 6l10 10L22 6"/></svg>') no-repeat right 0.7em center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    }
    select:hover{
        background: #e7e7e7 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path fill="none" stroke="%23333" stroke-width="2" d="M2 6l10 10L22 6"/></svg>') no-repeat right 0.7em center;
        transition: background-color 0.5s ease;
        border: 1px solid #808080;
    }
    /* Estilos para las opciones */
    option {
        font-size: 14px; /* Tamaño de la fuente */
        margin: 50px;
    }

    /* Cambio de color al pasar el cursor */
    option:hover {
        background-color: #dbdbdb !important;
    }

/* Botones y hypervinculos con apariencia de botonones*/
.btn{
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    color: #805ad5;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #e9d8fd;
    background-color: transparent;
    outline: none;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover{
    color: white;
    background-color: #805ad5;
    border-color: transparent;
}

.btn:focus{
    box-shadow: 0 0 0 2px rgba(128, 90, 213, 0.5);
    outline-offset: 2px;
}

/*tarjetas de productos, catalogo de productos*/
.container_products {
    width: 100%;
    max-width: 1500px;
    padding: 20px;
    margin: 2rem auto;
}
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.col-md-4 {
    flex: 1 1 calc(25% - 1.5rem);
    box-sizing: border-box;
}

/* Card Styles */
.card {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 1rem;
}
.card-title {
    color: #2c3e50;
    font-weight: bold;
    margin: 0 0 0.5rem;
}
.card-text {
    color: #7f8c8d;
    margin: 0 0 1rem;
}

.card_mini{
    position: relative;
    border: 1px solid rgb(177, 176, 176);
    margin: 10px;
    padding: 25px 15px 15px 0px;
    height: 3cm;
    background: #E2DFDF;
    text-align: center;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
    min-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card_mini:hover {
    transform: translateY(-5px);
}

/* List Styles */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-group-item {
    display: flex;
    justify-content: space-between;
    padding: 2px;
}
.list-group-item:first-child {
    border-top: none;
}

/* tablas para tickets*/
.title_table{
    border-bottom: 2px solid #2d3748; /* border-b-2 border-gray-800 */
    margin-bottom: 1rem;
}

.table-container {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.styled-table thead tr {
    background-color: #E5E7EB;
}

.styled-table th, .styled-table td {
    border: 1px solid #D1D5DB;
    padding: 0.5rem 1rem;
}

/* tablas */
.table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table thead {
    background-color: #54baa7;
}

.table thead tr th {
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.table tbody tr {
    background-color: #f9f9f9;
}

.table tbody tr:nth-child(even) {
    background-color: #f1f1f1;
}

.table tbody tr:hover {
    background-color: #e2e2e2;
}

.table tbody tr td {
    font-size: 13px;
    letter-spacing: 0.33px;
    font-weight: normal;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.table tbody a {
    text-decoration: none;
    color: #007bff;
    display: inline-flex;
    align-items: center;
}

.table tbody a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.table tbody a .icon {
    margin-right: 5px;
}

/* Estilo para bordes redondeados en la tabla */
.table tbody tr:first-child td:first-child {
    border-top-left-radius: 8px;
}

.table tbody tr:first-child td:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.container-inputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Alinea los elementos en dos columnas */
}

.container-inputs > .input_text {
    width: calc(50% - 10px); /* Ancho del 50% menos el espacio entre los elementos */
    margin-bottom: 10px; /* Espacio inferior entre los elementos */
    box-sizing: border-box; /* Incluye el padding y el border en el ancho del elemento */
}

/* Para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .container-inputs > .input_text {
        width: calc(100% - 20px); /* Ancho completo */
    }
}

@media (max-width:1030px){
    .table thead{
        display: none;
    }
    .table, .table tbody,.table tr,.table td{
        display: block;
        width: 100%;
    }
    .table tr{
        margin-bottom: 30px;
    }
    .table tbody tr td{
        text-align: right;
    }
}


/*Componentes de detalles */
.user-container {
    transition: opacity 0.5s ease;
    width: 95%;
    margin-top: 10px;
    height: fit-content;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.35);
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}


.user-container h3 {
    margin-top: 0;
}
.form1{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    width: 100%;
    margin-top: 10px;
    height: fit-content;
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 10px; /* Añadir margen entre contenedores */
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.form-group span {
    display: block;
    margin-top: 5px;
    color: #555;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-group .update-button {
    background-color: #4CAF50;
    color: white;
}

.button-group .delete-button {
    background-color: #f44336;
    color: white;
}
.button-group .active-button {
    background-color: #30FBE3;
    color: white;
}
.button-group .unactive-button {
    background-color: #FA9948;
    color: white;
}
@media (max-width: 1068px) {
    .form-group {
    width: calc(40% - 20px); /* Ajuste para 2 columnas y margen */
}
}

@media (max-width: 480px) {
.form-group {
    width: 100%; /* Apilar en una columna */
    margin: 10px 0; /* Ajustar el margen superior e inferior */
}
}

/*Componente de carga para las tablas de doble vista*/
.loader_deli {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    width: 100%;
  }

  .iconLoaderProgress_deli {
    position: relative;
    width: 240px;
    height: 240px;
  }

  .iconLoaderProgress_deli svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .iconLoaderProgress_deliFirst circle,
  .iconLoaderProgress_deliSecond circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    animation: pulse 5s infinite ease-in-out;
  }

  .iconLoaderProgress_deliFirst circle {
    stroke: #54baa7;
    animation-delay: -2.5s;
  }

  .iconLoaderProgress_deliSecond circle {
    stroke:  rgb(135,0,132);
  }

  .load_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: auto;
  }

  @keyframes pulse {
    0%,
    100% {
      stroke-dasharray: 0, 628;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 628, 0;
      stroke-dashoffset: -314;
    }
  }
 /* Estilo para el header que contiene los botones */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative; /* Para posicionamiento de elementos hijos */
    width: 100%;
  }

  /* Título del header (parte central) */
  .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Contenedor izquierdo */
  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Contenedor de los botones (alineación en esquina derecha) */
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* Empuja los botones hacia la derecha */
  }

  /* Estilos base para todos los botones */
    .btn-naranja, .btn-rojo, .btn-azul, .btn-verde, .btn-notificaciones {
            color: white;
            border: none !important;
            border-radius: 30px !important;
            font-weight: 500;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            transition: all 0.2s ease-in-out;
            height: 35px !important;
            line-height: 35px !important;
            display: inline-block;
            text-decoration: none;
            cursor: pointer;
        }

        /* Especificaciones para botones naranja y rojo (más pequeños en ancho) */
        .btn-naranja, .btn-rojo, .btn-verde {
            padding: 0 8px !important;
            width: 40px !important;
            font-size: 0.75rem !important;
        }

/* Estilo para el botón azul (más ancho) */
.btn-azul {
    padding: 0 15px !important;
    min-width: 120px;
    font-size: 0.875rem !important;
}

/* Colores específicos */
.btn-naranja {
    background: linear-gradient(to bottom, #FF9F43, #FF9800) !important;
}

.btn-rojo {
    background: linear-gradient(to bottom, #FF5252, #F44336) !important;
}

.btn-verde {
    background: linear-gradient(to bottom, #4CAF50, #388E3C) !important;
}

.btn-notificaciones {
    position: relative;
    background: linear-gradient(135deg, #ffb347, #ff6b6b) !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease-in-out;
    height: 40px !important;
    width: 40px !important;
    line-height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

/* Número de notificaciones sin fondo blanco */
.btn-notificaciones .notificacion-count {
    position: absolute;
    top: 4px;
    right: 5px;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(0,0,0,1.5);
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
}

/* Animación sutil al pasar el mouse */
.btn-notificaciones:hover {
    transform: scale(1.1);
}


.btn-azul {
    background: linear-gradient(to bottom, #36A9FF, #2196F3) !important;
}

.tabla-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 1000px;
        max-height: 80vh; /* Limita la altura a 80% del alto de la pantalla */
        overflow-y: auto;  /* Scroll vertical si hay desbordamiento */
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
        z-index: 9999;
    }



    .tabla-header {
        background-color: #870084;
        color: white;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 8px 8px 0 0;
    }

    .tabla-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .cerrar-tabla {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .tabla-content {
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .ExcelBtn {
    background-color: #16a34a;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ExcelBtn:hover {
    background-color: #15803d;
    transform: scale(1.05);
}

.ExcelBtn svg {
    margin-right: 8px;
}

.general_table{
    border: none;
    display: flex;
    justify-content: space-around;
}

.table_total{
    width: 50%;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #dcdcdc;

}
.table_total thead {
    background-color: #54baa7;
}

.table_total th, .table_total td {
    padding: 10px;
    text-align: center;
    border: 1px solid #dcdcdc;
}

.total_period{
    text-align: center;
    font-size: 30px;
}
.total_period p {
    margin: 0;
    padding: 5px;
    font-size: 30px;
}
.card-payment{
    margin: 0 auto;
    background-color: #fff;
    width: 95%;
    border: none;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    padding: 15px;
    justify-content: space-around;

}

@media screen and (max-width: 992px) {
    .table_total{
        width: 100%;
    }

    .total_period p {
        font-size: 20px;
    }
    .card-payment{
        display: block;

    }
}
