/* Pecan Grove Farms brand overrides for the Harvest Tracker app.
   Loaded after bootstrap.min.css, custom_datatables.css and custom.css
   so these rules win without touching Bootstrap's markup or JS behavior. */

:root {
  --forest: #1C260D;
  --olive: #6B8342;
  --sage: #BBBF80;
  --taupe: #574D4C;
  --paper: #E9E9E1;
  --panel: #FCFCFC;
  --ink: #1C260D;
  --ink-2: #574D4C;
  --rule: #CFCDC3;
  --rule-2: #DEDCD2;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink);
}

/* ---------- Main app navbar (base.html) ---------- */
.navbar {
  background: var(--forest) !important;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
  color: #fff !important;
}
.navbar-nav .nav-item.active .nav-link {
  border-bottom-color: var(--sage);
}
.navbar .dropdown-menu {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
}
.navbar .dropdown-item {
  color: var(--ink);
  font-size: 13.5px;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background: var(--paper);
  color: var(--olive);
}
.navbar #account-dropdown {
  color: #e6e3d6 !important;
}
.navbar .fa-cog {
  color: #cfc9b4;
}
.navbar-mobile-title,
.navbar-mobile-avatar {
  display: none;
}
@media (max-width: 767px) {
  .navbar {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }
  .navbar-brand {
    display: none;
  }
  .navbar-toggler {
    order: 1;
    padding: 0;
    border: 0;
  }
  .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3e%3cpath d='M4 7h16M4 12h16M4 17h16'/%3e%3c/svg%3e");
  }
  .navbar-mobile-title {
    order: 2;
    display: block;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
  }
  .navbar-mobile-avatar {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--olive);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .navbar-collapse {
    order: 4;
  }
  .navbar-collapse.show {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--forest);
    padding: 8px 16px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
    z-index: 1030;
  }
  .list-page-header {
    display: none;
  }
}
/* ---------- Unified list-page toolbar (chips + search + actions in one row) ---------- */
.pgf-toolbar {
  padding: 18px 28px 12px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pgf-toolbar .search-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
  min-width: 200px;
}
.pgf-toolbar .search-chip svg {
  flex-shrink: 0;
  color: var(--ink-2);
}
.pgf-toolbar .search-chip input {
  border: 0;
  outline: 0;
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--ink);
  width: 100%;
  background: transparent;
}
.pgf-toolbar .toolbar-spacer {
  flex-grow: 1;
}
.pgf-toolbar .chip-olive.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--olive) !important;
  color: var(--olive) !important;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
}
/* Pill button component — originally built for the list-page toolbars,
   also reused anywhere else a pill-shaped action button is needed (e.g.
   the "Add Lot" button on the Load Super Sacks page). */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-pill:hover {
  text-decoration: none;
}
.btn-pill-white {
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-pill-olive {
  background: var(--olive);
  border: 0;
  color: #fff;
  font-weight: 700;
}
/* DataTables' own generated search wrapper is relocated into .search-chip
   via JS; hide the leftover default wrapper chrome around it. */
.dataTables_wrapper > .navbar.bg-light {
  display: none;
}

/* Table Samples / External hidden from the nav per product decision;
   routes and views stay live, just unlinked from the menu. */
.nav-item.nav-table-samples,
.nav-item.nav-external {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn-success,
.btn-primary {
  background-color: var(--olive) !important;
  border-color: var(--olive) !important;
}
.btn-success:hover,
.btn-primary:hover,
.btn-success:focus,
.btn-primary:focus {
  background-color: #5a7038 !important;
  border-color: #5a7038 !important;
}
/* Cancel links reuse Bootstrap's btn-danger class in several templates;
   scope this to .btn-cancel specifically so real destructive actions
   (Delete) keep their warning color. */
.btn-cancel {
  background-color: #fff !important;
  border-color: var(--rule) !important;
  color: var(--ink-2) !important;
}
.btn-cancel:hover {
  background-color: #f2f1e9 !important;
}

/* bootstrap-select dropdown buttons -> pill filter chips, JS untouched */
.bootstrap-select > .dropdown-toggle {
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 12.5px;
}
.bootstrap-select > .dropdown-toggle.btn-dark {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink-2) !important;
}
.bootstrap-select > .dropdown-toggle.btn-dark:hover,
.bootstrap-select > .dropdown-toggle.btn-dark:focus {
  background: #f2f1e9 !important;
}
.bootstrap-select .dropdown-menu {
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: 6px;
}
.bootstrap-select .dropdown-menu .inner {
  padding: 0;
}
/* Option rows default to Bootstrap's 16px/dark-gray .dropdown-item look;
   bring them down to the toolbar chip's own type scale. */
.bootstrap-select .dropdown-menu li a {
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 6px;
}
.bootstrap-select .dropdown-menu li a.opt {
  padding-left: 10px;
}
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li a:focus {
  background: #f2f1e9;
  color: var(--ink);
}
.bootstrap-select .dropdown-menu .selected a {
  color: var(--olive);
  font-weight: 600;
}
.bootstrap-select .dropdown-menu .no-results {
  font-size: 12.5px;
  color: var(--ink-2);
}
.bootstrap-select .dropdown-menu .text-muted,
.bootstrap-select .dropdown-menu small {
  font-size: 11px;
}
.bootstrap-select .dropdown-header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* Select All / Deselect All action buttons */
.bootstrap-select .bs-actionsbox {
  padding: 0 0 6px 0;
}
.bootstrap-select .bs-actionsbox .btn-group {
  gap: 6px;
}
.bootstrap-select .bs-actionsbox .btn {
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--sans);
  padding: 6px 10px;
  border-radius: 999px !important;
  margin-left: 0 !important;
  box-shadow: none;
}
.bootstrap-select .bs-actionsbox .btn:hover,
.bootstrap-select .bs-actionsbox .btn:focus {
  background: #f2f1e9;
  color: var(--ink);
}
/* Columns menu rows that also host a relocated filter select
   (From RR, Remaining Weight, Location, To RR, PGF Invoice, Shipped) */
