html {
  font-size: 14px;
}

:root {
  --stockade-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-font-sans-serif: var(--stockade-font);
  --bs-body-font-family: var(--stockade-font);
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

html,
body {
  height: 100%;
}

body.stockade-body {
  margin: 0;
  font-family: var(--stockade-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: #333;
}

/* Header */
.stockade-header {
  background: linear-gradient(to bottom, #3d8fd4 0%, #2b7ec4 100%);
  color: #fff;
  min-height: 56px;
}

.stockade-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  gap: 12px;
}

.stockade-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dbe-logo {
  display: block;
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.stockade-header-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 1.05rem;
}

.stockade-name {
  font-weight: 700;
}

.stockade-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stockade-header-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.stockade-header-link:hover,
.stockade-header-link:focus {
  color: #fff;
  text-decoration: underline;
}

.stockade-user-menu .dropdown-toggle::after {
  margin-left: 0.35rem;
}

/* Main content */
.stockade-main {
  padding: 20px 24px 32px;
  min-height: calc(100vh - 56px);
}

.stockade-login-heading {
  margin: 0 0 28px;
  font-size: 2.75rem;
  font-weight: 400;
  color: #8eb9dc;
  line-height: 1.1;
}

.stockade-login-form {
  max-width: 720px;
}

.stockade-field-row {
  display: grid;
  grid-template-columns: 120px minmax(200px, 360px);
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.stockade-field-label {
  text-align: right;
  font-weight: 600;
  font-size: 0.875rem;
  color: #222;
}

.stockade-field-input {
  width: 100%;
  height: 34px;
  padding: 4px 10px;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
}

.stockade-field-input:focus {
  outline: none;
  border-color: #2b7ec4;
  box-shadow: 0 0 0 2px rgba(43, 126, 196, 0.15);
}

.stockade-submit-row {
  margin-top: 8px;
}

.stockade-ok-btn {
  width: 72px;
  height: 34px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(to bottom, #4a9fe0 0%, #2b7ec4 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.stockade-ok-btn:hover {
  background: linear-gradient(to bottom, #3d96db 0%, #2474b5 100%);
}

.stockade-ok-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.stockade-login-error {
  margin: 0 0 16px 156px;
  max-width: 420px;
  padding: 8px 12px;
  border: 1px solid #e0a0a0;
  background: #fff0f0;
  color: #a94442;
  border-radius: 4px;
  font-size: 0.9rem;
}

.stockade-dashboard {
  padding-top: 12px;
}

.stockade-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 24px;
  max-width: 960px;
}

.stockade-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  width: 100%;
  padding: 24px 16px;
  border: 1px solid #c5d9eb;
  border-radius: 6px;
  background: linear-gradient(to bottom, #f7fbff 0%, #eef6fc 100%);
  color: #2b7ec4;
  box-shadow: 0 1px 3px rgba(43, 126, 196, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.stockade-tile:hover,
.stockade-tile:focus {
  border-color: #2b7ec4;
  box-shadow: 0 4px 12px rgba(43, 126, 196, 0.18);
  transform: translateY(-2px);
  color: #1f6aab;
  outline: none;
}

.stockade-tile-label {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 900px) {
  .stockade-tiles {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .stockade-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stockade-field-row {
    grid-template-columns: 1fr;
  }

  .stockade-field-label {
    text-align: left;
  }

  .stockade-login-error {
    margin-left: 0;
  }

  .stockade-tiles {
    grid-template-columns: 1fr;
  }
}

/* App shell */
.stockade-app-body {
  margin-bottom: 0;
}

.stockade-app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.stockade-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #1f2937;
  color: #fff;
}

.stockade-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 0 16px;
}

.stockade-sidebar-item,
.stockade-sidebar-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.875rem;
}

.stockade-sidebar-item:hover,
.stockade-sidebar-parent:hover,
.stockade-sidebar-subitem:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.stockade-sidebar-item i,
.stockade-sidebar-parent span i {
  width: 18px;
}

.stockade-sidebar-parent.is-active,
.stockade-sidebar-subitem.is-active {
  background: #2b7ec4;
  color: #fff;
}

.stockade-sidebar-submenu {
  background: #111827;
}

.stockade-sidebar-subitem {
  display: block;
  padding: 9px 18px 9px 42px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.stockade-sidebar-chevron {
  font-size: 0.75rem;
}

.stockade-app-content {
  flex: 1;
  padding: 16px 20px 24px;
  background: #fff;
  overflow-x: auto;
}

.stockade-app-content > p.text-muted {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.stockade-app-content .form-control,
.stockade-app-content .form-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  min-height: calc(1.5em + 0.5rem + 2px);
}

.stockade-app-content .btn:not(.btn-link) {
  padding: 0.25rem 0.65rem;
  font-size: 0.875rem;
}

.stockade-app-content .alert {
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.stockade-page-heading {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1e4b7a;
  line-height: 1.2;
}

.stockade-breadcrumb {
  color: #2b7ec4;
  text-decoration: none;
  font-size: 0.9rem;
}

.stockade-breadcrumb:hover {
  text-decoration: underline;
}

.stockade-btn-primary {
  background: linear-gradient(to bottom, #4a9fe0 0%, #2b7ec4 100%);
  border: none;
  color: #fff;
}

.stockade-btn-primary:hover {
  background: linear-gradient(to bottom, #3d96db 0%, #2474b5 100%);
  color: #fff;
}

.stockade-home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  max-width: 800px;
}

.stockade-home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  border-radius: 8px;
  background: var(--tile-color);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stockade-home-tile i {
  font-size: 1.6rem;
}

.stockade-home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.stockade-maint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
}

.stockade-maint-tile {
  display: flex;
  align-items: stretch;
  min-height: 110px;
  background: var(--tile-color);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stockade-maint-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.stockade-maint-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 2.2rem;
}

.stockade-maint-tile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
}

.stockade-maint-tile-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.stockade-maint-tile-count {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.stockade-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stockade-list-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stockade-spreadsheet-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

.stockade-spreadsheet-wrap {
  overflow: auto;
  max-height: calc(100vh - 260px);
}

.stockade-spreadsheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  white-space: nowrap;
}

.stockade-spreadsheet-cell {
  min-width: 120px;
  max-width: 280px;
  vertical-align: middle;
  white-space: nowrap;
}

.stockade-spreadsheet-cell.is-editable {
  cursor: cell;
  background: #fcfdff;
}

.stockade-spreadsheet-cell.is-editable:hover {
  background: #eef6ff;
}

.stockade-spreadsheet-cell.is-editing,
.stockade-spreadsheet-cell.is-saving {
  background: #fff8e1;
}

.stockade-spreadsheet-cell.is-saved {
  background: #ecfdf3;
}

.stockade-spreadsheet-cell.is-error {
  background: #fef2f2;
}

.stockade-spreadsheet-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stockade-spreadsheet-editor {
  min-width: 110px;
}

.stockade-spreadsheet-checkbox {
  pointer-events: none;
  margin: 0;
}

.stockade-column-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px 16px;
}

#columnPickerModal .modal-dialog {
  max-height: calc(100vh - 2rem);
}

#columnPickerModal .modal-content {
  max-height: calc(100vh - 2rem);
}

#columnPickerModal .modal-body {
  overflow-y: auto;
  max-height: min(65vh, 620px);
  overscroll-behavior: contain;
}

#columnPickerModal .modal-body form {
  margin: 0;
}

