#horas-gastos-table {
    width: 100%;
    border-collapse: collapse; /* Elimina el espacio entre las celdas */
}

#horas-gastos-table td, #horas-gastos-table th {
    text-align: center;  /* Centra horizontalmente */
    vertical-align: middle;  /* Centra verticalmente */
    padding: 8px;  /* Espaciado dentro de las celdas */
}

/* Opcional: Alternar colores para filas */
#horas-gastos-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Colores alternos */
}

#horas-gastos-table th {
    background-color: #fafafa; /* Fondo del encabezado */
    font-weight: bold;
}

.card-client-signature{
    margin-bottom: 0px;
}

/* Only target the table inside .table-responsive-cantidad */
.table-responsive-cantidad table th:nth-child(1),
.table-responsive-cantidad table td:nth-child(1) {
    width: 1%; /* Make this column just wide enough to fit the content */
    white-space: nowrap; /* Prevent line breaks for the "Cantidad" column */
}

.table-responsive-cantidad table th:nth-child(2),
.table-responsive-cantidad table td:nth-child(2) {
    width: auto; /* Allow "Descripción" to take the remaining space */
}

.col-signature{
    margin-bottom: 0px !important;
}

/* Service details styling - each dt-dd pair on its own line */
.service-details {
    margin-bottom: 0;
}

.detail-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.detail-row dt {
    white-space: nowrap;
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: bold;
    flex-shrink: 0;
}

.detail-row dd {
    margin-left: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Vertically align h4 elements in card headers */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4 {
    margin: 0;
    flex-grow: 1;
}

/* Make both card sections equal height */
.row .col-md-6 {
    display: flex;
    flex-direction: column;
}

.row .col-md-6 .card-header {
    flex-shrink: 0;
}

.row .col-md-6 .card-body-custom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}