/* Cascarón del admin. Tokens del prototipo V287. No reemplaza Bootstrap ni los plugins. */
.ab-admin {
  --ab-lime: #7ebc00;
  --ab-soft: #f3f9e7;
  --ab-bd: #e2e2de;
  --ab-bg: #eef1f4;
  --ab-dark: #1a1a1a;
  --ab-muted: #777;
  margin: 0;
  background: var(--ab-bg);
  color: var(--ab-dark);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.ab-admin button,
.ab-admin input,
.ab-admin select,
.ab-admin textarea {
  font-family: inherit;
}

.ab-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.ab-aside {
  background: #fff;
  border-right: 1px solid var(--ab-bd);
  padding: 0 14px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.ab-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 8px;
  padding: 16px 2px 14px;
  background: #fff;
  border-bottom: 1px solid #ecede8;
  text-decoration: none;
}

.ab-brand img {
  display: block;
  width: 148px;
  height: auto;
}

.ab-brand span {
  color: #7a7a7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ab-label {
  font-size: 11px;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 8px 6px;
}

.ab-nav {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  line-height: 1.3;
}

.ab-nav:hover,
.ab-nav:focus {
  background: #f6f6f3;
  color: #223500;
  text-decoration: none;
}

.ab-nav.is-active {
  background: var(--ab-soft);
  color: #223500;
}

.ab-nav.is-pending {
  color: #9a9a94;
  font-weight: 600;
  cursor: default;
}

.ab-nav.is-pending:hover,
.ab-nav.is-pending:focus {
  background: transparent;
  color: #9a9a94;
}

.ab-label--group {
  margin: 14px 0 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--ab-soft);
  color: #315600;
}

.ab-label--legacy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ab-bd);
  color: #b0b0aa;
}

.ab-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ab-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 18px;
  background: #fff;
  border-bottom: 1px solid var(--ab-bd);
}

.ab-nav-toggle {
  display: none;
  height: 34px;
  border: 1px solid var(--ab-bd);
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  font-weight: 700;
}

.ab-topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.ab-topbar-user a,
.ab-topbar-user button {
  background: none;
  border: 0;
  padding: 0;
  color: #444;
  font-weight: 700;
}

.ab-topbar-user a:hover,
.ab-topbar-user button:hover {
  color: #223500;
}

.ab-content {
  padding: 18px;
  min-width: 0;
}

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

.ab-top h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ab-top p {
  margin: 3px 0 0;
  color: var(--ab-muted);
  font-size: 12px;
  font-weight: 500;
}

.ab-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.ab-admin .box {
  background: #fff;
  border: 1px solid var(--ab-bd);
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 12px;
}

.ab-admin .box-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ab-bd);
}

.ab-admin .box-header.with-border {
  border-bottom: 1px solid var(--ab-bd);
}

.ab-admin .box-title {
  font-size: 16px;
  font-weight: 800;
}

.ab-admin .box-body {
  padding: 12px 14px;
}

.ab-admin .box-footer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--ab-bd);
  border-radius: 0 0 10px 10px;
}

.ab-admin .box-order {
  position: relative;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ab-bd);
  margin-bottom: 5px;
  width: 100%;
}

.ab-admin .btn {
  border-radius: 7px;
  font-weight: 700;
  box-shadow: none;
}

.ab-admin .btn-success,
.ab-admin .btn-primary {
  background: var(--ab-lime);
  border-color: var(--ab-lime);
  color: #1a1a1a;
}

.ab-admin .btn-success:hover,
.ab-admin .btn-success:focus,
.ab-admin .btn-primary:hover,
.ab-admin .btn-primary:focus {
  background: #6ea800;
  border-color: #6ea800;
  color: #1a1a1a;
}

.ab-admin .btn-default,
.ab-admin .btn-info {
  background: #fff;
  border-color: var(--ab-bd);
  color: #1a1a1a;
}

.ab-admin .btn-default:hover,
.ab-admin .btn-info:hover,
.ab-admin .btn-default:focus,
.ab-admin .btn-info:focus {
  background: var(--ab-soft);
  border-color: var(--ab-bd);
  color: #1a1a1a;
}

.ab-admin .form-control {
  height: 32px;
  border: 1px solid var(--ab-bd);
  border-radius: 6px;
  box-shadow: none;
}

.ab-admin textarea.form-control {
  height: auto;
  min-height: 65px;
}

.ab-admin .form-group label,
.ab-admin .form-label {
  font-size: 11px;
  font-weight: 800;
  color: #555;
}

.ab-admin .table {
  background: #fff;
}

.ab-admin .table > thead > tr > th {
  background: #f5f5f2;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ab-bd);
}

