﻿

.form {
    background: white;
    padding: 20px 25px; /*Arriba, izq */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    box-sizing: border-box;
}

table {
    border-collapse: separate; /* Cambiar de collapse a separate */
    border-spacing: 0; /* Elimina el espacio entre celdas para que parezca colapsada */
}

table thead th,
table thead td {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    background-color: white !important;
    z-index: 20;
    color: black;
}

table tfoot th,
table tfoot td {
    position: -webkit-sticky; /* Soporte para Safari */
    position: sticky;
    bottom: 0;
    font-weight: bold;
    background: white !important;
    background-color: white;
    border-top: 1px solid black;
    border-bottom: 3px double black;
    color: black;
    z-index: 10; /* Un poco menor que el header */
}

.div-tabla-moderna {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.tabla-moderna {
    width: 100%;
    border-collapse: collapse;
}

    .tabla-moderna thead {
        background: #f5f7fb;
    }

    .tabla-moderna th,
    .tabla-moderna td {
        border-bottom: 1px solid #e5e7eb;
        height: 24px;
    }


.page-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-top {
    min-height: 100vh;
    display: flex;
    justify-content: center;    
    align-items: flex-start; /*Top*/
    padding-top: 10px; /* separa del borde superior */
}

select {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}
select:focus {
    outline: none;
    border: 1px solid orange;
    background-color: #fff9cc; /* amarillo muy claro */
}



input[type="file"] {    
    font-size: 11px;
    font-family: Arial;
    height: 22px;
}

input[type="text"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}

/* cuando toma foco */
input[type="text"]:focus {
    outline: none;
    border: 1px solid orange;
    background-color: #fff9cc; /* amarillo muy claro */
}

input[type="date"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}

    /* cuando toma foco */
    input[type="date"]:focus {
        outline: none;
        border: 1px solid orange;
        background-color: #fff9cc; /* amarillo muy claro */
    }

input[type="month"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}

    /* cuando toma foco */
    input[type="month"]:focus {
        outline: none;
        border: 1px solid orange;
        background-color: #fff9cc; /* amarillo muy claro */
    }

input[type="number"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}

    /* cuando toma foco */
    input[type="number"]:focus {
        outline: none;
        border: 1px solid orange;
        background-color: #fff9cc; /* amarillo muy claro */
    }

input[type="password"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #ffffff;
}

    /* cuando toma foco */
    input[type="password"]:focus {
        outline: none;
        border: 1px solid orange;
        background-color: #fff9cc; /* amarillo muy claro */
    }

label {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    background-color: #f0f0f0;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

.simplelabel {
    background-color: #ffffff !important;
    border: none !important;    
    font-weight: 600 !important;
    padding-top:2px;
}

input.label {
    display: inline-block;
    background-color: #f0f0f0;
    border: 1px solid #a9a9a9;
    color: #000;
    cursor: default;
}

    /* evita foco amarillo */
    input.label:focus {
        outline: none;
        border: 1px solid #a9a9a9;
        background-color: #f0f0f0;
    }

    /* opcional: evita edición */
    input.label[readonly] {
        background-color: #f0f0f0;
    }
input[type="submit"] {
    height: 20px;
    font-family: Arial;
    font-size: 12px;
    border: 1px solid #a9a9a9;
    padding-left: 4px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;    
}

input[type="file"] {
    font-size: 11px;
    font-family: Arial;
    height: 23px;
}

.btnExcel {
    width: 24px;
    height: 24px;
    border: none;
    background-color: transparent;
    background-image: url('..ExcelBW24x24.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.botonbusca {
    height: 20px;
    padding: 0 15px;
    margin-left: 5px;
    border: none;
    color: white;
    background-color: #0d6efd;
    border-radius: 4px;
    border: 1px solid #a9a9a9;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 11px;
    font-weight: normal;
}

.botonEliminafromGrid {
    height: 18px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 1px;
    margin: 0px;
    border: none;
    border-radius: 4px;
    border: 1px solid darkred;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 10px;
    background-color: white;
    color: darkred;
    font-weight: 700;
}


.botonverde {
    padding: 8px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: forestgreen;
    color: white;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

    .botonverde:hover {
        background-color: forestgreen;
    }

.botonazul {
    border: none;
    border-radius: 4px;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

    .botonazul:hover {
        background-color: #0d6efd;
    }


.botonblancorojo {
    padding: 8px;
    margin: 5px;
    border-radius: 4px;
    background-color: white;
    color: darkred;
    border: 1px solid darkred;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.botonblanco {
    padding: 8px;
    margin: 5px;
    border-radius: 4px;
    background-color: white;
    color: black;
    border: 1px solid #d8dce7;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
}




.botonrojo {
    padding: 8px;
    margin: 5px;
    border-radius: 4px;
    background-color: darkred;
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
}
        
    .botonrojo:hover {
        background-color: darkred;
    }

.botonamarillo {
    padding: 8px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: gold;
    color:black;
    cursor: pointer;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 12px;
}

    .botonamarillo:hover {
        background-color: gold;
    }


.botonlink {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

.btn-delete-grid {
    border: none;
    background: none;
    color: #c62828;
    cursor: pointer;
    padding: 4px 6px;
}

    .btn-delete-grid:hover {
        color: #ff0000;
        transform: scale(1.1);
    }

.table.table-striped th,
.table.table-striped td {
    height: 20px;
    font-size: 10px; /* ajusta según necesites */
    padding: 4px 6px; /* menos espacio para compactar */
}

@media (min-width:600px) {
    
    td {
        font-family: Arial;
        font-Size: 8pt;
        border: solid 1px "#EBEBEB";
    }

    th {
        background-color: #a9b0b4;
        color: white;
        font-family: Arial;
        font-Size: 8pt;
        font-weight: normal;
    }
}

@media (max-width:600px) {
    .form {
        background-color: white;
        text-align: left;
        padding: 0px;
    }

    td {
        font-family: Arial;
        font-Size: 9pt;
        border: solid 1px "#EBEBEB";
    }

    th {
        background-color: #a9b0b4;
        color: white;
        font-family: Arial;
        font-Size: 9pt;
        font-weight: normal;
    }
}