.stockade-column-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 0;
}

.stockade-column-picker-item small {
  margin-left: auto;
}

.stockade-search-form {
  max-width: 560px;
  margin-bottom: 18px;
}

.stockade-table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.stockade-table > :not(caption) > * > * {
  padding: 0.3rem 0.5rem;
}

.stockade-table tfoot tr.stockade-table-totals {
  border-top: 2px solid #dee2e6;
  background: #f8f9fa;
}

.stockade-table tfoot tr.stockade-table-totals td {
  font-weight: 600;
}

.stockade-row-actions {
  white-space: nowrap;
}

.stockade-row-actions form {
  margin-left: 6px;
}

.stockade-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.stockade-page-info {
  color: #666;
  font-size: 0.9rem;
}

.stockade-edit-form {
  width: 100%;
  max-width: 560px;
}

.stockade-edit-form .stockade-field-row {
  grid-template-columns: 130px minmax(180px, 360px);
  justify-content: start;
}

.stockade-field-control,
.stockade-compact-field {
  width: 100%;
  max-width: 360px;
}

.stockade-edit-form .stockade-field-control,
.stockade-edit-form .form-select,
.stockade-edit-form .form-control,
.stockade-edit-form textarea.form-control {
  width: 100%;
  max-width: 360px;
}

