/* Tarifas por tipo de tarifa (tarea #1840270) */
.ratesByType { display: flex; flex-direction: column; height: 100%; }
.ratesByTypeToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px; }
.ratesByTypeToolbar label { margin: 0; }
.ratesByTypeSpacer { flex: 1; }
.ratesByTypeScroll { height: calc(100vh - 260px); overflow: auto; }
.ratesByTypeTable { width: 100%; border-collapse: collapse; }
.ratesByTypeTable thead th { position: sticky; top: 0; z-index: 1; background: #f5f5f5; text-align: left; white-space: nowrap; }
.ratesByTypeTable th.num, .ratesByTypeTable td.num { text-align: right; }
.ratesByTypeTable td { white-space: nowrap; vertical-align: middle; }
/* la descripcion hace salto de linea (algunos temas fuerzan nowrap en las celdas) para que la tabla quepa en la ventana */
.ratesByTypeTable td.desc { white-space: normal !important; min-width: 180px; }
.ratesByTypeTable input.ratesByTypeNum { width: 80px; text-align: right; margin: 0; }
.ratesByTypeTable select { width: 70px; margin: 0; }
.ratesByTypeTable tr.ratesByTypeChanged > td { background-color: #fff8db; }
.ratesByTypeTable tr.ratesByTypeChanged > td:first-child { box-shadow: inset 3px 0 0 #e0a800; }
.ratesByTypeNew { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #e0a800; color: #ffffff; font-size: 10px; font-weight: bold; }
.ratesByTypeMessage { padding: 18px; }
.ratesByTypeMessage p { margin: 0 0 12px; }
.ratesByTypeMessage ul { margin: 0 0 12px 18px; padding: 0; max-height: 200px; overflow: auto; }
.ratesByTypeMessageActions { display: flex; justify-content: flex-end; gap: 8px; }
.ratesByTypeApplyForm { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; margin-bottom: 14px; }
/* buscador de la lista: mas ancho que el resto de filtros de la barra (por encima del max-width de general-tabs) */
.ratesByTypeToolbar input#ratesByTypeSearch { width: 270px !important; max-width: 100%; field-sizing: fixed; }
/* pie de la lista: contador a la izquierda, Descartar y Aplicar a la derecha */
.ratesByTypeGrid .footer.ratesByTypeFooter { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; }
.ratesByTypeFooterActions { display: flex; gap: 8px; margin-left: auto; }
.ratesByTypeToolbar label.ratesByTypeOnlyChanges { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.ratesByTypeToolbar label.ratesByTypeOnlyChanges input { margin: 0; }
/* pestana Precios compra (tarea #1840785): los que varian mas del umbral, resaltados */
.ratesPurchasePricesTable tr.ratesPurchasePricesReview > td { background-color: #fff1e6; }
.ratesPurchasePricesTable tr.ratesPurchasePricesReview > td:first-child { box-shadow: inset 3px 0 0 #b54708; }
.ratesPurchasePricesTable tr.ratesPurchasePricesReview td.ratesPurchasePricesVar { font-weight: bold; color: #9a3a05; }
.ratesPurchasePricesTable input.ratesPurchasePricesCheck, #ratesPurchasePricesAll { margin: 0; }
.ratesPurchasePricesBadge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #b54708; color: #ffffff; font-size: 10px; font-weight: bold; cursor: help; }
.ratesPurchasePricesReviewText { color: #9a3a05; }
.ratesPurchasePricesHint { color: #555555; font-size: 12px; cursor: help; }
.ratesPurchasePricesWarning { margin: 0 0 12px; padding: 8px 10px; background: #fff1e6; border: 1px solid #f0c9a8; color: #6b2c03; }
.ratesPurchasePricesWarning p { margin: 0 0 6px; }
.ratesPurchasePricesWarning ul { margin-bottom: 0; }
