/* ---------------------------------------------------------------------
   Botones de TABLA para los controladores Laravel nativos (los de info: eNDICC_botones_info.css).
   No son resaltados ni hundidos (sin sombra ni efecto de presionado) y su
   altura es el 75% de la de un boton de comando (eNDICC_botones_seleccion.css,
   40px). Padding de tabla compacta. Cada boton debe llevar texto traducido
   y title (tooltip html) traducido.

   Uso:
     <button class="btn btn-primary ncs-btn-tabla" title="{{ _lang('...') }}"
             data-toggle="tooltip" data-html="true"><i class="fas fa-passport"></i> {{ _lang('...') }}</button>
   Los .btn dentro de celdas de bootstrap-table / table-sm toman el estilo solos.
 --------------------------------------------------------------------- */
:root {
	--ncs-cmd-h:  40px;                        /* altura del boton de comando */
	--ncs-tbl-h:  calc(var(--ncs-cmd-h) * .75); /* 75% */
}

.ncs-btn-tabla,
.bootstrap-table .fixed-table-body td .btn,
table.table-sm td .btn,
table.table td .btn.btn-xs,
table.table td .btn.btn-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	height: var(--ncs-tbl-h);
	padding: 0 .5rem;
	font-size: .85rem;
	line-height: 1.2;
	border-radius: .25rem;
	vertical-align: middle;
	white-space: nowrap;
	box-shadow: none;
	text-shadow: none;
	transform: none;
	transition: none;
}
.ncs-btn-tabla:hover,
.ncs-btn-tabla:active,
.ncs-btn-tabla:focus,
.bootstrap-table .fixed-table-body td .btn:hover,
.bootstrap-table .fixed-table-body td .btn:active,
table.table-sm td .btn:hover,
table.table-sm td .btn:active {
	box-shadow: none;
	transform: none;
}

/* ---------------------------------------------------------------------
   Colores de botones iguales al legacy (Bootstrap 3). El tema Laravel los
   deja grisaceos; aqui se mantienen los del legacy en todas las pantallas
   que cargan esta hoja:
     btn-info (celeste)  AGREGAR, MEDIA, Detalle, comandos de info
     btn-success (verde) TRAZABILIDAD     btn-warning (naranja) EDITAR
     btn-danger (rojo)   BORRAR
 --------------------------------------------------------------------- */
.btn.btn-info { background-color: #5bc0de !important; border-color: #46b8da !important; color: #fff !important; }
.btn.btn-info:hover:not(:disabled) { background-color: #31b0d5 !important; border-color: #269abc !important; }
.bootstrap-table td .btn-success, table.table td .btn-success { background-color: #5cb85c !important; border-color: #4cae4c !important; color: #fff !important; }
.bootstrap-table td .btn-success:hover:not(:disabled), table.table td .btn-success:hover:not(:disabled) { background-color: #449d44 !important; border-color: #398439 !important; }
.bootstrap-table td .btn-warning, table.table td .btn-warning { background-color: #f0ad4e !important; border-color: #eea236 !important; color: #fff !important; }
.bootstrap-table td .btn-danger, table.table td .btn-danger { background-color: #d9534f !important; border-color: #d43f3a !important; color: #fff !important; }