.stockade-edit-form .stockade-field-control .form-select {
  max-width: none;
}

.stockade-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

.stockade-field-grid-item .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stockade-field-grid-item-checkbox {
  display: flex;
  align-items: center;
}

.stockade-field-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 0;
}

.stockade-field-checkbox .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0;
}

.stockade-field-checkbox .form-check-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.stockade-display-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0;
  pointer-events: none;
}

.stockade-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.stockade-edit-tabs {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.stockade-tab-nav {
  background: #e8eef4;
  border-bottom: 1px solid #c5d3e0;
  padding: 0 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.stockade-tab-nav .nav-link {
  border: none;
  border-radius: 0;
  color: #1e4b7a;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.stockade-tab-nav .nav-link:hover {
  color: #163a60;
  background: rgba(255, 255, 255, 0.45);
}

.stockade-tab-nav .nav-link.active {
  background: #fff;
  color: #1e4b7a;
  border-top: 3px solid #2b6cb0;
  margin-top: -1px;
}

.stockade-tab-content {
  padding: 20px;
}

.stockade-tab-content > .tab-pane:not(.active) {
  display: none;
}

.stockade-tab-content > .tab-pane.active {
  display: block;
}

.stockade-tab-content .stockade-field-grid {
  margin-bottom: 0;
}

.stockade-tab-content .stockade-related-panel {
  margin-top: 16px;
}

.stockade-record-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #5a6b7d;
}

.stockade-related-section {
  margin-top: 12px;
}

.stockade-section-heading {
  font-size: 1.5rem;
  color: #1e4b7a;
  margin-bottom: 16px;
}

.stockade-related-panel {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.stockade-related-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #dee2e6;
}

.stockade-related-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1e4b7a;
}

