.graph-title {
  font-size: 14px;
  font-weight: bold;
}

.general-text {
  font-size: 0.8rem;
  line-height: 1.15rem;
  align-content: center;
}

.general-text-glucose {
  font-size: 0.8rem;
  line-height: 1.15rem;
  align-content: center;
  margin-top: 20px;
}

.summary-metrics-widget {
  font-size: 0.8rem;
  line-height: 1.15rem;
  align-content: center;
}

.custom-select-meal .Select-control {
  border-radius: 50px !important;
  border: 1px solid #000000 !important;
  background-color: white !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  height: 30px;
}
@media (max-width: 767.98px) {
  .tir-graph-responsive {
    /* Hacemos que el gráfico ocupe el 100% del ancho de su columna.
       Usamos !important para anular el estilo en línea {'width': '90%'} */
    width: 100% !important;

    /* Eliminamos el margen automático para que quede bien alineado */
    margin: 0 !important;
  }
}
.custom-select-meal .Select-placeholder,
.custom-select-meal .Select-value-label {
  padding-left: 10px;
}

.custom-select-meal .Select-arrow-zone {
  padding-right: 15px;
  font-size: 1rem;
}

.custom-select-meal .Select-menu-outer {
  margin-top: 8px !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.meal-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.7rem;
}

.meal-detail-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: none;
}

.meal-detail-table td,
.meal-detail-table th {
  padding: 0.85rem;
  vertical-align: middle;
  text-align: left;
}

.meal-detail-table tfoot tr td {
  font-weight: bold !important; /* Totales en negrita */
  border-top: 1px solid #000 !important; /* Línea negra arriba */
}

.meal-detail-table tbody tr {
  border-bottom: 1px solid #dee2e6;
}

.meal-detail-table tfoot tr {
  border-top: 1px solid #212529 !important;
}

.meal-detail-table tfoot b {
  font-weight: 700 !important;
}

.recommendation-banner {
  background: #000;
  color: #fff;
  border-radius: 25px;
  padding: 15px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

/* texto base */
.recommendation-banner p {
  font-size: 0.9rem;
  margin: 0;
}

/* versión desktop (768px ) */
@media (min-width: 768px) {
  .recommendation-banner {
    height: auto;
  }

  /* Hacemos el gráfico más ancho reduciendo el padding horizontal de su contenedor */
  .daily-detail-container {
    /* Reducimos el padding de 20px a 5px en los lados izquierdo y derecho */
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* versión mobile (≤576 px) */
@media (max-width: 576px) {
  .recommendation-banner {
    padding: 12px 16px;
  }
  .recommendation-banner p {
    font-size: 0.9rem;
  }

  /* Hacemos el input de fecha más grande */
  .custom-date {
    /* Aumentamos el ancho del input */
    min-width: 200px !important;
    font-size: 1rem !important;
    height: 25px;
    caret-color: transparent;
  }

  .custom-select-meal .Select-control {
    border-radius: 50px !important;
    border: 1px solid #000000 !important;
    background-color: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    height: 25px;
  }
}
/* Forzar color del texto del campo */
input[type="date"] {
  color: black !important;
  -webkit-text-fill-color: black !important; /* Safari / Chrome */
}

/* WebKit: texto interno del date picker cuando está vacío */
input[type="date"]::-webkit-datetime-edit {
  color: black !important;
}

/* WebKit: partes individuales del date picker */
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field {
  color: black !important;
}

/* Firefox */
input[type="date"]::-moz-datetime-edit {
  color: black !important;
}
/* ====== MEAL SCORE ====== */
.meal-score-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  margin-top: -20px;
}

.meal-score-label {
  font-weight: normal;
  font-size: 0.85rem;
}

.meal-score-value {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: normal;
  font-size: 0.85rem;
}

.meal-score-arrow {
  font-size: 1.2rem;
  color: black;
}

.meal-score-badge {
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: normal;
  color: white;
  font-size: 0.85rem;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-warning {
  background-color: #ffc107;
  color: black;
}

.badge-good {
  background-color: #8bc34a; /* verde amarillento */
  color: black;
}

.badge-success {
  background-color: #28a745; /* opcional, si quieres un verde estándar */
}

.graph-title-lifestyle {
  font-size: 14px;
  margin-bottom: 20px;
  margin-top: 50px;
}

/* ====== RECOMMENDATION ====== */
.recommendation-section {
  margin-top: 20px;
}

.recommendation-title-block {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: normal;
  text-align: center;
}

.recommendation-text-outside {
  margin: 8px 0 16px 0;
  font-size: 0.9rem;
  color: gray;
  text-align: center;
}

.recommendations-container {
  min-height: 80px; /* altura mínima para evitar que salte la UI */
}

.recommendation-box {
  background-color: rgb(249, 246, 238);
  border-left: 3px solid #212121;
  padding: 10px 15px;
  margin-top: 1rem;
  border-radius: 0 6px 6px 0;
  page-break-inside: avoid;
  font-family: "MyCustomFont", sans-serif;
  font-size: 8.5pt;
  line-height: 1.4;
}
.recommendation-box h3 {
  font-size: 14pt;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.recommendation-box h4 {
  font-size: 11pt;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.recommendation-box p {
  margin-top: 0.5rem;
}