#columns-dropdown .dropdown-item-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: .25rem 1.5rem;
}
#columns-dropdown .dropdown-item-filter label {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
#columns-dropdown .dropdown-item-filter .bootstrap-select {
  width: auto !important;
}
/* Year selector reads as an always-set, active value, styled dark
   like the mockup's "2025" chip, distinct from the other filter chips. */
.dropdown-toggle.year-select {
  background: var(--forest) !important;
  color: #fff !important;
  border-color: var(--forest) !important;
  font-weight: 700;
}

/* ---------- Tables (DataTables-driven lists) ---------- */
.table-card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  overflow: hidden;
}
.table-card .table,
.table-card table {
  margin-bottom: 0;
}
.text-mono {
  font-family: var(--mono);
}
/* Bootstrap draws row rules with border-top; the mockup only ever uses
   border-bottom. Left as border-top, the first (header) row's own top
   border sits flush against .table-card's own border and reads as a
   doubled outline around the whole table. */
.table th,
.table td {
  border-top: none !important;
}
.table thead th {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: #f2f1e9;
  border-bottom: 1px solid var(--rule) !important;
  white-space: normal;
}
.table td {
  font-size: 12.5px;
  color: var(--ink);
  vertical-align: middle;
  border-bottom: 1px solid var(--rule-2) !important;
}
/* Totals row (tfoot) reads as its own bar, same treatment as the header */
.table-card tfoot th,
.table-card tfoot td {
  background: #f2f1e9;
  border-bottom: none !important;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
/* Column sort indicators, recolored/repositioned to sit quietly in the
   header until a column is actively sorted, then pick up the brand olive. */
.table thead th .sorting {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--rule);
}
.table thead th .sorting i {
  display: block;
  font-size: 9px;
  line-height: 7px;
  color: inherit;
}
.table thead th.sorting_asc .sorting i.fa-sort-up,
.table thead th.sorting_desc .sorting i.fa-sort-down {
  color: var(--olive);
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(28, 38, 13, .02);
}
.table .actions {
  white-space: nowrap;
}
.table .actions .btn {
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  border: 0;
}
.table .actions .btn-info { background: var(--taupe); }
.table .actions .btn-success { background: var(--olive); }
.table .actions .btn-secondary { background: #8B7355; }
.table .actions .btn-warning { background: #C99A3E; color: #fff; }
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink-2);
  margin-right: 5px;
}
.iconbtn:hover {
  background: #f2f1e9;
  color: var(--olive);
  text-decoration: none;
}
.iconbtn img {
  display: block;
}
.iconbtn-danger:hover {
  background: #fbecea;
  color: #A6503D;
}
.iconbtn-off {
  color: var(--rule);
  background: #f7f6f2;
  cursor: default;
}
.iconbtn-off img {
  opacity: .4;
}

