/* ============================= */
/* ====== CONSUMO DE TINTA ===== */
/* ============================= */

/* Manteniendo solo estilos específicos de la página de tinta */

.color-label {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* espacio entre círculo y texto */
}

.color-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}


/* Colores de las líneas de tinta */
.negro-circle { background-color: #06080F; }
.gris-circle { background-color: #808080; }
.cyan-circle { background-color: #00B7EB; }
.amarillo-circle { background-color: #FFEB00; }
.magenta-circle { background-color: #EB008C; }
.black-circle { background-color: #000000; }

/* Tabla específica de tinta */
.data-table .total-row {
  font-weight: 800;
}

/* Filas alternadas con forma ovalada */
.data-table tbody tr:nth-child(1) {
  background-color: #2b3045;
}
.data-table tbody tr:nth-child(2) {
  background-color: #1c1f2c;
}
.data-table tbody tr:nth-child(3) {
  background-color: #2b3045;
}
.data-table tbody tr:nth-child(4) {
  background-color: #1c1f2c;
}


.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  color: white;
}

.data-table thead th {
  padding: 12px 16px;
  background: none;
  text-align: center;
}

.data-table thead th:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.data-table thead th:last-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.data-table tbody td {
  padding: 12px 10px;
  text-align: center;
}

.data-table tbody td:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  text-align: left;
}

.data-table tbody td:last-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}


/* Notas específicas de tinta */
.ink-note,
.ink-bottles-note {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.ink-bottles-note {
  font-weight: 600;
}

/* Contenedor principal para la cuadrícula */
.bottles-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: #2b3045;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto 28px;
    border: none
}

/* Estilo de cada tarjeta de botella */

.bottle-card {
    flex: 1;
    border: none;
    background: #2b3045;
    padding: 16px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    gap: 15px;
}

/* Borde derecho para separar tarjetas, excepto la última */
.bottles-grid-container .bottle-card:not(:last-child) {
    border-right: none;
}

/* Bordes redondeados para la primera y última tarjeta */
.bottles-grid-container .bottle-card:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}
.bottles-grid-container .bottle-card:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Estilo para las imágenes de las botellas */
.bottle-img {
    max-width: 42px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transform: rotate(180deg);
}

/* Contenedor de la información */
.bottle-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
}

/* Línea de color de la tinta */
.color-line {
    width: 30px;
    height: 6.6px;
    border-radius: 10px;
    margin-bottom: 5px;
}

/* Estilo del nombre de la botella */
.bottle-name {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 18px;
}

/* Estilo del contador de botellas */
.bottle-count-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.bottle-x {
  font-size: 18px;
  font-weight: 100;
  color: #ffffff;
}

.bottle-count {
  font-size: 18px;
  font-weight: 100;
  color: #ffffff;
}

.bottle-period {
  font-size: 18px;
  font-weight: 100;
  color: #ffffff;
}

/* Colores de las líneas de tinta */
.negro-line { background-color: #06080F; }
.gris-line { background-color: #808080; }
.cyan-line { background-color: #00B7EB; }
.amarillo-line { background-color: #FFEB00; }
.magenta-line { background-color: #EB008C; }
.black-line { background-color: #000000; }

/* Resumen de botellas */
.bottles-summary {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(33, 97, 231, 0.95), rgba(33, 97, 231, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.summary-item-ink {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.summary-item-ink .label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.summary-item-ink .value {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

/* Responsive para botellas */
@media (max-width: 768px) {
  .bottles-grid {
    flex-wrap: wrap;
  }
  .bottle-card {
    flex-basis: calc(50% - 16px);
    margin: 8px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .bottle-card {
    flex-basis: 100%;
    min-height: 150px;
  }
}
