/* ==========================================================================
   ARRAY DEPOT — DASHBOARD STYLESHEET
   ========================================================================== */

/* ── Layout ──────────────────────────────────────────────────────────────── */
.dashboard-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 26px);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.dashboard-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--text-color);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  overflow-y: auto;
  height: calc(100vh - 26px);
  position: sticky;
  top: 26px;
}

.sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--text-color);
}

.sidebar-section.add-section {
  padding: 0;
  border-bottom: 1px solid var(--text-color);
}

.sidebar-section.depot-section {
  border-bottom: none;
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}

.section-meta {
  font-family: 'PP Neue York Condensed', serif;
  font-size: 12px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.05em;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.stat-card {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-card:first-child {
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid var(--text-color);
}

.stat-value {
  font-family: 'PP Neue York Condensed', serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.stat-label {
  font-family: 'PP Neue York Condensed', serif;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
  font-weight: 800;
}

/* ── Add button ──────────────────────────────────────────────────────────── */
.add-item-btn {
  width: 100%;
  height: 48px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 0;
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.add-item-btn:hover {
  opacity: 0.75;
}

/* ── Depot list ──────────────────────────────────────────────────────────── */
.depot-list-wrapper {
  display: flex;
  flex-direction: column;
}

.depot-card {
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.1s ease;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

body.dark-theme .depot-card {
  border-bottom-color: rgba(255,255,255,0.06);
}

.depot-card:last-child {
  border-bottom: none;
}

.depot-card:hover {
  background-color: var(--btn-bg);
}

.depot-card.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.depot-card.active .depot-code,
.depot-card.active .depot-fill-percent {
  color: var(--bg-color);
}

.depot-card.active .depot-meta {
  color: rgba(255,255,255,0.45);
}

body.dark-theme .depot-card.active .depot-meta {
  color: rgba(0,0,0,0.45);
}

.depot-card.active .depot-progress-bar {
  background-color: rgba(255,255,255,0.2);
}

.depot-card.active .depot-progress-fill {
  background-color: rgba(255,255,255,0.8);
}

.depot-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.depot-code {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.depot-fill-percent {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.depot-meta {
  font-family: 'PP Neue York Normal', serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #888;
  margin-bottom: 5px;
}

.depot-progress-bar {
  width: 100%;
  height: 2px;
  background-color: var(--btn-bg);
}

.depot-progress-fill {
  height: 100%;
  background-color: var(--text-color);
  transition: width 0.3s ease;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  height: calc(100vh - 26px);
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.content-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.content-title {
  font-family: 'PP Neue York Normal', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.content-badge {
  font-size: 10px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.05em;
}

/* ── Controls bar ────────────────────────────────────────────────────────── */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
}

.controls-divider {
  width: 1px;
  height: 12px;
  background-color: var(--text-color);
  opacity: 0.15;
  margin: 0 8px;
  flex-shrink: 0;
}

.filter-label {
  font-size: 9px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.08em;
  margin-right: 2px;
}

.filter-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid transparent;
  padding: 3px 9px;
  font-family: 'PP Neue York Normal', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.1s ease, background-color 0.1s ease, color 0.1s ease;
}

.filter-btn:hover {
  border-color: var(--text-color);
}

.filter-btn.active {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.sort-select {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  border-bottom: 1px solid var(--text-color);
  padding: 3px 2px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* ── Items grid ──────────────────────────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Item card ───────────────────────────────────────────────────────────── */
.item-card {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  cursor: default;
}

.item-card:hover .item-card-body,
.item-card:hover .item-card-actions {
  background-color: var(--btn-bg);
}

/* Image — full bleed, no border, pure white background for seamless blending */
.item-card-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.item-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

body.dark-theme .item-card-image-box {
  background-color: #ffffff;
}

body.dark-theme .item-card-img {
  mix-blend-mode: normal;
}

/* Body */
.item-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  transition: background-color 0.1s ease;
}

.item-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-id {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #888;
}

.item-badge {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid currentColor;
  padding: 1px 5px;
  letter-spacing: 0.05em;
}

.item-title {
  font-family: 'PP Neue York Normal', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.05;
}

.item-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.item-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.item-meta-label {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.item-meta-value {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.item-meta-value.status-active {
  color: #1a7a46;
}

body.dark-theme .item-meta-value.status-active {
  color: #4ade80;
}

/* Actions */
.item-card-actions {
  display: flex;
  border-top: 1px solid var(--text-color);
  margin-top: auto;
  transition: background-color 0.1s ease;
}

.action-btn {
  flex: 1;
  background-color: transparent;
  color: var(--text-color);
  border: none;
  border-right: 1px solid var(--text-color);
  padding: 8px 0;
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
  text-align: center;
}

.action-btn:last-child {
  border-right: none;
}

.action-btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.action-btn.danger-hover:hover {
  background-color: #cc0000;
  color: #fff;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  padding: 48px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.06em;
  grid-column: 1 / -1;
  background-color: var(--bg-color);
}

/* ── Sliding panel ───────────────────────────────────────────────────────── */
.add-panel-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.add-panel-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.add-item-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  border-left: 1px solid var(--text-color);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.add-item-panel.visible {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--text-color);
  flex-shrink: 0;
}

.panel-title {
  font-family: 'PP Neue York Normal', serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.panel-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.4;
  line-height: 1;
  padding: 0;
  transition: opacity 0.1s ease;
}

.panel-close-btn:hover {
  opacity: 1;
}

/* Form */
.panel-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-family: 'PP Neue York Normal', serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.08em;
}

.form-input,
.form-select {
  border: none;
  border-bottom: 1px solid var(--text-color);
  padding: 7px 0;
  font-family: 'PP Neue York Normal', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-color: transparent;
  color: var(--text-color);
  outline: none;
  text-transform: uppercase;
}

.form-input:focus,
.form-select:focus {
  border-bottom-width: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit-btn {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 12px 16px;
  font-family: 'PP Neue York Normal', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.15s ease;
}

.form-submit-btn:hover {
  opacity: 0.75;
}

/* ── View toggles ────────────────────────────────────────────────────────── */
.view-toggle-container {
  display: flex;
  border: 1px solid var(--text-color);
}

.view-toggle-btn {
  background: transparent;
  color: var(--text-color);
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.view-toggle-btn:first-child {
  border-right: 1px solid var(--text-color);
}

.view-toggle-btn.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.view-toggle-btn svg {
  display: block;
}

/* ── View Modes: List View ───────────────────────────────────────────────── */
.items-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Horizontal card layout in list mode */
.items-grid.list-view .item-card {
  flex-direction: row;
  height: 140px;
  align-items: stretch;
}

.items-grid.list-view .item-card-image-box {
  width: auto;
  height: 100%;
  aspect-ratio: 4 / 3;
  order: 2;
  border-bottom: none;
  border-left: none;
}

.items-grid.list-view .item-card-body {
  padding: 6px 16px;
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: center;
  flex: 1;
  gap: 16px;
  order: 1;
}

.items-grid.list-view .item-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.items-grid.list-view .item-card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.items-grid.list-view .item-title {
  font-size: 26px;
  margin-right: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.items-grid.list-view .item-meta-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr 1fr;
  gap: 16px;
  margin-top: 0;
  width: 100%;
}

.items-grid.list-view .item-card-actions {
  flex-direction: column;
  border-top: none;
  border-left: none;
  width: 120px;
  flex-shrink: 0;
  margin-top: 0;
  order: 3;
}

.items-grid.list-view .action-btn {
  border-right: none;
  border-bottom: 1px solid var(--text-color);
  width: 100%;
  height: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.items-grid.list-view .action-btn:last-child {
  border-bottom: none;
}

/* Responsive adjustment for list view on mobile/narrow screens */
@media (max-width: 768px) {
  .items-grid.list-view .item-card {
    flex-direction: column;
    height: auto;
  }
  
  .items-grid.list-view .item-card-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
  }
  
  .items-grid.list-view .item-card-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 8px;
  }
  
  .items-grid.list-view .item-card-top {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 6px;
  }
  
  .items-grid.list-view .item-title {
    font-size: 22px;
    margin-right: 0;
  }
  
  .items-grid.list-view .item-meta-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .items-grid.list-view .item-card-actions {
    flex-direction: row;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--text-color);
  }
  
  .items-grid.list-view .action-btn {
    border-bottom: none;
    border-right: 1px solid var(--text-color);
    height: auto;
    padding: 8px 0;
  }
  
  .items-grid.list-view .action-btn:last-child {
    border-right: none;
  }
}

/* Always show logo in dashboard header (no scroll tracking needed) */
.site-header .header-logo {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* ==========================================================================
   ARRAY DEPOT — NEW SYSTEMS STYLING & TOOLTIPS
   ========================================================================== */

/* NUTS Facility Location Code */
.nuts-code {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Category Badge with Shifted Brackets */
.category-badge {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}

.category-badge .bracket {
  display: inline-block;
  transform: translateY(-4%);
}

/* Technical Storage Coordinate */
.storage-coordinate {
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 6px;
  white-space: nowrap;
}

/* Hover Tooltips System */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.tooltip-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 4px 8px;
  font-family: 'PP Neue York Condensed', serif;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--bg-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tooltip-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Metadata Icons */
.meta-icon {
  height: 16px;
  width: auto;
  display: block;
}

.meta-icon.size-icon {
  height: 16px;
}

.meta-icon.access-icon {
  height: 16px;
}

.meta-icon.cond-icon {
  height: 14px;
}

.conditions-icons-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

/* Active Depot Safety Certification Panel */
.depot-safety-system {
  margin-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.25);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dark-theme .depot-safety-system {
  border-top-color: rgba(0,0,0,0.25);
}

.depot-card.active .depot-safety-system {
  color: var(--bg-color);
}

.safety-title {
  font-family: 'PP Neue York Condensed', serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

body.dark-theme .depot-card.active .safety-title {
  color: rgba(0,0,0,0.65);
}

.safety-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.safety-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.safety-icon {
  height: 14px;
  width: auto;
  display: block;
}

.safety-status {
  font-family: 'PP Neue York Condensed', serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Dark theme / Active state SVG Icon Inversions */
body.dark-theme .meta-icon,
body.dark-theme .safety-icon {
  filter: invert(1);
}

body:not(.dark-theme) .depot-card.active .safety-icon {
  filter: invert(1);
}

body.dark-theme .depot-card.active .safety-icon {
  filter: none;
}

/* Custom Button Grid Selectors inside Form */
.button-grid-select {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 12px;
}

.button-grid-select.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.button-grid-select.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.select-option-btn {
  background-color: var(--btn-bg);
  color: var(--text-color);
  border: none;
  padding: 8px 6px;
  font-family: 'PP Neue York Condensed', serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 42px;
}

.select-option-btn .option-desc {
  font-family: 'PP Neue York Normal', serif;
  font-size: 8px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.02em;
  display: block;
}

.select-option-btn.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.select-option-btn.active .option-desc {
  color: var(--btn-hover);
  opacity: 0.8;
}

.select-option-btn:hover:not(.active) {
  background-color: var(--btn-hover);
}

.depot-select-grid {
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid var(--text-color);
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 12px;
  background-color: var(--bg-color);
}

/* Custom scrollbar for depot selection grid */
.depot-select-grid::-webkit-scrollbar {
  width: 4px;
}
.depot-select-grid::-webkit-scrollbar-track {
  background: transparent;
}
.depot-select-grid::-webkit-scrollbar-thumb {
  background-color: var(--text-color);
  opacity: 0.3;
}

/* ==========================================================================
   MOBILE DASHBOARD LAYOUT & SIDEBAR STYLING
   ========================================================================== */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 2px solid var(--text-color);
  }

  .sidebar-section {
    padding: 12px 16px;
  }

  .sidebar-section.depot-section {
    overflow-y: visible;
  }

  .depot-list-wrapper {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 16px;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
  }

  /* Swipable cards style for depots on mobile */
  .depot-card {
    flex: 0 0 160px;
    border: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color) !important;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  .depot-card:last-child {
    border-bottom: 1px solid var(--text-color) !important;
  }

  .dashboard-main {
    padding: 16px 8px;
    height: auto;
  }

  .content-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .controls-bar {
    gap: 4px;
  }

  .controls-divider {
    display: none;
  }

  .items-grid {
    grid-template-columns: 1fr !important;
  }

  /* Make sure custom option buttons fit mobile */
  .button-grid-select.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