/* Badges used for Farm / Variety / Quality color chips, color set inline
   per-record from the real Farm.color / Variety.color / Quality.color
   fields (style="background:{{ x.color }}") — this stylesheet only
   supplies the shape/typography. */
.badge-chip {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

/* ---------- Forms ---------- */
.form-control {
  border-radius: 7px;
  border-color: var(--rule);
  font-size: 13.5px;
}
.form-control:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 .15rem rgba(107, 131, 66, .25);
}
label,
.control-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- Auth pages (simple_base.html: login, forgot/reset password) ---------- */
body.text-center {
  background: var(--forest);
}
body.text-center .form {
  background: var(--panel);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
body.text-center .form h1 {
  color: var(--forest);
  font-size: 24px;
}
body.text-center .form .btn-success {
  background: var(--olive) !important;
  border-color: var(--olive) !important;
}
body.text-center .form .btn-light {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  color: var(--ink-2) !important;
}
body.text-center .form .text-muted {
  color: #8d886f !important;
}

/* Login screen only (templates/auth/login.html): logo/heading/subtitle
   sit outside the card on the dark background, matching the mockup —
   forgot/reset password still use the shared .form treatment above. */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 334px;
  margin: 0 auto;
}
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.auth-header h1 {
  margin: 18px 0 4px 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.auth-header p {
  margin: 0;
  font-size: 13.5px;
  color: #c7c2b3;
  text-align: center;
}
.auth-copyright {
  margin-top: 24px;
  font-size: 11.5px;
  color: #8d886f;
  text-align: center;
}
.form-signin {
  text-align: left;
}
.form-signin label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-signin input[type="text"],
.form-signin input[type="email"],
.form-signin input[type="password"] {
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 15px;
}
.form-signin input:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  box-shadow: none;
}
.form-signin .invalid-feedback,
.form-signin .auth-hint {
  margin-top: -10px;
  margin-bottom: 16px;
}
.auth-hint {
  font-size: 11.5px;
  color: var(--ink-2);
}
.auth-help-text {
  text-align: center;
  margin: 16px 0 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Lot form (New Lot / Edit Lot — templates/lots/form.html) ---------- */
/* Secondary contextual bar under the main navbar, full-bleed within the
   container's own side padding, matching the mockup's dark back-nav bar. */
.form-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--forest);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 0 24px;
  height: 56px;
  margin: 0 -15px 24px -15px;
}
.form-page-header a {
  color: #cfc9b4;
  display: flex;
  align-items: center;
}
.form-page-header a:hover {
  color: #fff;
}
.form-page-header-lot {
  color: var(--sage);
}
.form-page-header-dim {
  font-weight: 400;
  color: #cfc9b4;
}
.form-page {
  display: flex;
  justify-content: center;
}
.form-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 26px;
}
.form-card .form-group {
  margin-bottom: 20px;
}
.form-card .form-group-last {
  margin-bottom: 0;
}
.form-card .req {
  color: #A6503D;
}
.form-divider {
  height: 1px;
  background: var(--rule-2);
  margin: 20px 0;
}
/* chosen.js renders its own fake-select markup for the vue-chosen widgets;
   restyle it to the mockup's plain bordered field instead of chosen's
   default pill look, without touching chosen.min.css itself. */
