﻿body {
  background: #f7f7f7;
}

.page-header {
  margin-top: 20px;
}

.filters .form-group {
  margin-right: 10px;
}

.table thead th {
  white-space: nowrap;
}

.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
}

.actions .btn {
  margin-right: 6px;
}

.label-cat {
  display: inline-block;
  min-width: 70px;
}

.empty-row {
  text-align: center;
  color: #888;
}

.nav-tabs {
  margin-bottom: 15px;
}

.is-busy, .is-busy * {
  cursor: wait !important;
}

.file-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: .5rem;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
}

.btn-icon {
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  opacity: .2;
  text-shadow: 0 1px 0 #fff;
  text-align: center;
  display: inline-block;
  border-radius: 2px;
}

.btn-icon:hover,
.btn-icon:focus {
  color: #000;
  opacity: .5;
  outline: none;
}

.fade-out {
  background: #fff3cd;
  opacity: 0;
  transition: opacity .3s ease;
}

.carousel .item {
  min-height: 40vh;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.carousel .item img {
  max-height: 70vh;
  width: auto;
}

.scrollbox {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smoother on iOS */
}

/* Pick ONE of these size helpers */
.scrollbox-260 {
  max-height: 260px;
}

/* fixed height */
.scrollbox-60vh {
  max-height: 60vh;
}
/* ~60% of viewport (nice in modals) */

* Make each row fill its container */
.category-item {
  width: 100%;
}

/* Ensure the label behaves like a row */
.checkbox.category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Keep the checkbox/icon from stretching */
.checkbox.category-label > input,
.checkbox.category-label > i {
  flex: 0 0 auto;
}

/* Flex row that owns the available width */
.checkbox.category-label .cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0; /* 🔑 allow children to shrink */
}

/* Truncate the name */
.checkbox.category-label .cat-name {
  flex: 1 1 auto; /* grow & shrink */
  min-width: 0; /* 🔑 required for ellipsis in flex */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 300; /* thinner */
}

/* Keep the count visible & right-justified */
.checkbox.category-label .cat-count {
  flex: 0 0 auto; /* don’t shrink */
  margin-left: auto; /* push to the right */
  color: #666;
  font-size: 0.9em;
}

span.quantity-label {
  display: inline-block;
  font-size: 18px; /* Match button text */
  padding: 10px 16px; /* Match btn-u-lg vertical/horizontal padding */
  line-height: 1.33;
  border-radius: 3px; /* Match .btn border radius if needed */
  vertical-align: middle;
  margin-right: 20px;
}

.btn-u-lg {
  vertical-align: middle;
}
