/* Overview */
/* Overview */

.expiry-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 94px;
  padding: 15px;
  border: 1px solid #bfe8cc;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(241, 251, 245, 0.94) 0%, rgba(255, 255, 255, 0.88) 62%, rgba(234, 249, 239, 0.92) 100%);
  box-shadow: 0 12px 26px rgba(20, 146, 74, 0.1);
  color: var(--text);
  text-align: left;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.expiry-card.status-warning {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  border-color: #ffb4b4;
  background: linear-gradient(120deg, #fff5f5 0%, #ffffff 62%, #fff1f1 100%);
  box-shadow: 0 14px 30px rgba(255, 71, 71, 0.12);
}

.expiry-card.status-caution {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  border-color: #f3cf72;
  background: linear-gradient(120deg, #fff9e8 0%, #ffffff 62%, #fff4d8 100%);
  box-shadow: 0 14px 30px rgba(244, 160, 0, 0.13);
}

.expiry-card.status-loading {
  border-color: #c9d8e5;
  background: linear-gradient(120deg, #f5f9fc 0%, #ffffff 62%, #eef5fa 100%);
  box-shadow: 0 12px 26px rgba(56, 86, 108, 0.1);
}

.expiry-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #33bc78, #14924a);
  box-shadow: 0 10px 20px rgba(20, 146, 74, 0.2);
}

.status-warning .expiry-icon {
  background: linear-gradient(135deg, #ff7368, #ff302f);
  box-shadow: 0 10px 20px rgba(255, 71, 71, 0.26);
}

.status-caution .expiry-icon {
  background: linear-gradient(135deg, #ffc44d, #f4a000);
  box-shadow: 0 10px 20px rgba(244, 160, 0, 0.24);
}

.status-loading .expiry-icon {
  background: linear-gradient(135deg, #8ca4b7, #587287);
  box-shadow: 0 10px 20px rgba(56, 86, 108, 0.18);
}

.expiry-icon img {
  width: 31px;
  height: 31px;
  filter: invert(1);
}

.expiry-card strong {
  display: block;
  color: var(--green);
  font-size: 1.28rem;
}

.status-warning strong {
  color: var(--red);
}

.status-caution strong {
  color: #b87400;
}

.status-loading strong {
  color: #38566c;
}

.expiry-card small {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.expiry-card em {
  padding: 10px 13px;
  border-radius: 15px;
  background: linear-gradient(135deg, #33bc78, #14924a);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.status-warning em {
  background: linear-gradient(135deg, #ff756f, #ff302f);
}

.status-caution em {
  background: linear-gradient(135deg, #ffc44d, #f4a000);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.summary-strip button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(38px, auto);
  gap: 5px;
  align-items: center;
  min-height: 50px;
  padding: 7px 9px;
  border: 1px solid #dceaf2;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(14, 80, 120, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.summary-strip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.summary-strip small {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 0.66rem;
  line-height: 1.15;
  white-space: nowrap;
}

.summary-strip span {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-width: 0;
}

.compact-title {
  margin-top: 14px;
}

.section-title span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.section-title img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.section-title button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.suggestion-card {
  display: grid;
}

.recipe-suggestion-card,
.detail-recipe-suggestions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e6ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(14, 80, 120, 0.06);
}

.detail-recipe-suggestions {
  margin-top: 14px;
}

.recipe-suggestion-head {
  display: grid;
  gap: 3px;
}

.recipe-suggestion-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.recipe-suggestion-head img {
  width: 22px;
  height: 22px;
}

.recipe-ingredient-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 7px;
  border: 1px solid #d7e6ef;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.recipe-ingredient-button img {
  width: 48px;
  aspect-ratio: 1.24;
  border-radius: 10px;
  background: #eaf8fb;
  object-fit: cover;
}

.recipe-ingredient-button strong,
.recipe-ingredient-button small {
  display: block;
}

.recipe-ingredient-button strong {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  font-weight: 850;
}

.recipe-ingredient-button small {
  color: #38566c;
  font-size: 0.76rem;
}

.recipe-ingredient-button em {
  color: var(--accent);
  font-size: 1.25rem;
  font-style: normal;
}

.recipe-suggestion-head small,
.recipe-warning,
.recipe-ai-idea small {
  color: #5c7587;
  font-size: 0.78rem;
}

.recipe-result-group {
  display: grid;
  gap: 7px;
}

.recipe-result-group > strong {
  color: #38566c;
  font-size: 0.82rem;
}

.recipe-result {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dceaf2;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.recipe-result span,
.recipe-ai-idea span {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.recipe-result small {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
}

.recipe-ai-idea {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dceaf2;
  border-radius: 12px;
  background: #fff;
}

.recipe-ai-idea a {
  display: grid;
  gap: 5px;
  min-height: 36px;
  padding-right: 34px;
  text-decoration: none;
}

.recipe-import-button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #bcdfe8;
  border-radius: 999px;
  background: #f1fbfd;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.recipe-import-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.recipe-import-button.imported {
  border-color: #b8dfc6;
  background: #f1fbf4;
  color: #2d7a4b;
  text-decoration: none;
}

.recipe-warning {
  margin: 0;
  line-height: 1.35;
}

.ai-suggestion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #bcdfe8;
  border-radius: 13px;
  background: #f1fbfd;
  color: var(--accent);
  font-weight: 850;
}

.ai-suggestion-button img {
  width: 20px;
  height: 20px;
}

.suggestion-button {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 8px;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(14, 80, 120, 0.07);
  color: var(--text);
  text-align: left;
}

.suggestion-button img {
  width: 76px;
  aspect-ratio: 1.24;
  border-radius: 12px;
  background: #eaf8fb;
  object-fit: cover;
}

.suggestion-button strong,
.suggestion-button small {
  display: block;
}

.suggestion-button strong {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.suggestion-button small {
  color: #38566c;
  font-size: 0.78rem;
}

.suggestion-button em {
  color: var(--accent);
  font-size: 1.5rem;
  font-style: normal;
}

.location-overview {
  margin-top: 12px;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(14, 80, 120, 0.06);
  overflow: hidden;
}

.location-overview summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--accent-dark);
  list-style: none;
}

.location-overview summary::-webkit-details-marker {
  display: none;
}

.location-overview summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.location-overview summary img {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.location-overview summary small {
  color: var(--muted);
  font-weight: 700;
}

.location-overview-list {
  display: grid;
  gap: 1px;
  padding: 0 12px 12px;
}

.location-overview-list button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border-top: 1px solid #eef5f9;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: #38566c;
  font-size: 0.82rem;
  text-align: left;
}

.location-overview-list button.active {
  color: var(--accent-dark);
}

.location-overview-list button.active strong {
  color: var(--accent);
}

.location-overview-list strong {
  color: var(--text);
  font-size: 0.82rem;
}

.inventory-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.inventory-search-row.has-reset {
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