.form-card .chosen-container {
  width: 100% !important;
}
.form-card .chosen-container-single .chosen-single {
  height: auto;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.form-card .chosen-container-single .chosen-single.chosen-default span {
  color: var(--ink-2);
}
.form-card .chosen-container-single .chosen-single span {
  margin-right: 20px;
}
.form-card .chosen-container-single .chosen-single div b {
  /* chosen.min.css forces this sprite via a `background-image !important`
     rule, so an unqualified override here is silently ignored and both
     the sprite arrow and our own chevron below end up showing at once. */
  background-image: none !important;
  position: relative;
}
.form-card .chosen-container-single .chosen-single div b::before {
  content: '';
  position: absolute;
  top: 45%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-60%) rotate(45deg);
}
.form-card .chosen-container-active .chosen-single {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--rule);
}
.form-card .chosen-container .chosen-drop {
  border-radius: 8px;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.form-card .chosen-container .chosen-results li.highlighted {
  background: var(--olive);
}
/* Plain text/number fields inside a form-card (e.g. Super Sack Weight),
   matched to the chosen-widget fields above instead of the site-wide
   7px/13.5px .form-control default. */
.form-card .form-control {
  border-radius: 8px;
  border: 1px solid var(--rule);
  padding: 11px 12px;
  height: auto;
  font-size: 14px;
  color: var(--ink);
}
.form-card .form-control:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  box-shadow: none;
  border-color: var(--rule);
}
/* From rerun / To rerun toggle switch, replacing the plain checkbox */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  margin-bottom: 0;
}
.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--rule);
  border-radius: 999px;
  transition: background .15s ease;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform .15s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--olive);
}
.toggle-switch input:checked + .toggle-track .toggle-knob {
  transform: translateX(16px);
}
.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.toggle-title {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}
.toggle-group .hint {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 1px;
}
.form-card .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.form-card .form-actions .btn {
  flex: 1;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 0;
}

/* ---------- Sample form (wide multi-section layout, not the narrow
   centered .form-card used by Lot/Super Sack) ---------- */
.wide-form-page {
  padding: 26px 28px;
}
.form-actions-narrow {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin-top: 8px;
}
.form-actions-narrow .btn {
  flex: 1;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 0;
}
.section-card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.section-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}
.sample-photo-thumb {
  display: block;
  width: 100%;
  max-width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.section-card label,
.section-card .control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.section-card .req {
  color: #A6503D;
}
.section-card .computed-label {
  font-weight: 400;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: normal;
}
.section-card .field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.section-card .field-grid-2-last {
  margin-bottom: 0;
}
.section-card .field-narrow {
  max-width: 320px;
}
.section-card .section-hint {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 10px;
}
.section-card .toggle-group {
  margin-bottom: 18px;
}
/* Plain fields (inputs/textareas) inside a section-card, denser than the
   narrow .form-card fields to match the mockup's tighter multi-column grid. */
.section-card .form-control {
  border-radius: 7px;
  border: 1px solid var(--rule);
  padding: 9px 10px;
  height: auto;
  font-size: 13.5px;
  color: var(--ink);
}
.section-card .form-control:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  box-shadow: none;
  border-color: var(--rule);
}
.section-card .form-control[disabled] {
  background: #f2f1e9;
  color: var(--ink-2);
}
.section-card .form-control[readonly] {
  background: #f2f1e9;
  color: var(--ink-2);
}
/* Auto-filled fields that stay editable (e.g. Origin Shipping Address,
   filled from the selected Farm but left open to manual correction) get
   the same muted look as truly-readonly fields like Destination Address. */
.section-card .form-control.computed-field {
  background: #f2f1e9;
  color: var(--ink-2);
}
.section-card textarea.form-control {
  resize: vertical;
}
/* Inline "add new" trigger next to a select (e.g. Customer / Customer
   Address on the Shipment form) — opens the existing Bootstrap modal,
   only the button itself is restyled. */
.row-with-add {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.row-with-add .form-control,
.row-with-add .chosen-container {
  flex-grow: 1;
}
.addbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid var(--olive);
  color: var(--olive);
  background: #fff;
  flex-shrink: 0;
}
.addbtn:hover {
  background: #f2f6ec;
}
.addbtn:disabled {
  border-color: var(--rule);
  color: var(--rule);
  background: #f7f6f2;
  cursor: not-allowed;
}
/* chosen.js widgets (sheller/quality/condition/product_quality selects) —
   same sprite-removal fix as the .form-card chosen fields, tuned to this
   section's tighter sizing. */