.ab-admin .table > tbody > tr > td {
  border-top: 1px solid var(--ab-bd);
}

.ab-admin .dataTables_wrapper .dataTables_filter input,
.ab-admin .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--ab-bd);
  border-radius: 6px;
  height: 32px;
  padding: 0 8px;
  margin-left: 6px;
}

.ab-admin .pagination > .active > a,
.ab-admin .pagination > .active > a:hover,
.ab-admin .pagination > .active > span {
  background: var(--ab-lime);
  border-color: var(--ab-lime);
  color: #1a1a1a;
}

.ab-admin .alert {
  border-radius: 8px;
  border: 1px solid var(--ab-bd);
}

.ab-admin .alert-success {
  background: var(--ab-soft);
  color: #223500;
}

.ab-admin .nav-tabs {
  border-bottom: 1px solid var(--ab-bd);
  margin-bottom: 12px;
}

.ab-admin .nav-tabs > li > a {
  border-radius: 7px 7px 0 0;
  color: #444;
  font-weight: 700;
}

.ab-admin .nav-tabs > li.active > a,
.ab-admin .nav-tabs > li.active > a:hover,
.ab-admin .nav-tabs > li.active > a:focus {
  color: #223500;
  border-color: var(--ab-bd);
  border-bottom-color: #fff;
}

.ab-admin .modal-content {
  border-radius: 10px;
  border: 1px solid var(--ab-bd);
  box-shadow: none;
}

.ab-admin .modal-header {
  border-bottom: 1px solid var(--ab-bd);
}

.ab-admin .modal-footer {
  border-top: 1px solid var(--ab-bd);
}

.ab-admin .select2-container--default .select2-selection--single {
  height: 32px;
  border: 1px solid var(--ab-bd);
  border-radius: 6px;
}

.ab-admin .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 30px;
}

.ab-admin .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
}

@media (max-width: 960px) {
  .ab-app {
    grid-template-columns: 1fr;
  }

  .ab-nav-toggle {
    display: inline-block;
  }

  .ab-aside {
    position: fixed;
    z-index: 40;
    width: 220px;
    transform: translateX(-105%);
    transition: transform 0.15s ease;
  }

  .ab-admin.ab-nav-open .ab-aside {
    transform: none;
  }
}

@media print {
  .ab-aside,
  .ab-topbar,
  .ab-nav-toggle {
    display: none !important;
  }

  .ab-app {
    display: block;
  }

  .ab-content {
    padding: 0;
  }
}

/* Empresas vendedoras V495 — listado tipo company-entry */
.ab-co-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--ab-bd);
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfcfa 0, #f7f8f4 100%);
}

.ab-co-toolbar__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ab-co-toolbar__left strong {
  font-size: 13px;
}

.ab-co-toolbar__hint {
  color: #5f655b;
  font-size: 11px;
}

.ab-co-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ab-co-toolbar__filters .form-control {
  height: 34px;
  width: auto;
}

.ab-co-search {
  min-width: 280px;
}

.ab-co-list {
  display: grid;
  gap: 14px;
}

.ab-co-entry {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(150px, 0.75fr);
  grid-template-areas:
    "summary contact1 contact2 contact3 side"
    "flow flow flow flow flow";
  gap: 12px 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid #e4e7df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.04);
}

.ab-co-entry.is-inactive {
  opacity: 0.72;
  background: #fbfbfa;
}

.ab-co-summary {
  grid-area: summary;
  min-width: 0;
}

.ab-co-summary h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.ab-co-summary h3 a {
  color: var(--ab-dark);
  text-decoration: none;
}

.ab-co-summary h3 a:hover {
  color: #315600;
}

.ab-co-summary > p {
  margin: 0 0 12px;
  color: #5f655b;
  font-size: 11px;
  line-height: 1.35;
}

.ab-co-location label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7b8077;
  margin-bottom: 4px;
}

.ab-co-location b {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.ab-co-location span {
  display: block;
  margin-top: 3px;
  color: #677064;
  font-size: 11px;
}

.ab-co-sale-line {
  margin-top: 6px;
  font-size: 11.5px;
  color: #6c7267;
}

.ab-co-sale-line b {
  color: #1b1b1b;
  font-size: 11.5px;
}

.ab-co-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
  background: #fafbf8;
  border: 1px solid #e7eae1;
  border-radius: 12px;
  line-height: 1.25;
  min-width: 0;
}

.ab-co-contact--1 { grid-area: contact1; }
.ab-co-contact--2 { grid-area: contact2; }
.ab-co-contact--3 { grid-area: contact3; }