@media (max-width: 1100px) {
  .stockade-maint-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .stockade-home-tiles {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .stockade-field-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

/* Receipt workflow */
.receipt-upload-dropzone {
  max-width: 420px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.receipt-upload-dropzone:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.receipt-upload-dropzone.is-dragover {
  border-color: #0d6efd;
  background: #eff6ff;
}

.receipt-upload-dropzone.has-file {
  padding: 10px 12px;
  text-align: left;
  cursor: default;
}

.receipt-upload-dropzone-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.receipt-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.receipt-preview-wrap {
  max-width: 480px;
}

.receipt-preview-image {
  width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.receipt-pdf-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 0.9rem;
  word-break: break-all;
}

.receipt-upload-dropzone .receipt-pdf-preview {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.receipt-pdf-preview .fa-file-pdf {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.receipt-ocr-text {
  max-height: 240px;
  overflow: auto;
  background: #f8fafc;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

#reviewTable input.form-control-sm:not(.receipt-review-input--qty):not(.receipt-review-input--cost):not(.receipt-review-input--inv-code),
.receipt-review-input:not(.receipt-review-input--qty):not(.receipt-review-input--cost):not(.receipt-review-input--inv-code) {
  min-width: 90px;
}

.receipt-review-table th.receipt-review-col-inv-code,
.receipt-review-table td:nth-child(1) {
  width: 6.75rem;
  max-width: 7rem;
}

.receipt-review-input--inv-code {
  min-width: 0;
  width: 100%;
  max-width: 6.5rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.receipt-review-table th.receipt-review-col-qty,
.receipt-review-table td:nth-child(5) {
  width: 5.75rem;
  max-width: 6.25rem;
}

.receipt-review-table th.receipt-review-col-price,
.receipt-review-table td:nth-child(7) {
  width: 6.5rem;
  max-width: 7rem;
}

.receipt-review-input--qty {
  min-width: 0;
  width: 100%;
  max-width: 6rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.receipt-review-input--cost {
  min-width: 0;
  width: 100%;
  max-width: 6.5rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.receipt-review-table tfoot td:nth-child(5),
.receipt-review-table tfoot td:nth-child(7) {
  width: auto;
  max-width: none;
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.receipt-meta .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3em 0.55em;
}

.receipt-review-table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.receipt-review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.receipt-search-modal .list-group-item {
  padding: 12px 14px;
}

@media (max-width: 767.98px) {
  .receipt-review-table-wrap {
    border: none;
    background: transparent;
  }

  .receipt-review-table thead {
    display: none;
  }

  .receipt-review-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .receipt-review-table tbody tr {
    display: block;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .receipt-review-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: transparent;
  }

  .receipt-review-table tbody tr.table-warning,
  .receipt-review-table tbody tr.receipt-review-row--warning {
    background: #fffbeb;
    border-color: #f0c040;
  }

  .receipt-review-table tbody tr.table-danger,
  .receipt-review-table tbody tr.receipt-review-row--unmatched {
    background: #fef2f2;
    border-color: #f1aeb5;
  }

  .receipt-review-table td {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 7px 0;
    border: none;
    white-space: normal;
  }

  .receipt-review-table td::before {
    content: attr(data-label);
    grid-column: 1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.2;
  }

  .receipt-review-table td > * {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  .receipt-review-status-cell {
    align-items: center;
  }

  .receipt-review-status-cell .badge {
    justify-self: start;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }

  .receipt-review-actions-cell {
    display: block;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid #e2e8f0;
  }

  .receipt-review-actions-cell::before {
    display: block;
    margin-bottom: 10px;
  }

  .receipt-review-actions-cell > .receipt-review-actions {
    width: 100%;
  }

  .receipt-review-actions {
    flex-direction: column;
    width: 100%;
  }

  .receipt-review-actions .btn {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
  }

  .receipt-review-input {
    min-width: 0 !important;
    min-height: 42px;
    font-size: 16px;
  }

  .receipt-review-unit,
  .receipt-review-system-cost,
  .receipt-review-code {
    font-weight: 600;
    text-align: left;
  }

  .receipt-review-table-wrap {
    overflow-x: auto;
  }

  .stockade-form-actions {
    flex-direction: column;
  }

  .stockade-form-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .receipt-search-modal {
    margin: 0;
    max-width: 100%;
    height: calc(100% - 1rem);
  }

  .receipt-search-modal .modal-content {
    min-height: 100%;
    border-radius: 12px 12px 0 0;
  }

  .receipt-search-modal .modal-body {
    padding-bottom: 24px;
  }

  #productSearchInput {
    min-height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .stockade-app-shell {
    flex-direction: column;
  }

  .stockade-sidebar {
    width: 100%;
  }

  .stockade-maint-grid,
  .stockade-home-tiles {
    grid-template-columns: 1fr;
  }

  .stockade-list-header {
    flex-direction: column;
  }

  .stockade-edit-form .stockade-field-row {
    grid-template-columns: 1fr;
  }

  .stockade-field-control,
  .stockade-compact-field,
  .stockade-edit-form .stockade-field-control,
  .stockade-edit-form .form-select,
  .stockade-edit-form .form-control,
  .stockade-edit-form textarea.form-control {
    max-width: 100%;
  }

  .stockade-field-grid {
    grid-template-columns: 1fr;
  }

  .stockade-column-picker {
    grid-template-columns: 1fr;
  }
}
