﻿/*body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #eee;
    padding: 10px;
}

.container {
    max-width: 400px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.campo {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-box {
    display: flex;
    gap: 5px;
}

.btn-buscar {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
}

.btn-guardar {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 85%;
    max-width: 350px;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-accion {
    padding: 15px;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-azul {
    background: #2980b9;
}

.btn-naranja {
    background: #e67e22;
}

.btn-cerrar {
    width: 100%;
    padding: 10px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
}

.resultado-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.btn-reporte {
    width: 100%;
    background: #34495e;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}*/

/* Haz los botones más grandes para dedos (PDA/Móvil) */
/*.btn-reporte, .btn-guardar, .btn-buscar {
    min-height: 48px;*/ /* Tamaño recomendado por Google para móviles */
    /*touch-action: manipulation;*/ /* Elimina el retraso de 300ms */
    /*font-size: 16px;*/ /* Evita que el iPhone haga zoom automático al enfocar */
/*}*/

/* Alineación para números en tablas */
/*.col-numerica {
    text-align: right !important;
    padding-right: 15px;*/ /* Espacio para que no pegue al borde */
    /*font-family: 'Courier New', Courier, monospace;*/ /* Opcional: fuente monoespaciada para alinear cifras */
/*}*/

/* Alineación para los encabezados de esas columnas */
/*.header-numerico {
    text-align: right !important;
}*/



/* Evitar que el texto rompa la línea si es muy largo */
/*.col-fecha, .col-estado, .col-cantidad {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/


/* Estilo para columna de Fecha */
/*.col-fecha {
    width: 130px !important;
    text-align: center;
    white-space: nowrap;
}*/

/* Estilo para columna de Estado */
/*.col-estado {
    width: 70px !important;
    text-align: center;
    white-space: nowrap;
}*/

/* Estilo para la columna de Cantidad */
/*.col-cantidad {
    width: 60px !important;*/ /* Ancho fijo */
    /*text-align: right !important;*/ /* Forzar justificado a la derecha */
    /*padding-right: 10px !important;*/ /* Espacio para que el número no toque el borde */
/*}*/

/* Asegurar que el encabezado (th) también respete la derecha */
/*th.col-cantidad {
    text-align: right !important;
}*/

/* Opcional: Si el GridView se estira demasiado, forzamos que respete los anchos */
/*#gvReporte {
    border-collapse: collapse;
    width: auto;*/ /* Para que no ocupe el 100% si no lo deseas */
/*}

    #gvReporte th, #gvReporte td {
        border: 1px solid #ccc;
        padding: 4px;
    }*/




/* Contenedor del contenido del modal */
/*.modal-content {
    position: relative;*/ /* Esto permite que el botón se posicione respecto a este cuadro */
    /*padding: 20px;
    background-color: #fff;
    border-radius: 5px;
}*/

/* Estilo para el botón X en la esquina superior derecha */
/*.btn-cerrar-top {
    position: absolute;*/ /* Lo sacamos del flujo normal */
    /*top: 10px;*/ /* Distancia desde el borde superior */
    /*right: 15px;*/ /* Distancia desde el borde derecho */

    /*background-color: #f44336;*/ /* Rojo */
    /*color: white;
    border: none;
    border-radius: 4px;
    width: 30px;*/ /* Lo hacemos cuadrado */
    /*height: 30px;
    font-size: 20px;*/ /* Tamaño de la X */
    /*font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .btn-cerrar-top:hover {
        background-color: #d32f2f;
    }*/




/* --- ESTILOS GENERALES --- */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #eee;
    padding: 10px;
}

.container {
    max-width: 400px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.campo {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- BOTONES Y ACCIONES --- */
.search-box {
    display: flex;
    gap: 5px;
}

.btn-buscar, .btn-guardar, .btn-reporte, .btn-accion {
    min-height: 48px; /* Optimizado para PDA/Móvil */
    touch-action: manipulation;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

.btn-buscar {
    background: #3498db;
    padding: 0 15px;
}

.btn-guardar {
    background: #27ae60;
    width: 100%;
    margin-top: 10px;
}

.btn-reporte {
    background: #34495e;
    width: 100%;
    padding: 12px;
}

.btn-azul {
    background: #2980b9;
}

.btn-naranja {
    background: #e67e22;
}

.btn-cerrar {
    background: #95a5a6;
    width: 100%;
    padding: 10px;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* --- VENTANA MODAL (MAXIMIZADA) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-x: hidden;
}

.modal-content {
    position: relative; /* Para posicionar la X de cerrar */
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 10px auto; /* Pequeño margen superior/inferior */
    width: 56% !important; /* Ocupa casi todo el ancho */
    max-width: 58% !important;
    box-sizing: border-box;
}

.btn-cerrar-top {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .btn-cerrar-top:hover {
        background-color: #d32f2f;
    }

.resultados-list {
    width: 100%;
    margin-top: 15px;
}

.fila-resultado {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
}

/* --- GRIDVIEW Y TABLAS DE REPORTE --- */
#gvReporte {
    border-collapse: collapse;
    width: auto;
}

    #gvReporte th, #gvReporte td {
        border: 1px solid #ccc;
        padding: 6px;
    }

.col-numerica, .col-cantidad, .header-numerico {
    text-align: right !important;
}

.col-fecha {
    width: 130px !important;
    text-align: center;
    white-space: nowrap;
}

.col-estado {
    width: 70px !important;
    text-align: center;
    white-space: nowrap;
}

.col-cantidad {
    width: 65px !important;
    padding-right: 10px !important;
    font-family: 'Courier New', Courier, monospace;
}

/* --- ADAPTACIÓN PARA MÓVILES Y PDAs (Pantallas de menos de 600px) --- */
@media screen and (max-width: 600px) {

    /* El contenedor principal de la página ya no deja márgenes laterales */
    .container {
        max-width: 100%;
        width: 100%;
        padding: 10px;
        border-radius: 0; /* Opcional: quita bordes redondeados en móvil */
    }

    /* El modal ocupa todo el ancho disponible sin dejar huecos */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0; /* Pegado a los bordes */
        border-radius: 0;
        height: 100%; /* Si quieres que ocupe todo el largo de la pantalla */
    }

    /* Ajuste de los resultados para que el texto no se amontone */
    .fila-resultado {
        padding: 15px 10px; /* Más espacio para tocar con el dedo */
        font-size: 16px; /* Tamaño de letra cómodo */
    }

    /* Ajuste para que la X de cerrar sea más fácil de presionar */
    .btn-cerrar-top {
        width: 40px;
        height: 40px;
        top: 5px;
        right: 5px;
    }
}