td {
  font-size: 16px;
}

#id-edit, #id-, #id-wines {
  display: none;
}

#box .show-more:checked + .more {
  display: block;
}

.utility-rightbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 2rem;
}

body {
  padding: 0 2em;
  font-family: Montserrat, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #000;
  background: #b0c4de;
}

.icon {
  font-size: 2em;
}

h1 {
  font-weight: normal;
  letter-spacing: -1px;
  color: #34495E;
}

.table.is-rounded {
  border-radius: 12px; /* Adjust the roundness */
}

.navbar.is-rounded {
  border-radius: 12px;
}

@media (max-width: 991px) {
  .navbar {
    min-height: 3.25rem;
  }
  .navbar-menu:not(.is-active) {
    display: none;
  }
  .navbar-menu.is-active {
    display: block;
  }
  .navbar-item.has-dropdown > .navbar-dropdown {
    display: none;
  }
  .navbar-item.has-dropdown.is-active > .navbar-dropdown {
    display: block;
  }
}
.field.custom-width {
  max-width: 300px;
}

.input.is-rounded {
  border-radius: 5px;
}

.rwd-table {
  background: #34495E;
  color: #fff;
  border-radius: 0.4em;
  overflow: hidden;
}
.rwd-table tr {
  border-color: rgb(64.9643835616, 91.2, 117.4356164384);
}
.rwd-table th, .rwd-table td {
  margin: 0.5em 1em;
}
@media (min-width: 480px) {
  .rwd-table th, .rwd-table td {
    padding: 1em !important;
  }
}
.rwd-table th, .rwd-table td:before {
  color: #dd5;
}

.wine-card-list {
  display: none;
  margin-top: 1rem;
}

.wine-card {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wine-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.wine-card-main {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.wine-card-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.wine-card-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.wine-card-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #d3dce6;
}

.wine-card-body {
  flex: 1;
  min-width: 0;
}

.wine-card-line {
  font-size: 0.95rem;
  line-height: 1.3;
}

.wine-card-identity {
  font-weight: 600;
}

.wine-card-label {
  color: #333;
}

.wine-card-location {
  color: #555;
  font-size: 0.875rem;
}

.wine-card-footer {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.wine-card-qty {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  height: 1.6rem;
  padding: 0 0.5rem;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  color: #363636;
  white-space: nowrap;
}

.wine-card-sign {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.wine-card-sign img {
  height: 1.5rem;
  width: auto;
  display: block;
}

.wine-card.is-filtered-out {
  display: none !important;
}

.wine-card-toolbar {
  display: none;
  width: 100%;
  margin-bottom: 0.5rem;
}

.wine-card-search {
  width: 100%;
}

.wine-detail {
  max-width: 40rem;
  margin: 0 auto;
}

.wine-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wine-detail-primary {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.wine-detail-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.wine-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.wine-detail-label,
.wine-detail-location {
  margin: 0.15rem 0;
}

.wine-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.wine-detail-sign img {
  height: 1.5rem;
}

.wine-detail-more {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.wine-detail-more summary {
  cursor: pointer;
  font-weight: 700;
}

.wine-detail-fields {
  margin: 0.5rem 0 0;
}

.wine-detail-fields > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.wine-detail-fields dt {
  font-weight: 700;
  margin: 0;
}

.wine-detail-fields dd {
  margin: 0;
}

.wine-card[data-quantity="0"] {
  display: none;
}

.wine-card[data-quantity="0"].show-empty {
  display: flex;
}

#wine-form-more {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

#wine-form-more summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.wine-form-on-hand {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}

@media (max-width: 991px) {
  .wine-table-desktop {
    display: none !important;
  }
  .wine-card-list {
    display: block;
  }
  .wine-card-toolbar {
    display: block;
  }
  body {
    padding: 0 0.75em;
  }
  #wine-form-primary,
  #wine-form-more {
    --bulma-column-gap: 0;
  }
  #wine-form-primary .columns,
  #wine-form-more .columns {
    display: block;
    margin: 0 0 0.4rem !important;
  }
  #wine-form-primary .column.is-1,
  #wine-form-more .column.is-1 {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }
  #wine-form-primary .column,
  #wine-form-more .column {
    width: 100%;
    padding: 0.1rem 0 !important;
  }
  #wine-form-primary .label,
  #wine-form-more .label {
    margin-bottom: 0.15rem !important;
    font-size: 0.875rem;
  }
  #wine-form-primary .input,
  #wine-form-more .input,
  #wine-form-primary .select select,
  #wine-form-more .select select,
  #wine-form-primary .textarea,
  #wine-form-more .textarea {
    min-height: 2.15rem;
    height: 2.15rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  #wine-form-primary .textarea,
  #wine-form-more .textarea {
    height: auto;
    min-height: 2.75rem;
  }
  #wine-form-primary .select,
  #wine-form-more .select {
    height: 2.15rem;
  }
  .wine-form-on-hand {
    margin: 0.1rem 0 0.4rem;
    font-size: 0.875rem;
  }
  #wine-form-more {
    margin: 0.4rem 0;
    padding: 0.4rem;
  }
  #wine-form-more summary {
    margin-bottom: 0.25rem;
  }
  h3 {
    margin: 0.4rem 0 0.6rem;
    font-size: 1.15rem;
  }
}
@media (min-width: 992px) {
  .wine-card-list {
    display: none;
  }
  .wine-card-toolbar {
    display: none !important;
  }
}
