/* Contratos: toda la información visible en escritorio, sin barra horizontal. */
#contractsTable{width:100%;max-width:100%;overflow-x:visible;padding:0}
#contractsTable>table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:collapse;white-space:normal}
#contractsTable th,#contractsTable td{box-sizing:border-box;min-width:0!important;padding:11px 8px!important;vertical-align:middle;font-size:clamp(11px,.85vw,14px);overflow-wrap:break-word}
#contractsTable th:first-child,#contractsTable td:first-child{padding-left:12px!important}
#contractsTable th:last-child,#contractsTable td:last-child{padding-right:10px!important}
#contractsTable th:nth-child(1){width:9%} /* fecha */
#contractsTable th:nth-child(2){width:6%} /* empresa */
#contractsTable th:nth-child(3){width:11%} /* matricula */
#contractsTable th:nth-child(4){width:20%} /* comprador */
#contractsTable th:nth-child(5){width:11%} /* DNI */
#contractsTable th:nth-child(6){width:13%} /* garantia */
#contractsTable th:nth-child(7){width:10%} /* importe */
#contractsTable th:nth-child(8){width:20%} /* acciones */
#contractsTable td:nth-child(4){line-height:1.35}
#contractsTable td:nth-child(8){white-space:normal}
#contractsTable td:nth-child(8) .btn{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:2px!important;padding:7px 6px!important;font-size:clamp(10px,.75vw,12px)!important;line-height:1.2;white-space:normal;max-width:100%}
#contractsTable .tag{white-space:normal;display:inline-block;line-height:1.2;padding:6px 7px}
#contractsTable .plate-pill{max-width:100%;font-size:clamp(10px,.8vw,13px)}
#contractsTable tbody tr{height:auto;min-height:58px}
@media(max-width:760px){
 #contractsTable{overflow-x:auto;-webkit-overflow-scrolling:touch}
 #contractsTable>table{min-width:850px!important}
 #contractsTable th,#contractsTable td{font-size:12px;padding:9px 6px!important}
}

/* Ajuste final de contratos: sin cortes de cabeceras ni botones apilados. */
@media(min-width:761px){
 #contractsTable th:nth-child(1){width:9%}
 #contractsTable th:nth-child(2){width:8%}
 #contractsTable th:nth-child(3){width:11%}
 #contractsTable th:nth-child(4){width:21%}
 #contractsTable th:nth-child(5){width:11%}
 #contractsTable th:nth-child(6){width:8%}
 #contractsTable th:nth-child(7){width:10%}
 #contractsTable th:nth-child(8){width:22%}
 #contractsTable th:nth-child(2){white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(10px,.72vw,13px)}
 #contractsTable td:nth-child(8){white-space:normal}
 #contractsTable td:nth-child(8) .btn{font-size:clamp(9px,.65vw,12px)!important;padding:6px 5px!important;margin:2px 1px!important;white-space:nowrap;vertical-align:middle}
 #contractsTable td:nth-child(8) .btn:first-child{display:inline-flex}
 #contractsTable td:nth-child(8) .btn:nth-child(2){display:inline-flex}
 #contractsTable td:nth-child(8) .btn:nth-child(3){display:inline-flex}
}
#contractsTable .gg-contract-warranty{white-space:nowrap!important;font-weight:700;padding:5px 7px;line-height:1.2;border-radius:999px}
#contractsTable .gg-contract-no-warranty{background:#ffedd5!important;color:#9a3412!important;border:1px solid #fed7aa}
#contractsTable .gg-contract-with-warranty{background:#dfe7ff!important;color:#3730a3!important;border:1px solid #c7d2fe}

#contractsTable .gg-contract-no-warranty{background:#ffedd5!important;color:#9a3412!important;border-color:#fdba74!important}
#contractsTable .gg-contract-warranty{white-space:nowrap!important}
