:root {
  --factable-ink: #123d3a;
  --factable-ink-soft: #58716e;
  --factable-teal: #0c6b63;
  --factable-teal-dark: #07534d;
  --factable-mint: #e8f4ec;
  --factable-lime: #98c93c;
  --factable-coral: #f5745b;
  --factable-cream: #fbfaf4;
  --factable-paper: #ffffff;
  --factable-line: #dce8e3;
  --factable-shadow: 0 18px 50px rgba(12, 76, 69, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background:
    radial-gradient(circle at 95% 8%, rgba(152, 201, 60, 0.08), transparent 25%),
    var(--factable-cream);
  color: var(--factable-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--factable-teal);
  text-decoration: none;
}

a:hover {
  color: var(--factable-teal-dark);
  text-decoration: none;
}

/* En-tête et navigation */
.navbar {
  min-height: 78px;
  margin-bottom: 0 !important;
  padding: 10px 0;
  border: 0 !important;
  border-bottom: 1px solid rgba(18, 61, 58, 0.09) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 28px rgba(18, 61, 58, 0.05) !important;
  backdrop-filter: blur(14px);
}

.navbar .container,
body > .container,
.footer .container {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

a.navbar-brand {
  display: block;
  width: 166px;
  height: 48px;
  flex: 0 0 166px;
  margin-right: 28px;
  overflow: hidden;
  background: url("/images/logo-factable.svg") center / contain no-repeat;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  white-space: nowrap;
}

.navbar-nav {
  align-items: center;
  gap: 5px;
}

.navbar-light .navbar-nav .nav-link,
.navbar .nav-link.text-dark {
  padding: 10px 13px;
  border-radius: 10px;
  color: #365a57 !important;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar .nav-link.text-dark:hover {
  background: var(--factable-mint);
  color: var(--factable-teal) !important;
}

.navbar-toggler {
  border-color: rgba(12, 107, 99, 0.25) !important;
  border-radius: 10px;
}

body > .container {
  flex: 1 0 auto;
}

main[role="main"] {
  padding-top: 45px;
  padding-bottom: 70px !important;
}

/* Titres et contrôles généraux des pages internes */
main h1 {
  margin: 0 0 22px;
  color: var(--factable-ink);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

main h2,
main h3 {
  color: var(--factable-ink);
  font-weight: 750;
}

.btn,
button,
input[type="submit"] {
  border-radius: 11px;
}

.btn-primary {
  border-color: var(--factable-teal);
  background: var(--factable-teal);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--factable-teal-dark);
  background: var(--factable-teal-dark);
}

.form-control,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid #cadbd5;
  border-radius: 10px;
  background: white;
  color: var(--factable-ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--factable-teal);
  box-shadow: 0 0 0 4px rgba(12, 107, 99, 0.1);
}

label {
  color: var(--factable-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

/* Éléments partagés de l'Admin */
.admin-eyebrow {
  margin: 0 0 10px;
  color: var(--factable-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.admin-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.admin-button-primary {
  background: var(--factable-teal);
  box-shadow: 0 11px 25px rgba(12, 107, 99, 0.17);
  color: white;
}

.admin-button-primary:hover {
  background: var(--factable-teal-dark);
  color: white;
}

.admin-button-primary > span {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.admin-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Connexion */
.admin-login-page {
  display: grid;
  min-height: calc(100vh - 245px);
  padding: 20px 0 50px;
  place-items: center;
}

.admin-login-card {
  width: min(100%, 500px);
  padding: 43px 45px 46px;
  border: 1px solid var(--factable-line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--factable-shadow);
}

.admin-login-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 16px;
  background: var(--factable-mint);
}

.admin-login-icon svg {
  width: 27px;
  fill: var(--factable-teal);
}

.admin-login-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 2.65rem);
}

.admin-login-intro {
  margin: 0 0 28px;
  color: var(--factable-ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.admin-alert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(196, 65, 50, 0.19);
  border-radius: 11px;
  background: #fff1ee;
  color: #8d3329;
  font-size: 0.84rem;
}

.admin-login-form,
.admin-field {
  display: grid;
}

.admin-login-form {
  gap: 19px;
}

.admin-field {
  gap: 7px;
}

.admin-login-button {
  width: 100%;
  margin-top: 5px;
  cursor: pointer;
}

/* Liste des recettes */
.admin-page {
  padding: 8px 0 30px;
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.admin-page-heading h1 {
  margin-bottom: 11px;
}

.admin-page-intro {
  max-width: 680px;
  margin: 0;
  color: var(--factable-ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.admin-table-card {
  overflow: hidden;
  border: 1px solid var(--factable-line);
  border-radius: 20px;
  background: var(--factable-paper);
  box-shadow: 0 14px 40px rgba(12, 76, 69, 0.07);
}

.admin-table-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--factable-line);
  background: #f7faf8;
}

.admin-table-header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.admin-table-header strong {
  font-size: 0.95rem;
}

.admin-table-header span {
  color: #758a87;
  font-size: 0.75rem;
}

.admin-table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1060px;
  margin: 0;
  border-collapse: collapse;
  color: var(--factable-ink);
}

.admin-table thead th {
  padding: 16px 13px;
  border: 0;
  border-bottom: 1px solid var(--factable-line);
  background: white;
  color: #647b78;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.admin-table tbody td {
  padding: 17px 13px;
  border: 0;
  border-bottom: 1px solid #e8efec;
  color: #385b58;
  font-size: 0.84rem;
  line-height: 1.45;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr {
  transition: background 150ms ease;
}

.admin-table tbody tr:hover {
  background: #f8fbf9;
}

.recipe-name {
  color: var(--factable-ink);
  font-size: 0.9rem;
}

.ingredient-summary {
  display: block;
  max-width: 185px;
  color: #58716e;
}

.admin-actions-heading {
  min-width: 245px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-action {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #d5e4df;
  border-radius: 8px;
  background: white;
  color: #476966;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-action:hover {
  border-color: #b9d5cc;
  background: var(--factable-mint);
  color: var(--factable-teal);
}

.admin-action-edit {
  color: var(--factable-teal);
}

.admin-action-nutrition {
  border-color: rgba(12, 107, 99, 0.18);
  background: var(--factable-mint);
  color: var(--factable-teal-dark);
}

.admin-action-delete {
  border-color: rgba(197, 74, 59, 0.18);
  color: #b4473a;
}

.admin-action-delete:hover {
  border-color: rgba(197, 74, 59, 0.25);
  background: #fff0ed;
  color: #933328;
}

/* Pied de page */
.footer {
  position: static;
  width: 100%;
  flex: 0 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(18, 61, 58, 0.1) !important;
  background: #eef4ef;
  color: #6b817e !important;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: normal;
}

.footer a {
  color: var(--factable-teal);
}

@media (max-width: 900px) {
  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table-responsive {
    overflow: visible;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tbody tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--factable-line);
  }

  .admin-table tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-table tbody td {
    display: grid;
    grid-template-columns: minmax(125px, 0.42fr) 1fr;
    gap: 18px;
    padding: 8px 0;
    border: 0;
  }

  .admin-table tbody td::before {
    color: #758a87;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .ingredient-summary {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .navbar {
    min-height: 70px;
  }

  .navbar .container,
  body > .container,
  .footer .container {
    width: min(100% - 30px, 1180px);
  }

  a.navbar-brand {
    width: 145px;
    height: 42px;
    flex-basis: 145px;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--factable-line);
    border-radius: 14px;
    background: white;
  }

  .navbar-nav {
    align-items: stretch;
  }

  main[role="main"] {
    padding-top: 30px;
  }

  .admin-login-card {
    padding: 32px 24px 35px;
  }

  .admin-page-heading .admin-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .admin-table-header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .admin-table tbody td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-actions {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Espace membre — gestion des ingrédients */
.member-page {
  padding: 8px 0 35px;
}

.member-eyebrow {
  margin: 0 0 10px;
  color: var(--factable-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.member-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.member-page-heading h1,
.member-form-page h1,
.member-confirm-page h1 {
  margin-bottom: 11px;
}

.member-page-intro {
  max-width: 720px;
  margin: 0;
  color: var(--factable-ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

.member-ingredients-table {
  min-width: 760px;
}

.member-empty-state {
  display: grid;
  min-height: 330px;
  padding: 45px 25px;
  border: 1px dashed #bed5ce;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  place-items: center;
  text-align: center;
}

.member-empty-state h2 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
}

.member-empty-state p {
  max-width: 460px;
  margin: 0 0 20px;
  color: var(--factable-ink-soft);
}

.member-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--factable-mint);
  color: var(--factable-teal);
  font-size: 2rem;
  font-weight: 300;
  place-items: center;
}

.member-page-footer-link {
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 700;
}

.member-form-page {
  max-width: 970px;
  margin: 0 auto;
}

.member-form-card {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--factable-line);
  border-radius: 22px;
  background: var(--factable-paper);
  box-shadow: 0 16px 45px rgba(12, 76, 69, 0.08);
}

.member-form-section + .member-form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--factable-line);
}

.member-form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.member-form-section-heading > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 10px;
  background: var(--factable-mint);
  color: var(--factable-teal);
  font-size: 0.82rem;
  font-weight: 800;
  place-items: center;
}

.member-form-section-heading h2 {
  margin: 1px 0 4px;
  font-size: 1.05rem;
}

.member-form-section-heading p {
  margin: 0;
  color: var(--factable-ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.member-form-card .form-group {
  margin-bottom: 17px;
}

.member-form-card .text-danger {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
}

.member-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--factable-line);
}

.member-form-actions .btn {
  min-height: 45px;
  padding: 10px 17px;
  font-size: 0.88rem;
  font-weight: 700;
}

.member-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-detail-card {
  display: flex;
  min-height: 135px;
  flex-direction: column;
  justify-content: center;
  padding: 21px;
  border: 1px solid var(--factable-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(12, 76, 69, 0.05);
}

.member-detail-card > span {
  color: var(--factable-ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.member-detail-card strong {
  margin-top: 6px;
  color: var(--factable-ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.member-detail-card small {
  margin-top: 8px;
  color: var(--factable-ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.member-detail-card-featured {
  border-color: rgba(12, 107, 99, 0.18);
  background: var(--factable-mint);
}

.member-confirm-page {
  display: grid;
  min-height: calc(100vh - 285px);
  place-items: center;
}

.member-confirm-card {
  width: min(100%, 600px);
  padding: 38px;
  border: 1px solid var(--factable-line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--factable-shadow);
}

.member-delete-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0;
  padding: 17px 18px;
  border-radius: 13px;
  background: #f5f8f6;
}

.member-delete-summary span,
.member-confirm-warning {
  color: var(--factable-ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .member-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-page-heading .admin-button {
    width: 100%;
  }

  .member-ingredients-table {
    min-width: 0;
  }

  .member-nutrition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .recipe-ingredient-selection-list {
    grid-template-columns: 1fr;
  }

  .recipe-wizard-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-wizard-progress-line {
    display: none;
  }

  .recipe-quantity-heading {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .member-form-card,
  .member-confirm-card {
    padding: 24px 19px;
  }

  .member-nutrition-grid {
    grid-template-columns: 1fr;
  }

  .member-form-actions {
    flex-direction: column;
  }

  .member-form-actions .btn {
    width: 100%;
  }
}

/* Espace membre — gestion des recettes */
.member-recipes-table {
  min-width: 930px;
}

.member-recipe-details-table {
  min-width: 520px;
}

.member-heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.member-inline-empty {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  border: 1px dashed #bed5ce;
  border-radius: 15px;
  background: #f8fbf9;
}

.member-inline-empty span {
  color: var(--factable-ink-soft);
  font-size: 0.86rem;
}

.member-inline-empty .btn {
  margin-top: 7px;
}

.recipe-ingredient-list {
  display: grid;
  gap: 10px;
}

.recipe-ingredient-category {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 4px solid var(--factable-lime);
  border-radius: 8px;
  background: #eef7f0;
}

.recipe-ingredient-category:first-child {
  margin-top: 0;
}

.recipe-ingredient-category h3 {
  margin: 0;
  color: var(--factable-teal-dark);
  font-size: 1rem;
  font-weight: 750;
}


.recipe-ingredient-wizard {
  display: grid;
  gap: 22px;
}

.recipe-wizard-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--factable-line);
  border-radius: 14px;
  background: #fbfdfc;
}

.recipe-wizard-progress-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--factable-ink-soft);
}

.recipe-wizard-progress-item span {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--factable-line);
  border-radius: 50%;
  background: white;
  font-size: 0.82rem;
}

.recipe-wizard-progress-item.is-active {
  color: var(--factable-teal-dark);
}

.recipe-wizard-progress-item.is-active span,
.recipe-wizard-progress-item.is-complete span {
  border-color: var(--factable-teal);
  background: var(--factable-teal);
  color: white;
}

.recipe-wizard-progress-line {
  height: 2px;
  flex: 1;
  background: var(--factable-line);
}

.recipe-category-filter {
  max-width: 520px;
  margin-bottom: 18px;
}

.recipe-category-filter label {
  display: block;
  margin-bottom: 7px;
}

.recipe-category-filter small {
  display: block;
  margin-top: 6px;
  color: var(--factable-ink-soft);
}

.recipe-selection-summary {
  margin-bottom: 12px;
  color: var(--factable-teal-dark);
}

.recipe-ingredient-selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipe-ingredient-selection-item {
  display: flex;
  min-height: 82px;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--factable-line);
  border-radius: 13px;
  background: #fbfdfc;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.recipe-ingredient-selection-item.is-selected {
  border-color: var(--factable-teal);
  background: #eef7f0;
  box-shadow: 0 8px 22px rgba(12, 107, 99, 0.08);
}

.recipe-ingredient-selection-item label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  cursor: pointer;
}

.recipe-ingredient-selection-item label span,
.recipe-ingredient-selection-item label small,
.recipe-ingredient-choice span,
.recipe-ingredient-choice small {
  color: var(--factable-ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
}

.recipe-selection-warning {
  margin-top: 14px;
  margin-bottom: 0;
}

.recipe-quantity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.recipe-quantity-heading h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
}

.recipe-quantity-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--factable-ink-soft);
  font-size: 0.86rem;
}

.recipe-quantity-heading > strong {
  flex: 0 0 auto;
  color: var(--factable-teal-dark);
}

.recipe-quantity-list {
  display: grid;
  gap: 10px;
}

.recipe-quantity-row[hidden],
.recipe-ingredient-selection-item[hidden] {
  display: none !important;
}

.recipe-quantity-row .recipe-ingredient-choice {
  justify-content: space-between;
}

.recipe-quantity-row .recipe-ingredient-choice > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recipe-remove-ingredient {
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #a23b31;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.recipe-remove-ingredient:hover {
  text-decoration: underline;
}

.recipe-wizard-actions {
  margin-top: 18px;
}

.recipe-ingredient-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 155px 105px;
  align-items: end;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--factable-line);
  border-radius: 14px;
  background: #fbfdfc;
}

.recipe-ingredient-choice {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 12px;
}

.recipe-checkbox {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: var(--factable-teal);
}

.recipe-ingredient-choice label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  cursor: pointer;
}

.recipe-ingredient-choice label span {
  color: var(--factable-ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.recipe-ingredient-amount label,
.recipe-ingredient-unit label {
  display: block;
  margin-bottom: 6px;
}

.nutrition-member-heading {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .member-recipes-table,
  .member-recipe-details-table {
    min-width: 0;
  }

  .member-heading-actions {
    width: 100%;
  }

  .recipe-ingredient-row {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-ingredient-choice {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .member-heading-actions,
  .recipe-ingredient-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .member-heading-actions .admin-button,
  .member-heading-actions .btn {
    width: 100%;
  }

  .recipe-ingredient-choice {
    grid-column: auto;
  }
}