.section-card .chosen-container {
  width: 100% !important;
}
.section-card .chosen-container-single .chosen-single {
  height: auto;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: none;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink);
}
.section-card .chosen-container-single .chosen-single span {
  margin-right: 20px;
}
.section-card .chosen-container-single .chosen-single div b {
  background-image: none !important;
  position: relative;
}
.section-card .chosen-container-single .chosen-single div b::before {
  content: '';
  position: absolute;
  top: 45%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-60%) rotate(45deg);
}
.section-card .chosen-container-active .chosen-single {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--rule);
}
.section-card .chosen-container .chosen-drop {
  border-radius: 7px;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.section-card .chosen-container .chosen-results li.highlighted {
  background: var(--olive);
}
.section-card .chosen-disabled .chosen-single {
  background: #f2f1e9;
  color: var(--ink-2);
}
/* Plain (non-DataTables) tables inside a section-card: Sample Sizing plus
   the In-Shell Inspection / Inedibles / Product Quality / Photos formsets. */
.section-card table {
  width: 100%;
  border-collapse: collapse;
}
.section-card table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.section-card table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: middle;
}
.section-card table .screen-size-cell {
  font-weight: 600;
  color: var(--ink);
}
.section-card table .delete-col {
  width: 46px;
}
.section-card .formset-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f6e9e6;
  border: 1px solid #e0bdb4;
  color: #A6503D;
}
.section-card .formset-delete-btn:hover {
  background: #f0dbd6;
}
/* The "Add" trigger has to stay a real <tr> (formset_add_delete.js inserts
   new rows with .before() relative to it), so only the cell's own look is
   restyled into an olive pill rather than moving it out of the table. */
.section-card .formset-add-row {
  background: transparent !important;
}
.section-card .formset-add-row td {
  display: inline-block;
  border-bottom: none;
  text-align: left;
  margin-top: 12px;
  background: var(--olive);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
}

/* ---------- Sample label (print page) ---------- */
.label-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
}
.label-print-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.label-print-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}
.label-card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 32px;
}
.label-logo {
  text-align: center;
  margin-bottom: 26px;
}
.label-logo img {
  height: 52px;
}
.label-divider {
  height: 1px;
  background: var(--rule);
  margin-bottom: 22px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-2);
}
.label-row:last-child {
  border-bottom: 0;
}
.label-k {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}
.label-v {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

/* ---------- Bootstrap modals (e.g. New Customer / New Address on the
   Shipment form) — light touch, JS/data-attributes untouched. ---------- */
.modal-content {
  border-radius: 12px;
  border: 1px solid var(--rule-2);
}
.modal-header {
  border-bottom: 1px solid var(--rule-2);
}
.modal-header .modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.modal-footer {
  border-top: 1px solid var(--rule-2);
}
.modal-body h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 8px 0 14px 0;
}

/* ---------- Shipment "Load Super Sacks" page ---------- */
.load-page {
  padding: 24px 28px;
}
.load-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}
.load-stats {
  display: flex;
  gap: 28px;
}
.load-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 3px;
}
.load-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.load-stat-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
/* Lot cards use native <details>/<summary> for expand/collapse — no
   custom JS needed for the toggle itself. */
.lot-card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.lot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f2f1e9;
  cursor: pointer;
  list-style: none;
}
.lot-head::-webkit-details-marker {
  display: none;
}
.lot-chevron {
  color: var(--ink-2);
  flex-shrink: 0;
  transition: transform .15s ease;
  transform: rotate(-90deg);
}
.lot-card[open] .lot-chevron {
  transform: rotate(0deg);
}
.lot-number {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.lot-head-spacer {
  flex-grow: 1;
}
.lot-head-summary {
  text-align: right;
}
.lot-head-weight {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
.lot-head-count {
  font-size: 11px;
  color: var(--ink-2);
}
.lot-sacks-table {
  width: 100%;
  border-collapse: collapse;
}
.lot-sacks-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.lot-sacks-table tbody td {
  font-size: 13px;
  color: var(--ink);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-2);
}
.lot-sacks-table tbody tr:last-child td {
  border-bottom: none;
}
.load-na {
  color: var(--ink-2);
  font-size: 12px;
}
@media (max-width: 767px) {
  .load-page {
    padding: 16px;
  }
  .lot-head {
    flex-wrap: wrap;
  }
  .lot-head-summary {
    flex-basis: 100%;
    text-align: left;
    margin-left: 26px;
  }
  /* Farm and Quality are already shown once on the lot-card header (every
     sack in a lot shares the same farm/quality), so they're redundant
     per-row here — drop them at narrow widths so Variety/Sack #/Weight/
     Loaded fit without a table any user would need to scroll sideways to
     use. */
  .lot-sacks-table th:nth-child(1),
  .lot-sacks-table td:nth-child(1),
  .lot-sacks-table th:nth-child(3),
  .lot-sacks-table td:nth-child(3) {
    display: none;
  }
  .lot-sacks-table thead th,
  .lot-sacks-table tbody td {
    padding: 9px 8px;
  }
}
/* Custom checkbox look for both the per-sack "Loaded" checkboxes and the
   Add Lot modal's row checkboxes — native <input>, fully re-skinned. */
input.chk {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--rule);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}
input.chk:checked {
  background: var(--olive);
  border-color: var(--olive);
}
input.chk:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.modal-hint {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.add-lots-table {
  width: 100%;
  border-collapse: collapse;
}
.add-lots-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  padding: 6px 4px;
}
.add-lots-table tbody td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule-2);
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------- Printable documents (Packing List, Bill of Lading, ...) ----------
   Shared letterhead + centered-title + plain data table treatment. Prints
   cleanly since .doc-actions is d-print-none and .doc-card's own border/
   radius/padding are stripped under @media print. */
