/* css/mh.css */
:root {
  --mh-blue-dark: #0B3C98;
  --mh-blue-mid:  #0079E1;
  --mh-blue-light:#00B7FF;
  --mh-gray-bg:   #F4F6F9;
  --mh-gray-text: #6C757D;
}

body {
  background-color: var(--mh-gray-bg);
  color: #000;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mh-header .mh-logo {
  height: 48px;
  width: auto;
}

.btn-mh-primary {
  background-color: var(--mh-blue-dark);
  border-color: var(--mh-blue-dark);
  color: #fff;
}
.btn-mh-primary:hover,
.btn-mh-primary:focus {
  background-color: var(--mh-blue-mid);
  border-color: var(--mh-blue-mid);
  color: #fff;
}

.mh-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .5rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05);
}

.mh-footer {
  color: var(--mh-gray-text);
}

.mh-table-responsive {
  overflow-x: auto;
}

.mh-table thead {
  background-color: var(--mh-blue-dark);
  color: #fff;
}
.mh-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,.03);
}

/* Estado etiquetas */
.badge-estado-activo {
  background: var(--mh-blue-light);
  color: #000;
}
.badge-estado-inactivo {
  background: #dc3545; /* rojo bootstrap */
}

/* Tabla general */
.mh-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

/* Encabezados de tabla */
.mh-table th, .mh-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}

.mh-table th {
  background-color: var(--mh-blue-dark);
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Alternancia de filas */
.mh-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Celdas de precios */
.mh-precio {
  text-align: right;
  white-space: nowrap;
  font-weight: bold;
}

/* Imagen del producto */
.mh-img-prod {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Botón de acción */
.mh-accion-link {
  color: var(--mh-blue-dark);
  text-decoration: none;
  font-weight: 500;
  text-decoration: underline;
}
.mh-accion-link:hover {
  text-decoration: underline;
}

/* Contenedor de la tabla */
.mh-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="number"],
input[type="file"],
select,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.mh-busqueda-input {
  width: 320px;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: .375rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/*.mh-img-prod {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.25rem;
} */