.ab-co-contact b {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6de;
  color: #5d7f1e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1px;
  font-weight: 800;
}

.ab-co-contact span {
  font-size: 11px;
  color: #222;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-co-contact small,
.ab-co-contact em {
  display: block;
  margin: 0;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-co-contact small {
  color: #626b77;
}

.ab-co-contact em {
  color: #4f6f98;
  font-style: normal;
}

.ab-co-muted {
  color: #9aa1aa !important;
  font-weight: 600 !important;
}

.ab-co-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-co-side > * {
  flex: 1 1 0;
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.ab-co-doc-pill {
  background: #fff2f2;
  border: 1px solid #f1c9c9;
  color: #a04747;
}

.ab-co-doc-pill--ok {
  background: var(--ab-soft);
  border-color: #d7e8bf;
  color: #365c05;
}

.ab-co-doc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  display: inline-block;
}

.ab-co-flow {
  grid-area: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border-top: 1px solid #ecece8;
  padding-top: 10px;
  margin-top: 2px;
}

.ab-co-flow-step {
  display: grid;
  grid-template-rows: 16px 42px;
  gap: 4px;
  min-width: 0;
}

.ab-co-flow-step label {
  margin: 0;
  min-height: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #7b8077;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-co-btn {
  height: 42px;
  min-height: 42px;
  width: 100%;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--ab-bd);
  background: #fff;
  color: #2e342a;
  cursor: pointer;
  box-sizing: border-box;
}

.ab-co-btn:hover,
.ab-co-btn:focus {
  text-decoration: none;
}

.ab-co-btn--edit {
  background: #fff;
  border: 2px solid #7ebc00;
  color: #315600;
}

.ab-co-btn--primary {
  background: var(--ab-lime);
  border-color: var(--ab-lime);
  color: #172100;
}

.ab-co-btn--lot {
  background: #f3f9e7;
  border-color: #bfd98b;
  color: #426b0d;
}

.ab-co-btn--access {
  background: #fff;
  border-color: #c7cdc0;
  color: #3f463b;
}

.ab-co-btn--seller {
  background: #f6fbef;
  border-color: #bfd99e;
  color: #426b0d;
}

.ab-co-btn--ghost {
  background: #fff;
  border-color: #d0d5cb;
  color: #2e342a;
}

.ab-co-btn--danger {
  background: #fff;
  border-color: #f1c9c9;
  color: #a04747;
}

.ab-co-btn--disabled,
.ab-co-btn:disabled {
  opacity: 1;
  cursor: default;
  background: #f6f6f3;
  border-color: #e3e3e0;
  color: #8a8f86;
  box-shadow: none;
}

/* Form create/edit leftovers */
.ab-contacto-card {
  background: #fafbf8;
  border: 1px solid #e7eae1;
  border-radius: 12px;
  padding: 14px;
}

.ab-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f5f5f2;
  color: #555;
}

.ab-pill--ok {
  background: var(--ab-soft);
  color: #223500;
}

.ab-pill--warn {
  background: #fff4e5;
  color: #8a4b00;
}

.ab-pill--muted {
  background: #eee;
  color: #777;
}

.ab-empresa-section {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.ab-contacto-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ab-principal-check {
  font-weight: 600;
  font-size: 12px;
  margin: 0;
}

.ab-empresa-detail__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.ab-empresa-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ab-kpi {
  min-width: 140px;
  background: #f7f7f4;
  border: 1px solid var(--ab-bd);
  border-radius: 8px;
  padding: 10px 12px;
}

.ab-kpi span,
.ab-kpi small {
  display: block;
  color: var(--ab-muted);
}

.ab-kpi strong {
  display: block;
  font-size: 18px;
  margin: 4px 0;
}

.ab-empresa-detail__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-empresa-user-form {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ab-bd);
}

@media (max-width: 1300px) {
  .ab-co-entry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "summary summary side"
      "contact1 contact2 contact3"
      "flow flow flow";
  }

  .ab-co-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ab-co-search {
    min-width: 0;
    width: 100%;
  }

  .ab-co-entry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "contact1"
      "contact2"
      "contact3"
      "side"
      "flow";
  }

  .ab-co-flow {
    grid-template-columns: 1fr;
  }

  .ab-co-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ab-co-side > * {
    flex: 1 1 140px;
  }
}

/* Lotes usados — listado V495 */
.ab-lot-wrap {
  overflow-x: auto;
}

.ab-lot-table {
  min-width: 1100px;
  margin-bottom: 0;
}

