/* Shared Cedric project theme for mudstore and Status. */

:root {
  --bs-dark: #380a3b;
  --bs-dark-rgb: 56, 10, 59;
  --bs-primary: #006600;
  --bs-primary-rgb: 0, 102, 0;
  --bs-primary-text-emphasis: #004d00;

  --mud-bg: #f6f3f7;
  --mud-panel: #ffffff;
  --mud-panel-alt: #fbfcfd;
  --mud-border: #ddd6e0;
  --mud-border-soft: #ece6ee;
  --mud-muted-surface: #f2ebf3;
  --mud-text-soft: #6c757d;
}

body {
  background:
    radial-gradient(circle at top right, rgba(183, 151, 191, 0.16), transparent 20rem),
    linear-gradient(180deg, #faf7fb 0%, var(--mud-bg) 100%);
  color: #212529;
}

.navbar {
  box-shadow: 0 0.5rem 1.5rem rgba(56, 10, 59, 0.16);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
  color: #ffffff;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #006600;
  --bs-btn-border-color: #006600;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #005200;
  --bs-btn-hover-border-color: #005200;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #004d00;
  --bs-btn-active-border-color: #004d00;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #006600;
  --bs-btn-disabled-border-color: #006600;
  --bs-btn-focus-shadow-rgb: 0, 102, 0;
}

.btn-outline-primary {
  --bs-btn-color: #006600;
  --bs-btn-border-color: #006600;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006600;
  --bs-btn-hover-border-color: #006600;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #005200;
  --bs-btn-active-border-color: #005200;
  --bs-btn-focus-shadow-rgb: 0, 102, 0;
}

.btn-primary:focus,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 0, 0.5);
}

.navbar-brand {
  letter-spacing: 0.04em;
}

.card {
  background: var(--mud-panel);
  border: 1px solid var(--mud-border-soft) !important;
  box-shadow: 0 0.75rem 2rem rgba(56, 10, 59, 0.06) !important;
}

.inventory-search-wrap {
  justify-content: space-between;
}

.inventory-search-input {
  flex: 1 1 20rem;
  border-color: #cbb9cf;
  box-shadow: none;
}

.inventory-search-input:focus {
  border-color: #8f6798;
  box-shadow: 0 0 0 0.25rem rgba(143, 103, 152, 0.16);
}

.inventory-accordion .accordion-item {
  border-top: 1px solid var(--mud-border-soft);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.inventory-accordion .accordion-item:first-child {
  border-top: 0;
}

.inventory-toggle {
  background: var(--mud-panel);
  box-shadow: none;
  color: #212529;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mud-border-soft);
}

.inventory-toggle:not(.collapsed) {
  background: var(--mud-panel-alt);
  color: #212529;
  border-left-color: #b797bf;
  box-shadow: none;
}

.inventory-summary {
  display: grid;
  grid-template-columns: 4rem minmax(260px, 360px) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: center;
  padding-right: 1rem;
}

.inventory-part {
  font-weight: 700;
  color: #212529;
  overflow-wrap: anywhere;
}

.inventory-quantity {
  font-weight: 600;
  color: #4a324c;
  text-align: left;
}

.inventory-tags {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-detail {
  background: #ffffff;
}

.inventory-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.inventory-actions {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: 0.6rem;
}

.inventory-actions .btn {
  min-width: 7rem;
}

.inventory-edited-at {
  margin-top: 0.25rem;
}

.inventory-detail a {
  color: #005200;
  text-decoration: none;
}

.inventory-detail a:hover,
.inventory-detail a:focus {
  text-decoration: underline;
}

.inventory-toggle::after {
  filter: none;
}

@media (max-width: 767.98px) {
  .inventory-summary {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-right: 0.5rem;
  }

  .inventory-tags {
    white-space: normal;
  }

  .inventory-detail-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  color: var(--mud-text-soft) !important;
}
.inventory-count {
  flex: 0 0 auto;
  white-space: nowrap;
}
