body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    background: #f5f5f5;
    font-size: 16px;
}

.errorMsg{
    color: red;
}


.renglon{
    width: 100%;
    display: inline-block;
    text-align: center;
}


/* =====================  
    LOGIN 
==================== */
.miniBox {
    width: 90%; /* En móvil ocupa casi todo el ancho */
    max-width: 500px;
    display: block; /* Mejor que inline-block para centrar fácil */
    padding: 30px 15px;
    margin: 40px auto; /* Centrado automático más seguro */
    text-align: center;
    border: 1px var(--border) solid;
    box-sizing: border-box;
}

.miniBox .form_input {
    display: inline-block;
    margin: 20px auto;
    padding: 14px 14px;
    border: 1px #acacac solid;
    width: 80%; /* Un poco más ancho en móvil */
}

/* El input a 40px es gigante para móvil, lo ajustamos */
.miniBox .input_100 {
    font-size: 24px; 
    width: 100%;
    box-sizing: border-box;
    background:none ;
    border:none ;
    outline: none;
}

.txtcenter{text-align: center;}

#datosUserTop{
    text-align: right;
    position: fixed;
    top:0px;
    right: 10px;
    width:auto;
}

.logotipoPanel{
    width:200px; margin: 10px auto;
}

.logoTop{
    width:70px; margin-left:26%;
    border-radius:15px;
    margin-bottom:20px;
}


input::placeholder, 
textarea::placeholder {
  font-style: italic;
  color: #888; /* Opcional: para darle un tono grisáceo */
}

/* PANEL LATERAL */
.panelLateral {
    width: 300px;
    background: #2c3e50;
    padding: 10px;
    position: fixed;
    left: -240px; /* Escondido */
    top: 0;
    bottom: 0;
    transition: 0.3s ease-in-out;
    z-index: 9;
    overflow-y : scroll;
    overflow-x: hidden;
}

/* Estilo general para la barra de scroll del panel */
.panelLateral::-webkit-scrollbar {
    width: 6px; /* Un ancho mucho más fino */
}

/* El fondo de la barra (track) */
.panelLateral::-webkit-scrollbar-track {
    background: transparent; /* O puedes usar #1a252f para que sea sutil */
}

/* La parte que se mueve (thumb) */
.panelLateral::-webkit-scrollbar-thumb {
    background: #4e6a85; /* Un tono más claro que tu fondo para que se vea */
    border-radius: 10px; /* Bordes redondeados */
}

/* Al pasar el mouse sobre la barra (hover) */
.panelLateral::-webkit-scrollbar-thumb:hover {
    background: #5dade2; /* Color un poco más vivo al interactuar */
}

.panelLateral.show {
    left: 0; /* Aparece */
}

/* BOTON MENU */
.menuToggle {
    position: absolute;
    right: 0px; /* Posición inicial */
    top: 0px;
    padding: 5px 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    color: #ffffff;
    transition: 0.3s ease-in-out; /* Misma velocidad que el panel */
    user-select: none;
}

/* Esta clase se activará con JS para mover el botón y rotarlo */
.menuToggle.open {
    left: 240px; /* Se desplaza lo mismo que mide el panel + padding */
    transform: rotate(450deg); /* Animación de rotación */
    font-size: 40px;
}

.misdatosRight{text-align: left;}

.btnPanel{
    width:calc(100% - 60px);
    padding:16px 20px;
    margin-bottom:10px;
    font-size:18px;
    border:none;
    background:#34495e;
    color:white;
    display: block; box-sizing: border-box;
    text-align: left;
    border-radius:8px;
    transition: 0.3s ease-in-out; /* Misma velocidad que el panel */
}

.btnPanel:hover{
    background:#3c6997;
}