.ab-lot-table th:nth-child(1),
.ab-lot-table td:nth-child(1) { width: 150px; }
.ab-lot-table th:nth-child(2),
.ab-lot-table td:nth-child(2) { width: 72px; }
.ab-lot-table th:nth-child(7),
.ab-lot-table td:nth-child(7) { width: 110px; }
.ab-lot-table th:nth-child(8),
.ab-lot-table td:nth-child(8) { width: 120px; }

.ab-lot-table td {
  vertical-align: middle !important;
}

.ab-lot-code {
  font-weight: 800;
  color: var(--ab-dark);
}

.ab-lot-sub,
.ab-lot-contact small {
  display: block;
  margin-top: 2px;
  color: #6b6b66;
  font-size: 12px;
  font-weight: 500;
}

.ab-lot-cover {
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f1;
  border: 1px dashed #d6d6d2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a968d;
  font-size: 11px;
  font-weight: 700;
}

.ab-lot-cover.has {
  border-style: solid;
  border-color: #e3e3e0;
}

.ab-lot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-lot-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F2F9E6;
  border: 1px solid #DDEBC4;
  color: #3d5c16;
  font-size: 12px;
  font-weight: 700;
}

.ab-lot-badge--2 {
  background: #fff6e8;
  border-color: #ead7b0;
  color: #7a5b16;
}

.ab-lot-badge--3 {
  background: #f4f4f2;
  border-color: #e3e3e0;
  color: #666;
}

.ab-lot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d6d6d2;
  border-radius: 8px;
  background: #fff;
  color: #1A1A1A;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.ab-lot-btn:hover,
.ab-lot-btn:focus {
  color: #1A1A1A;
  text-decoration: none;
  background: #fafaf8;
}

.ab-lot-btn--primary {
  background: #7EBC00;
  border-color: #7EBC00;
  color: #1c2a05;
}

.ab-lot-btn--primary:hover,
.ab-lot-btn--primary:focus {
  color: #1c2a05;
  background: #8fce12;
}

.ab-lot-btn--fin {
  color: #934A4A;
  border-color: #E5CACA;
}

.ab-lot-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.ab-pu-table {
  min-width: 1480px;
}

.ab-pu-code {
  font-weight: 800;
  color: #315600;
}

.ab-pu-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ab-pu-print .form-control {
  width: 140px;
  height: 34px;
}

.ab-pu-act {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  min-width: 150px;
}

.pu-pager-top {
  text-align: right;
}

.pu-pager-top .dataTables_paginate {
  float: none;
}

.ab-pu-action,
.ab-pu-estado {
  width: 100%;
  height: 30px;
  border: 1px solid #d6d6d2;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
}

.ab-pu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 18, 0.45);
}

.ab-pu-modal.is-open {
  display: flex;
}

.ab-pu-dialog {
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.ab-pu-dialog h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ab-pu-modal-code {
  margin: 4px 0 14px;
  color: #315600;
  font-size: 13px;
  font-weight: 800;
}

.ab-pu-dialog label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.ab-pu-dialog input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d6d6d2;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
}

