/* alineación---------------- */
.center{
    text-align: center !important;
}
.derecha{
    float: right !important;
    border:1px solid green;
}
.izquierda{
    float: left !important;
    border:1px solid red;
}
.subrayado{
    border-bottom: 1px solid;
}
/* fin de alineación--------------- */
.cabecera{
    /* width: 100%; */
    margin-bottom: 15px;
}
#logo{
    width: 20%;
    float: left;
}
.logo{
    max-width: 150px;
}
#titulo{
    float: left;
    width: 55%;
}
#titulo h2{
    margin-bottom:0px;
}
#no_contrato{
    width: 20%;
    border:1px solid #ccc;
    border-radius: 10px !important;
    float: left;
    padding: 10px;
}
#folio{
    text-align: right;
    width: 100%;
    padding-right: 20px;
}
#pie_cabecera{
    width: 100%;
    padding: 10px 10px 10px 0px;
    border-bottom: 2px solid #ccc;
}

.tblcol{
    float:left;
    margin-left: 10px;
    width: 48%;
}
.tblcol table tr {
    margin:0px !important;

}

.campo{
    font-weight: bold !important;
}

/* Estilos simples para la tabla de reportes de órdenes */
#rptordenes {
    border-collapse: collapse;
    width: 100%;
}

#rptordenes thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

/* Líneas bien definidas para cada fila */
#rptordenes tbody tr {
    border-bottom: 1px solid #dee2e6 !important;
}

#rptordenes tbody td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6 !important;
    vertical-align: top;
}

#rptordenes tbody td:last-child {
    border-right: none;
}

.rpt-insumos-cell {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpt-insumos-empty {
    color: #6c757d;
    font-style: italic;
}

.rpt-insumo-item {
    border: 1px solid #dee2e6;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
}

.rpt-insumo-salida {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.rpt-insumo-entrada {
    border-left-color: #28a745;
    background: #f5fff8;
}

.rpt-insumo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.rpt-insumo-cantidad {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.rpt-insumo-desc {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    line-height: 1.35;
    margin-bottom: 6px;
}

.rpt-insumo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

.rpt-insumo-foot strong {
    color: #212529;
    white-space: nowrap;
}

#resumenInsumosReporte {
    clear: both;
    padding-top: 18px;
}

.rpt-resumen-insumos h3 {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
}

.rpt-resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.rpt-resumen-card {
    border: 1px solid #dee2e6;
    border-top-width: 4px;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
}

.rpt-resumen-card h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}

.rpt-resumen-salida {
    border-top-color: #dc3545;
}

.rpt-resumen-entrada {
    border-top-color: #28a745;
}

.rpt-resumen-sin-costo {
    border-top-color: #d39e00;
}

.rpt-resumen-table {
    margin-bottom: 0;
}

.rpt-resumen-table thead th,
.rpt-resumen-table tfoot th {
    background: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.rpt-resumen-table tbody td,
.rpt-resumen-table tfoot th {
    font-size: 13px;
}

.rpt-resumen-table td:nth-child(2),
.rpt-resumen-table td:nth-child(3),
.rpt-resumen-table th:nth-child(2),
.rpt-resumen-table th:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.rpt-resumen-empty {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

.rpt-sin-costo {
    color: #856404;
    font-weight: 600;
}