/* =================================
    DASHBOARD
=================================*/
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    .kpi-card {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        text-align: center;
    }
    .kpi-card h3 { color: #666; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; }
    .kpi-value { font-size: 1.8rem; font-weight: bold; color: #333; }
    .kpi-value.money { color: #28a745; }
    
    .data-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .data-card {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .data-card h3 { margin-bottom: 15px; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    
    .table-mini { width: 100%; border-collapse: collapse; }
    .table-mini td, .table-mini th { padding: 10px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid #f9f9f9; }
    .table-mini th { color: #888; font-weight: 500; }
    .text-right { text-align: right; }

/* =================================
    FILTRO FECHAS
================================= */
 .filtro-container {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 25px;
        display: flex;
        align-items: flex-end;
        gap: 15px;
        border: 1px solid #eee;
    }
    .form-group-filtro {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .form-group-filtro label {
        font-size: 0.8rem;
        color: #666;
        font-weight: bold;
        text-transform: uppercase;
    }
    .input-dash {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.9rem;
        outline: none;
    }
    .input-dash:focus {
        border-color: #28a745;
    }



/* ========================
    TABLAS 
======================== */
    .tabla-pedidos {
        width: 100%;
        background: #fff;
        border-radius: 8px;
        border-collapse: collapse;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        margin-top: 10px;
    }
    .tabla-pedidos th {
        background: #f4f6f8;
        color: #555;
        font-weight: 700;
        text-align: center;
        padding: 15px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
    .tabla-pedidos td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
        color: #333;
    }
    .tabla-pedidos tr:hover { background: #fcfcfc; }
    
    /* Estados */
    .badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
    }
    .badge-pendiente { background: #fff3cd; color: #856404; }
    .badge-completado,
    .badge-pagado
     { background: #d4edda; color: #155724; }
    
    .text-bold { font-weight: bold; }
    .text-muted { color: #888; font-size: 0.8rem; }








.mainContainer{
    padding: 20px;
}

.icoCopy{width:20px; vertical-align: middle; margin-left:10px; cursor: pointer;}

.cardPanel{
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px; /* 👈 aumenta para que quepan 2 columnas */
    margin: 20px auto;

    display: flex;
    gap: 20px; /* espacio entre columnas */
    flex-wrap: wrap; /* para responsive */
}

.cardPanelColum{
    border-radius: 20px;
    padding: 20px;
    flex: 1; /* ambas columnas ocupan mismo espacio */
    min-width: 300px; /* evita que se rompa en pantallas pequeñas */
}


.form_group{
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form_group label{
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

.form_group input,
.form_group select{
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.previewLogo{
    margin: 15px 0;
}

.previewLogo img{
    max-width: 120px;
    border-radius: 8px;
}






.topBar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#ffffff ;
    padding:10px;
    font-size: 20px ;
    font-weight: 700;
    border-radius:10px;
    margin-bottom: 10px;
}

/* empuja TODO lo que esté después hacia la derecha */
.topBar .btnEnviar{
    margin-left: auto;
}







/* =========================
   MODAL OVERLAY
========================= */
.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* =========================
   CONTENIDO DEL MODAL
========================= */
.modalContent{
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    max-height: 80vh; overflow-y: auto;

    animation: aparecerModal 0.2s ease;
}

/* =========================
   ANIMACIÓN
========================= */
@keyframes aparecerModal{
    from{
        transform: scale(0.9);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   PREVIEW IMAGEN
========================= */
#previewEdit{
    margin: 10px 0;
}

#previewEdit img{
    width: 80px;
    border-radius: 8px;
    display: block;
}

/* =========================
   BOTÓN CERRAR (opcional)
========================= */
.btnCerrar{
    background: #ccc;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    float: right;
}

.modalBotones.button{
    margin: 10px auto;
}







/* =========================
   SCROLLBAR ESTILIZADO
========================= */

/* 1. Definir el ancho del scroll */
.modalContent::-webkit-scrollbar {
    width: 6px; /* Muy delgado para que sea sutil */
}

/* 2. El fondo del scroll (track) */
.modalContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* 3. La barrita que se mueve (thumb) */
.modalContent::-webkit-scrollbar-thumb {
    background: #ccc; /* Color gris suave */
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* 4. Efecto hover para que el usuario sepa que es interactivo */
.modalContent::-webkit-scrollbar-thumb:hover {
    background: #999; /* Se oscurece un poco al pasar el mouse */
}

/* Compatibilidad para Firefox (usando propiedades estándar) */
.modalContent {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}










/* CONTENEDOR GENERAL */
#contenedorProductos{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

/* CARD */
.cardProducto{
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
}

/* IMAGEN */
.imgProducto{
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* CONTENIDO */
.productoBox{
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* NOMBRE */
.productoName{
    font-weight: bold;
    font-size: 15px;
}

/* DESCRIPCIÓN */
.productoBox div:nth-child(2){
    font-size: 13px;
    color: #666;
    min-height: 30px;
}

/* PRECIO */
.productoBox div:nth-child(3){
    font-weight: bold;
    color: #556b2f;
}

/* BOTONES */
.productoBotones{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.productoBotones button{
    flex: 1;
    margin: 2px;
}




#filtroCategorias{
    display:flex;
    gap:10px;
    margin:15px auto;
    flex-wrap:wrap;
    justify-content: center; /* 🔥 esto lo centra */
}


.btnCategoria{
    padding:6px 12px;
    border:none;
    border-radius:20px;
    background:#eee;
    cursor:pointer;
}

.btnCategoria.active{
    background:#556b2f;
    color:#fff;
}









/* CONTENEDOR GENERAL */
#contenedorExtras{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* GRUPO */
.grupoExtra{
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* HEADER DEL GRUPO */
.grupoExtra input[type="text"]{
    width: 100%;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* SELECT + BOTON */
.grupoExtra select{
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

/* BOTÓN OPCIÓN */
.grupoExtra button{
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #556b2f;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

/* CONTENEDOR OPCIONES */
.opciones{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ITEM OPCIÓN */
.opcionItem{
    display: flex;
    gap: 8px;
    align-items: center;
}

/* INPUT NOMBRE */
.opcionItem input[type="text"]{
    flex: 1;
}

/* INPUT PRECIO */
.opcionItem input[type="number"]{
    width: 80px;
}

/* INPUT GENERAL */
.grupoExtra input,
.opcionItem input{
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.grupoHeader{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupoControls{
    display: flex;
    justify-content: space-between;
    align-items: center;
}





/* =========================
   TABLAS YUMIWAP
========================= */

.tablaWrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* TABLA BASE */
.tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 14px;
}

/* HEADER */
.tabla thead {
    background: #2f5d3a; /* verde olivo */
    color: #fff;
}

.tabla thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

/* BODY */
.tabla tbody tr {
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.tabla tbody tr:hover {
    background: #f7fdf9;
}

/* CELDAS */
.tabla td {
    padding: 12px;
    color: #333;
}

/* FILAS ALTERNADAS */
.tabla tbody tr:nth-child(even) {
    background: #fafafa;
}

/* BADGES (opcional) */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge.verde {
    background: #e6f4ea;
    color: #2e7d32;
}

.badge.rojo {
    background: #fdecea;
    color: #c62828;
}

/* BOTONES EN TABLA */
.tabla .acciones {
    display: flex;
    gap: 8px;
}

.btnTabla {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btnEditar {
    background: #e3f2fd;
    color: #1565c0;
}

.btnEliminar {
    background: #fdecea;
    color: #c62828;
}

#tbodyCategorias tr {
    cursor: grab;
}

#tbodyCategorias tr:active {
    cursor: grabbing;
}

/* RESPONSIVE */
@media(max-width: 768px){
    .tabla {
        font-size: 13px;
    }
}


.diaRow{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px auto;
    flex-wrap: wrap;
    width:100%;
    max-width:540px;
}

.diaRow label{
    width:100px;
    font-weight:bold;
}
.diaRow input[type="time"]{
    padding:6px 10px;
    font-size:16px;
}









/* =========================================
   CARD PANEL PREMIUM
========================================= */

.cardPanelPremium{
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* brillo suave */
.cardPanelPremium::before{
    content:"";
    position:absolute;
    top:-100px;
    right:-100px;
    width:220px;
    height:220px;
    background: radial-gradient(
        rgba(255,255,255,0.8),
        transparent 70%
    );
    pointer-events:none;
}



/* =========================================
   COLUMNA IZQUIERDA
========================================= */

.panelInfo{
    width:100%;
}
.panelTitulo{
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--main-color);
}

/* =========================================
   RENGLONES
========================================= */
/* GRID DE DATOS */
.panelGrid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:14px;
}
.panelDato{
    background: #f8f9fb;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border:1px solid rgba(0,0,0,0.04);
    transition:0.2s;
}
.panelDato:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* =========================================
   LABELS
========================================= */

.panelLabel{
    font-size:14px;
    color:#777;
    margin-bottom:4px;
    display:block;
}


.panelValor{
    font-size:18px;
    font-weight:bold;
    color:#222;
}



/* =========================================
   LINK MENU
========================================= */

.linkMenuBox{

    background: linear-gradient(
        135deg,
        #f3f4f6,
        #ffffff
    );

    border:1px dashed rgba(0,0,0,0.15);

    border-radius:16px;

    padding:16px;

    margin-top:15px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;

    flex-wrap:wrap;
}


.linkMenuTexto{

    font-size:16px;
    font-weight:bold;

    word-break: break-all;
}



/* =========================================
   QR
========================================= */

.qrPanel{

    min-width:240px;

    text-align:center;
}


.qrPanelTexto{

    font-size:15px;

    color:#666;

    line-height:1.5;

    margin-bottom:15px;
}


.qrImg{

    width:200px;
    max-width:100%;

    border-radius:18px;

    background:#fff;

    padding:10px;

    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}



/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:700px){

    .cardPanelPremium{

        flex-direction:column;

        padding:20px;
    }

    .qrPanel{

        width:100%;
    }

    .panelGrid{

        grid-template-columns: 1fr;
    }

}