.ab-pu-modal-note {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.ab-pu-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.ab-pu-modal-cancel,
.ab-pu-modal-ok {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ab-pu-modal-cancel {
  border: 1px solid #d6d6d2;
  background: #fff;
  color: #1a1a1a;
}

.ab-pu-modal-ok {
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.ab-pu-modal-ok:disabled {
  opacity: 0.5;
  cursor: default;
}

.ab-pu-log {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 220px;
}

.ab-pu-more {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #315600;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.ab-pu-dialog--log {
  width: min(640px, 100%);
}

.ab-pu-history {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.ab-pu-history li {
  padding: 10px 0;
  border-top: 1px solid #ecece8;
}

.ab-pu-history li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ab-pu-history-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ab-pu-history-top b {
  font-size: 13px;
}

.ab-pu-history-top span {
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.ab-pu-history-top em {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f9e6;
  color: #315600;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ab-pu-history p,
.ab-pu-log-empty {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
}

.ab-pu-log li {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #444;
}

.ab-pu-log b {
  font-weight: 800;
}

.ab-pu-log span {
  display: block;
  color: #333;
}

.ab-pu-ok {
  color: #7a7a74;
  font-size: 12px;
  font-weight: 700;
}

/* Orden de publicación — productos de un lote usado */
.ab-op-lote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #3a3a36;
}

.ab-op-lote .form-control {
  width: 160px;
  height: 36px;
}

.ab-op-wrap {
  overflow-x: auto;
}

.ab-op-table {
  min-width: 940px;
  border: 1px solid #dfe4db;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.ab-op-head,
.ab-op-row {
  display: grid;
  grid-template-columns: 72px 96px 120px minmax(160px, 1.4fr) 140px 110px 128px;
  align-items: center;
}

.ab-op-head {
  min-height: 40px;
  background: #f6f7f4;
  border-bottom: 1px solid #dfe4db;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.ab-op-head > div,
.ab-op-row > div {
  min-width: 0;
  padding: 8px 10px;
}

.ab-op-row {
  min-height: 96px;
  background: #fff;
  border-bottom: 1px solid #ecefe9;
}

.ab-op-row:last-child {
  border-bottom: 0;
}

.ab-op-row.is-dragging {
  opacity: 0.55;
  background: #f8fbef;
}

.ab-op-row.is-drop {
  box-shadow: inset 0 3px 0 #7ebc00;
}

.ab-op-grip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777e72;
  font-weight: 800;
  cursor: grab;
}

.ab-op-handle {
  letter-spacing: -2px;
}

.ab-op-index {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f0f2ed;
  color: #50574d;
  font-size: 13px;
}

.ab-op-thumb {
  width: 76px;
  height: 76px;
  border: 1px solid #e3e3e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-op-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-op-thumb.is-empty {
  border-style: dashed;
  border-color: #d6d6d2;
  color: #9a968d;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ab-op-code {
  font-weight: 800;
  white-space: nowrap;
}

.ab-op-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.ab-op-name small,
.ab-op-grupo {
  display: block;
  margin-top: 2px;
  color: #6b6b66;
  font-size: 13px;
}

.ab-op-grupo {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-op-move {
  display: flex;
  gap: 4px;
}

.ab-op-move button {
  width: 32px;
  height: 30px;
  border: 1px solid #d5dad1;
  border-radius: 6px;
  background: #fff;
  color: #4e554b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.ab-op-move button:hover {
  border-color: #7ebc00;
}

.ab-op-move button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ab-op-move .ab-op-pos {
  width: auto;
  padding: 0 7px;
  font-size: 12px;
}

#op-pos-error.is-error {
  color: #934a4a;
  font-weight: 700;
}

.ab-op-empty {
  padding: 18px 12px;
  color: #666;
  font-size: 13px;
}

.ab-op-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.ab-op-footer #op-message {
  color: #555;
  font-size: 13px;
}

.ab-op-footer #op-message.is-ok {
  color: #3d5c16;
  font-weight: 700;
}

.ab-op-footer #op-message.is-error {
  color: #934a4a;
  font-weight: 700;
}

.ab-login {
  --ab-lime: #7ebc00;
  --ab-bd: #e2e2de;
  --ab-bg: #eef1f4;
  --ab-dark: #1a1a1a;
  --ab-muted: #777;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--ab-bg);
  color: var(--ab-dark);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.ab-login *,
.ab-login *::before,
.ab-login *::after {
  box-sizing: border-box;
}

.ab-login__card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--ab-bd);
  border-radius: 10px;
  padding: 28px 28px 24px;
}

.ab-login__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid #ecede8;
  text-decoration: none;
}

.ab-login__brand img {
  display: block;
  width: 148px;
  height: auto;
}

.ab-login__brand span {
  color: #7a7a7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ab-login h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ab-login__lead {
  margin: 4px 0 18px;
  color: var(--ab-muted);
  font-size: 12px;
  font-weight: 500;
}

.ab-login__alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e7c8c8;
  background: #fdf4f4;
  color: #934a4a;
  font-size: 12px;
  font-weight: 700;
}

.ab-login__field {
  margin-bottom: 14px;
}

.ab-login__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #555;
}

.ab-login__field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ab-bd);
  border-radius: 6px;
  background: #fff;
  color: var(--ab-dark);
  font: inherit;
  font-size: 13px;
  box-shadow: none;
}

.ab-login__field input:focus {
  outline: none;
  border-color: #b7d56a;
  box-shadow: 0 0 0 3px rgba(126, 188, 0, 0.16);
}

.ab-login__password {
  position: relative;
}

.ab-login__password input {
  padding-right: 42px;
}

.ab-login__toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  padding: 0;
}

.ab-login__toggle:hover,
.ab-login__toggle:focus {
  color: #223500;
  outline: none;
}

.ab-login__toggle.is-on {
  color: #315600;
}

.ab-login__eye--off,
.ab-login__toggle.is-on .ab-login__eye--open {
  display: none;
}

.ab-login__toggle.is-on .ab-login__eye--off {
  display: block;
}

.ab-login__submit {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border: 1px solid var(--ab-lime);
  border-radius: 7px;
  background: var(--ab-lime);
  color: #1a1a1a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ab-login__submit:hover,
.ab-login__submit:focus {
  background: #6ea800;
  border-color: #6ea800;
}
