.nicetable {
    width: 99%;
    margin: 12px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #263238;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.nicetable td,
.nicetable th {
    padding: 8px 10px;
    border-bottom: 1px solid #e6ebf1;
    border-right: 1px solid #eef2f6;
    vertical-align: middle;
    background: #ffffff;
}

.nicetable tr td:last-child,
.nicetable tr th:last-child {
    border-right: none;
}

.nicetable tr:last-child td {
    border-bottom: none;
}

.nicetable tr:first-child td,
.nicetable tr:first-child th,
.nicetable .tabla_datos_titulo {
    background: #f4f7fb;
    color: #1f3a5f;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid #d7dee8;
}

.nicetable tr:nth-child(even) td {
    background: #fafcff;
}

.nicetable tr:hover td {
    background: #eef6ff;
}

.nicetable .tabla_datos {
    font-size: 11px;
    color: #263238;
}

.nicetable .tabla_datos_titulo {
    letter-spacing: 0.2px;
}

/* Total / última fila */
.nicetable tr:last-child td.tabla_datos_titulo {
    background: #eef2f7;
    color: #102a43;
    font-weight: 700;
}

/* Celdas numéricas */
.nicetable .text-right,
.nicetable td[style*="text-align:right"] {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

/* Mejor comportamiento en PDF */
.nicetable {
    page-break-inside: auto;
}

.nicetable tr {
    page-break-inside: avoid;
    page-break-after: auto;
}

.nicetable td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.nicetable4 {
margin:0px;padding:0px;
width:1200px;
border:1px solid #04407c;
display: table;
margin:0px;padding:0px;
empty-cells: show;
}

.nicetable4 tr:hover td{
background-color:#d3e9ff;
}
.nicetable4 td{
vertical-align:middle;
background-color:#ffffff;
border:1px solid #04407c;
border-width:0px 1px 1px 0px;
text-align:left;
padding:3px;
font-size:10px;
font-family:Arial;
font-weight:normal;
color:#04407c;
}

.nicetable4 tr:first-child th{
background:-o-linear-gradient(bottom, #04407c 5%, #04407c 100%);	
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #04407c), color-stop(1, #04407c) );	
background:-moz-linear-gradient( center top, #04407c 5%, #04407c 100% );	
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#04407c", endColorstr="#04407c");	
background: -o-linear-gradient(top,#04407c,04407c);
background-color:#04407c;
border:0px solid #04407c;
text-align:center;
border-width:0px 0px 1px 1px;
font-size:12px;
font-family:Arial;
font-weight:bold;
color:#ffffff;
}
.nicetable4 tr:first-child th:first-child{
border-width:0px 0px 1px 0px;
}
.nicetable4 tr:first-child th:last-child{
border-width:0px 0px 1px 1px;
}