.doc-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
}
.doc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}
.doc-card {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 30px;
}
.doc-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
.doc-letterhead-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
}
.doc-letterhead-line {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.doc-letterhead-contact {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}
.doc-letterhead-link {
  font-size: 12.5px;
  color: var(--olive);
}
.doc-letterhead img {
  height: 78px;
}
.doc-title-block {
  text-align: center;
  margin-bottom: 24px;
}
.doc-title {
  font-size: 23px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -.01em;
}
.doc-title-rule {
  height: 2px;
  width: 64px;
  background: var(--olive);
  margin: 14px auto 0 auto;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
}
.doc-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  padding: 9px 8px;
  border-bottom: 2px solid var(--rule);
  background: transparent;
}
.doc-table tbody td {
  font-size: 12.5px;
  color: var(--ink);
  text-align: center;
  padding: 8px 8px;
  border-bottom: 1px solid var(--rule-2);
}
.doc-table tfoot td {
  border-bottom: none;
  padding: 8px 8px;
  font-size: 12.5px;
  text-align: center;
}
.doc-exit-check {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
}
@media print {
  .doc-page {
    max-width: none;
    padding: 0;
  }
  .doc-card {
    border: none;
    border-radius: 0;
    padding: 0;
  }
}

/* ---------- Bill of Lading (a formal, densely-tabular legal document —
   deliberately its own plain look, not the app's usual card/pill chip
   styling, matching the mockup's compact printable-form treatment). ---------- */
.bol-logo {
  text-align: center;
  margin-bottom: 16px;
}
.bol-logo img {
  height: 88px;
}
.bol-table {
  width: 100%;
  border-collapse: collapse;
}
.bol-table th,
.bol-table td {
  border: 1px solid var(--rule);
  padding: 7px 9px;
  vertical-align: top;
  font-size: 11.5px;
  color: var(--ink);
  text-align: left;
}
.bol-table .bol-hdr {
  background: var(--forest);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bol-lbl {
  font-weight: 700;
  font-size: 11px;
}
.bol-sm {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.bol-strong {
  font-size: 11.5px;
}
.bol-info {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 3px;
  font-size: 11.5px;
}
.bol-info dt {
  font-weight: 700;
  color: var(--ink-2);
}
.bol-info dd {
  margin: 0;
}
.bol-chk {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.3px solid var(--ink-2);
  vertical-align: middle;
  margin-right: 5px;
}
.bol-checks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
}
.bol-nested-cell {
  padding: 0;
  border: 0;
}
.bol-nested-table {
  margin: 0;
}
@media print {
  .bol-logo {
    margin-bottom: 10px;
  }
}

/* File/image upload fields (Shipment Supporting Docs, Sample Photos) —
   Django's AdminImageWidget/ClearableFileInput render their own "Currently:
   <a>filename</a> / Clear / Change:" markup server-side, so this only
   restyles the pieces rather than rebuilding the widget. */
.section-card .doc-upload-field {
  font-size: 11.5px;
  color: var(--ink-2);
}
.section-card .doc-upload-field img {
  border-radius: 7px;
  border: 1px solid var(--rule);
  display: block;
  margin-bottom: 8px;
}
.section-card .doc-upload-field a {
  color: var(--olive);
  font-weight: 600;
}
.section-card .doc-upload-field input[type="file"] {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
}
/* Django wraps the "clear this file" checkbox + its "Clear" text label in
   <span class="clearable-file-input">. Restyle it as the same small red
   X button used for row-delete elsewhere (.formset-delete-btn) — the
   checkbox itself still toggles normally, this only changes its look. */
.section-card .doc-upload-field .clearable-file-input {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}
.section-card .doc-upload-field .clearable-file-input label {
  display: none;
}
.section-card .doc-upload-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #e0bdb4;
  background: #f6e9e6;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.section-card .doc-upload-field input[type="checkbox"]:hover {
  background: #f0dbd6;
}
.section-card .doc-upload-field input[type="checkbox"]::before,
.section-card .doc-upload-field input[type="checkbox"]::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #A6503D;
}
.section-card .doc-upload-field input[type="checkbox"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.section-card .doc-upload-field input[type="checkbox"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.section-card .doc-upload-field input[type="checkbox"]:checked {
  background: #A6503D;
  border-color: #A6503D;
}
.section-card .doc-upload-field input[type="checkbox"]:checked::before,
.section-card .doc-upload-field input[type="checkbox"]:checked::after {
  background: #fff;
}

/* ---------- Reports (Total Production, and reused by future reports) ---------- */
.report-page {
  padding: 24px 28px;
}
.report-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 4px;
}
.report-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 20px;
}
/* Reports reuse .table-card/.pgf-toolbar from the list pages, but (unlike
   Lots/Super Sacks/Samples/Shipments) have no separate mobile card view to
   swap in, so the shared mobile rule that hides those classes would leave
   a blank page below the title — keep them visible and scrollable instead. */
