/* Contraste y números uniformes para la operación diaria. */
.app-body {
  color: #30251f;
  background: #f1ede7;
  font-variant-numeric: lining-nums tabular-nums;
}
.app-body .panel,
.app-body .supplier-card {
  background: #ffffff;
  border-color: #d7ccc1;
}
.app-body .panel-head {
  border-bottom: 1px solid #e1d8ce;
}
.app-body th {
  background: #ebe3d9;
  color: #584334;
  font-weight: 650;
}
.app-body tbody tr:nth-child(even) {
  background: #faf8f5;
}
.app-body tbody tr:hover {
  background: #f4eadf;
}
.app-body .stat {
  border: 1px solid #d7ccc1;
  border-top: 4px solid #795344;
  background: #ffffff;
}
.app-body .stat:nth-child(2) {
  border-top-color: #346b59;
  background: #edf5f0;
}
.app-body .stat.amber {
  border-top-color: #b77916;
  background: #fff4d9;
}
.app-body .stat.rust {
  border-top-color: #b64e3c;
  background: #fcebe5;
}
.app-body .stat > strong,
.app-body .report-total,
.app-body td,
.app-body .chart-label,
.app-body .expiry-date,
.app-body .date-chip,
#modal input[type='number'] {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.app-body .stat > strong {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.3;
  color: #392b23;
}
.app-body .stat:nth-child(2) > strong {
  color: #245441;
}
.app-body .stat.amber > strong {
  color: #81510c;
}
.app-body .stat.rust > strong {
  color: #913d2d;
}
.app-body .stat-label,
.app-body .stat small,
.app-body .panel-head p,
.app-body td small,
.app-body .filters > span {
  color: #66584b;
}
.app-body .stat-label {
  font-weight: 600;
}
.app-body .stat:nth-child(2) .stat-label > span {
  color: #245441;
  background: #d4e8dc;
}
.app-body .stat.amber .stat-label > span {
  color: #81510c;
  background: #f3dfab;
}
.app-body .stat.rust .stat-label > span {
  color: #913d2d;
  background: #f1cfc2;
}
.app-body .badge.success {
  background: #dcefe2;
  color: #23583a;
}
.app-body .badge.warning {
  background: #ffebbc;
  color: #78500b;
}
.app-body .badge.danger {
  background: #f9dcd5;
  color: #963c2e;
}
.app-body .product-icon:has(.product-photo) {
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 52px;
  background: #f4efe9;
}
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preset-picker {
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid #d8c5b3;
  border-radius: 12px;
  background: #f5eee5;
}
.preset-picker small,
.photo-editor small {
  display: block;
  margin: 8px 0 12px;
  color: #6a5849;
  font-size: 12px;
  line-height: 1.6;
}
.photo-editor {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  margin-top: 20px;
  border: 1px dashed #bda28c;
  border-radius: 12px;
}
.photo-editor > img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
}
.photo-editor [hidden] {
  display: none;
}
.photo-editor > div {
  flex: 1;
  min-width: 0;
}
.photo-editor input {
  max-width: 100%;
}
@media (max-width: 550px) {
  .app-body .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 20px 0 0;
    opacity: 1;
  }
  .app-body .hero-art img {
    width: 95px;
    height: 90px;
  }
  .app-body .hero-number {
    display: none;
  }
  .photo-editor {
    flex-direction: column;
    align-items: stretch;
  }
  .app-body .stat > strong {
    font-size: 26px;
  }
}
.search input:focus-visible {
  outline: none;
  box-shadow: none;
}
.search:focus-within {
  border-color: #8d6049;
  box-shadow: 0 0 0 2px #8d60491a;
}