@media (max-width: 767px) {
  .report-page .table-card {
    display: block;
  }
  .report-page .pgf-toolbar {
    display: flex;
  }
}
.list-page-header {
  padding: 24px 28px 0;
}
.report-toolbar {
  margin-bottom: 18px;
  padding: 0;
}
.report-clear-filters {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
}
.report-clear-filters:hover {
  color: var(--ink);
  text-decoration: underline;
}
.report-empty-note {
  font-size: 13px;
  color: var(--ink-2);
  padding: 26px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
}
.report-subtotal-row td,
.report-grandtotal-row td {
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  border-bottom: none !important;
  border-top: none !important;
  color: #fff;
}
.report-subtotal-row {
  background: var(--olive);
}
.report-grandtotal-row {
  background: var(--forest);
}
.report-subtotal-row td:first-child,
.report-grandtotal-row td:first-child {
  text-align: left;
}
.report-pivot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  margin-left: 8px;
}
.report-pivot-btn:hover {
  background: rgba(255, 255, 255, .28);
}
.report-chevron {
  transition: transform .15s ease;
}
.report-chevron.report-chevron-closed {
  transform: rotate(-90deg);
}

/* ---------- Mobile list pages (card view, reused across Lots/Super Sacks/Samples/Shipments) ---------- */
.mobile-toolbar,
.mobile-search,
.mobile-filter-drawer,
.mobile-card-list-wrap,
.mobile-fab {
  display: none;
}
.filterchip {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.filterchip.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-weight: 700;
}
@media (max-width: 767px) {
  .table-card,
  .pgf-toolbar {
    display: none;
  }
  .mobile-toolbar {
    display: flex;
    padding: 14px 16px 10px 16px;
    gap: 8px;
    align-items: center;
  }
  .mobile-year-select {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    font-family: var(--sans);
    border-radius: 999px;
    padding: 7px 26px 7px 14px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  .mobile-filters-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--olive);
    background: #fff;
    color: var(--olive);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--sans);
  }
  .mobile-filters-btn .badge-count {
    background: var(--olive);
    color: #fff;
    border-radius: 999px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-filters-btn .report-chevron {
    transition: transform .15s ease;
  }
  .mobile-filters-btn.open .report-chevron {
    transform: rotate(180deg);
  }
  .mobile-search {
    display: block;
    padding: 0 16px 10px 16px;
  }
  .mobile-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 10px 12px;
  }
  .mobile-search-box input {
    border: 0;
    outline: 0;
    font-size: 13.5px;
    font-family: var(--sans);
    color: var(--ink);
    width: 100%;
    background: transparent;
  }
  .mobile-filter-drawer.open {
    display: block;
    margin: 0 16px 12px 16px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 14px;
    max-height: 420px;
    overflow-y: auto;
  }
  .mobile-filter-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 8px;
  }
  .mobile-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }
  .mobile-filter-drawer-actions {
    display: flex;
    gap: 8px;
  }
  .mobile-filter-drawer-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--sans);
  }
  .mobile-filter-clear-btn {
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink-2);
    font-weight: 600 !important;
  }
  .mobile-filter-apply-btn {
    border: 0;
    background: var(--olive);
    color: #fff;
  }
  .mobile-card-list-wrap {
    display: block;
    flex-grow: 1;
    padding: 0 16px 24px 16px;
  }
  .mobile-card-list {
    background: var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 12px;
    overflow: hidden;
  }
  .sackrow {
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule-2);
  }
  .sackrow:last-child {
    border-bottom: none;
  }
  .sackrow-top,
  .sackrow-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sackrow-top {
    margin-bottom: 3px;
  }
  .sackrow-id {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
  }
  .sackrow-id-num {
    color: var(--ink-2);
    font-weight: 400;
  }
  .sackrow-badges {
    display: flex;
    gap: 4px;
  }
  .sackrow-sub {
    font-size: 11.5px;
    color: var(--ink-2);
  }
  .sackrow-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .sackrow-weight {
    font-size: 12.5px;
    color: var(--ink);
  }
  .mobile-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f2f1e9;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
  }
  .mobile-card-empty {
    padding: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
  }
  .mobile-shipment-cards,
  .mobile-lots-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .shipment-card {
    background: var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 12px;
    padding: 14px;
  }
  .shipment-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
  }
  .shipment-card-id {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
  }
  .shipment-card-sub {
    font-size: 12px;
    color: var(--ink-2);
    margin-bottom: 10px;
  }
  .shipment-card-kv {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-bottom: 10px;
  }
  .shipment-card-kv b {
    color: var(--ink);
  }
  .shipment-card-metrics {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
  }
  .shipment-card-metrics .metric {
    flex: 1;
  }
  .shipment-card-metrics .metric b {
    display: block;
    color: var(--ink);
    font-size: 14px;
  }
  .shipment-card-metrics .metric span {
    font-size: 10.5px;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .shipment-card-actions {
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--rule-2);
    padding-top: 10px;
    flex-wrap: wrap;
  }
  .shipment-card-actions .iconbtn {
    width: 34px;
    height: 34px;
    margin-right: 0;
  }
  .shipment-card-actions .iconbtn-danger {
    background: #f6e9e6;
    border-color: #e0bdb4;
    color: #A6503D;
  }
  .mobile-destination-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
    font-family: var(--sans);
  }
  .mobile-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--olive);
    border: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
    z-index: 1020;
  }
  .lots-mobile-card {
    background: var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 12px;
    padding: 14px;
  }
  .lots-mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
  }
  .lots-mobile-card-id {
    font-family: var(--mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
  }
  .lots-mobile-card-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .lots-mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--ink-2);
    margin-bottom: 8px;
  }
  .lots-mobile-card-totals {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-2);
    margin-bottom: 10px;
  }
  .lots-mobile-card-totals b {
    color: var(--ink);
  }
  .lots-mobile-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--rule-2);
    padding-top: 10px;
  }
  .lots-mobile-card-actions .iconbtn {
    width: 36px;
    height: 36px;
    margin-right: 0;
  }
  .mobile-samples-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .samples-mobile-card {
    background: var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 12px;
    padding: 14px;
  }
  .samples-mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
  }
  .samples-mobile-card-id {
    font-family: var(--mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
  }
  .samples-mobile-card-sub {
    font-size: 12px;
    color: var(--ink-2);
    margin-bottom: 10px;
  }
  .samples-mobile-card-metrics {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
  }
  .samples-mobile-card-metrics .metric {
    flex: 1;
  }
  .samples-mobile-card-metrics .metric b {
    display: block;
    color: var(--ink);
    font-size: 14px;
  }
  .samples-mobile-card-metrics .metric span {
    font-size: 10.5px;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .samples-mobile-card-images {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
    border-top: 1px solid var(--rule-2);
    padding-top: 10px;
    margin-bottom: 10px;
  }
  .samples-mobile-card-actions {
    display: flex;
    gap: 8px;
  }
  .samples-mobile-card-actions .iconbtn {
    width: 36px;
    height: 36px;
    margin-right: 0;
  }
}
